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
Starts an infinite loop to proccess all messages from the gameserver
public void processConnection() { executorService.execute(() -> { while (true) { try { String msg = input.readLine(); if (msg != null) { if(msg.startsWith(Constants.GAMESTART)) { // Makes the gameClientUIController if the message Platform.runLater(() -> { // "gamestart" is recived from the gameserver. int n = Integer.parseInt(msg.substring(10, 11)); // and sets the connection to the game controller FXMLLoader loader = new FXMLLoader(); try { for (int i=0; i<Main.gameTabs.getTabs().size(); i++) { if (Main.gameTabs.getTabs().get(i).getId().equals(hostName)) { Main.gameTabs.getTabs().get(i).setContent( loader.load(getClass().getResource("GameClient.fxml").openStream())); gameClientUIController = loader.getController(); gameClientUIController.setConnetion(output, input); gameClientUIController.setPlayer(n); } } } catch (IOException e) { Main.LOGGER.log(Level.WARNING, "Unable to receive message from server", e); } }); } else if(msg.startsWith(Constants.GAMENAME)) { Platform.runLater(() -> { int n = Integer.parseInt(msg.substring(9, 10)); String tmpNavn = msg.substring(10, msg.length()); gameClientUIController.setPlayerName(n, tmpNavn); }); } else if(msg.startsWith(Constants.DICEVALUE)) { Platform.runLater(() -> { int diceVal = Integer.parseInt(msg.substring(10,11)); int player = Integer.parseInt(msg.substring(11,12)); int pawn = Integer.parseInt(msg.substring(12,13)); gameClientUIController.getDiceValue(diceVal, player, pawn); }); } else if(msg.startsWith(Constants.DISCONNECT)) { Platform.runLater(() -> { int player = Integer.parseInt(msg.substring(11,12)); gameClientUIController.setPlayerDisconnect(player); }); } else if(msg.startsWith(Constants.GAMEOVER)) { Platform.runLater(() -> { gameClientUIController.gameover(); }); } else if (msg.startsWith(Constants.JOIN)) { if (!msg.substring(5).equals(hostName.substring(4))) { Platform.runLater(() -> { switch (caseNr) { case 1: createGameLobbyController.cleanUp(msg.substring(5)); // Adds the player name to the lobby break; case 2: hostGameLobbyController.cleanUp(msg.substring(5)); break; case 3: playerGameLobbyController.cleanUp(msg.substring(5)); break; default: break; } }); } } else if (msg.startsWith(Constants.LEAVEGAME)) { Platform.runLater(() -> { switch (caseNr) { case 1: createGameLobbyController.cleanRemove(msg.substring(10)); //removes the player from lobby break; case 2: hostGameLobbyController.cleanRemove(msg.substring(10)); break; case 3: playerGameLobbyController.cleanRemove(msg.substring(10)); break; default: break; } }); } else if (msg.equals(Constants.QUITGAME)) { for (int i=0; i<Main.gameHandler.size(); i++) { if (Main.gameHandler.get(i).getHostName().equals(hostName)) { Main.gameHandler.get(i).closeTab(); } } } Thread.sleep(250); } } catch (IOException ioe) { Main.LOGGER.log(Level.WARNING, "Unable to receive message from server", ioe); } catch (Exception e) { Main.LOGGER.log(Level.WARNING, "Unable to sleep", e); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run()\n\t\t{\twhile(true)\n\t\t\t{\tString s = ChatServer.message.get();\n\t\t\t\tsynchronized(ChatServer.sessions)\n\t\t\t\t{\tfor(int i = 0; i < ChatServer.size; ++i)\n\t\t\t\t\t\tif(ChatServer.sessions[i] != null)\n\t\t\t\t\t\t\tChatServer.sessions[i].println(s);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void run()\n {\n myMark = \"Z\";\n myTurn = false;\n displayMessage( \"Entered message loop\\n\");\n while( !gameover )\n {\n if( input.hasNextLine() )\n processMessage( input.nextLine() );\n } // end while\n displayMessage( \"Left message loop\\n\" );\n\n try {\n if( connection != null && !connection.isClosed() )\n connection.close();\n } catch( IOException e ) {\n e.printStackTrace();\n }\n displayMessage( \"Client terminated\\n\" );\n }", "public void run() {\n String nextLine;\n try {\n while ((nextLine = in.readLine()) != null && !stopped) {\n game.HandleIncommingMesg(this, nextLine);\n }\n System.out.println(\"Connection with: \" + playername + \" is lost!\");\n shutdown();\n } catch (IOException e) {\n shutdown();\n }\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\twhile(connected) {\n\t\t\tif(GameActivity.getInstance() == null)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\ttry {\n\t\t\t\t// Read first 4 bytes (int, messageType) from stream\n\t\t\t\t//in.read(bytes, 0, 4);\n\t\t\t\tint messageType = in.readInt();\n\t\t\t\t//intByteBuffer.clear(); // Clear buffer so we can read from it again\n\t\t\t\t\n\t\t\t\t// Receive appropriate message based on received messageType\n\t\t\t if(messageType == Message.CHARACTERS.value()) {\n\t\t\t\t\treceiveCharacters();\n\t\t\t\t} else if(messageType == Message.ID.value()) {\n\t\t\t\t\treceiveId();\n\t\t\t\t} else {\n\t\t\t\t\tSystem.err.println(\"Received message with unknown id: \" + messageType);\n\t\t\t\t}\n\t\t\t \n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Connection to server lost\");\n\t\t\t\te.printStackTrace();\n\t\t\t\tclose();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void run() {\n\t\twhile (!isFinished) {\n\t\t\tString msg;\n\t\t\ttry {\n\t\t\t\tmsg = messages.take();\n\t\t\t\tSystem.out.println(serverId + \" says: \" + msg);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void runProgram() {\n\n try {\n ServerSocket ss = new ServerSocket(8088);\n Dispatcher dispatcher = new Dispatcher(allmsg,allNamedPrintwriters,clientsToBeRemoved);\n Cleanup cleanup = new Cleanup(clientsToBeRemoved,allClients);\n cleanup.start();\n dispatcher.start();\n logger.initializeLogger();\n\n while (true) {\n Socket client = ss.accept();\n InputStreamReader ir = new InputStreamReader(client.getInputStream());\n PrintWriter printWriter = new PrintWriter(client.getOutputStream(),true);\n BufferedReader br = new BufferedReader(new InputStreamReader(client.getInputStream()));\n String input = br.readLine();\n System.out.println(input);\n String name = input.substring(8);\n logger.logEventInfo(name + \" has connected to the chatserver!\");\n allClients.put(name,client);\n allNamedPrintwriters.put(name,printWriter);\n ClientHandler cl = new ClientHandler(name,br, printWriter, allmsg);\n Thread t = new Thread(cl);\n t.start();\n allmsg.add(\"ONLINE#\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void run() {\r\n\r\n\t\twhile (this.running) {\r\n\t\t\tif (this.client.status == Client.Status.INITIALIZING) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\tUtil.log(e);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tString[] input = Util.readString(\"\").split(\" \");\r\n\t\t\t\tif (!this.running) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tString command = input[0];\r\n\t\t\t\tString[] args = Arrays.copyOfRange(input, 1, input.length);\r\n\t\t\t\tswitch (command) {\r\n\r\n\t\t\t\tcase \"help\":\r\n\r\n\t\t\t\t\tthis.sendNotification(\"game <int>: request the server for a game with a certain amount of players\");\r\n\t\t\t\t\tthis.sendNotification(\"move <tileno> <x> <y>: play a move.\");\r\n\t\t\t\t\tthis.sendNotification(\"swap <tileno>: request swap.\");\r\n\t\t\t\t\tthis.sendNotification(\"apply: send your move to the server.\");\r\n\t\t\t\t\tthis.sendNotification(\"revert: restart your turn.\");\r\n\t\t\t\t\tthis.sendNotification(\"stones: get the amount of stones in the game bag.\");\r\n\t\t\t\t\tthis.sendNotification(\"hint: request a hint.\");\r\n\t\t\t\t\tthis.sendNotification(\"applyhint: apply the suggested hint.\");\r\n\t\t\t\t\tthis.sendNotification(\"\");\r\n\t\t\t\t\tthis.sendNotification(\"board: show the current board.\");\r\n\t\t\t\t\tthis.sendNotification(\"hand: show your hand.\");\r\n\t\t\t\t\tthis.sendNotification(\"leaderboard: request the leaderboard.\");\r\n\t\t\t\t\tthis.sendNotification(\"\");\r\n\t\t\t\t\tthis.sendNotification(\"invite <nickname>: invite a nickname.\");\r\n\t\t\t\t\tthis.sendNotification(\"accept: accept an invite.\");\r\n\t\t\t\t\tthis.sendNotification(\"decline: decline an invite.\");\r\n\t\t\t\t\tthis.sendNotification(\"\");\r\n\t\t\t\t\tthis.sendNotification(\"chat <msg>: send a chat message\");\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"board\":\r\n\r\n\t\t\t\t\tif (this.client.status == Client.Status.IN_LOBBY) {\r\n\t\t\t\t\t\tthis.sendNotification(\"You're not in a game.\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.showBoard();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"hand\":\r\n\r\n\t\t\t\t\tif (this.client.status == Client.Status.IN_LOBBY) {\r\n\t\t\t\t\t\tthis.sendNotification(\"You're not in a game.\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.showHand();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"hint\":\r\n\r\n\t\t\t\t\tif (this.client.status == Client.Status.IN_LOBBY) {\r\n\t\t\t\t\t\tthis.sendNotification(\"You're not in a game.\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.showHint();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"applyhint\":\r\n\r\n\t\t\t\t\tif (this.client.status == Client.Status.IN_LOBBY) {\r\n\t\t\t\t\t\tthis.sendNotification(\"You're not in a game.\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.applyHint();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"move\":\r\n\r\n\t\t\t\t\tif (args.length < 3) {\r\n\t\t\t\t\t\tUtil.println(\"usage: move <tileno> <x> <y> ...\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.client.addMove(Integer.parseInt(args[0]), Integer.parseInt(args[1]),\r\n\t\t\t\t\t\t\t\tInteger.parseInt(args[2]));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"swap\":\r\n\r\n\t\t\t\t\tif (args.length != 1) {\r\n\t\t\t\t\t\tUtil.println(\"usage: swap <tileno>\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.client.requestSwap(args[0]);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"stones\":\r\n\r\n\t\t\t\t\tthis.client.getTilesInBag();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"apply\":\r\n\r\n\t\t\t\t\tthis.client.submitTurn();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"revert\":\r\n\r\n\t\t\t\t\tthis.client.revertTurn();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"invite\":\r\n\r\n\t\t\t\t\tif (args.length < 1) {\r\n\t\t\t\t\t\tUtil.println(\"usage: invite <nickname>\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.client.invite(args[0]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"decline\":\r\n\t\t\t\t\tthis.client.declineInvite();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"accept\":\r\n\t\t\t\t\tthis.client.acceptInvite();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"leaderboard\":\r\n\r\n\t\t\t\t\tthis.client.requestLeaderboard();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"game\":\r\n\r\n\t\t\t\t\tif (args.length < 1) {\r\n\t\t\t\t\t\tthis.sendNotification(\"error\", \"Usage: game <int>\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.client.requestGame(Integer.parseInt(args[0]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"chat\":\r\n\r\n\t\t\t\t\tif (args.length < 1) {\r\n\t\t\t\t\t\tthis.sendNotification(\"error\", \"Usage: chat <msg>\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.client.chatFromClient(args);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault:\r\n\r\n\t\t\t\t\tthis.sendNotification(\"Invalid command. Please type 'help' for a list.\");\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void run() {\n while(true)\n {\n try {\n Thread.sleep(1000);\n handler.sendEmptyMessage(0);\n\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n }\n\n }", "@Override\n public void run() {\n while (connected) {\n Message message = getMessage();\n if (!connected)\n break;\n Executors.newCachedThreadPool().execute(() -> {\n try {\n message.handle(messageHandler);\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }\n }", "public void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket s= ss.accept();\n\t\t\t\tif (DEBUG) System.out.println(s.getInetAddress() + \":\" + s.getPort() + \" connected\");\n\t\t\t\tPlayerHandler ph= new PlayerHandler(s); \n\t\t\t\tph.start();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace(); // Default\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);// 线程暂停2秒,单位毫秒\n\t\t\t\t\tMessage message = new Message();\n\t\t\t\t\tmessage.arg1 = 1;\n\t\t\t\t\thandler.sendMessage(message);// 发送消息\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n\t\tpublic void run() {\n\n\t\t\twhile (isRun) {\n\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(500);\n\n\t\t\t\t\tisRun = false;\n\t\t\t\t\thandler.sendEmptyMessage(2);\n\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public synchronized void run() {\n\n boolean keepGoing = true;\n\n while (keepGoing) {\n\n try {\n sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n int count = 0;\n\n try {\n\n count = sInput.available();\n\n if (count > 0) {\n message = sInput.readUTF();\n }\n\n if (isWait) {\n synchronized (this) {\n try {\n wait();\n\n } catch (InterruptedException e) {\n System.out.println(\"Error in waiting\");\n e.printStackTrace();\n }\n }\n }\n\n } catch (IOException e) {\n display(username + \" Exception reading Streams: \" + e);\n e.printStackTrace();\n }\n\n if(count == 0){\n continue;\n }\n\n String[] splitMessage = message.split(\" \");\n\n if(message.equalsIgnoreCase(\"!LOGOUT\")){\n //display(username + \" disconnected with a LOGOUT message.\");\n gameManager.disconnected(this);\n //keepGoing = false;\n break;\n }else if(message.equalsIgnoreCase(\"!WhoIsIn\")){\n writeMsg(\"List of the users connected at \" + simpleDateFormat.format(new Date()) + \"\\n\");\n // send list of active clients\n for (int i = 0; i < clientThreads.size(); ++i) {\n Server.ClientThread ct = clientThreads.get(i);\n writeMsg((i + 1) + \") \" + ct.username + \" since \" + ct.date);\n }\n }else if(canTalk) {\n if (message.equalsIgnoreCase(\"!READY\") && !isLastMoment) {\n if(!isReady) {\n gameManager.ready();\n isReady = true;\n broadcast(BLUE + gameManager.getReadyToGo()\n + \" number of players are ready so far\" + RESET, getClientThreads());\n }else{\n writeMsg(RED + \"you said you are ready before!\" + RESET);\n }\n }else if (!waitingToGo && !isLastMoment) {\n if (message.length() > 0 && message.charAt(0) == '@') {\n Player curPlayer = gameManager.getPlayer(this);\n //String[] decodedMsg = message.split(\" \");\n if (curPlayer instanceof GodFather) {\n gameManager.godFatherShot(message.substring(1), this);\n } else if (curPlayer instanceof LectorDoctor) {\n gameManager.lectorHill(message.substring(1), this);\n } else if (curPlayer instanceof Doctor) {\n gameManager.doctorHill(message.substring(1), this);\n } else if (curPlayer instanceof Detective) {\n gameManager.detectiveAttempt(message.substring(1), this);\n } else if (curPlayer instanceof Professional) {\n gameManager.professionalShot(message.substring(1), this);\n } else if (curPlayer instanceof Psychologist) {\n gameManager.psychologistAttempt(message.substring(1), this);\n } else if (curPlayer instanceof Invulnerable) {\n if (message.substring(1).equalsIgnoreCase(\"!RESULT\")) {\n gameManager.invulnerableAttempt(this);\n }\n } else if (curPlayer instanceof Mayor) {\n if (message.substring(1).equalsIgnoreCase(\"!CANCEL\")) {\n gameManager.mayorAttempt(this);\n }\n }\n }\n else if (splitMessage[0].equalsIgnoreCase(\"!VOTE\")) {\n if (splitMessage[1].charAt(0) == '@') {\n gameManager.vote(splitMessage[1].substring(1), this);\n }\n } else {\n boolean confirmation = broadcast(username + \": \" + message, activeClients);\n if (!confirmation) {\n String msg = RED + notification + \"Sorry. No such user exists.\" + notification + RESET;\n writeMsg(msg);\n }\n }\n\n }\n }else if (splitMessage[0].equalsIgnoreCase(\"!VOTE\") && !isLastMoment && !waitingToGo) {\n if (splitMessage[1].charAt(0) == '@') {\n gameManager.vote(splitMessage[1].substring(1), this);\n }\n }else if (message.equalsIgnoreCase(\"!READY\") && !isLastMoment) {\n if(!isReady) {\n gameManager.ready();\n isReady = true;\n broadcast(BLUE + gameManager.getReadyToGo() + \" number of players are ready so far\"\n + RESET, getClientThreads());\n }else{\n writeMsg(\"you said you are ready before!\");\n }\n }\n\n }\n // if out of the loop then disconnected and remove from client list\n remove(id);\n close();\n }", "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\twhile(isrun&&handler!=null){\n\t\t\ttry {\n\t\t\t\tMessage msg=handler.obtainMessage(timeupdate, new Date());\n\t\t\t\thandler.sendMessage(msg);\n\t\t\t\tThread.sleep(1000);\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}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\treMsg = withClient.getInputStream();\r\n\t\t\t\t\t\tbyte[] reBuffer = new byte[500];\r\n\t\t\t\t\t\treMsg.read(reBuffer);\r\n\t\t\t\t\t\tString msg = new String(reBuffer);\r\n\t\t\t\t\t\tmsg = msg.trim();\r\n\t\t\t\t\t\tif (msg.indexOf(\"/bye\") == 0) {\r\n\t\t\t\t\t\t\tendCat();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tAnalysis.ckMsg(mySin, msg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\tendCat();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void run() {\n try {\n while (this.game.gameAlive.get()) {\n if (clientInput.ready()) {\n String command = clientInput.readLine();\n if (command.equals(\"CHAT\")) {\n chatMessage();\n } else if (command.equals(\"MOVE\")) {\n move();\n } else if (command.equals(\"GAMEOVER\")) {\n gameOver();\n break;\n }\n }\n }\n clientInput.close();\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\n public void run() {\n while (isRun) {\n try {\n Thread.sleep(1000); // sleep 1000ms\n Message message = Message.obtain();\n message.what = 1;\n handler.sendMessage(message);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public void run() {\n try {\n String receivedMessage = \"\";\n \t\twhile (!receivedMessage.startsWith(this.PSEUDO+\" left.\")) {\n \n byte[] buf = new byte[256];\n DatagramPacket packet = new DatagramPacket(buf, buf.length);\n \n clientSocket.receive(packet);\n receivedMessage = new String(packet.getData(), packet.getOffset(), packet.getLength());\n\n conversation.append(receivedMessage + \"\\n\");\n\n \t\t}\n \t\tSystem.exit(0);\n\n \t} catch (Exception e) {\n \tSystem.err.println(\"Error in ReceptionClientThread:\" + e); \n }\n }", "@Override\n public void run() {\n\n while(true) {\n String incomingMessage = getSocketController().receive();\n getMessages().lock();\n System.out.println(incomingMessage);\n getMessages().addElement(incomingMessage);\n getMessages().unlock();\n try {\n Thread.sleep(10);\n }catch(InterruptedException e) {\n throw new RuntimeException(e);\n }\n }\n }", "public synchronized void run() {\n\t\t\tGameMessage message;\n\t\t\ttry {\n\t\t\t\twhile((message = (GameMessage) ois.readObject()) != null) {\n\t\t\t\t\tparseMessage(message);\n\t\t\t\t}\n\t\t\t} catch(Exception e) {\n\t\t\t\ttable.printMsg(\"Unable to receive message from server. Connection will be terminated.\");\n\t\t\t\ttable.printMsg(\"Try to Connect again.\");\n\t\t\t\ttry {\n\t\t\t\t\tsock.close();\n\t\t\t\t} catch(Exception ee) {\n\t\t\t\t\t// doing nothing\n\t\t\t\t}\t\n\t\t\t\tsock = null;\n\t\t\t\tSystem.out.println(\"Unable to receive message from server.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttable.repaint();\n\t\t}", "public void run() {\r\n\t\tSystem.out.println(\"Welcome \" + this.name);\r\n\r\n\t\ttry {\r\n\t\t\tPrintWriter out_stream = new PrintWriter(this.client.getOutputStream());\r\n\t\t\tInputStream in_stream = this.client.getInputStream();\r\n\t\t\tScanner in = new Scanner(in_stream);\r\n\r\n\t\t\twhile(!this.client.isClosed()) {\r\n\t\t\t\tif (in_stream.available() > 0 && in.hasNextLine()) {\r\n\t\t\t\t\tif(board.getpt().equals(\"B\")){\r\n\t\t\t\t\t\t//board.incBlackScore();\r\n\t\t\t\t\t\tboard.resetpt();\r\n\t\t\t\t\t} else if (board.getpt().equals(\"W\")){\r\n\t\t\t\t\t\t//board.incWhiteScore();\r\n\t\t\t\t\t\tboard.resetpt();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString line = in.nextLine();\r\n\t\t\t\t\t\tint index = line.indexOf(\" \");\r\n\t\t\t\t\t\tint x = Integer.parseInt(line.substring(0, index));\r\n\t\t\t\t\t\tint y = Integer.parseInt(line.substring(index + 1));\r\n\t\t\t\t\t\tboard.newmove(x , y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!this.messages.isEmpty()) {\r\n\t\t\t\t\tString next = null;\r\n\t\t\t\t\tsynchronized(this.messages) {\r\n\t\t\t\t\t\tnext = (String) this.messages.pop();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tout_stream.println(next);\r\n\t\t\t\t\tout_stream.flush();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException var8) {\r\n\t\t\tvar8.printStackTrace();\r\n\t\t}\r\n\t}", "public void run(){\n\t\t\tObjectReader readerClient = new ObjectReader(in, clientInetAddress);\r\n\t\t\treaderClient.start();\r\n\t\t\t\r\n\t\t\t// Constantly checks msgToSend for messages and sends them\r\n\t\t\twhile(true){\r\n\t\t\t\ttry{\r\n\t\t\t\t\t// Send message\r\n\t\t\t\t\tif(msgToSend.length() != 0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tout.writeObject(new DataObject(DataObject.STRING, msgToSend.toString()));\r\n\t\t\t\t\t\tout.flush();\r\n\t\t\t\t\t\tmsgToSend.setLength(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcatch(IOException ioe){\r\n\t\t\t\t\tioe.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "public void run()\r\n {\r\n System.out.println(\"I am here\");\r\n while (_keepGoing && datagramSocket!=null)\r\n {\r\n DatagramPacket packet = null;\r\n try { packet = getMessage(); }\r\n catch (Exception e) { /* ignore */ }\r\n if (packet == null) continue;\r\n\r\n String message = new String( packet.getData(), 0, packet.getLength(), UTF_16BE);\r\n System.out.println(\"Message :\"+message);\r\n InetAddress senderAddress = packet.getAddress();\r\n int senderPort = packet.getPort();\r\n\r\n if (_processor!=null)\r\n _processor.process(message, senderAddress, senderPort);\r\n }\r\n }", "@Override\n public void run() {\n try {\n boolean autoFlush = true;\n fromClient = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n toClient = new PrintWriter(clientSocket.getOutputStream(), autoFlush);\n } catch (IOException ioe) {\n throw new UncheckedIOException(ioe);\n }\n for (String entry : communicationWhenStarting) {\n sendMsg(entry);\n }\n while (connected) {\n try {\n Message msg = new Message(fromClient.readLine());\n updateClientAction(msg);\n } catch (IOException ioe) {\n disconnectClient();\n throw new MessageException(ioe);\n }\n }\n }", "@Override\n public void run() { \n \n String received; \n while (true) { \n try { \n\n // receive the messages from clients\n received = dis.readUTF();\n ChatServer.writeOnThreads(received);\n\n } catch (IOException e) {\n try { \n this.dis.close(); \n this.dos.close(); \n\n } catch(IOException e1) { \n e1.printStackTrace(); \n } \n } \n } \n }", "@Override\n public void run() {\n while (isRun) {\n count--;\n handler.sendEmptyMessage(10);\n try {\n Thread.sleep(1000);\n } catch (Exception e) {\n }\n }\n }", "@Override\n public void run() {\n String message = \"Someone: \";\n while(true) {\n try {\n message = in.readLine();\n if (message == null) {\n server.sendToAll(\"Someone has disconnected.\");\n break;\n }\n server.sendToAll(message);\n } catch (IOException e) {\n break;\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n }", "public void run() \n { \n String message; // String for incoming messages\n \n // listen for messages until stopped\n while ( keepListening ) \n { \n try \n { \n message = input.readLine(); // read message from client\n } // end try\n catch ( SocketTimeoutException socketTimeoutException ) \n {\n continue; // continue to next iteration to keep listening\n } // end catch\n catch ( IOException ioException ) \n {\n ioException.printStackTrace(); \n break;\n } // end catch\n\n // ensure non-null message\n if ( message != null ) \n {\n // tokenize message to retrieve user name and message body\n StringTokenizer tokenizer = new StringTokenizer( \n message, MESSAGE_SEPARATOR );\n\n // ignore messages that do not contain a user\n // name and message body\n if ( tokenizer.countTokens() == 2 ) \n {\n // send message to MessageListener\n messageListener.messageReceived( \n tokenizer.nextToken(), // user name\n tokenizer.nextToken() ); // message body\n } // end if\n else\n {\n // if disconnect message received, stop listening\n if ( message.equalsIgnoreCase(\n MESSAGE_SEPARATOR + DISCONNECT_STRING ) ) \n stopListening();\n } // end else\n } // end if\n } // end while \n \n try\n { \n input.close(); // close BufferedReader (also closes Socket)\n } // end try\n catch ( IOException ioException ) \n {\n ioException.printStackTrace(); \n } // end catch \n }", "@Override\n\tpublic void run() {\n\t\twhile(!Server.killServer){\n\t\t\ttry {\n\t\t\t\tThread.sleep(Constants.BROADCAST_BATTLEFIELD_PERIOD_TO_CLIENTS);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t//send to EACH client\n\t\t\tfor(Node client : Server.getClientList().keySet()){\n\t\t\t\t//get client's RMI instance\n\t\t\t\tClientServer clientComm = null;\n\t\t\t\tclientComm = Server.getClientReg(client); \n\t\t\t\t//create Message\n\t\t\t\tClientServerMessage sendBattlefieldMessage = new ClientServerMessage(\n\t\t\t\t\t\t\tMessageType.GetBattlefield,\n\t\t\t\t\t\t\tthis.serverOwner.getName(),\n\t\t\t\t\t\t\tthis.serverOwner.getIP(),\n\t\t\t\t\t\t\tclient.getName(),\n\t\t\t\t\t\t\tclient.getIP());\n\t\t\t\tsendBattlefieldMessage.setBattlefield(Server.getBattlefield());\n\t\t\t\t\n\t\t\t\tif(clientComm==null){\n\t\t\t\t\tSystem.out.println(\"clientComm is null\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Server: Battlefield sent\");\n\n\t\t\t\ttry {\n\t\t\t\t\tclientComm.onMessageReceived(sendBattlefieldMessage);\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch (NotBoundException e) {\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void run(){\r\n\r\n\t\tString message = new String();\r\n\t\t\r\n\t\t\r\n\t\twhile(escoltant){\r\n\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\tsClient = sServer.accept();\r\n\t\t\t\t\r\n\t\t\t\tdataIn = new ObjectInputStream(sClient.getInputStream());\r\n\t\t\t\t\r\n\t\t\t\tdataOut = new ObjectOutputStream(sClient.getOutputStream());\r\n\t\t\t\t//objectOut = new ObjectOutputStream(sClient.getOutputStream());\r\n\t\t\t\t\r\n\t\t\t\tmessage = (String)dataIn.readObject();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (message.startsWith(\"ADD\")){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif(Logica.addUser(message)){\r\n\t\t\t\t\t\tdataOut.writeObject(\"OK\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tdataOut.writeObject(\"KO\");\r\n\t\t\t\t\t}\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (message.startsWith(\"LOG\")){\r\n\t\t\t\t\tdataOut.writeObject(Logica.checkUser(message));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(message.equals(\"MAPES\")){\r\n\t\t\t\r\n\t\t\t\t\tdataOut.writeObject(Logica.enviaEscenaris());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(message.startsWith(\"GUANYADA\")){\r\n\t\t\t\t\t\r\n\t\t\t\t\tConectorDB.insertPartidaGuanyada();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(message.startsWith(\"PERDUDA\")){\r\n\t\t\t\t\t\r\n\t\t\t\t\tConectorDB.insertPartidaPerduda();\r\n\t\t\t\t}\r\n\t\t\t\tdataIn.close();\r\n\t\t\t\tdataOut.close();\r\n\t\t\t\t\r\n\t\t\t\tsClient.close();\r\n\t\t\t}catch(IOException e){\r\n\t\t\t\t\r\n\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\r\n\t\t}\r\n\t}", "public void run(){\n\n while(Server.running){\n String prefix = \"\";\n try{\n if(input.ready()){\n prefix = input.readLine();\n\n //username\n if(prefix.equals(\"<c>\")){\n this.username = input.readLine();\n\n //building \n }else if(prefix.equals(\"<b>\")){\n boolean success = false;\n String buildingType = input.readLine();\n String coords = input.readLine();\n int x = Integer.parseInt(coords.split(\" \")[0]);\n int y = Integer.parseInt(coords.split(\" \")[1]);\n success = buildBuilding(buildingType, x, y);\n reportTransactionStatus(success);\n \n //event\n }else if(prefix.equals(\"<e>\")){\n boolean success = false;\n String eventType = input.readLine();\n int level = Integer.parseInt(input.readLine());\n if(!isWholeGameEvent(eventType)){\n String coords = input.readLine();\n int x = Integer.parseInt(coords.split(\" \")[0]);\n int y = Integer.parseInt(coords.split(\" \")[1]);\n success = createEvent(eventType, level, x, y);\n }else{\n success = createEvent(eventType, level);\n }\n reportTransactionStatus(success);\n\n //upgrade\n }else if(prefix.equals(\"<u>\")){\n boolean success = false;\n String coords = input.readLine();\n int x = Integer.parseInt(coords.split(\" \")[0]);\n int y = Integer.parseInt(coords.split(\" \")[1]);\n success = upgrade(x, y);\n reportTransactionStatus(success);\n\n }else if(prefix.equals(\"<residency train>\")){\n \n boolean success = false;\n String info = input.readLine();\n int x = Integer.parseInt(info.split(\" \")[0]);\n int y = Integer.parseInt(info.split(\" \")[1]);\n int amount = Integer.parseInt(info.split(\" \")[2]);\n success = game.trainCitizen(x,y,amount);\n reportTransactionStatus(success);\n\n if(success){\n sendMessage(\"<r>\");\n sendMessage(\"Money\");\n sendMessage(\"\" + (-(50*amount)));\n game.changeMoney(-(50*amount));\n game.changeMoneyChange(-(50*amount));\n\n }\n\n }else if(prefix.equals(\"<residency convert>\")){\n\n boolean success = false;\n String type = input.readLine();\n String info = input.readLine();\n String keys = input.readLine().substring(1);\n int amount = Integer.parseInt(info.split(\" \")[0]);\n int x = Integer.parseInt(info.split(\" \")[1]);\n int y = Integer.parseInt(info.split(\" \")[2]); \n ArrayList<Integer> myKeys = new ArrayList<>();\n\n for(int i = 0; i < amount; i ++){\n\n myKeys.add(Integer.parseInt(keys.split(\" \")[i]));\n }\n\n success = game.specializeCitizen(type, amount, x, y, myKeys);\n reportTransactionStatus(success);\n\n if(success){\n sendMessage(\"<r>\");\n sendMessage(\"Money\");\n sendMessage(\"\" + (-(50*amount)));\n game.changeMoney(-(50*amount));\n game.changeMoneyChange(-(50*amount));\n }\n\n\n }else if(prefix.equals(\"<military soldier>\")){\n\n boolean success = false;\n String info = input.readLine();\n String keys = input.readLine().substring(1);\n int level = Integer.parseInt(info.split(\" \")[0]);\n int amount = Integer.parseInt(info.split(\" \")[1]);\n int x = Integer.parseInt(info.split(\" \")[2]);\n int y = Integer.parseInt(info.split(\" \")[3]);\n ArrayList<Integer> myKeys = new ArrayList<>();\n\n for(int i = 0; i < amount; i ++){\n myKeys.add(Integer.parseInt(keys.split(\" \")[i]));\n }\n\n success = game.trainSoldier(amount, level, x, y, myKeys);\n if(success){\n sendMessage(\"<r>\");\n sendMessage(\"Money\");\n sendMessage(\"\" + (-(Soldier.BASE_SOLDIER_PRICE*amount*level)));\n game.changeMoney(-(Soldier.BASE_SOLDIER_PRICE*amount*level));\n game.changeMoneyChange(-(Soldier.BASE_SOLDIER_PRICE*amount*level));\n }\n reportTransactionStatus(success); \n\n\n }else if(prefix.equals(\"<military spy>\")){\n boolean success = false;\n String info = input.readLine();\n String keys = input.readLine().substring(1);\n int amount = Integer.parseInt(info.split(\" \")[0]);\n int x = Integer.parseInt(info.split(\" \")[1]);\n int y = Integer.parseInt(info.split(\" \")[2]);\n ArrayList<Integer> myKeys = new ArrayList<>();\n\n for(int i = 0; i < amount; i ++){\n myKeys.add(Integer.parseInt(keys.split(\" \")[i]));\n }\n\n success = game.trainSpy(amount, x, y, myKeys);\n if(success){\n sendMessage(\"<r>\");\n sendMessage(\"Money\");\n sendMessage(\"\" + (-(Spy.SPY_PRICE*amount)));\n game.changeMoney(-(Spy.SPY_PRICE*amount));\n game.changeMoneyChange(-(Spy.SPY_PRICE*amount));\n }\n reportTransactionStatus(success);\n\n\n }else if(prefix.equals(\"<research armour>\")){\n boolean success = false;\n success = game.upgradeArmour();\n reportTransactionStatus(success);\n\n }else if(prefix.equals(\"<research weapon>\")){\n boolean success = false;\n success = game.upgradeWeapon();\n reportTransactionStatus(success);\n\n }else if(prefix.equals(\"<sur>\")){\n town.sendMessage(\"<ge>\");\n scp.sendMessage(\"<ge>\");\n if(this == scp){\n town.sendMessage(\"win\");\n this.sendMessage(\"lose\");\n }else if(this == town){\n scp.sendMessage(\"win\");\n this.sendMessage(\"lose\");\n }\n Server.running = false;\n }\n }\n }catch(IOException e){\n System.out.println(\"Something broke, server maintenance time\");\n e.printStackTrace();\n }\n }\n try{\n input.close();\n output.close();\n client.close();\n }catch(Exception e){\n System.out.println(\"Error closing socket\");\n e.printStackTrace();\n }\n }", "public void run()\n\t{\n\t\ttry \n\t\t{\n\t\t\twhile (lost != true)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\");\n\t\t\t\twhile (view.getInGamePanel().getGameStart() == true)\n\t\t\t\t{\n\t\t\t\t\tloop();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) \n\t\t{\n\t\t}\n\t}", "private void eventLoop() {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n try {\n System.out.println(\">\");\n // Before readLine(), clear the in stream.\n System.out.flush();\n String line = in.readLine().toLowerCase();\n if (line.startsWith(\"quit\") || line.startsWith(\"exit\")) {\n break;\n }\n line = \"[\" + \"Node1\" + \"]\" + line;\n // destination address is null, send msg to everyone in the cluster.\n Message msg = new ObjectMessage(null, line);\n channel.send(msg);\n } catch (Exception e) {\n // TODO: handle exception.\n }\n }\n\n }", "final public void run() {\n connectionEstablished();\n\n // The message from the server\n int msg;\n\n // Loop waiting for data\n\n try {\n // messageTimer.schedule(new TimerTask() {\n // @Override\n // public void run() {\n // try {\n // sendFromMessageQueue();\n // } catch (IOException e) {}\n // }\n // }, 0, 100);\n while (!readyToStop) {\n // Get data from Server and send it to the handler\n // The thread waits indefinitely at the following\n // statement until something is received from the server\n\n try { // added in version 2.31\n\n // String cur = input.readLine();\n // handleBig5String(cur + \"\\n\");\n readByte();\n\n } catch (RuntimeException ex) { // thrown by handleMessageFromServer\n\n connectionException(ex);\n }\n }\n } catch (Exception exception) {\n if (!readyToStop) {\n try {\n closeAll();\n } catch (Exception ex) {\n }\n\n clientReader = null;\n connectionException(exception);\n }\n } finally {\n\n clientReader = null;\n connectionClosed(); // moved here in version 2.31\n }\n }", "@Override\n public void run()\n {\n while (true)\n {\n\n // create output stream attached to the socket\n\n // read message from client.\n try\n {\n Message message = (Message) inFromClient.readObject();\n System.out.println(\"Message from Client: \" + message);\n\n // Send reply to client.\n Message replyMessage = new Message(message.getId(), message.getBody().toUpperCase());\n\n for (int i = 0; i < mb.numberofclients(); i++)\n {\n mb.getConnection(i).returnMessage().writeObject(message);\n\n }\n list.add(message);\n db2.Write(list);\n\n }\n catch (Exception ex)\n {\n \n }\n }\n\n }", "public void run() \r\n {\r\n String talkingPartner = \"server\";\r\n String message = \"\";\r\n boolean keepGoing = true;\r\n while(keepGoing) \r\n {\r\n\r\n try \r\n {\r\n message = (String) in.readObject();\r\n System.out.println(message);\r\n displayMessage(message);\r\n }\r\n catch (IOException e)\r\n {\r\n displayMessage(username + \" Exception reading Streams: \" + e);\r\n break;\r\n }\r\n catch(ClassNotFoundException e2)\r\n {\r\n break;\r\n }\r\n //logout command \r\n if (message.equals(\"/logout\"))\r\n {\r\n broadcast(\"***ATTEMPTING LOGOUT***\", talkingPartner);\r\n removeClient(id);\r\n keepGoing = false;\r\n }\r\n //help command\r\n if (message.equals(\"/help\"))\r\n {\r\n broadcast(\"***COMMANDS /help /logout /chat***\", talkingPartner);\r\n\r\n }\r\n //private chat command then takes a follow up name\r\n if (message.equals(\"/chat\"))\r\n {\r\n broadcast(\"***PLEASE TYPE THE NAME OF A USER***\", talkingPartner);\r\n String name = \"unselected\";\r\n try {\r\n\r\n name = (String) in.readObject();\r\n }\r\n catch (IOException e)\r\n {\r\n displayMessage(username + \" Exception reading Streams: \" + e);\r\n break;\r\n }\r\n catch(ClassNotFoundException e2) \r\n {\r\n break;\r\n }\r\n for(int i = 0; i < userNames.size(); i++ )\r\n {\r\n if(name.equals(userNames.get(i))){\r\n broadcast(\"user found starting chat!\", talkingPartner);\r\n }\r\n }\r\n\r\n }\r\n //broadcasts the message to everyone for group chat\r\n broadcast(username + \": \" + message, \"server\");\r\n }\r\n\r\n //shuts it down\r\n removeClient(id);\r\n close();\r\n }", "public void startRunning(){\n\t\ttry{\n\t\t\tserver = new ServerSocket(6789, 100);\n\t\t\t//int Port Number int 100 connections max (backlog / queue link)\n\t\t\twhile(true){\n\t\t\t\ttry{\n\t\t\t\t\twaitForConnection();\n\t\t\t\t\tsetupStreams();\n\t\t\t\t\twhileChatting();\n\t\t\t\t\t//connect and have conversation\n\t\t\t\t}catch(EOFException eofe){\n\t\t\t\t\tshowMessage(\"\\n Punk Ass Bitch.\");\n\t\t\t\t}finally{\n\t\t\t\t\tcloseChat();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(IOException ioe){\n\t\t\tioe.printStackTrace();\n\t\t\t\n\t\t}\n\t}", "@Override\n public void run() {\n while (LANSyncServer.IS_CLIENT_ALIVE) {\n try {\n LANSyncServer.smsserver.sendMessage(HandleProcess.REFRESH_REQUEST_MESSAGE);\n Thread.sleep(6000);\n } catch (InterruptedException ex) {\n Logger.getLogger(SyncRequestServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public void listen() throws IOException, InterruptedException{\n\t\tString response;\n\t\twhile (!serverSoc.isClosed() && (response = fromServer.readLine()) != null){\n\t\t\tif (gui != null){\n\t\t\t\tgui.giveResponse(response);\n\t\t\t}\n\t\t\tSystem.out.println(response);\n\t\t\tbotAction(response);\n\t\t}\n\t\tqueue.add(\"\");\n\t\tgameOver = true;\n\t}", "public void run() {\r\n String message;\r\n try {\r\n while (keepGoing && in != null && (message = in.readLine()) != null) {\r\n println(message);\r\n }\r\n } catch (IOException e) {\r\n finalize();\r\n }\r\n }", "void runningLoop() throws NoResponseException, NotConnectedException\n\t{\n\t\tint update = propertyGet(UPDATE_DELAY);\n\t\tboolean nowait = (propertyGet(NO_WAITING) == 1) ? true : false; // DEBUG ONLY; do not document\n\t\tboolean stop = false;\n\n\t\t// not there, not connected or already halted and no pending resume requests => we are done\n\t\tif (!haveConnection() || (m_session.isSuspended() && !m_requestResume) )\n\t\t{\n\t\t\tprocessEvents();\n\t\t\tstop = true;\n\t\t}\n\n\t while(!stop)\n\t\t{\n\t\t\t// allow keyboard input\n\t\t\tif (!nowait)\n\t\t\t\tm_keyboardReadRequest = true;\n\n\t\t\tif (m_requestResume)\n\t\t\t{\n\t\t\t\t// resume execution (request fulfilled) and look for keyboard input\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (m_stepResume)\n\t\t\t\t\t\tm_session.stepContinue();\n\t\t\t\t\telse\n\t\t\t\t\t\tm_session.resume();\n\t\t\t\t}\n\t\t\t\tcatch(NotSuspendedException nse)\n\t\t\t\t{\n\t\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"playerAlreadyRunning\")); //$NON-NLS-1$\n\t\t\t\t}\n\n\t\t\t\tm_requestResume = false;\n\t\t\t\tm_requestHalt = false;\n\t\t\t\tm_stepResume = false;\n\t\t\t}\n\n\t\t\t// sleep for a bit, then process our events.\n\t\t\ttry { Thread.sleep(update); } catch(InterruptedException ie) {}\n\t\t\tprocessEvents();\n\n\t\t\t// lost connection?\n\t\t\tif (!haveConnection())\n\t\t\t{\n\t\t\t\tstop = true;\n\t\t\t\tdumpHaltState(false);\n\t\t\t}\n\t\t\telse if (m_session.isSuspended())\n\t\t\t{\n\t\t\t\t/**\n\t\t\t\t * We have stopped for some reason. Now for all cases, but conditional\n\t\t\t\t * breakpoints, we should be done. For conditional breakpoints it\n\t\t\t\t * may be that the condition has turned out to be false and thus\n\t\t\t\t * we need to continue\n\t\t\t\t */\n\n\t\t\t\t/**\n\t\t\t\t * Now before we do this see, if we have a valid break reason, since\n\t\t\t\t * we could be still receiving incoming messages, even though we have halted.\n\t\t\t\t * This is definately the case with loading of multiple SWFs. After the load\n\t\t\t\t * we get info on the swf.\n\t\t\t\t */\n\t\t\t\tint tries = 3;\n\t\t\t\twhile (tries-- > 0 && m_session.suspendReason() == SuspendReason.Unknown)\n\t\t\t\t\ttry { Thread.sleep(100); processEvents(); } catch(InterruptedException ie) {}\n\n\t\t\t\tdumpHaltState(false);\n\t\t\t\tif (!m_requestResume)\n\t\t\t\t\tstop = true;\n\t\t\t}\n\t\t\telse if (nowait)\n\t\t\t{\n\t\t\t\tstop = true; // for DEBUG only\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/**\n\t\t\t\t * We are still running which is fine. But let's see if the user has\n\t\t\t\t * tried to enter something on the keyboard. If so, then we need to\n\t\t\t\t * stop\n\t\t\t\t */\n\t\t\t\tif (!m_keyboardInput.isEmpty() && System.getProperty(\"fdbunit\")==null) //$NON-NLS-1$\n\t\t\t\t{\n\t\t\t\t\t// flush the queue and prompt the user if they want us to halt\n\t\t\t\t\tm_keyboardInput.clear();\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tif (yesNoQuery(getLocalizationManager().getLocalizedTextString(\"doYouWantToHalt\"))) //$NON-NLS-1$\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tout(getLocalizationManager().getLocalizedTextString(\"attemptingToHalt\")); //$NON-NLS-1$\n\t\t\t\t\t\t\tm_session.suspend();\n\t\t\t\t\t\t\tm_requestHalt = true;\n\n\t\t\t\t\t\t\t// no connection => dump state and end\n\t\t\t\t\t\t\tif (!haveConnection())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdumpHaltState(false);\n\t\t\t\t\t\t\t\tstop = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (!m_session.isSuspended())\n\t\t\t\t\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"couldNotHalt\")); //$NON-NLS-1$\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(IllegalArgumentException iae)\n\t\t\t\t\t{\n\t\t\t\t\t\tout(getLocalizationManager().getLocalizedTextString(\"escapingFromDebuggerPendingLoop\")); //$NON-NLS-1$\n\t\t\t\t\t\tpropertyPut(NO_WAITING, 1);\n\t\t\t\t\t\tstop = true;\n\t\t\t\t\t}\n\t\t\t\t\tcatch(IOException io)\n\t\t\t\t\t{\n\t\t\t\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\t\t\t\targs.put(\"error\", io.getMessage()); //$NON-NLS-1$\n\t\t\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"continuingDueToError\", args)); //$NON-NLS-1$\n\t\t\t\t\t}\n\t\t\t\t\tcatch(SuspendedException se)\n\t\t\t\t\t{\n\t\t\t\t\t\t// lucky us, already stopped\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n//\t\tSystem.out.println(\"doContinue resume=\"+m_requestResume+\",isSuspended=\"+m_session.isSuspended());\n\t\t}\n\n\t\t// DEBUG ONLY: if we are not waiting then process some events\n\t\tif (nowait)\n\t\t\tprocessEvents();\n\t}", "public void run(){\n\tSystem.out.println(\"ServerListenerThread started!\");\n\t\t\t\twhile (parent.isWorking)\n\t\t\t\t{\n\n\t\t\t\t\tint t=0;\n\t\t\t\t\tString user = null,message=null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tt =Integer.parseInt(parent.inputStream.readLine());\n\t\t\t\t\t\tuser=parent.inputStream.readLine();\n\t\t\t\t\t\tmessage=parent.inputStream.readLine();\n\t\t\t\t\t\tif(t==MessageType.WILL)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\">\"+user+\" wants to play!\");\n\t\t\t\t\t\t\tparent.parent.addWaiter(parent,user);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(t==MessageType.PRIVATE || t==MessageType.MOVE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"Inside message from: \"+user);\n\t\t\t\t\t\t\tparent.parent.sendPlayed(t,user,message);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tparent.parent.sendMessage(t, user, message);\n\t\t\t\t\t\t\tif(!parent.socket.isConnected())break;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\n\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"Recevied a message from: \"+user+\": \"+message);\n\n\t\t\t\t}\n\t\t\t//END\n\t\t\tsynchronized(this)\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tparent.inputStream.close();\n\t\t\t\t\tparent.outputStream.close();\n\t\t \tparent.socket.close();\n\t\t \tSystem.out.println(\"ServerListenerThread closed!\");\n\t\t }\n\t\t catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t\t}\n}", "@Override\n\tpublic void run() {\n\t\twhile(running) {\n\t\t\ttry {\n\t\t\t\tsend(SseEmitter.event().comment(\"ping\"));\n\t\t\t\tThread.sleep(30000L);\n\t\t\t} catch (IOException e) {\n\t\t\t\tgestioneDisconnessione(e);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tgestioneDisconnessione(e);\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\tLOG.error(e.toString());\n\t\t\t}\n\t\t}\n\t}", "public void run(){\n\n while(Server.running){\n curTime = System.currentTimeMillis();\n\n if(turnGoing){\n \n if(curTime - lastTime >= ONE_MINUTE){\n lastTime = curTime;\n game.doTurn();\n\n sendTo(allUsers, \"<te>\");\n System.out.println(\"turn ended\");\n\n //scps\n sendTo(allUsers, \"\" + SCP0492.level);\n sendTo(allUsers, \"\" + game.getScps().size());\n Iterator<SCP0492> scpIterator = game.getScps().iterator(); \n while(scpIterator.hasNext()){\n SCP0492 curScp = scpIterator.next();\n sendTo(allUsers, curScp.getHealth() + \" \" + curScp.getMaxHealth() + \" \" + curScp.getX() + \" \" + curScp.getY() + \" \" + curScp.getAttackDamage());\n \n }\n\n //events\n sendTo(allUsers, \"\" + game.getEventsWithoutStonks().size());\n Iterator<Event> eIterator = game.getEventsWithoutStonks().iterator();\n while(eIterator.hasNext()){\n Event curEvent = eIterator.next();\n if(curEvent instanceof WholeGameEvent){\n sendTo(allUsers, curEvent.getClass().getSimpleName() + \" \" + curEvent.getLevel() + \" \" + curEvent.getTimeLeft());\n }else{\n sendTo(allUsers, curEvent.getClass().getSimpleName() + \" \" + curEvent.getLevel() + \" \" + curEvent.getTimeLeft() + \" \" + (int)(((AoeEvent)curEvent).getAoe().getX()) + \" \" + (int)(((AoeEvent)curEvent).getAoe().getY()));\n }\n }\n\n //buildings\n sendTo(allUsers, \"\" + game.getBuildings().size());\n Iterator<Building> bIterator = game.getBuildings().iterator();\n while(bIterator.hasNext()){\n Building curBuilding = bIterator.next();\n String send = curBuilding.getClass().getSimpleName() + \" \" + curBuilding.getInitialPrice() + \" \" + curBuilding.getMaxHealth() + \" \" + curBuilding.getHealth() + \" \" + curBuilding.getX() + \" \" + curBuilding.getY();\n if(curBuilding instanceof Residency){\n send = send + \" \" + ((Residency)curBuilding).getMaxCap();\n }else if(curBuilding instanceof Hospital){\n send = send + \" \" + ((Hospital)curBuilding).getMaxCapacity();\n }\n sendTo(allUsers, send); \n }\n\n //humans\n sendTo(allUsers, \"\" + game.getHumanMap().size());\n Iterator<Integer> humanKeyIterator = game.getHumanMap().keySet().iterator();\n while(humanKeyIterator.hasNext()){\n int key = humanKeyIterator.next();\n Human curHuman = game.getHumanMap().get(key);\n town.sendMessage(\"\" + key);\n String humanInfo = curHuman.getClass().getSimpleName() + \" \" + curHuman.getAge() + \" \" + curHuman.getHealth() + \" \" + curHuman.getX() + \" \" + curHuman.getY();\n if(curHuman instanceof Doctor){\n humanInfo += \" \" + ((Doctor)curHuman).getHealingAmount();\n }else if(curHuman instanceof Soldier){\n humanInfo = curHuman.getClass().getSimpleName() + \" \" + curHuman.getAge() + \" \" + curHuman.getHealth() + \" \" + curHuman.getMaxHealth() + \" \" + curHuman.getX() + \" \" + curHuman.getY() + \" \" + ((Soldier)curHuman).getAttackDamage();\n }else if(curHuman instanceof Spy){\n humanInfo += \" \" + ((Spy)curHuman).getSuccessRate() + \" \" + ((Spy)curHuman).getSus();\n }\n sendTo(allUsers, humanInfo);\n }\n\n //town supplies\n town.sendMessage(\"\" + game.getMoney());\n town.sendMessage(\"\" + game.getFood());\n //scp supplies\n scp.sendMessage(\"\" + game.getHume());\n \n //intel gathering\n if(game.gotIntel()){\n town.sendMessage(\"<i>\");\n town.sendMessage(\"\" + game.getHume());\n }\n\n //check for if either side has won\n if(game.checkScpWin()){\n sendTo(allUsers, \"<ge>\");\n scp.sendMessage(\"win\");\n town.sendMessage(\"lose\");\n Server.running = false;\n \n }else if(game.checkTownWin()){\n sendTo(allUsers, \"<ge>\");\n town.sendMessage(\"win\");\n scp.sendMessage(\"lose\");\n Server.running = false;\n }\n\n //In case of game ending because max turns reached\n if(game.getTurn() > Game.MAX_TURNS){\n sendTo(allUsers, \"<ge>\");\n sendTo(allUsers, \"tie\");\n Server.running = false;\n }\n\n turnGoing = !turnGoing;\n }\n }else{\n if(curTime - lastTime >= ONE_MINUTE/2){\n lastTime = curTime;\n game.resetTurnChanges();\n lastTime = curTime;\n sendTo(allUsers, \"<ts>\");\n System.out.println(\"turn started\");\n turnGoing = !turnGoing;\n }\n }\n }\n }", "public void run() {\n try {\n BufferedReader serverInput = new BufferedReader(\n new InputStreamReader(connectionSock.getInputStream()));\n while (running) {\n // Get data sent from the server\n String serverText = serverInput.readLine();\n if (serverInput != null) {\n //System.out.println(\"CLIENT DEBUG: \" + serverText);\n parseResponse(serverText);\n }\n }\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.toString());\n }\n }", "private void runServer() {\n while(true) {\n // This is a blocking call and waits until a new client is connected.\n Socket clientSocket = waitForClientConnection();\n handleClientInNewThread(clientSocket);\n } \n }", "public void run() {\n\t\t\twhile(true){\n\t\t\t\t//recieve new state\n\t \t \t\t//StoryFactory.getInstance().setAllLogs((ArrayList<ArrayList<UserStory>>) inputFromServer.readObject());\n\t\t\t}\t\t \n\t\t}", "public void run() {\n \twhile(true) {\n \t \tsetupGame();\n \tplayGame();\n \t}\n }", "@Override\n public void run(){\n while(true){\n ArrayList<Thread> threads = new ArrayList<Thread>();\n \n //construct the string\n String message = String.format(\"hb|%d|%d\", serverPort, sequence);\n\n //have a thread to send heart beat\n for(ServerInfo peer : serverStatus.keySet()){\n //pass it to the client runnable\n Thread thread = new Thread(new SenderRunnable(peer, message));\n threads.add(thread);\n thread.start();\n }\n\n //wait for the completion\n for(Thread thread : threads){\n try{\n thread.join();\n }catch(Exception e){}\n \n \n }\n\n //increment the sequence by 1\n sequence += 1;\n\n //sleep for 2 secs\n try{\n Thread.sleep(2000);\n }catch(InterruptedException e){\n //System.err.println(e);\n }\n\n }\n }", "public void run() {\n while (true) { \n \t\ttry {\n \t\t\tString line=br.readLine();\n\t\t\t\t\t\t\th.obtainMessage(RECIEVE_MESSAGE, line).sendToTarget();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n \n }\n }", "public void startserver()\r\n\t{\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\twhile(true)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tSocket clientsocket = serversocket.accept();\r\n\t\t\t\tif(clientsocket.isConnected())\r\n\t\t\t\t{\r\n\t\t\t\t\tDataOutputStream wdata = new DataOutputStream(clientsocket.getOutputStream());\r\n\t\t\t\t\tDataInputStream rdata = new DataInputStream(clientsocket.getInputStream());\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t// read message from client and add new player\r\n\t\t\t\t\tJsonObject newplayrejson = gson.fromJson(rdata.readUTF(), JsonObject.class);\r\n\t\t\t\t\tint mode = newplayrejson.get(\"mode\").getAsInt();\r\n\t\t\t\t\tclientaddresslist.get(mode).add(clientsocket.getInetAddress());\r\n\t\t\t\t\tString profession = newplayrejson.get(\"profession\").getAsString();\r\n\t\t\t\t\tString teamname;\r\n\t\t\t\t\tif(mode == 0)\r\n\t\t\t\t\t\tteamname = \"deathMatch\";\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(teamcount)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tteamname = \"teamBlue\";\r\n\t\t\t\t\t\t\tif(king[0] == -1)\r\n\t\t\t\t\t\t\t\tking[0] = idcount[mode];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tteamname = \"teamRed\";\r\n\t\t\t\t\t\t\tif(king[1] == -1)\r\n\t\t\t\t\t\t\t\tking[1] = idcount[mode];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tteamcount = !teamcount;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tcdc.collideObjectManager[mode].addCharacter(collideObjecctClass.valueOf(profession), idcount[mode], randposition(), newplayrejson.get(\"name\").getAsString(), TeamName.valueOf(teamname));\r\n\t\t\t\t\tclientidlist.get(mode).add(idcount[mode]);\r\n\t\t\t\t\t++idcount[mode];\r\n\t\t\t\t\t++playercount[mode];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// sending collideobject list to client\r\n\t\t\t\t\twdata.writeInt(idcount[mode] - 1);\r\n\t\t\t\t\twdata.flush();\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tfor(CollideObject object : cdc.collideObjectManager[mode].collideObjectList)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\twdata.writeUTF(object.getClass().getName());\r\n\t\t\t\t\t\twdata.writeUTF(gson.toJson(object));\r\n\t\t\t\t\t\twdata.flush();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\twdata.writeUTF(\"done\");\r\n\t\t\t\t\twdata.flush();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// send king id if mode is kingkill\r\n\t\t\t\t\tif(mode == 1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\twdata.writeInt(king[0]);\r\n\t\t\t\t\t\twdata.writeInt(king[1]);\r\n\t\t\t\t\t\twdata.flush();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tThread thread = new Thread(new clientmanager(clientsocket , this , mode));\r\n\t\t\t\t\tthread.start();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n public void run() {\n\n startPingTimer();\n String read = \"\";\n\n try {\n while ((read = in.readLine()) != null){\n\n //System.out.println(\"[CLIENT] Received: \" + read);\n messageHandler(read);\n\n }\n closeConnection();\n\n }catch (IOException e){\n\n System.out.println(\"[CLIENT] \" + e.getMessage());\n System.out.println(\"[CLIENT] Connection closed.\");\n\n }\n\n }", "public void run() {\n\t\ttry {\n\t\t\tout = new PrintWriter(client.getOutputStream(), true);\n\t\t\tin = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\ts.getMessage(this, inputLine);\n\t\t\t\tSystem.out.println(inputLine);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection to host\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\tThread serverWorker = new Thread(tcpServer); \n\t\tserverWorker.start(); \n\t\t\n\t\tThread clientManagerWorker = new Thread(clientManager);\n\t\tclientManagerWorker.start();\n\t\t\n\t\twhile(true)\n\t\t{\n\t\t\tif (tcpServer.newPlayer() == true)\n\t\t\t{\n\t\t\t\tnewClients = tcpServer.getNewClients();\n\t\t\t\tfor (Client client : newClients)\n\t\t\t\t{\n\t\t\t\t\tlog.log(\"GameEngine: Adding new client #\" + clients.size());\n\t\t\t\t\tgameState.addPlayer(client); \n\t\t\t\t\tclients.add(client); \n\t\t\t\t}\n\t\t\t\tnewClients.clear();\n\t\t\t}\n\t\t\t\n\t\t\tgameState.updatePlayers(clientManager.getPending()); \n\t\t\tgameState.update();\n\t\t\t\n\t\t\tString gameString = gameState.toJson();\n\t\t\t//System.out.println(gameString);\n\t\t\t//System.out.println(\"gameString length: \" + gameString.length());\n\t\t\ttry {\n\t\t\t\tsendUpdate(gameString, gameState.sequenceNumber);\n\t\t\t} catch (IOException e1) {\n\t\t\t\tlog.log(\"Failed to send update to clients\");\n\t\t\t\te1.printStackTrace();\n\t\t\t} \n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\tThread.sleep(15);\n\t\t\t} \n\t\t\tcatch (InterruptedException e) \n\t\t\t{\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n\t\tThread t = Thread.currentThread();\n\t\twhile (!t.isInterrupted()) {\n\t\t\ttry {\n\t\t\t\t//boolean status = process();\n\t\t\t\tMessage message = receive();\n\t\t\t\tif (t.isInterrupted())\n\t\t\t\t\treturn;\n\t\t\t\t//if (!status)\n\t\t\t\t//\treturn;\n\t\t\t\tif (socket == null)\n\t\t\t\t\treturn;\n\t\t\t\tThread.yield();\n\t\t\t} catch (Exception e) {\n\t\t\t\t//_monitor.log(e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void run(){\n\t\t\n\t\twhile(true){\n\t\t\ttry {\n\t\t\t\tSocket s = listener.accept();\n\t\t\t\tnew ServerConnection(chatServ, s).start();\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn; // stop listening\n\t\t\t}\n\t\t}\n\t}", "public void startToRecivePlayers() {\n while (numberOfPlayers == 0) {\n controller.getSpf().getLabel1().setText(\"Ingresa el numero de jugadores\");\n }\n try {\n ss = new ServerSocket(8888);\n Thread.sleep(100);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n controller.getSpf().getLabel1().setText(\"Recibido\");\n run();\n }", "public void run() {\n\t\t// TODO Auto-generated method stub\n\t\twhile(true){\n\t\t\t\n\t\t\tif (DEBUG){\n\t\t\t\tSystem.out.println(\"Server_thread\");\n\t\t\t}\n\t\t\t\n\t\t\ttry{\t\n\t\t\t\trun_list.add(new ClientHandler(serversocket.accept()));\n\t\t\t\tnew Thread (run_list.get(run_list.size()-1)).start();;\n\t\t\t\n\t\t\t\n\t\t}\t\n\t\tcatch (IOException ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\ttry{\n\t\t\tThread.sleep(10);\n\t\t}\n\t\tcatch (InterruptedException ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t}\n\t}", "public void run() {\n while (true) {\n try {\n System.out.println(\"Attempting to connect @ \" + serverIP + \":\" + serverPort);\n this.socket = new Socket(serverIP, serverPort);\n System.out.println(\"Connected to Server!\");\n BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream(), \"UTF-8\"));\n out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream(), \"UTF-8\")), true);\n PingThread pt = new PingThread(out);\n pt.start();\n //Send LOGIN_INFORM Command\n System.out.println(\"Transmitting Login Credentials...\");\n String loginInfo = \"LOGIN_INFORM<<\" + name + \":\" + email + \":\" +key + \":\"+ room + \":\" + language;\n out.println( loginInfo );\n try {\n while (true) {\n String cmd = in.readLine();\n String[] parts = cmd.split(\"<<\");\n String cmdType = parts[0];\n String metaData = parts[1];\n\n \n // All GAME_INITIALIZE commands must be echoed to \"accept\" a challenge\n if (cmdType.equals(\"GAME_INITIALIZE\")) {\n out.println(cmd);\n }\n // The timing parameter is not used by most challenges and will likely\n // be removed from a public, downloadable wrapper.\n if (cmdType.equals(\"ACTION_REQUEST\")){\n startTime = System.currentTimeMillis();\n }\n // Server Messages should be displayed to the console.\n // Game data is never sent using this command\n if (cmdType.equals(\"SERVER_MESSAGE\")) {\n System.out.println(\"ServerMSG : \" + metaData);\n } else {\n MessageQueue.add(cmd);\n }\n }\n } catch (IOException e) {\n if (debug == 1) {\n e.printStackTrace();\n }\n } catch (Exception e) {\n if (debug == 1) {\n e.printStackTrace();\n }\n } finally {\n try {\n this.socket.close();\n pt.interrupt();\n System.out.println(\"Disconnected From Server. Retrying in 5s...\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n if (debug == 1) {\n e.printStackTrace();\n }\n }\n }\n }", "@Override\n public void run() {\n (new Thread(game)).start();\n\n while (running) {\n // Receive the package\n try {\n socket.receive(receive);\n } catch (IOException e) {\n System.out.println(\"Room \" + (PORT - DEFAULT_PORT) / 2 + \"'s socket stopped receiving UDP packets.\");\n return;\n }\n received = receive.getData();\n\n try {\n received = Encryption.decrypt(received);\n } catch (Exception e) {\n e.printStackTrace();\n }\n // Case when packet specifies key info\n if (received[0] == KEY_EVENT) {\n int eventKeyCode = received[2];\n game.keyPress(new NetworkKeyEvent(eventKeyCode, received[1] == KEY_PRESSED, players.get(receive.getAddress()).getCar()));\n if (received[1] == KEY_PRESSED && eventKeyCode == KeyCode.SPACE)\n sendPowerup(players.get(receive.getAddress()).getCar());\n }\n }\n }", "public void run() {\n\t\ttry {\n\t\t\tinternalSocket = new Socket(\"localhost\", getPort());\n\t\t\tin = new ObjectInputStream(socket.getInputStream());\n\n\t\t\tinternalOut = new ObjectOutputStream(\n\t\t\t\t\tinternalSocket.getOutputStream());\n\t\t} catch (IOException e1) {\n\t\t\tconsoleOut(MESSAGE_ERROR_EXEC);\n\t\t\treturn;\n\t\t}\n\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tString message = in.readUTF();\n\n\t\t\t\t// take message and redirect this message to\n\t\t\t\t// second console\n\t\t\t\tsendMessage(message);\n\n\t\t\t\tif (message.equalsIgnoreCase(\"bye\")) {\n\t\t\t\t\tclose();\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} catch (Exception efEx) {\n\t\t\t\tconsoleOut(MESSAGE_ERROR_EXEC);\n\t\t\t\ttry {\n\t\t\t\t\tclose();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tconsoleOut(MESSAGE_ERROR_EXEC);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n\t\t\tPrintWriter out = null;\n\t\t\ttry {\n\n\t\t\t\t/*\n\t\t\t\t * byte[] buf = new byte[2048]; DatagramPacket packet = new\n\t\t\t\t * DatagramPacket(buf, buf.length);\n\t\t\t\t * System.out.print(\"Server: Receiving\\n\");\n\t\t\t\t * incomingUDP.receive(packet);\n\t\t\t\t * \n\t\t\t\t * System.out.print(\"Receiving successful packet with :\" +\n\t\t\t\t * packet.getLength() + \"kb\");\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tout = new PrintWriter(new OutputStreamWriter(\n\t\t\t\t\t\tincoming.getOutputStream()));\n\n\t\t\t\t// inform the server of this new client\n\t\t\t\tServerNMS.this.addClient(out);\n\n\t\t\t\tout.print(\"Welcome to AndyChat! \");\n\t\t\t\tout.println(\"Enter BYE to exit.\");\n\t\t\t\tout.flush();\n\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tincoming.getInputStream()));\n\t\t\t\tfor (;;) {\n\t\t\t\t\tString msg = in.readLine();\n\t\t\t\t\tif (msg == null) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msg.trim().equals(\"BYE\"))\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tSystem.out.println(\"Received: \" + msg\n\t\t\t\t\t\t\t\t+ \"With size is: \" + msg.getBytes().length\n\t\t\t\t\t\t\t\t+ \"bytes\");\n\t\t\t\t\t\t// broadcast the receive message\n\t\t\t\t\t\tServerNMS.this.broadcast(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tincoming.close();\n\n\t\t\t\tServerNMS.this.removeClient(out);\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (out != null) {\n\t\t\t\t\tServerNMS.this.removeClient(out);\n\t\t\t\t}\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "@Override\n public void startTimeLoop() {\n MyLog.log(\"startTimeLoop::\");\n // handler.sendEmptyMessage(5);\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tInputStream inputStream = mSocket.getInputStream();\n\t\t\tint leng;\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tByteArrayBuffer[] data = {new ByteArrayBuffer(1024 * 32)};\n\t\t\twhile((leng = inputStream.read(buffer)) != -1 && mConected)\n\t\t\t{\n\t\t\t\tif(mConected)\n\t\t\t\t{\n\t\t\t\t\tdata[0].append(buffer, data[0].length(), leng);\n\t\t\t\t\tprocessMessage(data);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(TAG, \"Cannot set InputStream\\nNetwork error\");\n\t\t\tevent.connectionLost();\n\t\t} catch (ProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tevent.connectionLost();\n\t\t}\n\t}", "public void run(){\n\t\ttry{\n\t\t\t// Get client socket.\n\t\t\tSocket client = server.getClientSocket();\n\t\t\t// Get the inputstream from the socket\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\tString line;\n\t\t\twhile(true){\n\t\t\t\tif(client.isClosed()){\n\t\t\t\t\tSystem.out.println(\"The client is offline. Chat finished.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tline= reader.readLine();\n\t\t\t\t\tif(line.equals(\"bye\")){\n\t\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t\t\tSystem.out.println(\"Chat finished.\");\n\t\t\t\t\t\tclient.close();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Client: \");\n\t\t\t\t\t\tSystem.out.println(line);\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}\n\t\t\t\n\t\t\treader.close();\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\t// program loop\n\t\t\trender();\n\t\t\tif (tim.shouldCallHome()) {\n\t\t\t\t// check in with server and reset the timer so that it doesn't\n\t\t\t\t// check in until we need to\n\t\t\t\tnew Thread(Main.checkinRunnable).start();\n\t\t\t\ttim.resetCallHome();\n\t\t\t}\n\t\t\t// System.out.println(tim.getTime());\n\t\t}\n\n\t}", "public void run() {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"SERVER: all players connected!\");\n\t\t\t\t\n\t\t\t\t//build the info message for clients\n\t\t\t\tString gameConfig = \"INFO \" + Integer.toString(pitsPerPlayer) + \" \" + Integer.toString(seedsPerPit)\n\t\t\t\t + \" \" + Integer.toString(timerValMils);\n\t\t\t\t\n\t\t\t\t//append first/second character\n\t\t\t\tif (playerNum == 1) {\n\t\t\t\t\tgameConfig += \" F\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tgameConfig += \" S\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//append random/uniform distro character\n\t\t\t\tif (randomDistro) {\n\t\t\t\t\tgameConfig += \" R\";\n\t\t\t\t\tcurrentGame = new kalah(pitsPerPlayer, seedsPerPit, randomDistro);\n\t\t\t\t\t\n\t\t\t\t\tArrayList<Integer> randomSeeds = currentGame.getP1pits();\n\t\t\t\t\tfor (int i = 0; i < randomSeeds.size(); i++) {\n\t\t\t\t\t\tgameConfig += \" \" + Integer.toString(randomSeeds.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tgameConfig += \" S\";\n\t\t\t\t\tcurrentGame = new kalah(pitsPerPlayer, seedsPerPit, randomDistro);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//send to server \n\t\t\t\twriter.println(gameConfig);\n\t\t\t\t\n\t\t\t\t//process client commands (game loop for each client)\n\t\t\t\twhile (true) {\n\t\t\t\t\t\n\t\t\t\t\tString clientMessage = reader.readLine();\n\t\t\t\t\t\n\t\t\t\t\t//ignore empty commands\n\t\t\t\t\tif (!clientMessage.equals(null) && !clientMessage.equals(\"\")) {\n\t\t\t\t\t\tif (clientMessage.startsWith(\"MOVE\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"SERVER: Client \" + playerNum + \" sent move: \" + clientMessage.substring(5));\n\n\t\t\t\t\t\t\tint clientMove = Integer.parseInt(clientMessage.substring(5));\n\n\t\t\t\t\t\t\tif (currentGame.move(clientMove)) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"SERVER: acknowledged client \" + playerNum + \"'s \" + \"move: \" + clientMessage.substring(5));\n\t\t\t\t\t\t\t\twriter.println(\"OK\");\n\n\t\t\t\t\t\t\t\t//send move to other client to keep their game in sync\n\t\t\t\t\t\t\t\topponent.writer.println(\"MOVE \" + clientMessage.substring(5));\n\t\t\t\t\t\t\t\tSystem.out.println(\"SERVER: Sent move \" + clientMessage.substring(5) + \" to client \" + opponent.playerNum);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//check for winner \n\t\t\t\t\t\t\t\tcurrentGame.checkGameOver();\n\t\t\t\t\t\t\t\tif (currentGame.gameOver) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"SERVER: GAME OVER\");\n\t\t\t\t\t\t\t\t\tif (currentGame.winner == 0) {\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"SERVER: Tie!\");\n\t\t\t\t\t\t\t\t\t\twriter.println(\"TIE\");\n\t\t\t\t\t\t\t\t\t\topponent.writer.println(\"TIE\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (playerNum == currentGame.winner) {\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"SERVER: Player \" + playerNum + \" wins!\");\n\t\t\t\t\t\t\t\t\t\twriter.println(\"WINNER\");\n\t\t\t\t\t\t\t\t\t\topponent.writer.println(\"LOSER\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"SERVER: Player \" + playerNum + \" wins!\");\n\t\t\t\t\t\t\t\t\t\twriter.println(\"LOSER\");\n\t\t\t\t\t\t\t\t\t\topponent.writer.println(\"WINNER\");\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} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\"SERVER: rejected client's move: \" + clientMessage.substring(5));\n\t\t\t\t\t\t\t\twriter.println(\"ILLEGAL\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException e) {\n\t\t\t\tSystem.out.println(\"Player error: \" + e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\ttry {\n\t\t\t\t\tsocket.close();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n public void run() {\n\n while (true/* && Game.connection.setting == false*/) {\n try {\n this.sleep(Game.ENEMY_DELAY);\n connect();\n createPosition();\n sendData = sendString.getBytes();\n\n for (Entry<Integer, InetAddress> entry : portMap.entrySet()) {\n\n clientPort = entry.getKey();\n clientIP = entry.getValue();\n\n DatagramPacket sendPacket = new DatagramPacket(sendData, sendData.length, clientIP, clientPort);\n udpServerSocket.send(sendPacket);\n }\n\n } catch (InterruptedException e) {\n System.out.println(\"Server Error sleep()\");\n } catch (IOException e) {\n System.out.println(\"Server Error sending new enemy position\");\n }\n }\n }", "public void run(){\n while(!playersConnected){\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n System.out.println(\"KRECEM DALJE\");\n\n\n try {\n gameEndpointService.setPlayersRoll(room);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (EncodeException e) {\n e.printStackTrace();\n }\n gameEndpointService.setOnMove(room,hashMap);\n try {\n gameEndpointService.sendPlayersWhoIsOnMove(room,hashMap,currentMove);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (EncodeException e) {\n e.printStackTrace();\n }\n\n\n\n while(true){\n\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if(room.IsOnMovePlayer()==true){\n System.out.println(\"Ukinuo sam se \");\n currentMove++;\n System.out.println(\"Trenutni potez je \"+currentMove);\n if(currentMove==room.getNumberOfPlayers()+1){\n System.out.println(\"Opet sam 1\");\n currentMove=1;\n try {\n gameEndpointService.sendPlayersWhoIsOnMove(room,hashMap,currentMove);\n room.setOnMovePlayer(false);\n\n } catch (IOException e) {\n e.printStackTrace();\n } catch (EncodeException e) {\n e.printStackTrace();\n }\n\n }else{\n try {\n gameEndpointService.sendPlayersWhoIsOnMove(room,hashMap,currentMove);\n room.setOnMovePlayer(false);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (EncodeException e) {\n e.printStackTrace();\n }\n }\n\n }\n\n }\n\n }", "public void run() {\n\t\t\twhile (running || !messages_to_send.isEmpty()) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsend();\r\n\t\t\t\t\tread();\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tbluetooth_show_message(\"Error! Sending or Reading failed. Reason: \" + e);\r\n\t\t\t\t\tcancel();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch(IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\twhile (true) {\n\t\t\t\tLog.i(\"pt\", \"looping!\");\n\t\t\t\tif (receivedProfile == true) {\n\t\t\t\t\tString profile = \"Age: \" + op.getAge() + \" / Gender: \" + op.getGender() + \"\\nCountry: \" + op.getCountry() + \" \\nInterest: \" + op.getInterest();\n\t\t\t\t\t//al.add(new Chats(profile, 5));\n\t\t\t\t\tHM.MessageSender(mainHandler, chm.getSuccessMessage() + profile);\n\t\t\t\t\t//scrollToBottomHandler.sendEmptyMessage(1);\n\t\t\t\t\treceivedProfile = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void run() {\r\n String request = \"\";\r\n\r\n try {\r\n /**\r\n * The ClientConnectionHandler constantly waits for requests from the client. Requests are the initial message\r\n * that the client sends. This initial message determines how the server receives the messages that come after\r\n * it (if there are any).\r\n */\r\n while (isOpen) {\r\n request = readMessage();\r\n processRequest(request);\r\n }\r\n clientSocket.close();\r\n System.out.println(\"Client #\" + clientNumber + \" has closed\");\r\n } catch (Exception e) {}\r\n }", "private void loop() throws InterruptedException\n\t{\n\t\tMessage message;\n\t\ttry\n\t\t{\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\t/* Checking a queue */\n\t\t\t\t\tmessage = controllerToViewQueue.take();\n\t\t\t\t\tif(message == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tswitch(message.getValveResponse())\n\t\t\t\t\t{\n\t\t\t\t\t\tcase REDRAW:\n\t\t\t\t\t\t\tredraw(message.getData());\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\t\tcase CHANGE_NEXT: \n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setNext(message.getAdd());\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase SCORES_UPDATE:\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setScores(message.getAdd());\n\t\t\t\t\t\t\tview.getInGamePanel().setScoreLabel(Integer.toString(message.getAdd()));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase LEVEL_UPDATE:\n\t\t\t\t\t\t\tview.getInGamePanel().setLevelLabel(Integer.toString(message.getAdd()));\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLevel(message.getLevel());\n\t\t\t\t\t\t\tbreak;\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase LOST:\n\t\t\t\t\t\t\tlost = true;\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLost(lost);\n\t\t\t\t\t\t\tview.getInGamePanel().setGameStart(false);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase WIN:\n\t\t\t\t\t\t\twinLevel = true;\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setWinLevel(winLevel);\n\t\t\t\t\t\t\tview.getInGamePanel().setGameStart(false);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase GET_NEWGAME:\n\t\t\t\t\t\t\tlost = true;\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLost(lost);\n\t\t\t\t\t\t\tview.getInGamePanel().setGameStart(false);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase INFO_UPDATE:\n\t\t\t\t\t\t\tlost = false;\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLost(lost);\n\t\t\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setScores(message.getAdd());\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLevel(message.getLevel());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getInGamePanel().setScoreLabel(Integer.toString(message.getAdd()));\n\t\t\t\t\t\t\tview.getInGamePanel().setLevelLabel(Integer.toString(message.getLevel()));\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault: \n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\tcatch (InterruptedException e) \n\t\t\t\t{\n\t\t\t\t}\n\t}", "public void loop() {\n try {\n Mail<T> mail = mailBox.remove();\n\n actor.setSender(mail.getSender());\n actor.receive(mail.getMessage());\n } catch (InterruptedException e) {\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\t\n\t\t\t\t\tlong time = System.currentTimeMillis();\n\t\t\t\t\tgameLoop();\n\t\t\t\t\t\n\t\t\t\t\tlong waitTime = 100 - time;\n\t\t\t\t\t\n\t\t\t\t\tif(waitTime < 10){\n\t\t\t\t\t\t\n\t\t\t\t\t\twaitTime = 10;\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(waitTime);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void mainLoop() {\r\n while (isRunning()) {\r\n update();\r\n }\r\n }", "@Override\n\t\tpublic void run() {\n\t\t\twhile (!endFlag) {\n\t\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\t\tif (endTime - touchStartTime > 6000) {\n\t\t\t\t\tMessage msg = handler.obtainMessage();\n\t\t\t\t\tmsg.what = 0;\n\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void run()\r\n\t\t{\n\t\t\ttheVMKClient.sendMessageToServer(m);\r\n\t\t}", "public void run() {\n\t\tString fromServer = null;\r\n\t\ttry {\r\n\t\t\twhile((fromServer = reader.readLine()) != null) {\r\n\t\t\t\tSystem.out.println(fromServer);\r\n\t\t\t}\r\n\t\t}catch(IOException e) {\r\n\t\t\t//TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void run() {\n while (!stoppen) {\n serveer(balie.pakMaaltijd());\n }\n }", "@Override\r\n\tpublic void run() {\r\n\t\twhile(true){\r\n\t\t\ttry {\r\n\t\t\tLiftEvent event = connection.receive();\r\n\t\t\tLiftAction liftAction = eventActionMap.get(event.getClass());\r\n\r\n\t\t\tliftAction.execute(event);\r\n\t\t\t} catch(Exception e) {\r\n\t\t e.printStackTrace();\r\n\t\t throw new RuntimeException(e);\r\n\t\t } \r\n\t\t}\t\r\n\t}", "@Override\n public void run(){\n try {\n while(true) {\n Thread.sleep(10);\n\n InputStream inputStream = socket.getInputStream();\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));\n OutputStream outputStream = socket.getOutputStream();\n PrintWriter printWriter = new PrintWriter(outputStream, true);\n\n // Konwersja ze strumienia na stringa\n String fromClient = bufferedReader.readLine();\n if(fromClient != null) {\n\n System.out.println(\"From client: \" + fromClient);\n String serverResponse = Commands.serverAction(fromClient);\n printWriter.println(serverResponse);\n printWriter.flush();\n System.out.println(\"Server respond: \" + serverResponse);\n break;\n\n }\n }\n }catch (IOException | InterruptedException e) {\n System.out.println(\"Connection lost\");\n try {\n socket.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n\n\n }", "@Override\r\n\tpublic void run() {\n\t\twhile (running) {\r\n\t\t\ttry {\r\n\t\t\tThread.sleep(INTERVAL);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\tLog.e(\"Jogo\", \"GameLoop Finalizado!\");\r\n\t\t\t}\r\n\t\t\tupdate();\r\n\t\t\t}\r\n\t\t\r\n\t}", "public void start() {\n try {\n Socket socket = new Socket(conf.getServerIp(), conf.getServerPort());\n\n java.io.InputStream is = socket.getInputStream();\n BufferedReader reader = new BufferedReader(new java.io.InputStreamReader(is));\n\n readerThread = new MessageReader(reader);\n new Thread(readerThread).start();\n\n java.io.OutputStream os = socket.getOutputStream();\n PrintWriter writer = new PrintWriter(os);\n writerThread = new MessageWriter(writer);\n new Thread(writerThread).start();\n\n while (serverMessages.empty()) {\n //Do nothing\n }\n\n ServerMessage serverMessage = serverMessages.pop();\n if (!serverMessage.getMessageType().equals(ServerMessage.MessageType.HELO)) {\n System.out.println(\"Expecting a HELO message but received: \" + serverMessage.toString());\n } else {\n System.out.println(\"Please fill in your username: \");\n Scanner scanner = new Scanner(System.in);\n String username = scanner.nextLine();\n\n\n ClientMessage heloMessage = new ClientMessage(ClientMessage.MessageType.HELO, username);\n clientMessages.push(heloMessage);\n\n while (serverMessages.empty()) {\n }\n\n\n isConnected = validateServerMessage(heloMessage, serverMessages.pop());\n if (!isConnected) {\n System.out.println(\"Error logging into server\");\n } else {\n System.out.println(\"Successfully connected to server.\");\n System.out.println(\"(Type '/quit' to close connection and stop application.)\");\n System.out.println(\"Type a broadcast message: \");\n nonblockReader = new NonblockingBufferedReader(new BufferedReader(new java.io.InputStreamReader(System.in)));\n\n\n while (isConnected) {\n String line = nonblockReader.readLine();\n if (line != null) {\n ClientMessage clientMessage;\n if (line.equals(\"/quit\")) {\n clientMessage = new ClientMessage(ClientMessage.MessageType.QUIT, username + \" left the server\");\n isConnected = false;\n\n Thread.sleep(500L);\n } else if (line.startsWith(\"/msg\") && line.split(\" \").length > 1) {\n //Split the message first\n String[] splittedline = line.split(\" \");\n String senderUsername = splittedline[1].toLowerCase();\n\n if (!senderUsername.equalsIgnoreCase(username)) {\n line = line.replace(\"/msg \" + splittedline[1] + \" \", \"\");\n\n //Check if we have an encryptionsession with the user or not\n if (encryptionSessionHashMap.containsKey(senderUsername)) {\n //We have an encryptionsession, so we can just send the message\n String encryptedLine = encryptionSessionHashMap.get(senderUsername).encryptMessage(line);\n clientMessage = new ClientMessage(ClientMessage.MessageType.ENCR, senderUsername + \" \" + encryptedLine);\n System.out.println(\"(You -> \" + senderUsername + \"): \" + line);\n } else {\n //We don't have an encryptionsession yet, so we create one\n EncryptionSession encryptionSession = new EncryptionSession();\n encryptionSessionHashMap.put(senderUsername, encryptionSession);\n clientMessage = new ClientMessage(ClientMessage.MessageType.KEYS, senderUsername + \" \" + encryptionSession.getPublicKey());\n savedMessage.put(senderUsername, line);\n }\n } else {\n System.out.println(\"You cannot send a message to yourself\");\n clientMessage = null;\n }\n } else if (line.startsWith(\"/file\") && line.split(\" \").length == 3) {\n //Split the message first\n String[] splitLine = line.split(\" \");\n String senderUsername = splitLine[1].toLowerCase();\n\n if (!senderUsername.equalsIgnoreCase(username)) {\n String fileBase64String = new FileTransfer(splitLine[2], senderUsername).sendFile();\n clientMessage = new ClientMessage(ClientMessage.MessageType.FILE, fileBase64String);\n System.out.println(\"You have send \" + splitLine[2] + \" to \" + senderUsername);\n } else {\n System.out.println(\"You cannot send a file to yourself\");\n clientMessage = null;\n }\n\n } else {\n clientMessage = new ClientMessage(ClientMessage.MessageType.BCST, line);\n System.out.println(line);\n }\n\n if (clientMessage != null) {\n clientMessages.push(clientMessage);\n }\n }\n if (!serverMessages.empty()) {\n ServerMessage received = serverMessages.pop();\n\n\n if (received.getMessageType().equals(ServerMessage.MessageType.BCST)) {\n System.out.println(received.getPayload());\n }\n\n //Check if we received an encrypted message\n else if (received.getMessageType().equals(ServerMessage.MessageType.ENCR)) {\n //Split the message first\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String encryptedMessage = splitMessage[1];\n\n //If we have a session with this user, we can decrypt the message\n if (encryptionSessionHashMap.containsKey(sender)) {\n System.out.println(\"(\" + sender + \" -> You): \" + encryptionSessionHashMap.get(sender).decryptMessage(encryptedMessage));\n }\n }\n\n //If this is the first time, we have to share keys\n else if (received.getMessageType().equals(ServerMessage.MessageType.KEYS)) {\n //Split the message first\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String encryptedKey = splitMessage[1];\n\n //Check if we send the first message or not\n if (encryptionSessionHashMap.containsKey(sender)) {\n encryptionSessionHashMap.get(sender).decryptKey(encryptedKey);\n\n //After saving the aes key, we have to resend our first message\n String msg = savedMessage.get(sender);\n if (msg != null) {\n String encryptedLine = encryptionSessionHashMap.get(sender).encryptMessage(msg);\n ClientMessage responseMessage = new ClientMessage(ClientMessage.MessageType.ENCR, sender + \" \" + encryptedLine);\n clientMessages.push(responseMessage);\n System.out.println(\"(You -> \" + sender + \"): \" + msg);\n savedMessage.remove(sender);\n }\n }\n\n //We send our aes key when we didn't send the message first\n else {\n EncryptionSession encryptionSession = new EncryptionSession();\n encryptionSessionHashMap.put(sender, encryptionSession);\n String aesKey = encryptionSession.encryptKey(encryptedKey);\n\n ClientMessage responseMessage = new ClientMessage(ClientMessage.MessageType.KEYS, sender + \" \" + aesKey);\n clientMessages.push(responseMessage);\n }\n }\n\n //Check if the message is a file\n else if (received.getMessageType().equals(ServerMessage.MessageType.FILE)) {\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String base64String = splitMessage[2];\n\n new FileTransfer(base64String, splitMessage[0], true).readFile();\n System.out.println(\"You have received \" + splitMessage[1] + \" from \" + sender);\n }\n }\n }\n }\n\n disconnect();\n System.out.println(\"Client disconnected!\");\n }\n } catch (IOException e) {\n System.out.println(\"Ouch! Could not connect to server!\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void loop(){\n\t}", "public void run() {\n\t\tString line = null;\n\t\tMessage message;\n\t\tBufferQueueElement<Message> messageList = new BufferQueueElement<Message>();\n\t\tlong t1 = System.nanoTime();\n\t long t2 = 0;\n\t\ttry {\n\t\t\twhile ((line = messageIO.readMessage()) != null) {\n\t\t\t\tt2 = System.nanoTime();\n\t\t\t\t/* Ok, we can close the stream. But process the last message list. */\n\t\t\t\tif (CLOSE_STREAM.equals(line)) {\n\t\t\t\t\tmessageList.setStreamClosed(true);\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tbreak;\n\t\t\t\t} else if((t2 - t1) < ONE_SECOND) {\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t} else {\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tmessageList = new BufferQueueElement<Message>();\n\t\t\t\t\tt1 = System.nanoTime();\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public void run(){\n //wait for clients to connect to the server and start a new thread,\n //then continue waiting.\n while(true) {\n //create the packet to accept a message\n byte[] buf = new byte[bufSize];\n DatagramPacket packet = new DatagramPacket(buf, buf.length);\n try {\n //receive a message from the client\n datagramSocket.receive(packet);\n } catch (IOException e) {\n System.err.println(\"Error receiving datagram packet\");\n } catch (Exception e){\n serverGUI.displayText(\"Error: There is an issue with your connection. Please restart the program.\");\n }\n //Start a new thread for this client\n ServerThread servant = new ServerThread(mainServer, packet, serverGUI);\n servant.start();\n }\n }", "public void run() {\n \t\twhile (true) {\n \t\t\ttry {\n \t\t\t\tif (Minecraft.theMinecraft != null && Minecraft.theMinecraft.theWorld != null) {\n \t\t\t\t\t//can not multithread in SP\n \t\t\t\t\tif (!Minecraft.theMinecraft.theWorld.isRemote){\n \t\t\t\t\t\tThread.sleep(1000);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\ttryARender();\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tThread.sleep(100);\n \t\t\t} catch (Exception e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}", "private void startGame() {\r\n\t\tthis.lobbyTimerActive = false;\r\n\t\tthis.gameStarted = true;\r\n\t\tthis.queueMessage(\"% START\");\r\n\t\tthis.dealer = new Dealer(this, this.players);\r\n\r\n\t\t// Start the dealer thread\r\n\t\tThread dealerThread = new Thread(dealer);\r\n\t\tdealerThread.start();\r\n\t}", "public void run() {\n \n while (true) {\n // Create a new string message parser to parse the list of messages.\n // This is a huge performance hit -- need to optimize by pre-create\n // parser when one is needed....\n if (myParser == null) {\n myParser = new StringMsgParser();\n myParser.setParseExceptionListener(this);\n }\n // messages that we write out to him.\n DatagramPacket packet;\n \n if (stack.threadPoolSize != -1) {\n synchronized (\n ((UDPMessageProcessor) messageProcessor).messageQueue) {\n while (((UDPMessageProcessor) messageProcessor)\n .messageQueue\n .isEmpty()) {\n // Check to see if we need to exit.\n if (!((UDPMessageProcessor) messageProcessor)\n .isRunning)\n return;\n try {\n ((UDPMessageProcessor) messageProcessor).messageQueue.wait();\n } catch (InterruptedException ex) {\n if (!((UDPMessageProcessor) messageProcessor)\n .isRunning)\n return;\n }\n }\n packet =\n (DatagramPacket)\n ((UDPMessageProcessor) messageProcessor)\n .messageQueue\n .removeFirst();\n \n }\n this.incomingPacket = packet;\n } else {\n packet = this.incomingPacket;\n }\n \n this.peerAddress = packet.getAddress();\n // PC 2.0 Added setting the port value\n this.peerPort = packet.getPort();\n int packetLength = packet.getLength();\n // Read bytes and put it in a eueue.\n byte[] bytes = packet.getData();\n byte[] msgBytes = new byte[packetLength];\n System.arraycopy(bytes, 0, msgBytes, 0, packetLength);\n \n // Do debug logging.\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"UDPMessageChannel: peerAddress = \"\n + peerAddress.getHostAddress()\n + \"/\"\n + packet.getPort());\n this.stack.logWriter.logMessage(\"Length = \" + packetLength);\n String msgString = new String(msgBytes, 0, packetLength);\n this.stack.logWriter.logMessage(msgString);\n }\n \n // PC 2.0 add logging statement for all SIP messages received on the s\n\t\t\t// socket\n int seq = stack.logWriter.getSequencer();\n this.stack.logWriter.logInfo(\">>>>> RX:\\tLength = \" + packetLength \n \t\t+ \"\\nReceived on IP|Port=\" + myAddress + \"|\" + myPort \n \t\t+ \"\\nFrom IP|Port=\" + peerAddress + \"|\" + peerPort\n \t\t+ \"\\nSequencer=\" + seq\n \t\t+ \"\\nTransport=\" + peerProtocol\n \t\t+ \"\\n[\" + new String(msgBytes, 0, packetLength) + \"]\");\n \n// SIPMessage[] sipMessages = null;\n SIPMessage sipMessage = null;\n try {\n \n this.receptionTime = System.currentTimeMillis();\n sipMessage = myParser.parseSIPMessage(msgBytes);\n myParser = null;\n if (sipMessage != null)\n \tsipMessage.setSequencer(seq);\n } catch (ParseException ex) {\n myParser = null; // let go of the parser reference.\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"Rejecting message ! \" + new String(msgBytes));\n this.stack.logWriter.logMessage(\n \"error message \" + ex.getMessage());\n this.stack.logWriter.logException(ex);\n }\n stack.logBadMessage(new String(msgBytes));\n if (stack.threadPoolSize == -1)\n return;\n else\n continue;\n }\n // No parse exception but null message - reject it and\n // march on (or return). Bug report from Peter Parnes.\n // exit this message processor if the message did not parse.\n \n if (sipMessage == null) {\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"Rejecting message ! \" + new String(msgBytes));\n this.stack.logWriter.logMessage(\"Null message parsed.\");\n }\n if (stack.threadPoolSize == -1)\n return;\n else\n continue;\n }\n ViaList viaList = sipMessage.getViaHeaders();\n // Check for the required headers.\n if (sipMessage.getFrom() == null\n || //sipMessage.getFrom().getTag() == null ||\n sipMessage.getTo()\n == null\n || sipMessage.getCallId() == null\n || sipMessage.getCSeq() == null\n || sipMessage.getViaHeaders() == null) {\n String badmsg = new String(msgBytes);\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\"bad message \" + badmsg);\n this.stack.logWriter.logMessage(\n \">>> Dropped Bad Msg \"\n + \"From = \"\n + sipMessage.getFrom()\n + \"To = \"\n + sipMessage.getTo()\n + \"CallId = \"\n + sipMessage.getCallId()\n + \"CSeq = \"\n + sipMessage.getCSeq()\n + \"Via = \"\n + sipMessage.getViaHeaders());\n }\n \n stack.logBadMessage(badmsg);\n if (stack.threadPoolSize == -1)\n return;\n else\n continue;\n }\n // For a request first via header tells where the message\n // is coming from.\n // For response, just get the port from the packet.\n if (sipMessage instanceof SIPRequest) {\n Via v = (Via) viaList.first();\n// PC 2.0 don't replace the peerPort with the via header information\n// if (v.hasPort()) {\n// if (sipMessage instanceof SIPRequest) {\n// this.peerPort = v.getPort();\n// }\n// } else\n// this.peerPort = SIPMessageStack.DEFAULT_PORT;\n this.peerProtocol = v.getTransport();\n\n this.peerPacketSourceAddress = packet.getAddress();\n this.peerPacketSourcePort = packet.getPort();\n// PC 2.0 try {\n this.peerAddress = packet.getAddress();\n // Check to see if the received parameter matches\n // the peer address and tag it appropriately.\n // Bug fix by [email protected]\n// PC 2.0 Remove the automatic setting of the rport parameter since the platform will\n// be validating what was received from the device.\n// if (!v\n// .getSentBy()\n// .getInetAddress()\n// .equals(this.peerAddress)) {\n// v.setParameter(\n// Via.RECEIVED,\n// this.peerAddress.getHostName());\n\t\t\t//@@@hagai\n\n// v.setParameter(\n// Via.RPORT,\n// new Integer(this.peerPacketSourcePort).toString());\n//\t\t }\n// \n// // this.peerAddress = v.getSentBy().getInetAddress();\n// } catch (java.net.UnknownHostException ex) {\n// // Could not resolve the sender address.\n//// PC 2.0 change if statement for new log processing\n// \t//if (stack.serverLog.needsLogging(ServerLog.TRACE_MESSAGES)) {\n// \tif (stack.serverLog.needsLogging()) {\n// \t\tthis.stack.serverLog.logMessage(\n// sipMessage,\n// this.getViaHost() + \":\" + this.getViaPort(),\n// stack.getHostAddress()\n// + \":\"\n// + stack.getPort(this.getTransport()),\n// \"Dropped -- \"\n// + \"Could not resolve VIA header address!\",\n// false);\n// }\n// if (LogWriter.needsLogging) {\n// this.stack.logWriter.logMessage(\n// \"Rejecting message -- \"\n// + \"could not resolve Via Address\");\n// }\n// \n// continue;\n// } catch (java.text.ParseException ex1) {\n// InternalErrorHandler.handleException(ex1);\n// }\n \n }\n \n if (sipMessage instanceof SIPRequest) {\n SIPRequest sipRequest = (SIPRequest) sipMessage;\n \n // This is a request - process it.\n ServerRequestInterface sipServerRequest =\n stack.newSIPServerRequest(sipRequest, this);\n // Drop it if there is no request returned\n if (sipServerRequest == null) {\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"Null request interface returned\");\n }\n continue;\n }\n if (LogWriter.needsLogging)\n this.stack.logWriter.logMessage(\n \"About to process \"\n + sipRequest.getFirstLine()\n + \"/\"\n + sipServerRequest);\n sipServerRequest.processRequest(sipRequest, this);\n if (LogWriter.needsLogging)\n this.stack.logWriter.logMessage(\n \"Done processing \"\n + sipRequest.getFirstLine()\n + \"/\"\n + sipServerRequest);\n \n // So far so good -- we will commit this message if\n // all processing is OK.\n// PC 2.0 change if statement for new log processing\n //if (stack.serverLog.needsLogging(ServerLog.TRACE_MESSAGES)) {\n if (stack.serverLog.needsLogging()) {\n \tif (sipServerRequest.getProcessingInfo() == null) {\n this.stack.serverLog.logMessage(\n sipMessage,\n sipRequest.getViaHost()\n + \":\"\n + sipRequest.getViaPort(),\n stack.getHostAddress()\n + \":\"\n + this.myPort,\n false,\n new Long(receptionTime).toString());\n } else {\n this.stack.serverLog.logMessage(\n sipMessage,\n sipRequest.getViaHost()\n + \":\"\n + sipRequest.getViaPort(),\n stack.getHostAddress()\n + \":\"\n + this.myPort, //stack.getPort(this.getTransport()),\n sipServerRequest.getProcessingInfo(),\n false,\n new Long(receptionTime).toString());\n }\n }\n } else {\n // Handle a SIP Reply message.\n SIPResponse sipResponse = (SIPResponse) sipMessage;\n ServerResponseInterface sipServerResponse =\n stack.newSIPServerResponse(sipResponse, this);\n if (sipServerResponse != null) {\n sipServerResponse.processResponse(sipResponse, this);\n // Normal processing of message.\n } else {\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"null sipServerResponse!\");\n }\n }\n \n }\n //((UDPMessageProcessor) messageProcessor).useCount--;\n if (stack.threadPoolSize == -1) {\n return;\n }\n }\n }", "@Override\r\n public void run() {\r\n while (b) {\r\n String message = checkServerOnOutageStatus();\r\n if (message != null) {\r\n logger.info(\"Server \" + serverName + \" --->Status ---> \" + message);\r\n } else {\r\n logger.info(\"Server Running ==> \" + serverName + \"--- port --> \" + serverSocket.getLocalPort());\r\n }\r\n try {\r\n sleep(1000);\r\n } catch (InterruptedException e) {\r\n System.out.println(e);\r\n }\r\n }\r\n }", "public void run(){\n\n\t\t/*\n\t\t* Keep on reading from the socket till we receive from the\n\t\t* server. Once we received that then we want to break.\n\t\t*/\n\t\tString responseLine;\n\t\ttry{\n\t\t\twhile((responseLine = is.readLine()) != null){\n\t\t\t\tSystem.out.println(responseLine);\n\t\t\t\tif(responseLine.indexOf( \"* * * Bye \") != -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tclosed = true;\n\t\t}\n\t\tcatch(IOException e){\n\t\t\tSystem.err.println(\"IOException : \" + e);\n\t\t}\n\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\ttry {\r\n\t\t for (int i = 0; i < 30; i++) {\r\n\t\t Thread.sleep(3500);\r\n\t\t try { \r\n\t\t\t\t\t\t\tif(str!=\" \"){\r\n\t\t\t\t\t\t\t\tstr=bf.readLine();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t \r\n\t\t Message msg = new Message();\r\n\t\t handler.sendMessage(msg);\r\n\t\t }\r\n\t\t Intent intent=new Intent(main.this,end.class);\r\n\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\tmain.this.finish();\r\n\t\t } catch (InterruptedException e) {\r\n\t\t\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t}", "@Override\n public void run() {\n while(true){\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(\n clientSocket.getInputStream()));\n\n String message=in.readLine();\n if(message!=null){\n logger.info(\"Received message from \"+clientSocket.getInetAddress());\n }\n else{\n logger.error(\"Null message received from \"+clientSocket.getInetAddress()+\". Stopping connection\");\n return;\n }\n\n\n PrintWriter out =\n new PrintWriter(clientSocket.getOutputStream(), true);\n out.println(message);\n\n } catch (IOException e) {\n logger.error(\"[IOException] \"+e.getMessage());\n e.printStackTrace();\n return;\n }\n try {\n Thread.sleep(responseInterval);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n\n }", "@Override\n public void run() {\n Thread.currentThread().setName(\"Game logic thread\");\n\n // Wait until all players are connected\n List<Player> players = new ArrayList<Player>(playerCount);\n try (ServerSocket server = new ServerSocket(port)) {\n System.out.println(\"Wizard Server running and waiting for connections...\");\n while (players.size() != playerCount) {\n Socket client = server.accept();\n synchronized(players) {\n ClientConnectionHandler con = new ClientConnectionHandler(client);\n new Thread(con).start();\n\n Player player = new Player(playerNames[players.size()], con);\n players.add(player);\n\n System.out.printf(\"New player connected: %s\\n\", player);\n }\n }\n } catch (IOException e) {\n System.err.println(\"IOException - Error when waiting for clients to connect!\");\n e.printStackTrace();\n return;\n }\n\n // All players are connected - starting the game\n\n Game game = new Game(players);\n game.play();\n System.out.println(\"Game Over!\");\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile (socket != null && !socket.isClosed()) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tbInputStream.read(rbyte);\r\n\t\t\t\t\t\tMessage msg = new Message();\r\n\t\t\t\t\t\tmsg.what = 1;\r\n\t\t\t\t\t\tmsg.obj = rbyte;\r\n\t\t\t\t\t\treHandler.sendMessage(msg);\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\t//让改线程可以接受到客户端的信息;\n\t\t\ttry {\n//\t\t\t\tThread.sleep(2000);\n\t\t\tObjectInputStream ois=new ObjectInputStream(s.getInputStream());\n\t\t\tMessage message=(Message) ois.readObject();\n\t\t\tSystem.out.println(message.getSender()+\"给\"+message.getGetter()+\"说\"+message.getCon());\n\t\t\t//这里进行转发;\n\t\t\t/*\n\t\t\t * 转发时出现错误;???????????已解决;\n\t\t\t */\n\t\t\t//取得接收人的通讯线程;\n\t\t\tServerConnectClient scClient=ManageQQClientTh.getClientThread(message.getGetter());\n\t\t\tObjectOutputStream oos=new ObjectOutputStream(scClient.s.getOutputStream());\n\t\t\t\toos.writeObject(message);\n\t\t\n\t\t\t\t} catch (IOException | ClassNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "public void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket client = serverSocket.accept();\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"连接到服务器的用户:\" + client);\n\t\t\t\t\t// 定义输入输出流\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\t\t\tPrintWriter out = new PrintWriter(client.getOutputStream(), true);\n\t\t\t\t\t// 定义request与response\n\t\t\t\t\tHttpServletRequest request = new Request(in);\n\t\t\t\t\tif (request.getMethod() == null)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tHttpServletResponse response = new Response(out);\n\t\t\t\t\t// 处理\n\n\t\t\t\t\tString url = request.getRequestURI(); // 例如/index.html\n\n\t\t\t\t\t// new Process().service(request, response);\n\n\t\t\t\t\tHttpServlet servlet = container.getServlet(url.substring(1));\n\t\t\t\t\tif (servlet != null)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tservlet.service(request, response);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (ServletException e) {\n\t\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t\t}\n\t\t\t\t\telse { //页面不存在\n\t\t\t\t\t\tnew Process().service(request, response);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tfinally {\n\t\t\t\t\tclient.close();\n\t\t\t\t\tSystem.out.println(client + \"离开了HTTP服务器\\n----------------\\n\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tcatch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\tthis.abiServerMain.setStatusMessage(request.toString());\n\t\t}\n\n\t}", "@Override\r\n\tpublic void run() {\n\t\tString msg;\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile(true)\r\n\t\t\t{\r\n\t\t\t\t\tBufferedReader inFromClient =\r\n\t\t\t\t new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n\t\t\t\t DataOutputStream outToClient = new DataOutputStream(socket.getOutputStream());\r\n\t\t\t\t \r\n\t\t\t\t String clientSentence;\r\n\t\t\t\t while((clientSentence = inFromClient.readLine())!=null)\r\n\t\t\t\t {\t\r\n\t\t\t\t\t System.out.println(\"Received: \" + clientSentence);\r\n\t\t\t\t\t System.out.println(\"port: \" + socket.getPort());\r\n\r\n\t\t\t\t\t String newsentence = clientSentence + '\\n';\r\n\t\t\t\t\t outToClient.writeBytes(\"Server: \"+newsentence);\r\n\t\t\t\t\t \r\n\t\t\t\r\n\t\t\t\t }\r\n//\t\t\t\t \r\n//\t\t\t\t\treader.close();\r\n//\t\t\t\t\tinFromClient.close();\r\n//\t\t\t\t\toutToClient.close();\r\n//\t\t\t\t\tsocket.close();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(SocketException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Client has Disconnected\");\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}" ]
[ "0.7456891", "0.7409652", "0.7366124", "0.7143045", "0.71273834", "0.71092993", "0.70540446", "0.7036178", "0.69862396", "0.69748735", "0.69706446", "0.69642174", "0.69606847", "0.69341916", "0.69298726", "0.6928711", "0.6904826", "0.68956876", "0.6885966", "0.6879019", "0.687569", "0.6824654", "0.6802641", "0.6763811", "0.6751696", "0.67486084", "0.6746565", "0.6733266", "0.6709546", "0.67033774", "0.67032117", "0.6681419", "0.6677841", "0.66655415", "0.66454524", "0.66307604", "0.66276634", "0.662428", "0.6609986", "0.6604594", "0.660118", "0.6592781", "0.6581486", "0.6567017", "0.656434", "0.65596384", "0.6552401", "0.6551423", "0.6546234", "0.65442115", "0.65350395", "0.6526451", "0.65147185", "0.65125453", "0.6501788", "0.65015084", "0.6490286", "0.6488377", "0.6483467", "0.6480002", "0.6472039", "0.6470522", "0.64691424", "0.6466559", "0.6462172", "0.6461945", "0.64549685", "0.6452559", "0.64522374", "0.644993", "0.64467317", "0.6431218", "0.6416722", "0.64112616", "0.6375232", "0.6370972", "0.6370177", "0.636717", "0.63662034", "0.6358662", "0.6358349", "0.63574874", "0.6342902", "0.6338054", "0.6335082", "0.63347375", "0.6333415", "0.63280976", "0.6327033", "0.6322073", "0.63214123", "0.63178277", "0.6308903", "0.6304707", "0.6297824", "0.6295827", "0.6294915", "0.6294089", "0.6287723", "0.6281916", "0.6280292" ]
0.0
-1
Makes an new tab to be added to the gameTabs in Main and setOnClosed on the tab to remove every object that is in the tab, and sends gamelost to globalserver and disconnet to gameserver
public void createNewLobby() { Platform.runLater(() -> { Tab tab = new Tab("Ludo"); tab.setId(hostName); tab.setClosable(true); tab.setOnClosed(new EventHandler<Event>() { @Override public void handle(Event e) { //String dcPlayer; int p, turnowner; if (gameClientUIController != null) { p = gameClientUIController.getPlayer(); turnowner = gameClientUIController.getTurnOwner(); //dcPlayer = Integer.toString(gameClientUIController.getPlayer()); if(p == turnowner) { //Check if player disconnected on his/her own turn sendText(Constants.DICEVALUE + 0 + p + 0); } //sendText(Constants.DISCONNECT + dcPlayer); //Disconnect the player and remove the player from the server Main.sendText(Constants.GAMELOST); } sendText(Constants.DISCONNECT); Main.cHandler.leaveGameChat(hostName); String tmp = Constants.IDGK + Main.userName; if (tmp.equals(hostName)) { Main.sendText(Constants.REMOVEHOST + hostName); Main.mainController.openNewGameButton(); } close(); for(int i = 0; i < Main.gameTabs.getTabs().size(); i++) { if(Main.gameTabs.getTabs().get(i).getId().equals(hostName)) { Main.gameTabs.getTabs().remove(i); } } for (int i=0; i<Main.gameHandler.size(); i++) { if(hostName.equals(Main.gameHandler.get(i).getHostName())) { Main.gameHandler.remove(i); } } } }); FXMLLoader loader = new FXMLLoader(); try { switch (caseNr) { case 1: tab.setContent(loader.load(getClass().getResource("CreateGameLobby.fxml").openStream())); createGameLobbyController = (CreateGameLobbyController) loader.getController(); createGameLobbyController.setHostPlayer(hostName); createGameLobbyController.setConnetion(output); break; case 2: tab.setContent(loader.load(getClass().getResource("HostGameLobby.fxml").openStream())); hostGameLobbyController = (HostGameLobbyController) loader.getController(); hostGameLobbyController.setHostPlayer(hostName); hostGameLobbyController.setConnetion(output); break; case 3: tab.setContent(loader.load(getClass().getResource("PlayerGameLobby.fxml").openStream())); playerGameLobbyController = (PlayerGameLobbyController) loader.getController(); playerGameLobbyController.setHostPlayer(hostName); break; default: break; } Main.gameTabs.getTabs().add(tab); Main.gameTabs.getSelectionModel().select(tab); processConnection(); } catch (IOException ioe) { Main.LOGGER.log(Level.SEVERE, "Unable to find fxml file", ioe); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeTab() {\n\t\tclose();\n\t\t\n\t\tfor(int i = 0; i < Main.gameTabs.getTabs().size(); i++) {\n\t\t\tif(Main.gameTabs.getTabs().get(i).getId().equals(hostName)) {\n\t\t\t\tMain.gameTabs.getTabs().remove(i);\n\t\t\t}\n\t\t}\n\t\tfor (int i=0; i<Main.gameHandler.size(); i++) {\n\t\t\tif(hostName.equals(Main.gameHandler.get(i).getHostName())) {\n\t\t\t\tMain.gameHandler.remove(i);\n\t\t\t}\n\t\t}\n\t}", "public void onDestroy() {\n super.onDestroy();\n Bottomtabs.gps = false;\n Bottomtabs.type = \"\";\n }", "private void ini_TabMainView()\r\n\t{\r\n\r\n\t\tif (splashEndTime > System.currentTimeMillis()) return;\r\n\r\n\t\tLogger.DEBUG(\"ini_TabMainView\");\r\n\t\tGL.that.removeRenderView(this);\r\n\t\t((GdxGame) GL.that).switchToMainView();\r\n\r\n\t\tGL.setIsInitial();\r\n\t}", "public void gano() {\n\t\t\n\t\tGameOver_Win win = new GameOver_Win(1);\n\t\thiloJuego = null;\n\t\tthis.panelJuego = null;\n\t\tthis.dispose();\n\t\tthis.juego = null;\n\t\twin.setVisible(true);\n\t\t\n\t}", "@Override\n\tpublic void createNewGame() \n\t{\n\t\t//Create new game\n\t\tboolean randomhexes = getNewGameView().getRandomlyPlaceHexes();\n\t\tboolean randomnumbers = getNewGameView().getRandomlyPlaceNumbers();\n\t\tboolean randomports = getNewGameView().getUseRandomPorts();\n\t\tString title = getNewGameView().getTitle();\n\t\t\n\t\ttry \n\t\t{\n\t\t\tReference.GET_SINGLETON().proxy.createGame(title, randomhexes, randomnumbers, randomports);\n\t\t} \n\t\tcatch (JoinExceptions e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//Refresh game list\n\t\tList<Game> gamelist = Reference.GET_SINGLETON().proxy.getGameList();\n\t\tGameInfo[] games = new GameInfo[gamelist.size()];\n\t\tint counter = 0;\n\t\tfor(Game game: gamelist)\n\t\t{\n\t\t\tGameInfo thisgame = new GameInfo();\n\t\t\tthisgame.setId(game.getId());\n\t\t\tthisgame.setTitle(game.getTitle());\n\t\t\tfor(Player player : game.getPlayers())\n\t\t\t{\n\t\t\t\tPlayerInfo player_info = new PlayerInfo(player);\n\t\t\t\tplayer_info.setColor(player.getColor());\n\t\t\t\tif(!(player.color == null))thisgame.addPlayer(player_info);\n\t\t\t}\n\t\t\tgames[counter] = thisgame;\n\t\t\tcounter++;\n\t\t}\n\t\t\n\t\tReference ref = Reference.GET_SINGLETON();\n\t\t\n\t\tPlayerInfo ourguy = new PlayerInfo();\n\t\t\n\t\tourguy.setId(ref.player_id);\n\t\tourguy.setName(ref.name);\n\t\tif(getNewGameView().isModalShowing())\n\t\t{\n\t\t\tgetNewGameView().closeModal();\n\t\t}\n\t\tif (getNewGameView().isModalShowing())\n\t\t{\n\t\t\tgetNewGameView().closeModal();\n\t\t}\n\n\t\tgetJoinGameView().setGames(games, ourguy);\n\t\t\n\t}", "void onNewGame();", "public void initGameMode() {\n\n for (JPanel p : attached) {\n mainPanel.remove(p);\n }\n mainPanel.setLayout(null);\n initNavigationBar();\n\n marketFrame = new MarketFrame(gui);\n productionDeckFrame = new ProductionDeckFrame(gui);\n reserveFrame = new ReserveFrame();\n\n gameboardPanel = new GameboardPanel(gui);\n gameboardPanel.setBounds(0, 0, 800, 572);\n mainPanel.add(gameboardPanel);\n serverMessagePanel = new ServerMessagePanel();\n serverMessagePanel.setBounds(800, 0, 380, 275);\n mainPanel.add(serverMessagePanel);\n leaderCardsPanel = new LeaderCardsPanel(gui);\n leaderCardsPanel.setBounds(805, 280, leaderWidth, leaderHeight);\n mainPanel.add(leaderCardsPanel);\n\n\n this.setVisible(false);\n }", "public void perdio() {\n\t\tthis.juego = null;\n\t\thiloJuego = null;\n\t\tthis.panelJuego = null;\n\t\tthis.dispose();\n\t\tGameOver_Win go = new GameOver_Win(0);\n\t\tgo.setVisible(true);\n\t\t\n\t}", "private void newGame()\r\n {\r\n //close the current screen\r\n screen.dispose();\r\n //start back at the set up menu\r\n SetupView screen = new SetupView();\r\n SetupController controller = new SetupController(screen);\r\n screen.registerObserver(controller);\r\n }", "void createNewGame() {\n _gameList.add(new GameObject());\n Log.i(\"createGame\", \"Created New Game\");\n }", "void removeFromGame() {\n\t\t// remove from game\n\t\t//only for multi-player\n\t}", "public void quitNetworkGame() {\n \t\tgameInProgress = false;\n \t\tlocalGameController.stop();\n \t\tlobbyManager.quit();\n \t\tlobby.updateGameListPane();\n \t\tgameMain.showScreen(lobby);\n \t\tgameMain.setSize(800, 600);\n \t}", "private void close() {\r\n this.dispose();\r\n MainClass.gamesPlayed++;\r\n Examples2018.menu();\r\n }", "private void tabCloseEvent(Tab tab) {\n final String tabName = tab.getAttributeAsString(\"TabName\");\n final Editor editor = (Editor) tab.getAttributeAsObject(EDITOR);\n\n if (editor != null && editor.isChanged()) {\n final Dialog dialog = new Dialog();\n dialog.setIsModal(true);\n dialog.setShowModalMask(true);\n dialog.setCanDrag(true);\n dialog.setCanDragReposition(true);\n dialog.setTitle(\"Save File\");\n dialog.setMessage(\"Save changes in '\" + tabName + \"'?\");\n dialog.setIcon(\"[SKIN]ask.png\");\n dialog.addCloseClickHandler(e -> dialog.markForDestroy());\n Button dialogSave = new Button(\"Save\");\n Button dialogDontSave = new Button(\"Don't Save\");\n Button dialogCancel = new Button(\"Cancel\");\n dialogSave.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {\n @Override\n public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) {\n editor.save(ModelingProjectView.this, editor, tab, new PostProcessHandler() {\n @Override\n public void execute() {\n editorTabSet.selectTab(tab);\n tab.getTabSet().removeTab(tab);\n tabRegs.get(tab.getID()).removeHandler();\n }\n });\n dialog.markForDestroy();\n }\n });\n dialogDontSave.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {\n @Override\n public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) {\n editorTabSet.selectTab(tab);\n tab.getTabSet().removeTab(tab);\n tabRegs.get(tab.getID()).removeHandler();\n dialog.markForDestroy();\n }\n });\n dialogCancel.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {\n @Override\n public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) {\n dialog.markForDestroy();\n }\n });\n dialog.setButtons(dialogSave, dialogDontSave, dialogCancel);\n dialog.draw();\n } else {\n tab.getTabSet().removeTab(tab);\n tabRegs.get(tab.getID()).removeHandler();\n }\n }", "void stopGame() {\n leader.disconnect();\n opponent.disconnect();\n }", "public void newGame() {\n disappear = false;\n topborder.clear();\n botborder.clear();\n effect.clear();\n enemy.clear();\n newEnemy.clear();\n thirdEnemy.clear();\n minBorderHeight = 5;\n maxBorderHeight = 30;\n newPlayer.resetAcceleration();\n newPlayer.setY(height / 2);\n\n calculateHighscores();\n resetBorders();\n\n\n gamenew = true;\n }", "public void newGame()\n\t{\n\t\tplanet.setLevel(0);\n\t\tship.resetScore();\n\t\tstopThreads();\n\t\tplanet = new Planet(750,600);\n\t\tship = new Ship(20.0,750,600,planet);\n\t\tbuttonPanel.update(ship,planet);\n\t\tgamePanel.update(ship,planet);\n\n\t\trestartThreads();\n\t}", "private void createTabMenu(Tab tab, MenuItem saveItemTab) {\n Menu tabMenu = new Menu();\n MenuItem closeItem = new MenuItem(\"Close\");\n closeItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n tabCloseEvent(tab);\n }\n });\n MenuItem closeOtersItem = new MenuItem(\"Close Others\");\n closeOtersItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n if (editorTabSet.getTabNumber(closeTab.getID()) != editorTabSet.getTabNumber(tab.getID())) {\n tabCloseEvent(closeTab);\n }\n }\n }\n });\n MenuItem closeLeftItem = new MenuItem(\"Close Tabs to the Left\");\n closeLeftItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n if (editorTabSet.getTabNumber(closeTab.getID()) < editorTabSet.getTabNumber(tab.getID())) {\n tabCloseEvent(closeTab);\n }\n }\n }\n });\n MenuItem closeRightItem = new MenuItem(\"Close Tabs to the Right\");\n closeRightItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n if (editorTabSet.getTabNumber(closeTab.getID()) > editorTabSet.getTabNumber(tab.getID())) {\n tabCloseEvent(closeTab);\n }\n }\n }\n });\n MenuItem closeAllItem = new MenuItem(\"Close All\");\n closeAllItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n tabCloseEvent(closeTab);\n }\n }\n });\n MenuItemSeparator sep = new MenuItemSeparator();\n if (saveItemTab != null) {\n MenuItemIfFunction enableCondition = new MenuItemIfFunction() {\n public boolean execute(Canvas target, Menu menu, MenuItem item) {\n return tab == editorTabSet.getSelectedTab();\n }\n };\n\n saveItemTab.setEnableIfCondition(enableCondition);\n saveItemTab.setKeyTitle(\"Ctrl + S\");\n\n // If you use addItem, the association with the shortcut key is lost.\n tabMenu.setItems(saveItemTab, sep, closeItem, closeOtersItem, closeLeftItem, closeRightItem, sep, closeAllItem);\n } else {\n tabMenu.setItems(closeItem, closeOtersItem, closeLeftItem, closeRightItem, sep, closeAllItem);\n }\n tab.setContextMenu(tabMenu);\n }", "public void newGame()\n\t{\n\t\tmap = new World(3, viewSize, playerFactions);\n\t\tview = new WorldView(map, viewSize, this);\n\t\tbar = new Sidebar(map, barSize);\n\t}", "public void endGame() {\r\n\t\tthis.gameStarted = false;\r\n\t\tthis.sendMessages = false;\r\n\t\tthis.centralServer.removeServer(this);\r\n\t}", "public void stopHostingGame() {\n \t\tgameSetup.reset();\n \t\tlobbyManager.stopHostingGame();\n \t\tlobby.updateGameListPane();\n \t\tgameMain.showScreen(lobby);\n \t}", "@Override\n public void stopGame() {\n ((MultiplayerHostController) Main.game).stopGame();\n super.stopGame();\n }", "@Override\n\t\t\tpublic void onTabChanged(String tabId) {\n\t\t\t\tif (!tabId.equalsIgnoreCase(\"my orders\")) {\n\t\t\t\t\tCookingOrder.stopCooking();\n\t\t\t\t\tServedOrder.stopServe();\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void onExit() {\n\t\tlabelHelp = null;\n\t\tlayer_force = null;\n\t\tmSoundBtn = null;\n\t\tboxMessage = null;\n\n\t\tSystem.gc();\n\t\tsuper.onExit();\n\t}", "public void endGame() {\n \t\tisOver = true;\n \t\ttimeGameEnded = System.nanoTime();\n \t\tremoveAll();\n \t\trequestFocusInWindow();\n \t}", "public void finishGame(){\r\n\t\t\t\tgameStarted = false;\r\n\t\t\t}", "private void handleGoLauncher() {\n Trace.traceBegin(8, \"goLauncher:closeZswapd\");\n removeMessagesToStart();\n curState = 1;\n Message msg = handler.obtainMessage();\n msg.what = 5;\n Slog.i(TAG, \"handle launcher start, close zswapd\");\n closeZswapd();\n handler.sendMessageDelayed(msg, (long) (appStartDelay * 1000));\n Trace.traceEnd(8);\n }", "public void closeDefaultTabs() {\r\n WeaponInterface inter = player.getExtension(WeaponInterface.class);\r\n if (inter != null) {\r\n close(inter); // Attack\r\n }\r\n close(new Component(320)); // Skills\r\n close(new Component(274)); // Quest\r\n close(new Component(149)); // inventory\r\n close(new Component(387)); // Equipment\r\n close(new Component(player.getSpellBookManager().getSpellBook()));\r\n close(new Component(662)); // summoning.\r\n close(new Component(550)); // Friends\r\n close(new Component(551)); // Ignores\r\n close(new Component(589)); // Clan chat\r\n close(new Component(261)); // Settings\r\n close(new Component(464)); // Emotes\r\n close(new Component(187)); // Music\r\n close(new Component(182)); // Logout\r\n // close(new Component(player.getSavedData().getGlobalData().getPrayerBook()));\r\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n gameAlertDialog.dismiss();\n }", "public abstract void onLostGame();", "public void endGame() {\r\n if (state[0]) {\r\n if (state[1]) {\r\n frame.remove(pause);\r\n state[1] = false;\r\n }\r\n records.newRecord(game.map, game.end());\r\n frame.remove(game);\r\n records.saveRecords();\r\n state[0] = false;\r\n menu.setVisible(true);\r\n }\r\n }", "void newGame() {\n\t\tstate = new model.State () ; \n\t\tif(host != null ) host.show(state) ; \n\t}", "private void finishGame() {\n for (GameObject gameObject : gameObjects) gameObject.finishGame(game);\n gameAlertDialog.show(\"FINISH\");\n }", "private void destroyGameInstance() {\n // Destroy Game\n this.model.setPuzzle(null);\n this.model.setHintsUsed(0);\n this.model.getTimer().stop();\n this.model.setTimer(null);\n view.getGamePanel().getHintBtn().setEnabled(true);\n for (Cell cell : this.view.getGamePanel().getViewCellList()) {\n this.view.getGamePanel().getGrid().remove(cell);\n }\n }", "public void shutdown(boolean endGame) {\n\t\tif (!endGame) trayicon.shutdown();\n\t\t\n\t\tsaveTabs();\n\t\t\n\t\tstatus.shutdown();\n\t\t\n\t\t//do this last:\n\t\tif (!endGame) {\n\t\t\tdispose();\n\t\t}\n\t}", "@Override\n protected void onDestroy() {\n settings.setOrganizationFilterActive( false );\n Timber.tag(\"TabChanged\").d( \"MainActivity onDestroy: set true\");\n settings.setTabChanged(true);\n\n unregisterEventBus();\n\n super.onDestroy();\n }", "public void quitGame() {\n\t\tactive = false;\n\t}", "@Override\n\tpublic void close() {\n\t\tframe = null;\n\t\tclassic = null;\n\t\trace = null;\n\t\tbuild = null;\n\t\tbt_classic = null;\n\t\tbt_race = null;\n\t\tbt_build = null;\n\t\tGameView.VIEW.removeDialog();\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tLog.d(\"maintab\", \"maintab_MainActivity------onDestroy\");\r\n\t}", "private void resetAfterGame() {\n }", "public void lostGame(){\n\t\tSystem.out.println(\"Schade, du hast verloren. Möchtest du es noch einmal versuchen?\");\n\t\tif(!singleplayer){\n\t\t\tif(player.getLifes() == 0){\n\t\t\t\tSystem.out.println(\"Spieler 2 gewinnt!\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Spieler 1 gewinnt!\");\n\t\t\t}\n\t\t\n\t\t}\n\t\tstopGame();\n\t\tstarted = false;\n\t\tspiel_status = 0;\n\t\tpaintMenu();\n\t}", "public void InitGame(){\n System.out.format(\"New game initiated ...\");\n Game game = new Game(client_List);\n SetGame(game);\n }", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tManager.onDestroy();\n\t\tSystem.out.println(\"DESTROYING APP\");\n//\t\tManager.analytics.sendUserTiming(\"Total Activity Time\", System.currentTimeMillis() - game.activityStartTime);\n\t}", "private void disposeDialogAndCreateNewGame() {\r\n resultDialog.dispose();\r\n Utilities.bringWindowToFront(parentFrame);\r\n game.createNewGameState(game.getBoard().getRowLength(), game.getBoard().getColumnLength());\r\n }", "public void createGame()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyState()\n clientController.startMultiPlayerGame(\"GameLobby\");\n }", "public void newGame(){\n\t\tsoundMan.BackgroundMusic1();\n\n\t\tstatus.setGameStarting(true);\n\n\t\t// init game variables\n\t\tbullets = new ArrayList<Bullet>();\n\n\t\tstatus.setShipsLeft(8);\n\t\tstatus.setGameOver(false);\n\n\t\tif (!status.getNewLevel()) {\n\t\t\tstatus.setAsteroidsDestroyed(0);\n\t\t}\n\n\t\tstatus.setNewAsteroid(false);\n\n\t\t// init the ship and the asteroid\n\t\tnewShip(gameScreen);\n\t\tnewAsteroid(gameScreen);\n\n\t\t// prepare game screen\n\t\tgameScreen.doNewGame();\n\t\tsoundMan.StopMusic2();\n\t\tsoundMan.StopMusic3();\n\t\tsoundMan.StopMusic4();\n\t\tsoundMan.StopMusic5();\n\t\tsoundMan.StopMusic6();\n\t\t// delay to display \"Get Ready\" message for 1.5 seconds\n\t\tTimer timer = new Timer(1500, new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstatus.setGameStarting(false);\n\t\t\t\tstatus.setGameStarted(true);\t\n\n\t\t\t\tstatus.setLevel(1);\n\t\t\t\tstatus.setNumLevel(1);\n\t\t\t\tstatus.setScore(0);\n\t\t\t\tstatus.setYouWin(false);\n\t\t\t\tstatus.setBossLife(0);\n\t\t\t}\n\t\t});\n\t\ttimer.setRepeats(false);\n\t\ttimer.start();\n\t}", "protected void quitGame() {\n gameOver = true;\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t//mTracker.set(Fields.SCREEN_NAME, \"Home Screen\");\n\t\tmTracker.send(MapBuilder.createAppView().build());\n\t\t//mTracker.send(null);\n\t}", "void gameResumed();", "public void endGame(){\n\t\tgameRunning = false;\t// set gameRunning to false\n\t\tfinal SnakeGame thisGame = this;\t// store reference to the current game\n\t\tSwingUtilities.invokeLater(new Runnable() {\n public void run() {\n \t// remove our board and scoreboard\n \tgetContentPane().remove(board);\n \tgetContentPane().remove(scoreboard);\n \t// create a game over page\n \tgameOverPage = new GameOver(thisGame, scoreboard.getScore());\n \t// set our board and scoreboard to null\n \tboard = null;\n \tscoreboard = null;\n \t// add the game over page\n \tadd(gameOverPage);\n \t// validate and repaint\n \tvalidate();\n \trepaint();\n }\n\t\t});\t\n\t}", "public void quitGame() {\n quitGame = true;\n }", "public void closeGame(int gameID){\n\t}", "public void finishMainGame(MainWindow mainWindow) {\n mainWindow.closeWindow();\n \n if (crewState.getShipPartsFoundCount() >= getShipPartsNeededCount()) {\n addScore(crewState.getLivingCrewCount() * 500);\n addScore((maxDays - daysPassed) * 1000);\n \n displayWinScreen();\n } else {\n displayLoseScreen();\n }\n }", "public void endGame()\r\n {\r\n for (Cell c : gameBoard.bombList)\r\n {\r\n if (c.isBomb())\r\n {\r\n if (c.getText() == \"X\")\r\n {\r\n c.setId(\"correctFlag\");\r\n }\r\n else\r\n {\r\n c.setId(\"bombClicked\");\r\n }\r\n }\r\n else if (c.getText() == \"X\")\r\n {\r\n c.setId(\"incorrectFlag\");\r\n }\r\n c.setDisable(true);\r\n }\r\n if (gameBoard.emptyRemaining == 0)\r\n {\r\n win();\r\n }\r\n else\r\n {\r\n lose();\r\n }\r\n System.out.println(\"Game Over...\");\r\n scoreBoard.resetBtn.setDisable(false);\r\n }", "public void onUnload() {\n\t}", "public void end()\n\t{\n\t\tStateManager.setState(StateManager.GameState.MAINMENU);\n\t\tStateManager.setGame(null);\n\t}", "public void removeFromGame(){\n this.isInGame = false;\n }", "private void finishGame(boolean again){\r\n\t\tdispose();\r\n\t\tif(again) Util.showNewGameDialog(\"Choose player names:\", cantStop.getGameBoard().getPlayers());\r\n\t}", "@Override\r\n\tpublic void onExit() {\n\t\tm_zombieTypeArray.removeAll(m_zombieTypeArray);\r\n\t\tm_zombieJointArray.removeAll(m_zombieJointArray);\r\n\t\tsuper.onExit();\r\n\t}", "void newGame() {\n logger.log(\"New game starting.\");\n logger.log(divider);\n\n\n // Create the deck.\n createDeck();\n logger.log(\"Deck loaded: \" + deck.toString());\n\t logger.log(divider);\n\n\n // Shuffle the deck.\n shuffleDeck();\n logger.log(\"Deck shuffled: \" + deck.toString());\n logger.log(divider);\n\n // Create the players.\n createPlayers();\n setGameState(GameState.PLAYERS_SPAWNED);\n\n // Deal cards to players' decks.\n deal();\n for (Player player : players) {\n logger.log(\"Hand: \" + player);\n }\n \n\n // Randomly select the active player for the first round.\n selectRandomPlayer();\n\n setGameState(GameState.NEW_GAME_INITIALISED);\n }", "public void gameOver() \n {\n new GameOver();\n Greenfoot.stop();\n }", "private void onEndGame() {\n Intent intent1 = new Intent(this, MainActivity.class);\n startActivity(intent1);\n finish();\n }", "void onDestroy();", "void onDestroy();", "void onDestroy();", "void onDestroy();", "public void retourActionPerformed(java.awt.event.ActionEvent evt) throws IOException{ \n if(Games!=null){\n for(Game g:Games)\n g.stop=true;\n Games.clear();\n }\n welcomePage();\n }", "private void handleLose(){\n\t ButtonType goBackBtn = new ButtonType(\"Go back to menu\");\n\t Alert alert = new Alert(Alert.AlertType.INFORMATION,\n \"You've lost the game, retry?\", ButtonType.YES, goBackBtn);\n\t alert.setTitle(\"Lost\");\n Optional<ButtonType> result = alert.showAndWait();\n if(!result.isPresent())\n return;\n if(result.get() == ButtonType.YES){\n Screen screen = new Screen(stage, \"Dungeon\", \"View/DungeonPlayScreen.fxml\");\n try {\n Map reloadedMap = Map.loadFromFile(new FileInputStream(\n \"map/\" + map.getMapName() + \".dungeon\"));\n screen.display(new DungeonPlayController(stage, reloadedMap));\n } catch (FileNotFoundException e){\n e.printStackTrace();\n }\n }\n if(result.get() == goBackBtn){\n handleModeScreenButton();\n }\n }", "@Override\n\tpublic void OnGameEnd() {\n\t\tsuper.OnGameEnd();\n\t}", "@Override\n public void newGame() {\n //TODO Implement this method\n }", "@Override\n\tpublic void endGame() {\n\t\tsuper.endGame();\n\t}", "public void onDestroy();", "public void onDestroy();", "public void endGame() {\n\t\twaitingPlayers.addAll(players);\n\t\tplayers.clear();\n\t\tfor(ClientThread player: waitingPlayers) {\n\t\t\tplayer.points = 0;\n\t\t\tplayer.clientCards.clear();\n\t\t}\n\t\twinners = 0;\n\t\tlosers = 0;\n\t\tpassCounter = 0;\n\t\tdeck.init();\n\t\tview.changeInAndWait(players.size(), waitingPlayers.size());\n\t\tview.writeLog(\"-------------GAME END--------------\");\n\t\tstatus = \"waiting\";\n\t\tstatusCheck();\n\t}", "public void Gamefinished()\n\t\t{\n\t\t\tplayers_in_game--;\n\t\t}", "@Override protected void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n release();\n }", "void gameOver() {\n if (!running.compareAndSet(true, false)) return;\n for (PlayerController controller : playerControllers) {\n if (controller == null) continue;\n controller.getClient().setPlayerController(null);\n try {\n controller.getClient().notifyGameOver();\n } catch (IOException e) {\n // no need to handle disconnection, game is over\n }\n }\n if (server != null) new Thread(() -> server.removeGame(this)).start();\n }", "public void processWindowEvent(WindowEvent e) {\n// super.processWindowEvent(e);\nif (e.getID()==WindowEvent.WINDOW_CLOSING) {\n instance = null;\n}\n }", "public void newGame();", "public void newGame();", "public void newGame();", "public void endGame()\r\n {\r\n mode = 2;\r\n }", "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n releaseSoundPool();\n }", "public synchronized void gameOver(PlayerHandler playerHandler) {\n\n winner();\n\n if (temporaryGame) {\n for (Game game : Server.getGames().values()) {\n if (game.equals(this)) {\n Server.getGames().remove(playerHandler.getGameRoom());\n //return; //(if not commented, does not remove the !fixed game.\n System.out.println(\"game \" + this.name + \" removed from map\");\n }\n }\n }\n\n resetGameRoom();\n\n }", "public static void newGame(){\n\t\tsetUp.buildBoard(8,8);\n\t\tfor(int i = 0; i < boardBoundsRow * boardBoundsColumn; i++){\n\t\t\tJPanel selectedTile = (JPanel) userInterface.boardButtons.getComponent(i);\n\t\t\tselectedTile.removeAll();\n\t\t\tselectedTile.revalidate();\n\t\t}\n\t\tuserInterface.addBlackPiece();\n\t\tuserInterface.addWhitePiece();\n\t\tuserInterface.check.setText(\"You are not in check\");\n\t\tking.blackKingCheck = false;\n\t\tking.whiteKingCheck = false;\n\t\tturn = \"white\";\n\t\tString playerTurn = \"Player turn: \";\n\t\tuserInterface.turn.setText(playerTurn.concat(turn));\n\t\tundoMoveClass.clearStacks();\n\t}", "private void initPlayersTab() throws IOException {\n // THESE ARE THE CONTROLS FOR THE BASIC SCHEDULE PAGE HEADER INFO\n // WE'LL ARRANGE THEM IN A VBox\n playerTab = new Tab();\n playerWorkspacePane = new VBox();\n playerWorkspacePane.getStyleClass().add(CLASS_DRAFT_PANE);\n \n // PAGE LABEL & BUTTON\n Label playersHeading = new Label();\n playersHeading = initChildLabel(playerWorkspacePane, DraftKit_PropertyType.PLAYER_HEADING_LABEL, CLASS_HEADING_LABEL);\n \n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(DraftKit_PropertyType.PLAYER_ICON);\n Image buttonImage = new Image(imagePath);\n playerTab.setGraphic(new ImageView(buttonImage));\n \n // SEARCH AREA\n HBox search = new HBox();\n addPlayer = initHBoxButton(search, DraftKit_PropertyType.ADD_ICON, DraftKit_PropertyType.ADD_PLAYER_TOOLTIP, false);\n removePlayer = initHBoxButton(search, DraftKit_PropertyType.MINUS_ICON, DraftKit_PropertyType.REMOVE_PLAYER_TOOLTIP, false);\n initHBoxLabel(search, DraftKit_PropertyType.SEARCH_LABEL, CLASS_PROMPT_LABEL);\n searchText = initHBoxTextField(search, \"\", true);\n \n // RADIO BUTTONS AREA FUNESS\n group = new ToggleGroup();\n all = new RadioButton(\"All\");\n all.setToggleGroup(group);\n c = new RadioButton(\"C\");\n c.setToggleGroup(group);\n oneB = new RadioButton(\"1B\");\n oneB.setToggleGroup(group);\n ci = new RadioButton(\"CI\");\n ci.setToggleGroup(group);\n threeB = new RadioButton(\"3B\");\n threeB.setToggleGroup(group);\n twoB = new RadioButton(\"2B\");\n twoB.setToggleGroup(group);\n mi = new RadioButton(\"MI\");\n mi.setToggleGroup(group);\n ss = new RadioButton(\"SS\");\n ss.setToggleGroup(group);\n of = new RadioButton(\"OF\");\n of.setToggleGroup(group);\n u = new RadioButton(\"U\");\n u.setToggleGroup(group);\n p = new RadioButton(\"P\");\n p.setToggleGroup(group);\n \n ToolBar radioTool = new ToolBar(\n all, c, oneB, ci, threeB, twoB, mi, ss, of, u, p\n );\n \n // CREATE TABLE FOR PLAYER PAGE\n playerTable = new TableView<>();\n \n first = new TableColumn<>(\"First\");\n first.setCellValueFactory(new PropertyValueFactory<>(\"FirstName\"));\n last = new TableColumn<>(\"Last\");\n last.setCellValueFactory(new PropertyValueFactory<>(\"LastName\"));\n proTeam = new TableColumn<>(\"Pro Team\");\n proTeam.setCellValueFactory(new PropertyValueFactory<>(\"MLBTeam\"));\n positions = new TableColumn<>(\"Positions\");\n positions.setCellValueFactory(new PropertyValueFactory<>(\"position\"));\n yob = new TableColumn<>(\"Year of Birth\");\n yob.setCellValueFactory(new PropertyValueFactory<>(\"YearOfBirth\"));\n rw = new TableColumn<>(\"R/W\");\n rw.setCellValueFactory(new PropertyValueFactory<>(\"RW\"));\n hrsv = new TableColumn<>(\"HR/SV\");\n hrsv.setCellValueFactory(new PropertyValueFactory<>(\"HRSV\"));\n rbik = new TableColumn<>(\"RBI/K\");\n rbik.setCellValueFactory(new PropertyValueFactory<>(\"RBIK\"));\n sbera = new TableColumn<>(\"SB/ERA\");\n sbera.setCellValueFactory(new PropertyValueFactory<>(\"SBERA\"));\n bawhip = new TableColumn<>(\"BA/WHIP\");\n bawhip.setCellValueFactory(new PropertyValueFactory<>(\"BAWHIP\"));\n estimatedValue = new TableColumn<>(\"Estimated Value\");\n estimatedValue.setCellValueFactory(new PropertyValueFactory<>(\"EValue\"));\n // MAKE SURE TO CHANGE ESTIMATED VALUE TO MATCH GETTERS/ SETTERS\n notes = new TableColumn<>(\"Notes\");\n notes.setCellValueFactory(new PropertyValueFactory<>(\"notes\"));\n notes.setCellFactory(TextFieldTableCell.forTableColumn());\n playerTable.setEditable(true);\n notes.setOnEditCommit((CellEditEvent<Player, String> event) -> {\n ((Player) event.getTableView().getItems().get(event.getTablePosition().getRow())).setNotes(event.getNewValue());\n });\n \n // ADD ALL THE COLUMNS TO THE TABLE\n playerTable.getColumns().setAll(first, last, proTeam, positions, yob, rw, hrsv, rbik, sbera, bawhip, estimatedValue, notes);\n \n // SET TOOLTIP\n Tooltip t = new Tooltip(\"Available Players Page\");\n playerTab.setTooltip(t);\n \n // PUT IN TAB PANE\n playerWorkspacePane.getChildren().add(search);\n playerWorkspacePane.getChildren().add(radioTool);\n playerWorkspacePane.getChildren().add(playerTable);\n playerTab.setContent(playerWorkspacePane);\n mainWorkspacePane.getTabs().add(playerTab);\n \n playerTable = resetTable(dataManager.getDraft().getPlayerPool());\n }", "public void startNewGame();", "public static void handleTabs() {\n ArrayList<String> allTabs = new ArrayList<String>(driver.getWindowHandles());\n // There will always be 2 tabs.\n driver.switchTo().window(allTabs.get(1));\n driver.close();\n driver.switchTo().window(allTabs.get(0));\n }", "public GameHandler() {\n boardGraph = new BoardGraph();\n reset();\n }", "public static void end() {\n\t\tif(firstTime)\r\n\t\t\tfirstTime=false;\r\n\t\tif (over) {\r\n\t\t\treset();\r\n\t\t\tover = false;\r\n\t\t}\r\n\t\tGUI.panel.changeGame();\r\n\t}", "public static void openTab(ClientContext ctx, Game.Tab tab) {\n if (ctx.game.tab() != tab) {\n\n if (tab == Game.Tab.INVENTORY) {\n ctx.input.send(\"{VK_F2 down}\");\n Condition.wait(new Callable<Boolean>() {\n @Override\n public Boolean call() throws Exception {\n return ctx.game.tab() == tab;\n }\n }, 250, 10);\n ctx.input.send(\"{VK_F2 up}\");\n\n } else if (tab == Game.Tab.MAGIC) {\n ctx.input.send(\"{VK_F4 down}\");\n\n Condition.wait(new Callable<Boolean>() {\n @Override\n public Boolean call() throws Exception {\n return ctx.game.tab() == tab;\n }\n }, 250, 10);\n ctx.input.send(\"{VK_F4 up}\");\n } else {\n ctx.game.tab(tab);\n\n Condition.wait(new Callable<Boolean>() {\n @Override\n public Boolean call() throws Exception {\n return ctx.game.tab() == tab;\n }\n }, 250, 10);\n }\n }\n }", "public void newGame() {\r\n\r\n gameObjects.newGame();\r\n\r\n // Reset the mScore\r\n playState.mScore = 0;\r\n\r\n // Setup mNextFrameTime so an update can triggered\r\n mNextFrameTime = System.currentTimeMillis();\r\n }", "public void\tdeinitialize(Game game);", "public void startGame(){\n System.out.println(\"[SERVER]: Starting a new game\");\n mainPage = new MainPage();\n mainPage.setMatch(match);\n mainPage.setRemoteController(senderRemoteController);\n\n Platform.runLater( () -> {\n try {\n firstPage.closePrimaryStage();\n if(chooseMap != null)\n chooseMap.closePrimaryStage();\n mainPage.start(new Stage());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n );\n }", "public void reset() {\r\n\r\n\t\tassets.allocateMusic(\"audio/SomniTrack.mp3\");\r\n\t\tassets.allocateMusic(\"audio/PhobiaTrack.mp3\");\r\n\t\tassets.allocateMusic(\"audio/CombinedTrack.mp3\");\r\n//\t\tJsonValue sounds = assets.get(\"sounds\");\r\n//\t\tsomniTrackPath = sounds.get(\"somniTrack\").asString();\r\n//\t\tphobiaTrackPath = sounds.get(\"phobiaTrack\").asString();\r\n//\t\tcombinedTrackPath = sounds.get(\"combinedTrack\").asString();\r\n\r\n\t\tsomniTrackPath = \"audio/SomniTrack.mp3\";\r\n\t\tphobiaTrackPath = \"audio/PhobiaTrack.mp3\";\r\n\t\tcombinedTrackPath = \"audio/CombinedTrack.mp3\";\r\n\r\n\t\tgameScreenActive = true;\r\n\t\tVector2 gravity = new Vector2(world.getGravity() );\r\n\t\tfor(Obstacle obj : objects) {\r\n\t\t\tobj.deactivatePhysics(world);\r\n\t\t}\r\n\t\tfor(Obstacle obj : sharedObjects) {\r\n\t\t\tobj.deactivatePhysics(world);\r\n\t\t}\r\n\t\tfor(Obstacle obj : darkObjects) {\r\n\t\t\tobj.deactivatePhysics(world);\r\n\t\t}\r\n\t\tfor(Obstacle obj : lightObjects) {\r\n\t\t\tobj.deactivatePhysics(world);\r\n\t\t}\r\n\t\tobjects.clear();\r\n\t\tsharedObjects.clear();\r\n\t\tlightObjects.clear();\r\n\t\tdarkObjects.clear();\r\n\t\tmovingObjects.clear();\r\n\t\tplatformController.currRainingPlatforms.clear();\r\n\t\tplatformController.respawningPlatforms.clear();\r\n\t\taddQueue.clear();\r\n\t\tworld.dispose();\r\n\t\tdisposeStages();\r\n\r\n\t\tworld = new World(gravity,false);\r\n\t\tsetComplete(false);\r\n\t\tsetFailure(false);\r\n\t\tfirstTimeRendered=true;\r\n\t\tpopulateLevel();\r\n\r\n\t\tcamera = canvas.getCamera();\r\n\t\tpauseButtonStage = new Stage(new ScreenViewport(camera));\r\n\t\tpauseMenuStage = new Stage(new ScreenViewport(camera));\r\n\t\tstage = new Stage(new ScreenViewport(camera));\r\n\t\twinMenuStage = new Stage(new ScreenViewport(camera));\r\n\t\tfailMenuStage = new Stage(new ScreenViewport(camera));\r\n\r\n\t\tCamera camera = canvas.getCamera();\r\n\t\tVector2 leadPos = somni.getPosition();\r\n\t\tfloat newX = leadPos.x * canvas.PPM;\r\n\t\tnewX = Math.min(newX, widthUpperBound);\r\n\t\tnewX = Math.max(canvas.getWidth() / 2, newX );\r\n\t\tcamera.position.x = newX;\r\n\r\n\t\tfloat newY = leadPos.y * canvas.PPM;\r\n\t\tnewY = Math.min(newY, heightUpperBound);\r\n\t\tnewY = Math.max(canvas.getHeight() / 2, newY );\r\n\t\tcamera.position.y = newY;\r\n\r\n\t\tcamera.update();\r\n\r\n\t\tholdingHands = false;\r\n\r\n\t\tmovementController = new MovementController(somni, phobia, combined, goalDoor, objects, sharedObjects,\r\n\t\t\t\tlightObjects, darkObjects, this);\r\n\t\tmovementController.setCurrRainingPlatforms(currRainingPlatforms);\r\n\t\tworld.setContactListener(movementController);\r\n\r\n\t\tmovementController.setAvatar(somni);\r\n\t\tmovementController.setLead(somni);\r\n\r\n\t\tcreateModalWindow(camera.position.x, camera.position.y);\r\n\t\tcreatePauseButton();\r\n\t\tcreateSliders();\r\n\t\tcreateFailWindow(camera.position.x, camera.position.y);\r\n\t\tcreateWinWindow(camera.position.x, camera.position.y);\r\n\r\n\r\n\t\tplatformController.setMovingObjects(movingObjects);\r\n\t\tplatformController.setLightObjects(lightObjects);\r\n\t\tplatformController.setDarkObjects(darkObjects);\r\n\t\tplatformController.setSharedObjects(sharedObjects);\r\n\t\tplatformController.setCurrRainingPlatforms(currRainingPlatforms);\r\n\r\n\t\tmaskLeader = phobia;\r\n\t\tswitching = false;\r\n\t\tmaskWidth = MIN_MASK_DIMENSIONS.x;\r\n\t\tmaskHeight = MIN_MASK_DIMENSIONS.y;\r\n\t\talphaAmount = 0;\r\n\r\n\r\n\t\tif(!MusicController.getInstance().isActive(\"somniTrack\")) {\r\n\t\t\tMusicController.getInstance().stopAll();\r\n\t\t\tSoundController.getInstance().stop(\"failTrack\");\r\n\t\t\tSoundController.getInstance().stop(\"winTrack\");\r\n\t\t\tMusicController.getInstance().play(\"somniTrack\", somniTrackPath, volume, true);\r\n\t\t\tMusicController.getInstance().play(\"phobiaTrack\", phobiaTrackPath, 0, true);\r\n\t\t\tMusicController.getInstance().play(\"combinedTrack\", combinedTrackPath, 0, true);\r\n\r\n\t\t}\r\n\r\n\t\tif (movementController.isHoldingHands()){\r\n\t\t\tMusicController.getInstance().setVolume(volume, \"combinedTrack\");\r\n\t\t}\r\n\t\telse if (movementController.getAvatar()==somni){\r\n\t\t\tMusicController.getInstance().setVolume(volume, \"somniTrack\");\r\n\t\t}\r\n\t\telse if (movementController.getAvatar()==phobia){\r\n\t\t\tMusicController.getInstance().setVolume(volume, \"phobiaTrack\");\r\n\t\t}\r\n\r\n\r\n\t}", "@Override\n public void onTerminate() {\n Log.i(\"Application\", \"application destory\");\n if (MySocket.getInstance().getConnected()) {\n MySocket.getInstance().stop();\n DataManager manager = DataManager.getInstance();\n manager.setSceneList(manager.getSceneList());\n manager.setEquipmentList(manager.getEquipmentList());\n for (Record record : manager.getCurrentRecords()) {\n if (record.getValues().size() == 0) {\n continue;\n }\n record.setEndTime(new Date());\n manager.addToEquipmentRecordsList(record.getId(), record.clone());\n }\n Log.i(\"Home\", \"destory\");\n Process.killProcess(Process.myPid());\n }\n super.onTerminate();\n }", "@Override\r\n public void onGameStart(){\r\n this.setVisible(false);\r\n }", "public void onDestroy() {\n cancelPausedTimer();\n k.a().b();\n stopSocket();\n clearAllMapData();\n if (this.pushManager != null) {\n this.pushManager.i();\n this.pushManager = null;\n }\n if (this.liveAnimationView != null) {\n this.liveAnimationView.onDestroy();\n }\n if (this.mLivePusherInfoView != null) {\n this.mLivePusherInfoView.onDestroy();\n }\n if (this.countDownAnimSet != null) {\n this.countDownAnimSet.cancel();\n }\n if (this.mainHandler != null) {\n this.mainHandler.removeCallbacksAndMessages(null);\n this.mainHandler = null;\n }\n if (this.workHandler != null) {\n this.workHandler.removeCallbacksAndMessages(null);\n this.workHandler = null;\n }\n if (this.mGiftBoxView != null) {\n this.mGiftBoxView.release();\n }\n if (this.mInputTextMsgDialog != null) {\n this.mInputTextMsgDialog.onDestroy();\n this.mInputTextMsgDialog = null;\n }\n super.onDestroy();\n }", "private void newGame ()\n {\n this.game.abort ();\n try\n {\n Thread.sleep(50);\n }catch (InterruptedException e)\n { \n Logger.getLogger(AsteroidsFrame.class.getName()).log(Level.SEVERE, \"Could not sleep before initialing a new game.\");\n }\n this.game.initGameData ();\n }", "void notifyGameRestored();" ]
[ "0.70398337", "0.5954397", "0.5946506", "0.59033495", "0.5900991", "0.5891232", "0.5856635", "0.5849248", "0.58168983", "0.57753867", "0.57685137", "0.5767361", "0.5741849", "0.57101846", "0.57095134", "0.5703977", "0.57006854", "0.5669824", "0.5645984", "0.56411636", "0.5616635", "0.56012297", "0.55954605", "0.5591363", "0.5589482", "0.55680496", "0.5558778", "0.5546352", "0.5538802", "0.553509", "0.55131406", "0.55097926", "0.5504068", "0.549241", "0.5487395", "0.54727346", "0.5469122", "0.5466207", "0.5461672", "0.54581136", "0.5457779", "0.544143", "0.5430576", "0.5421805", "0.54207563", "0.54178613", "0.5417182", "0.5412797", "0.54108065", "0.5407809", "0.53971785", "0.5395809", "0.5392662", "0.5391547", "0.5390093", "0.53824675", "0.53768015", "0.53722", "0.53571635", "0.5354407", "0.5350165", "0.5346197", "0.53335434", "0.53335434", "0.53335434", "0.53335434", "0.53277975", "0.53260064", "0.5325678", "0.53150755", "0.5310988", "0.5308955", "0.5308955", "0.53057903", "0.53050804", "0.5296368", "0.5295851", "0.5288752", "0.5287492", "0.5287492", "0.5287492", "0.5281867", "0.52739865", "0.52685934", "0.5266792", "0.5263466", "0.5257133", "0.5256237", "0.5246097", "0.52388275", "0.52308846", "0.52266526", "0.5224683", "0.5223081", "0.5222662", "0.52217865", "0.522163", "0.5213152", "0.5209158", "0.5195815" ]
0.6678177
1
Shuts down the threads and closes the connection to the gameserver and the output and input
public void close() { try { executorService.shutdownNow(); output.close(); input.close(); connection.close(); } catch (IOException ioe) { Main.LOGGER.log(Level.SEVERE, "Error closing GameHandler", ioe); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void shutdown() {\n\t\ttry {\n\t\t\tsock.close();\n\t\t\tgame.handleExit(this);\n\t\t\tstopped = true;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public void shutdown() {\n mGameHandler.shutdown();\n mTerminalNetwork.terminate();\n }", "public void close() {\n socket.close();\n game.close();\n this.running = false;\n }", "private void shutdown() {\n clientTUI.showMessage(\"Closing the connection...\");\n try {\n in.close();\n out.close();\n serverSock.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void stop() {\n \n // first interrupt the server engine thread\n if (m_runner != null) {\n m_runner.interrupt();\n }\n\n // close server socket\n if (m_serverSocket != null) {\n try {\n m_serverSocket.close();\n }\n catch(IOException ex){\n }\n m_serverSocket = null;\n } \n \n // release server resources\n if (m_ftpConfig != null) {\n m_ftpConfig.dispose();\n m_ftpConfig = null;\n }\n\n // wait for the runner thread to terminate\n if( (m_runner != null) && m_runner.isAlive() ) {\n try {\n m_runner.join();\n }\n catch(InterruptedException ex) {\n }\n m_runner = null;\n }\n }", "public void shutdown() {\n\t\t//We call peers.values() and put into Array to create an unchanging copy, one that\n\t\t//does not shrink even as the sockets remove themselves from the peers list\n\t\t//this prevents a ConcurrentModificationException\n\t\tonline = false;\n\t\tArrayList<DecentSocket> connections = new ArrayList<DecentSocket>(peers.values());\n\t\tfor(DecentSocket socket: connections) {\n\t\t\tsocket.stop();\n\t\t}\n\t\tlistener.stop();\n\t\tchecker.stop();\n\t}", "protected void cleanExit() throws IOException, InterruptedException {\n if (!socket.isClosed()) {\n serverInput.close();\n clientOutput.close();\n socket.close();\n if (pingThread.isAlive())\n pingThread.join();\n } else {\n view.showError(\"Match terminated due to server disconnection\");\n }\n }", "public void shutDown()\n {\n stunStack.removeSocket(serverAddress);\n messageSequence.removeAllElements();\n localSocket.close();\n }", "public void halt() {\n closeSocket(sock1);\n closeSocket(sock2);\n }", "private synchronized void stopThreads() {\n if (myGameThread != null) {\n myGameThread.requestStop();\n }\n if (myTumbleweedThread != null) {\n myTumbleweedThread.requestStop();\n }\n if (myMusicMaker != null) {\n myMusicMaker.requestStop();\n }\n myGameThread = null;\n myTumbleweedThread = null;\n myMusicMaker = null;\n }", "private void close() {\n\t\ttry {\n\t\t\tsendCommand(\"end\\n\");\n\t\t\tout.close();\n\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (MossException e) {\n\t\t} catch (IOException e2) {\n\t\t} finally {\n\t\t\tcurrentStage = Stage.DISCONNECTED;\n\t\t}\n\n\t}", "private void shutdown()\n\t\t{\n\t\tif (myChannelGroup != null)\n\t\t\t{\n\t\t\tmyChannelGroup.close();\n\t\t\t}\n\t\tif (myHttpServer != null)\n\t\t\t{\n\t\t\ttry { myHttpServer.close(); } catch (IOException exc) {}\n\t\t\t}\n\t\tmyLog.log (\"Stopped\");\n\t\t}", "private void shutdownThreads() {\n\t\tif (backupHeartbeatBroadcaster != null) {\n\t\t\tbackupHeartbeatBroadcaster.cancel();\n\t\t}\n\t\tif (activeHeartbeatTimer != null) {\n\t\t\tactiveHeartbeatTimer.cancel();\n\t\t}\n\t\tif (serverLatencyProcessorTimer != null) {\n\t\t\tserverLatencyProcessorTimer.cancel();\n\t\t}\n\t\tif (backupHeartbeatTimer != null) {\n\t\t\tbackupHeartbeatTimer.cancel();\n\t\t}\n\t\tif (reElectionTimer != null) {\n\t\t\treElectionTimer.cancel();\n\t\t}\n\t\tif (preElectionTimeoutTimer != null) {\n\t\t\tpreElectionTimeoutTimer.cancel();\n\t\t}\n\t}", "public void ShutDown()\n {\n bRunning = false;\n \n LaunchLog.Log(COMMS, LOG_NAME, \"Shut down instruction received...\");\n\n for(LaunchServerSession session : Sessions.values())\n {\n LaunchLog.Log(COMMS, LOG_NAME, \"Closing session...\");\n session.Close();\n }\n \n LaunchLog.Log(COMMS, LOG_NAME, \"...All sessions are closed.\");\n }", "protected void stopAll() {\n\t\tif (this.udpServer!=null)\n\t\t\tthis.udpServer.interrupt();\n\t\tif (this.connectionServer!=null)\n\t\t\tthis.connectionServer.interrupt();\n\t\tthis.connectionServer=null; // supprime le TCPServer et les Sockets associés\n\t\tthis.udpServer=null; // supprime l'UDPServer et les Sockets associés\n\t\tif (this.agent.getUserStatusManager()!=null)\n\t\t\tfor (String u : this.agent.getUserStatusManager().getActiveUsers())\n\t\t\t\tthis.removeSocket(u);; // interrompt tous les UserSockets\n\t\tthis.mapSockets.clear();\n\t}", "public void shutDown()\n\t{\n\t\tthis.threadPool.shutdown();\n\t}", "private void closeEverything() {\n\t \t// free up I/O streams and close the socket connection\n \ttry {\n \tif (in != null)\n \t\tin.close();\n \t} catch (Exception ignored) {}\n \ttry {\n \tif (out != null)\n \t\tout.close();\n \t} catch (Exception ignored) {}\n \ttry {\n \tif (out != null)\n \t\tout.close();\n \t} catch (Exception ignored) {}\n \ttry {\n \tif (in != null)\n \t\tin.close();\n \t} catch (Exception ignored) {}\n \ttry {\n \t\tif (inToRobot != null){\n \t\t\tinToRobot.close();\n \t\t}\n \t} catch (Exception ignored) {}\n \ttry {\n \t\tif (outFromRobot != null){\n \t\t\toutFromRobot.close();\n \t\t}\n \t} catch (Exception ignored) {}\n\t}", "public static void disconnect() {\r\n if (isConnected()) {\r\n listener.interrupt();\r\n timerThread.interrupt();\r\n keepAliveThread.interrupt();\r\n db.writeDatabase();\r\n ObjectIO.writeObjectToFile(cmdPath, cmd);\r\n tc.stopCommands();\r\n ObjectIO.writeObjectToFile(tcPath, tc);\r\n try {\r\n irc.close();\r\n }\r\n catch (IOException e) { /* Shouldn't happen */ }\r\n }\r\n irc = null;\r\n }", "public void close() {\n this.consoleListenerAndSender.shutdownNow();\n this.serverListenerAndConsoleWriter.shutdownNow();\n try {\n this.getter.close();\n this.sender.close();\n this.socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void shutdown() {\n try {\n infoServer.stop();\n } catch (Exception e) {\n }\n this.shouldRun = false;\n ((DataXceiveServer) this.dataXceiveServer.getRunnable()).kill();\n try {\n this.storage.closeAll();\n } catch (IOException ie) {\n }\n }", "public void shutdownNetwork() {\r\n networkPlayer.stop();\r\n }", "public final void exit() {\n if (this.serverSocket instanceof ServerSocket) {\n try {\n this.serverSocket.close();\n } catch (IOException ex) {\n Logger.getLogger(ServerThread.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "protected void handleKillThread() {\n \t\ttry {\n \t\t\tif (server != null)\tserver.close();\n \t\t\tif (client != null) client.close();\n \t\t} catch (IOException e) {\n \t\t\thandleError(e.getMessage());\n \t\t}\n \t}", "private void closeMainStage(){\r\n serialConnection.closeSerialConnection();//zamkniecie polaczenai serialowego i wyczyszczenie zasobow\r\n controlThreadRunFlag = false;//zastopowanie wątku kontrolnego\r\n closeAllAutomaticSendThreads(automaticSendThreadArraylist);//zamkniecie wszystkich watkow automatycznej wiadomości\r\n System.gc();//poinformowanie maszyny wirtualnej o usunieciu referencji na nieuzywane obiekty\r\n Platform.exit();//zamkniecie apliakcji - DO ZMIANY !!!!!!!!!!!!!!!!\r\n }", "public void shutdown() {\n\t\tInput.cleanUp();\n\t\tVAO.cleanUp();\n\t\tTexture2D.cleanUp();\n\t\tResourceLoader.cleanUp();\n\t}", "@Override\n public void stop() {\n try {\n serverSocket.close();\n }\n catch (IOException e) {\n getExceptionHandler().receivedException(e);\n }\n\n // Close all open connections.\n synchronized (listConnections) {\n for (TcpConnectionHandler tch : listConnections)\n tch.kill();\n listConnections.clear();\n }\n\n // Now close the executor service.\n executorService.shutdown();\n try {\n executorService.awaitTermination(3, TimeUnit.SECONDS);\n }\n catch (InterruptedException e) {\n getExceptionHandler().receivedException(e);\n }\n }", "public void quitNetworkGame() {\n \t\tgameInProgress = false;\n \t\tlocalGameController.stop();\n \t\tlobbyManager.quit();\n \t\tlobby.updateGameListPane();\n \t\tgameMain.showScreen(lobby);\n \t\tgameMain.setSize(800, 600);\n \t}", "public void terminate () {\n for (int i=0; i<threads; i++) {\n servers[i].terminate ();\n }\n }", "public void closeUp(){\n\t\ttry{\n\t\t\tif (socket!=null){\n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t\tif (input!=null){\n\t\t\t\tinput.close();\n\t\t\t}\n\t\t\tif (output!=null){\n\t\t\t\toutput.close();\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tmainDialog.dispose();\n\t\tmainDialog.dispose();\n\t\tSystem.exit(0);\n\t}", "public void exit() {\n\t\tJWebSocketTokenClient lClient;\n\t\tfor (int lIdx = 0; lIdx < mFinished; lIdx++) {\n\t\t\tlClient = mClients[lIdx];\n\t\t\tlClient.removeTokenClientListener(this);\n\t\t\ttry {\n\t\t\t\tmLog(\"Closing client #\" + lIdx + \" on thread: \" + Thread.currentThread().hashCode() + \"...\");\n\t\t\t\tlClient.close();\n\t\t\t\tThread.sleep(20);\n\t\t\t} catch (Exception lEx) {\n\t\t\t\tmLog(\"Exception: \" + lEx.getMessage() + \". Closing client #\" + lIdx + \"...\");\n\t\t\t}\n\t\t}\n\t}", "void closeSocket() {\n\t\tint size = threads.size();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (threads.get(i) == this) {\n\t\t\t\tthreads.remove(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\t\tprintActiveClients();\n\n\t\ttry {\n\t\t\tmessageBuffer.add(name + \" has just left the chatroom...\");\n\t\t\tinputStream.close();\n\t\t\toutputStream.close();\n\t\t\tclientSocket.close();\n\t\t\treturn;\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t} catch (InterruptedException ine) {\n\t\t\treturn;\n\t\t}\n\t}", "public void close(){\n\t\tlog.debug(\"[SC] Close called\", 5);\n\t\tif(socket!=null){\n\t\t\tlog.debug(\"[SC] Closing socket\", 4);\n\t\t\ttry {\n\t\t\t\tThread.sleep(10);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t//Silly impatient thread\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tout.close();\n\t\t\t\tin.close();\n\t\t\t\tsocket.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t//we're going to close it anyway\n\t\t\t}\n\t\t\tsocket = null;\n\t\t\trun = false;\n\t\t}\n\t}", "public synchronized void stop() {\r\n\t\t//TODO read why stop is deprecated http://docs.oracle.com/javase/1.5.0/docs/guide/misc/threadPrimitiveDeprecation.html\r\n\t\tif (udplistener != null) {\r\n\t\t\tudplistener.datagramSocket.close();\r\n\t\t\tudpthread.stop();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tif (tcplistener != null) {\r\n\t\t\t\ttcplistener.serverSocket.close();\r\n\t\t\t\ttcpthread.stop();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {e.printStackTrace();}\t\t\r\n\t}", "public void shutdown() {\n\t\tthreadPool.shutdown();\n\t}", "public void stop() {\n\t\tserver.saveObjectToFile(offlineMessagesFileName, _offlineMessages);\n\t\tserver.saveObjectToFile(onlineClientsFileName, _onlineClients);\n\t\tserver.saveObjectToFile(clientFriendsFileName, _clientFriends);\n\t\t_offlineMessages.clear();\n\t\t_onlineClients.clear();\n\t\t_clientFriends.clear();\n\t\tserver.stop();\n\t}", "private static void shutdown() {\n\t\tSystem.out.println(\"Shutting down ...\");\n\t\tpool.shutdown();\n\t\tfor (Client client : clientMap.values()) {\n\t\t\tclient.cleanup();\n\t\t}\n\n\t\t// wait until all threads complete\n\t\ttry {\n\t\t\tif (!pool.awaitTermination(30, TimeUnit.SECONDS)) {\n\t\t\t\tSystem.out.println(\"Force shutdown after 30 seconds ...\");\n\t\t\t\tpool.shutdownNow();\n\t\t\t\tif (!pool.awaitTermination(30, TimeUnit.SECONDS)) {\n\t\t\t\t\tSystem.out.println(\"Terminate the process.\");\n\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\tThread.currentThread().interrupt();\n\t\t}\n\t}", "public void shutDown() {\n StunStack.shutDown();\n stunStack = null;\n stunProvider = null;\n requestSender = null;\n\n this.started = false;\n\n }", "protected final void disconnect() {\n\t\trunning = false;\n\t\ttry {\n\t\t\tif (out != null)\n\t\t\t\tout.close();\n\t\t\tif (in != null)\n\t\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {e.printStackTrace();}\n\t}", "public void shutdown() {\n for (Connection connection : connections) { //Try closing all connections\n closeConnection(connection);\n }\n }", "public void shutdown() {\n /**\n * Make this thread instance null.\n */\n THREAD_INSTANCE = null;\n\n /**\n * Destroy Keep Alive Thread.\n */\n KEEP_ALIVE_THREAD.pause();\n KEEP_ALIVE_THREAD.stop();\n KEEP_ALIVE_THREAD = null;\n }", "public synchronized void shutdown() {\n server.stop();\n }", "protected void tearDown() throws InterruptedException, IOException {\n for (int i = 0; i < this.aliveInstances.size(); i++) {\n aliveInstances.elementAt(i).stop();\n }\n for (int i = 0; i < this.aliveinstancethreads.size() ; i++) {\n kv_out.println_debug(\"Try to join: \"+i);\n aliveinstancethreads.elementAt(i).join();\n }\n kv_out.println_debug(\"Tear down complete\");\n }", "@VisibleForTesting\n void killIoThreads() {\n ioThreadPool.shutdownNow();\n }", "public void shutdown()\n {\n valid = false;\n quitSafely();\n\n synchronized (loading) {\n loading.clear();\n }\n synchronized (toLoad) {\n toLoad.clear();\n }\n synchronized (tilesByFetchRequest) {\n tilesByFetchRequest.clear();\n }\n }", "public void Stop_Connection(){\n keepWalking = false; //gia na stamatisei to chat alliws to thread dn ginete interrupt gt dn stamataei i liturgeia tou.\n Chat_Thread.interrupt();\n try {\n if(oos != null) oos.close();\n if(ois != null) ois.close();\n } catch (IOException ex) {\n Logger.getLogger(ChatWithCC.class.getName()).log(Level.SEVERE, null, ex);\n }\n try {\n if(socket !=null) socket.close();\n } catch (IOException ex) {\n Logger.getLogger(ChatWithCC.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void shutdown() {\n MultiThreadedHttpConnectionManager manager = \n (MultiThreadedHttpConnectionManager) httpClient.getHttpConnectionManager();\n manager.shutdown();\n }", "private void close()\r\n {\r\n try \r\n {\r\n if(out != null) out.close();\r\n }\r\n catch(Exception e) {\r\n \r\n }\r\n try \r\n {\r\n if(in != null) in.close();\r\n }\r\n\r\n catch(Exception e) {\r\n \r\n };\r\n try \r\n {\r\n if(socket != null) socket.close();\r\n }\r\n catch (Exception e) {\r\n \r\n }\r\n }", "public void disconnect() {\n\t\ttry { \n\t\t\tif(loginInput != null) loginInput.close();\n\t\t\tif(registerInput != null) registerInput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\t\ttry {\n\t\t\tif(loginOutput != null) loginOutput.close();\n\t\t\tif(registerOutput != null) registerOutput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n try{\n\t\t\tif(loginSocket != null) loginSocket.close();\n\t\t\tif(registerSocket != null) registerSocket.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\n\t\tcg.connectionFailed();\n\t\t\t\n }", "public void shutdown() {\n try {\n \t\n \tserverSocket.close();\n \t\n } catch (Exception e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n }", "public void endGame() {\r\n\t\tthis.gameStarted = false;\r\n\t\tthis.sendMessages = false;\r\n\t\tthis.centralServer.removeServer(this);\r\n\t}", "public void exit() {\r\n\t\tsendReceiveSocket.close();\r\n\t}", "public abstract void stopThreads() throws IOException, InterruptedException;", "public synchronized void stop() {\n\t\tif(!isRunning) return; //If the game is stopped, exit method\n\t\tisRunning = false; //Set boolean to false to show that the game is no longer running\n\t\t//Attempt to join thread (close the threads, prevent memory leaks)\n\t\ttry {\n\t\t\tthread.join();\n\t\t}\n\t\t//If there is an error, print the stack trace for debugging\n\t\tcatch(InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void shutdown() {\n //LOG.debug(\"# Shutting down parking facility now... \");\n ParkingLotOperatorInstance.shutdownParkingLot();\n\n /** Since there is a sleep of 1 at the thread, we need to wait to come out of run()\n * However, sleep at the run() is required so that the thread digests the input command */\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n OperatorThread.interrupt();\n }", "private void close(){\n try {\n socket.close();\n objOut.close();\n line.close();\n audioInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void stopClient() {\n\n run = false;\n\n if (bufferOut != null) {\n bufferOut.flush();\n bufferOut.close();\n }\n\n messageListener = null;\n bufferIn = null;\n bufferOut = null;\n serverMessage = null;\n }", "public void close() {\n try {\n socket.close();\n sInput.close();\n sOutput.close();\n sInput = null;\n socket = null;\n } catch (IOException e) {\n System.out.println(\"Logged Out.\");\n }\n }", "public void exit(){\n Student s = (Student) Thread.currentThread();\n\n \tCommunicationChannel com = new CommunicationChannel (serverHostName, serverPortNumb);\n \tObject[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n \tstate_fields[0] = s.getID();\n \tstate_fields[1] = s.getStudentState();\n \t\n Message m_toServer = new Message(10, params, 0, state_fields, 2, null); \n Message m_fromServer; \n \n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n }\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n \n s.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }", "public void stop() throws IOException, InterruptedException\n\t{\n\t\t// Set the terminating signal. 11/25/2014, Bing Li\n\t\tTerminateSignal.SIGNAL().setTerminated();\n\t\t// Close the socket for the server. 08/10/2014, Bing Li\n\t\tthis.socket.close();\n\t\t\n\t\t// Stop all of the threads that listen to clients' connecting to the server. 08/10/2014, Bing Li\n\t\tfor (Runner<MyServerListener, MyServerListenerDisposer> runner : this.listenerRunnerList)\n\t\t{\n\t\t\trunner.stop();\n\t\t}\n\n\t\t// Shutdown the IO registry. 11/07/2014, Bing Li\n\t\tMyServerIORegistry.REGISTRY().dispose();\n\t\t\n\t\t// Shut down the client pool. 09/17/2014, Bing Li\n\t\tClientPool.SERVER().dispose();\n\t}", "protected void cleanup() {\n try {\n if (_in != null) {\n _in.close();\n _in = null;\n }\n if (_out != null) {\n _out.close();\n _out = null;\n }\n if (_socket != null) {\n _socket.close();\n _socket = null;\n }\n } catch (java.io.IOException e) {\n }\n }", "public void stop() {\n while (currentState.get() == ServerConstants.SERVER_STATUS_STARTING) {\r\n try {\r\n Thread.sleep(500);\r\n } catch (InterruptedException e) {\r\n // Ignore.\r\n }\r\n }\r\n\r\n if (currentState.compareAndSet(ServerConstants.SERVER_STATUS_STARTED, ServerConstants.SERVER_STATUS_OFF)) {\r\n try {\r\n bossGroup.shutdownGracefully();\r\n workerGroup.shutdownGracefully();\r\n connectionPool.shutdownAll();\r\n\r\n failedTimes.set(0);\r\n\r\n logger.info(\"Netty server stopped\");\r\n } catch (Exception ex) {\r\n logger.warn(\"Failed to stop netty server (port={}), exception:\", port, ex);\r\n }\r\n }\r\n }", "public void shutdown() {\n\t\tserver.stop(0);\n\t}", "private void closeStreams() {\n try {\n System.out.println(\"Closing streams and terminating thread.\");\n running = false;\n outputStream.close();\n inputStream.close();\n clientSocket.close();\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n }", "public void shutdown() {\n Log.info(Log.FAC_NETMANAGER, formatMessage(\"Shutdown requested\"));\n _run = false;\n if (_periodicTimer != null) _periodicTimer.cancel();\n if (_thread != null) _thread.interrupt();\n if (null != _channel) {\n try {\n setTap(null);\n } catch (IOException io) {\n }\n try {\n _channel.close();\n } catch (IOException io) {\n }\n }\n }", "public void destroy(){\n\t\tIterator toolIterator = tools.iterator();\n\t\twhile(toolIterator.hasNext()){\n\t\t\tToolBridge tb = (ToolBridge) toolIterator.next();\n\t\t\ttb.terminate();\n\t\t}\n\n\t\tmultiplexingClientServer.stopRunning();\n\t}", "public void close() {\n // close socket\n if (socket != null) {\n try {\n socket.close();\n } catch (IOException e) {\n // ignore\n }\n }\n\n socket = null;\n in = null;\n out = null;\n\n // try to stop dispather\n if (dispatcher != null) {\n dispatcher.setStopped(true);\n dispatcher.interrupt();\n }\n\n // notify all blocked thread\n if (requests != null) {\n for (Element element : requests.values()) {\n if (element.lock != null) {\n synchronized (element.lock) {\n element.lock.notify();\n }\n } else {\n // TODO notify persistent search listeners\n }\n }\n requests.clear();\n requests = null;\n }\n\n }", "public void stopThread(){\r\n\t\tthis.p.destroy();\r\n\t\ttry {\r\n\t\t\tinput.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.stop();\r\n\t}", "public void shutdown() {\n for (Entry<String,Session> entry : _sessions.entrySet())\n entry.getValue().disconnect();\n \n writeLine(\"\\nDebugServer shutting down.\");\n close();\n }", "public void close()\n {\n try\n {\n System.out.println(\"CLIENT chiude connessione\");\n receiverThread.interrupt();\n socket.close();\n System.exit(0);\n }\n catch (IOException e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "public void close() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n synchronized (globalLock) {\n isRunning = false;\n\n if (reconnectionThread != null) {\n reconnectionThread.interrupt();\n }\n\n webSocketConnection.closeInternal();\n }\n }\n }).start();\n }", "public void shutdown() {\n for (TServer server : thriftServers) {\n server.stop();\n }\n try {\n zookeeper.shutdown();\n discovery.close();\n } catch (IOException ex) {\n //don't care\n }\n }", "public void closeConnection() {\n try {\n stdIn.close();\n socketIn.close();\n socketOut.close();\n }\n catch(IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void interrupt() {\n\t\tshutdown_normally = true;\n\t\ttry {\n\t\t\tfor (ServerFwding f : peer_threads){\n\t\t\t\tif (f.isAlive())\n\t\t\t\t\tf.interrupt();\n\t\t\t}\n\t\t\t\n\t\t\tif (clients.contains(client)){\n\t\t\t\tSocket clientConnection = client.getListenerSocket();\n\t\t\t\tOutputStream out_c = new BufferedOutputStream(clientConnection.getOutputStream());\n\t\t\t\tbuf = Utility.addHeader(Constants.CLOSE_CONNECTION, 0, client.getId());\n\t\t\t\tout_c.write(buf.array());\n\t\t\t\tout_c.flush();\n\t\t\t\tout_c.close();\n\t\t\t\tclientConnection.close();\n\t\t\t\tclients.remove(client);\n\t\t\t}\n\t\t\tclientSocket.close();\n\t\t\tserverTcpSocket.close();\n\t\t} catch (IOException e) {\n\t\t\t// Error in communication\n\t\t\tSystem.err.println(client.getAddress() + \": Experienced trouble closing. (Warning)\");\n\t\t}\n\t}", "void exitSession()\n\t{\n\t\t// clear out our watchpoint list and displays\n\t\t// keep breakpoints around so that we can try to reapply them if we reconnect\n\t\tm_displays.clear();\n\t\tm_watchpoints.clear();\n\n\t\tif (m_fileInfo != null)\n\t\t\tm_fileInfo.unbind();\n\n\t\tif (m_session != null)\n\t\t\tm_session.terminate();\n\n\t\tm_session = null;\n\t\tm_fileInfo = null;\n\t}", "private void closeStreams() {\n try {\n windowForCommunication.append(\"Closing connection now.\" + \"\\n\");\n sendMessageToClient(\"ENDING CHAT: Closing connection now\");\n input.close();\n output.close();\n serverSocket.close();\n }\n catch(IOException e) {\n System.out.println(e);\n windowForCommunication.append(\"Uh oh. Seems like there was a communication error....!\");\n }\n }", "private void stop() {\r\n\t\tif (!running)\r\n\t\t\treturn;\r\n\t\trunning = false;\r\n\t\ttry {\r\n\t\t\tthread.join();//ends thread to close program correctly\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(0);//closes canvas\r\n\t\t}\r\n\t}", "public void stop() {\n tcpServer.stopServer();\n ThreadExecutor.shutdownClient(this.getClass().getName());\n }", "protected void stop() {\n keepGoing = false;\n // connect to myself as Client to exit\n try {\n new Socket(\"localhost\", port);\n } catch(Exception e) {\n // exception handling\n }\n }", "public static void shutdown() {\n\t\tSystem.err.println(\"shutdown initiated!\");\n\t\tBaseFuture bf0 = master.shutdown();\n\t\tbf0.awaitUninterruptibly();\n\t\tSystem.err.println(\"shutdown master done!\");\n\t\t\n\t\tBaseFuture bf1 = unreachable1.shutdown();\n\t\tbf1.awaitUninterruptibly();\n\t\tSystem.err.println(\"shutdown unreachable1 done!\");\n\n\t\tBaseFuture bf2 = unreachable2.shutdown();\n\t\tbf2.awaitUninterruptibly();\n\t\tSystem.err.println(\"shutdown unreachable 2 done!\");\n\t}", "void stopGame() {\n leader.disconnect();\n opponent.disconnect();\n }", "private void closeThread() {\n running = false;\n }", "private void closeConnections() throws IOException {\n\t\twhile(Server.clients != null && !Server.clients.isEmpty()){\n\t\t\tServerThread client = (Server.clients.removeFirst());\n\t\t\tclient.sendMessage(new Message(Message.CLOSE_CONNECTION));\n\t\t\t//client.close();\n\t\t}\n\t}", "public void endGame()\n\t{\n\t\tbuttonPanel.endGameButton.setEnabled(false);\n\t\tstopThreads();\n\t\tsendScore();\n\t}", "public void stop() {\n\t\tgetLogger().debug(\"Waiting 5 seconds for EVCC to process response and close TCP/TLS connection ...\");\n\t\ttry {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\t\t\n\t\tif (!isStopAlreadyInitiated()) {\n\t\t\tgetLogger().debug(\"Closing connection to client ...\");\n\t\t\tsetStopAlreadyInitiated(true);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tgetInStream().close();\n\t\t\t\tgetOutStream().close();\n\t\t\t\t\n\t\t\t\tif (getTcpClientSocket() != null) {\n\t\t\t\t\tgetTcpClientSocket().close();\n\t\t\t\t} else if (getTlsClientSocket() != null) {\n\t\t\t\t\tgetTlsClientSocket().close();\n\t\t\t\t} else {\n\t\t\t\t\tgetLogger().error(\"Neither TCP nor TLS client socket could be closed\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\tgetLogger().debug(\"Connection to client closed\");\n\t\t\t} catch (IOException e) {\n\t\t\t\tgetLogger().error(\"Error occurred while trying to close socket to client\", e);\n\t\t\t} \n\t\t}\n\t}", "public void close() {\n try {\n socket.close();\n } catch (IOException e) {\n renderablePublisher.submit(new ServerOfflineUpdate());\n }\n }", "public static void disconnect() {\n \t\tconnPool.stop();\n \t}", "public static void closeServer() {\n\t\trun = false;\n\t}", "public void stopServers() {\n EventHandlerService.INSTANCE.reset();\n UserRegistryService.INSTANCE.reset();\n\n if ( eventDispatcher != null ) {\n eventDispatcher.shutdown();\n }\n if ( userClientDispatcher != null ) {\n userClientDispatcher.shutdown();\n }\n if ( eventDispatcherThread != null ) {\n eventDispatcherThread.interrupt();\n }\n if ( userClientDispatcherThread != null ) {\n userClientDispatcherThread.interrupt();\n }\n }", "public void stopClient() {\r\n\r\n // send message that we are closing the connection\r\n mRun = false;\r\n\r\n if (mBufferOut != null) {\r\n mBufferOut.flush();\r\n mBufferOut.close();\r\n }\r\n\r\n try {\r\n if (mBufferIn != null) {\r\n mBufferIn.close();\r\n }\r\n }\r\n catch (IOException e) {\r\n Log.d(TAG, \"error closing input buffer: \" + e.getMessage());\r\n }\r\n\r\n try {\r\n if (socket != null) {\r\n socket.close();\r\n Log.i(TAG, \"Socket closed in stopClient\");\r\n }\r\n }\r\n catch (IOException e) {\r\n Log.e(TAG, \"error closing socket: \" + e.getMessage());\r\n }\r\n\r\n mMessageListener = null;\r\n mBufferIn = null;\r\n mBufferOut = null;\r\n mServerMessage = null;\r\n }", "private void closeServer() {\r\n\t\tMisc.log(\"Server will now close.\");\r\n\t\t//close the socket and server when done\r\n\t\ttry {\r\n\t\t\tserver.close();\r\n\t\t\tsocket.close();\r\n\t\t\tin.close();\r\n\t\t\tout.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n public void dispose() {\n reader.writeToServer(\"Stop\\n\");\n disconnect();\n if (gameScreen != null)\n gameScreen.dispose();\n if (mainMenuScreen != null)\n mainMenuScreen.dispose();\n\n }", "public void stopThread() {\n\t\talive = false;\n\t\t\n\t\ttry {\n\t\t\tif(oos != null) {\n\t\t\t\toos.close();\n\t\t\t}\n\t\t\tif(ois != null) {\n\t\t\t\tois.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// Why the hell is that being thrown here? Doesn't matter.\n\t\t}\n\t}", "public void turnOff(){\n\t\t//**************************************************\n\t\t// Verifica se não foi finalizada ou mesmo não foi inicializada\n\t\tif (!this.isInitialized)\n\t\t\treturn;\n\t\t\n\t\t//**************************************************\n\t\t// Seta a flag para não inicializado para evitar null exception\n\t\tthis.isInitialized = false;\n\t\t\n\t\t//**************************************************\n\t\t// Controle para Terminar as Threads\n\t\tboolean retry = true;\n\t\t//**************************************************\n\t\t// Termina os loopings das Threads\n\t\tthis.datagramSocketClientReceiverWorker.turnOff();\n\t\tthis.datagramSocketClientSenderWorker.turnOff();\n\t\t//**************************************************\n\t\t// Tenta matar a Thread de recebimento na FACA!!!\n\t\twhile(retry){\n\t\t\ttry {\n\t\t\t\tthis.datagramSocketClientReceiverThread.join();\n\t\t\t\tretry = false;\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t}\n\t\t//**************************************************\n\t\t// Reutilizando a Flag-- Isso é errado... mas fazer o que?\n\t\tretry = true;\n\t\t//**************************************************\n\t\t// Tenta matar a Thread de envio na BALA!!!!\n\t\twhile(retry){\n\t\t\ttry {\n\t\t\t\tthis.datagramSocketClientSenderThread.join();\n\t\t\t\tretry = false;\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t}\n\t}", "public void shutdown(){\n CommunicationChannel com = new CommunicationChannel (serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n Object[] state_fields = new Object[0];\n \n Message m_toServer = new Message(99, params, 0, state_fields, 0, null); \n \n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n }\n com.writeObject (m_toServer);\n com.close ();\n }", "public synchronized void shutdown() {\n try {\n stop();\n } catch (Exception ex) {\n }\n \n try {\n cleanup();\n } catch (Exception ex) {\n }\n }", "public void Stop(){\r\n\t\trunning = false;\r\n\t\thelp.print(\"Closing server, waiting for workers to complete\");\r\n\t}", "public void cleanup() {\n sendBuffer(baos);\n shutdown();\n }", "public void shutdown() {\n _udpServer.stop();\n _registrationTimer.cancel();\n _registrationTimer.purge();\n }", "public void stopServer() {\n\t\tthis.running=false;\t\t\t\t\t\t\t//the loop of the thread fails\n\t\ttry {\n\t\t\tthis.socket.close();\t\t\t\t\t//closes the socket\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(\"TCPServer : Socket non fermé\");\n\t\t}\n\t}", "public void kill() {\n this.server.stop();\n }" ]
[ "0.7544592", "0.7451581", "0.7077937", "0.7037906", "0.69299436", "0.6869722", "0.6807534", "0.6791056", "0.67752445", "0.6769395", "0.66646284", "0.6661071", "0.6647492", "0.65935016", "0.65825254", "0.6571965", "0.65574443", "0.65570796", "0.65563756", "0.65440387", "0.6533661", "0.65007836", "0.6496392", "0.64876837", "0.64865744", "0.64859045", "0.6479479", "0.64747185", "0.6472613", "0.6465768", "0.64432025", "0.6430803", "0.642987", "0.63835526", "0.63807094", "0.6375081", "0.63578945", "0.6356336", "0.6344169", "0.63374126", "0.6322978", "0.63183063", "0.6306736", "0.62965333", "0.62962794", "0.6292577", "0.62921", "0.62901163", "0.62888104", "0.62877464", "0.6282345", "0.6268845", "0.6268449", "0.62644494", "0.6255231", "0.6247337", "0.6236847", "0.62325084", "0.6222013", "0.62184", "0.6213287", "0.6210675", "0.6203129", "0.620085", "0.6200786", "0.6195467", "0.61916417", "0.6188681", "0.6182763", "0.61725694", "0.6172012", "0.6163257", "0.61525077", "0.6151393", "0.61486953", "0.61459446", "0.6143993", "0.61369026", "0.6131989", "0.6129415", "0.6128568", "0.6125719", "0.61248904", "0.6122819", "0.61186767", "0.61087304", "0.60913026", "0.6085598", "0.6085439", "0.60798645", "0.607702", "0.60753065", "0.60746706", "0.60701716", "0.60689396", "0.6068289", "0.6066471", "0.6064424", "0.6063629", "0.6063076" ]
0.71321213
2
closes the connection too gameserver and removes the gameTab object from list and the gameHandler object from list aswell
public void closeTab() { close(); for(int i = 0; i < Main.gameTabs.getTabs().size(); i++) { if(Main.gameTabs.getTabs().get(i).getId().equals(hostName)) { Main.gameTabs.getTabs().remove(i); } } for (int i=0; i<Main.gameHandler.size(); i++) { if(hostName.equals(Main.gameHandler.get(i).getHostName())) { Main.gameHandler.remove(i); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void endGame() {\r\n\t\tthis.gameStarted = false;\r\n\t\tthis.sendMessages = false;\r\n\t\tthis.centralServer.removeServer(this);\r\n\t}", "void stopGame() {\n leader.disconnect();\n opponent.disconnect();\n }", "public void endSession(){\n\t\t//remove this session from the server's list of sessions\n\t\tgameServer.removeSession(this.sessionID); \t\t\t\t\n\t\tbroadCastMessage(\"@quitGame\"); //remove all clients from the session\n\t\tconnectedClientSockets.clear();\n\t}", "public void quitNetworkGame() {\n \t\tgameInProgress = false;\n \t\tlocalGameController.stop();\n \t\tlobbyManager.quit();\n \t\tlobby.updateGameListPane();\n \t\tgameMain.showScreen(lobby);\n \t\tgameMain.setSize(800, 600);\n \t}", "public void close() {\n socket.close();\n game.close();\n this.running = false;\n }", "void gameOver() {\n if (!running.compareAndSet(true, false)) return;\n for (PlayerController controller : playerControllers) {\n if (controller == null) continue;\n controller.getClient().setPlayerController(null);\n try {\n controller.getClient().notifyGameOver();\n } catch (IOException e) {\n // no need to handle disconnection, game is over\n }\n }\n if (server != null) new Thread(() -> server.removeGame(this)).start();\n }", "public void endGame() {\n\t\twaitingPlayers.addAll(players);\n\t\tplayers.clear();\n\t\tfor(ClientThread player: waitingPlayers) {\n\t\t\tplayer.points = 0;\n\t\t\tplayer.clientCards.clear();\n\t\t}\n\t\twinners = 0;\n\t\tlosers = 0;\n\t\tpassCounter = 0;\n\t\tdeck.init();\n\t\tview.changeInAndWait(players.size(), waitingPlayers.size());\n\t\tview.writeLog(\"-------------GAME END--------------\");\n\t\tstatus = \"waiting\";\n\t\tstatusCheck();\n\t}", "@Override\n public void stopGame() {\n ((MultiplayerHostController) Main.game).stopGame();\n super.stopGame();\n }", "@Override\n\tpublic void close() {\n\t\tframe = null;\n\t\tclassic = null;\n\t\trace = null;\n\t\tbuild = null;\n\t\tbt_classic = null;\n\t\tbt_race = null;\n\t\tbt_build = null;\n\t\tGameView.VIEW.removeDialog();\n\t}", "private void refreshGameList() {\n ((DefaultListModel) gameJList.getModel()).removeAllElements();\n client.joinServer(connectedServerName, connectedServerIP, connectedServerPort);\n }", "private void shutdown() {\n\t\ttry {\n\t\t\tsock.close();\n\t\t\tgame.handleExit(this);\n\t\t\tstopped = true;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "void removeFromGame() {\n\t\t// remove from game\n\t\t//only for multi-player\n\t}", "public void stopHostingGame() {\n \t\tgameSetup.reset();\n \t\tlobbyManager.stopHostingGame();\n \t\tlobby.updateGameListPane();\n \t\tgameMain.showScreen(lobby);\n \t}", "public void close() {\n\t\ttry {\n\t\t\texecutorService.shutdownNow();\n\t\t\toutput.close();\n\t\t\tinput.close();\n\t\t\tconnection.close();\n\t\t} catch (IOException ioe) {\n\t\t\tMain.LOGGER.log(Level.SEVERE, \"Error closing GameHandler\", ioe);\n\t\t} \n\t}", "public void endGame() {\n \t\tisOver = true;\n \t\ttimeGameEnded = System.nanoTime();\n \t\tremoveAll();\n \t\trequestFocusInWindow();\n \t}", "public void goAway() {\n Enumeration<ChatClientRoom> cc = clientSessionList.elements();\n while (cc.hasMoreElements()) {\n ChatClientRoom ccr = cc.nextElement();\n ccr.goAway();\n }\n this.dispose();\n try {\n rpc.disconnect();\n } catch (Exception e) {\n System.err.println(\"ChatClientLogin could not disconnect from GMI\");\n }\n System.exit(0);\n }", "private void close() {\r\n this.dispose();\r\n MainClass.gamesPlayed++;\r\n Examples2018.menu();\r\n }", "public void closeGame(int gameID){\n\t}", "public void shutdown() {\n mGameHandler.shutdown();\n mTerminalNetwork.terminate();\n }", "public void destroy(){\n\t\tIterator toolIterator = tools.iterator();\n\t\twhile(toolIterator.hasNext()){\n\t\t\tToolBridge tb = (ToolBridge) toolIterator.next();\n\t\t\ttb.terminate();\n\t\t}\n\n\t\tmultiplexingClientServer.stopRunning();\n\t}", "void exitSession()\n\t{\n\t\t// clear out our watchpoint list and displays\n\t\t// keep breakpoints around so that we can try to reapply them if we reconnect\n\t\tm_displays.clear();\n\t\tm_watchpoints.clear();\n\n\t\tif (m_fileInfo != null)\n\t\t\tm_fileInfo.unbind();\n\n\t\tif (m_session != null)\n\t\t\tm_session.terminate();\n\n\t\tm_session = null;\n\t\tm_fileInfo = null;\n\t}", "public void destroyHandler() {\n CallAppAbilityConnnectionHandler callAppAbilityConnnectionHandler = this.mHandler;\n if (callAppAbilityConnnectionHandler != null) {\n callAppAbilityConnnectionHandler.removeAllEvent();\n this.mHandler = null;\n }\n }", "public void closeConnection(){\r\n\t\t_instance.getServerConnection().logout();\r\n\t}", "public void disconnect()\n\t{\n\t\t_active = false;\n\t\t_leader.setObjectHandler(null);\n\t\t_leader.close();\n\t\ttry\n\t\t{\n\t\t\t_pos.close();\n\t\t}\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\t// nothing to do here, doesn't matter\n\t\t}\n\t}", "@Override\n\tpublic void endGame() {\n\t\tsuper.endGame();\n\t}", "public void removeConnection(ClientHandler clientHandler){\n String nick=clientToNames.get(clientHandler);\n System.out.println(\"Removing player \"+nick+\" from the lobby number \" + lobbyID);\n namesToClient.remove(nick, clientHandler);\n nicknames.remove(nick);\n clientToNames.remove(clientHandler, nick);\n playersNumber--;\n }", "private void disconnect() {\n System.out.println(String.format(\"連線中斷,%s\",\n clientSocket.getRemoteSocketAddress()));\n final int delete = thisPlayer.id - 1;\n player[delete] = null;\n empty.push(delete);\n }", "@Override public void clientRemoveGame(Game game) throws RemoteException, SQLException {\r\n gameListClientModel.clientRemoveGame(game);\r\n }", "public void endGame(){\n\t\tgameRunning = false;\t// set gameRunning to false\n\t\tfinal SnakeGame thisGame = this;\t// store reference to the current game\n\t\tSwingUtilities.invokeLater(new Runnable() {\n public void run() {\n \t// remove our board and scoreboard\n \tgetContentPane().remove(board);\n \tgetContentPane().remove(scoreboard);\n \t// create a game over page\n \tgameOverPage = new GameOver(thisGame, scoreboard.getScore());\n \t// set our board and scoreboard to null\n \tboard = null;\n \tscoreboard = null;\n \t// add the game over page\n \tadd(gameOverPage);\n \t// validate and repaint\n \tvalidate();\n \trepaint();\n }\n\t\t});\t\n\t}", "private void quit() {\n\t\t\tArrayList<ClientThread> delList = new ArrayList<ClientThread>();\n\t\t\tdelList.add(this);\n\t\t\tplayers.removeAll(delList);\n\t\t\twaitingPlayers.removeAll(delList);\n\t\t\tview.changeInAndWait(players.size(),waitingPlayers.size());\t\t\n\t\t\tif(dealer == this) {\n\t\t\t\tdealer = null;\n\t\t\t\tview.writeLog(\"Dealer: \" + name + \" has quited. NO DEALER NOW.\");\n\t\t\t}else view.writeLog(\"Player: \" + name + \" has quited.\");\n\t\t\tstatusCheck();\n\t\t}", "public void endGame()\r\n {\r\n for (Cell c : gameBoard.bombList)\r\n {\r\n if (c.isBomb())\r\n {\r\n if (c.getText() == \"X\")\r\n {\r\n c.setId(\"correctFlag\");\r\n }\r\n else\r\n {\r\n c.setId(\"bombClicked\");\r\n }\r\n }\r\n else if (c.getText() == \"X\")\r\n {\r\n c.setId(\"incorrectFlag\");\r\n }\r\n c.setDisable(true);\r\n }\r\n if (gameBoard.emptyRemaining == 0)\r\n {\r\n win();\r\n }\r\n else\r\n {\r\n lose();\r\n }\r\n System.out.println(\"Game Over...\");\r\n scoreBoard.resetBtn.setDisable(false);\r\n }", "public void endGame() {\r\n if (state[0]) {\r\n if (state[1]) {\r\n frame.remove(pause);\r\n state[1] = false;\r\n }\r\n records.newRecord(game.map, game.end());\r\n frame.remove(game);\r\n records.saveRecords();\r\n state[0] = false;\r\n menu.setVisible(true);\r\n }\r\n }", "private void close() {\n // try to close the connection\n try {\n if (sOutput != null)\n sOutput.close();\n } catch(Exception e) {\n //handle exception\n }\n try {\n if (sInput != null)\n sInput.close();\n } catch(Exception e) {\n //handle exception\n }\n try {\n if (socket != null)\n socket.close();\n } catch (Exception e) {\n //handle exception\n }\n //save the chatlist array\n chatSave();\n }", "@Override\n public void dispose() {\n reader.writeToServer(\"Stop\\n\");\n disconnect();\n if (gameScreen != null)\n gameScreen.dispose();\n if (mainMenuScreen != null)\n mainMenuScreen.dispose();\n\n }", "public void endGame() {\n\r\n\t\tplaying = false;\r\n\t\tstopShip();\r\n\t\tstopUfo();\r\n\t\tstopMissle();\r\n\t}", "public void endGame()\n\t{\n\t\tbuttonPanel.endGameButton.setEnabled(false);\n\t\tstopThreads();\n\t\tsendScore();\n\t}", "public void stop() {\n\t\tserver.saveObjectToFile(offlineMessagesFileName, _offlineMessages);\n\t\tserver.saveObjectToFile(onlineClientsFileName, _onlineClients);\n\t\tserver.saveObjectToFile(clientFriendsFileName, _clientFriends);\n\t\t_offlineMessages.clear();\n\t\t_onlineClients.clear();\n\t\t_clientFriends.clear();\n\t\tserver.stop();\n\t}", "public static void onGameShutdown(String gameId) {\n Game game = games.remove(gameId);\n for (ConnectedPlayer player : game.getPlayers())\n player.getOutputSocket().close();\n log.trace(\"Closed {}.\", game);\n }", "private void joinGame() {\n\t\tgame.connect(list.getSelectedValue());\n\t\tdispose();\n\t}", "public void serverStop() {\n\t\tJOptionPane.showMessageDialog(dlg, \"与服务器失去连接\");\n\t\tserver = null;\n\t\tconnectAction.setEnabled(false);\n\t\t\n\t}", "@OnClose\r\n\tpublic void onClose(Session session) {\r\n\t\tSystem.out.println(\"Session \" + this.uniqueId + \" has ended\");\r\n\t\tsockets.remove(this.uniqueId);\r\n\t\tfor (EchoServer socket : sockets.values()) {\r\n\t\t\t/*if (socket != this){\r\n\t\t\t\tsocket.sendClient(uniqueId + \" Connection closed\");\t\t\t\t\r\n\t\t\t}*/\r\n\t\t\tsocket.sendClient(uniqueId + \" Connection closed\");\r\n\t\t}\r\n\t\tthis.session = null;\r\n\t}", "private void onClickQuitBtn() throws IOException {\n Stage stage = (Stage) quitBtn.getScene().getWindow();\n // Send a packet of byte[2,0] to indicate the Client is done playing, and going to quit the game\n client.sendOnly(client.getSocket(), serverPackage, 2, 0);\n client.getSocket().close();\n stage.close();\n System.out.println(\"Client has quit the Game. Socket is closed\\n\");\n }", "public void quitGame() {\n\t\tactive = false;\n\t}", "public void shutdown(boolean endGame) {\n\t\tif (!endGame) trayicon.shutdown();\n\t\t\n\t\tsaveTabs();\n\t\t\n\t\tstatus.shutdown();\n\t\t\n\t\t//do this last:\n\t\tif (!endGame) {\n\t\t\tdispose();\n\t\t}\n\t}", "public void endGame()\n\t{\n\t\tthis.opponent = null;\n\t\tthis.haveGame = false;\n\t\tthis.isTurn = false;\n\t\tfor(int i = 0; i < 3; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < 3; j++)\n\t\t\t{\n\t\t\t\tboard[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}", "public void closeSocket()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfor (CharData chs : replyList)\n\t\t\t{\n\t\t\t\tchs.conn.replyList.remove(ch);\n\t\t\t\tchs.sendln(\"Your reply list has changed.\");\n\t\t\t}\n\t\t\t\n\t\t\tif (saveable)\n\t\t\t{\n\t\t\t\tif (realCh != null)\n\t\t\t\t\tStaffCommands.doReturn(this, \"\");\n\t\t\t\t\n\t\t\t\tch.save();\n\t\t\t\tDatabase.saveAccount(this);\n\t\t\t}\n\t\t\t\n\t\t\tconnSocket.close();\n\t\t} catch (Exception e) {\n\t\t\tsysLog(\"bugs\", \"Error in closeSocket: \"+e.getMessage());\n\t\t\tlogException(e);\n\t\t}\n\t}", "public synchronized void gameOver(PlayerHandler playerHandler) {\n\n winner();\n\n if (temporaryGame) {\n for (Game game : Server.getGames().values()) {\n if (game.equals(this)) {\n Server.getGames().remove(playerHandler.getGameRoom());\n //return; //(if not commented, does not remove the !fixed game.\n System.out.println(\"game \" + this.name + \" removed from map\");\n }\n }\n }\n\n resetGameRoom();\n\n }", "public void shutdown() {\n\t\tfor(Player player : new ArrayList<>(entries.keySet())) {\n\t\t\tonQuit(new PlayerQuitEvent(player, (Component) null, PlayerQuitEvent.QuitReason.DISCONNECTED));\n\t\t}\n\t}", "void kill()\n\t{\n\t\tfor(GameObject G : ObjectList)\n\t\t{\n\t\t\tG.kill();\n\t\t}\n\t}", "public void exit() {\n\t\tJWebSocketTokenClient lClient;\n\t\tfor (int lIdx = 0; lIdx < mFinished; lIdx++) {\n\t\t\tlClient = mClients[lIdx];\n\t\t\tlClient.removeTokenClientListener(this);\n\t\t\ttry {\n\t\t\t\tmLog(\"Closing client #\" + lIdx + \" on thread: \" + Thread.currentThread().hashCode() + \"...\");\n\t\t\t\tlClient.close();\n\t\t\t\tThread.sleep(20);\n\t\t\t} catch (Exception lEx) {\n\t\t\t\tmLog(\"Exception: \" + lEx.getMessage() + \". Closing client #\" + lIdx + \"...\");\n\t\t\t}\n\t\t}\n\t}", "private void finishGame() {\n for (GameObject gameObject : gameObjects) gameObject.finishGame(game);\n gameAlertDialog.show(\"FINISH\");\n }", "private void destroy(DynamicConnectivity.Splay s) {\n }", "public void createNewLobby() {\n\t\tPlatform.runLater(() -> {\n\t\tTab tab = new Tab(\"Ludo\");\n\t\ttab.setId(hostName);\n\t\ttab.setClosable(true);\n\t\ttab.setOnClosed(new EventHandler<Event>() {\n\t\t\t@Override\n\t\t\tpublic void handle(Event e) {\n\t\t\t\t//String dcPlayer;\n\t\t\t\tint p, turnowner;\n\t\t\t\tif (gameClientUIController != null) {\n\t\t\t\t\tp = gameClientUIController.getPlayer();\n\t\t\t\t\tturnowner = gameClientUIController.getTurnOwner();\n\t\t\t\t\t//dcPlayer = Integer.toString(gameClientUIController.getPlayer());\n\t\t\t\t\tif(p == turnowner) { //Check if player disconnected on his/her own turn\n\t\t\t\t\t\tsendText(Constants.DICEVALUE + 0 + p + 0);\n\t\t\t\t\t}\n\t\t\t\t\t//sendText(Constants.DISCONNECT + dcPlayer);\t//Disconnect the player and remove the player from the server\n\t\t\t\t\tMain.sendText(Constants.GAMELOST); \n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tsendText(Constants.DISCONNECT);\n\t\t\t\t\n\t\t\t\tMain.cHandler.leaveGameChat(hostName);\n\t\t\t\tString tmp = Constants.IDGK + Main.userName;\n\t\t\t\tif (tmp.equals(hostName)) {\n\t\t\t\t\tMain.sendText(Constants.REMOVEHOST + hostName);\n\t\t\t\t\tMain.mainController.openNewGameButton();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tclose();\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < Main.gameTabs.getTabs().size(); i++) {\n\t\t\t\t\tif(Main.gameTabs.getTabs().get(i).getId().equals(hostName)) {\n\t\t\t\t\t\tMain.gameTabs.getTabs().remove(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int i=0; i<Main.gameHandler.size(); i++) {\n\t\t\t\t\tif(hostName.equals(Main.gameHandler.get(i).getHostName())) {\n\t\t\t\t\t\tMain.gameHandler.remove(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tFXMLLoader loader = new FXMLLoader();\n\t\n\t\t\ttry {\n\t\t\t\tswitch (caseNr) {\n\t\t\t\tcase 1:\n\t\t\t\t\ttab.setContent(loader.load(getClass().getResource(\"CreateGameLobby.fxml\").openStream()));\n\t\t\t\t\tcreateGameLobbyController = (CreateGameLobbyController) loader.getController();\n\t\t\t\t\tcreateGameLobbyController.setHostPlayer(hostName);\n\t\t\t\t\tcreateGameLobbyController.setConnetion(output);\n\t\t\t\t\tbreak;\n\t\n\t\t\t\tcase 2:\n\t\t\t\t\ttab.setContent(loader.load(getClass().getResource(\"HostGameLobby.fxml\").openStream()));\n\t\t\t\t\thostGameLobbyController = (HostGameLobbyController) loader.getController();\n\t\t\t\t\thostGameLobbyController.setHostPlayer(hostName);\n\t\t\t\t\thostGameLobbyController.setConnetion(output);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 3: \n\t\t\t\t\ttab.setContent(loader.load(getClass().getResource(\"PlayerGameLobby.fxml\").openStream()));\n\t\t\t\t\tplayerGameLobbyController = (PlayerGameLobbyController) loader.getController();\n\t\t\t\t\tplayerGameLobbyController.setHostPlayer(hostName);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault: \n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\n\t\t\t\tMain.gameTabs.getTabs().add(tab);\n\t\t\t\tMain.gameTabs.getSelectionModel().select(tab);\n\t\t\t\t\n\t\t\t\tprocessConnection();\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tMain.LOGGER.log(Level.SEVERE, \"Unable to find fxml file\", ioe);\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n public void close() {\r\n if (Boolean.FALSE.equals(active))\r\n return;\r\n active = false;\r\n notify(new Notification(username, new Gson().toJson(new Command(\"quitPlayer\", \"quitPlayer\", null, null))));\r\n closeConnection();\r\n pinger.stop();\r\n }", "@Override\n\tprotected void onDestroy() {\n\t\tif(connection.isConnected()){\n\t\t\tconnection.disconnect();\n\t\t\tconnection=null;\n\t\t}\n\t\tmHandler.removeMessages(HandleConfig.REFRESHROOMINFO);\n\t\tmHandler.removeMessages(HandleConfig.GETROOMINFO);\n\t\tSystem.out.println(\"---onDestroy---\");\n\t\tsuper.onDestroy();\n\t}", "private void logout(){\n player.setName(\"(bot) \" + player.getName());\n botMode = true;\n System.out.println(\"bot made\");\n login = false;\n }", "private void destroyGameInstance() {\n // Destroy Game\n this.model.setPuzzle(null);\n this.model.setHintsUsed(0);\n this.model.getTimer().stop();\n this.model.setTimer(null);\n view.getGamePanel().getHintBtn().setEnabled(true);\n for (Cell cell : this.view.getGamePanel().getViewCellList()) {\n this.view.getGamePanel().getGrid().remove(cell);\n }\n }", "public static void shutDownPlayer()\n {\n MusicPlayerControl.shutdown();\n JSoundsMainWindowViewController.listSongs=null;\n JSoundsMainWindowViewController.listSongs=new JMusicPlayerList();\n JSoundsMainWindowViewController.alreadyPlaying=false;\n JSoundsMainWindowViewController.dontInitPlayer=false;\n JSoundsMainWindowViewController.shutDown=true;\n }", "private void closeServer() {\n\t\tif (listener != null && !listener.isClosed()) {\n\t\t\ttry {\n\t\t\t\tfor (String name : ConnectedClients.keySet()) {\n\t\t\t\t\tSystem.out.println(\"key: \" + name);\n\t\t\t\t\tArrayList<Object> ClientData = new ArrayList<Object>();\n\t\t\t\t\tClientData = ConnectedClients.get(name);\n\t\t\t\t\tDataOutputStream send = (DataOutputStream) ClientData.get(1);\n\t\t\t\t\tsend.writeUTF(\"SERVER DOWN\");\n\n\t\t\t\t}\n\t\t\t\t//close the socket \n\t\t\t\tlistener.close();\n\n\t\t\t} catch (IOException e) {\n\t\t\t\t// e.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void destroyConnectionWithYourTower() {\n }", "public void disconnect(){ \r\n if (matlabEng!=null){ \r\n matlabEng.engEvalString (id,\"bdclose ('all')\");\r\n matlabEng.engClose(id);\r\n matlabEng=null;\r\n id=-1; \r\n }\r\n }", "public static void finishGame(File database) {\n closeAllSockets();\n clearChatDatabase(database);\n }", "@Override\n public void onTerminate() {\n Log.i(\"Application\", \"application destory\");\n if (MySocket.getInstance().getConnected()) {\n MySocket.getInstance().stop();\n DataManager manager = DataManager.getInstance();\n manager.setSceneList(manager.getSceneList());\n manager.setEquipmentList(manager.getEquipmentList());\n for (Record record : manager.getCurrentRecords()) {\n if (record.getValues().size() == 0) {\n continue;\n }\n record.setEndTime(new Date());\n manager.addToEquipmentRecordsList(record.getId(), record.clone());\n }\n Log.i(\"Home\", \"destory\");\n Process.killProcess(Process.myPid());\n }\n super.onTerminate();\n }", "public void close(){\n try{\n this.clientSocket.close();\n }\n catch (IOException e){\n\n }\n this.wamBoard.close();\n }", "public void finishGame(){\r\n\t\t\t\tgameStarted = false;\r\n\t\t\t}", "private void removePlayerFromLobby() {\n\n //Added Firebase functionality assuming var player is the player who wants to leave the game.\n }", "private void closeConnections() throws IOException {\n\t\twhile(Server.clients != null && !Server.clients.isEmpty()){\n\t\t\tServerThread client = (Server.clients.removeFirst());\n\t\t\tclient.sendMessage(new Message(Message.CLOSE_CONNECTION));\n\t\t\t//client.close();\n\t\t}\n\t}", "public void close() throws RemoteException {\r\n closed = true;\r\n informationsForDrawing.playerStates[ ownIndex ] = null;\r\n }", "public void Stop(Player player){\r\n \r\n if (Players.size()==1)\r\n {\r\n enddate=new Date();\r\n //write the result in a file \r\n //read the last game id and plus it with 1\r\n int gameID=0;\r\n String result=\"\";\r\n boolean playerwin=false;\r\n File f = new File(new File(\"\").getAbsolutePath() + \"\\\\src\\\\projectafterupdatev1\\\\pkg2\\\\GameRecords\");\r\n ObjectInputStream obj=null;\r\n try {\r\n obj = new ObjectInputStream(new FileInputStream(f));\r\n } catch (IOException ex) {System.out.println(\"exeption for newing the obj in game id initllize\");}\r\n while (true) {\r\n try {\r\n\r\n FinishedGameRecord temp = (FinishedGameRecord) obj.readObject();\r\n gameID=temp.gameID;\r\n } catch (EOFException e) {\r\n try {\r\n obj.close();\r\n } catch (IOException ex) {}\r\n break;\r\n } catch (IOException ex) {System.out.println(\"gameID initlizing IOE error\"); \r\n } catch (ClassNotFoundException ex) {System.out.println(\"gameID initlizing Class not found error\");\r\n }\r\n }\r\n \r\n gameID++;\r\n if (Objects.equals(Players.get(0).name, new String(\"Random PC\")))\r\n {\r\n result=\"PC Win\";\r\n \r\n }else\r\n {\r\n playerwin=true;\r\n result=Players.get(0).name+\" Win\";\r\n }\r\n //insert the new game record \r\n FinishedGameRecord lastscore=new FinishedGameRecord(playername,\"Random PC\",startdate,enddate,gameID,result);\r\n try {\r\n FileOutputStream os=new FileOutputStream(new File(new File(\"\").getAbsoluteFile()+\"\\\\src\\\\projectafterupdatev1\\\\pkg2\\\\GameRecords\"),true);\r\n AppendingObjectOutputStream obj2=new AppendingObjectOutputStream(os);\r\n \r\n obj2.writeObject(lastscore);\r\n \r\n obj2.close();\r\n os.close();\r\n } catch (FileNotFoundException ex) {System.out.println(\"writeing finished game record 111a\");} \r\n catch (IOException ex){System.out.println(\"111b\");}\r\n \r\n //writing to the score board \r\n \r\n File f3 = new File(new File(\"\").getAbsolutePath() + \"\\\\src\\\\projectafterupdatev1\\\\pkg2\\\\ScoreBoard\");\r\n try {\r\n AppendingObjectOutputStream obj4sore=new AppendingObjectOutputStream(new FileOutputStream(f3,true));\r\n \r\n obj4sore.writeObject(new ScoreRecord(playername, playerwin));\r\n \r\n obj4sore.close();\r\n } catch (FileNotFoundException ex) {System.out.println(\"File not Found obj 4 score\");\r\n } catch (IOException ex) {System.out.println(\"IOEexception obj4score\");\r\n }\r\n \r\n \r\n //insert the toturial records\r\n File f2 = new File(new File(\"\").getAbsolutePath() + \"\\\\src\\\\projectafterupdatev1\\\\pkg2\\\\ToturialFile\");\r\n try {\r\n \r\n AppendingObjectOutputStream obj3=new AppendingObjectOutputStream(new FileOutputStream(f2,true));\r\n WritableToturialClass temp=new WritableToturialClass();\r\n temp.Initlize(moves.size());\r\n temp.gameID=gameID;\r\n temp.grid=boarddata;\r\n temp.note=notedata;\r\n temp.header=boardsheader;\r\n for(int i=0;i<moves.size();i++){\r\n temp.add(moves.get(i).nameoftheattacker, moves.get(i).xaxis, moves.get(i).xaxis,moves.get(i).date);\r\n moves.get(i);\r\n }\r\n obj3.writeObject(temp);\r\n obj3.close();\r\n } catch (FileNotFoundException ex) {System.out.println(\"File not Found obj 3 \");\r\n } catch (IOException ex) {System.out.println(\"IOEexception obj3\");\r\n }\r\n //end of the adding operations\r\n \r\n WinnerDisplay win=new WinnerDisplay();\r\n win.setWinner(Players.get(0).name);\r\n //make the list disappear before the saving shit happen\r\n playerboard.repaintafterupdate();\r\n playerboard.setVisible(false);\r\n win.setLocation(500,300);\r\n win.setVisible(true);\r\n music.StopTheMusic();\r\n music.PlayWinner();\r\n \r\n \r\n }\r\n }", "public void Gamefinished()\n\t\t{\n\t\t\tplayers_in_game--;\n\t\t}", "public void freeAll()\n\t\t{\n\t\t\ts_cGameInstance = null; \n\t\t}", "public void endGame() {\n Player player = playerManager.getWinner();\n MainActivity mainActivity = (MainActivity) this.getContext();\n updateLiveComment(\"Winner : \" + player.getName());\n mainActivity.setAlertDialog(player.getName()+\" Wins !\", \"Congratulations\", true);\n }", "@Override\n public void onDestroy() {\n Log.d(TAG, \"Shutting Server\");\n busHandler.sendMessage(busHandler.obtainMessage(BusHandler.DISCONNECT));\n }", "@OnClose\n\tpublic void onClose(Session session) {\n\t\tclients.remove(session);\n\t}", "@OnClose\n\tpublic void onClose(Session session) {\n\t\tclients.remove(session);\n\t}", "public void perdio() {\n\t\tthis.juego = null;\n\t\thiloJuego = null;\n\t\tthis.panelJuego = null;\n\t\tthis.dispose();\n\t\tGameOver_Win go = new GameOver_Win(0);\n\t\tgo.setVisible(true);\n\t\t\n\t}", "public void endTurn(){\n game.setNextActivePlayer();\n myTurn = false;\n\n stb.updateData(\"playerManager\", game.getPlayerManager());\n stb.updateData(\"aktivePlayer\", game.getPlayerManager().getAktivePlayer());\n stb.updateData(\"roomList\", game.getRoomManager().getRoomList());\n\n getIntent().putExtra(\"GAME\",game);\n getIntent().putExtra(\"myTurn\", false);\n finish();\n if(!game.getPlayerManager().getPlayerList().get(whoAmI).isDead())\n startActivity(getIntent());\n else\n fcm.unbindListeners();\n }", "public void clearGameList() {\n gameJList.removeAll();\n }", "public void gano() {\n\t\t\n\t\tGameOver_Win win = new GameOver_Win(1);\n\t\thiloJuego = null;\n\t\tthis.panelJuego = null;\n\t\tthis.dispose();\n\t\tthis.juego = null;\n\t\twin.setVisible(true);\n\t\t\n\t}", "public void quitGame() {\n quitGame = true;\n }", "public void disconnect() {\r\n connection.quit();\r\n menuFrame.setVisible(true);\r\n chatFrame.clearMessages();\r\n chatFrame.setVisible(false);\r\n leaderboardFrame.setVisible(false);\r\n lobbyFrame.setVisible(false);\r\n }", "@Override\n public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) {\n Client client = (Client) ctx.getChannel().getAttachment();\n Player player = client.getPlayer();\n if (player != null && !player.destroyed()) {\n player.destroy(false);\n }\n if(engine.getClients().contains(client)) {\n \tSystem.out.println(\"Remove client\");\n \tengine.removeClient(client);\n }\n }", "private void quitGame() {\n this.primaryStage.close();\n }", "@Override\n\tpublic void onExit() {\n\t\tlabelHelp = null;\n\t\tlayer_force = null;\n\t\tmSoundBtn = null;\n\t\tboxMessage = null;\n\n\t\tSystem.gc();\n\t\tsuper.onExit();\n\t}", "public void onDestroy() {\n super.onDestroy();\n Object object = this.mLock;\n synchronized (object) {\n Iterator<MediaSession2> iterator = this.getSessions().iterator();\n do {\n if (!iterator.hasNext()) {\n this.mSessions.clear();\n this.mNotifications.clear();\n // MONITOREXIT [2, 3, 4] lbl9 : MonitorExitStatement: MONITOREXIT : var1_1\n this.mStub.close();\n return;\n }\n this.removeSession(iterator.next());\n } while (true);\n }\n }", "public void endGame(){\r\n\t\tupdateRecord();\r\n\t\tgameStats.writeToFile();\r\n\t\tstatisticsList = gameStats.makeArrayList();\r\n\t\tgameStats.writeListToFile(statisticsList);\r\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tUiUpdater.unregisterClient(handler);\r\n\t}", "public void endSession() {\n if (sqlMngr != null) {\n sqlMngr.disconnect();\n }\n if (sc != null) {\n sc.close();\n }\n sqlMngr = null;\n sc = null;\n }", "private void quit() {\n\t\tmSipSdk = myApplication.getPortSIPSDK();\n\n\t\tif (myApplication.isOnline()) {\n\t\t\tLine[] mLines = myApplication.getLines();\n\t\t\tfor (int i = Line.LINE_BASE; i < Line.MAX_LINES; ++i) {\n\t\t\t\tif (mLines[i].getRecvCallState()) {\n\t\t\t\t\tmSipSdk.rejectCall(mLines[i].getSessionId(), 486);\n\t\t\t\t} else if (mLines[i].getSessionState()) {\n\t\t\t\t\tmSipSdk.hangUp(mLines[i].getSessionId());\n\t\t\t\t}\n\t\t\t\tmLines[i].reset();\n\t\t\t}\n\t\t\tmyApplication.setOnlineState(false);\n\t\t\tmSipSdk.unRegisterServer();\n\t\t\tmSipSdk.DeleteCallManager();\n\t\t}\n\t}", "void endSinglePlayerGame(String message);", "public void destroy() {\n this.game.deleteObject(this);\n }", "public void close() {\n\t\tif (this.luaState != 0) {\n\t\t\tLuaStateManager.removeState(stateId);\n\t\t\t_close(luaState);\n\t\t\tthis.luaState = 0;\n\t\t}\n\t}", "public void onDestroy() {\n cancelPausedTimer();\n k.a().b();\n stopSocket();\n clearAllMapData();\n if (this.pushManager != null) {\n this.pushManager.i();\n this.pushManager = null;\n }\n if (this.liveAnimationView != null) {\n this.liveAnimationView.onDestroy();\n }\n if (this.mLivePusherInfoView != null) {\n this.mLivePusherInfoView.onDestroy();\n }\n if (this.countDownAnimSet != null) {\n this.countDownAnimSet.cancel();\n }\n if (this.mainHandler != null) {\n this.mainHandler.removeCallbacksAndMessages(null);\n this.mainHandler = null;\n }\n if (this.workHandler != null) {\n this.workHandler.removeCallbacksAndMessages(null);\n this.workHandler = null;\n }\n if (this.mGiftBoxView != null) {\n this.mGiftBoxView.release();\n }\n if (this.mInputTextMsgDialog != null) {\n this.mInputTextMsgDialog.onDestroy();\n this.mInputTextMsgDialog = null;\n }\n super.onDestroy();\n }", "@OnClose\n public void onClose(Session session){\n System.out.println(\"Socket A: Chat \" +session.getId()+\" has ended\");\n sessions.remove(session);\n }", "@Override\r\n protected void onDestroy() {\r\n super.onDestroy();\r\n socketManager.disconnectSocket();\r\n }", "@Override\n public void onDestroy() {\n unregisterReceiver(reciever);\n mp.pause();\n mp.stop();\n mp.release();\n wifiManager.disableNetwork(wifiManager.getConnectionInfo().getNetworkId());\n wifiManager.removeNetwork(wifiManager.getConnectionInfo().getNetworkId());\n wifiManager.disconnect();\n try {\n\n serverSocket.close();\n }catch (Exception ex)\n {\n\n }\n super.onDestroy();\n\n }", "@Override\n public void channelIdle(ChannelHandlerContext ctx, IdleStateEvent e) {\n Player player = (Player) ctx.getAttachment();\n if (!player.destroyed()) {\n player.destroy(false);\n }\n ctx.getChannel().close();\n }", "private void gameEnd() {\n\tserver.publicMessage(\"The mafia were: \" + mafiaAtStart);\r\n\r\n\tgameInProgress = false;\r\n\tplayers.clear();\r\n\tmafia.clear();\r\n\tinnocentIDs.clear();\r\n\tserver.unMuteAllPlayers();\r\n }", "public void stopGame() {\n\t\tgetGameThread().stop();\n\t\tgetRenderer().stopRendering();\n\t}", "private void close(){\n try {\n socket.close();\n objOut.close();\n line.close();\n audioInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }" ]
[ "0.6896574", "0.6812422", "0.64981127", "0.64826274", "0.6438239", "0.6332159", "0.62736315", "0.6257594", "0.6251235", "0.6240662", "0.6188236", "0.6162338", "0.6114806", "0.6083026", "0.6074053", "0.60386944", "0.6009477", "0.59983164", "0.5980884", "0.5977479", "0.596653", "0.5939347", "0.5939047", "0.5929977", "0.5923525", "0.5920179", "0.5898734", "0.589109", "0.58740085", "0.58681995", "0.58639985", "0.5858006", "0.58414996", "0.5828052", "0.58177644", "0.5791867", "0.5785989", "0.57811636", "0.5744894", "0.5744239", "0.57180154", "0.57108444", "0.5700691", "0.5697139", "0.56958026", "0.568183", "0.56778103", "0.5669753", "0.56682146", "0.56628907", "0.56612664", "0.56534016", "0.5642585", "0.56384075", "0.56373316", "0.56369627", "0.5635183", "0.5633044", "0.5629961", "0.56234115", "0.5619059", "0.5604733", "0.5598519", "0.55818", "0.5579281", "0.5577347", "0.5571885", "0.55642855", "0.55571145", "0.55539775", "0.55539566", "0.5549696", "0.5547192", "0.55451924", "0.55451924", "0.55372447", "0.5535836", "0.55333936", "0.5531088", "0.5522205", "0.55174404", "0.5512887", "0.551218", "0.5511678", "0.5505043", "0.55048543", "0.55027086", "0.5498769", "0.54955316", "0.5495317", "0.5493267", "0.54922616", "0.548788", "0.54777277", "0.54766256", "0.54747725", "0.54738", "0.5468739", "0.5468215", "0.54675734" ]
0.73307973
0
Get the lobby type of the GameHandler object
public boolean getCaseNr() { return caseNr == 1? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SpawnType getLobbySpawnType();", "public static GameType getGameType() {\n\t\treturn type;\n\t}", "public String getGameType() {\n return gameType;\n }", "SpawnType getGameSpawnType();", "public static int getGameType()\n\t{\n\t\treturn -1;\n\t}", "public String getLoadGameType(){\n return m_LoadGameType;\n }", "public PlayerTypes getPlayerType();", "public int getLobbyID() {\r\n return lobbyID;\r\n }", "public Lobby getLobbyFrame() {\r\n return lobbyFrame;\r\n }", "public abstract Class<BE> getBukkitEntityType();", "int getGunType();", "public FreeColGameObjectType getType() {\n return this;\n }", "im.turms.common.constant.ChatType getChatType();", "public BowlingGame getGame();", "java.lang.String getLobbyId();", "com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType();", "private String getOpeningType(Game game) {\n for (int i = 0; i < 6; i++) {\n game.forward();\n }\n\n if (isType1(game)) {\n return TYPE1;\n } else if (isType2(game)) {\n return TYPE2;\n } else if (isType3(game)) {\n return TYPE3;\n } else if (isTypeRelaxed(game)) {\n return TYPE_RELAXED;\n } else {\n return UNKNOWN;\n }\n }", "@java.lang.Override\n public java.lang.String getLobbyId() {\n java.lang.Object ref = lobbyId_;\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 lobbyId_ = s;\n return s;\n }\n }", "public java.lang.String getLobbyId() {\n java.lang.Object ref = lobbyId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n lobbyId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getPlayerType() {\r\n return playerType;\r\n\t}", "public int getGameObject (GameObject gameObject){\n\t\tint typeObject =0;\r\n\t\tif (gameObject instanceof ShipSection){\r\n\t\t\ttypeObject= 1;\r\n\t\t}\r\n\t\telse if (gameObject instanceof Shots || gameObject instanceof Explosion){\r\n\t\t\ttypeObject= 2;\r\n\t\t}\r\n\t\telse if (gameObject instanceof Blank){\r\n\t\t\ttypeObject= 3;\r\n\t\t}\r\n\t\treturn typeObject;\r\n\t}", "public Location getLobbyLocation() {\n return gameLocations.get(GameLocation.LOBBY);\n }", "@Override\n public LargeFireballType getType() {\n return LargeFireballType.TYPE;\n }", "public LightType type()\n\t{\n\t\treturn _type;\n\t}", "ru.ifmo.java.servertest.protocol.TestingProtocol.ServerType getType();", "public String getBoatType() {\n return BOATTYPE[boatTypeIndex];\n }", "Bodymodtype getBodyModType();", "public String getType() {\n\t\treturn gfType;\n\t}", "@External(readonly = true)\n\tpublic List<String> get_game_type(){\n\t\t\n\t\treturn this.GAME_TYPE;\n\t}", "public com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType() {\n return type_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLobbyIdBytes() {\n java.lang.Object ref = lobbyId_;\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 lobbyId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getLobbyIdBytes() {\n java.lang.Object ref = lobbyId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n lobbyId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected String getBehaviorType() {\n\t\treturn this.behaviorType;\n\t}", "com.rpg.framework.database.Protocol.ItemType getType();", "public static Class<?> getNetServerHandlerClass() {\n \t\treturn getMinecraftClass(\"NetServerHandler\", \"PlayerConnection\");\n \t}", "PlatformComponentType getActorReceiveType();", "public com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType() {\n return type_;\n }", "public boolean isBot() {\n \t\treturn (type == PLAYER_BOT);\n \t}", "public abstract String getWorldType();", "String getActorType();", "public int getPlayerType() {\r\n\t\treturn Player.RANDOM_PLAYER;\r\n\t}", "public TurnType getType() {\n\t\treturn type;\n\t}", "interface Game {\n\n // Bank\n String TRANSACTION = \"transaction\";\n\n // Lobby\n String POKE = \"poke\";\n String MEMBER_READY = \"member_ready\";\n }", "public int getType() {\n validify();\n return Client.INSTANCE.pieceGetType(ptr);\n }", "public EnnemyType getType()\n\t{\n\t\treturn type;\n\t}", "public GameTypeWrapper playGame();", "public static final TypeDescriptor<?> strategyType() {\n return INSTANCE.getType(Constants.TYPE_STRATEGY);\n }", "StrategyType type();", "public int getGunType() {\n return gunType_;\n }", "public static Class<?> getNetHandlerClass() {\n \t\treturn getMinecraftClass(\"NetHandler\", \"Connection\");\n \t}", "String getTileType();", "com.google.protobuf.ByteString\n getLobbyIdBytes();", "PlatformComponentType getActorSendType();", "GlAccountType getGlAccountType();", "public static void saveGameType() {\r\n\t\tclearGameType();\r\n\t\t\r\n\t\tif (GameSetup.threeHanded.getState()) {\r\n\t\t\tMain.isThreeHanded = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedSingle.getState()) {\r\n\t\t\tMain.isFourHandedSingle = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedTeams.getState()) {\r\n\t\t\tMain.isFourHandedTeams = true;\r\n\t\t}\r\n\t}", "public String getGameMode() {\n return gameMode;\n }", "public String getGodClass()\r\n {\r\n return mGodClass;\r\n }", "MessageType getType();", "public int getGunType() {\n return gunType_;\n }", "public BoardType getBoardType() {\r\n return this.boardType;\r\n }", "public String getWindowType() {\n\t\treturn windowType;\n\t}", "GLStateType getType();", "public AngelType getType() {\n return type;\n }", "public static Type<UserStatusChangeEvent.Handler> getType() {\r\n\t\treturn TYPE;\r\n\t}", "DoorMat getType(boolean isPowered, boolean hingeOnRightSide);", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "public com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType getType() {\n com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType result = com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType.valueOf(type_);\n return result == null ? com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType.CHAT : result;\n }", "ObjectType get(String identifier) throws GuacamoleException;", "public String getLtype() {\n return (String) get(2);\n }", "@Override\n\tpublic Type getType() {\n\t\treturn heldObj.getType();\n\t}", "com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType getType();", "public final native String getType() /*-{\n return this.getType();\n }-*/;", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();" ]
[ "0.7356613", "0.68326735", "0.6581752", "0.65409267", "0.6423778", "0.6073682", "0.603716", "0.6006504", "0.6001789", "0.5978057", "0.59503585", "0.58741295", "0.58424336", "0.581004", "0.5796882", "0.579087", "0.5774549", "0.5678488", "0.5640282", "0.5619594", "0.55757505", "0.5573148", "0.5568675", "0.55636436", "0.5511021", "0.55026096", "0.54899985", "0.5464388", "0.5457561", "0.5423459", "0.54007053", "0.5387444", "0.53824", "0.53765804", "0.5371892", "0.53707635", "0.5358361", "0.5353628", "0.535284", "0.5350724", "0.5346978", "0.53457963", "0.5340019", "0.53341043", "0.53073424", "0.53046393", "0.52986526", "0.5293381", "0.52782524", "0.52648914", "0.5259494", "0.5231292", "0.52262604", "0.522296", "0.52170455", "0.5212269", "0.52037454", "0.51981413", "0.5194868", "0.51924413", "0.5181547", "0.51755655", "0.516905", "0.51634437", "0.5160498", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.5152128", "0.51367205", "0.5133431", "0.512081", "0.50934076", "0.509329", "0.5092601", "0.50852525", "0.50852525", "0.50852525", "0.50852525", "0.50852525" ]
0.0
-1
Removes the player from the playerList in createGameLobby
public void removePlayer(String name) { createGameLobbyController.removePlayerFromList(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removePlayerFromLobby() {\n\n //Added Firebase functionality assuming var player is the player who wants to leave the game.\n }", "public void removePlayer(Player player){\n playerList.remove(player);\n }", "public void RemovePlayerFromList(ClientThread client){\n this.client_List.remove(client);\n if (this.GetPlayerCount() <= 0){\n \tserv.DeleteLobby(this.name);\n }\n }", "public void removePlayerFromCurrentLobby(LobbyPlayer player) {\n DocumentReference doc = Firebase.docRefFromPath(\"lobbies/\" + player.getLobbyCode());\n doc.update(FieldPath.of(\"players\", player.getUsername()), FieldValue.delete());\n removeListener();\n GameService.removeListener();\n cache = null;\n }", "private void eliminatePlayer(Player loser){\n players.remove(loser);\n }", "@Override\n public void removePlayer(Player player){\n this.steadyPlayers.remove(player);\n }", "void removeFromGame() {\n\t\t// remove from game\n\t\t//only for multi-player\n\t}", "public void removePlayer(Player player){\n for(int x = 0; x < players.size(); x++){\n if(players.get(x) == player){\n players.remove(x);\n }\n }\n }", "private void removePlayerFromTheGame(){\n ServerConnection toRemove = currClient;\n\n currClient.send(\"You have been removed from the match!\");\n updateCurrClient();\n server.removePlayerFromMatch(gameID, toRemove);\n\n if ( toRemove == client1 ){\n this.client1 = null;\n }\n else if ( toRemove == client2 ){\n this.client2 = null;\n }\n else {\n client3 = null;\n }\n gameMessage.notify(gameMessage);\n\n if ( (client1 == null && client2 == null) || (client2 == null && client3 == null) || (client1 == null && client3 == null) ){\n gameMessage.notify(gameMessage);\n }\n if ( liteGame.isWinner() ) endOfTheGame = true;\n playerRemoved = true;\n }", "public void removePlayer(String name) {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getName().equals(name)) {\n\t\t\t\toccupiedPositions.remove(p.getPosition());\n\t\t\t\tif(p.getType() == Player.PlayerType.Agent) {\n\t\t\t\t\treAssignRobots(p);\n\t\t\t\t\tthis.agents -= 1;\n\t\t\t\t}\n\t\t\t\tplayerList.remove(p);\n\t\t\t}\n\t\t}\n\t\tserver.broadcastToClient(name, SendSetting.RemovePlayer, null, null);\n\t\tserver.updateGameplane();\n\t}", "public synchronized void delPlayer(@NotNull PlayerInterface player) {\n\n for(BoardCell boardCell[] : board.getGrid()) {\n for(BoardCell b : boardCell) {\n if(b.getWorker() != null) {\n if(b.getWorker().getPlayerWorker().getNickname().equals(player.getNickname())) {\n b.setWorker(null);\n }\n }\n }\n }\n player.getWorkerRef().clear();\n for (int i = 0; i < onlinePlayers.size(); i++) {\n if(onlinePlayers.get(i).getNickname().equals(player.getNickname())) {\n if(started) {\n stateList.remove(i);\n onlinePlayers.remove(i);\n nickNames.remove(player.getNickname());\n }\n break;\n }\n }\n }", "public void removePlayer(String p) {\n this.playersNames.remove(p);\n }", "private void discardPlayer(Player p)\n {\n locations.remove(p);\n plugin.getAM().arenaMap.remove(p);\n clearPlayer(p);\n }", "private void eliminatePlayers() {\n \n Iterator<Player> iter = players.iterator();\n\n while (iter.hasNext()) {\n Player player = iter.next();\n\n if (player.getList().isEmpty()) {\n iter.remove();\n if (player.getIsHuman()) {\n setGameState(GameState.HUMAN_OUT);\n }\n // need to remember that due to successive draws, the active player could run\n // out of cards\n // select a new random player if player gets eliminated\n if (!players.contains(activePlayer)) {\n selectRandomPlayer();\n }\n }\n }\n }", "public void removePlayer(EntityPlayerMP player)\r\n {\r\n int var2 = (int)player.managedPosX >> 4;\r\n int var3 = (int)player.managedPosZ >> 4;\r\n\r\n for (int var4 = var2 - this.playerViewRadius; var4 <= var2 + this.playerViewRadius; ++var4)\r\n {\r\n for (int var5 = var3 - this.playerViewRadius; var5 <= var3 + this.playerViewRadius; ++var5)\r\n {\r\n PlayerManager.PlayerInstance var6 = this.getPlayerInstance(var4, var5, false);\r\n\r\n if (var6 != null)\r\n {\r\n var6.removePlayer(player);\r\n }\r\n }\r\n }\r\n\r\n this.players.remove(player);\r\n }", "public void removePlayer(Player outPlayer) {\n\t\tgetPlayersInRoom().remove(outPlayer);\n\n\t}", "public void removePlayer(Player player) {\n\n\t\tplayers.remove(player);\n\t}", "public void remove(Player player) {\n\t\tgetPlayers().remove(player);\n\t\tif (getPlayers().size() < 2) {\n\n\t\t}\n\t}", "public void removePlayerDuringGame(String playerName) {\n for (Player player : players) {\n if (player.getName().equals(playerName)) {\n players.remove(player);\n }\n }\n }", "public void removePlayerFromTable(Player player){\n\t\tgamePlayers.remove(player);\n\t}", "public void removePlayer(Nimsys nimSys,ArrayList<Player> list,Scanner keyboard) {\r\n\t\tboolean flag = false;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\t\r\n\t\tif(nimSys.commands.length==1){\r\n\t\t\tSystem.out.println(\"Are you sure you want to remove all players? (y/n)\");\r\n\t\t\tString next = keyboard.next();\r\n\t\t\tkeyboard.nextLine();\r\n\t\t\tif(next.equals(\"y\"))\r\n\t\t\t\tlist.clear();\t\r\n\t\t}\r\n\t\t\t\r\n\t\telse{\r\n\t\t\twhile (aa.hasNext()) {\r\n\t\t\t\tPlayer in = aa.next();\r\n\t\t\t\tif(in.getUserName().equals(nimSys.commands[1])){\r\n\t\t\t\t\tlist.remove(in);\r\n\t\t\t\t\tflag = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(flag == false)\r\n\t\t\t\tSystem.out.println(\"The player does not exist.\");\r\n\t\t}\r\n\t\t\r\n\t}", "public void removePlayer(Player plr){\r\n\t\t\r\n\t\tlobby.removePlayerFromLobby(plr);\r\n\t\tlobby.updateNames();\r\n\t\tsendNameInfoToAll();\r\n\t\tremoveConnection(plr);\r\n\t}", "public void removePlayer(String name) {\n for (Player player : players) {\n if (player.getName() != null && player.getName().equals(name)) {\n player.setState(false);\n for (Piece piece : player.getPieces()) {\n piece.setPosition(0);\n }\n\n // PLAYERLISTENER : Trigger playerEvent for player that LEFTGAME\n for (PlayerListener listener : playerListeners) {\n PlayerEvent event = new PlayerEvent(this, player.getColour(), PlayerEvent.LEFTGAME);\n listener.playerStateChanged(event);\n }\n\n if (player.getName().equals(players.get(activePlayer).getName())) {\n this.setNextActivePlayer();\n }\n }\n }\n }", "public void removePlayer(GamePlayer player) {\n\t\tplayer.setCurrentGame(null);\n\t\tplayer.setJoinLocation(null);\n\t\tif (monster != null && monster.equals(player))\n\t\t\tmonster = null;\n\t\tplayers.remove(player);\n\t}", "public void unregisterPlayer(final Player p) {\n\t\ttry {\n\t\n\t\n\t\tserver.getLoginConnector().getActionSender().playerLogout(p.getUsernameHash());\n\n\t\t\n\t\tp.setLoggedIn(false);\n\t\tp.resetAll();\n\t\tp.save();\n\t\tMob opponent = p.getOpponent();\n\t\tif (opponent != null) {\n\t\t\tp.resetCombat(CombatState.ERROR);\n\t\t\topponent.resetCombat(CombatState.ERROR);\n\t\t}\n\t\t\n\t\tdelayedEventHandler.removePlayersEvents(p);\n\t\tplayers.remove(p);\n\t\tsetLocation(p, p.getLocation(), null);\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void removePlayer(Player player) {\n String entry = player.getName();\n Team currentTeam = null;\n\n // Find player team.\n for (Team team : scoreboard.getTeams()) if (team.hasEntry(entry)) currentTeam = team;\n\n // If no team is found, do not continue.\n if (currentTeam == null) return;\n\n // Remove player from the team.\n currentTeam.removeEntry(entry);\n\n ////////////////////////////////////////////////\n // Begin checking to see if we can remove this\n // team from the scoreboard.\n ////////////////////////////////////////////////\n\n // Check if the team has players.\n if (currentTeam.getSize() >= 1) return;\n\n // Check if the team is a default preset.\n for (UserGroup userGroup : UserGroup.values()) {\n if (userGroup.getTeamName().equals(currentTeam.getName())) return;\n }\n\n // If the team has no players and is not a default\n // preset, then lets remove the team from the\n // scoreboard.\n removeTeam(currentTeam.getName());\n }", "public void removeFromGame(){\n this.isInGame = false;\n }", "public void removePlayer(int index) {\n trickPoints.remove(index);\n gamePoints.remove(index);\n lives.remove(index);\n }", "public void removePlayer(UUID id) {\r\n for (Iterator<Player> plIterator = players.iterator(); plIterator.hasNext(); ) {\r\n Player player = plIterator.next();\r\n if (player.getId().equals(id)) {\r\n plIterator.remove();\r\n ((DefaultListModel) playerListGui.getModel()).removeElement(player);\r\n }\r\n }\r\n }", "public void removePlayerFromPlayerListForPlayerName(String playerName) {\n\n for (Player P : fliegeScore.getPlayers()) {\n if (P.getPlayerName().compareTo(playerName) == 0) {\n fliegeScore.getPlayers().remove(P);\n }\n }\n\n }", "public void removePlayer(Player player) {\r\n players.remove(player);\r\n player.damage(Double.MAX_VALUE);\r\n }", "boolean removePlayer(String player);", "public void removeFromQueue(Player player) {\n }", "public void removePlayer(Player player)\n {\n if (player == null) {\n return;\n }\n\n removePlayer(player.getName());\n }", "public void removePlayer(int playerObjId)\n\t{\n\t\t_floodClient.remove(playerObjId);\n\t}", "public static void removePlayers(List<ClientInfo> players) {\n\t\tfor (ClientInfo player : players ) {\n\t\t\tplayersInGame.remove(player);\n\t\t}\n\t}", "public void eliminatePlayer(Character player){\r\n\t\tplayer.setAsPlayer(false);\r\n\t\tSystem.err.println(player.getName() + \" was eliminated\");\r\n\t}", "private void deletePlayer(Player p) \r\n\t{\n\t\tlogger.info(\"Deleting player ; '\" + p.getName() +\"'\");\r\n\t\tplayerDao.remove(p);\r\n\t}", "public void removePlayer(String player)\n {\n if (listeners.containsKey(player.toLowerCase())) {\n listeners.remove(player.toLowerCase());\n }\n }", "public void remove(Player p) {\r\n\t\tAsyncCatcher.enabled = false;\r\n\t\tsboard.remove(p.getUniqueId());\r\n\t\tp.setScoreboard(Bukkit.getScoreboardManager().getNewScoreboard());\r\n\t\tAsyncCatcher.enabled = true;\r\n\t}", "void clean(Player p);", "@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)\n public void onPlayerQuit(PlayerQuitEvent event)\n {\n Player player = event.getPlayer();\n EMIPlayer playerToRemove = new EMIPlayer();\n for (EMIPlayer ep : RP.getOnlinePlayers())\n {\n if(ep.getUniqueId().equals(player.getUniqueId().toString()))\n playerToRemove = ep;\n }\n RP.getOnlinePlayers().remove(playerToRemove);\n }", "public void cmdRemovePlayer(User teller, Player player) {\n boolean removed = tournamentService.removePlayer(player);\n tournamentService.flush();\n if (!removed) {\n command.tell(teller, \"I''m not able to find {0} in the tournament.\", player);\n } else {\n command.tell(teller, \"Done. Player {0} is no longer in the tournament.\", player);\n }\n }", "public void delPlayer(final Integer user_id) {\n if (Objects.equals(user_id, current_id)) {\n playersOnGame.clear();\n\n }\n else {\n // Search and remove a player from list\n for ( Player p : playersOnGame) {\n if (p.getUserId() == user_id) {\n playersOnGame.remove(p);\n break;\n }\n }\n }\n\n // Check if the current client is deleted\n if (Objects.equals(user_id, current_id)) {\n playerListLay.removeAllViews();\n playerCards.clear();\n Log.v(\"Del\", String.valueOf(user_id));\n }\n else {\n // Search and remove a player from list\n for (LinearLayout lay : playerCards) {\n if (lay.getTag() == user_id) {\n playerListLay.removeView(lay);\n playerCards.remove(lay);\n break;\n }\n }\n }\n\n // Update number of players\n playerNum.setText(String.valueOf(playersOnGame.size()));\n }", "@EventHandler(priority = EventPriority.MONITOR)\n public void PlayerQuit(PlayerQuitEvent e){\n plugin.playerIslands.remove(e.getPlayer().getName());\n }", "public synchronized void RemovePlayerToGame(String playerName, String IPAddress, Integer portAddress) {\n inGamePlayers.remove(playerName);\n inGamePlayersIP.remove(IPAddress);\n inGamePlayersPort.remove(portAddress);\n }", "public void removePlayer(int place) {\r\n\t\tplayers.remove(place);\r\n\t}", "public void removeMember(Player player) {\n this.members.remove(player.getUniqueId().toString());\n }", "public void removeMember(Player player) {\n\t\tmembers.remove(player.getUniqueId());\n\t\tif (members.isEmpty()) {\n\t\t\tdeleteParty(this); // Uncaches empty parties\n\t\t}\n\t}", "public void RemovePlayer(int game_number, String user)\n\t{\n\t\tgametype[game_number].PlayerLeavesGame(user);\n\t}", "public void remove(String playerId) {\n\t Player player = this.getPlayer(playerId);\n\t LOG.info(\"Removing player\" + player);\n\t\t// Step 2 delete it.\n\t\t// Remove it from players in DB\n\t this.playersInDB.remove(player);\n\t}", "@Override public void clientRemoveGame(Game game) throws RemoteException, SQLException {\r\n gameListClientModel.clientRemoveGame(game);\r\n }", "public Player removePlayer() {\n\t\tPlayer toReturn = this.player;\n\t\tthis.player = null;\n\t\treturn toReturn;\n\t}", "public void removeConnection(ClientHandler clientHandler){\n String nick=clientToNames.get(clientHandler);\n System.out.println(\"Removing player \"+nick+\" from the lobby number \" + lobbyID);\n namesToClient.remove(nick, clientHandler);\n nicknames.remove(nick);\n clientToNames.remove(clientHandler, nick);\n playersNumber--;\n }", "@EventHandler\n public void onPlayerQuitEvent(PlayerQuitEvent e)\n {\n String playerName = e.getPlayer().getName();\n \n this.afkPlayers.remove(playerName);\n this.afkPlayersAuto.remove(playerName);\n this.afkLastSeen.remove(playerName);\n }", "public void removePlayer(int playerIndex) {\n playersIndicators.remove(playerIndex);\n }", "public void unregister(final Player player) {\n\t\tplayer.getActionQueue().cancelQueuedActions();\n\t\t//final Player unregister = player;\n\t\tTrade.exitOutOfTrade(player, false);\n\t\tplayer.destroy();\n\t\tplayer.getSession().close(false);\n\t\tplayers.remove(player);\n\t\tlogger.info(\"Unregistered player : \" + player + \" [online=\" + players.size() + \"]\");\n\t\tengine.submitWork(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tloader.savePlayer(player);\n\t\t\t\tif(World.getWorld().getLoginServerConnector() != null && Constants.CONNNECT_TO_LOGIN_SERVER) {\n\t\t\t\t\tWorld.getWorld().getLoginServerConnector().disconnected(player.getName());\n\t\t\t\t} else {\n\t\t\t\t\t//Remove user online\n\t\t\t\t\tfor(Player p : World.getWorld().getPlayers())\n\t\t\t\t\t\tif(p.getFriends().contains(player.getNameAsLong()))\n\t\t\t\t\t\t\tp.getActionSender().sendPrivateMessageStatus(p.getNameAsLong(), -9);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void clearGameList() {\n gameJList.removeAll();\n }", "public void removePlayer(int a_playerNum)\n {\n //get the player to be removed\n Player playerRemoved = m_currentPlayers.get(a_playerNum - 1);\n //increment the number bankrupt players and set the removed player bankrupt\n m_numOfBankruptPlayers++;\n playerRemoved.setBankrupt();\n //mark the player removed and add it to the finished players list\n m_currentPlayers.set(a_playerNum - 1, playerRemoved);\n m_finishedPlayers.add(playerRemoved);\n }", "public void removePlayer(int playerID) {\n\t\tthis.players.get(playerID).setLocation(null);//removes the player from the map\n\t\tthis.players.get(playerID).kill();\n\t\t\t\n\t\t\n\n\t\tif (this.currentPlayer == playerID) {\n\t\t\t// Advance turn to handle death on player's turn\n\t\t\tadvanceTurn(playerID);\n\t\t}\n\t}", "public void removePlayer(int id) {\n\n Jogador j = this.listaJogadores.get(id);\n\n if(bankruptcy && j.temPropriedades() && j.isBankruptcy()){\n //System.out.println(\"vez: \" + vez + \"id: \" + id );\n jogoInterrompidoEm = vez = voltaVez(vez);\n j.addComandoGiveUp();\n j.removeComandoRoll();\n j.setBankruptcy(true);\n vez = voltaVez(id);\n if(build)\n j.removerComandoBuild();\n }else{\n falirJogador(id);\n }\n\n }", "List<Player> quit(Player player);", "public void killPlayer() {\n \tdungeon.removeentity(getX(), getY(), name);\n \t\tdungeon.deleteentity(getX(),getY(),name);\n \t\t//System.out.println(\"YOU LOSE MAMA\");\n \t\t//System.exit(0);\n \t\t\n }", "public Builder clearPlayer() {\n if (playerBuilder_ == null) {\n player_ = null;\n onChanged();\n } else {\n player_ = null;\n playerBuilder_ = null;\n }\n\n return this;\n }", "@Override\n\tpublic void deletePlayer(Joueur joueur) {\n\t\t\n\t}", "public void removePlayer(Person user) {\r\n\t\trooms[user.getY()][user.getX()].removeOccupant(user);\r\n\t}", "public void removeTomb(String player) {\r\n\t\ttombs.remove(player);\r\n\t}", "public void playerLogout(Player player)\n {\n PlayerAFKModel playerAFKModel = players.get(player.getUniqueId());\n\n // Check if player is AFK\n if( playerAFKModel.isAFK() )\n {\n // Is AFK. Update AFK timer before removal\n playerAFKModel.updateAFKTimer();\n playerAFKModel.markAsNotAFK();\n }\n players.remove(player.getUniqueId());\n }", "public void unfreezePlayer(Player player) {\r\n\t\tif (isFrozen(player)) {\r\n\t\t\tendFreeze(player);\r\n\t\t}\r\n\t}", "private void removeGuess() {\n\t\tguessList[this.getLastPlayIndex()] = null;\n\t\tif (this.getLastPlayIndex() > 0)\n\t\t\tlastMoveID--;\n\t}", "public void removePlayer(String name) {\n\t\tUser user = users.get(userTurn);\n\t\tFootballPlayer player = market.findPlayer(name);\n\t\tdouble marketValue = player.getMarketValue();\n\t\t\n\t\tif (tmpTeam.size() > 0) {\n\t\t\tuser.updateBudget(marketValue, \"+\");\n\t\t\ttmpTeam.removePlayer(name);\n\t\t}\n\t\tSystem.out.println(\"budget after sell\" + user.getBudget());\n\t}", "public String removePlayer(int pno){\n\t\tplayerPosition.remove(pno);\n\t\tcollectedGold.remove(pno);\n\t\treturn \"You have left the game!\";\n\t}", "public abstract BossBar removePlayer(UUID uuid);", "public synchronized void gameOver(PlayerHandler playerHandler) {\n\n winner();\n\n if (temporaryGame) {\n for (Game game : Server.getGames().values()) {\n if (game.equals(this)) {\n Server.getGames().remove(playerHandler.getGameRoom());\n //return; //(if not commented, does not remove the !fixed game.\n System.out.println(\"game \" + this.name + \" removed from map\");\n }\n }\n }\n\n resetGameRoom();\n\n }", "public void erasePlayer(Player player) {\n if(player.equals(occupant)) {\n // System.out.println(\"killedToo\");\n revertBlock(player);\n getAdjacent(GameEngine.UP).erasePlayer(player);\n getAdjacent(GameEngine.DOWN).erasePlayer(player);\n getAdjacent(GameEngine.LEFT).erasePlayer(player);\n getAdjacent(GameEngine.RIGHT).erasePlayer(player);\n }\n }", "public void kill()\r\n {\n if(isTouching(TopDownPlayer.class))\r\n {\r\n health(1);\r\n\r\n getWorld().removeObject(player);\r\n //getWorld().addObject (new Test(), 20, 20);\r\n\r\n }\r\n // if(healthCount >= 1)\r\n // {\r\n // World world;\r\n // world = getWorld();\r\n // getWorld().removeObject(player);\r\n // \r\n // getWorld().addObject (new Test(), 20, 20);\r\n // }\r\n }", "public void removeGuestPlayerFromDB(String username) throws SQLException {\n PreparedStatement stm = T3DB.getConnection().prepareStatement(\n \"delete from GuestPlayer where displayname=?\");\n stm.setString(1, username);\n stm.executeUpdate();\n }", "private void resetPlayer() {\r\n List<Artefact> inventory = currentPlayer.returnInventory();\r\n Artefact item;\r\n int i = inventory.size();\r\n\r\n while (i > 0) {\r\n item = currentPlayer.removeInventory(inventory.get(i - 1).getName());\r\n currentLocation.addArtefact(item);\r\n i--;\r\n }\r\n currentLocation.removePlayer(currentPlayer.getName());\r\n locationList.get(0).addPlayer(currentPlayer);\r\n currentPlayer.setHealth(3);\r\n }", "@Override\n public void unsuspendPlayer(String username) {\n if (match != null && username != null) {\n match.unsuspendPlayer(username);\n }\n }", "private void eliminatePlayer(Player player, String reason) throws IOExceptionFromController {\n player.setLost();\n ArrayList<Player> activePlayers = new ArrayList<Player>();\n for (Player activePlayer : players) {\n if (!activePlayer.hasLost()) activePlayers.add(activePlayer);\n }\n if (activePlayers.size() == 1) {\n setWinner(activePlayers.get(0), reason);\n return;\n }\n for (Card modifier : game.getActiveModifiers()) {\n if (modifier.getController().getPlayer().equals(player))\n game.removeModifier(modifier);\n }\n for (Worker worker : player.getWorkers()) {\n player.removeWorker(worker);\n }\n PlayerController controller = playerControllers.get(players.indexOf(player));\n if (controller != null) {\n try {\n playerControllers.get(players.indexOf(player)).getClient().notifyLoss(reason, null);\n } catch (IOException e) {\n checkDisconnection(e, controller);\n }\n }\n broadcastGameInfo(reason);\n }", "CratePrize removeEditingUser(Player player);", "void gameOver() {\n if (!running.compareAndSet(true, false)) return;\n for (PlayerController controller : playerControllers) {\n if (controller == null) continue;\n controller.getClient().setPlayerController(null);\n try {\n controller.getClient().notifyGameOver();\n } catch (IOException e) {\n // no need to handle disconnection, game is over\n }\n }\n if (server != null) new Thread(() -> server.removeGame(this)).start();\n }", "@EventHandler\n public void onPlayerQuit(PlayerQuitEvent event) {\n playerDataMap.remove(event.getPlayer().getUniqueId());\n }", "@Test\n void removePlayersFromScoreBoardDoesNothingIfNoPlayerMarkedForRemoval(){\n assertEquals(4, scoreboard.getScore().size());\n //do not add players to the list of players that should be removed\n List<String> usersToBeRemoved=new ArrayList<>();\n //remove players in list\n scoreboard.removePlayersFromScoreBoard(usersToBeRemoved);\n //check that players were removed\n assertEquals(4, scoreboard.getScore().size());\n assertEquals(4,scoreboard.getCorrectlyGuessedMysteryWordsPerPlayer().size());\n }", "public void removePlayerConnection(int playerID) {\n playerConnections.remove(playerID);\n }", "public void PlayerLeavesGame(String user)\n\t\t{\n\t\t\tplayer_queue.remove(user);\n\t\t}", "default boolean removePlayer(Player player) {\n return removePlayer(Objects.requireNonNull(player, \"player\").getName());\n }", "void unsubscribe(Player player);", "@EventHandler\n\tpublic void onPlayerLeaveServer(PlayerQuitEvent e){\n\t\tgame.removePlayerFromGame(e.getPlayer());\n\t}", "public void remove(){\n Api.worldRemover(getWorld().getWorldFolder());\n }", "void killPlayerByPlayerMove()\n {\n movePlayerToCell(getMonsterCell());\n }", "public void playerLeft(Game game){\n game.getPlayers().remove(this);\n System.out.println(\"Player \" + this.getPlayerName() + \" has left the game\");\n }", "@Override\n public void removePlayer(String nickname) throws IOException {\n try {\n String sql = \"DELETE FROM sep2database.player WHERE nickname =?;\";\n db.update(sql, nickname);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void onChildRemoved(DataSnapshot arg0) {\n\t\tPlayerData data = arg0.getValue(PlayerData.class);\n\t\tplayers.set(Integer.parseInt(arg0.getKey()),null);\n\t}", "public void removePlayerPkmnInfoBox()\r\n {\r\n removeObject(playerPkmnInfoBox);\r\n }", "public void stopShowing(Player player){\n\t\tFeatherBoardAPI.removeScoreboardOverride(player,\"build-battle-game\");\n\t}", "public ArrayList<Player> checkToEliminate() {\n ArrayList<Player> eliminated = new ArrayList<Player>();\n\n // Check which players are to be eliminated\n for (Player player : playersInGame) {\n if (player.peekCard() == null) {\n eliminated.add(player);\n }\n }\n\n // Eliminate players from model\n for (Player eliminatedPlayer : eliminated) {\n playersInGame.remove(eliminatedPlayer);\n }\n\n return eliminated;\n }", "public void unbanFromWorld(String player, String world) {\n Set<String> worldsTMP = bannedWorlds.get(player);\n \n if (worldsTMP == null) {\n return;\n }\n \n worldsTMP.remove(world);\n if (worldsTMP.isEmpty()) {\n bannedWorlds.remove(player);\n return;\n }\n bannedWorlds.put(player, (HashSet<String>) worldsTMP);\n }", "@Test\n void removePlayersFromScoreBoardWhenRemovingSinglePlayer(){\n //make sure map is not empty at beginning of game\n assertEquals(4, scoreboard.getScore().size());\n //add player to the list of players that should be removed\n List<String> usersToBeRemoved=new ArrayList<>();\n usersToBeRemoved.add(\"A\");\n //remove players in list\n scoreboard.removePlayersFromScoreBoard(usersToBeRemoved);\n //check that players were removed\n assertEquals(3, scoreboard.getScore().size());\n assertEquals(3,scoreboard.getCorrectlyGuessedMysteryWordsPerPlayer().size());\n assertFalse(scoreboard.getScore().containsKey(\"A\"));\n assertFalse(scoreboard.getCorrectlyGuessedMysteryWordsPerPlayer().containsKey(\"A\"));\n\n }", "public void removeGameListListener(GameListListener listener){\r\n super.removeGameListListener(listener);\r\n\r\n if (listenerList.getListenerCount(GameListListener.class)==0){\r\n setDGState(Datagram.DG_GAMELIST_BEGIN, false);\r\n setDGState(Datagram.DG_GAMELIST_ITEM, false);\r\n }\r\n }" ]
[ "0.84079176", "0.8250467", "0.7944924", "0.77913123", "0.76704544", "0.7524416", "0.7478901", "0.7459603", "0.7424071", "0.7341497", "0.73153555", "0.7274008", "0.7202573", "0.7196884", "0.7167193", "0.7122457", "0.7087832", "0.70442337", "0.70027214", "0.6982537", "0.69539696", "0.69481593", "0.68914413", "0.6887992", "0.6877917", "0.68622035", "0.6851645", "0.6842314", "0.68360597", "0.6835943", "0.68189776", "0.6762053", "0.6745742", "0.6742579", "0.67262393", "0.6699406", "0.66890264", "0.66812366", "0.66364455", "0.662075", "0.6599678", "0.65882957", "0.6539673", "0.6510851", "0.65105844", "0.65009075", "0.65000325", "0.64893156", "0.64627564", "0.6430759", "0.6412077", "0.6410377", "0.6409445", "0.63965064", "0.63625115", "0.63613653", "0.6350204", "0.6305446", "0.6292779", "0.6291586", "0.6244204", "0.6225661", "0.62226444", "0.62173194", "0.6210154", "0.6204953", "0.619557", "0.61937094", "0.61865", "0.61827093", "0.61771035", "0.6145331", "0.61449873", "0.6143157", "0.6140713", "0.61208004", "0.6116348", "0.61129993", "0.60911167", "0.6089782", "0.6076007", "0.60713965", "0.6070992", "0.60547364", "0.60493964", "0.6041691", "0.603719", "0.603086", "0.60252446", "0.6017778", "0.6011485", "0.60061795", "0.5999023", "0.598618", "0.5985347", "0.5972014", "0.5971405", "0.5970688", "0.59699625", "0.596769" ]
0.74346656
8
Adds the player too the playerList in createGameLobby
public void addPlayer(String name) { createGameLobbyController.addPlayerToList(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addPlayer(Player player) {\n playerList.add(player);\n }", "public void addPlayer(Player player){\n players.add(player);\n }", "public void addPlayerToTheList(){\n \tif(!txtFieldPlayerName.getText().trim().isEmpty() && totPlayers <= maximumPlayersAllowed){\n\t\t\t\n \t\t//creates a new Player and adds the name that the user inputs from the textField\n\t\t\tplayer.add(new Player(txtFieldPlayerName.getText()));\n\t\t\n\t\t\tString playerName = \"\";\n\t\t\tint playerNr = 1;\n\t\t\t\n\t\t\tfor(Player p : player){\n\t\t\t\tplayerName += playerNr+\": \"+p.getName()+\"<br>\"; \n\t\t\t\tplayerNr++;\n\t\t\t}\n\t\t\t\n\t\t\ttotPlayers++;\n\t\t\tlblPlayerList.setText(\"<html><h2>PLAYER LIST</h2>\"+playerName+\"</html>\");\n\t\t\ttxtFieldPlayerName.setText(\"\");\n\t\t}\n\t\t\n\t\tif(totPlayers >= minimumPlayersAllowed){\n\t\t\tbtnPlay.setEnabled(true);\n\t\t}\n\t\t\n\t\tif(totPlayers >= maximumPlayersAllowed){\n\t\t\tbtnAddPlayer.setEnabled(false);\n\t\t\ttxtFieldPlayerName.setEnabled(false);\n\t\t}\n }", "public void addPlayer(Player inPlayer) {\n\t\tgetPlayersInRoom().add(inPlayer);\n\t}", "@Override\n public void addPlayer(Player player) {\n\n if(steadyPlayers.size()>0){\n PlayersMeetNotification.firePropertyChange(new PropertyChangeEvent(this, \"More than one Player in this Panel\",steadyPlayers,player));\n }\n steadyPlayers.add(player);\n\n }", "public void addPlayer(Player player) {\n //int id = Repository.getNextUniqueID();\n this.player = player;\n }", "public void addPlayer(Player player) {\r\n players.add(player);\r\n ((DefaultListModel<Player>) playerListGui.getModel()).addElement(player);\r\n }", "public void addPlayer(Player player) {\n this.add(player);\n this.players.add(player);\n }", "public void addPlayer(EntityPlayerMP player)\r\n {\r\n int var2 = (int)player.posX >> 4;\r\n int var3 = (int)player.posZ >> 4;\r\n player.managedPosX = player.posX;\r\n player.managedPosZ = player.posZ;\r\n\r\n for (int var4 = var2 - this.playerViewRadius; var4 <= var2 + this.playerViewRadius; ++var4)\r\n {\r\n for (int var5 = var3 - this.playerViewRadius; var5 <= var3 + this.playerViewRadius; ++var5)\r\n {\r\n this.getPlayerInstance(var4, var5, true).addPlayer(player);\r\n }\r\n }\r\n\r\n this.players.add(player);\r\n this.filterChunkLoadQueue(player);\r\n }", "public synchronized void addPlayer(PlayerHandler player) {\n\n if (activePlayers < numMaxPlayers) {\n\n players[activePlayers] = player;\n System.out.println(player.getName() + \" added to game as player \" + (activePlayers + 1));\n activePlayers++;\n return;\n }\n\n System.out.println(\"This room (\" + this.toString() + \") is full\");\n }", "public void addLobby(Lobby lobby) {\n rrwl_lobbylist.writeLock().lock();\n try {\n lobbyList.add(lobby);\n } finally {\n rrwl_lobbylist.writeLock().unlock();\n }\n }", "public void addPlayer(String p) {\n this.playersNames.add(p);\n }", "void addPlayer(Player newPlayer);", "public void addPlayer(Player player) {\n\t\tif(players.isEmpty()) {\n\t\t\tcurrent=player;\n\t\t\tplayers.add(current);\n\t\t}\n\t\telse {\n\t\t\tplayers.add(player);\n\t\t}\n\t}", "public void addNewPlayer(Player p) {\n\t\t// if the player don't exists in the highscore list the player is added\n\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\tif(highscore.get(p.getName()) == null) {\n\t\t\t\thighscore.put(p.getName(), 0);\n\t\t\t}\n\t\t}\n\t\tthis.playerList.add(p); \n\t}", "@Override\n\tpublic void onAddToLocalList(Player player) {\n\t\tsuper.onAddToLocalList(player);\n\n\t\tif (phase == AbyssalSirePhase.SLEEPING || phase == AbyssalSirePhase.AWAKE) {\n\t\t\tgetEventHandler().addEvent(this, new CycleEvent<Entity>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void execute(CycleEventContainer<Entity> container) {\n\t\t\t\t\tcontainer.stop();\n\n\t\t\t\t\tif (phase == AbyssalSirePhase.SLEEPING) {\n\t\t\t\t\t\tsetIdleAnimation(4527);\n\t\t\t\t\t} else if (phase == AbyssalSirePhase.AWAKE) {\n\t\t\t\t\t\tsetIdleAnimation(4529);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void stop() {\n\n\t\t\t\t}\n\t\t\t}, 2);\n\t\t}\n\t}", "public void addPlayerToRandomRoom(Player player) {\n\n randomRoomPlayers.add(player);\n synchronized (this) {\n notify();\n }\n }", "public void addPlayerToTable(Player player){\n\t\tgamePlayers.add(player);\n\t}", "public void addPlayer(FootballPlayer aPlayer) {\n\t\tplayers.add(aPlayer);\n\t}", "public World addPlayer(Player p){\r\n players.add(p);\r\n return this;\r\n }", "@Override\n\tpublic void joinLobby(int playerID, int sessionID){\n\t\tif(sessionID == NO_LOBBY_ID)\n\t\t\treturn;\n\t\t//check if the player is already in an other lobby\n\t\tint playerSession = getSessionFromClient(playerID);\n\n\t\tif(playerSession == NO_LOBBY_ID){\n\t\t\tlobbyMap.get(sessionID).addPlayer(getPlayerMap().get(playerID));\n\t\t\tDebugOutputHandler.printDebug(\"Player \"+getPlayerMap().get(playerID).getName()+\" now is in lobby \" + getPlayerMap().get(playerID).getSessionID());\n\t\t}\n\t}", "public void addPlayer(Player p){\r\n this.players[PlayerFactory.nb_instances-1]=p;\r\n this.tiles[p.getX()+(p.getY()*this.width)]=p;\r\n }", "public void addPlayers(ArrayList<Player> players) {\r\n\t\tthis.players = players;\r\n\t}", "public void registerPlayer(BlackjackPlayer player) {\r\n getPlayers().add(player);\r\n }", "public final void addPlayer(Player player) {\n\n\t\tif (player instanceof CulturePlayer) {\t\t\t\t\t\t\t\t// not too pretty but simple\n\t\t\tif (((CulturePlayer)player).isDissect()) { // instead of the culture player\n\t\t\t\tplayers.addAll(((CulturePlayer)player).getCulture()); // add all masters of the culture\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tplayers.add(player);\n\t}", "void addPlayer(IPlayer player);", "public synchronized void attachTo(Player player){\n player.getDashboard().attach(this);\n players.put(player.getName(), player); //save this player to the list of known players\n }", "public boolean addPlayer(GamePlayer player) {\n\t\tif (players.size() >= info.getMaximumPlayers())\n\t\t\treturn false;\n\t\tplayer.setCurrentGame(this);\n\t\tplayer.setJoinLocation(player.getPlayer().get().getLocation());\n\t\tplayers.add(player);\n\t\treturn true;\n\t}", "public boolean addPlayer(Player player)\n\t{\n\t\treturn playerList.add(player);\n\t}", "private void addPlayers(@NotNull MapHandler map, @NotNull NewGameDto newGameDto) {\n ComparableTuple<Integer, Stack<SpawnTile>> result = analyseMap(map);\n flagCount = result.key;\n Stack<SpawnTile> spawnTiles = result.value;\n if (!spawnTiles.isEmpty()) {\n for (PlayerDto player : newGameDto.players) {\n SpawnTile spawnTile = spawnTiles.pop();\n if (player.id == newGameDto.userId) {\n user = new Player(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(GameGraphics.mainPlayerName + \" (you)\", player.color), player.id);\n user.setDock(spawnTile.getSpawnNumber());\n players.add(user);\n } else {\n IPlayer onlinePlayer = new OnlinePlayer(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(player.name, player.color), player.id);\n onlinePlayer.setDock(spawnTile.getSpawnNumber());\n players.add(onlinePlayer);\n }\n }\n } else {\n for (int i = 0; i < playerCount; i++) {\n NonPlayer nonPlayer = new NonPlayer(i, 0, Direction.NORTH, map, new ComparableTuple<>(\"blue\", Color.BLUE));\n nonPlayer.setDock(i);\n players.add(nonPlayer);\n }\n }\n }", "public void addPlayer(Player p) {\n if (gameState != GameState.AWAITING_PLAYERS) {\n throw new GameStateInvalidException(\"Cannot add players once game is underway...\");\n }\n\n // ok, just add...\n if (!players.contains(p)) {\n players.add(p);\n }\n }", "public void addPlayer(final Player aPlayer)\r\n\t{\r\n\t\tmPlayer.setX(mStartX * Block.SIZE);\r\n\t\tmPlayer.setY(mStartY * Block.SIZE);\r\n\t\taddEntity(mPlayer);\r\n\t}", "private Player addNewPlayer(String username) {\n if (!playerExists(username)) {\n Player p = new Player(username);\n System.out.println(\"Agregado jugador \" + username);\n players.add(p);\n return p;\n }\n return null;\n }", "void playerAdded();", "public void addPlayerDuringGame(String playerName) {\n System.out.println(\"I want to add player \" + playerName + \" to the game!\");\n addPlayer(playerName);\n Collections.shuffle(players);\n }", "void addEventPlayers(Player player, boolean team);", "public void addPlayer(VirtualView client) throws GameEndedException {\n if (!running.get() || !setup.get()) throw new GameEndedException(\"game ended\");\n if (playerControllers.size() >= game.getPlayerNum()) {\n logError(\"too many players\");\n return;\n }\n Player player = new Player(client.getId(), colors.get(playerControllers.size()));\n PlayerController playerController = new PlayerController(player, client, this);\n game.addPlayer(player);\n playerControllers.add(playerController);\n client.setPlayerController(playerController);\n try {\n broadcastGameInfo(\"playerJoined\");\n broadcastMessage(client.getId() + \" joined! (\" + game.getPlayers().size() + \"/\" + game.getPlayerNum() + \") \");\n } catch (IOExceptionFromController e) {\n handleDisconnection(e.getController());\n }\n }", "public void addMember(Player player) {\n\t\tif (members.isEmpty()) {\n\t\t\tcacheParty(this); // Caches the party if it went from empty to not empty\n\t\t}\n\t\tmembers.add(player.getUniqueId());\n\t}", "public void addPlayer(String playerID) {\r\n\t\tplayerCount++;\r\n\t\tString name = guild.getMemberById(playerID).getEffectiveName();\r\n\t\t// Set up each player uniquely\r\n\t\tif (p2 == null) {\r\n\t\t\tp2 = new Player(1,playerID,GlobalVars.pieces.get(\"blue\"));\r\n\t\t\tp2.getPiece().setX(GlobalVars.playerCoordsPerRoom[0][0]+GlobalVars.playersOffset[1][0]);\r\n\t\t\tp2.getPiece().setY(GlobalVars.playerCoordsPerRoom[0][1]+GlobalVars.playersOffset[1][1]);\r\n\t\t\tplayers.add(p2);\r\n\t\t\tp1.setNextPlayer(p2);\r\n\t\t\tp2.setNextPlayer(p1);\r\n\t\t\tgameChannel.sendMessage(\"**\"+name+\"** has reincarnated as the BLUE adventurer\").queue();\r\n\t\t} else if (p3 == null) {\r\n\t\t\tp3 = new Player(2,playerID,GlobalVars.pieces.get(\"yellow\"));\r\n\t\t\tp3.getPiece().setX(GlobalVars.playerCoordsPerRoom[0][0]+GlobalVars.playersOffset[2][0]);\r\n\t\t\tp3.getPiece().setY(GlobalVars.playerCoordsPerRoom[0][1]+GlobalVars.playersOffset[2][1]);\r\n\t\t\tplayers.add(p3);\r\n\t\t\tp2.setNextPlayer(p3);\r\n\t\t\tp3.setNextPlayer(p1);\r\n\t\t\tgameChannel.sendMessage(\"**\"+name+\"** has reincarnated as the YELLOW adventurer\").queue();\r\n\t\t} else if (p4 == null) {\r\n\t\t\tp4 = new Player(3,playerID,GlobalVars.pieces.get(\"green\"));\r\n\t\t\tp4.getPiece().setX(GlobalVars.playerCoordsPerRoom[0][0]+GlobalVars.playersOffset[3][0]);\r\n\t\t\tp4.getPiece().setY(GlobalVars.playerCoordsPerRoom[0][1]+GlobalVars.playersOffset[3][1]);\r\n\t\t\tplayers.add(p4);\r\n\t\t\tp3.setNextPlayer(p4);\r\n\t\t\tp4.setNextPlayer(p1);\r\n\t\t\tgameChannel.sendMessage(\"**\"+name+\"** has reincarnated as the GREEN adventurer\").queue();\r\n\t\t}\r\n\t}", "public void newPlayer(Client source) {\r\n\t\tthis.players.add(source);\r\n\r\n\t\t// Send a message to all clients that a new player has joined\r\n\t\tthis.queueMessage(new Message(Message.ALL_CLIENTS,\r\n\t\t\t\tsource.getPlayerNo(), \"@ \" + source.getPlayerNo() + \" \"\r\n\t\t\t\t\t\t+ source.getName()));\r\n\t}", "public void addPlayer(String name) {\n if (nrOfPlayers() < 4) {\n players.add(new Player(name, nrOfPlayers() + 1));\n this.status = \"Initiated\";\n } else {\n throw new NoRoomForMorePlayersException();\n }\n }", "private void addPlayerToGroup(Scoreboard board, Player player) {\n String playername = player.getName();\n board.registerNewTeam(playername);\n board.getTeam(playername).addPlayer(player);\n }", "public void PlayerJoinsGame(String user)\n\t\t{\n\t\t\tplayer_queue.add(user);\n\t\t}", "public void addUser(ArrayList<Player> list,String U,String F,String G) {\r\n\t\tboolean flag = true;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile (aa.hasNext()) {\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tif(in.getUserName().equals(U)){\r\n\t\t\t\tSystem.out.println(\"The player already exists.\");\r\n\t\t\t\tflag =false;\r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\tif(flag)\r\n\t\t\tlist.add(new NimPlayer(U,F,G,0,0,\"Human\"));\r\n\t\tSystem.out.println(\"\");\r\n\t}", "public void addPlayers(List<Player> players) {\n\n\t\tthis.players.addAll(players);\n\t}", "public void addPlayer(String name) {\n players.add(new Player(name));\n }", "public static void addPlayer(MovingUnit player) {\r\n\t\t_players.add(player);\r\n\t}", "public void addPlayer(PacketBuilder packet, Player player, Player otherPlayer) {\n int xPos = otherPlayer.getLocation().getX()\n - player.getLocation().getX();\n int yPos = otherPlayer.getLocation().getY()\n - player.getLocation().getY();\n /*\n * Abstraction is used here for clientsided rearrangement\n * To keep errors from loading multiple revisions at one time.\n */\n addPlayer(otherPlayer, packet, xPos, yPos);\n }", "public void join(LobbyPlayer player) {\n if (listener == null) listener = Firebase.registerListener(\"lobbies/\" + player.getLobbyCode(), onLobbyChange);\n DocumentReference doc = Firebase.docRefFromPath(\"lobbies/\" + player.getLobbyCode());\n ObjectMapper mapper = new ObjectMapper();\n Map<String, Object> kv = mapper.convertValue(LobbyPlayerDTO.fromModel(player), new TypeReference<Map<String, Object>>() {});\n doc.update(\"players.\" + player.getUsername(), kv);\n }", "public void register(final Player player) {\n\t\t// do final checks e.g. is player online? is world full?\n\t\tint returnCode = 2;\n\t\tif(!players.add(player)) {\n\t\t\treturnCode = 7;\n\t\t\tlogger.info(\"Could not register player : \" + player + \" [world full]\");\n\t\t}\n\t\tfinal int fReturnCode = returnCode;\n\t\tPacketBuilder bldr = new PacketBuilder();\n\t\tbldr.put((byte) returnCode);\n\t\tbldr.put((byte) player.getRights().toInteger());\n\t\tbldr.put((byte) 0);\n\t\tplayer.getSession().write(bldr.toPacket()).addListener(new IoFutureListener<IoFuture>() {\n\t\t\t@Override\n\t\t\tpublic void operationComplete(IoFuture future) {\n\t\t\t\tif(fReturnCode != 2) {\n\t\t\t\t\tplayer.getSession().close(false);\n\t\t\t\t} else {\n\t\t\t\t\tif(Constants.CONNNECT_TO_LOGIN_SERVER) {\n\t\t\t\t\t\tconnector.sendPrivateMessagingStatus(player);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tint mySetting = player.getSettings().getPrivateChatSetting()[1];\n\t\t\t\t\t\tfor(Player p : players) {\n\t\t\t\t\t\t\tint setting = p.getSettings().getPrivateChatSetting()[1];\n\t\t\t\t\t\t\tif(mySetting == 2 && p.getFriends().contains(player.getNameAsLong())\n\t\t\t\t\t\t\t\t\t|| mySetting == 1 && p.getFriends().contains(player.getNameAsLong())\n\t\t\t\t\t\t\t\t\t&& !player.getFriends().contains(p.getNameAsLong()))\n\t\t\t\t\t\t\t\tp.getActionSender().sendPrivateMessageStatus(player.getNameAsLong(), -9);\n\t\t\t\t\t\t\telse if(p.getFriends().contains(player.getNameAsLong()))\n\t\t\t\t\t\t\t\tp.getActionSender().sendPrivateMessageStatus(player.getNameAsLong(), getWorldId());\n\n\t\t\t\t\t\t\tif(setting == 2 && player.getFriends().contains(p.getNameAsLong())\n\t\t\t\t\t\t\t\t\t|| setting == 1 && player.getFriends().contains(p.getNameAsLong())\n\t\t\t\t\t\t\t\t\t&& !p.getFriends().contains(player.getNameAsLong()))\n\t\t\t\t\t\t\t\tplayer.getActionSender().sendPrivateMessageStatus(p.getNameAsLong(), -9);\n\t\t\t\t\t\t\telse if(player.getFriends().contains(p.getNameAsLong()))\n\t\t\t\t\t\t\t\tplayer.getActionSender().sendPrivateMessageStatus(p.getNameAsLong(), getWorldId());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tplayer.getActionSender().sendLogin();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tif(returnCode == 2) {\n\t\t\tlogger.info(\"Registered player : \" + player + \" [online=\" + players.size() + \"]\");\n\t\t}\n\t}", "public void addMember(Player player) {\n this.members.add(player.getUniqueId().toString());\n }", "public void addPlayerToTheFirstEmptyPlace(Player p) {\r\n\t\tfor (int i = 0; i < NB_PLAYER_MAX; i++) {\r\n\t\t\tif (players.get(i) == null) {\r\n\t\t\t\tplayers.put(i, p);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void addVps(Player player) {\n }", "public synchronized void AddPlayerToGame(String playerName, String IPAddress, Integer portAddress) {\n inGamePlayers.add(playerName);\n inGamePlayersIP.add(IPAddress);\n inGamePlayersPort.add(portAddress);\n }", "public void onLobby(){\n\t\tif(Bukkit.getPluginManager().isPluginEnabled(\"MVdWPlaceholderAPI\")){\n\t\t\tPlaceholderAPI.registerPlaceholder(SimplePlugin.getPlugin(ArenaPlugin.class), \"build_battle_players\",\n\t\t\t\t\tplaceholderReplaceEvent -> {\n\t\t\t\t\t\tint players = getArena().getPlayers(ArenaJoinMode.PLAYING).size();\n\t\t\t\t\t\treturn Integer.toString(players);\n\t\t\t\t\t});\n\n\t\t\tPlaceholderAPI.registerPlaceholder(SimplePlugin.getPlugin(ArenaPlugin.class), \"build_battle_time\",\n\t\t\t\t\tplaceholderReplaceEvent -> Common.plural(arena.getStartCountdown().getTimeLeft(), \"second\"));\n\n\t\t}\n\t}", "public void addPlayerToStats(Player player) {\n\t\tfindForPlayer(player);\n\t}", "private void updatePlayerList() \n\t{\n\t\tplayerStatus.clear();\n\n\t\tfor(Player thisPlayer: players) // Add the status of each player to the default list model.\n\t\t{\n\t\t\tplayerStatus.addElement(thisPlayer.toString());\n\t\t}\n\n\t}", "public boolean addPlayer(final Player player)\n {\n if (player == null || !player.isOnline()) {\n return false;\n }\n\n String playerName = player.getName().toLowerCase();\n\n if (!listeners.containsKey(playerName)) {\n listeners.put(playerName, player);\n\n player.setScoreboard(board);\n\n return true;\n }\n\n return false;\n }", "public void addPlayer(Player p1, Player2 p2)\n\t{\n\t\tthis.p1 = p1;\n\t\tthis.p2 = p2;\n\t\t\n\t\tfor(Block b:p1.blocks1)\n\t\t{\n\t\t\taddBlock(b);\n\t\t}\n\t\t\n\t\tfor(Block b:p2.blocks2)\n\t\t{\n\t\t\taddBlock(b);\n\t\t}\n\t}", "public void add(ClientHandler clientHandler, String nickname) {\n clientHandler.setNickname(nickname);\n\n for(String nick: nicknames){\n namesToClient.get(nick).send(new SendMessage(Constants.ANSI_BLUE + nickname + \" joins the game. \"+(nicknames.size()+1)+\" players have already joined this Lobby.\"+Constants.ANSI_RESET));\n }\n\n clientToNames.put(clientHandler, nickname);\n namesToClient.put(nickname, clientHandler);\n nicknames.add(nickname);\n view.setNamesToClient(nickname, clientHandler, false);\n\n clientHandler.registerObserver(this);\n\n if(nicknames.size()<playersNumber){\n view.waitingRoom(clientHandler);\n } else {\n view.waitingRoom(clientHandler);\n view.prepareTheLobby();\n }\n\n System.out.println(nickname + \" has joined the lobby number \" + lobbyID);\n\n clientHandler.send(new InitialSetup());\n }", "protected void newPlayerList() {\n int len = getPlayerCount();\n mPlayerStartList = new PlayerStart[ len ];\n for(int i = 0; i < len; i++) {\n mPlayerStartList[i] = new PlayerStart( 0.f, 0.f );\n }\n }", "public void addPlayerShip()\n\t{\n\t\t//if a PlayerShip is already spawned, a new one will not be added\n\t\tif(shipSpawned)\n\t\t{\n\t\t\t\tSystem.out.println(\"A player ship is already spawned\");\n\t\t\t\treturn;\n\t\t}\n\t\tgameObj.add(new PlayerShip(getHeight(), getWidth()));\n\t\tSystem.out.println(\"Player ship added\");\n\t\tshipSpawned = true;\n\t\tnotifyObservers();\n\t}", "public void addPlayer(String nickname, TBGPProtocolCallback callback) {\n\t\tbroadcast(nickname + \" joined the room\", TBGPCommand.SYSMSG);\n\t\tplayers.put(callback, nickname);\n\t}", "public abstract BossBar addPlayer(UUID player);", "public void addPlayerShip()\n\t{\n\t\t//if a PlayerShip is already spawned, a new one will not be added\n\t\tif (gameObj[1].size() == 0)\n\t\t{\n\t\t\tgameObj[1].add(new PlayerShip());\n\t\t\tSystem.out.println(\"PlayerShip added\");\n\t\t}else{\n\t\t\tSystem.out.println(\"A player ship is already spawned\");\n\t\t}\n\t\t\n\t}", "public void addPlayer(Player player, UserGroup userGroup) {\n addPlayer(player, userGroup.getTeamName(), userGroup.getUserGroupPrefix(), null);\n }", "protected void updatePlayer(Player player, PacketBuilder packet) {\n\n /*\n * The update block packet holds update blocks and is send after the\n * master packet.\n */\n PacketBuilder updateBlock = new PacketBuilder();\n\n /*\n * Updates this player.\n */\n manageMovement(true, player, packet);\n masks(player, updateBlock, false);\n\n /*\n * Write the current size of the player list.\n */\n packet.putBits(8, player.getLocalPlayers().size());\n\n /*\n * Iterate through the local player list.\n */\n for (Iterator<Player> it$ = player.getLocalPlayers().iterator(); it$.hasNext(); ) {\n /*\n * Get the next player.\n */\n Player otherPlayer = it$.next();\n\n /*\n * If the player should still be in our list.\n */\n if (WorldModule.getLogic().getPlayers().contains(otherPlayer)\n && !otherPlayer.basicSettings().isTeleporting()\n && otherPlayer.getLocation().withinRange(\n player.getLocation())) {\n /*\n * Update the movement.\n */\n manageMovement(false, otherPlayer, packet);\n\n /*\n * Check if an update is required, and if so, send the update.\n */\n if (otherPlayer.getMasks().requiresUpdate()) {\n masks(otherPlayer, updateBlock, false);\n }\n } else {\n /*\n * Otherwise, remove the player from the list.\n */\n it$.remove();\n\n /*\n * Tell the client to remove the player from the list.\n */\n packet.putBits(1, 1);\n packet.putBits(2, 3);\n }\n }\n\n /*\n * Loop through every player.\n */\n for (Player otherPlayer : WorldModule.getLogic().getLocalPlayers(player.getLocation())) {\n /*\n * Check if there is room left in the local list.\n */\n if (player.getLocalPlayers().size() >= 255) {\n /*\n * There is no more room left in the local list. We cannot\n * add more players, so we just ignore the extra ones. They\n * will be added as other players get removed.\n */\n break;\n }\n\n /*\n * If they should not be added ignore them.\n */\n if (otherPlayer == null || otherPlayer == player\n || player.getLocalPlayers().contains(otherPlayer) || otherPlayer.isReleased()) {\n continue;\n }\n\n /*\n * Add the player to the local list if it is within distance.\n */\n player.getLocalPlayers().add(otherPlayer);\n\n /*\n * Add the player in the packet.\n */\n addPlayer(packet, player, otherPlayer);\n\n /*\n * Update the player, forcing the appearance flag.\n */\n masks(otherPlayer, updateBlock, true);\n }\n\n /*\n * Check if the update block is not empty.\n */\n if (updateBlock.getPosition() != 0) {\n /*\n * Write a magic id indicating an update block follows.\n */\n packet.putBits(11, 2047);\n packet.recalculateBitPosition();\n\n /*\n * Add the update block at the end of this packet.\n */\n packet.put(updateBlock.toPacket().getBytes());\n } else {\n /*\n * Terminate the packet normally.\n */\n packet.recalculateBitPosition();\n }\n /*\n * Write the packet.\n */\n player.write(packet.toPacket());\n }", "private static void addNewlyArrivedUsersAsPlayers(Match match, boolean hasTheGameStarted) {\n LinkedList<Player> playersInGame = match.getGame().listOfAllPlayersAndDealer_LastPosition();\n LinkedList<User> allUsers = match.getUsers();\n List<User> newUsers = getUsersWhoAreNotRegisteredAsPlayers(playersInGame, allUsers);\n\n for (User newUser : newUsers) {\n Player newPlayer = new Player(newUser);\n match.getGame().preparePlayerForNextRound(newPlayer, hasTheGameStarted);\n match.getGame().addPlayer(newPlayer);\n }\n }", "public int addPlayer(PlayerListener player) {\n\t\tfinal int playerID = this.players.size();\n\n\t\tthis.players.add(new Player(\"Player \" + playerID,\n\t\t\t\tgenerateRandomStartLocation(), player));\n\n\t\tif (this.players.size() == 1) {\n\t\t\tstartNewGame();\n\t\t}\n\n\t\treturn playerID;\n\t}", "public void addEntity(Player player) {\n\t\tentities.add(player);\n\t}", "@Override\n public void landedOn(Player player) {}", "public void nextTurn(){\n players.add(currentPlayer);//Added to the back\n currentPlayer = players.pop();//Pull out the first player in line to go next\n }", "void addPerson(Player player);", "public void addPlayer(String name, double attackStat, double blockStat){\n players.add(new Player(name, attackStat, blockStat));\n }", "public void setUpPlayers() {\n this.players.add(new Player(\"Diogo\"));\n this.players.add(new Player(\"Hayden\"));\n this.players.add(new Player(\"Gogo\"));\n }", "@Override\r\n public void addPlayers(int numberOfPlayers) {\r\n for (int i = 0; i < numberOfPlayers; i++) {\r\n this.addPlayer();\r\n }\r\n }", "@Override\n\tpublic void start() \n\t{\n\t\tServerPoller.getServerPoller().setObserver(this);\n\t\tList<Game> gamelist = Reference.GET_SINGLETON().proxy.getGameList();\n\t\tGameInfo[] games = new GameInfo[gamelist.size()];\n\t\tint counter = 0;\n\t\tfor(Game game: gamelist)\n\t\t{\n\t\t\tGameInfo thisgame = new GameInfo();\n\t\t\tthisgame.setId(game.getId());\n\t\t\tthisgame.setTitle(game.getTitle());\n\t\t\tfor(Player player : game.getPlayers())\n\t\t\t{\n\t\t\t\tPlayerInfo player_info = new PlayerInfo(player);\n\t\t\t\tplayer_info.setColor(player.getColor());\n\t\t\t\tif(!(player.color == null))thisgame.addPlayer(player_info);\n\t\t\t}\n\t\t\tgames[counter] = thisgame;\n\t\t\tcounter++;\n\t\t}\n\n\t\tif (Reference.GET_SINGLETON().getPlayer_color() != null) return;\n\t\tif (!hasChanged(games, oldGames)) return;\n\t\toldGames = games;\n\t\t\n\t\tReference ref = Reference.GET_SINGLETON();\n\t\t\n\t\tPlayerInfo ourguy = new PlayerInfo();\n\t\t\n\t\tourguy.setId(ref.player_id);\n\t\tourguy.setName(ref.name);\n\t\t\n\t\tgetJoinGameView().setGames(games, ourguy);\n\n\t\tif (getJoinGameView().isModalShowing()) getJoinGameView().closeModal();\n\t\tif(!getJoinGameView().isModalShowing())\n\t\t{\n\t\t\tgetJoinGameView().showModal();\n\t\t}\n\t}", "public boolean addPlayer(Player p) {\n\t\tif(p != null && !squareOccuped()) {\n\t\t\tthis.player = p;\n\t\t\treturn true;\n\t\t} else return false;\n\t}", "public void updateLobby(Set<String> players) {\r\n lobbyFrame.updateList(players);\r\n }", "public void cmdAddPlayer(User teller, String playerHandle) {\n Player player = tournamentService.findPlayer(playerHandle);\n try {\n player = tournamentService.createPlayer(playerHandle);\n } catch (InvalidPlayerException e) {\n replyError(teller, e);\n return;\n } catch (InvalidTeamException e) {\n replyError(teller, e);\n command.tell(teller, \"To create a new team, use the \\\"add-team\\\" command. Usage: add-team XXX\");\n return;\n }\n tournamentService.flush();\n command.tell(teller, \"Done. Player {0} has joined the \\\"{1}\\\".\", player, player.getTeam());\n command.tell(teller, \"To set the player''s real name, use: \\\"set-player {0} name 2200\\\"\", player);\n cmdShowPlayer(teller, player);\n }", "@Override\n\tpublic void handle(WrapperWorld world, WrapperPlayer player){\n\t\tWrapperEntity builderWrapper = world.getEntity(builderID);\n\t\tif(builderWrapper != null){\n\t\t\t//Queue up the builder to send the player data back next update.\n\t\t\t((ABuilderEntityBase) builderWrapper.entity).playersRequestingData.add(player);\n\t\t}\n\t}", "public void addWinners(int playerIndex) {\n this.winners.add(playerIndex);\n }", "public void createPlayer() {\n ColorPicker colorPicker = new ColorPicker();\n\n for (Player player : players) {\n if (player.getColor() == color(0, 0, 0) || (player.hasName() == false)) {\n pickColor(player, colorPicker);\n return;\n }\n }\n\n // if (ENABLE_SOUND) {\n // sfx.moveToGame();\n // }\n\n state = GameState.PLAY_GAME;\n\n // Spawn players\n int index = 0;\n for (int i=players.size()-1; i>=0; i--) {\n String dir = directions.get(index); // Need to add players in reverse so that when they respawn, they move in the right direction\n players.get(i).setSpawn(spawns.get(dir)).setDirection(dir);\n index++;\n }\n\n // Update game state only if all players have name and color\n}", "public void addMemento(Memento m) { savedPlayers.add(m); }", "@FXML\n public void btnStartGame(Event e)\n {\n\n LobbyPlayer lobbyPlayer = PlayerSingleton.getPlayer().getLobbyPlayer();\n try {\n List<LobbyPlayer> lobbyPlayerList = LobbyServerConnection.getInstance().getPlayerList(lobbyPlayer);\n\n List<Player> pl = new ArrayList<>();\n\n for (LobbyPlayer lp :lobbyPlayerList) {\n Player p = new Player(lp.getUniqueId(), lp.getName());\n pl.add(p);\n }\n\n //game gets starter on server\n GameServerConnection.getInstance().startGame(pl);\n sleep();\n //tartGamevanuit lobby\n LobbyServerConnection.getInstance().startGame(lobbyPlayer);\n\n } catch (RemoteException e1) {\n log.warning(e1.toString());\n log.warning(\"couldn't create a game\");\n }\n }", "public boolean addPlayerItem(PlayerItem playerItem);", "public void generatePlayer()\n {\n board.getTile(8,0).insertPlayer(this.player);\n }", "public void join(Player player) {\n\t\tGamePlayer gamePlayer = new GamePlayer(player);\n\t\tthis.gamePlayers.add(gamePlayer);\n\n\t\tif (getEmptyPad() != null) ß{\n\t\t\tPad pad = getEmptyPad();\n\t\t\tgamePlayer.setPad(pad);\n\t\t\tpad.setFree(false);\n\t\t\tLocation loc = pad.getLocation();\n\n\t\t\tplayer.teleport(new Location(loc.getWorld(), loc.getX(), loc.getY(), loc.getZ()));\n\t\t\tsetupPlayerInventory(player);\n\t\t\tplayer.sendMessage(\"You have joined the game\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Not enough room for \" + player.getName() + \" to join. Kicking...\");\n\t\t\tplayer.kickPlayer(\"Game Full\");\n\t\t}\n\t}", "boolean addPlayer(String player);", "public boolean checkIfPlayerInList(Player player, Player player1) {\n for(int i = 0; i < core.getPlayers().get(player).size(); i++) {\n /*\n if(core.getPlayers().get(player).contains(configList.get(i))) {\n core.getPlayers().get(player).add(configList.get(i));\n }\n */\n if (core.getPlayers().get(player).get(i).equalsIgnoreCase(player1.getName())) {\n return true;\n }\n }\n return false;\n }", "@Override\r\n public void addPlayerHandler(Player player) {\r\n // add new player to current TreeSet\r\n playerByIdTreeSet.add(player);\r\n\r\n if(successor!=null){\r\n // there are more handlers - trigger them to add this player as well\r\n successor.addPlayerHandler(player);\r\n }\r\n }", "public void addAI(ArrayList<Player> list,String U,String F,String G) {\r\n\t\tboolean flag = true;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile (aa.hasNext()) {\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tif(in.getUserName().equals(U)){\r\n\t\t\t\tSystem.out.println(\"The player already exists.\");\r\n\t\t\t\tflag =false;\r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif(flag)\r\n\t\t\tlist.add(new NimAIPlayer(U,F,G,0,0,\"AI\"));\r\n\t\tSystem.out.println(\"\");\r\n\t}", "public void addPlayer(int place, Player p) {\r\n\t\tif (!players.containsKey(place))\r\n\t\t\tplayers.put(place, p);\r\n\t}", "public void addPlayer(HeroClass newJob){job.add(newJob);}", "@Override\r\n public void handleMessage (Message inputMessage) {\n OnUpdatePlayerSubscription.OnUpdatePlayer updatePlayer = response.data().onUpdatePlayer();\r\n\r\n Log.i(TAG, \"updated user is \" + updatePlayer.toString() + \" session id is \" + sessionId);\r\n //checking if the updated player is in this session\r\n if(updatePlayer.session().id().equals(sessionId)){\r\n boolean contains = false;\r\n\r\n //checking if the updated player is in the current player list\r\n for(Player player : players){\r\n\r\n // if we have a match update players lat/long\r\n if(updatePlayer.id().equals(player.getId())){\r\n List<LatLng> bananasList = new LinkedList<>();\r\n bananasList.add(new LatLng(response.data().onUpdatePlayer().lat(),\r\n response.data().onUpdatePlayer().lon()));\r\n player.setLocations(bananasList); // sets location for the player\r\n player.setIt(updatePlayer.isIt());\r\n contains = true;\r\n }\r\n }\r\n\r\n //if the player is in the session, but not in the player list, then make a new player and add them to the players list and add a marker\r\n if(contains == false){\r\n Marker marker = mMap.addMarker(new MarkerOptions()\r\n .position(new LatLng(updatePlayer.lat(), updatePlayer.lon()))\r\n .title(updatePlayer.username()));\r\n Circle circle = mMap.addCircle(new CircleOptions()\r\n .center(new LatLng(updatePlayer.lat(), updatePlayer.lon()))\r\n .radius(tagDistance)\r\n .fillColor(Color.TRANSPARENT)\r\n .strokeWidth(3));\r\n\r\n marker.setIcon(playerpin);\r\n circle.setStrokeColor(notItColor);\r\n\r\n Player newPlayer = new Player();\r\n newPlayer.setId(updatePlayer.id());\r\n newPlayer.setIt(false);\r\n newPlayer.setMarker(marker);\r\n newPlayer.setCircle(circle);\r\n newPlayer.setUsername(updatePlayer.username());\r\n List<LatLng> potatoes = new LinkedList<>();\r\n potatoes.add(new LatLng(updatePlayer.lat(), updatePlayer.lon()));\r\n newPlayer.setLocations(potatoes);\r\n\r\n //adding player to the list of players in the game\r\n players.add(newPlayer);\r\n }\r\n }\r\n// for(Player player : players) {\r\n// if(response.data().onUpdatePlayer().id().equals(player.getId())) {\r\n// // if true (we have a match) update players lat/long\r\n// List<LatLng> bananasList = new LinkedList<>();\r\n// bananasList.add(new LatLng(response.data().onUpdatePlayer().lat(),\r\n// response.data().onUpdatePlayer().lon()));\r\n// player.setLocations(bananasList); // sets location for the player\r\n// //Might have been causing the starting point to move\r\n//// player.getCircle().setCenter(player.getLastLocation());\r\n//// player.getMarker().setPosition(player.getLastLocation());\r\n// }\r\n// }\r\n }", "public PlayerServices(){\n playerList = new ArrayList<>();\n }", "public void AddMovesToPlayer() {\n\t\t// 0 - turn left\n\t\t// 1 - turn right\n\t\t// 2 - go forward\n\t\tfor (int i = 0; i < (2 * minMoves); i++) {\n\t\t\tmoves.add(r.nextInt(3));\n\t\t}\n\t\tthis.face = 1;\n\t}", "public static void addPlayer(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Add Player---\");\r\n\t\ttheTeam.teamToString();\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"--Top 20 Free Agents--\");\r\n\t\ttheLeague.getFreeAgents(20);\r\n\r\n\t\tint playerChoice;\r\n\t\tdo {\r\n\t\t\tdo {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(\" 0 - Filter Free Agents by Position\");\r\n\t\t\t\tSystem.out.println(\" -1 - View All Free Agents\");\r\n\t\t\t\tSystem.out.println(\"1-\" + theLeague.playerList().size() + \" - Select a Player\");\r\n\t\t\t\tplayerChoice = Input.validInt(-1, theLeague.playerList().size(), keyboard);\r\n\t\t\t\t\r\n\t\t\t\tif (playerChoice == -1) {\r\n\t\t\t\t\ttheLeague.getFreeAgents();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (playerChoice == 0) {\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t\tSystem.out.println(\"Which position would you like to view?\");\r\n\t\t\t\t\tSystem.out.println(\"1 - QB\");\r\n\t\t\t\t\tSystem.out.println(\"2 - WR\");\r\n\t\t\t\t\tSystem.out.println(\"3 - RB\");\r\n\t\t\t\t\tSystem.out.println(\"4 - TE\");\r\n\t\t\t\t\tswitch (Input.validInt(1, 4, keyboard)) {\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent QBs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"QB\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent WRs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"WR\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent RBs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"RB\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent TEs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"TE\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\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} while (playerChoice < 1);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (theLeague.playerList().get(playerChoice - 1).getIsOwned()) {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(theLeague.playerList().get(playerChoice - 1).playerToString() + \" is not available\");\r\n\t\t\t}\r\n\t\t} while (theLeague.playerList().get(playerChoice - 1).getIsOwned());\r\n\r\n\t\tPlayer thePlayer = theLeague.playerList().get(playerChoice - 1);\r\n\t\tthePlayer.setIsOwned();\r\n\t\ttheTeam.getRoster().add(thePlayer);\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"***\" + theTeam.getManagerName() + \" has added \" + thePlayer.playerToString() + \"***\");\r\n\t}", "public void initializePlayers(){\r\n allPlayers = new ArrayList<Player>();\r\n currentPlayerIndex = 0;\r\n Player redPlayer = new Player(1, new Location(2, 2), Color.RED);\r\n Player bluePlayer = new Player(2, new Location(4, 2), Color.BLUE);\r\n Player whitePlayer = new Player(3, new Location(2, 4), Color.WHITE);\r\n Player yellowPlayer = new Player(4, new Location(4, 4), Color.YELLOW);\r\n allPlayers.add(redPlayer);\r\n allPlayers.add(bluePlayer);\r\n allPlayers.add(whitePlayer);\r\n allPlayers.add(yellowPlayer);\r\n }", "ArrayList<IPlayer> buildPlayerList();" ]
[ "0.7719552", "0.75731486", "0.75569135", "0.7341981", "0.72416544", "0.7165818", "0.7115767", "0.7059356", "0.703496", "0.7006957", "0.6993796", "0.69876945", "0.69548774", "0.6906639", "0.6898235", "0.68825585", "0.6847397", "0.68394", "0.6828121", "0.67872465", "0.67517364", "0.6746699", "0.67397803", "0.6737017", "0.6703675", "0.6699935", "0.6666595", "0.6658343", "0.6627357", "0.6619743", "0.6613452", "0.65878105", "0.6587737", "0.6564468", "0.6544018", "0.653201", "0.65286344", "0.6521996", "0.65110505", "0.6500407", "0.64959234", "0.6492704", "0.6474835", "0.6440268", "0.6430289", "0.642757", "0.6423676", "0.6414009", "0.6397769", "0.6383817", "0.63800603", "0.6378806", "0.6368442", "0.6353973", "0.6351721", "0.63512695", "0.63323575", "0.6289402", "0.6288662", "0.6279728", "0.6275705", "0.62719315", "0.6269632", "0.6262757", "0.6254576", "0.62230635", "0.6213244", "0.6207291", "0.6197695", "0.61873835", "0.6169787", "0.6165708", "0.6146499", "0.6123476", "0.6123356", "0.6114103", "0.6106412", "0.6105201", "0.6105103", "0.61027443", "0.60874367", "0.60831", "0.60816514", "0.60802275", "0.60800415", "0.60778654", "0.6077849", "0.6077671", "0.60728484", "0.607192", "0.6068502", "0.6066062", "0.6061222", "0.6056008", "0.60538757", "0.60391355", "0.6024171", "0.60226226", "0.60121226", "0.60076755" ]
0.74242
3
Prevent this class from being initiated without parameters.
public DrawDataParser(String dataFilename, DrawList drawList, JLabel progress) { objectList = new ArrayList<>(); this.dataFilename = dataFilename; this.progress = progress; this.drawList = drawList; drawList.getDrawInstructorList().clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private InterpreterDependencyChecks() {\r\n\t\t// Hides default constructor\r\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "protected void initialize() {\n \t// literally do nothing\n }", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private TetrisMain() {\r\n //prevents instantiation\r\n }", "private Validate(){\n //private empty constructor to prevent object initiation\n }", "@Override\n public void disabledInit() {}", "public void disabledInit(){\n\n }", "public void disabledInit(){\n\n }", "public void disabledInit(){\n\n }", "public void disabledInit(){\n\n }", "public void disabledInit(){\n\n }", "private Rekenhulp()\n\t{\n\t}", "public Preventivo() {\n\n }", "private Instantiation(){}", "@Override\n public void disabledInit()\n {\n \n }", "@Override\n public void disabledInit()\n {\n }", "private SystemInfo() {\r\n // forbid object construction \r\n }", "@Override\n public boolean isInstantiable() {\n return false;\n }", "@Override\n public void disabledInit() {\n }", "@Override\n public void disabledInit() {\n }", "@Override\n public void disabledInit() {\n }", "@Override\n public void disabledInit() {\n }", "@Override\r\n\tprotected boolean Initialize() {\n\t\treturn false;\r\n\t}", "public void disabledInit()\n\t{\n\t\t\n\t}", "private NullSafe()\n {\n super();\n }", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "private CheckingTools() {\r\n super();\r\n }", "@Override\n\tpublic void disabledInit() \n\t{\n\n\t}", "@Override\n\tpublic void disabledInit() {\n\t\t\n\n\t}", "@Override\n\tpublic void disabledInit() {\n\n\t}", "@Override\n\tpublic void disabledInit() {\n\n\t}", "public void disabledInit() {\n System.out.println(\"Default disabledInit() method... Override me!\");\n }", "@Override\n\tpublic void disabledInit() {\n\t}", "public void setInitialParameters() {\n /** DO NOTHING */\n }", "@Override\n\tpublic void disabledInit() {\n\t\t\n\t}", "@Override\n\tpublic void disabledInit() {\n\t\t\n\t}", "@Override\n public void disabledInit(){\n\n }", "private Log()\n {\n //Hides implicit constructor.\n }", "private Helper() {\r\n // do nothing\r\n }", "public Parameters() {\n\t}", "private Params()\n {\n }", "protected Problem() {/* intentionally empty block */}", "protected Approche() {\n }", "private CreateElectionParametersOptions() {\n // Do nothing.\n }", "private TetrisMain() {\r\n //ensure uninstantiability\r\n }", "public void init() {\r\n // nothing to do\r\n }", "protected ValidationException() {\r\n\t\t// hidden\r\n\t}", "final protected void initSilent() throws InstantiateException {\n\t\tif (initialized)\n\t\t\treturn;\n\t\tinit();\n\t}", "private LocalParameters() {\n\n\t}", "public AnimationParameters() {\n/* 279 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "protected Depot() {\n\t\tthis(null);\n\t}", "private Infer() {\n\n }", "private DarthSidious(){\n }", "protected void initialize() {}", "protected void initialize() {}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "public Potencial() {\r\n }", "private Supervisor() {\r\n\t}", "protected void init() {\n init(null);\n }", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "private Verify(){\n\t\t// Private constructor to prevent instantiation\n\t}", "private RequestManager() {\n\t // no instances\n\t}", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "private ClassificationSettings() {\n throw new AssertionError();\n }", "protected VboUtil() {\n }", "protected AbstractService() {\n this(false);\n }", "public Parameterized() {\n setParameters(null);\n }", "protected Gateway(boolean noInit) {\n genClient = null;\n }", "public Method() {\n }", "private Mth()\n\t{\n\t\tthrow new AssertionError();\n\t}", "public playGame()\n {\n // initialise instance variables\n //no constructor\n }", "private Ex() {\n }", "private Validations() {\n\t\tthrow new IllegalAccessError(\"Shouldn't be instantiated.\");\n\t}", "public Pleasure() {\r\n\t\t}", "protected Warning() {\n\n }", "private Main() {\r\n throw new IllegalStateException();\r\n }", "public void disabledInit() {\n\t\tvision.disableCameraSaving();\n\t}", "private DiscretePotentialOperations() {\r\n\t}", "private PuzzleConstants() {\n // not called\n }", "private SingleObject()\r\n {\r\n }", "private EagerlySinleton()\n\t{\n\t}", "private ThoseMain()\n {\n // Do nothing\n }", "Reproducible newInstance();", "@SuppressWarnings(\"unused\")\n\tprivate AbstractCommand() {\n\t\t//\n\t}", "public Constructor(){\n\t\t\n\t}", "protected CommandDispatcher()\n {\n // do nothing\n }", "private QcTestRunner()\n\t{\n\t\t// To prevent external instantiation of this class\n\t}", "protected void _init(){}", "private ObjectMacroFront() {\n\n throw new InternalException(\"this class may not have instances\");\n }", "public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}", "public Fun_yet_extremely_useless()\n {\n\n }", "protected void init() {\n // to override and use this method\n }", "private Conf() {\n // empty hidden constructor\n }", "private ContentUtil() {\n // do nothing\n }", "private PropertiesGetter() {\n // do nothing\n }", "protected void beforeParentInit() {\n // by default do nothing\n }", "private PluginAPI() {\r\n\t\tsuper();\r\n\t}", "private SingleObject(){}" ]
[ "0.69365466", "0.6926067", "0.6614497", "0.6595904", "0.6585456", "0.65673023", "0.6543953", "0.6464658", "0.64425766", "0.64425766", "0.64425766", "0.64425766", "0.64425766", "0.6406679", "0.6403683", "0.6348572", "0.63439065", "0.63278574", "0.6320298", "0.6312356", "0.6307752", "0.6297763", "0.6297763", "0.6297763", "0.6291925", "0.62906486", "0.62424785", "0.62412745", "0.6237949", "0.6215883", "0.6196454", "0.6192323", "0.6192323", "0.61865157", "0.6181031", "0.616679", "0.6161849", "0.6161849", "0.61601", "0.6156113", "0.6128167", "0.6101031", "0.6097046", "0.6096356", "0.6077001", "0.60686135", "0.60440487", "0.6042307", "0.60413027", "0.6012252", "0.6003352", "0.6003273", "0.5996432", "0.5970965", "0.5963687", "0.59598255", "0.59598255", "0.59577185", "0.59520423", "0.59512913", "0.5941837", "0.5940294", "0.59387404", "0.593567", "0.5929077", "0.59156406", "0.59154844", "0.59100044", "0.590733", "0.5906129", "0.5899563", "0.5892534", "0.58923036", "0.5892271", "0.5889376", "0.58888626", "0.58874506", "0.5878255", "0.58552504", "0.5848762", "0.5848718", "0.5847996", "0.58473337", "0.5842693", "0.58363956", "0.5834579", "0.58324784", "0.5805212", "0.58027816", "0.58005047", "0.5794632", "0.5790203", "0.57848305", "0.5778801", "0.5778698", "0.57776046", "0.57730275", "0.5769693", "0.57691866", "0.5765231", "0.5764552" ]
0.0
-1
Returns the parsed draw data.
public DrawList getDrawList() { return(drawList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Response getDraws() {\n final List<StandardDraw> allDraws = this.jdbcGameDAO.getDraws();\n Object data = new Object() {\n public List<StandardDraw> draws = allDraws;\n };\n DataResponse response = (DataResponse) ResponseFactory.makeResponse(ResponseType.SUCCESSDATA);\n response.setData(data);\n\n return response;\n // return null;\n }", "public String getData() {\r\n\t\tStringBuffer sb = new StringBuffer(npoints * 24);\r\n\r\n\t\tfor (int i = 0; i < npoints; i++) {\r\n\t\t\tsb.append(y[i] + \" \" + x[i] + \" \");\r\n\t\t}\t\t\r\n\r\n\t\treturn sb.substring(0, sb.length() - 1);\r\n\t}", "private void parseData() {\n\t\t\r\n\t}", "Object getRawData();", "public GraphicsObject[] getDrawBuffer() {\n return drawBuffer.toArray(new GraphicsObject[0]);\n }", "public DrawDataParser(String dataFilename, DrawList drawList, JLabel progress)\n {\n objectList = new ArrayList<>();\n\n this.dataFilename = dataFilename;\n this.progress = progress;\n\n this.drawList = drawList;\n drawList.getDrawInstructorList().clear();\n }", "public ObservableList<Shape> drawDataProperty() { return drawData; }", "public Object[] parse()\n\t{\n\t\tObject[] contents = new Object[2];\n\t\t\n\t\ttry\n\t\t{\n\t\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n\t\t\tSAXParser parser = factory.newSAXParser();\n\t\t\tWumpusWorldHandler handler = new WumpusWorldHandler();\n\t\t\tparser.parse(this.file, handler);\n\t\t\t\n\t\t\tcontents[0] = handler.getBoard();\n\t\t\tcontents[1] = handler.getPosition();\n\t\t}\n\t\t\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn contents;\n\t}", "public List<Shape> getDrawShapes();", "public G getData (){\n return this._data;\n }", "public String draw() {\n\t\treturn null;\r\n\t}", "public static PointD[] fillData() {\n ArrayList<PointD> vals = new ArrayList();\n while (scn.hasNextLine()) {\n String[] xandy = scn.nextLine().split(\"\\\\s*,\\\\s*\");\n vals.add(new PointD(Double.parseDouble(xandy[0]), Double.parseDouble(xandy[1])));\n }\n PointD[] vals2 = new PointD[vals.size()];\n for (int x = 0; x < vals.size(); x++) {\n vals2[x] = vals.get(x);\n }\n return vals2;\n }", "private ArrayList<Figure> getRectangleData(){\n\n ArrayList<Figure> getRectangleData = new ArrayList<>();\n\n getRectangleData.add(new Rectangle(\"First rectangle\", Color.RED, 2, 3));\n getRectangleData.add(new Rectangle(\"Second rectangle\", Color.GREEN, 1, 2));\n getRectangleData.add(new Rectangle(\"Third rectangle\", Color.BLUE, 7, 4));\n getRectangleData.add(new Rectangle(\"Fourth rectangle\", Color.YELLOW, 5, 8));\n getRectangleData.add(new Rectangle(\"Fifth rectangle\", Color.GREEN, 9, 4));\n getRectangleData.add(new Rectangle(\"Sixth rectangle\", Color.YELLOW, 8, 9));\n getRectangleData.add(new Rectangle(\"Seventh rectangle\", Color.BLUE, 1, 8));\n getRectangleData.add(new Rectangle(\"Eighth rectangle\", Color.BLUE, 1, 8));\n\n return getRectangleData;\n }", "static synchronized List<Drawing> getAllDrawings() {\r\n return new ArrayList(drawings.values());\r\n }", "public String getPointsData() {\n\t\t\tStringBuilder pointsString = new StringBuilder(\"[\");\n\n\t\t\ttry {\n\t\t\t\tCursor pointsCursor = dbHandler\n\t\t\t\t\t\t.getEveryLatLong(Main.logged_user);\n\n\t\t\t\tif (pointsCursor != null) {\n\n\t\t\t\t\tif (pointsCursor.moveToFirst()) {\n\t\t\t\t\t\twhile (!pointsCursor.isAfterLast()) {\n\t\t\t\t\t\t\tpointsString.append(String.format(GOOGLE_MAP_POINT,\n\t\t\t\t\t\t\t\t\tpointsCursor.getDouble(LATITUDE),\n\t\t\t\t\t\t\t\t\tpointsCursor.getDouble(LONGITUDE)));\n\n\t\t\t\t\t\t\tpointsCursor.moveToNext();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tpointsCursor.close();\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tLog.e(LOG_TAB, ex.getMessage());\n\t\t\t\tpointsString.append(\"ERROR_\");\n\t\t\t}\n\n\t\t\tif(pointsString.length() > GOOGLE_MAP_POINT.length())\n\t\t\t\treturn pointsString.substring(0, pointsString.length() - 1) + \"]\";\n\t\t\telse\n\t\t\t\treturn \"NODATA\";\n\t\t}", "public int[] getVisualizerData()\n {\n DsLog.log3(LOG_TAG, \"getVisualizerData\");\n int count = 0;\n\n //\n // Send EFFECT_CMD_GET_PARAM\n // EFFECT_PARAM_VISUALIZER_DATA\n //\n int numVisualizerData = DsAkSettings.getParamArrayLength(\"vcbg\") + DsAkSettings.getParamArrayLength(\"vcbe\");\n byte[] visualizerData = new byte[numVisualizerData * paramValueSize_];\n\n count = getParameter(EFFECT_PARAM_VISUALIZER_DATA, visualizerData);\n if (count != visualizerData.length)\n {\n return null;\n }\n\n return byteArrayToInt32Array(visualizerData);\n }", "public String[] getParsed() {\n\t\tif(changed)\n\t\t\treturn lines;\n\t\treturn null;\n\t}", "public Object[] getData() {\n\t\treturn new Object[] { this.textoHtml };\n\t}", "@Override\n\tprotected void readImpl()\n\t{\n\t\t_x = readD();\n\t\t_y = readD();\n\t\t_z = readD();\n\t\t_heading = readD();\n\t}", "public Drawing drawing() {\n return fDrawing;\n }", "public byte[] getData()\r\n/* 18: */ {\r\n/* 19:59 */ byte[] data = new byte[4];\r\n/* 20: */ \r\n/* 21:61 */ IntegerHelper.getTwoBytes(this.xfIndex, data, 0); int \r\n/* 22: */ \r\n/* 23: */ \r\n/* 24:64 */ tmp15_14 = 1; byte[] tmp15_13 = data;tmp15_13[tmp15_14] = ((byte)(tmp15_13[tmp15_14] | 0x80));\r\n/* 25: */ \r\n/* 26:66 */ data[2] = ((byte)this.styleNumber);\r\n/* 27: */ \r\n/* 28: */ \r\n/* 29:69 */ data[3] = -1;\r\n/* 30: */ \r\n/* 31:71 */ return data;\r\n/* 32: */ }", "public Graphics2D getGraphics(){\n\t\ttry {\n\t\t\treturn (Graphics2D)this.getBufferStrategy().getDrawGraphics();\n\t\t} catch (Exception ex1) {\n\t\t\treturn null;\n\t\t}\n\t}", "TraceDataView data();", "public Rectangle[] grabRectangles() {\n\r\n\t\tRectangle[] failureArray = { new Rectangle(0, 0, 0, 0, 0) };\r\n\r\n\t\ttry {\r\n\t\t\tURL url = new URL(\"http://10.16.47.20/outputRectWidth.txt\");\r\n\t\t\tURLConnection con = url.openConnection();\r\n\t\t\tInputStream in = con.getInputStream();\r\n\t\t\tInputStreamReader isr = new InputStreamReader(in);\r\n\t\t\tBufferedReader br = new BufferedReader(isr);\r\n\t\t\tif (br.ready()) {\r\n\t\t\t\tString[] seperateRectArr = br.readLine().split(Pattern.quote(\"|\"));\r\n\t\t\t\tfor (String str : seperateRectArr) {\r\n\t\t\t\t\tSystem.out.println(str);\r\n\t\t\t\t\tString[] rectArgsArr = str.split(Pattern.quote(\",\"));\r\n\r\n\t\t\t\t\tint xPos = 0;\r\n\t\t\t\t\tint yPos = 0;\r\n\t\t\t\t\tint width = 0;\r\n\t\t\t\t\tint height = 0;\r\n\t\t\t\t\tint xOffset = 0;\r\n\r\n\t\t\t\t\tfor (int i = 0; i < rectArgsArr.length; i++) {\r\n\r\n\t\t\t\t\t\tint value = Integer.parseInt(rectArgsArr[i].substring(rectArgsArr[i].indexOf(\":\") + 1));\r\n\r\n\t\t\t\t\t\tswitch (i) {\r\n\t\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\t\txPos = value;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t\tyPos = value;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t\twidth = value;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\t\theight = value;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\t\txOffset = value;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tSystem.out.println(xPos + \",\" + yPos + \",\" + width + \",\" + height + \",\" + xOffset);\r\n\t\t\t\t\tRectangle r = new Rectangle(xPos, yPos, width, height, xOffset);\r\n\t\t\t\t\trectangles.add(r);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (rectangles.size() >= 2) {\r\n\t\t\t\t\tArrayList<Double> rectsArea = new ArrayList<Double>();\r\n\t\t\t\t\tfor (Rectangle r : rectangles) {\r\n\t\t\t\t\t\trectsArea.add(r.getArea());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// System.out.println(\"arr = \" +\r\n\t\t\t\t\t// Arrays.toString(rectsArea.toArray()));\r\n\r\n\t\t\t\t\tCollections.sort(rectsArea);\r\n\t\t\t\t\tdouble val = 0;\r\n\t\t\t\t\tdouble val2 = 0;\r\n\t\t\t\t\tdouble delta = Integer.MAX_VALUE;\r\n\t\t\t\t\tdouble d = 0;\r\n\t\t\t\t\tfor (int i = 0; i < rectsArea.size() - 1; i++) {\r\n\t\t\t\t\t\td = rectsArea.get(i + 1) - rectsArea.get(i);\r\n\t\t\t\t\t\tif (d < delta) {\r\n\t\t\t\t\t\t\tdelta = d;\r\n\t\t\t\t\t\t\tval = rectsArea.get(i);\r\n\t\t\t\t\t\t\tval2 = rectsArea.get(i + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tSystem.out.println(\"val2 :\" + val2);\r\n\t\t\t\t\tSystem.out.println(\"val : \" + val);\r\n\r\n\t\t\t\t\t// val and delta are the areas of the 2 most similar\r\n\t\t\t\t\t// rectangles\r\n\t\t\t\t\t// convert area to width and height\r\n\t\t\t\t\tRectangle valRect = null;\r\n\t\t\t\t\tRectangle val2Rect = null;\r\n\t\t\t\t\tfor (Rectangle r : rectangles) {\r\n\t\t\t\t\t\tif (r.width * r.height == val2 && val2Rect == null) {\r\n\t\t\t\t\t\t\tval2Rect = r;\r\n\t\t\t\t\t\t} else if (r.width * r.height == val && valRect == null) {\r\n\t\t\t\t\t\t\tvalRect = r;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tin.close();\r\n\t\t\t\t\tisr.close();\r\n\t\t\t\t\tbr.close();\r\n\r\n\t\t\t\t\tRectangle[] returnArr = { valRect, val2Rect };\r\n\t\t\t\t\trectangles.clear();\r\n\t\t\t\t\treturn returnArr;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn failureArray;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"caught excpection \" + e.getMessage());\r\n\t\t}\r\n\t\treturn failureArray;\r\n\t}", "public void read(File file, Drawing drawing) throws IOException;", "public int getDraws() {\n return draws;\n }", "protected LayoutData getLayoutData() {\n\r\n\t\t\tLayoutData data = new LayoutData();\r\n\r\n\t\t\t// boxes\r\n//\t\t\tint abstractSyntaxY = BOX_SPACING;\r\n//\t\t\tint treeConcreteSyntaxY = abstractSyntaxY +abstractSyntaxSize.height + BOX_SPACING;\r\n//\t\t\tSystem.out.println(\"abstractSyntaxSize.height = \"+abstractSyntaxSize.height);\r\n//\t\t\tint checkerY = treeConcreteSyntaxY +treeConcreteSyntaxSize.height + BOX_SPACING;\r\n//\t\t\tint staticSemanticsX = BOX_SPACING;\r\n//\t\t\tint abstractSyntaxX = BOX_SPACING;\r\n//\t\t\tint compilerX = BOX_SPACING;\r\n//\t\t\tint interpreterX = BOX_SPACING;\r\n//\t\t\tdata.abstractSyntaxBox = new Rectangle(abstractSyntaxX, abstractSyntaxY, abstractSyntaxSize.width, abstractSyntaxSize.height);\r\n//\t\t\tdata.treeConcreteSyntaxBox = new Rectangle(0, treeConcreteSyntaxY, treeConcreteSyntaxSize.width, treeConcreteSyntaxSize.height);\r\n//\t\t\tdata.staticSemanticsBox = new Rectangle(staticSemanticsX, treeConcreteSyntaxY, staticSemanticsSize.width, staticSemanticsSize.height);\r\n//\t\t\tdata.checkerBox = new Rectangle(staticSemanticsX + 30, checkerY, checkerSize.width, checkerSize.height);\r\n//\t\t\tdata.compilerBox = new Rectangle(compilerX, treeConcreteSyntaxY, compilerSize.width, compilerSize.height);\r\n//\t\t\tdata.interpreterBox = new Rectangle(interpreterX, treeConcreteSyntaxY, interpreterSize.width, interpreterSize.height);\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i<taskFigures.size(); i++){\r\n\t\t\t\tdata.boxes.add(new Rectangle(BOX_SPACING, BOX_SPACING + i*(60 + BOX_SPACING) ,taskFigures.get(i).getPreferredSize().width,taskFigures.get(i).getPreferredSize().height));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn data;\r\n\t\t}", "private LineData generateLineData() {\n\n LineData d = new LineData();\n LineDataSet set = new LineDataSet(ReportingRates, \" ARVs (Reporting Rates)\");\n set.setColors(Color.parseColor(\"#90ed7d\"));\n set.setLineWidth(2.5f);\n set.setCircleColor(Color.parseColor(\"#90ed7d\"));\n set.setCircleRadius(2f);\n set.setFillColor(Color.parseColor(\"#90ed7d\"));\n set.setMode(LineDataSet.Mode.CUBIC_BEZIER);\n set.setDrawValues(true);\n\n set.setAxisDependency(YAxis.AxisDependency.LEFT);\n d.addDataSet(set);\n\n return d;\n }", "public final Layers getData()\r\n {\r\n return _theData;\r\n }", "public Data() {\n\t\tif (flag == 0) {\n\t\t\tflag = 1;\n\t\t\tfloat def = 0;\n\t\t\tfor (int i = 0; i < 4; i++) {\n\n\t\t\t\tlocation.add(def);\n\t\t\t\tstate.add(0);\n\t\t\t\tboardsize.add(0);\n\n\t\t\t\tsystemid.add(\"\");\n\t\t\t\ttime.add(0);\n\t\t\t\tname.add(\"\");\n\t\t\t}\n\n\t\t\tball.add(def);\n\t\t\tball.add(def);\n\n\t\t\tballsize = 0;\n\t\t}\n\t}", "public int getDraws() {\n return draws;\n }", "public Layer[] reconstruct(){\r\n ArrayList<String[]> rawData = pullFromText(location);\r\n return rawData != null ? reformat(rawData) : null;\r\n }", "public interface ParseRetrieveDrawingCallback {\n /**\n * Retrieves drawings\n *\n * @param returnCode\n * @param drawings\n */\n public void retrieveDrawingsCallback(int returnCode, List<ParseDrawing> drawings);\n}", "@Override\n\tpublic float[] getDemision() {\n\t\tfloat[] d = {x.getValue(),y.getValue(),width.getValue(),height.getValue()};\n\t\treturn d;\n\t}", "java.util.List<org.tensorflow.proto.profiler.XLine> \n getLinesList();", "private GvgLayer readLayer(XmlPullParser parser) throws XmlPullParserException, IOException {\n\t\tparser.require(XmlPullParser.START_TAG, ns, \"layer\");\n\n\t\tArrayList<GvgDrawable> drawables = new ArrayList<GvgDrawable>(); \n\t\tArrayList<ControlPoint> controlPoints = new ArrayList<ControlPoint>(); \n\t\tHashMap<String, String> attrs = getAttributesAsHashMap(parser);\n\t\tString name = attrs.get(\"name\");\n\t\tif(name == null) {\n\t\t\tmissingAttributeError(\"layer\", \"name\");\n\t\t}\n\n\t\twhile(parser.next() != XmlPullParser.END_DOCUMENT) {\n\t\t\tint eventType = parser.getEventType();\n\t\t\tif(eventType != XmlPullParser.START_TAG) {\n\t\t\t\tif(eventType == XmlPullParser.END_TAG && parser.getName().equals(\"layer\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString tagName = parser.getName();\n\n\t\t\tif(tagName.equals(\"polygon\")) {\n\t\t\t\tdrawables.add(readPolygon(parser));\n\t\t\t}\n\t\t\telse if(tagName.equals(\"polyline\")) {\n\t\t\t\tdrawables.add(readPolyline(parser));\n\t\t\t}\n\t\t\telse if(tagName.equals(\"control\")) {\n\t\t\t\tcontrolPoints.add(readControl(parser));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tskip(parser);\n\t\t\t}\n\t\t}\n\n\t\treturn new GvgLayer(name, drawables, controlPoints);\n\t}", "public static Shape parse() {\n Shape shape = null;\n System.out.print(\"Enter command:\");\n try {\n Scanner scanner = new Scanner(System.in);\n String commandString = scanner.nextLine();\n String[] request = commandString.split(\"\\\\s+\"); //the array of strings computed by space\n\n switch (Command.findCommandByAcronyms(request[0])){\n case CANVAS:\n int[] canvasCoordinates = convertStringArrayToIntArray(Arrays.copyOfRange(request,1,request.length));\n canvas = new Canvas(canvasCoordinates);\n shape = canvas;\n break;\n case LINE:\n int[] lineCoordinates = convertStringArrayToIntArray(Arrays.copyOfRange(request,1,request.length));\n shape = new Line(canvas, lineCoordinates);\n break;\n case RECTANGLE:\n int[] rectCoordinates = convertStringArrayToIntArray(Arrays.copyOfRange(request,1,request.length));\n shape = new Rectangle(canvas, rectCoordinates);\n break;\n case FILL:\n shape = new Fill(canvas, Arrays.copyOfRange(request,1,request.length));\n break;\n case EXIT:\n System.out.print(\"Thank you for using the Drawing App! See you again.\");\n System.exit(0);\n default:\n System.out.println(\"Command not supported: \" + request[0]);\n help();\n }\n return shape;\n } catch (NumberFormatException nfe){\n System.out.println(\"Only non negative numbers are allowed in args: \" + nfe.getMessage());\n help();\n } catch (Exception e) {\n System.out.println(\"Sorry! can't parse the entered value. Try again: \" + e.getMessage());\n help();\n }\n return shape;\n }", "public int getF_Draws() {\n return f_draws;\n }", "@Override\n public ShipVictoryData getData() {\n ShipVictoryData data = new ShipVictoryData();\n data.setTitle(title);\n data.setDescription(description);\n data.setEvents(PersistentUtility.getData(matchers));\n data.setRequirementMet(requirementMet);\n data.setTotalPoints(totalPoints);\n data.setRequiredPoints(requiredPoints);\n return data;\n }", "public String getData() {\n \n String str = new String();\n int aux;\n\n for(int i = 0; i < this.buffer.size(); i++) {\n for(int k = 0; k < this.buffer.get(i).size(); k++) {\n aux = this.buffer.get(i).get(k);\n str = str + Character.toString((char)aux);\n }\n str = str + \"\\n\";\n }\n return str;\n }", "java.lang.String getData();", "public String getPoints();", "@Override\n public Raster getData() {\n final Rectangle rect = new Rectangle(getMinX(), getMinY(), getWidth(),\n getHeight());\n return getData(rect);\n }", "public void readAndDrawShapes(DrawShapes drawSquarePanel) throws IOException {\n FileReader read = new FileReader(path);\n BufferedReader bufRead = new BufferedReader(read);\n String currentLine;\n while ((currentLine = bufRead.readLine()) != null){\n variablesList.clear();\n for (String s : currentLine.split(\" \")) {\n try{ variablesList.add(Integer.parseInt(s));\n } catch (NumberFormatException e){\n System.out.println(\"Provided data does not match any allowed shape type\");\n variablesList.clear();\n }\n }\n// TODO: Pass two arrays in return from Read File and draw shapes from Main Frame\n// If 3 ints in a line calls method painting circle\n if (variablesList.size() == 3) {\n drawSquarePanel.setIsRectangle(false);\n drawSquarePanel.addEllipse(variablesList.get(0),variablesList.get(1),variablesList.get(2),variablesList.get(2));\n// If 4 ints in a line calls method painting rectangle\n } else if (variablesList.size() == 4) {\n drawSquarePanel.setIsRectangle(true);\n drawSquarePanel.addRectangle(variablesList.get(0),variablesList.get(1),variablesList.get(2),variablesList.get(3));\n }\n }\n bufRead.close();\n }", "public void getOutData(String line) {\n\t\tMatcher myMatcher = myPattern.matcher(line);\n\t\tmyMatcher.find();\n\t\tmyMatcher.matches();\n\t\tmyMatcher.matches();\n\t\t// *--- GROUP 3(X) 4(Y) 5(Z) --*//\n\t\tif (myMatcher.group(3) != null)\n\t\t\txAxis = Double.parseDouble(myMatcher.group(3));\n\t\telse {\n\t\t\txAxis = Double.NaN;\n\t\t}\n\t\tif (myMatcher.group(4) != null)\n\t\t\tyAxis = Double.parseDouble(myMatcher.group(4));\n\t\telse {\n\t\t\tyAxis = Double.NaN;\n\t\t}\n\t\tif (myMatcher.group(5) != null)\n\t\t\tzAxis = Double.parseDouble(myMatcher.group(5));\n\t\telse {\n\t\t\tzAxis = Double.NaN;\n\t\t}\n\t}", "public DataImpl getData() {\n RealTupleType domain = overlay.getDomainType();\n TupleType range = overlay.getRangeType();\n \n float[][] setSamples = nodes;\n float r = color.getRed() / 255f;\n float g = color.getGreen() / 255f;\n float b = color.getBlue() / 255f;\n float[][] rangeSamples = new float[3][setSamples[0].length];\n Arrays.fill(rangeSamples[0], r);\n Arrays.fill(rangeSamples[1], g);\n Arrays.fill(rangeSamples[2], b);\n \n FlatField field = null;\n try {\n GriddedSet fieldSet = new Gridded2DSet(domain,\n setSamples, setSamples[0].length, null, null, null, false);\n FunctionType fieldType = new FunctionType(domain, range);\n field = new FlatField(fieldType, fieldSet);\n field.setSamples(rangeSamples);\n }\n catch (VisADException exc) { exc.printStackTrace(); }\n catch (RemoteException exc) { exc.printStackTrace(); }\n return field;\n }", "public void showDraw(){\n\t\tdraw = new Document( drawFilePath);\n\t}", "public String[] parseSrc()\n {\n String [] values;\n\n String src = driver.getPageSource();\n int begin = src.indexOf(\"496px;\\\"><\") + 8;\n int endScope = src.indexOf(\"id=\\\"dialog\\\"\");\n src = src.substring(begin, endScope);\n int end = src.indexOf(\"</span></div>\");\n src = src.substring(0, end);\n\n values = src.split(\"</span>\");\n\n return values;\n }", "public static IDataRenderer getDataRenderer() {\n\n return m_Renderer;\n\n }", "public SVG build() throws SVGParseException {\n if (data == null) {\n throw new IllegalStateException(\"SVG input not specified. Call one of the readFrom...() methods first.\");\n }\n SVGParser parser = new SVGParser();\n SVG svg = parser.parse(data);\n svg.setFillColorFilter(fillColorFilter);\n svg.setStrokeColorFilter(strokeColorFilter);\n return svg;\n }", "public String draw()\r\n\t{\r\n\t\tString cardToDraw = \"\";\r\n\t\t\r\n\t\t// Checks deck status with isEmpty method\r\n\t\tif ( !isEmpty() )\r\n\t\t{\r\n\t\t\tcardToDraw = cards[topCard];\r\n\t\t\ttopCard--;\r\n\t\t}\r\n\t\t\r\n\t\treturn cardToDraw;\r\n\t}", "private PolylineDataBuffered getLine(PickManager pickManager, ModelDataRetriever<PolylineGeometry> dataRetriever,\n PolylineRenderData renderData, PolylineGeometry geom)\n {\n PolylineDataBuffered line = renderData.getData().get(geom);\n if (line == null)\n {\n line = getBufferedData(geom, dataRetriever, renderData.getProjection(), TimeBudget.ZERO, pickManager,\n myGroupTimeSpan);\n if (line != null)\n {\n renderData.getData().put(geom, line);\n }\n }\n return line;\n }", "private LineData generateDataLine(int cnt, String name, ArrayList<Double> mainEmotion) {\n\n ArrayList<Entry> values1 = new ArrayList<>();\n\n //int[] val = {(int) happinessr, (int) sadnessr, (int) surpriser, (int) fearr, (int) neutralr, (int) contemptr, (int) angerr, (int) disgustr};\n\n for (int i = 0; i < mainEmotion.size(); i++) {\n values1.add(new Entry(i, mainEmotion.get(i).intValue()));\n }\n\n LineDataSet d1 = new LineDataSet(values1, name);\n d1.setLineWidth(2.5f);\n d1.setCircleRadius(4.5f);\n //Toast.makeText(getContext().getApplicationContext(), name, Toast.LENGTH_LONG).show();\n\n switch (name) {\n case \"Happiness\":\n d1.setColor(Color.rgb(189, 237, 255));\n d1.setCircleColors(Color.rgb(189, 237, 255));\n break;\n case \"Sadness\":\n d1.setColor(Color.rgb(74, 88, 176));\n d1.setCircleColors(Color.rgb(74, 88, 176));\n break;\n case \"Contempt\":\n d1.setColor(Color.rgb(242, 5, 92));\n d1.setCircleColors(Color.rgb(242, 5, 92));\n break;\n case \"Disgust\":\n d1.setColor(Color.rgb(79, 139, 62));\n d1.setCircleColors(Color.rgb(79, 139, 62));\n break;\n case \"Fear\":\n d1.setColor(Color.rgb(89, 72, 122));\n d1.setCircleColors(Color.rgb(89, 72, 122));\n break;\n case \"Surprise\":\n d1.setColor(Color.rgb(205, 185, 39));\n d1.setCircleColors(Color.rgb(205, 185, 39));\n break;\n case \"Anger\":\n d1.setColor(Color.rgb(189, 73, 84));\n d1.setCircleColors(Color.rgb(189, 73, 84));\n break;\n case \"Neutral\":\n d1.setColor(Color.rgb(220, 235, 221));\n d1.setCircleColors(Color.rgb(220, 235, 221));\n break;\n default:\n break;\n\n }\n\n d1.setHighLightColor(Color.rgb(255, 0, 0));\n d1.setDrawValues(false);\n\n ArrayList<Entry> values2 = new ArrayList<>();\n\n for (int i = 0; i < mainEmotion.size(); i++) {\n values2.add(new Entry(i, values1.get(i).getY() - 30));\n }\n\n ArrayList<ILineDataSet> sets = new ArrayList<>();\n sets.add(d1);\n //sets.add(d2);\n\n return new LineData(sets);\n }", "protected final void parses() {\n current = read();\n skipSpaces();\n\n for (;;) {\n switch (current) {\n default:\n return;\n case '+': case '-': case '.':\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n }\n \n float x2 = parseNumber();\n skipCommaSpaces();\n float y2 = parseNumber();\n skipCommaSpaces();\n float x = parseNumber();\n skipCommaSpaces();\n float y = parseNumber();\n\n float smoothX = currentX * 2 - smoothCCenterX;\n float smoothY = currentY * 2 - smoothCCenterY;\n smoothCCenterX = currentX + x2;\n smoothCCenterY = currentY + y2;\n currentX += x;\n currentY += y;\n\n p.curveTo(smoothX, smoothY,\n smoothCCenterX, smoothCCenterY,\n currentX, currentY);\n\n smoothQCenterX = currentX;\n smoothQCenterY = currentY;\n skipCommaSpaces();\n }\n }", "public double draw() {\n\t\treturn this.bp.P1P2();\n\t}", "public Object[][] buildNewGraphDataModel() {\r\n\t\t\r\n\t\tresetDataStructures();\r\n\t\tGraph g = UIFacade.getInstance().getGraph();\r\n\t\t\r\n\t\tObject[][] result = new Object[g.getN()][5];\r\n\t\t\r\n\t\tfor (int i = 0; i < g.getN(); i++) {\r\n\t\t\tNode node = g.getNode(i);\r\n\t\t\tComponentProperties cp = node.getProperties();\r\n //\t\t\t ID\r\n\t\t\tresult[i][0] = new Integer(\r\n\t\t\t\t\t((ID)cp.getPropertyByName(\"ID\")).getValue()); \t\t\t\r\n\t\t\tresult[i][1] = new Integer(DEFAULT_CLIENT_DEMAND); // Demand\t\t\t\r\n\t\t\tresult[i][2] = new Double(DEFAULT_CLIENT_TW_BEGIN);\r\n\t\t\tresult[i][3] = new Double(DEFAULT_CLIENT_TW_END);\r\n\t\t\tresult[i][4] = new Double(DEFAULT_CLIENT_TW_SERVICE);\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public float[] getData()\n {\n return this.pixels;\n }", "public void parse(){\r\n\t\t//StringTokenizer st = new StringTokenizer(nmeaSentence,\",\");\r\n\t\tst = new StringTokenizer(nmeaSentence,\",\");\r\n\t\tString sv = \"\";\r\n\r\n\t\ttry{\r\n\t\t\tnmeaHeader = st.nextToken();//Global Positioning System Fix Data\r\n\t\t\tmode = st.nextToken();\r\n\t\t\tmodeValue = Integer.parseInt(st.nextToken());\r\n\r\n\t\t\tfor(int i=0;i<=11;i++){\r\n\t\t\t\tsv = st.nextToken();\r\n\t\t\t\tif(sv.length() > 0){\r\n\t\t\t\t\tSV[i] = Integer.parseInt(sv);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSV[i] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tPDOP = Float.parseFloat(st.nextToken());\r\n\t\t\tHDOP = Float.parseFloat(st.nextToken());\r\n\t\t\tVDOP = Float.parseFloat(st.nextToken());\r\n\r\n\t\t}catch(NoSuchElementException e){\r\n\t\t\t//Empty\r\n\t\t}catch(NumberFormatException e2){\r\n\t\t\t//Empty\r\n\t\t}\r\n\r\n\t}", "private Views getViews() throws IOException, ProcessingException {\n\t\tJsonReader reader = new JsonReader(new FileReader(viewsFilePath));\n\t\treturn GSON.fromJson(reader, Views.class);\n\t}", "private GvgPolygon readPolygon(XmlPullParser parser) throws XmlPullParserException, IOException {\n\t\tparser.require(XmlPullParser.START_TAG, ns, \"polygon\");\n\n\t\tHashMap<String, String> attrs = getAttributesAsHashMap(parser);\n\t\tString points = attrs.get(\"points\");\n\t\tif(points == null) {\n\t\t\tmissingAttributeError(\"polygon\", \"points\");\n\t\t}\n\n\t\treturn new GvgPolygon(points, new GvgPaintStyle(attrs.get(\"style\")));\n\t}", "public void clear() { drawData.clear(); }", "@Override\n\tpublic JsonObject getDataToDisplay() {\n\t\tJsonObject payload = new JsonObject();\n\t\tString newNode;\n\t\t// if the tree is complete then the game is over.\n\t\tif (this.displayedNodes.isEmpty()) {\n\t\t\tnewNode = \"GAME IS OVER\";\n\n\t\t} else {\n\t\t\tnewNode = GSON.toJson(this.displayedNodes.get(this.displayedNodes.size() - 1));\n\t\t}\n\t\tpayload.addProperty(\"currValue\", this.currDisplayedNumber);\n\t\tpayload.addProperty(\"newNodeToDisp\", newNode);\n\t\tpayload.addProperty(\"score\", this.score);\n\t\tpayload.addProperty(\"nextScoreVal\", this.calculateScore(\"\"));\n\t\treturn payload;\n\t}", "public List<StatsObject> getData() {\n\t\tList<StatsObject> stats = new ArrayList<StatsObject>(data.values());\n\t\treturn stats;\n\n\t}", "private void plotData(){\n List<Entry> entriesMedidas = new ArrayList<Entry>();\n try{\n // #1\n FileInputStream fis = getApplicationContext().openFileInput(fileName);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n\n // #2. Skips the name, birthdate and gender of the baby\n reader.readLine();\n reader.readLine();\n reader.readLine();\n\n // #3\n String line = reader.readLine();//First line with data\n\n while (line != null) {\n double[] datum = obtainSubstring(line, mag);\n entriesMedidas.add(new Entry((float) datum[0], (float) datum[1]));\n\n line = reader.readLine();\n }\n\n reader.close();\n isr.close();\n fis.close();\n\n }catch(IOException e){\n e.printStackTrace();\n }\n\n // #4\n LineDataSet lineaMedidas = new LineDataSet(entriesMedidas, this.name);\n lineaMedidas.setAxisDependency(YAxis.AxisDependency.LEFT);\n lineaMedidas.setColor(ColorTemplate.rgb(\"0A0A0A\"));\n lineaMedidas.setCircleColor(ColorTemplate.rgb(\"0A0A0A\"));\n todasMedidas.add(lineaMedidas);\n\n }", "protected StringBuffer getAttributes()\r\n\t{\r\n\t\t// Output buffer\r\n\t\tStringBuffer transformBuff\t= new StringBuffer();\r\n\t\t// The various transformation buffers.\r\n\t\tStringBuffer rotateBuff\t\t= new StringBuffer();\r\n\t\tStringBuffer translateBuff\t= new StringBuffer();\r\n\t\tStringBuffer scaleBuff \t\t= new StringBuffer();\r\n\r\n\t\t\r\n\t\t// now let's calculate our transformation information if any.\r\n\t\t////////////////// Rotate the object ////////////\r\n\t\t// you may want to play with this if it doesn't work\r\n\t\t// Transformation a followed by tranformation b is not the\r\n\t\t// same as transformation b followed by transformation a.\r\n\t\t// Page 65 SVG Essentials, J. David Eisenberg, O'Reilly Press.\r\n\t\tif (Rotation != 0.0)\r\n\t\t{\r\n\t\t\trotateBuff.append(\"rotate(\");\r\n\t\t\trotateBuff.append(Rotation + \" \");\r\n\t\t\t// Blocks are rotated around their insertion point.\r\n\t\t\trotateBuff.append(Anchor.toTransformCoordinate());\r\n\t\t\trotateBuff.append(\") \");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\r\n\t\t///////////////// Scale the object //////////////\r\n\t\tif ((xScale != 1.0) || (yScale != 1.0))\r\n\t\t{\r\n\t\t\tscaleBuff.append(\" scale(\"+xScale);\r\n\t\t\tif (xScale != yScale)\r\n\t\t\t\tscaleBuff.append(\",\"+yScale);\r\n\t\t\tscaleBuff.append(\")\");\r\n\t\t\t\r\n\t\t\t// Now we have to compensate for any scaling in the y axis \r\n\t\t\t// because Dxf scales objects from the lower left corner of\r\n\t\t\t// the drawing and SVG scales from the top left.\r\n\t\t\t//\r\n\t\t\t// This requires a little explanation as it took some time \r\n\t\t\t// to work out exactly what is going on between DXF and SVG.\r\n\t\t\t//\r\n\t\t\t// Blocks in AutoCAD have their own space. When you choose \r\n\t\t\t// an insertion point for a block you are telling the block\r\n\t\t\t// that it's new origin is the insert point, not the drawing's\r\n\t\t\t// origin.\r\n\t\t\t//\r\n\t\t\t// Dxf2Svg reads the blocks section of the DXF and interprets the\r\n\t\t\t// entities within a block literally and converts them into \r\n\t\t\t// XML entities with the insert point as their origin.\r\n\t\t\t// \r\n\t\t\t// Now DXF's drawing origin is in the bottom lefthand corner of the page.\r\n\t\t\t// SVG's origin is the top left hand corner. That means that all blocks \r\n\t\t\t// are drawn in reference to the lower left corner. We have already converted\r\n\t\t\t// the blocks entities to assume that the origin is SVG style (top left)\r\n\t\t\t// so when we try to specify an insert point in SVG, we have a problem. The\r\n\t\t\t// references are from different corners of the page.\r\n\t\t\t//\r\n\t\t\t// To compensate blocks have two points; an Anchor like all other graphic \r\n\t\t\t// objects and a Virtual DXF Coordinate (VDC). The VDC is basically\r\n\t\t\t// the x, and y values from the DXF file, converted to USR_UNITS.\r\n\t\t\t// That's all. It is not converted to SVG space. \r\n\t\t\t// \r\n\t\t\t// First you \r\n\t\t\t// must imagine that you are overlaying SVG space (0,0 top left) on top\r\n\t\t\t// of DXF space (0,0 bottom left). To get objects to appear in the same\r\n\t\t\t// location as they did in the DXF you must move that insertion point\r\n\t\t\t// up above the SVG y = 0 line (so y becomes negative in SVG).\r\n\t\t\t// This requires knowing the height of \r\n\t\t\t// the drawing which SvgUtil.java can provide. Once you know the height\r\n\t\t\t// you find out how subtract the anchor's y coordinate from the height\r\n\t\t\t// thus in effect you are flipping between the two drawing spaces.\r\n\t\t\t//\r\n\t\t\t// Inserting an object is easy now; just use the VDC as the anchor and \r\n\t\t\t// reference the block within a &lt;g&gt; tag. If you want to scale\r\n\t\t\t// that object, things get a little more complicated. The y\r\n\t\t\t// value is in the negative 'y' range of the SVG space. Any scaling of\r\n\t\t\t// that object will be in reference to that point.\r\n\t\t\t//\r\n\t\t\t// So to get the object to appear in it's original position we must move\r\n\t\t\t// it further up into negative y SVG space by the distance it would \r\n\t\t\t// have grown during transformation. I.e. if the object grew by 25% or\r\n\t\t\t// 1.25 in AutoCAD, and the object is 1 inch in height then the growth\r\n\t\t\t// through scaling is 1 * (1.25 -1) or 1 * 0.25 or 0.25 inches.\r\n\t\t\t//\r\n\t\t\t// Now we need to now the distance of the VDC from the SVG object's\r\n\t\t\t// origin. That should be the height of the drawing, but to be sure \r\n\t\t\t// add the absolute value of the distance from SVG y = 0 to the object's\r\n\t\t\t// origin in negative y SVG space, and add it to the distance from \r\n\t\t\t// SVG y = 0 to the VDC y coordinate. Now if you multiply that distance\r\n\t\t\t// by the above 0.25, and subtract that from the SVG origin point\r\n\t\t\t// in negative SVG y space you will have compensated for the shift of \r\n\t\t\t// due to scaling.\r\n\t\t\t//\r\n\t\t\t// We don't need to do anything with the x value because it is \r\n\t\t\t// just the VDC x value, which has a one-to-one relationship to\r\n\t\t\t// SVG space except that it is not in SVG space, but in DXF space.\r\n\t\t\t//\r\n\t\t\t// I'm sorry this would have benifited from a picture so perhaps you\r\n\t\t\t// should browse through the paper documentation as there is a diagram\r\n\t\t\t// that I used to formulate the algorithm.\r\n\t\t\t\r\n\t\t\t//double VDCx = virtualDxfPoint.getX();\r\n\t\t\tdouble VDCy = virtualDxfPoint.getY();\r\n\t\t\t//double Ax\t= Anchor.getX();\r\n\t\t\tdouble Ay\t= Anchor.getY();\r\n\t\t\t\r\n\t\t\t////////////////////////////////\r\n\t\t\t//VDCx = VDCx;\r\n\t\t\tVDCy = VDCy - ((Ay + Math.abs(VDCy))*(yScale -1));\r\n\t\t\t////////////////////////////////\r\n\r\n\t\t\t// We do not need to set the x value for this point. I don't know why.\r\n\t\t\t//virtualDxfPoint.setXUU(VDCx);\r\n\t\t\tvirtualDxfPoint.setYUU(VDCy);\r\n\t\t}\r\n\t\t\r\n\t\t// We do this last because we might have adjusted the virtualDxfPoint's y \r\n\t\t// value, but the transformation is best done after the rotation and it seems\r\n\t\t// before the scale. \r\n\t\ttranslateBuff.append(\"translate(\");\r\n\t\ttranslateBuff.append(virtualDxfPoint.toTransformCoordinate());\r\n\t\ttranslateBuff.append(\")\");\r\n\t\t\r\n\t\t\r\n\t\t// Put all three parts together now.\r\n\t\ttransformBuff.append(\" transform=\\\"\");\r\n\t\t// Can only do this with Java 1.4\r\n\t\t// The transformation ordering can be changed here.\r\n\t\ttransformBuff.append(rotateBuff);\r\n\t\ttransformBuff.append(translateBuff);\r\n\t\ttransformBuff.append(scaleBuff);\t// this may be an empty buffer.\r\n\t\t// closing quote on the transformation string.\r\n\t\ttransformBuff.append(\"\\\"\");\r\n\t\ttransformBuff.append(getAdditionalAttributes());\r\n\t\t\r\n\t\treturn transformBuff;\r\n\t}", "protected String getQRData() {\n String data = \"\";\n\n // positions de départ hardcodées (i,j), sens de parcours nombres de lignes (0:down, 1:up),\n // nombres de lignes à lire (nb_lines), spécial 1 colonnes (0:2 col, 1:1 col)\n int[][] start_bits_list = new int[][] {{28,28,1,20,0}, {9,26,0,20,0}, {28,24,1,4,0}, {19,24,1,11,0}, {9,22,0,11,0}, {25,22,0,4,0},\n {28,20,1,4,0}, {24,19,1,5,1}, {19,20,1,13,0}, {5,20,1,6,0}, {0,18,0,6,0}, {7,18,0,22,0},\n {28,16,1,22,0}, {5,16,1,6,0}, {0,14,0,6,0}, {7,14,0,22,0}, {28,12,1,22,0}, {5,12,1,6,0},\n {0,10,0,6,0}, {7,10,0,22,0}, {20,8,1,12,0}, {9,5,0,12,0}, {20,3,1,12,0}, {9,1,0,8,0},\n {17,1,0,1,1}};\n int[] start_bit;\n\n /* --- Traitement --- */\n for (int l = 0; l < start_bits_list.length; l++) {\n start_bit = start_bits_list[l];\n\n if (start_bit[2] == 1) { // sens de parcours : UP\n data += this.getDataUp(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n else { // sens de parcours : DOWN\n data += this.getDataDown(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n }\n\n return data;\n }", "String getData();", "public void analyzeData(){\n\t\tlinewidth = rt.getValue(\"Mean\", 1) - rt.getValue(\"Mean\", 0);\n\t\tRMS_edge_roughness = Math.sqrt((Math.pow(rt.getValue(\"StdDev\", 1), 2) + Math.pow(rt.getValue(\"StdDev\", 0), 2))/2); // this is the correct form\n\t\tif(rt.getValue(\"Max\",1) - rt.getValue(\"Min\", 1) > rt.getValue(\"Max\", 0) - rt.getValue(\"Min\", 0)){\n\t\t\tpkpk_edge_roughness = rt.getValue(\"Max\", 1) – rt.getValue(\"Min\", 1);\n\t\t}\n\t\telse{\n\t\t\tpkpk_edge_roughness = (rt.getValue(\"Max\", 0) – rt.getValue(\"Min\", 0));\n\t\t}\n\t\treturn;\n\t}", "public List<String> getDataPoints() {\n Object[] dataPoints = (Object[])configMap.get(DATA_POINT);\n List<String> dps = Utility.downcast( dataPoints );\n return dps;\n }", "public int getDraws() {\n return drawRound;\n }", "private void onStrokeDrawingFinished(ArrayList<double[]> points){\n for(double[] point : points){\n point[0] = PX2M(point[0]); //x coordinate\n point[1] = PX2M(resolution_tablet[1] - point[1]); //y coordinate\n }\n //interactionManager.publishUserDrawnShapeMessage(points);\n Log.e(TAG, \"Adding stroke to message\");\n userDrawnMessage.add(points);\n }", "public JavaScriptObject getData() {\n\t return getDataImpl(getUrl(), getRealHeight(), getRealWidth());\n }", "public BubbleData getBubbleData() { return (BubbleData)this.mData; }", "static synchronized Drawing getDrawing(int drawingId) {\r\n return drawings.get(drawingId);\r\n }", "@Override\n public List<String> getData() {\n List<String> retVal = new ArrayList<>();\n try {\n List<String> data = new ArrayList<>();\n ParkingLot parkingLot = parkingManager.getParkingLot();\n for (Slot slot : parkingLot.getSlots()) {\n if (slot.getVehicle() == null) {continue;}\n String format = String.format(\"%-11d %-18s %s\",\n slot.getId(),\n slot.getVehicle() == null ? null : slot.getVehicle().getRegistrationNumber(),\n slot.getVehicle() == null ? null : slot.getVehicle().getColor());\n\n data.add(format);\n }\n retVal.add(PARKING_LOT_STATUS_HEADER);\n retVal.addAll(data);\n\n } catch (ParkingException e) {\n retVal.add(e.getMessage());\n }\n return retVal;\n }", "public int getInternalDrawY() {\n return this.mDrawY;\n }", "private byte[] getImageData(DatagramPacket receivedPacket) {\r\n final byte[] udpData = receivedPacket.getData();\r\n // The camera adds some kind of header to each packet, which we need to ignore\r\n int videoDataStart = getImageDataStart(receivedPacket, udpData);\r\n return Arrays.copyOfRange(udpData, videoDataStart, receivedPacket.getLength());\r\n }", "public void drawChart() {\n ArrayList<Entry> confuse = new ArrayList<>();\n ArrayList<Entry> attention = new ArrayList<>();\n ArrayList<Entry> engagement = new ArrayList<>();\n ArrayList<Entry> joy = new ArrayList<>();\n ArrayList<Entry> valence = new ArrayList<>();\n // point = \"Brow Furrow: \\n\";\n String dum = null, dum2 = null;\n for (int i = 0; i < size; i++) {\n //point += (\"\" + Emotion.getBrowFurrow(i).getL() + \" seconds reading of \" + Emotion.getBrowFurrow(i).getR() + \"\\n\");\n dum2 = Emotion.getBrowFurrow(i).getL().toString();\n dum = Emotion.getBrowFurrow(i).getR().toString();\n confuse.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getAttention(i).getL().toString();\n dum = Emotion.getAttention(i).getR().toString();\n attention.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getEngagement(i).getL().toString();\n dum = Emotion.getEngagement(i).getR().toString();\n engagement.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getJoy(i).getL().toString();\n dum = Emotion.getJoy(i).getR().toString();\n joy.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getValence(i).getL().toString();\n dum = Emotion.getValence(i).getR().toString();\n valence.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n }\n\n LineDataSet data1 = new LineDataSet(confuse,\"Confuse\");\n LineDataSet data2 = new LineDataSet(attention,\"Attention\");\n LineDataSet data3 = new LineDataSet(engagement,\"Engagement\");\n LineDataSet data4 = new LineDataSet(joy,\"Engagement\");\n LineDataSet data5 = new LineDataSet(valence,\"Valence\");\n data1.setColor(Color.BLUE);\n data1.setDrawCircles(false);\n data2.setColor(Color.YELLOW);\n data2.setDrawCircles(false);\n data3.setColor(Color.GRAY);\n data3.setDrawCircles(false);\n data4.setColor(Color.MAGENTA);\n data4.setDrawCircles(false);\n data5.setColor(Color.GREEN);\n data5.setDrawCircles(false);\n\n\n dataSets.add(data1);\n dataSets.add(data2);\n dataSets.add(data3);\n dataSets.add(data4);\n dataSets.add(data5);\n }", "@Override\n protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n\n if (mBytes == null) {\n return;\n }\n if (mPoints == null || mPoints.length < mBytes.length * 4) {\n mPoints = new float[mBytes.length * 4];\n }\n\n mRect.set(0, 0, getWidth(), getHeight());\n\n for (int i = 0; i < mBytes.length - 1; i++) {\n mPoints[i * 4] = mRect.width() * i / (mBytes.length - 1);\n mPoints[i * 4 + 1] = mRect.height() / 2\n + ((byte) (mBytes[i] + 128)) * (mRect.height() / 2)\n / 128;\n mPoints[i * 4 + 2] = mRect.width() * (i + 1)\n / (mBytes.length - 1);\n mPoints[i * 4 + 3] = mRect.height() / 2\n + ((byte) (mBytes[i + 1] + 128)) * (mRect.height() / 2)\n / 128;\n }\n\n canvas.drawLines(mPoints, mPaint);\n\n }", "@Override\n public Line[] getLines(){\n Line[] arrayOfLines = new Line[]{topLine, rightLine, bottomLine, leftLine}; //stores the array of lines that form the rectangle\n return arrayOfLines;\n }", "@Override\n public Object getData() {\n return outputData;\n }", "public Date getDrawDate() {\n\t\treturn drawDate;\n\t}", "private String get_RunData(){\n\t\t\n\t\tmyCursor = dbh.db.rawQuery(\"select * from Run where personid = '\"+recid+\"'\",null);\n\t\t\n\t\tint timecol = myCursor.getColumnIndex(\"Timestamp\");\n\t\tint datacol = myCursor.getColumnIndex(\"data\");\n\t\tint run_timecol = myCursor.getColumnIndex(\"run_time\");\n\t\tint pace_col = myCursor.getColumnIndex(\"pace\");\n\t\tint steps_col = myCursor.getColumnIndex(\"steps\");\n\t\tint count = myCursor.getCount();\n\t\tJSONArray jsa = new JSONArray();\n\t\tif(myCursor.getCount() > 0){\n\t\t\tmyCursor.moveToFirst();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\n\t\t\tString run_times = myCursor.getString(run_timecol);\n\t\t\tTimestamp ts = Timestamp.valueOf(myCursor.getString(timecol));\n\t\t\tdouble data_info = myCursor.getDouble(datacol);\n\t\t\tfloat pace_val = myCursor.getFloat(pace_col);\n\t\t\tfloat steps_val = myCursor.getFloat(steps_col);\n\t\t\tJSONObject js = new JSONObject();\n\t\t\ttry {\n\t\t\t\tjs.put(\"timestamp\", ts);\n\t\t\t\tjs.put(\"data\", data_info);\n\t\t\t\tjs.put(\"pace\", pace_val);\n\t\t\t\tjs.put(\"steps\", steps_val);\n\t\t\t\tjs.put(\"run_time\", run_times);\n\t\t\t\tjs.put(\"id\", recid);\n\t\t\t\tjsa.put(i, js);\n\t\t\t\tmyCursor.moveToNext();\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\tlog.info(\"Json exception \"+e.getMessage());\n\t\t\t}\t\n\t\t}\t\n\t\treturn jsa.toString();\n\t\t\n\t}", "protected String[] parseLine() {\n ArrayList<String> lines = new ArrayList<String>();\n StringBuffer line = new StringBuffer(current);\n while (line.length() > style.lineWidth) {\n int index = split(line);\n lines.add(line.substring(0, index));\n line = new StringBuffer(line.substring(index));\n if (line.length() != 0)\n line.insert(0, continueIndentString());\n }\n if (line.length() != 0)\n lines.add(line.toString());\n return lines.toArray(new String[0]);\n }", "public Shapes draw ( );", "@Override\n\tpublic String draw() {\n\t\treturn \"Geometry Draws\";\n\t}", "void onDrawFinished(DataSet<?> dataSet);", "void computeDrawing() {\n if (dirtyD) {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n modelRoot.decrementNumberOfDirtyDNodes();\n dirtyD = false;\n }\n }", "public Graphics2D getGraphics(){\n Window w = vc.getFullScreenWindow();\n if(w != null){\n BufferStrategy bs = w.getBufferStrategy();\n //return (Graphics2D)bs.getDrawGraphics();\n return (Graphics2D)strategy.getDrawGraphics();\n } else {\n return null;\n }\n }", "public List<Paint[][]> getColouredArray() {\n\t\tList<Paint[][]> allFrames = new ArrayList<Paint[][]>();\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(this.file))) {\r\n\t\t\tString line;\r\n\t\t\twhile ((line = br.readLine()) != null) { // get each row/column pair\r\n\t\t\t\tPaint[][] frame = new Paint[20][20];\r\n\t\t\t\tString[] rows = line.split(\"/\");\r\n\t\t\t\tfor (int i = 0; i < rows.length; i++) { // rows.length is 20 hopefully... else I fucked up\r\n\t\t\t\t\tString currentRow = rows[i];\r\n\t\t\t\t\tfor (int z = 0; z < 59; z += 3) {\r\n\t\t\t\t\t\tString currentValue = currentRow.substring(z, z+3);\r\n\t\t\t\t\t\tPaint p = convertToPaint(currentValue);\r\n\t\t\t\t\t\tframe[i][z/3] = p;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tallFrames.add(frame.clone());\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn allFrames;\r\n\t}", "public void parseGPSData(){\n List<String> coordData = new ArrayList<String>();\n for (int i = 6; i < currentMessage.size(); i++){\n // Convert to int to rid ourselves of preceding zeros. Yes, this is bad.\n coordData.add(\n String.valueOf(\n Integer.parseInt(\n bcdToStr(currentMessage.get(i))\n )\n )\n );\n }\n\n String latitudeNorthSouth = (\n bcdToIntString(coordData.get(3)).charAt(1) == '0'\n ) ? \"N\" : \"S\";\n \n String longitudeEastWest = (\n bcdToIntString(coordData.get(8)).charAt(1) == '0'\n ) ? \"E\" : \"W\";\n \n triggerCallback(\"onUpdateGPSCoordinates\",\n String.format(\n \"%.4f%s%s %.4f%s%s\", \n //Latitude\n decimalMinsToDecimalDeg(\n coordData.get(0), coordData.get(1), coordData.get(2)\n ),\n (char) 0x00B0,\n latitudeNorthSouth,\n //Longitude\n decimalMinsToDecimalDeg(\n coordData.get(4) + coordData.get(5),\n coordData.get(6),\n coordData.get(7)\n ),\n (char) 0x00B0,\n longitudeEastWest\n )\n );\n \n // Parse out altitude data which is in meters and is stored as a byte coded decimal\n int altitude = Integer.parseInt(\n bcdToStr(currentMessage.get(15)) + bcdToStr(currentMessage.get(16))\n );\n\n triggerCallback(\"onUpdateGPSAltitude\", altitude);\n \n // Parse out time data which is in UTC\n String gpsUTCTime = String.format(\n \"%s:%s\",\n bcdToIntString(bcdToStr(currentMessage.get(18))),\n bcdToIntString(bcdToStr(currentMessage.get(19)))\n );\n \n triggerCallback(\"onUpdateGPSTime\", gpsUTCTime);\n }", "void updateDrawing() {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n }", "@Override\n public Object getData() {\n return new String(outputData);\n }", "public String getData()\n\t{\n\t\treturn data;\n\t}", "public String toString()\n\t{\n\t\tString data = \"(\" + x + \", \" + y + \")\";\n\t\treturn data;\t\t\t\t\t\t\t\t\t\t\t// Return point's data \n\t}", "static StringReader testData() {\n return new StringReader(\n \"@stboundedby, urn:ogc:def:crs:CRS:1.3:84, 2D, 50.23 9.23, 50.31 9.27, 2012-01-17T12:33:41Z, 2012-01-17T12:37:00Z, sec\\n\" +\n \"@columns, mfidref, trajectory, state,xsd:string, \\\"\\\"\\\"type\\\"\\\" code\\\",xsd:integer\\n\" +\n \"@foliation,Time\\n\" +\n \"a, 10, 150, 11.0 2.0 12.0 3.0, walking, 1\\n\" +\n \"b, 10, 190, 10.0 2.0 11.0 3.0, walking, 2\\n\" +\n \"a, 150, 190, 12.0 3.0 10.0 3.0\\n\" + // Omitted values are same as previous line.\n \"c, 10, 190, 12.0 1.0 10.0 2.0 11.0 3.0, vehicle, 1\\n\");\n }", "@Override\r\n\tpublic void draw() {\n\t\tPoint p = this.getP();\r\n\t\tint start_point = p.getX();\r\n\t\tint end_point = p.getY();\r\n\t\t\r\n\t\tint width = this.getWidth();\r\n\t\tint height = this.getHeight();\r\n\t\t\r\n\t\tSystem.out.println(\"�l�p�`��`�� �_(\" + start_point +\",\"+ end_point + \")����Ƃ��āA��\"+ width +\"����\"+ height +\"�̎l�p�`\");\r\n\t}", "public String getData() {\r\n return Data;\r\n }", "public String getData() {\r\n return Data;\r\n }", "public LineData() {\n\t\t\tallPoints = new ArrayList<>(SIZE_OF_ORIGINAL_LIST);\n\t\t}" ]
[ "0.6005034", "0.5682695", "0.5522409", "0.5480768", "0.5342697", "0.5250051", "0.523309", "0.52054054", "0.51432216", "0.5096106", "0.5081969", "0.5062454", "0.50605625", "0.50401515", "0.50392544", "0.49644136", "0.49407485", "0.4930918", "0.491852", "0.4915445", "0.49129844", "0.4909998", "0.48945284", "0.4887473", "0.4887114", "0.48495904", "0.4840687", "0.483373", "0.4829038", "0.48014852", "0.47986022", "0.47957265", "0.47892743", "0.4785357", "0.47819296", "0.47558233", "0.47519416", "0.47510585", "0.47444656", "0.4741098", "0.4738165", "0.473156", "0.47295573", "0.47026834", "0.46895534", "0.46838063", "0.46726498", "0.46315432", "0.4625854", "0.46140134", "0.46076974", "0.4600748", "0.46004334", "0.45992613", "0.45971665", "0.45955595", "0.45924464", "0.45924103", "0.4592321", "0.458984", "0.4588601", "0.4582128", "0.45606965", "0.45588914", "0.45574218", "0.45556834", "0.45549464", "0.45438758", "0.45425466", "0.4540123", "0.45377105", "0.45277175", "0.45167875", "0.45153522", "0.45137763", "0.45088294", "0.45056888", "0.44931346", "0.449022", "0.44880983", "0.44802436", "0.44796363", "0.44781366", "0.4476787", "0.44757262", "0.44755632", "0.44717294", "0.44586053", "0.44574764", "0.44560724", "0.44500872", "0.4448206", "0.4441997", "0.4437479", "0.443739", "0.44330412", "0.44319743", "0.44270983", "0.44270983", "0.44266045" ]
0.51783514
8
This test validates the anomalies of the email
@Test public void testEmailAnomalies() { Assert.assertEquals(emailValidator.isValid("[email protected]", constraintValidatorContext), false); Assert.assertEquals(emailValidator.isValid("aa@testcom", constraintValidatorContext), false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(priority=1)\n\tpublic void testEmailValidity() {\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"123@abc\");\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\tAssert.assertTrue(TestHelper.isStringPresent(errors, \"Please enter a valid email address in the format [email protected].\"));\n\t}", "@Test\r\n\tpublic void TC_07_verify_Invalid_Email_Address_format() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\t\r\n\t\t// Step 2: Enter valid/mandatory registration details with invalid email address format\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", firstName);\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", InvalidEmail);\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\t\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t\r\n\t\t// Step 4: Verify user should NOT be able to proceed further with registration as proper validation message regarding invalid email address\r\n\t\t//format is displayed\r\n\t\t\r\n\t\terrMsg = Page_Registration.getMandatoryFieldErrMsg();\r\n\t\tAssert.assertEquals(errMsg, \"The email address is invalid.\");\r\n\r\n\t}", "@Test\n public void testCantRegisterInvalidEmail() {\n enterValuesAndClick(\"\", \"invalidemail\", \"123456\", \"123456\");\n checkErrors(nameRequiredError, emailInvalidError, pwdNoError, pwdRepeatNoError);\n }", "protected void validateEmail(){\n\n //Creating Boolean Value And checking More Accurate Email Validator Added\n\n Boolean email = Pattern.matches(\"^[A-Za-z]+([.+-]?[a-z A-z0-9]+)?@[a-zA-z0-9]{1,6}\\\\.[a-zA-Z]{2,6},?([.][a-zA-z+,]{2,6})?$\",getEmail());\n System.out.println(emailResult(email));\n }", "@Test\n\t void testEmail() {\n\t\tString expected=\"[email protected]\";\n\t\tString actual=user.getEmail();\n\t\tassertEquals(expected, actual);\n\t}", "@Test\n //@Disabled\n public void testValidateEmail() {\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertFalse(RegExprMain.validateEmail(\"[email protected]\"));\n assertFalse(RegExprMain.validateEmail(\"luna@gmail\"));\n assertFalse(RegExprMain.validateEmail(\"[email protected]\"));\n assertFalse(RegExprMain.validateEmail(\"lubo.xaviluna@gmai_l.com\"));\n assertTrue(RegExprMain.validateEmail(\"luna#[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n \n \n\n }", "@Test\n\tpublic void inValidEmailIdIsTested() {\n\t\ttry {\n\t\t\tString emailId = \"divyagmail.com\";\n\t\t\tboolean isValidMail = EmailValidatorUtil.isValidEmailId(emailId, \"InValid EmailID Format\");\n\t\t\tassertFalse(isValidMail);\n\t\t} catch (Exception e) {\n\t\t\tassertEquals(\"InValid EmailID Format\", e.getMessage());\n\n\t\t}\n\t}", "@Test\n public void emailTest() {\n // TODO: test email\n }", "@Test\n public void emailTest() {\n // TODO: test email\n }", "@Test\n public void isEmailNotValidTest(){\n String email = \"ciao ij\";\n ReportSettingsPresenter.isEmailValid(email);\n\n Assert.assertEquals(false, matcher.matches());\n }", "@Test\n\t\tvoid givenEmail_CheckForValidationForEmail_RetrunTrue() {\n\t\t\tboolean result = ValidateUserDetails.validateEmails(\"[email protected]\");\n\t\t\tAssertions.assertTrue(result);\n\t\t}", "@Test\n\tpublic void validEmailIdIsTested() throws InValidEmailException {\n\t\tString emailId = \"[email protected]\";\n\t\tboolean isValidMail = EmailValidatorUtil.isValidEmailId(emailId, \"InValid EmailId Format\");\n\t\tassertTrue(isValidMail);\n\t}", "@Test\n public void testIsValidEmailAddress() {\n System.out.println(\"isValidEmailAddress\");\n String email = \"hg5\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidEmailAddress(email);\n assertEquals(expResult, result);\n }", "@Test\n\t\tvoid givenEmail_CheckForValidationForEmail_RetrunFalse() {\n\t\t\tboolean result =ValidateUserDetails.validateEmails(\"abc.xyz@bl\");\n\t\t\tAssertions.assertFalse(result);\n\t\t}", "boolean validateEmail(String email) {\n\t\treturn true;\n\n\t}", "private boolean isEmailValid(String email) {\n return true;\r\n }", "@Test\n public void testCantRegisterValidEmailEmptyPassword() {\n enterValuesAndClick(\"\", \"[email protected]\", \"\", \"\");\n checkErrors(nameRequiredError, emailNoError, pwdRequiredError, pwdRepeatRequiredError);\n }", "@Test\n public void testBasicValid() {\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"admin@mailserver1\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"user%[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n }", "@Test\r\n\tpublic void TC_08_verify_Existing_Email_Address() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\t\r\n\t\t// Step 2: Enter valid/mandatory registration details with valid email address already taken\r\n\t\t\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", firstName);\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", email);\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\t\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t\r\n\t\t// Step 4: Verify user should NOT be able to proceed further with registration as proper validation message regarding already registered\r\n\t\t//email address is displayed\r\n\t\terrMsg = Page_Registration.getMandatoryFieldErrMsg();\r\n\t\tAssert.assertEquals(errMsg, \"Username already taken.\");\r\n\r\n\t}", "@Test\n public void EmptyEmailTest() {\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n String actualResult = forgetPasswordPO\n .setEmail(\"\")\n .clickImagePanel()\n .getEmailAlertMessage();\n\n Assert.assertEquals(\"Email is required\", actualResult);\n }", "@Test\n public void loginWithWrongEmail(){\n String randomLog=random.getNewRandomName()+\"_auto\";\n String randomPassword=random.getNewRandomName();\n Assert.assertEquals(createUserChecking.creationChecking(randomLog,randomPassword),\"APPLICATION ERROR #1200\");\n log.info(\"login \"+randomLog+\" and email \"+randomPassword+\" were typed\");\n }", "private boolean isEmailValid(String email) {\n return true;\n }", "private boolean isEmailValid(String email) {\n return true;\n }", "private boolean isEmailValid(String email) {\n return true;\n }", "private boolean isEmailValid(String email) {\n return true;\n }", "@Test\n @DisplayName(\"Test: check if invalid 'Mail' validation messages are displayed.\")\n public void testInvalidEmailValidationMessages() throws InterruptedException, ClientException {\n FormContainerEditDialog dialog = formComponents.openEditDialog(containerPath);\n dialog.setMailActionFields(from,subject,new String[] {invalidMailto}, new String[] {invalidCC});\n Commons.saveConfigureDialog();\n String mailToErrorMessage = \"coral-multifield-item-content input[name='./mailto'] + coral-tooltip[variant='error']\";\n String ccErrorMessage = \"coral-multifield-item-content input[name='./mailto'] + coral-tooltip[variant='error']\";\n assertTrue($(mailToErrorMessage).isDisplayed());\n assertEquals($(mailToErrorMessage).getText(), \"Error: Invalid Email Address.\");\n assertTrue($(ccErrorMessage).isDisplayed());\n assertEquals($(ccErrorMessage).getText(), \"Error: Invalid Email Address.\");\n }", "@Test\n public void test_isNotValidEmail(){\n UserRegistration obj = new UserRegistration();\n boolean result = obj.checkEmailValidation(\"robert.com\");\n assertThat(result, is(false));\n }", "@Test\n public void emailVerifiedTest() {\n // TODO: test emailVerified\n }", "@Test(expected = AppException.class)\n public void testCreateEmailIncorrect() {\n User user = new User(\"login\", \"login(at)example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "@Test\n public void testCantRegisterInvalidEmailShortPassword() {\n enterValuesAndClick(\"name\", \"invalidemail\", \"124\", \"\");\n checkErrors(nameNoError, emailInvalidError, pwdTooShortError, pwdRepeatRequiredError);\n }", "void validate(String email);", "public void forgotPasswordValidate()\r\n\t{\n\t\tString expectedMessage = \"An email with a confirmation link has been sent your email address.\";\r\n\t\tString actualMessage=this.forgotPasswordSuccessMessage.getText();\r\n\t\tAssert.assertEquals(expectedMessage,actualMessage);\r\n\t}", "@Test\n public void testInvalidEmail() {\n email = \"[email protected]\";\n registerUser(username, password, password, email, email, forename, surname, null);\n assertNull(userService.getUser(username));\n }", "@Test\n public void Email_WhenValid_ShouldReturnTrue(){\n RegexTest valid = new RegexTest();\n boolean result = valid.Email(\"[email protected]\");\n Assert.assertEquals(true,result);\n }", "private void validateEmail() {\n myEmailValidator.processResult(\n myEmailValidator.apply(myBinding.editResetEmail.getText().toString().trim()),\n this::verifyAuthWithServer,\n result -> myBinding.editResetEmail.setError(\"Please enter a valid Email address.\"));\n }", "@Test\n public void testIsEmail() {\n System.out.println(\"isEmail\");\n String em = \"[email protected]\";\n Entradas instance = new Entradas();\n boolean expResult = false;\n boolean result = instance.isEmail(em);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "@Test\n\tpublic void testValidateUsernameEmail() {\n\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\n\t\tassertFalse(ValidationUtil.validate(\"test4\", Validate.username_valid));\n\t\tassertFalse(ValidationUtil.validate(\"@com\", Validate.username_valid));\n\t\tassertFalse(ValidationUtil.validate(\"com@\", Validate.username_valid));\n\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void ValidateAdduserEmailidField() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the Email address Field validations and its appropriate error message\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDataspl\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreation()\n\t\t.validateEmailidField(userProfile);\t\t\t\t \t \t\t\t\t\t\t\n\t}", "private void emailValidation( String email ) throws Exception {\r\n if ( email != null && !email.matches( \"([^.@]+)(\\\\.[^.@]+)*@([^.@]+\\\\.)+([^.@]+)\" ) ) {\r\n throw new Exception( \"Merci de saisir une adresse courriel valide.\" );\r\n }\r\n }", "private void validationEmail(String email) throws Exception {\r\n\t\tif (email != null && email.trim().length() != 0) {\r\n\t\t\tif (!email.matches(\"([^.@]+)(\\\\.[^.@]+)*@([^.@]+\\\\.)+([^.@]+)\")) {\r\n\t\t\t\tthrow new Exception(\"Merci de saisir une adresse mail valide.\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new Exception(\"Merci de saisir une adresse mail.\");\r\n\t\t}\r\n\t}", "@Test\n public void emailDoesNotExistTest() {\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n String actualResult = forgetPasswordPO\n .setEmail(\"[email protected]\")\n .clickSubmitLoginBTN()\n .getEmailAlertMessage();\n\n Assert.assertEquals(\"The user does not exist by this email: [email protected]\", actualResult);\n }", "static void emailValidation(String email) throws Exception {\n Pattern pattern_email = Pattern.compile(\"^[a-z0-9._-]+@[a-z0-9._-]{2,}\\\\.[a-z]{2,4}$\");\n if (email != null) {\n if (!pattern_email.matcher(email).find()) {\n throw new Exception(\"The value is not a valid email address\");\n }\n } else {\n throw new Exception(\"The email is required\");\n }\n }", "@Test\n public void test_IsEmailValid(){\n UserRegistration obj = new UserRegistration();\n boolean result = obj.checkEmailValidation(\"[email protected]\");\n assertThat(result, is(true));\n }", "@Override\n\tpublic boolean verifyEmailAddress(EmailAddress address)\n\t{\n\t\treturn false;\n\t}", "@Test\n public void testGetEmail() {\n System.out.println(\"getEmail Test (Passing value)\");\n String expResult = \"[email protected]\";\n String result = user.getEmail();\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertEquals(expResult, result);\n }", "private void validationEmail(String email) throws FormValidationException {\n\t\tif (email != null) {\n\t\t\tif (!email.matches(\"([^.@]+)(\\\\.[^.@]+)*@([^.@]+\\\\.)+([^.@]+)\")) {\n\t\t\t\tSystem.out.println(\"Merci de saisir une adresse mail valide.\");\n\n\t\t\t\tthrow new FormValidationException(\n\t\t\t\t\t\t\"Merci de saisir une adresse mail valide.\");\n\t\t\t\t// } else if ( groupDao.trouver( email ) != null ) {\n\t\t\t\t// System.out.println(\"Cette adresse email est déjà utilisée, merci d'en choisir une autre.\");\n\t\t\t\t// throw new FormValidationException(\n\t\t\t\t// \"Cette adresse email est déjà utilisée, merci d'en choisir une autre.\"\n\t\t\t\t// );\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic boolean emailisValid(String email) \n\t{\n\t\treturn false;\n\t}", "@When(\"A user enters a valid email address$\")\n public void check_valid_email(DataTable email) throws Throwable {\n List<List<String>> email_addresses = email.raw();\n for (List<String> element : email_addresses) {\n for (String ea : element) {\n home.submit_email(ea);\n }\n }\n }", "public boolean validateEmail() {\n\t\tString emailString = emailValidity.getText();\n\t\tString errorMsg = \"Email in use.\";\n\t\tboolean result = emailString.contains(errorMsg);\n\t\tif (result) {\n\t\t\tstoreVerificationResults(true, \"Email in use\");\n\t\t\tresult = true;\n\t\t} else {\n\t\t\tstoreVerificationResults(false, \"User able to reuse email id\");\n\t\t}\n\t\treturn result;\n\t}", "boolean isEmailRequired();", "@Test\n\tpublic void verifySuccessMessageUponSubmittingValidEmailInForgetPasswordPage() throws Exception{\n\t\tLoginOtomotoProfiLMSPage loginPage = new LoginOtomotoProfiLMSPage(driver);\n\t\texplicitWaitFortheElementTobeVisible(driver,loginPage.languageDropdown);\n\t\tactionClick(driver,loginPage.languageDropdown);\n\t\twaitTill(1000);\n\t\tactionClick(driver,loginPage.englishOptioninLangDropdown);\n\t\tFogrotPasswordOTMPLMSPage forgotPasswordPageObj = new FogrotPasswordOTMPLMSPage(driver);\n\t\texplicitWaitFortheElementTobeVisible(driver,loginPage.forgotPasswordLink);\n\t\tjsClick(driver,loginPage.forgotPasswordLink);\n\t\texplicitWaitFortheElementTobeVisible(driver,forgotPasswordPageObj.forgotPasswordPageHeading);\n\t\tsendKeys(forgotPasswordPageObj.forgotPasswordEmailInputField, testUserPL);\n\t\tjsClick(driver,forgotPasswordPageObj.forgotPasswordRecoveryButton);\n\t\twaitTill(2000);\n\t Assert.assertEquals(getText(forgotPasswordPageObj.forgotPasswordSuccessMessage), \"We've sent you an email with a link to reset your password. You may close this tab and check your email.\", \"Success message is not displaying upon submitting the forget password page with valid ceredentials\");\n\t}", "@Test\n public void testEqualsInternal_Email() throws Bid4WinException\n {\n Email email1 = new Email(\"[email protected]\");\n Email email2 = new Email(\"[email protected]\");\n\n assertFalse(email1.equalsInternal(email2));\n assertFalse(email2.equalsInternal(email1));\n assertTrue(email1.equalsInternal(email1));\n }", "@Test\n @DisplayName(\"Test: check if empty 'Mail' validation messages are displayed.\")\n public void testEmptyEmailValidationMessages() throws InterruptedException, ClientException {\n FormContainerEditDialog dialog = formComponents.openEditDialog(containerPath);\n dialog.setMailActionFields(from,subject,new String[] {emptyMailto}, new String[] {emptyCC});\n Commons.saveConfigureDialog();\n String mailToErrorMessage = \"coral-multifield-item-content input[name='./mailto'] + coral-tooltip[variant='error']\";\n String ccErrorMessage = \"coral-multifield-item-content input[name='./mailto'] + coral-tooltip[variant='error']\";\n assertTrue($(mailToErrorMessage).isDisplayed());\n assertEquals($(mailToErrorMessage).getText(), \"Error: Please fill out this field.\");\n assertTrue($(ccErrorMessage).isDisplayed());\n assertEquals($(ccErrorMessage).getText(), \"Error: Please fill out this field.\");\n }", "public boolean isEmailCorrect() {\n return (CustomerModel.emailTest(emailTextField.getText()));\n }", "@Test(expected = ValidationException.class)\n public void phoneAndEmailMissing() throws Exception {\n attendee.setPhoneNumber(null);\n attendee.setEmail(null);\n validator.validate(attendee);\n }", "@Override\n public void validaEmailInteractor(CharSequence charSequence) {\n verificaEmail(charToString(charSequence));\n }", "@Test\n\tpublic void emailNotExistsAuth() {\n\t\tassertFalse(service.emailExists(\"[email protected]\"));\n\t}", "@Test\n\tvoid repeatedEmailTest() throws Exception {\n\t\tUser userObj = new User();\n\t\tuserObj.setName(\"Siva Murugan\");\n\t\tuserObj.setEmail(\"[email protected]\");\n\t\tuserObj.setGender(\"M\");\n\t\tuserObj.setMobileNumber(9878909878L);\n\t\tuserObj.setRole(\"C\");\n\t\tuserObj.setUsername(\"sivanew\");\n\t\tuserObj.setPassword(\"Siva123@\");\n\t\tString userJson = new ObjectMapper().writeValueAsString(userObj);\n\t\twhen(userService.registerUser(any(User.class))).thenThrow(new EmailAlreadyExistException(\"E_ER01\"));\n\t\tmockMvc.perform(post(\"/vegapp/v1/users/register\").contentType(MediaType.APPLICATION_JSON).content(userJson))\n\t\t\t\t.andExpect(status().isConflict()).andExpect(jsonPath(\"$.errorMessage\").value(\"E_ER01\"));\n\t}", "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(\"[email protected]\");\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(\"[email protected]\")\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(\"[email protected]\")\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 }", "private boolean isEmailValid(String email) {\n return email.equals(\"[email protected]\");\n }", "@Test\n public void testSetEmailInvalid() {\n System.out.println(\"setEmail Test (Injection value)\");\n String username = \"<script>alert(\\\"This is an attack!\\\");</script>\";\n user.setEmail(username);\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertFalse(violations.isEmpty());\n }", "@Then(\"^i should have an error message that An account using this email address has already been registered\\\\. Please enter a valid password or request a new one\\\\.$\")\n public void i_should_have_an_error_message_that_An_account_using_this_email_address_has_already_been_registered_Please_enter_a_valid_password_or_request_a_new_one() throws Throwable {\n AlreadyUserPage alreadyuserpage = PageFactory.initElements(driver, AlreadyUserPage.class);\n alreadyuserpage.verify_email_already_registered();\n\n }", "private boolean checkemail(String s) {\n\t\tboolean flag = false;\r\n\t\tString[] m = s.split(\"@\");\r\n\t\tif (m.length < 2) {\r\n\t\t\tflag = true;\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private void validateEmail() {\n mEmailValidator.processResult(\n mEmailValidator.apply(binding.registerEmail.getText().toString().trim()),\n this::validatePasswordsMatch,\n result -> binding.registerEmail.setError(\"Please enter a valid Email address.\"));\n }", "@Test\n public void testSetEmailOverflow() {\n System.out.println(\"setEmail Test (Overflow value)\");\n String username =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\"\n + \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\"\n + \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\"\n + \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\"\n + \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\"\n + \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n user.setEmail(username);\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertFalse(violations.isEmpty());\n }", "@Test\n public void loginWithEmptyEmail(){\n String rand=random.getNewRandomName()+\"_auto\";\n Assert.assertEquals(createUserChecking.creationChecking(rand,\"\"),\"APPLICATION ERROR #1200\");\n log.info(\"Empty email and login \"+ rand+\" were typed\");\n }", "@When(\"I enter a valid email {string}\")\n public void i_enter_a_valid_email(String em) {\n BasePage.driverUtils.waitForPresenceOFElementLocatedBy(By.id(\"FriendEmail\"));\n BasePage.productEmailAfirendPage.getFriendEmailTextBox().sendKeys(em);\n }", "@Test\r\n\tpublic void TC_05_verify_email_Mandatory_Field() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\t\r\n\t\t// Step 2: Enter valid/mandatory registration details except email address\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", firstName);\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", \"\");\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t// Step 4: Verify user should NOT be able to proceed further with registration as proper validation message regarding email address\r\n\t\t// is displayed\r\n\t\terrMsg = Page_Registration.getMandatoryFieldErrMsg();\r\n\t\tAssert.assertEquals(errMsg, \"Please enter a value for Email\");\r\n\r\n\t}", "@Test\n public void testCheckEmail() {\n System.out.println(\"checkEmail\");\n String email = \"\";\n DaftarPengguna instance = new DaftarPengguna();\n boolean expResult = false;\n boolean result = instance.checkEmail(email);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void testFirstEmailAddress() {\n rootBlog.setProperty(SimpleBlog.EMAIL_KEY, \"\");\n assertEquals(\"\", rootBlog.getFirstEmailAddress());\n rootBlog.setProperty(SimpleBlog.EMAIL_KEY, \"[email protected]\");\n assertEquals(\"[email protected]\", rootBlog.getFirstEmailAddress());\n rootBlog.setProperty(SimpleBlog.EMAIL_KEY, \"[email protected],[email protected]\");\n assertEquals(\"[email protected]\", rootBlog.getFirstEmailAddress());\n }", "public void testSingleEmailAddress() {\n rootBlog.setProperty(SimpleBlog.EMAIL_KEY, \"[email protected]\");\n assertEquals(\"[email protected]\", rootBlog.getEmail());\n assertEquals(1, rootBlog.getEmailAddresses().size());\n assertEquals(\"[email protected]\", rootBlog.getEmailAddresses().iterator().next());\n }", "private boolean isValidEmail(final String theEmail) {\n return theEmail.contains(\"@\");\n }", "private void checkValidEmail(String email) throws ValidationException {\n String emailRegex = \"^[\\\\w-_\\\\.+]*[\\\\w-_\\\\.]\\\\@([\\\\w]+\\\\.)+[\\\\w]+[\\\\w]$\";\n if (!email.matches(emailRegex)) {\n throw new ValidationException(\"Incorrect email format\");\n }\n }", "public void emailFieldTest() {\r\n\t\tif(Step.Wait.forElementVisible(QuoteForm_ComponentObject.emailFieldLocator, \"Email input field\", 5)) {\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.emailFieldLocator, \"Email input field\", \"[email protected]\");\r\n\t\t}\r\n\t}", "public void validateMailAlerts() {\n System.out.println(\"Validating Mail Alerts\");\n boolean mailPasstoCheck = false, mailPassccCheck = false, mailFailtoCheck = false, mailFailccCheck = false;\n\n if (!mailpassto.getText().isEmpty()) {\n\n String[] emailAdd = mailpassto.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailPasstoCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n\n } else {\n execptionData.append((++exceptionCount) + \". To Email address for passed test cases should not be empty.\\n\");\n\n }\n if (!mailpasscc.getText().isEmpty()) {\n String[] emailAdd = mailpasscc.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailPassccCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n\n } else {\n execptionData.append((++exceptionCount) + \". CC Email address for passed test cases should not be empty.\\n\");\n\n }\n if (!mailfailto.getText().isEmpty()) {\n String[] emailAdd = mailfailto.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailFailtoCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n\n } else {\n execptionData.append((++exceptionCount) + \". To Email address for failed test cases should not be empty.\\n\");\n\n }\n if (!mailfailcc.getText().isEmpty()) {\n String[] emailAdd = mailfailcc.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailFailccCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n } else {\n execptionData.append((++exceptionCount) + \".CC Email address for failed test cases should not be empty.\\n\");\n\n }\n\n if (mailPasstoCheck == true && mailPassccCheck == true && mailFailccCheck == true && mailFailtoCheck == true) {\n /*try {\n Properties connectionProperties = new Properties();\n String socketFactory_class = \"javax.net.ssl.SSLSocketFactory\"; //SSL Factory Class\n String mail_smtp_auth = \"true\";\n connectionProperties.put(\"mail.smtp.port\", port);\n connectionProperties.put(\"mail.smtp.socketFactory.port\", socketProperty);\n connectionProperties.put(\"mail.smtp.host\", hostSmtp.getText());\n connectionProperties.put(\"mail.smtp.socketFactory.class\", socketFactory_class);\n connectionProperties.put(\"mail.smtp.auth\", mail_smtp_auth);\n connectionProperties.put(\"mail.smtp.socketFactory.fallback\", \"false\");\n connectionProperties.put(\"mail.smtp.starttls.enable\", \"true\");\n Mail mail = new Mail(\"\");\n mail.createSession(fromMail.getText(), password.getText(), connectionProperties);\n mail.sendEmail(fromMail.getText(), mailpassto.getText(), mailpasscc.getText(), \"Test Mail from FACT\", \"Hi, This is the Test Mail for the FACT Tool\", \"\");\n mail.sendEmail(fromMail.getText(), mailfailto.getText(), mailfailcc.getText(), \"Test Mail from FACT\", \"Hi, This is the Test Mail for the FACT Tool\", \"\");*/\n mailAlertsCheck = true;\n /* } catch (IOException ex) {\n Logger.getLogger(ConfigFile.class.getName()).log(Level.SEVERE, null, ex);\n mailAlertsCheck = false;\n new ExceptionUI(ex);\n } catch (MessagingException ex) {\n Logger.getLogger(ConfigFile.class.getName()).log(Level.SEVERE, null, ex);\n mailAlertsCheck = false;\n new ExceptionUI(ex);\n }*/\n } else {\n mailAlertsCheck = false;\n mailPasstoCheck = false;\n mailPassccCheck = false;\n mailFailtoCheck = false;\n mailFailccCheck = false;\n }\n\n }", "@Test\r\n\tvoid testInicializacao() {\r\n\t\tassertNotNull(email1);\r\n\t\tassertNotNull(email3);\r\n\t\tassertNotNull(email4);\r\n\t\tassertNull(email2);\r\n\t}", "private boolean isEmailValid(String email){\n return email.contains(\"@\");\n }", "@Test\n\tpublic void emailExistsAuth() {\n\t\tassertTrue(service.emailExists(\"[email protected]\"));\n\t}", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }" ]
[ "0.7993293", "0.7373232", "0.7265124", "0.7177329", "0.7095871", "0.7087211", "0.7061096", "0.69921154", "0.69921154", "0.6964467", "0.6951355", "0.6907052", "0.68703043", "0.68695354", "0.68412244", "0.6836879", "0.6827698", "0.6767793", "0.67275137", "0.6715506", "0.6700443", "0.66862863", "0.66862863", "0.66862863", "0.66862863", "0.6660969", "0.66542107", "0.6642851", "0.661379", "0.6606707", "0.6594019", "0.6591575", "0.65857077", "0.65836775", "0.657382", "0.6567657", "0.65575635", "0.65548366", "0.6540985", "0.65202576", "0.651368", "0.65109444", "0.6507841", "0.6507076", "0.65054184", "0.65007305", "0.6499775", "0.64858985", "0.6482588", "0.6478345", "0.6433529", "0.6427858", "0.64273125", "0.6422457", "0.64222974", "0.639548", "0.63943446", "0.63668364", "0.63625336", "0.63624984", "0.6358665", "0.63478285", "0.6332735", "0.6330004", "0.6330004", "0.6330004", "0.6330004", "0.6326524", "0.63132936", "0.6311523", "0.62954295", "0.6276545", "0.6270639", "0.62693495", "0.6244584", "0.62350005", "0.62255776", "0.621655", "0.6205975", "0.6205401", "0.61996317", "0.6179016", "0.6172175", "0.6172175", "0.6172175", "0.6172175", "0.6172175", "0.6172175", "0.6172175", "0.6172175", "0.6172175", "0.6172175", "0.6172175", "0.6172175", "0.6172175", "0.6172175", "0.6172175", "0.6172175", "0.6172175", "0.6172175" ]
0.79405934
1
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() { n7 = new javax.swing.JButton(); n4 = new javax.swing.JButton(); n1 = new javax.swing.JButton(); jButton4 = new javax.swing.JButton(); n8 = new javax.swing.JButton(); n5 = new javax.swing.JButton(); n2 = new javax.swing.JButton(); n0 = new javax.swing.JButton(); n9 = new javax.swing.JButton(); n6 = new javax.swing.JButton(); n3 = new javax.swing.JButton(); igual = new javax.swing.JButton(); suma = new javax.swing.JButton(); resta = new javax.swing.JButton(); miltiplicacion = new javax.swing.JButton(); divicion = new javax.swing.JButton(); jTextField1 = new javax.swing.JTextField(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); n7.setText("7"); n7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { n7ActionPerformed(evt); } }); n4.setText("4"); n4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { n4ActionPerformed(evt); } }); n1.setText("1"); n1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { n1ActionPerformed(evt); } }); jButton4.setText("C"); jButton4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton4ActionPerformed(evt); } }); n8.setText("8"); n8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { n8ActionPerformed(evt); } }); n5.setText("5"); n5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { n5ActionPerformed(evt); } }); n2.setText("2"); n2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { n2ActionPerformed(evt); } }); n0.setText("0"); n0.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { n0ActionPerformed(evt); } }); n9.setText("9"); n9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { n9ActionPerformed(evt); } }); n6.setText("6"); n6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { n6ActionPerformed(evt); } }); n3.setText("3"); n3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { n3ActionPerformed(evt); } }); igual.setText("="); igual.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { igualActionPerformed(evt); } }); suma.setText("+"); suma.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sumaActionPerformed(evt); } }); resta.setText("-"); resta.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { restaActionPerformed(evt); } }); miltiplicacion.setText("*"); miltiplicacion.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { miltiplicacionActionPerformed(evt); } }); divicion.setText("/"); divicion.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { divicionActionPerformed(evt); } }); jTextField1.setEditable(false); 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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(n4) .addGap(18, 18, 18) .addComponent(n5) .addGap(18, 18, 18) .addComponent(n6) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(resta, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(n1) .addGap(18, 18, 18) .addComponent(n2) .addGap(18, 18, 18) .addComponent(n3)) .addGroup(layout.createSequentialGroup() .addGap(163, 163, 163) .addComponent(miltiplicacion, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jButton4) .addGap(18, 18, 18) .addComponent(n0) .addGap(18, 18, 18) .addComponent(igual) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(divicion, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(n7) .addGap(18, 18, 18) .addComponent(n8) .addGap(18, 18, 18) .addComponent(n9) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(suma))) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap(21, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(n7) .addComponent(n8) .addComponent(n9) .addComponent(suma)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(n4) .addComponent(n5) .addComponent(n6) .addComponent(resta)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(n1) .addComponent(n2) .addComponent(n3) .addComponent(miltiplicacion)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton4) .addComponent(n0) .addComponent(igual) .addComponent(divicion)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public 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 CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7322098", "0.7292275", "0.7292275", "0.7292275", "0.72872275", "0.72507876", "0.7214814", "0.7209056", "0.7197325", "0.71918863", "0.71856284", "0.7160448", "0.7148918", "0.7094831", "0.70820963", "0.70585436", "0.6988433", "0.6978755", "0.69569016", "0.6955245", "0.6946354", "0.6943946", "0.69372547", "0.69337106", "0.692833", "0.6926309", "0.6925797", "0.6913563", "0.69128335", "0.68947935", "0.68944126", "0.6892644", "0.6892526", "0.6890029", "0.68840426", "0.6883357", "0.68825054", "0.68799883", "0.6877452", "0.68761104", "0.6872709", "0.6860889", "0.685809", "0.68573505", "0.6857084", "0.6855715", "0.6854889", "0.6853878", "0.6853878", "0.68449485", "0.6837977", "0.6837628", "0.68301326", "0.68300813", "0.68270093", "0.68252003", "0.6824086", "0.68179536", "0.6817771", "0.6812606", "0.68101424", "0.6810129", "0.68094033", "0.68090034", "0.6803104", "0.67956436", "0.67945904", "0.67945004", "0.67922586", "0.6791291", "0.6790622", "0.6788877", "0.67824686", "0.6767054", "0.6766772", "0.67666554", "0.6757428", "0.6757375", "0.67544115", "0.6752288", "0.6742188", "0.6740892", "0.673854", "0.6737719", "0.67355186", "0.67291087", "0.67281425", "0.67225796", "0.6716416", "0.6716406", "0.67161214", "0.6709585", "0.67085403", "0.6704994", "0.67029893", "0.6702461", "0.6700217", "0.6700078", "0.6695004", "0.66921735", "0.6690468" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "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
Encode the api key in the following format: Base64(jsonStr) + "." + Signature jsonStr is the json string of the API Key.
private String encode(APIKey apiKey) { if (!signer.sign(apiKey)) { return null; } String json = apiKey.toJson(); String base64 = new String(Base64.getEncoder().encode(json.getBytes())); return String.format("%s.%s", base64, apiKey.getApiKeySignature()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String encodeKey() {\n byte[] keyByte = secretKey.getEncoded();\n return Base64.getEncoder().encodeToString(keyByte);\n }", "@SuppressWarnings(\"unused\")\n private static String getKeyString(Key key)\n {\n return Base64.encode(key.getEncoded());\n }", "public String encode() {\n return encodeToBase64(encKey.getEncoded()) + \":\" + encodeToBase64(macKey.getEncoded());\n }", "public String generateApiKey() {\r\n\t\t\r\n\t\tString key = \"\";\r\n\t\t\r\n\t\tfor (int i = 0; i < API_LENGTH; i++) {\r\n\t\t\tchar letter = (char) (Math.random() * (90 - 65 + 1) + 65);\r\n\t\t\tkey += letter;\r\n\t\t}\r\n\t\t\r\n\t\treturn key;\r\n\t}", "public static String base64Encode(final byte[] key) {\n return Base64.encode(key);\n }", "public static String getEncodedKey(final String key)\n {\n String encodedKey = key;\n \n try {\n final int ontEnd = key.indexOf(ONT_SEPARATOR);\n if (ontEnd != -1) { \n final String prefix = key.substring(0, ontEnd + 1);\n final String name = key.substring(ontEnd + 1, key.length());\n final String encodedName = java.net.URLEncoder.encode(name, \"UTF-8\");\n if (name != encodedName) {\n encodedKey = prefix + encodedName;\n if (DEBUG.RDF) Log.debug(\"encoded \" + Util.tags(key) + \" to \" + Util.tags(encodedKey));\n }\n } else {\n encodedKey = java.net.URLEncoder.encode(key, \"UTF-8\");\n if (DEBUG.RDF && encodedKey != key) Log.debug(\"encoded \" + Util.tags(key) + \" to \" + Util.tags(encodedKey));\n }\n }\n catch (java.io.UnsupportedEncodingException e) {\n Log.warn(\"encoding key \" + Util.tags(key), e); \n }\n \n return encodedKey;\n }", "public static String getApiKey() {\n String sep = \"-\";\n String a = BuildConfig.GUARD_A;\n String b = BuildConfig.GUARD_B;\n String c = BuildConfig.GUARD_C;\n String d = BuildConfig.GUARD_D;\n String e = BuildConfig.GUARD_E;\n return b+sep+a+sep+d+sep+c+sep+e;\n }", "public String toUrlSafe() {\n// try {\n //todo: key encoder\n return Base64.getEncoder().encodeToString(new Gson().toJson(this).getBytes());\n// return URLEncoder.encode(\"\", UTF_8.name());\n// return URLEncoder.encode(TextFormat.printToString(toPb()), UTF_8.name());\n// } catch (UnsupportedEncodingException e) {\n// throw new IllegalStateException(\"Unexpected encoding exception\", e);\n// }\n }", "public static String encrypt(String input) {\n\t\tBase64.Encoder encoder = Base64.getMimeEncoder();\n String message = input;\n String key = encoder.encodeToString(message.getBytes());\n return key;\n\t}", "private String signature() {\n\t\t++this.nonce;\n\t\tString message = new String(this.nonce + this.username + this.apiKey);\n\t\tMac hmac = null;\n\n\t\ttry {\n\t\t\thmac = Mac.getInstance(\"HmacSHA256\");\n\t\t\tSecretKeySpec secret_key = new SecretKeySpec(\n\t\t\t\t\t((String) this.apiSecret).getBytes(\"UTF-8\"), \"HmacSHA256\");\n\t\t\thmac.init(secret_key);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidKeyException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn String.format(\"%X\",\n\t\t\t\tnew BigInteger(1, hmac.doFinal(message.getBytes())));\n\t}", "@Override\n protected String buildPaySign(Map<String, String> api_response_params, String api_key) throws PayException {\n Map<String,String > params = new LinkedHashMap<>();\n params.put(amount ,api_response_params.get(amount));\n params.put(order_no ,api_response_params.get(order_no));\n params.put(plat_num ,api_response_params.get(plat_num));\n params.put(app_id ,api_response_params.get(app_id));\n params.put(sign_type ,api_response_params.get(sign_type));\n params.put(pay_type ,api_response_params.get(pay_type));\n params.put(status ,api_response_params.get(status));\n params.put(back_status ,api_response_params.get(back_status));\n params.put(complete_time ,api_response_params.get(complete_time));\n String signMd5 = JSON.toJSONString(params);\n\n log.debug(\"[酷狗支付]-[响应支付]-2.生成加密URL签名完成:{}\", JSON.toJSONString(signMd5) );\n return signMd5;\n }", "private String encode(String str) {\n verifyNotNull(str, ERROR_MESSAGE);\n byte[] bytes = str.getBytes();\n return Base64.getEncoder()\n .withoutPadding()\n .encodeToString(bytes);\n }", "private String serializeKey(String topic, K key) {\n if (key instanceof String) {\n return (String) key;\n }\n if (keySchema instanceof PulsarKafkaSchema) {\n ((PulsarKafkaSchema<K>) keySchema).setTopic(topic);\n }\n byte[] keyBytes = keySchema.encode(key);\n return Base64.getEncoder().encodeToString(keyBytes);\n }", "private static String encodeBase64(String stringToEncode){\r\n\t\treturn Base64.getEncoder().encodeToString(stringToEncode.getBytes());\t\r\n\t}", "private static void showKeysInBase64(KeyPair keyPair) {\r\n\r\n\t\tfinal byte[] encodedPrivateKey = keyPair.getPrivate().getEncoded();\r\n\t\tfinal byte[] encodedPublicKey = keyPair.getPublic().getEncoded();\r\n\t\tSystem.out.printf(\"encoded private key length[%3d], encoded public key length[%3d]%n\", encodedPrivateKey.length,\r\n\t\t\t\tencodedPublicKey.length);\r\n\t\tfinal String base64Priv = Base64.getUrlEncoder().encodeToString(encodedPrivateKey);\r\n\t\tfinal String base64Pub = Base64.getUrlEncoder().encodeToString(encodedPublicKey);\r\n\t\tSystem.out.printf(\"private key changed to Base64 (length[%3d]):%n [%s]%n\", base64Priv.length(), base64Priv);\r\n\t\tSystem.out.printf(\"public key changed to Base64 (length[%3d]):%n [%s]%n\", base64Pub.length(), base64Pub);\r\n\t}", "public String base64Encode(String str) throws StoreFactoryException;", "public interface JsonKey {\n\n String CLASS = \"class\";\n String DATA = \"data\";\n String EKS = \"eks\";\n String ID = \"id\";\n String LEVEL = \"level\";\n String MESSAGE = \"message\";\n String METHOD = \"method\";\n String REQUEST_MESSAGE_ID = \"msgId\";\n String STACKTRACE = \"stacktrace\";\n String VER = \"ver\";\n String OK = \"ok\";\n String LOG_LEVEL = \"logLevel\";\n String ERROR = \"error\";\n String EMPTY_STRING = \"\";\n String RESPONSE = \"response\";\n String ADDRESS = \"address\";\n String KEY = \"key\";\n String ERROR_MSG = \"error_msg\";\n String ATTRIBUTE = \"attribute\";\n String ERRORS = \"errors\";\n String SUCCESS = \"success\";\n\n String CERTIFICATE = \"certificate\";\n String RECIPIENT_NAME = \"recipientName\";\n String COURSE_NAME = \"courseName\";\n String NAME = \"name\";\n String HTML_TEMPLATE = \"htmlTemplate\";\n String TAG = \"tag\";\n String ISSUER = \"issuer\";\n String URL = \"url\";\n String SIGNATORY_LIST = \"signatoryList\";\n String DESIGNATION = \"designation\";\n String SIGNATORY_IMAGE = \"image\";\n\n String DOMAIN_URL = \"sunbird_cert_domain_url\";\n String ASSESSED_DOMAIN = \"ASSESSED_DOMAIN\";\n String BADGE_URL = \"BADGE_URL\";\n String ISSUER_URL = \"ISSUER_URL\";\n String TEMPLATE_URL = \"TEMPLATE_URL\";\n String CONTEXT = \"CONTEXT\";\n String VERIFICATION_TYPE = \"VERIFICATION_TYPE\";\n String SIGNATORY_EXTENSION = \"SIGNATORY_EXTENSION\";\n String RECIPIENT_EMAIl = \"recipientEmail\";\n String RECIPIENT_PHONE = \"recipientPhone\";\n String RECIPIENT_ID = \"recipientId\";\n String VALID_FROM = \"validFrom\";\n String EXPIRY = \"expiry\";\n String OLD_ID = \"oldId\";\n String PUBLIC_KEY = \"publicKey\";\n String DESCRIPTION = \"description\";\n String LOGO = \"logo\";\n String ISSUE_DATE = \"issueDate\";\n String USER = \"user\";\n String CERTIFICATE_NAME = \"name\";\n\n String CONTAINER_NAME = \"CONTAINER_NAME\";\n String CLOUD_STORAGE_TYPE = \"CLOUD_STORAGE_TYPE\";\n String CLOUD_UPLOAD_RETRY_COUNT = \"CLOUD_UPLOAD_RETRY_COUNT\";\n String AZURE_STORAGE_SECRET = \"AZURE_STORAGE_SECRET\";\n String AZURE_STORAGE_KEY = \"AZURE_STORAGE_KEY\";\n String ACCESS_CODE_LENGTH = \"ACCESS_CODE_LENGTH\";\n String ORG_ID = \"orgId\";\n String KEYS = \"keys\";\n String ENC_SERVICE_URL = \"sunbird_cert_enc_service_url\";\n String SIGN_HEALTH_CHECK_URL = \"SIGN_HEALTH_CHECK_URL\";\n String SIGN_URL = \"SIGN_URL\";\n String SIGN_VERIFY_URL = \"SIGN_VERIFY_URL\";\n String SIGN_CREATOR = \"SIGN_CREATOR\";\n String SIGN = \"sign\";\n String VERIFY = \"verify\";\n String KEY_ID = \"keyId\";\n String JSON_URL = \"jsonUrl\";\n String PDF_URL = \"pdfUrl\";\n String UNIQUE_ID = \"id\";\n String GENERATE_CERT = \"generateCert\";\n String PUBLIC_KEY_URL = \"PUBLIC_KEY_URL\";\n String GET_SIGN_URL = \"getSignUrl\";\n String SIGNED_URL = \"signedUrl\";\n\n String ACCESS_CODE = \"accessCode\";\n String JSON_DATA = \"jsonData\";\n String SLUG = \"sunbird_cert_slug\";\n}", "public String getAPIkey() {\n\t\treturn key1;\r\n\t}", "private String generateSecretKey(){\n SecureRandom random = new SecureRandom();\n byte[] bytes = new byte[20];\n\n random.nextBytes(bytes);\n Base32 base32 = new Base32();\n return base32.encodeToString(bytes);\n }", "byte[] getEncoded() {\n return hmacKey.getEncoded();\n }", "private String generateSignatureBaseString(String httpMethod, String url, Map<String, String> requestParams, String nonce, String timestamp) {\n Map<String, String> params = new HashMap<>();\n requestParams.entrySet().forEach(entry -> {\n put(params, entry.getKey(), entry.getValue());\n });\n put(params, oauth_consumer_key, consumerKey);\n put(params, oauth_nonce, nonce);\n put(params, oauth_signature_method, signatureMethod);\n put(params, oauth_timestamp, timestamp);\n put(params, oauth_token, token);\n put(params, oauth_version, version);\n Map<String, String> sortedParams = params.entrySet().stream().sorted(Map.Entry.comparingByKey())\n .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (oldValue, newValue) -> oldValue, LinkedHashMap::new));\n StringBuilder base = new StringBuilder();\n sortedParams.entrySet().forEach(entry -> {\n base.append(entry.getKey()).append(\"=\").append(entry.getValue()).append(\"&\");\n });\n base.deleteCharAt(base.length() - 1);\n String baseString = httpMethod.toUpperCase() + \"&\" + encode(url) + \"&\" + encode(base.toString());\n return baseString;\n }", "public String encodePassword(String normalPassword, String key);", "public String getAPIKey()\r\n {\r\n return APIKey;\r\n }", "private String getKey(final PushToken token) throws UnsupportedEncodingException {\n final String sKey = new StringBuilder().append(\"/\").append(token.getTenantKey()).append(\"/\")\n .append(token.getUserId()).toString();\n\n return sKey;\n }", "public static String base64Encode(String str) {\n sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();\n byte[] bytes = str.getBytes();\n return encoder.encode(bytes);\n\n }", "private static String extractBase64EncodedKey(String pemKey) throws GeneralSecurityException\n {\n Matcher matcher = KEY_PATTERN.matcher(pemKey);\n if (matcher.find())\n {\n return matcher.group(1).replaceAll(\"\\\\s\", \"\");\n }\n else\n {\n throw new GeneralSecurityException(\"Invalid private key format\");\n }\n }", "String convertToJwt (SsoUserDetails uerDetails);", "java.lang.String getPublicEciesKey();", "public JsonWriter key(Binary key) {\n startKey();\n\n if (key == null) {\n throw new IllegalArgumentException(\"Expected map key, but got null.\");\n }\n\n writer.write('\\\"');\n writer.write(key.toBase64());\n writer.write('\\\"');\n writer.write(':');\n return this;\n }", "private static String generateSignature(String data, String key) throws SignatureException {\n String result;\n try {\n // get an hmac_sha1 key from the raw key bytes\n SecretKeySpec signingKey = new SecretKeySpec(key.getBytes(StandardCharsets.UTF_8), \"HmacSHA1\");\n // get an hmac_sha1 Mac instance and initialize with the signing key\n Mac mac = Mac.getInstance(\"HmacSHA1\");\n mac.init(signingKey);\n // compute the hmac on input data bytes\n byte[] rawHmac = mac.doFinal(data.getBytes(StandardCharsets.UTF_8));\n result = Base64.encodeBase64String(rawHmac);\n }\n catch (Exception e) {\n throw new SignatureException(\"Failed to generate HMAC : \" + e.getMessage());\n }\n return result;\n }", "private static String buildBasicAuthHeader(String apiKey, String secretKey) {\n return \"Basic \"\n + Base64.encodeToString((apiKey + \":\" + secretKey).getBytes(), Base64.NO_WRAP);\n }", "public static String generateApiKey(int length) throws NoSuchAlgorithmException {\n\n SecureRandom random = new SecureRandom();\n byte [] bytes = new byte[length/8];\n random.nextBytes(bytes);\n\n return DatatypeConverter.printHexBinary(bytes).toLowerCase();\n }", "public static String generateApiKey(String name) throws EndlosException {\n\t\treturn hash(Utility.generateToken(6) + DateUtility.getCurrentEpoch() + name + Utility.generateToken(8));\n\t}", "private static String sign(String data, String key)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMac mac = Mac.getInstance(\"HmacSHA1\");\n\t\t\t\tmac.init(new SecretKeySpec(key.getBytes(), \"HmacSHA1\"));\n\t\t\t\treturn Base64.encodeBytes(mac.doFinal(data.getBytes(\"UTF-8\")));\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tthrow new RuntimeException(new SignatureException(\"Failed to generate signature: \" + e.getMessage(), e));\n\t\t\t}\n\t\t}", "private void encode(){\r\n \r\n StringBuilder sb = new StringBuilder();\r\n \r\n /*\r\n *if a character code is >126 after adding the encryption key, subtract \r\n *95 to wrap\r\n */\r\n for(int i = 0; i < message.length(); i++){\r\n if(message.charAt(i) + key > 126){\r\n int wrappedKey = message.charAt(i) + key - 95;\r\n \r\n sb.append((char) wrappedKey);\r\n \r\n /*\r\n *if a character code ins't > 126 after adding the encryption key\r\n */\r\n } else{\r\n int wrappedKey = message.charAt(i) + key;\r\n sb.append( (char) wrappedKey);\r\n }\r\n }\r\n /*\r\n *case coded message to a string\r\n */\r\n codedMessage = sb.toString();\r\n }", "public static String create()\n\t{\n\t\tBASE64Encoder\tencoder = new BASE64Encoder();\n\n\t\treturn encoder.encode(createBytes());\n\t}", "String encrypt(String input) {\n\t\treturn BaseEncoding.base64().encode(input.getBytes());\n\t}", "public static String base64EncodeString(String input) throws Exception\n {\n return base64Encode(input.getBytes(\"UTF-8\"));\n }", "private String encodeBase64(String msg) {\n\t\tbyte[] bytesEncoded = Base64.encodeBase64(msg.getBytes());\n\t\t//System.out.println(\"encoded value is \" + new String(bytesEncoded));\n\n\t\treturn new String(bytesEncoded);\n\t}", "@Override\n public String generateKey(int round) {\n return this.key.substring(4 * round, 4 * round + 16);\n }", "java.lang.String getPubkey();", "protected String rebuildEncryptedJwt(Jwt jwt, Key publicKey) {\n return buildJwtString(jwt.getClaimsSet(), publicKey);\n }", "public static String encodeString(String str) throws IOException {\n BASE64Encoder encoder = new BASE64Encoder();\n String encodedStr = encoder.encodeBuffer(str.getBytes());\n \n return (encodedStr.trim());\n }", "public static String encode(String inString, String type, String Key) throws Exception{\r\n\t\tStringBuilder encodedString = new StringBuilder();\r\n\t\tString thisString;\r\n\t\tencodedString.append(\"<encrypted type=\" + type + \" key=\");\r\n\t\tif(type==\"Caesar\"){\r\n\t\t\tencodedString.append(Integer.toHexString(Integer.parseInt(Key)) + \"> \");\r\n\t\t\tchar[] alphabet ={'a','b','c','d','e','f','g','h','i','j','k','l','m',\r\n\t\t\t\t\t'n','o','p','q','r','s','t','u','v','w','x','y','z','å','ä','ö','A','B',\r\n\t\t\t\t\t'C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U',\r\n\t\t\t\t\t'V','W','X','Y','Z','Å','Ä','Ö','0','1','2','3','4','5','6','7','8','9',\r\n\t\t\t\t\t'!','?',')','(','=','>','<','/','&','%','#','@','$','[',']'};\r\n\t\t\tfor(int i = 0; i < inString.length(); i++){\r\n\t\t\t\tchar a = inString.charAt(i);\r\n\t\t\t\tint used = 0;\r\n\t\t\t\tfor(char b: alphabet){\r\n\t\t\t\t\tif(b==a){\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\tthisString = String.format(\"%02x\",(int)alphabet[(indexOf(alphabet,b)\r\n\t\t\t\t\t\t\t\t\t+Integer.parseInt(Key))%alphabet.length]);\r\n\t\t\t\t\t\t\tencodedString.append(thisString);\r\n\t\t\t\t\t\t\tused = 1;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}catch(Exception c){\r\n\t\t\t\t\t\t\tSystem.out.print(c.getMessage());\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\tif(used==0){\r\n\t\t\t\t\tthisString = String.format(\"%02x\", (int)a);\r\n\t\t\t\t\tencodedString.append(thisString);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(type==\"AES\"){\r\n\t\t\tfor(int i = 0; i<Key.length();i++){\r\n\t\t\t\tencodedString.append(String.format(\"%02x\", (int)Key.charAt(i)));\r\n\t\t\t}\r\n\t\t\tencodedString.append(\">\");\r\n\t\t\tencodedString.append(\" \");\r\n\t\t\tbyte[] keyContent = Base64.getDecoder().decode(Key);\r\n\t\t\tSecretKeySpec AESkey = new SecretKeySpec(keyContent,0,keyContent.length, \"AES\");\r\n\t\t\tSystem.out.println(keyContent);\r\n\t\t\t\r\n\t\t\tCipher AEScipher = Cipher.getInstance(\"AES\");\r\n\t\t\tAEScipher.init(Cipher.ENCRYPT_MODE, AESkey);\r\n\t\t\tbyte[] cipherData = AEScipher.doFinal(inString.getBytes());\r\n\t\t\tfor(byte b: cipherData){\r\n\t\t\t\tencodedString.append(String.format(\"%02x\", b));\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tthrow new Exception(\"Unknown encryption\");\r\n\t\t}\r\n\t\tencodedString.append(\" </encrypted> \");\r\n\t\treturn encodedString.toString();\r\n\t\t\r\n\t}", "private String exportkey() {\n\n\t\ttry {\n\t\t\tbyte[] keyBytes = serversharedkey.getEncoded();\n\t\t\tString encodedKey = new String(Base64.encodeBase64(keyBytes), \"UTF-8\");\n\t\t\tFile file = new File(\"serversharedKey\");\n\t\t\t//System.out.println(\"The server Private key: \" + encodedKey);\n\t\t\tPrintWriter writer = new PrintWriter(file, \"UTF-8\");\n\t\t\twriter.println(encodedKey);\n\t\t\twriter.close();\n\n\t\t\treturn encodedKey;\n\n\t\t} catch (UnsupportedEncodingException | FileNotFoundException ex) {\n\t\t\tLogger.getLogger(ClientTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\treturn null;\n\t}", "public static String encode(String arg) {\n String encoded = Base64.getEncoder().encodeToString(arg.getBytes());\n\n return encoded;\n }", "private String getSignString(HttpServletRequest request) throws IOException {\n\t\tString date = ((HttpServletRequest) request).getHeader(HttpHeaders.DATE);\n\t\tString body = ((RequestWrapper) request).getPayload();\n\t\tString base64Body = Base64.encodeBase64String(body.getBytes());\n\n\t\tStringBuilder sb = new StringBuilder(request.getScheme());\n\t\tsb.append(\"://\");\n\t\tsb.append(request.getServerName());\n\t\tsb.append((\"http\".equals(request.getScheme()) && request.getServerPort() == 80) || (\"https\".equals(request.getScheme()) && request.getServerPort() == 443) ? \"\" : \":\" + request.getServerPort() );\n\t\tsb.append(request.getRequestURI());\n\t\tsb.append(request.getQueryString() != null ? \"?\" + request.getQueryString() : \"\");\n\t\tsb.append(\" \");\n\t\tsb.append(date);\n\t\tsb.append(\" \");\n\t\tsb.append(base64Body);\n\n\t\treturn sb.toString();\n\t}", "private String encodeTokenString(String tokenPortion) {\n log.info(\"Entering encodeTokenString\");\n String base64EncodedTokenString = Base64.getEncoder().encodeToString(tokenPortion.getBytes());\n String replacedEncodedTokenString = base64EncodedTokenString.replaceAll(\"={1,2}$\", \"\");\n return encodeURILikeJavascript(replacedEncodedTokenString);\n }", "public Base64StringKeyGenerator(Base64.Encoder encoder) {\n this(encoder, DEFAULT_KEY_LENGTH);\n }", "private static String getEncryptedJWT(RSAPublicKey publicKey, JWTClaimsSet jwtClaimsSet) throws\n RequestObjectException {\n JWEHeader header = new JWEHeader(JWEAlgorithm.RSA_OAEP, EncryptionMethod.A128GCM);\n\n // Create the encrypted JWT object\n EncryptedJWT jwt = new EncryptedJWT(header, jwtClaimsSet);\n\n try {\n // Create an encrypter with the specified public RSA key\n RSAEncrypter encrypter = new RSAEncrypter(publicKey);\n // Do the actual encryption\n jwt.encrypt(encrypter);\n } catch (JOSEException e) {\n throw new RequestObjectException(\"error_building_jwd\", \"Error occurred while creating JWE JWT.\");\n\n }\n return jwt.serialize();\n }", "private String key() {\n return \"secret\";\n }", "private void sendPublicKey() {\n PublicKey publicKey = EncryptionUtils.getKeyPair(getApplicationContext()).getPublic();\n String encodedPublicKey = Base64.encodeToString(publicKey.getEncoded(),Base64.URL_SAFE);\n socket.emit(\"public_key\",encodedPublicKey);\n }", "public static void setAPIkey(String key) {\n\t\tkey1 = key;\r\n\r\n\r\n\t}", "private static String encodeToBase64(byte[] data) {\n return Base64.encodeToString(data, BASE64_EFLAGS);\n }", "public static String base64Encode(byte[] input) {\n return DatatypeConverter.printBase64Binary(input);\n }", "public Base64StringKeyGenerator(int keyLength) {\n this(Base64.getEncoder(), keyLength);\n }", "Object getAuthInfoKey();", "void genKey(){\n Random rand = new Random();\n int key_length = 16;\n String key_alpha = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n StringBuilder sb = new StringBuilder(key_length);\n for(int i = 0; i < key_length; i++){\n int j = rand.nextInt(key_alpha.length());\n char c = key_alpha.charAt(j);\n sb.append(c);\n }\n this.key = sb.toString();\n }", "private String createSignedRSAToken(String jwtToken, String clientId, String clientKeyPairs, String keyPair) throws ParseException, JOSEException {\n log.info(\"Entering createSignedRSAToken\");\n log.info(\"clientKeyPairs: {}\", clientKeyPairs);\n\n Object signingKey;\n\n // To not affect current functionality, if no clientId parameter is passed,\n // sign with the default playground's \"testing_key\"\n JSONObject parseKeyPairs = JSONObjectUtils.parse(clientKeyPairs);\n log.info(\"Parsed clientKeyPairs\");\n\n if (clientId.equals(\"none\")) {\n signingKey = parseKeyPairs.get(\"default\");\n } else {\n signingKey = parseKeyPairs.get(clientId);\n if (signingKey == null) {\n throw new OauthException(\"Client ID to private key mapping not found\", HttpStatus.BAD_REQUEST);\n }\n }\n log.info(\"signingKey: {}\", signingKey);\n\n String[] splitString = jwtToken.split(\"\\\\.\");\n\n log.info(\"Size of splitString: {}\", splitString.length);\n\n log.info(\"~~~~~~~~~ JWT Header ~~~~~~~\");\n String base64EncodedHeader = splitString[0];\n JWSHeader head = JWSHeader.parse(new Base64URL(base64EncodedHeader));\n\n\n log.info(\"~~~~~~~~~ JWT Body ~~~~~~~\");\n String base64EncodedBody = splitString[1];\n Payload payload = new Payload(new Base64URL(base64EncodedBody));\n\n // RSA signatures require a public and private RSA key pair,\n // the public key must be made known to the JWS recipient to\n // allow the signatures to be verified\n\n log.info(\"keyPair: {}\", keyPair);\n\n net.minidev.json.JSONObject parsedRsa = JSONObjectUtils.parse(keyPair);\n\n Object getSigningKey = parsedRsa.get(signingKey);\n String signingKeyToString = String.valueOf(getSigningKey);\n\n RSAKey rsaJWK = RSAKey.parse(signingKeyToString);\n RSAPrivateKey prK = (RSAPrivateKey) rsaJWK.toPrivateKey();\n RSAPublicKey puK = (RSAPublicKey) rsaJWK.toPublicKey();\n\n byte[] privateKeyEnc = prK.getEncoded();\n byte[] privateKeyPem = java.util.Base64.getEncoder().encode(privateKeyEnc);\n String privateKeyPemStr = new String(privateKeyPem);\n\n // Create RSA-signer with the private key\n JWSSigner signer = new RSASSASigner(rsaJWK);\n\n // Prepare JWS object with simple string as payload\n JWSObject jwsObject = new JWSObject(head, payload);\n\n // Compute the RSA signature\n jwsObject.sign(signer);\n\n // To serialize to compact form, produces something like\n String s = jwsObject.serialize();\n log.info(\"Signed RSA Token:\");\n log.info(s);\n\n // To parse the JWS and verify it, e.g. on client-side\n jwsObject = JWSObject.parse(s);\n\n JWSVerifier verifier = new RSASSAVerifier(puK);\n\n log.info(\"Verify: {}\", jwsObject.verify(verifier));\n\n log.info(\"In RSA we trust! --> {}\", jwsObject.getPayload().toString());\n return s;\n }", "private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }", "private String createUnsignedJwt(String tokenHead, String tokenBody) {\n log.info(\"Entering createUnsignedJwt\");\n String headString = encodeTokenString(tokenHead);\n String bodyString = encodeTokenString(tokenBody);\n StringBuilder sb = new StringBuilder();\n sb.append(headString).append(\".\").append(bodyString);\n return sb.toString();\n }", "public String toString() {\n\t\treturn \"{\\\"username\\\":\\\"\" + this.username + \"\\\",\\\"apiKey\\\":\\\"\"\n\t\t\t\t+ this.apiKey + \"\\\",\\\"apiSecret:\\\"\" + this.apiSecret\n\t\t\t\t+ \"\\\",\\\"nonce:\\\"\" + this.nonce + \"\\\"}\";\n\t}", "public String getSecretKey();", "public String getAppKey(Integer appId) {\n\t\treturn \"d3d1f52452be41aaa1b68e33d59d0188\";\n\t}", "private static String m5297cj() {\n try {\n KeyGenerator instance = KeyGenerator.getInstance(\"AES\");\n instance.init(128);\n return Base64.encodeToString(instance.generateKey().getEncoded(), 0);\n } catch (Throwable unused) {\n return null;\n }\n }", "@Override\n public String buildSignature(RequestDataToSign requestDataToSign, String appKey) {\n // find private key for this app\n final String secretKey = keyStore.getPrivateKey(appKey);\n if (secretKey == null) {\n LOG.error(\"Unknown application key: {}\", appKey);\n throw new PrivateKeyNotFoundException();\n }\n\n // sign\n return super.buildSignature(requestDataToSign, secretKey);\n }", "static String getStringJsonEscaped(String str) {\n JsonStringEncoder e = JsonStringEncoder.getInstance();\n StringBuilder sb = new StringBuilder();\n e.quoteAsString(str, sb);\n return sb.toString();\n }", "public Base64StringKeyGenerator() {\n this(DEFAULT_KEY_LENGTH);\n }", "protected String getApiKey() {\r\n\t\treturn apiKey;\r\n\t}", "public static String encrypt(String message, String randomkey) throws GeneralSecurityException {\n //Log.d(\"Jsonmessage\",message);\n try {\n final SecretKeySpec key = new SecretKeySpec(ENCRYPTION_SECRET_KEY.getBytes(), \"AES\");\n\n // byte[] cipherText = encrypt(key, ApiConfig.ENCRYPTION_IV_KEY.getBytes(), message.getBytes(CHARSET));\n byte[] cipherText = encrypt(key, randomkey.getBytes(), message.getBytes(CHARSET));\n //Log.d(\"SecretKey123\",cipherText.toString());\n String encoded = Base64.encodeToString(cipherText, Base64.NO_WRAP);\n //Log.d(\"SecretKey\",encoded);\n return encoded;\n } catch (UnsupportedEncodingException e) {\n if (DEBUG_LOG_ENABLED)\n Log.e(TAG, \"UnsupportedEncodingException \", e);\n throw new GeneralSecurityException(e);\n }\n }", "String getApiKey() {\n return interceptorManager.isPlaybackMode() ? \"apiKeyInPlayback\"\n : Configuration.getGlobalConfiguration().get(AZURE_FORM_RECOGNIZER_API_KEY);\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tJsonObject jo = new JsonObject();\r\n\t\t\r\n\t\tjo.addProperty(\"IssuerInfo\", issuerInfo.toString());\r\n\t\tjo.addProperty(\"SubjectInfo\", subjectInfo.toString());\r\n\t\tjo.addProperty(\"AccessRights\", accessRights.toString());\r\n\t\tjo.addProperty(\"ResourceID\", resourceId);\r\n\t\tjo.addProperty(\"ValidityCondition\", validityCondition.toString());\r\n\t\tjo.addProperty(\"RevocationURL\", revocationUrl);\r\n\t\tString sig = \"\";\r\n\t\tfor(byte b : digitalSignature){\r\n\t\t\tsig = sig + Integer.toHexString(0xFF & b);\r\n\t\t}\r\n\t\tjo.addProperty(\"DigitalSignature\", sig);\r\n\t\t\r\n\t\treturn jo.toString();\r\n\t}", "OpenSSLKey mo134201a();", "protected String getKey(String namespace, String key){\n \t\tif (namespace != null) {\n \t\t\tkey = namespace + key;\n \t\t}\n \t\tif (key.length() > 24) {\n \t\t\ttry {\n \t\t\t\tkey = StringHelper.sha1Hex(key.getBytes(\"utf8\"));\n \t\t\t} catch (UnsupportedEncodingException e) {\n \t\t\t\tlog.warn(\"Invalid key: \" + key, e);\n \t\t\t}\n \t\t} \n//\t\tlog.info(\"key: \" + key);\n \t\treturn key;\n \t}", "public static String generateHashKeyFromAlphabeticallySortedParameters(String concatenatedString) {\n\t\tString[] splitAmber = concatenatedString.split(\"&\");\n\n\t\tTreeMap<String, String> sortedParameters = new TreeMap<>();\n\n\t\tfor (String pair : splitAmber) {\n\t\t\tString[] keyValue = pair.split(\"=\");\n\t\t\tsortedParameters.put(keyValue[0], keyValue[1]);\n\t\t}\n\t\tString parametersInAlphabeticalOrder = \"\";\n\t\tfor (Map.Entry<String, String> entry : sortedParameters.entrySet()) {\n\t\t\tString key = entry.getKey();\n\t\t\tString value = entry.getValue();\n\n\t\t\tparametersInAlphabeticalOrder += key + \"=\" + value + \"&\";\n\t\t}\n\n\t\tparametersInAlphabeticalOrder += API_KEY;\n\n\t\tString hashkey = Utils.sha1Hash(parametersInAlphabeticalOrder);\n\n\t\treturn hashkey.toLowerCase();\n\t}", "java.lang.String getEncoded();", "protected String getApiKey()\n\t{\n\t\treturn apiKey;\n\t}", "String encryption(Long key, String encryptionContent);", "java.lang.String getClientKey();", "private String encodeActivationCode(byte[] activationCodeBytes) {\n // Generate Base32 representation from 12 activation code bytes, without padding characters.\n String base32Encoded = BaseEncoding.base32().omitPadding().encode(activationCodeBytes);\n\n // Split Base32 string into 4 groups, each one contains 5 characters. Use \"-\" as separator.\n return base32Encoded.substring(0, BASE32_KEY_LENGTH)\n + \"-\"\n + base32Encoded.substring(BASE32_KEY_LENGTH, BASE32_KEY_LENGTH * 2)\n + \"-\"\n + base32Encoded.substring(BASE32_KEY_LENGTH * 2, BASE32_KEY_LENGTH * 3)\n + \"-\"\n + base32Encoded.substring(BASE32_KEY_LENGTH * 3, BASE32_KEY_LENGTH * 4);\n }", "public static String buildCacheKey(String... keyParts) {\n // Ignore blank keyPart\n String joinedKeyStr =\n Stream.of(keyParts)\n .filter(s -> !StringUtils.isBlank(s))\n .collect(Collectors.joining(\",\"));\n\n return Base64.getEncoder().encodeToString(joinedKeyStr.getBytes());\n }", "private byte[] createSignatureBase() {\n final Charset utf8 = StandardCharsets.UTF_8;\n byte[] urlBytes = url.getBytes(utf8);\n byte[] timeStampBytes = Long.toString(timestamp).getBytes(utf8);\n byte[] secretBytes = secret.getBytes(utf8);\n\n // concatenate\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n try {\n stream.write(urlBytes);\n stream.write(body);\n stream.write(timeStampBytes);\n stream.write(secretBytes);\n } catch (IOException ex){\n logger.error(\"Could not create signature base\", ex);\n return new byte[0];\n }\n\n return stream.toByteArray();\n }", "public String generateUniqueSignature(){\n final String uuid = UniqueIdentifierGenerator.generateUniqueIdentifier();\n setSignature(uuid);\n return uuid;\n }", "String getComponentAesKey();", "public static String create()\n\t{\n\t\treturn new String(B64Code.encode(createBytes()));\n\t}", "public CodePointIterator base64Encode() {\n return base64Encode(Base64Alphabet.STANDARD, true);\n }", "public SessionKey (String keyString) {\n byte[] keyByte = Base64.getDecoder().decode(keyString.getBytes());\n //Decodes a Base64 encoded String into a byte array\n int keyLength = keyByte.length;\n this.secretKey = new SecretKeySpec(keyByte, 0, keyLength, \"AES\");\n //Construct secret key from the given byte array.\n }", "protected static String buildJson(String key, String value) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\\\"\").append(key).append(\"\\\":\\\"\").append(value).append(\"\\\"}\");\n return sb.toString();\n }", "public JsonWriter key(byte key) {\n startKey();\n\n writer.write('\\\"');\n writer.print((int) key);\n writer.write('\\\"');\n writer.write(':');\n return this;\n }", "public static String buildHmacSha256SignedJWT(String sharedSecretString) throws JOSEException {\n\t\tJWSObject jwsObject = new JWSObject(new JWSHeader(JWSAlgorithm.HS256), new Payload(\"Hello world!\"));\n\n\t\t// create JWS header with HMAC-SHA256 algorithm.\n\t\tjwsObject.sign(new MACSigner(sharedSecretString));\n\n\t\t// serialize into base64-encoded text.\n\t\tString jwtInText = jwsObject.serialize();\n\n\t\t// print the value of the JWT.\n\t\tSystem.out.println(jwtInText);\n\n\t\treturn jwtInText;\n\t}", "static String base64encode(byte[] bytes)\n {\n StringBuilder builder = new StringBuilder(((bytes.length + 2)/ 3) * 4);\n for (int i = 0; i < bytes.length; i += 3)\n {\n byte b0 = bytes[i];\n byte b1 = i < bytes.length - 1 ? bytes[i + 1] : 0;\n byte b2 = i < bytes.length - 2 ? bytes[i + 2] : 0;\n builder.append(BASE64_CHARS[(b0 & 0xFF) >> 2]);\n builder.append(BASE64_CHARS[((b0 & 0x03) << 4) | ((b1 & 0xF0) >> 4)]);\n builder.append(i < bytes.length - 1 ? BASE64_CHARS[((b1 & 0x0F) << 2) | ((b2 & 0xC0) >> 6)] : \"=\");\n builder.append(i < bytes.length - 2 ? BASE64_CHARS[b2 & 0x3F] : \"=\");\n }\n return builder.toString();\n }", "public String getApiKey(){\n\t\treturn apiKey;\n\t}", "public String serialize() throws IOException \r\n\t{\r\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n\t\tObjectOutputStream oos = new ObjectOutputStream(baos);\r\n\t\toos.writeObject(this);\r\n\t\toos.close();\r\n\t\treturn new String(Base64Coder.encode(baos.toByteArray()));\r\n\t}", "public final String getInternalKey() {\n return CloudImageLoader.generateKey(getInternalUri(), getInternalDownloadType());\n }", "protected String keyToString(Object rawKey)\n {\n if (rawKey instanceof String) {\n return (String) rawKey;\n }\n return String.valueOf(rawKey);\n }", "private String encodeBase64(String ldapPwd){\n try {\n return CryptoUtils.object2String(ldapPwd);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "ApiKeys regenerateKey(RegenerateKeyParameters parameters);", "public static String createJWT(String id, String issuer, String subject, Date exp ,String secret, Date issuedat) {\n\t SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.HS256;\n\t \n\t \n\t //We will sign our JWT with our ApiKey secret\n\t byte[] apiKeySecretBytes = DatatypeConverter.parseBase64Binary(secret);\n\t Key signingKey = new SecretKeySpec(apiKeySecretBytes, signatureAlgorithm.getJcaName());\n\t \n\t //Let's set the JWT Claims\n\t JwtBuilder builder = Jwts.builder().setHeaderParam(\"typ\", \"JWT\")\n\t .setId(id)\n\t .setIssuedAt(issuedat)\n\t .setSubject(subject)\n\t .setIssuer(issuer)\n\t .setExpiration(exp)\n\t .signWith(signatureAlgorithm, signingKey);\n\t \n\t \n\t //Builds the JWT and serializes it to a compact, URL-safe string\n\t return builder.compact();\n\t }", "public String toExternalString() {\n\t\treturn new String(signature, US_ASCII);\n\t}", "private String base64Encode(String xmlAsString, String xmlEncoding) throws UnsupportedEncodingException {\r\n String xmlencodingDeclaration = \"<?xml version=\\\"1.0\\\" encoding=\\\"\" + xmlEncoding + \"\\\"?>\";\r\n byte[] xmlAsBytes = (xmlencodingDeclaration + xmlAsString).getBytes(xmlEncoding);\r\n\r\n byte[] xmlAsBase64 = Base64.encodeBase64(xmlAsBytes);\r\n\r\n // base64 is pure ascii\r\n String xmlAsBase64String = new String(xmlAsBase64, \"ascii\");\r\n\r\n return xmlAsBase64String;\r\n }" ]
[ "0.7398408", "0.6743126", "0.65185887", "0.64692885", "0.63090956", "0.6083023", "0.6052846", "0.5901758", "0.58952403", "0.5891281", "0.585947", "0.58130646", "0.57542825", "0.5749955", "0.57391304", "0.5720811", "0.5695697", "0.56569725", "0.5641885", "0.5614289", "0.55935204", "0.5590292", "0.5559615", "0.5549725", "0.55050606", "0.54911125", "0.5485044", "0.5478051", "0.5439396", "0.54331577", "0.54179144", "0.5411898", "0.541082", "0.53900033", "0.53757536", "0.53610164", "0.53604233", "0.53592575", "0.5357538", "0.53565437", "0.5350496", "0.5346891", "0.5338226", "0.53356", "0.5319187", "0.52990335", "0.5285096", "0.5266378", "0.526313", "0.52518636", "0.5240231", "0.52385074", "0.52326566", "0.5230914", "0.52278036", "0.52251816", "0.52236325", "0.52140445", "0.5209851", "0.52095395", "0.5209448", "0.52074015", "0.5206572", "0.5199594", "0.51964605", "0.51724946", "0.5164206", "0.51588696", "0.51543015", "0.51522356", "0.5146134", "0.5142779", "0.5142101", "0.5140642", "0.51339614", "0.51265264", "0.512119", "0.5118491", "0.511574", "0.5105327", "0.50955665", "0.50924677", "0.50886726", "0.50844747", "0.5083889", "0.50712633", "0.50708663", "0.5068967", "0.50678754", "0.50659275", "0.50542665", "0.5046963", "0.5046423", "0.50346893", "0.5033005", "0.50207937", "0.5017472", "0.50126237", "0.5009868", "0.500911" ]
0.8099042
0
creates random list object.
public void add(T element) { if (element == null) { throw new IllegalArgumentException(); } if (size == elements.length) { resize(elements.length * 2); } elements[size()] = element; size++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListNode createList(int len) {\r\n\t\tListNode head = null;\r\n\t\tRandom r = new Random(10);\r\n\t\tfor (int i = 0; i < len; ++i) {\r\n\r\n\t\t\thead = createNode(head, r.nextInt(20) + 1);\r\n\t\t}\r\n\r\n\t\treturn head;\r\n\t}", "ListType createListType();", "@BeforeEach\n public void createList() {\n myListOfInts = new ArrayListDIY<>(LIST_SIZE);\n listOfInts = new ArrayList<>(LIST_SIZE);\n\n getRandomIntStream(0,10).limit(LIST_SIZE)\n .forEach(elem -> {\n listOfInts.add(elem);\n myListOfInts.add(elem);\n });\n }", "private void fillRandomList()\n\t{\n\t\trandomList.add(\"I like cheese.\");\n\t\trandomList.add(\"Tortoise can move faster than slow rodent.\");\n\t\trandomList.add(\"I enjoy sitting on the ground.\");\n\t\trandomList.add(\"I like cereal.\");\n\t\trandomList.add(\"This is random.\");\n\t\trandomList.add(\"I like typing\");\n\t\trandomList.add(\"FLdlsjejf is my favorite word.\");\n\t\trandomList.add(\"I have two left toes.\");\n\t\trandomList.add(\"Sqrt(2) = 1.414213562 ...\");\n\t\trandomList.add(\"Hi mom.\");\n\t}", "@Before\n public void createSimpleList() {\n testList = new SimpleList();\n }", "public ArrayList<RandomItem> getRandomItems();", "@Before(value = \"@createList\", order = 1)\n public void createList() {\n String endpoint = EnvironmentTrello.getInstance().getBaseUrl() + \"/lists/\";\n JSONObject json = new JSONObject();\n json.put(\"name\", \"testList\");\n json.put(\"idBoard\", context.getDataCollection(\"board\").get(\"id\"));\n RequestManager.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n Response response = RequestManager.post(endpoint, json.toString());\n context.saveDataCollection(\"list\", response.jsonPath().getMap(\"\"));\n }", "@Override\n public <T> T getRandomElement(List<T> list) {\n return super.getRandomElement(list);\n }", "abstract void makeList();", "@SuppressWarnings(\"unchecked\")\r\n public void createList() {\r\n items = new int[MAX_LIST];\r\n NumItems = 0;\r\n }", "private static ListNode initializeListNode() {\n\n\t\tRandom rand = new Random();\n\t\tListNode result = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\tresult.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\treturn result;\n\t}", "private void initList() {\n\n }", "public List()\n {\n list = new Object [10];\n }", "public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}", "public <T> T of(List<T> list) {\n return list.get(random.nextInt(list.size() - 1));\n }", "public ListHolder()\n {\n this.list = new TestList(15, false);\n }", "public RandomizedCollection() {\n map=new HashMap();\n li=new ArrayList();\n rand=new Random();\n }", "private IUnit getRandomListUnit(){\n\t\treturn unitList.get(rnd.nextInt(unitListSize()));\n\t}", "public static void createLists() {\r\n \t\t// Raw Meat: (A bit cold...)\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.beef);\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.porkchop);\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.chicken);\r\n \t\t\r\n \t\t// Cooked Meat: (Meaty goodness for carnivorous pets!)\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_beef);\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_porkchop);\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_chicken);\r\n \t\t\r\n \t\t// Prepared Vegetables: (For most vegetarian pets.)\r\n \t\tObjectLists.addItem(\"vegetables\", Items.wheat);\r\n \t\tObjectLists.addItem(\"vegetables\", Items.carrot);\r\n \t\tObjectLists.addItem(\"vegetables\", Items.potato);\r\n \t\t\r\n \t\t// Fruit: (For exotic pets!)\r\n \t\tObjectLists.addItem(\"fruit\", Items.apple);\r\n \t\tObjectLists.addItem(\"fruit\", Items.melon);\r\n \t\tObjectLists.addItem(\"fruit\", Blocks.pumpkin);\r\n \t\tObjectLists.addItem(\"fruit\", Items.pumpkin_pie);\r\n \r\n \t\t// Raw Fish: (Very smelly!)\r\n \t\tObjectLists.addItem(\"rawfish\", Items.fish);\r\n \r\n \t\t// Cooked Fish: (For those fish fiends!)\r\n \t\tObjectLists.addItem(\"cookedfish\", Items.cooked_fished);\r\n \t\t\r\n \t\t// Cactus Food: (Jousts love these!)\r\n \t\tObjectLists.addItem(\"cactusfood\", new ItemStack(Items.dye, 1, 2)); // Cactus Green\r\n \t\t\r\n \t\t// Mushrooms: (Fungi treats!)\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.brown_mushroom);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.red_mushroom);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.brown_mushroom_block);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.red_mushroom_block);\r\n \t\t\r\n \t\t// Sweets: (Sweet sugary goodness!)\r\n \t\tObjectLists.addItem(\"sweets\", Items.sugar);\r\n \t\tObjectLists.addItem(\"sweets\", new ItemStack(Items.dye, 1, 15)); // Cocoa Beans\r\n \t\tObjectLists.addItem(\"sweets\", Items.cookie);\r\n \t\tObjectLists.addItem(\"sweets\", Blocks.cake);\r\n \t\tObjectLists.addItem(\"sweets\", Items.pumpkin_pie);\r\n \t\t\r\n \t\t// Fuel: (Fiery awesomeness!)\r\n \t\tObjectLists.addItem(\"fuel\", Items.coal);\r\n \t\t\r\n \t\t// Custom Entries:\r\n \t\tfor(String itemListName : itemListNames) {\r\n \t\t\taddFromConfig(itemListName.toLowerCase());\r\n \t\t}\r\n \t}", "public void randomize()\n {\n for (int i=0; i<list.length; i++)\n list[i] = (int)(Math.random() * 100) + 1;\n }", "private Lists() { }", "private static List<Integer> initLista(int tamanho) {\r\n\t\tList<Integer> lista = new ArrayList<Integer>();\r\n\t\tRandom rand = new Random();\r\n\r\n\t\tfor (int i = 0; i < tamanho; i++) {\r\n\t\t\tlista.add(rand.nextInt(tamanho - (tamanho / 10) + 1)\r\n\t\t\t\t\t+ (tamanho / 10));\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "ListItem createListItem();", "public List<Integer> getRandomElement(List<Integer> list) {\n\t\t//Random rand = new Random(); \n\t\tList<Integer> newList = new ArrayList<>();\n\t\t//newList.add(10);\n\n//\t\tfor(int i=0;i<5;i++) {\n//\t\tif(newList.size()<4) {\n//\t\t\tint n=Random(list);\n//\t\t\tif(newList.contains(n)) {\n//\t\t\t\t\n//\t\t\t}else {\n//\t\t\t\tnewList.add(n);\n//\t\t\t}\n//\t\t}\n//\t\t}\n\t\twhile(newList.size()<=2) {\n\t\t\tint n=Random(list);\n\t\t\tif(newList.contains(n)) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tnewList.add(n);\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t\n\t\treturn newList;\n\t}", "@Test\r\n\tvoid testCreateList() {\r\n\t\tSortedList list = new SortedList(\"New List\");\r\n\r\n\t\tif (!list.getListName().equals(\"New List\")) {\r\n\t\t\tfail(\"List name does not match input\");\r\n\t\t}\r\n\t\tif (list.getSize() != 0) {\r\n\t\t\tfail(\"List size incorrect\");\r\n\t\t}\r\n\t\tif (list.getHead() != null) {\r\n\t\t\tfail(\"Head was set incorrectly\");\r\n\t\t}\r\n\t}", "abstract protected Object newList( int capacity );", "public list() {\r\n }", "@Override\n\tpublic List<BookVO> randomList() {\n\t\tList<BookVO> randomList =bookDAO.randomList();\n\t\treturn randomList;\n\t}", "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 }", "@Test\n public void testCreateList() throws Exception {\n System.out.println(\"createList\");\n ListType type = ListType.PUBLIC;\n WordList result = WordListApi.createList(token, testListName, testListDescription, type);\n\n assertNotNull(result);\n assertNotNull(result.getId());\n assertEquals(username, result.getUsername());\n assertEquals(token.getUserId(), result.getUserId());\n assertEquals(testListName, result.getName());\n assertEquals(testListDescription, result.getDescription());\n\n testList = result;\n }", "private <T> T getRandomElement(List<T> list) {\n return list.get(randomInt(0, list.size()));\n }", "public static Integer[] randList(int size){\r\n Random generator = new Random();\r\n Integer[] list = new Integer[size];\r\n for(int i=0; i<size; i++){\r\n list[i]=generator.nextInt(10);\r\n }\r\n System.out.println(\"random list of \" + size + \" items\");\r\n for(Integer i: list){\r\n System.out.print(i + \" \");\r\n }\r\n System.out.println(\"\\n\");\r\n return list;\r\n }", "public static <T> List<T> createList() {\n\t\treturn Collections.emptyList();\n\t}", "List() {\n final int ten = 10;\n list = new int[ten];\n size = 0;\n }", "public Item generateItem()\n {\n Random rand = new Random();\n int item = rand.nextInt(itemList.size());\n return itemList.get(item);\n }", "public void genLists() {\n\t}", "public List<Fruit> generateShuffled(int listType) {\r\n final List<Fruit> list = innerGenerate(listType);\r\n Collections.shuffle(list);\r\n return Collections.unmodifiableList(list);\r\n }", "public List() {\n this.list = new Object[MIN_CAPACITY];\n this.n = 0;\n }", "public void setRandomItems(ArrayList<RandomItem> items);", "public static ArrayList<Integer> createRandomList(int n) {\n\n\t\tArrayList<Integer> list = new ArrayList<>();\n\t\tRandom rand = new Random();\n\n\t\tint max = 1000000;\n\t\tint min = -1000000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint value = (int) ((Math.random() * (max - min)) + min);\n\t\t\tlist.add(value);\n\t\t}\n\t\treturn list;\n\t}", "public Adapter() {\n super();\n this.listItemsBT = new ArrayList<>();\n /*Random random = new Random();\n for(int i = 0; i<50;i++){\n listItemsBT.add(new ItemBT(\"El vic xd\" + i, \"10:12:... NUMBER: \"+i, random.nextBoolean()));\n }*/\n }", "public SpyList() {\r\n }", "@Test\n void testInitAnimalGame(){\n ArrayList<AnimalStarWars> list = game.initListAnimals();\n assertNotNull(list,\"create list Animal\");\n assertEquals(11,list.size(),\"create 11 object\");\n }", "private void initList() {\n\n\t\tfor (int i = 0; i < lstPool.size(); i++) {\n\t\t\tpoolList.add(createPool(\"nomPool\", lstPool.get(i).getNomPool()));\n\t\t}\n\t}", "public FriendList createFriendList();", "public ListTimer(List<Integer> list, long elemGenSeed){\n\t\tsuper(elemGenSeed);\n\t\tthis.list = list;\n\n\t}", "public static <T> T getRandomElement(List<T> list) {\n \tint index = (int) (Math.random() * list.size());\n \treturn list.get(index);\n }", "public RandomizedCollection() {\n nums = new ArrayList<>();\n num2Index = new HashMap<>();\n rand = new Random();\n }", "@Test\n public void testList() {\n SLNode one = new SLNode(1, null);\n SLNode twoOne = new SLNode(2, one);\n SLNode threeTwoOne = new SLNode(3, twoOne);\n\n SLNode x = SLNode.of(3, 2, 1);\n assertEquals(threeTwoOne, x);\n }", "public List<Fruit> generate(int listType) {\r\n return Collections.unmodifiableList(innerGenerate(listType));\r\n }", "public DLList() {\r\n init();\r\n }", "public MutiList() {\n\t\tsuper();\n\t\tthis.myList = new ArrayList<>();\n\t}", "public int getRandom() {\n return _list.get( rand.nextInt(_list.size()) );\n }", "public List<Food> requestAction4(){\n\n List<Food> foodList = new ArrayList<>();\n Food food = new Food();\n for(int i=0;i<10;i++){\n\n Random random = new Random();\n int n = random.nextInt(10) +1;\n // random.nextInt(10) + 1;\n food.setId(i+1);\n food.setName(\"Food :\"+n);\n food.setDescriptiom(\"Food Description.................. \"+i);\n\n foodList.add(food);\n\n }\n\n\n return foodList;\n }", "public RandomizedCollection() {\n map = new HashMap<>();\n arr = new ArrayList<>();\n }", "public MyList() {\n this(\"List\");\n }", "public RandomizedCollection() {\n\n }", "public void init()\n {\n for(int i = 0 ; i <= 30 ; i++){\n enemies.add(new theEnemies(r1.nextInt(200),r1.nextInt(200)));\n }\n // Test removing of item from linked list.\n enemies.remove(0);\n }", "public AList() {\n items = (TypeHere[]) new Object[100];\n size = 0;\n }", "private List<User> createUserList() {\n for (int i = 1; i<=5; i++) {\n User u = new User();\n u.setId(i);\n u.setEmail(\"user\"+i+\"@mail.com\");\n u.setPassword(\"pwd\"+i);\n userList.add(u);\n }\n return userList;\n }", "public RDFList createRDFList(List<Expression> list, int arobase) {\r\n RDFList rlist = new RDFList(newBlankNode(), list); \r\n if (arobase == L_DEFAULT){\r\n arobase = listType;\r\n }\r\n switch (arobase){\r\n \r\n case L_LIST: \r\n rlist = complete(rlist);\r\n break;\r\n \r\n case L_PATH:\r\n rlist = path(rlist);\r\n break;\r\n }\r\n return rlist;\r\n }", "@SuppressWarnings(\"unchecked\")\r\n \tpublic List() {\r\n \t\titems = (T[]) new Object[INIT_LEN];\r\n \t\tnumItems = 0;\r\n \t\tcurrentObject = 0;\r\n \t}", "public linkedList() { // constructs an initially empty list\r\n\r\n }", "ListOfBooks(){\n \tlist = new LinkedList<Book>();\n }", "@Test\n\tpublic void createListFromList() {\n\t\tList<String> list = new ArrayList<>();\n\t\tlist.add(\"AAPL\");\n\t\tlist.add(\"MSFT\");\n\n\t\t// Create a copy using constructor of ArrayList\n\t\tList<String> copy = new ArrayList<>(list);\n\n\t\tassertTrue(list.equals(copy));\n\t}", "List<User> getRandomUsers(List<User> uList, int num);", "@Before\r\n\tpublic void setList() {\r\n\t\tthis.list = new DoubleList();\r\n\t\tfor (int i = 0; i < 15; i++) {\r\n\t\t\tlist.add(new Munitions(i, i + 1, \"iron\"));\r\n\t\t}\r\n\t}", "@Override\n\tpublic void buildComponent(StructureComponent structurecomponent, List list, Random random) {\n\t}", "public List createUserList()\r\n{\r\n\tUser madhu=new User(\"[email protected]\", \"madhu\");\r\n\tUser krishna=new User(\"[email protected]\", \"krishna\");\t\r\n\r\n\tList listOfUsers = new ArrayList();\r\n\tlistOfUsers.add(madhu);\r\n\tlistOfUsers.add(krshna);\r\n\treturn listOfUsers;\r\n}", "public AList() {\n size = 0;\n items = (Item[]) new Object[100];\n }", "public AList() {\n size = 0;\n items = (Item[]) new Object[100];\n }", "ListString createListString();", "public void genLists() {\n\t\tItem noitem = new Item(\"nothing\", \"You don't see that here.\", \"no_item\", \"\", true);\r\n\t\titems.put(noitem.getId(), noitem);\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//DataInputStream in = new DataInputStream(new FileInputStream(ITEM_FILE));\r\n\t\t\tDataInputStream in = new DataInputStream(getClass().getResourceAsStream(ITEM_FILE));\r\n\t\t\ttry {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tItem new_item = Item.readItem(in);\r\n\t\t\t\t\titems.put(new_item.getId(), new_item);\r\n\t\t\t\t}\r\n\t\t\t} catch (EOFException eof) {}\r\n\t\t\tin.close();\r\n\t\t\t\r\n\t\t\tin = new DataInputStream(getClass().getResourceAsStream(ROOM_FILE));\r\n\t\t\ttry {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tRoom new_room = Room.readRoom(in, items);\r\n\t\t\t\t\trooms.put(new_room.getId(), new_room);\r\n\t\t\t\t}\r\n\t\t\t} catch (EOFException eof) {}\r\n\t\t\tin.close();\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\tplayer.setCurrentRoom(getRoom(\"start\"));\r\n\t}", "public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }", "private MyIntegerList generatedPopulatedList() {\n final MyIntegerList mil = new MyIntegerList();\n\n mil.push(1);\n mil.push(2);\n mil.push(1);\n mil.push(6);\n mil.push(6);\n mil.push(7);\n mil.push(2);\n mil.push(2);\n mil.push(0);\n mil.push(5);\n\n return mil;\n }", "public RandomizedSet() {\n // public RandomizedSet1() {\n lst = new ArrayList<>();\n rand = new Random();\n map = new HashMap<>();\n }", "private void setUpList() {\n\n\n Contents s1 = new Contents(R.drawable.bishist,\"Bishisht Bhatta\",\"+977-9849849525\", Color.parseColor(\"#074e87\"));\n list.add(s1);\n Contents s2 = new Contents(R.drawable.sagar,\"Sagar Pant\",\"+977-9865616888\",Color.parseColor(\"#074e87\"));\n list.add(s2);\n Contents s3 = new Contents(R.drawable.rabins,\"Rabin Nath\",\"+977-9848781007\",Color.parseColor(\"#074e87\"));\n list.add(s3);\n\n\n }", "public ArtItemBuilder(){\n this.r = new Random();\n }", "public RandomizedSet() {\n list = new HashSet<>();\n\n }", "private static void initializeLargeRandomList(List<Student> foo) \r\n\t{\r\n\t\t/** query the user for the number of items to sort */\r\n\t\tString amountOfData = JOptionPane.showInputDialog(\"Enter the number of data items\");\r\n\t\tint n = Integer.parseInt ( amountOfData );\r\n\r\n\t\t/** create a list of Strings that is very un-sorted */\r\n\t\tfor ( int i=n-1; i >= 0; i-- ) \r\n\t\t\tfoo.add( new Student(\"alice \" + (n+i), \"MTH\") ); \r\n\t}", "public TempList() {\n list = new ArrayList<T>();\n }", "public MyList(String name) {\n nameList = name;\n }", "public int getRandom() {\n return lst.get(rand.nextInt(lst.size()));\n }", "public StudentList() {\r\n\t\t\r\n\t\tlist = new Student[GROW_SIZE];\r\n\t}", "public static <T> List<T> createList (T... args) {\n\tif (args == null) { return new ArrayList<T>(); };\n\treturn new ArrayList<T>(Arrays.asList(args));\n }", "ListValue createListValue();", "public void makePathList() {\r\n\t\tPath p = new Path(false,false,false,false);\r\n\t\tfor(int i=0; i<15; i++) {\r\n\t\t\tp = p.randomizePath(p.makeCornerPath());\r\n\t\t\t_list.add(p);\r\n\t\t}\r\n\t\tfor(int i=0; i<13; i++) {\r\n\t\t\tp = p.randomizePath(p.makeStraightPath());\r\n\t\t\t_list.add(p);\r\n\t\t}\r\n\t\tfor(int i=0; i<6; i++) {\r\n\t\t\tp = p.randomizePath(p.makeTPath());\r\n\t\t\t_list.add(p);\r\n\t\t}\r\n\t\tCollections.shuffle(_list);\r\n\t}", "public AddRandomList() {\n setTitleText(\"Add new random List\");\n\n addButton.setText(\"Add\");\n addButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addButtonActionPerformed(evt);\n }\n });\n addButton(addButton);\n }", "public MyArrayList() {\n this.IntList = new int[10];\n this.CharList = new Character[10];\n this.StringList = new String[5];\n \n // fill all 3 arrays with data\n for(int i = 0; i < IntList.length; i++) {\n IntList[i] = (int) (Math.random()*52);\n }\n\t \n // Populate char array\n for(int i = 0; i < CharList.length; i++) {\n \n Random random = new Random();\n CharList[i] = (char)(random.nextInt(26) + 'a');\n }\n\t \n // Populate String array\n StringList[0] = \"joe\";\n StringList[1] = \"mark\";\n StringList[2] = \"abbey\";\n StringList[3] = \"tony\";\n StringList[4] = \"kevin\"; \n }", "public ContactList()\n {\n myList = new ArrayList<>();\n }", "public List<Vec> sample(int count, Random rand);", "public ListTemplate() {\n }", "public int getRandom() {\n int x=rand.nextInt(li.size());\n return li.get(x);\n }", "@Override\n public boolean isListFactory() {\n return true;\n }", "public MyArrayList ()\r\n {\r\n \tlist = new Object[100];\r\n \tnumElements = 0;\r\n }", "public List<New> list();", "public PersonList() {\r\n this.personList = new ArrayList<Person>();\r\n }", "public TempList(int n) {\n list = new ArrayList<T>(n >= 0 ? n : 0);\n }", "public void initializeList() {\n listitems.clear();\n int medicationsSize = Medications.length;\n for(int i =0;i<medicationsSize;i++){\n Medication Med = new Medication(Medications[i]);\n listitems.add(Med);\n }\n\n }", "@Override protected List<String> initialize(int size){\n container.clear();\n container.addAll(Arrays.asList(Generated.array(String.class, new RandomGenerator.String(), size)));\n return container;\n }", "int createList(int listData) {\n\t\tint list = newList_();\n\t\t// m_lists.set_field(list, 0, null_node());//head\n\t\t// m_lists.set_field(list, 1, null_node());//tail\n\t\t// m_lists.set_field(list, 2, null_node());//prev list\n\t\tm_lists.setField(list, 3, m_list_of_lists); // next list\n\t\tm_lists.setField(list, 4, 0);// node count in the list\n\t\tm_lists.setField(list, 5, listData);\n\t\tif (m_list_of_lists != nullNode())\n\t\t\tsetPrevList_(m_list_of_lists, list);\n\n\t\tm_list_of_lists = list;\n\t\treturn list;\n\t}" ]
[ "0.697281", "0.6904797", "0.68353033", "0.6817334", "0.6728383", "0.67091155", "0.6680936", "0.66534686", "0.6649112", "0.66375077", "0.66250414", "0.65731794", "0.6518914", "0.65065277", "0.6480622", "0.64706117", "0.64247125", "0.6413622", "0.63896996", "0.63660127", "0.634125", "0.6285003", "0.6275584", "0.6270569", "0.6249922", "0.62478036", "0.62454516", "0.62424785", "0.6241108", "0.6204299", "0.6192811", "0.61789125", "0.6169333", "0.61691827", "0.61384654", "0.6127209", "0.6125445", "0.6122805", "0.61077976", "0.6087965", "0.60780704", "0.6056245", "0.6035743", "0.60251915", "0.60081345", "0.5999197", "0.59804267", "0.5963654", "0.5936732", "0.5936431", "0.59241563", "0.59236073", "0.59187335", "0.59083194", "0.5907701", "0.5903212", "0.5893716", "0.5886392", "0.5873414", "0.5868157", "0.58676535", "0.58666444", "0.5863198", "0.58626187", "0.5857868", "0.58541566", "0.58513236", "0.58478373", "0.5840311", "0.5832995", "0.5832995", "0.58309007", "0.5815021", "0.5811871", "0.58115107", "0.5808169", "0.5803677", "0.57914025", "0.57906383", "0.5790058", "0.5787236", "0.5780833", "0.577647", "0.5771604", "0.5763467", "0.57618326", "0.5761552", "0.5757925", "0.5750045", "0.5748168", "0.5734615", "0.57330114", "0.57271254", "0.57224816", "0.57135", "0.5710314", "0.5704858", "0.57042295", "0.57031775", "0.57000166", "0.5695882" ]
0.0
-1
Creates random list object.
public T remove() { if (size() == 0) { return null; } int r = new Random().nextInt(size()); T deleted = elements[r]; elements[r] = elements[size() - 1]; elements[size() - 1] = null; size--; if (size() > 0 && size() < elements.length / 4) { resize(elements.length / 2); } return deleted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ListType createListType();", "public ListNode createList(int len) {\r\n\t\tListNode head = null;\r\n\t\tRandom r = new Random(10);\r\n\t\tfor (int i = 0; i < len; ++i) {\r\n\r\n\t\t\thead = createNode(head, r.nextInt(20) + 1);\r\n\t\t}\r\n\r\n\t\treturn head;\r\n\t}", "@Before(value = \"@createList\", order = 1)\n public void createList() {\n String endpoint = EnvironmentTrello.getInstance().getBaseUrl() + \"/lists/\";\n JSONObject json = new JSONObject();\n json.put(\"name\", \"testList\");\n json.put(\"idBoard\", context.getDataCollection(\"board\").get(\"id\"));\n RequestManager.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n Response response = RequestManager.post(endpoint, json.toString());\n context.saveDataCollection(\"list\", response.jsonPath().getMap(\"\"));\n }", "@BeforeEach\n public void createList() {\n myListOfInts = new ArrayListDIY<>(LIST_SIZE);\n listOfInts = new ArrayList<>(LIST_SIZE);\n\n getRandomIntStream(0,10).limit(LIST_SIZE)\n .forEach(elem -> {\n listOfInts.add(elem);\n myListOfInts.add(elem);\n });\n }", "@Before\n public void createSimpleList() {\n testList = new SimpleList();\n }", "private void fillRandomList()\n\t{\n\t\trandomList.add(\"I like cheese.\");\n\t\trandomList.add(\"Tortoise can move faster than slow rodent.\");\n\t\trandomList.add(\"I enjoy sitting on the ground.\");\n\t\trandomList.add(\"I like cereal.\");\n\t\trandomList.add(\"This is random.\");\n\t\trandomList.add(\"I like typing\");\n\t\trandomList.add(\"FLdlsjejf is my favorite word.\");\n\t\trandomList.add(\"I have two left toes.\");\n\t\trandomList.add(\"Sqrt(2) = 1.414213562 ...\");\n\t\trandomList.add(\"Hi mom.\");\n\t}", "@SuppressWarnings(\"unchecked\")\r\n public void createList() {\r\n items = new int[MAX_LIST];\r\n NumItems = 0;\r\n }", "abstract void makeList();", "private static ListNode initializeListNode() {\n\n\t\tRandom rand = new Random();\n\t\tListNode result = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\tresult.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\treturn result;\n\t}", "public List()\n {\n list = new Object [10];\n }", "public ArrayList<RandomItem> getRandomItems();", "public ListHolder()\n {\n this.list = new TestList(15, false);\n }", "public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}", "private void initList() {\n\n }", "@Override\n public <T> T getRandomElement(List<T> list) {\n return super.getRandomElement(list);\n }", "ListItem createListItem();", "public static void createLists() {\r\n \t\t// Raw Meat: (A bit cold...)\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.beef);\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.porkchop);\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.chicken);\r\n \t\t\r\n \t\t// Cooked Meat: (Meaty goodness for carnivorous pets!)\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_beef);\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_porkchop);\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_chicken);\r\n \t\t\r\n \t\t// Prepared Vegetables: (For most vegetarian pets.)\r\n \t\tObjectLists.addItem(\"vegetables\", Items.wheat);\r\n \t\tObjectLists.addItem(\"vegetables\", Items.carrot);\r\n \t\tObjectLists.addItem(\"vegetables\", Items.potato);\r\n \t\t\r\n \t\t// Fruit: (For exotic pets!)\r\n \t\tObjectLists.addItem(\"fruit\", Items.apple);\r\n \t\tObjectLists.addItem(\"fruit\", Items.melon);\r\n \t\tObjectLists.addItem(\"fruit\", Blocks.pumpkin);\r\n \t\tObjectLists.addItem(\"fruit\", Items.pumpkin_pie);\r\n \r\n \t\t// Raw Fish: (Very smelly!)\r\n \t\tObjectLists.addItem(\"rawfish\", Items.fish);\r\n \r\n \t\t// Cooked Fish: (For those fish fiends!)\r\n \t\tObjectLists.addItem(\"cookedfish\", Items.cooked_fished);\r\n \t\t\r\n \t\t// Cactus Food: (Jousts love these!)\r\n \t\tObjectLists.addItem(\"cactusfood\", new ItemStack(Items.dye, 1, 2)); // Cactus Green\r\n \t\t\r\n \t\t// Mushrooms: (Fungi treats!)\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.brown_mushroom);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.red_mushroom);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.brown_mushroom_block);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.red_mushroom_block);\r\n \t\t\r\n \t\t// Sweets: (Sweet sugary goodness!)\r\n \t\tObjectLists.addItem(\"sweets\", Items.sugar);\r\n \t\tObjectLists.addItem(\"sweets\", new ItemStack(Items.dye, 1, 15)); // Cocoa Beans\r\n \t\tObjectLists.addItem(\"sweets\", Items.cookie);\r\n \t\tObjectLists.addItem(\"sweets\", Blocks.cake);\r\n \t\tObjectLists.addItem(\"sweets\", Items.pumpkin_pie);\r\n \t\t\r\n \t\t// Fuel: (Fiery awesomeness!)\r\n \t\tObjectLists.addItem(\"fuel\", Items.coal);\r\n \t\t\r\n \t\t// Custom Entries:\r\n \t\tfor(String itemListName : itemListNames) {\r\n \t\t\taddFromConfig(itemListName.toLowerCase());\r\n \t\t}\r\n \t}", "@Test\n public void testCreateList() throws Exception {\n System.out.println(\"createList\");\n ListType type = ListType.PUBLIC;\n WordList result = WordListApi.createList(token, testListName, testListDescription, type);\n\n assertNotNull(result);\n assertNotNull(result.getId());\n assertEquals(username, result.getUsername());\n assertEquals(token.getUserId(), result.getUserId());\n assertEquals(testListName, result.getName());\n assertEquals(testListDescription, result.getDescription());\n\n testList = result;\n }", "public <T> T of(List<T> list) {\n return list.get(random.nextInt(list.size() - 1));\n }", "@Test\r\n\tvoid testCreateList() {\r\n\t\tSortedList list = new SortedList(\"New List\");\r\n\r\n\t\tif (!list.getListName().equals(\"New List\")) {\r\n\t\t\tfail(\"List name does not match input\");\r\n\t\t}\r\n\t\tif (list.getSize() != 0) {\r\n\t\t\tfail(\"List size incorrect\");\r\n\t\t}\r\n\t\tif (list.getHead() != null) {\r\n\t\t\tfail(\"Head was set incorrectly\");\r\n\t\t}\r\n\t}", "private Lists() { }", "public static <T> List<T> createList() {\n\t\treturn Collections.emptyList();\n\t}", "public void randomize()\n {\n for (int i=0; i<list.length; i++)\n list[i] = (int)(Math.random() * 100) + 1;\n }", "private IUnit getRandomListUnit(){\n\t\treturn unitList.get(rnd.nextInt(unitListSize()));\n\t}", "public list() {\r\n }", "abstract protected Object newList( int capacity );", "List() {\n final int ten = 10;\n list = new int[ten];\n size = 0;\n }", "private static List<Integer> initLista(int tamanho) {\r\n\t\tList<Integer> lista = new ArrayList<Integer>();\r\n\t\tRandom rand = new Random();\r\n\r\n\t\tfor (int i = 0; i < tamanho; i++) {\r\n\t\t\tlista.add(rand.nextInt(tamanho - (tamanho / 10) + 1)\r\n\t\t\t\t\t+ (tamanho / 10));\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "public RandomizedCollection() {\n map=new HashMap();\n li=new ArrayList();\n rand=new Random();\n }", "public List<Fruit> generateShuffled(int listType) {\r\n final List<Fruit> list = innerGenerate(listType);\r\n Collections.shuffle(list);\r\n return Collections.unmodifiableList(list);\r\n }", "public List() {\n this.list = new Object[MIN_CAPACITY];\n this.n = 0;\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 }", "public SpyList() {\r\n }", "@Override\n\tpublic List<BookVO> randomList() {\n\t\tList<BookVO> randomList =bookDAO.randomList();\n\t\treturn randomList;\n\t}", "public List<Integer> getRandomElement(List<Integer> list) {\n\t\t//Random rand = new Random(); \n\t\tList<Integer> newList = new ArrayList<>();\n\t\t//newList.add(10);\n\n//\t\tfor(int i=0;i<5;i++) {\n//\t\tif(newList.size()<4) {\n//\t\t\tint n=Random(list);\n//\t\t\tif(newList.contains(n)) {\n//\t\t\t\t\n//\t\t\t}else {\n//\t\t\t\tnewList.add(n);\n//\t\t\t}\n//\t\t}\n//\t\t}\n\t\twhile(newList.size()<=2) {\n\t\t\tint n=Random(list);\n\t\t\tif(newList.contains(n)) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tnewList.add(n);\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t\n\t\treturn newList;\n\t}", "public Item generateItem()\n {\n Random rand = new Random();\n int item = rand.nextInt(itemList.size());\n return itemList.get(item);\n }", "public static Integer[] randList(int size){\r\n Random generator = new Random();\r\n Integer[] list = new Integer[size];\r\n for(int i=0; i<size; i++){\r\n list[i]=generator.nextInt(10);\r\n }\r\n System.out.println(\"random list of \" + size + \" items\");\r\n for(Integer i: list){\r\n System.out.print(i + \" \");\r\n }\r\n System.out.println(\"\\n\");\r\n return list;\r\n }", "private <T> T getRandomElement(List<T> list) {\n return list.get(randomInt(0, list.size()));\n }", "public void genLists() {\n\t}", "public List<Fruit> generate(int listType) {\r\n return Collections.unmodifiableList(innerGenerate(listType));\r\n }", "public static ArrayList<Integer> createRandomList(int n) {\n\n\t\tArrayList<Integer> list = new ArrayList<>();\n\t\tRandom rand = new Random();\n\n\t\tint max = 1000000;\n\t\tint min = -1000000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint value = (int) ((Math.random() * (max - min)) + min);\n\t\t\tlist.add(value);\n\t\t}\n\t\treturn list;\n\t}", "@Test\n public void testList() {\n SLNode one = new SLNode(1, null);\n SLNode twoOne = new SLNode(2, one);\n SLNode threeTwoOne = new SLNode(3, twoOne);\n\n SLNode x = SLNode.of(3, 2, 1);\n assertEquals(threeTwoOne, x);\n }", "public void setRandomItems(ArrayList<RandomItem> items);", "public MyList() {\n this(\"List\");\n }", "public FriendList createFriendList();", "private void initList() {\n\n\t\tfor (int i = 0; i < lstPool.size(); i++) {\n\t\t\tpoolList.add(createPool(\"nomPool\", lstPool.get(i).getNomPool()));\n\t\t}\n\t}", "@Test\n void testInitAnimalGame(){\n ArrayList<AnimalStarWars> list = game.initListAnimals();\n assertNotNull(list,\"create list Animal\");\n assertEquals(11,list.size(),\"create 11 object\");\n }", "public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }", "@Test\n\tpublic void createListFromList() {\n\t\tList<String> list = new ArrayList<>();\n\t\tlist.add(\"AAPL\");\n\t\tlist.add(\"MSFT\");\n\n\t\t// Create a copy using constructor of ArrayList\n\t\tList<String> copy = new ArrayList<>(list);\n\n\t\tassertTrue(list.equals(copy));\n\t}", "public DLList() {\r\n init();\r\n }", "public static <T> T getRandomElement(List<T> list) {\n \tint index = (int) (Math.random() * list.size());\n \treturn list.get(index);\n }", "private List<User> createUserList() {\n for (int i = 1; i<=5; i++) {\n User u = new User();\n u.setId(i);\n u.setEmail(\"user\"+i+\"@mail.com\");\n u.setPassword(\"pwd\"+i);\n userList.add(u);\n }\n return userList;\n }", "public MutiList() {\n\t\tsuper();\n\t\tthis.myList = new ArrayList<>();\n\t}", "public ListTimer(List<Integer> list, long elemGenSeed){\n\t\tsuper(elemGenSeed);\n\t\tthis.list = list;\n\n\t}", "public Adapter() {\n super();\n this.listItemsBT = new ArrayList<>();\n /*Random random = new Random();\n for(int i = 0; i<50;i++){\n listItemsBT.add(new ItemBT(\"El vic xd\" + i, \"10:12:... NUMBER: \"+i, random.nextBoolean()));\n }*/\n }", "ListString createListString();", "ListValue createListValue();", "public List<Food> requestAction4(){\n\n List<Food> foodList = new ArrayList<>();\n Food food = new Food();\n for(int i=0;i<10;i++){\n\n Random random = new Random();\n int n = random.nextInt(10) +1;\n // random.nextInt(10) + 1;\n food.setId(i+1);\n food.setName(\"Food :\"+n);\n food.setDescriptiom(\"Food Description.................. \"+i);\n\n foodList.add(food);\n\n }\n\n\n return foodList;\n }", "public AList() {\n items = (TypeHere[]) new Object[100];\n size = 0;\n }", "public MyList(String name) {\n nameList = name;\n }", "@SuppressWarnings(\"unchecked\")\r\n \tpublic List() {\r\n \t\titems = (T[]) new Object[INIT_LEN];\r\n \t\tnumItems = 0;\r\n \t\tcurrentObject = 0;\r\n \t}", "public static <T> List<T> createList (T... args) {\n\tif (args == null) { return new ArrayList<T>(); };\n\treturn new ArrayList<T>(Arrays.asList(args));\n }", "public List createUserList()\r\n{\r\n\tUser madhu=new User(\"[email protected]\", \"madhu\");\r\n\tUser krishna=new User(\"[email protected]\", \"krishna\");\t\r\n\r\n\tList listOfUsers = new ArrayList();\r\n\tlistOfUsers.add(madhu);\r\n\tlistOfUsers.add(krshna);\r\n\treturn listOfUsers;\r\n}", "@Before\r\n\tpublic void setList() {\r\n\t\tthis.list = new DoubleList();\r\n\t\tfor (int i = 0; i < 15; i++) {\r\n\t\t\tlist.add(new Munitions(i, i + 1, \"iron\"));\r\n\t\t}\r\n\t}", "@Override\n public boolean isListFactory() {\n return true;\n }", "@Test\n\tpublic void createTypedList() {\n\t\tList<String> list = new ArrayList<>();\n\n\t\tlist.add(\"String\");\n\n\t\tassertEquals(list, Collections.singletonList(\"String\"));\n\t}", "public linkedList() { // constructs an initially empty list\r\n\r\n }", "public int getRandom() {\n return _list.get( rand.nextInt(_list.size()) );\n }", "@Test\n\tpublic void createListWithInitialCapacity() {\n\t\tList<String> list1 = new ArrayList<>();\n\n\t\t// You can set capacity using constructor of ArrayList\n\t\tList<String> list2 = new ArrayList<>(20);\n\n\t\tassertTrue(list1.isEmpty());\n\t\tassertTrue(list2.isEmpty());\n\t\tassertTrue(list1.equals(list2));\n\t}", "public AList() {\n size = 0;\n items = (Item[]) new Object[100];\n }", "public AList() {\n size = 0;\n items = (Item[]) new Object[100];\n }", "@Test \n\tpublic void generateListsTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// select 'lists' radio button \n\t\thomePage.selectContentType(\"lists\");\n\n\t\t// enter '9' in the count field \n\t\thomePage.inputCount(\"9\");\n\n\t\t// click \"Generate Lorum Ipsum\" button\n\t\thomePage.generateLorumIpsum();\n\t\tGeneratedPage generatedPage = new GeneratedPage(driver);\n\n\t\t// validate the number of lists generated \n\t\tint listCount = generatedPage.getActualGeneratedCount(\"lists\");\n\t\tAssert.assertTrue(\"Incorrect list count\",listCount == 9);\n\n\t\t// validate the report text // ex: \"Generated 10 paragraphs, 1106 words, 7426 bytes of Lorem Ipsum\" \n\t\tAssert.assertEquals(\"Generated \" + generatedPage.getReport(\"paragraphs\") + \n\t\t\t\t\" paragraphs, \" + generatedPage.getReport(\"words\") + \n\t\t\t\t\" words, \" + generatedPage.getReport(\"bytes\") + \n\t\t\t\t\" bytes of Lorem Ipsum\", generatedPage.getCompleteReport()); \n\n\t}", "public ListTemplate() {\n }", "int createList(int listData) {\n\t\tint list = newList_();\n\t\t// m_lists.set_field(list, 0, null_node());//head\n\t\t// m_lists.set_field(list, 1, null_node());//tail\n\t\t// m_lists.set_field(list, 2, null_node());//prev list\n\t\tm_lists.setField(list, 3, m_list_of_lists); // next list\n\t\tm_lists.setField(list, 4, 0);// node count in the list\n\t\tm_lists.setField(list, 5, listData);\n\t\tif (m_list_of_lists != nullNode())\n\t\t\tsetPrevList_(m_list_of_lists, list);\n\n\t\tm_list_of_lists = list;\n\t\treturn list;\n\t}", "public RandomizedCollection() {\n nums = new ArrayList<>();\n num2Index = new HashMap<>();\n rand = new Random();\n }", "public AddRandomList() {\n setTitleText(\"Add new random List\");\n\n addButton.setText(\"Add\");\n addButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addButtonActionPerformed(evt);\n }\n });\n addButton(addButton);\n }", "private void setUpList() {\n\n\n Contents s1 = new Contents(R.drawable.bishist,\"Bishisht Bhatta\",\"+977-9849849525\", Color.parseColor(\"#074e87\"));\n list.add(s1);\n Contents s2 = new Contents(R.drawable.sagar,\"Sagar Pant\",\"+977-9865616888\",Color.parseColor(\"#074e87\"));\n list.add(s2);\n Contents s3 = new Contents(R.drawable.rabins,\"Rabin Nath\",\"+977-9848781007\",Color.parseColor(\"#074e87\"));\n list.add(s3);\n\n\n }", "public TodoList() {\n todoItems = new ArrayList<TodoItem>();// declares and assigns todoItems to the todo list\n }", "public RDFList createRDFList(List<Expression> list, int arobase) {\r\n RDFList rlist = new RDFList(newBlankNode(), list); \r\n if (arobase == L_DEFAULT){\r\n arobase = listType;\r\n }\r\n switch (arobase){\r\n \r\n case L_LIST: \r\n rlist = complete(rlist);\r\n break;\r\n \r\n case L_PATH:\r\n rlist = path(rlist);\r\n break;\r\n }\r\n return rlist;\r\n }", "private MyIntegerList generatedPopulatedList() {\n final MyIntegerList mil = new MyIntegerList();\n\n mil.push(1);\n mil.push(2);\n mil.push(1);\n mil.push(6);\n mil.push(6);\n mil.push(7);\n mil.push(2);\n mil.push(2);\n mil.push(0);\n mil.push(5);\n\n return mil;\n }", "private static void initializeLargeRandomList(List<Student> foo) \r\n\t{\r\n\t\t/** query the user for the number of items to sort */\r\n\t\tString amountOfData = JOptionPane.showInputDialog(\"Enter the number of data items\");\r\n\t\tint n = Integer.parseInt ( amountOfData );\r\n\r\n\t\t/** create a list of Strings that is very un-sorted */\r\n\t\tfor ( int i=n-1; i >= 0; i-- ) \r\n\t\t\tfoo.add( new Student(\"alice \" + (n+i), \"MTH\") ); \r\n\t}", "ListOfBooks(){\n \tlist = new LinkedList<Book>();\n }", "public StudentList() {\r\n\t\t\r\n\t\tlist = new Student[GROW_SIZE];\r\n\t}", "public void genLists() {\n\t\tItem noitem = new Item(\"nothing\", \"You don't see that here.\", \"no_item\", \"\", true);\r\n\t\titems.put(noitem.getId(), noitem);\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//DataInputStream in = new DataInputStream(new FileInputStream(ITEM_FILE));\r\n\t\t\tDataInputStream in = new DataInputStream(getClass().getResourceAsStream(ITEM_FILE));\r\n\t\t\ttry {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tItem new_item = Item.readItem(in);\r\n\t\t\t\t\titems.put(new_item.getId(), new_item);\r\n\t\t\t\t}\r\n\t\t\t} catch (EOFException eof) {}\r\n\t\t\tin.close();\r\n\t\t\t\r\n\t\t\tin = new DataInputStream(getClass().getResourceAsStream(ROOM_FILE));\r\n\t\t\ttry {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tRoom new_room = Room.readRoom(in, items);\r\n\t\t\t\t\trooms.put(new_room.getId(), new_room);\r\n\t\t\t\t}\r\n\t\t\t} catch (EOFException eof) {}\r\n\t\t\tin.close();\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\tplayer.setCurrentRoom(getRoom(\"start\"));\r\n\t}", "public ContactList()\n {\n myList = new ArrayList<>();\n }", "List<User> getRandomUsers(List<User> uList, int num);", "@Override\n\tpublic void buildComponent(StructureComponent structurecomponent, List list, Random random) {\n\t}", "public List()\n\t{\n\t\tthis(null, null);\n\t}", "public TempList() {\n list = new ArrayList<T>();\n }", "List() {\n this.length = 0;\n }", "public RandomizedCollection() {\n\n }", "LI createLI();", "public void init()\n {\n for(int i = 0 ; i <= 30 ; i++){\n enemies.add(new theEnemies(r1.nextInt(200),r1.nextInt(200)));\n }\n // Test removing of item from linked list.\n enemies.remove(0);\n }", "public PersonList() {\r\n this.personList = new ArrayList<Person>();\r\n }", "public RandomizedCollection() {\n map = new HashMap<>();\n arr = new ArrayList<>();\n }", "public List<New> list();", "StringList createStringList();", "public ListItems() {\n itemList = new ArrayList();\n }", "public void makePathList() {\r\n\t\tPath p = new Path(false,false,false,false);\r\n\t\tfor(int i=0; i<15; i++) {\r\n\t\t\tp = p.randomizePath(p.makeCornerPath());\r\n\t\t\t_list.add(p);\r\n\t\t}\r\n\t\tfor(int i=0; i<13; i++) {\r\n\t\t\tp = p.randomizePath(p.makeStraightPath());\r\n\t\t\t_list.add(p);\r\n\t\t}\r\n\t\tfor(int i=0; i<6; i++) {\r\n\t\t\tp = p.randomizePath(p.makeTPath());\r\n\t\t\t_list.add(p);\r\n\t\t}\r\n\t\tCollections.shuffle(_list);\r\n\t}", "DataList createDataList();", "public Lista() {\r\n }" ]
[ "0.6955441", "0.6943084", "0.693318", "0.6884487", "0.6866235", "0.6679395", "0.66686755", "0.6554224", "0.65355897", "0.6495921", "0.64541245", "0.6448108", "0.6430855", "0.642781", "0.64248794", "0.636934", "0.63671434", "0.6364984", "0.63641626", "0.6361636", "0.6331502", "0.6306291", "0.6238166", "0.62255", "0.61716044", "0.6169786", "0.61678725", "0.6163523", "0.6152043", "0.6138059", "0.6133553", "0.61258566", "0.60637194", "0.6040787", "0.6032394", "0.60280573", "0.6010177", "0.60061383", "0.5993349", "0.5980916", "0.5978325", "0.59682053", "0.5963196", "0.59596664", "0.59576434", "0.5936956", "0.5928859", "0.5899475", "0.58863384", "0.58752054", "0.58625406", "0.58620334", "0.5858815", "0.58531284", "0.5850231", "0.58444554", "0.5835149", "0.58304685", "0.58260113", "0.58092475", "0.58021706", "0.5797493", "0.5789986", "0.5781419", "0.57644427", "0.5751549", "0.57499427", "0.57491773", "0.57486033", "0.5747797", "0.5747797", "0.57353145", "0.5734934", "0.573258", "0.5726581", "0.57198274", "0.5718226", "0.57164305", "0.57143843", "0.57138515", "0.57124156", "0.57060087", "0.57048076", "0.57029325", "0.5702495", "0.56995285", "0.56973827", "0.5692925", "0.569167", "0.56849205", "0.56763095", "0.56684554", "0.5661941", "0.565217", "0.56511474", "0.5644303", "0.5641969", "0.563957", "0.5637563", "0.56257236", "0.5618681" ]
0.0
-1
returns a random element from the list.
public T sample() { if (size == 0) { return null; } int r = new Random().nextInt(size()); return elements[r]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private <T> T getRandomElement(List<T> list) {\n return list.get(randomInt(0, list.size()));\n }", "public static <T> T getRandomElement(List<T> list) {\n \tint index = (int) (Math.random() * list.size());\n \treturn list.get(index);\n }", "public T getRandomElement() {\n\t\treturn this.itemList.get(this.getRandomIndex());\n\t}", "@Override\n public <T> T getRandomElement(List<T> list) {\n return super.getRandomElement(list);\n }", "public int getRandom() {\n int x=rand.nextInt(li.size());\n return li.get(x);\n }", "public int getRandom() {\n int i = random.nextInt(list.size());\n return list.get(i);\n }", "public int getRandom() {\n Random random = new Random();\n int i = random.nextInt(list.size());\n return list.get(i);\n }", "public int getRandom() {\n return _list.get( rand.nextInt(_list.size()) );\n }", "public int getRandom() {\n return lst.get(rand.nextInt(lst.size()));\n }", "public int getRandom() {\n int index = rnd.nextInt(list.size());\n return list.get(index).val;\n }", "public int getRandom() {\n int index = (int) Math.round(Math.random()*(list.size()-1));\n return list.get(index);\n }", "public int getRandom() {\n return elementsList.get(rand.nextInt(elementsList.size()));\n }", "public <T> T of(List<T> list) {\n return list.get(random.nextInt(list.size() - 1));\n }", "public int getRandom() {\n Random random = new Random();\n return list.get(random.nextInt(list.size()));\n }", "public int getRandom() {\n Random random = new Random();\n int val = list.get( random.nextInt(list.size()));\n return val;\n }", "public int getRandom() {\n if(list.size() <= 0) return -1;\n return list.get(new Random().nextInt(list.size()));\n }", "public int getRandom() {\n if (this.size == 0) throw new IllegalArgumentException();\n Random rand = new Random();\n int randomGetIndex = rand.nextInt(this.size);\n return this.list.get(randomGetIndex);\n }", "public int getRandom() {\n int n = l.size();\n Random rand = new Random();\n return l.get(rand.nextInt(n));\n }", "public T sample() {\r\n if (this.isEmpty()) {\r\n return null;\r\n }\r\n \r\n Random r = new Random();\r\n int rValue = r.nextInt(size);\r\n return elements[rValue];\r\n }", "public int getRandom() {\n Iterator<Integer> it = list.iterator();\n int i = (int) (Math.random()*list.size());\n for (int j = 0; j < i; j++) {\n it.next();\n }\n return it.next();\n }", "public Item generateItem()\n {\n Random rand = new Random();\n int item = rand.nextInt(itemList.size());\n return itemList.get(item);\n }", "public Item getRandomItem() {\n int index = 0;\n int i = (int) (Math.random() * getItems().size()) ;\n for (Item item : getItems()) {\n if (index == i) {\n return item;\n }\n index++;\n }\n return null;\n }", "public int getRandom() {\n Random rand = new Random();\n return list.get(rand.nextInt(linklist.size()));\n }", "public Item sample() {\n if(isEmpty()) throw new NoSuchElementException();\n int idx = StdRandom.uniform(size);\n return arr[idx];\n }", "public T next(final Random random) {\n return elements[selection.applyAsInt(random)];\n }", "public int getRandom() {\n int randomIdx = random.nextInt(valueList.size());\n return valueList.get(randomIdx);\n }", "@Override\r\n\tpublic Item sample() {\r\n\t\tint index = StdRandom.uniform(count);\r\n\t\tItem item = arr[index];\r\n\t\treturn item;\r\n\t}", "public Item sample() {\n if (N == 0) throw new java.util.NoSuchElementException();\n return collection[rnd.nextInt(N)];\n }", "public Item sample() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n return a[StdRandom.uniform(N)];\n }", "public List<Integer> getRandomElement(List<Integer> list) {\n\t\t//Random rand = new Random(); \n\t\tList<Integer> newList = new ArrayList<>();\n\t\t//newList.add(10);\n\n//\t\tfor(int i=0;i<5;i++) {\n//\t\tif(newList.size()<4) {\n//\t\t\tint n=Random(list);\n//\t\t\tif(newList.contains(n)) {\n//\t\t\t\t\n//\t\t\t}else {\n//\t\t\t\tnewList.add(n);\n//\t\t\t}\n//\t\t}\n//\t\t}\n\t\twhile(newList.size()<=2) {\n\t\t\tint n=Random(list);\n\t\t\tif(newList.contains(n)) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tnewList.add(n);\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t\n\t\treturn newList;\n\t}", "public static Dog getSomeRandomDog() {\r\n\t\treturn dogsList.get(random.nextInt(dogsList.size()));\r\n\t}", "public Item sample() {\n\t\t\n\t\tif(isEmpty()) throw new NoSuchElementException();\n\t\t\n\t\tint index = StdRandom.uniform(N);\n\t\t\t\n\t\t\t/*while(items[index] == null) {\n\t\t\t\tindex = StdRandom.uniform(length());\n\t\t\t}*/\n\n\t\treturn items[index];\n\t}", "public Item sample() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n double rand = Math.random() * N;\n int idx = (int) Math.floor(rand);\n Item item = s[idx];\n return item;\n }", "public Item sample() {\n if (N == 0) throw new NoSuchElementException();\n int idx = StdRandom.uniform(N);\n return s[first + idx];\n }", "private IUnit getRandomListUnit(){\n\t\treturn unitList.get(rnd.nextInt(unitListSize()));\n\t}", "public Item sample() {\n if (isEmpty())\n throw new NoSuchElementException();\n\n // Get random index [0, elements) and remove from array\n int randomIndex = StdRandom.uniform(0, elements);\n return values[randomIndex];\n }", "public Item sample() {\n if (size == 0) throw new NoSuchElementException();\n return array[StdRandom.uniform(size)];\n }", "public Item sample()\r\n {\r\n if (isEmpty()) throw new NoSuchElementException(\"Empty randomized queue\");\r\n\r\n int randomizedIdx = StdRandom.uniform(n);\r\n\r\n return a[randomizedIdx];\r\n }", "public Item sample(){\n if(size == 0){\n throw new NoSuchElementException();\n }\n int ri = StdRandom.uniform(size);\n \n Iterator<Item> it = this.iterator();\n \n for(int i = 0; i < ri; i++){\n it.next();\n }\n \n return it.next();\n }", "public Item sample() {\n\n\t\tif (isEmpty())\n\t\t\tthrow new NoSuchElementException();\n\n\t\tint random = (int)(StdRandom.uniform() * N);\n\t\treturn arr[random];\n\t}", "public Item sample() {\n if (this.isEmpty()) {\n throw new NoSuchElementException();\n }\n if (this.size == 1) {\n return this.storage[0];\n }\n else {\n return this.storage[StdRandom.uniform(this.currentIndex)];\n }\n }", "public Item sample() {\n \t\tif (size == 0) {\n \t\t\tthrow new NoSuchElementException();\n \t\t}\n \t\treturn (Item) items[StdRandom.uniform(size)];\n \t}", "public Item sample() {\n if (n == 0) throw new NoSuchElementException();\n return arr[StdRandom.uniform(n)];\n }", "public Item sample() {\n\t\tif (size == 0)\n\t\t\tthrow new java.util.NoSuchElementException();\n\n\t\tint index = StdRandom.uniform(size);\n\t\treturn queue[index];\n\t}", "public int getRandom() {\r\n var list = new ArrayList<>(set);\r\n return list.get(new Random().nextInt(set.size()));\r\n }", "public Item sample() {\n\n if (size == 0) {\n throw new NoSuchElementException();\n }\n\n int r = random.nextInt(size);\n return queue[r];\n }", "public Item sample() {\n if (size == 0) throw new NoSuchElementException();\n return queue[StdRandom.uniform(size)];\n }", "public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"Empty queue\");\n\n int rdm = StdRandom.uniform(n);\n return a[rdm];\n }", "public Item sample() {\n \t if (size==0){\n \t \tthrow new NoSuchElementException();\n \t }\n \t int index = StdRandom.uniform(size);\n // System.out.println(\"The index of the number is: \" + index);\n int k = 0;\n \t Node p=sentinel.next.next;\n \t for (int i = 0; i < index; i++){\n p = p.next; \n \t }\n \t return p.item;\n }", "public T getRandom()\n\t{\n\t\tDLLNode<T> newNode = head;\n\t\tint randomNum = (int)(Math.random()*size);\n\t\tfor(int i =0; i<randomNum; i++){\n\t\t\tnewNode= newNode.getNext();\n\t\t}\n\t\treturn newNode.getData();\n\t}", "public int getRandom() {\n int idx;\n Random rand;\n \n rand = new Random();\n idx = rand.nextInt(set.size());\n return set.get(idx);\n }", "public int getRandom() {\n ListNode pick = null;\n ListNode p = head;\n int count = 1;\n while (p != null) {\n if (rand.nextInt(count) == 0) {\n pick = p;\n }\n p = p.next;\n count++;\n }\n return pick.val;\n }", "public int getRandom() {\n return sub.get(rand.nextInt(sub.size()));\n }", "private int getRandNumber() {\n int randNum = 0;\n Random generator = new Random();\n randNum = generator.nextInt(LIST.length()-1);\n return randNum;\n }", "public ArrayList<RandomItem> getRandomItems();", "public Item sample() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn queue[StdRandom.uniform(0,n)];\r\n\t\t}\r\n\t}", "public int getRandom() {\n return arr.get(r.nextInt(arr.size()))[0];\n }", "public Item sample() {\n if (isEmpty()) {\n throw new java.util.NoSuchElementException();\n }\n int sampleIndex = StdRandom.uniform(1, size + 1);\n Item item;\n //case 1: return first item\n if (sampleIndex == 1) {\n item = first.item;\n }\n //case 2 :return last item\n else if (sampleIndex == size) {\n item = last.item;\n }\n //case 3: general case in between\n else {\n Node temp = first;\n while (sampleIndex != 1) {\n temp = temp.next;\n sampleIndex--;\n }\n item = temp.item;\n }\n return item;\n }", "public int getRandom() {\n return A.get(r.nextInt(A.size()));\n }", "public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"\");\n int i = randomNotEmptyIndex();\n return queue[i];\n }", "public static <T> T random(Collection<T> coll)\r\n\t{\r\n\t\tif (coll.size() == 0) return null;\r\n\t\tif (coll.size() == 1) return coll.iterator().next();\r\n\t\tint index = MCore.random.nextInt(coll.size());\r\n\t\treturn new ArrayList<T>(coll).get(index);\r\n\t}", "public static Fruit getRandom(List<Fruit> fruits) {\r\n return fruits.get(new Random().nextInt(fruits.size()));\r\n }", "public int getRandom() {\n int index = (int) Math.floor(Math.random() * size);\n return nums[index];\n }", "public Verbum getWord(){\r\n\t\t// Pick random starting point in the linked list\r\n\t\tint start = (int)(Math.random() * words.size());\r\n\t\tDSElement<Verbum> w = words.first;\r\n\t\tfor(int i = 0; i < start; i++)\r\n\t\t\tw = w.getNext();\r\n\t\treturn w.getItem();\r\n\t}", "public Item sample() {\n if (size == 0) throw new java.util.NoSuchElementException(\"Queue is empty!\");\n\n return items[StdRandom.uniform(size)];\n }", "public int getRandom() {\n ListNode curr = head2;\n int r = rand.nextInt(size);\n for (int i=0; i<r; i++) {\n if (curr!= null){\n curr = curr.next;\n }\n }\n return curr.val;\n }", "public int getRandom() {\r\n\r\n\t\tListNode temp = this.head;\r\n\t\tListNode random = this.head;\r\n\r\n\t\tint c = 1;\r\n\r\n\t\tfor (; temp != null; temp = temp.next) {\r\n\r\n\t\t\tint r = new Random().nextInt(c) + 1;\r\n\r\n\t\t\tc++;\r\n\t\t\tif (r == 1) {\r\n\t\t\t\trandom = temp;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn random.val;\r\n\r\n\t}", "public Item sample(){\n if(itemCount == 0){\n throw new NoSuchElementException(\"Queue is empty\");\n }\n int rand = StdRandom.uniform(array.length);\n while(array[rand] == null){ // if it's a null value\n rand = StdRandom.uniform(array.length); // pick another one\n }\n return array[rand];\n }", "public int getRandom() {\r\n if ((itemSize / nextIndexInCache) < 0.25) {\r\n rebuildCache();\r\n }\r\n while (true) {\r\n int i = random.nextInt(nextIndexInCache);\r\n int v = cache[i];\r\n if (contains(v)) {\r\n return v;\r\n }\r\n }\r\n }", "public int getRandom() {\n return nums.get(rand.nextInt(nums.size()));\n }", "public int getRandom() {\n return nums.get((int) (Math.random() * nums.size()));\n }", "public Item sample() {\n if (size == 0) \n throw new NoSuchElementException(\"the RandomizedQueue is empty\");\n return rqArrays[StdRandom.uniform(0, size)];\n }", "public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"deque underflow \");\n Item item;\n int randomIndex = StdRandom.uniform(N);\n while(randomizedQueue[randomIndex] == null){\n randomIndex = StdRandom.uniform(N);\n }\n item = randomizedQueue[randomIndex];\n \n return item;\n }", "public int getRandom() {\n return nums.get(random.nextInt(nums.size()));\n }", "public int getRandom() {\n return nums.get(random.nextInt(nums.size()));\n }", "public int getRandom() {\n // get a random integer from [0, n) where n is the size of the value list\n return values.get(random.nextInt(values.size()));\n }", "public Cell randomCell() {\n ArrayList<Cell> available = this.randomCellHelper();\n return available.get(new Random().nextInt(available.size()));\n\n }", "public Hazard selectRandom() {\r\n\t\tRandom gen = new Random();\r\n\t\treturn hazards.get(gen.nextInt(hazards.size()));\r\n\t}", "public int getRandom() {\n Random random = new Random();\n return nums.get(random.nextInt(nums.size()));\n }", "public int getRandom() {\n int n = r.nextInt(this.length);\n ListNode curr = this.head;\n \n while (n > 0) {\n curr = curr.next;\n n--;\n }\n \n return curr.val;\n }", "public Item sample()\n {\n checkNotEmpty();\n\n return items[nextIndex()];\n }", "private int randomIndex() {\n return StdRandom.uniform(head, tail);\n }", "private static ItemType random() {\n return ITEM_TYPES.get(RANDOM.nextInt(SIZE));\n }", "private Item chooseValidItem()\n {\n\n // Sets the intial random value.\n int numberRandom = random.nextInt(items.size());\n\n while (trackItems.contains(items.get(numberRandom).getName())){\n numberRandom = random.nextInt(items.size());\n }\n\n // Loops until a unused value is assigned to numberRandom,\n // within the array list size.\n \n trackItems.push(items.get(numberRandom).getName());\n\n return items.get(numberRandom);\n }", "public Item sample() {\n if (isEmpty()) throw new NoSuchElementException();\n return items[index()];\n }", "public int getRandom() {\n Random rand = new Random();\n int idx = rand.nextInt(validLength);\n return set.get(idx);\n }", "public Random getRandom() {\n\t\treturn (rand);\n\t}", "public String getJoke(){\n Random rand = new Random();\n int number=rand.nextInt(jokeList.size());\n\n return jokeList.get(number);\n }", "public int getRandom() {\n \n return this.nums.get(this.rand.nextInt(this.nums.size()));\n \n }", "public int getRandom() {\n return data.get(random.nextInt(data.size()));\n }", "public Item sample() {\n if (qSize == 0) {\n throw new java.util.NoSuchElementException(\"Empty queue\");\n }\n\n return queue[StdRandom.uniform(qSize)];\n }", "public DataSetMember<t> getRandomMember()\n\t{\n\t\tRandom R = new Random();\n\t\tint i = R.nextInt(_data.size());\n\t\treturn _data.get(i);\n\t}", "public int getRandom() {\r\n\r\n\t\tint rand = (int) (Math.random() * BUCKET_SIZE);\r\n\t\tfor (int i = rand; (i + 1) % BUCKET_SIZE != rand; i = (++i) % BUCKET_SIZE) {\r\n\t\t\tif (bucket[i] == null)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tint rand2 = (int) (Math.random() * bucket[i].size);\r\n\r\n\t\t\tNode p = bucket[i].list;\r\n\t\t\tfor (int j = 0; j < rand2; ++j)\r\n\t\t\t\tp = p.next;\r\n\r\n\t\t\treturn p.val;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "private V arbitraryApex(List<V> Sstar){\n\t\tint i = rand.nextInt(Sstar.size());\n\t\treturn Sstar.get(i);\n\n\t}", "public String getRandom() {\n\t return word.get(new Random().nextInt(word.size()));}", "private Alien getRandomAlien() {\n\t\twhile(roamingAliens >= 0){\n\t\t\tint i = random.nextInt(gameObject.size());\n\t\t\tif(gameObject.get(i)instanceof Alien)\n\t\t\t\treturn (Alien) gameObject.get(i);\n\t\t}\n\t\treturn null;\n\t}", "public int getRandom() {\n return data.get(random.nextInt(data.size()));\n }", "T getElementFromIndex(int index) throws ListException;", "public static String[] getRandomElements(ArrayList<String> list, \n int totalItems) \n { \n Random rand = new Random(); \n \n ArrayList<String> oldList = new ArrayList<>();\n for (int i = 0; i < list.size(); i++) {\n \toldList.add(list.get(i));\n }\n \n String[] out = new String[totalItems];\n for (int i = 0; i < totalItems; i++) { \n \n // take a random index between 0 to size \n // of given List \n int randomIndex = rand.nextInt(oldList.size()); \n \n // add element in temporary list \n out[i] = oldList.get(randomIndex); \n \n // Remove selected element from original list \n oldList.remove(randomIndex); \n } \n \n return out; \n }", "public Vector<String> getRandom(){\n\t\t\n\t\tAssert.pre(size()>0, \"data must be initialized\");\n\t\t\n\t\tint n = r.nextInt(size());\n\t\t\n\t\treturn get(n);\n\t}" ]
[ "0.8660583", "0.84192747", "0.8358425", "0.8058066", "0.80115414", "0.8010426", "0.79590166", "0.79393667", "0.79290086", "0.78772366", "0.78555274", "0.78445035", "0.7775783", "0.77437127", "0.76615185", "0.76353854", "0.75522065", "0.75321114", "0.7526338", "0.74856406", "0.7445676", "0.74004483", "0.7255023", "0.72333086", "0.7205772", "0.71943027", "0.7142451", "0.71263474", "0.71026963", "0.70978814", "0.7068374", "0.7052476", "0.7041673", "0.7039898", "0.70375353", "0.7016287", "0.6988422", "0.6957667", "0.69562644", "0.69314516", "0.69185334", "0.6905941", "0.6878372", "0.68749875", "0.6874946", "0.68502295", "0.6821133", "0.67846525", "0.6773994", "0.6737417", "0.67224634", "0.6721434", "0.6715477", "0.66851246", "0.6683305", "0.6665468", "0.6652534", "0.6633117", "0.6632147", "0.6630479", "0.6619802", "0.6615668", "0.66118175", "0.66088045", "0.66061854", "0.6599037", "0.65944207", "0.65820456", "0.65561956", "0.6530319", "0.6520829", "0.6482245", "0.6471427", "0.64648235", "0.6463659", "0.64554495", "0.64453685", "0.64424354", "0.64421797", "0.6437534", "0.64308953", "0.6416344", "0.6413979", "0.6375643", "0.6373058", "0.63611376", "0.631507", "0.62980086", "0.62817794", "0.62618273", "0.6251207", "0.62212557", "0.62081856", "0.61971515", "0.6180905", "0.61807245", "0.6178292", "0.61779165", "0.6154482", "0.61366343" ]
0.7458382
20
returns the size of the list.
public int size() { return size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSize(){\n\t\tint size = list.size();\n\t\treturn size;\n\n\t}", "public int size()\n\t{\n\t\treturn listSize;\n\t}", "public int size()\n\t{\n\t\treturn list.size();\n\t}", "public int size()\n\t{\n\t\treturn list.size();\n\t}", "public int size() {\n\t\treturn list.size();\n\t}", "public int size(){\n\t\treturn list.size();\n\t}", "public int size(){\n\t\treturn list.size();\n\t}", "public int size() {\n\t return list.size();\n }", "public int getSize() \r\n {\r\n return list.size();\r\n }", "public int getSize() {\n return list.size();\n }", "public int size() {\n return list.size();\n }", "public int size()\n {\n return list.size();\n }", "public int size() {\n return list.size();\n }", "public int getSize () {\n return this.list.size();\n }", "public synchronized int size(){\n return list.size();\n }", "public int getSize()\n {\n return pList.size();\n }", "public int size()\n {\n if(_list!=null)\n return _list.size();\n return 0;\n }", "public int size() {\n return lists.getSize();\n }", "@Override\n\tpublic int size() {\n\t\t\n\t\treturn list.size();\n\t}", "public int size(){\n return list.size();\n }", "public int size(){\n\n \treturn list.size();\n\n }", "public int getListSize() {\n return listSize;\n }", "public int getSize() {\n\t\t\treturn lists.size();\r\n\t\t}", "@Override\n\tpublic int getSize()\n\t{\n\t\treturn list.size();\n\t}", "public int size() {\n\t\tint numElements = 0;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tif (list[i] != null) {\n\t\t\t\tnumElements++;\n\t\t\t}\n\t\t}\n\t\treturn numElements;\n\t}", "@Override\n public int size() {\n\n Node nodePointer = listHead;\n int size = 0;\n while (nodePointer != null) {\n size += 1;\n nodePointer = nodePointer.next;\n }\n return size;\n }", "@Override\n public int size() {\n return list.size();\n }", "public int listSize(){\r\n return counter;\r\n }", "int getListSize(int list) {\n\t\treturn m_lists.getField(list, 4);\n\t}", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n counter += 1;\n }\n return counter;\n }", "public int getSizeList(){\r\n\t\tint size;\r\n\t\tif (arrayWordsList != null )\r\n\t\t\tsize = arrayWordsList.length;\r\n\t\telse\r\n\t\t\tsize = 0;\r\n\t\t\r\n\t\treturn size;\r\n\t}", "public int size(){\n if (head == null) {\n // Empty list\n return 0;\n } else {\n return head.size();\n }\n }", "public int getSize() {\n synchronized (itemsList) {\n return itemsList.size();\n }\n }", "public int getSize() {\r\n return list.getItemCount();\r\n }", "public int size(){\n int size = 0;\n for(LinkedList<E> item : this.data){\n size += item.size();\n }\n return size;\n }", "public int size()\n { \t\n \t//initialize a counter to measure the size of the list\n int sizeVar = 0;\n //create local node variable to update in while loop\n LinkedListNode<T> localNode = getFirstNode();\n \n //update counter while there are still nodes\n while(localNode != null)\n {\n sizeVar += 1;\n localNode = localNode.getNext();\n }\n \n return sizeVar;\n }", "@Override\n public int size() {\n if(isEmpty()){ //if list is empty, size is 0\n return 0;\n }\n /*int size = 1; //if list is not empty, then we have at least one element in it\n DLNode<T> current = last; //a reference, pointing to the last element\n while(current.prev != null){\n current = current.prev;\n size++;\n }*/\n \n int count = 0;\n DLNode<T> p = first;\n while (p != null){\n count++;\n p = p.next;\n }\n //return size;\n return count;\n }", "public int size() {\n\t\tint size = 0;\n\t\tfor (List<?> list : lists) size += list.size();\n\t\treturn size;\n\t}", "public int getListCount() {\n return list_.size();\n }", "public int size() {\n//\t\tint rtn = 0;\n//\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n//\t\t\trtn++;\t\n//\t\t}\n//\t\treturn rtn;\n\t\treturn mySize;\n\t}", "public int size() {\n // DO NOT MODIFY THIS METHOD!\n return size;\n }", "public int getListSize() {\n return getRootNode().getItems().size();\n }", "public int size() {\n // DO NOT MODIFY!\n return size;\n }", "public int getListCount() {\n return list_.size();\n }", "public int size()\r\n {\r\n return nItems;\r\n }", "public int size() {\n\t\tint rtn = 0;\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\trtn++;\n\t\t}\n\t\tthis.mySize = rtn;\n\t\treturn rtn;\n\t}", "public int size() {\r\n\t\tthis.size= 0;\r\n\t\tfor (DirectoryComponent item : DirectoryList){\r\n\t\t\tthis.size += item.size();\r\n\t\t}\r\n\t\treturn this.size;\r\n\t}", "public int length()\n {\n if(integerList == null)\n return 0;\n else\n return integerList.length;\n }", "public int size() {\r\n if (NumItems > Integer.MAX_VALUE) {\r\n return Integer.MAX_VALUE;\r\n }\r\n return NumItems;\r\n }", "public int size() {\n\t\t// DO NOT CHANGE THIS METHOD\n\t\treturn numElements;\n\t}", "public int getSize()\n\t{\n\t\t// returns n, the number of strings in the list: O(n).\n\t\tint count = 0;\n \t\tnode p = head; \n\t\twhile (p != null)\n \t\t{\n \t\tcount ++;\n \t\tp = p.next;\n \t\t}\n \t\treturn count;\n\t}", "public int size() {\n return nItems;\n }", "public int size()\r\n\t{\r\n\t\treturn numItems;\r\n\r\n\t}", "public int size()\n {\n \tDNode<E> temp=first;\n \tint count=0;\n \twhile(temp!=null)\t\t//Iterating till the end of the list\n \t{\n \t\tcount++;\n \t\ttemp=temp.next;\n \t}\n \treturn count;\n }", "int size()\n\t{\n\t\t//Get the reference of the head of the Linked list\n\t\tNode ref = head;\n\t\t\n\t\t//Initialize the counter to -1\n\t\tint count = -1;\n\t\t\n\t\t//Count the number of elements of the Linked List\n\t\twhile(ref != null)\n\t\t{\n\t\t\tcount++;\n\t\t\tref = ref.next;\n\t\t}\n\t\t\n\t\t//Return the number of elements as the size of the Linked List\n\t\treturn count;\n\t}", "public int size() {\n return numItems;\n }", "public int size()\r\n\t{\r\n\t\treturn count;\r\n\t}", "public int size() {\r\n\t\t\tint size = 0;\r\n\t\t\tListNode counter = header;\r\n\t\t\twhile (counter != null) {\r\n\t\t\t\tsize++;\r\n\t\t\t\tcounter = counter.next;\r\n\t\t\t}\r\n\t\t\treturn size;\r\n\t\t}", "public static int size() \r\n\t{\r\n\t\treturn m_count;\r\n }", "public int size()\n\t{\n\t\treturn size;\n\t}", "public int size()\n\t{\n\t\treturn size;\n\t}", "int length() {\n return this.myArrayList.size();\n }", "public int size()\r\n {\r\n return size;\r\n }", "public int size()\r\n {\r\n return size;\r\n }", "public int size()\r\n {\r\n return size;\r\n }", "public int size()\r\n {\r\n return count;\r\n }", "@Override\n\tpublic int size() {\n\n\t\treturn this.numOfItems;\n\t}", "@Test\n public void getSizeOfList() {\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n list.add(3);\n list.add(4);\n\n assertEquals(4, list.size());\n }", "public int size() {\n // TODO: Implement this method\n return size;\n }", "public int size()\r\n\t{\r\n\t\treturn this.size;\r\n\t}", "public int size() {\n\t\tint count = 0;\n\t\tListNode current = front;\n\t\twhile (current != null) {\n\t\t\tcurrent = current.next;\n\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int ListLength(){\n int j = 0;\n // Get index of the first element with value\n int i = StaticLinkList[MAXSIZE-1].cur;\n while (i!=0)\n {\n i = StaticLinkList[i].cur;\n j++;\n }\n return j;\n }", "@Override\n public int size() {\n int totalSize = 0;\n // iterating over collectionList\n for (Collection<E> coll : collectionList)\n totalSize += coll.size();\n return totalSize;\n }", "public int get_size();", "public int get_size();", "public int size() {\n ListNode current = front;\n int size = 0;\n while (current != null) {\n size += 1;\n current = current.next;\n }\n return size;\n }", "public final int size()\n {\n return m_count;\n }", "public int size() {\n \treturn numItems;\n }", "public int size() {\n return adminList.size() + ipList.size() + tpList.size() + topicList.size();\n }", "public int size() {\r\n \r\n return size;\r\n }", "public int size() {\n return size;\r\n }", "public int size() {\n\t\treturn recSize(head);\n\t}", "public int size() {\n\t\tint size = 0;\n\t\tnode tmp = head;\n\t\twhile(tmp != null) {\n\t\t\tsize++;\n\t\t\ttmp = tmp.next;\n\t\t}\n\t\treturn size;\n\t}", "public int size() {\n\t\treturn size;\r\n\t}", "public int size() {\n\t\treturn size;\r\n\t}", "public int size() {\r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public final int size() {\n int size = 0;\n final Iterator iterator = this.iterator();\n while (iterator.hasNext()) {\n size++;\n iterator.next();\n }\n return size;\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\n return doSize();\n }", "public int size(){\n\t\tListMapEntry temp = first;\n\t\tint c=0;\n\t\twhile(temp!=null){\n\t\t\tc++;\n\t\t\ttemp = temp.getNext();\n\t\t}\n\t\treturn c;\n\t}", "public int getCount() {\n\t\t\treturn list.size();\r\n\t\t}", "public int size()\n {\n return size;\n }", "public int size()\n {\n return size;\n }", "public int size()\n {\n return size;\n }" ]
[ "0.89357024", "0.87753654", "0.8759933", "0.8759933", "0.8733208", "0.87145895", "0.87145895", "0.8713198", "0.8707452", "0.8706073", "0.868505", "0.86572325", "0.8613991", "0.858036", "0.8498911", "0.849657", "0.8492269", "0.84854424", "0.84484386", "0.8426211", "0.84228754", "0.8388338", "0.83091867", "0.82816464", "0.8277606", "0.8220037", "0.8195195", "0.8149363", "0.8145786", "0.80480194", "0.8043456", "0.8030421", "0.8026248", "0.8022953", "0.80170596", "0.8006745", "0.79436487", "0.7941131", "0.79244566", "0.79215723", "0.7921471", "0.7920589", "0.7876185", "0.78674394", "0.785794", "0.7852188", "0.784248", "0.78318673", "0.7806067", "0.7796148", "0.7782636", "0.7781517", "0.7774881", "0.77711284", "0.77665055", "0.77374685", "0.77354383", "0.7729688", "0.772441", "0.7718277", "0.76880443", "0.76880443", "0.76845264", "0.7681688", "0.7681688", "0.7681688", "0.7680811", "0.76741284", "0.7665078", "0.76631624", "0.7660254", "0.76586384", "0.7650937", "0.7650937", "0.7650937", "0.76508856", "0.76495826", "0.76470363", "0.76470363", "0.76439387", "0.76424414", "0.76422554", "0.76376003", "0.76360613", "0.7626454", "0.76224196", "0.76202023", "0.761871", "0.761871", "0.76177305", "0.76177305", "0.76177305", "0.76177305", "0.7617645", "0.76167816", "0.76119566", "0.76089805", "0.7605146", "0.760477", "0.760477", "0.760477" ]
0.0
-1
checks if the list is empty.
public boolean isEmpty() { return size == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "public boolean empty() {\n\t\treturn list.size() == 0;\n\t}", "@Override\n public boolean isEmpty()\n {\n return list.size()<1;\n }", "public boolean isEmpty(){\n\n \treturn list.size() == 0;\n\n }", "public static boolean empty() {\n\n if (list.size() != 0){\n return false;\n }\n return true;\n }", "public boolean isEmpty()\n\t{\n\t\treturn list.isEmpty();\n\t}", "@Override\n\tpublic boolean isEmpty()\n\t{\n if (list.isEmpty())\n {\n return true;\n } \n else\n {\n return false;\n }\n\t}", "public boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "public boolean isEmpty() {\n return list.isEmpty();\n }", "public boolean isEmpty(){\n\t\tif(list.isEmpty()){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public synchronized boolean isEmpty(){\n return list.isEmpty();\n }", "public boolean empty() {\n if (list.size() == 0) {\n return true;\n }\n else {\n return false;\n }\n }", "public boolean empty() {\n return list.isEmpty();\n }", "public boolean isEmpty(){\n return this.listSize == 0;\n }", "public synchronized boolean isEmpty () {\n return list.isEmpty();\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn data != null && data.list != null && data.list.isEmpty();\r\n\t}", "boolean isListRemainingEmpty();", "public boolean isEmpty() {\r\n\t\treturn al.listSize == 0;\r\n\t}", "public /*@ pure @*/ boolean isEmpty() {\n return the_list == null;\n }", "boolean isEmpty(int list) {\n\t\treturn m_lists.getField(list, 0) == -1;\n\t}", "public boolean isEmpty(){\n return(numItems == 0);\n }", "public boolean isEmpty() // true if list is empty\r\n\t{\r\n\t\treturn (first == null);\r\n\t}", "public boolean isEmpty()\r\n\t{\r\n\t\treturn numItems == 0 ;\r\n\t}", "@Override\n public boolean isEmpty(){\n return itemCount == 0;\n }", "public boolean isEmpty()\n {\n //this method is used to check length\n //replacing head == null so I don't have to maintain a head\n //also error checks for null lists\n return (entryList == null || (entryList.size() == 0));\n //just doing .size() == 0 will raise a null pointer exception on occasion\n }", "boolean isEmpty() {\n return this.myArrayList.isEmpty();\n }", "public boolean isEmpty(){\n return (numItems==0);\n }", "public boolean empty() {\n\t\treturn (size() <= 0);\n\t}", "private boolean isEmpty() {\n\t\treturn size() == 0;\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn this.size == 0;\r\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn(size() == 0);\n\t}", "public boolean isEmpty(){\n\t\treturn firstNode == null; //return true if List is empty\n\t}", "public boolean isEmpty() {\n return dataList.size() <= 0 || (dataList.size() == 1 && dataList.get(0).isEmpty());\n }", "@Override\n public boolean isEmpty() {\n return this.size == 0;\n }", "@Override\n public boolean isEmpty() {\n return _size == 0;\n }", "public boolean isEmpty() {\r\n return NumItems == 0;\r\n }", "@Override\n public boolean isEmpty() {\n return this.count() == 0;\n }", "private boolean isEmpty() {\n\t\treturn (size == 0);\n\t}", "public boolean isEmpty() {\n\t\treturn allItems.size() == 0;\n\t}", "public boolean isEmpty(){\n return itemCount == 0;\n }", "@Override\n public boolean isEmpty() {\n if(first == null){ //if first element does not exist, the whole is empty\n return true;\n }\n else{\n return false; //if first element exist, list is not empty\n }\n }", "public boolean empty() { \t \n\t\t return size <= 0;\t \n }", "public boolean isEmpty() {\n \tif (numItems==0) {\n \t\treturn true;\n \t}\n \treturn false;\n }", "public boolean empty()\n {\n boolean result = (dataList.size() == 0) ? true : false;\n return result;\n }", "@Override\n public boolean isEmpty() {\n return this.size==0;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn (_items.size() == 0);\n\t}", "public boolean empty() {\r\n\r\n\t\tif(item_count>0)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "public static boolean isEmpty(List list){\n\n if(list == null){\n return true;\n }\n if(list.size() == 0){\n return true;\n }\n return false;\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn size() == 0;\r\n\t}", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "protected boolean checkEmptyList(){\n boolean emptyArray = true;\n String empty= alertList.get(AppCSTR.FIRST_ELEMENT).get(AppCSTR.NAME);\n if(!empty.equals(\"null\") && !empty.equals(\"\")) {\n emptyArray = false;\n }\n return emptyArray;\n }", "public boolean isEmpty() {\n\t\treturn firstNode == null; // return true if List is empty\n\t}", "public int checkEmpty() {\n\t\treturn (slist.checkEmpty());\n\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn count == 0;\r\n\t}", "public boolean isEmpty() {\r\n return items.isEmpty();\r\n }", "boolean isEmpty() {\n\t\treturn m_list_nodes.size() == 0;\n\t}", "@Override\n public boolean isEmpty()\n {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size()==0;\n }", "private boolean isEmpty() {\n return (size == 0);\n }", "@Override\r\n public boolean isEmpty() {\r\n return size == 0;\r\n }", "public boolean isEmpty() {\n return items.isEmpty();\n }", "public boolean isEmpty() {\n return items.isEmpty();\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\r\n public boolean isEmpty() {\n return size == 0;\r\n }", "public boolean isEmpty() {\n\n\t\tif (numItems == 0)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\n\t}", "public boolean isEmpty() \n\t {\n\t\t return (size()==0);\n\t }", "public boolean empty() {\r\n return size == 0;\r\n }", "public boolean isEmpty() {\r\n\t\t\r\n\t\tint i = 0;\r\n\t\tStudent emptyChecker;\r\n\t\tint size = sizeOfList(list);\r\n\t\twhile (i < size) {\r\n\t\t\temptyChecker = list[i];\r\n\t\t\tif (emptyChecker != null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tnumStudents = 0;\r\n\t return true;\r\n\t}", "public boolean isEmpty()\n {\n return ll.getSize()==0? true: false;\n }", "@Override\n public boolean isEmpty(){\n return (count == 0);\n }", "public boolean empty() {\n return size == 0;\n }", "public boolean isEmpty()\n {\n return this.size == 0;\n }", "public boolean isEmpty(){\r\n\t\treturn size() == 0;\r\n\t}", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() {\n\t\treturn(this.size == 0);\n\t}", "public boolean empty() {\n return size <= 0;\n }", "public boolean isEmpty() {\n \treturn size == 0;\n }", "@Override\n public boolean isEmpty() {\n if (size == 0) {\n return true;\n } else {\n return false;\n }\n }", "public boolean isEmpty() {\r\n \r\n return size == 0;\r\n }", "public boolean isEmpty() {\n \t\treturn size == 0;\n \n \t}", "public boolean isEmpty() {\n\t return size == 0;\n\t }", "@Override\n public boolean isEmpty() {\n if (size == 0) {\n return true;\n }\n return false;\n }", "public boolean isEmpty() {\n \t return size == 0;\n }", "public boolean isEmpty() {\r\n return (size == 0);\r\n }", "public boolean isEmpty() {\n\t\treturn this.size == 0;\n\t}", "@Override\n public boolean isEmpty() {\n if (size == 0) {\n return true;\n }\n return false;\n }", "public boolean isEmpty() {\n\t return size() == 0;\n\t }" ]
[ "0.8738737", "0.8738737", "0.8603385", "0.8587965", "0.8562329", "0.85030586", "0.84851426", "0.84728616", "0.84172237", "0.8408726", "0.839925", "0.839511", "0.8392329", "0.8383352", "0.83308387", "0.83262706", "0.82466185", "0.8205953", "0.8173681", "0.8061332", "0.7975319", "0.7952206", "0.7948591", "0.79456276", "0.79349947", "0.78966135", "0.7890674", "0.78892356", "0.7883119", "0.78753525", "0.78705204", "0.7853813", "0.7852826", "0.78436697", "0.7835834", "0.783447", "0.78308654", "0.7829779", "0.7828047", "0.7826005", "0.78208244", "0.78203", "0.7819358", "0.78097934", "0.780796", "0.78065497", "0.7798004", "0.7798004", "0.7796717", "0.7792282", "0.7792279", "0.779099", "0.7789647", "0.7789647", "0.7789647", "0.7789647", "0.7789647", "0.77815336", "0.77757835", "0.7774823", "0.7762998", "0.77554345", "0.77442396", "0.7735606", "0.77321965", "0.77269596", "0.7726716", "0.77235496", "0.77235496", "0.7716341", "0.7716341", "0.7716341", "0.7716341", "0.7716341", "0.7716036", "0.7713911", "0.77051175", "0.76986665", "0.76908034", "0.76805", "0.76720035", "0.7664558", "0.765387", "0.76532996", "0.7650805", "0.7650805", "0.7650805", "0.76482046", "0.76452947", "0.7627574", "0.76242346", "0.7621189", "0.7616624", "0.7615855", "0.7614914", "0.76143235", "0.76121", "0.7610768", "0.7606628", "0.76049757" ]
0.76217824
91
resizes elements[] for dynamic memory usage.
@SuppressWarnings("unchecked") private void resize(int capacity) { T[] array = (T[]) new Object[capacity]; for (int i = 0; i < size(); i++) { array[i] = elements[i]; } elements = array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void reallocate() {\n\t\tthis.capacity *= 2;\n\t\tObject[] newElements = new Object[this.capacity];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnewElements[i] = this.elements[i];\n\t\t}\n\n\t\tthis.elements = newElements;\n\t}", "private void ensureCapacity() {\n int newSize = elements.length * 2;\n Object[] newElements = new Object[newSize];\n for (int i = 0; i < elements.length; i++) {\n newElements[i] = elements[i];\n }\n elements = newElements;\n }", "private void ensureCapacity() {\n\t\n\t\tif (elements.length == size) {\n\t\t\tT[] oldElements = elements;\n\t\t\t\n\t\t\telements = (T[]) new Object[2 * elements.length + 1];\n\t\t\t\n\t\t\tSystem.arraycopy(oldElements, 0, elements, 0, size);\n\t\t\n\t\t}\n\t\n\t}", "private void ensureCapacity()\n\t{\n\t\tif (elements.length == size)\n\t\t\telements = Arrays.copyOf(elements, 2 * size + 1);\n\t}", "private void reallocate() {\n capacity = 2 * capacity;\n ElementType[] newData = (ElementType[]) new Object[DEFAULT_INIT_LENGTH];\n System.arraycopy(elements, 0, newData, 0, size);\n elements = newData;\n }", "private Object[] resize(E[] elems, int newsize){\n if(newsize < 0){\n throw new IllegalArgumentException();\n // UP FOR CHANGE\n }\n E[] newelems = (E[])(new Comparable[newsize]);\n if (elems == null){\n return newelems;\n }\n // Add elements back in\n System.arraycopy(elems, 0, newelems, 0, Math.min(elems.length, newsize));\n\n return newelems;\n }", "private void reallocateDoubleCapacity() {\n\t\tObject oldElements[] = elements;\n\t\tcapacity *= reallocateFactor;\n\t\tsize = 0;\n\t\telements = new Object[capacity];\n\n\t\tfor (Object object : oldElements) {\n\t\t\tthis.add(object);\n\t\t}\n\t}", "private void expand() {\n\n intElements = copyIntArray(intElements, intElements.length * 2);\n doubleElements = copyDoubleArray(doubleElements, doubleElements.length * 2);\n stringElements = copyStringArray(stringElements, stringElements.length * 2);\n typeOfElements = copyIntArray(typeOfElements, typeOfElements.length * 2);\n }", "private void resize(int newSize) {\n Item[] resized = (Item[]) new Object[newSize];\n\n for (int i = 0; i < elements; i++)\n resized[i] = values[i];\n\n values = resized;\n }", "private void resize(int newCap) {\n\t\tE[] newArray = (E[]) new Object[newCap];\n\t\tfor(int x = 0; x < newCap && x < capacity; x++) {\n\t\t\tnewArray[x] = elements[x];\n\t\t}\n\t\telements = newArray;\n\t\tcapacity = newCap;\n\t}", "private void ensureCapacity() {\n\t\tif (numberOfElements == capacity) {\n\t\t\tT[] newArray = (T[])new Object[(numberOfElements+1) * CAPACITY_MULTIPLIER];\n\t\t\tSystem.arraycopy(elements,0,newArray,0,numberOfElements);\n\t\t\telements = newArray;\n\t\t}\n\t}", "private void reallocate() {\r\n //elem = java.util.Arrays.copyOf(elem, elem.length * 2);\r\n E[] temp = (E[]) new Object[elem.length * 2];\r\n int i = 0;\r\n while (elem[i] != null) {\r\n temp[i] = elem[i];\r\n i++;\r\n }\r\n int j = elem.length - 1;\r\n int k = temp.length - 1;\r\n while (elem[i] != null) {\r\n temp[k] = elem[j];\r\n j--;\r\n k--;\r\n }\r\n front = k;\r\n elem = temp;\r\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void growArray() {\n\t\tObject[] newList = new Object[size * 2];\n\t\tfor (int i = 0; i < size(); i++) {\n\t\t\tnewList[i] = get(i);\n\t\t}\n\t\tlist = (E[]) newList;\n\t\tsize *= 2;\n\t}", "@SuppressWarnings(\"unchecked\")\n private void resize() {\n int newCap = Math.max(capacity*2, DEFAULT_CAP);\n if(size < list.length) return;\n \n Object[] temp = new Object[newCap];\n for(int i = 0; i < list.length; i++) {\n temp[i] = list[i];\n }\n list = (E[])temp;\n capacity = newCap;\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void growArray() {\n\t\tint tempSize = size * 2;\n\t\tE[] tempList = (E[]) new Object[tempSize];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\ttempList[i] = list[i];\n\t\t}\n\t\tlist = tempList;\n\t}", "public void reSize() {\n int newSize = arr.length * 2;\n arr = Arrays.copyOf(arr, newSize);\n }", "synchronized protected void enlargeArrays() {\n \t\tenlargeArrays(5);\n \t}", "private void resize(int cap) {\n Item[] temp = (Item[]) new Object[cap];\n for(int i = 0; i < size; i++)\n temp[i] = rqArrays[i];\n rqArrays = temp;\n }", "@SuppressWarnings(\"unchecked\")\n\t private boolean grow() {\n\n\t /* \n\t * Add code here \n\t * Expand capacity (double it) and copy old array contents to the\n\t * new one. \n\t */\n\t\t \n\t\t capacity = (capacity*2);\n\t\t E[] new_elements = elements;\n\t\t elements = (E[])new Object[capacity];\n\t\t for(int i=0; i<new_elements.length;i++){\n\t\t\t elements[i] = new_elements[i];\n\t\t }\n\t System.out.println(\"Capacity reached. Increasing storage...\");\n\t System.out.println(\"New capacity is \" + capacity + \" elements\");\n\n\t return true;\n\t }", "private void resize(int newSize){\n Item[] temp = (Item[]) new Object[newSize]; //newsize\n for(int i=0; i<itemCount; i++){\n temp[i] = array[i]; // fill temp with array's stuff\n }\n array = temp; // reset array to temp\n }", "private void addSizeArray() {\n int doubleSize = this.container.length * 2;\n Object[] newArray = new Object[doubleSize];\n System.arraycopy(this.container, 0, newArray, 0, this.container.length);\n this.container = new Object[doubleSize];\n System.arraycopy(newArray, 0, this.container, 0, doubleSize);\n }", "private void resize(int capacity) {// O(N)\r\n\t\tthis.capacity=capacity;\r\n\t\tE[] temp=(E[])list;\t//temporary list that stores old array\r\n\t\t//array of new required length initialized\r\n\t\tlist=new Object[this.capacity];\r\n\t\t//loop executes until all elements are copied from temp to list array\r\n\t\tfor (int i=0;i<size;i++) {\r\n\t\t\tlist[i]=temp[i];\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void resize(int capacity) {\r\n\t\tItem[] copy = (Item[]) new Object[capacity];\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t\tcopy[i] = arr[i];\r\n\t\tarr = copy;\r\n\t}", "private void resize(int newCapacity) {\n\n E[] temp = (E[]) new Object[newCapacity];\n for(int i = 0; i < size(); i++)\n temp[i] = data[calculate(i)];\n data = temp;\n head = 0;\n tail = size()-1;\n\n\n }", "public ResizingArray() {\r\n super();\r\n this.aObjects = new Object[ResizingArray.DEFAULT_SIZE];\r\n this.aFreeElements = new int[ResizingArray.DEFAULT_SIZE];\r\n }", "public void resize()\r\n\t{\r\n\t\tif(nItems >= arraySize/2)\t\t\t\t\t\t\t\t\t\t\t\t//If array is half full, the array becomes twice as large.\r\n\t\t{\t\t\t\r\n\t\t\tItem[] tempArray = (Item[]) new Object[2*arraySize];\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < nItems; i++)\r\n\t\t\t{\r\n\t\t\t\ttempArray[i] = q[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq = tempArray;\t\t\t\t\t\t\t\t\t\t\t\t//Re-initialization of q array.\r\n\t\t\tarraySize = 2*arraySize;\t\t\t\t\t\t\t\t\t\t\t//Array size is doubled.\r\n\t\t}\r\n\t\telse if(nItems <= arraySize/4)\t\t\t\t\t\t\t\t\t\t\t//If array is a quarter full, the array size is halved.\r\n\t\t{\r\n\t\t\tItem[] tempArray = (Item[]) new Object[arraySize/2];\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < nItems; i++)\r\n\t\t\t{\r\n\t\t\t\ttempArray[i] = q[i];\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq = tempArray;\t\t\t\t\t\t\t\t\t\t\t\t//Re-initialization of q array.\r\n\t\t\tarraySize = arraySize/2;\t\t\t\t\t\t\t\t\t\t\t//Array size is halved.\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn;\r\n\t}", "private void grow() {\n T[] arr_temp = (T[]) new Object[arr.length*2];\n for (int i=0; i<arr.length; i++){\n arr_temp[i] = arr[i];\n }\n arr = arr_temp;\n }", "void resize() {\n Comparable[] temp = new Comparable[size * 2];\n for (int i = 0; i < pq.length; i++) {\n temp[i] = pq[i];\n }\n pq = temp;\n }", "private void resizeArray()\n {\n int[] temp = new int[integerList.length * 2];//Create new array with twice the size.\n for(int i = 0; i < integerList.length; i++)//Populate new array with data from old array\n {\n temp[i] = integerList[i];\n }\n integerList = temp;//Set the integerList to point to the new array.\n }", "private void increaseSize() {\r\n\t\tE[] biggerE = (E[]) new Object[this.capacity * 2];\r\n\t\tdouble[] biggerC = new double[this.capacity * 2];\r\n\t\tfor (int i = 0; i < this.size; i++) {\r\n\t\t\tbiggerE[i] = this.objectHeap[i];\r\n\t\t\tbiggerC[i] = this.costHeap[i];\r\n\t\t}\r\n\t\tthis.costHeap = biggerC;\r\n\t\tthis.objectHeap = biggerE;\r\n\t\tthis.capacity = this.capacity * 2;\r\n\t}", "private void enlargeCapacity() {\n Object[] tmp = this.container;\n this.container = new Object[this.container.length + this.capacity];\n System.arraycopy(tmp, 0, this.container, 0, tmp.length);\n }", "private void resize() {\n if (ifFull() || ifTooEmpty()) {\n int capacity = items.length;\n if (ifFull()) {\n capacity *= 2;\n } else if (ifTooEmpty()) {\n capacity /= 2;\n }\n Item[] newArray = (Item[]) new Object[capacity];\n int lastIndex = moveBack(nextLast, 1);\n int firstIndex = moveForward(nextFirst, 1);\n System.arraycopy(items, 0, newArray, 0, lastIndex + 1);\n int numOfReminder = size - (lastIndex + 1);\n int newFirstIndex = newArray.length - numOfReminder;\n System.arraycopy(items, firstIndex, newArray, newFirstIndex, numOfReminder);\n items = newArray;\n nextFirst = moveBack(newFirstIndex, 1);\n nextLast = moveForward(lastIndex, 1);\n return;\n }\n return;\n }", "private void resize() {\n Couple[] tmp = new Couple[2 * associations.length];\n System.arraycopy(associations, 0, tmp, 0, associations.length);\n associations = tmp;\n }", "private void doubleSize() {\n\t\tint[] arr2 = new int[2 * arr.length];\n\t\tfor (int i = 0; i < arr.length; ++i) {\n\t\t\tarr2[i] = arr[i];\n\t\t}\n\t\tarr = arr2;\n\t}", "protected void resize(int capacity){\n E[] temp = (E[]) new Object[capacity];\n for (int i = 0; i < size; i++) {\n temp[i] = data[i];\n }\n data = temp;\n }", "@SuppressWarnings(\"unchecked\")\n private void upSize()\n {\n T[] newArray = (T[]) new Object [theArray.length * 2];\n for (int i =0; i < theArray.length; i++){\n newArray[i] = theArray[i];\n }\n theArray = newArray;\n }", "private void reallocateArray() {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tTableEntry<K, V>[] newTable = new TableEntry[table.length * 2];\r\n\t\tTableEntry<K, V> currentElement = null, nextElement = null;\r\n\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tif (table[i] == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = table[i];\r\n\t\t\tnextElement = currentElement.next;\r\n\r\n\t\t\twhile (currentElement != null) {\r\n\t\t\t\tcurrentElement.next = null;\r\n\t\t\t\taddTableEntry(currentElement, newTable);\r\n\r\n\t\t\t\tcurrentElement = nextElement;\r\n\t\t\t\tnextElement = currentElement == null ? null : currentElement.next;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttable = newTable;\r\n\t}", "private void resizeArray(int length) {\n Item[] newItems = (Item[]) new Object[length];\n\n for (int x=0; x<size; x++) {\n newItems[x] = items[x];\n }\n\n items = newItems;\n }", "private void resize(int capacity) {\n // create a new array, and copy the original array items to the new array\n T[] newArray = (T[]) new Object[capacity];\n int position = plusOne(nextFirst);\n for (int i = 0; i < size; i += 1) {\n newArray[i] = array[position];\n position = plusOne(position);\n }\n nextFirst = newArray.length - 1;\n nextLast = size;\n array = newArray;\n }", "private void resize() {\n contents = Arrays.copyOf(contents, top*2);\r\n }", "private void grow() {\n int growSize = size + (size<<1);\n array = Arrays.copyOf(array, growSize);\n }", "private void grow() {\n capacity *= 2;\n Object[] temp = new Object[capacity];\n for (int i = 0; i < values.length; i++) temp[i] = values[i];\n values = temp;\n }", "private void resize(int capacity) {\n TypeHere[] a = (TypeHere[]) new Object[capacity];\n System.arraycopy(items, 0, a, 0, size);\n items = a;\n }", "@SuppressWarnings(\"unchecked\")\n private void resize() {\n // Create a temporary array of the old capacity of the heap and store all of the heaps\n // elements in it\n int size = heap.length;\n T[] temp = (T[]) new Comparable[size];\n System.arraycopy(heap, 0, temp, 0, size);\n\n // Double the capacity of the heap array and copy the values of the temp array back into\n // the heap\n heap = (T[]) new Comparable[size * DOUBLE];\n System.arraycopy(temp, 0, heap, 0, size);\n }", "private void expand(){\n \n int newSize = size + expand;\n E[] tempArray = (E[]) new Object[newSize];\n for(int n = 0; n < size; n++){\n tempArray[n] = stackArray[n]; \n }\n stackArray = tempArray;\n size = newSize;\n }", "private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }", "@SuppressWarnings(\"unchecked\")\n\tprotected void grow(){\n\t\t// makes new arraylist\n\t\tT[] temp = (T[]) new Object[data.length *2];\n\t\tfor(int i = 0; i < data.length; i++ ){\n\t\t\ttemp[i] = data[i];\n\t\t}\n\t\tdata = temp;\n\t}", "private void shrink() {\n int shrinkSize = array.length>>1;\n array = Arrays.copyOf(array, shrinkSize);\n }", "@Override\n\tpublic void setElementSize(int elementSize) {\n\t\t\n\t}", "@Deprecated\n public void calcElementSize() {\n int total = 0;\n for (Variable v : members) {\n total += v.getElementSize() * v.getSize();\n }\n elementSize = total;\n }", "private void resize() {\n int listSize = numItemInList();\n //debug\n //System.out.println(\"resize: \" + nextindex + \"/\" + list.length + \" items:\" + listSize);\n if (listSize <= list.length / 2) {\n for (int i = 0; i < listSize; i++) {\n list[i] = list[startIndex + i];\n }\n } else {\n Object[] newList = new Object[this.list.length * 2];\n\n// System.arraycopy(this.list, startIndex, newList, 0, this.list.length-startIndex);\n for (int i = 0; i < listSize; i++) {\n newList[i] = list[i + startIndex];\n }\n this.list = newList;\n //debug\n //System.out.println(\"After resize:\" + nextindex + \" / \" + list.length + \" items:\" + numItemInList());\n }\n nextindex = nextindex - startIndex;\n startIndex = 0;\n }", "private void resizeArrays() {\r\n//\t\tThread.dumpStack();\r\n\t\t\r\n\t\t// coordinates, colors, 2 texunits\r\n\t\tint size = numElements * (3 + 3 + 2 + 2) * 4;\r\n\t\tSystem.out.println(\"resizeArrays \"+size+\" \"+numElements);\r\n\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, vboVertexId);\r\n\t\tARBVertexBufferObject.glBufferDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, size, ARBVertexBufferObject.GL_STATIC_DRAW_ARB);\r\n\t\t\r\n\t\tuploadBuffer.clear();\r\n\t\tfor (int i=0; i<uploadBuffer.capacity(); i++) {\r\n\t\t\tuploadBuffer.put(i, 1);\r\n\t\t}\r\n\t\t\r\n\t\t// clear the data\r\n\t\tint pos = 0;\r\n\t\twhile (pos < size) {\r\n\t\t\tif (size - pos < uploadBuffer.capacity() * 4) {\r\n\t\t\t\tuploadBuffer.limit((size - pos) / 4);\r\n\t\t\t}\r\n\t\t\tARBVertexBufferObject.glBufferSubDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, pos, uploadBuffer);\r\n\t\t\tUtil.checkGLError();\r\n\t\t\tpos += uploadBuffer.capacity() * 4;\r\n\t\t}\r\n\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, 0);\r\n\t}", "public void free(){\n\t\t\tif(this.elements != null){\n\t\t\t\tfor(Element element : this.elements){\n\t\t\t\t\telement.free();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void expandCapacity() {\n T[] tempVertices = (T[])(new Object[vertices.length * 2]);\n int[][] tempEdges = new int[vertices.length * 2][vertices.length * 2];\n \n for (int i = 0; i < n; i++) {\n tempVertices[i] = vertices[i];\n for (int j = 0; j < n; j++) {\n tempEdges[i][j] = edges[i][j];\n }\n }\n \n vertices = tempVertices;\n edges = tempEdges;\n }", "private void resize() {\r\n capacity = capacity*2;\r\n IDictionary<K, V>[] temp = chains;\r\n chains = makeArrayOfChains(capacity);\r\n for (int i = 0; i < capacity/2; i++) {\r\n if (temp[i]!=null) {\r\n IDictionary<K, V> each = temp[i];\r\n for (KVPair<K, V> element: each) {\r\n putKV(element);\r\n load--;\r\n }\r\n }\r\n }\r\n \r\n }", "public synchronized void elementsAdded(Object source,\n\t\t\tCollection<? extends ElementType> element, int newSize) {\n\n\t}", "private void grow() {\n final int new_size = Math.min(size * 2, Const.MAX_TIMESPAN);\n if (new_size == size) {\n throw new AssertionError(\"Can't grow \" + this + \" larger than \" + size);\n }\n values = Arrays.copyOf(values, new_size);\n qualifiers = Arrays.copyOf(qualifiers, new_size);\n }", "public void increaseSize() {\n Estimate[] newQueue = new Estimate[queue.length * 2];\n\n for (int i = 0; i < queue.length; i++) {\n newQueue[i] = queue[i];\n }\n\n queue = newQueue;\n }", "private void resizeUp() \n\t {\n\t\t int newSize = myArray.length * 2;\n\t\t myArray = Arrays.copyOf(myArray, newSize);\n\t }", "private void reallocateIfOverfilled() {\r\n\t\tif ((size * 1.0 / table.length) > MAX_FULLNESS_PERCENTAGE) {\r\n\t\t\treallocateArray();\r\n\t\t}\r\n\t}", "private void resize(int c) {\n int[] temp = new int[c];\n for (int k=0; k<size; k++)\n temp[k] = data[k];\n data = temp;\n }", "@SuppressWarnings(\"unchecked\") // this will stop Java complaining about the cast\n private void ensureCapacity() {\n if (count == data.length) { //if count is equal to the length of data a new array is made doubling the initial size, it then makes the data collection == to the temp collection\n E[] temp = (E[]) new String[data.length * 2]; //effectivly increasing the size of the array\n for (int i = 0; i < data.length; i++) {\n temp[i] = data[i];\n }\n data = temp;\n }\n }", "private void resize() {\n Object[] newQueue = new Object[(int) (queue.length * 1.75)];\n System.arraycopy(queue, startPos, newQueue, 0, queue.length - startPos);\n\n currentPos = queue.length - startPos;\n startPos = 0;\n queue = newQueue;\n\n }", "void resize() {\n capacity = array.size();\n }", "private void resize(int newCapacity){\n ArrayList<ArrayList<Entry>> newBuckets = new ArrayList<>();\n for (int i = 0; i < newCapacity; i++) {\n newBuckets.add(new ArrayList<>());\n }\n\n for(K key:this){\n int newIndex=reduce(key,newCapacity);\n newBuckets.get(newIndex).add(new Entry(key,get(key)));\n\n }\n\n buckets=newBuckets;\n numBuckets=newCapacity;\n\n }", "private void grow() {\n int oldCapacity = this.values.length;\n int newCapacity = oldCapacity + (oldCapacity >> 1);\n Object[] newValues = new Object[newCapacity];\n System.arraycopy(this.values, 0, newValues, 0, oldCapacity);\n this.values = newValues;\n }", "public void reallocate()\r\n\t{\r\n\t\tE[] newArray = (E[]) new Object[capacity * 2];\r\n\t\tint i = 0;\r\n\t\tfor(i = 0; i < this.size(); i++)\r\n\t\t{\r\n\t\t\tnewArray[i] = innerArray[(front + i) % capacity];\r\n\t\t\tSystem.out.println((front + i) % capacity);\r\n\t\t}\r\n\t\tfront = 0;\r\n\t\trear = this.size() - 1;\r\n\t\tcapacity = capacity * 2;\r\n\t\tinnerArray = newArray;\r\n\t}", "private void resize() {\n Point[] temp = new Point[2*N+1];\n for (int i = 0; i <= N; i++) temp[i] = a[i];\n a = temp;\n }", "private void expandCapacity() {\n heap = Arrays.copyOf(heap, heap.length * 2);\n }", "private void checkIfArrayFull() {\n\n if(this.arrayList.length == this.elementsInArray) {\n size *= 2;\n arrayList = Arrays.copyOf(arrayList, size);\n }\n }", "private void grow() {\n OmaLista<OmaPari<K, V>>[] newList = new OmaLista[this.values.length * 2];\n\n for (int i = 0; i < this.values.length; i++) {\n copy(newList, i);\n }\n\n this.values = newList;\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void resize(int newSize){\n\t\tif(newSize > max){\n\t\t\tnewSize = max;\n\t\t}\n\t\tT[] newData = (T[])new Object[newSize];\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tnewData[i] = data[i];\n\t\t}\n\t\tdata = newData;\n\t}", "@SuppressWarnings({\"unchecked\"})\n private void expandStack() {\n T[] newStack;\n \n newStack = (T[]) new Object[Array.getLength(this.elements) + 1];\n for( int i = 0; i < Array.getLength(this.elements); i++ )\n newStack[i] = this.elements[i];\n this.elements = newStack;\n }", "private Object[] elements() {\n return elements.toArray();\n }", "private void resize(int capacity) {\n assert capacity >= n;\n\n Item[] temp = (Item[]) new Object[capacity];\n for (int i = 0; i < n; i++) {\n temp[i] = a[i];\n }\n a = temp;\n }", "private void doubleArray()\n\t{\n\t\tT[] oldList = list;\n\t\tint oldSize = oldList.length;\n\t\t\n\t\tlist = (T[]) new Object[2 * oldSize];\n\t\t\n\t\t// copy entries from old array to new, bigger array\n\t\tfor (int index = 0; index < oldSize; index++)\n\t\t\tlist[index] = oldList[index];\n\t}", "@SuppressWarnings(\"resource\")\n public static void doubleCapacity(String[] array){\n int wordCount = 0;\n int arrayGrowth = 500;\n array = new String[10];\n String strLine = null;\n while (strLine != null) {\n // Store the content into an array\n Scanner s = new Scanner(strLine);\n while (s.hasNext()) {\n if (array.length == wordCount) {\n // expand list\n array = Arrays.copyOf(array, array.length + arrayGrowth);\n }\n array[wordCount] = s.next();\n wordCount++;\n } \n }\n }", "private void expandArray() {\r\n//\t\tSystem.out.println(\"Expanding: current capacity \" + capacity); //Used for debugging\r\n\t\tcapacity = 2 * capacity;\r\n\t\tE[] temp = (E[]) new Object[capacity];\r\n\t\tfor (int i = 0; i < t + 1; i++)\r\n\t\t\ttemp[i] = stack[i];\r\n\t\tstack = temp;\r\n\t}", "private void resize(int capacity)\r\n {\r\n assert capacity >= n;\r\n Item[] temp = (Item[]) new Object[capacity];\r\n for (int i = 0; i < n; i++)\r\n temp[i] = a[i];\r\n a = temp;\r\n }", "protected Object[] freshElemArray(int capacity) {\n return new Object[capacity];\n }", "private void trimListsToSize() {\n\t\tif (geneNames instanceof PrimitiveList<?>) {\n\t\t\t((PrimitiveList<?>) geneNames).trimToSize();\n\t\t}\n\t\tif (geneNameOffsets instanceof PrimitiveList<?>) {\n\t\t\t((PrimitiveList<?>) geneNameOffsets).trimToSize();\n\t\t}\n\t\tif (geneStrands instanceof PrimitiveList<?>) {\n\t\t\t((PrimitiveList<?>) geneStrands).trimToSize();\n\t\t}\n\t\tif (geneStarts instanceof PrimitiveList<?>) {\n\t\t\t((PrimitiveList<?>) geneStarts).trimToSize();\n\t\t}\n\t\tif (geneStops instanceof PrimitiveList<?>) {\n\t\t\t((PrimitiveList<?>) geneStops).trimToSize();\n\t\t}\n\t\tif (geneUTR5Bounds instanceof PrimitiveList<?>) {\n\t\t\t((PrimitiveList<?>) geneUTR5Bounds).trimToSize();\n\t\t}\n\t\tif (geneUTR3Bounds instanceof PrimitiveList<?>) {\n\t\t\t((PrimitiveList<?>) geneUTR3Bounds).trimToSize();\n\t\t}\n\t\tif (exonOffsets instanceof PrimitiveList<?>) {\n\t\t\t((PrimitiveList<?>) exonOffsets).trimToSize();\n\t\t}\n\t\tif (geneScores instanceof PrimitiveList<?>) {\n\t\t\t((PrimitiveList<?>) geneScores).trimToSize();\n\t\t}\n\t}", "public void clear() {\n\t\tthis.size = 0;\n\t\tthis.elements = new Object[capacity];\n\t}", "private void resizeArray() {\n stackArray = Arrays.copyOf(stackArray, stackArray.length * 2 + 1);\n }", "private void resize() {\n int newSize = (xs.length * 3) / 2;\n int[] newXs = new int[newSize];\n int[] newYs = new int[newSize];\n int[] newIn = new int[newSize];\n int[] newOut = new int[newSize];\n int[][] newRoads = new int[newSize][newSize];\n int[][] newDist = new int[newSize][newSize];\n boolean[] newVal = new boolean[newSize];\n System.arraycopy(xs, 0, newXs, 0, nodeCount);\n System.arraycopy(ys, 0, newYs, 0, nodeCount);\n System.arraycopy(inDegree, 0, newIn, 0, nodeCount);\n System.arraycopy(outDegree, 0, newOut, 0, nodeCount);\n System.arraycopy(invalid, 0, newVal, 0, nodeCount);\n for (int i = 0; i < nodeCount; i++) {\n System.arraycopy(roads[i], 0, newRoads[i], 0, nodeCount);\n System.arraycopy(distances[i], 0, newDist[i], 0, nodeCount);\n }\n xs = newXs;\n ys = newYs;\n inDegree = newIn;\n outDegree = newOut;\n roads = newRoads;\n distances = newDist;\n invalid = newVal;\n }", "protected int getElementSize () {\n return 1;\n }", "@Override\n public Element[] newArray(int size) {\n return new Element[size];\n }", "static public Object resizeArray(Object[] list, int newSize) {\n Class type = list.getClass().getComponentType();\n Object temp = Array.newInstance(type, newSize);\n System.arraycopy(list, 0, temp, 0,\t\n Math.min(Array.getLength(list), newSize));\n return temp;\n }", "private void resizeArray(int capacity){\n //take temporary array to copy elements\n String[] copy = new String[capacity];\n for(int i=0;i<N;i++){\n copy[i]=stackArray[i];\n }\n //point the temp array to main array\n stackArray=copy;\n }", "private void queueResize() {\n queue = Arrays.copyOf(queue, queue.length + 1);\n }", "private void grow() { \n\n\t\tAccount[] temp = accounts;\n\t\taccounts = new Account[accounts.length+5];\n\t\t\n\t\tfor (int i = 0; i < temp.length; i++) {\n\t\t\taccounts[i] = temp[i];\n\t\t}\n\t\t\n\t}", "public void setElementSize(int elementsize) {\n\t\tthis.elementsize = elementsize;\n\t}", "private void ensureCapacity() {\n int newLength = (this.values.length * 3) / 2 + 1;\n Object[] newValues = new Object[newLength];\n System.arraycopy(this.values, 0, newValues, 0, this.values.length);\n this.values = newValues;\n }", "private void resizeAndTransfer() {\r\n Node<K, V>[] newData = new Node[data.length * 2];\r\n\r\n for (int i = 0; i < data.length; i++) {\r\n if (data[i] != null) {\r\n addExistingElement(new Node(data[i].key, data[i].value), newData);\r\n Node currentElement = data[i];\r\n while (currentElement.next != null) {\r\n currentElement = currentElement.next;\r\n addExistingElement(new Node(currentElement.key, currentElement.value), newData);\r\n }\r\n }\r\n }\r\n data = newData;\r\n }", "private void arrayIncreaaseSize(MyArrayList myArrayList, Results results) {\r\n int old_size = myArrayList.length();\r\n int value;\r\n Random rand = new Random();\r\n \r\n for(int i=0; i<50; i++) {\r\n value = rand.nextInt(10000);\r\n if(value < 0) {\r\n value = value * -1;\r\n }\r\n myArrayList.insertSorted(value);\r\n }\r\n if(myArrayList.length() == old_size + 25) {\r\n results.storeNewResult(\"ArrayIncrease test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayIncrease test case: FAILED\");\r\n }\r\n }", "public ResizingArray(int defaultSize) {\r\n super();\r\n\r\n this.aObjects = new Object[defaultSize];\r\n this.aFreeElements = new int[defaultSize];\r\n this.iMaxSize = defaultSize;\r\n }", "public void resizeByLinearize(int newCapacity) {\r\n Object[] temp = new Object[newCapacity];\r\n int k = start;\r\n for (int i = 0; i < size; i++) {\r\n temp[i] = cir[k];\r\n k = (k + 1) % cir.length;\r\n }\r\n cir = temp;\r\n start = 0;\r\n }", "private void ensureCapacity(int capacity) {\n\t\t\tif(capacity > elementData.length) {\n\t\t\t\tint newCap = elementData.length * 2 + 1;\n\t\t\t\tif(capacity > newCap) {\n\t\t\t\t\tnewCap = capacity;\n\t\t\t\t}\n\t\t\t\telementData = Arrays.copyOf(elementData, newCap);\n\t\t\t}\n\t\t}", "public ZYArraySet(){\n elements = (ElementType[])new Object[DEFAULT_INIT_LENGTH];\n }", "public void resize(){\n Object[] old = myCustomStack;\n //resize array to be twice the size when the Stack is more than 3/4 full\n if(numElements > old.length * .75){\n Object[] resizedArr = new Object[old.length * 2];\n for(int i = 0; i < numElements; i++){\n resizedArr[i] = old[i];\n }\n myCustomStack = resizedArr;\n System.out.println(\"Array has been resized to twice the size. Array length: \" + myCustomStack.length);\n }\n //resize array to be half the size when the Stack is more than 1/4 empty\n else if(numElements < old.length * .25){\n Object[] resizedArr = new Object[old.length / 2];\n for(int i = 0; i < numElements; i++){\n resizedArr[i] = old[i];\n }\n myCustomStack = resizedArr;\n System.out.println(\"Array has been resized to half the size. Array length: \" + myCustomStack.length);\n }\n else{\n return;\n }\n }", "int increaseCapacity(int expectedCapacity)\r\n/* 425: */ {\r\n/* 426:456 */ int newCapacity = this.elements.length;\r\n/* 427:457 */ int maxCapacity = this.maxCapacity;\r\n/* 428: */ do\r\n/* 429: */ {\r\n/* 430:459 */ newCapacity <<= 1;\r\n/* 431:460 */ } while ((newCapacity < expectedCapacity) && (newCapacity < maxCapacity));\r\n/* 432:462 */ newCapacity = Math.min(newCapacity, maxCapacity);\r\n/* 433:463 */ if (newCapacity != this.elements.length) {\r\n/* 434:464 */ this.elements = ((Recycler.DefaultHandle[])Arrays.copyOf(this.elements, newCapacity));\r\n/* 435: */ }\r\n/* 436:467 */ return newCapacity;\r\n/* 437: */ }" ]
[ "0.7207799", "0.7163014", "0.7127496", "0.71152407", "0.7015852", "0.69402564", "0.691008", "0.68573457", "0.6820117", "0.68095064", "0.67678744", "0.6671419", "0.65875137", "0.65131277", "0.6511726", "0.64367735", "0.6405471", "0.63384604", "0.63139784", "0.6298227", "0.6253402", "0.6232036", "0.62179345", "0.6209608", "0.61509013", "0.61374325", "0.608898", "0.6082169", "0.6038026", "0.6035057", "0.6002201", "0.5996843", "0.5989185", "0.5984798", "0.5971897", "0.5958121", "0.59415466", "0.59298795", "0.59294903", "0.5927085", "0.592221", "0.5921573", "0.590537", "0.58858603", "0.5874878", "0.58450884", "0.58436215", "0.5828116", "0.5809475", "0.58047503", "0.57899374", "0.576192", "0.5739975", "0.57364786", "0.57205486", "0.5711495", "0.5669646", "0.5669113", "0.56587803", "0.56533355", "0.5642978", "0.56329453", "0.56318045", "0.56249654", "0.5620517", "0.5617521", "0.5602912", "0.5592764", "0.5579476", "0.5566115", "0.5566106", "0.55524814", "0.55478966", "0.55378145", "0.55355585", "0.5532716", "0.5530332", "0.5529546", "0.55192596", "0.5502152", "0.5500308", "0.5487434", "0.5478168", "0.5470049", "0.54683983", "0.546599", "0.54611474", "0.54565704", "0.5449462", "0.5447663", "0.54473615", "0.5442196", "0.5441215", "0.54328233", "0.5426419", "0.5419066", "0.5415321", "0.5398467", "0.5384998", "0.53795886" ]
0.6882701
7
creates special iterator, "Iteration," for program.
Iteration(T[] array, int amount) { items = array; count = amount; now = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Iterator<E> createIterator();", "IteratorExp createIteratorExp();", "private static void iterator() {\n\t\t\r\n\t}", "public OpIterator iterator() {\n // some code goes here\n // throw new\n // UnsupportedOperationException(\"please implement me for lab2\");\n return new InterAggrIterator();\n }", "public RunIterator iterator() {\n // Replace the following line with your solution.\n return new RunIterator(runs.getFirst());\n // You'll want to construct a new RunIterator, but first you'll need to\n // write a constructor in the RunIterator class.\n \n \n }", "public Iterator<T> iterator() {\r\n \r\n return new Iteration();\r\n }", "<C, PM> IteratorExp<C, PM> createIteratorExp();", "@Override\n public Iterator<Integer> iterator() {\n return new IteratorImplementation();\n }", "public IterI(){\n }", "public Iterator <item_t> iterator () {\n return new itor ();\n }", "<C, PM> IterateExp<C, PM> createIterateExp();", "public Iterator iterator()\r\n {\r\n return new IteratorImpl( this, home() );\r\n }", "Iterator<T> iterator();", "public Iterator<Item> iterator(){\n return new Iterator<Item>(); //Iterator interface implementation instance(has all Iterator methods)\n }", "@Override\r\n public Iterator iterator(){\n return new MyIterator(this);\r\n }", "public int getIteration();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "@Override\n public Iterator<Object> iterator() {\n return new MyIterator();\n }", "public Iterator<Type> iterator();", "public Iterator<T> iterator() {\r\n return byGenerations();\r\n }", "public Iterator<String> iterator();", "public Iterator iterator () {\n return new MyIterator (first);\n }", "public Iterator<Item> iterator() { return new RandomIterator();}", "public IterR(){\n }", "public IteratorForXML(String i, String s, String e)\r\n/* 14: */ {\r\n/* 15:17 */ this.input = i;\r\n/* 16:18 */ this.start = s;\r\n/* 17:19 */ this.end = e;\r\n/* 18: */ \r\n/* 19: */ \r\n/* 20: */ \r\n/* 21:23 */ next();\r\n/* 22: */ }", "@Override\n public Iterator<T> iterator() {\n return new Itr();\n }", "@Override\n public Iterator<T> iterator() {\n return new Itr();\n }", "IterateExp createIterateExp();", "public Iterator<BigInteger> iterator() {\n // return new FibIterator();\n return new Iterator<BigInteger>() {\n private BigInteger previous = BigInteger.valueOf(-1);\n private BigInteger current = BigInteger.ONE;\n private int index = 0;\n \n \n @Override\n //if either true will stop, evaluates upper < 0 first (short circuit)\n public boolean hasNext() {\n return upper < 0 || index < upper;\n }\n\n @Override\n //Creating a new value called next\n public BigInteger next() {\n BigInteger next = previous.add(current);\n previous = current;\n current = next;\n index++;\n return current;\n }\n \n };\n }", "public SList_Iterator<T> iterator() {\n return new iterator();\n }", "public Iterator<E> iterator();", "public Iterator<E> iterator();", "public Iterator<E> iterator();", "@Override\n\t\t\tpublic Iterator<Integer> iterator() {\n\t\t\t\treturn new Iterator<Integer>() {\n\n\t\t\t\t\tint index = -1;\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void remove() {\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Integer next() {\n\t\t\t\t\t\tif (index >= length)\n\t\t\t\t\t\t\tthrow new RuntimeException();\n\t\t\t\t\t\treturn offset + index * delta;\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean hasNext() {\n\t\t\t\t\t\treturn ++index < length;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}", "public T iterator();", "public Iterator<E> iterator(){\r\n return new IteratorHelper();\r\n }", "public Iterator <T> iterator (){\n\t\t// create and return an instance of the inner class IteratorImpl\n\t\t\t\treturn new HashAVLTreeIterator();\n\t}", "Iterator<E> iterator();", "Iterator<E> iterator();", "@Override\n public Iterator<Integer> iterator() {\n return new Iterator<>() {\n int i = 0;\n\n @Override\n public boolean hasNext() {\n return i < Set.this.count;\n }\n\n @Override\n public Integer next() {\n return Set.this.arr[i++];\n }\n };\n }", "@Override\n\tpublic Iterator createIterator() {\n\t\treturn new WeaponListIterator(weaponList);\n\t}", "public Iterator<Item> iterator() {\n return new AIterator();\n }", "public Iterator<ElementType> iterator(){\n return new InnerIterator();\n }", "public FlightIterator createIterator() {\r\n\t\treturn new FlightIterator(flights);\r\n\t}", "public Iterator<Object[]> getIterator()\n\t{\n\t\tinit();\n\t\t\n\t\treturn new SimpleIterator();\n\t}", "@Override\n\tpublic Iterator<NumberInterface> createIterator() {\n\t\treturn numbers.iterator();\n\t}", "public Iterator<Item> iterator() {\n return new Iterator<Item>() {\n public boolean hasNext() {\n return false;\n }\n\n public Item next() {\n return null;\n }\n };\n }", "public Iterator<E> iterator() {\n\t\treturn new Itr();\n\t}", "public abstract Iterator initialStateIterator ();", "@Test\n public void iterator() {\n }", "public static <T> Iterable<T> iter(final Iterator<T> i) {\n\t\treturn new Iterable<T>() {\n\n\t\t\t@Override\n\t\t\tpublic Iterator<T> iterator() {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t};\n\t}", "public Iterator<Item> iterator() { return new ListIterator(); }", "public Iterator<Item> iterator() {\n return new RandomIterator(N, a);\n }", "public Iterator<Item> iterator() {\n return new RandomizedIterator();\n }", "@Override\n public Iterator<T> iterator() {\n return new CLITableIterator<T>(createNew(tables, cursor, rowIndex));\n }", "public interface Menu {\r\n Iterator createIterator();\r\n}", "public static void main(String[] argv)\r\n/* 57: */ {\r\n/* 58:68 */ String test = \"<foo><foo>1</foo></foo> bar <foo>2</foo> baz <foo> 3\";\r\n/* 59:69 */ IteratorForXML iterator = new IteratorForXML(test, \"foo\");\r\n/* 60:70 */ System.out.println(iterator.next());\r\n/* 61:71 */ System.out.println(iterator.next());\r\n/* 62:72 */ System.out.println(iterator.next());\r\n/* 63:73 */ System.out.println(iterator.next());\r\n/* 64: */ }", "Iterator<K> iterator();", "@Override\r\n\tpublic Iterator<Item> iterator() \r\n\t{\r\n\t\treturn new rqIterator();\r\n\t}", "@Override\n public Iterator iterator() {\n return new PairIterator();\n }", "public Iterator<V> iterator()\n {\n return new Iterator<V>()\n {\n public boolean hasNext()\n {\n // STUB\n return false;\n } // hasNext()\n\n public V next()\n {\n // STUB\n return null;\n } // next()\n\n public void remove()\n throws UnsupportedOperationException\n {\n throw new UnsupportedOperationException();\n } // remove()\n }; // new Iterator<V>\n }", "public void setIterator(Iterator iterator) {\n/* 96 */ this.iterator = iterator;\n/* */ }", "@Override\n public Iterator<Piedra> iterator() {\n return piedras.iterator();\n \n //crear un iterator propio\n// return new Iterator<Piedra>(){\n// int index=0;\n// @Override\n// public boolean hasNext() {\n// return piedras.size()>index;\n// }\n//\n// @Override\n// public Piedra next() {\n// return piedras.get(index++);\n// }\n// \n// };\n }", "public IteratorForXML(String i, String tag)\r\n/* 25: */ {\r\n/* 26:30 */ this(i, tag, tag);\r\n/* 27: */ }", "iterator(){current = start;}", "public Iterator iterator() {\n\t\treturn new IteratorLinkedList<T>(cabeza);\r\n\t}", "public interface Menu {\n public Iterator createIterator();\n}", "private void gobble(Iterator<String> iter) {\n }", "public Iterator<Item> iterator() { \n return new ListIterator(); \n }", "@Override\n\tpublic Iterator<Word> iterator() {\n\t\treturn new Iterator<Word>() {\n\t\t\t@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn lword.hasNext();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Word next() {\n\t\t\t\treturn lword.next();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}\n\t\t};\n\t}", "public Iterator iterator()\n {\n JEditorPane x=new JEditorPane(\"text/html\", this.html);\n Document doc = x.getDocument();\n showModel(doc);\n return new GeneralResultIterator(this);\n }", "@Override\n public Iterator<T> iterator() {\n return new MyArrayList.MyIterator();\n }", "@Override\n public Iterator<E> iterator() {\n // Yup.\n Iterator<E> ans = new Iterator<E>(){\n private int curIndex = 0;\n\n @Override\n public boolean hasNext(){\n return curIndex < size && queue[curIndex] != null;\n }\n @Override\n public E next(){\n return (E)queue[curIndex++];\n }\n public void remove(){\n // No.\n }\n };\n return ans;\n }", "public final Iterable getChainingIterator() {\n\t// TODO: Implemente the chaining iterator and add generic type to Iterable. I suppose it is this class.\n\tthrow new IllegalAccessError(\"Not implemented yet\");\n }", "public Iterator<T> getIterator();", "Itr(int batch) {\n this.batch = batch;\n }", "@Override\n Iterator<T> iterator();", "public abstract TreeIter<T> iterator();", "public abstract DBIterator NewIterator(ReadOptions options);", "public Iterator()\n {\n this(null, null, true);\n }", "public Iterator()\n {\n this(null, null, true);\n }", "public Iterator()\n {\n this(null, null, true);\n }", "public Iterator<E> iterator()\n {\n return new MyListIterator();\n }", "public Iterator<T> iterator() {\n\t\treturn new ReferentIterator();\n\t}", "public Iterator<Item> iterator() {\n return new RandomIterator();\n }", "@Override public java.util.Iterator<Function> iterator() {return new JavaIterator(begin(), end()); }", "public Iterator<Integer> iterator() {\n\t\treturn new WrappedIntIterator(intIterator());\n\t}", "@Override\r\n\tpublic Iterator<T> iterator() {\n\t\treturn new Iterator<T>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic boolean hasNext() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tnodo<T> sig = sentinel;\r\n\t\t\t\tsentinel = sentinel.getNext();\r\n\t\t\t\treturn (sentinel != null) ? true : false;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic T next() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn sentinel.getValue();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t}", "@Override\n\tpublic Iterator<Statement> iterator() {\n\t\treturn iterator(null, null, null);\n\t}", "public interface Iterator {\n boolean hasNext();\n Recipe next();\n Recipe current();\n}", "public Iterator<Item> iterator() {\n\t\treturn new ListIterator(); \n\t\t}", "public Iterator<Item> iterator(){\n return new ArrayIterator();\n }", "Iterator<T> iterator(int start, int limit);", "public SearchingIterator getIterator(Object key)\r\n\t{\r\n\t\tSearchingIterator x = new SearchingIterator(key); \r\n\t\treturn x; \r\n\t}", "public void nextIteration()\n {\n actuelIteration++;\n }", "public Iterator getIterator() {\n/* 87 */ return this.iterator;\n/* */ }", "public final Iterator iterator() {\n return new WellsIterator(this);\n }", "public final Iterator<E> iterator()\r\n/* 36: */ {\r\n/* 37:201 */ throw new UnsupportedOperationException();\r\n/* 38: */ }" ]
[ "0.7276484", "0.7227165", "0.6974441", "0.68473226", "0.67924184", "0.67897546", "0.6655805", "0.6649121", "0.65932214", "0.6514683", "0.6440364", "0.6440194", "0.64350116", "0.64307135", "0.63918453", "0.6389721", "0.6322231", "0.6322231", "0.6322231", "0.6322231", "0.62913495", "0.628606", "0.62856615", "0.6242281", "0.6238424", "0.6217486", "0.6200282", "0.61975247", "0.6194639", "0.6194639", "0.6177657", "0.61653435", "0.6153642", "0.6148049", "0.6148049", "0.6148049", "0.6146836", "0.61325973", "0.61284417", "0.61248523", "0.6116127", "0.6116127", "0.6114953", "0.6066242", "0.6056793", "0.60249656", "0.60011935", "0.5994002", "0.5977077", "0.59737194", "0.59537995", "0.59475285", "0.5947326", "0.59365565", "0.59210247", "0.5918674", "0.5902853", "0.5895183", "0.5878249", "0.58660007", "0.58597785", "0.58522695", "0.58491766", "0.5847107", "0.58307606", "0.58227664", "0.58164483", "0.5816337", "0.5816176", "0.58159375", "0.5808615", "0.57815814", "0.5773544", "0.57731587", "0.576885", "0.57685244", "0.57665247", "0.57625943", "0.57466674", "0.5745437", "0.5734042", "0.5733987", "0.5733559", "0.5733559", "0.5733559", "0.57261163", "0.5723064", "0.5722143", "0.57188493", "0.57182914", "0.5717124", "0.5708318", "0.5707643", "0.5702965", "0.56994766", "0.5697844", "0.5696125", "0.5695497", "0.569007", "0.56896394", "0.56894016" ]
0.0
-1
returns next element of the list.
public T next() { if (!hasNext()) { throw new NoSuchElementException(); } return items[now++]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListElement<T> getNext()\n\t{\n\t\treturn next;\n\t}", "public ListElement getNext()\n\t {\n\t return this.next;\n\t }", "public int next() {\r\n\t\tif (currentPosition <= list.length &&list[currentPosition]==-1) {\r\n\t\t\tcurrentPosition = 0;\r\n\t\t\treturn list[currentPosition];\r\n\t\t}\r\n\t\treturn list[currentPosition++];\r\n\t}", "@Override\n\tpublic Item next() {\n\t\tindex = findNextElement();\n\n\t\tif (index == -1)\n\t\t\treturn null;\n\t\treturn items.get(index);\n\t}", "public E next() {\r\n current++;\r\n return elem[current];\r\n }", "public T getNextElement();", "public E getNext() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index >= this.size() - 1)\n\t\t\t\tindex = -1;\n\t\t\treturn this.get(++index);\n\t\t}\n\t\treturn null;\n\t}", "public HL7DataTree next() {\n final int size = Util.size(this.list), i = this.next == null ? size : this.list.indexOf(this.next) + 1;\n final HL7DataTree curr = this.next;\n \n this.next = i == size ? more() : this.list.get(i);\n \n return curr;\n }", "public T getNext(T element);", "Object getNextElement() throws NoSuchElementException;", "public T getNext() {\n\n // Create a new item to return\n T nextElement = getInstance();\n\n // Check if there are any more items from the list\n if (cursor <= arrayLimit) {\n nextElement = collection.get(cursor);\n cursor++;\n } else {\n // There are no more items - set to null\n nextElement = null;\n }\n\n // Return the derived item (will be null if not found)\n return nextElement;\n }", "public E next() throws NoSuchElementException\n {\n E retElement = null;\n if(hasNext() == true)\n {\n retElement = arrayList.get(index);\n index++;\n }\n else\n { throw new NoSuchElementException(); }\n return retElement;\n }", "public E next() {\r\n\r\n\t\tE result = null;\r\n\t\tif (hasNext()) {\r\n\t\t\tresult = links.get(counter);\r\n\t\t\tcounter++;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public T nextElement() {\r\n\t\treturn items[currentObject++];\r\n \t}", "public K next()\n {\n\tif (hasNext()) {\n\t K element = current.data();\n\t current = current.next(0);\n\t return element; \n\t} else {\n\t return null; \n\t}\n }", "public Item next(){\n if(current==null) {\n throw new NoSuchElementException();\n }\n\n Item item = (Item) current.item;\n current=current.next;\n return item;\n }", "private Object getNextElement()\n {\n return __m_NextElement;\n }", "public Object next()\n {\n if(!hasNext())\n {\n throw new NoSuchElementException();\n //return null;\n }\n previous= position; //Remember for remove;\n isAfterNext = true; \n if(position == null) \n {\n position = first;// true == I have not called next \n }\n else\n {\n position = position.next;\n }\n return position.data;\n }", "public Item next() {\n\t\t\tif (!hasNext())\n\t\t\t\treturn null;\n lastAccessed = current;\n Item item = current.item;\n current = current.next; \n index++;\n return item;\n\t\t}", "public E next()\n\t{\n\t\treturn (vector.get(curr++));\n\t}", "@Override\n public E next() {\n this.modificationCheck();\n E result;\n if (this.position != SimpleArrayList.this.index) {\n result = (E) values[position++];\n } else {\n throw new NoSuchElementException(\"No more suitable elements!\");\n }\n return result;\n }", "public T next() {\n\t\t\tif (hasNext()) {\n\t\t\t\tT nextItem = elements[index];\n\t\t\t\tindex++;\n\t\t\t\t\n\t\t\t\treturn nextItem;\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new java.util.NoSuchElementException(\"No items remaining in the iteration.\");\n\t\t\t\n\t\t}", "public Object next()throws NullPointerException\r\n {\r\n if(hasNext())\r\n return e.get(index+1);\r\n else\r\n throw new NullPointerException();\r\n }", "public Integer next() {\n if (list.isEmpty()){\n return iterator.next();\n }else {\n Integer integer = list.get(list.size() - 1);\n list.remove(list.size()-1);\n return integer;\n }\n\n }", "public Object getNext() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.next; // Get the reference to the next item\n\t\t}\n\t\treturn current == null ? null : current.item;\n\t}", "public T next()\r\n { \r\n if (next == null)\r\n throw new NoSuchElementException(\"Attempt to\" +\r\n \" call next when there's no next element.\");\r\n\r\n prev = next;\r\n next = next.next;\r\n return prev.data;\r\n }", "public R next(){\n return (R) listR.get(index++);\n }", "public E next() \n {\n \tfor(int i = 0; i < size; i++)\n \t\tif(tree[i].order == next) {\n \t\t\tnext++;\n \t\t\ttree[i].position = i;\n \t\t\treturn tree[i].element;\n \t\t}\n \treturn null;\n }", "public T next()\n {\n T data = current.item;\n current = current.next;\n return data;\n }", "public I next(){\n return (I) listI.get(index++);\n }", "public Object getNext() { \t\n\t\t\tcurrIndex++;\t \n\t\t\treturn collection.elementAt(currIndex);\n\t\t}", "public E next() {\n int index = 0;\n\n // iterating over collections\n for (Collection<E> coll : collectionList) {\n // checking if current collection contains the desired element (i.e. itrCounter falls in coll)\n if (coll.size() <= itrCounter - index)\n // desired index doesn't lie in current collection -> skipping all elements\n index += coll.size();\n // current collection contains desired element\n else {\n // finding desired element; iterating over coll\n for (E element : coll){\n // desired index found -> increment itrCounter and return element\n if (index == itrCounter) {\n itrCounter++;\n return element;\n }\n // desired index not reached yet -> increment index\n else index++;\n }\n }\n }\n // could not find next element\n throw new NoSuchElementException();\n }", "@Override\n\t\tpublic Item next() {\n\t\t\tItem item=current.item;\n\t\t\tcurrent=current.next;\n\t\t\treturn item;\n\t\t}", "public T next(){\r\n return itrArr[position++];\r\n }", "IList<T> getNext();", "@Override\n public T next() {\n T n = null;\n if (hasNext()) {\n // Give it to them.\n n = next;\n next = null;\n // Step forward.\n it = it.next;\n stop -= 1;\n } else {\n // Not there!!\n throw new NoSuchElementException();\n }\n return n;\n }", "public Item next() {\r\n if (!hasNext()) throw new NoSuchElementException();\r\n lastAccessed = current;\r\n Item item = current.item;\r\n current = current.next;\r\n index++;\r\n return item;\r\n }", "private E next() {\n\t\tif (hasNext()) {\n\t\t\tE temp = iterator.data;\n\t\t\titerator = iterator.next;\n\t\t\treturn temp;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public ListNode<T> getNext();", "public E next()\n {\n if (hasNext())\n {\n E item = currentNode.data();\n currentNode = currentNode.next();\n count--;\n return item;\n }\n else\n {\n throw new NoSuchElementException(\"There isnt another element\");\n\n }\n }", "@Override\r\n public T next() {\r\n if (hasNext()) {\r\n node = node.next();\r\n nextCalled = true;\r\n return node.getData();\r\n }\r\n else {\r\n throw new NoSuchElementException(\"Illegal call to next(); \"\r\n + \"iterator is after end of list.\");\r\n }\r\n }", "public Object next()\n/* */ {\n/* 84 */ if (this.m_offset < this.m_limit) {\n/* 85 */ return this.m_array[(this.m_offset++)];\n/* */ }\n/* 87 */ throw new NoSuchElementException();\n/* */ }", "@Nonnull\n public Optional<ENTITY> next()\n {\n currentItem = Optional.of(items.get(++index));\n update();\n return currentItem;\n }", "public E next() \n throws NoSuchElementException {\n if (entries != null && \n size > 0 &&\n position > 0 &&\n position < size) {\n E element = entries[position];\n position++;\n return element;\n } else {\n throw new NoSuchElementException(); \n } \n \n }", "@Override\n public Integer next() {\n if (next != null) {\n Integer next = this.next;\n this.next = null;\n return next;\n\n }\n\n return iterator.next();\n }", "private int findNextElement() {\n\t\tif (hasNext()) {\n\t\t\tint value = this.index + 1;\n\t\t\treturn value;\n\n\t\t}\n\t\treturn -1;\n\t}", "public Object nextElement() {\n/* 75 */ return this.iterator.next();\n/* */ }", "@Override\r\n\t\tpublic Item next() {\r\n\t\t\treturn arr[index++];\r\n\t\t}", "public T next()\n\t\t{\n\t\t\tif(hasNext())\n\t\t\t{\n\t\t\t\tT currentData = current.getData(); //the data that will be returned\n\t\t\t\t\n\t\t\t\t// must continue to keep track of the Node that is in front of\n\t\t\t\t// the current Node whose data is must being returned , in case\n\t\t\t\t// its nextNode must be reset to skip the Node whose data is\n\t\t\t\t// just being returned\n\t\t\t\tbeforePrevious = previous;\n\t\t\t\t\n\t\t\t\t// must continue keep track of the Node that is referencing the\n\t\t\t\t// data that was just returned in case the user wishes to remove()\n\t\t\t\t// the data that was just returned\n\t\t\t\t\n\t\t\t\tprevious = current; // get ready to point to the Node with the next data value\n\t\t\t\t\n\t\t\t\tcurrent = current.getNext(); // move to next Node in the chain, get ready to point to the next data item in the list\n\t\t\t\t\n\t\t\t\tthis.removeCalled = false;\n\t\t\t\t// it's now pointing to next value in the list which is not the one that may have been removed\n\t\t\t\t\n\t\t\t\treturn currentData;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\t}\n\t\t}", "public Element<T> getNextElement() \n\t{\n\t\treturn nextElement;\n\t}", "public Object next()\n/* */ {\n/* 93 */ if (this.m_offset < this.m_array.length) {\n/* 94 */ Object localObject = this.m_array[this.m_offset];\n/* 95 */ advance();\n/* 96 */ return localObject;\n/* */ }\n/* 98 */ throw new NoSuchElementException();\n/* */ }", "@Override\n public Item next() {\n if(!hasNext()) throw new NoSuchElementException(\"Failed to perform next because hasNext returned false!\");\n Item item = current.data;\n current = current.next;\n return item;\n }", "public E next()\r\n {\r\n E valueToReturn;\r\n\r\n if (!hasNext())\r\n throw new NoSuchElementException(\"The lister is empty\");\r\n \r\n // get the string from the node\r\n valueToReturn = cursor.getData();\r\n \r\n // advance the cursor to the next node\r\n cursor = cursor.getLink();\r\n \r\n return valueToReturn;\r\n }", "public T next(){\r\n\t\t\tif (expectedModCount != modCount){\r\n\t\t\t\tthrow new ConcurrentModificationException();\r\n\t\t\t}\r\n\t\t\tT passed = current;\r\n\t\t\tif ((currentNode.next==endMarker)&&(currentNode.getLast()==current)){\r\n\t\t\t\tcurrentNode = endMarker;\r\n\t\t\t\tcurrent = null;\r\n\t\t\t\treturn passed;\r\n\t\t\t}\r\n\t\t\tif (currentNode.indexOf(current)==currentNode.getArraySize()-1){\r\n\t\t\t\tcurrentNode = currentNode.next;\r\n\t\t\t\tcurrent = currentNode.getFirst();\r\n\t\t\t\tidx = 0;\r\n\t\t\t\treturn passed;\r\n\t\t\t}\t\r\n\t\t\tidx++;\r\n\t\t\tcurrent = currentNode.get(idx);\r\n\t\t\treturn passed;\r\n\t\t}", "public ListNode<Item> getNext() {\n return this.next;\n }", "@Override\n public Integer next() {\n if (!isPeeked && hasNext())\n return iterator.next();\n int toReturn = peekedElement;\n peekedElement = -1;\n isPeeked = false;\n return toReturn;\n }", "public int next() {\n\treturn _current < _last ? _data[_current++] : END;\n }", "public ListNode getNext()\r\n {\r\n return next;\r\n }", "public T next() {\n T temp = this.curr.next.getData();\n this.curr = this.curr.next;\n return temp;\n }", "public T getNextItem();", "ListNode getNext() { /* package access */ \n\t\treturn next;\n\t}", "public T next() {\n return array[current++];\n }", "@Override\n public E next() {\n if(!hasWork()) {\n throw new NoSuchElementException(\"The worklist is empty\");\n }\n E work = array[front];\n if(front + 1 == array.length) {\n front = 0;\n } else {\n front++;\n }\n size--;\n return work;\n }", "@Override\n\t\tpublic int next() {\n\t\t\treturn current++;\n\t\t}", "public R next(){\n return (R) newList.get(index++);\n }", "@Override\n public Integer next() {\n Integer result = null;\n if (checkCurrentIterator(this.currentIterator) && this.currentIterator.hasNext()) {\n while (this.currentIterator.hasNext()) {\n return this.currentIterator.next();\n }\n } else if (it.hasNext()) {\n this.currentIterator = getIterator(it);\n return this.next();\n }\n return result;\n }", "private int next(int index)\n\t{\n\t\tif (index == list.length - 1)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn index + 1;\n\t\t}\n\t}", "public Nodo getnext ()\n\t\t{\n\t\t\treturn next;\n\t\t\t\n\t\t}", "public BSCObject next()\n {\n if (ready_for_fetch)\n {\n // the next sibling is waiting to be returned, so just return it\n ready_for_fetch = false;\n return sibling;\n }\n else if (hasNext())\n {\n // make sure there is a next sibling; if so, return it\n ready_for_fetch = false;\n return sibling;\n }\n else\n throw new NoSuchElementException();\n }", "Element nextElement () {\n\t\treturn stream.next();\n\t}", "@Override public T next() {\n T elem = null;\n if (hasNext()) {\n Nodo<T> nodo = pila.pop();\n elem = nodo.elemento;\n nodo = nodo.derecho;\n while(nodo != null){\n pila.push(nodo);\n nodo = nodo.izquierdo;\n }\n return elem;\n }\n return elem;\n }", "@Override\n\t\tpublic T1 next() {\n\t\t\treturn (T1)_items[getindex(++_current)];\n\t\t}", "@Override\r\n\t\tpublic Key next() {\n\t\t\tKey i=current.item;\r\n\t\t\tcurrent=current.next;\r\n\t\t\treturn i;\r\n\t\t}", "@Override\n public Node next() {\n if (next == null) {\n throw new NoSuchElementException();\n }\n Node current = next;\n next = next.getNextSibling();\n return current;\n }", "@Override\r\n\t\tpublic Item next() {\r\n\t\t\tif (!hasNext()) {\r\n\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn queue[index[i++]];\r\n\t\t\t}\r\n\t\t}", "public T next() {\n T temp = this.curr.getData();\n this.curr = this.curr.getNext();\n return temp;\n }", "public Item next() throws NoSuchElementException {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Cannot retrieve item from empty deque\");\n }\n Item item = current.getItem(); //item = current item to be returned\n current = current.getNext();\n return item;\n }", "@Override\n\t\tpublic Node next() {\n\t\t\tif (this.next == null) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\tNode element = this.next;\n\t\t\t\tthis.next = (Node) this.next.getNextNode();\n\t\t\t\treturn (Node) element;\n\t\t\t}\n\t\t}", "@Override\n public T next() {\n if (nextItem == null)\n throw new NoSuchElementException();\n T item = nextItem;\n lastItem = nextItem;\n remainingItemCount.decrement();\n if (remainingItemCount.isZero())\n getNextReady();\n return item;\n }", "@Override\n public Integer next() {\n if (cur != null) {\n int temp = cur.intValue();\n cur = null;\n return temp;\n }\n\n if (iter.hasNext()) {\n return iter.next();\n }\n\n return null;\n }", "@Override\n public Integer next() {\n if (next == null) {\n throw new NoSuchElementException();\n }\n Integer toReturn = next;\n next = null;\n if (peekingIterator.hasNext()) {\n next = peekingIterator.next();\n }\n return toReturn;\n }", "public Item next() throws XPathException {\n while (true) {\n NodeInfo next = (NodeInfo)iterator.next();\n if (next == null) {\n current = null;\n position = -1;\n return null;\n }\n if (current != null && next.isSameNodeInfo(current)) {\n continue;\n } else {\n position++;\n current = next;\n return current;\n }\n }\n }", "@Override\n public E next() {\n if (this.hasNext()) {\n curr = curr.nextNode;\n return curr.getData();\n }\n else {\n throw new NoSuchElementException();\n }\n }", "public Integer peek() {\n if (hasNext()){\n if (list.isEmpty()){\n Integer next = iterator.next();\n list.add(next);\n return next;\n }else {\n return list.get(list.size()-1);\n }\n }else {\n return null;\n }\n }", "@Override\r\n\tpublic T next() throws NoSuchElementException{\n\t\tif (hasNext()) {\r\n\t\t\tT curr = next.getData();\r\n\t\t\tnext = next.getNext();\r\n\t\t\treturn curr;\r\n\t\t}\r\n\t\telse throw new NoSuchElementException();\r\n\t\t\r\n\t}", "public Item next() throws XPathException {\n curr = base.next();\n if (curr == null) {\n pos = -1;\n } else {\n pos++;\n }\n return curr;\n }", "public E next() throws NoSuchElementException{\n\t\tPosition<E> aux=actual;\n\t\tif (aux == null) \n\t\t\tthrow new NoSuchElementException();\t\t\n\t\tthis.avanzar();\n\t\treturn aux.element();\n\t}", "public MyNode<? super E> getNext()\n\t{\n\t\treturn this.next;\n\t}", "public T next(){\n return (T)data[ci++];\n }", "@Override\n public E next() throws NoSuchElementException{\n lastItem = it.next();\n nextCount++;\n return(lastItem);\n }", "@Override\n public E next() {\n if (hasNext() == false) {\n throw new NoSuchElementException();\n }\n return this.array[this.index++];\n }", "public ListNode<V> next()\n\t\t{\n\t\t\treturn _next;\n\t\t}", "@Override\n public T next() {\n current = current.next;\n return current.data;\n }", "public Player getNext(){\n\t\treturn this.players.get(this.nextElem);\n\t}", "public IList<T> getNext() {\n throw new UnsupportedOperationException();\n }", "@SuppressWarnings(\"unchecked cast\")\n @Override\n public T next() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n lastNext = heap[cursor++];\n return (T) lastNext;\n }", "public Item next()\n\t\t {\n\t\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t\t return items[indexs[i++]];\n\t\t }", "public E next(){\r\n E data = node.getData();\r\n node = node.getNext();\r\n return data;\r\n }", "public T next() {\n return cur.next();\n }", "public T getNext()\n {\n T elem = handler.getTop();\n handler.pop();\n return elem;\n }" ]
[ "0.8159445", "0.7962273", "0.7923078", "0.78052515", "0.77194124", "0.7705978", "0.7674471", "0.7670007", "0.7635139", "0.76340044", "0.763341", "0.76333", "0.7632475", "0.75563514", "0.75528234", "0.7521339", "0.7515686", "0.75076044", "0.7502943", "0.7479111", "0.74679124", "0.745604", "0.74491954", "0.7424693", "0.7422381", "0.74116623", "0.7392653", "0.7363102", "0.7361071", "0.7350669", "0.7345462", "0.7341511", "0.73094696", "0.73081285", "0.7303498", "0.72898614", "0.7257258", "0.7254515", "0.72216", "0.7192926", "0.71883684", "0.71771336", "0.71667135", "0.7144678", "0.714014", "0.71378076", "0.71253264", "0.7118535", "0.7108329", "0.7108218", "0.7103163", "0.708513", "0.7074987", "0.7046965", "0.7036743", "0.70345235", "0.70275754", "0.70267373", "0.7025735", "0.70196086", "0.70148605", "0.7006812", "0.6983935", "0.6978238", "0.69687986", "0.69578564", "0.69571567", "0.69429314", "0.6931986", "0.6923946", "0.69176626", "0.69175404", "0.6915267", "0.69114476", "0.69107425", "0.69017416", "0.6899537", "0.6899438", "0.68951917", "0.68897367", "0.6887509", "0.68830323", "0.6878814", "0.68564886", "0.685597", "0.68548036", "0.68345684", "0.6824519", "0.6821884", "0.68161774", "0.68107295", "0.678973", "0.6788944", "0.6786563", "0.67790115", "0.67764175", "0.6768648", "0.67626804", "0.6762226", "0.6757411" ]
0.72883034
36
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() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); User = new javax.swing.JTextField(); Pass = new javax.swing.JTextField(); jTextField3 = new javax.swing.JTextField(); jComboBox1 = new javax.swing.JComboBox<>(); jButton1 = new javax.swing.JButton(); jLabel6 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); getContentPane().setLayout(null); jLabel1.setFont(new java.awt.Font("Malgun Gothic", 0, 36)); // NOI18N jLabel1.setText("Sign Up"); getContentPane().add(jLabel1); jLabel1.setBounds(299, 39, 140, 50); jLabel2.setFont(new java.awt.Font("Nirmala UI", 0, 18)); // NOI18N jLabel2.setText("UserName"); getContentPane().add(jLabel2); jLabel2.setBounds(126, 142, 90, 25); jLabel3.setFont(new java.awt.Font("Nirmala UI", 0, 18)); // NOI18N jLabel3.setText("Password"); getContentPane().add(jLabel3); jLabel3.setBounds(126, 204, 90, 25); jLabel4.setFont(new java.awt.Font("Nirmala UI", 0, 18)); // NOI18N jLabel4.setText("Re-enter Password"); getContentPane().add(jLabel4); jLabel4.setBounds(126, 280, 150, 25); jLabel5.setFont(new java.awt.Font("Nirmala UI", 0, 18)); // NOI18N jLabel5.setText("Choose Role"); getContentPane().add(jLabel5); jLabel5.setBounds(126, 354, 120, 25); getContentPane().add(User); User.setBounds(451, 142, 89, 20); getContentPane().add(Pass); Pass.setBounds(451, 206, 89, 20); getContentPane().add(jTextField3); jTextField3.setBounds(451, 280, 89, 20); jComboBox1.setFont(new java.awt.Font("Nirmala UI", 0, 14)); // NOI18N jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Admin", "Fan", "Spectator" })); jComboBox1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jComboBox1ActionPerformed(evt); } }); getContentPane().add(jComboBox1); jComboBox1.setBounds(451, 351, 89, 26); jButton1.setFont(new java.awt.Font("Nirmala UI", 0, 14)); // NOI18N jButton1.setText("Sign Up!"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); getContentPane().add(jButton1); jButton1.setBounds(339, 439, 85, 29); jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/bg4.jpg"))); // NOI18N jLabel6.setText("jLabel6"); getContentPane().add(jLabel6); jLabel6.setBounds(-6, 0, 810, 590); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public 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 GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public 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 IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public 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 CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "0.6944929", "0.6942576", "0.69355655", "0.6931378", "0.6927896", "0.69248974", "0.6924723", "0.69116884", "0.6910487", "0.6892381", "0.68921053", "0.6890637", "0.68896896", "0.68881863", "0.68826133", "0.68815064", "0.6881078", "0.68771756", "0.6875212", "0.68744373", "0.68711984", "0.6858978", "0.68558776", "0.6855172", "0.6854685", "0.685434", "0.68525875", "0.6851834", "0.6851834", "0.684266", "0.6836586", "0.6836431", "0.6828333", "0.68276715", "0.68262815", "0.6823921", "0.682295", "0.68167603", "0.68164384", "0.6809564", "0.68086857", "0.6807804", "0.6807734", "0.68067646", "0.6802192", "0.67943805", "0.67934304", "0.6791657", "0.6789546", "0.6789006", "0.67878324", "0.67877173", "0.6781847", "0.6765398", "0.6765197", "0.6764246", "0.6756036", "0.6755023", "0.6751404", "0.67508715", "0.6743043", "0.67387456", "0.6736752", "0.67356426", "0.6732893", "0.6726715", "0.6726464", "0.67196447", "0.67157453", "0.6714399", "0.67140275", "0.6708251", "0.6707117", "0.670393", "0.6700697", "0.66995865", "0.66989213", "0.6697588", "0.66939527", "0.66908985", "0.668935" ]
0.0
-1
TEST propertyNames(), getProperties(), exists(), remove() which are all not supported.
@Test( expected = UnsupportedOperationException.class ) public void whenCallingPropertyNames() { UserParametersStub lStub = new UserParametersStub( USER_ID, PARM_TYPE ); lStub.propertyNames(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasGetProperty();", "public void _getProperties() {\n Property[] properties = oObj.getProperties();\n IsThere = properties[0];\n tRes.tested(\"getProperties()\", ( properties != null ));\n return;\n }", "public void _hasPropertyByName() {\n requiredMethod(\"getProperties()\");\n tRes.tested(\"hasPropertyByName()\",\n (\n (oObj.hasPropertyByName(IsThere.Name)) &&\n (!oObj.hasPropertyByName(\"Jupp\")) )\n );\n }", "Object getPropertyexists();", "boolean hasPropertyLike(String name);", "public Result testGetPropertyDescriptors() {\n beanInfo.getPropertyDescriptors();\n PropertyDescriptor[] propertyDescriptors = beanInfo\n .getPropertyDescriptors();\n assertTrue(findProperty(\"property8\", propertyDescriptors));\n assertTrue(findProperty(\"class\", propertyDescriptors));\n assertEquals(propertyDescriptors.length, 2);\n return passed();\n }", "@Test\n void getByPropertyLikeSuccess() {\n List<UserRoles> usersRoles = genericDao.getPropertyByName(\"roleName\", \"user\");\n assertEquals(2, usersRoles.size());\n }", "public void testGetProperties() {\n Properties props = rootBlog.getProperties();\n assertNotNull(props);\n assertEquals(rootBlog.getName(), props.getProperty(Blog.NAME_KEY));\n }", "boolean hasProperty();", "boolean hasProperty();", "boolean hasProperty();", "public void _getPropertyByName() {\n requiredMethod(\"getProperties()\");\n boolean result;\n try {\n Property prop = oObj.getPropertyByName(IsThere.Name);\n result = (prop != null);\n } catch (com.sun.star.beans.UnknownPropertyException e) {\n log.println(\"Exception occurred while testing\" +\n \" getPropertyByName with existing property\");\n e.printStackTrace(log);\n result = false;\n }\n\n try {\n oObj.getPropertyByName(\"Jupp\");\n log.println(\"No Exception thrown while testing\"+\n \" getPropertyByName with non existing property\");\n result = false;\n }\n catch (UnknownPropertyException e) {\n result = true;\n }\n tRes.tested(\"getPropertyByName()\", result);\n return;\n }", "boolean propertyExists(Object name) throws JMSException;", "public void testCustomerProperties()\n {\n final String KEY = \"Schlüssel ä\";\n final String VALUE_1 = \"Wert 1\";\n final String VALUE_2 = \"Wert 2\";\n\n CustomProperty cp;\n CustomProperties cps = new CustomProperties();\n assertEquals(0, cps.size());\n\n /* After adding a custom property the size must be 1 and it must be\n * possible to extract the custom property from the map. */\n cps.put(KEY, VALUE_1);\n assertEquals(1, cps.size());\n Object v1 = cps.get(KEY);\n assertEquals(VALUE_1, v1);\n \n /* After adding a custom property with the same name the size must still\n * be one. */\n cps.put(KEY, VALUE_2);\n assertEquals(1, cps.size());\n Object v2 = cps.get(KEY);\n assertEquals(VALUE_2, v2);\n \n /* Removing the custom property must return the remove property and\n * reduce the size to 0. */\n cp = (CustomProperty) cps.remove(KEY);\n assertEquals(KEY, cp.getName());\n assertEquals(VALUE_2, cp.getValue());\n assertEquals(0, cps.size());\n }", "boolean hasProperty(String propertyName);", "String getPropertyExists();", "@Override\r\n public boolean isNameProperty() throws Exception\r\n {\n return false;\r\n }", "boolean containsProperty(String name);", "public Set<String> getStringPropertyNames();", "public interface Properties {\r\n\r\n\t/**\r\n\t * Returns the raw value of the key, or null if not found.\r\n\t */\r\n\tpublic Object getObject(String key);\r\n\t\r\n\t/**\r\n\t * Returns an untyped Iterable for iterating through the raw contents of an array. \r\n\t */\r\n\tpublic Iterable<Object> getObjects(String key);\r\n\r\n\t\r\n\t\r\n\t/**\r\n\t * Returns the value of the key as a string, or default value if not found.\r\n\t */\r\n\tpublic String getString(String key, String defaultValue);\r\n\t\r\n\t/**\r\n\t * Returns a string Iterable for iterating through a list of values. \r\n\t */\r\n\tpublic Iterable<String> getStrings(String key);\r\n\r\n\t\r\n\t\r\n\t/**\r\n\t * Returns the value of the key as a boolean, or default value if not found.\r\n\t */\r\n\tpublic Boolean getBoolean(String key, Boolean defaultValue);\r\n\t\r\n\t/**\r\n\t * Returns a boolean Iterable for iterating through a list of values. \r\n\t */\r\n\tpublic Iterable<Boolean> getBooleans(String key);\r\n\r\n\t\r\n\t\r\n\t/**\r\n\t * Returns the value of the key as an integer, or default value if not found.\r\n\t */\r\n\tpublic Integer getInteger(String key, Integer defaultValue);\r\n\t\r\n\t/**\r\n\t * Returns an integer Iterable for iterating through a list of values. \r\n\t */\r\n\tpublic Iterable<Integer> getIntegers(String key);\r\n\r\n\t\r\n\t\r\n\t/**\r\n\t * Returns the value of the key as a long, or default value if not found.\r\n\t */\r\n\tpublic Long getLong(String key, Long defaultValue);\r\n\r\n\t/**\r\n\t * Returns a long Iterable for iterating through a list of values. \r\n\t */\r\n\tpublic Iterable<Long> getLongs(String key);\r\n\r\n\t\r\n\t\r\n\t/**\r\n\t * Returns the value of the key as an float, or default value if not found.\r\n\t */\r\n\tpublic Float getFloat(String key, Float defaultValue);\r\n\t\r\n\t/**\r\n\t * Returns a float Iterable for iterating through a list of values. \r\n\t */\r\n\tpublic Iterable<Float> getFloats(String key);\r\n\r\n\t\r\n\t\r\n\t/**\r\n\t * Returns the value of the key as a double, or default value if not found.\r\n\t */\r\n\tpublic Double getDouble(String key, Double defaultValue);\r\n\r\n\t\r\n\t/**\r\n\t * Returns a double Iterable for iterating through a list of values. \r\n\t */\r\n\tpublic Iterable<Double> getDoubles(String key);\r\n\t\r\n\r\n\t\r\n\t/**\r\n\t * Returns a nested set of properties for the specified key, or default value if not found.\r\n\t */\r\n\tpublic Properties getPropertiesSet(String key, Properties defaultValue);\r\n\r\n\t/**\r\n\t * Returns a Properties Iterable for iterating through a list of values. \r\n\t */\r\n\tpublic Iterable<Properties> getPropertiesSets(String key);\r\n\t\r\n}", "@Test\n public void testGetProperties() throws DatabaseException {\n DatabaseProperties instance = cveDb.getDatabaseProperties();\n Properties result = instance.getProperties();\n assertTrue(result.size() > 0);\n cveDb.close();\n }", "java.util.Enumeration getPropertyNames();", "public final boolean arePropertiesSupported() {\n\treturn arePropertiesSupported;\n }", "boolean hasSetProperty();", "public Iterator<String> getUserDefinedProperties();", "@Test\n @org.junit.Ignore\n public void shouldBeAbleToCallPropertyIfThereIsASingleProperty() {\n }", "boolean hasProperty0();", "@Test\r\n\tpublic void testGetMetaProperties() throws Exception {\r\n\t\tAdvancedExampleComponent component = new AdvancedExampleComponent();\r\n\t\tXMLBasedPropertyContainer container = new XMLBasedPropertyContainer(XMLBasedPropertyProvider.getInstance()\r\n\t\t\t\t.getMetaPropertiesSet(component.getClass()), component);\r\n\t\tvalidateMetaProperties(container.getMetaProperties());\r\n\t\tcontainer.getProperties();\r\n\t\tvalidateMetaProperties(container.getMetaProperties());\r\n\t}", "public void test_findUniqueByPropertys() {\r\n\t\tPerson person = (Person) this.persistenceService.findUniqueByPropertys(Person.class, getParamMap(2));\r\n\t\tassertForFindUniquePerson(person);\r\n\t}", "@SuppressWarnings({ \"static-method\", \"nls\" })\n @Test\n public final void testGetProperty()\n {\n TestEasyPropertiesObject object = new TestEasyPropertiesObject();\n Assert.assertEquals(\"1.2.3\", object.getVersion());\n }", "boolean hasProperty1();", "public abstract boolean getProperty(String propertyName);", "private static HashMap<String, DefinedProperty> initDefinedProperties() {\n\t\tHashMap<String, DefinedProperty> newList = new HashMap<String, DefinedProperty>();\n\t\t// common properties\n\t\taddProperty(newList, \"name\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"desc\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\t// implicit default properties\n\t\taddProperty(newList, \"donttest\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"dontcompare\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\t// interface properties\n\t\taddProperty(newList, \"use_interface\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"use_new_interface\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\t// reg + regset properties\n\t\taddProperty(newList, \"js_superset_check\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"external\", DefinedPropertyType.SPECIAL, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"repcount\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t// regset only properties\n\t\taddProperty(newList, \"js_macro_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_macro_mode\", DefinedPropertyType.STRING, \"STANDARD\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_namespace\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_typedef_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_repeat\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET, false, false);\n\t\t// reg only properties\n\t\taddProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"aliasedId\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, true, false); // hidden\n\t\taddProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_is_mem\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"cppmod_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\t// signal properties\n\t\taddProperty(newList, \"cpuif_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"field_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activehigh\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activelow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"signalwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.SIGNAL, false, false);\n\t\t// fieldset only properties\n\t\taddProperty(newList, \"fieldstructwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.FIELDSET, false, false);\n\t\t// field properties\n\t\taddProperty(newList, \"rset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"we\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"wel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwe\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swmod\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swacc\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sticky\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"stickybit\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"intr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"anded\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"ored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"xored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"counter\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"overflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"fieldwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"singlepulse\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"underflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"saturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"threshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"precedence\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"encode\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"resetsignal\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"mask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"enable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltmask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltenable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"halt\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"next\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextposedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextnegedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"maskintrbits\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false); \n\t\taddProperty(newList, \"satoutput\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sub_category\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rtl_coverage\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\t\n\t\t// override allowed property set if input type is jspec\n\t\tif (Ordt.hasInputType(Ordt.InputType.JSPEC)) {\n\t\t\tputProperty(newList, \"sub_category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG | DefinedProperty.FIELDSET | DefinedProperty.FIELD, false, false);\n\t\t\tputProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"address\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"arrayidx1\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t\tputProperty(newList, \"addrinc\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t}\t\t\n\n\t\treturn newList;\n\t}", "@Test\n void getByPropertyLikeSuccess() {\n List<Order> orders = dao.getByPropertyLike(\"description\", \"SSD\");\n assertEquals(1, orders.size());\n }", "@Test\n void getByPropertyLikeSuccess() {\n List<User> users = dao.findAllByPropertyLike(\"lastName\", \"Q\");\n assertEquals(1, users.size());\n }", "@Test\n void getByPropertySuccess() {\n List<User> users = genericDao.findByPropertyEqual(\"userName\", \"BigAl\");\n // should only find one entry with the username \"BigAl\"\n assertEquals(users.size(), 1);\n }", "@Test\n public void test16PersistentProperty() throws Exception\n {\n // test find all meta\n List<PSPersistentPropertyMeta> listMeta = ms_cms.findAllPersistentMeta();\n assertTrue(listMeta.size() == 3);\n\n // test find persistent meta by name\n listMeta = ms_cms\n .findPersistentMetaByName(PSPersistentPropertyManager.SYS_USER);\n assertTrue(listMeta.size() == 3);\n\n // test find all properties\n List<PSPersistentProperty> origProps = ms_cms.findAllPersistentProperties();\n\n String myUser = \"myUser\" + System.currentTimeMillis();\n\n // test find by name\n List<PSPersistentProperty> props = ms_cms\n .findPersistentPropertiesByName(myUser);\n assertTrue(props.size() == 0);\n\n // test insert / save property\n PSPersistentProperty prop = new PSPersistentProperty(myUser, \"sys_lang\",\n \"sys_session\", \"private\", \"admin2 sys_lang private\");\n ms_cms.savePersistentProperty(prop);\n props = ms_cms.findPersistentPropertiesByName(myUser);\n assertTrue(props.size() == 1);\n\n // test modify / update property\n String newValue = \"changed\";\n prop.setValue(newValue);\n ms_cms.updatePersistentProperty(prop);\n\n // test delete property\n ms_cms.deletePersistentProperty(prop);\n props = ms_cms.findPersistentPropertiesByName(myUser);\n assertTrue(props.size() == 0);\n\n props = ms_cms.findAllPersistentProperties();\n assertTrue(origProps.size() == props.size());\n }", "boolean hasProperty2();", "@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName1(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \" \", Integer.class);\n }", "public boolean hasProperty( String key );", "@Test\n void getByPropertyLikeSuccess() {\n List<UserRoles> roles = genericDAO.getByPropertyLike(\"userName\", \"a\");\n for(UserRoles role : roles) {\n log.info(role.getUserName());\n }\n assertEquals(2, roles.size());\n }", "@Test(expected = IllegalStateException.class)\n @org.junit.Ignore\n public void shouldNotBeAbleToCallPropertyIfThereAreMultipleProperties() {\n }", "@Override\n\t@SuppressWarnings(\"unchecked\")\n\t@Transactional(propagation = Propagation.SUPPORTS)\n\tpublic List<Property> findPropertyNames() \n\t{\n\t\tList<Property> details = entityManager.createNamedQuery(\"Property.readPropertyNames\").getResultList();\n\t\tlogger.info(\"Property Details are:\" + details);\n\t\treturn details;\n\t}", "public boolean isProperty();", "boolean hasProperty(String key);", "@Override\n public boolean knownProperty(final QName tag) {\n if (propertyNames.get(tag) != null) {\n return true;\n }\n\n // Not ours\n return super.knownProperty(tag);\n }", "@Override\n public boolean knownProperty(final QName tag) {\n if (propertyNames.get(tag) != null) {\n return true;\n }\n\n // Not ours\n return super.knownProperty(tag);\n }", "@Override\n\t\tpublic boolean hasProperty(String key) {\n\t\t\treturn false;\n\t\t}", "@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \"\", Integer.class);\n }", "List<? extends T> getPropertiesLike(String name);", "@Test\n public void testGetPropertyAsList() {\n System.out.println(\"getPropertyAsList\");\n Properties props = new Properties();\n String key = \"testProp\";\n props.setProperty(key, \"alpha, beta, gamma\");\n List<String> expResult = Arrays.asList(\"alpha\", \"beta\", \"gamma\");\n List<String> result = EngineConfiguration.getPropertyAsList(props, key);\n assertEquals(expResult, result);\n }", "public abstract boolean isAllowCustomProperties();", "@Test\n void getByPropertyLikeSuccess() {\n List<Event> events = genericDao.getByPropertyLike(\"name\", \"ti\");\n assertEquals(2, events.size());\n assertEquals(1, events.get(0).getId());\n assertEquals(2, events.get(1).getId());\n }", "public Dictionary<String, Object> getProperties();", "protected List getProperties() {\n return null;\n }", "protected boolean isSupportedProperty(String propertyName, Namespace namespace) {\n if (!WebdavConstants.DAV_NAMESPACE.equals(namespace)) {\n return true;\n }\n \n return DAV_PROPERTIES.contains(propertyName);\n }", "@Test\n void getByPropertyExactSuccess() {\n List<Car> carList = carDao.getByPropertyEqual(\"make\", \"Jeep\");\n assertEquals(1, carList.size());\n }", "@Test\n public void testFindByProperties(){\n\n }", "@Test\n public void testLoadProperties() throws Exception {\n //initialize it on order to be able to run test\n testHelper.getSecurityManager().initiateSecurityContext(\"test\", \"test\");\n\n DavUserPrincipal p = testHelper.getPrincipal(testHelper.getUser());\n\n\n // section 4\n\n DisplayName displayName = (DisplayName)\n p.getProperty(DavPropertyName.DISPLAYNAME);\n assertNotNull(displayName, \"No displayname property\");\n assertTrue(! StringUtils.isBlank(displayName.getDisplayName()), \"Empty displayname \");\n\n ResourceType resourceType = (ResourceType)\n p.getProperty(DavPropertyName.RESOURCETYPE);\n assertNotNull(resourceType, \"No resourcetype property\");\n boolean foundPrincipalQname = false;\n for (QName qname : resourceType.getQnames()) {\n if (qname.equals(RESOURCE_TYPE_PRINCIPAL)) {\n foundPrincipalQname = true;\n break;\n }\n }\n assertTrue(foundPrincipalQname, \"Principal qname not found\");\n\n // 4.1\n AlternateUriSet alternateUriSet = (AlternateUriSet)\n p.getProperty(ALTERNATEURISET);\n assertNotNull(alternateUriSet, \"No alternate-uri-set property\");\n assertTrue(alternateUriSet.getHrefs().isEmpty(), \"Found hrefs for alternate-uri-set\");\n\n // 4.2\n PrincipalUrl principalUrl = (PrincipalUrl)\n p.getProperty(PRINCIPALURL);\n assertNotNull(principalUrl, \"No principal-URL property\");\n assertEquals(p.getResourceLocator().getHref(false),\n principalUrl.getHref(),\n \"principal-URL value not the same as locator href\");\n\n // 4.4\n GroupMembership groupMembership = (GroupMembership)\n p.getProperty(GROUPMEMBERSHIP);\n assertNotNull(groupMembership, \"No group-membership property\");\n assertTrue(groupMembership.getHrefs().isEmpty(), \"Found hrefs for group-membership\");\n }", "EProperties getProperties();", "public void testGetProperty() {\n assertEquals(rootBlog.getName(), rootBlog.getProperty(Blog.NAME_KEY));\n }", "public void test_findUniqueByProperty() {\r\n\t\tPerson person = (Person) this.persistenceService.findUniqueByProperty(Person.class, NAME_PROPERTY, NAME_PARAM[2]);\r\n\t\tassertForFindUniquePerson(person);\r\n\t}", "StringMap getProperties();", "@Override\n protected Collection<String> getExpectedPropertyNames() {\n return new ArrayList<String>();\n }", "@Test\n public void localeIssues() { This is currently expected to fail, we could fix this, but it may be failing correctly.\n // This class has many duplicate get methods such as :\n // - String getDisplayName(Locale inLocale)\n // - String getDisplayName()\n //\n // The Java Bean spec (to me) isn't clear that this is an issue, but it does indicate that a matching 'get<Property Name>' and 'set<Property Name>' indicates\n // a read / write property. It doesn't address exactly what happens when you have a 'get' that takes a parameter.\n //\n // Since a method is invoked using `Method.invoke` which takes a var-args parameter, I would think this is ok to allow. I have tested with a locale selector and it seems to work ok\n // if I modify the validation for the 'existingMethod' to compare argument counts to the existing.\n //\n // https://download.oracle.com/otndocs/jcp/7224-javabeans-1.01-fr-spec-oth-JSpec/\n //\n try {\n ReflectionUtils.findPropertyInfo(Locale.class);\n fail(\"Should have thrown an exception\");\n } catch (Exception e) {\n // Expected\n }\n }", "Map<String, Object> properties();", "public abstract List<PropertyType> getBuiltInProperties();", "Property[] getProperties();", "@Test\n public void testAssertObjectNoGetMethodsType() {\n // setup\n final NoGetMethodsType noGetMethodsType = new NoGetMethodsType(TEST);\n final ChangedProperty<String> jokerProperty = Property.change(NoGetMethodsType.PROPERTY, TEST + TEST);\n\n // method\n assertObject(EMPTY_STRING, noGetMethodsType, jokerProperty);\n }", "public Set getPropertyNames(){\n return this.vendorSpecificProperties;\n }", "String[] getPropertyNames(String opName) throws RemoteException;", "default Map<String, Object> getProperties()\r\n {\r\n return emptyMap();\r\n }", "public String[] getPropertyNames();", "@Test\n void getByPropertyLikeSuccess() {\n List<Car> carList = carDao.getByPropertyLike(\"make\",\"Je\") ;\n assertEquals(1, carList.size());\n }", "public abstract List<BeanPropertyDefinition> findProperties();", "@Override\n public boolean hasProperty(final String relPath) {\n return false;\n }", "@Test(expected = UnrecognizedPropertyException.class)\n public void failOnFieldDeleted() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_deletedField.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "@SuppressWarnings({ \"static-method\", \"nls\" })\n @Test\n public final void testGetSystemProperty()\n {\n TestEasyPropertiesObject object = new TestEasyPropertiesObject();\n if (object.getOperatingSystemName().isEmpty())\n {\n fail(\"System property: os.name should not be empty!\");\n }\n }", "public void testGetSystemProperties() {\n Map<String, String> props = mb.getSystemProperties();\n assertNotNull(props);\n assertTrue(props.size() > 0);\n assertTrue(props.size() == System.getProperties().size());\n for (Map.Entry<String, String> entry : props.entrySet()) {\n assertNotNull(entry.getKey());\n assertNotNull(entry.getValue());\n }\n }", "ArrayList<PropertyMetadata> getProperties();", "public List<NamedThing> getProperties() {\n // TODO this should be changed to AnyProperty type but it as impact everywhere\n List<NamedThing> properties = new ArrayList<>();\n List<Field> propertyFields = getAnyPropertyFields();\n for (Field f : propertyFields) {\n try {\n if (NamedThing.class.isAssignableFrom(f.getType())) {\n f.setAccessible(true);\n Object fValue = f.get(this);\n if (fValue != null) {\n NamedThing se = (NamedThing) fValue;\n properties.add(se);\n } // else not initalized but this is already handled in the initProperties that must be called\n // before the getProperties\n }\n } catch (IllegalAccessException e) {\n throw new TalendRuntimeException(CommonErrorCodes.UNEXPECTED_EXCEPTION, e);\n }\n }\n return properties;\n }", "public boolean hasProperty(String name) {\n return properties.has(name);\n }", "int getPropertiesCount();", "public boolean removeProperty(String name) {\n for(Pp property : properties){\n if(property.getId().equals(name))\n return removeProperty(property);\n }\n return false;\n }", "public void testAssertPropertyReflectionEquals_notEqualsDifferentValues() {\r\n try {\r\n assertPropertyReflectionEquals(\"stringProperty\", \"xxxxxx\", testObject);\r\n fail(\"Expected AssertionFailedError\");\r\n } catch (AssertionFailedError a) {\r\n // expected\r\n }\r\n }", "@Test(expected = UnrecognizedPropertyException.class)\n public void failOnFieldRename() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_desc2.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "private void findExistingProperties(TLFacet target, Set<NamedEntity> existingSubstitutionGroups,\n Set<String> existingPropertyNames) {\n List<TLProperty> existingProperties = PropertyCodegenUtils.getInheritedProperties( (TLFacet) target );\n\n for (TLProperty property : existingProperties) {\n TLPropertyType propertyType = PropertyCodegenUtils.resolvePropertyType( property.getType() );\n\n if (propertyType != null) {\n NamedEntity substitutionGroup = PropertyCodegenUtils.hasGlobalElement( propertyType )\n ? PropertyCodegenUtils.getInheritanceRoot( propertyType )\n : null;\n\n if (substitutionGroup != null) {\n existingSubstitutionGroups.add( substitutionGroup );\n }\n if (property.getName() != null) {\n existingPropertyNames.add( property.getName() );\n }\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "private static boolean isListProperty(String prop) {\n prop = prop.intern();\n for (int i = 0; i < listProperties.length; i++) {\n if (prop == listProperties[i]) {\n return true;\n }\n }\n return false;\n }", "public List <String> getPropertyNames()\n{\n // Get list from PropertyNamesMap - load if not found\n List <String> list = _propertyNamesMap.get(getClass());\n if(list==null) {\n _propertyNamesMap.put(getClass(), list = new ArrayList()); addPropNames(); }\n return list;\n}", "Properties getProperties();", "public interface PropertyNamesIteratorOperations\n{\n\t/* constants */\n\t/* operations */\n\tvoid reset();\n\tboolean next_one(org.omg.CORBA.StringHolder property_name);\n\tboolean next_n(int how_many, org.omg.CosPropertyService.PropertyNamesHolder property_names);\n\tvoid destroy();\n}", "@org.junit.Test\n public void testGetFavorites_NoFavorites_EmptyList() {\n System.out.println(\"getFavorites, empty properties, empty list\");\n\n //First thing: setup your test variables\n final Properties testProperties = new Properties();\n\n //next create the instance under test\n FavoriteAlarmPropertiesService instance = new FavoriteAlarmPropertiesService();\n\n //then override the stubs and/or setup the initial conditions\n //This right here is exactly why dependency injection is important.\n instance.setPropertiesLoader(new PropertiesLoaderStub(){\n @Override\n public Properties loadProperties(String filename) {\n //right here we have stubbed out the properties loader to return\n //our test properties\n return testProperties;\n }\n });\n\n //now Act\n Set<FavoriteAlarm> actual = instance.getFavorites();\n\n //finally, Assert\n assertEquals(\"There should be no favorites\", 0, actual.size());\n }", "@Test\n public void testWithUnknownProperty() throws Exception {\n LogicalGraph socialGraph = getSocialNetworkLoader().getLogicalGraph();\n List<EPGMVertex> vertices = socialGraph\n .callForGraph(new VertexDeduplication<>(\"Person\", Collections.singletonList(\"notSet\")))\n .getVerticesByLabel(\"Person\").collect();\n assertEquals(1, vertices.size());\n }", "public Map getProperties();", "public Properties getProperties();", "public void test_findByPropertys() {\r\n\t\t// step 1:\r\n\t\tList personList = this.persistenceService.findByPropertys(Person.class, getParamMap(0));\r\n\t\tassertForFindGoingmm(personList);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 2:\r\n\t\tpersonList = this.persistenceService.findByPropertys(Person.class, getParamMap(0), 0, PAGE_MAX_SIZE);\r\n\t\tassertForFindGoingmm(personList);\r\n\t\t\r\n\t\t// step 3:\r\n\t\tPaginationSupport ps = this.persistenceService.findPaginatedByPropertys(Person.class, getParamMap(0), 0, PAGE_MAX_SIZE);\r\n\t\tassertForFindGoingmm(ps);\r\n\t}", "@Override\n\t\tpublic Iterable<String> getPropertyKeys() {\n\t\t\treturn null;\n\t\t}", "@Override\n public boolean isPropertySupported(String name) {\n // !!! TBI: not all these properties are really supported\n return mConfig.isPropertySupported(name);\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}" ]
[ "0.7165378", "0.6639066", "0.6614955", "0.65867347", "0.64468884", "0.6443442", "0.6391131", "0.6292787", "0.62565285", "0.62565285", "0.62565285", "0.6243293", "0.6225362", "0.6218884", "0.6196945", "0.6184686", "0.61461496", "0.61318743", "0.6085039", "0.6065975", "0.6023838", "0.6016913", "0.60102236", "0.6003039", "0.5999211", "0.5979603", "0.5972325", "0.59550637", "0.5927682", "0.5911546", "0.591035", "0.58818996", "0.58788437", "0.5866866", "0.58574784", "0.58565193", "0.5848671", "0.5844387", "0.583855", "0.58371574", "0.58267325", "0.5822968", "0.5822474", "0.5822314", "0.581451", "0.581342", "0.581342", "0.57837534", "0.577973", "0.5777742", "0.57689387", "0.5760739", "0.5759263", "0.574272", "0.5741307", "0.57091516", "0.57018536", "0.5700635", "0.5676896", "0.5671698", "0.5658614", "0.5653526", "0.565043", "0.5649692", "0.56447476", "0.56444865", "0.56344855", "0.5634055", "0.5632348", "0.5632141", "0.56279284", "0.56245893", "0.56146", "0.5609634", "0.56001943", "0.5597795", "0.5596687", "0.5584148", "0.55828124", "0.5579116", "0.5560812", "0.55581474", "0.55563897", "0.5546761", "0.55442566", "0.5543793", "0.5532653", "0.55295205", "0.5523991", "0.55239296", "0.55218303", "0.55217224", "0.55056226", "0.55040663", "0.5500825", "0.5479345", "0.54750973", "0.547437", "0.54740304", "0.54727787" ]
0.68492824
1
creates a new random int
private static void chaotic(int lines) { Random rand = new Random(); //prints out a random amout of * from 1 to 5 for every line for (int i = 0; i < lines; i++) { int length = rand.nextInt(5) + 1; for(int o = 0; o < length; o++) System.out.print("* "); //new line to separate lines of * System.out.println(""); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int generateRandomNumber() {\n\t\treturn new SplittableRandom().nextInt(0, 3);\n\t}", "public static int generateRandomNumber()\n\t{\n\t\tRandom r = new Random();\n\t\treturn r.nextInt();\n\t}", "private int generateRandomNumber() {\n\t\treturn (int) Math.floor(Math.random() * Constants.RANDOM_NUMBER_GENERATOR_LIMIT);\n\t}", "public int getRandomPositiveInt(){\r\n long gen = (a*seed+c)%m;\r\n seed = gen;\r\n return (int)gen;\r\n }", "public static int randomNext() { return 0; }", "public int generateRandom() {\n\t\tint random = (int)(Math.random()*((6-1)+1))+1;\n\t\treturn random;\n\t}", "public static int getRandomNumber(){\n int random = 0; // set variable to 0\r\n random = (int)(Math.random()*10) + 1; //generate random number between 1 and 10\r\n return random; //return random number\r\n }", "public static int generateDigit() {\n\t\t\n\t\treturn (int)(Math.random() * 10);\n\t}", "private int rand() {\n return (int)(Math.random()*(RAND_MAX + 1));\n }", "public static int getRandom() \n\t{\n\t\treturn rGenerator.nextInt();\n\t}", "public int getRandomNumber() {\n int Random;\n Random randomize = new Random();\n Random = randomize.nextInt(3);\n return new Integer(Random);\n }", "private static int newNumber()\n\t{\n\t\tdouble initial = Math.random();\n\t\tdouble rangeAdjusted = initial * (10000 - 1001) + 1000;\n\t\tint rounded = (int)Math.round(rangeAdjusted);\n\t\treturn rounded;\n\t}", "private void setRand(){\n rand = generator.nextInt(9) + 1;\n }", "public void generateNewSecret() {\r\n \r\n //Get Random Number With Correct Digits\r\n int intRand = randomNumberGenerator.nextInt((int)(Math.pow(10, numDigits) - Math.pow(10, numDigits - 1))) + (int)Math.pow(10, numDigits - 1);\r\n \r\n //Set To String\r\n String strRand = String.valueOf(intRand);\r\n \r\n //Set Value\r\n secretNumber = convertNumToDigitArray(strRand);\r\n \r\n }", "public int getRandomsNumber(){\n Random random = new Random();\n int number = random.nextInt(12) + 1;\n return number;\n }", "private int randomHelper() {\n\t\tRandom rand = new Random();\n\t\tint randomNum = rand.nextInt((10000 - 1) + 1) + 1;\n\t\treturn randomNum;\n\t}", "int randInt(int n) {\r\n return _randomSource.nextInt(n);\r\n }", "private int randomNum() {\r\n\t return((int)(Math.random() * 100));\r\n\t }", "int RandomGeneratorZeroToThree (){\n\t\t int randomInt = 0;\n\t\t Random randomGenerator = new Random();\n\t\t for (int idx = 1; idx <= 10; ++idx) {\n\t\t\t randomInt = randomGenerator.nextInt(4);\n\n\t\t }\n\t\t return randomInt;\n\t }", "public static void randomInit(int r) { }", "private int IdRandom() {\n\t\tRandom random = new Random();\n\t\tint id = random.nextInt(899999) + 100000;\n\t\treturn id;\n\t}", "public static int getRandomInt()\n {\n return ThreadLocalRandom.current().nextInt(1000000000, 2147483647);\n }", "int randInt(int n) {\n return _randomSource.nextInt(n);\n }", "public static int randInt() {\n Random rand = new Random();\n\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n int randomNum = rand.nextInt((20 - 10) + 1) + 10;\n\n return randomNum;\n }", "public static int genID(){\n Random rand = new Random();\n\n int theID = rand.nextInt(999)+1;\n\n return theID;\n\n }", "public static int randomInt() {\n return randomInt(Integer.MIN_VALUE, Integer.MAX_VALUE);\n }", "public static int randNum() {\r\n\t\tint rand = (int)(Math.random()*((100)+1)); // Num generated between [0, 100]\r\n\t\treturn rand;\r\n\t}", "public int randomInt() {\n\t\t\t\t // NOTE: Usually this should be a field rather than a method\n\t\t\t\t // variable so that it is not re-seeded every call.\n\t\t\t\t Random rand = new Random();\n\t\t\t\t // nextInt is normally exclusive of the top value,\n\t\t\t\t // so add 1 to make it inclusive\n\t\t\t\t int randomNum = rand.nextInt();\n\t\t\t\t return randomNum;\n\t\t\t\t}", "private static int get() { \r\n Random r = new Random();\r\n return (r.nextInt(9));\r\n }", "public int randomNum()\r\n {\r\n Random rand = new Random();\r\n int n = rand.nextInt(52)+1;\r\n return n;\r\n }", "private int randomInteger(int n) {\n return (int) (randGen.random() * (n - 1));\n }", "public static int RandomNum(){\n\n Random random = new Random();\n int ItemPicker = random.nextInt(16);\n return(ItemPicker);\n }", "public static int getRandomAmount(){\n return rand.nextInt(1000);\n }", "public static int randomGet() { return 0; }", "public static int randomNumber(){\r\n int max = 10;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }", "private static int newSecretNumber(int min, int max)\n {\n Random rnd = new Random();\n return rnd.nextInt((max + 1 - min) + min);\n }", "int RandomGenerator0To29 (){\n\t\t int randomInt2 = 0;\n\t\t Random randomGenerator2 = new Random();\n\t\t for (int idx2 = 1; idx2 <= 10; ++idx2) {\n\t\t\t randomInt2 = randomGenerator2.nextInt(30);\n\t\t }\n\t\t return randomInt2;\n\t }", "public static int getRandomNum() {\n\t\tRandom rand = new Random();\n\t\tint num = rand.nextInt(3)+1;\n\t\treturn num;\n\t}", "@Override\n public Integer pee() {\n return (int) (random() * 8);\n }", "private Random rand()\n\t{\n\t\treturn new Random();\n\t}", "protected ImsInteger createRandomTestNumber(ImsInteger modulus){\r\n\t\t\r\n\t\t// get a random number\r\n\t\tImsInteger testNumber = new ImsInteger(modulus.bitLength(), new Random());\r\n\t\t\r\n\t\t// assure that it is positive and smaller modulus\r\n\t\ttestNumber = testNumber.mod(modulus);\r\n\t\t\r\n\t\t// assure that it is non zero\r\n\t\tif(testNumber.compareTo(ImsInteger.ZERO)==0){\r\n\t\t\ttestNumber = modulus.subtract(ImsInteger.ONE);\r\n\t\t}\r\n\t\treturn testNumber;\r\n\t}", "int getRandom(int max);", "public int randomNum() {\n\t\treturn 1 + (int) (Math.random() * 3); // randomNum = minimum + (int)(Math.random() * maximum);\n\t}", "public static int randomNumberAlg(){\r\n int max = 10;\r\n int min = 1;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }", "public int NewMonster(){\n int r = (int) (Math.random() * (9 - 2 + 1) + 2);\n return r;\n }", "public void newGame() {\n\t\ttheNumber = (int)(Math.random()* 100 + 1);\r\n\t\t\r\n\t}", "public static String generateRandomInteger() {\n SecureRandom random = new SecureRandom();\n int aStart = 1;\n long aEnd = 999999999;\n long range = aEnd - (long) aStart + 1;\n long fraction = (long) (range * random.nextDouble());\n long randomNumber = fraction + (long) aStart;\n return String.valueOf(randomNumber);\n }", "public int idGenerator() {\n Random random = new Random();\n int id;\n return id = random.nextInt(10000);\n }", "public static int getRandom(int n){\n\t\treturn rg.nextInt(n); \n\t}", "public static int randomFastInt() {\n return ThreadLocalRandom.current().nextInt();\n }", "public int pickNumber() {\n\t\t\n\t\tint max=10;\n\t\t\n\t\tint i = (int) Math.floor((Math.random()*max)+1);\n\t\treturn i;\n\t\t\n\t}", "public int randInt(int limit) {\n\t\treturn (_generator.nextInt(limit));\n\t}", "private int getRandomNumber(int limit) {\n\t\tlong seed = System.currentTimeMillis();\n\t\tRandom rand = new Random(seed);\n\t\treturn rand.nextInt(limit) + 1;\n\t}", "private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}", "IntValue createIntValue();", "IntValue createIntValue();", "private static int randomInteger(int a, int b) {\n return (int) (Math.random() * (b - a) + a);\n }", "private static int randInt(int max) {\n\t\tRandom rand = new Random(System.currentTimeMillis());\n\t\treturn rand.nextInt(max + 1);\n\t}", "public static String createRandomNum() {\n\t\tlogger.debug(\"Navigating to URL\");\n\t\tString num = \"\";\n\t\ttry {\n\t\t\tnum = RandomStringUtils.random(4, true, true);\n\t\t\tlogger.debug(\"Generated Random Number is : \" + num);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn num;\n\t}", "private int _randomCode () {\n Random random = new Random();\n code = random.nextInt(999999);\n return code;\n }", "@Override\n public int orinar() {\n\n return (int) (Math.random() * 400) + 400;\n }", "void setRandomNo() {\n\t\tno = 10000000 + (int) (Math.random() * 90000000);\n\t}", "private int randomValue() {\r\n\t\tRandom rand = new Random();\r\n\t\tint val = rand.nextInt(10);\r\n\t\tif(val == 9)\r\n\t\t\treturn 4;\r\n\t\telse\r\n\t\t\treturn 2;\r\n\t}", "public int next() {\r\n\t\t// Get a random value\r\n\t\tint index = random.nextInt(values.length);\r\n\t\tint byteValue = values[index] + 128; // For an unsigned value\r\n\t\tint value = byteValue * 3;\r\n\t\t// If byteValue = 255 (max), then choose between 765000 and 799993\r\n\t\tif (byteValue == 255) {\r\n\t\t\tvalue += random.nextInt(800-765+1);\r\n\t\t}\r\n\t\t// Otherwise, choose between value and value + 2 (inc)\r\n\t\telse {\r\n\t\t\tvalue += random.nextInt(3);\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "int random(int m)\n {\n return (int) (1 + Math.random()%m);\n }", "public int generateNumber(int difficulty) {\n Random generator = new Random();\n return 1 + generator.nextInt((int) Math.pow(10, difficulty));\n }", "public Random getRandomNumberGenerator() { return randomNumberGenerator; }", "private int randomAge() {\n \tint low = 18;\n \tint high = 100;\n \tint offset = high - low;\n \tRandom r = new Random();\n \treturn r.nextInt(offset) + low;\n \t\n }", "void new_seed( Seed seed );", "public static int superFastRandomInt(){\n\t\tint x = (randByte << 1);\n\t\tint y = (randByte >>> 1);\n\t\treturn (randByte = x ^ ~y) & 0xFF;\n\t}", "public int nextInt() {\n return mersenne.nextInt();\n }", "public static int getNewId() {\n int id;\n\n do {\n id = randomId.nextInt(Integer.MAX_VALUE);\n } while (generatedId.contains(id));\n\n generatedId.add(id);\n return id;\n }", "private int generateSecret() {\n int secret = secretGenerator.nextInt();\n while (secretToNumber.containsKey(secret)) {\n secret = secretGenerator.nextInt();\n }\n return secret;\n }", "public int randInt(int min, int max) {\n Random rand = new Random();\n\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n int randomNum = rand.nextInt((max - min) + 1) + min;\n\n return randomNum;\n}", "public static int customRandom(int range)\n {\n \tint random = (int)(Math.random()*10)%range;\n\t\n\treturn random;\n }", "public static int getRandomBalance(){\n return rand.nextInt(1000000);\n }", "public static int generarNumeroAleatorio(int limite){ //Entre 0 y limite - 1\n return (int) (Math.random()*limite);\n }", "private void getRandomNumber() {\n\t\tRandom generator = new Random();\n\t\trandomNumber = generator.nextInt(POSSIBLE_CHOICE.length);\n\t}", "@Override\r\n\tpublic int generateAccountId() {\n\t\tint AccountId = (int) (Math.random()*10000);\r\n\t\treturn 0;\r\n\t}", "public static int getRand(int n) {\r\n return rand.nextInt(n);\r\n }", "private double getRandomNumber(){\n double rand = Math.random();//produce a number between 0 and 1\n rand = rand - 0.5;\n return rand;\n }", "private int randomNumber(int high, int low){\n \t\t Random r = new Random();\n \t\t return (r.nextInt(high-low) + low);\n \t }", "private PRNG() {\n java.util.Random r = new java.util.Random();\n seed = r.nextInt();\n mersenne = new MersenneTwister(seed);\n }", "public int getRandom() {\n \n return this.nums.get(this.rand.nextInt(this.nums.size()));\n \n }", "public int compete() {\r\n\t\tint max = 20;\r\n\t\tint min = 10;\r\n\t\tRandom Rand = new Random();\r\n\t\tint ranNum = Rand.nextInt(max - min) + min;\r\n\t\treturn ranNum;\r\n\t}", "private int getRandNumber() {\n int randNum = 0;\n Random generator = new Random();\n randNum = generator.nextInt(LIST.length()-1);\n return randNum;\n }", "public int drawpseudocard(){\n Random random = new Random();\n return random.nextInt(9)+1;\n }", "public int generateSessionID(){\r\n SecureRandom randsession = new SecureRandom();\r\n return randsession.nextInt(1234567890);\r\n }", "private int randomGen(int upperBound) {\n\t\tRandom r = new Random();\n\t\treturn r.nextInt(upperBound);\n\t}", "private int aleatorizarNumero() {\n\t\tint aux;\n\t\taux = r.getIntRand(13) + 1;\n\t\treturn aux;\n\t}", "public void studIdGenr()\n {\n \tthis.studentID = (int)(Math.random() * (2047300 - 2047100 + 1) + 2047100);\n }", "private int random(int from, int to) {\n return from + (int) (Math.random() * (to - from + 1));\n }", "private static int getSecretNum(int arg1) {\n Random rand = new Random();\n return rand.nextInt(UPPERBOUND)+1; //make range 1-100\n }", "int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }", "public static String randInt(){\n return String.valueOf(rand.nextInt(10));\n }", "private int choose(){\n\t\tdouble temp = 10 * Math.random();\n\t\tint i = (int)temp;\n\t\treturn i;\n\t}", "public void roll(){\n currentValue = rand.nextInt(6)+1;\n }", "public static int getRandomInt(int a, int b) {\n return a + (int) (Math.random() * b);\n }", "private int getRandomNumber() {\n int randomInt = 0;\n Random randomGenerator = new Random();\n randomInt = randomGenerator.nextInt(NUM_LIST.length());\n if (randomInt - 1 == -1) {\n return randomInt;\n } else {\n return randomInt - 1;\n }\n }", "public static int random(int n)\n {\n int num = (int)(Math.random()*n);\n return num;\n }", "public IntegerGenotype create() \r\n\t{\n\t\tIntegerGenotype genotype = new IntegerGenotype(1,3);\r\n\t\tgenotype.init(new Random(), Data.numeroCuardillas); \r\n\t\t\r\n\t\treturn genotype;\r\n\t}" ]
[ "0.7342226", "0.7296996", "0.7267132", "0.7118677", "0.71062225", "0.7080897", "0.70787203", "0.70154107", "0.7009579", "0.6985988", "0.69859076", "0.6855901", "0.6833068", "0.6823475", "0.681815", "0.6800104", "0.6787526", "0.6775367", "0.6760195", "0.67518204", "0.67423856", "0.6739886", "0.67305547", "0.6723594", "0.6714187", "0.6709202", "0.6695242", "0.66859615", "0.6684732", "0.6681337", "0.6631515", "0.6611764", "0.6602825", "0.6592289", "0.65911525", "0.6587303", "0.6581607", "0.655429", "0.6497515", "0.64599735", "0.64334124", "0.6429877", "0.6429763", "0.6421585", "0.6415418", "0.6386529", "0.63641346", "0.6364009", "0.6360717", "0.6358223", "0.63526267", "0.6329016", "0.6294607", "0.6294504", "0.6290767", "0.6290767", "0.62894005", "0.6280871", "0.62625057", "0.6255474", "0.62443244", "0.62441885", "0.6218729", "0.6215947", "0.62057227", "0.6204526", "0.6194072", "0.61939484", "0.6178278", "0.61645097", "0.61586", "0.6149566", "0.6143939", "0.6132999", "0.61325103", "0.6129901", "0.6127778", "0.61203676", "0.61011606", "0.6094751", "0.6088334", "0.60833704", "0.6079021", "0.60621876", "0.6056831", "0.6051756", "0.60498554", "0.6045051", "0.604072", "0.60353017", "0.6032644", "0.6028768", "0.6011889", "0.60099804", "0.60077834", "0.6005648", "0.6001197", "0.59926367", "0.59882605", "0.5987927", "0.59869707" ]
0.0
-1
File f= new File("D:\\Test1.txt");
public static void main(String[] args)throws IOException { FileReader fr= new FileReader("D:\\Test1.txt"); BufferedReader br= new BufferedReader(fr); String line=null; while((line=br.readLine())!=null) { System.out.println(line); } // int ch=0; // while( (ch=fr.read())!=-1) { // System.out.print((char)ch); // } fr.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "File openFile();", "public static File getTestFile( String path )\r\n {\r\n return new File( getBasedir(), path );\r\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tFile f = new File(\"c:\\\\Ranjan\", \"ranjan1.txt\");\n\t\tf.createNewFile();\n\t\t\n\t\tSystem.out.println(f.getPath());\n\t\tSystem.out.println(f);\n\t}", "public static void main(String[] args) {\n\t\tFile file = new File(\"test/a.txt\");\r\n\t\tFileUtil.createFile(file);\r\n\t\t/*if(! file.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tSystem.out.println(file.getAbsolutePath());\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t*/\r\n\t}", "public FileTest() {\n }", "File getFile();", "File getFile();", "myFile(String Name){\n\t this.FileName = Name + \".txt\"\t;\n\t System.out.println(FileName);\n\t try {\n\t\treadFile() ;\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\tSystem.out.println(\"No,This File Please run again\"); \n\t}\n\t}", "@SuppressWarnings(\"unused\")\r\n\tprivate static File createFile(String path) {\r\n\t\t\r\n\t\t// open the file\r\n\t\tFile currentFile = new File(path);\r\n\t\t\r\n\t\t\r\n\t\t// check if it is a valid file\r\n\t\tif (currentFile == null) {\r\n\t\t\tSystem.out.println(\"Could not create the file\");\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\r\n\t\t// hopefully things went perfect\r\n\t\treturn currentFile;\r\n\r\n\t}", "public static void main(String[] args) {\n File file = new File (\"tesEt.txt\");\n // Path file = Paths.get(\"test.txt\");\n // System.out.println(file.get);\n System.out.println(file.getAbsoluteFile());\n System.out.println(file.isAbsolute());\n System.out.println(file.exists());\n \n // try {\n // // File.createTempFile(\"prefix\", \"suffix\");\n // sy\n // } catch (IOException e) {\n // // TODO Auto-generated catch block\n // e.printStackTrace();\n // }finally\n // {\n // System.out.println(\"hehehehe\");\n // }\n // file.\n\n }", "public static void main(String[] args) {\n\n\t\tString filePath = FilePath.FILE_PATH;\n\t\t\n\t\ttry {\n\t\t\t// File 클래스는 자바에서 파일 및 폴더 객체를 다루는 클래스이다. \n\t\t\t// new File() : File 클래스의 인스턴스를 생성 \n\t\t\t// 실제 하드디스크에 물리적인 파일/폴더(디렉토리)를 생성하지 않는다. \n\t\t\t// 실제 파일/폴더(디렉토리)를 만들기 위해서는 File 클래스에 있는 함수를 호출해야 한다. \n\t\t\t// createNewFile(), mkdir(), mkdirs()\n\t\t\tFile f = new File(\"aaaaaa\");\n\t\t\tSystem.out.println(\"f >>> : \" + f);\n\t\t\tSystem.out.println(\"f.getName() >>> : \" + f.getName());\n\t\t\tboolean bf = f.createNewFile();\n\t\t\tSystem.out.println(\"bf >>> : \" + bf);\n\t\t\n\t\t\tboolean bdir = f.isDirectory();\n\t\t\tSystem.out.println(\"bdir >>> : \" + bdir);\n\t\t\tboolean bfile = f.isFile();\n\t\t\tSystem.out.println(\"bfile >>> : \" + bfile);\n\t\t\t\n\t\t\tString getPath = f.getPath(); // File에 입력된 경로 출력 \n\t\t\tSystem.out.println(\"getPath >>> : \" + getPath);\n\t\t\tString getAbsolutePath = f.getAbsolutePath(); // 현재경로 + 입력된 경로(연산되지 않은 경로)\n\t\t\tSystem.out.println(\"getAbsolutePath >>> : \" + getAbsolutePath);\n\t\t\tString getCanonicalPath = f.getCanonicalPath(); // 현재경로 + 입력된 경로(연산된 경로)\n\t\t\tSystem.out.println(\"getCanonicalPath >>> : \" + getCanonicalPath);\n\t\t\t\t\t\t\n\t\t\tFile f1 = new File(filePath + \"/\" + \"aaaaaa.txt\");\n\t\t\tSystem.out.println(\"f1 >>> : \" + f1);\n\t\t\tSystem.out.println(\"f1.getName() >>> : \" + f1.getName());\n\t\t\tboolean bf1 = f1.createNewFile();\n\t\t\tSystem.out.println(\"bf1 >>> : \" + bf1);\n\t\t\t\n\t\t\tboolean bdir1 = f1.isDirectory();\n\t\t\tSystem.out.println(\"bdir1 >>> : \" + bdir1);\n\t\t\tboolean bfile1 = f1.isFile();\n\t\t\tSystem.out.println(\"bfile1 >>> : \" + bfile1);\n\t\t\t\n\t\t\tString getPath1 = f1.getPath(); // File에 입력된 경로 출력 \n\t\t\tSystem.out.println(\"getPath1 >>> : \" + getPath1);\n\t\t\tString getAbsolutePath1 = f1.getAbsolutePath(); // 현재경로 + 입력된 경로(연산되지 않은 경로)\n\t\t\tSystem.out.println(\"getAbsolutePath1 >>> : \" + getAbsolutePath1);\n\t\t\tString getCanonicalPath1 = f1.getCanonicalPath(); // 현재경로 + 입력된 경로(연산된 경로)\n\t\t\tSystem.out.println(\"getCanonicalPath1 >>> : \" + getCanonicalPath1);\n\t\t\t\n\t\t}catch(Exception io) {\n\t\t\t\n\t\t}\t\t\n\t}", "public File getFile();", "public File getFile();", "String getFile();", "String getFile();", "String getFile();", "public static void main(String[] args) throws IOException{\n String fname =args[0];\n \n //pass the filename or directory name to File object\n File f = new File(fname);\n File f1 = new File(\"testABC.txt\");\n\n f.createNewFile();\n f1.createNewFile();\n \n //apply File class methods on File object\n System.out.println(\"File name :\"+f.getName());\n System.out.println(\"Path: \"+f.getPath());\n System.out.println(\"lastModified: \" +new java.util.Date(f.lastModified()));\n System.out.println(\"Absolute path: \" +f.getAbsolutePath());\n System.out.println(\"Canonical path: \" +f.getCanonicalPath());\n System.out.println(\"Parent:\"+f.getParent());\n System.out.println(\"Exists :\"+f.exists());\n if(f.exists())\n {\n System.out.println(\"Is writeable:\"+f.canWrite());\n System.out.println(\"Is readable:\"+f.canRead());\n System.out.println(\"Is a directory:\"+f.isDirectory());\n System.out.println(\"File Size in bytes \"+f.length());\n }\n\n System.out.println(\"Rename: \"+f.renameTo(f1));\n }", "public File() {\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tFile file = new File(\"F:/Chandu/Test/Test1/Test2/Test3/Test4\");\n\t\t\n\t\t//create a directory\n\t\t\n\t\tboolean isFolderCreated =file.mkdirs();\n\t\t\n\t\tSystem.out.println(isFolderCreated);\n\t\t\n\t\t//get AbsolutePath\n\t\t\n\t\tString absolutePath =file.getAbsolutePath();\n\t\tSystem.out.println(absolutePath);\n\t\t\n\t\tString canonicalPath =file.getCanonicalPath();\n\t\tSystem.out.println(canonicalPath);\n\t\t\n\t\tboolean isDirectory =file.isDirectory();\n\t\t\n\t\tSystem.out.println(isDirectory);\n\t\t\n\t\t//how to create file\n\t\t\n\t\tFile file1 = new File(\"F:/Chandu/Test/abc.java\") ;\n\t\t\n\t\t//write data into file\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public File getFile ();", "private FileUtil() {}", "public static void findFile() throws IOException {\n File newFile = new File(\"test.txt\");\n FileInputStream stream = new FileInputStream(newFile);\n }", "public static void main(String[] args) {\n File myFile= new File(\"D:/yeah.txt\");\n System.out.println(\"Iiim file bnuu? \"+myFile.exists());\n\t System.out.println(\"Zaagdsan zam deeree bnuu?\"+myFile.isFile());\t \n\t System.out.println(\"Ug file iin ner \"+myFile.getName());\n\t System.out.println(\"Ug file iin zam \"+myFile.getPath());\n\t}", "void open(String fileName);", "private File getClassFile(String name) {\n File file = new File(\"/Users/dingchenchen/Downloads/Test.class\");\n return file;\n }", "File(String path, String type)\n {\n this.path=path;\n this.type=type;\n }", "File getWorkfile();", "public static void main(String[] args) {\n\t\tFile f = new File(\"src/com/briup/java_day19/ch11/FileTest.txt\");// \"src/com/briup/\"(win and linux)\r\n\t\t\r\n\t\tSystem.out.println(f);\r\n\t\tSystem.out.println(f.exists());\r\n\t\tif(!f.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(f.canWrite());\r\n\t\tSystem.out.println(f.canExecute());\r\n\t\tSystem.out.println(f.canRead());\r\n\t\tSystem.out.println(f.getAbsolutePath());//override toString\r\n\t\tSystem.out.println(f.getAbsoluteFile());\r\n\t\tSystem.out.println(f.getName());\r\n\t\tSystem.out.println(f.getParent());\r\n\t\tSystem.out.println(f.getParentFile());\r\n\t\tSystem.out.println(f.isDirectory());\r\n\t\tSystem.out.println(f.isFile());\r\n\t\tSystem.out.println(f.length());//how many byte\r\n\t\t\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tString[] str = f.getParentFile().list();\r\n\t\tSystem.out.println(Arrays.toString(str));\r\n\t\tfor(String s:str){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tFile pf = f.getParentFile();\r\n\t\tString[] str2 = pf.list(new FilenameFilter() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\t//文件名以txt结尾的\r\n//\t\t\t\treturn name.endsWith(\"java\");\r\n//\t\t\t\treturn name.contains(\"Byte\");\r\n\t\t\t\treturn name.startsWith(\"Byte\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfor(String s:str2){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\n public void file() throws UnsupportedEncodingException {\n String fileName = createFile(FILE_BODY, \"/file/create/in\");\n\n // Read the file\n RestAssured\n .get(\"/file/get/in/\" + Paths.get(fileName).getFileName())\n .then()\n .statusCode(200)\n .body(equalTo(FILE_BODY));\n }", "public File() {\n\t\tthis.name = \"\";\n\t\tthis.data = \"\";\n\t\tthis.creationTime = 0;\n\t}", "public static void main(String[] args) {\n\t\tFile file=new File(\"d:\\\\新建文件夹 (3)\\\\12.txt\");\r\n\t\tPath path=Paths.get(\"d:\\\\新建文件夹 (3)\\\\146\\\\125\");\r\n\t\tFile file1=new File(\"d:\\\\新建文件夹 (3)\\\\asf\");\r\n\t\t\tSystem.out.println(path.getFileName());\r\n\t\t\tSystem.out.println(file.getName());\r\n\t\t\tSystem.out.println(path.getRoot());\r\n\t\t\tSystem.out.println(path.getParent());\r\n\t\t\ttry {\r\n\t\t\t\tFiles.createFile(Paths.get(\"d:\\\\新建文件夹 (3)\\\\147\\\\1111111.txt\"));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tFiles.copy(file.toPath(),Paths.get(\"d:\\\\新建文件夹 (3)\\\\146\\\\189.txt\"));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\r\n//\t\tSystem.out.println(file.exists());\r\n////\t\tfile.delete();\r\n//\t\tSystem.out.println(file.canRead());]\r\n//\t\tSystem.out.println(file.canWrite());\r\n//\t\tSystem.out.println(file.getPath());\r\n//\t\tSystem.out.println(file.getAbsolutePath());\r\n//\t\tSystem.out.println(file.getName());\r\n//\t\tfile.renameTo(file1);\r\n//\t\tSystem.out.println(file.length());\r\n\r\n\t}", "public static void init(){\n Path path = FileDirectoryUtil.getPath(\"src\", \"fileIO\", \"test.txt\");\n FileDirectoryUtil.tryCreateDirectory(path);\n\n // Try to create the file\n path = Paths.get(path.toAbsolutePath().toString(), \"test.txt\");\n FileDirectoryUtil.tryCreateFile(path);\n\n // Print out the final location of the file\n System.out.println(path.toAbsolutePath());\n\n // Try to write to the file\n IOUtil.tryWriteToFile(getContent(), path);\n\n // Try to print the content of the file\n IOUtil.tryPrintContents(path);\n\n }", "@Test\n public void testCreateFilePath() {\n System.out.println(\"createFilePath with realistic path\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"\n +fSeparator+\"Users\"+fSeparator+\"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"\n +fSeparator+\"Test1\";\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = instance.createFilePath(path);\n assertEquals(\"Some message\",expResult, result);\n }", "File getDefaultFile();", "public static void main(String[] args) {\n\t\t\r\n\t\tFile f = new File(\"F://Users//JavaFile//mvp.txt\");\r\n\t\t\r\n\t\tif(f.exists())\r\n\t\t\tSystem.out.println(\"Available\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"not available\");\r\n\t\t\r\n\t\tif(f.isFile())\r\n\t\t\tSystem.out.println(\"It is a file\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"It is not a file\");\r\n\t\t\r\n\t\tSystem.out.println(\"Length = \"+f.length());\r\n\t\tSystem.out.println(\"Name = \"+f.getName());\r\n\t\tSystem.out.println(\"Parent = \"+f.getParent());\r\n\t\tSystem.out.println(\"Path = \"+f.getPath());\r\n\r\n\t}", "@Test\n public void testCreateTextFile() {\n System.out.println(\"createTextFile to existing dest Path\");\n String destPath = folder.toString()+fSeparator+\"Texts\"+fSeparator;\n String text = \"qweqweqwewqeqw\";\n String fileName = \"test\";\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = instance.createTextFile(destPath, text, fileName);\n assertEquals(\"Some message\",expResult, result);\n }", "private static File getFile(String pathFile) {\n\t\tif(!pathFile.isEmpty()){\n\t\t\treturn new File(pathFile);\n\t\t}\n\t\treturn null;\n\t}", "public void readFile();", "public void setFile(File f) { file = f; }", "FileObject getFile();", "FileObject getFile();", "static File localFile(String path, String name) {\n\t\tFile f = new File(path, name.replace('*', 'X'));\n\t\treturn new File(f.getAbsolutePath()); /* make EVM use user.dir */\n\t}", "public static void main(String[] args) {\n\n\t\n\tFile file = new File(\"e:\\\\temp/newFile.txt\");\n\t// d:/가 d:\\\\대체 가능\n\t\n\t\n\ttry {\n\t\tif(checkBeforeReadFile(file)) {\n\t\t\t/*FileReader fileReader = new FileReader(file);\n\t\t\t// 한글자씩 읽어 옴\n\t\t\t\tint ch = fileReader.read();\n\t\t\t\twhile(ch != -1) { // -1 파일의 끝\n\t\t\t\t\tSystem.out.print((char)ch);\n\t\t\t\t\tch = fileReader.read();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\t*/\n\t\t\t//문장으로 읽어오는 것을 더 많이 사용 - 한글자 -> 저장해서 모은다\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\t\t\n\t\t\tString str;\n\t\t\twhile((str = br.readLine()) != null) {\n\t\t\t\tSystem.out.println(str); //배열에다가 어떻게 넣을까를 생각해봐야함\n\t\t\t\t\n\t\t\t}\n\t\t\tbr.close();\n\t\t}\t \n\t\telse {\n\t\t\tSystem.out.println(\"파일을 찾을 수 없습니다.\");\n\t\t}\n\t }catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\n\t\n\t\n\t\n\t}", "String getFilepath();", "public File createFile(final String path) {\n return new com.good.gd.file.File(path);\n }", "void createFile()\n {\n //Check if file already exists\n try {\n File myObj = new File(\"src/main/java/ex45/exercise45_output.txt\");\n if (myObj.createNewFile()) {\n System.out.println(\"File created: \" + myObj.getName());// created\n } else {\n System.out.println(\"File already exists.\"); //exists\n }\n //Error check\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }", "public fileReaderTest()\n {\n }", "public void Leer() throws FileNotFoundException\n {\n // se crea una nueva ruta en donde se va a ir a leer el archivo\n String ruta = new File(\"datos.txt\").getAbsolutePath(); \n archivo=new File(ruta); \n }", "private static void createTestFile(String path) throws IOException {\n\t\tFile file = new File(path);\n\t\tFileWriter writer = new FileWriter(file);\n\t\twriter.write(\"Jenkins Test : \"+new Date() + \" ==> Writing : \" + Math.random());\n\t\twriter.flush();\n\t\twriter.close();\n\t}", "public static void main(String[] args) {\n File file = new File(\".\", \"subdir\" + File.separator + \"hello.txt\");\r\n System.out.println(\"Does it exist? \" + file.exists());\r\n System.out.println(\"Can it be read? \" + file.canRead());\r\n System.out.println(\"Can it be written? \" + file.canWrite());\r\n System.out.println(\"Is it a directory? \" + file.isDirectory());\r\n System.out.println(\"Is it a file? \" + file.isFile());\r\n //Prints false\r\n System.out.println(\"Is it absolute? \" + file.isAbsolute());\r\n System.out.println(\"Is it hidden? \" + file.isHidden());\r\n\r\n //Shows redundant .'s in the path.\r\n System.out.println(\"What is its absolute path? \" +\r\n file.getAbsolutePath());\r\n\r\n //Like absolute path without redundant .'s.\r\n try {\r\n System.out.println(\"What is its canonical path? \" +\r\n file.getCanonicalPath());\r\n }\r\n catch (IOException ex) { }\r\n\r\n System.out.println(\"What is its name? \" + file.getName());\r\n //Prints the path as defined during instantiation of the File class.\r\n System.out.println(\"What is its path? \" + file.getPath());\r\n\r\n //lastModified() returns a long value representing the date and time\r\n // when the file was last modified. The value is in milliseconds\r\n // measured from 1/1/1970 to last modified date/time.\r\n System.out.println(\"When was it last modified? \" +\r\n new Date(file.lastModified()));\r\n\r\n // Character representation of the path-list separator that's used\r\n // when multiple file paths are given in said path-list.\r\n System.out.println(\"What is the path separator? \" +\r\n File.pathSeparatorChar);\r\n\r\n // Character representation of the separator used in a given\r\n // file path.\r\n System.out.println(\"What is the name separator? \" +\r\n File.separatorChar);\r\n }", "public static void createFile(String path) {\n try {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter the file name :\");\n String filepath = path+\"/\"+scanner.next();\n File newFile = new File(filepath);\n newFile.createNewFile();\n System.out.println(\"File is Created Successfully\");\n\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "public static void main(String[] args) {\n\n\t\tFile parent = new File(\"/home/subham/Desktop/JAVAcodes/FILEHANDLING/FILES\");\n\t\tFile obj = new File(parent, \"test1.txt\");\n\n\t\tSystem.out.println(\".seperator: \" + obj.separator);\n\t\tSystem.out.println(\"getName(): \" + obj.getName());\n\t\tSystem.out.println(\"getParent(): \" + obj.getParent());\n\t\tSystem.out.println(\"getPath(): \" + obj.getPath());\n\t\tSystem.out.println(\"isAbsolute(): \" + obj.isAbsolute());\n\t\tSystem.out.println(\"getAbsolutePath(): \" + obj.getAbsolutePath());\n\t\tSystem.out.println(\"canRead(): \" + obj.canRead());\n\t\tSystem.out.println(\"canWrite(): \" + obj.canWrite());\n\t\tSystem.out.println(\"exists(): \" + obj.exists());\n\t\tSystem.out.println(\"isDirectory(): \" + obj.isDirectory());\n\t\tSystem.out.println(\"isFile(): \" + obj.isFile());\n\t\tSystem.out.println(\"length(): \" + obj.length());\n\n\t\tString[] s = parent.list();\n\t\tFile[] f = parent.listFiles();\n\t\tSystem.out.println(\"\\n\\n\");\n\t\tfor (String a : s) {\n\t\t\tSystem.out.println(a);\n\t\t}\n\t\tSystem.out.println(\"\\n\\n\");\n\t\tfor (File a : f) {\n\t\t\tSystem.out.println(a.getName());\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n File file = new File(\"test.txt\");\n if(file.exists()){\n file.delete();\n }\n if(!file.exists()){\n\n //创建文件\n// if(file.createNewFile()){\n// System.out.println(\"create successful!\\n\");\n// }\n\n //创建目录\n// if(file.mkdir()){\n// System.out.println(\"mkdir successful!\\n\");\n// }\n\n\n\n //创建文件, 写入文件\n// if(!file.exists()){\n// file.createNewFile();\n// }\n//\n// FileWriter fileWriter = new FileWriter(file);\n// PrintWriter printWriter = new PrintWriter(fileWriter);\n// printWriter.println(\"你好,世界!\\n\");\n\n\n //写文件\n FileWriter fileWriter = new FileWriter(file);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n// fileWriter.write(\"你好!\\n\"); //不会自动换行\n// fileWriter.write(\"Hola!\\n\");\n// fileWriter.write(\"Hello!\\n\");\n// fileWriter.flush();\n bufferedWriter.write(\"你好啊!\\n\");\n bufferedWriter.write(\"oHaYo!\\n\");\n bufferedWriter.write(\"Hala!\\n\");\n bufferedWriter.close();\n fileWriter.close();\n\n\n\n\n //读文件\n FileReader fileReader = new FileReader(file);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n System.out.println(bufferedReader.readLine());\n System.out.println(bufferedReader.readLine());\n System.out.println(bufferedReader.readLine());\n\n bufferedReader.close();\n fileReader.close();\n\n }\n\n// //删除文件\n// file.delete();\n\n\n\n\n\n\n\n\n\n System.out.println();\n\n }", "public void open (File file)\n\t{\n\t\topen (file, false);\n\t}", "File a(File file) {\n if (file != null) {\n if (file.exists() || file.mkdirs()) {\n return file;\n }\n akx.h().d(\"Fabric\", \"Couldn't create file\");\n do {\n return null;\n break;\n } while (true);\n }\n akx.h().a(\"Fabric\", \"Null File\");\n return null;\n }", "public Java_Experiment_File Java_Experiment_File(String string) {\n\tSystem.out.println(string);\n\t// This is possible!!! NO error generated!!!\n\treturn new Java_Experiment_File(3);\n }", "public void\topen(File path) throws IOException;", "public FileUtility()\n {\n }", "public static void CreateFile (String filename) {\r\n\t\t try {\r\n\t\t File myObj = new File(filename + \".txt\");\r\n\t\t if (myObj.createNewFile()) {\r\n\t\t System.out.println(\"File created: \" + myObj.getName());\r\n\t\t } else {\r\n\t\t System.out.println(\"File already exists.\");\r\n\t\t }\r\n\t\t } catch (IOException e) {\r\n\t\t System.out.println(\"An error occurred.\");\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t }", "public static File fMibsTextDir() \r\n\t{\r\n\t\treturn new File(fMibsDir() + File.separator + \"txt\");\t\r\n\t}", "public static void fillFile(IFile file) throws Exception {\n fillFile(file, \"/resources/Test.txt\");\n }", "public void setFile(File file);", "@RequestMapping(\"/test\")\n\tpublic Item test() {\n File f = new File(\"program.txt\"); \n\n // Get the absolute path of file f \n String absolute = f.getAbsolutePath(); \n\n // Display the file path of the file object \n // and also the file path of absolute file \n System.out.println(\"Original path: \"\n + f.getPath()); \n System.out.println(\"Absolute path: \"\n + absolute); \n\t\treturn new Item(1, \"Hello world\");\n\t}", "public GridFSInputFile createFile(File f) throws IOException {\n\treturn createFile(new FileInputStream(f), f.getName(), true);\n }", "private FileUtil() {\n \t\tsuper();\n \t}", "public String openFile() {\n\t\t\n\t\tString chosenFile = \"\";\n\t\treturn chosenFile;\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tString str=sc.next();\r\n\t\tFile f=new File(str);\r\n\t\tSystem.out.println(f.exists());\r\n\t\tSystem.out.println(f.canRead());\r\n\t\tSystem.out.println(f.canWrite());\r\n System.out.println(f.length());\r\n System.out.println(f.getClass());\r\n\t}", "String getFilePath();", "@Test\n public void testFileOpen() {\n \n FileHandler fileToTest;\n \n fileToTest = new FileHandler(\"Kalle.xml\");\n \n try {\n fileToTest.openFile();\n fail(\"Should have raised a fileNotFoundException\");\n }\n catch (FileNotFoundException fnf) {\n }\n }", "public TextFile(Scanner input) {\n \tSystem.out.println(\"Enter your Textfile name: \");\n \tString textfilename = input.nextLine(); \n \ttextFile = new File(textfilename);\n \tthis.checkFile();\n }", "public File getFileValue();", "@Test\n public void saveFile() {\n\n // create a new file system object\n FileSystem sampleFileSystem = new FileSystem();\n\n // add our previously created Person Objects to the created Address Book\n ericAddressBook.add(Eric);\n ericAddressBook.add(Daniel);\n\n File sampleFile = new File(\"Address Book\");\n\n\n\n }", "public FilePartReader() {\n filePath = \"/home/cc/Desktop/OopModule/testing/filepartreader-testing-with-junit-grzechu31/text.txt\";\n fromLine = 1;\n toLine = 10;\n }", "public BiomartAccess(String fname) \n {\n m_file = new File(fname);\n }", "public abstract File mo41087j();", "private static File identifyFile() {\n try {\n File inputFile = new File(\"inputFile.txt\");\n if (inputFile.createNewFile()) {\n System.out.println(\"Debug : File Created\");\n } else {\n System.out.println(\"Debug : File Exists\");\n }\n return inputFile;\n } catch (IOException e) {\n System.out.println(\"Error reading input\");\n e.printStackTrace();\n }\n return null;\n }", "@Override\r\n\tpublic void test() {\n\t\tFile file = new File(\"c:\\\\testing.txt\");\r\n\t\tFileInputStream fis = null;\r\n\t\tBufferedInputStream bis = null;\r\n\t\t\r\n\t\tbyte[] buf = new byte[1024];\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(file);\r\n\t\t\tbis = new BufferedInputStream(fis);\r\n\t\t\t\r\n\t\t\twhile (bis.available() != 0) {\r\n\t\t\t\tSystem.out.println(bis.read(buf));\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif(bis!=null)\r\n\t\t\t\t\tbis.close();\r\n\t\t\t\tif(fis != null) \r\n\t\t\t\t\tfis.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public abstract File mo41088k();", "public void openFile(String file)\n\t{\n\t\tthis.file=file;\n\t\tSystem.out.println(\"file has been opened\");\n\t}", "public static void WriteFile()throws java.io.FileNotFoundException,java.io.IOException\n {\n FileOutputStream out1= new FileOutputStream(\"Sample.bin\") ; \n String ab=\"Welcome to sample file\";\n out1.write(ab.getBytes());\n out1.flush();\n out1.close();\n }", "public File(String fileName) {\n\t\tthis(new java.io.File(fileName));\n\t}", "public boolean isFile() { return true; }", "public FileOnDisk(File file) throws StyxException\n {\n this(file.getName(), file);\n }", "public void openFile(){\n\t\ttry{\n\t\t\t//input = new Scanner (new File(\"input.txt\")); // creates file \"input.txt\" or will rewrite existing file\n\t\t\tFile inFile = new File(\"input.txt\");\n\t\t\tinput = new Scanner(inFile);\n\t\t\t//for (int i = 0; i < 25; i ++){\n\t\t\t\t//s = input.nextLine();\n\t\t\t\t//System.out.println(s);\n\t\t\t//}\n\t\t}catch (SecurityException securityException){ // catch errors\n\t\t\tSystem.err.println (\"You do not have the write access to this file.\");\n\t\t\tSystem.exit(1);\n\t\t}catch (FileNotFoundException fnf){// catch errors\n\t\t\tSystem.err.println (\"Trouble opening file\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public FileLocation(File file) {\n this(file, -1, -1);\n }", "public void mo210a(File file) {\n }", "Path getFilePath();", "private void ReadTextFile(String FilePath) {\n\t\t\n\t\t\n\t}", "@Test\n public void testReturnTextFile() throws Exception {\n System.out.println(\"returnTextFile which contains text\");\n String path = folder.toString()+fSeparator+\"Texts\"+fSeparator+\"textFile.txt\";\n FilesDao instance = new FilesDao();\n String expResult = \"textOfTextFile\";\n String result = instance.returnTextFile(path);\n assertEquals(\"Some message\",expResult, result);\n }", "public FileOnDisk(String name, File file) throws StyxException\n {\n this(name, file, 0666, true);\n }", "public EnigmaFile() throws Exception\n {\n\n String path = Main.class.getClassLoader().getResource(\"filein.txt\").getPath();\n File currentDirectory=new File(path);\n finstream = new FileInputStream(currentDirectory);\n\n\n String pathToWrite = path.replaceFirst(\"filein.txt\",\"fileout.txt\");\n File outputFile = new File(pathToWrite);\n br = new BufferedReader(new InputStreamReader(finstream));\n outputFile.createNewFile();\n FileWriter fileWrite = new FileWriter(outputFile.getAbsoluteFile());\n writer = new BufferedWriter(fileWrite);\n\n\n }", "public static void main(String[] args) {\n\n\t\tFile fi = new File(\"C:/test_io\");\n\t\tif(fi.exists()) {\n\t\t\t\n\t\t\tSystem.out.println(\"exists!\");\n\t\t}else {\n\t\t\tSystem.out.println(\"new\");\n\t\t\tfi.mkdir();\n\t\t}\n\t\t\n\t\tFile fic1 = new File(fi, \"AA\");\n\t\tfic1.mkdir();\n\t\t\n\t\tFile fic2 = new File(\"C:/test_io\", \"BB\");\n\t\tfic2.mkdir();\n\t\t\n\t\tFile fitxt = new File(fic1,\"a.txt\");\n\t\t\n\t\ttry {//checked exception\n\t\t\tfitxt.createNewFile();\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}", "private File m20345e(String str) {\n return new File(m20344d(str));\n }", "public static void main(String[] args) throws IOException {\n\r\n\t\t\r\n\t\tString file = \"data/example.txt\";\r\n\t\t\r\n\t\t\r\n\t\t//2. Create object of FileWrite\r\n\t\t\r\n\t\tFileWriter fw = new FileWriter (file);\r\n\t\t\r\n\t\tfw.write(\"This is my example file\");\r\n\t\t\r\n\t\t//3. you have to close the file.\r\n\t\t\r\n\t\tfw.close();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tFile file = new File(\".\"+File.separator+\"MyFile.txt\"); // this file must be at the directory of J2SE\n\t\t\n\t\tlong length = file.length();\n\t\t/**\n\t\t * long length()\n\t\t * get the Bytes of this file\n\t\t */\n\t\tSystem.out.println(\"file size: \"+length);\n\t\t\n\t\t\n\t\t/**\n\t\t * file.getName();\n\t\t */\n\t\tSystem.out.println(\"file name: \" + file.getName());\n\t\t\n\t\t/**\n\t\t * file.getPath()\n\t\t * file.getAbsolutePath()\n\t\t */\n\t\tSystem.out.println(\"file path: \" + file.getPath());\n\t\tSystem.out.println(\"file absolute path: \" + file.getAbsolutePath());\n\t\t\n\t\t\n\t\t/**\n\t\t * file.latModifed()\n\t\t * last modified time\n\t\t */\n\t\tlong lastm = file.lastModified();\n\t\tSystem.out.println(lastm);\n\t\tDate date = new Date();\n\t\tdate.setTime(lastm);\n\t\tSimpleDateFormat timeFormatter = new SimpleDateFormat(\"yyyy MM-dd, HH:mm:ss\");\n\t\tString timeString = timeFormatter.format(date);\n\t\tSystem.out.println(\"last modified: \"+ timeString);\n\t\t\n\t\t\n\t\t\n\t\t/**\n\t\t * boolean exists()\n\t\t * query if there such file exists in our hard disk\n\t\t */\n\t\tif (file.exists()) {\n\t\t\tSystem.out.println(\"exists\");\n\t\t}else{\n\t\t\tSystem.out.println(\"not exist\");\n\t\t}\n\t\t\t\n\t\t/**\n\t\t * boolean.isFile()\n\t\t */\n\t\tif (file.isFile()) {\n\t\t\tSystem.out.println(\"is file\");\n\t\t}\n\t\tif (file.isDirectory()){\n\t\t\tSystem.out.println(\"is directory\");\n\t\t}\n\t\t\n\t\t/**\n\t\t * read write\n\t\t */\n\t\tif (file.canRead()) {\n\t\t\tSystem.out.println(\"file can read\");\n\t\t}\n\t\tif (file.canWrite()) {\n\t\t\tSystem.out.println(\"file can write\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private static void copyFile(File scrFile, File file) {\n\t\r\n}", "public static String loadAFileToStringDE2(File f) throws IOException {\n InputStream is = null;\n String ret = null;\n try {\n is = new FileInputStream(f) ;\n long contentLength = f.length();\n byte[] ba = new byte[(int)contentLength];\n is.read(ba);\n ret = new String(ba);\n } finally {\n if(is!=null) {try{is.close();} catch(Exception e){} }\n }\n// long endTime = System.currentTimeMillis();\n// System.out.println(\"方法2用时\"+ (endTime-beginTime) + \"ms\");\n return ret; \n }", "@Override\n public void setFile(File f) {\n \n }", "public static void main(String[] args){\n\t\ttry{\n\t\t\tFileReader fr=new FileReader(\"C:\\\\Users\\\\bharathi\\\\Desktop\\\\Hello\\\\new.txt\");\n\t\t\tbr = new BufferedReader(fr);\n\t\t\tSystem.out.println(\"reading lins from the file.... \"+br.readLine());\n\t\t}catch(Exception e){}\n\t}", "public void readAndWriteExample(){\n\t\tSystem.out.println(\"********************Read from a file in same package********************\");\n\t\tURL url = this.getClass().getResource(\"test2.txt\"); //Letar upp om det finns något som heter test.text bland mina filer\n\t\tFile f;\n\t\ttry {\n\t\t\tf = new File(url.toURI());\n\t\t\tif (f.exists()){\n\t\t\t\tSystem.out.println(url.toURI()+\"THE file: \"+ f.getName()+ \"and has the path: \"+ f.getAbsolutePath() );\n\t\t\t\tScanner s = new Scanner(f);\n\t\t\t\twhile (s.hasNext()){ // Read as long as there is anything to read;\n\t\t\t\t\tString string = s.nextLine();\n\t\t\t\t\tSystem.out.println(string);\n\t\t\t\t}\n\t\t\t\ts.close();\n\t\t\t}\n\t\t} catch (Exception e1) {\n\t\t\tSystem.out.println(\"No file found\");\n\t\t}\n\t\t\n\t\t\n\t\t//Read from the net\n\t\tSystem.out.println(\"********************Read from the net********************\");\n\t\ttry {\n\t\t\t\tURL mah = new URL(\"http://www.mah.se\");\n\t\t\t\tScanner s = new Scanner(mah.openStream());\n\t\t\t\twhile (s.hasNext()){\n\t\t\t\t\tString string = s.nextLine();\n\t\t\t\t\tSystem.out.println(string);\n\t\t\t\t}\n\t\t\t\ts.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//Write to a local file\n\t System.out.println(\"********************Write to a local file********************\");\n\t\tURL url2 = this.getClass().getResource(\"test2.txt\");\n\t\tSystem.out.println(url2.getPath());\n\t\t\n\t\tFile f2;\n\t\t\ttry {\n\t\t\t\tf2 = new File(\"src/se/mah/k3/pfi2/lecture7/Test3.txt\");\n\t\t\t\tSystem.out.println(\"PATH: \"+ f2.getAbsolutePath());\n\t\t\t\tif (!f2.exists()){\n\t\t\t\t\tf2.createNewFile();\n\t\t\t\t}\n\t\t\t\tPrintWriter pw = new PrintWriter(f2);\n\t\t\t\tpw.println(\"Skriver till filen\");\n\t\t\t\tpw.println(\"Skriver till filen igen\");\n\t\t\t\tpw.close(); //Stänger filen\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}", "public static File getFile(String fileName){\n \tString basedir = System.getProperty(\"user.dir\");\n \tString dir = basedir+\"/src/test/resources/\" + fileName;\n \treturn new File(dir);\n }" ]
[ "0.6981822", "0.6647941", "0.6611481", "0.6510708", "0.6423828", "0.63764", "0.63764", "0.628062", "0.6265397", "0.6211432", "0.61901975", "0.61666834", "0.61666834", "0.61600864", "0.61600864", "0.61600864", "0.61264724", "0.61242586", "0.6111715", "0.60716677", "0.6019981", "0.60122705", "0.6011929", "0.60063416", "0.59819114", "0.597803", "0.59737104", "0.595639", "0.5946146", "0.59127516", "0.5902656", "0.5896867", "0.58966446", "0.5875414", "0.58710486", "0.58576137", "0.5843094", "0.5820853", "0.5817253", "0.581725", "0.581725", "0.5811388", "0.5792634", "0.57839847", "0.57366705", "0.5708685", "0.57011265", "0.5693371", "0.5686949", "0.5680567", "0.5678308", "0.56757843", "0.56755024", "0.5674247", "0.5670395", "0.5664685", "0.56604147", "0.56601644", "0.5658093", "0.56504357", "0.56482244", "0.56434613", "0.5641935", "0.56403506", "0.56279224", "0.5601641", "0.558225", "0.55814254", "0.5581286", "0.5575632", "0.5572068", "0.5569378", "0.5557992", "0.55480945", "0.5543258", "0.5541628", "0.55413055", "0.5532961", "0.55325294", "0.5529575", "0.5523964", "0.5519", "0.55184174", "0.55148596", "0.5514338", "0.55099195", "0.5508018", "0.5503306", "0.5501652", "0.5501261", "0.5493509", "0.548798", "0.5485173", "0.5481243", "0.54785013", "0.54774725", "0.54744864", "0.54690164", "0.54677796", "0.54670227", "0.5462034" ]
0.0
-1
A partir del precio y el dinero introducido calcula las monedas que se dan de cambio
public float calcular(float dinero, float precio) { // Cálculo del cambio en céntimos de euros cambio = Math.round(100 * dinero) - Math.round(100 * precio); // Se inicializan las variables de cambio a cero cambio1 = 0; cambio50 = 0; cambio100 = 0; // Se guardan los valores iniciales para restaurarlos en caso de no // haber cambio suficiente int de1Inicial = de1; int de50Inicial = de50; int de100Inicial = de100; // Mientras quede cambio por devolver y monedas en la máquina // se va devolviendo cambio while(cambio > 0) { // Hay que devolver 1 euro o más y hay monedas de 1 euro if(cambio >= 100 && de100 > 0) { devolver100(); // Hay que devolver 50 céntimos o más y hay monedas de 50 céntimos } else if(cambio >= 50 && de50 > 0) { devolver50(); // Hay que devolver 1 céntimo o más y hay monedas de 1 céntimo } else if (de1 > 0){ devolver1(); // No hay monedas suficientes para devolver el cambio } else { cambio = -1; } } // Si no hay cambio suficiente no se devuelve nada por lo que se // restauran los valores iniciales if(cambio == -1) { de1 = de1Inicial; de50 = de50Inicial; de100 = de100Inicial; return -1; } else { return dinero - precio; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calcular() {\n int validar, c, d, u;\n int contrasena = 246;\n c = Integer.parseInt(spiCentenas.getValue().toString());\n d = Integer.parseInt(spiDecenas.getValue().toString());\n u = Integer.parseInt(spiUnidades.getValue().toString());\n validar = c * 100 + d * 10 + u * 1;\n //Si es igual se abre.\n if (contrasena == validar) {\n etiResultado.setText(\"Caja Abierta\");\n }\n //Si es menor nos indica que es mas grande\n if (validar < contrasena) {\n etiResultado.setText(\"El número secreto es mayor\");\n }\n //Si es mayot nos indica que es mas pequeño.\n if (validar > contrasena) {\n etiResultado.setText(\"El número secreto es menor\");\n }\n }", "@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "public double calcularPortes() {\n\t\tif (this.pulgadas <= 40) {\n\t\t\tif (this.getPrecioBase() > 500)\n\t\t\t\treturn 0;\n\t\t\telse\n\t\t\t\treturn 35;\n\t\t} else\n\t\t\treturn 35 + (this.pulgadas - 40);\n\t}", "public void calculoPersonal(){\n ayudantes = getAyudantesNecesarios();\n responsables = getResponsablesNecesarios();\n \n //Calculo atencion al cliente (30% total trabajadores) y RRPP (10% total trabajadores):\n \n int total = ayudantes + responsables;\n \n atencion_al_cliente = (total * 30) / 100;\n \n RRPP = (total * 10) / 100;\n \n //Creamos los trabajadores\n \n gestor_trabajadores.crearTrabajadores(RRPP, ayudantes,responsables,atencion_al_cliente);\n \n }", "public double getEntreLlegadas() {\r\n return 60.0 / frecuencia;\r\n }", "private void peso(){\r\n if(getPeso()>80){\r\n precioBase+=100;\r\n }\r\n else if ((getPeso()<=79)&&(getPeso()>=50)){\r\n precioBase+=80;\r\n }\r\n else if ((getPeso()<=49)&&(getPeso()>=20)){\r\n precioBase+=50;\r\n }\r\n else if ((getPeso()<=19)&&(getPeso()>=0)){\r\n precioBase+=10;\r\n }\r\n }", "public void precioFinal(){\r\n if(getConsumoEnergetico() == Letra.A){\r\n precioBase = 100+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.B)){\r\n precioBase = 80+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.C){\r\n precioBase = 60+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.D)){\r\n precioBase = 50+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.E){\r\n precioBase = 30+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.F)){\r\n precioBase = 10+precioBase;\r\n }\r\n else{\r\n aux=1;\r\n System.out.println(\"...No existe...\");\r\n }\r\n if (aux==0){\r\n peso();\r\n }\r\n \r\n }", "@Override\n public void calcularIntGanado() {\n intGanado = saldo;\n for(int i = 0; i < plazoInv; i++){\n intGanado += inve * 12;\n intGanado += intGanado * (intAnual / 100);\n }\n intGanado = intGanado - (inve + saldo);\n }", "public void calcPrecioTotal() {\n try {\n float result = precioUnidad * Float.parseFloat(unidades.getText().toString());\n prTotal.setText(String.valueOf(result) + \"€\");\n }catch (Exception e){\n prTotal.setText(\"0.0€\");\n }\n }", "public Double calcularPrecio() {\n double adicion = 0.0;\n\n switch (tipoAlimento) {\n case 'N':\n // Producto Natural\n adicion += 40;\n break;\n\n case 'C':\n // Producto con Conservantes\n adicion += 20;\n break;\n\n default:\n break;\n }\n\n // El peso tambien afecta el precio final del producto\n if (peso >= 0 && peso <= 9) {\n adicion += 6;\n }\n if (peso > 9 && peso <= 16) {\n adicion += 8;\n }\n if (peso > 16) {\n adicion += 20;\n }\n\n return precioBase + adicion;\n }", "public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }", "public static Documento calcularExcento(Documento doc, List<DocumentoDetalleVo> productos) {\n\t\tDouble totalReal = 0.0, exectoReal = 0.0;\n\t\tDouble gravado = 0.0;\n\t\tDouble ivatotal = 0.0;\n\t\tDouble peso = 0.0;\n\t\tDouble iva5 = 0.0;\n\t\tDouble iva19 = 0.0;\n\t\tDouble base5 = 0.0;\n\t\tDouble base19 = 0.0;\n\t\tDouble costoTotal =0.0;\n\t\t//este campo es para retencion del hotel\n\t\tDouble retencion =0.0;\n\t\t// aqui voy toca poner a sumar las variables nuebas para que se reflejen\n\t\t// en el info diario\n\t\tfor (DocumentoDetalleVo dDV : productos) {\n\t\t\tLong productoId = dDV.getProductoId().getProductoId();\n\t\t\tDouble costoPublico = dDV.getParcial();\n\t\t\tDouble costo = (dDV.getProductoId().getCosto()==null?0.0:dDV.getProductoId().getCosto())*dDV.getCantidad();\n\t\t\tDouble iva1 = dDV.getProductoId().getIva().doubleValue() / 100;\n\t\t\tDouble peso1 = dDV.getProductoId().getPeso() == null ? 0.0 : dDV.getProductoId().getPeso();//\n\t\t\tpeso1 = peso1 * dDV.getCantidad();\n\t\t\ttotalReal += costoPublico;\n\t\t\tcostoTotal+=costo;\n\t\t\tdouble temp;\n\t\t\tivatotal = ivatotal + ((costoPublico / (1 + iva1)) * iva1);\n\t\t\tpeso = peso + peso1;\n\t\t\t// si es iva del 19 se agrega al documento junto con la base\n\t\t\tif (iva1 == 0.19) {\n\t\t\t\tiva19 = iva19 + ((costoPublico / (1 + iva1)) * iva1);\n\t\t\t\tbase19 = base19 + (costoPublico / (1 + iva1));\n\t\t\t}\n\t\t\t// si es iva del 5 se agrega al documento junto con la base\n\t\t\tif (iva1 == 0.05) {\n\t\t\t\tiva5 = iva5 + ((costoPublico / (1 + iva1)) * iva1);\n\t\t\t\tbase5 = base5 + (costoPublico / (1 + iva1));\n\t\t\t}\n\t\t\tif (iva1 > 0.0) {\n\t\t\t\ttemp = costoPublico / (1 + iva1);\n\t\t\t\tgravado += temp;\n\n\t\t\t} else {\n\t\t\t\ttemp = costoPublico;\n\t\t\t\t//no suma el excento si es producto retencion\n\t\t\t\tif( productoId!=6l && productoId!=7l) {\n\t\t\t\t\texectoReal += temp;\n\t\t\t\t}else {\n\t\t\t\t\tretencion+= temp;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tdoc.setTotal(totalReal);\n\t\tdoc.setSaldo(totalReal);\n\t\tdoc.setExcento(exectoReal);\n\t\tdoc.setGravado(gravado);\n\t\tdoc.setIva(ivatotal);\n\t\tdoc.setPesoTotal(peso);\n\t\tdoc.setIva5(iva5);\n\t\tdoc.setIva19(iva19);\n\t\tdoc.setBase5(base5);\n\t\tdoc.setBase19(base19);\n\t\tdoc.setTotalCosto(costoTotal);\n\t\tdoc.setRetefuente(retencion);\n\t\treturn doc;\n\t}", "public int getPrecios()\r\n {\r\n for(int i = 0; i < motos.size(); i++)\r\n {\r\n precio_motos += motos.get(i).getCoste();\r\n }\r\n \r\n return precio_motos;\r\n }", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "private int calcularPrecio(Repuesto repuesto, boolean formateo, boolean limpieza) {\n int precio = 0;\n if (repuesto != null) {\n precio += repuesto.getPrecio();\n }\n \n if (formateo) {\n precio += 10000;\n }\n \n if (limpieza) {\n precio += 7500;\n }\n return precio;\n }", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }", "public double precioFinal() {\r\n double aumento = 0;\r\n switch (consumoEnergetico) {\r\n case 'A':\r\n aumento = 100;\r\n break;\r\n case 'B':\r\n aumento = 80;\r\n break;\r\n case 'C':\r\n aumento = 60;\r\n break;\r\n case 'D':\r\n aumento = 50;\r\n break;\r\n case 'E':\r\n aumento = 30;\r\n break;\r\n case 'F':\r\n aumento = 10; \r\n break;\r\n }\r\n if (peso >= 0 && peso <= 19) {\r\n aumento += 10;\r\n }else if ( peso >= 20 && peso <= 49) {\r\n aumento += 50;\r\n }else if ( peso >= 50 && peso <=79 ) {\r\n aumento += 80;\r\n }else if ( peso >= 80 ){\r\n aumento += 100;\r\n }\r\n \r\n double precioFinal = aumento + this.precioBase;\r\n return precioFinal;\r\n }", "@Override\n\tpublic double calculaDesconto() {\n\t\treturn this.gastosEmCongressos;\n\t}", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }", "public void prinRecaudacion()\n {\n System.out.println(\"La cantidad recaudada por la maquina1 es \" + maquina1.getTotal());\n System.out.println(\"La cantidad recaudada por la maquina2 es \" + maquina2.getTotal());\n System.out.println(\"La cantidad total es\" + ( maquina1.getTotal() + maquina2.getTotal()));\n}", "public double precioFinal(){\r\n \r\n double plus = 0;\r\n \r\n switch(consumoElectrico){\r\n case 'A':\r\n plus +=100;\r\n break;\r\n case 'B':\r\n plus += 80;\r\n break;\r\n case 'C':\r\n plus +=60;\r\n break;\r\n case 'D':\r\n plus +=50;\r\n break;\r\n case 'E':\r\n plus+=30;\r\n break;\r\n case 'F':\r\n plus+=10;\r\n break;\r\n \r\n }\r\n \r\n \r\n if(peso>=0 && peso<=19){\r\n plus+=10;\r\n }else if(peso >=20 && peso<= 49){\r\n plus+=50;\r\n }else if(peso >= 50 && peso<=79){\r\n plus+=80;\r\n }else if(peso>=80){\r\n plus+=100;\r\n }\r\n return precioBase+plus;\r\n }", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "public int promedio() {\r\n // calculo y redondeo del promedio\r\n promedio = Math.round(nota1B+nota2B);\r\n // paso de Double a Int\r\n return (int) promedio;\r\n }", "public final void calcular() {\n long dias = Duration.between(retirada, devolucao).toDays();\n valor = veiculo.getModelo().getCategoria().getDiaria().multiply(new BigDecimal(dias));\n }", "private void calculadorNotaFinal() {\n\t\t//calculo notaFinal, media de las notas medias\n\t\tif(this.getAsignaturas() != null) {\n\t\t\t\tfor (Iterator<Asignatura> iterator = this.asignaturas.iterator(); iterator.hasNext();) {\n\t\t\t\t\tAsignatura asignatura = (Asignatura) iterator.next();\n\t\t\t\t\tif(asignatura.getNotas() != null) {\n\t\t\t\t\tnotaFinal += asignatura.notaMedia();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//curarse en salud con division entre 0\n\t\t\t\tif(this.getAsignaturas().size() != 0) {\n\t\t\t\tnotaFinal /= this.getAsignaturas().size();\n\t\t\t\t}\n\t\t}\n\t}", "public int getDineroRecaudadoPorMaquina1()\n {\n return maquina1.getTotal();\n }", "public void recarga(){\n \tthis.fuerza *= 1.1;\n \tthis.vitalidad *= 1.1; \n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}", "private void obtenerGastosDiariosMes() {\n\t\t// Obtenemos las fechas actuales inicial y final\n\t\tCalendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n int diaFinalMes = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\n\t\tList<Movimiento> movimientos = this.movimientoService.obtenerMovimientosFechaUsuario(idUsuario, LocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(),1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(), diaFinalMes));\n\t\tList<Double> listaGastos = new ArrayList<Double>();\n\t\tList<String> listaFechas = new ArrayList<String>();\n\t\t\n\t\tDate fechaUtilizadaActual = null;\n\t\tdouble gastoDiario = 0;\n\t\t\n\t\tfor (Iterator iterator = movimientos.iterator(); iterator.hasNext();) {\n\t\t\tMovimiento movimiento = (Movimiento) iterator.next();\n\t\t\tif(fechaUtilizadaActual == null) { //Comprobamos si se acaba de entrar en el bucle para inicializar la fecha del movimiento\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha();\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Si hemos cambiado de fecha del movimiento se procede a guardar los datos recogidos\n\t\t\tif(!fechaUtilizadaActual.equals(movimiento.getFecha())) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t\tgastoDiario = 0; // Reiniciamos el contador del gasto\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha(); // Almacenemos la fecha del nuevo gasto\n\t\t\t}\n\t\t\t\n\t\t\t// Si el movimiento que se ha realizado es un gasto lo sumamos al contador de gasto\n\t\t\tif(movimiento.getTipo().equals(TipoMovimiento.GASTO)) {\n\t\t\t\tgastoDiario += movimiento.getCantidad();\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Comprobamos si es el ultimo item del iterador y almacenamos sus datos\n\t\t\tif(!iterator.hasNext()) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tthis.listadoGastosDiariosDiagrama = new Double[listaGastos.size()];\n\t\tthis.listadoGastosDiariosDiagrama = listaGastos.toArray(this.listadoGastosDiariosDiagrama);\n\t\tthis.fechasDiagrama = new String[listaFechas.size()];\n\t\tthis.fechasDiagrama = listaFechas.toArray(this.fechasDiagrama);\n\t\t\n\t}", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "public void calcularCost() {\r\n cost = 0;\r\n int a = 0;\r\n try {\r\n String r = DataR.toString()+ \" \" + horaR;\r\n String d = DataD.toString()+ \" \" + horaD;\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n Date dateR = simpleDateFormat.parse(r);\r\n Date dateD = simpleDateFormat.parse(d);\r\n a = (int) ((dateD.getTime() - dateR.getTime())/(1000*3600));\r\n \r\n \r\n } catch (ParseException ex) {\r\n Logger.getLogger(Reserva.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(a > 24) {\r\n cost += 15*(a/(24));\r\n a -= (((int)(a/24))*24);\r\n }\r\n if(a%3600 == 0) {\r\n cost += 1;\r\n }\r\n if(a%3600 > 0) {\r\n cost += 1;\r\n }\r\n \r\n }", "private Map<String,Double> getPromedioHabilidades(Cuadrilla cuadrilla){\n\t\tSystem.out.println(\"#### getPromedioHabilidades ######\");\n\t\tdouble proprod= 0, protrae= 0, prodorm = 0, prodcaa = 0;\n\t\tint cantper = 0;\n\t\tfor (CuadrillasDetalle cd : cuadrilla.getCuadrillasDetalles()) {\n\t\t\t\n\t\t\tList<TecnicoCompetenciaDetalle> tcds = \tcd.getTecnico().getTecnicoCompetenciaDetalles();\n\t\t\tfor (TecnicoCompetenciaDetalle tcd : tcds) {\n\t\t\t\tInteger codigoComp = tcd.getCompetencia().getCodigoCompetencia();\n\t\t\t\tswitch(codigoComp){\n\t\t\t\t\tcase COMPETENCIA_PRODUCTIVIDAD:\n\t\t\t\t\t\tproprod = proprod+ tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_TRABAJO_EQUIPO:\n\t\t\t\t\t\tprotrae = protrae + tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_ORIENTACION_METAS:\n\t\t\t\t\t\tprodorm = prodorm + tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_CALIDAD_ATENCION:\n\t\t\t\t\t\tprodcaa = prodcaa +tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcantper++;\t\t\t\n\t\t}\n\t\t\t\t\t\n\t\t// promedio de las competencias de los tenicos de cada cuadrilla\n\t\tproprod = proprod/cantper; \n\t\tprotrae = protrae/cantper;\n\t\tprodorm = prodorm/cantper;\n\t\tprodcaa = prodcaa/cantper;\n\n\t\tMap<String, Double> mpproms = new LinkedHashMap<String,Double>();\n\t\tmpproms.put(\"proprod\", proprod);\n\t\tmpproms.put(\"protrae\", protrae);\n\t\tmpproms.put(\"prodorm\", prodorm);\n\t\tmpproms.put(\"prodcaa\", prodcaa);\n\t\n\t\treturn mpproms;\n\t\t\n\t}", "public String getCalidad()\n {\n String cadenaADevolver = \"\";\n \n cadenaADevolver = (calidad >= FULLHD) ? \"FullHD\" : \"HD\";\n \n return cadenaADevolver;\n }", "public double getPreco(){\n return pagamento.getPreco();\n }", "public int getPrecio(){\n return precio;\n }", "public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }", "@Override\n\tpublic double netoAnual(double precio) {\n\t\treturn this.precio * 12;\n\t}", "float getMonatl_kosten();", "private static void calcularTotal(String[] campos) {\n\t\tif (campos.length == 1)\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos: \" + gestor.totalAtribuidos());\n\t\telse {\n\t\t\tint escalao = Integer.valueOf(campos[1]);\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos no escalao \" + escalao + \" : \" + gestor.atribuidosNoEscalao(escalao));\n\t\t}\n\t}", "public void calcularEntropia(){\n //Verificamos si será con la misma probabilida o con probabilidad\n //especifica\n if(contadorEstados == 0){\n //Significa que será con la misma probabilidad por lo que nosotros\n //calcularemos las probabilidades individuales\n for(int i = 0; i < numEstados; i++){\n probabilidadEstados[i] = 1.0 / numEstados;\n }\n }\n for(int i = 0; i < numEstados; i++){\n double logEstado = Math.log10(probabilidadEstados[i]);\n logEstado = logEstado * (-1);\n double logDos = Math.log10(2);\n double divisionLog = logEstado / logDos;\n double entropiaTmp = probabilidadEstados[i] * divisionLog;\n resultado += entropiaTmp;\n }\n }", "public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = inches % pie;\n //Muestra de resultados\n System.out.println(inches + \" pulgadas es equivalente a\\n \" + \n cant + \" pies \\n \" + res + \" pulgadas \");\n }", "private void calcularResultado() {\r\n\tdouble dinero=0;\r\n\tdinero=Double.parseDouble(pantalla.getText());\r\n\tresultado=dinero/18.5;\r\n\t\tpantalla.setText(\"\" + resultado);\r\n\t\toperacion = \"\";\r\n\t}", "public int getProteksi(){\n\t\treturn (getTotal() - getPromo()) * protectionCost / 100;\n\t}", "private void funcaoTotalPedido() {\n\n ClassSale.paymentCoupon(codeCoupon);\n BigDecimal smallCash = PaymentCoupon.getSmallCash();\n\n jTextValueTotalCoupon.setText(v.format(PaymentCoupon.getTotalCoupon()));\n \n jTextSmallCash.setText(v.format(smallCash.setScale(2, BigDecimal.ROUND_HALF_UP)));\n //jTextValueTotalDiscontCoupon.setText(v.format(PagamentoPedido.getDesconto_pagamento()));\n\n if (smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() < 0) {\n valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();\n jTextCash.setText(\"0,00\");\n jTextValueDiscontCoupon.setText(\"0,00\");\n jTextCash.requestFocus(true);\n } else {\n\n if (last_cod_tipo_pagamento != null && smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() > 0) {\n\n if (JOptionPane.showConfirmDialog(this, \"Não é permitido troco para pagamento com cartão.\\nDeseja emitir um contra vale?\", \"Mensagem\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon) == 0) {\n\n JOptionPane.showMessageDialog(this, \"Emitindo contra vale...\");\n\n fechouVenda = true;\n //BeanConsulta.setVenda_fechada(fechouVenda);\n this.dispose();\n\n } else {\n\n funcaoLimpaPag();\n }\n } else {\n \n \n valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); \n jButtonFinalizaCalculoPagameto.setEnabled(true);\n jButtonFinalizaCalculoPagameto.requestFocus(true);\n\n }\n }\n\n }", "public float calcularPerimetro(){\n return baseMayor+baseMenor+(medidaLado*2);\n }", "private double calculeSalaires() {\n return salaireHoraire * heures;\n }", "@Override\n\tpublic double calculaTributos() {\n\t\treturn numeroDePacientes * 10;\n\t}", "public float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre el arreglo y suma toda la informacion el el arreglo de los valores en una variable que luego se retorna \n }\n return total;\n }", "public int getCoeficienteBernua()\n {\n return potenciaCV;\n }", "public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }", "public void imprimirResultados(){\n System.out.println(\"t (tiempo actual) \"+t);\n \n \n System.out.println(\"\\nGanancia total: $\"+R);\n System.out.println(\"Costos por mercaderia comprada: $\"+C);\n System.out.println(\"Costos por mantenimiento inventario: $\"+H);\n System.out.println(\"Ganancia promeio de la tienda por unidad de tiempo: $\"+(R-C-H)/T);\n \n }", "public BigDecimal calcolaImportoTotaleNoteCollegateSpesa(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(DocumentoSpesa ds : getListaNoteCreditoSpesaFiglio()){\n\t\t\tresult = result.add(ds.getImporto());\n\t\t}\n\t\treturn result;\n\t}", "public void obtenerValorDePiezaEnDolaresAPesos() {\r\n\t\tpieza = new Pieza(\"\",10,Moneda.DOLAR);\r\n\t\tdouble precio = this.pieza.getPrecioEn(Moneda.PESO);\r\n\t\tAssert.assertEquals(precio, 40);\r\n\t}", "@Override\n\tpublic void acelerar() {\n\t\t// TODO Auto-generated method stub\n\t\t\t\tvelocidadActual += 40;\n\t\t\t\tif(velocidadActual>250) {\n\t\t\t\t\tvelocidadActual = 250;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdepositoActual -= 10;\n\t\t\t\tSystem.out.println(\"Velocidad del ferrari: \"+velocidadActual);\n\t}", "public static int diasParaFecha(Date fechafin) {\n try {\n System.out.println(\"Fecha = \" + fechafin + \" / \");\n GregorianCalendar fin = new GregorianCalendar();\n fin.setTime(fechafin);\n System.out.println(\"fin=\" + CalendarToString(fin, \"dd/MM/yyyy\"));\n GregorianCalendar hoy = new GregorianCalendar();\n System.out.println(\"hoy=\" + CalendarToString(hoy, \"dd/MM/yyyy\"));\n\n if (fin.get(Calendar.YEAR) == hoy.get(Calendar.YEAR)) {\n System.out.println(\"Valor de Resta simple: \"\n + String.valueOf(fin.get(Calendar.DAY_OF_YEAR)\n - hoy.get(Calendar.DAY_OF_YEAR)));\n return fin.get(Calendar.DAY_OF_YEAR)\n - hoy.get(Calendar.DAY_OF_YEAR);\n } else {\n int diasAnyo = hoy.isLeapYear(hoy.get(Calendar.YEAR)) ? 366\n : 365;\n int rangoAnyos = fin.get(Calendar.YEAR)\n - hoy.get(Calendar.YEAR);\n int rango = (rangoAnyos * diasAnyo)\n + (fin.get(Calendar.DAY_OF_YEAR) - hoy\n .get(Calendar.DAY_OF_YEAR));\n System.out.println(\"dias restantes: \" + rango);\n return rango;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return 0;\n }", "public boolean calcularTotal() {\r\n double dou_debe = 0;\r\n double dou_haber = 0;\r\n for (int i = 0; i < tab_tabla2.getTotalFilas(); i++) {\r\n try {\r\n if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_debe)) {\r\n dou_debe += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n } else if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_haber)) {\r\n dou_haber += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n }\r\n } catch (Exception e) {\r\n }\r\n }\r\n eti_suma_debe.setValue(\"TOTAL DEBE : \" + utilitario.getFormatoNumero(dou_debe));\r\n eti_suma_haber.setValue(\"TOTAL HABER : \" + utilitario.getFormatoNumero(dou_haber));\r\n\r\n double dou_diferencia = Double.parseDouble(utilitario.getFormatoNumero(dou_debe)) - Double.parseDouble(utilitario.getFormatoNumero(dou_haber));\r\n eti_suma_diferencia.setValue(\"DIFERENCIA : \" + utilitario.getFormatoNumero(dou_diferencia));\r\n if (dou_diferencia != 0.0) {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold;color:red\");\r\n } else {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold\");\r\n return true;\r\n }\r\n return false;\r\n }", "public void obterDados() {\r\n\r\n\t\tidade = Integer.parseInt(JOptionPane.showInputDialog(\"Informe a idade\"));\r\n\t\taltura = Double.parseDouble(JOptionPane.showInputDialog(\"Informe a altura\"));\r\n\t\tpeso = Double.parseDouble(JOptionPane.showInputDialog(\"Informe o peso\"));\r\n\t\t\r\n\t\tjogCadastrados ++;\r\n totalaltura += altura;\r\n\r\n\t}", "public int getTotalRecaudado()\n {\n return maquina1.getTotal() + maquina2.getTotal();\n }", "public void obtenerValorDePiezaEnPesosADolares() {\r\n\t\tdouble precio = this.pieza.getPrecioEn(Moneda.DOLAR);\r\n\t\tAssert.assertEquals(precio, 10);\r\n\t}", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "public void Millas_M(){\r\n System.out.println(\"Cálcular Metros o Kilometros de Millas Marinas\");\r\n System.out.println(\"Ingrese un valor en Millas Marinas\");\r\n cadena =numero.next(); \r\n valor = metodo.Doble(cadena);\r\n valor = metodo.NegativoD(valor);\r\n totalM = valor * 1852 ;\r\n Millas_KM(totalM);\r\n }", "private static void estadisticaClase() {\n int numeroAlumnos;\n int aprobados = 0, suspensos = 0; // definición e instanciación de varias a la vez\n int suficentes = 0, bienes = 0, notables = 0, sobresalientes = 0;\n float totalNotas = 0;\n float media;\n Scanner in = new Scanner(System.in);\n\n // Salismos del bucle sólo si nos introduce un número positivo\n do {\n System.out.println(\"Introduzca el número de alumnos/as: \");\n numeroAlumnos = in.nextInt();\n } while (numeroAlumnos <= 0);\n\n // Como sabemos el número de alumnos es un bucle definido\n for (int i = 1; i <= numeroAlumnos; i++) {\n float nota = 0;\n\n // nota solo existe dentro de este for, por eso la definimos aquí.\n do {\n System.out.println(\"Nota del alumno \" + i + \" [0-10]: \");\n nota = in.nextFloat();\n } while (nota < 0 || nota > 10);\n\n // Sumamos el total de notas\n totalNotas += nota;\n\n if (nota < 5) {\n suspensos++;\n } else if (nota >= 5 && nota < 6) {\n aprobados++;\n suficentes++;\n } else if (nota >= 6 && nota < 7) {\n aprobados++;\n bienes++;\n } else if (nota >= 7 && nota < 9) {\n aprobados++;\n notables++;\n } else if (nota >= 9) {\n aprobados++;\n sobresalientes++;\n }\n }\n // De esta manera redondeo a dos decimales. Tengo que hacer un casting porque de Double quiero float\n // Si no debería trabajar con double siempre.\n media = (float) (Math.round((totalNotas / numeroAlumnos) * 100.0) / 100.0);\n\n // Sacamos las estadísticas\n System.out.println(\"Número de alumnos/as: \" + numeroAlumnos);\n System.out.println(\"Número de aprobados/as: \" + aprobados);\n System.out.println(\"Número de suspensos: \" + suspensos);\n System.out.println(\"Nota media: \" + media);\n System.out.println(\"Nº Suficientes: \" + suficentes);\n System.out.println(\"Nº Bienes: \" + bienes);\n System.out.println(\"Nº Notables: \" + notables);\n System.out.println(\"Nº Sobresalientes: \" + sobresalientes);\n\n\n }", "public void capturarNumPreRadica() {\r\n try {\r\n if (mBRadicacion.getRadi() == null) {\r\n mbTodero.setMens(\"Debe seleccionar un registro de la tabla\");\r\n mbTodero.warn();\r\n } else {\r\n DatObser = Rad.consultaObserRadicacion(String.valueOf(mBRadicacion.getRadi().getCodAvaluo()), mBRadicacion.getRadi().getCodSeguimiento());\r\n mBRadicacion.setListObserRadicados(new ArrayList<LogRadicacion>());\r\n\r\n while (DatObser.next()) {\r\n LogRadicacion RadObs = new LogRadicacion();\r\n RadObs.setObservacionRadic(DatObser.getString(\"Obser\"));\r\n RadObs.setFechaObservacionRadic(DatObser.getString(\"Fecha\"));\r\n RadObs.setAnalistaObservacionRadic(DatObser.getString(\"empleado\"));\r\n mBRadicacion.getListObserRadicados().add(RadObs);\r\n }\r\n Conexion.Conexion.CloseCon();\r\n opcionCitaAvaluo = \"\";\r\n visitaRealizada = false;\r\n fechaNueva = null;\r\n observacionReasignaCita = \"\";\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgInfRadicacion').show()\");\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".capturarNumPreRadica()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public void popier() {\n Scanner input1 = new Scanner(System.in);\n //Ivedame vaiku skaiciu\n Scanner input2 = new Scanner(System.in);\n //Idame tevu skaiciu\n Scanner input3 = new Scanner(System.in);\n\n System.out.println(\"Iveskite atlyginimą ant popieriaus: \");\n double atlyginimas = input1.nextDouble();\n\n System.out.println(\"Iveskite turimų vaikų iki 18 metų skaičių.\");\n int vaikai = input2.nextInt();\n if (vaikai == 0) {\n\n //Apskaiciuojame NPD\n double npd = 310 - 0.5 * (atlyginimas - 380);\n if (npd >= 0)\n System.out.println(\"NPD: \" + npd);\n else\n System.out.println(\"NPD: \" + 0);\n\n //Bendras NPD\n double bnpd = npd;\n System.out.println(\"Bendras NPD: \" + bnpd);\n\n //Darbuotojo mokesciai\n System.out.println(\"\\nDarboutojo mokesčiai:\");\n\n //Apskaiciuojame GPM\n //Gauname neapmokestinama dali\n double nep = atlyginimas - bnpd;\n\n //GPM 15%\n double gpm = nep * 1.15 - nep;\n System.out.printf(\"Pajamu mokestis (GPM): %.2f %n\", gpm);\n\n //Apskaiciuojame PSD 6%\n double psd = atlyginimas * 1.06 - atlyginimas;\n System.out.printf(\"Sveikatos draudimas (PSD): %.2f %n\", psd);\n\n //Apskaiciuojame pensija ir soc draudima 3%\n double soc = atlyginimas * 1.03 - atlyginimas;\n System.out.printf(\"Pensijų ir soc. Draudimas: %.2f %n\", soc);\n\n\n //Darbdavio mokesciai\n System.out.println(\"\\nDabdavio mokami mokesčiai:\");\n\n //Sodros imoka 30.98%\n double sod = atlyginimas * 1.3098 - atlyginimas;\n System.out.printf(\"Sodros įmoka (VSD): %.2f %n\", sod);\n\n // Imoka i garantini fonda 0.2%\n double gar = atlyginimas * 1.002 - atlyginimas;\n System.out.printf(\"Įmokos į Garantinį fondą: %.2f %n\", gar);\n\n //Uzmokestis i rankas\n double rank = atlyginimas - gpm - psd - soc;\n System.out.printf(\"%nUžmokestis gaunamas į rankas: %.2f %n\", rank);\n\n //Darbo vietos kaina\n double viet = atlyginimas + sod + gar;\n System.out.printf(\"Darbo vietos kaina darbdaviui: %.2f\", viet);\n\n\n } else {\n\n System.out.println(\"Keliese auginate vaikus?\");\n int tevai = input3.nextInt();\n\n\n //Apskaiciuojame NPD\n double npd = 310 - 0.5 * (atlyginimas - 380);\n if (npd >= 0)\n System.out.println(\"NPD: \" + npd);\n else\n System.out.println(\"NPD: \" + 0);\n\n //Apskaiciuojame PNPD\n double pnpd = (200 * vaikai) / tevai;\n System.out.println(\"PNPD: \" + pnpd);\n\n //Bendras NPD\n double bnpd = npd + pnpd;\n System.out.println(\"Bendras NPD: \" + bnpd);\n\n //Darbuotojo mokesciai\n System.out.println(\"\\nDarboutojo mokesčiai:\");\n\n //Apskaiciuojame GPM\n //Gauname neapmokestinama dali\n double nep = atlyginimas - bnpd;\n\n //GPM 15%\n double gpm = nep * 1.15 - nep;\n System.out.printf(\"Pajamu mokestis (GPM): %.2f %n\", gpm);\n\n //Apskaiciuojame PSD 6%\n double psd = atlyginimas * 1.06 - atlyginimas;\n System.out.printf(\"Sveikatos draudimas (PSD): %.2f %n\", psd);\n\n //Apskaiciuojame pensija ir soc draudima 3%\n double soc = atlyginimas * 1.03 - atlyginimas;\n System.out.printf(\"Pensijų ir soc. Draudimas: %.2f %n\", soc);\n\n\n //Darbdavio mokesciai\n System.out.println(\"\\nDabdavio mokami mokesčiai:\");\n\n //Sodros imoka 30.98%\n double sod = atlyginimas * 1.3098 - atlyginimas;\n System.out.printf(\"Sodros įmoka (VSD): %.2f %n\", sod);\n\n // Imoka i garantini fonda 0.2%\n double gar = atlyginimas * 1.002 - atlyginimas;\n System.out.printf(\"Įmokos į Garantinį fondą: %.2f %n\", gar);\n\n //Uzmokestis i rankas\n double rank = atlyginimas - gpm - psd - soc;\n System.out.printf(\"%nUžmokestis gaunamas į rankas: %.2f %n\", rank);\n\n //Darbo vietos kaina\n double viet = atlyginimas + sod + gar;\n System.out.printf(\"Darbo vietos kaina darbdaviui: %.2f\", viet);\n\n }\n\n\n\n }", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }", "static void sueldo7diasl(){\nSystem.out.println(\"Ejemplo estructura Condicional Multiple 1 \");\nString descuenta=\"\";\n//datos de entrada xd\nint ganancias= teclado.nextInt();\nif(ganancias<=150){\ndescuenta=\"0.5\";\n}else if (ganancias>150 && ganancias<300){\n descuenta=\"0.7\";}\n else if (ganancias>300 && ganancias<450){\n descuenta=\"0.9\";}\n //datos de salida:xd\n System.out.println(\"se le descuenta : \"+descuenta);\n}", "public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}", "public double calcularPerimetro() {\n\t\treturn 2 * (base + altura);\n\t}", "@Override\r\n\tpublic Double precio() {\n\t\treturn this.combo.precio() + 50;\r\n\t}", "@Override\r\n\tpublic double porcentajeDelComercio() {\n\t\treturn 0.25;\r\n\t}", "@Override\n public double calculaSalario() \n {\n double resultado = valor_base - ((acumulado * 0.05) * valor_base);\n resultado += auxilioProcriacao();\n //vale-coxinha\n resultado += 42;\n return resultado;\n }", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "public double getPreco();", "public double getPreco();", "public void obtenerValorDePiezaEnDolaresADolares() {\r\n\t\tPieza pieza = new Pieza(\"\",10,Moneda.DOLAR);\t\t\r\n\t\tdouble precio = pieza.getPrecioEn(Moneda.DOLAR);\r\n\t\tAssert.assertEquals(precio, 10);\r\n\t}", "public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}", "public void distribuirAportes1(){\n\n if(null == comprobanteSeleccionado.getAporteuniversidad()){\n System.out.println(\"comprobanteSeleccionado.getAporteuniversidad() >> NULO\");\n }\n\n if(null == comprobanteSeleccionado.getAporteorganismo()){\n System.out.println(\"comprobanteSeleccionado.getAporteorganismo() >> NULO\");\n }\n\n if(null == comprobanteSeleccionado.getMontoaprobado()){\n System.out.println(\"comprobanteSeleccionado.getMontoaprobado() >> NULO\");\n }\n\n try{\n if(comprobanteSeleccionado.getAporteuniversidad().floatValue() > 0f){\n comprobanteSeleccionado.setAporteorganismo(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad()));\n comprobanteSeleccionado.setAportecomitente(BigDecimal.ZERO);\n }\n } catch(NullPointerException npe){\n System.out.println(\"Error de NullPointerException\");\n npe.printStackTrace();\n }\n\n }", "double getPerimetro();", "@Override\r\n\tpublic int precioTotal() {\n\t\treturn this.precio;\r\n\t}", "@Override\n public double perimetro() {\n return 4 * this.lado;\n }", "public String RevenueDerniere(){\n List<Ticket> tickets=ticketRepository.findAll();\n double revenueJours=0,revenueSemaine=0,revenuemois=0;\n for (Ticket ticket:tickets){\n if (ticket.getDate().isAfter(Instant.now().minus(Period.ofDays(30)))){\n revenuemois=revenuemois+ticket.getAddition();\n }\n if (ticket.getDate().isAfter(Instant.now().minus(Period.ofDays(7)))){\n revenueSemaine=revenueSemaine+ticket.getAddition();\n }\n if (ticket.getDate().isAfter(Instant.now().minus(Period.ofDays(1)))){\n revenueJours=revenueJours+ticket.getAddition();\n }\n }\n\n return \"Revenue moins derniere :\"+revenuemois+\"\\n Revenue semaine derniere :\"+revenueSemaine+\"\\n \"\n\t\t+ \"Revenue jour derniere :\"+revenueJours;\n }", "public void calcularSalario(){\n // 1% do lucro mensal\n double percentagemLucro = 0.01 * lucroMensal;\n // valor fixo igual ao dobro do dos empregados sem especialização, acrescido\n //de um prémio que corresponde a 1% do lucro mensal nas lojas da região.\n setSalario(1600 + percentagemLucro);\n\n }", "public void obtenertotales(double suma){\n double Total = suma;\n totalPagarVentaTB.setText(String.valueOf(Total));\n double iva = Total*0.19;\n ivaVentaTB.setText(String.valueOf(iva));\n double subtotal = Total-iva;\n subTotalVentaTB.setText(String.valueOf(subtotal)); \n \n }", "public void mostrarTotales() { \n // Inicializacion de los atributos en 0\n totalPCs = 0;\n totalLaptops = 0;\n totalDesktops = 0; \n /* Recorrido de la lista de computadores para acumular el precio usar instanceof para comparar el tipo de computador */ \n for (Computador pc : computadores){\n if (pc instanceof PCLaptop) {\n totalLaptops += pc.calcularPrecio(); \n } else if (pc instanceof PCDesktop){\n totalDesktops += pc.calcularPrecio();\n }\n }\n totalPCs = totalLaptops + totalDesktops;\n System.out.println(\"El precio total de los computadores es de \" + totalPCs); \n System.out.println(\"La suma del precio de los Laptops es de \" + totalLaptops); \n System.out.println(\"La suma del precio de los Desktops es de \" + totalDesktops);\n }", "public float perimetro() {\n return (lado * 2 + base);\r\n }", "public double convertirTemperaturas(){\r\n double resultado=.0;\r\n if(unidadOrigen=='C' && unidadDestino == 'F'){\r\n resultado=Math.round(conversorTemperatura.obtenerDeCelsiusAFahrenheit());\r\n }else if(unidadOrigen=='C' && unidadDestino == 'K'){\r\n resultado=conversorTemperatura.obtenerDeCelsiusAKelvin();\r\n }else if(unidadOrigen=='F' && unidadDestino == 'C'){\r\n resultado=Math.round(conversorTemperatura.obtenerDeFahrenheitACelsius());\r\n }else if(unidadOrigen=='F' && unidadDestino == 'K'){\r\n resultado=conversorTemperatura.obtenerDeFahrenheitAKelvin();\r\n }else if (unidadOrigen=='K' && unidadDestino == 'C'){\r\n resultado=conversorTemperatura.obtenerDeKelvinACelsius();\r\n }else if (unidadOrigen=='K' && unidadDestino == 'F'){\r\n resultado=conversorTemperatura.obtenerDeKelvinAFahrenheit();\r\n }else if (unidadOrigen=='C' && unidadDestino == 'C'){\r\n resultado=conversorTemperatura.getNumero();\r\n }\r\n return resultado;\r\n }", "public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}", "public double obtenerPrecio() {\n return precio;\n }", "public float calculaPremioConsoanteResultado (Aposta aposta, Evento.Resultado res){\n switch (res) {\n case VITORIA:\n return aposta.calculaPremio(\"1\");\n case EMPATE:\n return aposta.calculaPremio(\"x\");\n case DERROTA:\n return aposta.calculaPremio(\"2\");\n }\n return 0;\n \n }", "public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n System.out.println(\"No hay datos en la pila\");\r\n }\r\n }", "String getPrecio();", "public void codigo(String cadena, String codigo,int codigos,Reserva2 reserva,JDateChooser dateFechaIda,JDateChooser dateFechaVuelta,JTextField DineroFaltante) {\n\t\tcadena=codigo.split(\",\")[1];\n\t\tubicacion=codigo.split(\",\")[5];\n\t\tnombre=codigo.split(\",\")[3];\n\t\tprecio=codigo.split(\",\")[8];\n\t\tcodigos=Integer.parseInt(cadena);\n\t\tSystem.out.println(\"hola\");\n\t\tSystem.out.println(Modelo1.contador);\n\t\t\n\t\tif(Modelo1.contador==1) {\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigohotel(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\t\n\t\t}\n\t\telse if(Modelo1.contador==2) {\n\t\t\t\n\t\t\totroprecio=Double.parseDouble(precio);\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigocasa(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\tpreciofinal=metodos.preciototal(dateFechaIda, dateFechaVuelta, otroprecio);\n\t\t\treserva.setPrecio(preciofinal);\n\t\t\tSystem.out.println(reserva.getUbicacion());\n\t\t\tSystem.out.println(reserva.getCodigocasa());\n\t\t\tSystem.out.println(reserva.getNombreAlojamiento());\n\t\t\tSystem.out.println(reserva.getPrecio());\n\t\t\tDineroFaltante.setText(reserva.getPrecio()+\" \\u20ac\");\n\t\t\tModelo1.total_faltante = reserva.getPrecio();\n\t\t\t\n\t\t}\n\t\telse if(Modelo1.contador==3) {\n\t\t\t\n\t\t\totroprecio=Double.parseDouble(precio);\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigoapatamento(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\tpreciofinal=metodos.preciototal(dateFechaIda, dateFechaVuelta, otroprecio);\n\t\t\treserva.setPrecio(preciofinal);\n\t\t\tSystem.out.println(reserva.getUbicacion());\n\t\t\tSystem.out.println(reserva.getCodigoapatamento());\n\t\t\tSystem.out.println(reserva.getNombreAlojamiento());\n\t\t\tSystem.out.println(reserva.getPrecio());\n\t\t\tDineroFaltante.setText(reserva.getPrecio()+\" \\u20ac\");\n\t\t\tModelo1.total_faltante = reserva.getPrecio();\n\t\t}\n\t\t\n\t}", "public void obtenerValorDePiezaEnPesosAPesos() {\r\n\t\tdouble precio = this.pieza.getPrecioEn(Moneda.PESO);\r\n\t\tAssert.assertEquals(precio, 40);\r\n\t}", "public double portataMassicaFumi( ){\r\n\t\treturn portatamassica;\r\n\t}", "public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }", "private void setPrecioVentaBaterias() throws Exception {\n\t\tRegisterDomain rr = RegisterDomain.getInstance();\n\t\tlong idListaPrecio = this.selectedDetalle.getListaPrecio().getId();\n\t\tString codArticulo = this.selectedDetalle.getArticulo().getCodigoInterno();\t\t\n\t\tArticuloListaPrecioDetalle lista = rr.getListaPrecioDetalle(idListaPrecio, codArticulo);\n\t\tString formula = this.selectedDetalle.getListaPrecio().getFormula();\n\t\tif (lista != null && formula == null) {\n\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? lista.getPrecioGs_contado() : lista.getPrecioGs_credito());\n\t\t} else {\n\t\t\tdouble costo = this.selectedDetalle.getArticulo().getCostoGs();\n\t\t\tint margen = this.selectedDetalle.getListaPrecio().getMargen();\n\t\t\tdouble precio = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\n\t\t\t// formula lista precio mayorista..\n\t\t\tif (idListaPrecio == 2 && formula != null) {\n\t\t\t\tArticuloListaPrecio distribuidor = (ArticuloListaPrecio) rr.getObject(ArticuloListaPrecio.class.getName(), 1);\n\t\t\t\tArticuloListaPrecioDetalle precioDet = rr.getListaPrecioDetalle(distribuidor.getId(), codArticulo);\n\t\t\t\tif (precioDet != null) {\n\t\t\t\t\tdouble cont = precioDet.getPrecioGs_contado();\n\t\t\t\t\tdouble cred = precioDet.getPrecioGs_credito();\n\t\t\t\t\tdouble formulaCont = cont + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_contado(), 10);\n\t\t\t\t\tdouble formulaCred = cred + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_credito(), 10);\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? formulaCont : formulaCred);\n\t\t\t\t} else {\n\t\t\t\t\tmargen = distribuidor.getMargen();\n\t\t\t\t\tdouble precioGs = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\t\tdouble formula_ = precioGs + Utiles.obtenerValorDelPorcentaje(precioGs, 10);\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(formula_);\n\t\t\t\t}\n\n\t\t\t// formula lista precio minorista..\n\t\t\t} else if (idListaPrecio == 3 && formula != null) {\n\t\t\t\tArticuloListaPrecio distribuidor = (ArticuloListaPrecio) rr.getObject(ArticuloListaPrecio.class.getName(), 1);\n\t\t\t\tArticuloListaPrecioDetalle precioDet = rr.getListaPrecioDetalle(distribuidor.getId(), codArticulo);\n\t\t\t\tif (precioDet != null) {\n\t\t\t\t\tdouble cont = precioDet.getPrecioGs_contado() + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_contado(), 10);\n\t\t\t\t\tdouble cred = precioDet.getPrecioGs_credito() + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_credito(), 10);\n\t\t\t\t\tdouble formulaCont = (cont * 1.15) / 0.8;\n\t\t\t\t\tdouble formulaCred = (cred * 1.15) / 0.8;\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? formulaCont : formulaCred);\n\t\t\t\t} else {\n\t\t\t\t\tmargen = distribuidor.getMargen();\n\t\t\t\t\tdouble precioGs = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\t\tdouble formula_ = ((precioGs + Utiles.obtenerValorDelPorcentaje(precioGs, 10)) * 1.15) / 0.8;\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(formula_);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tthis.selectedDetalle.setPrecioGs(precio);\n\t\t\t}\t\t\n\t\t}\n\t}", "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}" ]
[ "0.6841928", "0.6757906", "0.67065114", "0.670518", "0.6675682", "0.6572065", "0.6499119", "0.6467624", "0.6466295", "0.6456761", "0.6439164", "0.6437664", "0.64080834", "0.6398176", "0.63961625", "0.63895774", "0.63828003", "0.63701355", "0.6347993", "0.63461", "0.6336527", "0.6320639", "0.6309179", "0.62980705", "0.6291328", "0.6275061", "0.62657607", "0.62573403", "0.62422454", "0.62247276", "0.61220205", "0.6113681", "0.6110023", "0.60965955", "0.6095021", "0.60946983", "0.6088518", "0.6086069", "0.60648465", "0.6061711", "0.6041761", "0.6040348", "0.60331416", "0.60281014", "0.60207164", "0.60053736", "0.5999444", "0.5995013", "0.5988693", "0.5986483", "0.5985946", "0.5983534", "0.5981575", "0.59784234", "0.5976806", "0.5970462", "0.596708", "0.5966473", "0.5965754", "0.59631014", "0.596183", "0.59558797", "0.5955524", "0.59483796", "0.5935265", "0.59324276", "0.5925951", "0.59152126", "0.5914355", "0.591188", "0.591174", "0.5909922", "0.59083915", "0.59063107", "0.59052783", "0.5902717", "0.5902717", "0.5900466", "0.5891222", "0.58893794", "0.5888946", "0.5888283", "0.5882651", "0.58810186", "0.587801", "0.5877319", "0.58754796", "0.5868751", "0.5868534", "0.5857475", "0.5857078", "0.58542705", "0.584969", "0.58493274", "0.5847888", "0.58478606", "0.5844797", "0.5844222", "0.58414805", "0.5832946" ]
0.68701977
0
Resta el valor de 1 euro del cambio a devolver Quita una moneda de 1 euro del cambio disponible Suma una moneda de 1 euro al cambio que se va a devolver
private void devolver100() { cambio = cambio - 100; de100--; cambio100++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void restaApostado() {\n\t\tif(apostado.get() >= 1.0) apostado.set(apostado.get() -1.0);\n\t\t\tdiruField.setText(String.format(\"%.2f\", apostado.get()));\n\t\t\tactualizaPremio();\n\t\t\t\n\t}", "public float calcular(float dinero, float precio) {\n // Cálculo del cambio en céntimos de euros \n cambio = Math.round(100 * dinero) - Math.round(100 * precio);\n // Se inicializan las variables de cambio a cero\n cambio1 = 0;\n cambio50 = 0;\n cambio100 = 0;\n // Se guardan los valores iniciales para restaurarlos en caso de no \n // haber cambio suficiente\n int de1Inicial = de1;\n int de50Inicial = de50;\n int de100Inicial = de100;\n \n // Mientras quede cambio por devolver y monedas en la máquina \n // se va devolviendo cambio\n while(cambio > 0) {\n // Hay que devolver 1 euro o más y hay monedas de 1 euro\n if(cambio >= 100 && de100 > 0) {\n devolver100();\n // Hay que devolver 50 céntimos o más y hay monedas de 50 céntimos\n } else if(cambio >= 50 && de50 > 0) {\n devolver50();\n // Hay que devolver 1 céntimo o más y hay monedas de 1 céntimo\n } else if (de1 > 0){\n devolver1();\n // No hay monedas suficientes para devolver el cambio\n } else {\n cambio = -1;\n }\n }\n \n // Si no hay cambio suficiente no se devuelve nada por lo que se\n // restauran los valores iniciales\n if(cambio == -1) {\n de1 = de1Inicial;\n de50 = de50Inicial;\n de100 = de100Inicial;\n return -1;\n } else {\n return dinero - precio;\n }\n }", "public void calcular() {\n int validar, c, d, u;\n int contrasena = 246;\n c = Integer.parseInt(spiCentenas.getValue().toString());\n d = Integer.parseInt(spiDecenas.getValue().toString());\n u = Integer.parseInt(spiUnidades.getValue().toString());\n validar = c * 100 + d * 10 + u * 1;\n //Si es igual se abre.\n if (contrasena == validar) {\n etiResultado.setText(\"Caja Abierta\");\n }\n //Si es menor nos indica que es mas grande\n if (validar < contrasena) {\n etiResultado.setText(\"El número secreto es mayor\");\n }\n //Si es mayot nos indica que es mas pequeño.\n if (validar > contrasena) {\n etiResultado.setText(\"El número secreto es menor\");\n }\n }", "@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}", "public static double provjera() {\r\n\t\t\t\t\r\n\t\t\t\tdouble broj = 0;\t\r\n\t\t\t\tboolean provjera = true;\t\r\n\t\t\t\tdo {\r\n\t\t\t\t\t//ucitavanje unosa i provjera da li je int\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tbroj = unos.nextDouble();\t\r\n\t\t\t\t\t\t//ako je sve ok, vrati broj\t\r\n\t\t\t\t\t\tprovjera = false;\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//hvata greska i trazi ponovni unos\r\n\t\t\t\t\tcatch (InputMismatchException ex) {\t\r\n\t\t\t\t\t\tSystem.out.println(\"Pogresan unos. Pokusajte ponovo: \");\r\n\t\t\t\t\t\tunos.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t} while (provjera);\r\n\t\t\t\t\r\n\t\t\t\treturn broj;\r\n\t\t}", "public void recarga(){\n \tthis.fuerza *= 1.1;\n \tthis.vitalidad *= 1.1; \n }", "private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }", "public double ValidaValor(){\n\t return 0;\n }", "float getMonatl_kosten();", "public void daiMedicina() {\n System.out.println(\"Vuoi curare \" + nome + \" per 200 Tam? S/N\");\n String temp = creaturaIn.next();\n if (temp.equals(\"s\") || temp.equals(\"S\")) {\n puntiVita += 60;\n soldiTam -= 200;\n }\n checkStato();\n }", "@Override\r\n\tpublic double aumentarSueldo() {\n\t\treturn 0;\r\n\t}", "@Override\n public void onClick(View v) {\n String textoPrecoAlcool = precoAlcool.getText().toString();\n String textoPrecoGasolina = precoGasolina.getText().toString();\n\n //Converter valores de string para numericos\n Double valorAlcool = Double.parseDouble(textoPrecoAlcool);\n Double valorGasolina = Double.parseDouble(textoPrecoGasolina);\n\n if( textoPrecoAlcool.isEmpty() || textoPrecoGasolina.isEmpty()){\n resultado.setText(\"Nenhum valor passado para conversão!!\");\n }else {\n Double resultadoConversao = valorAlcool/valorGasolina;\n\n if( resultadoConversao >=0.7){\n //Gasolina compensa mais\n resultado.setText(\"É melhor utilizar gasolina.\");\n }else{\n resultado.setText(\"É melhor utilizar àlcool.\");\n }\n }\n }", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "public double sacarDinero(double platita){\r\n if (getMonto() >= platita){\r\n setMonto(getMonto() - platita);\r\n return platita;\r\n }\r\n return 0;\r\n }", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "private void calcularResultado() {\r\n\tdouble dinero=0;\r\n\tdinero=Double.parseDouble(pantalla.getText());\r\n\tresultado=dinero/18.5;\r\n\t\tpantalla.setText(\"\" + resultado);\r\n\t\toperacion = \"\";\r\n\t}", "void establecerPuntoFM(int pos){\n this.emisoraFMActual = pos;\n }", "public String getCalidad()\n {\n String cadenaADevolver = \"\";\n \n cadenaADevolver = (calidad >= FULLHD) ? \"FullHD\" : \"HD\";\n \n return cadenaADevolver;\n }", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "static void sueldo7diasl(){\nSystem.out.println(\"Ejemplo estructura Condicional Multiple 1 \");\nString descuenta=\"\";\n//datos de entrada xd\nint ganancias= teclado.nextInt();\nif(ganancias<=150){\ndescuenta=\"0.5\";\n}else if (ganancias>150 && ganancias<300){\n descuenta=\"0.7\";}\n else if (ganancias>300 && ganancias<450){\n descuenta=\"0.9\";}\n //datos de salida:xd\n System.out.println(\"se le descuenta : \"+descuenta);\n}", "public int usaAtaque() {\n\t\treturn dano;\n\t}", "public void ponerDinero(double platita){\r\n if (platita > 0)\r\n setMonto(getMonto() + platita);\r\n }", "public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "public void codigo(String cadena, String codigo,int codigos,Reserva2 reserva,JDateChooser dateFechaIda,JDateChooser dateFechaVuelta,JTextField DineroFaltante) {\n\t\tcadena=codigo.split(\",\")[1];\n\t\tubicacion=codigo.split(\",\")[5];\n\t\tnombre=codigo.split(\",\")[3];\n\t\tprecio=codigo.split(\",\")[8];\n\t\tcodigos=Integer.parseInt(cadena);\n\t\tSystem.out.println(\"hola\");\n\t\tSystem.out.println(Modelo1.contador);\n\t\t\n\t\tif(Modelo1.contador==1) {\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigohotel(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\t\n\t\t}\n\t\telse if(Modelo1.contador==2) {\n\t\t\t\n\t\t\totroprecio=Double.parseDouble(precio);\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigocasa(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\tpreciofinal=metodos.preciototal(dateFechaIda, dateFechaVuelta, otroprecio);\n\t\t\treserva.setPrecio(preciofinal);\n\t\t\tSystem.out.println(reserva.getUbicacion());\n\t\t\tSystem.out.println(reserva.getCodigocasa());\n\t\t\tSystem.out.println(reserva.getNombreAlojamiento());\n\t\t\tSystem.out.println(reserva.getPrecio());\n\t\t\tDineroFaltante.setText(reserva.getPrecio()+\" \\u20ac\");\n\t\t\tModelo1.total_faltante = reserva.getPrecio();\n\t\t\t\n\t\t}\n\t\telse if(Modelo1.contador==3) {\n\t\t\t\n\t\t\totroprecio=Double.parseDouble(precio);\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigoapatamento(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\tpreciofinal=metodos.preciototal(dateFechaIda, dateFechaVuelta, otroprecio);\n\t\t\treserva.setPrecio(preciofinal);\n\t\t\tSystem.out.println(reserva.getUbicacion());\n\t\t\tSystem.out.println(reserva.getCodigoapatamento());\n\t\t\tSystem.out.println(reserva.getNombreAlojamiento());\n\t\t\tSystem.out.println(reserva.getPrecio());\n\t\t\tDineroFaltante.setText(reserva.getPrecio()+\" \\u20ac\");\n\t\t\tModelo1.total_faltante = reserva.getPrecio();\n\t\t}\n\t\t\n\t}", "public void gastarDinero(double cantidad){\r\n\t\t\r\n\t}", "public void VaciarPila()\n {\n this.tope = 0;\n }", "public void Millas_M(){\r\n System.out.println(\"Cálcular Metros o Kilometros de Millas Marinas\");\r\n System.out.println(\"Ingrese un valor en Millas Marinas\");\r\n cadena =numero.next(); \r\n valor = metodo.Doble(cadena);\r\n valor = metodo.NegativoD(valor);\r\n totalM = valor * 1852 ;\r\n Millas_KM(totalM);\r\n }", "public void prepararPago(){\n pago = (float) 0.00;\n nuevoSaldo = (float) 0.00;\n intereses = (float) 0.00;\n mora = (float) 0.00;\n pagoValido = false;\n }", "private void calculadorNotaFinal() {\n\t\t//calculo notaFinal, media de las notas medias\n\t\tif(this.getAsignaturas() != null) {\n\t\t\t\tfor (Iterator<Asignatura> iterator = this.asignaturas.iterator(); iterator.hasNext();) {\n\t\t\t\t\tAsignatura asignatura = (Asignatura) iterator.next();\n\t\t\t\t\tif(asignatura.getNotas() != null) {\n\t\t\t\t\tnotaFinal += asignatura.notaMedia();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//curarse en salud con division entre 0\n\t\t\t\tif(this.getAsignaturas().size() != 0) {\n\t\t\t\tnotaFinal /= this.getAsignaturas().size();\n\t\t\t\t}\n\t\t}\n\t}", "private void mostraResultado() {\n int linha = jTableResultados.getSelectedRow();\n if (linha >= 0) {\n int a = new Integer(\"\" + jTableResultados.getValueAt(linha, 0));\n double c0 = Double.parseDouble(\"\" + jTableResultados.getValueAt(linha, 1));\n double c1 = Double.parseDouble(\"\" + jTableResultados.getValueAt(linha, 2));\n telaSemivariograma.getJTextFieldAlcance().setText(\"\" + a);\n telaSemivariograma.getJTextFieldEfeitoPepita().setText(\"\" + c0);\n telaSemivariograma.getJTextFieldContribuicao().setText(\"\" + c1);\n telaSemivariograma.getJSliderAlcance().setValue(a);\n telaSemivariograma.getJSliderEfeitoPepita().setValue((int) (c0 * 10000));\n telaSemivariograma.getJSliderContribuicao().setValue((int) (c1 * 10000));\n if (telaSemivariograma.isVisible()) {\n telaSemivariograma.setVisible(false);\n }\n telaSemivariograma.setVisible(true);\n }\n }", "public double darVelocidadMedia( )\n {\n return velocidadOrbitalMedia;\n }", "public int rekisteroi() {\n this.tunnusNro = seuraavaNro;\n Tuote.seuraavaNro++;\n return tunnusNro;\n }", "public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }", "public void capturarNumPreRadica() {\r\n try {\r\n if (mBRadicacion.getRadi() == null) {\r\n mbTodero.setMens(\"Debe seleccionar un registro de la tabla\");\r\n mbTodero.warn();\r\n } else {\r\n DatObser = Rad.consultaObserRadicacion(String.valueOf(mBRadicacion.getRadi().getCodAvaluo()), mBRadicacion.getRadi().getCodSeguimiento());\r\n mBRadicacion.setListObserRadicados(new ArrayList<LogRadicacion>());\r\n\r\n while (DatObser.next()) {\r\n LogRadicacion RadObs = new LogRadicacion();\r\n RadObs.setObservacionRadic(DatObser.getString(\"Obser\"));\r\n RadObs.setFechaObservacionRadic(DatObser.getString(\"Fecha\"));\r\n RadObs.setAnalistaObservacionRadic(DatObser.getString(\"empleado\"));\r\n mBRadicacion.getListObserRadicados().add(RadObs);\r\n }\r\n Conexion.Conexion.CloseCon();\r\n opcionCitaAvaluo = \"\";\r\n visitaRealizada = false;\r\n fechaNueva = null;\r\n observacionReasignaCita = \"\";\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgInfRadicacion').show()\");\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".capturarNumPreRadica()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public void cambiaRitmo(int valor){\r\n\t\t\r\n\t}", "public void obtenerValorDePiezaEnDolaresADolares() {\r\n\t\tPieza pieza = new Pieza(\"\",10,Moneda.DOLAR);\t\t\r\n\t\tdouble precio = pieza.getPrecioEn(Moneda.DOLAR);\r\n\t\tAssert.assertEquals(precio, 10);\r\n\t}", "public void venceuRodada () {\n this.pontuacaoPartida++;\n }", "public void setLageurDuMonde( double valeur) {\n\t\tlargeurDuMonde = valeur;\n\t}", "public float calculaPremioConsoanteResultado (Aposta aposta, Evento.Resultado res){\n switch (res) {\n case VITORIA:\n return aposta.calculaPremio(\"1\");\n case EMPATE:\n return aposta.calculaPremio(\"x\");\n case DERROTA:\n return aposta.calculaPremio(\"2\");\n }\n return 0;\n \n }", "public Maquina() {\n savia = 0;\n reflejosLagrimas = 0;\n estado = false;\n }", "public int masVendido(int cantidad){\r\n \r\n return cantidad;\r\n }", "public void actualizarValor() {\n\t\tif (valor!=null && valor < getCantElementos()-1){\n\t\t\tvalor++;\n\t\t}\n\t\telse {\n\t\t\tvalor = 0;\n\t\t}\t\t\n\t}", "public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}", "private void sumaApostado() {\n\t\tapostado.set(apostado.get() + 1.0);\n\t\tdiruField.setText(String.format(\"%.2f\", apostado.get()));\n\t\tactualizaPremio();\n\t}", "public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}", "public static double verificaValorCarro(int tipo) {\n double valor = 0;\n switch (tipo) {\n case 1:\n return valor + 1200;\n case 2:\n return valor + 520;\n default:\n break;\n\n }\n return valor;\n }", "public static void dormir(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n int restoDeMana; //variables locales a utilizar\n int restoDeVida;\n if(oro>=30){ //condicion de oro para recuperar vida y mana\n restoDeMana=10-puntosDeMana;\n puntosDeMana=puntosDeMana+restoDeMana;\n restoDeVida=150-puntosDeVida;\n puntosDeVida=puntosDeVida+restoDeVida;\n //descotando oro al jugador\n oro=oro-30;\n System.out.println(\"\\nrecuperacion satisfactoria\");\n }\n else{\n System.out.println(\"no cuentas con 'Oro' para recuperarte\");\n }\n }", "public void setRisultato(double risultato) {\r\n this.risultato = risultato;\r\n }", "public void recebeAumento(double valorDoAumento){\n\t\tdouble aumento = this.salario * valorDoAumento;\n\t\tthis.salario += aumento;\n\t}", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "public int MostrarUltimoValorIngresado() {\r\n return UltimoValorIngresado.informacion;\r\n }", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "private void trataDesconto(String x){\n \n Double sub;\n \n descontoField.setText(porcentagem.format((Double.parseDouble(x))/100));\n descontoField.setEnabled(true);\n sub = retornaSubTotal(this.getVlrTotalItem(), Double.parseDouble(x));\n subTotalField.setText(moeda.format(sub));\n lblTotalGeral.setText(subTotalField.getText());\n this.setVlrTotalItem(sub);\n}", "public void anulaAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAnulaAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n int CodRad = mBRadicacion.Radi.getCodAvaluo();\r\n mBRadicacion.Radi.AnulaRadicacion(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"El Avaluo N*: \" + CodRad + \" ha sido anulada\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n mbTodero.resetTable(\"FormMisAsignados:RadicadosSegTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".anulaAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "@Test\r\n public void testDesvioPadrao() {\r\n EstatisticasUmidade e = new EstatisticasUmidade();\r\n e.setValor(5.2);\r\n e.setValor(7.0);\r\n e.setValor(1.3);\r\n e.setValor(6);\r\n e.setValor(0.87); \r\n \r\n double result= e.media(1);\r\n assertArrayEquals(\"ESPERA RESULTADO\", 5.2 , result, 1.2);\r\n }", "@Override\n\tpublic void acelerar() {\n\t\t// TODO Auto-generated method stub\n\t\t\t\tvelocidadActual += 40;\n\t\t\t\tif(velocidadActual>250) {\n\t\t\t\t\tvelocidadActual = 250;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdepositoActual -= 10;\n\t\t\t\tSystem.out.println(\"Velocidad del ferrari: \"+velocidadActual);\n\t}", "public void llenarCafetera() {\n\t\tthis.setCantidadActual(this.get_capacidadMaxima());\n\t}", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "void establecerPuntoAM(int pos){\n this.emisoraAMActual = pos;\n }", "public int cuantosRenglones() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas renglones quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}", "long buscarUltimo();", "public double dlugoscOkregu() {\n\t\treturn 2 * Math.PI * promien;\n\t}", "public double ValorDePertenencia(double valor) {\n // Caso 1: al exterior del intervalo del conjunto difuo\n if (valor < min || valor > max || puntos.size() < 2) {\n return 0;\n }\n\n Punto2D ptAntes = puntos.get(0);\n Punto2D ptDespues = puntos.get(1);\n int index = 0;\n while (valor >= ptDespues.x) {\n index++;\n ptAntes = ptDespues;\n ptDespues = puntos.get(index);\n }\n\n if (ptAntes.x == valor) {\n // Tenemos un punto en este valor\n return ptAntes.y;\n } else {\n // Se aplica la interpolación\n return ((ptAntes.y - ptDespues.y) * (ptDespues.x - valor) / (ptDespues.x - ptAntes.x) + ptDespues.y);\n }\n }", "public double portataMassicaFumi( ){\r\n\t\treturn portatamassica;\r\n\t}", "public Nodo_Bodega ultimaAgregada(){\n return Nodo_bodega_final;\n }", "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }", "public int jogadorAtual() {\n return vez;\n }", "public void distribuirAportes1(){\n\n if(null == comprobanteSeleccionado.getAporteuniversidad()){\n System.out.println(\"comprobanteSeleccionado.getAporteuniversidad() >> NULO\");\n }\n\n if(null == comprobanteSeleccionado.getAporteorganismo()){\n System.out.println(\"comprobanteSeleccionado.getAporteorganismo() >> NULO\");\n }\n\n if(null == comprobanteSeleccionado.getMontoaprobado()){\n System.out.println(\"comprobanteSeleccionado.getMontoaprobado() >> NULO\");\n }\n\n try{\n if(comprobanteSeleccionado.getAporteuniversidad().floatValue() > 0f){\n comprobanteSeleccionado.setAporteorganismo(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad()));\n comprobanteSeleccionado.setAportecomitente(BigDecimal.ZERO);\n }\n } catch(NullPointerException npe){\n System.out.println(\"Error de NullPointerException\");\n npe.printStackTrace();\n }\n\n }", "public String consultaValorRevenda() {\n\t\treturn \"[REVENDA] Celular #\" + this.modelo + \": R$ \" + this.valorRevenda;\n\t}", "public void calcularSalario(){\n // 1% do lucro mensal\n double percentagemLucro = 0.01 * lucroMensal;\n // valor fixo igual ao dobro do dos empregados sem especialização, acrescido\n //de um prémio que corresponde a 1% do lucro mensal nas lojas da região.\n setSalario(1600 + percentagemLucro);\n\n }", "public static void NumeroCapicua(){\n\t\tint numero,resto,falta,invertido;\n\t\tString tomar;\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese un numero\");\n\t\tnumero=reader.nextInt();\n\t\tfalta=numero;\n\t\tinvertido=0;\n\t\tresto=0;\n\t\twhile(falta!=0){\n\t\t\tresto=(falta%10);\n\t\t\tinvertido=(invertido*10)+resto;\n\t\t\tfalta=(int)(falta/10);\n\t\t}\n\t\tif(invertido==numero){\n\t\t\tSystem.out.println(\"Es Capicua\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No es Capicua\");\n\t\t}\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}", "public int getCoeficienteBernua()\n {\n return potenciaCV;\n }", "private void verificaVencedor(){\n\n // Metodo para verificar o vencedor da partida\n\n if(numJogadas > 4) {\n\n String vencedor = tabuleiro.verificaVencedor();\n\n vencedor = (numJogadas == tabuleiro.TAM_TABULEIRO && vencedor == null) ? \"Deu Velha!\" : vencedor;\n\n if (vencedor != null) {\n\n mostraVencedor(vencedor);\n temVencedor = true;\n\n }\n\n }\n\n }", "public void setPreco(Double preco);", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }", "public void enfoncerDel() {\n\t\tthis.valC = this.valC/10;\n\t}", "public void decida(){\n int vecinasVivas=vecinos();\n if(vecinasVivas==3 && estadoActual=='m'){\n estadoSiguiente='v';\n }else if((estadoActual=='v' && vecinasVivas==2) || (estadoActual=='v' && vecinasVivas==3)){\n estadoSiguiente='v';\n }else if(vecinasVivas<2 || vecinasVivas>3){\n estadoSiguiente='m';\n }\n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public Agnello prelevaMontone() {\n\t\tfor (int i=0; i<pecore.size(); i++)\n\t\t\tif ((pecore.get(i) instanceof PecoraAdulta)\n\t\t\t\t\t&& (((PecoraAdulta) pecore.get(i)).isMaschio())) {\n\t\t\t\tnumMontoni--;\n\t\t\t\treturn pecore.remove(i);\n\t\t\t}\n\t\treturn null;\n\t}", "@Override\n public double Convertir(int opcion, Double valor) {\n double unidad;\n\n switch (opcion) {\n case 1://de km/h a millas/h\n //1 km/h = 0,621371 millas/h\n unidad = (0.621371 * valor);\n break;\n case 2://de millas/h a km/h\n //1 milla/h = 1,60934 km/h\n unidad = (1.60934 * valor);\n break;\n case 3://de km/h a metros por segundo\n // 1 km/h = 0,277778 metros pro segundo\n unidad = (0.277778 * valor);\n break;\n case 4://de km a millas\n unidad = (0.621371 * valor);\n break;\n case 5://de milla a yardas\n unidad = (1760 * valor);\n break;\n case 6://de milla a km\n unidad = (1.60934 * valor);\n break;\n default:\n unidad = 0.00;\n break;\n }\n return unidad;\n }", "@Override\n\tpublic void frenar() {\n\t\tvelocidadActual = 0;\n\t}", "public boolean prestamo(){\n boolean prestado = true;\n if (cantPres < cantLibro) {\n cantPres++;\n } else {\n prestado = false;\n }\n return prestado;\n }", "public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }", "public void azzera() { setEnergia(0.0); }", "@Override\n public double calculaSalario() \n {\n double resultado = valor_base - ((acumulado * 0.05) * valor_base);\n resultado += auxilioProcriacao();\n //vale-coxinha\n resultado += 42;\n return resultado;\n }", "private void actualizaPremio(){\n\t\tif(botonAp1.isSelected()){\n\t\t\ttipo = 1;\n\t\t\tcoef = modelo.getPartidoApuesta().getCoefLocal();\n\t\t\tpremio.set(apostado.get()*coef);\n\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t}else{\n\t\t\tif(botonApX.isSelected()){\n\t\t\t\ttipo = 0;\n\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefEmpate();\n\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t}else{\n\t\t\t\tif(botonAp2.isSelected()){\n\t\t\t\t\ttipo = 2;\n\t\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefVisitante();\n\t\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}else{\n\t\t\t\t\ttipo = -1;\n\t\t\t\t\tcoef = 0.0;\n\t\t\t\t\tpremio.set(0.0);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Integer getDistanciaVivienda() {\n return distanciaVivienda;\n }", "public double getPreco();", "public double getPreco();", "public int obtenerMinuto() { return minuto; }", "private void sumarEdificio(int tipo){\n int cantActual;\n //Buscar tipo\n switch(tipo){\n case vg.CHOZA:\n cantActual = Integer.parseInt(jTextFieldChoza.getText());\n jTextFieldChoza.setText(String.valueOf(cantActual+1));\n break;\n case vg.CAMPAMENTO:\n cantActual = Integer.parseInt(jTextFieldCampamento.getText());\n jTextFieldCampamento.setText(String.valueOf(cantActual+1));\n break;\n case vg.CUARTEL:\n cantActual = Integer.parseInt(jTextFieldCuartel.getText());\n jTextFieldCuartel.setText(String.valueOf(cantActual+1));\n break;\n case vg.MINA:\n cantActual = Integer.parseInt(jTextFieldMina.getText());\n jTextFieldMina.setText(String.valueOf(cantActual+1));\n break;\n case vg.RECOLECTOR:\n cantActual = Integer.parseInt(jTextFieldRecolector.getText());\n jTextFieldRecolector.setText(String.valueOf(cantActual+1));\n break;\n case vg.TORRE:\n cantActual = Integer.parseInt(jTextFieldTorre.getText());\n jTextFieldTorre.setText(String.valueOf(cantActual+1));\n break;\n case vg.CAÑON:\n cantActual = Integer.parseInt(jTextFieldCañon.getText());\n jTextFieldCañon.setText(String.valueOf(cantActual+1));\n break;\n case vg.MORTERO:\n cantActual = Integer.parseInt(jTextFieldMortero.getText());\n jTextFieldMortero.setText(String.valueOf(cantActual+1));\n break;\n default:\n break;\n }\n }", "public static void main(String[] args) {\n\r\n\t\tScanner teclado = new Scanner(System.in);\r\n\r\n\t\tfinal int DIA_ACTUAL = 9, MES_ACTUAL = 11, AÑO_ACTUAL = 2018;\r\n\r\n\t\tint dia = 0, año = 0, mes_numerico = 0, años_totales = 0;\r\n\r\n\t\tString mes = \" \";\r\n\r\n\t\tboolean bisiesto = false;\r\n\r\n\t\tSystem.out.println(\"Introduzca un mes valido \");\r\n\t\tmes = teclado.nextLine();\r\n\r\n\t\tSystem.out.println(\"Introduzca un dia valido \");\r\n\t\tdia = teclado.nextInt();\r\n\r\n\t\tSystem.out.println(\"Introduzca un año \");\r\n\t\taño = teclado.nextInt();\r\n\r\n\t\tif ((año % 4 == 0) && (año % 100 != 0) || (año % 400 == 0)) {\r\n\r\n\t\t\tbisiesto = true;\r\n\t\t}\r\n\r\n\t\tswitch (mes) {\r\n\r\n\t\tcase \"enero\":\r\n\r\n\t\t\tmes_numerico = 1;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"febrero\":\r\n\r\n\t\t\tmes_numerico = 2;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"marzo\":\r\n\r\n\t\t\tmes_numerico = 3;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"abril\":\r\n\r\n\t\t\tmes_numerico = 4;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"mayo\":\r\n\r\n\t\t\tmes_numerico = 5;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"junio\":\r\n\r\n\t\t\tmes_numerico = 6;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"julio\":\r\n\r\n\t\t\tmes_numerico = 7;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"agosto\":\r\n\r\n\t\t\tmes_numerico = 8;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"septiembre\":\r\n\r\n\t\t\tmes_numerico = 9;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"octubre\":\r\n\r\n\t\t\tmes_numerico = 10;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"noviembre\":\r\n\r\n\t\t\tmes_numerico = 11;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"diciembre\":\r\n\r\n\t\t\tmes_numerico = 12;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\r\n\t\t\tSystem.out.println(\"Introduzca un mes correcto \");\r\n\t\t\tmes = teclado.nextLine();\r\n\r\n\t\t\tbreak;\r\n\r\n\t\t}\r\n\r\n\t\taños_totales = AÑO_ACTUAL - año;\r\n\r\n\t\tif ((mes_numerico == 1 || mes_numerico == 3 || mes_numerico == 5 || mes_numerico == 7 || mes_numerico == 8\r\n\t\t\t\t|| mes_numerico == 10 || mes_numerico == 12) && (dia <= 31)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else if ((mes_numerico == 4 || mes_numerico == 6 || mes_numerico == 9 || mes_numerico == 11) && (dia <= 30)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else if ((mes_numerico == 2 && bisiesto) && (dia <= 29)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else if ((mes_numerico == 2 && !bisiesto) && (dia <= 28)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else {\r\n\r\n\t\t\tSystem.out.println(\"La fecha introducida no es correcta \");\r\n\t\t}\r\n\r\n\t\tteclado.close();\r\n\r\n\t}", "public int getValoracionMedia(){\n return valoracionMedia;\n }", "public static float mostrarCredito(){\n JOptionPane.showMessageDialog(null,\"Actualmente hay \"+Monedero.getCredito());\n return Monedero.getCredito();\n }", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "public Double getPotencia(){\n return this.valor;\n }", "public static int valorCotizar(int modelo, boolean modeloAnterior) {\n\t\tint valor = 0;\n\t\tif (modeloAnterior)\n\t\t\tvalor = 350;\n\t\telse if (modelo >= 1990 && modelo <= 1999)\n\t\t\tvalor = 480;\n\t\telse if (modelo >= 2000 && modelo <= 2010)\n\t\t\tvalor = 780;\n\t\telse if (modelo >= 2011 && modelo <= 2016)\n\t\t\tvalor = 950;\n\t\telse if (modelo >= 2017 && modelo <= 2020)\n\t\t\tvalor = 1200;\n\t\treturn valor;\n\t}", "Integer getEmisoraActual(boolean AM){\n return AM ? this.emisoraAMActual : this.emisoraFMActual; \n }", "public void somaVezes(){\n qtVezes++;\n }" ]
[ "0.6333649", "0.628985", "0.627882", "0.6106075", "0.608437", "0.600551", "0.5984", "0.5908423", "0.5883073", "0.58661306", "0.58616865", "0.58439124", "0.5797248", "0.57938725", "0.57806355", "0.5771237", "0.5751305", "0.5746788", "0.5742237", "0.5735223", "0.5732124", "0.5721238", "0.5717432", "0.5704848", "0.56954604", "0.5686563", "0.5678628", "0.56771874", "0.5676073", "0.56751055", "0.5670142", "0.56696653", "0.5662373", "0.5660379", "0.5656774", "0.5650721", "0.5647994", "0.5647812", "0.5641171", "0.5639056", "0.5636357", "0.56356686", "0.56284547", "0.5623268", "0.5621288", "0.56178206", "0.5615414", "0.56140816", "0.56120074", "0.56112003", "0.5604405", "0.5603382", "0.5601036", "0.55990547", "0.55969065", "0.5594935", "0.55949", "0.559437", "0.55908227", "0.55893433", "0.5572046", "0.5570289", "0.55695873", "0.5568287", "0.5561941", "0.55610204", "0.5550041", "0.5546506", "0.5537006", "0.55327064", "0.5526374", "0.55151796", "0.55140567", "0.5510562", "0.550601", "0.550452", "0.5502286", "0.55008966", "0.5495503", "0.5492953", "0.54911643", "0.54891765", "0.54831755", "0.5482132", "0.54749805", "0.54732955", "0.54651386", "0.54602545", "0.54599756", "0.54574066", "0.54574066", "0.5456594", "0.54554677", "0.5453456", "0.54466814", "0.5444731", "0.5442976", "0.5441611", "0.5440905", "0.5438931", "0.54354566" ]
0.0
-1
need to close is after using this method
public static InputStream getInputStream(String pageURL) throws IOException{ InputStream is = null; URL url = new URL(pageURL); URLConnection conn = url.openConnection(); conn.setUseCaches(false); conn.addRequestProperty("User-agent", Common.USER_AGENT); is = conn.getInputStream(); return is; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void close() {\n \n }", "public void close() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void close() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void close() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void close() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void close() {\n\t\t\r\n\t}", "@Override\n public void close() {\n }", "@Override\r\n\tpublic void close()\r\n\t{\n\t\t\r\n\t}", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\r\n public void close() {\n \r\n }", "@Override\r\n public void close ()\r\n {\r\n }", "public void close() {\n\t\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "public void close() {\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\n\t}", "@Override\n\tpublic void close() {\n\n\t}", "public void close() {\n\n\t}", "public void close() {\n\n\t}", "@Override\r\n\tpublic void close() {\n\t}", "@Override\r\n\tpublic void close() {\n\t}", "@Override\r\n\tpublic void close() {\n\t}", "@Override\r\n\tpublic void close() {\n\t\tsuper.close();\r\n\t}", "public void close()\n\t\t{\n\t\t}", "public void close() {\r\n\t}", "@Override\n public void close()\n {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() { }", "@Override\n\tpublic void close() {\n\t}", "@Override\n\tpublic void close() {\n\t}", "@Override\n\tpublic void close() {\n\t}", "@Override\n\tpublic void close() {\n\t}", "@Override\n\tpublic void close() {\n\t}", "@Override\r\n\tprotected void doClose() throws Exception {\n\t\t\r\n\t}", "@Override\n\tpublic void close() {\n\t\tsuper.close();\n\t}", "@Override\n\tpublic void close() {\n\t\tsuper.close();\n\t}", "public void close() {\n\t}", "@Override\n public void close() {\n \n }", "@Override\n\tpublic void closeIfStillOpen() {\n\n\t}", "public void close() {}", "@Override\r\n\tpublic synchronized void close() {\n\t\tsuper.close();\r\n\t}", "@Override\n public void closing() {\n }", "@SuppressWarnings(\"unused\")\n\t\t\tprivate void dispose() {\n\t\t\t\t\n\t\t\t}", "@Override // close resources if necessary\n public void close() { }", "public void close()\r\n {\r\n }", "@Override\n\tpublic void closed() {\n\n\t}", "@Override\n void close();", "@Override\n void close();", "@Override\r\n public void close()\r\n {\n\r\n }", "public void close(){\n \n }", "@Override\n void close();", "@Override\n void close();", "@Override\n void close();", "@Override\n void close();", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "@Override\n public synchronized void close()\n {\n super.close();\n }", "@Override public void closed() {\n\t\t}", "@Override public abstract void close();", "@Override\n\tprotected void handleClose() {\n\t}", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();" ]
[ "0.78826433", "0.7824925", "0.78063136", "0.77648365", "0.775799", "0.775799", "0.77321124", "0.7731727", "0.76930255", "0.76930255", "0.76848817", "0.76039195", "0.7603076", "0.75936484", "0.75936484", "0.75936484", "0.75936484", "0.75714606", "0.75524527", "0.75524527", "0.75524527", "0.7547487", "0.7547487", "0.753651", "0.753651", "0.75216943", "0.75216943", "0.75216943", "0.7507542", "0.750398", "0.7489223", "0.7462124", "0.74554837", "0.74554837", "0.74554837", "0.74554837", "0.74554837", "0.74554837", "0.74554837", "0.74554837", "0.74554837", "0.74554837", "0.74554837", "0.74554837", "0.74440503", "0.74224", "0.74224", "0.74224", "0.74224", "0.74224", "0.74096394", "0.73619497", "0.73619497", "0.7346985", "0.7344437", "0.73424894", "0.73355734", "0.7307434", "0.72731227", "0.72666526", "0.72104466", "0.72083205", "0.7199748", "0.7185524", "0.7185524", "0.71628016", "0.71567756", "0.7139455", "0.7139455", "0.7139455", "0.7139455", "0.71391994", "0.71391994", "0.71391994", "0.71351844", "0.71351844", "0.71351844", "0.7130749", "0.71245503", "0.7119509", "0.71011025", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194", "0.70859194" ]
0.0
-1
Converting to future to avoid Schedulers.parallel() complaining about blocking method. For now reactor has no descent functionality to implement blocking cancellation
@SneakyThrows private void unsubscribe(String name) { call("unsubscribe", new Subscription(name)).toFuture().get(UNSUBSCRIBE_DELAY_S, TimeUnit.SECONDS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChannelProgressivePromise awaitUninterruptibly()\r\n/* 113: */ {\r\n/* 114:144 */ super.awaitUninterruptibly();\r\n/* 115:145 */ return this;\r\n/* 116: */ }", "CompletableFuture<Void> cancel();", "public interface Future\n{\n\n public abstract boolean cancel(boolean flag);\n\n public abstract boolean isCancelled();\n\n public abstract boolean isDone();\n\n public abstract Object get()\n throws ExecutionException, InterruptedException;\n\n public abstract Object get(long l, TimeUnit timeunit)\n throws ExecutionException, InterruptedException, TimeoutException;\n}", "private BlockingFuture setRetractingFuture(ATFarReference reference) {\n\t\t// first assign future to a local variable to avoid race conditions on writing to the outboxFuture_ variable!\n\t\tfinal BlockingFuture future = new BlockingFuture();\n\t\tsynchronized(this) { \n\t\t\t// synchronized access because different thread in the pool could\n\t\t\t// be processing retractUnsentMessages requests for different references. \n\t\t\tretractFutures_.put(reference, future);\n\t\t}\n\t\treturn future;\n\t}", "private void cancel() {\n mFuture.cancel(mMayInterruptIfRunning);\n }", "public final void maybePropagateCancellationTo(@NullableDecl Future<?> future) {\n if ((future != null) && isCancelled()) {\n future.cancel(wasInterrupted());\n }\n }", "default void cancel() {\n\t\tcancelOriginal();\n\t\tFutureStream.super.cancel();\n\n\t}", "public static Object getFutureValue(ListenableFuture<?> future) {\n Object failure;\n if (future instanceof TrustedFuture) {\n Object v = ((AbstractFuture) future).value;\n if (!(v instanceof Cancellation)) {\n return v;\n }\n Cancellation c = (Cancellation) v;\n if (!c.wasInterrupted) {\n return v;\n }\n if (c.cause != null) {\n return new Cancellation(false, c.cause);\n }\n return Cancellation.CAUSELESS_CANCELLED;\n }\n try {\n Object v2 = Futures.getDone(future);\n if (v2 == null) {\n failure = NULL;\n } else {\n failure = v2;\n }\n } catch (ExecutionException exception) {\n failure = new Failure(exception.getCause());\n } catch (CancellationException cancellation) {\n failure = new Cancellation(false, cancellation);\n } catch (Throwable t) {\n failure = new Failure(t);\n }\n return failure;\n }", "public static @NonNull <T> Future<T> awaitFuture(@NonNull Future<T> future) {\n try {\n // await the future and rethrow exceptions if any occur\n return future.asStage().sync().future();\n } catch (InterruptedException exception) {\n Thread.currentThread().interrupt(); // reset the interrupted state of the thread\n throw new IllegalThreadStateException();\n }\n }", "public ChannelProgressivePromise syncUninterruptibly()\r\n/* 100: */ {\r\n/* 101:132 */ super.syncUninterruptibly();\r\n/* 102:133 */ return this;\r\n/* 103: */ }", "private <T> T callWithTimeout(final CallRunner<T> callRunner)\n throws TimeoutException, StreamingException, InterruptedException {\n Future<T> future = callTimeoutPool.submit(new Callable<T>() {\n @Override\n public T call() throws Exception {\n return callRunner.call();\n }\n });\n try {\n if (callTimeout > 0) {\n return future.get(callTimeout, TimeUnit.MILLISECONDS);\n } else {\n return future.get();\n }\n } catch (TimeoutException timeoutException) {\n future.cancel(true);\n throw timeoutException;\n } catch (ExecutionException e1) {\n Throwable cause = e1.getCause();\n if (cause instanceof IOException) {\n throw new StreamingIOFailure(\"I/O Failure\", (IOException) cause);\n } else if (cause instanceof StreamingException) {\n throw (StreamingException) cause;\n } else if (cause instanceof InterruptedException) {\n throw (InterruptedException) cause;\n } else if (cause instanceof RuntimeException) {\n throw (RuntimeException) cause;\n } else if (cause instanceof TimeoutException) {\n throw new StreamingException(\"Operation Timed Out.\", (TimeoutException) cause);\n } else {\n throw new RuntimeException(e1);\n }\n }\n }", "public abstract T await();", "public <T> CompletableFuture<T> optimizeSyncConsumerThread(CompletableFuture<T> future) {\n if (sync && !InvokerUtils.isInEventLoop()) {\n return AsyncUtils.tryCatchSupplier(() -> InvokerUtils.toSync(future, getWaitTime()));\n }\n\n return future;\n }", "public static SinkServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<SinkServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<SinkServiceFutureStub>() {\n @java.lang.Override\n public SinkServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new SinkServiceFutureStub(channel, callOptions);\n }\n };\n return SinkServiceFutureStub.newStub(factory, channel);\n }", "@CallByThread(\"Netty EventLoop\")\n void runCancel() {\n if (referenced > 0) { // is blocking\n incomingPublishService.drain();\n }\n }", "default EagerFutureStream<U> control(Function<Supplier<U>, Supplier<U>> fn) {\n\t\treturn (EagerFutureStream<U>) FutureStream.super.control(fn);\n\t}", "public static void fromFuture() {\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n Future<String> future = executorService.submit(() -> \"Response from future\");\n Observable<String> myObservable = Observable.fromFuture(future);\n myObservable.subscribe(genericObserver1);\n }", "default EagerFutureStream<U> async(){\n\t\treturn (EagerFutureStream<U>)FutureStream.super.async();\n\t}", "public ChannelProgressivePromise unvoid()\r\n/* 141: */ {\r\n/* 142:172 */ return this;\r\n/* 143: */ }", "public ChannelFuture method_4130() {\n return null;\n }", "public ChannelFuture method_4097() {\n return null;\n }", "public void forgetFuture() {\n if (!frozen) {\n future.clear();\n }\n }", "void removeFutureInstance();", "@Test\n public void testEventSourcingFromAsynchronousSubscribable() throws Exception {\n FunctionalReactives<Void> fr =\n FunctionalReactives.createAsync( //assume source happens in a different thread\n aSubscribableWillAsyncFireIntegerOneToFive() //a subscribable implementation\n )\n .filter(new Predicate<Integer>() {\n @Override\n public boolean apply(Integer input) {\n return input % 2 == 0; //filter out odd integers\n }\n })\n .forEach(println()); //print out reaction results each in a line\n\n fr.start(); //will trigger Subscribable.doSubscribe()\n fr.shutdown(); //will trigger Subscribable.unsubscribe() which in above case will await for all the integers scheduled\n\n //Reaction walk through:\n // Original source: 1 -> 2 -> 3 -> 4 -> 5 -> |\n // Filter events: ---> 2 ------> 4 ------> |\n // Print out results: -> \"2\\n\" ---> \"4\\n\" ---> |\n\n }", "public ChannelProgressivePromise await()\r\n/* 106: */ throws InterruptedException\r\n/* 107: */ {\r\n/* 108:138 */ super.await();\r\n/* 109:139 */ return this;\r\n/* 110: */ }", "public Object call() throws Exception {\n\t\t\t\t\t\tProducerSimpleNettyResponseFuture future;\n\t\t\t\t\t\tProducerSimpleNettyResponse responseFuture;\n\t\t\t\t\t\tfuture = clientProxy.request(message);\n\t\t\t\t\t\tresponseFuture = future\n\t\t\t\t\t\t\t\t.get(3000, TimeUnit.MILLISECONDS);\n\t\t\t\t\t\treturn responseFuture.getResponse();\n\t\t\t\t\t}", "Future<T> then(Runnable result);", "public Object call() throws Exception {\n\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\tif ( reference.asNativeRemoteFarReference().getTransmitting()){\n\t\t\t\t\t\t\t// if there is a thread transmitting a message for this reference:\n\t\t\t\t\t\t\t// resolve the future with a BlockingFuture to wait for the result of the transmission.\n\t\t\t\t\t\t\tBlockingFuture future = setRetractingFuture(reference);\n\t\t\t\t\t\t\treturn future.get();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// if there is no thread transmitting a message for this reference:\n\t\t\t\t\t\t\t// resolve the future immediately with the content of its oubox.\n\t\t\t\t\t\t\treturn reference.asNativeRemoteFarReference().impl_retractOutgoingLetters();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "static CompletableFuture<String> callAsync(Api2 ignored) {\n return CompletableFuture.supplyAsync(() -> {\n System.out.println(\"supplyAsync thread =:\" + Thread.currentThread().getName());\n throw new RuntimeException(\"oops\");\n });\n }", "static <T> EagerFutureStream<T> react(Supplier<T> value) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false).react(value);\n\t}", "public Promise<V> syncUninterruptibly()\r\n/* 191: */ {\r\n/* 192:226 */ awaitUninterruptibly();\r\n/* 193:227 */ rethrowIfFailed();\r\n/* 194:228 */ return this;\r\n/* 195: */ }", "public ChannelFuture method_4120() {\n return null;\n }", "private <T> CompletableFuture<T> receiveAsync(ClientRequestFuture pendingReq, PayloadReader<T> payloadReader) {\n return pendingReq.thenApplyAsync(payload -> {\n if (payload == null || payloadReader == null)\n return null;\n\n try (var in = new PayloadInputChannel(this, payload)) {\n return payloadReader.apply(in);\n } catch (Exception e) {\n throw new IgniteException(\"Failed to deserialize server response: \" + e.getMessage(), e);\n }\n }, asyncContinuationExecutor);\n }", "CompletableFuture<?> submit(Runnable request);", "Future<T> then(Signal<T> result);", "default T await() {\n return await(0, TimeUnit.NANOSECONDS);\n }", "public ChannelProgressivePromise removeListener(GenericFutureListener<? extends Future<? super Void>> listener)\r\n/* 81: */ {\r\n/* 82:113 */ super.removeListener(listener);\r\n/* 83:114 */ return this;\r\n/* 84: */ }", "public static TpuFutureStub newFutureStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<TpuFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<TpuFutureStub>() {\n @java.lang.Override\n public TpuFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new TpuFutureStub(channel, callOptions);\n }\n };\n return TpuFutureStub.newStub(factory, channel);\n }", "private synchronized ListenableFuture<?> getFutureStateChange()\n {\n if (!exchangeClient.isClosed()) {\n return exchangeClient.isBlocked();\n }\n\n // otherwise, wait for the query to finish\n queryManager.recordHeartbeat(queryId);\n try {\n return queryDoneFuture(queryManager.getQueryState(queryId));\n }\n catch (NoSuchElementException e) {\n return immediateFuture(null);\n }\n }", "@Override\n public Mono<Void> cleanupAsync() {\n if (client != null) {\n try {\n client.closeSync();\n return Mono.empty();\n } catch (EventHubException e) {\n return Mono.error(new RuntimeException(\"Unable to close synchronous client.\", e));\n }\n }\n\n if (clientFuture != null) {\n final CompletableFuture<Void> future = clientFuture.thenComposeAsync(client -> client.close());\n return Mono.fromCompletionStage(future);\n }\n\n return Mono.empty();\n }", "public final V runInterruptibly() {\n return this.callable.call();\n }", "public interface LightFuture<T> {\n /**\n * Returns {@code true} then task is finished.\n */\n boolean isReady();\n\n /**\n * Returns result of work.\n * @throws InterruptedException if waiting for the result to compute fails\n * @throws LightExecutionException if computation ends up with an exception\n */\n T get() throws InterruptedException, LightExecutionException;\n\n /**\n * Applies mapping to result of the task to get a new task.\n * @param mapping function to get new task from the result\n * of the previous\n * @param <U> return value of new task\n * @return new task\n * @throws InterruptedException if waiting for the result to compute fails\n * @throws LightExecutionException if computation ends up with an exception\n */\n @NotNull\n <U> LightFuture<U> thenApply(Function<? super T, U> mapping) throws InterruptedException, LightExecutionException;\n}", "T get() throws InterruptedException, LightExecutionException;", "@Async.Schedule\n public <T> IgniteInternalFuture<T> chain(IgniteClosure<? super IgniteInternalFuture<R>, T> doneCb);", "CompletableFuture<Void> next();", "public ChannelFuture method_4092() {\n return null;\n }", "@Override\n public void unsubscribe() {\n try {\n assert future != null;\n future.get(5, TimeUnit.SECONDS); //wait for all the scheduled values fired\n } catch (Exception e) {\n Throwables.propagate(e); //just hide the checked exception\n }\n }", "EagerFutureStream<U> withAsync(boolean async);", "@BackpressureSupport(BackpressureKind.FULL)\n @SchedulerSupport(SchedulerKind.NONE)\n public static <T> Observable<T> fromFuture(Future<? extends T> future) {\n Objects.requireNonNull(future, \"future is null\");\n Observable<T> o = create(new PublisherFutureSource<T>(future, 0L, null));\n \n return o;\n }", "public ChannelFuture method_4126() {\n return null;\n }", "public interface Future<T> extends AsyncResult<T> {\n\n final class Factory {\n\n public static <T> Future<T> failedFuture(String failureMessage) {\n return new FutureImpl<>(failureMessage, false);\n }\n\n public static <T> Future<T> failedFuture(Throwable t) {\n return new FutureImpl<>(t);\n }\n\n public static <T> Future<T> future() {\n return new FutureImpl<>();\n }\n\n public static <T> Future<T> succeededFuture() {\n return new FutureImpl<>((Throwable) null);\n }\n\n public static <T> Future<T> succeededFuture(T result) {\n return new FutureImpl<>(result);\n }\n }\n\n void complete();\n\n void complete(T result);\n\n void fail(String failureMessage);\n\n void fail(Throwable throwable);\n\n boolean isComplete();\n\n void setHandler(Handler<AsyncResult<T>> handler);\n}", "public final ChannelFuture close(ChannelPromise promise) {\n/* 549 */ runPendingTasks();\n/* 550 */ ChannelFuture future = super.close(promise);\n/* */ \n/* */ \n/* 553 */ finishPendingTasks(true);\n/* 554 */ return future;\n/* */ }", "default <T> EagerFutureStream<T> async(Function<EagerReact,EagerFutureStream<T>> react){\n\t\t EagerReact r =ParallelElasticPools.eagerReact.nextReactor().withAsync(true);\n\t\treturn react.apply( r)\n\t\t\t\t\t.onFail(e->{ SequentialElasticPools.eagerReact.populate(r); throw e;})\n\t\t\t\t\t.peek(i->SequentialElasticPools.eagerReact.populate(r));\n\t\t \t\n\t}", "public ChannelFuture getChannelFuture() {\n return channelFuture;\n }", "static <T> EagerFutureStream<T> eagerFutureStream(CompletableFuture<T> value) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false)\n\t\t\t\t\t\t\t\t\t.fromStream(Stream.of(value));\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 }", "Future_<V> take() throws InterruptedException;", "private AsyncFuture<Void> stop() {\n return curator.stop();\n }", "public interface Subscription {\n /**\n * Await cancelled.\n *\n * @throws InterruptedException the interrupted exception\n */\n void awaitCancelled() throws InterruptedException;\n\n /**\n * Await cancelled boolean.\n *\n * @param timeout the timeout\n * @param unit the unit\n * @return the boolean\n * @throws InterruptedException the interrupted exception\n */\n boolean awaitCancelled(long timeout, TimeUnit unit) throws InterruptedException;\n\n /**\n * Cancels this subscription. After this subscription has been cancelled. No more packets will be delivered to\n * the consumer.\n */\n void cancel();\n\n /**\n * Returns whether or not the subscription has been cancelled. @return the boolean\n *\n * @return the boolean\n */\n boolean isCancelled();\n }", "@Async.Schedule\n public <T> IgniteInternalFuture<T> chain(IgniteOutClosure<T> doneCb);", "@Override\n public String call() throws Exception {\n if (!iAmSpecial) {\n blocker.await();\n }\n ran = true;\n return result;\n }", "public ListenableFuture<ResourceSet<T>> async() {\n return async(Twilio.getRestClient());\n }", "public ChannelProgressivePromise promise()\r\n/* 129: */ {\r\n/* 130:160 */ return this;\r\n/* 131: */ }", "public static SubscriptionServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<SubscriptionServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<SubscriptionServiceFutureStub>() {\n @java.lang.Override\n public SubscriptionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new SubscriptionServiceFutureStub(channel, callOptions);\n }\n };\n return SubscriptionServiceFutureStub.newStub(factory, channel);\n }", "private <T> Future<T> newFuture(final T response) {\n FutureTask<T> t = new FutureTask<T>(new Callable<T>() {\n @Override\n public T call() {\n return response;\n }\n });\n t.run();\n return t;\n }", "public static <T> Async<T> startFX(Callable<T> func) {\n return new FXCoroutine<T>(func);\n }", "@Override\n public Future<RpcResult<Void>> cancelCup() {\n LOG.info(\"Cancel called on the Cup heating.\");\n Future<?> current = cupState.getCurrentHeatCupTask().getAndSet(null);\n if (current != null){\n current.cancel(true);\n }\n return Futures.immediateFuture(RpcResultBuilder.<Void> success().build());\n }", "public static CurrencyServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new CurrencyServiceFutureStub(channel);\n }", "public static CurrencyServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new CurrencyServiceFutureStub(channel);\n }", "private <T> T extractValueFromFuture(Future<T> future) {\n T val = null;\n try {\n val = future.get();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n return val;\n }", "public Promise<V> awaitUninterruptibly()\r\n/* 247: */ {\r\n/* 248:277 */ if (isDone()) {\r\n/* 249:278 */ return this;\r\n/* 250: */ }\r\n/* 251:281 */ boolean interrupted = false;\r\n/* 252:282 */ synchronized (this)\r\n/* 253: */ {\r\n/* 254:283 */ while (!isDone())\r\n/* 255: */ {\r\n/* 256:284 */ checkDeadLock();\r\n/* 257:285 */ incWaiters();\r\n/* 258: */ try\r\n/* 259: */ {\r\n/* 260:287 */ wait();\r\n/* 261: */ }\r\n/* 262: */ catch (InterruptedException e)\r\n/* 263: */ {\r\n/* 264:290 */ interrupted = true;\r\n/* 265: */ }\r\n/* 266: */ finally\r\n/* 267: */ {\r\n/* 268:292 */ decWaiters();\r\n/* 269: */ }\r\n/* 270: */ }\r\n/* 271: */ }\r\n/* 272:297 */ if (interrupted) {\r\n/* 273:298 */ Thread.currentThread().interrupt();\r\n/* 274: */ }\r\n/* 275:301 */ return this;\r\n/* 276: */ }", "@Nullable\n\tfinal T blockingGet() {\n\t\tif (Schedulers.isInNonBlockingThread()) {\n\t\t\tthrow new IllegalStateException(\"block()/blockFirst()/blockLast() are blocking, which is not supported in thread \" + Thread.currentThread().getName());\n\t\t}\n\t\tif (getCount() != 0) {\n\t\t\ttry {\n\t\t\t\tawait();\n\t\t\t}\n\t\t\tcatch (InterruptedException ex) {\n\t\t\t\tdispose();\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\tthrow Exceptions.propagate(ex);\n\t\t\t}\n\t\t}\n\n\t\tThrowable e = error;\n\t\tif (e != null) {\n\t\t\tRuntimeException re = Exceptions.propagate(e);\n\t\t\t//this is ok, as re is always a new non-singleton instance\n\t\t\tre.addSuppressed(new Exception(\"#block terminated with an error\"));\n\t\t\tthrow re;\n\t\t}\n\t\treturn value;\n\t}", "public boolean hasFuture();", "@Override\n public ClientTransport get(PickSubchannelArgs args) {\n return delayedTransport;\n }", "Callable<E> getTask();", "public static LightningFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new LightningFutureStub(channel);\n }", "java.util.concurrent.Future<CancelSolNetworkOperationResult> cancelSolNetworkOperationAsync(\n CancelSolNetworkOperationRequest cancelSolNetworkOperationRequest);", "@Override\n\tpublic AsyncContext startAsync() throws IllegalStateException {\n\t\treturn null;\n\t}", "public static void main(String[] args) throws InterruptedException, ExecutionException {\n CompletableFuture<String> future = CompletableFuture.supplyAsync(new Supplier<String>() {\n @Override\n public String get() {\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (InterruptedException e) {\n throw new IllegalStateException(e);\n }\n return \"Result of the asynchronous computation\";\n }\n });\n\n// Block and get the result of the Future\n String result = future.get();\n System.out.println(result);\n }", "public interface WriteFuture extends Future {\n}", "public static MsgFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<MsgFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<MsgFutureStub>() {\n @java.lang.Override\n public MsgFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new MsgFutureStub(channel, callOptions);\n }\n };\n return MsgFutureStub.newStub(factory, channel);\n }", "protected EventExecutor executor()\r\n/* 27: */ {\r\n/* 28: 58 */ EventExecutor e = super.executor();\r\n/* 29: 59 */ if (e == null) {\r\n/* 30: 60 */ return channel().eventLoop();\r\n/* 31: */ }\r\n/* 32: 62 */ return e;\r\n/* 33: */ }", "public EmbeddedChannel flushInbound() {\n/* 361 */ flushInbound(true, voidPromise());\n/* 362 */ return this;\n/* */ }", "public void testThread() {\n ExecutorService executor = Executors.newSingleThreadExecutor();\n // result of the thread\n Future<String> future = null;\n\n future = executor.submit(new TestTask());\n try {\n String result = future.get(2000, TimeUnit.MILLISECONDS);\n System.out.println(result);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n } catch (TimeoutException e) {\n System.out.println(\"the execution was terminated after 5 s\");\n boolean cancelled = future.cancel(true);\n System.out.println(cancelled);\n\n\n }\n\n try {\n System.out.println(\"attempt to shutdown executor\");\n executor.shutdown();\n executor.awaitTermination(5, TimeUnit.SECONDS);\n }\n catch (InterruptedException e) {\n System.err.println(\"tasks interrupted\");\n }\n finally {\n if (!executor.isTerminated()) {\n System.err.println(\"cancel non-finished tasks\");\n }\n executor.shutdownNow();\n System.out.println(\"shutdown finished\");\n }\n\n }", "@FunctionalInterface\npublic interface HasBeenCancelledFactory extends Function<WebContext, Boolean> {\n}", "public static <T> ReadOnlyCompletableFuture<T> readOnly(CompletableFuture<T> f) {\n ReadOnlyCompletableFuture<T> ret = new ReadOnlyCompletableFuture<>();\n f.whenComplete((t, th) -> {\n if (th != null) {\n ret.setFailure(th);\n } else {\n ret.setValue(t);\n }\n });\n return ret;\n }", "@Override // java.lang.Runnable\n public final void run() {\n ListenableFuture<? extends I> listenableFuture = this.h;\n F f = this.i;\n boolean z = true;\n boolean isCancelled = isCancelled() | (listenableFuture == null);\n if (f != null) {\n z = false;\n }\n if (!isCancelled && !z) {\n this.h = null;\n if (listenableFuture.isCancelled()) {\n setFuture(listenableFuture);\n return;\n }\n try {\n try {\n Object o = o(f, Futures.getDone(listenableFuture));\n this.i = null;\n p(o);\n } catch (Throwable th) {\n this.i = null;\n throw th;\n }\n } catch (CancellationException unused) {\n cancel(false);\n } catch (ExecutionException e) {\n setException(e.getCause());\n } catch (RuntimeException e2) {\n setException(e2);\n } catch (Error e3) {\n setException(e3);\n }\n }\n }", "@Override\n\tpublic boolean isAsyncSupported() {\n\t\treturn false;\n\t}", "CompletableFuture<CalculationResult> goInfiniteAsync();", "public CompletableFuture<MockServerClient> stop(boolean ignoreFailure) {\n if (!stopFuture.isDone()) {\n getMockServerEventBus().publish(EventType.STOP);\n removeMockServerEventBus();\n new Scheduler.SchedulerThreadFactory(\"ClientStop\").newThread(() -> {\n try {\n sendRequest(request().withMethod(\"PUT\").withPath(calculatePath(\"stop\")), false);\n if (!hasStopped()) {\n for (int i = 0; !hasStopped() && i < 50; i++) {\n TimeUnit.MILLISECONDS.sleep(5);\n }\n }\n } catch (RejectedExecutionException ree) {\n if (!ignoreFailure && MockServerLogger.isEnabled(TRACE)) {\n MOCK_SERVER_LOGGER.logEvent(\n new LogEntry()\n .setLogLevel(TRACE)\n .setMessageFormat(\"request rejected while closing down, logging in case due other error \" + ree)\n .setThrowable(ree)\n );\n }\n } catch (Exception e) {\n if (!ignoreFailure && MockServerLogger.isEnabled(WARN)) {\n MOCK_SERVER_LOGGER.logEvent(\n new LogEntry()\n .setLogLevel(WARN)\n .setMessageFormat(\"failed to send stop request to MockServer \" + e.getMessage())\n );\n }\n }\n if (!eventLoopGroup.isShuttingDown()) {\n eventLoopGroup.shutdownGracefully();\n }\n stopFuture.complete(clientClass.cast(this));\n }).start();\n }\n return stopFuture;\n }", "Mono<Void> fluxCompletion(Flux<User> flux) {\n\t\treturn flux.then();\n\t}", "public static ExtractionServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ExtractionServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ExtractionServiceFutureStub>() {\n @Override\n public ExtractionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ExtractionServiceFutureStub(channel, callOptions);\n }\n };\n return ExtractionServiceFutureStub.newStub(factory, channel);\n }", "public ObservableSubscriber<T> await() {\n return await(60, TimeUnit.SECONDS);\n }", "java.util.concurrent.Future<CancelJobRunResult> cancelJobRunAsync(CancelJobRunRequest cancelJobRunRequest);", "default <T> EagerFutureStream<T> sync(Function<EagerReact,EagerFutureStream<T>> react){\n\t\t EagerReact r =SequentialElasticPools.eagerReact.nextReactor().withAsync(false);\n\t\t return react.apply( r)\n\t\t\t\t \t.onFail(e->{ SequentialElasticPools.eagerReact.populate(r); throw e;})\n\t\t\t\t \t.peek(i->SequentialElasticPools.eagerReact.populate(r));\n\t\t \t\t\t\t \t\n\t}", "default LazyFutureStream<U> convertToLazyStream(){\n\t\treturn new LazyReact(getTaskExecutor()).withRetrier(getRetrier()).fromStream((Stream)getLastActive().stream());\n\t}", "private Mono<Employee> takeCall(Employee employee) {\n val seconds = RandomHelper.nextInt(from, to);\n return Mono.fromCallable(() -> sleepAndReturnEmployee(employee, seconds))\n .doOnSubscribe(s -> log.info(\"Employee {} will be attending a call for {} seconds\", employee, seconds))\n .doOnError(e -> log.error(\"There was an error doing blocking activity we will return employee to the queue {}\", employee))\n .onErrorReturn(employee);\n }", "T call() throws EvalException, InterruptedException;", "public Future<MockServerClient> stopAsync() {\n return stop(true);\n }", "public static ShippingServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ShippingServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ShippingServiceFutureStub>() {\n @java.lang.Override\n public ShippingServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ShippingServiceFutureStub(channel, callOptions);\n }\n };\n return ShippingServiceFutureStub.newStub(factory, channel);\n }", "default void getQueuedResource(\n com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.QueuedResource>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetQueuedResourceMethod(), responseObserver);\n }" ]
[ "0.5892243", "0.58446735", "0.5823648", "0.57227033", "0.5604659", "0.5556579", "0.5517476", "0.5516465", "0.551065", "0.5478412", "0.5448509", "0.5418378", "0.5376261", "0.5284939", "0.5281578", "0.5181157", "0.51761496", "0.515399", "0.51408875", "0.513859", "0.5130523", "0.51285034", "0.51273733", "0.5123756", "0.51190984", "0.5110228", "0.5099518", "0.5092056", "0.5088409", "0.5080583", "0.5080405", "0.50602627", "0.5060238", "0.50547516", "0.5053716", "0.5052138", "0.50395966", "0.50393116", "0.50378436", "0.5033841", "0.5024539", "0.50105816", "0.5004578", "0.5002443", "0.5001469", "0.50003433", "0.49946854", "0.49797943", "0.49729952", "0.4962011", "0.49614477", "0.4953995", "0.4953139", "0.4946863", "0.49400425", "0.49393046", "0.49319053", "0.49125728", "0.49072903", "0.49034286", "0.4889773", "0.48766634", "0.4871843", "0.4864061", "0.48640567", "0.48558185", "0.48434827", "0.4826724", "0.4826724", "0.4816987", "0.4795683", "0.47945267", "0.47922528", "0.47648466", "0.47633085", "0.47510484", "0.47475037", "0.47447637", "0.47393292", "0.47361204", "0.4733033", "0.4731154", "0.4725494", "0.4723088", "0.47000125", "0.46967703", "0.4693826", "0.4691128", "0.46849105", "0.468391", "0.46830598", "0.46783423", "0.46776617", "0.46764457", "0.46710977", "0.46708137", "0.46662605", "0.46590284", "0.46574154", "0.4655831", "0.46553454" ]
0.0
-1
The namespace of the vocabulary as a string
public static String getURI() {return NS;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getNamespace();", "String getNamespaceStringValue(Object ns);", "String getNamespace();", "String getNamespace();", "String getNamespace();", "public String getNamespace();", "String getNamespacePrefix(Object ns);", "public Optional<String> namespace() {\n return Codegen.stringProp(\"namespace\").config(config).get();\n }", "int getNamespaceUri();", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace()\n {\n return NAMESPACE;\n }", "@Updatable\n public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return this.namespace;\n }", "@Nullable public String getNamespace() {\n return namespace;\n }", "public String getNamespaceName() {\n return namespaceName;\n }", "public String getNamespace() {\n return getTypeDefinition().getNamespace();\n }", "public String getNamespace()\n/* */ {\n/* 357 */ return this.namespace;\n/* */ }", "public String getNameSpace() {\n return this.namespace;\n }", "String getReferenceNamespace();", "@Override\n\tpublic String getNamespace() {\n\t\treturn nameSpace;\n\t}", "@Override\n\tprotected String getNamespace() {\n\t\treturn NAMESPACE;\n\t}", "private String getNamespace(int endIndex) {\n return data.substring(tokenStart, endIndex);\n }", "public String getNamespace() {\n\t\treturn EPPNameVerificationMapFactory.NS;\n\t}", "public String getNamespaceURI() {\n return this.namespaceUri;\n }", "String getNameSpace();", "public java.lang.String getNameSpaceURI()\n {\n return nsURI;\n }", "public java.lang.String getNameSpaceURI()\n {\n return nsURI;\n }", "public java.lang.String getNameSpaceURI()\n {\n return nsURI;\n }", "public String getFeedNamespacePrefix(String namespace);", "private String getNamespace(String qname) {\n StringTokenizer tok = new StringTokenizer(qname, \":\");\n String prefix;\n\n if (tok.countTokens() == 1) {\n return \"\";\n }\n prefix = tok.nextToken();\n\n NamedNodeMap map = mDoc.getDocumentElement().getAttributes();\n for (int j = 0; j < map.getLength(); j++) {\n Node n = map.item(j);\n\n if (n.getLocalName().trim().equals(prefix.trim())) {\n return n.getNodeValue();\n }\n }\n\n return \"\";\n }", "public String getNamespace() {\n return EPPSecDNSExtFactory.NS;\n }", "public String getNamespaceURL() {\n return namespaceURL;\n }", "org.apache.xmlbeans.XmlNMTOKEN xgetNamespace();", "public static String getPrefixString() {\n\n\t\tString prefix = \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\"\n\t\t\t\t+ \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\"\n\t\t\t\t+ \"PREFIX dbpedia: <http://dbpedia.org/property/>\"\n\t\t\t\t+ \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\"\n\t\t\t\t+ \"PREFIX oddlinker: <http://data.linkedmdb.org/resource/oddlinker/>\"\n\t\t\t\t+ \"PREFIX db: <http://data.linkedmdb.org/resource/>\"\n\t\t\t\t+ \"PREFIX movie: <http://data.linkedmdb.org/resource/movie/>\"\n\t\t\t\t+ \"PREFIX map: <file:/C:/d2r-server-0.4/mapping.n3#>\"\n\t\t\t\t+ \"PREFIX foaf: <http://xmlns.com/foaf/0.1/>\"\n\t\t\t\t+ \"PREFIX d2r: <http://sites.wiwiss.fu-berlin.de/suhl/bizer/d2r-server/config.rdf#>\"\n\t\t\t\t+ \"PREFIX owl: <http://www.w3.org/2002/07/owl#>\"\n\t\t\t\t+ \"PREFIX dc: <http://purl.org/dc/terms/>\"\n\t\t\t\t+ \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\"\n\t\t\t\t+ \"PREFIX fn: <java:facet.>\";\n\n\t\treturn prefix;\n\t}", "@XmlElement(required = true, name = \"namespace\")\n public String getNamespace() {\n return namespace;\n }", "String getTargetNamespace();", "public String getFullName() {\n return getNamespace().getFullName();\n }", "Rule ScopedNamespace() {\n return Sequence(\n \"namespace \",\n ScopeAndId());\n }", "public String getXMLSchemaTargetNamespace() {\n String targetNamespace = getPreferenceStore().getString(CONST_DEFAULT_TARGET_NAMESPACE);\n if (!targetNamespace.endsWith(\"/\")) {\n targetNamespace = targetNamespace + \"/\";\n }\n return targetNamespace;\n }", "public String getDefaultNamespace() {\n return defaultNamespaceUri;\n }", "public String getNamespace () throws java.io.IOException, com.linar.jintegra.AutomationException;", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "private String getPrefixesString() {\n\t\t//TODO: Include dynamic way of including this\n\t\treturn \"@prefix core: <http://vivoweb.org/ontology/core#> .\";\n\t}", "private static java.lang.String generatePrefix(java.lang.String namespace) {\n if(namespace.equals(\"http://dto.thirdsdk.api.pms.cms.hikvision.com/xsd\")){\n return \"ns1\";\n }\n return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();\n }", "public String getXMLSchemaPrefix()\n {\n return getPreferenceStore().getString(CONST_XSD_DEFAULT_PREFIX_TEXT);\n }", "public String getNameSpace() {\n return nameSpace;\n }", "@Override\r\n\tpublic String getNamespace() {\n\t\treturn null;\r\n\t}", "public YANG_NameSpace getNameSpace() {\n\t\treturn namespace;\n\t}", "@Override\n\tpublic String getNamespace() {\n\t\treturn null;\n\t}", "String getNameKeySpace();", "@Override\n public String getFullyQualifiedNamespace() {\n return this.namespace == null ? extractFqdnFromConnectionString() : (this.namespace + \".\" + domainName);\n }", "public final String getNamespaceUri(int index) {\n return internalNamespaceUri(translateNamespace(index));\n }", "public AVM2Namespace getAVM2InternalNamespace();", "public java.lang.Long getOpcnamespace() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCNAMESPACE);\n\t}", "public String generate(String namespace) {\n return generate(namespace, Http.Context.current().lang());\n }", "@Override\n public String getNameKeySpace() {\n Object ref = nameKeySpace_;\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 nameKeySpace_ = s;\n return s;\n }\n }", "private String getDefaultNS() {\n\t\treturn model.getNsPrefixURI(\"\");\n\t}", "public String getBaseNamespace() {\n/* 454 */ return \"http://www.w3.org/2000/09/xmldsig#\";\n/* */ }", "void setNamespace(java.lang.String namespace);", "protected final Namespace getNamespace()\n {\n return m_namespace;\n }", "Namespaces namespaces();", "public String namespaceString(String plainString) throws RuntimeException {\n \tif(plainString.startsWith(NAME_SPACE_PREFIX)) {\n \t\treturn (plainString.replace(NAME_SPACE_PREFIX, nameSpaceThreadLocale.get())); \t\t\n \t}\n \tif(plainString.startsWith(SCENARIO_NAME_SPACE_PREFIX)) {\n \t\tif(cucumberManager.getCurrentScenarioGlobals() == null) {\n \t\t\tthrow new ScenarioNameSpaceAccessOutsideScenarioScopeException(\"You cannot fetch a Scneario namespace outside the scope of a scenario\");\n \t\t}\n \t\treturn (plainString.replace(SCENARIO_NAME_SPACE_PREFIX, cucumberManager.getCurrentScenarioGlobals().getNameSpace())); \t\t\n \t}\n \telse {\n \t\treturn plainString;\n \t}\n }", "public final String getTargetNamespace() {\n return fTargetNamespace;\n }", "private String getNamespace(Package pkg) {\n/* */ String nsUri;\n/* 223 */ if (pkg == null) return \"\";\n/* */ \n/* */ \n/* 226 */ XmlNamespace ns = pkg.<XmlNamespace>getAnnotation(XmlNamespace.class);\n/* 227 */ if (ns != null) {\n/* 228 */ nsUri = ns.value();\n/* */ } else {\n/* 230 */ nsUri = \"\";\n/* 231 */ } return nsUri;\n/* */ }", "public NamespaceId getNamespaceId() {\n return namespaceId;\n }", "public final String getNamespacePrefix(int index) {\n return internalNamespacePrefix(translateNamespace(index));\n }", "@TargetAttributeType(\n\t\tname = NAMESPACE_ATTRIBUTE_NAME,\n\t\trequired = true,\n\t\tfixed = true,\n\t\thidden = true)\n\tpublic default TargetSymbolNamespace getNamespace() {\n\t\treturn getTypedAttributeNowByName(NAMESPACE_ATTRIBUTE_NAME, TargetSymbolNamespace.class,\n\t\t\tnull);\n\t}", "private static java.lang.String generatePrefix(java.lang.String namespace) {\n if(namespace.equals(\"http://ws.platform.blackboard/xsd\")){\n return \"ns1\";\n }\n return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();\n }", "private static java.lang.String generatePrefix(java.lang.String namespace) {\r\n if(namespace.equals(\"http://www.huawei.com.cn/schema/common/v2_1\")){\r\n return \"ns1\";\r\n }\r\n return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();\r\n }", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "public String getXmlns()\r\n\t{\r\n\t\treturn xmlns;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\t/*\n\t\t * Just materializing the complete tag map is the simplest implementation.\n\t\t * This is not performance-critical code, so we aim for code simplicity rather than performance.\n\t\t * We are constructing a TreeMap in order to force display in sorted order.\n\t\t */\n\t\tMap<String, Object> sorted = new TreeMap<>();\n\t\tList<Namespace> namespaces = namespaces();\n\t\tfor (Namespace ns : namespaces)\n\t\t\tfor (OwnerTag tag = ns.data.tags; tag != null; tag = tag.next)\n\t\t\t\tsorted.put(ns.name + \".\" + tag.key, tag.value);\n\t\treturn namespaces.stream().map(ns -> ns.name).collect(joining(\".\")) + sorted;\n\t}", "public NsNamespaces() {\n this(DSL.name(\"ns_namespaces\"), null);\n }", "public String getNameKeySpace() {\n Object ref = nameKeySpace_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n nameKeySpace_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getFullyQualifiedName();", "public String getTargetNamespace()\r\n {\r\n return targetNamespace;\r\n }", "public String getTargetNamespace() {\n return _targetNamespace;\n }", "Namespace getGpmlNamespace();", "public abstract INameSpace getNameSpace();", "@DISPID(1091) //= 0x443. The runtime will prefer the VTID if present\n @VTID(11)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject namespaces();", "public void setNamespace(String namespace) {\n\t\t\r\n\t}", "String decodeNS(String doc) {\n\t\treturn doc.replaceAll(COLON_REPLACEMENT, \":\");\n\t}", "@Override\r\n\tpublic String getNamespaceURI() {\n\t\treturn null;\r\n\t}", "public static String getNamespace(final String name) {\n\t\tint pos = getSeperatorIndex(name);\n\t\treturn name.substring(0, pos + 1);\n\t}", "public String getServerUri(String namespace);", "String getImportedNamespace();", "public AVM2Namespace getAVM2ProtectedNamespace();", "@Test\n\tpublic void test_TCM__String_getNamespaceURI() {\n\t\tfinal Namespace namespace = Namespace.getNamespace(\"prefx\", \"http://some.other.place\");\n\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"value\", namespace);\n\t\tassertTrue(\"incorrect URI\", attribute.getNamespaceURI().equals(\"http://some.other.place\"));\n\n\t}", "public final Namespace getDefaultNamespace() {\n return _defaultNamespace;\n }", "private static String namespace(File file) {\r\n File parent = file.getParentFile();\r\n\r\n return (parent == null) ? \"\" : (parent.getName() + \".\");\r\n }", "Rule XsdNamespace() {\n return Sequence(\n \"xsd_namespace\",\n Literal(),\n actions.pushXsdNamespaceNode());\n }", "public static String getURI() {\n return NS;\n }" ]
[ "0.7491037", "0.7414067", "0.7382713", "0.7382713", "0.7382713", "0.7055525", "0.6924792", "0.68687934", "0.6809705", "0.6761348", "0.6761348", "0.6761348", "0.67490065", "0.67237246", "0.66745615", "0.6659763", "0.6654354", "0.65830463", "0.6580599", "0.6573777", "0.6550614", "0.65371114", "0.6452798", "0.6416944", "0.6394445", "0.63792276", "0.63388705", "0.6336369", "0.6333177", "0.6333177", "0.6333177", "0.6292217", "0.6288514", "0.62109005", "0.6199074", "0.61912596", "0.616169", "0.61462027", "0.61330724", "0.61154264", "0.6112102", "0.6104317", "0.6086991", "0.604223", "0.60417527", "0.60417527", "0.60417527", "0.6028061", "0.6000703", "0.5984951", "0.5951272", "0.5950216", "0.5931622", "0.5890443", "0.58490974", "0.58459306", "0.58318406", "0.58240366", "0.58147496", "0.58073795", "0.5807284", "0.579127", "0.57847476", "0.5777328", "0.5776786", "0.575398", "0.5745572", "0.5736236", "0.57353574", "0.5731793", "0.5726945", "0.57109433", "0.570889", "0.570245", "0.56944245", "0.56944245", "0.56944245", "0.56944245", "0.56944245", "0.56840485", "0.5675592", "0.5668907", "0.56635696", "0.56477183", "0.5641775", "0.5628108", "0.5619682", "0.56096965", "0.55881613", "0.55749965", "0.5572817", "0.55615824", "0.55466264", "0.55429846", "0.5534669", "0.55300933", "0.5527391", "0.5525627", "0.5525346", "0.5513578", "0.5513223" ]
0.0
-1
constructor: it can receive an EPackage, a list of EPackage, or a URI
public MuMetaModel(String uri) { this(EMFUtils.loadEcoreMetamodel(uri)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EmployeePackage(NetworkType type, List<String> employee, String businessId, String serviceId) {\n super(type);\n this.employeeIds = employee;\n this.businessId = businessId;\n this.serviceId = serviceId;\n }", "public ItemFactory(final String url) {\n this.url = url;\n }", "public PackageSite(String name) {\r\n myName = name;\r\n myURL = null;\r\n myPackages = new ArrayList();\r\n }", "public XMLTypeResourceImpl(URI uri)\n {\n super(uri);\n }", "Object create(String uri) throws IOException, SAXException, ParserConfigurationException;", "public URI() {\n }", "public ConfigurationItem(URI _uri, InputStream _item, RevisionID _revision)\r\n\t{\r\n\t\titem \t= _item;\r\n\t\turi \t= _uri;\r\n\t\trevision= _revision;\r\n\t\ttype \t= null;\r\n\t\tuser \t= null;\r\n\t}", "@Override\r\n\tpublic void initFromXMLfile(URL arg0) throws InitializingException {\n\t}", "public ElementLocationImpl(String[] components) {\n this.components = components;\n }", "EPackage createEPackage();", "public EmployeePackage(NetworkType type, String employee, String businessId) {\n super(type);\n this.employeeId = employee;\n this.businessId = businessId;\n }", "public XMLDatabaseConnector(String URI)\n\t{\n\t\tsetURI(URI);\n\t}", "private NaturePackage() {}", "public ListElement()\n\t{\n\t\tthis(null, null, null); //invokes constructor with 3 arguments\n\t}", "private final class <init> extends com.ebay.nautilus.kernel.util.t>\n{\n\n final _cls1 this$1;\n\n public com.ebay.nautilus.kernel.util.t> get(String s, String s1, String s2, Attributes attributes)\n throws SAXException\n {\n if (\"http://www.ebay.com/marketplace/mobile/v1/services\".equals(s) && \"roiFactoryResponse\".equals(s1))\n {\n return new com.ebay.nautilus.kernel.util.SaxHandler.TextElement() {\n\n final RoiTrackEventResponse.RootElement.RoiTrackEventResponses this$2;\n\n public void text(String s3)\n throws SAXException\n {\n if (urls == null)\n {\n urls = new ArrayList();\n }\n urls.add(s3);\n }\n\n \n {\n this$2 = RoiTrackEventResponse.RootElement.RoiTrackEventResponses.this;\n super();\n }\n };\n } else\n {\n return super.t>(s, s1, s2, attributes);\n }\n }", "private User(Element user)\n\t\t{\n\t\t\tthis.userElement = user;\n\t\t\tNodeList endpointsNodeList = user.getElementsByTagName(ENDPOINT_ELEMENT_NAME);\n\t\t\tfor (int i = 0; i < endpointsNodeList.getLength(); i++) {\n\t\t\t\tEndpoint endpoint = new Endpoint((Element) endpointsNodeList.item(i));\n\t\t\t\tendpointsList.add(endpoint);\n\t\t\t}\n\t\t}", "public Sources()\n {\n super(NAMESPACE, ELEMENT);\n }", "public Bpmn2ResourceImpl(URI uri) {\r\n super(uri);\r\n this.xmlHelper = new BpmnXmlHelper(this);\r\n this.uriHandler = new QNameURIHandler(xmlHelper);\r\n this.getDefaultLoadOptions().put(XMLResource.OPTION_URI_HANDLER, uriHandler);\r\n this.getDefaultSaveOptions().put(XMLResource.OPTION_URI_HANDLER, uriHandler);\r\n }", "public ProductListContract() {}", "public Package() {\n }", "public OnDemandXmiLoader(final EPackage ePackage, final String baseDir, final String fileName) {\n\t\tsuper();\n\t\tPreconditions.checkNotNull(ePackage, \"ePackage cannot be null\");\n\t\tPreconditions.checkArgument(!Strings.isNullOrEmpty(baseDir), \"baseDir cannot be null\");\n\t\tPreconditions.checkArgument(!Strings.isNullOrEmpty(fileName), \"fileName cannot be null\");\n\t\tthis.ePackage = ePackage;\n\t\tthis.ePackageName = ePackage.getName();\n\t\tthis.ePackageNsUri = ePackage.getNsURI();\n\t\tthis.resourceUri = URI.createFileURI(baseDir + \"/\" + fileName);\n\t\tthis.resourceType = ResourceType.FILE;\n\t\tthis.resourceName = fileName;\n\t\tthis.bundle = null;\n\t\tthis.scope = ImmutableMap.of();\n\t}", "public LoadlistParser(final StowbaseObjectFactory stowbaseObjectFactory, final Messages messages,\n final Workbook workbook, final String vesselImo, final Collection<String> calls,\n final EdiFactType ediFactType) {\n this(stowbaseObjectFactory, messages, workbook, vesselImo, new HashSet<>(calls), \"\", null, ediFactType);\n }", "public LaPatilla()\n\t{\n\t\tsuper(TAG_ITEM_ITEMS,\n\t\t\t\tnew int[]{TAG_TITLE},\n\t\t\t\tnew int[]{TAG_LINK},\n\t\t\t\tnew int[]{TAG_DESCRIPTION},\n\t\t\t\tnew int[]{TAG_CONTENT_ENCODED},\n\t\t\t\tnew int[]{TAG_PUBDATE},\n\t\t\t\tnew int[]{TAG_CATEGORY},\n\t\t\t\tnew int[]{},\n\t\t\t\t\"\");\n\t}", "public static void main(String[] args) {\n new MySaxParserEx(\"ProductCatalog.xml\");\n\n }", "public BaseElement(String uri, String name) {\n this.uri = uri;\n this.name = name;\n this.attributes = new AttributesImpl();\n }", "public InvCatalogImpl readXML(String uriString) {\n\n URI uri;\n try {\n uri = new URI(uriString);\n } catch (URISyntaxException e) {\n InvCatalogImpl cat = new InvCatalogImpl(uriString, null, null);\n cat.appendErrorMessage(\n \"**Fatal: InvCatalogFactory.readXML URISyntaxException on URL (\" + uriString + \") \" + e.getMessage() + \"\\n\",\n true);\n return cat;\n }\n\n /*\n * if (uriString.startsWith(\"file:\")) {\n * String filename = uriString.substring(5);\n * File f = new File(filename);\n * if (f.exists()) {\n * try {\n * return readXML(new FileInputStream(f), uri);\n * \n * } catch (Exception e) {\n * InvCatalogImpl cat = new InvCatalogImpl(uriString, null, null);\n * cat.appendErrorMessage(\"**Fatal: InvCatalogFactory.readXML error (\" +\n * uriString + \") \" + e.getMessage() + \"\\n\", true);\n * }\n * }\n * }\n */\n\n return readXML(uri);\n }", "public XmlAdaptedDistributor() {}", "public Item(Environment e) {\n\t\tthis(0,0,e);\n }", "public MalformedURIException() {\n super();\n }", "public URI(String p_uriSpec) throws MalformedURIException {\n this((URI)null, p_uriSpec);\n }", "public PackageComponent() {\r\n this(\"UntitledPackage\");\r\n }", "public MarketPlugin(byte[] logo, String name, String description, String creator, String version, String uniqueName,\n String url){\n this.mPluginName = name;\n this.mUniqueName = uniqueName;\n this.mDescription = description;\n try {\n this.mDownloadLink = new URL(url);\n } catch (MalformedURLException e) {\n Logger.getLogger(this.getClass().getSimpleName()).log(Level.SEVERE, null, e);\n }\n this.mLogo = logo;\n this.mVersion = version;\n this.mCreator = creator;\n }", "public ReferenceItem(final String displayName, final VariableGroup group,\n final List<String> content)\n {\n fDisplayName = displayName;\n fGroup = group;\n fHelpText = Optional.of(\"\");\n fContent = content;\n }", "Object create(URL url) throws IOException, SAXException, ParserConfigurationException;", "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 }", "private Namespace( String mm7Uri ) {\n super( mm7Uri );\n }", "public UriParser(String uri) {\n try {\n checkedParse(uri);\n\n } catch (URISyntaxException e) {\n throw new RuntimeException(e);\n }\n }", "ListItem(Element[] elements) {\n\t\tsuper(elements);\n\t}", "<T> T newInstance(URI description) throws EnvironmentException;", "public ContactList(String inFileName)\n {\n filename = inFileName;\n }", "private Endpoint(Element endpoint)\n\t\t{\n\t\t\tthis.endpointElement = endpoint;\n\t\t\tNodeList mediaNodeList = endpoint.getElementsByTagName(MEDIA_ELEMENT_NAME);\n\t\t\tfor (int i = 0; i < mediaNodeList.getLength(); i++) {\n\t\t\t\tMedia media = new Media((Element) mediaNodeList.item(i));\n\t\t\t\tmediasList.add(media);\n\t\t\t}\n\t\t}", "public PURL(PURL source) {\n if (source.Name != null) {\n this.Name = new String(source.Name);\n }\n if (source.Protocol != null) {\n this.Protocol = new String(source.Protocol);\n }\n if (source.Namespace != null) {\n this.Namespace = new String(source.Namespace);\n }\n if (source.Qualifiers != null) {\n this.Qualifiers = new Qualifier[source.Qualifiers.length];\n for (int i = 0; i < source.Qualifiers.length; i++) {\n this.Qualifiers[i] = new Qualifier(source.Qualifiers[i]);\n }\n }\n if (source.Subpath != null) {\n this.Subpath = new String(source.Subpath);\n }\n if (source.Version != null) {\n this.Version = new String(source.Version);\n }\n }", "public ImportFromURLAction(){\n\t\tsuper();\n\t\tsetText(\"Import from remote OMPL document\");\n\t\tsetImageDescriptor(ImageDescriptor.createFromFile(ImportFromURLAction.class,\"/images/importfromurl.png\"));\n\t\tsetToolTipText(\"Import a group of feeds from a remote OPML file\");\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n setItems();\n\n }", "public SDARTSBean (String lspURL) throws SDLIPException {\r\n this (lspURL, STARTS.STARTS_DTD_URL, STARTS.SDLIP_DTD_URL);\r\n }", "public TagData(String epc)\n {\n this(epc, null);\n }", "public Library(ArrayList<Book> collection){\n this.okToPrint = false;\n this.libraryBooks = collection;\n this.patron = new HashMap<String, Patron>();\n this.calendar = new Calendar();\n this.openOrNot = false;\n this.numberedListOfServing = new HashMap<Integer, Book>();\n this.searchBooks = new ArrayList<Book>();\n this.numberedListOfSearch = new HashMap<Integer, Book>();\n this.serveOrNot = false;\n this.searchOrNot = false;\n this.servingPatron = new Patron(null,null);\n }", "public InternetProductOption() {\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 URIImpl(String uriString) {\r\n\t\tthis(uriString, true);\r\n\t}", "public Person(String name, ArrayList<String> pnArray) {\n\n\t}", "public EndPointAdapter(final SequelDatabase database) {\n\t\tsuper(database, \"endpoint\");\n\t}", "public Photo(String url){\n tags = new ArrayList<>();\n caption = \"\";\n //this.url = Uri.parse(url);\n this.urlString = url;\n }", "public ImageAdapter(Context context, List<Attraction> listOfAttractions, List<List<Uri>> imageUri) {\n this.mContext = context;\n this.listOfAttractions = listOfAttractions;\n this.listOfImagesUri = imageUri;\n }", "private VarietyPackage() {}", "public Market(ArrayList<G> goods, ArrayList<B> bidders) throws MarketCreationException{\n // Create immutable goods list.\n if(goods == null || goods.size() == 0){\n throw new MarketCreationException(\"A market must contain at least one good.\");\n }\n ImmutableList.Builder<G> goodsBuilder = ImmutableList.builder();\n goodsBuilder.addAll(goods);\n this.goods = goodsBuilder.build();\n // Sets bidders\n this.setBidders(bidders);\n }", "public AppFile(AppFile aPar, WebFile aFile)\n{\n _parent = aPar; _file = aFile;\n}", "private static final class <init> extends com.ebay.nautilus.kernel.content.\n{\n\n public EbayAppInfo create(EbayContext ebaycontext)\n {\n return new EbayAppInfoImpl(\"com.ebay.mobile\", \"4.1.5.22\", false);\n }", "private ResourcePackage() {}", "private WebTestArtifact(String resource)\r\n {\r\n this(resource, \"GET\");\r\n }", "public TestClassLoader(URL[] urls) {\n super(new URL[0]);\n this.urls = urls;\n }", "public EndpointDetail() {\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n\n try {\n cmbBookPublisherIdAdd.getItems().setAll(ChoiceBoxes.PublisherIdChoice());\n cmbBookAuthorIdAdd.getItems().setAll(ChoiceBoxes.AuthorIdChoice());\n cmdBookGenreIdAdd.getItems().setAll(ChoiceBoxes.GenreIdChoice());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public OOPGenericProgram(E[] element) {\n this.element = element;\n }", "public RFTGT42FileAdaptor(GATContext gatContext, URI location)\n throws GATObjectCreationException {\n super(gatContext, location);\n \n // TODO: may be it is possible on the local host...\n if (!location.hasAbsolutePath()) {\n throw new AdaptorNotApplicableException(\n \"cannot handle relative paths: \" + location.getPath());\n }\n \n \n try {\n rftgt42Location = URItoRFTGT42String(location);\n } catch (URISyntaxException e) {\n throw new GATObjectCreationException(\n \"unable to create a valid rft URI: \" + location, e);\n } catch(GATInvocationException e) {\n throw new GATObjectCreationException(\n \"cannot handle relative paths in absolute URI's\", e);\n }\n\n this.host = location.getHost();\n if (this.host == null) {\n this.host = getLocalHost();\n }\n this.securityType = Constants.GSI_SEC_MSG;\n this.authorization = null;\n this.proxy = null;\n\n try {\n proxy = GlobusSecurityUtils.getGlobusCredential(gatContext,\n \"rftgt42\", location, DEFAULT_GRIDFTP_PORT);\n } catch (CouldNotInitializeCredentialException e) {\n throw new GATObjectCreationException(\"gt42\", e);\n } catch (CredentialExpiredException e) {\n throw new GATObjectCreationException(\"gt42\", e);\n } catch (InvalidUsernameOrPasswordException e) {\n throw new GATObjectCreationException(\"gt42\", e);\n }\n\n this.notificationConsumerManager = null;\n this.notificationConsumerEPR = null;\n this.notificationProducerEPR = null;\n this.status = null;\n this.fault = null;\n factoryPort = null;\n this.factoryUrl = PROTOCOL + \"://\" + host + \":\" + DEFAULT_FACTORY_PORT\n + BASE_SERVICE_PATH + RFTConstants.FACTORY_NAME;\n }", "public com.vodafone.global.er.decoupling.binding.request.OnestepPackageRequest createOnestepPackageRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.OnestepPackageRequestImpl();\n }", "public EnterpriseBeansItem() {\n super();\n }", "public Library()\r\n\t{\r\n\t\titems = new ArrayList<Book>();\r\n\t}", "private SolutionsPackage() {}", "public URI(URI p_other) {\n initialize(p_other);\n }", "public Element(String uri, String localName, Map<String, String> attributes) {\n\t\tthis.uri = uri;\n\t\tthis.localName = localName;\n\t\tthis.atts = attributes;\n\t}", "public TagData(byte[] epc)\n {\n this(epc, null);\n }", "public void setUri(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Uri uri) {\r\n this.uri = uri;\r\n }", "public Items(String image, int y, int x) {\r\n\t\tsuper(image, y, x);\r\n\t}", "public interface AtomPackage extends EPackage {\n /**\n * The package name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNAME = \"atom\";\n\n /**\n * The package namespace URI.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_URI = \"http://bip2/ujf/verimag/bip/component/atom/1.0\";\n\n /**\n * The package namespace name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_PREFIX = \"bip2.ujf.verimag.bip.component.atom\";\n\n /**\n * The singleton instance of the package.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n AtomPackage eINSTANCE = bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl\n .init();\n\n /**\n * The meta object id for the '{@link bip2.ujf.verimag.bip.component.atom.AtomInternalExternalPortDeclaration <em>Internal External Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.AtomInternalExternalPortDeclaration\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomInternalExternalPortDeclaration()\n * @generated\n */\n int ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION = 0;\n\n /**\n * The feature id for the '<em><b>Port Type</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__PORT_TYPE = PortPackage.PORT_DECLARATION__PORT_TYPE;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__NAME = PortPackage.PORT_DECLARATION__NAME;\n\n /**\n * The feature id for the '<em><b>Data Parameters</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__DATA_PARAMETERS = PortPackage.PORT_DECLARATION__DATA_PARAMETERS;\n\n /**\n * The feature id for the '<em><b>Bip Annotations</b></em>' map.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__BIP_ANNOTATIONS = PortPackage.PORT_DECLARATION_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Internal External Port Declaration</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION_FEATURE_COUNT = PortPackage.PORT_DECLARATION_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomInternalPortDeclarationImpl <em>Internal Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomInternalPortDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomInternalPortDeclaration()\n * @generated\n */\n int ATOM_INTERNAL_PORT_DECLARATION = 1;\n\n /**\n * The feature id for the '<em><b>Port Type</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_PORT_DECLARATION__PORT_TYPE = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__PORT_TYPE;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_PORT_DECLARATION__NAME = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__NAME;\n\n /**\n * The feature id for the '<em><b>Data Parameters</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_PORT_DECLARATION__DATA_PARAMETERS = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__DATA_PARAMETERS;\n\n /**\n * The feature id for the '<em><b>Bip Annotations</b></em>' map.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_PORT_DECLARATION__BIP_ANNOTATIONS = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__BIP_ANNOTATIONS;\n\n /**\n * The number of structural features of the '<em>Internal Port Declaration</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_PORT_DECLARATION_FEATURE_COUNT = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION_FEATURE_COUNT + 0;\n\n /**\n * The meta object id for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomExternalPortDeclarationImpl <em>External Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomExternalPortDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomExternalPortDeclaration()\n * @generated\n */\n int ATOM_EXTERNAL_PORT_DECLARATION = 2;\n\n /**\n * The feature id for the '<em><b>Port Type</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXTERNAL_PORT_DECLARATION__PORT_TYPE = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__PORT_TYPE;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXTERNAL_PORT_DECLARATION__NAME = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__NAME;\n\n /**\n * The feature id for the '<em><b>Data Parameters</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXTERNAL_PORT_DECLARATION__DATA_PARAMETERS = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__DATA_PARAMETERS;\n\n /**\n * The feature id for the '<em><b>Bip Annotations</b></em>' map.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXTERNAL_PORT_DECLARATION__BIP_ANNOTATIONS = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__BIP_ANNOTATIONS;\n\n /**\n * The feature id for the '<em><b>Backend Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXTERNAL_PORT_DECLARATION__BACKEND_NAME = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Policy</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXTERNAL_PORT_DECLARATION__POLICY = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>External Port Declaration</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXTERNAL_PORT_DECLARATION_FEATURE_COUNT = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomInternalDataDeclarationImpl <em>Internal Data Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomInternalDataDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomInternalDataDeclaration()\n * @generated\n */\n int ATOM_INTERNAL_DATA_DECLARATION = 3;\n\n /**\n * The feature id for the '<em><b>Bip Annotations</b></em>' map.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_DATA_DECLARATION__BIP_ANNOTATIONS = DataPackage.EXPLICIT_DATA_DECLARATION__BIP_ANNOTATIONS;\n\n /**\n * The feature id for the '<em><b>Data Type</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_DATA_DECLARATION__DATA_TYPE = DataPackage.EXPLICIT_DATA_DECLARATION__DATA_TYPE;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_DATA_DECLARATION__NAME = DataPackage.EXPLICIT_DATA_DECLARATION__NAME;\n\n /**\n * The feature id for the '<em><b>Value</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_DATA_DECLARATION__VALUE = DataPackage.EXPLICIT_DATA_DECLARATION__VALUE;\n\n /**\n * The feature id for the '<em><b>Const</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_DATA_DECLARATION__CONST = DataPackage.EXPLICIT_DATA_DECLARATION__CONST;\n\n /**\n * The feature id for the '<em><b>Exported</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_DATA_DECLARATION__EXPORTED = DataPackage.EXPLICIT_DATA_DECLARATION_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Internal Data Declaration</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_DATA_DECLARATION_FEATURE_COUNT = DataPackage.EXPLICIT_DATA_DECLARATION_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomExportPortDeclarationImpl <em>Export Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomExportPortDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomExportPortDeclaration()\n * @generated\n */\n int ATOM_EXPORT_PORT_DECLARATION = 4;\n\n /**\n * The feature id for the '<em><b>Port Type</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXPORT_PORT_DECLARATION__PORT_TYPE = PortPackage.PORT_DECLARATION__PORT_TYPE;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXPORT_PORT_DECLARATION__NAME = PortPackage.PORT_DECLARATION__NAME;\n\n /**\n * The feature id for the '<em><b>Data Parameters</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXPORT_PORT_DECLARATION__DATA_PARAMETERS = PortPackage.PORT_DECLARATION__DATA_PARAMETERS;\n\n /**\n * The feature id for the '<em><b>Bip Annotations</b></em>' map.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXPORT_PORT_DECLARATION__BIP_ANNOTATIONS = PortPackage.PORT_DECLARATION_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Port Declaration References</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXPORT_PORT_DECLARATION__PORT_DECLARATION_REFERENCES = PortPackage.PORT_DECLARATION_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Export Port Declaration</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXPORT_PORT_DECLARATION_FEATURE_COUNT = PortPackage.PORT_DECLARATION_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link bip2.ujf.verimag.bip.component.atom.EventConsumptionPolicy <em>Event Consumption Policy</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.EventConsumptionPolicy\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getEventConsumptionPolicy()\n * @generated\n */\n int EVENT_CONSUMPTION_POLICY = 5;\n\n /**\n * Returns the meta object for class '{@link bip2.ujf.verimag.bip.component.atom.AtomInternalExternalPortDeclaration <em>Internal External Port Declaration</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Internal External Port Declaration</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomInternalExternalPortDeclaration\n * @generated\n */\n EClass getAtomInternalExternalPortDeclaration();\n\n /**\n * Returns the meta object for class '{@link bip2.ujf.verimag.bip.component.atom.AtomInternalPortDeclaration <em>Internal Port Declaration</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Internal Port Declaration</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomInternalPortDeclaration\n * @generated\n */\n EClass getAtomInternalPortDeclaration();\n\n /**\n * Returns the meta object for class '{@link bip2.ujf.verimag.bip.component.atom.AtomExternalPortDeclaration <em>External Port Declaration</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>External Port Declaration</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomExternalPortDeclaration\n * @generated\n */\n EClass getAtomExternalPortDeclaration();\n\n /**\n * Returns the meta object for the attribute '{@link bip2.ujf.verimag.bip.component.atom.AtomExternalPortDeclaration#getBackendName <em>Backend Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Backend Name</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomExternalPortDeclaration#getBackendName()\n * @see #getAtomExternalPortDeclaration()\n * @generated\n */\n EAttribute getAtomExternalPortDeclaration_BackendName();\n\n /**\n * Returns the meta object for the attribute '{@link bip2.ujf.verimag.bip.component.atom.AtomExternalPortDeclaration#getPolicy <em>Policy</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Policy</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomExternalPortDeclaration#getPolicy()\n * @see #getAtomExternalPortDeclaration()\n * @generated\n */\n EAttribute getAtomExternalPortDeclaration_Policy();\n\n /**\n * Returns the meta object for class '{@link bip2.ujf.verimag.bip.component.atom.AtomInternalDataDeclaration <em>Internal Data Declaration</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Internal Data Declaration</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomInternalDataDeclaration\n * @generated\n */\n EClass getAtomInternalDataDeclaration();\n\n /**\n * Returns the meta object for the attribute '{@link bip2.ujf.verimag.bip.component.atom.AtomInternalDataDeclaration#isExported <em>Exported</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Exported</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomInternalDataDeclaration#isExported()\n * @see #getAtomInternalDataDeclaration()\n * @generated\n */\n EAttribute getAtomInternalDataDeclaration_Exported();\n\n /**\n * Returns the meta object for class '{@link bip2.ujf.verimag.bip.component.atom.AtomExportPortDeclaration <em>Export Port Declaration</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Export Port Declaration</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomExportPortDeclaration\n * @generated\n */\n EClass getAtomExportPortDeclaration();\n\n /**\n * Returns the meta object for the reference list '{@link bip2.ujf.verimag.bip.component.atom.AtomExportPortDeclaration#getPortDeclarationReferences <em>Port Declaration References</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Port Declaration References</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomExportPortDeclaration#getPortDeclarationReferences()\n * @see #getAtomExportPortDeclaration()\n * @generated\n */\n EReference getAtomExportPortDeclaration_PortDeclarationReferences();\n\n /**\n * Returns the meta object for enum '{@link bip2.ujf.verimag.bip.component.atom.EventConsumptionPolicy <em>Event Consumption Policy</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for enum '<em>Event Consumption Policy</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.EventConsumptionPolicy\n * @generated\n */\n EEnum getEventConsumptionPolicy();\n\n /**\n * Returns the factory that creates the instances of the model.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the factory that creates the instances of the model.\n * @generated\n */\n AtomFactory getAtomFactory();\n\n /**\n * <!-- begin-user-doc -->\n * Defines literals for the meta objects that represent\n * <ul>\n * <li>each class,</li>\n * <li>each feature of each class,</li>\n * <li>each enum,</li>\n * <li>and each data type</li>\n * </ul>\n * <!-- end-user-doc -->\n * @generated\n */\n interface Literals {\n /**\n * The meta object literal for the '{@link bip2.ujf.verimag.bip.component.atom.AtomInternalExternalPortDeclaration <em>Internal External Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.AtomInternalExternalPortDeclaration\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomInternalExternalPortDeclaration()\n * @generated\n */\n EClass ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION = eINSTANCE\n .getAtomInternalExternalPortDeclaration();\n\n /**\n * The meta object literal for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomInternalPortDeclarationImpl <em>Internal Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomInternalPortDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomInternalPortDeclaration()\n * @generated\n */\n EClass ATOM_INTERNAL_PORT_DECLARATION = eINSTANCE\n .getAtomInternalPortDeclaration();\n\n /**\n * The meta object literal for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomExternalPortDeclarationImpl <em>External Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomExternalPortDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomExternalPortDeclaration()\n * @generated\n */\n EClass ATOM_EXTERNAL_PORT_DECLARATION = eINSTANCE\n .getAtomExternalPortDeclaration();\n\n /**\n * The meta object literal for the '<em><b>Backend Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute ATOM_EXTERNAL_PORT_DECLARATION__BACKEND_NAME = eINSTANCE\n .getAtomExternalPortDeclaration_BackendName();\n\n /**\n * The meta object literal for the '<em><b>Policy</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute ATOM_EXTERNAL_PORT_DECLARATION__POLICY = eINSTANCE\n .getAtomExternalPortDeclaration_Policy();\n\n /**\n * The meta object literal for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomInternalDataDeclarationImpl <em>Internal Data Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomInternalDataDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomInternalDataDeclaration()\n * @generated\n */\n EClass ATOM_INTERNAL_DATA_DECLARATION = eINSTANCE\n .getAtomInternalDataDeclaration();\n\n /**\n * The meta object literal for the '<em><b>Exported</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute ATOM_INTERNAL_DATA_DECLARATION__EXPORTED = eINSTANCE\n .getAtomInternalDataDeclaration_Exported();\n\n /**\n * The meta object literal for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomExportPortDeclarationImpl <em>Export Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomExportPortDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomExportPortDeclaration()\n * @generated\n */\n EClass ATOM_EXPORT_PORT_DECLARATION = eINSTANCE\n .getAtomExportPortDeclaration();\n\n /**\n * The meta object literal for the '<em><b>Port Declaration References</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ATOM_EXPORT_PORT_DECLARATION__PORT_DECLARATION_REFERENCES = eINSTANCE\n .getAtomExportPortDeclaration_PortDeclarationReferences();\n\n /**\n * The meta object literal for the '{@link bip2.ujf.verimag.bip.component.atom.EventConsumptionPolicy <em>Event Consumption Policy</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.EventConsumptionPolicy\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getEventConsumptionPolicy()\n * @generated\n */\n EEnum EVENT_CONSUMPTION_POLICY = eINSTANCE.getEventConsumptionPolicy();\n\n }\n\n}", "public ArgList(Object arg1, Object arg2, Object arg3) {\n super(3);\n addElement(arg1);\n addElement(arg2);\n addElement(arg3);\n }", "public OreAPI() {\n\t\tthis(DEFAULT_URL, null);\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n type.getItems().add(\"Membre\");\n type.getItems().add(\"PetSitter\");\n type.getItems().add(\"Veterinaire\"); \n }", "public ContainerElement(Document document, ContainerElement parent, String nsUri, String localName) {\n/* 80 */ this.parent = parent;\n/* 81 */ this.document = document;\n/* 82 */ this.nsUri = nsUri;\n/* 83 */ this.startTag = new StartTag(this, nsUri, localName);\n/* 84 */ this.tail = this.startTag;\n/* */ \n/* 86 */ if (isRoot())\n/* 87 */ document.setFirstContent(this.startTag); \n/* */ }", "public LoadlistParser(final String vesselImo, final String vesselName, final OutputStream ediFactOutputstream,\n final Messages messages, final Workbook workbook, final EdiFactType ediFactType) {\n this(null, messages, workbook, vesselImo, null, vesselName, ediFactOutputstream, ediFactType);\n }", "public TheHeraldScotland()\n\t{\n\t\tsuper(TAG_ITEM_ITEMS,\n\t\t\t\tnew int[]{TAG_TITLE},\n\t\t\t\tnew int[]{TAG_LINK},\n\t\t\t\tnew int[]{TAG_DESCRIPTION},\n\t\t\t\tnew int[]{},\n\t\t\t\tnew int[]{TAG_PUBDATE},\n\t\t\t\tnew int[]{},\n\t\t\t\tnew int[]{TAG_MEDIA_CONTENT},\n\t\t\t\t\"\");\n\t}", "public InvitationListService(Double latitude, Double longitude) {\n this.origin = new LocationDO(latitude, longitude);\n }", "public Package(){\n trackingNumber = \"N/A\";\n type = \"N/A\";\n specification = \"N/A\";\n mailing = \"N/A\";\n weight = 0;\n volume = 0;\n }", "public void setUri(URI uri)\n {\n this.uri = uri;\n }", "public ProductLocation() {\n }", "public BaseElement(String uri, String name, Attributes attributes) {\n this.uri = uri;\n this.name = name;\n this.attributes = new AttributesImpl(attributes);\n }", "public VersionDownload() {\n }", "public ExchangeDesk(){\n }", "public void setPackageUrl(String packageUrl);", "public XMLWriterNamespaceBase(XMLWriterNamespaceBase base, String[] uris) {\n this(uris);\n m_extensionUris = base.m_extensionUris;\n m_extensionPrefixes = base.m_extensionPrefixes;\n m_nestingDepth = base.m_nestingDepth;\n }", "public ExtensionResource(IComponentRepository extSvc, String urnid, String extResLocation, String codebase, String classname){\n\t\t\n\t\tthis.extID = urnid;\n\t\tif (extResLocation != null)\n\t\t\tthis.extResLocation = extResLocation;\n\t\tthis.codebase = codebase;\n\t\tthis.classname = classname;\n\t\t\n\t\tthis.extSvc = extSvc;\n\t}", "EisPackage getEisPackage();", "public abstract EndpointReference readEndpointReference(javax.xml.transform.Source eprInfoset);", "public PurchaseRequestAttachment() {\r\n }", "public YSpecificationID(String uri) {\n this(null, new YSpecVersion(\"0.1\"), uri);\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tCapellacorePackage theCapellacorePackage = (CapellacorePackage)EPackage.Registry.INSTANCE.getEPackage(CapellacorePackage.eNS_URI);\n\t\tFaPackage theFaPackage = (FaPackage)EPackage.Registry.INSTANCE.getEPackage(FaPackage.eNS_URI);\n\t\tRequirementPackage theRequirementPackage = (RequirementPackage)EPackage.Registry.INSTANCE.getEPackage(RequirementPackage.eNS_URI);\n\t\tCapellacommonPackage theCapellacommonPackage = (CapellacommonPackage)EPackage.Registry.INSTANCE.getEPackage(CapellacommonPackage.eNS_URI);\n\t\tInformationPackage theInformationPackage = (InformationPackage)EPackage.Registry.INSTANCE.getEPackage(InformationPackage.eNS_URI);\n\t\tCommunicationPackage theCommunicationPackage = (CommunicationPackage)EPackage.Registry.INSTANCE.getEPackage(CommunicationPackage.eNS_URI);\n\t\tModellingcorePackage theModellingcorePackage = (ModellingcorePackage)EPackage.Registry.INSTANCE.getEPackage(ModellingcorePackage.eNS_URI);\n\t\tEpbsPackage theEpbsPackage = (EpbsPackage)EPackage.Registry.INSTANCE.getEPackage(EpbsPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tblockArchitecturePkgEClass.getESuperTypes().add(theCapellacorePackage.getModellingArchitecturePkg());\n\t\tblockArchitectureEClass.getESuperTypes().add(theFaPackage.getAbstractFunctionalArchitecture());\n\t\tblockEClass.getESuperTypes().add(theCapellacorePackage.getModellingBlock());\n\t\tblockEClass.getESuperTypes().add(theFaPackage.getAbstractFunctionalBlock());\n\t\tcomponentArchitectureEClass.getESuperTypes().add(this.getBlockArchitecture());\n\t\tcomponentEClass.getESuperTypes().add(this.getBlock());\n\t\tcomponentEClass.getESuperTypes().add(theInformationPackage.getPartitionableElement());\n\t\tcomponentEClass.getESuperTypes().add(this.getInterfaceAllocator());\n\t\tcomponentEClass.getESuperTypes().add(theCommunicationPackage.getCommunicationLinkExchanger());\n\t\tabstractActorEClass.getESuperTypes().add(this.getComponent());\n\t\tabstractActorEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvedElement());\n\t\tpartEClass.getESuperTypes().add(theInformationPackage.getPartition());\n\t\tpartEClass.getESuperTypes().add(theModellingcorePackage.getInformationsExchanger());\n\t\tpartEClass.getESuperTypes().add(this.getDeployableElement());\n\t\tpartEClass.getESuperTypes().add(this.getDeploymentTarget());\n\t\tpartEClass.getESuperTypes().add(this.getAbstractPathInvolvedElement());\n\t\tarchitectureAllocationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tcomponentAllocationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tsystemComponentEClass.getESuperTypes().add(this.getComponent());\n\t\tsystemComponentEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvedElement());\n\t\tinterfacePkgEClass.getESuperTypes().add(theCommunicationPackage.getMessageReferencePkg());\n\t\tinterfacePkgEClass.getESuperTypes().add(theCapellacorePackage.getAbstractDependenciesPkg());\n\t\tinterfacePkgEClass.getESuperTypes().add(theCapellacorePackage.getAbstractExchangeItemPkg());\n\t\tinterfaceEClass.getESuperTypes().add(theCapellacorePackage.getGeneralClass());\n\t\tinterfaceEClass.getESuperTypes().add(this.getInterfaceAllocator());\n\t\tinterfaceImplementationEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tinterfaceUseEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tprovidedInterfaceLinkEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\trequiredInterfaceLinkEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tinterfaceAllocationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tinterfaceAllocatorEClass.getESuperTypes().add(theCapellacorePackage.getCapellaElement());\n\t\tactorCapabilityRealizationInvolvementEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvement());\n\t\tsystemComponentCapabilityRealizationInvolvementEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvement());\n\t\tcomponentContextEClass.getESuperTypes().add(this.getComponent());\n\t\texchangeItemAllocationEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\texchangeItemAllocationEClass.getESuperTypes().add(theInformationPackage.getAbstractEventOperation());\n\t\texchangeItemAllocationEClass.getESuperTypes().add(theModellingcorePackage.getFinalizableElement());\n\t\tdeployableElementEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tdeploymentTargetEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tabstractDeploymentLinkEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tabstractPathInvolvedElementEClass.getESuperTypes().add(theCapellacorePackage.getInvolvedElement());\n\t\tabstractPhysicalArtifactEClass.getESuperTypes().add(theCapellacorePackage.getCapellaElement());\n\t\tabstractPhysicalLinkEndEClass.getESuperTypes().add(theCapellacorePackage.getCapellaElement());\n\t\tabstractPhysicalPathLinkEClass.getESuperTypes().add(theFaPackage.getComponentExchangeAllocator());\n\t\tphysicalLinkEClass.getESuperTypes().add(this.getAbstractPhysicalPathLink());\n\t\tphysicalLinkEClass.getESuperTypes().add(this.getAbstractPhysicalArtifact());\n\t\tphysicalLinkEClass.getESuperTypes().add(this.getAbstractPathInvolvedElement());\n\t\tphysicalLinkCategoryEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tphysicalLinkEndEClass.getESuperTypes().add(this.getAbstractPhysicalLinkEnd());\n\t\tphysicalLinkRealizationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tphysicalPathEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tphysicalPathEClass.getESuperTypes().add(theFaPackage.getComponentExchangeAllocator());\n\t\tphysicalPathEClass.getESuperTypes().add(this.getAbstractPathInvolvedElement());\n\t\tphysicalPathEClass.getESuperTypes().add(theCapellacorePackage.getInvolverElement());\n\t\tphysicalPathInvolvementEClass.getESuperTypes().add(theCapellacorePackage.getInvolvement());\n\t\tphysicalPathReferenceEClass.getESuperTypes().add(this.getPhysicalPathInvolvement());\n\t\tphysicalPathRealizationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tphysicalPortEClass.getESuperTypes().add(theInformationPackage.getPartition());\n\t\tphysicalPortEClass.getESuperTypes().add(theInformationPackage.getPort());\n\t\tphysicalPortEClass.getESuperTypes().add(this.getAbstractPhysicalArtifact());\n\t\tphysicalPortEClass.getESuperTypes().add(theModellingcorePackage.getInformationsExchanger());\n\t\tphysicalPortEClass.getESuperTypes().add(this.getAbstractPhysicalLinkEnd());\n\t\tphysicalPortRealizationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(blockArchitecturePkgEClass, BlockArchitecturePkg.class, \"BlockArchitecturePkg\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(blockArchitectureEClass, BlockArchitecture.class, \"BlockArchitecture\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBlockArchitecture_OwnedRequirementPkgs(), theRequirementPackage.getRequirementsPkg(), null, \"ownedRequirementPkgs\", null, 0, -1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_OwnedAbstractCapabilityPkg(), theCapellacommonPackage.getAbstractCapabilityPkg(), null, \"ownedAbstractCapabilityPkg\", null, 0, 1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_OwnedInterfacePkg(), this.getInterfacePkg(), null, \"ownedInterfacePkg\", null, 0, 1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_OwnedDataPkg(), theInformationPackage.getDataPkg(), null, \"ownedDataPkg\", null, 0, 1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_ProvisionedArchitectureAllocations(), this.getArchitectureAllocation(), this.getArchitectureAllocation_AllocatingArchitecture(), \"provisionedArchitectureAllocations\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_ProvisioningArchitectureAllocations(), this.getArchitectureAllocation(), this.getArchitectureAllocation_AllocatedArchitecture(), \"provisioningArchitectureAllocations\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_AllocatedArchitectures(), this.getBlockArchitecture(), null, \"allocatedArchitectures\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_AllocatingArchitectures(), this.getBlockArchitecture(), null, \"allocatingArchitectures\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(blockEClass, Block.class, \"Block\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBlock_OwnedAbstractCapabilityPkg(), theCapellacommonPackage.getAbstractCapabilityPkg(), null, \"ownedAbstractCapabilityPkg\", null, 0, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlock_OwnedInterfacePkg(), this.getInterfacePkg(), null, \"ownedInterfacePkg\", null, 0, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlock_OwnedDataPkg(), theInformationPackage.getDataPkg(), null, \"ownedDataPkg\", null, 0, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlock_OwnedStateMachines(), theCapellacommonPackage.getStateMachine(), null, \"ownedStateMachines\", null, 0, -1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(componentArchitectureEClass, ComponentArchitecture.class, \"ComponentArchitecture\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(componentEClass, Component.class, \"Component\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComponent_OwnedInterfaceUses(), this.getInterfaceUse(), null, \"ownedInterfaceUses\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_UsedInterfaceLinks(), this.getInterfaceUse(), this.getInterfaceUse_InterfaceUser(), \"usedInterfaceLinks\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_UsedInterfaces(), this.getInterface(), this.getInterface_UserComponents(), \"usedInterfaces\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_OwnedInterfaceImplementations(), this.getInterfaceImplementation(), null, \"ownedInterfaceImplementations\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ImplementedInterfaceLinks(), this.getInterfaceImplementation(), this.getInterfaceImplementation_InterfaceImplementor(), \"implementedInterfaceLinks\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ImplementedInterfaces(), this.getInterface(), this.getInterface_ImplementorComponents(), \"implementedInterfaces\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ProvisionedComponentAllocations(), this.getComponentAllocation(), this.getComponentAllocation_AllocatingComponent(), \"provisionedComponentAllocations\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ProvisioningComponentAllocations(), this.getComponentAllocation(), this.getComponentAllocation_AllocatedComponent(), \"provisioningComponentAllocations\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_AllocatedComponents(), this.getComponent(), null, \"allocatedComponents\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_AllocatingComponents(), this.getComponent(), null, \"allocatingComponents\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ProvidedInterfaces(), this.getInterface(), null, \"providedInterfaces\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_RequiredInterfaces(), this.getInterface(), null, \"requiredInterfaces\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ContainedComponentPorts(), theFaPackage.getComponentPort(), null, \"containedComponentPorts\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ContainedParts(), this.getPart(), null, \"containedParts\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ContainedPhysicalPorts(), this.getPhysicalPort(), null, \"containedPhysicalPorts\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_OwnedPhysicalPath(), this.getPhysicalPath(), null, \"ownedPhysicalPath\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_OwnedPhysicalLinks(), this.getPhysicalLink(), null, \"ownedPhysicalLinks\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_OwnedPhysicalLinkCategories(), this.getPhysicalLinkCategory(), null, \"ownedPhysicalLinkCategories\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractActorEClass, AbstractActor.class, \"AbstractActor\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(partEClass, Part.class, \"Part\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPart_ProvidedInterfaces(), this.getInterface(), null, \"providedInterfaces\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_RequiredInterfaces(), this.getInterface(), null, \"requiredInterfaces\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_OwnedDeploymentLinks(), this.getAbstractDeploymentLink(), null, \"ownedDeploymentLinks\", null, 0, -1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_DeployedParts(), this.getPart(), null, \"deployedParts\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_DeployingParts(), this.getPart(), null, \"deployingParts\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_OwnedAbstractType(), theModellingcorePackage.getAbstractType(), null, \"ownedAbstractType\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_Value(), ecorePackage.getEInt(), \"value\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_MaxValue(), ecorePackage.getEInt(), \"maxValue\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_MinValue(), ecorePackage.getEInt(), \"minValue\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_CurrentMass(), ecorePackage.getEInt(), \"currentMass\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\taddEOperation(partEClass, ecorePackage.getEBoolean(), \"isOverhead\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(partEClass, ecorePackage.getEBoolean(), \"isSatured\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(partEClass, ecorePackage.getEInt(), \"computeMass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(partEClass, null, \"print\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(architectureAllocationEClass, ArchitectureAllocation.class, \"ArchitectureAllocation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getArchitectureAllocation_AllocatedArchitecture(), this.getBlockArchitecture(), this.getBlockArchitecture_ProvisioningArchitectureAllocations(), \"allocatedArchitecture\", null, 1, 1, ArchitectureAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getArchitectureAllocation_AllocatingArchitecture(), this.getBlockArchitecture(), this.getBlockArchitecture_ProvisionedArchitectureAllocations(), \"allocatingArchitecture\", null, 1, 1, ArchitectureAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(componentAllocationEClass, ComponentAllocation.class, \"ComponentAllocation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComponentAllocation_AllocatedComponent(), this.getComponent(), this.getComponent_ProvisioningComponentAllocations(), \"allocatedComponent\", null, 0, 1, ComponentAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponentAllocation_AllocatingComponent(), this.getComponent(), this.getComponent_ProvisionedComponentAllocations(), \"allocatingComponent\", null, 0, 1, ComponentAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(systemComponentEClass, SystemComponent.class, \"SystemComponent\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSystemComponent_DataComponent(), ecorePackage.getEBoolean(), \"dataComponent\", null, 0, 1, SystemComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSystemComponent_DataType(), theCapellacorePackage.getClassifier(), null, \"dataType\", null, 0, -1, SystemComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSystemComponent_ParticipationsInCapabilityRealizations(), this.getSystemComponentCapabilityRealizationInvolvement(), null, \"participationsInCapabilityRealizations\", null, 0, -1, SystemComponent.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfacePkgEClass, InterfacePkg.class, \"InterfacePkg\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfacePkg_OwnedInterfaces(), this.getInterface(), null, \"ownedInterfaces\", null, 0, -1, InterfacePkg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfacePkg_OwnedInterfacePkgs(), this.getInterfacePkg(), null, \"ownedInterfacePkgs\", null, 0, -1, InterfacePkg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfaceEClass, Interface.class, \"Interface\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInterface_Mechanism(), ecorePackage.getEString(), \"mechanism\", null, 0, 1, Interface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInterface_Structural(), ecorePackage.getEBoolean(), \"structural\", \"true\", 0, 1, Interface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ImplementorComponents(), this.getComponent(), this.getComponent_ImplementedInterfaces(), \"implementorComponents\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_UserComponents(), this.getComponent(), this.getComponent_UsedInterfaces(), \"userComponents\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_InterfaceImplementations(), this.getInterfaceImplementation(), null, \"interfaceImplementations\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_InterfaceUses(), this.getInterfaceUse(), null, \"interfaceUses\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ProvisioningInterfaceAllocations(), this.getInterfaceAllocation(), this.getInterfaceAllocation_AllocatedInterface(), \"provisioningInterfaceAllocations\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_AllocatingInterfaces(), this.getInterface(), null, \"allocatingInterfaces\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_AllocatingComponents(), this.getComponent(), null, \"allocatingComponents\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ExchangeItems(), theInformationPackage.getExchangeItem(), null, \"exchangeItems\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_OwnedExchangeItemAllocations(), this.getExchangeItemAllocation(), null, \"ownedExchangeItemAllocations\", null, 0, -1, Interface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RequiringComponents(), this.getComponent(), null, \"requiringComponents\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RequiringComponentPorts(), theFaPackage.getComponentPort(), null, \"requiringComponentPorts\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ProvidingComponents(), this.getComponent(), null, \"providingComponents\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ProvidingComponentPorts(), theFaPackage.getComponentPort(), null, \"providingComponentPorts\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RealizingLogicalInterfaces(), this.getInterface(), null, \"realizingLogicalInterfaces\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RealizedContextInterfaces(), this.getInterface(), null, \"realizedContextInterfaces\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RealizingPhysicalInterfaces(), this.getInterface(), null, \"realizingPhysicalInterfaces\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RealizedLogicalInterfaces(), this.getInterface(), null, \"realizedLogicalInterfaces\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfaceImplementationEClass, InterfaceImplementation.class, \"InterfaceImplementation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceImplementation_InterfaceImplementor(), this.getComponent(), this.getComponent_ImplementedInterfaceLinks(), \"interfaceImplementor\", null, 1, 1, InterfaceImplementation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceImplementation_ImplementedInterface(), this.getInterface(), null, \"implementedInterface\", null, 1, 1, InterfaceImplementation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfaceUseEClass, InterfaceUse.class, \"InterfaceUse\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceUse_InterfaceUser(), this.getComponent(), this.getComponent_UsedInterfaceLinks(), \"interfaceUser\", null, 1, 1, InterfaceUse.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceUse_UsedInterface(), this.getInterface(), null, \"usedInterface\", null, 1, 1, InterfaceUse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(providedInterfaceLinkEClass, ProvidedInterfaceLink.class, \"ProvidedInterfaceLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getProvidedInterfaceLink_Interface(), this.getInterface(), null, \"interface\", null, 1, 1, ProvidedInterfaceLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(requiredInterfaceLinkEClass, RequiredInterfaceLink.class, \"RequiredInterfaceLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRequiredInterfaceLink_Interface(), this.getInterface(), null, \"interface\", null, 1, 1, RequiredInterfaceLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfaceAllocationEClass, InterfaceAllocation.class, \"InterfaceAllocation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceAllocation_AllocatedInterface(), this.getInterface(), this.getInterface_ProvisioningInterfaceAllocations(), \"allocatedInterface\", null, 1, 1, InterfaceAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceAllocation_AllocatingInterfaceAllocator(), this.getInterfaceAllocator(), this.getInterfaceAllocator_ProvisionedInterfaceAllocations(), \"allocatingInterfaceAllocator\", null, 1, 1, InterfaceAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(interfaceAllocatorEClass, InterfaceAllocator.class, \"InterfaceAllocator\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceAllocator_OwnedInterfaceAllocations(), this.getInterfaceAllocation(), null, \"ownedInterfaceAllocations\", null, 0, -1, InterfaceAllocator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceAllocator_ProvisionedInterfaceAllocations(), this.getInterfaceAllocation(), this.getInterfaceAllocation_AllocatingInterfaceAllocator(), \"provisionedInterfaceAllocations\", null, 0, -1, InterfaceAllocator.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceAllocator_AllocatedInterfaces(), this.getInterface(), null, \"allocatedInterfaces\", null, 0, -1, InterfaceAllocator.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(actorCapabilityRealizationInvolvementEClass, ActorCapabilityRealizationInvolvement.class, \"ActorCapabilityRealizationInvolvement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(systemComponentCapabilityRealizationInvolvementEClass, SystemComponentCapabilityRealizationInvolvement.class, \"SystemComponentCapabilityRealizationInvolvement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(componentContextEClass, ComponentContext.class, \"ComponentContext\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(exchangeItemAllocationEClass, ExchangeItemAllocation.class, \"ExchangeItemAllocation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getExchangeItemAllocation_SendProtocol(), theCommunicationPackage.getCommunicationLinkProtocol(), \"sendProtocol\", null, 0, 1, ExchangeItemAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getExchangeItemAllocation_ReceiveProtocol(), theCommunicationPackage.getCommunicationLinkProtocol(), \"receiveProtocol\", null, 0, 1, ExchangeItemAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getExchangeItemAllocation_AllocatedItem(), theInformationPackage.getExchangeItem(), null, \"allocatedItem\", null, 0, 1, ExchangeItemAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getExchangeItemAllocation_AllocatingInterface(), this.getInterface(), null, \"allocatingInterface\", null, 0, 1, ExchangeItemAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deployableElementEClass, DeployableElement.class, \"DeployableElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDeployableElement_DeployingLinks(), this.getAbstractDeploymentLink(), null, \"deployingLinks\", null, 0, -1, DeployableElement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deploymentTargetEClass, DeploymentTarget.class, \"DeploymentTarget\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDeploymentTarget_DeploymentLinks(), this.getAbstractDeploymentLink(), null, \"deploymentLinks\", null, 0, -1, DeploymentTarget.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractDeploymentLinkEClass, AbstractDeploymentLink.class, \"AbstractDeploymentLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractDeploymentLink_DeployedElement(), this.getDeployableElement(), null, \"deployedElement\", null, 1, 1, AbstractDeploymentLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAbstractDeploymentLink_Location(), this.getDeploymentTarget(), null, \"location\", null, 1, 1, AbstractDeploymentLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractPathInvolvedElementEClass, AbstractPathInvolvedElement.class, \"AbstractPathInvolvedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(abstractPhysicalArtifactEClass, AbstractPhysicalArtifact.class, \"AbstractPhysicalArtifact\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractPhysicalArtifact_AllocatorConfigurationItems(), theEpbsPackage.getConfigurationItem(), theEpbsPackage.getConfigurationItem_AllocatedPhysicalArtifacts(), \"allocatorConfigurationItems\", null, 0, -1, AbstractPhysicalArtifact.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractPhysicalLinkEndEClass, AbstractPhysicalLinkEnd.class, \"AbstractPhysicalLinkEnd\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractPhysicalLinkEnd_InvolvedLinks(), this.getPhysicalLink(), null, \"involvedLinks\", null, 0, -1, AbstractPhysicalLinkEnd.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractPhysicalPathLinkEClass, AbstractPhysicalPathLink.class, \"AbstractPhysicalPathLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(physicalLinkEClass, PhysicalLink.class, \"PhysicalLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalLink_LinkEnds(), this.getAbstractPhysicalLinkEnd(), null, \"linkEnds\", null, 2, 2, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), theFaPackage.getComponentExchangeFunctionalExchangeAllocation(), null, \"ownedComponentExchangeFunctionalExchangeAllocations\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_OwnedPhysicalLinkEnds(), this.getPhysicalLinkEnd(), null, \"ownedPhysicalLinkEnds\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_OwnedPhysicalLinkRealizations(), this.getPhysicalLinkRealization(), null, \"ownedPhysicalLinkRealizations\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_Categories(), this.getPhysicalLinkCategory(), this.getPhysicalLinkCategory_Links(), \"categories\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_SourcePhysicalPort(), this.getPhysicalPort(), null, \"sourcePhysicalPort\", null, 0, 1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_TargetPhysicalPort(), this.getPhysicalPort(), null, \"targetPhysicalPort\", null, 0, 1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_RealizedPhysicalLinks(), this.getPhysicalLink(), null, \"realizedPhysicalLinks\", null, 0, -1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_RealizingPhysicalLinks(), this.getPhysicalLink(), null, \"realizingPhysicalLinks\", null, 0, -1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalLinkCategoryEClass, PhysicalLinkCategory.class, \"PhysicalLinkCategory\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalLinkCategory_Links(), this.getPhysicalLink(), this.getPhysicalLink_Categories(), \"links\", null, 0, -1, PhysicalLinkCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalLinkEndEClass, PhysicalLinkEnd.class, \"PhysicalLinkEnd\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalLinkEnd_Port(), this.getPhysicalPort(), null, \"port\", null, 0, 1, PhysicalLinkEnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLinkEnd_Part(), this.getPart(), null, \"part\", null, 0, 1, PhysicalLinkEnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalLinkRealizationEClass, PhysicalLinkRealization.class, \"PhysicalLinkRealization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(physicalPathEClass, PhysicalPath.class, \"PhysicalPath\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPath_InvolvedLinks(), this.getAbstractPhysicalPathLink(), null, \"involvedLinks\", null, 0, -1, PhysicalPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_OwnedPhysicalPathInvolvements(), this.getPhysicalPathInvolvement(), null, \"ownedPhysicalPathInvolvements\", null, 0, -1, PhysicalPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_FirstPhysicalPathInvolvements(), this.getPhysicalPathInvolvement(), null, \"firstPhysicalPathInvolvements\", null, 0, -1, PhysicalPath.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_OwnedPhysicalPathRealizations(), this.getPhysicalPathRealization(), null, \"ownedPhysicalPathRealizations\", null, 0, -1, PhysicalPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_RealizedPhysicalPaths(), this.getPhysicalPath(), null, \"realizedPhysicalPaths\", null, 0, -1, PhysicalPath.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_RealizingPhysicalPaths(), this.getPhysicalPath(), null, \"realizingPhysicalPaths\", null, 0, -1, PhysicalPath.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPathInvolvementEClass, PhysicalPathInvolvement.class, \"PhysicalPathInvolvement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPathInvolvement_NextInvolvements(), this.getPhysicalPathInvolvement(), null, \"nextInvolvements\", null, 0, -1, PhysicalPathInvolvement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPathInvolvement_PreviousInvolvements(), this.getPhysicalPathInvolvement(), null, \"previousInvolvements\", null, 0, -1, PhysicalPathInvolvement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPathInvolvement_InvolvedElement(), this.getAbstractPathInvolvedElement(), null, \"involvedElement\", null, 0, 1, PhysicalPathInvolvement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPathInvolvement_InvolvedComponent(), this.getComponent(), null, \"involvedComponent\", null, 0, 1, PhysicalPathInvolvement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPathReferenceEClass, PhysicalPathReference.class, \"PhysicalPathReference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPathReference_ReferencedPhysicalPath(), this.getPhysicalPath(), null, \"referencedPhysicalPath\", null, 0, 1, PhysicalPathReference.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPathRealizationEClass, PhysicalPathRealization.class, \"PhysicalPathRealization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(physicalPortEClass, PhysicalPort.class, \"PhysicalPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPort_OwnedComponentPortAllocations(), theFaPackage.getComponentPortAllocation(), null, \"ownedComponentPortAllocations\", null, 0, -1, PhysicalPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_OwnedPhysicalPortRealizations(), this.getPhysicalPortRealization(), null, \"ownedPhysicalPortRealizations\", null, 0, -1, PhysicalPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_AllocatedComponentPorts(), theFaPackage.getComponentPort(), theFaPackage.getComponentPort_AllocatingPhysicalPorts(), \"allocatedComponentPorts\", null, 0, -1, PhysicalPort.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_RealizedPhysicalPorts(), this.getPhysicalPort(), null, \"realizedPhysicalPorts\", null, 0, -1, PhysicalPort.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_RealizingPhysicalPorts(), this.getPhysicalPort(), null, \"realizingPhysicalPorts\", null, 0, -1, PhysicalPort.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPortRealizationEClass, PhysicalPortRealization.class, \"PhysicalPortRealization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http://www.polarsys.org/kitalpha/dsl/2007/dslfactory\n\t\tcreateDslfactoryAnnotations();\n\t\t// http://www.polarsys.org/kitalpha/ecore/documentation\n\t\tcreateDocumentationAnnotations();\n\t\t// http://www.polarsys.org/capella/semantic\n\t\tcreateSemanticAnnotations();\n\t\t// http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\n\t\tcreateMappingAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/BusinessInformation\n\t\tcreateBusinessInformationAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/UML2Mapping\n\t\tcreateUML2MappingAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/ImpactAnalysis/Segment\n\t\tcreateSegmentAnnotations();\n\t\t// http://www.polarsys.org/capella/derived\n\t\tcreateDerivedAnnotations();\n\t\t// aspect\n\t\tcreateAspectAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/ImpactAnalysis/Ignore\n\t\tcreateIgnoreAnnotations();\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEnginePackage theEnginePackage = (EnginePackage)EPackage.Registry.INSTANCE.getEPackage(EnginePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tbluetoothPortEClass.getESuperTypes().add(theEnginePackage.getPort());\n\t\tl2CAPInJobEClass.getESuperTypes().add(theEnginePackage.getInputJob());\n\t\tl2CAPoutJobEClass.getESuperTypes().add(theEnginePackage.getOutputJob());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(bluetoothPortEClass, BluetoothPort.class, \"BluetoothPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(l2CAPInJobEClass, L2CAPInJob.class, \"L2CAPInJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(l2CAPoutJobEClass, L2CAPoutJob.class, \"L2CAPoutJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public abstract IElement getMetafacade(String uri);", "EcnonetsPackage getEcnonetsPackage();", "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 }" ]
[ "0.6043489", "0.55163234", "0.5408586", "0.5369967", "0.5333423", "0.53191257", "0.5201338", "0.5188508", "0.5170015", "0.51497674", "0.5113373", "0.51021284", "0.5091893", "0.5089946", "0.5047352", "0.5045921", "0.5038914", "0.50305605", "0.5030184", "0.5028946", "0.49683926", "0.4958401", "0.4948794", "0.4945941", "0.49250266", "0.4922534", "0.4910253", "0.49093133", "0.48917213", "0.48824167", "0.48680276", "0.4867924", "0.48663774", "0.48603255", "0.48527995", "0.4831739", "0.48309278", "0.48231217", "0.4811709", "0.48116568", "0.48100707", "0.48095545", "0.4788687", "0.47884557", "0.47836065", "0.47810596", "0.47708875", "0.4752844", "0.4739711", "0.4739611", "0.47300383", "0.47284985", "0.4724379", "0.4715839", "0.47116518", "0.47115904", "0.46914887", "0.46864367", "0.46840203", "0.46821156", "0.46792054", "0.46787885", "0.46701068", "0.46689937", "0.46667692", "0.46610856", "0.46590012", "0.465686", "0.4656745", "0.46533906", "0.46491054", "0.4647229", "0.46425527", "0.46400625", "0.46260065", "0.46256042", "0.46222645", "0.4612016", "0.46112487", "0.46079662", "0.4606023", "0.46054366", "0.46016616", "0.46013886", "0.4599591", "0.45985556", "0.45969167", "0.45941854", "0.45911893", "0.45890564", "0.45887956", "0.45882145", "0.45872572", "0.4583729", "0.45814902", "0.45797968", "0.4572623", "0.45709357", "0.45692188", "0.45598704" ]
0.4762576
47
search classifier in the metamodel
public EClassifier getEClassifier (String classifier) { EClassifier cl = null; for (int i=0; i<this.packages.size() && cl==null; i++) cl = this.packages.get(i).getEClassifier(classifier); return cl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public void search();", "Classifier getClassifier();", "List<CabinClassModel> findCabinClasses();", "@Override\r\n\tpublic void search() {\n\r\n\t}", "public void search() {\r\n \t\r\n }", "@Override\n\tpublic void search() {\n\t}", "public void loadModel() throws SQLException {\n\t\tObject rs = MysqlConnection.getDbConnection().getQueryData(query);\n\t\tclassifier = (FilteredClassifier)rs;\n\t}", "public void search() {\n }", "@In String search();", "void search();", "void search();", "abstract public boolean performSearch();", "@Override\n public boolean predicate2(Object dm, Designer dsgr) {\n if (!(Model.getFacade().isAClassifier(dm))) {\n return NO_PROBLEM;\n }\n if (!(Model.getFacade().isPrimaryObject(dm))) {\n return NO_PROBLEM;\n }\n\n // If the classifier does not have a name,\n // then no problem - the model is not finished anyhow.\n if ((Model.getFacade().getName(dm) == null)\n\t || (\"\".equals(Model.getFacade().getName(dm)))) {\n return NO_PROBLEM;\n\t}\n\n // Abstract elements do not necessarily require associations\n if (Model.getFacade().isAGeneralizableElement(dm)\n\t && Model.getFacade().isAbstract(dm)) {\n return NO_PROBLEM;\n }\n\n // Types can probably have associations, but we should not nag at them\n // not having any.\n // utility is a namespace collection - also not strictly required\n // to have associations.\n if (Model.getFacade().isType(dm)) {\n return NO_PROBLEM;\n }\n if (Model.getFacade().isUtility(dm)) {\n return NO_PROBLEM;\n }\n\n // See issue 1129: If the classifier has dependencies,\n // then mostly there is no problem. \n if (Model.getFacade().getClientDependencies(dm).size() > 0) {\n return NO_PROBLEM;\n }\n if (Model.getFacade().getSupplierDependencies(dm).size() > 0) {\n return NO_PROBLEM;\n }\n \n // special cases for use cases\n // Extending use cases and use case that are being included are\n // not required to have associations.\n if (Model.getFacade().isAUseCase(dm)) {\n Object usecase = dm;\n Collection includes = Model.getFacade().getIncludes(usecase);\n if (includes != null && includes.size() >= 1) {\n return NO_PROBLEM;\n }\n Collection extend = Model.getFacade().getExtends(usecase);\n if (extend != null && extend.size() >= 1) {\n return NO_PROBLEM;\n }\n }\n \n \n\n //TODO: different critic or special message for classes\n //that inherit all ops but define none of their own.\n\n if (findAssociation(dm, 0)) {\n return NO_PROBLEM;\n }\n return PROBLEM_FOUND;\n }", "public MagicSearch createMagicSearch();", "public abstract S getSearch();", "public void search() {\n\n lazyModel = new LazyDataModel<Pesquisa>() {\n private static final long serialVersionUID = -6541913048403958674L;\n\n @Override\n public List<Pesquisa> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters) {\n\n pesquisarBC.searhValidation(searchParam);\n\n int count = pesquisarBC.count(searchParam);\n lazyModel.setRowCount(count);\n\n if (count > 0) {\n if (first > count) {\n // Go to last page\n first = (count / pageSize) * pageSize;\n }\n SearchFilter parameters = new SearchFilter();\n parameters.setFirst(first);\n parameters.setPageSize(pageSize);\n List<Pesquisa> list = pesquisarBC.search(searchParam, parameters);\n\n logger.info(\"END: load\");\n return list;\n } else {\n return null;\n }\n }\n };\n\n }", "private void searchFunction() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void buildClassifier(Instances data) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic Set<Article> search(String keyworkds) {\n\t\treturn null;\r\n\t}", "@RequestMapping(value = \"/search\", method = { RequestMethod.GET })\r\n\tpublic String search(Model model) {\n\t\tList<String> indexFieldNamesForMM = ecoreMetamodelService.getAllIndexTags();\r\n\t\tmodel.addAttribute(\"indexFieldNamesForMM\", indexFieldNamesForMM);\r\n\r\n\t\t// Tags for T. (statics)\r\n\t\t// Get all Transformations tags\r\n\t\tList<String> indexFieldNamesForT = atlTransformationService.getAllIndexTags();\r\n\t\tmodel.addAttribute(\"indexFieldNamesForT\", indexFieldNamesForT);\r\n\r\n\t\t// Tags for M. (dinamics)\r\n\t\t// Get all tags\r\n\t\tList<String> indexFieldNamesForM = modelService.getAllIndexTags();\r\n\r\n\t\t// Remove Metamodels and Transformations tags in order to find out only\r\n\t\t// the model tags.\r\n\t\tindexFieldNamesForM.removeAll(indexFieldNamesForMM);\r\n\t\tindexFieldNamesForM.removeAll(indexFieldNamesForT);\r\n\r\n\t\tmodel.addAttribute(\"indexFieldNamesForM\", indexFieldNamesForM);\r\n\r\n\t\treturn \"public.search\";\r\n\t}", "@Test\n\tpublic void testClassifier() {\n\t\t// Ensure there are no intermediate files left in tmp directory\n\t\tFile exampleFile = FileUtils.getTmpFile(FusionClassifier.EXAMPLE_FILE_NAME);\n\t\tFile predictionsFile = FileUtils.getTmpFile(FusionClassifier.PREDICTIONS_FILE_NAME);\n\t\texampleFile.delete();\n\t\tpredictionsFile.delete();\n\t\t\n\t\tList<List<Double>> columnFeatures = new ArrayList<>();\n\t\tSet<String> inputRecognizers = new HashSet();\n\t\tList<Map<String, Double>> supportingCandidates = new ArrayList();\n\t\tList<Map<String, Double>> competingCandidates = new ArrayList();\n\t\t\n\t\t// Supporting candidates\n\t\tMap<String, Double> supportingCandidatesTipo = new HashMap();\n\t\tsupportingCandidatesTipo.put(INPUT_RECOGNIZER_ID, TIPO_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesTipo);\n\n\t\tMap<String, Double> supportingCandidatesInsegna = new HashMap();\n\t\tsupportingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, INSEGNA_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesInsegna);\n\t\t\n\t\t// Competing candidates\n\t\tMap<String, Double> competingCandidatesTipo = new HashMap();\n\t\tcompetingCandidatesTipo.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesTipo);\n\t\tMap<String, Double> competingCandidatesInsegna = new HashMap();\n\t\tcompetingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesInsegna);\n\n\t\t// Two columns: insegna and tipo from osterie_tipiche\n\t\t// A single column feature: uniqueness\n\t\tList<Double> featuresTipo = new ArrayList();\n\t\tfeaturesTipo.add(0.145833);\n\t\tcolumnFeatures.add(featuresTipo);\n\t\t\n\t\tList<Double> featuresInsegna = new ArrayList();\n\t\tfeaturesInsegna.add(1.0);\n\t\tcolumnFeatures.add(featuresInsegna);\n\t\t\n\t\t// A single input recognizer\n\t\tinputRecognizers.add(INPUT_RECOGNIZER_ID);\n\n\t\t// Create the classifier\n\t\tFusionClassifier classifier \n\t\t\t= new FusionClassifier(FileUtils.getSVMModelFile(MINIMAL_FUSION_CR_NAME), \n\t\t\t\t\tcolumnFeatures, \n\t\t\t\t\tRESTAURANT_CONCEPT_ID, \n\t\t\t\t\tinputRecognizers);\n\t\tList<Double> predictions \n\t\t\t= classifier.classifyColumns(supportingCandidates, competingCandidates);\n\t\t\n\t\tboolean tipoIsNegativeExample = predictions.get(0) < -0.5;\n\t\t\n//\t\tTODO This currently doesn't work -- need to investigate\n//\t\tboolean insegnaIsPositiveExample = predictions.get(1) > 0.5;\n\t\t\n\t\tassertTrue(tipoIsNegativeExample);\n//\t\tassertTrue(insegnaIsPositiveExample);\n\t\t\n\ttry {\n\t\tSystem.out.println(new File(\".\").getCanonicalPath());\n\t\tSystem.out.println(getClass().getProtectionDomain().getCodeSource().getLocation());\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\t\n\t}", "Boolean getSearchObjective();", "public List<Product> search(String searchString);", "public abstract ISearchCore getSearchCore();", "public void classify() throws IOException\n {\n TrainingParameters tp = new TrainingParameters();\n tp.put(TrainingParameters.ITERATIONS_PARAM, 100);\n tp.put(TrainingParameters.CUTOFF_PARAM, 0);\n\n DoccatFactory doccatFactory = new DoccatFactory();\n DoccatModel model = DocumentCategorizerME.train(\"en\", new IntentsObjectStream(), tp, doccatFactory);\n\n DocumentCategorizerME categorizerME = new DocumentCategorizerME(model);\n\n try (Scanner scanner = new Scanner(System.in))\n {\n while (true)\n {\n String input = scanner.nextLine();\n if (input.equals(\"exit\"))\n {\n break;\n }\n\n double[] classDistribution = categorizerME.categorize(new String[]{input});\n String predictedCategory =\n Arrays.stream(classDistribution).filter(cd -> cd > 0.5D).count() > 0? categorizerME.getBestCategory(classDistribution): \"I don't understand\";\n System.out.println(String.format(\"Model prediction for '%s' is: '%s'\", input, predictedCategory));\n }\n }\n }", "LazyDataModel<ReagentResult> getSearchResults();", "public List<OWLObject> search(OWLObject queryObj) {\n\t\tList<OWLObject> hits = new ArrayList<OWLObject>(maxHits);\n\t\tSystem.out.println(\"gettings atts for \"+queryObj+\" -- \"+simEngine.comparisonProperty);\n\t\tSet<OWLObject> atts = simEngine.getAttributeClosureFor(queryObj);\n\t\tSystem.out.println(\"all atts: \"+atts.size());\n\t\tif (atts.size() == 0)\n\t\t\treturn hits;\n\t\t\n\t\t// only compare using significant atts;\n\t\t// we don't do the same test on candidates as these will be removed by the\n\t\t// intersection operation. they will have a small effect on the score, as\n\t\t// we don't divide by the union, but instead the sum of sizes\n\t\tatts = filterNonSignificantAttributes(atts);\n\t\tSystem.out.println(\"filtered atts: \"+atts.size());\n\n\t\t//bloomFilter = new BloomFilter<OWLObject>(0.05, atts.size());\n\t\t//bloomFilter.addAll(atts);\n\t\t\t\t\n\t\tSortedMap<Integer,Set<OWLObject>> scoreCandidateMap = new TreeMap<Integer,Set<OWLObject>>();\n\t\t\n\t\tfor (OWLObject candidate : getCandidates()) {\n\t\t\tif (candidate.equals(queryObj))\n\t\t\t\tcontinue;\n\t\t\tSet<OWLObject> iAtts = simEngine.getAttributeClosureFor(candidate);\n\t\t\t//Set<OWLObject> iAtts = simEngine.getGraph().getAncestors(candidate);\n\n\t\t\tif (iAtts.size() == 0)\n\t\t\t\tcontinue;\n\t\t\tint cAttsSize = iAtts.size();\n\t\n\t\t\tiAtts.retainAll(atts);\n\t\t\t//Collection<OWLObject> iAtts = bloomFilter.intersection(cAtts);\n\t\t\t\n\t\t\t// simJ, one-sided, scaled by 1000\n\t\t\t// negate to ensure largest first\n\t\t\t//Integer score = - (iAtts.size() * 1000 / cAttsSize);\n\t\t\t\n\t\t\t// this biases us towards genes with large numbers of annotations,\n\t\t\t// but it is better at finding the models that share all features\n\t\t\tInteger score = - iAtts.size();\n\t\t\tif (!scoreCandidateMap.containsKey(score)) \n\t\t\t\tscoreCandidateMap.put(score, new HashSet<OWLObject>());\n\t\t\tscoreCandidateMap.get(score).add(candidate);\n\t\t\treporter.report(this,\"query_candidate_overlap_total\",queryObj,candidate,iAtts.size(),cAttsSize);\n\t\t}\n\t\t\n\t\tint n = 0;\n\t\tfor (Set<OWLObject> cs : scoreCandidateMap.values()) {\n\t\t\tn += cs.size();\n\t\t\thits.addAll(cs);\n\t\t}\n\t\t\n\t\tn = 0;\n\t\tfor (OWLObject hit : hits) {\n\t\t\tn++;\n\t\t\treporter.report(this,\"query_hit_rank_threshold\",queryObj,hit,n,maxHits);\n\t\t}\n\t\tif (hits.size() > maxHits)\n\t\t\thits = hits.subList(0, maxHits);\n\t\t\n\n\n\t\treturn hits;\n\t}", "@Test\r\n\tpublic void testSearchForAllModelElement() throws Exception { testSearchForAllModelElement$(); }", "SearchResultCompany search(String keywords);", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "public interface RelationalClassifier extends Classifier {\r\n}", "Classifier getBase_Classifier();", "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "Search getSearch();", "@Override\n\tpublic void buildClassifier(Instances data) throws Exception {\n decision_tree = new MyID3();\n\t\tdecision_tree.buildClassifier(data);\n\n//\t\tSystem.out.println(decision_tree.toString());\n\n train_data = data;\n\n set_of_rule = convertTreeIntoRules(decision_tree);\n\n\n // DONT DELETE THISSSS\n set_of_rule.setTrainData(data);\n\n List<Rule> listrule = set_of_rule.getList_rule();\n System.out.println(\"\\n\\n\\nBEFORE PRUNEDDD\");\n for (int i = 0; i < listrule.size(); i++ ){\n System.out.println(\"Rule \"+i+\" :\");\n Rule rule = listrule.get(i);\n List<Edge> edges = rule.getPreconditions();\n for (int j=0; j< edges.size(); j++) {\n System.out.println(\"\\t-\"+edges.get(j).getAttribute_name() + \" = \" + edges.get(j).getAttribute_value());\n }\n System.out.println(\"\\tClass = \"+rule.getClass_value());\n }\n\n// selectBestSetofRule();\n\n\t}", "public float searchModel(String modeln)\r\n\t{\r\n\r\n\t\tfloat price=0;\r\n\r\n\r\n\t\tSet<String> s=mr.hm.keySet();\r\n\t\tfor (String i:s) \r\n\t\t{\r\n\t\t\tSystem.out.println(i);\r\n\t\t\t//if(mr.hm.containsKey(modeln))\r\n\t\t\tif(i.contains(modeln))\r\n\r\n\t\t\t{\r\n\t\t\t\tprice=mr.hm.get(i);\r\n\t\t\t\tSystem.out.println(\"The price for that modelname is \"+price);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\telse\r\n\t\t\t{\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthrow new ModelNameNotFound(\"Model Name not Found\");\r\n\t\t\t\t} catch (ModelNameNotFound e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t//e.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t}\r\n\r\n\t\treturn price;\r\n\r\n\r\n\t}", "public void classify() {\n\t\ttry {\n\t\t\tdouble pred = classifier.classifyInstance(instances.instance(0));\n\t\t\tSystem.out.println(\"===== Classified instance =====\");\n\t\t\tSystem.out.println(\"Class predicted: \" + instances.classAttribute().value((int) pred));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Problem found when classifying the text\");\n\t\t}\t\t\n\t}", "@objid (\"0fc4a30a-9083-11e1-81e9-001ec947ccaf\")\npublic interface IModel {\n @objid (\"158ef48a-aed6-4746-a113-8d9f740481b4\")\n public static final IMObjectFilter ISVALID = new IMObjectFilter() {\n\t\t@Override\n\t\tpublic boolean accept(MObject obj) {\n\t\t\treturn obj != null && obj.isValid();\n\t\t}\n\t};\n\n @objid (\"899f8ec3-25d4-4441-b499-c889c4e125a7\")\n public static final IMObjectFilter NOSHELL = new IMObjectFilter() {\n\t\t@Override\n\t\tpublic boolean accept(MObject obj) {\n\t\t\treturn obj != null && ! obj.isShell();\n\t\t}\n\t};\n\n @objid (\"f85615e6-6ad2-4a7a-9784-cf8d466faa65\")\n public static final IMObjectFilter NODELETED = new IMObjectFilter() {\n\t\t@Override\n\t\tpublic boolean accept(MObject obj) { \n\t\t\treturn obj != null && ! obj.isDeleted();\n\t\t}\n\t};\n\n /**\n * Find elements by a metaclass an an attribute value.\n * @param cls the metaclass.\n * @param att the attribute to search\n * @param val the attribute value\n * @return the found elements.\n */\n @objid (\"17c23aa0-9083-11e1-81e9-001ec947ccaf\")\n Collection<? extends MObject> findByAtt(MClass cls, final String att, Object val, IMObjectFilter filter);\n\n /**\n * Get all elements of a given class and the class descendants.\n * @param cls a metaclass.\n * @return all elements of this class.\n */\n @objid (\"17c23aa1-9083-11e1-81e9-001ec947ccaf\")\n Collection<? extends MObject> findByClass(MClass cls, IMObjectFilter filter);\n\n /**\n * Find an element from its MClass and its identifier.\n * @param cls a metaclass\n * @param siteIdentifier an UUID\n * @return the found element or <code>null</code>.\n */\n @objid (\"17c23aa2-9083-11e1-81e9-001ec947ccaf\")\n MObject findById(MClass cls, final UUID siteIdentifier, IMObjectFilter filter);\n\n /**\n * Find an element from a reference.\n * @param ref an element reference\n * @return the found element or <code>null</code>.\n * @throws org.modelio.vcore.session.UnknownMetaclassException if the referenced metaclass does not exist.\n */\n @objid (\"10a41285-16e7-11e2-b24b-001ec947ccaf\")\n MObject findByRef(MRef ref, IMObjectFilter filter) throws UnknownMetaclassException;\n\n /**\n * Get the generic factory.\n * @return the generic factory.\n */\n @objid (\"0078ca26-5a20-10c8-842f-001ec947cd2a\")\n GenericFactory getGenericFactory();\n\n @objid (\"00955b82-61a5-10c8-842f-001ec947cd2a\")\n Collection<? extends MObject> findByClass(MClass cls);\n\n @objid (\"0096d304-61a5-10c8-842f-001ec947cd2a\")\n Collection<? extends MObject> findByAtt(MClass cls, final String att, Object val);\n\n @objid (\"009711de-61a5-10c8-842f-001ec947cd2a\")\n MObject findById(MClass cls, final UUID siteIdentifier);\n\n @objid (\"33fb2113-b8a3-4b3b-95ed-3481c65d2881\")\n MObject findByRef(MRef ref) throws UnknownMetaclassException;\n\n @objid (\"261fe5dc-cfbf-40ee-886d-fc3c529c0e47\")\n <T extends MObject> Collection<T> findByClass(Class<T> metaclass, IMObjectFilter filter);\n\n @objid (\"e46abe41-187e-4d12-b565-c9e92df02519\")\n <T extends MObject> Collection<T> findByAtt(Class<T> metaclass, final String att, Object val, IMObjectFilter filter);\n\n @objid (\"83ef71a2-04ef-4e59-bf55-2bffe3069024\")\n <T extends MObject> T findById(Class<T> metaclass, final UUID siteIdentifier, IMObjectFilter filter);\n\n @objid (\"610f2f86-624b-469c-9c0c-6bf78147fba1\")\n <T extends MObject> Collection<T> findByClass(Class<T> metaclass);\n\n @objid (\"1540131b-bdd6-466c-a417-9e0efd220dda\")\n <T extends MObject> Collection<T> findByAtt(Class<T> metaclass, final String att, Object val);\n\n @objid (\"1b63d157-9858-4691-8636-7c625e97c65e\")\n <T extends MObject> T findById(Class<T> metaclass, final UUID siteIdentifier);\n\n}", "List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);", "public abstract Solution<T> search(Searchable<T> s);", "private void searchExec(){\r\n\t\tString key=jComboBox1.getSelectedItem().toString();\r\n\t\tkey=NameConverter.convertViewName2PhysicName(\"Discount\", key);\r\n\t\tString valueLike=searchTxtArea.getText();\r\n\t\tList<DiscountBean>searchResult=discountService.searchDiscountByKey(key, valueLike);\r\n\t\tjTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(searchResult,\"Discount\"));\r\n\t}", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "List<DataTerm> search(String searchTerm);", "abstract String classify(Instance inst);", "public String trainmodelandclassify(Attribute at) throws Exception {\n\t\tif(at.getAge()>=15 && at.getAge()<=25)\n\t\t\tat.setAgegroup(\"15-25\");\n\t\tif(at.getAge()>=26 && at.getAge()<=45)\n\t\t\tat.setAgegroup(\"25-45\");\n\t\tif(at.getAge()>=46 && at.getAge()<=65)\n\t\t\tat.setAgegroup(\"45-65\");\n\t\t\n\t\t\n\t\t\n\t\t//loading the training dataset\n\t\n\tDataSource source=new DataSource(\"enter the location of your .arff file for training data\");\n\tSystem.out.println(source);\n\tInstances traindataset=source.getDataSet();\n\t//setting the class index (which would be one less than the number of attributes)\n\ttraindataset.setClassIndex(traindataset.numAttributes()-1);\n\tint numclasses=traindataset.numClasses();\n for (int i = 0; i < numclasses; i++) {\n \tString classvalue=traindataset.classAttribute().value(i);\n \tSystem.out.println(classvalue);\n\t\t\n\t}\n //building the classifier\n NaiveBayes nb= new NaiveBayes();\n nb.buildClassifier(traindataset);\n System.out.println(\"model trained successfully\");\n \n //test the model\n\tDataSource testsource=new DataSource(\"enter the location of your .arff file for test data\");\n\tInstances testdataset=testsource.getDataSet();\n\t\n\tFileWriter fwriter = new FileWriter(\"enter the location of your .arff file for test data\",true); //true will append the new instance\n\tfwriter.write(System.lineSeparator());\n\tfwriter.write(at.getAgegroup()+\",\"+at.getGender()+\",\"+at.getProfession()+\",\"+\"?\");//appends the string to the file\n\tfwriter.close();\n\ttestdataset.setClassIndex(testdataset.numAttributes()-1);\n\t//looping through the test dataset and making predictions\n\tfor (int i = 0; i < testdataset.numInstances(); i++) {\n\t\tdouble classvalue=testdataset.instance(i).classValue();\n\t\tString actualclass=testdataset.classAttribute().value((int)classvalue);\n\t\tInstance instance=testdataset.instance(i);\n\t\tdouble pclassvalue=nb.classifyInstance(instance);\n\t\tString pclass=testdataset.classAttribute().value((int)pclassvalue);\n\t\tSystem.out.println(actualclass+\" \"+ pclass);\n\t\n}\n\tdouble classval=testdataset.instance(testdataset.numInstances()-1).classValue();\n\tInstance ins=testdataset.lastInstance();\n\tdouble pclassval=nb.classifyInstance(ins);\n\tString pclass=testdataset.classAttribute().value((int)pclassval);\n\tSystem.out.println(pclass);\n\t\n\treturn pclass;\n}", "CabinClassModel findCabinClass(Integer cabinClassIndex);", "void searchProbed (Search search);", "public void execFuzzySearchTraitFunc(){\n\n Map map = new HashMap();\n\n if(this.searchParam != null && this.searchParam.length()> 0 ){\n System.out.println(\"=============search param\"+this.searchParam );\n map.put(\"searchParam\",this.searchParam);\n }\n\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"all\") == false){\n map.put(\"species\",this.searchSpecies);\n System.out.println(\"species=\"+this.searchSpecies);\n }\n\n if(this.searchTrait != null&& this.searchTrait.equals(\"null\")==false && this.searchTrait.length()>0){\n\n\n map.put(\"searchTrait\", this.searchTrait) ;\n }\n\n if(this.pvalue != null && this.pvalue.equals(\"null\")==false&& this.pvalue.length()>0){\n\n\n map.put(\"psitu\", this.psitu);\n map.put(\"pval\", this.pvalue) ;\n }\n\n\n\n gwasAssociationList =(List<GwasAssociationBean>) baseService.findResultList(\"cn.big.gvk.dm.GwasAssociation.selecTraitByFuzzySearch\",map);\n\n if(gwasAssociationList != null && gwasAssociationList.size()>0){\n\n for(GwasAssociationBean gwas: gwasAssociationList){\n\n //trait count\n Map cmap = new HashMap();\n cmap.put(\"traitId\",gwas.getTraitId()) ;\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"all\") == false){\n cmap.put(\"species\",this.searchSpecies);\n\n }\n GwasAssociationBean tg_bean = (GwasAssociationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectAssociationCountByTraitId\",cmap);\n if(tg_bean != null ){\n gwas.setTraitCount(tg_bean.getGwasCount());\n }\n\n List<TermInformationBean> tilist = (List<TermInformationBean>)baseService.findResultList(\"cn.big.gvk.dm.Term.selectTermDefinition\",gwas.getTraitId());\n String s=\"\";\n if(tilist != null && tilist.size()>0 ){\n for(TermInformationBean tb:tilist ){\n if(tb!= null && tb.getTermDefinition() != null ){\n s+= tb.getTermDefinition() +\";\";\n }\n\n }\n }\n if(s.length()>0){\n s= s.substring(0, s.length()-1) ;\n }\n gwas.setTermDefinition(s);\n\n //study count\n GwasAssociationBean tg_bean1 = (GwasAssociationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectStudyCountByTraitid\",cmap);\n if(tg_bean1 != null ){\n gwas.setGwasCount(tg_bean1.getGwasCount());\n }\n\n }\n\n\n }\n\n StringBuffer sb = new StringBuffer();\n if(this.gwasAssociationList != null && this.gwasAssociationList.size()>0){\n for(GwasAssociationBean gwas: gwasAssociationList){\n sb.append(gwas.getTraitName()).append(\"\\t\").append(gwas.getTermDefinition()).append(\"\\t\")\n .append(gwas.getTraitCount()).append(\"\\t\").append(gwas.getGwasCount()).append(\"\\n\");\n }\n }\n\n if(format == 1 ){ //export txt\n this.response.reset();\n this.response.setHeader(\"Content-Disposition\",\n \"attachment;filename=export.txt\");\n this.response.setContentType(\"application/ms-txt\");\n try {\n PrintWriter pr = this.response.getWriter();\n pr.print(sb.toString());\n pr.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n\n }", "public interface SearchQuerySet extends QuerySet\n{\n\n // for AbstractSearch\n public static final int STAT_MODELS = 1;\n public static final int STAT_CLUSTERS = 2;\n public static final int STAT_GENOMES = 4;\n public static final int STAT_MODEL_CLUSTERS = 8;\n\n public String getStatsById(Collection data);\n public String getStatsByQuery(String query);\n public String getStatsById(Collection data,int stats);\n public String getStatsByQuery(String query,int stats);\n \n // for BlastSearch\n public String getBlastSearchQuery(Collection dbNames, Collection keys, KeyTypeUser.KeyType keyType);\n \n //for ClusterIDSearch\n public String getClusterIDSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for ClusterNameSearch\n public String getClusterNameSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for DescriptionSearch\n public String getDescriptionSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for GoSearch \n public String getGoSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for GoTextSearch\n public String getGoTextSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for IdSearch\n public String getIdSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for QueryCompSearch\n public String getQueryCompSearchQuery(String comp_id, String status, KeyTypeUser.KeyType keyType);\n \n // for QuerySearch\n public String getQuerySearchQuery(String queries_id, KeyTypeUser.KeyType keyType); \n \n // for SeqModelSearch\n public String getSeqModelSearchQuery(Collection model_ids, KeyTypeUser.KeyType keyType);\n \n // for UnknowclusterIdSearch\n public String getUnknownClusterIdSearchQuery(int cluster_id, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetSearch\n public String getProbeSetSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetKeySearch\n public String getProbeSetKeySearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for QueryTestSearch\n public String getQueryTestSearchQuery(String query_id, String version, String genome_id);\n \n // for QueryStatsSearch\n public String getQueryStatsSearchQuery(List query_ids,List DBs);\n \n // for PskClusterSearch\n public String getPskClusterSearchQuery(int cluster_id,KeyTypeUser.KeyType keyType);\n \n // for ClusterCorrSearch\n public String getClusterCorrSearchQuery(int cluster_id, int psk_id, KeyTypeUser.KeyType keyType);\n \n // for UnknownGenesSearch\n public String getUnknownGenesSearchQuery(Collection sources, KeyTypeUser.KeyType keyType);\n \n}", "@Override\n\tprotected void analyzeSystem(PipelineData data, Classifier classifier) throws Exception {\n\t\tField modelField = null;\n\n\t\tmodelField = LibSVM.class.getDeclaredField(\"m_Model\");\n\t\tmodelField.setAccessible(true);\n\t\tnumberOfSupportVectors = (int) ((svm_model) modelField.get(classifier)).l;\n\t\tnumberOfClasses = data.getFeatureSelectedInstances().numClasses();\n\t}", "java.util.List<org.landxml.schema.landXML11.ClassificationDocument.Classification> getClassificationList();", "List<PilotContainer> Search(String cas, String word);", "CabinClassModel findCabinClass(String cabinCode);", "public void start() throws Exception {\n String datasetPath = \"dataset\\\\arcene_train.arff\";\n\n Instances dataset = new Instances(fileSystemUtil.readDataSet(datasetPath));\n dataset.setClassIndex(dataset.numAttributes() - 1);\n\n // Creating instances of feature selection models\n List<FeatureSelectionModel> featureSelectionModels = new ArrayList<>();\n featureSelectionModels.add(new CorellationFeatureSelectionModel());\n featureSelectionModels.add(new InfoGainFeatureSelectionModel());\n featureSelectionModels.add(new WrapperAttributeFeatureSelectionModel());\n\n List<List<Integer>> listOfRankedLists = calculateRankedLists(dataset, featureSelectionModels);\n\n // Creating instances of classifiers\n List<AbstractClassifier> classifiers = createClassifiers();\n Instances datasetBackup = new Instances(dataset);\n\n int modelCounter = 0;\n for (FeatureSelectionModel model : featureSelectionModels) {\n System.out.println(\"============================================================================\");\n System.out.println(String.format(\"Classification, step #%d. %s.\", ++modelCounter, model));\n System.out.println(\"============================================================================\");\n\n // Ranking attributes\n List<Integer> attrRankList = listOfRankedLists.get(modelCounter - 1);\n\n for (int attrIndex = (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1) + 1, removedCounter = 0;\n attrIndex >= attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION;\n attrIndex--, removedCounter++) {\n if (datasetBackup.numAttributes() == attrRankList.size()\n && attrIndex == 0) {\n continue;\n }\n// for (int attrIndex = attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION, removedCounter = 0;\n// attrIndex <= (attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1);\n// attrIndex++, removedCounter++) {\n// if (datasetBackup.numAttributes() == attrRankList.size()\n// && attrIndex == attrRankList.size() - 1) {\n// continue;\n// }\n dataset = new Instances(datasetBackup);\n // Do not remove for first iteration\n if (removedCounter > 0) {\n // Selecting features (removing attributes one-by-one starting from worst)\n List<Integer> attrToRemoveList = attrRankList.subList(attrIndex,\n (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION));\n Collections.sort(attrToRemoveList);\n for (int i = attrToRemoveList.size() - 1; i >= 0; i--) {\n dataset.deleteAttributeAt(attrToRemoveList.get(i));\n }\n// for (Integer attr : attrToRemoveList) {\n// dataset.deleteAttributeAt(attr);\n// }\n System.out.println(\"\\n\\n-------------- \" + (removedCounter) + \" attribute(s) removed (of \" +\n (datasetBackup.numAttributes() - 1) + \") --------------\\n\");\n } else {\n System.out.println(\"\\n\\n-------------- First iteration - without feature selection --------------\\n\");\n }\n\n classify(classifiers, dataset);\n }\n }\n }", "private boolean searchOntology(String term) {\n boolean found;\n if (ontologyOwlClassVocabulary.containsKey(term)\n || ontologyOWLDataPropertyVocabulary.containsKey(term)\n || ontologyOWLNamedIndividualVocabulary.containsKey(term)\n || ontologyOWLObjectPropertylVocabulary.containsKey(term)) {\n found = true;\n } else {\n found = false;\n }\n return found;\n }", "@Override\r\n\tpublic List<Product> search(String key) {\n\tProductExample example = new ProductExample();\r\n\texample.createCriteria().andNameLike(\"%\"+key+\"%\");\r\n\texample.setOrderByClause(\"id desc\");\r\n\tList<Product> list = productMapper.selectByExample(example);\r\n\tsetAll(list);\r\n\treturn list;\r\n\t\t}", "public interface IClassifierService extends IGenericService<Classifier, Long>{\n\n /**\n * Verify code error message.\n *\n * @param code the code\n * @param year the year\n * @param exception the exception\n * @return the error message\n */\n public ErrorMessage verifyCode(String code, Integer year, Long exception);\n\n /**\n * Gets by path.\n *\n * @param path the path\n * @return the by path\n */\n public Classifier getByPath(String path);\n\n /**\n * Gets parent.\n *\n * @param path the path\n * @return the parent\n */\n public Classifier getParent(String path);\n\n /**\n * Gets generic.\n *\n * @param path the path\n * @return the generic\n */\n public Classifier getGeneric(String path);\n\n /**\n * Get parent info object [ ].\n *\n * @param path the path\n * @return the object [ ]\n */\n public Object[] getParentInfo(String path);\n\n /**\n * Gets generic classifiers.\n *\n * @return the generic classifiers\n */\n public List<Classifier> getGenericClassifiers();\n}", "public void dmall() {\n \r\n BufferedReader datafile = readDataFile(\"Work//weka-malware.arff\");\r\n \r\n Instances data = null;\r\n\t\ttry {\r\n\t\t\tdata = new Instances(datafile);\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n data.setClassIndex(data.numAttributes() - 1);\r\n \r\n // Choose a type of validation split\r\n Instances[][] split = crossValidationSplit(data, 10);\r\n \r\n // Separate split into training and testing arrays\r\n Instances[] trainingSplits = split[0];\r\n Instances[] testingSplits = split[1];\r\n \r\n // Choose a set of classifiers\r\n Classifier[] models = { new J48(),\r\n new DecisionTable(),\r\n new DecisionStump(),\r\n new BayesianLogisticRegression() };\r\n \r\n // Run for each classifier model\r\n//for(int j = 0; j < models.length; j++) {\r\n int j = 0;\r\n \tswitch (comboClassifiers.getSelectedItem().toString()) {\r\n\t\t\tcase \"J48\":\r\n\t\t\t\tj = 0;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionTable\":\r\n\t\t\t\tj = 1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionStump\":\r\n\t\t\t\tj = 2;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"BayesianLogisticRegression\":\r\n\t\t\t\tj = 3;\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\r\n\r\n // Collect every group of predictions for current model in a FastVector\r\n FastVector predictions = new FastVector();\r\n \r\n // For each training-testing split pair, train and test the classifier\r\n for(int i = 0; i < trainingSplits.length; i++) {\r\n Evaluation validation = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tvalidation = simpleClassify(models[j], trainingSplits[i], testingSplits[i]);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n predictions.appendElements(validation.predictions());\r\n \r\n // Uncomment to see the summary for each training-testing pair.\r\n// textArea.append(models[j].toString() + \"\\n\");\r\n textArea.setText(models[j].toString() + \"\\n\");\r\n// System.out.println(models[j].toString());\r\n }\r\n \r\n // Calculate overall accuracy of current classifier on all splits\r\n double accuracy = calculateAccuracy(predictions);\r\n \r\n // Print current classifier's name and accuracy in a complicated, but nice-looking way.\r\n textArea.append(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\\n\");\r\n System.out.println(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\");\r\n//}\r\n \r\n\t}", "void searchConstraintHit (Search search);", "public boolean selectFromAvailableModels() throws Exception{\r\n\t\t\r\n\t\tboolean rB=false;\r\n\t\t\t\r\n\t\tbaseFolder = soappProperties.getBaseModelFolder() ;\r\n\t\t\t\t\t // sth like: \"D:/data/projects/_classifierTesting/bank2/models\"\r\n\t\t\r\n\t\tactiveModel = soappProperties.getActiveModel() ; // sth like \"bank2\" \r\n\t\t// this refers to the name of the project as it is contained in the model file!!\r\n\t\t// on first loading, a catalog of available model will be created for faster access if it does not exists\r\n\t\r\n\t\tif (activeModel.length()>0){ \r\n\t\t\t\t\t\t\t\t\t\t\tout.print(2, \"checking model catalog associated with selected project ...\") ;\r\n\t\t\tcheckCreateLocationCatalog() ;\r\n\t\t} else{\r\n\t\t\t// alternatively, we set the active model to blank here, and provide the package name ;\r\n\t\t\t// whenever the active model name is given (and existing) it will be preferred!\r\n\t\t\t \r\n\t\t\tmodelPackageName = soappProperties.getModelPackageName();\r\n\t\t\tactiveModel = getModelThroughPackage(modelPackageName ) ;\r\n\t\t}\r\n\t\t\r\n\t\t// now reading from the modelcatalog.dat\r\n\t\t\r\n\t\t/*\r\n\t \t_MODELSELECT_LATEST = 1;\r\n\t\t_MODELSELECT_FIRSTFOUND = 2;\r\n\t\t_MODELSELECT_BEST = 4;\r\n\t\t_MODELSELECT_ROBUST = 8;\r\n\t\t_MODELSELECT_VERSION = 16 ;\r\n\t\t */\r\n\t\tModelCatalogItem mcItem= null, mci = null ;\r\n\r\n\t\tif (soappModelCatalog.size()>0){\r\n\t\t\tint m=0;\r\n\t\t\tboolean mciOK=false;\r\n\t\t\t\r\n\t\t\twhile ( (mciOK==false) && (mcItem==null) && (m<soappModelCatalog.size())){\r\n\t\t\t\t\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_FIRSTFOUND){\r\n\t\t\t\t\tmci = soappModelCatalog.getItem(m);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_LATEST){\r\n\t\t\t\t\tmci = soappModelCatalog.getLatestItem();\r\n\t\t\t\t}\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_BEST){\r\n\t\t\t\t\tmci = soappModelCatalog.getBestItem();\r\n\t\t\t\t}\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_VERSION){\r\n\t\t\t\t\tmci = soappModelCatalog.getItemByModelname( activeModel, soappProperties.preferredModelVersion ) ;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// checking whether the model contains the required fields mcItem.requiredfields\r\n\t\t\t\tif (modelCheckRequirements(mci) == false ){\r\n\t\t\t\t\tsoappModelCatalog.addToExcludedItems(mci);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmciOK=true;\r\n\t\t\t\t\tmcItem = mci;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm++;\r\n\t\t\t} // ->\r\n\t\t\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmcItem=null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tactiveModel = \"\" ;\r\n\t\tactiveVersion = \"\" ;\r\n\t\t\r\n\t\tif (mcItem!=null){\r\n\t\t\tactiveVersion = mcItem.modelVersion;\r\n\t\t\tactiveModel = mcItem.modelName;\r\n\t\t\trB=true;\r\n\t\t\t\r\n\t\t\tif (activeModel.length()==0){\r\n\t\t\t\trB = false;\r\n\t\t\t}\r\n\t\t\tif (activeVersion.length()==0){\r\n\t\t\t\trB = false;\r\n\t\t\t}\r\n\r\n\t\t}else{ // mcItem ?\r\n\t\t\tout.print(2,\"No matching model (by required fields) found in the list (n=\"+soappModelCatalog.size()+\") of available models.\");\r\n\t\t}\r\n\t\treturn rB;\r\n\t}", "private void search(String product) {\n // ..\n }", "public interface IClassIdentificator {\n\n public static IClassIdentificator create(EObject eObject, Collection<IMatchException> exceptions) {\n EClass eClass = eObject.eClass();\n for (IMatchException exception : exceptions) {\n if (exception.applies(eClass))\n return exception;\n }\n return new SimpleClassIdentificator(eClass.getName());\n }\n\n public static List<IClassIdentificator> create(List<String> classNames, MetamodelHandle metamodel1, MetamodelHandle metamodel2) throws MetamodelAssessorIoException {\n List<IClassIdentificator> ids = new ArrayList<>(classNames.size());\n for (String className : classNames) {\n if (IMatchException.canParse(className)) {\n ids.add(IMatchException.parse(className, metamodel1, metamodel2));\n } else {\n ids.add(new SimpleClassIdentificator(className));\n }\n }\n return ids;\n }\n\n /**\n * Checks (for the metamodel specified in the {@link AnalysisContext}) if the eClass is searched\n * by this identificator.\n * \n * @param eClass\n * that should be ckecked\n * @return if the eClass is amongst the ones that should identified by this identificator\n */\n boolean matches(EClass eClass);\n\n List<String> getMatchingErrorsAndReset();\n}", "@Override\r\n\tpublic Object getModel() {\n\t\treturn searchInfo;\r\n\t}", "@Override\n\tpublic List<Literature> searchKeywords() {\n\t\treturn null;\n\t}", "public interface Algorithm {\n /**\n * Initialize the data store and verifies the data in it.\n * \n * @param datastore\n * @throws InvalidDatastoreException\n */\n void initialize(Datastore datastore) throws InvalidDatastoreException;\n \n /**\n * Classify the document and return the Result\n * \n * @param document\n * The document to classify\n * @param datastore\n * The data store(InMemory)\n * @param defaultCategory\n * The default category to assign Ties are broken by comparing the category\n * @return A Collection of {@link org.apache.mahout.classifier.ClassifierResult}s.\n * @throws InvalidDatastoreException\n */\n ClassifierResult classifyDocument(String[] document,\n Datastore datastore,\n String defaultCategory) throws InvalidDatastoreException;\n \n /**\n * Classify the document and return the top {@code numResults}\n *\n * @param document\n * The document to classify\n * @param datastore\n * The {@link Datastore} (InMemory)\n * @param defaultCategory\n * The default category to assign\n * @param numResults\n * The maximum number of results to return, ranked by score. Ties are broken by comparing the\n * category\n * @return A Collection of {@link ClassifierResult}s.\n * @throws InvalidDatastoreException\n */\n ClassifierResult[] classifyDocument(String[] document,\n Datastore datastore,\n String defaultCategory,\n int numResults) throws InvalidDatastoreException;\n \n /**\n * Get the weighted probability of the feature.\n * \n * @param datastore\n * The {@link Datastore} (InMemory)\n * @param label\n * The label of the feature\n * @param feature\n * The feature to calc. the prob. for\n * @return The weighted probability\n * @throws InvalidDatastoreException\n */\n double featureWeight(Datastore datastore, String label, String feature) throws InvalidDatastoreException;\n \n /**\n * Calculate the document weight as the dot product of document vector and the corresponding weight vector\n * of a particular class\n * \n * @param datastore\n * The {@link Datastore} (InMemory)\n * @param label\n * The label to calculate the probability of\n * @param document\n * The document\n * @return The probability\n * @see Algorithm#featureWeight(Datastore, String, String)\n */\n double documentWeight(Datastore datastore, String label, String[] document);\n \n /**\n * Returns the labels in the given Model\n * \n * @param datastore\n * The {@link Datastore} (InMemory)\n * @throws InvalidDatastoreException\n * @return {@link Collection} of labels\n */\n Collection<String> getLabels(Datastore datastore) throws InvalidDatastoreException;\n}", "boolean getSearchable();", "public String getSearchClass() {\r\n return searchClass;\r\n }", "public FindResult findClass(String className);", "List<String> getTargetClassifications(Observation obs);", "public List<VirtualMachine> search(SearchCriteria searchCriteria, SearchMode mode,\n List<SearchCriterionType> searchOrder);", "public void searchTest() {\n\t\ttry {\n\t\t\tString keyword = \"操作道具\";\n\t\t\t// 使用IKQueryParser查询分析器构造Query对象\n\t\t\tQuery query = IKQueryParser.parse(LogsEntry.INDEX_FILED_CONTENT, keyword);\n\n\t\t\t// 搜索相似度最高的5条记录\n\t\t\tint querySize = 5;\n\t\t\tTopDocs topDocs = isearcher.search(query, null, querySize, sort);\n\t\t\tlogger.info(\"命中:{}\", topDocs.totalHits);\n\t\t\t// 输出结果\n\t\t\tScoreDoc[] scoreDocs = topDocs.scoreDocs;\n\t\t\tfor (int i = 0; i < scoreDocs.length; i++) {\n\t\t\t\tDocument targetDoc = isearcher.doc(scoreDocs[i].doc);\n\t\t\t\tlogger.info(\"内容:{}\", targetDoc.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "public void setClassifier(Classifier classifier) {\n this.classifier = classifier;\n //setClassifier(classifier, false);\n }", "public static ArrayList<Classification> getAllClassifications() {\n\t\tString path = ALL_CLASSIF;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\treturn getClassifications(response);\n\t}", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n FilteredClassifier filteredClassifier0 = new FilteredClassifier();\n try { \n Evaluation.evaluateModel((Classifier) filteredClassifier0, testInstances0.DEFAULT_WORDS);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // Weka exception: No training file and no object input file given.\n // \n // General options:\n // \n // -h or -help\n // \\tOutput help information.\n // -synopsis or -info\n // \\tOutput synopsis for classifier (use in conjunction with -h)\n // -t <name of training file>\n // \\tSets training file.\n // -T <name of test file>\n // \\tSets test file. If missing, a cross-validation will be performed\n // \\ton the training data.\n // -c <class index>\n // \\tSets index of class attribute (default: last).\n // -x <number of folds>\n // \\tSets number of folds for cross-validation (default: 10).\n // -no-cv\n // \\tDo not perform any cross validation.\n // -split-percentage <percentage>\n // \\tSets the percentage for the train/test set split, e.g., 66.\n // -preserve-order\n // \\tPreserves the order in the percentage split.\n // -s <random number seed>\n // \\tSets random number seed for cross-validation or percentage split\n // \\t(default: 1).\n // -m <name of file with cost matrix>\n // \\tSets file with cost matrix.\n // -l <name of input file>\n // \\tSets model input file. In case the filename ends with '.xml',\n // \\ta PMML file is loaded or, if that fails, options are loaded\n // \\tfrom the XML file.\n // -d <name of output file>\n // \\tSets model output file. In case the filename ends with '.xml',\n // \\tonly the options are saved to the XML file, not the model.\n // -v\n // \\tOutputs no statistics for training data.\n // -o\n // \\tOutputs statistics only, not the classifier.\n // -i\n // \\tOutputs detailed information-retrieval statistics for each class.\n // -k\n // \\tOutputs information-theoretic statistics.\n // -classifications \\\"weka.classifiers.evaluation.output.prediction.AbstractOutput + options\\\"\n // \\tUses the specified class for generating the classification output.\n // \\tE.g.: weka.classifiers.evaluation.output.prediction.PlainText\n // -p range\n // \\tOutputs predictions for test instances (or the train instances if\n // \\tno test instances provided and -no-cv is used), along with the \n // \\tattributes in the specified range (and nothing else). \n // \\tUse '-p 0' if no attributes are desired.\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -distribution\n // \\tOutputs the distribution instead of only the prediction\n // \\tin conjunction with the '-p' option (only nominal classes).\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -r\n // \\tOnly outputs cumulative margin distribution.\n // -g\n // \\tOnly outputs the graph representation of the classifier.\n // -xml filename | xml-string\n // \\tRetrieves the options from the XML-data instead of the command line.\n // -threshold-file <file>\n // \\tThe file to save the threshold data to.\n // \\tThe format is determined by the extensions, e.g., '.arff' for ARFF \n // \\tformat or '.csv' for CSV.\n // -threshold-label <label>\n // \\tThe class label to determine the threshold data for\n // \\t(default is the first label)\n // \n // Options specific to weka.classifiers.meta.FilteredClassifier:\n // \n // -F <filter specification>\n // \\tFull class name of filter to use, followed\n // \\tby filter options.\n // \\teg: \\\"weka.filters.unsupervised.attribute.Remove -V -R 1,2\\\"\n // -D\n // \\tIf set, classifier is run in debug mode and\n // \\tmay output additional info to the console\n // -W\n // \\tFull name of base classifier.\n // \\t(default: weka.classifiers.trees.J48)\n // \n // Options specific to classifier weka.classifiers.trees.J48:\n // \n // -U\n // \\tUse unpruned tree.\n // -O\n // \\tDo not collapse tree.\n // -C <pruning confidence>\n // \\tSet confidence threshold for pruning.\n // \\t(default 0.25)\n // -M <minimum number of instances>\n // \\tSet minimum number of instances per leaf.\n // \\t(default 2)\n // -R\n // \\tUse reduced error pruning.\n // -N <number of folds>\n // \\tSet number of folds for reduced error\n // \\tpruning. One fold is used as pruning set.\n // \\t(default 3)\n // -B\n // \\tUse binary splits only.\n // -S\n // \\tDon't perform subtree raising.\n // -L\n // \\tDo not clean up after the tree has been built.\n // -A\n // \\tLaplace smoothing for predicted probabilities.\n // -J\n // \\tDo not use MDL correction for info gain on numeric attributes.\n // -Q <seed>\n // \\tSeed for random data shuffling (default 1).\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "public List<ModelClass> searchModelByName(String searchKey)\n throws StorageIOException {\n \n if (searchKey == null) {\n throw new IllegalStateException(\"searchKey can not be null\");\n }\n \n try {\n Dao<ModelDB, String> modelDao = this.databaseHelper.getDao(ModelDB.class);\n QueryBuilder<ModelDB, String> queryBuilder = modelDao.queryBuilder();\n \n queryBuilder.where().like(\"name\", searchKey);\n queryBuilder.orderBy(\"name\", true);\n \n List<ModelDB> entities = modelDao.query(queryBuilder.prepare());\n List<ModelClass> models = new ArrayList<ModelClass>(entities.size());\n\n for (ModelDB e : entities) {\n models.add(dbToClass(e));\n }\n\n return models;\n } catch (SQLException e) {\n throw new StorageIOException(\"ModelClass search with searchKey: '\" + searchKey + \"' failed\", e);\n }\n }", "@objid (\"10a41285-16e7-11e2-b24b-001ec947ccaf\")\n MObject findByRef(MRef ref, IMObjectFilter filter) throws UnknownMetaclassException;", "@Override\n public void processCas(CAS aCas) throws ResourceProcessException {\nSystem.out.println(\"Retrival evaluator...\");\n JCas jcas;\n try {\n jcas = aCas.getJCas();\n } catch (CASException e) {\n throw new ResourceProcessException(e);\n }\n\n FSIterator it = jcas.getAnnotationIndex(Document.type).iterator();\n \n// if (it.hasNext()) {\n// Document doc = (Document) it.next();\n// cnt++;\n// }\n// log(cnt);\n it = jcas.getAnnotationIndex(Document.type).iterator();\n\n if (it.hasNext()) {\n Document doc = (Document) it.next();\n int queryid = doc.getQueryID();\n int rel = doc.getRelevanceValue();\n // Make sure that your previous annotators have populated this in CAS\n FSList fsTokenList = doc.getTokenList();\n ArrayList<Token> tokenList = Utils.fromFSListToCollection(fsTokenList, Token.class);\n Map<String, Integer> queryVector = new HashMap<String, Integer>();\n Map<String, Integer> docVector = new HashMap<String, Integer>();\n if (rel == 99) {\n for (Token t : tokenList) {\n queryVector.put(t.getText(), t.getFrequency());\n }\n queryVectorlist.add(queryVector);\n } else {\n for (Token t : tokenList) {\n docVector.put(t.getText(), t.getFrequency());\n }\n double cos = computeCosineSimilarity(queryVectorlist.get(queryid - 1), docVector);\n coslist.add(cos);\n\n if (rel == 1) {\n gold = lines;\n goldcos = cos;\n System.out.println(\"goldcos\"+goldcos);\n }\n }\n \n if (qIdList.size() >= 1 && qIdList.get(qIdList.size() - 1) != queryid) {\n// System.out.println(\"lines:\"+lines);\n sortSimilarity(coslist);\n log(coslist);\n int rank=findRank(coslist,goldcos);\n rankList.add(rank);\n coslist = new ArrayList<Double>();\n }\n\n qIdList.add(doc.getQueryID());// 有啥用???\n relList.add(doc.getRelevanceValue());\n\n // Do something useful here\n lines++;\n }\n //log(coslist);\n\n }", "List<OrgRelationship> searchStores(String keyword,String path,String type) ;", "org.landxml.schema.landXML11.ClassificationDocument.Classification[] getClassificationArray();", "public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);", "@Override\n\tpublic Class<?> getRecommendedClassifier() {\n\t\treturn null;\n\t}", "public abstract ParameterVector searchVector();", "public void extractKnowledge()\n {\n }", "List<Corretor> search(String query);", "public interface Searchable {\n\n}", "public interface SearchService {\n\n List<GoodEntity> analyse(List<String> keywords);\n}", "public abstract void printClassifier();", "public static void main(String[] args){\n\t\tString[] model = readFile(args[0]);\n\t\tString[] data = readFile(args[1]);\n\t\t\n\t\t//create graphs\n\t\tgraph datag = new graph(data);\n\t\tgraph modelg = new graph(model);\n\t\t\n\t\t//search and output isomorphisms\n\t\tTuple[] h = new Tuple[modelg.V.length]; \n \t\tsearch(modelg, datag, h);\n\t}", "public interface fileSearch {\r\n /**\r\n * 根据Condition条件进行数据库的检索\r\n */\r\n List<Thing> search(Condition condition);\r\n}", "public void execFuzzySearchCustomWordFunc(){\n Map map = new HashMap();\n\n if(this.searchParam != null && this.searchParam.length()> 0 ){\n map.put(\"searchParam\",this.searchParam);\n }\n\n int idenfilter = 0 ;\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"all\") == false){\n idenfilter = 1;\n map.put(\"species\",this.searchSpecies.trim());\n }\n\n\n if(this.searchTrait != null && this.searchTrait.equals(\"null\")==false && this.searchTrait.length()>0){\n idenfilter =1;\n List traitlist = new ArrayList();\n if(this.searchTrait.indexOf(\",\")>-1){\n String [] traits = this.searchTrait.split(\",\");\n if(traits != null && traits.length>0){\n for(String tr:traits){\n traitlist.add(tr);\n }\n }\n }else{\n traitlist.add(this.searchTrait);\n }\n map.put(\"traitlist\", traitlist) ;\n }\n\n if(this.pvalue != null && this.pvalue.equals(\"null\")==false && this.pvalue.length()>0 ){\n idenfilter =1;\n map.put(\"psitu\", this.psitu);\n map.put(\"pval\", this.pvalue) ;\n }\n\n //this is search customword\n List<SearchItemBean> searchlist = (List<SearchItemBean>) baseService.findResultList(\"cn.big.gvk.dm.Search.selectCustomWordBySearch\",map);\n if( searchlist != null ){\n gwasAssociationList = new ArrayList<GwasAssociationBean>() ;\n mapGeneBeanList = new ArrayList<MapGeneBean>();\n for(SearchItemBean tmpbean : searchlist){\n if(tmpbean != null ){\n if(tmpbean.getItemType() == 1){\n //selecTraitByFuzzySearch\n Map cmp = new HashMap();\n cmp.put(\"traitId\", tmpbean.getItemId());\n GwasAssociationBean tmpgwas = (GwasAssociationBean) baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selecTraitByFuzzySearch\",cmp);\n if(tmpgwas != null ){\n //trait count\n Map cmap = new HashMap();\n cmap.put(\"traitId\",tmpgwas.getTraitId()) ;\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"all\") == false){\n cmap.put(\"species\",this.searchSpecies);\n\n }\n GwasAssociationBean tg_bean = (GwasAssociationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectAssociationCountByTraitId\",cmap);\n if(tg_bean != null ){\n tmpgwas.setTraitCount(tg_bean.getGwasCount());\n }\n\n List<TermInformationBean> tilist = (List<TermInformationBean>)baseService.findResultList(\"cn.big.gvk.dm.Term.selectTermDefinition\",tmpgwas.getTraitId());\n String s=\"\";\n if(tilist != null && tilist.size()>0 ){\n for(TermInformationBean tb:tilist ){\n if(tb!= null && tb.getTermDefinition() != null ){\n s+= tb.getTermDefinition() +\";\";\n }\n\n }\n }\n if(s.length()>0){\n s= s.substring(0, s.length()-1) ;\n }\n tmpgwas.setTermDefinition(s);\n\n //study count\n GwasAssociationBean tg_bean1 = (GwasAssociationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectStudyCountByTraitid\",cmap);\n if(tg_bean1 != null ){\n tmpgwas.setGwasCount(tg_bean1.getGwasCount());\n }\n gwasAssociationList.add(tmpgwas) ;\n }\n }else if(tmpbean.getItemType() == 2){\n Map cmp = new HashMap();\n cmp.put(\"gid\",tmpbean.getItemId()) ;\n MapGeneBean mgb = (MapGeneBean) baseService.findObjectByObject(\"cn.big.gvk.dm.MapGene.selectMapGeneCount\",cmp);\n if(mgb != null ){\n Map t = new HashMap();\n t.put(\"gId\",mgb.getGid()) ;\n t.put(\"count\",\"count\");\n\n //trait count\n GwasAssociationView gwas = (GwasAssociationView) baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectGwasViewByGeneInfo\",t);\n if(gwas != null){\n mgb.setTraitCount(gwas.getTraitCount());\n }\n\n //study count\n StudyBean study = (StudyBean) baseService.findObjectByObject(\"cn.big.gvk.dm.study.selectStudyByMapGeneId\",t);\n if(study != null ){\n mgb.setStudyCount(study.getStudyCount());\n }\n\n //publication count\n PublicationBean publication = (PublicationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.publication.selectPubByGeneId\",t);\n if (publication != null ){\n mgb.setPublicationCount(publication.getPublicationCount());\n }\n mapGeneBeanList.add(mgb) ;\n\n }\n\n }\n }\n }\n }\n\n StringBuffer sb = new StringBuffer();\n //generate hidden html table and then use tableExport.js export\n if(gwasAssociationList != null && gwasAssociationList.size()>0){\n for(GwasAssociationBean gwas : gwasAssociationList){\n sb.append(gwas.getTraitName()).append(\"\\t\").append(gwas.getTermDefinition()).append(\"\\t\").append(gwas.getTraitCount()).append(\"\\t\").append(gwas.getGwasCount()).append(\"\\n\");\n }\n }\n\n if(mapGeneBeanList != null && mapGeneBeanList.size()>0){\n for(MapGeneBean mapgene: mapGeneBeanList){\n sb.append(mapgene.getMapGeneId()).append(\"\\t\").append(mapgene.getMapGeneChrom()).append(\":\")\n .append(mapgene.getMapGeneStart()).append(\"-\").append(mapgene.getMapGeneEnd()).append(\"\\t\").append(mapgene.getTraitCount()).append(\"\\t\")\n .append(mapgene.getStudyCount()).append(\"\\n\");\n }\n }\n\n if(format == 1 ){ //export txt\n this.response.reset();\n this.response.setHeader(\"Content-Disposition\",\n \"attachment;filename=export.txt\");\n this.response.setContentType(\"application/ms-txt\");\n try {\n PrintWriter pr = this.response.getWriter();\n pr.print(sb.toString());\n pr.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n\n\n }", "@Override\r\n public void buildClassifier(Instances instances) throws Exception {\n getCapabilities().testWithFail(instances);\r\n\r\n // remove instances with missing class\r\n instances = new Instances(instances);\r\n instances.deleteWithMissingClass();\r\n\r\n // ensure we have a data set with discrete variables only and with no\r\n // missing values\r\n instances = normalizeDataSet(instances);\r\n\r\n // copy instances to local field\r\n// m_Instances = new Instances(instances);\r\n m_Instances = instances;\r\n\r\n // initialize arrays\r\n int numClasses = m_Instances.classAttribute().numValues();\r\n m_Structures = new BayesNet[numClasses];\r\n m_cInstances = new Instances[numClasses];\r\n // m_cEstimator = new DiscreteEstimatorBayes(numClasses, m_fAlpha);\r\n\r\n for (int iClass = 0; iClass < numClasses; iClass++) {\r\n splitInstances(iClass);\r\n }\r\n\r\n // update probabilty of class label, using Bayesian network associated\r\n // with the class attribute only\r\n Remove rFilter = new Remove();\r\n rFilter.setAttributeIndices(\"\" + (m_Instances.classIndex() + 1));\r\n rFilter.setInvertSelection(true);\r\n rFilter.setInputFormat(m_Instances);\r\n Instances classInstances = new Instances(m_Instances);\r\n classInstances = Filter.useFilter(classInstances, rFilter);\r\n\r\n m_cEstimator = new BayesNet();\r\n SimpleEstimator classEstimator = new SimpleEstimator();\r\n classEstimator.setAlpha(m_fAlpha);\r\n m_cEstimator.setEstimator(classEstimator);\r\n m_cEstimator.buildClassifier(classInstances);\r\n\r\n /*combiner = new LibSVM(); \r\n FastVector classFv = new FastVector(2);\r\n classFv.addElement(CNTL);\r\n classFv.addElement(CASE);\r\n Attribute classAt = new Attribute(m_Instances.classAttribute().name(), \r\n classFv);\r\n attributesFv = new FastVector(m_Structures.length);\r\n attributesFv.addElement(classAt);\r\n for (int i = 0; i < m_Instances.classAttribute().numValues(); i++){\r\n if (!m_Instances.classAttribute().value(i).equals(CNTL))\r\n attributesFv.addElement(new Attribute(m_Instances.classAttribute\r\n ().value(i)));\r\n }\r\n combinerTrain = new Instances(\"combinertrain\", attributesFv, \r\n m_Instances.numInstances());\r\n combinerTrain.setClassIndex(0);\r\n for (int i = 0; i < m_Instances.numInstances(); i++){\r\n double[] probs = super.distributionForInstance(m_Instances.instance(i));\r\n Instance result = new Instance(attributesFv.size()); \r\n if (!m_Instances.classAttribute().value(m_Instances.instance(i).\r\n classIndex()).equals(CNTL))\r\n result.setValue(classAt, CASE);\r\n else\r\n result.setValue(classAt, CNTL);\r\n for (int j = 0; j < attributesFv.size(); j++){\r\n if (!attributesFv.elementAt(j).equals(classAt)){\r\n Attribute current = (Attribute) attributesFv.elementAt(j);\r\n result.setValue(current, \r\n probs[m_Instances.classAttribute().indexOfValue\r\n (current.name())]);\r\n }\r\n }\r\n combinerTrain.add(result);\r\n }\r\n combinerTrain = discretize(combinerTrain);\r\n combiner.buildClassifier(combinerTrain);*/\r\n }", "void findMatchings(boolean isProtein) {\n\n GraphDatabaseFactory dbFactory = new GraphDatabaseFactory();\n HashSet<String > searchSpaceList = new HashSet<>();\n GraphDatabaseService databaseService = dbFactory.newEmbeddedDatabase(graphFile);\n for (int id: queryGraphNodes.keySet()) {\n if(isProtein)\n searchSpaceList.add(queryGraphNodes.get(id).label);\n else\n searchSpaceList.add(String.valueOf(queryGraphNodes.get(id).labels.get(0)));\n }\n for(String x: searchSpaceList) {\n ResourceIterator<Node> xNodes;\n try(Transaction tx = databaseService.beginTx()) {\n xNodes = databaseService.findNodes(Label.label(x));\n tx.success();\n }\n\n while (xNodes.hasNext()) {\n Node node = xNodes.next();\n if (searchSpaceProtein.containsKey(x))\n searchSpaceProtein.get(x).add(node.getId());\n else {\n HashSet<Long> set = new HashSet<>();\n set.add(node.getId());\n searchSpaceProtein.put(x, set);\n }\n }\n\n }\n\n if(isProtein)\n search(0, databaseService, true);\n else\n search(0, databaseService, false);\n databaseService.shutdown();\n }", "ArtistCommunitySearch searchConnectedArtist(ArtistCommunitySelectableIdentity selectedIdentity);", "public interface IClassifierService {\n\n List<String> detectImage(byte[] pixels) throws IOException;\n}", "ArtistCommunitySearch getArtistSearch();", "Collection<? extends PM_Learning_Material> getHasRecommendation();", "public abstract HashMap search(String keyword);", "Classifier getType();", "protected abstract <T> T match(SelectorModel<T> model, T element);", "public ArrayList<Classifier> select(Instances data) throws Exception {\r\n\t\tArrayList<Classifier> classifiers = new ArrayList<Classifier>();\r\n\r\n\t\tclassifiers.add(selectBestJ48(data));\r\n\t\tclassifiers.add(selectBestZeroR(data));\r\n\t\tclassifiers.add(selectBestConjunctive(data));\r\n\t\tclassifiers.add(selectBestOneR(data));\r\n\t\tclassifiers.add(selectBestVFI(data));\r\n\t\tclassifiers.add(selectBestNaiveBayes(data));\r\n\t\tclassifiers.add(selectBestBayesNet(data));\r\n\t\tclassifiers.add(selectBestRBFNetwork(data));\r\n\r\n\t\treturn classifiers;\r\n\t}" ]
[ "0.5939348", "0.59285533", "0.5891307", "0.58726954", "0.58364576", "0.5810727", "0.5755398", "0.56820065", "0.55190796", "0.55090326", "0.55090326", "0.5506014", "0.54967535", "0.5479938", "0.54754436", "0.5470735", "0.54506755", "0.5443677", "0.5435942", "0.54358727", "0.543189", "0.5413319", "0.53715223", "0.5361403", "0.5344599", "0.5342762", "0.53381425", "0.5317517", "0.5315738", "0.52815217", "0.5264177", "0.5260983", "0.52391773", "0.5237183", "0.52203727", "0.52119243", "0.52098995", "0.52096194", "0.51992", "0.5192221", "0.518198", "0.51811713", "0.51795334", "0.5168971", "0.51590824", "0.5156382", "0.51512855", "0.51486987", "0.5140658", "0.51372296", "0.5130501", "0.5129375", "0.5127517", "0.5117908", "0.5090898", "0.5082847", "0.5078538", "0.50719017", "0.5068773", "0.50649637", "0.5064735", "0.5060026", "0.5051446", "0.50443345", "0.50405365", "0.5027861", "0.5024662", "0.50195295", "0.5019405", "0.50181824", "0.50169617", "0.5009086", "0.5008451", "0.50043845", "0.500365", "0.50017816", "0.4997761", "0.4991776", "0.4990997", "0.49815375", "0.4973433", "0.49674585", "0.49596265", "0.4953192", "0.49517077", "0.4951444", "0.4938347", "0.4938223", "0.49358982", "0.4935413", "0.4934754", "0.4933009", "0.4930579", "0.49244052", "0.49106082", "0.4907464", "0.4906092", "0.49057907", "0.49057305", "0.48970646" ]
0.5128907
52
classifiers in the metamodel
public List<EClassifier> getEClassifiers () { return this.classifiers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Classifier getClassifier();", "@Override\r\n\tpublic void buildClassifier(Instances data) throws Exception {\n\r\n\t}", "public interface RelationalClassifier extends Classifier {\r\n}", "Classifier getBase_Classifier();", "public int getNumEClassifiers () { \r\n\t\treturn this.classifiers.size(); \r\n\t}", "public List<String> classifiers()\n\t{\n\t\t//If the classifier list has not yet been constructed then go ahead and do it\n\t\tif (c.isEmpty())\n\t\t{\n\t\t\tfor(DataSetMember<t> member : _data)\n\t\t\t{\n\t\t\t\tif (!c.contains(member.getCategory()))\n\t\t\t\t\t\tc.add(member.getCategory().toString());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn c;\n\t}", "@Override\n public Classifier getClassifier() {\n return this.classifier;\n }", "@Override\n\tpublic void buildClassifier(Instances data) throws Exception {\n decision_tree = new MyID3();\n\t\tdecision_tree.buildClassifier(data);\n\n//\t\tSystem.out.println(decision_tree.toString());\n\n train_data = data;\n\n set_of_rule = convertTreeIntoRules(decision_tree);\n\n\n // DONT DELETE THISSSS\n set_of_rule.setTrainData(data);\n\n List<Rule> listrule = set_of_rule.getList_rule();\n System.out.println(\"\\n\\n\\nBEFORE PRUNEDDD\");\n for (int i = 0; i < listrule.size(); i++ ){\n System.out.println(\"Rule \"+i+\" :\");\n Rule rule = listrule.get(i);\n List<Edge> edges = rule.getPreconditions();\n for (int j=0; j< edges.size(); j++) {\n System.out.println(\"\\t-\"+edges.get(j).getAttribute_name() + \" = \" + edges.get(j).getAttribute_value());\n }\n System.out.println(\"\\tClass = \"+rule.getClass_value());\n }\n\n// selectBestSetofRule();\n\n\t}", "public String getClassifier() {\n return _classifier;\n }", "public List<String> useTreeOnData() {\n\t\tList<String> classifierWithData = new ArrayList<String>();\n\t\tString header = \"LEARND\\tACTUAL\";\n\t\tfor (String s : attributeNames) {\n\t\t\tchar[] truncated = Arrays.copyOf(s.toCharArray(),5);\n\t\t\tString tr = \"\";\n\t\t\tfor (int i = 0; i < 5 && Character.isAlphabetic(truncated[i]); i++) {\n\t\t\t\ttr += truncated[i];\n\t\t\t}\n\t\t\theader += \"\\t\"+ tr +\".\";\n\t\t}\n\t\tclassifierWithData.add(header);\n\t\tif (root == null || data == null || attributeNames.size() == 0) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tfor (Instance inst : data) {\n\t\t\tString s = root.classify(inst) +\"\\t\"+ inst.toString();\n\t\t\tclassifierWithData.add(s);\n\t\t}\n\t\treturn classifierWithData;\n\t}", "public Classifier getClassifier() {\n return m_Classifier;\n }", "public MLlibClassifier getClassifier() {\n return m_classifier;\n }", "public interface MultiLabelClassifier extends Serializable{\n int getNumClasses();\n MultiLabel predict(Vector vector);\n default MultiLabel[] predict(MultiLabelClfDataSet dataSet){\n\n List<MultiLabel> results = IntStream.range(0,dataSet.getNumDataPoints()).parallel()\n .mapToObj(i -> predict(dataSet.getRow(i)))\n .collect(Collectors.toList());\n return results.toArray(new MultiLabel[results.size()]);\n }\n\n default void serialize(File file) throws Exception{\n File parent = file.getParentFile();\n if (!parent.exists()){\n parent.mkdirs();\n }\n try (\n FileOutputStream fileOutputStream = new FileOutputStream(file);\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(bufferedOutputStream);\n ){\n objectOutputStream.writeObject(this);\n }\n }\n\n default void serialize(String file) throws Exception{\n serialize(new File(file));\n }\n\n\n FeatureList getFeatureList();\n\n LabelTranslator getLabelTranslator();\n\n interface ClassScoreEstimator extends MultiLabelClassifier{\n double predictClassScore(Vector vector, int k);\n default double[] predictClassScores(Vector vector){\n return IntStream.range(0,getNumClasses()).mapToDouble(k -> predictClassScore(vector,k))\n .toArray();\n\n }\n }\n\n\n\n interface ClassProbEstimator extends MultiLabelClassifier{\n double[] predictClassProbs(Vector vector);\n\n /**\n * in some cases, this can be implemented more efficiently\n * @param vector\n * @param classIndex\n * @return\n */\n default double predictClassProb(Vector vector, int classIndex){\n return predictClassProbs(vector)[classIndex];\n }\n }\n\n interface AssignmentProbEstimator extends MultiLabelClassifier{\n double predictLogAssignmentProb(Vector vector, MultiLabel assignment);\n default double predictAssignmentProb(Vector vector, MultiLabel assignment){\n return Math.exp(predictLogAssignmentProb(vector, assignment));\n }\n\n /**\n * batch version\n * can be implemented more efficiently in individual classifiers\n * @param vector\n * @param assignments\n * @return\n */\n default double[] predictAssignmentProbs(Vector vector, List<MultiLabel> assignments){\n return Arrays.stream(predictLogAssignmentProbs(vector, assignments)).map(Math::exp).toArray();\n }\n\n\n default double[] predictLogAssignmentProbs(Vector vector, List<MultiLabel> assignments){\n double[] logProbs = new double[assignments.size()];\n for (int c=0;c<assignments.size();c++){\n logProbs[c] = predictLogAssignmentProb(vector, assignments.get(c));\n }\n return logProbs;\n }\n }\n\n}", "java.util.List<org.landxml.schema.landXML11.ClassificationDocument.Classification> getClassificationList();", "@Override\r\n public void buildClassifier(Instances instances) throws Exception {\n getCapabilities().testWithFail(instances);\r\n\r\n // remove instances with missing class\r\n instances = new Instances(instances);\r\n instances.deleteWithMissingClass();\r\n\r\n // ensure we have a data set with discrete variables only and with no\r\n // missing values\r\n instances = normalizeDataSet(instances);\r\n\r\n // copy instances to local field\r\n// m_Instances = new Instances(instances);\r\n m_Instances = instances;\r\n\r\n // initialize arrays\r\n int numClasses = m_Instances.classAttribute().numValues();\r\n m_Structures = new BayesNet[numClasses];\r\n m_cInstances = new Instances[numClasses];\r\n // m_cEstimator = new DiscreteEstimatorBayes(numClasses, m_fAlpha);\r\n\r\n for (int iClass = 0; iClass < numClasses; iClass++) {\r\n splitInstances(iClass);\r\n }\r\n\r\n // update probabilty of class label, using Bayesian network associated\r\n // with the class attribute only\r\n Remove rFilter = new Remove();\r\n rFilter.setAttributeIndices(\"\" + (m_Instances.classIndex() + 1));\r\n rFilter.setInvertSelection(true);\r\n rFilter.setInputFormat(m_Instances);\r\n Instances classInstances = new Instances(m_Instances);\r\n classInstances = Filter.useFilter(classInstances, rFilter);\r\n\r\n m_cEstimator = new BayesNet();\r\n SimpleEstimator classEstimator = new SimpleEstimator();\r\n classEstimator.setAlpha(m_fAlpha);\r\n m_cEstimator.setEstimator(classEstimator);\r\n m_cEstimator.buildClassifier(classInstances);\r\n\r\n /*combiner = new LibSVM(); \r\n FastVector classFv = new FastVector(2);\r\n classFv.addElement(CNTL);\r\n classFv.addElement(CASE);\r\n Attribute classAt = new Attribute(m_Instances.classAttribute().name(), \r\n classFv);\r\n attributesFv = new FastVector(m_Structures.length);\r\n attributesFv.addElement(classAt);\r\n for (int i = 0; i < m_Instances.classAttribute().numValues(); i++){\r\n if (!m_Instances.classAttribute().value(i).equals(CNTL))\r\n attributesFv.addElement(new Attribute(m_Instances.classAttribute\r\n ().value(i)));\r\n }\r\n combinerTrain = new Instances(\"combinertrain\", attributesFv, \r\n m_Instances.numInstances());\r\n combinerTrain.setClassIndex(0);\r\n for (int i = 0; i < m_Instances.numInstances(); i++){\r\n double[] probs = super.distributionForInstance(m_Instances.instance(i));\r\n Instance result = new Instance(attributesFv.size()); \r\n if (!m_Instances.classAttribute().value(m_Instances.instance(i).\r\n classIndex()).equals(CNTL))\r\n result.setValue(classAt, CASE);\r\n else\r\n result.setValue(classAt, CNTL);\r\n for (int j = 0; j < attributesFv.size(); j++){\r\n if (!attributesFv.elementAt(j).equals(classAt)){\r\n Attribute current = (Attribute) attributesFv.elementAt(j);\r\n result.setValue(current, \r\n probs[m_Instances.classAttribute().indexOfValue\r\n (current.name())]);\r\n }\r\n }\r\n combinerTrain.add(result);\r\n }\r\n combinerTrain = discretize(combinerTrain);\r\n combiner.buildClassifier(combinerTrain);*/\r\n }", "@Override\r\n\tpublic List<Classified> getAllClassified() {\n\t\treturn null;\r\n\t}", "@Test\n\tpublic void testClassifier() {\n\t\t// Ensure there are no intermediate files left in tmp directory\n\t\tFile exampleFile = FileUtils.getTmpFile(FusionClassifier.EXAMPLE_FILE_NAME);\n\t\tFile predictionsFile = FileUtils.getTmpFile(FusionClassifier.PREDICTIONS_FILE_NAME);\n\t\texampleFile.delete();\n\t\tpredictionsFile.delete();\n\t\t\n\t\tList<List<Double>> columnFeatures = new ArrayList<>();\n\t\tSet<String> inputRecognizers = new HashSet();\n\t\tList<Map<String, Double>> supportingCandidates = new ArrayList();\n\t\tList<Map<String, Double>> competingCandidates = new ArrayList();\n\t\t\n\t\t// Supporting candidates\n\t\tMap<String, Double> supportingCandidatesTipo = new HashMap();\n\t\tsupportingCandidatesTipo.put(INPUT_RECOGNIZER_ID, TIPO_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesTipo);\n\n\t\tMap<String, Double> supportingCandidatesInsegna = new HashMap();\n\t\tsupportingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, INSEGNA_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesInsegna);\n\t\t\n\t\t// Competing candidates\n\t\tMap<String, Double> competingCandidatesTipo = new HashMap();\n\t\tcompetingCandidatesTipo.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesTipo);\n\t\tMap<String, Double> competingCandidatesInsegna = new HashMap();\n\t\tcompetingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesInsegna);\n\n\t\t// Two columns: insegna and tipo from osterie_tipiche\n\t\t// A single column feature: uniqueness\n\t\tList<Double> featuresTipo = new ArrayList();\n\t\tfeaturesTipo.add(0.145833);\n\t\tcolumnFeatures.add(featuresTipo);\n\t\t\n\t\tList<Double> featuresInsegna = new ArrayList();\n\t\tfeaturesInsegna.add(1.0);\n\t\tcolumnFeatures.add(featuresInsegna);\n\t\t\n\t\t// A single input recognizer\n\t\tinputRecognizers.add(INPUT_RECOGNIZER_ID);\n\n\t\t// Create the classifier\n\t\tFusionClassifier classifier \n\t\t\t= new FusionClassifier(FileUtils.getSVMModelFile(MINIMAL_FUSION_CR_NAME), \n\t\t\t\t\tcolumnFeatures, \n\t\t\t\t\tRESTAURANT_CONCEPT_ID, \n\t\t\t\t\tinputRecognizers);\n\t\tList<Double> predictions \n\t\t\t= classifier.classifyColumns(supportingCandidates, competingCandidates);\n\t\t\n\t\tboolean tipoIsNegativeExample = predictions.get(0) < -0.5;\n\t\t\n//\t\tTODO This currently doesn't work -- need to investigate\n//\t\tboolean insegnaIsPositiveExample = predictions.get(1) > 0.5;\n\t\t\n\t\tassertTrue(tipoIsNegativeExample);\n//\t\tassertTrue(insegnaIsPositiveExample);\n\t\t\n\ttry {\n\t\tSystem.out.println(new File(\".\").getCanonicalPath());\n\t\tSystem.out.println(getClass().getProtectionDomain().getCodeSource().getLocation());\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\t\n\t}", "public Classifier getClassifier() {\n return classifier;\n }", "@Override\n\tpublic Set<Class<? extends CoreAnnotation>> requires() {\n\t\tArraySet<Class<? extends CoreAnnotation<?>>> set = new ArraySet<Class<? extends CoreAnnotation<?>>>();\n\t\tif (heat != null && Evaluators.contains(heat)) {\n\t\t\tset.add(MusicalHeatScoreAnnotation.class);\n\t\t\tset.add(MusicalHeatAnnotation.class);\n\t\t}\n\t\tif (musicentity != null && Evaluators.contains(musicentity)) {\n\t\t\tset.add(MusicalEntityAnnotation.class);\n\t\t}\n\t\treturn Collections.unmodifiableSet(set);\n\t}", "List<String> getTargetClassifications(Observation obs);", "public void classify() {\n\t\ttry {\n\t\t\tdouble pred = classifier.classifyInstance(instances.instance(0));\n\t\t\tSystem.out.println(\"===== Classified instance =====\");\n\t\t\tSystem.out.println(\"Class predicted: \" + instances.classAttribute().value((int) pred));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Problem found when classifying the text\");\n\t\t}\t\t\n\t}", "@Override\n public boolean predicate2(Object dm, Designer dsgr) {\n if (!(Model.getFacade().isAClassifier(dm))) {\n return NO_PROBLEM;\n }\n if (!(Model.getFacade().isPrimaryObject(dm))) {\n return NO_PROBLEM;\n }\n\n // If the classifier does not have a name,\n // then no problem - the model is not finished anyhow.\n if ((Model.getFacade().getName(dm) == null)\n\t || (\"\".equals(Model.getFacade().getName(dm)))) {\n return NO_PROBLEM;\n\t}\n\n // Abstract elements do not necessarily require associations\n if (Model.getFacade().isAGeneralizableElement(dm)\n\t && Model.getFacade().isAbstract(dm)) {\n return NO_PROBLEM;\n }\n\n // Types can probably have associations, but we should not nag at them\n // not having any.\n // utility is a namespace collection - also not strictly required\n // to have associations.\n if (Model.getFacade().isType(dm)) {\n return NO_PROBLEM;\n }\n if (Model.getFacade().isUtility(dm)) {\n return NO_PROBLEM;\n }\n\n // See issue 1129: If the classifier has dependencies,\n // then mostly there is no problem. \n if (Model.getFacade().getClientDependencies(dm).size() > 0) {\n return NO_PROBLEM;\n }\n if (Model.getFacade().getSupplierDependencies(dm).size() > 0) {\n return NO_PROBLEM;\n }\n \n // special cases for use cases\n // Extending use cases and use case that are being included are\n // not required to have associations.\n if (Model.getFacade().isAUseCase(dm)) {\n Object usecase = dm;\n Collection includes = Model.getFacade().getIncludes(usecase);\n if (includes != null && includes.size() >= 1) {\n return NO_PROBLEM;\n }\n Collection extend = Model.getFacade().getExtends(usecase);\n if (extend != null && extend.size() >= 1) {\n return NO_PROBLEM;\n }\n }\n \n \n\n //TODO: different critic or special message for classes\n //that inherit all ops but define none of their own.\n\n if (findAssociation(dm, 0)) {\n return NO_PROBLEM;\n }\n return PROBLEM_FOUND;\n }", "public abstract void printClassifier();", "public void buildClassifier(Instances data) throws Exception {\n\n // can classifier handle the data?\n getCapabilities().testWithFail(data);\n\n // remove instances with missing class\n data = new Instances(data);\n data.deleteWithMissingClass();\n \n /* initialize the classifier */\n\n m_Train = new Instances(data, 0);\n m_Exemplars = null;\n m_ExemplarsByClass = new Exemplar[m_Train.numClasses()];\n for(int i = 0; i < m_Train.numClasses(); i++){\n m_ExemplarsByClass[i] = null;\n }\n m_MaxArray = new double[m_Train.numAttributes()];\n m_MinArray = new double[m_Train.numAttributes()];\n for(int i = 0; i < m_Train.numAttributes(); i++){\n m_MinArray[i] = Double.POSITIVE_INFINITY;\n m_MaxArray[i] = Double.NEGATIVE_INFINITY;\n }\n\n m_MI_MinArray = new double [data.numAttributes()];\n m_MI_MaxArray = new double [data.numAttributes()];\n m_MI_NumAttrClassInter = new int[data.numAttributes()][][];\n m_MI_NumAttrInter = new int[data.numAttributes()][];\n m_MI_NumAttrClassValue = new int[data.numAttributes()][][];\n m_MI_NumAttrValue = new int[data.numAttributes()][];\n m_MI_NumClass = new int[data.numClasses()];\n m_MI = new double[data.numAttributes()];\n m_MI_NumInst = 0;\n for(int cclass = 0; cclass < data.numClasses(); cclass++)\n m_MI_NumClass[cclass] = 0;\n for (int attrIndex = 0; attrIndex < data.numAttributes(); attrIndex++) {\n\t \n if(attrIndex == data.classIndex())\n\tcontinue;\n\t \n m_MI_MaxArray[attrIndex] = m_MI_MinArray[attrIndex] = Double.NaN;\n m_MI[attrIndex] = Double.NaN;\n\t \n if(data.attribute(attrIndex).isNumeric()){\n\tm_MI_NumAttrInter[attrIndex] = new int[m_NumFoldersMI];\n\tfor(int inter = 0; inter < m_NumFoldersMI; inter++){\n\t m_MI_NumAttrInter[attrIndex][inter] = 0;\n\t}\n } else {\n\tm_MI_NumAttrValue[attrIndex] = new int[data.attribute(attrIndex).numValues() + 1];\n\tfor(int attrValue = 0; attrValue < data.attribute(attrIndex).numValues() + 1; attrValue++){\n\t m_MI_NumAttrValue[attrIndex][attrValue] = 0;\n\t}\n }\n\t \n m_MI_NumAttrClassInter[attrIndex] = new int[data.numClasses()][];\n m_MI_NumAttrClassValue[attrIndex] = new int[data.numClasses()][];\n\n for(int cclass = 0; cclass < data.numClasses(); cclass++){\n\tif(data.attribute(attrIndex).isNumeric()){\n\t m_MI_NumAttrClassInter[attrIndex][cclass] = new int[m_NumFoldersMI];\n\t for(int inter = 0; inter < m_NumFoldersMI; inter++){\n\t m_MI_NumAttrClassInter[attrIndex][cclass][inter] = 0;\n\t }\n\t} else if(data.attribute(attrIndex).isNominal()){\n\t m_MI_NumAttrClassValue[attrIndex][cclass] = new int[data.attribute(attrIndex).numValues() + 1];\t\t\n\t for(int attrValue = 0; attrValue < data.attribute(attrIndex).numValues() + 1; attrValue++){\n\t m_MI_NumAttrClassValue[attrIndex][cclass][attrValue] = 0;\n\t }\n\t}\n }\n }\n m_MissingVector = new double[data.numAttributes()];\n for(int i = 0; i < data.numAttributes(); i++){\n if(i == data.classIndex()){\n\tm_MissingVector[i] = Double.NaN;\n } else {\n\tm_MissingVector[i] = data.attribute(i).numValues();\n }\n }\n\n /* update the classifier with data */\n Enumeration enu = data.enumerateInstances();\n while(enu.hasMoreElements()){\n update((Instance) enu.nextElement());\n }\t\n }", "public void dmall() {\n \r\n BufferedReader datafile = readDataFile(\"Work//weka-malware.arff\");\r\n \r\n Instances data = null;\r\n\t\ttry {\r\n\t\t\tdata = new Instances(datafile);\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n data.setClassIndex(data.numAttributes() - 1);\r\n \r\n // Choose a type of validation split\r\n Instances[][] split = crossValidationSplit(data, 10);\r\n \r\n // Separate split into training and testing arrays\r\n Instances[] trainingSplits = split[0];\r\n Instances[] testingSplits = split[1];\r\n \r\n // Choose a set of classifiers\r\n Classifier[] models = { new J48(),\r\n new DecisionTable(),\r\n new DecisionStump(),\r\n new BayesianLogisticRegression() };\r\n \r\n // Run for each classifier model\r\n//for(int j = 0; j < models.length; j++) {\r\n int j = 0;\r\n \tswitch (comboClassifiers.getSelectedItem().toString()) {\r\n\t\t\tcase \"J48\":\r\n\t\t\t\tj = 0;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionTable\":\r\n\t\t\t\tj = 1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionStump\":\r\n\t\t\t\tj = 2;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"BayesianLogisticRegression\":\r\n\t\t\t\tj = 3;\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\r\n\r\n // Collect every group of predictions for current model in a FastVector\r\n FastVector predictions = new FastVector();\r\n \r\n // For each training-testing split pair, train and test the classifier\r\n for(int i = 0; i < trainingSplits.length; i++) {\r\n Evaluation validation = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tvalidation = simpleClassify(models[j], trainingSplits[i], testingSplits[i]);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n predictions.appendElements(validation.predictions());\r\n \r\n // Uncomment to see the summary for each training-testing pair.\r\n// textArea.append(models[j].toString() + \"\\n\");\r\n textArea.setText(models[j].toString() + \"\\n\");\r\n// System.out.println(models[j].toString());\r\n }\r\n \r\n // Calculate overall accuracy of current classifier on all splits\r\n double accuracy = calculateAccuracy(predictions);\r\n \r\n // Print current classifier's name and accuracy in a complicated, but nice-looking way.\r\n textArea.append(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\\n\");\r\n System.out.println(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\");\r\n//}\r\n \r\n\t}", "org.landxml.schema.landXML11.ClassificationDocument.Classification[] getClassificationArray();", "public void start() throws Exception {\n String datasetPath = \"dataset\\\\arcene_train.arff\";\n\n Instances dataset = new Instances(fileSystemUtil.readDataSet(datasetPath));\n dataset.setClassIndex(dataset.numAttributes() - 1);\n\n // Creating instances of feature selection models\n List<FeatureSelectionModel> featureSelectionModels = new ArrayList<>();\n featureSelectionModels.add(new CorellationFeatureSelectionModel());\n featureSelectionModels.add(new InfoGainFeatureSelectionModel());\n featureSelectionModels.add(new WrapperAttributeFeatureSelectionModel());\n\n List<List<Integer>> listOfRankedLists = calculateRankedLists(dataset, featureSelectionModels);\n\n // Creating instances of classifiers\n List<AbstractClassifier> classifiers = createClassifiers();\n Instances datasetBackup = new Instances(dataset);\n\n int modelCounter = 0;\n for (FeatureSelectionModel model : featureSelectionModels) {\n System.out.println(\"============================================================================\");\n System.out.println(String.format(\"Classification, step #%d. %s.\", ++modelCounter, model));\n System.out.println(\"============================================================================\");\n\n // Ranking attributes\n List<Integer> attrRankList = listOfRankedLists.get(modelCounter - 1);\n\n for (int attrIndex = (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1) + 1, removedCounter = 0;\n attrIndex >= attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION;\n attrIndex--, removedCounter++) {\n if (datasetBackup.numAttributes() == attrRankList.size()\n && attrIndex == 0) {\n continue;\n }\n// for (int attrIndex = attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION, removedCounter = 0;\n// attrIndex <= (attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1);\n// attrIndex++, removedCounter++) {\n// if (datasetBackup.numAttributes() == attrRankList.size()\n// && attrIndex == attrRankList.size() - 1) {\n// continue;\n// }\n dataset = new Instances(datasetBackup);\n // Do not remove for first iteration\n if (removedCounter > 0) {\n // Selecting features (removing attributes one-by-one starting from worst)\n List<Integer> attrToRemoveList = attrRankList.subList(attrIndex,\n (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION));\n Collections.sort(attrToRemoveList);\n for (int i = attrToRemoveList.size() - 1; i >= 0; i--) {\n dataset.deleteAttributeAt(attrToRemoveList.get(i));\n }\n// for (Integer attr : attrToRemoveList) {\n// dataset.deleteAttributeAt(attr);\n// }\n System.out.println(\"\\n\\n-------------- \" + (removedCounter) + \" attribute(s) removed (of \" +\n (datasetBackup.numAttributes() - 1) + \") --------------\\n\");\n } else {\n System.out.println(\"\\n\\n-------------- First iteration - without feature selection --------------\\n\");\n }\n\n classify(classifiers, dataset);\n }\n }\n }", "Classifier getType();", "public ViewMetamodel getMetamodel();", "public void setClassifier(Classifier classifier) {\n this.classifier = classifier;\n //setClassifier(classifier, false);\n }", "public interface Aggregator {\n /**\n * Determines the final class recognized\n * @param confidence Confidence values produced by a recognizer\n * (one confidence value per class)\n * @return The final prediction given by a classifier\n */\n public Prediction apply( double[] confidence );\n\n}", "public interface Classifier extends GeneralizableElement, Namespace {\n /**\n * <p>\n * Adds a feature at the end of the ordered collection of the current object.\n * </p>\n *\n * @param feature\n * the feature to be added.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n */\n void addFeature(Feature feature);\n\n /**\n * <p>\n * Adds a feature at specified index of the ordered collection of the current object.\n * </p>\n *\n * @param index\n * index at which the specified element is to be added.\n * @param feature\n * the feature to be added.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n * @throws IndexOutOfBoundsException\n * if <code>index</code> is &lt; 0 or &gt; features.size.\n */\n void addFeature(int index, Feature feature);\n\n /**\n * <p>\n * Sets the feature at specified index of the ordered collection of the current object.\n * </p>\n *\n * @param index\n * index of feature to replace.\n * @param feature\n * the feature to be added.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n * @throws IndexOutOfBoundsException\n * if <code>index</code> is &lt; 0 or &gt;= features.size.\n */\n void setFeature(int index, Feature feature);\n\n /**\n * <p>\n * Removes (and fetches) the feature at specified index from the ordered collection of the current object.\n * </p>\n *\n * @param index\n * the index of the feature to be removed.\n * @throws IndexOutOfBoundsException\n * if <code>index</code> is &lt; 0 or &gt;= features.size.\n * @return the removed object of type <code>Feature</code>.\n */\n Feature removeFeature(int index);\n\n /**\n * <p>\n * Removes a feature from the ordered collection of the current object.\n * </p>\n *\n * @param feature\n * the feature to be removed.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removeFeature(Feature feature);\n\n /**\n * <p>\n * Removes all the objects of type \"feature\" from the ordered collection of the current object.\n * </p>\n */\n void clearFeatures();\n\n /**\n * <p>\n * Gets all the objects of type \"feature\" previously added to the ordered collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned list do not change the state of current object (i.e.\n * the returned list is a copy of the internal one of the current object). However, if an element contained in it is\n * modified, the state of the current object is modified accordingly (i.e. the internal and the returned lists share\n * references to the same objects).\n * </p>\n *\n * @return a <code>java.util.List</code> instance, containing all the objects of type <code>Feature</code> added\n * to the collection of current object.\n */\n List<Feature> getFeatures();\n\n /**\n * <p>\n * Checks if a feature is contained in the ordered collection of the current object.\n * </p>\n *\n * @param feature\n * the feature to be tested.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n * @return <code>true</code> if <code>feature</code> is contained in the collection of the current object.\n */\n boolean containsFeature(Feature feature);\n\n /**\n * <p>\n * Gets the index of the specified feature in the ordered collection of the current object, or -1 if such a\n * collection doesn't contain it.\n * </p>\n *\n * @param feature\n * the desired feature.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n * @return the index of the specified <code>Feature</code> in the ordered collection of the current object, or -1\n * if such a collection doesn't contain it.\n */\n int indexOfFeature(Feature feature);\n\n /**\n * <p>\n * Returns the number of objects of type \"feature\" previously added to the ordered collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>Feature</code> inserted in the ordered collection of the current\n * object.\n */\n int countFeatures();\n\n /**\n * <p>\n * Adds a typed feature to the collection of the current object.\n * </p>\n *\n * @param typedFeature\n * the typed feature to be added.\n * @throws IllegalArgumentException\n * if <code>typedFeature</code> is null.\n */\n void addTypedFeature(StructuralFeature typedFeature);\n\n /**\n * <p>\n * Removes a typed feature from the collection of the current object.\n * </p>\n *\n * @param typedFeature\n * the typed feature to be removed.\n * @throws IllegalArgumentException\n * if <code>typedFeature</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removeTypedFeature(StructuralFeature typedFeature);\n\n /**\n * <p>\n * Removes all the objects of type \"typed feature\" from the collection of the current object.\n * </p>\n */\n void clearTypedFeatures();\n\n /**\n * <p>\n * Gets all the objects of type \"typed feature\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type\n * <code>StructuralFeature</code> added to the collection of current object.\n */\n Collection<StructuralFeature> getTypedFeatures();\n\n /**\n * <p>\n * Checks if a typed feature is contained in the collection of the current object.\n * </p>\n *\n * @param typedFeature\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>typedFeature</code> is null.\n * @return <code>true</code> if <code>typedFeature</code> is contained in the collection of the current object.\n */\n boolean containsTypedFeature(StructuralFeature typedFeature);\n\n /**\n * <p>\n * Returns the number of objects of type \"typed feature\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>StructuralFeature</code> inserted in the collection of the\n * current object.\n */\n int countTypedFeatures();\n\n /**\n * <p>\n * Adds a typed parameter to the collection of the current object.\n * </p>\n *\n * @param typedParameter\n * the typed parameter to be added.\n * @throws IllegalArgumentException\n * if <code>typedParameter</code> is null.\n */\n void addTypedParameter(Parameter typedParameter);\n\n /**\n * <p>\n * Removes a typed parameter from the collection of the current object.\n * </p>\n *\n * @param typedParameter\n * the typed parameter to be removed.\n * @throws IllegalArgumentException\n * if <code>typedParameter</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal, i.e. its collection\n * contained the specified typed parameter.\n */\n boolean removeTypedParameter(Parameter typedParameter);\n\n /**\n * <p>\n * Removes all the objects of type \"typed parameter\" from the collection of the current object.\n * </p>\n */\n void clearTypedParameters();\n\n /**\n * <p>\n * Gets all the objects of type \"typed parameter\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type <code>Parameter</code>\n * added to the collection of current object.\n */\n Collection<Parameter> getTypedParameters();\n\n /**\n * <p>\n * Checks if a typed parameter is contained in the collection of the current object.\n * </p>\n *\n * @param typedParameter\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>typedParameter</code> is null.\n * @return <code>true</code> if <code>typedParameter</code> is contained in the collection of the current\n * object.\n */\n boolean containsTypedParameter(Parameter typedParameter);\n\n /**\n * <p>\n * Returns the number of objects of type \"typed parameter\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>Parameter</code> inserted in the collection of the current\n * object.\n */\n int countTypedParameters();\n\n /**\n * <p>\n * Adds a association to the collection of the current object.\n * </p>\n *\n * @param association\n * the association to be added.\n * @throws IllegalArgumentException\n * if <code>association</code> is null.\n */\n void addAssociation(AssociationEnd association);\n\n /**\n * <p>\n * Removes a association from the collection of the current object.\n * </p>\n *\n * @param association\n * the association to be removed.\n * @throws IllegalArgumentException\n * if <code>association</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removeAssociation(AssociationEnd association);\n\n /**\n * <p>\n * Removes all the objects of type \"association\" from the collection of the current object.\n * </p>\n */\n void clearAssociations();\n\n /**\n * <p>\n * Gets all the objects of type \"association\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type\n * <code>AssociationEnd</code> added to the collection of current object.\n */\n Collection<AssociationEnd> getAssociations();\n\n /**\n * <p>\n * Checks if a association is contained in the collection of the current object.\n * </p>\n *\n * @param association\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>association</code> is null.\n * @return <code>true</code> if <code>association</code> is contained in the collection of the current object.\n */\n boolean containsAssociation(AssociationEnd association);\n\n /**\n * <p>\n * Returns the number of objects of type \"association\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>AssociationEnd</code> inserted in the collection of the current\n * object.\n */\n int countAssociations();\n\n /**\n * <p>\n * Adds a specified end to the collection of the current object.\n * </p>\n *\n * @param specifiedEnd\n * the specified end to be added.\n * @throws IllegalArgumentException\n * if <code>specifiedEnd</code> is null.\n */\n void addSpecifiedEnd(AssociationEnd specifiedEnd);\n\n /**\n * <p>\n * Removes a specified end from the collection of the current object.\n * </p>\n *\n * @param specifiedEnd\n * the specified end to be removed.\n * @throws IllegalArgumentException\n * if <code>specifiedEnd</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removeSpecifiedEnd(AssociationEnd specifiedEnd);\n\n /**\n * <p>\n * Removes all the objects of type \"specified end\" from the collection of the current object.\n * </p>\n */\n void clearSpecifiedEnds();\n\n /**\n * <p>\n * Gets all the objects of type \"specified end\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type\n * <code>AssociationEnd</code> added to the collection of current object.\n */\n Collection<AssociationEnd> getSpecifiedEnds();\n\n /**\n * <p>\n * Checks if a specified end is contained in the collection of the current object.\n * </p>\n *\n * @param specifiedEnd\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>specifiedEnd</code> is null.\n * @return <code>true</code> if <code>specifiedEnd</code> is contained in the collection of the current object.\n */\n boolean containsSpecifiedEnd(AssociationEnd specifiedEnd);\n\n /**\n * <p>\n * Returns the number of objects of type \"specified end\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>AssociationEnd</code> inserted in the collection of the current\n * object.\n */\n int countSpecifiedEnds();\n\n /**\n * <p>\n * Adds a powertype range to the collection of the current object.\n * </p>\n *\n * @param powertypeRange\n * the powertype range to be added.\n * @throws IllegalArgumentException\n * if <code>powertypeRange</code> is null.\n */\n void addPowertypeRange(Generalization powertypeRange);\n\n /**\n * <p>\n * Removes a powertype range from the collection of the current object.\n * </p>\n *\n * @param powertypeRange\n * the powertype range to be removed.\n * @throws IllegalArgumentException\n * if <code>powertypeRange</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removePowertypeRange(Generalization powertypeRange);\n\n /**\n * <p>\n * Removes all the objects of type \"powertype range\" from the collection of the current object.\n * </p>\n */\n void clearPowertypeRanges();\n\n /**\n * <p>\n * Gets all the objects of type \"powertype range\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type\n * <code>Generalization</code> added to the collection of current object.\n */\n Collection<Generalization> getPowertypeRanges();\n\n /**\n * <p>\n * Checks if a powertype range is contained in the collection of the current object.\n * </p>\n *\n * @param powertypeRange\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>powertypeRange</code> is null.\n * @return <code>true</code> if <code>powertypeRange</code> is contained in the collection of the current\n * object.\n */\n boolean containsPowertypeRange(Generalization powertypeRange);\n\n /**\n * <p>\n * Returns the number of objects of type \"powertype range\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>Generalization</code> inserted in the collection of the current\n * object.\n */\n int countPowertypeRanges();\n\n /**\n * <p>\n * Adds a object flow state to the collection of the current object.\n * </p>\n *\n * @param objectFlowState\n * the object flow state to be added.\n * @throws IllegalArgumentException\n * if <code>objectFlowState</code> is null.\n */\n void addObjectFlowState(ObjectFlowState objectFlowState);\n\n /**\n * <p>\n * Removes a object flow state from the collection of the current object.\n * </p>\n *\n * @param objectFlowState\n * the object flow state to be removed.\n * @throws IllegalArgumentException\n * if <code>objectFlowState</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removeObjectFlowState(ObjectFlowState objectFlowState);\n\n /**\n * <p>\n * Removes all the objects of type \"object flow state\" from the collection of the current object.\n * </p>\n */\n void clearObjectFlowStates();\n\n /**\n * <p>\n * Gets all the objects of type \"object flow state\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type\n * <code>ObjectFlowState</code> added to the collection of current object.\n */\n Collection<ObjectFlowState> getObjectFlowStates();\n\n /**\n * <p>\n * Checks if a object flow state is contained in the collection of the current object.\n * </p>\n *\n * @param objectFlowState\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>objectFlowState</code> is null.\n * @return <code>true</code> if <code>objectFlowState</code> is contained in the collection of the current\n * object.\n */\n boolean containsObjectFlowState(ObjectFlowState objectFlowState);\n\n /**\n * <p>\n * Returns the number of objects of type \"object flow state\" previously added to the collection of the current\n * object.\n * </p>\n *\n * @return the quantity of objects of type <code>ObjectFlowState</code> inserted in the collection of the current\n * object.\n */\n int countObjectFlowStates();\n\n /**\n * <p>\n * Adds a instance to the collection of the current object.\n * </p>\n *\n * @param instance\n * the instance to be added.\n * @throws IllegalArgumentException\n * if <code>instance</code> is null.\n */\n void addInstance(Instance instance);\n\n /**\n * <p>\n * Removes a instance from the collection of the current object.\n * </p>\n *\n * @param instance\n * the instance to be removed.\n * @throws IllegalArgumentException\n * if <code>instance</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal, i.e. its collection\n * contained the specified instance.\n */\n boolean removeInstance(Instance instance);\n\n /**\n * <p>\n * Removes all the objects of type \"instance\" from the collection of the current object.\n * </p>\n */\n void clearInstances();\n\n /**\n * <p>\n * Gets all the objects of type \"instance\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type <code>Instance</code>\n * added to the collection of current object.\n */\n Collection<Instance> getInstances();\n\n /**\n * <p>\n * Checks if a instance is contained in the collection of the current object.\n * </p>\n *\n * @param instance\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>instance</code> is null.\n * @return <code>true</code> if <code>instance</code> is contained in the collection of the current object.\n */\n boolean containsInstance(Instance instance);\n\n /**\n * <p>\n * Returns the number of objects of type \"instance\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>Instance</code> inserted in the collection of the current object.\n */\n int countInstances();\n}", "public MediaAiAnalysisClassificationItem [] getClassificationSet() {\n return this.ClassificationSet;\n }", "public List<BotClassification> getClassifications() {\n return classifications;\n }", "public interface MDataType extends MClassifier\r\n{\r\n}", "public Class getModelClass() {\n return m_Classifier.getClass();\n }", "@Override\n\tpublic Class<?> getRecommendedClassifier() {\n\t\treturn null;\n\t}", "public abstract void build(ClassifierData<U> inputData);", "org.landxml.schema.landXML11.ClassificationDocument.Classification getClassificationArray(int i);", "public void extractKnowledge()\n {\n }", "public interface Classifier extends NamedDisplayElement {\n}", "public void loadTestClassifier() {\n\t\tbinaryTestClassifier = LinearClassifier.readClassifier(BINARY_CLASSIFIER_FILENAME);\n\t\tmultiTestClassifier = LinearClassifier.readClassifier(MULTI_CLASSIFIER_FILENAME);\n\t}", "boolean hasAutomlClassificationConfig();", "Collection<? extends PM_Learning_Material> getHasRecommendation();", "public String getClassification() {\n return classification;\n }", "public String getClassification() {\n return classification;\n }", "public AutoClassification(ClassificationModel classificationModel) {\r\n this.classificationModel = classificationModel;\r\n }", "public abstract double classify(Instance e);", "public String trainmodelandclassify(Attribute at) throws Exception {\n\t\tif(at.getAge()>=15 && at.getAge()<=25)\n\t\t\tat.setAgegroup(\"15-25\");\n\t\tif(at.getAge()>=26 && at.getAge()<=45)\n\t\t\tat.setAgegroup(\"25-45\");\n\t\tif(at.getAge()>=46 && at.getAge()<=65)\n\t\t\tat.setAgegroup(\"45-65\");\n\t\t\n\t\t\n\t\t\n\t\t//loading the training dataset\n\t\n\tDataSource source=new DataSource(\"enter the location of your .arff file for training data\");\n\tSystem.out.println(source);\n\tInstances traindataset=source.getDataSet();\n\t//setting the class index (which would be one less than the number of attributes)\n\ttraindataset.setClassIndex(traindataset.numAttributes()-1);\n\tint numclasses=traindataset.numClasses();\n for (int i = 0; i < numclasses; i++) {\n \tString classvalue=traindataset.classAttribute().value(i);\n \tSystem.out.println(classvalue);\n\t\t\n\t}\n //building the classifier\n NaiveBayes nb= new NaiveBayes();\n nb.buildClassifier(traindataset);\n System.out.println(\"model trained successfully\");\n \n //test the model\n\tDataSource testsource=new DataSource(\"enter the location of your .arff file for test data\");\n\tInstances testdataset=testsource.getDataSet();\n\t\n\tFileWriter fwriter = new FileWriter(\"enter the location of your .arff file for test data\",true); //true will append the new instance\n\tfwriter.write(System.lineSeparator());\n\tfwriter.write(at.getAgegroup()+\",\"+at.getGender()+\",\"+at.getProfession()+\",\"+\"?\");//appends the string to the file\n\tfwriter.close();\n\ttestdataset.setClassIndex(testdataset.numAttributes()-1);\n\t//looping through the test dataset and making predictions\n\tfor (int i = 0; i < testdataset.numInstances(); i++) {\n\t\tdouble classvalue=testdataset.instance(i).classValue();\n\t\tString actualclass=testdataset.classAttribute().value((int)classvalue);\n\t\tInstance instance=testdataset.instance(i);\n\t\tdouble pclassvalue=nb.classifyInstance(instance);\n\t\tString pclass=testdataset.classAttribute().value((int)pclassvalue);\n\t\tSystem.out.println(actualclass+\" \"+ pclass);\n\t\n}\n\tdouble classval=testdataset.instance(testdataset.numInstances()-1).classValue();\n\tInstance ins=testdataset.lastInstance();\n\tdouble pclassval=nb.classifyInstance(ins);\n\tString pclass=testdataset.classAttribute().value((int)pclassval);\n\tSystem.out.println(pclass);\n\t\n\treturn pclass;\n}", "public String getClassification() {\n return classification;\n }", "public List<String> useBaselineClassifierOnData() {\n\t\tList<String> classifierWithData = new ArrayList<String>();\n\t\tString header = \"LEARND\\tACTUAL\";\n\t\tfor (String s : attributeNames) {\n\t\t\tchar[] truncated = Arrays.copyOf(s.toCharArray(),5);\n\t\t\tString tr = \"\";\n\t\t\tfor (int i = 0; i < 5 && Character.isAlphabetic(truncated[i]); i++) {\n\t\t\t\ttr += truncated[i];\n\t\t\t}\n\t\t\theader += \"\\t\"+ tr +\".\";\n\t\t}\n\t\tclassifierWithData.add(header);\n\t\tif (root == null || attributeNames.size() == 0) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tfor (Instance inst : data) {\n\t\t\tString s = baselineNode.classify(inst) +\"\\t\"+ inst.toString();\n\t\t\tclassifierWithData.add(s);\n\t\t}\n\t\treturn classifierWithData;\n\t}", "public void induceModel(Graph graph, DataSplit split) {\r\n super.induceModel(graph, split);\r\n Node[] trainingSet = split.getTrainSet();\r\n if(trainingSet == null || trainingSet.length == 0)\r\n return;\r\n\r\n Attributes attribs = trainingSet[0].getAttributes();\r\n FastVector attInfo = new FastVector(tmpVector.length);\r\n logger.finer(\"Setting up WEKA attributes\");\r\n if(useIntrinsic)\r\n {\r\n for(Attribute attrib : attribs)\r\n {\r\n // do not include the KEY attribute\r\n if(attrib == attribs.getKey())\r\n continue;\r\n\r\n switch(attrib.getType())\r\n {\r\n case CATEGORICAL:\r\n String[] tokens = ((AttributeCategorical)attrib).getTokens();\r\n FastVector values = new FastVector(tokens.length);\r\n for(String token : tokens)\r\n values.addElement(token);\r\n attInfo.addElement(new weka.core.Attribute(attrib.getName(),values));\r\n logger.finer(\"Adding WEKA attribute \"+attrib.getName()+\":Categorical\");\r\n break;\r\n\r\n default:\r\n attInfo.addElement(new weka.core.Attribute(attrib.getName()));\r\n logger.finer(\"Adding WEKA attribute \"+attrib.getName()+\":Numerical\");\r\n break;\r\n }\r\n }\r\n }\r\n else\r\n {\r\n String[] tokens = attribute.getTokens();\r\n FastVector values = new FastVector(tokens.length);\r\n for(String token : tokens)\r\n values.addElement(token);\r\n attInfo.addElement(new weka.core.Attribute(attribute.getName(),values));\r\n logger.finer(\"Adding WEKA attribute \"+attribute.getName()+\":Categorical\");\r\n }\r\n\r\n for(Aggregator agg : aggregators)\r\n {\r\n Attribute attrib = agg.getAttribute();\r\n switch(agg.getType())\r\n {\r\n case CATEGORICAL:\r\n String[] tokens = ((AttributeCategorical)attrib).getTokens();\r\n FastVector values = new FastVector(tokens.length);\r\n for(String token : tokens)\r\n values.addElement(token);\r\n attInfo.addElement(new weka.core.Attribute(agg.getName(),values));\r\n logger.finer(\"Adding WEKA attribute \"+agg.getName()+\":Categorical\");\r\n break;\r\n\r\n default:\r\n attInfo.addElement(new weka.core.Attribute(agg.getName()));\r\n logger.finer(\"Adding WEKA attribute \"+agg.getName()+\":Numerical\");\r\n break;\r\n }\r\n }\r\n\r\n Instances train = new Instances(\"train\",attInfo,split.getTrainSetSize());\r\n train.setClassIndex(vectorClsIdx);\r\n\r\n for(Node node : split.getTrainSet())\r\n {\r\n double[] v = new double[attInfo.size()];\r\n makeVector(node,v);\r\n train.add(new Instance(1,v));\r\n }\r\n try\r\n {\r\n classifier.buildClassifier(train);\r\n }\r\n catch(Exception e)\r\n {\r\n throw new RuntimeException(\"Failed to build classifier \"+classifier.getClass().getName(),e);\r\n }\r\n testInstance = new Instance(1,tmpVector);\r\n testInstances = new Instances(\"test\",attInfo,1);\r\n testInstances.setClassIndex(vectorClsIdx);\r\n testInstances.add(testInstance);\r\n testInstance = testInstances.firstInstance();\r\n }", "public EClassifier getEClassifier (String classifier) { \r\n\t\tEClassifier cl = null;\r\n\t\tfor (int i=0; i<this.packages.size() && cl==null; i++) \r\n\t\t\tcl = this.packages.get(i).getEClassifier(classifier);\r\n\t\treturn cl;\r\n\t}", "ArtefactModel getArtefactModel();", "private static void CreateClassifierVec(Dataset set, int dim_num,\n\t\t\tArrayList<KDNode> class_buff, int vec_offset) {\n\t\t\t\n\t\tAttribute atts[] = new Attribute[set.size()];\n\t\t// Declare the class attribute along with its values\n\t\t FastVector fvClassVal = new FastVector(4);\n\t\t fvClassVal.addElement(\"n2\");\n\t\t fvClassVal.addElement(\"n1\");\n\t\t fvClassVal.addElement(\"p1\");\n\t\t fvClassVal.addElement(\"p2\");\n\t\t Attribute ClassAttribute = new Attribute(\"theClass\", fvClassVal);\n\t \n\t\tFastVector fvWekaAttributes = new FastVector(set.size() + 1);\n\t for(int i=0; i<set.size(); i++) {\n\t \tatts[i] = new Attribute(\"att\"+i);\n\t \tfvWekaAttributes.addElement(atts[i]);\n\t }\n\t \n\t fvWekaAttributes.addElement(ClassAttribute);\n\t \n\t Instances isTrainingSet = new Instances(\"Rel\", fvWekaAttributes, class_buff.size()); \n\t isTrainingSet.setClassIndex(set.size());\n\t\t\n\t for(int k=0; k<class_buff.size(); k++) {\n\t \t\n\t \tArrayList<Integer> data_set = new ArrayList<Integer>();\n\t\t\tfor(int j=0; j<set.size(); j++) {\n\t\t\t\t\n\t\t\t\t\tint offset = 0;\n\t\t\t\t\tSet<Entry<Integer, Double>> s = set.instance(j).entrySet();\n\t\t\t\t\tdouble sample[] = new double[dim_num];\n\t\t\t\t\tfor(Entry<Integer, Double> val : s) {\n\t\t\t\t\t\tsample[offset++] = val.getValue();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint output = class_buff.get(k).classifier.Output(sample);\n\t\t\t\t\tdata_set.add(output);\n\t\t\t}\n\t\t\t\n\t\t\tif(data_set.size() != set.size()) {\n\t\t\t\tSystem.out.println(\"dim mis\");System.exit(0);\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tInstance iExample = new Instance(set.size() + 1);\n\t\t\tfor(int j=0; j<set.size(); j++) {\n\t\t\t\tiExample.setValue(j, data_set.get(j));\n\t\t\t}\n\t\t\t\n\t\t\tif(Math.random() < 0.5) {\n\t\t\t\tiExample.setValue((Attribute)fvWekaAttributes.elementAt(set.size()), \"n1\"); \n\t\t\t} else {\n\t\t\t\tiExample.setValue((Attribute)fvWekaAttributes.elementAt(set.size()), \"p1\"); \n\t\t\t}\n\t\t\t \n\t\t\t// add the instance\n\t\t\tisTrainingSet.add(iExample);\n\t }\n\t\t\n\t System.out.println(dim_num+\" *************\");\n\t int select_num = 16;\n\t\tPrincipalComponents pca = new PrincipalComponents();\n\t\t//pca.setVarianceCovered(0.1);\n Ranker ranker = new Ranker();\n ranker.setNumToSelect(select_num);\n AttributeSelection selection = new AttributeSelection();\n selection.setEvaluator(pca);\n \n Normalize normalizer = new Normalize();\n try {\n normalizer.setInputFormat(isTrainingSet);\n isTrainingSet = Filter.useFilter(isTrainingSet, normalizer);\n \n selection.setSearch(ranker);\n selection.SelectAttributes(isTrainingSet);\n isTrainingSet = selection.reduceDimensionality(isTrainingSet);\n\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(0);\n }\n \n for(int i=0; i<class_buff.size(); i++) {\n \tInstance inst = isTrainingSet.instance(i);\n \tdouble val[] = inst.toDoubleArray();\n \tint offset = vec_offset;\n \t\n \tfloat length = 0;\n \tfor(int j=0; j<select_num; j++) {\n \t\tlength += val[j] * val[j];\n \t}\n \t\n \tlength = (float) Math.sqrt(length);\n \tfor(int j=0; j<select_num; j++) {\n \t\tclass_buff.get(i).class_vect[offset++] = val[j] / length;\n \t}\n }\n\t}", "public List<HashMap<Integer,AttributeInfo>> generateTrainingSetDataseAttributes(Dataset dataset, Properties properties) throws Exception {\n List<HashMap<Integer,AttributeInfo>> candidateAttributesList = new ArrayList<>();\n String[] classifiers = properties.getProperty(\"classifiersForMLAttributesGeneration\").split(\",\");\n\n //obtaining the attributes for the dataset itself is straightforward\n DatasetBasedAttributes dba = new DatasetBasedAttributes();\n for (String classifier : classifiers) {\n\n //For each dataset and classifier combination, we need to get the results on the \"original\" dataset so we can later compare\n Evaluation evaluationResults = runClassifier(classifier, dataset.generateSet(true), dataset.generateSet(false), properties);\n double originalAuc = CalculateAUC(evaluationResults, dataset);\n\n //Generate the dataset attributes\n HashMap<Integer, AttributeInfo> datasetAttributes = dba.getDatasetBasedFeatures(dataset, classifier, properties);\n\n //Add the identifier of the classifier that was used\n\n AttributeInfo classifierAttribute = new AttributeInfo(\"Classifier\", Column.columnType.Discrete, getClassifierIndex(classifier), 3);\n datasetAttributes.put(datasetAttributes.size(), classifierAttribute);\n\n\n //now we need to generate the candidate attributes and evaluate them. This requires a few preliminary steps:\n // 1) Replicate the dataset and create the discretized features and add them to the dataset\n OperatorsAssignmentsManager oam = new OperatorsAssignmentsManager(properties);\n List<Operator> unaryOperators = oam.getUnaryOperatorsList();\n //The unary operators need to be evaluated like all other operator assignments (i.e. attribtues generation)\n List<OperatorAssignment> unaryOperatorAssignments = oam.getOperatorAssignments(dataset, null, unaryOperators, Integer.parseInt(properties.getProperty(\"maxNumOfAttsInOperatorSource\")));\n Dataset replicatedDataset = generateDatasetReplicaWithDiscretizedAttributes(dataset, unaryOperatorAssignments, oam);\n\n // 2) Obtain all other operator assignments (non-unary). IMPORTANT: this is applied on the REPLICATED dataset so we can take advantage of the discretized features\n List<Operator> nonUnaryOperators = oam.getNonUnaryOperatorsList();\n List<OperatorAssignment> nonUnaryOperatorAssignments = oam.getOperatorAssignments(replicatedDataset, null, nonUnaryOperators, Integer.parseInt(properties.getProperty(\"maxNumOfAttsInOperatorSource\")));\n\n // 3) Generate the candidate attribute and generate its attributes\n nonUnaryOperatorAssignments.addAll(unaryOperatorAssignments);\n\n //oaList.parallelStream().forEach(oa -> {\n int counter = 0;\n //for (OperatorAssignment oa : nonUnaryOperatorAssignments) {\n ReentrantLock wrapperResultsLock = new ReentrantLock();\n nonUnaryOperatorAssignments.parallelStream().forEach(oa -> {\n try {\n OperatorsAssignmentsManager oam1 = new OperatorsAssignmentsManager(properties);\n Dataset datasetReplica = dataset.replicateDataset();\n ColumnInfo candidateAttribute = null;\n try {\n candidateAttribute = oam1.generateColumn(datasetReplica, oa, true);\n }\n catch (Exception ex) {\n candidateAttribute = oam1.generateColumn(datasetReplica, oa, true);\n }\n\n\n OperatorAssignmentBasedAttributes oaba = new OperatorAssignmentBasedAttributes();\n HashMap<Integer, AttributeInfo> candidateAttributes = oaba.getOperatorAssignmentBasedAttributes(dataset, oa, candidateAttribute, properties);\n\n datasetReplica.addColumn(candidateAttribute);\n Evaluation evaluationResults1 = runClassifier(classifier, datasetReplica.generateSet(true), datasetReplica.generateSet(false), properties);\n\n double auc = CalculateAUC(evaluationResults1, datasetReplica);\n double deltaAuc = auc - originalAuc;\n AttributeInfo classAttrubute;\n if (deltaAuc > 0.01) {\n classAttrubute = new AttributeInfo(\"classAttribute\", Column.columnType.Discrete, 1,2);\n System.out.println(\"found positive match\");\n } else {\n classAttrubute = new AttributeInfo(\"classAttribute\", Column.columnType.Discrete, 0,2);\n }\n\n //finally, we need to add the dataset attribtues and the class attribute\n for (AttributeInfo datasetAttInfo : datasetAttributes.values()) {\n candidateAttributes.put(candidateAttributes.size(), datasetAttInfo);\n }\n\n candidateAttributes.put(candidateAttributes.size(), classAttrubute);\n wrapperResultsLock.lock();\n candidateAttributesList.add(candidateAttributes);\n wrapperResultsLock.unlock();\n }\n catch (Exception ex) {\n System.out.println(\"Error in ML features generation : \" + oa.getName() + \" : \" + ex.getMessage());\n }\n });\n }\n\n return candidateAttributesList;\n }", "@Override\n\tpublic ArrayList<Class<?>> getSupportedClassifier() {\n\t\treturn null;\n\t}", "@BeforeClass\r\n public static void generateConfigurationOfClassifiersAndLoadData() {\r\n\r\n //one classifier in the ensemble will be ClassifierModel (Model for enach output class)\r\n GaussianMultiModelConfig gmc = new GaussianMultiModelConfig();\r\n gmc.setTrainerClassName(\"QuasiNewtonTrainer\");\r\n gmc.setTrainerCfg(new QuasiNewtonConfig());\r\n LinearModelConfig lmcpso = new LinearModelConfig();\r\n lmcpso.setTrainerClassName(\"PSOTrainer\");\r\n lmcpso.setTrainerCfg(new PSOConfig());\r\n ClassifierModelConfig clc = new ClassifierModelConfig();\r\n clc.setClassModelsDef(BaseModelsDefinition.RANDOM);\r\n clc.addClassModelCfg(lmcpso);\r\n clc.addClassModelCfg(gmc);\r\n clc.setClassRef(ClassifierModel.class);\r\n\r\n //todo second classifier in the ensemble will be Weka decision tree\r\n\r\n ClassifierBaggingConfig bagc = new ClassifierBaggingConfig();\r\n bagc.setClassifiersNumber(2);\r\n bagc.setBaseClassifiersDef(BaseModelsDefinition.UNIFORM);\r\n bagc.addBaseClassifierCfg(clc);\r\n\r\n generatedCfg = bagc;\r\n ConfigurationFactory.saveConfiguration(generatedCfg, cfgfilename);\r\n\r\n data = new FileGameData(datafilename);\r\n\r\n }", "abstract String classify(Instance inst);", "public abstract boolean supports(ClassificationMethod method);", "Integer classify(LogicGraph pce);", "public String toString(){\n\n String s;\n Exemplar cur = m_Exemplars;\n int i;\t\n\n if (m_MinArray == null) {\n return \"No classifier built\";\n }\n int[] nbHypClass = new int[m_Train.numClasses()];\n int[] nbSingleClass = new int[m_Train.numClasses()];\n for(i = 0; i<nbHypClass.length; i++){\n nbHypClass[i] = 0;\n nbSingleClass[i] = 0;\n }\n int nbHyp = 0, nbSingle = 0;\n\n s = \"\\nNNGE classifier\\n\\nRules generated :\\n\";\n\n while(cur != null){\n s += \"\\tclass \" + m_Train.attribute(m_Train.classIndex()).value((int) cur.classValue()) + \" IF : \";\n s += cur.toRules() + \"\\n\";\n nbHyp++;\n nbHypClass[(int) cur.classValue()]++;\t \n if (cur.numInstances() == 1){\n\tnbSingle++;\n\tnbSingleClass[(int) cur.classValue()]++;\n }\n cur = cur.next;\n }\n s += \"\\nStat :\\n\";\n for(i = 0; i<nbHypClass.length; i++){\n s += \"\\tclass \" + m_Train.attribute(m_Train.classIndex()).value(i) + \n\t\" : \" + Integer.toString(nbHypClass[i]) + \" exemplar(s) including \" + \n\tInteger.toString(nbHypClass[i] - nbSingleClass[i]) + \" Hyperrectangle(s) and \" +\n\tInteger.toString(nbSingleClass[i]) + \" Single(s).\\n\";\n }\n s += \"\\n\\tTotal : \" + Integer.toString(nbHyp) + \" exemplars(s) including \" + \n Integer.toString(nbHyp - nbSingle) + \" Hyperrectangle(s) and \" +\n Integer.toString(nbSingle) + \" Single(s).\\n\";\n\t\n s += \"\\n\";\n\t\n s += \"\\tFeature weights : \";\n\n String space = \"[\";\n for(int ii = 0; ii < m_Train.numAttributes(); ii++){\n if(ii != m_Train.classIndex()){\n\ts += space + Double.toString(attrWeight(ii));\n\tspace = \" \";\n }\n }\n s += \"]\";\n s += \"\\n\\n\";\n return s;\n }", "public void classify() throws Exception;", "public RandomForestClassificationModel getClassificationModel() {\n\t\treturn classificationModel;\n\t}", "public abstract double test(ClassifierData<U> testData);", "@Unstable\npublic interface FeatureClusterView extends Feature\n{\n /**\n * Returns the reference features, if any.\n * \n * @return a potentially empty, unmodifiable collection of the features from the reference patient\n */\n Collection<Feature> getReference();\n\n /**\n * Returns the features matched by this feature, if any.\n * \n * @return a potentially empty, unmodifiable collection of the features from the reference patient, with\n * {@code null} values corresponding to undisclosed features\n */\n Collection<Feature> getMatch();\n\n /**\n * Returns the root/ancestor of the cluster.\n * \n * @return the root feature for the reference and match features\n */\n OntologyTerm getRoot();\n\n /**\n * How similar are the match and reference features.\n * \n * @return a similarity score, between {@code -1} for opposite features and {@code 1} for an exact match, with\n * {@code 0} for features with no similarities, and {@code NaN} if one of the collections of features is\n * empty\n */\n double getScore();\n\n /**\n * Retrieve all information about the cluster of features. For example:\n * \n * <pre>\n * {\n * \"id\": \"HP:0100247\",\n * \"name\": \"Recurrent singultus\",\n * \"type\": \"ancestor\",\n * \"reference\": [\n * \"HP:0001201\",\n * \"HP:0000100\"\n * ],\n * \"match\": [\n * \"HP:0001201\"\n * ]\n * }\n * </pre>\n * \n * @return the feature data, using the json-lib classes\n */\n JSONObject toJSON();\n}", "public static ArrayList<Classification> getAllClassifications() {\n\t\tString path = ALL_CLASSIF;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\treturn getClassifications(response);\n\t}", "public abstract Annotations getClassAnnotations();", "public ArrayList<Classifier> select(Instances data) throws Exception {\r\n\t\tArrayList<Classifier> classifiers = new ArrayList<Classifier>();\r\n\r\n\t\tclassifiers.add(selectBestJ48(data));\r\n\t\tclassifiers.add(selectBestZeroR(data));\r\n\t\tclassifiers.add(selectBestConjunctive(data));\r\n\t\tclassifiers.add(selectBestOneR(data));\r\n\t\tclassifiers.add(selectBestVFI(data));\r\n\t\tclassifiers.add(selectBestNaiveBayes(data));\r\n\t\tclassifiers.add(selectBestBayesNet(data));\r\n\t\tclassifiers.add(selectBestRBFNetwork(data));\r\n\r\n\t\treturn classifiers;\r\n\t}", "public SortedSet<ClassificationPair> getClassifications() {\n\t\treturn this.classifications;\n\t}", "public interface IClassifierService extends IGenericService<Classifier, Long>{\n\n /**\n * Verify code error message.\n *\n * @param code the code\n * @param year the year\n * @param exception the exception\n * @return the error message\n */\n public ErrorMessage verifyCode(String code, Integer year, Long exception);\n\n /**\n * Gets by path.\n *\n * @param path the path\n * @return the by path\n */\n public Classifier getByPath(String path);\n\n /**\n * Gets parent.\n *\n * @param path the path\n * @return the parent\n */\n public Classifier getParent(String path);\n\n /**\n * Gets generic.\n *\n * @param path the path\n * @return the generic\n */\n public Classifier getGeneric(String path);\n\n /**\n * Get parent info object [ ].\n *\n * @param path the path\n * @return the object [ ]\n */\n public Object[] getParentInfo(String path);\n\n /**\n * Gets generic classifiers.\n *\n * @return the generic classifiers\n */\n public List<Classifier> getGenericClassifiers();\n}", "public void doneClassifying() {\n\t\tbinaryTrainClassifier = trainFactory.trainClassifier(binaryTrainingData);\n\t\tmultiTrainClassifier = testFactory.trainClassifier(multiTrainingData);\n\t\tLinearClassifier.writeClassifier(binaryTrainClassifier, BINARY_CLASSIFIER_FILENAME);\n\t\tLinearClassifier.writeClassifier(multiTrainClassifier, MULTI_CLASSIFIER_FILENAME);\n\t}", "@Override\n public void buildClassifier(Instances trainingData) throws Exception {\n // can classifier handle the data?\n getCapabilities().testWithFail(trainingData);\n\n tree = new MultiInstanceDecisionTree(trainingData);\n }", "public interface ClassLearner<I>\n{\n //-------------------------------------------------------------------------\n public Classifier<I> learn(\n List<Classified<I>> trainingPoints);\n}", "public interface IClassifyModel {\n void getData(IPresenterClassify iPresenterClassify);\n}", "public void loadModel() throws SQLException {\n\t\tObject rs = MysqlConnection.getDbConnection().getQueryData(query);\n\t\tclassifier = (FilteredClassifier)rs;\n\t}", "public OWLModel getKnowledgeBase();", "public abstract Class<?>[] getCoClasses();", "public interface Activity extends RUP_Core_Elements {\n\n /* ***************************************************\n * Property http://www.semanticweb.org/morningstar/ontologies/2019/9/untitled-ontology-9#hasRecommendation\n */\n \n /**\n * Gets all property values for the hasRecommendation property.<p>\n * \n * @returns a collection of values for the hasRecommendation property.\n */\n Collection<? extends PM_Learning_Material> getHasRecommendation();\n\n /**\n * Checks if the class has a hasRecommendation property value.<p>\n * \n * @return true if there is a hasRecommendation property value.\n */\n boolean hasHasRecommendation();\n\n /**\n * Adds a hasRecommendation property value.<p>\n * \n * @param newHasRecommendation the hasRecommendation property value to be added\n */\n void addHasRecommendation(PM_Learning_Material newHasRecommendation);\n\n /**\n * Removes a hasRecommendation property value.<p>\n * \n * @param oldHasRecommendation the hasRecommendation property value to be removed.\n */\n void removeHasRecommendation(PM_Learning_Material oldHasRecommendation);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/morningstar/ontologies/2019/9/untitled-ontology-9#isPerformOf\n */\n \n /**\n * Gets all property values for the isPerformOf property.<p>\n * \n * @returns a collection of values for the isPerformOf property.\n */\n Collection<? extends Role> getIsPerformOf();\n\n /**\n * Checks if the class has a isPerformOf property value.<p>\n * \n * @return true if there is a isPerformOf property value.\n */\n boolean hasIsPerformOf();\n\n /**\n * Adds a isPerformOf property value.<p>\n * \n * @param newIsPerformOf the isPerformOf property value to be added\n */\n void addIsPerformOf(Role newIsPerformOf);\n\n /**\n * Removes a isPerformOf property value.<p>\n * \n * @param oldIsPerformOf the isPerformOf property value to be removed.\n */\n void removeIsPerformOf(Role oldIsPerformOf);\n\n\n /* ***************************************************\n * Common interfaces\n */\n\n OWLNamedIndividual getOwlIndividual();\n\n OWLOntology getOwlOntology();\n\n void delete();\n\n}", "public void buildClassifier(Instances instances) throws Exception {\r\n\t\tif (instances.checkForStringAttributes()) {\r\n\t\t\tthrow new UnsupportedAttributeTypeException(\"Cannot handle string attributes!\");\r\n\t\t} \r\n\t\tif (instances.numInstances() == 0) {\r\n\t\t\t//throw new IllegalArgumentException(\"No training instances.\");\r\n\t\t}\r\n\t\tif (instances.numAttributes() == 1) {\r\n\t\t\tSystem.err.println(\"No training instances found - only classes.\");\r\n\t\t\tthrow new IllegalArgumentException(\"No training instances found - only classes.\");\r\n\t\t}\r\n\t\t\r\n\t\tinstances = initClassifier(instances);\r\n\r\n\t\tcreateInputLayer(instances);\r\n\t\tcreateOutputLayer(instances);\r\n\t\tcreateHiddenLayer();\r\n\r\n\t\t// connections done.\r\n\t\t// learnClassifier(instances);\r\n\t}", "@Override\n\tpublic Metamodel getMetamodel() {\n\t\treturn null;\n\t}", "public String getClassification() {\r\n\t\treturn this.classification;\r\n\t}", "public static interface Enhancer{\r\n\t\t\r\n\t\tpublic Classification getClassification(ClassifierGenerator generator, Processor processor, TreeNode tree, Tuple tuple, long dueTime);\r\n\t}", "public Integer getClassify() {\n return classify;\n }", "public static void KNNClassifier() throws IOException {\n\n\t\tDataset data = FileHandler.loadSparseDataset(new File(\n\t\t\t\t\"./WebContent/corpus/trainVectors\"), 0, \" \", \":\");\n\n\t\tClassifier knn = new KNearestNeighbors(5);\n\t\tknn.buildClassifier(data);\n\n\n\t\tDataset dataForClassification = FileHandler.loadSparseDataset(new File(\n\t\t\t\t\"./WebContent/corpus/testVectors\"), 0, \" \", \":\");\n\n\t\tint correct = 0, wrong = 0;\n\n\t\tfor (Instance inst : dataForClassification) {\n\t\t\tObject predictedClassValue = knn.classify(inst);\n\t\t\tObject realClassValue = inst.classValue();\n\t\t\tif (predictedClassValue.equals(realClassValue))\n\t\t\t\tcorrect++;\n\t\t\telse\n\t\t\t\twrong++;\n\t\t}\n\t\tSystem.out.println(\"Correct predictions \" + correct);\n\t\tSystem.out.println(\"Wrong predictions \" + wrong);\n\t\tSystem.out.println(\"Accuracy: \" + (float) correct / (correct + wrong));\n\n\t}", "@Override\n\tpublic void execute(Collection<? extends EObject> selections, Map<String, Object> parameters) {\n\t\tfor (EObject eObject : selections) {\n\t\t\tUnknowClass uc = (UnknowClass) eObject;\n\t\t\tMM_uncertaintyFactory factory = MM_uncertaintyFactory.eINSTANCE;\n\t\t\tClass c = factory.createClass();\n\t\t\tc.setIsAbstract(uc.getIsAbstract());\n\t\t\tc.setMandatoryAllowed(uc.isMandatoryAllowed());\n\n\t\t\tc.setName(\"Assign Class Name\");\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tfor (MM_uncertainty.Feature f : uc.getFeats()) {\n\t\t\t\tc.getFeats().add(EcoreUtil.copy(f));\n\t\t\t}\n\t\t\tfor (Class antiac : uc.getAntiancs()) {\n\t\t\t\tc.getAntiancs().add(antiac);\n\t\t\t}\n\t\t\tfor (Class anc : uc.getAncs()) {\n\t\t\t\tc.getAncs().add(anc);\n\t\t\t}\n\t\t\t\n\n\t\t\tMetamodel mm = (Metamodel) uc.eContainer();\n\t\t\tList<Class> ancsList = mm.getClasses().stream().filter(z -> z.getAncs().contains(uc)).collect(Collectors.toList());\n\t\t\tfor (Class anc : ancsList) {\n\t\t\t\tanc.getAncs().remove(uc);\n\t\t\t\tanc.getAncs().add(c);\n\t\t\t}\n\t\t\tList<Class> antiAncsList = mm.getClasses().stream().filter(z -> z.getAntiancs().contains(uc)).collect(Collectors.toList());\n\t\t\tfor (Class anc : antiAncsList) {\n\t\t\t\tanc.getAntiancs().remove(uc);\n\t\t\t\tanc.getAntiancs().add(c);\n\t\t\t}\n\t\t\t\n\t\t\tmm.getClasses().remove(uc);\n\t\t\tmm.getClasses().add(c);\n\n\t\t\t// Update references types\n\t\t\tfor (Iterator i = mm.eResource().getAllContents(); i.hasNext();) {\n\t\t\t\tObject object = i.next();\n\t\t\t\tif (Reference.class.isInstance(object)) {\n\t\t\t\t\t// ...\n\t\t\t\t\tReference ref = (Reference) object;\n\t\t\t\t\tEList<Class> targets = ref.getTarget();\n\t\t\t\t\tboolean found = false;\n\t\t\t\t\tfor (Class class1 : targets) {\n\n\t\t\t\t\t\tif (class1.equals(uc)) {\n\t\t\t\t\t\t\tSystem.err.println(\"found dangling node\");\n\t\t\t\t\t\t\t// redirect target to the new class\n\t\t\t\t\t\t\tfound = true;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// if found a dangling node\n\t\t\t\t\tif (found)\n\t\t\t\t\t\tref.getTarget().add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void classify() throws IOException\n {\n TrainingParameters tp = new TrainingParameters();\n tp.put(TrainingParameters.ITERATIONS_PARAM, 100);\n tp.put(TrainingParameters.CUTOFF_PARAM, 0);\n\n DoccatFactory doccatFactory = new DoccatFactory();\n DoccatModel model = DocumentCategorizerME.train(\"en\", new IntentsObjectStream(), tp, doccatFactory);\n\n DocumentCategorizerME categorizerME = new DocumentCategorizerME(model);\n\n try (Scanner scanner = new Scanner(System.in))\n {\n while (true)\n {\n String input = scanner.nextLine();\n if (input.equals(\"exit\"))\n {\n break;\n }\n\n double[] classDistribution = categorizerME.categorize(new String[]{input});\n String predictedCategory =\n Arrays.stream(classDistribution).filter(cd -> cd > 0.5D).count() > 0? categorizerME.getBestCategory(classDistribution): \"I don't understand\";\n System.out.println(String.format(\"Model prediction for '%s' is: '%s'\", input, predictedCategory));\n }\n }\n }", "modelProvidersI getProvider();", "org.landxml.schema.landXML11.ClassificationDocument.Classification addNewClassification();", "private void generalFeatureExtraction () {\n Logger.log(\"Counting how many calls each method does\");\n Chain<SootClass> classes = Scene.v().getApplicationClasses();\n try {\n for (SootClass sclass : classes) {\n if (!isLibraryClass(sclass)) {\n System.out.println(ConsoleColors.RED_UNDERLINED + \"\\n\\n 🔍🔍 Checking invocations in \" +\n sclass.getName() + \" 🔍🔍 \" + ConsoleColors.RESET);\n List<SootMethod> methods = sclass.getMethods();\n for (SootMethod method : methods) {\n featuresMap.put(method, new Features(method));\n }\n }\n }\n } catch (Exception e) { \n }\n System.out.println(\"\\n\");\n }", "private void generateModel() {\n // Initialize a new model object\n mCm = new CategoryModel[nodes.length];\n\n for (int i = 0; i < nodes.length; i++) {\n mCm[i] = new CategoryModel(nodes[i].id, nodes[i].title);\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n public static void main(String[] args)\r\n {\r\n //final String INPUT_FILE=\"contact-lenses.arff\";\r\n final String INPUT_FILE=\"adult.merged.arff\";\r\n Instances data;\r\n try {\r\n Reader reader = new FileReader(INPUT_FILE);\r\n data = new Instances(reader);\r\n } catch (Exception e) {\r\n System.out.println(\"Failed to read input file \" + INPUT_FILE + \", exiting\");\r\n return;\r\n }\r\n data.setClassIndex(data.numAttributes()-1);\r\n\r\n System.out.println(\"Acquired data from file \" + INPUT_FILE);\r\n System.out.println(\"Got \" + data.numInstances() + \" instances with \" + data.numAttributes() + \" attributes, class attribute is \" + data.classAttribute().name());\r\n AttributeScoreAlgorithm scorer = new MaxScorer ();\r\n Enumeration<Attribute> atts=(Enumeration<Attribute>)data.enumerateAttributes();\r\n while (atts.hasMoreElements())\r\n {\r\n C45Attribute att=new C45Attribute(atts.nextElement());\r\n System.out.println(\"Score for attribute \" + att.WekaAttribute().name() + \" is \" + scorer.Score(data,att));\r\n }\r\n\r\n List<C45Attribute> candidateAttributes = new LinkedList<C45Attribute>();\r\n Enumeration attEnum = data.enumerateAttributes();\r\n while (attEnum.hasMoreElements())\r\n candidateAttributes.add(new C45Attribute((Attribute)attEnum.nextElement()));\r\n BigDecimal epsilon=new BigDecimal(0.1, DiffPrivacyClassifier.MATH_CONTEXT);\r\n PrivacyAgent agent = new PrivacyAgentBudget(epsilon);\r\n\r\n PrivateInstances privData = new PrivateInstances(agent,data);\r\n privData.setDebugMode(true);\r\n\r\n try {\r\n C45Attribute res=privData.privateChooseAttribute(new MaxScorer(), candidateAttributes,epsilon);\r\n System.out.println(\"Picked attribute \" + res.WekaAttribute().name());\r\n } catch(Exception e) { System.out.println(e.getMessage());}\r\n }", "public interface ClassifierClass extends javax.jmi.reflect.RefClass {\n}", "public interface Ontology {\n\n /**\n * Load an array URIs which resolve to ontology resources.\n *\n * @param urls a {@link java.lang.String} containing ontology URIs.\n */\n public void load(String[] urls);\n\n /**\n * Load a collection of default ontology resources.\n */\n public void load() ;\n\n /**\n * merge relevant ontology subgraphs into a new subgraph which can\n * be used within Mudrod\n *\n * @param o an ontology to merge with the current ontology held\n * within Mudrod.\n */\n public void merge(Ontology o);\n\n /**\n * Retreive all subclasses for a particular entity provided within the\n * search term e.g.subclass-based query expansion.\n *\n * @param entitySearchTerm an input search term\n * @return an {@link java.util.Iterator} object containing subClass entries.\n */\n public Iterator<String> subclasses(String entitySearchTerm);\n\n /**\n * Retreive all synonyms for a particular entity provided within the\n * search term e.g.synonym-based query expansion.\n *\n * @param queryKeyPhrase a phrase to undertake synonym expansion on.\n * @return an {@link java.util.Iterator} object containing synonym entries.\n */\n public Iterator<String> synonyms(String queryKeyPhrase);\n\n}", "public Object[] getImplementations() {\n\t\tObject[] res = { HackProjectLearner.class };\n\t\treturn res;\n\t}", "public AbstractKnowledge() {\n requiredFacts = new ArrayList<>();\n }", "@Internal(\"Represented as part of archiveName\")\n public String getClassifier() {\n return classifier;\n }", "private void doBayesianClassification() {\n\t\tList<MutualInformation> mutualInformationList = new ArrayList<MutualInformation>();\r\n\t\tint k = 5;\r\n\t\tSystem.out.println(\"k = \" + k);\r\n\t\tdouble N = fileNames.size();\r\n\t\t\r\n\t\tList<Set<String>> classifiedDocsList = new ArrayList<Set<String>>();\r\n\t\tclassifiedDocsList.add(setOfHamiltonDocs);\r\n\t\tclassifiedDocsList.add(setOfMadisonDocs);\r\n\t\tclassifiedDocsList.add(setOfJayDocs);\r\n\t\t\r\n\t\tfor (String term : corpusVocab) {\r\n\r\n\t\t\t// All docs containing this term\r\n\t\t\tSet<String> matchingDocs = new HashSet<String>();\r\n\t\t\t\r\n\t\t\tfor (PositionalPosting posting : pInvertedIndex.getPostings(term)) {\r\n\t\t\t\tmatchingDocs.add(fileNames.get(posting.getDocumentId()));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// iterate through all classes (Hamilton, Madison, Jay)\r\n\t\t\tfor (int i = 0; i < classifiedDocsList.size(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tSet<String> classifiedDocs = classifiedDocsList.get(i);\r\n\t\t\t\t\r\n\t\t\t\tSet<String> intersection = new HashSet<String>(matchingDocs);\r\n\t\t\t\tintersection.retainAll(classifiedDocs);\r\n\t\t\t\tdouble N11 = intersection.size();\r\n\t\t\t\t\r\n\t\t\t\tSet<String> difference = new HashSet<String>(matchingDocs);\r\n\t\t\t\tdifference.removeAll(classifiedDocs);\r\n\t\t\t\tdouble N10 = difference.size();\r\n\t\t\t\t\r\n\t\t\t\tdouble N01 = classifiedDocs.size() - N11;\r\n\t\t\t\tdouble N00 = fileNames.size() - classifiedDocs.size() - N10;\r\n\r\n\t\t\t\t// Calculate I(t,c)\r\n\t\t\t\tdouble Itc = (N11 / N) * log2((N * N11) / ((N11 + N10) * (N11 + N01)))\r\n\t\t\t\t\t\t+ (N01 / N) * log2((N * N01) / ((N01 + N00) * (N11 + N01)))\r\n\t\t\t\t\t\t+ (N10 / N) * log2((N * N10) / ((N11 + N10) * (N10 + N00)))\r\n\t\t\t\t\t\t+ (N00 / N) * log2((N * N00) / ((N01 + N00) * (N10 + N00)));\r\n\t\t\t\tif (!Double.isNaN(Itc)) {\r\n\t\t\t\t\tmutualInformationList.add(new MutualInformation(term, Itc));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Build Discriminating Set of vocab terms by sorting mutual information\r\n\t\t// list and keep the first k values\r\n\t\tSet<String> terms = new HashSet<String>();\r\n\t\tCollections.sort(mutualInformationList, Collections.reverseOrder());\r\n\t\tfor (int i = 0; i < k; i++) {\r\n\t\t\tterms.add(mutualInformationList.get(i).getTerm());\r\n\t\t}\r\n\t\t\r\n\t\t// get term counts in classified (trainer) docs\t\t\r\n\t\tint[] classifiedDocsTermFreq = new int[classifiedDocsList.size()];\r\n\t\t\r\n\t\tclassifiedDocsTermFreq[0] = getTermFreq(hamiltonDocs, terms);\r\n\t\tclassifiedDocsTermFreq[1] = getTermFreq(madisonDocs, terms);\r\n\t\tclassifiedDocsTermFreq[2] = getTermFreq(jayDocs, terms);\r\n\t\t\r\n\t\t// Calculate p(t|c)\r\n\t\t// maps term to list of p(t|c) for each class\r\n\t\tMap<String, List<Double>> ptc = new HashMap<String, List<Double>>();\r\n\t\t\r\n\t\tfor (String term : terms) {\r\n\t\t\tptc.put(term, new ArrayList<Double>());\r\n\t\t\tfor (int i = 0; i < classifiedDocsList.size(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tint ftc = 0;\r\n\t\t\t\tfor (PositionalPosting posting : pInvertedIndex.getPostings(term)) {\r\n\t\t\t\t\tif (classifiedDocsList.get(i).contains(fileNames.get(posting.getDocumentId()))) {\r\n\t\t\t\t\t\tftc += posting.getPositions().size();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tptc.get(term).add((double) (ftc + 1) / (double) (classifiedDocsTermFreq[i] + terms.size()));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// visit each unclassified document\r\n\t\ttry {\r\n\t\t\tPath currentWorkingPath = Paths.get(toBeClassified).toAbsolutePath();\r\n\t\t\t// This is our standard \"walk through all .txt files\" code.\r\n\t\t\tFiles.walkFileTree(currentWorkingPath, new SimpleFileVisitor<Path>() {\r\n\r\n\t\t\t\tpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\r\n\t\t\t\t\t// make sure we only process the current working directory\r\n\t\t\t\t\tif (currentWorkingPath.equals(dir)) {\r\n\t\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn FileVisitResult.SKIP_SUBTREE;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tpublic FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {\r\n\r\n\t\t\t\t\tif (file.toString().endsWith(\".txt\")) {\r\n\r\n\t\t\t\t\t\tTokenStream tokenStream = null;\r\n\t\t\t\t\t\t// terms in this document\r\n\t\t\t\t\t\tSet<String> docTerms = new HashSet<String>();\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\ttokenStream = Utils.getTokenStreams(file.toFile());\r\n\t\t\t\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\twhile (tokenStream.hasNextToken()) {\r\n\t\t\t\t\t\t\tString token = Utils.processWord(tokenStream.nextToken().trim(), false);\r\n\t\t\t\t\t\t\tdocTerms.add(token);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// only keep terms in discriminating set\r\n\t\t\t\t\t\tdocTerms.retainAll(terms);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// calculate log(p(c) + sum(log(p(ti|c))) for each class\r\n\t\t\t\t\t\tdouble[] pce = new double[classifiedDocsList.size()];\r\n\t\t\t\t\t\tfor (int i = 0; i < classifiedDocsList.size(); i++) {\r\n\t\t\t\t\t\t\tdouble sum = 0;\r\n\t\t\t\t\t\t\tfor (String term : docTerms) {\r\n\t\t\t\t\t\t\t\tsum += Math.log(ptc.get(term).get(i));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tpce[i] = Math.log(classifiedDocsTermFreq[i] / terms.size()) + sum;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (pce[0] > pce[1] && pce[0] > pce[2]) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Document : \" + file.getFileName().toString() + \" : belongs to Hamilton\");\r\n\t\t\t\t\t\t} else if (pce[1] > pce[0] && pce[1] > pce[2]) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Document : \" + file.getFileName().toString() + \" : belongs to Madison\");\r\n\t\t\t\t\t\t} else if (pce[2] > pce[0] && pce[2] > pce[1]) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Document : \" + file.getFileName().toString() + \" : belongs to Jay\");\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tSystem.out.println(\"I don't know whom document : \" + file.getFileName().toString() + \" : belongs to.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// don't throw exceptions if files are locked/other errors occur\r\n\t\t\t\tpublic FileVisitResult visitFileFailed(Path file, IOException e) {\r\n\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "List<FeatureDistribution> asFeatureDistributions();", "public EnsembleLibraryModel(Classifier classifier) {\n \n m_Classifier = classifier;\n \n //this may seem redundant and stupid, but it really is a good idea \n //to cache the stringRepresentation to minimize the amount of work \n //that needs to be done when these Models are rendered\n m_StringRepresentation = toString();\n \n updateDescriptionText();\n }" ]
[ "0.68896455", "0.658784", "0.64331084", "0.63902545", "0.6316004", "0.61663747", "0.61640084", "0.60918987", "0.6050976", "0.59519655", "0.5947917", "0.59133595", "0.58535266", "0.58514977", "0.584957", "0.5847682", "0.58256686", "0.5819826", "0.5814447", "0.5813001", "0.57967776", "0.57951397", "0.5755436", "0.5743078", "0.5724652", "0.5717289", "0.56851286", "0.56739414", "0.5660375", "0.5657415", "0.5638201", "0.563711", "0.56218326", "0.55702883", "0.5568891", "0.55626434", "0.55481625", "0.55420095", "0.553465", "0.55309486", "0.5528706", "0.5516858", "0.5491206", "0.5476719", "0.5475886", "0.5475886", "0.5451711", "0.5434231", "0.5433737", "0.54308724", "0.54304016", "0.5412023", "0.53866833", "0.5380677", "0.53760624", "0.5371421", "0.53685635", "0.53667974", "0.5360424", "0.53594035", "0.5344019", "0.5331442", "0.53302515", "0.53286856", "0.53128153", "0.5307044", "0.53011876", "0.52856517", "0.5269112", "0.5244603", "0.5236835", "0.52259386", "0.52183986", "0.521367", "0.5212313", "0.5208402", "0.5205541", "0.5194908", "0.5176966", "0.5173809", "0.51601905", "0.51574355", "0.5152787", "0.51522547", "0.51503426", "0.5135498", "0.51231647", "0.512021", "0.51197654", "0.510713", "0.50967795", "0.50813735", "0.50665313", "0.50415576", "0.50349224", "0.50346273", "0.50346005", "0.50322276", "0.5030361", "0.5027213" ]
0.65788287
2
number of classifiers in the metamodel
public int getNumEClassifiers () { return this.classifiers.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumOfClasses();", "public int getFeaturesCount();", "int getFeaturesCount();", "@Override\n\tpublic int numClasses() {\n\t\treturn attributes[classIndex].numValues();\n\t}", "int sizeOfClassificationArray();", "public int getNumberOfClasses() {\n return 200;\n }", "int countFeatures();", "int countFeatures();", "int countTypedFeatures();", "public int getNumberOfPredictors()\n {\n return 1;\n }", "int getDetectionRulesCount();", "int getObjectAnnotationsCount();", "int getObjectAnnotationsCount();", "int getFeatureCount();", "public int numberOfFeatures(){\n\t\treturn indexByFeature.keySet().size();\n\t}", "public int getNumInstances() {\n return this.train_values.get(0).length;\n }", "int getClassIdSigmoidParametersMapCount();", "int getLabelAnnotationsCount();", "int getLabelAnnotationsCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getClassIdXyPairsMapCount();", "int getSuperClassesCount();", "int getAttributesCount();", "int getAttributesCount();", "int getAnnotationCount();", "public int getFeatureCount() {\n\r\n\t\treturn _features.length;\r\n\t}", "public double getNumberOfCorrectlyClassified() {\n\t\treturn numberOfTruePositives + numberOfTrueNegatives;\n\t}", "public int numFeatures() {\n return FTypes.values().length;\n }", "@Override\n\tpublic int size()\n\t{\n\t\tint count = 0;\n\t\tfor (Variable var : FactorGraphIterables.variables(rootGraph()))\n\t\t{\n\t\t\tif (var.getPrior() != null)\n\t\t\t{\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "int getLabelsCount();", "int getLabelsCount();", "int getLabelsCount();", "int getLabelsCount();", "int getMetadataCount();", "int getMetadataCount();", "int getMetadataCount();", "int getMetadataCount();", "int getMetricDescriptorsCount();", "int countAnnotations() {\n \tSet<Annotation> set = new LinkedHashSet<Annotation>();\n \tfor (Layer layer : layers.values())\n \t\tset.addAll(layer);\n \treturn set.size();\n }", "int countInstances();", "int cardinality();", "@java.lang.Override\n public int getPredictionsCount() {\n return predictions_.size();\n }", "public int getNumModels() {\n return models.size();\n }", "int getExamplesCount();", "int getExamplesCount();", "public int countOfGenerations ();", "int getNumberOfNecessaryAttributes();", "public int getNumberOfAnnotations() {\n\t\treturn numberOfAnnotations & 0xffff;\n\t}", "public int getNumberOfFeatures() {\n\t\treturn numberOfFeatures;\n\t}", "int getConstraintsCount();", "public int size() {\n return models.size();\n }", "int getClasspathCount();", "int getClasspathCount();", "public long numSimilarities();", "public int getAttributeCount()\n/* */ {\n/* 728 */ return this.attributes.size();\n/* */ }", "public int getNrOfAssociations() {\n int size = 0;\n for (PriorityCollection associations : memory.values()) {\n size += associations.size();\n }\n return size;\n }", "public double getNumberOfIncorrectClassified() {\n\t\treturn numberOfFalsePositives + numberOfFalseNegatives;\n\t}", "public int size() {\n return neurons.size();\n }", "public int getNumberOfSets();", "@FameProperty(name = \"numberOfAccessingClasses\", derived = true)\n public Number getNumberOfAccessingClasses() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "int countByExample(RepStuLearningExample example);", "public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$14);\r\n }\r\n }", "int getEducationsCount();", "public int getPredictionsCount() {\n if (predictionsBuilder_ == null) {\n return predictions_.size();\n } else {\n return predictionsBuilder_.getCount();\n }\n }", "Classifier getClassifier();", "int getShotAnnotationsCount();", "int getShotAnnotationsCount();", "public int size(){\n\t\treturn labels==null ? 0 : labels.size();\n\t}", "public int getNbVehicles() {\n\t\t\treturn K;\r\n\t\t}", "public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$6);\r\n }\r\n }", "public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$6);\r\n }\r\n }", "int getExperimentsCount();", "private int[] countClasses(List<Instance> instances){\r\n\t\tint[] counters = new int[classes.size()];\r\n\t\tfor(Instance ins : instances){\r\n\r\n\t\t\tfor(String str : classes){\r\n\t\t\t\tif(ins.getClassAttribute().equals(str)){\r\n\t\t\t\t\tcounters[classes.indexOf(str)]++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t\treturn counters;\r\n\t}", "public abstract int getScenarioCount();", "public int getNumberOfFeatures() {\n return features.size() - 1; // because slot 0 is skipped\n }", "protected int numGenes() {\n\t\treturn genes.size();\n\t}", "@BeforeSuite\n\tpublic void numofTestCases() throws ClassNotFoundException {\n\t\tappiumService.TOTAL_NUM_OF_TESTCASES=GetMethods.TotalTestcase(\"_Stability_\", this.getClass());\n\n\n\n\t}", "private void initializeSentimentFeaturesCount() {\n\t\tint count = 0;\n\n\t\t// Number of positive words\n\t\tif (Features.isNumberOfPositiveWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of negative words\n\t\tif (Features.isNumberOfNegativeWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of highly emotional positive words\n\t\tif (Features.isNumberOfHighlyEmoPositiveWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of highly emotional negative words\n\t\tif (Features.isNumberOfHighlyEmoNegativeWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of Capitalized positive words\n\t\tif (Features.isNumberOfCapitalizedPositiveWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of Capitalized Negative Words\n\t\tif (Features.isNumberOfCapitalizedNegativeWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Ratio of Emotional Words\n\t\tif (Features.isRatioOfEmotionalWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of Positive Emoticons\n\t\tif (Features.isNumberOfPositiveEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of Negative Emoticons\n\t\tif (Features.isNumberOfNegativeEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of \"Neutral\" Emoticons\n\t\tif (Features.isNumberOfNeutralEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of \"Joking\" Emoticons\n\t\tif (Features.isNumberOfJokingEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number Of Positive Slangs\n\t\tif (Features.isNumberOfPositiveSlangs()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of Negative Slangs\n\t\tif (Features.isNumberOfNegativeSlangs()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number Of Positive Hashtags\n\t\tif (Features.isNumberOfPositiveHashtags()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number Of Negative Hashtags\n\t\tif (Features.isNumberOfNegativeHashtags()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Contrast Words Vs Words\n\t\tif (Features.isContrastWordsVsWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Contrast Words Vs Hashtags\n\t\tif (Features.isContrastWordsVsHashtags()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Contrast Words Vs Emoticons\n\t\tif (Features.isContrastWordsVsEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Contrast Hashtags Vs Hashtags\n\t\tif (Features.isContrastHashtagsVsHashtags()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Contrast Hashtags Vs Emoticons\n\t\tif (Features.isContrastHashtagsVsEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\tSelectBasicFeaturesWindow.setNumberOfSentimentRelatedFeatures(count);\n\t\tSelectBasicFeaturesWindow.countOfSentimentRelatedFeatures.set(count);\n\t}", "int getMetricsCount();", "public int getFeaturesSize();", "int getRulesCount();", "int sizeOfFeatureArray();", "int sizeOfFeatureArray();", "@Override\n\tpublic int numUses() {\n\t\treturn this.use;\n\t}", "long getFeaturesUsed();", "@Test\n public void testElementCounts() {\n assertEquals(0, model3d.getBlocks().size());\n\n assertEquals(28, model3d.getEdges().size());\n assertEquals(16, model3d.getFaces().size());\n assertEquals(14, model3d.getPoints().size());\n }", "public int getInstancesPerType()\n {\n return instancesPerType;\n }", "public int getProcessedCount()\r\n {\r\n return myFeatureCount;\r\n }", "public long getNumberOfDetectedConcepts() {\n return numberOfDetectedConcepts;\n }", "public int getClasses(){\r\n\t\treturn this.classes;\r\n\t}", "int countByExample(TrainingCourseExample example);", "public int getNumOfAttributes()\r\n\t{\r\n\t\tint n = userDefiendAttr.size();\r\n\t\tif (name != null)\r\n\t\t\tn++;\r\n\t\tif (regid != null)\r\n\t\t\tn++;\r\n\t\tif (type != null)\r\n\t\t\tn++;\r\n\t\tif (coord2d != null)\r\n\t\t\tn++;\r\n\t\tif (coord3d != null)\r\n\t\t\tn++;\r\n\t\tif (valences != null)\r\n\t\t\tn++;\r\n\t\treturn n;\r\n\t}", "int getAttributeFieldMappingsCount();", "@Override\n\tpublic int count() {\n\t\treturn 4;\n\t}", "int countAssociations();", "int getNumFrequents() {\n return numFrequents;\n }" ]
[ "0.73567456", "0.70556295", "0.70113695", "0.6986137", "0.6973137", "0.6793315", "0.6758595", "0.6758595", "0.6735773", "0.6717995", "0.66987646", "0.66890055", "0.66890055", "0.6687046", "0.66815567", "0.65245056", "0.6508267", "0.6503775", "0.6503775", "0.6474979", "0.6474979", "0.6474979", "0.6474979", "0.6474979", "0.64378643", "0.64300007", "0.6406155", "0.6406155", "0.64033914", "0.6392583", "0.63712", "0.6370634", "0.63419867", "0.6329154", "0.6329154", "0.6329154", "0.6329154", "0.6327564", "0.6327564", "0.6327564", "0.6327564", "0.63232076", "0.63031596", "0.62824035", "0.6278502", "0.62746274", "0.6270682", "0.62556255", "0.62556255", "0.62328285", "0.6205616", "0.6137102", "0.6121814", "0.6082721", "0.6076068", "0.6073803", "0.6073803", "0.60672104", "0.60596627", "0.6048471", "0.60433495", "0.6034522", "0.6029034", "0.60225004", "0.6011303", "0.6006511", "0.60053056", "0.6005109", "0.59996045", "0.5997686", "0.5997686", "0.5997558", "0.5994193", "0.5993978", "0.5993978", "0.5988492", "0.59812284", "0.59805685", "0.5980241", "0.597798", "0.5969853", "0.59662944", "0.5963892", "0.5952499", "0.59435266", "0.59408253", "0.59408253", "0.5940132", "0.5938815", "0.59283054", "0.59138143", "0.59087455", "0.59076744", "0.5907464", "0.59064204", "0.5894078", "0.5887493", "0.58784616", "0.5863132", "0.5860071" ]
0.7668918
0
name / uri / prefix of the bigger package in the metamodel
public String getName () { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String packageName();", "public abstract String getTargetPackage();", "public abstract String getTargetPackage();", "java.lang.String getPackage();", "protected abstract String getPackageName();", "MystPackage getMystPackage();", "ThingMLPackage getThingMLPackage();", "SmallEcorePackage getSmallEcorePackage();", "public String getPackageName();", "IoT_metamodelPackage getIoT_metamodelPackage();", "default String getPackageName() {\n return declaringType().getPackageName();\n }", "String getPackageName() {\n final int lastSlash = name.lastIndexOf('/');\n final String parentPath = name.substring(0, lastSlash);\n return parentPath.replace('/', '.');\n }", "String pkg();", "java.lang.String getPackageName();", "protected static String getModelPackageName (Context context){\r\n\t\tString packageName = getMetaDataString(context, METADATA_MODEL_PACKAGE_NAME);\r\n\t\tif (packageName == null)\r\n\t\t\treturn \"\";\r\n\t\treturn packageName;\r\n\t}", "String getPackageName();", "public String getPackageName() {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n if (fq != null) {\n return fq.getPackageName();\n }\n String typeName = getTypeName();\n int lastDot = typeName.lastIndexOf('.');\n return lastDot < 0 ? \"\" : typeName.substring(0, lastDot);\n }", "GramaticaPackage getGramaticaPackage();", "@Override\n public String toString() {\n return packageName;\n }", "io.deniffel.dsl.useCase.useCase.Package getPackage();", "public PackageNode getPackage();", "EncorePackage getEncorePackage();", "RelationalPackage getRelationalPackage();", "protected abstract JPackage getPackage( JPackage pkg, Aspect a );", "OntoumlPackage getOntoumlPackage();", "NassishneidermanPackage getNassishneidermanPackage();", "NgtPackage getNgtPackage();", "private String getPrefixDuringSave(String namespace) {\r\n EPackage ePackage = extendedMetaData.getPackage(namespace);\r\n if (ePackage == null) {\r\n ePackage = extendedMetaData.demandPackage(namespace);\r\n // This will internally create a nice prefix\r\n }\r\n String prefix = ePackage.getNsPrefix();\r\n // I'm not sure if the following code is needed, but I keep it to avoid inconsistencies\r\n if (!packages.containsKey(ePackage)) {\r\n packages.put(ePackage, prefix);\r\n }\r\n prefixesToURIs.put(prefix, namespace);\r\n return prefix;\r\n }", "public String getModelPackageStr() {\n\t\tString thepackage = getModelXMLTagValue(\"package\");\n\t\treturn thepackage != null ? thepackage + \".\" : \"\";\n\t}", "String packageName() {\n return name;\n }", "public String getBasePackage() {\n\t\treturn DataStore.getInstance().getBasePackage();\n\t}", "public abstract String getAndroidPackage();", "String getPackager();", "TypePackage getTypePackage();", "private static String getPackage() {\n\t\tPackage pkg = EnergyNet.class.getPackage();\n\n\t\tif (pkg != null) {\n\t\t\tString packageName = pkg.getName();\n\n\t\t\treturn packageName.substring(0, packageName.length() - \".api.energy\".length());\n\t\t}\n\n\t\treturn \"ic2\";\n\t}", "ComponentmodelPackage getComponentmodelPackage();", "public UMLPackageBean getPackage() {\n return umlPkg;\n }", "@Override\n public String getLocalPackageName() {\n return Name.from(getApiWrapperModuleName().split(\"[^a-zA-Z0-9']+\")).toLowerCamel();\n }", "LtmlPackage getLtmlPackage();", "EisPackage getEisPackage();", "NfrPackage getNfrPackage();", "@Override\n \t\t\t\tpublic String getMetadataGraphName() {\n \t\t\t\t\treturn \"http://opendata.cz/data/metadata\";\n \t\t\t\t}", "XPackage getXPackage();", "public String getPackaging();", "public String getBasePackage() {\n\t\treturn this.basePackage;\n\t}", "public abstract VFolder locatePackage(final String pkg_name);", "public String getFullyQualifiedName();", "public String getFullyQualifiedPackageName(final Object object) {\r\n\t\treturn (String) super.invokeCorrectMethod(object);\r\n\t}", "GoalModelingPackage getGoalModelingPackage();", "public interface GraphPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"graph\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"org.openecomp.ncomp.sirius.manager.graph\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"graph\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tGraphPackage eINSTANCE = org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphImpl <em>Gui Graph</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphImpl\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraph()\n\t * @generated\n\t */\n\tint GUI_GRAPH = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Nodes</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH__NODES = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Edges</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH__EDGES = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Gui Graph</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Gui Graph</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl <em>Gui Graph Item</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphItem()\n\t * @generated\n\t */\n\tint GUI_GRAPH_ITEM = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_ITEM__NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Tooltip</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_ITEM__TOOLTIP = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Url</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_ITEM__URL = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Gui Graph Item</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_ITEM_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Gui Graph Item</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_ITEM_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl <em>Gui Graph Node</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphNode()\n\t * @generated\n\t */\n\tint GUI_GRAPH_NODE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE__NAME = GUI_GRAPH_ITEM__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Tooltip</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE__TOOLTIP = GUI_GRAPH_ITEM__TOOLTIP;\n\n\t/**\n\t * The feature id for the '<em><b>Url</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE__URL = GUI_GRAPH_ITEM__URL;\n\n\t/**\n\t * The feature id for the '<em><b>X</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE__X = GUI_GRAPH_ITEM_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Y</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE__Y = GUI_GRAPH_ITEM_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>H</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE__H = GUI_GRAPH_ITEM_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>W</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE__W = GUI_GRAPH_ITEM_FEATURE_COUNT + 3;\n\n\t/**\n\t * The number of structural features of the '<em>Gui Graph Node</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE_FEATURE_COUNT = GUI_GRAPH_ITEM_FEATURE_COUNT + 4;\n\n\t/**\n\t * The number of operations of the '<em>Gui Graph Node</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE_OPERATION_COUNT = GUI_GRAPH_ITEM_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphEdgeImpl <em>Gui Graph Edge</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphEdgeImpl\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphEdge()\n\t * @generated\n\t */\n\tint GUI_GRAPH_EDGE = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_EDGE__NAME = GUI_GRAPH_ITEM__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Tooltip</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_EDGE__TOOLTIP = GUI_GRAPH_ITEM__TOOLTIP;\n\n\t/**\n\t * The feature id for the '<em><b>Url</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_EDGE__URL = GUI_GRAPH_ITEM__URL;\n\n\t/**\n\t * The feature id for the '<em><b>X</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_EDGE__X = GUI_GRAPH_ITEM_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Y</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_EDGE__Y = GUI_GRAPH_ITEM_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>Gui Graph Edge</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_EDGE_FEATURE_COUNT = GUI_GRAPH_ITEM_FEATURE_COUNT + 2;\n\n\t/**\n\t * The number of operations of the '<em>Gui Graph Edge</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_EDGE_OPERATION_COUNT = GUI_GRAPH_ITEM_OPERATION_COUNT + 0;\n\n\n\t/**\n\t * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraph <em>Gui Graph</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Gui Graph</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraph\n\t * @generated\n\t */\n\tEClass getGuiGraph();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraph#getNodes <em>Nodes</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Nodes</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraph#getNodes()\n\t * @see #getGuiGraph()\n\t * @generated\n\t */\n\tEReference getGuiGraph_Nodes();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraph#getEdges <em>Edges</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Edges</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraph#getEdges()\n\t * @see #getGuiGraph()\n\t * @generated\n\t */\n\tEReference getGuiGraph_Edges();\n\n\t/**\n\t * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem <em>Gui Graph Item</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Gui Graph Item</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem\n\t * @generated\n\t */\n\tEClass getGuiGraphItem();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getName()\n\t * @see #getGuiGraphItem()\n\t * @generated\n\t */\n\tEAttribute getGuiGraphItem_Name();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getTooltip <em>Tooltip</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Tooltip</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getTooltip()\n\t * @see #getGuiGraphItem()\n\t * @generated\n\t */\n\tEAttribute getGuiGraphItem_Tooltip();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getUrl <em>Url</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Url</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getUrl()\n\t * @see #getGuiGraphItem()\n\t * @generated\n\t */\n\tEAttribute getGuiGraphItem_Url();\n\n\t/**\n\t * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode <em>Gui Graph Node</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Gui Graph Node</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode\n\t * @generated\n\t */\n\tEClass getGuiGraphNode();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getX <em>X</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>X</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getX()\n\t * @see #getGuiGraphNode()\n\t * @generated\n\t */\n\tEAttribute getGuiGraphNode_X();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getY <em>Y</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Y</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getY()\n\t * @see #getGuiGraphNode()\n\t * @generated\n\t */\n\tEAttribute getGuiGraphNode_Y();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getH <em>H</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>H</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getH()\n\t * @see #getGuiGraphNode()\n\t * @generated\n\t */\n\tEAttribute getGuiGraphNode_H();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getW <em>W</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>W</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getW()\n\t * @see #getGuiGraphNode()\n\t * @generated\n\t */\n\tEAttribute getGuiGraphNode_W();\n\n\t/**\n\t * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge <em>Gui Graph Edge</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Gui Graph Edge</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge\n\t * @generated\n\t */\n\tEClass getGuiGraphEdge();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getX <em>X</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>X</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getX()\n\t * @see #getGuiGraphEdge()\n\t * @generated\n\t */\n\tEReference getGuiGraphEdge_X();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getY <em>Y</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Y</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getY()\n\t * @see #getGuiGraphEdge()\n\t * @generated\n\t */\n\tEReference getGuiGraphEdge_Y();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tGraphFactory getGraphFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphImpl <em>Gui Graph</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphImpl\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraph()\n\t\t * @generated\n\t\t */\n\t\tEClass GUI_GRAPH = eINSTANCE.getGuiGraph();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Nodes</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference GUI_GRAPH__NODES = eINSTANCE.getGuiGraph_Nodes();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Edges</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference GUI_GRAPH__EDGES = eINSTANCE.getGuiGraph_Edges();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl <em>Gui Graph Item</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphItem()\n\t\t * @generated\n\t\t */\n\t\tEClass GUI_GRAPH_ITEM = eINSTANCE.getGuiGraphItem();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GUI_GRAPH_ITEM__NAME = eINSTANCE.getGuiGraphItem_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Tooltip</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GUI_GRAPH_ITEM__TOOLTIP = eINSTANCE.getGuiGraphItem_Tooltip();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Url</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GUI_GRAPH_ITEM__URL = eINSTANCE.getGuiGraphItem_Url();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl <em>Gui Graph Node</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphNode()\n\t\t * @generated\n\t\t */\n\t\tEClass GUI_GRAPH_NODE = eINSTANCE.getGuiGraphNode();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>X</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GUI_GRAPH_NODE__X = eINSTANCE.getGuiGraphNode_X();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Y</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GUI_GRAPH_NODE__Y = eINSTANCE.getGuiGraphNode_Y();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>H</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GUI_GRAPH_NODE__H = eINSTANCE.getGuiGraphNode_H();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>W</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GUI_GRAPH_NODE__W = eINSTANCE.getGuiGraphNode_W();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphEdgeImpl <em>Gui Graph Edge</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphEdgeImpl\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphEdge()\n\t\t * @generated\n\t\t */\n\t\tEClass GUI_GRAPH_EDGE = eINSTANCE.getGuiGraphEdge();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>X</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference GUI_GRAPH_EDGE__X = eINSTANCE.getGuiGraphEdge_X();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Y</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference GUI_GRAPH_EDGE__Y = eINSTANCE.getGuiGraphEdge_Y();\n\n\t}\n\n}", "private BasePackage getPackageModel()\r\n {\r\n return packageCartService.getBasePackage();\r\n }", "public abstract String getQualifiedName();", "RapidmlPackage getRapidmlPackage();", "public interface UberPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"uber\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.loreand.it/mde\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"uber\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tUberPackage eINSTANCE = it.disim.mde.loreand.uber.impl.UberPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link it.disim.mde.loreand.uber.impl.UberImpl <em>Uber</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see it.disim.mde.loreand.uber.impl.UberImpl\n\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getUber()\n\t * @generated\n\t */\n\tint UBER = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint UBER__NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Manager</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint UBER__MANAGER = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Address</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint UBER__ADDRESS = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Customers</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint UBER__CUSTOMERS = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Riders</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint UBER__RIDERS = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Routes</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint UBER__ROUTES = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Supervisors</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint UBER__SUPERVISORS = 6;\n\n\t/**\n\t * The number of structural features of the '<em>Uber</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint UBER_FEATURE_COUNT = 7;\n\n\t/**\n\t * The number of operations of the '<em>Uber</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint UBER_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link it.disim.mde.loreand.uber.Identifiable <em>Identifiable</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see it.disim.mde.loreand.uber.Identifiable\n\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getIdentifiable()\n\t * @generated\n\t */\n\tint IDENTIFIABLE = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IDENTIFIABLE__ID = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Identifiable</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IDENTIFIABLE_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Identifiable</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IDENTIFIABLE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link it.disim.mde.loreand.uber.impl.UserImpl <em>User</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see it.disim.mde.loreand.uber.impl.UserImpl\n\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getUser()\n\t * @generated\n\t */\n\tint USER = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint USER__ID = IDENTIFIABLE__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint USER__NAME = IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Surname</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint USER__SURNAME = IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Email</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint USER__EMAIL = IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Full Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint USER__FULL_NAME = IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The number of structural features of the '<em>User</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint USER_FEATURE_COUNT = IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The number of operations of the '<em>User</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint USER_OPERATION_COUNT = IDENTIFIABLE_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link it.disim.mde.loreand.uber.impl.CustomerImpl <em>Customer</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see it.disim.mde.loreand.uber.impl.CustomerImpl\n\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getCustomer()\n\t * @generated\n\t */\n\tint CUSTOMER = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CUSTOMER__ID = USER__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CUSTOMER__NAME = USER__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Surname</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CUSTOMER__SURNAME = USER__SURNAME;\n\n\t/**\n\t * The feature id for the '<em><b>Email</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CUSTOMER__EMAIL = USER__EMAIL;\n\n\t/**\n\t * The feature id for the '<em><b>Full Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CUSTOMER__FULL_NAME = USER__FULL_NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Subscription Date</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CUSTOMER__SUBSCRIPTION_DATE = USER_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Expiration Date</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CUSTOMER__EXPIRATION_DATE = USER_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Status</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CUSTOMER__STATUS = USER_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Routes</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CUSTOMER__ROUTES = USER_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Card ID</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CUSTOMER__CARD_ID = USER_FEATURE_COUNT + 4;\n\n\t/**\n\t * The number of structural features of the '<em>Customer</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CUSTOMER_FEATURE_COUNT = USER_FEATURE_COUNT + 5;\n\n\t/**\n\t * The number of operations of the '<em>Customer</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CUSTOMER_OPERATION_COUNT = USER_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link it.disim.mde.loreand.uber.impl.RiderImpl <em>Rider</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see it.disim.mde.loreand.uber.impl.RiderImpl\n\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getRider()\n\t * @generated\n\t */\n\tint RIDER = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RIDER__ID = USER__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RIDER__NAME = USER__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Surname</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RIDER__SURNAME = USER__SURNAME;\n\n\t/**\n\t * The feature id for the '<em><b>Email</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RIDER__EMAIL = USER__EMAIL;\n\n\t/**\n\t * The feature id for the '<em><b>Full Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RIDER__FULL_NAME = USER__FULL_NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Status</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RIDER__STATUS = USER_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Location</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RIDER__LOCATION = USER_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Routes</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RIDER__ROUTES = USER_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Carried Out Routes</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RIDER__CARRIED_OUT_ROUTES = USER_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Score</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RIDER__SCORE = USER_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Car</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RIDER__CAR = USER_FEATURE_COUNT + 5;\n\n\t/**\n\t * The number of structural features of the '<em>Rider</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RIDER_FEATURE_COUNT = USER_FEATURE_COUNT + 6;\n\n\t/**\n\t * The operation id for the '<em>Carried Out Customers</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RIDER___CARRIED_OUT_CUSTOMERS = USER_OPERATION_COUNT + 0;\n\n\t/**\n\t * The operation id for the '<em>Is Good Employee</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RIDER___IS_GOOD_EMPLOYEE = USER_OPERATION_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Rider</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RIDER_OPERATION_COUNT = USER_OPERATION_COUNT + 2;\n\n\t/**\n\t * The meta object id for the '{@link it.disim.mde.loreand.uber.impl.GeolocationImpl <em>Geolocation</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see it.disim.mde.loreand.uber.impl.GeolocationImpl\n\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getGeolocation()\n\t * @generated\n\t */\n\tint GEOLOCATION = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Lat</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GEOLOCATION__LAT = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Lng</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GEOLOCATION__LNG = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Geolocation</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GEOLOCATION_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Geolocation</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GEOLOCATION_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link it.disim.mde.loreand.uber.impl.RouteImpl <em>Route</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see it.disim.mde.loreand.uber.impl.RouteImpl\n\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getRoute()\n\t * @generated\n\t */\n\tint ROUTE = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ROUTE__ID = IDENTIFIABLE__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Price</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ROUTE__PRICE = IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Date</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ROUTE__DATE = IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Start Address</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ROUTE__START_ADDRESS = IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>End Address</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ROUTE__END_ADDRESS = IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Feedback</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ROUTE__FEEDBACK = IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Status</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ROUTE__STATUS = IDENTIFIABLE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>Customer</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ROUTE__CUSTOMER = IDENTIFIABLE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The feature id for the '<em><b>Rider</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ROUTE__RIDER = IDENTIFIABLE_FEATURE_COUNT + 7;\n\n\t/**\n\t * The feature id for the '<em><b>Seats</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ROUTE__SEATS = IDENTIFIABLE_FEATURE_COUNT + 8;\n\n\t/**\n\t * The number of structural features of the '<em>Route</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ROUTE_FEATURE_COUNT = IDENTIFIABLE_FEATURE_COUNT + 9;\n\n\t/**\n\t * The number of operations of the '<em>Route</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ROUTE_OPERATION_COUNT = IDENTIFIABLE_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link it.disim.mde.loreand.uber.impl.SupervisorImpl <em>Supervisor</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see it.disim.mde.loreand.uber.impl.SupervisorImpl\n\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getSupervisor()\n\t * @generated\n\t */\n\tint SUPERVISOR = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SUPERVISOR__ID = USER__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SUPERVISOR__NAME = USER__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Surname</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SUPERVISOR__SURNAME = USER__SURNAME;\n\n\t/**\n\t * The feature id for the '<em><b>Email</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SUPERVISOR__EMAIL = USER__EMAIL;\n\n\t/**\n\t * The feature id for the '<em><b>Full Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SUPERVISOR__FULL_NAME = USER__FULL_NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Role</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SUPERVISOR__ROLE = USER_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Supervisor</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SUPERVISOR_FEATURE_COUNT = USER_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Supervisor</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SUPERVISOR_OPERATION_COUNT = USER_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link it.disim.mde.loreand.uber.impl.CardIDImpl <em>Card ID</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see it.disim.mde.loreand.uber.impl.CardIDImpl\n\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getCardID()\n\t * @generated\n\t */\n\tint CARD_ID = 8;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CARD_ID__ID = IDENTIFIABLE__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Path</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CARD_ID__PATH = IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Release Date</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CARD_ID__RELEASE_DATE = IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Institution</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CARD_ID__INSTITUTION = IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Approved</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CARD_ID__APPROVED = IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The number of structural features of the '<em>Card ID</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CARD_ID_FEATURE_COUNT = IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The number of operations of the '<em>Card ID</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CARD_ID_OPERATION_COUNT = IDENTIFIABLE_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link it.disim.mde.loreand.uber.impl.CarImpl <em>Car</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see it.disim.mde.loreand.uber.impl.CarImpl\n\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getCar()\n\t * @generated\n\t */\n\tint CAR = 9;\n\n\t/**\n\t * The feature id for the '<em><b>Licence Plate</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CAR__LICENCE_PLATE = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Model</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CAR__MODEL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Color</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CAR__COLOR = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Car</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CAR_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Car</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CAR_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link it.disim.mde.loreand.uber.RiderStatus <em>Rider Status</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see it.disim.mde.loreand.uber.RiderStatus\n\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getRiderStatus()\n\t * @generated\n\t */\n\tint RIDER_STATUS = 10;\n\n\t/**\n\t * The meta object id for the '{@link it.disim.mde.loreand.uber.RouteStatus <em>Route Status</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see it.disim.mde.loreand.uber.RouteStatus\n\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getRouteStatus()\n\t * @generated\n\t */\n\tint ROUTE_STATUS = 11;\n\n\t/**\n\t * The meta object id for the '{@link it.disim.mde.loreand.uber.CustomerStatus <em>Customer Status</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see it.disim.mde.loreand.uber.CustomerStatus\n\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getCustomerStatus()\n\t * @generated\n\t */\n\tint CUSTOMER_STATUS = 12;\n\n\t/**\n\t * The meta object id for the '{@link it.disim.mde.loreand.uber.RoleSupervisor <em>Role Supervisor</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see it.disim.mde.loreand.uber.RoleSupervisor\n\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getRoleSupervisor()\n\t * @generated\n\t */\n\tint ROLE_SUPERVISOR = 13;\n\n\t/**\n\t * Returns the meta object for class '{@link it.disim.mde.loreand.uber.Uber <em>Uber</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Uber</em>'.\n\t * @see it.disim.mde.loreand.uber.Uber\n\t * @generated\n\t */\n\tEClass getUber();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Uber#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see it.disim.mde.loreand.uber.Uber#getName()\n\t * @see #getUber()\n\t * @generated\n\t */\n\tEAttribute getUber_Name();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Uber#getManager <em>Manager</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Manager</em>'.\n\t * @see it.disim.mde.loreand.uber.Uber#getManager()\n\t * @see #getUber()\n\t * @generated\n\t */\n\tEAttribute getUber_Manager();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Uber#getAddress <em>Address</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Address</em>'.\n\t * @see it.disim.mde.loreand.uber.Uber#getAddress()\n\t * @see #getUber()\n\t * @generated\n\t */\n\tEAttribute getUber_Address();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link it.disim.mde.loreand.uber.Uber#getCustomers <em>Customers</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Customers</em>'.\n\t * @see it.disim.mde.loreand.uber.Uber#getCustomers()\n\t * @see #getUber()\n\t * @generated\n\t */\n\tEReference getUber_Customers();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link it.disim.mde.loreand.uber.Uber#getRiders <em>Riders</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Riders</em>'.\n\t * @see it.disim.mde.loreand.uber.Uber#getRiders()\n\t * @see #getUber()\n\t * @generated\n\t */\n\tEReference getUber_Riders();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link it.disim.mde.loreand.uber.Uber#getRoutes <em>Routes</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Routes</em>'.\n\t * @see it.disim.mde.loreand.uber.Uber#getRoutes()\n\t * @see #getUber()\n\t * @generated\n\t */\n\tEReference getUber_Routes();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link it.disim.mde.loreand.uber.Uber#getSupervisors <em>Supervisors</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Supervisors</em>'.\n\t * @see it.disim.mde.loreand.uber.Uber#getSupervisors()\n\t * @see #getUber()\n\t * @generated\n\t */\n\tEReference getUber_Supervisors();\n\n\t/**\n\t * Returns the meta object for class '{@link it.disim.mde.loreand.uber.User <em>User</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>User</em>'.\n\t * @see it.disim.mde.loreand.uber.User\n\t * @generated\n\t */\n\tEClass getUser();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.User#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see it.disim.mde.loreand.uber.User#getName()\n\t * @see #getUser()\n\t * @generated\n\t */\n\tEAttribute getUser_Name();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.User#getSurname <em>Surname</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Surname</em>'.\n\t * @see it.disim.mde.loreand.uber.User#getSurname()\n\t * @see #getUser()\n\t * @generated\n\t */\n\tEAttribute getUser_Surname();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.User#getEmail <em>Email</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Email</em>'.\n\t * @see it.disim.mde.loreand.uber.User#getEmail()\n\t * @see #getUser()\n\t * @generated\n\t */\n\tEAttribute getUser_Email();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.User#getFullName <em>Full Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Full Name</em>'.\n\t * @see it.disim.mde.loreand.uber.User#getFullName()\n\t * @see #getUser()\n\t * @generated\n\t */\n\tEAttribute getUser_FullName();\n\n\t/**\n\t * Returns the meta object for class '{@link it.disim.mde.loreand.uber.Customer <em>Customer</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Customer</em>'.\n\t * @see it.disim.mde.loreand.uber.Customer\n\t * @generated\n\t */\n\tEClass getCustomer();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Customer#getSubscriptionDate <em>Subscription Date</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Subscription Date</em>'.\n\t * @see it.disim.mde.loreand.uber.Customer#getSubscriptionDate()\n\t * @see #getCustomer()\n\t * @generated\n\t */\n\tEAttribute getCustomer_SubscriptionDate();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Customer#getExpirationDate <em>Expiration Date</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Expiration Date</em>'.\n\t * @see it.disim.mde.loreand.uber.Customer#getExpirationDate()\n\t * @see #getCustomer()\n\t * @generated\n\t */\n\tEAttribute getCustomer_ExpirationDate();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Customer#getStatus <em>Status</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Status</em>'.\n\t * @see it.disim.mde.loreand.uber.Customer#getStatus()\n\t * @see #getCustomer()\n\t * @generated\n\t */\n\tEAttribute getCustomer_Status();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link it.disim.mde.loreand.uber.Customer#getRoutes <em>Routes</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Routes</em>'.\n\t * @see it.disim.mde.loreand.uber.Customer#getRoutes()\n\t * @see #getCustomer()\n\t * @generated\n\t */\n\tEReference getCustomer_Routes();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link it.disim.mde.loreand.uber.Customer#getCardID <em>Card ID</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Card ID</em>'.\n\t * @see it.disim.mde.loreand.uber.Customer#getCardID()\n\t * @see #getCustomer()\n\t * @generated\n\t */\n\tEReference getCustomer_CardID();\n\n\t/**\n\t * Returns the meta object for class '{@link it.disim.mde.loreand.uber.Rider <em>Rider</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Rider</em>'.\n\t * @see it.disim.mde.loreand.uber.Rider\n\t * @generated\n\t */\n\tEClass getRider();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Rider#getStatus <em>Status</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Status</em>'.\n\t * @see it.disim.mde.loreand.uber.Rider#getStatus()\n\t * @see #getRider()\n\t * @generated\n\t */\n\tEAttribute getRider_Status();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link it.disim.mde.loreand.uber.Rider#getLocation <em>Location</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Location</em>'.\n\t * @see it.disim.mde.loreand.uber.Rider#getLocation()\n\t * @see #getRider()\n\t * @generated\n\t */\n\tEReference getRider_Location();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link it.disim.mde.loreand.uber.Rider#getRoutes <em>Routes</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Routes</em>'.\n\t * @see it.disim.mde.loreand.uber.Rider#getRoutes()\n\t * @see #getRider()\n\t * @generated\n\t */\n\tEReference getRider_Routes();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Rider#getCarriedOutRoutes <em>Carried Out Routes</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Carried Out Routes</em>'.\n\t * @see it.disim.mde.loreand.uber.Rider#getCarriedOutRoutes()\n\t * @see #getRider()\n\t * @generated\n\t */\n\tEAttribute getRider_CarriedOutRoutes();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Rider#getScore <em>Score</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Score</em>'.\n\t * @see it.disim.mde.loreand.uber.Rider#getScore()\n\t * @see #getRider()\n\t * @generated\n\t */\n\tEAttribute getRider_Score();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link it.disim.mde.loreand.uber.Rider#getCar <em>Car</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Car</em>'.\n\t * @see it.disim.mde.loreand.uber.Rider#getCar()\n\t * @see #getRider()\n\t * @generated\n\t */\n\tEReference getRider_Car();\n\n\t/**\n\t * Returns the meta object for the '{@link it.disim.mde.loreand.uber.Rider#CarriedOutCustomers() <em>Carried Out Customers</em>}' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the '<em>Carried Out Customers</em>' operation.\n\t * @see it.disim.mde.loreand.uber.Rider#CarriedOutCustomers()\n\t * @generated\n\t */\n\tEOperation getRider__CarriedOutCustomers();\n\n\t/**\n\t * Returns the meta object for the '{@link it.disim.mde.loreand.uber.Rider#isGoodEmployee() <em>Is Good Employee</em>}' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the '<em>Is Good Employee</em>' operation.\n\t * @see it.disim.mde.loreand.uber.Rider#isGoodEmployee()\n\t * @generated\n\t */\n\tEOperation getRider__IsGoodEmployee();\n\n\t/**\n\t * Returns the meta object for class '{@link it.disim.mde.loreand.uber.Geolocation <em>Geolocation</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Geolocation</em>'.\n\t * @see it.disim.mde.loreand.uber.Geolocation\n\t * @generated\n\t */\n\tEClass getGeolocation();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Geolocation#getLat <em>Lat</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Lat</em>'.\n\t * @see it.disim.mde.loreand.uber.Geolocation#getLat()\n\t * @see #getGeolocation()\n\t * @generated\n\t */\n\tEAttribute getGeolocation_Lat();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Geolocation#getLng <em>Lng</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Lng</em>'.\n\t * @see it.disim.mde.loreand.uber.Geolocation#getLng()\n\t * @see #getGeolocation()\n\t * @generated\n\t */\n\tEAttribute getGeolocation_Lng();\n\n\t/**\n\t * Returns the meta object for class '{@link it.disim.mde.loreand.uber.Route <em>Route</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Route</em>'.\n\t * @see it.disim.mde.loreand.uber.Route\n\t * @generated\n\t */\n\tEClass getRoute();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Route#getPrice <em>Price</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Price</em>'.\n\t * @see it.disim.mde.loreand.uber.Route#getPrice()\n\t * @see #getRoute()\n\t * @generated\n\t */\n\tEAttribute getRoute_Price();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Route#getDate <em>Date</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Date</em>'.\n\t * @see it.disim.mde.loreand.uber.Route#getDate()\n\t * @see #getRoute()\n\t * @generated\n\t */\n\tEAttribute getRoute_Date();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Route#getStartAddress <em>Start Address</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Start Address</em>'.\n\t * @see it.disim.mde.loreand.uber.Route#getStartAddress()\n\t * @see #getRoute()\n\t * @generated\n\t */\n\tEAttribute getRoute_StartAddress();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Route#getEndAddress <em>End Address</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>End Address</em>'.\n\t * @see it.disim.mde.loreand.uber.Route#getEndAddress()\n\t * @see #getRoute()\n\t * @generated\n\t */\n\tEAttribute getRoute_EndAddress();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Route#getFeedback <em>Feedback</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Feedback</em>'.\n\t * @see it.disim.mde.loreand.uber.Route#getFeedback()\n\t * @see #getRoute()\n\t * @generated\n\t */\n\tEAttribute getRoute_Feedback();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Route#getStatus <em>Status</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Status</em>'.\n\t * @see it.disim.mde.loreand.uber.Route#getStatus()\n\t * @see #getRoute()\n\t * @generated\n\t */\n\tEAttribute getRoute_Status();\n\n\t/**\n\t * Returns the meta object for the reference '{@link it.disim.mde.loreand.uber.Route#getCustomer <em>Customer</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Customer</em>'.\n\t * @see it.disim.mde.loreand.uber.Route#getCustomer()\n\t * @see #getRoute()\n\t * @generated\n\t */\n\tEReference getRoute_Customer();\n\n\t/**\n\t * Returns the meta object for the reference '{@link it.disim.mde.loreand.uber.Route#getRider <em>Rider</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Rider</em>'.\n\t * @see it.disim.mde.loreand.uber.Route#getRider()\n\t * @see #getRoute()\n\t * @generated\n\t */\n\tEReference getRoute_Rider();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Route#getSeats <em>Seats</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Seats</em>'.\n\t * @see it.disim.mde.loreand.uber.Route#getSeats()\n\t * @see #getRoute()\n\t * @generated\n\t */\n\tEAttribute getRoute_Seats();\n\n\t/**\n\t * Returns the meta object for class '{@link it.disim.mde.loreand.uber.Identifiable <em>Identifiable</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Identifiable</em>'.\n\t * @see it.disim.mde.loreand.uber.Identifiable\n\t * @generated\n\t */\n\tEClass getIdentifiable();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Identifiable#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see it.disim.mde.loreand.uber.Identifiable#getId()\n\t * @see #getIdentifiable()\n\t * @generated\n\t */\n\tEAttribute getIdentifiable_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link it.disim.mde.loreand.uber.Supervisor <em>Supervisor</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Supervisor</em>'.\n\t * @see it.disim.mde.loreand.uber.Supervisor\n\t * @generated\n\t */\n\tEClass getSupervisor();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Supervisor#getRole <em>Role</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Role</em>'.\n\t * @see it.disim.mde.loreand.uber.Supervisor#getRole()\n\t * @see #getSupervisor()\n\t * @generated\n\t */\n\tEAttribute getSupervisor_Role();\n\n\t/**\n\t * Returns the meta object for class '{@link it.disim.mde.loreand.uber.CardID <em>Card ID</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Card ID</em>'.\n\t * @see it.disim.mde.loreand.uber.CardID\n\t * @generated\n\t */\n\tEClass getCardID();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.CardID#getPath <em>Path</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Path</em>'.\n\t * @see it.disim.mde.loreand.uber.CardID#getPath()\n\t * @see #getCardID()\n\t * @generated\n\t */\n\tEAttribute getCardID_Path();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.CardID#getReleaseDate <em>Release Date</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Release Date</em>'.\n\t * @see it.disim.mde.loreand.uber.CardID#getReleaseDate()\n\t * @see #getCardID()\n\t * @generated\n\t */\n\tEAttribute getCardID_ReleaseDate();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.CardID#getInstitution <em>Institution</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Institution</em>'.\n\t * @see it.disim.mde.loreand.uber.CardID#getInstitution()\n\t * @see #getCardID()\n\t * @generated\n\t */\n\tEAttribute getCardID_Institution();\n\n\t/**\n\t * Returns the meta object for the reference '{@link it.disim.mde.loreand.uber.CardID#getApproved <em>Approved</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Approved</em>'.\n\t * @see it.disim.mde.loreand.uber.CardID#getApproved()\n\t * @see #getCardID()\n\t * @generated\n\t */\n\tEReference getCardID_Approved();\n\n\t/**\n\t * Returns the meta object for class '{@link it.disim.mde.loreand.uber.Car <em>Car</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Car</em>'.\n\t * @see it.disim.mde.loreand.uber.Car\n\t * @generated\n\t */\n\tEClass getCar();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Car#getLicencePlate <em>Licence Plate</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Licence Plate</em>'.\n\t * @see it.disim.mde.loreand.uber.Car#getLicencePlate()\n\t * @see #getCar()\n\t * @generated\n\t */\n\tEAttribute getCar_LicencePlate();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Car#getModel <em>Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Model</em>'.\n\t * @see it.disim.mde.loreand.uber.Car#getModel()\n\t * @see #getCar()\n\t * @generated\n\t */\n\tEAttribute getCar_Model();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link it.disim.mde.loreand.uber.Car#getColor <em>Color</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Color</em>'.\n\t * @see it.disim.mde.loreand.uber.Car#getColor()\n\t * @see #getCar()\n\t * @generated\n\t */\n\tEAttribute getCar_Color();\n\n\t/**\n\t * Returns the meta object for enum '{@link it.disim.mde.loreand.uber.RiderStatus <em>Rider Status</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Rider Status</em>'.\n\t * @see it.disim.mde.loreand.uber.RiderStatus\n\t * @generated\n\t */\n\tEEnum getRiderStatus();\n\n\t/**\n\t * Returns the meta object for enum '{@link it.disim.mde.loreand.uber.RouteStatus <em>Route Status</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Route Status</em>'.\n\t * @see it.disim.mde.loreand.uber.RouteStatus\n\t * @generated\n\t */\n\tEEnum getRouteStatus();\n\n\t/**\n\t * Returns the meta object for enum '{@link it.disim.mde.loreand.uber.CustomerStatus <em>Customer Status</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Customer Status</em>'.\n\t * @see it.disim.mde.loreand.uber.CustomerStatus\n\t * @generated\n\t */\n\tEEnum getCustomerStatus();\n\n\t/**\n\t * Returns the meta object for enum '{@link it.disim.mde.loreand.uber.RoleSupervisor <em>Role Supervisor</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Role Supervisor</em>'.\n\t * @see it.disim.mde.loreand.uber.RoleSupervisor\n\t * @generated\n\t */\n\tEEnum getRoleSupervisor();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tUberFactory getUberFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link it.disim.mde.loreand.uber.impl.UberImpl <em>Uber</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see it.disim.mde.loreand.uber.impl.UberImpl\n\t\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getUber()\n\t\t * @generated\n\t\t */\n\t\tEClass UBER = eINSTANCE.getUber();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute UBER__NAME = eINSTANCE.getUber_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Manager</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute UBER__MANAGER = eINSTANCE.getUber_Manager();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Address</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute UBER__ADDRESS = eINSTANCE.getUber_Address();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Customers</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference UBER__CUSTOMERS = eINSTANCE.getUber_Customers();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Riders</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference UBER__RIDERS = eINSTANCE.getUber_Riders();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Routes</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference UBER__ROUTES = eINSTANCE.getUber_Routes();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Supervisors</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference UBER__SUPERVISORS = eINSTANCE.getUber_Supervisors();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link it.disim.mde.loreand.uber.impl.UserImpl <em>User</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see it.disim.mde.loreand.uber.impl.UserImpl\n\t\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getUser()\n\t\t * @generated\n\t\t */\n\t\tEClass USER = eINSTANCE.getUser();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute USER__NAME = eINSTANCE.getUser_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Surname</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute USER__SURNAME = eINSTANCE.getUser_Surname();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Email</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute USER__EMAIL = eINSTANCE.getUser_Email();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Full Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute USER__FULL_NAME = eINSTANCE.getUser_FullName();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link it.disim.mde.loreand.uber.impl.CustomerImpl <em>Customer</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see it.disim.mde.loreand.uber.impl.CustomerImpl\n\t\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getCustomer()\n\t\t * @generated\n\t\t */\n\t\tEClass CUSTOMER = eINSTANCE.getCustomer();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Subscription Date</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CUSTOMER__SUBSCRIPTION_DATE = eINSTANCE.getCustomer_SubscriptionDate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Expiration Date</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CUSTOMER__EXPIRATION_DATE = eINSTANCE.getCustomer_ExpirationDate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Status</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CUSTOMER__STATUS = eINSTANCE.getCustomer_Status();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Routes</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CUSTOMER__ROUTES = eINSTANCE.getCustomer_Routes();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Card ID</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CUSTOMER__CARD_ID = eINSTANCE.getCustomer_CardID();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link it.disim.mde.loreand.uber.impl.RiderImpl <em>Rider</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see it.disim.mde.loreand.uber.impl.RiderImpl\n\t\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getRider()\n\t\t * @generated\n\t\t */\n\t\tEClass RIDER = eINSTANCE.getRider();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Status</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute RIDER__STATUS = eINSTANCE.getRider_Status();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Location</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference RIDER__LOCATION = eINSTANCE.getRider_Location();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Routes</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference RIDER__ROUTES = eINSTANCE.getRider_Routes();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Carried Out Routes</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute RIDER__CARRIED_OUT_ROUTES = eINSTANCE.getRider_CarriedOutRoutes();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Score</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute RIDER__SCORE = eINSTANCE.getRider_Score();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Car</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference RIDER__CAR = eINSTANCE.getRider_Car();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Carried Out Customers</b></em>' operation.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEOperation RIDER___CARRIED_OUT_CUSTOMERS = eINSTANCE.getRider__CarriedOutCustomers();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Is Good Employee</b></em>' operation.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEOperation RIDER___IS_GOOD_EMPLOYEE = eINSTANCE.getRider__IsGoodEmployee();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link it.disim.mde.loreand.uber.impl.GeolocationImpl <em>Geolocation</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see it.disim.mde.loreand.uber.impl.GeolocationImpl\n\t\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getGeolocation()\n\t\t * @generated\n\t\t */\n\t\tEClass GEOLOCATION = eINSTANCE.getGeolocation();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Lat</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GEOLOCATION__LAT = eINSTANCE.getGeolocation_Lat();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Lng</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GEOLOCATION__LNG = eINSTANCE.getGeolocation_Lng();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link it.disim.mde.loreand.uber.impl.RouteImpl <em>Route</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see it.disim.mde.loreand.uber.impl.RouteImpl\n\t\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getRoute()\n\t\t * @generated\n\t\t */\n\t\tEClass ROUTE = eINSTANCE.getRoute();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Price</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ROUTE__PRICE = eINSTANCE.getRoute_Price();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Date</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ROUTE__DATE = eINSTANCE.getRoute_Date();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Start Address</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ROUTE__START_ADDRESS = eINSTANCE.getRoute_StartAddress();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>End Address</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ROUTE__END_ADDRESS = eINSTANCE.getRoute_EndAddress();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Feedback</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ROUTE__FEEDBACK = eINSTANCE.getRoute_Feedback();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Status</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ROUTE__STATUS = eINSTANCE.getRoute_Status();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Customer</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference ROUTE__CUSTOMER = eINSTANCE.getRoute_Customer();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Rider</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference ROUTE__RIDER = eINSTANCE.getRoute_Rider();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Seats</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ROUTE__SEATS = eINSTANCE.getRoute_Seats();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link it.disim.mde.loreand.uber.Identifiable <em>Identifiable</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see it.disim.mde.loreand.uber.Identifiable\n\t\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getIdentifiable()\n\t\t * @generated\n\t\t */\n\t\tEClass IDENTIFIABLE = eINSTANCE.getIdentifiable();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IDENTIFIABLE__ID = eINSTANCE.getIdentifiable_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link it.disim.mde.loreand.uber.impl.SupervisorImpl <em>Supervisor</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see it.disim.mde.loreand.uber.impl.SupervisorImpl\n\t\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getSupervisor()\n\t\t * @generated\n\t\t */\n\t\tEClass SUPERVISOR = eINSTANCE.getSupervisor();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Role</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SUPERVISOR__ROLE = eINSTANCE.getSupervisor_Role();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link it.disim.mde.loreand.uber.impl.CardIDImpl <em>Card ID</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see it.disim.mde.loreand.uber.impl.CardIDImpl\n\t\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getCardID()\n\t\t * @generated\n\t\t */\n\t\tEClass CARD_ID = eINSTANCE.getCardID();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Path</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CARD_ID__PATH = eINSTANCE.getCardID_Path();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Release Date</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CARD_ID__RELEASE_DATE = eINSTANCE.getCardID_ReleaseDate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Institution</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CARD_ID__INSTITUTION = eINSTANCE.getCardID_Institution();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Approved</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CARD_ID__APPROVED = eINSTANCE.getCardID_Approved();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link it.disim.mde.loreand.uber.impl.CarImpl <em>Car</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see it.disim.mde.loreand.uber.impl.CarImpl\n\t\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getCar()\n\t\t * @generated\n\t\t */\n\t\tEClass CAR = eINSTANCE.getCar();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Licence Plate</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CAR__LICENCE_PLATE = eINSTANCE.getCar_LicencePlate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Model</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CAR__MODEL = eINSTANCE.getCar_Model();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Color</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CAR__COLOR = eINSTANCE.getCar_Color();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link it.disim.mde.loreand.uber.RiderStatus <em>Rider Status</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see it.disim.mde.loreand.uber.RiderStatus\n\t\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getRiderStatus()\n\t\t * @generated\n\t\t */\n\t\tEEnum RIDER_STATUS = eINSTANCE.getRiderStatus();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link it.disim.mde.loreand.uber.RouteStatus <em>Route Status</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see it.disim.mde.loreand.uber.RouteStatus\n\t\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getRouteStatus()\n\t\t * @generated\n\t\t */\n\t\tEEnum ROUTE_STATUS = eINSTANCE.getRouteStatus();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link it.disim.mde.loreand.uber.CustomerStatus <em>Customer Status</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see it.disim.mde.loreand.uber.CustomerStatus\n\t\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getCustomerStatus()\n\t\t * @generated\n\t\t */\n\t\tEEnum CUSTOMER_STATUS = eINSTANCE.getCustomerStatus();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link it.disim.mde.loreand.uber.RoleSupervisor <em>Role Supervisor</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see it.disim.mde.loreand.uber.RoleSupervisor\n\t\t * @see it.disim.mde.loreand.uber.impl.UberPackageImpl#getRoleSupervisor()\n\t\t * @generated\n\t\t */\n\t\tEEnum ROLE_SUPERVISOR = eINSTANCE.getRoleSupervisor();\n\n\t}\n\n}", "public interface DotLanguagePackage extends EPackage\n{\n /**\n * The package name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNAME = \"dotLanguage\";\n\n /**\n * The package namespace URI.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_URI = \"http://www.ac.uk/kcl/inf/DotLanguage\";\n\n /**\n * The package namespace name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_PREFIX = \"dotLanguage\";\n\n /**\n * The singleton instance of the package.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n DotLanguagePackage eINSTANCE = uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl.init();\n\n /**\n * The meta object id for the '{@link uk.ac.kcl.inf.dotLanguage.impl.DotLanguageImpl <em>Dot Language</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguageImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getDotLanguage()\n * @generated\n */\n int DOT_LANGUAGE = 0;\n\n /**\n * The feature id for the '<em><b>Graphs</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int DOT_LANGUAGE__GRAPHS = 0;\n\n /**\n * The number of structural features of the '<em>Dot Language</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int DOT_LANGUAGE_FEATURE_COUNT = 1;\n\n /**\n * The meta object id for the '{@link uk.ac.kcl.inf.dotLanguage.impl.GraphImpl <em>Graph</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.GraphImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getGraph()\n * @generated\n */\n int GRAPH = 1;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GRAPH__NAME = 0;\n\n /**\n * The feature id for the '<em><b>Statements</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GRAPH__STATEMENTS = 1;\n\n /**\n * The number of structural features of the '<em>Graph</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GRAPH_FEATURE_COUNT = 2;\n\n /**\n * The meta object id for the '{@link uk.ac.kcl.inf.dotLanguage.impl.DigraphImpl <em>Digraph</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.DigraphImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getDigraph()\n * @generated\n */\n int DIGRAPH = 2;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int DIGRAPH__NAME = 0;\n\n /**\n * The feature id for the '<em><b>Statements</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int DIGRAPH__STATEMENTS = 1;\n\n /**\n * The number of structural features of the '<em>Digraph</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int DIGRAPH_FEATURE_COUNT = 2;\n\n /**\n * The meta object id for the '{@link uk.ac.kcl.inf.dotLanguage.impl.DirectedStatementImpl <em>Directed Statement</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.DirectedStatementImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getDirectedStatement()\n * @generated\n */\n int DIRECTED_STATEMENT = 3;\n\n /**\n * The number of structural features of the '<em>Directed Statement</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int DIRECTED_STATEMENT_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link uk.ac.kcl.inf.dotLanguage.impl.UndirectedStatementImpl <em>Undirected Statement</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.UndirectedStatementImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getUndirectedStatement()\n * @generated\n */\n int UNDIRECTED_STATEMENT = 4;\n\n /**\n * The number of structural features of the '<em>Undirected Statement</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int UNDIRECTED_STATEMENT_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link uk.ac.kcl.inf.dotLanguage.impl.NodeDeclarationImpl <em>Node Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.NodeDeclarationImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getNodeDeclaration()\n * @generated\n */\n int NODE_DECLARATION = 5;\n\n /**\n * The feature id for the '<em><b>Node Name</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int NODE_DECLARATION__NODE_NAME = DIRECTED_STATEMENT_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Optional Attributes</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int NODE_DECLARATION__OPTIONAL_ATTRIBUTES = DIRECTED_STATEMENT_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Node Declaration</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int NODE_DECLARATION_FEATURE_COUNT = DIRECTED_STATEMENT_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link uk.ac.kcl.inf.dotLanguage.impl.NodeIdImpl <em>Node Id</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.NodeIdImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getNodeId()\n * @generated\n */\n int NODE_ID = 6;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int NODE_ID__NAME = 0;\n\n /**\n * The number of structural features of the '<em>Node Id</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int NODE_ID_FEATURE_COUNT = 1;\n\n /**\n * The meta object id for the '{@link uk.ac.kcl.inf.dotLanguage.impl.AttributeListImpl <em>Attribute List</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.AttributeListImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getAttributeList()\n * @generated\n */\n int ATTRIBUTE_LIST = 7;\n\n /**\n * The feature id for the '<em><b>Attr</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATTRIBUTE_LIST__ATTR = 0;\n\n /**\n * The number of structural features of the '<em>Attribute List</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATTRIBUTE_LIST_FEATURE_COUNT = 1;\n\n /**\n * The meta object id for the '{@link uk.ac.kcl.inf.dotLanguage.impl.AttributeImpl <em>Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.AttributeImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getAttribute()\n * @generated\n */\n int ATTRIBUTE = 8;\n\n /**\n * The feature id for the '<em><b>Attribute Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATTRIBUTE__ATTRIBUTE_NAME = 0;\n\n /**\n * The feature id for the '<em><b>Attribute Value</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATTRIBUTE__ATTRIBUTE_VALUE = 1;\n\n /**\n * The number of structural features of the '<em>Attribute</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATTRIBUTE_FEATURE_COUNT = 2;\n\n /**\n * The meta object id for the '{@link uk.ac.kcl.inf.dotLanguage.impl.DirectedEdgeDeclarationImpl <em>Directed Edge Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.DirectedEdgeDeclarationImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getDirectedEdgeDeclaration()\n * @generated\n */\n int DIRECTED_EDGE_DECLARATION = 9;\n\n /**\n * The feature id for the '<em><b>First Node</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int DIRECTED_EDGE_DECLARATION__FIRST_NODE = DIRECTED_STATEMENT_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Edge</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int DIRECTED_EDGE_DECLARATION__EDGE = DIRECTED_STATEMENT_FEATURE_COUNT + 1;\n\n /**\n * The feature id for the '<em><b>Second Node</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int DIRECTED_EDGE_DECLARATION__SECOND_NODE = DIRECTED_STATEMENT_FEATURE_COUNT + 2;\n\n /**\n * The number of structural features of the '<em>Directed Edge Declaration</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int DIRECTED_EDGE_DECLARATION_FEATURE_COUNT = DIRECTED_STATEMENT_FEATURE_COUNT + 3;\n\n /**\n * The meta object id for the '{@link uk.ac.kcl.inf.dotLanguage.impl.UndirectedEdgeDeclarationImpl <em>Undirected Edge Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.UndirectedEdgeDeclarationImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getUndirectedEdgeDeclaration()\n * @generated\n */\n int UNDIRECTED_EDGE_DECLARATION = 10;\n\n /**\n * The feature id for the '<em><b>First Node</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int UNDIRECTED_EDGE_DECLARATION__FIRST_NODE = UNDIRECTED_STATEMENT_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Edge</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int UNDIRECTED_EDGE_DECLARATION__EDGE = UNDIRECTED_STATEMENT_FEATURE_COUNT + 1;\n\n /**\n * The feature id for the '<em><b>Second Node</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int UNDIRECTED_EDGE_DECLARATION__SECOND_NODE = UNDIRECTED_STATEMENT_FEATURE_COUNT + 2;\n\n /**\n * The number of structural features of the '<em>Undirected Edge Declaration</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int UNDIRECTED_EDGE_DECLARATION_FEATURE_COUNT = UNDIRECTED_STATEMENT_FEATURE_COUNT + 3;\n\n /**\n * The meta object id for the '{@link uk.ac.kcl.inf.dotLanguage.impl.RightEdgeDeclarationImpl <em>Right Edge Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.RightEdgeDeclarationImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getRightEdgeDeclaration()\n * @generated\n */\n int RIGHT_EDGE_DECLARATION = 11;\n\n /**\n * The feature id for the '<em><b>Second Node</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int RIGHT_EDGE_DECLARATION__SECOND_NODE = 0;\n\n /**\n * The feature id for the '<em><b>Node List</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int RIGHT_EDGE_DECLARATION__NODE_LIST = 1;\n\n /**\n * The number of structural features of the '<em>Right Edge Declaration</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int RIGHT_EDGE_DECLARATION_FEATURE_COUNT = 2;\n\n /**\n * The meta object id for the '{@link uk.ac.kcl.inf.dotLanguage.impl.NodeListImpl <em>Node List</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.NodeListImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getNodeList()\n * @generated\n */\n int NODE_LIST = 12;\n\n /**\n * The feature id for the '<em><b>Nodes</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int NODE_LIST__NODES = 0;\n\n /**\n * The number of structural features of the '<em>Node List</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int NODE_LIST_FEATURE_COUNT = 1;\n\n\n /**\n * Returns the meta object for class '{@link uk.ac.kcl.inf.dotLanguage.DotLanguage <em>Dot Language</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Dot Language</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.DotLanguage\n * @generated\n */\n EClass getDotLanguage();\n\n /**\n * Returns the meta object for the containment reference list '{@link uk.ac.kcl.inf.dotLanguage.DotLanguage#getGraphs <em>Graphs</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Graphs</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.DotLanguage#getGraphs()\n * @see #getDotLanguage()\n * @generated\n */\n EReference getDotLanguage_Graphs();\n\n /**\n * Returns the meta object for class '{@link uk.ac.kcl.inf.dotLanguage.Graph <em>Graph</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Graph</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.Graph\n * @generated\n */\n EClass getGraph();\n\n /**\n * Returns the meta object for the attribute '{@link uk.ac.kcl.inf.dotLanguage.Graph#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.Graph#getName()\n * @see #getGraph()\n * @generated\n */\n EAttribute getGraph_Name();\n\n /**\n * Returns the meta object for the containment reference list '{@link uk.ac.kcl.inf.dotLanguage.Graph#getStatements <em>Statements</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Statements</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.Graph#getStatements()\n * @see #getGraph()\n * @generated\n */\n EReference getGraph_Statements();\n\n /**\n * Returns the meta object for class '{@link uk.ac.kcl.inf.dotLanguage.Digraph <em>Digraph</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Digraph</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.Digraph\n * @generated\n */\n EClass getDigraph();\n\n /**\n * Returns the meta object for the attribute '{@link uk.ac.kcl.inf.dotLanguage.Digraph#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.Digraph#getName()\n * @see #getDigraph()\n * @generated\n */\n EAttribute getDigraph_Name();\n\n /**\n * Returns the meta object for the containment reference list '{@link uk.ac.kcl.inf.dotLanguage.Digraph#getStatements <em>Statements</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Statements</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.Digraph#getStatements()\n * @see #getDigraph()\n * @generated\n */\n EReference getDigraph_Statements();\n\n /**\n * Returns the meta object for class '{@link uk.ac.kcl.inf.dotLanguage.DirectedStatement <em>Directed Statement</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Directed Statement</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.DirectedStatement\n * @generated\n */\n EClass getDirectedStatement();\n\n /**\n * Returns the meta object for class '{@link uk.ac.kcl.inf.dotLanguage.UndirectedStatement <em>Undirected Statement</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Undirected Statement</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.UndirectedStatement\n * @generated\n */\n EClass getUndirectedStatement();\n\n /**\n * Returns the meta object for class '{@link uk.ac.kcl.inf.dotLanguage.NodeDeclaration <em>Node Declaration</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Node Declaration</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.NodeDeclaration\n * @generated\n */\n EClass getNodeDeclaration();\n\n /**\n * Returns the meta object for the containment reference '{@link uk.ac.kcl.inf.dotLanguage.NodeDeclaration#getNodeName <em>Node Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Node Name</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.NodeDeclaration#getNodeName()\n * @see #getNodeDeclaration()\n * @generated\n */\n EReference getNodeDeclaration_NodeName();\n\n /**\n * Returns the meta object for the containment reference '{@link uk.ac.kcl.inf.dotLanguage.NodeDeclaration#getOptionalAttributes <em>Optional Attributes</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Optional Attributes</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.NodeDeclaration#getOptionalAttributes()\n * @see #getNodeDeclaration()\n * @generated\n */\n EReference getNodeDeclaration_OptionalAttributes();\n\n /**\n * Returns the meta object for class '{@link uk.ac.kcl.inf.dotLanguage.NodeId <em>Node Id</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Node Id</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.NodeId\n * @generated\n */\n EClass getNodeId();\n\n /**\n * Returns the meta object for the attribute '{@link uk.ac.kcl.inf.dotLanguage.NodeId#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.NodeId#getName()\n * @see #getNodeId()\n * @generated\n */\n EAttribute getNodeId_Name();\n\n /**\n * Returns the meta object for class '{@link uk.ac.kcl.inf.dotLanguage.AttributeList <em>Attribute List</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Attribute List</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.AttributeList\n * @generated\n */\n EClass getAttributeList();\n\n /**\n * Returns the meta object for the containment reference list '{@link uk.ac.kcl.inf.dotLanguage.AttributeList#getAttr <em>Attr</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Attr</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.AttributeList#getAttr()\n * @see #getAttributeList()\n * @generated\n */\n EReference getAttributeList_Attr();\n\n /**\n * Returns the meta object for class '{@link uk.ac.kcl.inf.dotLanguage.Attribute <em>Attribute</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Attribute</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.Attribute\n * @generated\n */\n EClass getAttribute();\n\n /**\n * Returns the meta object for the attribute '{@link uk.ac.kcl.inf.dotLanguage.Attribute#getAttributeName <em>Attribute Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Attribute Name</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.Attribute#getAttributeName()\n * @see #getAttribute()\n * @generated\n */\n EAttribute getAttribute_AttributeName();\n\n /**\n * Returns the meta object for the attribute '{@link uk.ac.kcl.inf.dotLanguage.Attribute#getAttributeValue <em>Attribute Value</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Attribute Value</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.Attribute#getAttributeValue()\n * @see #getAttribute()\n * @generated\n */\n EAttribute getAttribute_AttributeValue();\n\n /**\n * Returns the meta object for class '{@link uk.ac.kcl.inf.dotLanguage.DirectedEdgeDeclaration <em>Directed Edge Declaration</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Directed Edge Declaration</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.DirectedEdgeDeclaration\n * @generated\n */\n EClass getDirectedEdgeDeclaration();\n\n /**\n * Returns the meta object for the reference '{@link uk.ac.kcl.inf.dotLanguage.DirectedEdgeDeclaration#getFirstNode <em>First Node</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>First Node</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.DirectedEdgeDeclaration#getFirstNode()\n * @see #getDirectedEdgeDeclaration()\n * @generated\n */\n EReference getDirectedEdgeDeclaration_FirstNode();\n\n /**\n * Returns the meta object for the attribute '{@link uk.ac.kcl.inf.dotLanguage.DirectedEdgeDeclaration#getEdge <em>Edge</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Edge</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.DirectedEdgeDeclaration#getEdge()\n * @see #getDirectedEdgeDeclaration()\n * @generated\n */\n EAttribute getDirectedEdgeDeclaration_Edge();\n\n /**\n * Returns the meta object for the containment reference '{@link uk.ac.kcl.inf.dotLanguage.DirectedEdgeDeclaration#getSecondNode <em>Second Node</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Second Node</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.DirectedEdgeDeclaration#getSecondNode()\n * @see #getDirectedEdgeDeclaration()\n * @generated\n */\n EReference getDirectedEdgeDeclaration_SecondNode();\n\n /**\n * Returns the meta object for class '{@link uk.ac.kcl.inf.dotLanguage.UndirectedEdgeDeclaration <em>Undirected Edge Declaration</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Undirected Edge Declaration</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.UndirectedEdgeDeclaration\n * @generated\n */\n EClass getUndirectedEdgeDeclaration();\n\n /**\n * Returns the meta object for the reference '{@link uk.ac.kcl.inf.dotLanguage.UndirectedEdgeDeclaration#getFirstNode <em>First Node</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>First Node</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.UndirectedEdgeDeclaration#getFirstNode()\n * @see #getUndirectedEdgeDeclaration()\n * @generated\n */\n EReference getUndirectedEdgeDeclaration_FirstNode();\n\n /**\n * Returns the meta object for the attribute '{@link uk.ac.kcl.inf.dotLanguage.UndirectedEdgeDeclaration#getEdge <em>Edge</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Edge</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.UndirectedEdgeDeclaration#getEdge()\n * @see #getUndirectedEdgeDeclaration()\n * @generated\n */\n EAttribute getUndirectedEdgeDeclaration_Edge();\n\n /**\n * Returns the meta object for the containment reference '{@link uk.ac.kcl.inf.dotLanguage.UndirectedEdgeDeclaration#getSecondNode <em>Second Node</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Second Node</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.UndirectedEdgeDeclaration#getSecondNode()\n * @see #getUndirectedEdgeDeclaration()\n * @generated\n */\n EReference getUndirectedEdgeDeclaration_SecondNode();\n\n /**\n * Returns the meta object for class '{@link uk.ac.kcl.inf.dotLanguage.RightEdgeDeclaration <em>Right Edge Declaration</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Right Edge Declaration</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.RightEdgeDeclaration\n * @generated\n */\n EClass getRightEdgeDeclaration();\n\n /**\n * Returns the meta object for the reference '{@link uk.ac.kcl.inf.dotLanguage.RightEdgeDeclaration#getSecondNode <em>Second Node</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Second Node</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.RightEdgeDeclaration#getSecondNode()\n * @see #getRightEdgeDeclaration()\n * @generated\n */\n EReference getRightEdgeDeclaration_SecondNode();\n\n /**\n * Returns the meta object for the containment reference '{@link uk.ac.kcl.inf.dotLanguage.RightEdgeDeclaration#getNodeList <em>Node List</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Node List</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.RightEdgeDeclaration#getNodeList()\n * @see #getRightEdgeDeclaration()\n * @generated\n */\n EReference getRightEdgeDeclaration_NodeList();\n\n /**\n * Returns the meta object for class '{@link uk.ac.kcl.inf.dotLanguage.NodeList <em>Node List</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Node List</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.NodeList\n * @generated\n */\n EClass getNodeList();\n\n /**\n * Returns the meta object for the reference list '{@link uk.ac.kcl.inf.dotLanguage.NodeList#getNodes <em>Nodes</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Nodes</em>'.\n * @see uk.ac.kcl.inf.dotLanguage.NodeList#getNodes()\n * @see #getNodeList()\n * @generated\n */\n EReference getNodeList_Nodes();\n\n /**\n * Returns the factory that creates the instances of the model.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the factory that creates the instances of the model.\n * @generated\n */\n DotLanguageFactory getDotLanguageFactory();\n\n /**\n * <!-- begin-user-doc -->\n * Defines literals for the meta objects that represent\n * <ul>\n * <li>each class,</li>\n * <li>each feature of each class,</li>\n * <li>each enum,</li>\n * <li>and each data type</li>\n * </ul>\n * <!-- end-user-doc -->\n * @generated\n */\n interface Literals\n {\n /**\n * The meta object literal for the '{@link uk.ac.kcl.inf.dotLanguage.impl.DotLanguageImpl <em>Dot Language</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguageImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getDotLanguage()\n * @generated\n */\n EClass DOT_LANGUAGE = eINSTANCE.getDotLanguage();\n\n /**\n * The meta object literal for the '<em><b>Graphs</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference DOT_LANGUAGE__GRAPHS = eINSTANCE.getDotLanguage_Graphs();\n\n /**\n * The meta object literal for the '{@link uk.ac.kcl.inf.dotLanguage.impl.GraphImpl <em>Graph</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.GraphImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getGraph()\n * @generated\n */\n EClass GRAPH = eINSTANCE.getGraph();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute GRAPH__NAME = eINSTANCE.getGraph_Name();\n\n /**\n * The meta object literal for the '<em><b>Statements</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GRAPH__STATEMENTS = eINSTANCE.getGraph_Statements();\n\n /**\n * The meta object literal for the '{@link uk.ac.kcl.inf.dotLanguage.impl.DigraphImpl <em>Digraph</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.DigraphImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getDigraph()\n * @generated\n */\n EClass DIGRAPH = eINSTANCE.getDigraph();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute DIGRAPH__NAME = eINSTANCE.getDigraph_Name();\n\n /**\n * The meta object literal for the '<em><b>Statements</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference DIGRAPH__STATEMENTS = eINSTANCE.getDigraph_Statements();\n\n /**\n * The meta object literal for the '{@link uk.ac.kcl.inf.dotLanguage.impl.DirectedStatementImpl <em>Directed Statement</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.DirectedStatementImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getDirectedStatement()\n * @generated\n */\n EClass DIRECTED_STATEMENT = eINSTANCE.getDirectedStatement();\n\n /**\n * The meta object literal for the '{@link uk.ac.kcl.inf.dotLanguage.impl.UndirectedStatementImpl <em>Undirected Statement</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.UndirectedStatementImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getUndirectedStatement()\n * @generated\n */\n EClass UNDIRECTED_STATEMENT = eINSTANCE.getUndirectedStatement();\n\n /**\n * The meta object literal for the '{@link uk.ac.kcl.inf.dotLanguage.impl.NodeDeclarationImpl <em>Node Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.NodeDeclarationImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getNodeDeclaration()\n * @generated\n */\n EClass NODE_DECLARATION = eINSTANCE.getNodeDeclaration();\n\n /**\n * The meta object literal for the '<em><b>Node Name</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference NODE_DECLARATION__NODE_NAME = eINSTANCE.getNodeDeclaration_NodeName();\n\n /**\n * The meta object literal for the '<em><b>Optional Attributes</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference NODE_DECLARATION__OPTIONAL_ATTRIBUTES = eINSTANCE.getNodeDeclaration_OptionalAttributes();\n\n /**\n * The meta object literal for the '{@link uk.ac.kcl.inf.dotLanguage.impl.NodeIdImpl <em>Node Id</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.NodeIdImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getNodeId()\n * @generated\n */\n EClass NODE_ID = eINSTANCE.getNodeId();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute NODE_ID__NAME = eINSTANCE.getNodeId_Name();\n\n /**\n * The meta object literal for the '{@link uk.ac.kcl.inf.dotLanguage.impl.AttributeListImpl <em>Attribute List</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.AttributeListImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getAttributeList()\n * @generated\n */\n EClass ATTRIBUTE_LIST = eINSTANCE.getAttributeList();\n\n /**\n * The meta object literal for the '<em><b>Attr</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ATTRIBUTE_LIST__ATTR = eINSTANCE.getAttributeList_Attr();\n\n /**\n * The meta object literal for the '{@link uk.ac.kcl.inf.dotLanguage.impl.AttributeImpl <em>Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.AttributeImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getAttribute()\n * @generated\n */\n EClass ATTRIBUTE = eINSTANCE.getAttribute();\n\n /**\n * The meta object literal for the '<em><b>Attribute Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute ATTRIBUTE__ATTRIBUTE_NAME = eINSTANCE.getAttribute_AttributeName();\n\n /**\n * The meta object literal for the '<em><b>Attribute Value</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute ATTRIBUTE__ATTRIBUTE_VALUE = eINSTANCE.getAttribute_AttributeValue();\n\n /**\n * The meta object literal for the '{@link uk.ac.kcl.inf.dotLanguage.impl.DirectedEdgeDeclarationImpl <em>Directed Edge Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.DirectedEdgeDeclarationImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getDirectedEdgeDeclaration()\n * @generated\n */\n EClass DIRECTED_EDGE_DECLARATION = eINSTANCE.getDirectedEdgeDeclaration();\n\n /**\n * The meta object literal for the '<em><b>First Node</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference DIRECTED_EDGE_DECLARATION__FIRST_NODE = eINSTANCE.getDirectedEdgeDeclaration_FirstNode();\n\n /**\n * The meta object literal for the '<em><b>Edge</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute DIRECTED_EDGE_DECLARATION__EDGE = eINSTANCE.getDirectedEdgeDeclaration_Edge();\n\n /**\n * The meta object literal for the '<em><b>Second Node</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference DIRECTED_EDGE_DECLARATION__SECOND_NODE = eINSTANCE.getDirectedEdgeDeclaration_SecondNode();\n\n /**\n * The meta object literal for the '{@link uk.ac.kcl.inf.dotLanguage.impl.UndirectedEdgeDeclarationImpl <em>Undirected Edge Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.UndirectedEdgeDeclarationImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getUndirectedEdgeDeclaration()\n * @generated\n */\n EClass UNDIRECTED_EDGE_DECLARATION = eINSTANCE.getUndirectedEdgeDeclaration();\n\n /**\n * The meta object literal for the '<em><b>First Node</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference UNDIRECTED_EDGE_DECLARATION__FIRST_NODE = eINSTANCE.getUndirectedEdgeDeclaration_FirstNode();\n\n /**\n * The meta object literal for the '<em><b>Edge</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute UNDIRECTED_EDGE_DECLARATION__EDGE = eINSTANCE.getUndirectedEdgeDeclaration_Edge();\n\n /**\n * The meta object literal for the '<em><b>Second Node</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference UNDIRECTED_EDGE_DECLARATION__SECOND_NODE = eINSTANCE.getUndirectedEdgeDeclaration_SecondNode();\n\n /**\n * The meta object literal for the '{@link uk.ac.kcl.inf.dotLanguage.impl.RightEdgeDeclarationImpl <em>Right Edge Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.RightEdgeDeclarationImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getRightEdgeDeclaration()\n * @generated\n */\n EClass RIGHT_EDGE_DECLARATION = eINSTANCE.getRightEdgeDeclaration();\n\n /**\n * The meta object literal for the '<em><b>Second Node</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference RIGHT_EDGE_DECLARATION__SECOND_NODE = eINSTANCE.getRightEdgeDeclaration_SecondNode();\n\n /**\n * The meta object literal for the '<em><b>Node List</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference RIGHT_EDGE_DECLARATION__NODE_LIST = eINSTANCE.getRightEdgeDeclaration_NodeList();\n\n /**\n * The meta object literal for the '{@link uk.ac.kcl.inf.dotLanguage.impl.NodeListImpl <em>Node List</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see uk.ac.kcl.inf.dotLanguage.impl.NodeListImpl\n * @see uk.ac.kcl.inf.dotLanguage.impl.DotLanguagePackageImpl#getNodeList()\n * @generated\n */\n EClass NODE_LIST = eINSTANCE.getNodeList();\n\n /**\n * The meta object literal for the '<em><b>Nodes</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference NODE_LIST__NODES = eINSTANCE.getNodeList_Nodes();\n\n }\n\n}", "public interface RefProject extends RefEntity {\n RefPackage getDefaultPackage();\n}", "public interface GamifiedmodellingobjectmodelPackage extends EPackage {\r\n\t/**\r\n\t * The package name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNAME = \"gamifiedmodellingobjectmodel\";\r\n\r\n\t/**\r\n\t * The package namespace URI.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_URI = \"http://gamefulgrowth.blogspot.co.uk/gamified-modelling/\";\r\n\r\n\t/**\r\n\t * The package namespace name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_PREFIX = \"gamifiedmodellingobjectmodel\";\r\n\r\n\t/**\r\n\t * The singleton instance of the package.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tGamifiedmodellingobjectmodelPackage eINSTANCE = gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl.init();\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link gamifiedmodellingobjectmodel.impl.ObjectModelImpl <em>Object Model</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see gamifiedmodellingobjectmodel.impl.ObjectModelImpl\r\n\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getObjectModel()\r\n\t * @generated\r\n\t */\r\n\tint OBJECT_MODEL = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Objects</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT_MODEL__OBJECTS = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Links</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT_MODEL__LINKS = 1;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Object Model</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT_MODEL_FEATURE_COUNT = 2;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link gamifiedmodellingobjectmodel.impl.ObjectImpl <em>Object</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see gamifiedmodellingobjectmodel.impl.ObjectImpl\r\n\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getObject()\r\n\t * @generated\r\n\t */\r\n\tint OBJECT = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT__NAME = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Identity</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT__IDENTITY = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Class Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT__CLASS_NAME = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Attributes</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT__ATTRIBUTES = 3;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Operations</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT__OPERATIONS = 4;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Object</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT_FEATURE_COUNT = 5;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link gamifiedmodellingobjectmodel.impl.AttributeImpl <em>Attribute</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see gamifiedmodellingobjectmodel.impl.AttributeImpl\r\n\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getAttribute()\r\n\t * @generated\r\n\t */\r\n\tint ATTRIBUTE = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Text</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ATTRIBUTE__TEXT = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ATTRIBUTE__NAME = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ATTRIBUTE__VALUE = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Value Type</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ATTRIBUTE__VALUE_TYPE = 3;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Attribute</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ATTRIBUTE_FEATURE_COUNT = 4;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link gamifiedmodellingobjectmodel.impl.OperationImpl <em>Operation</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see gamifiedmodellingobjectmodel.impl.OperationImpl\r\n\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getOperation()\r\n\t * @generated\r\n\t */\r\n\tint OPERATION = 3;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Text</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OPERATION__TEXT = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OPERATION__NAME = 1;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Operation</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OPERATION_FEATURE_COUNT = 2;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link gamifiedmodellingobjectmodel.impl.LinkImpl <em>Link</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see gamifiedmodellingobjectmodel.impl.LinkImpl\r\n\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getLink()\r\n\t * @generated\r\n\t */\r\n\tint LINK = 4;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Identity</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint LINK__IDENTITY = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>From Object</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint LINK__FROM_OBJECT = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>To Object</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint LINK__TO_OBJECT = 2;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Link</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint LINK_FEATURE_COUNT = 3;\r\n\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link gamifiedmodellingobjectmodel.ObjectModel <em>Object Model</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Object Model</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.ObjectModel\r\n\t * @generated\r\n\t */\r\n\tEClass getObjectModel();\r\n\r\n\t/**\r\n\t * Returns the meta object for the containment reference list '{@link gamifiedmodellingobjectmodel.ObjectModel#getObjects <em>Objects</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the containment reference list '<em>Objects</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.ObjectModel#getObjects()\r\n\t * @see #getObjectModel()\r\n\t * @generated\r\n\t */\r\n\tEReference getObjectModel_Objects();\r\n\r\n\t/**\r\n\t * Returns the meta object for the containment reference list '{@link gamifiedmodellingobjectmodel.ObjectModel#getLinks <em>Links</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the containment reference list '<em>Links</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.ObjectModel#getLinks()\r\n\t * @see #getObjectModel()\r\n\t * @generated\r\n\t */\r\n\tEReference getObjectModel_Links();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link gamifiedmodellingobjectmodel.Object <em>Object</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Object</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Object\r\n\t * @generated\r\n\t */\r\n\tEClass getObject();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Object#getName <em>Name</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Name</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Object#getName()\r\n\t * @see #getObject()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getObject_Name();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Object#getIdentity <em>Identity</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Identity</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Object#getIdentity()\r\n\t * @see #getObject()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getObject_Identity();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Object#getClassName <em>Class Name</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Class Name</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Object#getClassName()\r\n\t * @see #getObject()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getObject_ClassName();\r\n\r\n\t/**\r\n\t * Returns the meta object for the containment reference list '{@link gamifiedmodellingobjectmodel.Object#getAttributes <em>Attributes</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the containment reference list '<em>Attributes</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Object#getAttributes()\r\n\t * @see #getObject()\r\n\t * @generated\r\n\t */\r\n\tEReference getObject_Attributes();\r\n\r\n\t/**\r\n\t * Returns the meta object for the containment reference list '{@link gamifiedmodellingobjectmodel.Object#getOperations <em>Operations</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the containment reference list '<em>Operations</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Object#getOperations()\r\n\t * @see #getObject()\r\n\t * @generated\r\n\t */\r\n\tEReference getObject_Operations();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link gamifiedmodellingobjectmodel.Attribute <em>Attribute</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Attribute</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Attribute\r\n\t * @generated\r\n\t */\r\n\tEClass getAttribute();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Attribute#getText <em>Text</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Text</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Attribute#getText()\r\n\t * @see #getAttribute()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getAttribute_Text();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Attribute#getName <em>Name</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Name</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Attribute#getName()\r\n\t * @see #getAttribute()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getAttribute_Name();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Attribute#getValue <em>Value</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Value</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Attribute#getValue()\r\n\t * @see #getAttribute()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getAttribute_Value();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Attribute#getValueType <em>Value Type</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Value Type</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Attribute#getValueType()\r\n\t * @see #getAttribute()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getAttribute_ValueType();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link gamifiedmodellingobjectmodel.Operation <em>Operation</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Operation</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Operation\r\n\t * @generated\r\n\t */\r\n\tEClass getOperation();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Operation#getText <em>Text</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Text</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Operation#getText()\r\n\t * @see #getOperation()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getOperation_Text();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Operation#getName <em>Name</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Name</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Operation#getName()\r\n\t * @see #getOperation()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getOperation_Name();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link gamifiedmodellingobjectmodel.Link <em>Link</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Link</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Link\r\n\t * @generated\r\n\t */\r\n\tEClass getLink();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Link#getIdentity <em>Identity</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Identity</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Link#getIdentity()\r\n\t * @see #getLink()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getLink_Identity();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link gamifiedmodellingobjectmodel.Link#getFromObject <em>From Object</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>From Object</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Link#getFromObject()\r\n\t * @see #getLink()\r\n\t * @generated\r\n\t */\r\n\tEReference getLink_FromObject();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link gamifiedmodellingobjectmodel.Link#getToObject <em>To Object</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>To Object</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Link#getToObject()\r\n\t * @see #getLink()\r\n\t * @generated\r\n\t */\r\n\tEReference getLink_ToObject();\r\n\r\n\t/**\r\n\t * Returns the factory that creates the instances of the model.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the factory that creates the instances of the model.\r\n\t * @generated\r\n\t */\r\n\tGamifiedmodellingobjectmodelFactory getGamifiedmodellingobjectmodelFactory();\r\n\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r\n\t * Defines literals for the meta objects that represent\r\n\t * <ul>\r\n\t * <li>each class,</li>\r\n\t * <li>each feature of each class,</li>\r\n\t * <li>each enum,</li>\r\n\t * <li>and each data type</li>\r\n\t * </ul>\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tinterface Literals {\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link gamifiedmodellingobjectmodel.impl.ObjectModelImpl <em>Object Model</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.ObjectModelImpl\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getObjectModel()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass OBJECT_MODEL = eINSTANCE.getObjectModel();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Objects</b></em>' containment reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference OBJECT_MODEL__OBJECTS = eINSTANCE.getObjectModel_Objects();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Links</b></em>' containment reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference OBJECT_MODEL__LINKS = eINSTANCE.getObjectModel_Links();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link gamifiedmodellingobjectmodel.impl.ObjectImpl <em>Object</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.ObjectImpl\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getObject()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass OBJECT = eINSTANCE.getObject();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute OBJECT__NAME = eINSTANCE.getObject_Name();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Identity</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute OBJECT__IDENTITY = eINSTANCE.getObject_Identity();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Class Name</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute OBJECT__CLASS_NAME = eINSTANCE.getObject_ClassName();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference OBJECT__ATTRIBUTES = eINSTANCE.getObject_Attributes();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Operations</b></em>' containment reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference OBJECT__OPERATIONS = eINSTANCE.getObject_Operations();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link gamifiedmodellingobjectmodel.impl.AttributeImpl <em>Attribute</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.AttributeImpl\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getAttribute()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass ATTRIBUTE = eINSTANCE.getAttribute();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Text</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute ATTRIBUTE__TEXT = eINSTANCE.getAttribute_Text();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute ATTRIBUTE__NAME = eINSTANCE.getAttribute_Name();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Value</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute ATTRIBUTE__VALUE = eINSTANCE.getAttribute_Value();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Value Type</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute ATTRIBUTE__VALUE_TYPE = eINSTANCE.getAttribute_ValueType();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link gamifiedmodellingobjectmodel.impl.OperationImpl <em>Operation</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.OperationImpl\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getOperation()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass OPERATION = eINSTANCE.getOperation();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Text</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute OPERATION__TEXT = eINSTANCE.getOperation_Text();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute OPERATION__NAME = eINSTANCE.getOperation_Name();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link gamifiedmodellingobjectmodel.impl.LinkImpl <em>Link</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.LinkImpl\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getLink()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass LINK = eINSTANCE.getLink();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Identity</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute LINK__IDENTITY = eINSTANCE.getLink_Identity();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>From Object</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference LINK__FROM_OBJECT = eINSTANCE.getLink_FromObject();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>To Object</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference LINK__TO_OBJECT = eINSTANCE.getLink_ToObject();\r\n\r\n\t}\r\n\r\n}", "public PackageName() {\n setFullyQualified(\"\");\n setShortName(\"\");\n }", "AliciaTest5Package getAliciaTest5Package();", "public abstract String getModuleName( );", "RestPackage getRestPackage();", "Package getSubp();", "private String getPkgName () {\n return context.getPackageName();\n }", "public String getPackageName() {\n return pkg;\n }", "DomainPackage getDomainPackage();", "private static String packageName(String cn) {\n int index = cn.lastIndexOf('.');\n return (index == -1) ? \"\" : cn.substring(0, index);\n }", "private static String getPackage(final String fullName) {\n \t\treturn fullName.substring(0, fullName.lastIndexOf(\".\"));\n \t}", "@Override\r\n\t\t\tpublic IHierarchicalKey caseEPackage(EPackage object) {\n\t\t\t\tif (object.eContainer() instanceof EAnnotation) {\r\n\t\t\t\t\tEAnnotation annot = (EAnnotation) object.eContainer();\r\n\r\n\t\t\t\t\tif (annot.eContainer() instanceof Profile) {\r\n\t\t\t\t\t\tList<?> siblings = annot.getContents();\r\n\t\t\t\t\t\treturn new ProfileDefinitionKey(object, siblings\r\n\t\t\t\t\t\t\t.indexOf(object));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// it's an Ecore metamodel\r\n\t\t\t\treturn new NamedElementKey(object);\r\n\t\t\t}", "public String getTableDbName() {\r\n return \"t_package\";\r\n }", "public interface NamingScheme {\n File getPath(File backingFile, String key);\n\n String getPropName();\n\n String getFile(File backingFile, ImmuList<String> names);\n\n ThreeKey getKey( ImmuList<String> names );\n}", "MatchModelPackage getMatchModelPackage();", "public interface GlprotoPackage extends EPackage\n{\n /**\n * The package name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNAME = \"glproto\";\n\n /**\n * The package namespace URI.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_URI = \"http://www.soluvas.com/glproto/Glproto\";\n\n /**\n * The package namespace name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_PREFIX = \"glproto\";\n\n /**\n * The singleton instance of the package.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n GlprotoPackage eINSTANCE = com.soluvas.glproto.glproto.impl.GlprotoPackageImpl.init();\n\n /**\n * The meta object id for the '{@link com.soluvas.glproto.glproto.impl.ModelImpl <em>Model</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see com.soluvas.glproto.glproto.impl.ModelImpl\n * @see com.soluvas.glproto.glproto.impl.GlprotoPackageImpl#getModel()\n * @generated\n */\n int MODEL = 0;\n\n /**\n * The feature id for the '<em><b>Package</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MODEL__PACKAGE = 0;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MODEL__NAME = 1;\n\n /**\n * The feature id for the '<em><b>Packages</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MODEL__PACKAGES = 2;\n\n /**\n * The number of structural features of the '<em>Model</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MODEL_FEATURE_COUNT = 3;\n\n /**\n * The meta object id for the '{@link com.soluvas.glproto.glproto.impl.PackageImpl <em>Package</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see com.soluvas.glproto.glproto.impl.PackageImpl\n * @see com.soluvas.glproto.glproto.impl.GlprotoPackageImpl#getPackage()\n * @generated\n */\n int PACKAGE = 1;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PACKAGE__NAME = 0;\n\n /**\n * The feature id for the '<em><b>Files</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PACKAGE__FILES = 1;\n\n /**\n * The number of structural features of the '<em>Package</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PACKAGE_FEATURE_COUNT = 2;\n\n /**\n * The meta object id for the '{@link com.soluvas.glproto.glproto.impl.FileImpl <em>File</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see com.soluvas.glproto.glproto.impl.FileImpl\n * @see com.soluvas.glproto.glproto.impl.GlprotoPackageImpl#getFile()\n * @generated\n */\n int FILE = 2;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FILE__NAME = 0;\n\n /**\n * The number of structural features of the '<em>File</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FILE_FEATURE_COUNT = 1;\n\n\n /**\n * Returns the meta object for class '{@link com.soluvas.glproto.glproto.Model <em>Model</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Model</em>'.\n * @see com.soluvas.glproto.glproto.Model\n * @generated\n */\n EClass getModel();\n\n /**\n * Returns the meta object for the attribute '{@link com.soluvas.glproto.glproto.Model#getPackage <em>Package</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Package</em>'.\n * @see com.soluvas.glproto.glproto.Model#getPackage()\n * @see #getModel()\n * @generated\n */\n EAttribute getModel_Package();\n\n /**\n * Returns the meta object for the attribute '{@link com.soluvas.glproto.glproto.Model#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see com.soluvas.glproto.glproto.Model#getName()\n * @see #getModel()\n * @generated\n */\n EAttribute getModel_Name();\n\n /**\n * Returns the meta object for the containment reference list '{@link com.soluvas.glproto.glproto.Model#getPackages <em>Packages</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Packages</em>'.\n * @see com.soluvas.glproto.glproto.Model#getPackages()\n * @see #getModel()\n * @generated\n */\n EReference getModel_Packages();\n\n /**\n * Returns the meta object for class '{@link com.soluvas.glproto.glproto.Package <em>Package</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Package</em>'.\n * @see com.soluvas.glproto.glproto.Package\n * @generated\n */\n EClass getPackage();\n\n /**\n * Returns the meta object for the attribute '{@link com.soluvas.glproto.glproto.Package#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see com.soluvas.glproto.glproto.Package#getName()\n * @see #getPackage()\n * @generated\n */\n EAttribute getPackage_Name();\n\n /**\n * Returns the meta object for the containment reference list '{@link com.soluvas.glproto.glproto.Package#getFiles <em>Files</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Files</em>'.\n * @see com.soluvas.glproto.glproto.Package#getFiles()\n * @see #getPackage()\n * @generated\n */\n EReference getPackage_Files();\n\n /**\n * Returns the meta object for class '{@link com.soluvas.glproto.glproto.File <em>File</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>File</em>'.\n * @see com.soluvas.glproto.glproto.File\n * @generated\n */\n EClass getFile();\n\n /**\n * Returns the meta object for the attribute '{@link com.soluvas.glproto.glproto.File#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see com.soluvas.glproto.glproto.File#getName()\n * @see #getFile()\n * @generated\n */\n EAttribute getFile_Name();\n\n /**\n * Returns the factory that creates the instances of the model.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the factory that creates the instances of the model.\n * @generated\n */\n GlprotoFactory getGlprotoFactory();\n\n /**\n * <!-- begin-user-doc -->\n * Defines literals for the meta objects that represent\n * <ul>\n * <li>each class,</li>\n * <li>each feature of each class,</li>\n * <li>each enum,</li>\n * <li>and each data type</li>\n * </ul>\n * <!-- end-user-doc -->\n * @generated\n */\n interface Literals\n {\n /**\n * The meta object literal for the '{@link com.soluvas.glproto.glproto.impl.ModelImpl <em>Model</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see com.soluvas.glproto.glproto.impl.ModelImpl\n * @see com.soluvas.glproto.glproto.impl.GlprotoPackageImpl#getModel()\n * @generated\n */\n EClass MODEL = eINSTANCE.getModel();\n\n /**\n * The meta object literal for the '<em><b>Package</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute MODEL__PACKAGE = eINSTANCE.getModel_Package();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute MODEL__NAME = eINSTANCE.getModel_Name();\n\n /**\n * The meta object literal for the '<em><b>Packages</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference MODEL__PACKAGES = eINSTANCE.getModel_Packages();\n\n /**\n * The meta object literal for the '{@link com.soluvas.glproto.glproto.impl.PackageImpl <em>Package</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see com.soluvas.glproto.glproto.impl.PackageImpl\n * @see com.soluvas.glproto.glproto.impl.GlprotoPackageImpl#getPackage()\n * @generated\n */\n EClass PACKAGE = eINSTANCE.getPackage();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute PACKAGE__NAME = eINSTANCE.getPackage_Name();\n\n /**\n * The meta object literal for the '<em><b>Files</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference PACKAGE__FILES = eINSTANCE.getPackage_Files();\n\n /**\n * The meta object literal for the '{@link com.soluvas.glproto.glproto.impl.FileImpl <em>File</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see com.soluvas.glproto.glproto.impl.FileImpl\n * @see com.soluvas.glproto.glproto.impl.GlprotoPackageImpl#getFile()\n * @generated\n */\n EClass FILE = eINSTANCE.getFile();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FILE__NAME = eINSTANCE.getFile_Name();\n\n }\n\n}", "String deploymentModel();", "public interface BusinessEntityPackage extends EPackage {\r\n\t/**\r\n\t * The package name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNAME = \"businessEntity\";\r\n\r\n\t/**\r\n\t * The package namespace URI.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_URI = \"http://zoe.tsekas.com/language/business/entity\";\r\n\r\n\t/**\r\n\t * The package namespace name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_PREFIX = \"businessEntity\";\r\n\r\n\t/**\r\n\t * The singleton instance of the package.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tBusinessEntityPackage eINSTANCE = language.business.businessEntity.impl.BusinessEntityPackageImpl.init();\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link language.business.businessEntity.impl.BusinessEntityImpl <em>Business Entity</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see language.business.businessEntity.impl.BusinessEntityImpl\r\n\t * @see language.business.businessEntity.impl.BusinessEntityPackageImpl#getBusinessEntity()\r\n\t * @generated\r\n\t */\r\n\tint BUSINESS_ENTITY = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Identifier</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BUSINESS_ENTITY__IDENTIFIER = InformationPackage.CONCEPT__IDENTIFIER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BUSINESS_ENTITY__OWNER = InformationPackage.CONCEPT__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BUSINESS_ENTITY__NAME = InformationPackage.CONCEPT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Abstract</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BUSINESS_ENTITY__ABSTRACT = InformationPackage.CONCEPT__ABSTRACT;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owned Properties</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BUSINESS_ENTITY__OWNED_PROPERTIES = InformationPackage.CONCEPT__OWNED_PROPERTIES;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Business Entity</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BUSINESS_ENTITY_FEATURE_COUNT = InformationPackage.CONCEPT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Business Entity</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BUSINESS_ENTITY_OPERATION_COUNT = InformationPackage.CONCEPT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link language.business.businessEntity.impl.OrganisationImpl <em>Organisation</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see language.business.businessEntity.impl.OrganisationImpl\r\n\t * @see language.business.businessEntity.impl.BusinessEntityPackageImpl#getOrganisation()\r\n\t * @generated\r\n\t */\r\n\tint ORGANISATION = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Identifier</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ORGANISATION__IDENTIFIER = BUSINESS_ENTITY__IDENTIFIER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ORGANISATION__OWNER = BUSINESS_ENTITY__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ORGANISATION__NAME = BUSINESS_ENTITY__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Abstract</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ORGANISATION__ABSTRACT = BUSINESS_ENTITY__ABSTRACT;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owned Properties</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ORGANISATION__OWNED_PROPERTIES = BUSINESS_ENTITY__OWNED_PROPERTIES;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Extension</b></em>' containment reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ORGANISATION__EXTENSION = BUSINESS_ENTITY_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Organisation</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ORGANISATION_FEATURE_COUNT = BUSINESS_ENTITY_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Organisation</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ORGANISATION_OPERATION_COUNT = BUSINESS_ENTITY_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link language.business.businessEntity.impl.PersonImpl <em>Person</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see language.business.businessEntity.impl.PersonImpl\r\n\t * @see language.business.businessEntity.impl.BusinessEntityPackageImpl#getPerson()\r\n\t * @generated\r\n\t */\r\n\tint PERSON = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Identifier</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PERSON__IDENTIFIER = BUSINESS_ENTITY__IDENTIFIER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PERSON__OWNER = BUSINESS_ENTITY__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PERSON__NAME = BUSINESS_ENTITY__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Abstract</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PERSON__ABSTRACT = BUSINESS_ENTITY__ABSTRACT;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owned Properties</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PERSON__OWNED_PROPERTIES = BUSINESS_ENTITY__OWNED_PROPERTIES;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Extension</b></em>' containment reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PERSON__EXTENSION = BUSINESS_ENTITY_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Person</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PERSON_FEATURE_COUNT = BUSINESS_ENTITY_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Person</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PERSON_OPERATION_COUNT = BUSINESS_ENTITY_OPERATION_COUNT + 0;\r\n\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link language.business.businessEntity.BusinessEntity <em>Business Entity</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Business Entity</em>'.\r\n\t * @see language.business.businessEntity.BusinessEntity\r\n\t * @generated\r\n\t */\r\n\tEClass getBusinessEntity();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link language.business.businessEntity.Organisation <em>Organisation</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Organisation</em>'.\r\n\t * @see language.business.businessEntity.Organisation\r\n\t * @generated\r\n\t */\r\n\tEClass getOrganisation();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link language.business.businessEntity.Person <em>Person</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Person</em>'.\r\n\t * @see language.business.businessEntity.Person\r\n\t * @generated\r\n\t */\r\n\tEClass getPerson();\r\n\r\n\t/**\r\n\t * Returns the factory that creates the instances of the model.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the factory that creates the instances of the model.\r\n\t * @generated\r\n\t */\r\n\tBusinessEntityFactory getBusinessEntityFactory();\r\n\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r\n\t * Defines literals for the meta objects that represent\r\n\t * <ul>\r\n\t * <li>each class,</li>\r\n\t * <li>each feature of each class,</li>\r\n\t * <li>each operation of each class,</li>\r\n\t * <li>each enum,</li>\r\n\t * <li>and each data type</li>\r\n\t * </ul>\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tinterface Literals {\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link language.business.businessEntity.impl.BusinessEntityImpl <em>Business Entity</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see language.business.businessEntity.impl.BusinessEntityImpl\r\n\t\t * @see language.business.businessEntity.impl.BusinessEntityPackageImpl#getBusinessEntity()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass BUSINESS_ENTITY = eINSTANCE.getBusinessEntity();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link language.business.businessEntity.impl.OrganisationImpl <em>Organisation</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see language.business.businessEntity.impl.OrganisationImpl\r\n\t\t * @see language.business.businessEntity.impl.BusinessEntityPackageImpl#getOrganisation()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass ORGANISATION = eINSTANCE.getOrganisation();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link language.business.businessEntity.impl.PersonImpl <em>Person</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see language.business.businessEntity.impl.PersonImpl\r\n\t\t * @see language.business.businessEntity.impl.BusinessEntityPackageImpl#getPerson()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass PERSON = eINSTANCE.getPerson();\r\n\r\n\t}\r\n\r\n}", "public interface IotdslPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"iotdsl\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.unamur.be/iot/IoTDSL\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"iotdsl\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tIotdslPackage eINSTANCE = be.unamur.iot.iotdsl.impl.IotdslPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.IotModelImpl <em>Iot Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.IotModelImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getIotModel()\n\t * @generated\n\t */\n\tint IOT_MODEL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Imports</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IOT_MODEL__IMPORTS = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IOT_MODEL__NAME = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Content</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IOT_MODEL__CONTENT = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Iot Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IOT_MODEL_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Iot Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IOT_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.ImportImpl <em>Import</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.ImportImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getImport()\n\t * @generated\n\t */\n\tint IMPORT = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Imported Namespace</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPORT__IMPORTED_NAMESPACE = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Import</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPORT_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Import</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPORT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.ContentImpl <em>Content</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.ContentImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getContent()\n\t * @generated\n\t */\n\tint CONTENT = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Content</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_FEATURE_COUNT = 0;\n\n\t/**\n\t * The number of operations of the '<em>Content</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.TypeImpl <em>Type</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.TypeImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getType()\n\t * @generated\n\t */\n\tint TYPE = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TYPE__NAME = CONTENT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Type</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TYPE_FEATURE_COUNT = CONTENT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Type</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TYPE_OPERATION_COUNT = CONTENT_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.PrimitiveTypeImpl <em>Primitive Type</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.PrimitiveTypeImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getPrimitiveType()\n\t * @generated\n\t */\n\tint PRIMITIVE_TYPE = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PRIMITIVE_TYPE__NAME = TYPE__NAME;\n\n\t/**\n\t * The number of structural features of the '<em>Primitive Type</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PRIMITIVE_TYPE_FEATURE_COUNT = TYPE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Primitive Type</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PRIMITIVE_TYPE_OPERATION_COUNT = TYPE_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.DeclaredTypeImpl <em>Declared Type</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.DeclaredTypeImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getDeclaredType()\n\t * @generated\n\t */\n\tint DECLARED_TYPE = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DECLARED_TYPE__NAME = TYPE__NAME;\n\n\t/**\n\t * The number of structural features of the '<em>Declared Type</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DECLARED_TYPE_FEATURE_COUNT = TYPE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Declared Type</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DECLARED_TYPE_OPERATION_COUNT = TYPE_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.EnumerationImpl <em>Enumeration</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.EnumerationImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getEnumeration()\n\t * @generated\n\t */\n\tint ENUMERATION = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ENUMERATION__NAME = DECLARED_TYPE__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Literals</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ENUMERATION__LITERALS = DECLARED_TYPE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Enumeration</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ENUMERATION_FEATURE_COUNT = DECLARED_TYPE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Enumeration</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ENUMERATION_OPERATION_COUNT = DECLARED_TYPE_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.EnumLiteralImpl <em>Enum Literal</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.EnumLiteralImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getEnumLiteral()\n\t * @generated\n\t */\n\tint ENUM_LITERAL = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ENUM_LITERAL__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Enum Literal</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ENUM_LITERAL_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Enum Literal</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ENUM_LITERAL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.NodeImpl <em>Node</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.NodeImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getNode()\n\t * @generated\n\t */\n\tint NODE = 8;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE__NAME = DECLARED_TYPE__NAME;\n\n\t/**\n\t * The number of structural features of the '<em>Node</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE_FEATURE_COUNT = DECLARED_TYPE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Node</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE_OPERATION_COUNT = DECLARED_TYPE_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.DeviceImpl <em>Device</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.DeviceImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getDevice()\n\t * @generated\n\t */\n\tint DEVICE = 9;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEVICE__NAME = NODE__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Features</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEVICE__FEATURES = NODE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Device</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEVICE_FEATURE_COUNT = NODE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Device</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEVICE_OPERATION_COUNT = NODE_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.GatewayImpl <em>Gateway</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.GatewayImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getGateway()\n\t * @generated\n\t */\n\tint GATEWAY = 10;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GATEWAY__NAME = NODE__NAME;\n\n\t/**\n\t * The number of structural features of the '<em>Gateway</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GATEWAY_FEATURE_COUNT = NODE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Gateway</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GATEWAY_OPERATION_COUNT = NODE_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.FeatureImpl <em>Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.FeatureImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getFeature()\n\t * @generated\n\t */\n\tint FEATURE = 11;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.PropertyImpl <em>Property</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.PropertyImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getProperty()\n\t * @generated\n\t */\n\tint PROPERTY = 12;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PROPERTY__NAME = FEATURE__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PROPERTY__VALUE = FEATURE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Property</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PROPERTY_FEATURE_COUNT = FEATURE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Property</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PROPERTY_OPERATION_COUNT = FEATURE_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.CapabilityImpl <em>Capability</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.CapabilityImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getCapability()\n\t * @generated\n\t */\n\tint CAPABILITY = 13;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CAPABILITY__NAME = FEATURE__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Parameters</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CAPABILITY__PARAMETERS = FEATURE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Capability</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CAPABILITY_FEATURE_COUNT = FEATURE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Capability</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CAPABILITY_OPERATION_COUNT = FEATURE_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.ActuatingImpl <em>Actuating</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.ActuatingImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getActuating()\n\t * @generated\n\t */\n\tint ACTUATING = 14;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ACTUATING__NAME = CAPABILITY__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Parameters</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ACTUATING__PARAMETERS = CAPABILITY__PARAMETERS;\n\n\t/**\n\t * The number of structural features of the '<em>Actuating</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ACTUATING_FEATURE_COUNT = CAPABILITY_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Actuating</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ACTUATING_OPERATION_COUNT = CAPABILITY_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.SensingImpl <em>Sensing</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.SensingImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getSensing()\n\t * @generated\n\t */\n\tint SENSING = 15;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SENSING__NAME = CAPABILITY__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Parameters</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SENSING__PARAMETERS = CAPABILITY__PARAMETERS;\n\n\t/**\n\t * The number of structural features of the '<em>Sensing</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SENSING_FEATURE_COUNT = CAPABILITY_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Sensing</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SENSING_OPERATION_COUNT = CAPABILITY_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.ParameterImpl <em>Parameter</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.ParameterImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getParameter()\n\t * @generated\n\t */\n\tint PARAMETER = 16;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER__NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER__TYPE = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Parameter</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Parameter</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.ConfigurationImpl <em>Configuration</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.ConfigurationImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getConfiguration()\n\t * @generated\n\t */\n\tint CONFIGURATION = 17;\n\n\t/**\n\t * The feature id for the '<em><b>Confname</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONFIGURATION__CONFNAME = CONTENT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Nodes</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONFIGURATION__NODES = CONTENT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Paths</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONFIGURATION__PATHS = CONTENT_FEATURE_COUNT + 2;\n\n\t/**\n\t * The number of structural features of the '<em>Configuration</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONFIGURATION_FEATURE_COUNT = CONTENT_FEATURE_COUNT + 3;\n\n\t/**\n\t * The number of operations of the '<em>Configuration</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONFIGURATION_OPERATION_COUNT = CONTENT_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.NodeInstanceImpl <em>Node Instance</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.NodeInstanceImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getNodeInstance()\n\t * @generated\n\t */\n\tint NODE_INSTANCE = 18;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE_INSTANCE__NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE_INSTANCE__TYPE = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Node Instance</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE_INSTANCE_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Node Instance</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE_INSTANCE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.CommunicationPathImpl <em>Communication Path</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.CommunicationPathImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getCommunicationPath()\n\t * @generated\n\t */\n\tint COMMUNICATION_PATH = 19;\n\n\t/**\n\t * The feature id for the '<em><b>Source</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMMUNICATION_PATH__SOURCE = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Taget</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMMUNICATION_PATH__TAGET = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Protocol</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMMUNICATION_PATH__PROTOCOL = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Communication Path</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMMUNICATION_PATH_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Communication Path</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMMUNICATION_PATH_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.RuleImpl <em>Rule</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.RuleImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getRule()\n\t * @generated\n\t */\n\tint RULE = 20;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RULE__NAME = CONTENT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Triggers</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RULE__TRIGGERS = CONTENT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Reactions</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RULE__REACTIONS = CONTENT_FEATURE_COUNT + 2;\n\n\t/**\n\t * The number of structural features of the '<em>Rule</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RULE_FEATURE_COUNT = CONTENT_FEATURE_COUNT + 3;\n\n\t/**\n\t * The number of operations of the '<em>Rule</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RULE_OPERATION_COUNT = CONTENT_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.ExpressionImpl <em>Expression</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.ExpressionImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getExpression()\n\t * @generated\n\t */\n\tint EXPRESSION = 21;\n\n\t/**\n\t * The number of structural features of the '<em>Expression</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EXPRESSION_FEATURE_COUNT = 0;\n\n\t/**\n\t * The number of operations of the '<em>Expression</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EXPRESSION_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.DelayImpl <em>Delay</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.DelayImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getDelay()\n\t * @generated\n\t */\n\tint DELAY = 22;\n\n\t/**\n\t * The feature id for the '<em><b>Time</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELAY__TIME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Unit</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELAY__UNIT = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Delay</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELAY_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Delay</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELAY_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.NotExpressionImpl <em>Not Expression</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.NotExpressionImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getNotExpression()\n\t * @generated\n\t */\n\tint NOT_EXPRESSION = 23;\n\n\t/**\n\t * The feature id for the '<em><b>Event</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NOT_EXPRESSION__EVENT = EXPRESSION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Not Expression</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NOT_EXPRESSION_FEATURE_COUNT = EXPRESSION_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Not Expression</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NOT_EXPRESSION_OPERATION_COUNT = EXPRESSION_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.EventOccurrenceImpl <em>Event Occurrence</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.EventOccurrenceImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getEventOccurrence()\n\t * @generated\n\t */\n\tint EVENT_OCCURRENCE = 24;\n\n\t/**\n\t * The feature id for the '<em><b>Instance</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EVENT_OCCURRENCE__INSTANCE = EXPRESSION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Capability</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EVENT_OCCURRENCE__CAPABILITY = EXPRESSION_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Attributes</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EVENT_OCCURRENCE__ATTRIBUTES = EXPRESSION_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Operator</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EVENT_OCCURRENCE__OPERATOR = EXPRESSION_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EVENT_OCCURRENCE__VALUE = EXPRESSION_FEATURE_COUNT + 4;\n\n\t/**\n\t * The number of structural features of the '<em>Event Occurrence</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EVENT_OCCURRENCE_FEATURE_COUNT = EXPRESSION_FEATURE_COUNT + 5;\n\n\t/**\n\t * The number of operations of the '<em>Event Occurrence</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EVENT_OCCURRENCE_OPERATION_COUNT = EXPRESSION_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.ReactionImpl <em>Reaction</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.ReactionImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getReaction()\n\t * @generated\n\t */\n\tint REACTION = 25;\n\n\t/**\n\t * The feature id for the '<em><b>Instance</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REACTION__INSTANCE = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Capability</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REACTION__CAPABILITY = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Attributes</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REACTION__ATTRIBUTES = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Reaction</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REACTION_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Reaction</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REACTION_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.AttributeImpl <em>Attribute</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.AttributeImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getAttribute()\n\t * @generated\n\t */\n\tint ATTRIBUTE = 26;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ATTRIBUTE__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Attribute</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ATTRIBUTE_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Attribute</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ATTRIBUTE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.AndExpressionImpl <em>And Expression</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.AndExpressionImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getAndExpression()\n\t * @generated\n\t */\n\tint AND_EXPRESSION = 27;\n\n\t/**\n\t * The feature id for the '<em><b>Left</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint AND_EXPRESSION__LEFT = EXPRESSION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Right</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint AND_EXPRESSION__RIGHT = EXPRESSION_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>And Expression</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint AND_EXPRESSION_FEATURE_COUNT = EXPRESSION_FEATURE_COUNT + 2;\n\n\t/**\n\t * The number of operations of the '<em>And Expression</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint AND_EXPRESSION_OPERATION_COUNT = EXPRESSION_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.TimingExpressionImpl <em>Timing Expression</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.TimingExpressionImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getTimingExpression()\n\t * @generated\n\t */\n\tint TIMING_EXPRESSION = 28;\n\n\t/**\n\t * The feature id for the '<em><b>Following</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TIMING_EXPRESSION__FOLLOWING = EXPRESSION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Preceding</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TIMING_EXPRESSION__PRECEDING = EXPRESSION_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>Timing Expression</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TIMING_EXPRESSION_FEATURE_COUNT = EXPRESSION_FEATURE_COUNT + 2;\n\n\t/**\n\t * The number of operations of the '<em>Timing Expression</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TIMING_EXPRESSION_OPERATION_COUNT = EXPRESSION_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.WithinExpressionImpl <em>Within Expression</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.WithinExpressionImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getWithinExpression()\n\t * @generated\n\t */\n\tint WITHIN_EXPRESSION = 29;\n\n\t/**\n\t * The feature id for the '<em><b>Following</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint WITHIN_EXPRESSION__FOLLOWING = TIMING_EXPRESSION__FOLLOWING;\n\n\t/**\n\t * The feature id for the '<em><b>Preceding</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint WITHIN_EXPRESSION__PRECEDING = TIMING_EXPRESSION__PRECEDING;\n\n\t/**\n\t * The feature id for the '<em><b>Delay</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint WITHIN_EXPRESSION__DELAY = TIMING_EXPRESSION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Within Expression</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint WITHIN_EXPRESSION_FEATURE_COUNT = TIMING_EXPRESSION_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Within Expression</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint WITHIN_EXPRESSION_OPERATION_COUNT = TIMING_EXPRESSION_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.AfterExpressionImpl <em>After Expression</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.AfterExpressionImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getAfterExpression()\n\t * @generated\n\t */\n\tint AFTER_EXPRESSION = 30;\n\n\t/**\n\t * The feature id for the '<em><b>Following</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint AFTER_EXPRESSION__FOLLOWING = TIMING_EXPRESSION__FOLLOWING;\n\n\t/**\n\t * The feature id for the '<em><b>Preceding</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint AFTER_EXPRESSION__PRECEDING = TIMING_EXPRESSION__PRECEDING;\n\n\t/**\n\t * The number of structural features of the '<em>After Expression</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint AFTER_EXPRESSION_FEATURE_COUNT = TIMING_EXPRESSION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>After Expression</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint AFTER_EXPRESSION_OPERATION_COUNT = TIMING_EXPRESSION_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.ValueImpl <em>Value</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.ValueImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getValue()\n\t * @generated\n\t */\n\tint VALUE = 31;\n\n\t/**\n\t * The number of structural features of the '<em>Value</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VALUE_FEATURE_COUNT = 0;\n\n\t/**\n\t * The number of operations of the '<em>Value</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VALUE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.StringConstantImpl <em>String Constant</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.StringConstantImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getStringConstant()\n\t * @generated\n\t */\n\tint STRING_CONSTANT = 32;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STRING_CONSTANT__VALUE = VALUE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>String Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STRING_CONSTANT_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>String Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STRING_CONSTANT_OPERATION_COUNT = VALUE_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.IntConstantImpl <em>Int Constant</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.IntConstantImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getIntConstant()\n\t * @generated\n\t */\n\tint INT_CONSTANT = 33;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint INT_CONSTANT__VALUE = VALUE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Int Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint INT_CONSTANT_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Int Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint INT_CONSTANT_OPERATION_COUNT = VALUE_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.impl.BoolConstantImpl <em>Bool Constant</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.impl.BoolConstantImpl\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getBoolConstant()\n\t * @generated\n\t */\n\tint BOOL_CONSTANT = 34;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BOOL_CONSTANT__VALUE = VALUE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Bool Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BOOL_CONSTANT_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Bool Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BOOL_CONSTANT_OPERATION_COUNT = VALUE_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.DefaultType <em>Default Type</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.DefaultType\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getDefaultType()\n\t * @generated\n\t */\n\tint DEFAULT_TYPE = 35;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.Operator <em>Operator</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.Operator\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getOperator()\n\t * @generated\n\t */\n\tint OPERATOR = 36;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.Protocol <em>Protocol</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.Protocol\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getProtocol()\n\t * @generated\n\t */\n\tint PROTOCOL = 37;\n\n\t/**\n\t * The meta object id for the '{@link be.unamur.iot.iotdsl.Unit <em>Unit</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see be.unamur.iot.iotdsl.Unit\n\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getUnit()\n\t * @generated\n\t */\n\tint UNIT = 38;\n\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.IotModel <em>Iot Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Iot Model</em>'.\n\t * @see be.unamur.iot.iotdsl.IotModel\n\t * @generated\n\t */\n\tEClass getIotModel();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link be.unamur.iot.iotdsl.IotModel#getImports <em>Imports</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Imports</em>'.\n\t * @see be.unamur.iot.iotdsl.IotModel#getImports()\n\t * @see #getIotModel()\n\t * @generated\n\t */\n\tEReference getIotModel_Imports();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.IotModel#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see be.unamur.iot.iotdsl.IotModel#getName()\n\t * @see #getIotModel()\n\t * @generated\n\t */\n\tEAttribute getIotModel_Name();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link be.unamur.iot.iotdsl.IotModel#getContent <em>Content</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Content</em>'.\n\t * @see be.unamur.iot.iotdsl.IotModel#getContent()\n\t * @see #getIotModel()\n\t * @generated\n\t */\n\tEReference getIotModel_Content();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Import <em>Import</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Import</em>'.\n\t * @see be.unamur.iot.iotdsl.Import\n\t * @generated\n\t */\n\tEClass getImport();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.Import#getImportedNamespace <em>Imported Namespace</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Imported Namespace</em>'.\n\t * @see be.unamur.iot.iotdsl.Import#getImportedNamespace()\n\t * @see #getImport()\n\t * @generated\n\t */\n\tEAttribute getImport_ImportedNamespace();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Content <em>Content</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Content</em>'.\n\t * @see be.unamur.iot.iotdsl.Content\n\t * @generated\n\t */\n\tEClass getContent();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Type <em>Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Type</em>'.\n\t * @see be.unamur.iot.iotdsl.Type\n\t * @generated\n\t */\n\tEClass getType();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.Type#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see be.unamur.iot.iotdsl.Type#getName()\n\t * @see #getType()\n\t * @generated\n\t */\n\tEAttribute getType_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.PrimitiveType <em>Primitive Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Primitive Type</em>'.\n\t * @see be.unamur.iot.iotdsl.PrimitiveType\n\t * @generated\n\t */\n\tEClass getPrimitiveType();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.DeclaredType <em>Declared Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Declared Type</em>'.\n\t * @see be.unamur.iot.iotdsl.DeclaredType\n\t * @generated\n\t */\n\tEClass getDeclaredType();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Enumeration <em>Enumeration</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Enumeration</em>'.\n\t * @see be.unamur.iot.iotdsl.Enumeration\n\t * @generated\n\t */\n\tEClass getEnumeration();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link be.unamur.iot.iotdsl.Enumeration#getLiterals <em>Literals</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Literals</em>'.\n\t * @see be.unamur.iot.iotdsl.Enumeration#getLiterals()\n\t * @see #getEnumeration()\n\t * @generated\n\t */\n\tEReference getEnumeration_Literals();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.EnumLiteral <em>Enum Literal</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Enum Literal</em>'.\n\t * @see be.unamur.iot.iotdsl.EnumLiteral\n\t * @generated\n\t */\n\tEClass getEnumLiteral();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.EnumLiteral#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see be.unamur.iot.iotdsl.EnumLiteral#getName()\n\t * @see #getEnumLiteral()\n\t * @generated\n\t */\n\tEAttribute getEnumLiteral_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Node <em>Node</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Node</em>'.\n\t * @see be.unamur.iot.iotdsl.Node\n\t * @generated\n\t */\n\tEClass getNode();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Device <em>Device</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Device</em>'.\n\t * @see be.unamur.iot.iotdsl.Device\n\t * @generated\n\t */\n\tEClass getDevice();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link be.unamur.iot.iotdsl.Device#getFeatures <em>Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Features</em>'.\n\t * @see be.unamur.iot.iotdsl.Device#getFeatures()\n\t * @see #getDevice()\n\t * @generated\n\t */\n\tEReference getDevice_Features();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Gateway <em>Gateway</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Gateway</em>'.\n\t * @see be.unamur.iot.iotdsl.Gateway\n\t * @generated\n\t */\n\tEClass getGateway();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Feature <em>Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Feature</em>'.\n\t * @see be.unamur.iot.iotdsl.Feature\n\t * @generated\n\t */\n\tEClass getFeature();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.Feature#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see be.unamur.iot.iotdsl.Feature#getName()\n\t * @see #getFeature()\n\t * @generated\n\t */\n\tEAttribute getFeature_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Property <em>Property</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Property</em>'.\n\t * @see be.unamur.iot.iotdsl.Property\n\t * @generated\n\t */\n\tEClass getProperty();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link be.unamur.iot.iotdsl.Property#getValue <em>Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Value</em>'.\n\t * @see be.unamur.iot.iotdsl.Property#getValue()\n\t * @see #getProperty()\n\t * @generated\n\t */\n\tEReference getProperty_Value();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Capability <em>Capability</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Capability</em>'.\n\t * @see be.unamur.iot.iotdsl.Capability\n\t * @generated\n\t */\n\tEClass getCapability();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link be.unamur.iot.iotdsl.Capability#getParameters <em>Parameters</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Parameters</em>'.\n\t * @see be.unamur.iot.iotdsl.Capability#getParameters()\n\t * @see #getCapability()\n\t * @generated\n\t */\n\tEReference getCapability_Parameters();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Actuating <em>Actuating</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Actuating</em>'.\n\t * @see be.unamur.iot.iotdsl.Actuating\n\t * @generated\n\t */\n\tEClass getActuating();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Sensing <em>Sensing</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Sensing</em>'.\n\t * @see be.unamur.iot.iotdsl.Sensing\n\t * @generated\n\t */\n\tEClass getSensing();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Parameter <em>Parameter</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Parameter</em>'.\n\t * @see be.unamur.iot.iotdsl.Parameter\n\t * @generated\n\t */\n\tEClass getParameter();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.Parameter#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see be.unamur.iot.iotdsl.Parameter#getName()\n\t * @see #getParameter()\n\t * @generated\n\t */\n\tEAttribute getParameter_Name();\n\n\t/**\n\t * Returns the meta object for the reference '{@link be.unamur.iot.iotdsl.Parameter#getType <em>Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Type</em>'.\n\t * @see be.unamur.iot.iotdsl.Parameter#getType()\n\t * @see #getParameter()\n\t * @generated\n\t */\n\tEReference getParameter_Type();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Configuration <em>Configuration</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Configuration</em>'.\n\t * @see be.unamur.iot.iotdsl.Configuration\n\t * @generated\n\t */\n\tEClass getConfiguration();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.Configuration#getConfname <em>Confname</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Confname</em>'.\n\t * @see be.unamur.iot.iotdsl.Configuration#getConfname()\n\t * @see #getConfiguration()\n\t * @generated\n\t */\n\tEAttribute getConfiguration_Confname();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link be.unamur.iot.iotdsl.Configuration#getNodes <em>Nodes</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Nodes</em>'.\n\t * @see be.unamur.iot.iotdsl.Configuration#getNodes()\n\t * @see #getConfiguration()\n\t * @generated\n\t */\n\tEReference getConfiguration_Nodes();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link be.unamur.iot.iotdsl.Configuration#getPaths <em>Paths</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Paths</em>'.\n\t * @see be.unamur.iot.iotdsl.Configuration#getPaths()\n\t * @see #getConfiguration()\n\t * @generated\n\t */\n\tEReference getConfiguration_Paths();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.NodeInstance <em>Node Instance</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Node Instance</em>'.\n\t * @see be.unamur.iot.iotdsl.NodeInstance\n\t * @generated\n\t */\n\tEClass getNodeInstance();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.NodeInstance#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see be.unamur.iot.iotdsl.NodeInstance#getName()\n\t * @see #getNodeInstance()\n\t * @generated\n\t */\n\tEAttribute getNodeInstance_Name();\n\n\t/**\n\t * Returns the meta object for the reference '{@link be.unamur.iot.iotdsl.NodeInstance#getType <em>Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Type</em>'.\n\t * @see be.unamur.iot.iotdsl.NodeInstance#getType()\n\t * @see #getNodeInstance()\n\t * @generated\n\t */\n\tEReference getNodeInstance_Type();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.CommunicationPath <em>Communication Path</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Communication Path</em>'.\n\t * @see be.unamur.iot.iotdsl.CommunicationPath\n\t * @generated\n\t */\n\tEClass getCommunicationPath();\n\n\t/**\n\t * Returns the meta object for the reference '{@link be.unamur.iot.iotdsl.CommunicationPath#getSource <em>Source</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Source</em>'.\n\t * @see be.unamur.iot.iotdsl.CommunicationPath#getSource()\n\t * @see #getCommunicationPath()\n\t * @generated\n\t */\n\tEReference getCommunicationPath_Source();\n\n\t/**\n\t * Returns the meta object for the reference '{@link be.unamur.iot.iotdsl.CommunicationPath#getTaget <em>Taget</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Taget</em>'.\n\t * @see be.unamur.iot.iotdsl.CommunicationPath#getTaget()\n\t * @see #getCommunicationPath()\n\t * @generated\n\t */\n\tEReference getCommunicationPath_Taget();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.CommunicationPath#getProtocol <em>Protocol</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Protocol</em>'.\n\t * @see be.unamur.iot.iotdsl.CommunicationPath#getProtocol()\n\t * @see #getCommunicationPath()\n\t * @generated\n\t */\n\tEAttribute getCommunicationPath_Protocol();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Rule <em>Rule</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Rule</em>'.\n\t * @see be.unamur.iot.iotdsl.Rule\n\t * @generated\n\t */\n\tEClass getRule();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.Rule#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see be.unamur.iot.iotdsl.Rule#getName()\n\t * @see #getRule()\n\t * @generated\n\t */\n\tEAttribute getRule_Name();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link be.unamur.iot.iotdsl.Rule#getTriggers <em>Triggers</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Triggers</em>'.\n\t * @see be.unamur.iot.iotdsl.Rule#getTriggers()\n\t * @see #getRule()\n\t * @generated\n\t */\n\tEReference getRule_Triggers();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link be.unamur.iot.iotdsl.Rule#getReactions <em>Reactions</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Reactions</em>'.\n\t * @see be.unamur.iot.iotdsl.Rule#getReactions()\n\t * @see #getRule()\n\t * @generated\n\t */\n\tEReference getRule_Reactions();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Expression <em>Expression</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Expression</em>'.\n\t * @see be.unamur.iot.iotdsl.Expression\n\t * @generated\n\t */\n\tEClass getExpression();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Delay <em>Delay</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Delay</em>'.\n\t * @see be.unamur.iot.iotdsl.Delay\n\t * @generated\n\t */\n\tEClass getDelay();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.Delay#getTime <em>Time</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Time</em>'.\n\t * @see be.unamur.iot.iotdsl.Delay#getTime()\n\t * @see #getDelay()\n\t * @generated\n\t */\n\tEAttribute getDelay_Time();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.Delay#getUnit <em>Unit</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Unit</em>'.\n\t * @see be.unamur.iot.iotdsl.Delay#getUnit()\n\t * @see #getDelay()\n\t * @generated\n\t */\n\tEAttribute getDelay_Unit();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.NotExpression <em>Not Expression</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Not Expression</em>'.\n\t * @see be.unamur.iot.iotdsl.NotExpression\n\t * @generated\n\t */\n\tEClass getNotExpression();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link be.unamur.iot.iotdsl.NotExpression#getEvent <em>Event</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Event</em>'.\n\t * @see be.unamur.iot.iotdsl.NotExpression#getEvent()\n\t * @see #getNotExpression()\n\t * @generated\n\t */\n\tEReference getNotExpression_Event();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.EventOccurrence <em>Event Occurrence</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Event Occurrence</em>'.\n\t * @see be.unamur.iot.iotdsl.EventOccurrence\n\t * @generated\n\t */\n\tEClass getEventOccurrence();\n\n\t/**\n\t * Returns the meta object for the reference '{@link be.unamur.iot.iotdsl.EventOccurrence#getInstance <em>Instance</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Instance</em>'.\n\t * @see be.unamur.iot.iotdsl.EventOccurrence#getInstance()\n\t * @see #getEventOccurrence()\n\t * @generated\n\t */\n\tEReference getEventOccurrence_Instance();\n\n\t/**\n\t * Returns the meta object for the reference '{@link be.unamur.iot.iotdsl.EventOccurrence#getCapability <em>Capability</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Capability</em>'.\n\t * @see be.unamur.iot.iotdsl.EventOccurrence#getCapability()\n\t * @see #getEventOccurrence()\n\t * @generated\n\t */\n\tEReference getEventOccurrence_Capability();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link be.unamur.iot.iotdsl.EventOccurrence#getAttributes <em>Attributes</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Attributes</em>'.\n\t * @see be.unamur.iot.iotdsl.EventOccurrence#getAttributes()\n\t * @see #getEventOccurrence()\n\t * @generated\n\t */\n\tEReference getEventOccurrence_Attributes();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.EventOccurrence#getOperator <em>Operator</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Operator</em>'.\n\t * @see be.unamur.iot.iotdsl.EventOccurrence#getOperator()\n\t * @see #getEventOccurrence()\n\t * @generated\n\t */\n\tEAttribute getEventOccurrence_Operator();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link be.unamur.iot.iotdsl.EventOccurrence#getValue <em>Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Value</em>'.\n\t * @see be.unamur.iot.iotdsl.EventOccurrence#getValue()\n\t * @see #getEventOccurrence()\n\t * @generated\n\t */\n\tEReference getEventOccurrence_Value();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Reaction <em>Reaction</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Reaction</em>'.\n\t * @see be.unamur.iot.iotdsl.Reaction\n\t * @generated\n\t */\n\tEClass getReaction();\n\n\t/**\n\t * Returns the meta object for the reference '{@link be.unamur.iot.iotdsl.Reaction#getInstance <em>Instance</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Instance</em>'.\n\t * @see be.unamur.iot.iotdsl.Reaction#getInstance()\n\t * @see #getReaction()\n\t * @generated\n\t */\n\tEReference getReaction_Instance();\n\n\t/**\n\t * Returns the meta object for the reference '{@link be.unamur.iot.iotdsl.Reaction#getCapability <em>Capability</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Capability</em>'.\n\t * @see be.unamur.iot.iotdsl.Reaction#getCapability()\n\t * @see #getReaction()\n\t * @generated\n\t */\n\tEReference getReaction_Capability();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link be.unamur.iot.iotdsl.Reaction#getAttributes <em>Attributes</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Attributes</em>'.\n\t * @see be.unamur.iot.iotdsl.Reaction#getAttributes()\n\t * @see #getReaction()\n\t * @generated\n\t */\n\tEReference getReaction_Attributes();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Attribute <em>Attribute</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Attribute</em>'.\n\t * @see be.unamur.iot.iotdsl.Attribute\n\t * @generated\n\t */\n\tEClass getAttribute();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.Attribute#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see be.unamur.iot.iotdsl.Attribute#getName()\n\t * @see #getAttribute()\n\t * @generated\n\t */\n\tEAttribute getAttribute_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.AndExpression <em>And Expression</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>And Expression</em>'.\n\t * @see be.unamur.iot.iotdsl.AndExpression\n\t * @generated\n\t */\n\tEClass getAndExpression();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link be.unamur.iot.iotdsl.AndExpression#getLeft <em>Left</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Left</em>'.\n\t * @see be.unamur.iot.iotdsl.AndExpression#getLeft()\n\t * @see #getAndExpression()\n\t * @generated\n\t */\n\tEReference getAndExpression_Left();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link be.unamur.iot.iotdsl.AndExpression#getRight <em>Right</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Right</em>'.\n\t * @see be.unamur.iot.iotdsl.AndExpression#getRight()\n\t * @see #getAndExpression()\n\t * @generated\n\t */\n\tEReference getAndExpression_Right();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.TimingExpression <em>Timing Expression</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Timing Expression</em>'.\n\t * @see be.unamur.iot.iotdsl.TimingExpression\n\t * @generated\n\t */\n\tEClass getTimingExpression();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link be.unamur.iot.iotdsl.TimingExpression#getFollowing <em>Following</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Following</em>'.\n\t * @see be.unamur.iot.iotdsl.TimingExpression#getFollowing()\n\t * @see #getTimingExpression()\n\t * @generated\n\t */\n\tEReference getTimingExpression_Following();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link be.unamur.iot.iotdsl.TimingExpression#getPreceding <em>Preceding</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Preceding</em>'.\n\t * @see be.unamur.iot.iotdsl.TimingExpression#getPreceding()\n\t * @see #getTimingExpression()\n\t * @generated\n\t */\n\tEReference getTimingExpression_Preceding();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.WithinExpression <em>Within Expression</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Within Expression</em>'.\n\t * @see be.unamur.iot.iotdsl.WithinExpression\n\t * @generated\n\t */\n\tEClass getWithinExpression();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link be.unamur.iot.iotdsl.WithinExpression#getDelay <em>Delay</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Delay</em>'.\n\t * @see be.unamur.iot.iotdsl.WithinExpression#getDelay()\n\t * @see #getWithinExpression()\n\t * @generated\n\t */\n\tEReference getWithinExpression_Delay();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.AfterExpression <em>After Expression</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>After Expression</em>'.\n\t * @see be.unamur.iot.iotdsl.AfterExpression\n\t * @generated\n\t */\n\tEClass getAfterExpression();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.Value <em>Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Value</em>'.\n\t * @see be.unamur.iot.iotdsl.Value\n\t * @generated\n\t */\n\tEClass getValue();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.StringConstant <em>String Constant</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>String Constant</em>'.\n\t * @see be.unamur.iot.iotdsl.StringConstant\n\t * @generated\n\t */\n\tEClass getStringConstant();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.StringConstant#getValue <em>Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Value</em>'.\n\t * @see be.unamur.iot.iotdsl.StringConstant#getValue()\n\t * @see #getStringConstant()\n\t * @generated\n\t */\n\tEAttribute getStringConstant_Value();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.IntConstant <em>Int Constant</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Int Constant</em>'.\n\t * @see be.unamur.iot.iotdsl.IntConstant\n\t * @generated\n\t */\n\tEClass getIntConstant();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.IntConstant#getValue <em>Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Value</em>'.\n\t * @see be.unamur.iot.iotdsl.IntConstant#getValue()\n\t * @see #getIntConstant()\n\t * @generated\n\t */\n\tEAttribute getIntConstant_Value();\n\n\t/**\n\t * Returns the meta object for class '{@link be.unamur.iot.iotdsl.BoolConstant <em>Bool Constant</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Bool Constant</em>'.\n\t * @see be.unamur.iot.iotdsl.BoolConstant\n\t * @generated\n\t */\n\tEClass getBoolConstant();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link be.unamur.iot.iotdsl.BoolConstant#getValue <em>Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Value</em>'.\n\t * @see be.unamur.iot.iotdsl.BoolConstant#getValue()\n\t * @see #getBoolConstant()\n\t * @generated\n\t */\n\tEAttribute getBoolConstant_Value();\n\n\t/**\n\t * Returns the meta object for enum '{@link be.unamur.iot.iotdsl.DefaultType <em>Default Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Default Type</em>'.\n\t * @see be.unamur.iot.iotdsl.DefaultType\n\t * @generated\n\t */\n\tEEnum getDefaultType();\n\n\t/**\n\t * Returns the meta object for enum '{@link be.unamur.iot.iotdsl.Operator <em>Operator</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Operator</em>'.\n\t * @see be.unamur.iot.iotdsl.Operator\n\t * @generated\n\t */\n\tEEnum getOperator();\n\n\t/**\n\t * Returns the meta object for enum '{@link be.unamur.iot.iotdsl.Protocol <em>Protocol</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Protocol</em>'.\n\t * @see be.unamur.iot.iotdsl.Protocol\n\t * @generated\n\t */\n\tEEnum getProtocol();\n\n\t/**\n\t * Returns the meta object for enum '{@link be.unamur.iot.iotdsl.Unit <em>Unit</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Unit</em>'.\n\t * @see be.unamur.iot.iotdsl.Unit\n\t * @generated\n\t */\n\tEEnum getUnit();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tIotdslFactory getIotdslFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.IotModelImpl <em>Iot Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.IotModelImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getIotModel()\n\t\t * @generated\n\t\t */\n\t\tEClass IOT_MODEL = eINSTANCE.getIotModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Imports</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IOT_MODEL__IMPORTS = eINSTANCE.getIotModel_Imports();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IOT_MODEL__NAME = eINSTANCE.getIotModel_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IOT_MODEL__CONTENT = eINSTANCE.getIotModel_Content();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.ImportImpl <em>Import</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.ImportImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getImport()\n\t\t * @generated\n\t\t */\n\t\tEClass IMPORT = eINSTANCE.getImport();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Imported Namespace</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPORT__IMPORTED_NAMESPACE = eINSTANCE.getImport_ImportedNamespace();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.ContentImpl <em>Content</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.ContentImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getContent()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT = eINSTANCE.getContent();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.TypeImpl <em>Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.TypeImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getType()\n\t\t * @generated\n\t\t */\n\t\tEClass TYPE = eINSTANCE.getType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute TYPE__NAME = eINSTANCE.getType_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.PrimitiveTypeImpl <em>Primitive Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.PrimitiveTypeImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getPrimitiveType()\n\t\t * @generated\n\t\t */\n\t\tEClass PRIMITIVE_TYPE = eINSTANCE.getPrimitiveType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.DeclaredTypeImpl <em>Declared Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.DeclaredTypeImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getDeclaredType()\n\t\t * @generated\n\t\t */\n\t\tEClass DECLARED_TYPE = eINSTANCE.getDeclaredType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.EnumerationImpl <em>Enumeration</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.EnumerationImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getEnumeration()\n\t\t * @generated\n\t\t */\n\t\tEClass ENUMERATION = eINSTANCE.getEnumeration();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Literals</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference ENUMERATION__LITERALS = eINSTANCE.getEnumeration_Literals();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.EnumLiteralImpl <em>Enum Literal</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.EnumLiteralImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getEnumLiteral()\n\t\t * @generated\n\t\t */\n\t\tEClass ENUM_LITERAL = eINSTANCE.getEnumLiteral();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ENUM_LITERAL__NAME = eINSTANCE.getEnumLiteral_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.NodeImpl <em>Node</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.NodeImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getNode()\n\t\t * @generated\n\t\t */\n\t\tEClass NODE = eINSTANCE.getNode();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.DeviceImpl <em>Device</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.DeviceImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getDevice()\n\t\t * @generated\n\t\t */\n\t\tEClass DEVICE = eINSTANCE.getDevice();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Features</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference DEVICE__FEATURES = eINSTANCE.getDevice_Features();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.GatewayImpl <em>Gateway</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.GatewayImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getGateway()\n\t\t * @generated\n\t\t */\n\t\tEClass GATEWAY = eINSTANCE.getGateway();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.FeatureImpl <em>Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.FeatureImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass FEATURE = eINSTANCE.getFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute FEATURE__NAME = eINSTANCE.getFeature_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.PropertyImpl <em>Property</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.PropertyImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getProperty()\n\t\t * @generated\n\t\t */\n\t\tEClass PROPERTY = eINSTANCE.getProperty();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference PROPERTY__VALUE = eINSTANCE.getProperty_Value();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.CapabilityImpl <em>Capability</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.CapabilityImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getCapability()\n\t\t * @generated\n\t\t */\n\t\tEClass CAPABILITY = eINSTANCE.getCapability();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Parameters</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CAPABILITY__PARAMETERS = eINSTANCE.getCapability_Parameters();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.ActuatingImpl <em>Actuating</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.ActuatingImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getActuating()\n\t\t * @generated\n\t\t */\n\t\tEClass ACTUATING = eINSTANCE.getActuating();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.SensingImpl <em>Sensing</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.SensingImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getSensing()\n\t\t * @generated\n\t\t */\n\t\tEClass SENSING = eINSTANCE.getSensing();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.ParameterImpl <em>Parameter</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.ParameterImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getParameter()\n\t\t * @generated\n\t\t */\n\t\tEClass PARAMETER = eINSTANCE.getParameter();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute PARAMETER__NAME = eINSTANCE.getParameter_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference PARAMETER__TYPE = eINSTANCE.getParameter_Type();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.ConfigurationImpl <em>Configuration</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.ConfigurationImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getConfiguration()\n\t\t * @generated\n\t\t */\n\t\tEClass CONFIGURATION = eINSTANCE.getConfiguration();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Confname</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONFIGURATION__CONFNAME = eINSTANCE.getConfiguration_Confname();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Nodes</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONFIGURATION__NODES = eINSTANCE.getConfiguration_Nodes();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Paths</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONFIGURATION__PATHS = eINSTANCE.getConfiguration_Paths();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.NodeInstanceImpl <em>Node Instance</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.NodeInstanceImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getNodeInstance()\n\t\t * @generated\n\t\t */\n\t\tEClass NODE_INSTANCE = eINSTANCE.getNodeInstance();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute NODE_INSTANCE__NAME = eINSTANCE.getNodeInstance_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference NODE_INSTANCE__TYPE = eINSTANCE.getNodeInstance_Type();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.CommunicationPathImpl <em>Communication Path</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.CommunicationPathImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getCommunicationPath()\n\t\t * @generated\n\t\t */\n\t\tEClass COMMUNICATION_PATH = eINSTANCE.getCommunicationPath();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Source</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference COMMUNICATION_PATH__SOURCE = eINSTANCE.getCommunicationPath_Source();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Taget</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference COMMUNICATION_PATH__TAGET = eINSTANCE.getCommunicationPath_Taget();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Protocol</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMMUNICATION_PATH__PROTOCOL = eINSTANCE.getCommunicationPath_Protocol();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.RuleImpl <em>Rule</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.RuleImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getRule()\n\t\t * @generated\n\t\t */\n\t\tEClass RULE = eINSTANCE.getRule();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute RULE__NAME = eINSTANCE.getRule_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Triggers</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference RULE__TRIGGERS = eINSTANCE.getRule_Triggers();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Reactions</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference RULE__REACTIONS = eINSTANCE.getRule_Reactions();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.ExpressionImpl <em>Expression</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.ExpressionImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getExpression()\n\t\t * @generated\n\t\t */\n\t\tEClass EXPRESSION = eINSTANCE.getExpression();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.DelayImpl <em>Delay</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.DelayImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getDelay()\n\t\t * @generated\n\t\t */\n\t\tEClass DELAY = eINSTANCE.getDelay();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Time</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DELAY__TIME = eINSTANCE.getDelay_Time();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Unit</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DELAY__UNIT = eINSTANCE.getDelay_Unit();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.NotExpressionImpl <em>Not Expression</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.NotExpressionImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getNotExpression()\n\t\t * @generated\n\t\t */\n\t\tEClass NOT_EXPRESSION = eINSTANCE.getNotExpression();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Event</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference NOT_EXPRESSION__EVENT = eINSTANCE.getNotExpression_Event();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.EventOccurrenceImpl <em>Event Occurrence</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.EventOccurrenceImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getEventOccurrence()\n\t\t * @generated\n\t\t */\n\t\tEClass EVENT_OCCURRENCE = eINSTANCE.getEventOccurrence();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Instance</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference EVENT_OCCURRENCE__INSTANCE = eINSTANCE.getEventOccurrence_Instance();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Capability</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference EVENT_OCCURRENCE__CAPABILITY = eINSTANCE.getEventOccurrence_Capability();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference EVENT_OCCURRENCE__ATTRIBUTES = eINSTANCE.getEventOccurrence_Attributes();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Operator</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute EVENT_OCCURRENCE__OPERATOR = eINSTANCE.getEventOccurrence_Operator();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference EVENT_OCCURRENCE__VALUE = eINSTANCE.getEventOccurrence_Value();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.ReactionImpl <em>Reaction</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.ReactionImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getReaction()\n\t\t * @generated\n\t\t */\n\t\tEClass REACTION = eINSTANCE.getReaction();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Instance</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference REACTION__INSTANCE = eINSTANCE.getReaction_Instance();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Capability</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference REACTION__CAPABILITY = eINSTANCE.getReaction_Capability();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference REACTION__ATTRIBUTES = eINSTANCE.getReaction_Attributes();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.AttributeImpl <em>Attribute</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.AttributeImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getAttribute()\n\t\t * @generated\n\t\t */\n\t\tEClass ATTRIBUTE = eINSTANCE.getAttribute();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ATTRIBUTE__NAME = eINSTANCE.getAttribute_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.AndExpressionImpl <em>And Expression</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.AndExpressionImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getAndExpression()\n\t\t * @generated\n\t\t */\n\t\tEClass AND_EXPRESSION = eINSTANCE.getAndExpression();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Left</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference AND_EXPRESSION__LEFT = eINSTANCE.getAndExpression_Left();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Right</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference AND_EXPRESSION__RIGHT = eINSTANCE.getAndExpression_Right();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.TimingExpressionImpl <em>Timing Expression</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.TimingExpressionImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getTimingExpression()\n\t\t * @generated\n\t\t */\n\t\tEClass TIMING_EXPRESSION = eINSTANCE.getTimingExpression();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Following</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference TIMING_EXPRESSION__FOLLOWING = eINSTANCE.getTimingExpression_Following();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Preceding</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference TIMING_EXPRESSION__PRECEDING = eINSTANCE.getTimingExpression_Preceding();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.WithinExpressionImpl <em>Within Expression</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.WithinExpressionImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getWithinExpression()\n\t\t * @generated\n\t\t */\n\t\tEClass WITHIN_EXPRESSION = eINSTANCE.getWithinExpression();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Delay</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference WITHIN_EXPRESSION__DELAY = eINSTANCE.getWithinExpression_Delay();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.AfterExpressionImpl <em>After Expression</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.AfterExpressionImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getAfterExpression()\n\t\t * @generated\n\t\t */\n\t\tEClass AFTER_EXPRESSION = eINSTANCE.getAfterExpression();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.ValueImpl <em>Value</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.ValueImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getValue()\n\t\t * @generated\n\t\t */\n\t\tEClass VALUE = eINSTANCE.getValue();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.StringConstantImpl <em>String Constant</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.StringConstantImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getStringConstant()\n\t\t * @generated\n\t\t */\n\t\tEClass STRING_CONSTANT = eINSTANCE.getStringConstant();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute STRING_CONSTANT__VALUE = eINSTANCE.getStringConstant_Value();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.IntConstantImpl <em>Int Constant</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.IntConstantImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getIntConstant()\n\t\t * @generated\n\t\t */\n\t\tEClass INT_CONSTANT = eINSTANCE.getIntConstant();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute INT_CONSTANT__VALUE = eINSTANCE.getIntConstant_Value();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.impl.BoolConstantImpl <em>Bool Constant</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.impl.BoolConstantImpl\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getBoolConstant()\n\t\t * @generated\n\t\t */\n\t\tEClass BOOL_CONSTANT = eINSTANCE.getBoolConstant();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute BOOL_CONSTANT__VALUE = eINSTANCE.getBoolConstant_Value();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.DefaultType <em>Default Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.DefaultType\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getDefaultType()\n\t\t * @generated\n\t\t */\n\t\tEEnum DEFAULT_TYPE = eINSTANCE.getDefaultType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.Operator <em>Operator</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.Operator\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getOperator()\n\t\t * @generated\n\t\t */\n\t\tEEnum OPERATOR = eINSTANCE.getOperator();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.Protocol <em>Protocol</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.Protocol\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getProtocol()\n\t\t * @generated\n\t\t */\n\t\tEEnum PROTOCOL = eINSTANCE.getProtocol();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link be.unamur.iot.iotdsl.Unit <em>Unit</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see be.unamur.iot.iotdsl.Unit\n\t\t * @see be.unamur.iot.iotdsl.impl.IotdslPackageImpl#getUnit()\n\t\t * @generated\n\t\t */\n\t\tEEnum UNIT = eINSTANCE.getUnit();\n\n\t}\n\n}", "String getRootAlias();", "TggPackage getTggPackage();", "public interface ToUseSolverLpPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"tousesolverlp\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.misc.com/common/touse/solverlp/model/0.1\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"tsollp\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tToUseSolverLpPackage eINSTANCE = com.misc.touse.moplaf.solver.tousesolverlp.impl.ToUseSolverLpPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link com.misc.touse.moplaf.solver.tousesolverlp.impl.FolderImpl <em>Folder</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.impl.FolderImpl\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.impl.ToUseSolverLpPackageImpl#getFolder()\n\t * @generated\n\t */\n\tint FOLDER = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Sub Folders</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FOLDER__SUB_FOLDERS = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Generators</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FOLDER__GENERATORS = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FOLDER__NAME = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Folder</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FOLDER_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Folder</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FOLDER_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link com.misc.touse.moplaf.solver.tousesolverlp.impl.ToUseGeneratorImpl <em>To Use Generator</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.impl.ToUseGeneratorImpl\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.impl.ToUseSolverLpPackageImpl#getToUseGenerator()\n\t * @generated\n\t */\n\tint TO_USE_GENERATOR = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Run Feedback</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__RUN_FEEDBACK = SolverPackage.GENERATOR__RUN_FEEDBACK;\n\n\t/**\n\t * The feature id for the '<em><b>Cancel Feedback</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__CANCEL_FEEDBACK = SolverPackage.GENERATOR__CANCEL_FEEDBACK;\n\n\t/**\n\t * The feature id for the '<em><b>Reset Feedback</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__RESET_FEEDBACK = SolverPackage.GENERATOR__RESET_FEEDBACK;\n\n\t/**\n\t * The feature id for the '<em><b>Label</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__LABEL = SolverPackage.GENERATOR__LABEL;\n\n\t/**\n\t * The feature id for the '<em><b>Cancelled</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__CANCELLED = SolverPackage.GENERATOR__CANCELLED;\n\n\t/**\n\t * The feature id for the '<em><b>Returned</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__RETURNED = SolverPackage.GENERATOR__RETURNED;\n\n\t/**\n\t * The feature id for the '<em><b>Return Success</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__RETURN_SUCCESS = SolverPackage.GENERATOR__RETURN_SUCCESS;\n\n\t/**\n\t * The feature id for the '<em><b>Return Feedback</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__RETURN_FEEDBACK = SolverPackage.GENERATOR__RETURN_FEEDBACK;\n\n\t/**\n\t * The feature id for the '<em><b>Return Information</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__RETURN_INFORMATION = SolverPackage.GENERATOR__RETURN_INFORMATION;\n\n\t/**\n\t * The feature id for the '<em><b>Tuple Root</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__TUPLE_ROOT = SolverPackage.GENERATOR__TUPLE_ROOT;\n\n\t/**\n\t * The feature id for the '<em><b>Goals</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__GOALS = SolverPackage.GENERATOR__GOALS;\n\n\t/**\n\t * The feature id for the '<em><b>Var Binders</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__VAR_BINDERS = SolverPackage.GENERATOR__VAR_BINDERS;\n\n\t/**\n\t * The feature id for the '<em><b>Solution Provider</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__SOLUTION_PROVIDER = SolverPackage.GENERATOR__SOLUTION_PROVIDER;\n\n\t/**\n\t * The feature id for the '<em><b>Remarks</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__REMARKS = SolverPackage.GENERATOR__REMARKS;\n\n\t/**\n\t * The feature id for the '<em><b>Footprint Nof Vars</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__FOOTPRINT_NOF_VARS = SolverPackage.GENERATOR__FOOTPRINT_NOF_VARS;\n\n\t/**\n\t * The feature id for the '<em><b>Footprint Nof Cons</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__FOOTPRINT_NOF_CONS = SolverPackage.GENERATOR__FOOTPRINT_NOF_CONS;\n\n\t/**\n\t * The feature id for the '<em><b>Footprint Nof Terms</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__FOOTPRINT_NOF_TERMS = SolverPackage.GENERATOR__FOOTPRINT_NOF_TERMS;\n\n\t/**\n\t * The feature id for the '<em><b>Code</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__CODE = SolverPackage.GENERATOR__CODE;\n\n\t/**\n\t * The feature id for the '<em><b>Selected</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__SELECTED = SolverPackage.GENERATOR__SELECTED;\n\n\t/**\n\t * The feature id for the '<em><b>Root Tuples</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__ROOT_TUPLES = SolverPackage.GENERATOR_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Solvers</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR__SOLVERS = SolverPackage.GENERATOR_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>To Use Generator</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR_FEATURE_COUNT = SolverPackage.GENERATOR_FEATURE_COUNT + 2;\n\n\t/**\n\t * The operation id for the '<em>Copy Params</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___COPY_PARAMS__RUNPARAMS = SolverPackage.GENERATOR___COPY_PARAMS__RUNPARAMS;\n\n\t/**\n\t * The operation id for the '<em>Reset</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___RESET = SolverPackage.GENERATOR___RESET;\n\n\t/**\n\t * The operation id for the '<em>Run</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___RUN = SolverPackage.GENERATOR___RUN;\n\n\t/**\n\t * The operation id for the '<em>Run</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___RUN__RUNCONTEXT = SolverPackage.GENERATOR___RUN__RUNCONTEXT;\n\n\t/**\n\t * The operation id for the '<em>Run Asynch</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___RUN_ASYNCH__RUNCONTEXT = SolverPackage.GENERATOR___RUN_ASYNCH__RUNCONTEXT;\n\n\t/**\n\t * The operation id for the '<em>Cancel</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___CANCEL = SolverPackage.GENERATOR___CANCEL;\n\n\t/**\n\t * The operation id for the '<em>Set Progress</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___SET_PROGRESS__STRING_FLOAT = SolverPackage.GENERATOR___SET_PROGRESS__STRING_FLOAT;\n\n\t/**\n\t * The operation id for the '<em>Set Return</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___SET_RETURN__RETURNFEEDBACK = SolverPackage.GENERATOR___SET_RETURN__RETURNFEEDBACK;\n\n\t/**\n\t * The operation id for the '<em>Set Progress</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___SET_PROGRESS__PROGRESSFEEDBACK = SolverPackage.GENERATOR___SET_PROGRESS__PROGRESSFEEDBACK;\n\n\t/**\n\t * The operation id for the '<em>Get Return</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___GET_RETURN = SolverPackage.GENERATOR___GET_RETURN;\n\n\t/**\n\t * The operation id for the '<em>Construct Params</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___CONSTRUCT_PARAMS = SolverPackage.GENERATOR___CONSTRUCT_PARAMS;\n\n\t/**\n\t * The operation id for the '<em>Generate</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___GENERATE = SolverPackage.GENERATOR___GENERATE;\n\n\t/**\n\t * The operation id for the '<em>Generate Root Tuples</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___GENERATE_ROOT_TUPLES = SolverPackage.GENERATOR___GENERATE_ROOT_TUPLES;\n\n\t/**\n\t * The operation id for the '<em>Generate Tuples</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___GENERATE_TUPLES = SolverPackage.GENERATOR___GENERATE_TUPLES;\n\n\t/**\n\t * The operation id for the '<em>Generate Tuple XReferences</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___GENERATE_TUPLE_XREFERENCES = SolverPackage.GENERATOR___GENERATE_TUPLE_XREFERENCES;\n\n\t/**\n\t * The operation id for the '<em>Generate Vars</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___GENERATE_VARS = SolverPackage.GENERATOR___GENERATE_VARS;\n\n\t/**\n\t * The operation id for the '<em>Generate Cons</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___GENERATE_CONS = SolverPackage.GENERATOR___GENERATE_CONS;\n\n\t/**\n\t * The operation id for the '<em>Generate Goals</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___GENERATE_GOALS = SolverPackage.GENERATOR___GENERATE_GOALS;\n\n\t/**\n\t * The operation id for the '<em>Accept Solution</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___ACCEPT_SOLUTION__SOLUTION = SolverPackage.GENERATOR___ACCEPT_SOLUTION__SOLUTION;\n\n\t/**\n\t * The operation id for the '<em>Visit Tuples</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___VISIT_TUPLES__ITUPLEVISITOR = SolverPackage.GENERATOR___VISIT_TUPLES__ITUPLEVISITOR;\n\n\t/**\n\t * The operation id for the '<em>Refresh Selected Solution</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR___REFRESH_SELECTED_SOLUTION = SolverPackage.GENERATOR___REFRESH_SELECTED_SOLUTION;\n\n\t/**\n\t * The number of operations of the '<em>To Use Generator</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_GENERATOR_OPERATION_COUNT = SolverPackage.GENERATOR_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link com.misc.touse.moplaf.solver.tousesolverlp.impl.ToUseTupleImpl <em>To Use Tuple</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.impl.ToUseTupleImpl\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.impl.ToUseSolverLpPackageImpl#getToUseTuple()\n\t * @generated\n\t */\n\tint TO_USE_TUPLE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Code</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE__CODE = SolverPackage.GENERATOR_TUPLE__CODE;\n\n\t/**\n\t * The feature id for the '<em><b>Generator As Root</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE__GENERATOR_AS_ROOT = SolverPackage.GENERATOR_TUPLE__GENERATOR_AS_ROOT;\n\n\t/**\n\t * The feature id for the '<em><b>Tuple Element</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE__TUPLE_ELEMENT = SolverPackage.GENERATOR_TUPLE__TUPLE_ELEMENT;\n\n\t/**\n\t * The feature id for the '<em><b>Tuple Container</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE__TUPLE_CONTAINER = SolverPackage.GENERATOR_TUPLE__TUPLE_CONTAINER;\n\n\t/**\n\t * The feature id for the '<em><b>Var</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE__VAR = SolverPackage.GENERATOR_TUPLE__VAR;\n\n\t/**\n\t * The feature id for the '<em><b>Cons</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE__CONS = SolverPackage.GENERATOR_TUPLE__CONS;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE__NAME = SolverPackage.GENERATOR_TUPLE__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Members</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE__MEMBERS = SolverPackage.GENERATOR_TUPLE__MEMBERS;\n\n\t/**\n\t * The feature id for the '<em><b>Child Tuples</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE__CHILD_TUPLES = SolverPackage.GENERATOR_TUPLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>To Use Vars</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE__TO_USE_VARS = SolverPackage.GENERATOR_TUPLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>To Use Cons</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE__TO_USE_CONS = SolverPackage.GENERATOR_TUPLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The number of structural features of the '<em>To Use Tuple</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE_FEATURE_COUNT = SolverPackage.GENERATOR_TUPLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The operation id for the '<em>Get Generator</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE___GET_GENERATOR = SolverPackage.GENERATOR_TUPLE___GET_GENERATOR;\n\n\t/**\n\t * The operation id for the '<em>Refresh Selected Solution</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE___REFRESH_SELECTED_SOLUTION = SolverPackage.GENERATOR_TUPLE___REFRESH_SELECTED_SOLUTION;\n\n\t/**\n\t * The operation id for the '<em>Generate Vars</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE___GENERATE_VARS = SolverPackage.GENERATOR_TUPLE___GENERATE_VARS;\n\n\t/**\n\t * The operation id for the '<em>Generate Cons</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE___GENERATE_CONS = SolverPackage.GENERATOR_TUPLE___GENERATE_CONS;\n\n\t/**\n\t * The operation id for the '<em>Generate Tuples</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE___GENERATE_TUPLES = SolverPackage.GENERATOR_TUPLE___GENERATE_TUPLES;\n\n\t/**\n\t * The operation id for the '<em>Visit Tuples</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE___VISIT_TUPLES__ITUPLEVISITOR = SolverPackage.GENERATOR_TUPLE___VISIT_TUPLES__ITUPLEVISITOR;\n\n\t/**\n\t * The operation id for the '<em>Generate XReferences</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE___GENERATE_XREFERENCES = SolverPackage.GENERATOR_TUPLE___GENERATE_XREFERENCES;\n\n\t/**\n\t * The number of operations of the '<em>To Use Tuple</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TO_USE_TUPLE_OPERATION_COUNT = SolverPackage.GENERATOR_TUPLE_OPERATION_COUNT + 0;\n\n\n\t/**\n\t * Returns the meta object for class '{@link com.misc.touse.moplaf.solver.tousesolverlp.Folder <em>Folder</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Folder</em>'.\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.Folder\n\t * @generated\n\t */\n\tEClass getFolder();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link com.misc.touse.moplaf.solver.tousesolverlp.Folder#getSubFolders <em>Sub Folders</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Sub Folders</em>'.\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.Folder#getSubFolders()\n\t * @see #getFolder()\n\t * @generated\n\t */\n\tEReference getFolder_SubFolders();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link com.misc.touse.moplaf.solver.tousesolverlp.Folder#getGenerators <em>Generators</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Generators</em>'.\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.Folder#getGenerators()\n\t * @see #getFolder()\n\t * @generated\n\t */\n\tEReference getFolder_Generators();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link com.misc.touse.moplaf.solver.tousesolverlp.Folder#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.Folder#getName()\n\t * @see #getFolder()\n\t * @generated\n\t */\n\tEAttribute getFolder_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link com.misc.touse.moplaf.solver.tousesolverlp.ToUseGenerator <em>To Use Generator</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>To Use Generator</em>'.\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.ToUseGenerator\n\t * @generated\n\t */\n\tEClass getToUseGenerator();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link com.misc.touse.moplaf.solver.tousesolverlp.ToUseGenerator#getRootTuples <em>Root Tuples</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Root Tuples</em>'.\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.ToUseGenerator#getRootTuples()\n\t * @see #getToUseGenerator()\n\t * @generated\n\t */\n\tEReference getToUseGenerator_RootTuples();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link com.misc.touse.moplaf.solver.tousesolverlp.ToUseGenerator#getSolvers <em>Solvers</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Solvers</em>'.\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.ToUseGenerator#getSolvers()\n\t * @see #getToUseGenerator()\n\t * @generated\n\t */\n\tEReference getToUseGenerator_Solvers();\n\n\t/**\n\t * Returns the meta object for class '{@link com.misc.touse.moplaf.solver.tousesolverlp.ToUseTuple <em>To Use Tuple</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>To Use Tuple</em>'.\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.ToUseTuple\n\t * @generated\n\t */\n\tEClass getToUseTuple();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link com.misc.touse.moplaf.solver.tousesolverlp.ToUseTuple#getChildTuples <em>Child Tuples</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Child Tuples</em>'.\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.ToUseTuple#getChildTuples()\n\t * @see #getToUseTuple()\n\t * @generated\n\t */\n\tEReference getToUseTuple_ChildTuples();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link com.misc.touse.moplaf.solver.tousesolverlp.ToUseTuple#getToUseVars <em>To Use Vars</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>To Use Vars</em>'.\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.ToUseTuple#getToUseVars()\n\t * @see #getToUseTuple()\n\t * @generated\n\t */\n\tEReference getToUseTuple_ToUseVars();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link com.misc.touse.moplaf.solver.tousesolverlp.ToUseTuple#getToUseCons <em>To Use Cons</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>To Use Cons</em>'.\n\t * @see com.misc.touse.moplaf.solver.tousesolverlp.ToUseTuple#getToUseCons()\n\t * @see #getToUseTuple()\n\t * @generated\n\t */\n\tEReference getToUseTuple_ToUseCons();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tToUseSolverLpFactory getToUseSolverLpFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link com.misc.touse.moplaf.solver.tousesolverlp.impl.FolderImpl <em>Folder</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see com.misc.touse.moplaf.solver.tousesolverlp.impl.FolderImpl\n\t\t * @see com.misc.touse.moplaf.solver.tousesolverlp.impl.ToUseSolverLpPackageImpl#getFolder()\n\t\t * @generated\n\t\t */\n\t\tEClass FOLDER = eINSTANCE.getFolder();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Sub Folders</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference FOLDER__SUB_FOLDERS = eINSTANCE.getFolder_SubFolders();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Generators</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference FOLDER__GENERATORS = eINSTANCE.getFolder_Generators();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute FOLDER__NAME = eINSTANCE.getFolder_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link com.misc.touse.moplaf.solver.tousesolverlp.impl.ToUseGeneratorImpl <em>To Use Generator</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see com.misc.touse.moplaf.solver.tousesolverlp.impl.ToUseGeneratorImpl\n\t\t * @see com.misc.touse.moplaf.solver.tousesolverlp.impl.ToUseSolverLpPackageImpl#getToUseGenerator()\n\t\t * @generated\n\t\t */\n\t\tEClass TO_USE_GENERATOR = eINSTANCE.getToUseGenerator();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Root Tuples</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference TO_USE_GENERATOR__ROOT_TUPLES = eINSTANCE.getToUseGenerator_RootTuples();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Solvers</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference TO_USE_GENERATOR__SOLVERS = eINSTANCE.getToUseGenerator_Solvers();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link com.misc.touse.moplaf.solver.tousesolverlp.impl.ToUseTupleImpl <em>To Use Tuple</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see com.misc.touse.moplaf.solver.tousesolverlp.impl.ToUseTupleImpl\n\t\t * @see com.misc.touse.moplaf.solver.tousesolverlp.impl.ToUseSolverLpPackageImpl#getToUseTuple()\n\t\t * @generated\n\t\t */\n\t\tEClass TO_USE_TUPLE = eINSTANCE.getToUseTuple();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Child Tuples</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference TO_USE_TUPLE__CHILD_TUPLES = eINSTANCE.getToUseTuple_ChildTuples();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>To Use Vars</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference TO_USE_TUPLE__TO_USE_VARS = eINSTANCE.getToUseTuple_ToUseVars();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>To Use Cons</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference TO_USE_TUPLE__TO_USE_CONS = eINSTANCE.getToUseTuple_ToUseCons();\n\n\t}\n\n}", "public StringProperty packageNameProperty() {\n return packageName;\n }", "public interface Package extends Container {\n\n /**\n * Returns all top-level--non-recursive-- {@link Package}s contained under this package. allows the\n * \n * @return the top-level {@link Package}s in the package.\n */\n public Collection<Package> getPackages();\n\n \n /**\n * Adds a {@link Package} to the package hierarchy.\n * \n */\n /** adding packages can be done via {@link #addArtifact(Workspace,Artifact)} */\n //@Deprecated\n //public void addPackage(Workspace workspace, Package pack);\n}", "public String getQualifiedName();", "GaewebPackage getGaewebPackage();", "String getNamespacePrefix(Object ns);", "public PackageDoc packageNamed(String arg0) {\n // System.out.println(\"RootDoc.packageNamed() called.\");\n if (specPackages.containsKey(arg0)) {\n return specPackages.get(arg0);\n }\n return otherPackages.get(arg0);\n }", "default String getQualifiedName() {\n return declaringType().getQualifiedName() + \".\" + this.getName();\n }", "public String getBundleSymbolicName() {\r\n Class<?> c = grammarAccess.getClass();\r\n return getBundleSymbolicName(c);\r\n }", "private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }", "public interface SemanticPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"semantic\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://eclipse.org/emf/emfstore/server/model/versioning/operations/semantic\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"org.eclipse.emf.emfstore.internal.server.model.versioning.operations.semantic\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * @generated\n\t */\n\tSemanticPackage eINSTANCE = org.eclipse.emf.emfstore.internal.server.model.versioning.operations.semantic.impl.SemanticPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link org.eclipse.emf.emfstore.internal.server.model.versioning.operations.semantic.impl.SemanticCompositeOperationImpl <em>Composite Operation</em>}' class.\n\t * <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * @see org.eclipse.emf.emfstore.internal.server.model.versioning.operations.semantic.impl.SemanticCompositeOperationImpl\n\t * @see org.eclipse.emf.emfstore.internal.server.model.versioning.operations.semantic.impl.SemanticPackageImpl#getSemanticCompositeOperation()\n\t * @generated\n\t */\n\tint SEMANTIC_COMPOSITE_OPERATION = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Identifier</b></em>' attribute. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SEMANTIC_COMPOSITE_OPERATION__IDENTIFIER = OperationsPackage.COMPOSITE_OPERATION__IDENTIFIER;\n\n\t/**\n\t * The feature id for the '<em><b>Model Element Id</b></em>' containment reference.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SEMANTIC_COMPOSITE_OPERATION__MODEL_ELEMENT_ID = OperationsPackage.COMPOSITE_OPERATION__MODEL_ELEMENT_ID;\n\n\t/**\n\t * The feature id for the '<em><b>Accepted</b></em>' attribute. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SEMANTIC_COMPOSITE_OPERATION__ACCEPTED = OperationsPackage.COMPOSITE_OPERATION__ACCEPTED;\n\n\t/**\n\t * The feature id for the '<em><b>Client Date</b></em>' attribute. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SEMANTIC_COMPOSITE_OPERATION__CLIENT_DATE = OperationsPackage.COMPOSITE_OPERATION__CLIENT_DATE;\n\n\t/**\n\t * The feature id for the '<em><b>Sub Operations</b></em>' containment reference list.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SEMANTIC_COMPOSITE_OPERATION__SUB_OPERATIONS = OperationsPackage.COMPOSITE_OPERATION__SUB_OPERATIONS;\n\n\t/**\n\t * The feature id for the '<em><b>Main Operation</b></em>' reference. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SEMANTIC_COMPOSITE_OPERATION__MAIN_OPERATION = OperationsPackage.COMPOSITE_OPERATION__MAIN_OPERATION;\n\n\t/**\n\t * The feature id for the '<em><b>Composite Name</b></em>' attribute. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SEMANTIC_COMPOSITE_OPERATION__COMPOSITE_NAME = OperationsPackage.COMPOSITE_OPERATION__COMPOSITE_NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Composite Description</b></em>' attribute.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SEMANTIC_COMPOSITE_OPERATION__COMPOSITE_DESCRIPTION = OperationsPackage.COMPOSITE_OPERATION__COMPOSITE_DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Reversed</b></em>' attribute. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SEMANTIC_COMPOSITE_OPERATION__REVERSED = OperationsPackage.COMPOSITE_OPERATION__REVERSED;\n\n\t/**\n\t * The number of structural features of the '<em>Composite Operation</em>' class.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SEMANTIC_COMPOSITE_OPERATION_FEATURE_COUNT = OperationsPackage.COMPOSITE_OPERATION_FEATURE_COUNT + 0;\n\n\t/**\n\t * Returns the meta object for class '\n\t * {@link org.eclipse.emf.emfstore.internal.server.model.versioning.operations.semantic.SemanticCompositeOperation\n\t * <em>Composite Operation</em>}'. <!-- begin-user-doc --> <!-- end-user-doc\n\t * -->\n\t * \n\t * @return the meta object for class '<em>Composite Operation</em>'.\n\t * @see org.eclipse.emf.emfstore.internal.server.model.versioning.operations.semantic.SemanticCompositeOperation\n\t * @generated\n\t */\n\tEClass getSemanticCompositeOperation();\n\n\t/**\n\t * Returns the factory that creates the instances of the model. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tSemanticFactory getSemanticFactory();\n\n\t/**\n\t * <!-- begin-user-doc --> Defines literals for the meta objects that\n\t * represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link org.eclipse.emf.emfstore.internal.server.model.versioning.operations.semantic.impl.SemanticCompositeOperationImpl <em>Composite Operation</em>}' class.\n\t\t * <!-- begin-user-doc --> <!--\n\t\t * end-user-doc -->\n\t\t * @see org.eclipse.emf.emfstore.internal.server.model.versioning.operations.semantic.impl.SemanticCompositeOperationImpl\n\t\t * @see org.eclipse.emf.emfstore.internal.server.model.versioning.operations.semantic.impl.SemanticPackageImpl#getSemanticCompositeOperation()\n\t\t * @generated\n\t\t */\n\t\tEClass SEMANTIC_COMPOSITE_OPERATION = eINSTANCE.getSemanticCompositeOperation();\n\n\t}\n\n}", "private String getPackageAlias(SymbolEnv env) {\n return env.enclPkg.imports.stream()\n .filter(imports -> imports.symbol.pkgID.toString().equals(ORG_NAME + ORG_SEPARATOR + PACKAGE_NAME))\n .map(importPackage -> importPackage.alias.value).findFirst().orElse(PACKAGE_NAME);\n }", "public PackageName(CodebaseElementName elementName) {\n char separator = '/';\n String path = \"\";\n switch (elementName.CodebaseElementType) {\n case File:\n // the directory location is just the String before the last / in the FQN\n // eg dir1/dir2/file.ext\n separator = '/';\n path = elementName.getFullyQualified();\n break;\n case Class:\n // the package location is after | and before the last . in the FQN\n // eg dir1/dir2/file.ext|package1.package2.class\n separator = '.';\n path = elementName.getFullyQualified().substring(elementName.getFullyQualified().indexOf('|') + 1);\n break;\n case Method:\n case Field:\n case Package:\n case Unknown:\n }\n\n if (path.indexOf(separator) > -1) {\n setFullyQualified(path\n .substring(0, path.lastIndexOf(separator)));\n\n setShortName(getFullyQualified().indexOf(separator) > -1\n ? getFullyQualified().substring(getFullyQualified().lastIndexOf(separator) + 1)\n : getFullyQualified());\n\n ParentPackage = CreateParentPackage();\n } else {\n // Class or file does not have a package, default to 'zero' package\n setFullyQualified(\"\");\n setShortName(\"\");\n }\n }", "ApiPackage getApiPackage();", "public void test_hk_04() {\n OntModel m = ModelFactory.createOntologyModel();\n m.getDocumentManager().addAltEntry(\n \"http://jena.hpl.hp.com/testing/ontology/relativenames\",\n \"file:testing/ontology/relativenames.rdf\");\n \n m.read(\"http://jena.hpl.hp.com/testing/ontology/relativenames\");\n assertTrue(\n \"#A should be a class\",\n m.getResource(\"http://jena.hpl.hp.com/testing/ontology/relativenames#A\").canAs(OntClass.class));\n assertFalse(\n \"file: #A should not be a class\",\n m.getResource(\"file:testing/ontology/relativenames.rdf#A\").canAs(OntClass.class));\n }", "public String getFullyQualifiedName() {\n\t\treturn this.getPackageName() + \".\" + this.getClassName();\n\t}", "@Value.Default default TypeInfo basePackageInfo() {\n return TypeInfo.of(packageId(), \"package-info\");\n }", "String getPackage() {\n return mPackage;\n }", "VmPackage getVmPackage();", "public String getPackageName() {\n return packageName.get();\n }", "public String getPackageInfomartion() {\n\t\treturn packageInfomartion;\n\t}", "@Override\n public String modelName() {\n Optional<? extends AnnotationMirror> mirror =\n Mirrors.findAnnotationMirror(element(), Entity.class);\n if (mirror.isPresent()) {\n return Mirrors.findAnnotationValue(mirror.get(), \"model\")\n .map(value -> value.getValue().toString())\n .filter(name -> !Names.isEmpty(name))\n .orElse(\"default\");\n }\n if (Mirrors.findAnnotationMirror(element(), javax.persistence.Entity.class).isPresent()) {\n Elements elements = processingEnvironment.getElementUtils();\n Name packageName = elements.getPackageOf(element()).getQualifiedName();\n String[] parts = packageName.toString().split(\"\\\\.\");\n return parts[parts.length - 1];\n } else {\n throw new IllegalStateException();\n }\n }", "public interface ModelsPackage extends EPackage\n{\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"models\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.fever.org/models\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"fever.models\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tModelsPackage eINSTANCE = models.impl.ModelsPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link models.impl.VariabilityModelImpl <em>Variability Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.VariabilityModelImpl\n\t * @see models.impl.ModelsPackageImpl#getVariabilityModel()\n\t * @generated\n\t */\n\tint VARIABILITY_MODEL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL__FEATURES = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Variability Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Variability Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.BuildModelImpl <em>Build Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.BuildModelImpl\n\t * @see models.impl.ModelsPackageImpl#getBuildModel()\n\t * @generated\n\t */\n\tint BUILD_MODEL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__FEATURES = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Symbols</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__SYMBOLS = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Build Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Build Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ImplementationModelImpl <em>Implementation Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ImplementationModelImpl\n\t * @see models.impl.ModelsPackageImpl#getImplementationModel()\n\t * @generated\n\t */\n\tint IMPLEMENTATION_MODEL = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Value Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__VALUE_FEATURES = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Constants</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__CONSTANTS = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Blocks</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__BLOCKS = 3;\n\n\t/**\n\t * The feature id for the '<em><b>File name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__FILE_NAME = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Chane</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__CHANE = 5;\n\n\t/**\n\t * The number of structural features of the '<em>Implementation Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL_FEATURE_COUNT = 6;\n\n\t/**\n\t * The number of operations of the '<em>Implementation Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.SPLImpl <em>SPL</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.SPLImpl\n\t * @see models.impl.ModelsPackageImpl#getSPL()\n\t * @generated\n\t */\n\tint SPL = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Revision</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__REVISION = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Variabilitymodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__VARIABILITYMODEL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Buildmodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__BUILDMODEL = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Implementationmodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__IMPLEMENTATIONMODEL = 3;\n\n\t/**\n\t * The number of structural features of the '<em>SPL</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>SPL</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.VariabilityModelEntityImpl <em>Variability Model Entity</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.VariabilityModelEntityImpl\n\t * @see models.impl.ModelsPackageImpl#getVariabilityModelEntity()\n\t * @generated\n\t */\n\tint VARIABILITY_MODEL_ENTITY = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__ID = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__FLAGS = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__TYPE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PROMPT = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__SELECTS = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__DEPENDS = 8;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__EXTERNAL = 9;\n\n\t/**\n\t * The number of structural features of the '<em>Variability Model Entity</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY_FEATURE_COUNT = 10;\n\n\t/**\n\t * The number of operations of the '<em>Variability Model Entity</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.FeatureImpl <em>Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.FeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getFeature()\n\t * @generated\n\t */\n\tint FEATURE = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__ID = VARIABILITY_MODEL_ENTITY__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__FLAGS = VARIABILITY_MODEL_ENTITY__FLAGS;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__TYPE = VARIABILITY_MODEL_ENTITY__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PROMPT = VARIABILITY_MODEL_ENTITY__PROMPT;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__DEFAULT_VALUES = VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__SELECTS = VARIABILITY_MODEL_ENTITY__SELECTS;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PROMPT_CONDITION = VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PRESENCE_CONDITION = VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__DEPENDS = VARIABILITY_MODEL_ENTITY__DEPENDS;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__EXTERNAL = VARIABILITY_MODEL_ENTITY__EXTERNAL;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__NAME = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_FEATURE_COUNT = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_OPERATION_COUNT = VARIABILITY_MODEL_ENTITY_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ChoiceImpl <em>Choice</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ChoiceImpl\n\t * @see models.impl.ModelsPackageImpl#getChoice()\n\t * @generated\n\t */\n\tint CHOICE = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__ID = VARIABILITY_MODEL_ENTITY__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__FLAGS = VARIABILITY_MODEL_ENTITY__FLAGS;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__TYPE = VARIABILITY_MODEL_ENTITY__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PROMPT = VARIABILITY_MODEL_ENTITY__PROMPT;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__DEFAULT_VALUES = VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__SELECTS = VARIABILITY_MODEL_ENTITY__SELECTS;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PROMPT_CONDITION = VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PRESENCE_CONDITION = VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__DEPENDS = VARIABILITY_MODEL_ENTITY__DEPENDS;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__EXTERNAL = VARIABILITY_MODEL_ENTITY__EXTERNAL;\n\n\t/**\n\t * The number of structural features of the '<em>Choice</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE_FEATURE_COUNT = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Choice</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE_OPERATION_COUNT = VARIABILITY_MODEL_ENTITY_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.DefaultValueImpl <em>Default Value</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.DefaultValueImpl\n\t * @see models.impl.ModelsPackageImpl#getDefaultValue()\n\t * @generated\n\t */\n\tint DEFAULT_VALUE = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__VALUE = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__CONDITION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Order</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__ORDER = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__ID = 3;\n\n\t/**\n\t * The number of structural features of the '<em>Default Value</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>Default Value</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.SelectImpl <em>Select</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.SelectImpl\n\t * @see models.impl.ModelsPackageImpl#getSelect()\n\t * @generated\n\t */\n\tint SELECT = 8;\n\n\t/**\n\t * The feature id for the '<em><b>Target</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__TARGET = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__CONDITION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__ID = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Select</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Select</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.MappedFeatureImpl <em>Mapped Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.MappedFeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getMappedFeature()\n\t * @generated\n\t */\n\tint MAPPED_FEATURE = 9;\n\n\t/**\n\t * The feature id for the '<em><b>Targets</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__TARGETS = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Feature Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__FEATURE_NAME = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__ID = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Mapped Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Mapped Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.CompilationTargetImpl <em>Compilation Target</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.CompilationTargetImpl\n\t * @see models.impl.ModelsPackageImpl#getCompilationTarget()\n\t * @generated\n\t */\n\tint COMPILATION_TARGET = 10;\n\n\t/**\n\t * The feature id for the '<em><b>Target Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__TARGET_NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Target Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__TARGET_TYPE = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__ID = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Mapped To Symbol</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__MAPPED_TO_SYMBOL = 3;\n\n\t/**\n\t * The number of structural features of the '<em>Compilation Target</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>Compilation Target</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.MakeSymbolImpl <em>Make Symbol</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.MakeSymbolImpl\n\t * @see models.impl.ModelsPackageImpl#getMakeSymbol()\n\t * @generated\n\t */\n\tint MAKE_SYMBOL = 11;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL__NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Targets</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL__TARGETS = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Make Symbol</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Make Symbol</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ReferencedValueFeatureImpl <em>Referenced Value Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ReferencedValueFeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getReferencedValueFeature()\n\t * @generated\n\t */\n\tint REFERENCED_VALUE_FEATURE = 12;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Referenced Value Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Referenced Value Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ConditionalBlockImpl <em>Conditional Block</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ConditionalBlockImpl\n\t * @see models.impl.ModelsPackageImpl#getConditionalBlock()\n\t * @generated\n\t */\n\tint CONDITIONAL_BLOCK = 13;\n\n\t/**\n\t * The feature id for the '<em><b>Start</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__START = 0;\n\n\t/**\n\t * The feature id for the '<em><b>End</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__END = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__CONDITION = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Value Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__VALUE_FEATURES = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Touched</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__TOUCHED = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Expression</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__EXPRESSION = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Lines</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__LINES = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Edited By</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__EDITED_BY = 7;\n\n\t/**\n\t * The number of structural features of the '<em>Conditional Block</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK_FEATURE_COUNT = 8;\n\n\t/**\n\t * The number of operations of the '<em>Conditional Block</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.FeatureConstantImpl <em>Feature Constant</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.FeatureConstantImpl\n\t * @see models.impl.ModelsPackageImpl#getFeatureConstant()\n\t * @generated\n\t */\n\tint FEATURE_CONSTANT = 14;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Feature Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Feature Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ImplementationLineImpl <em>Implementation Line</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ImplementationLineImpl\n\t * @see models.impl.ModelsPackageImpl#getImplementationLine()\n\t * @generated\n\t */\n\tint IMPLEMENTATION_LINE = 15;\n\n\t/**\n\t * The feature id for the '<em><b>Line</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE__LINE = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Implementation Line</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Implementation Line</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.CodeEditImpl <em>Code Edit</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.CodeEditImpl\n\t * @see models.impl.ModelsPackageImpl#getCodeEdit()\n\t * @generated\n\t */\n\tint CODE_EDIT = 16;\n\n\t/**\n\t * The feature id for the '<em><b>Rem idx</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__REM_IDX = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Add idx</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__ADD_IDX = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Rem size</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__REM_SIZE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Add size</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__ADD_SIZE = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Diff</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__DIFF = 4;\n\n\t/**\n\t * The number of structural features of the '<em>Code Edit</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT_FEATURE_COUNT = 5;\n\n\t/**\n\t * The number of operations of the '<em>Code Edit</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.VariabilityTypes <em>Variability Types</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.VariabilityTypes\n\t * @see models.impl.ModelsPackageImpl#getVariabilityTypes()\n\t * @generated\n\t */\n\tint VARIABILITY_TYPES = 17;\n\n\t/**\n\t * The meta object id for the '{@link models.CompilationTargetType <em>Compilation Target Type</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.CompilationTargetType\n\t * @see models.impl.ModelsPackageImpl#getCompilationTargetType()\n\t * @generated\n\t */\n\tint COMPILATION_TARGET_TYPE = 18;\n\n\t/**\n\t * The meta object id for the '{@link models.ChangeType <em>Change Type</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.ChangeType\n\t * @see models.impl.ModelsPackageImpl#getChangeType()\n\t * @generated\n\t */\n\tint CHANGE_TYPE = 19;\n\n\n\t/**\n\t * Returns the meta object for class '{@link models.VariabilityModel <em>Variability Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Variability Model</em>'.\n\t * @see models.VariabilityModel\n\t * @generated\n\t */\n\tEClass getVariabilityModel();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Spl</em>'.\n\t * @see models.VariabilityModel#getSpl()\n\t * @see #getVariabilityModel()\n\t * @generated\n\t */\n\tEReference getVariabilityModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModel#getFeatures <em>Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Features</em>'.\n\t * @see models.VariabilityModel#getFeatures()\n\t * @see #getVariabilityModel()\n\t * @generated\n\t */\n\tEReference getVariabilityModel_Features();\n\n\t/**\n\t * Returns the meta object for class '{@link models.BuildModel <em>Build Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Build Model</em>'.\n\t * @see models.BuildModel\n\t * @generated\n\t */\n\tEClass getBuildModel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.BuildModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Spl</em>'.\n\t * @see models.BuildModel#getSpl()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.BuildModel#getFeatures <em>Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Features</em>'.\n\t * @see models.BuildModel#getFeatures()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Features();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.BuildModel#getSymbols <em>Symbols</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Symbols</em>'.\n\t * @see models.BuildModel#getSymbols()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Symbols();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ImplementationModel <em>Implementation Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Implementation Model</em>'.\n\t * @see models.ImplementationModel\n\t * @generated\n\t */\n\tEClass getImplementationModel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.ImplementationModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Spl</em>'.\n\t * @see models.ImplementationModel#getSpl()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ImplementationModel#getValueFeatures <em>Value Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Value Features</em>'.\n\t * @see models.ImplementationModel#getValueFeatures()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_ValueFeatures();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ImplementationModel#getConstants <em>Constants</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Constants</em>'.\n\t * @see models.ImplementationModel#getConstants()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Constants();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.ImplementationModel#getBlocks <em>Blocks</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Blocks</em>'.\n\t * @see models.ImplementationModel#getBlocks()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Blocks();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationModel#getFile_name <em>File name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>File name</em>'.\n\t * @see models.ImplementationModel#getFile_name()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEAttribute getImplementationModel_File_name();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationModel#getChane <em>Chane</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Chane</em>'.\n\t * @see models.ImplementationModel#getChane()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEAttribute getImplementationModel_Chane();\n\n\t/**\n\t * Returns the meta object for class '{@link models.SPL <em>SPL</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>SPL</em>'.\n\t * @see models.SPL\n\t * @generated\n\t */\n\tEClass getSPL();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.SPL#getRevision <em>Revision</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Revision</em>'.\n\t * @see models.SPL#getRevision()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEAttribute getSPL_Revision();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getVariabilitymodel <em>Variabilitymodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Variabilitymodel</em>'.\n\t * @see models.SPL#getVariabilitymodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Variabilitymodel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getBuildmodel <em>Buildmodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Buildmodel</em>'.\n\t * @see models.SPL#getBuildmodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Buildmodel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getImplementationmodel <em>Implementationmodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Implementationmodel</em>'.\n\t * @see models.SPL#getImplementationmodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Implementationmodel();\n\n\t/**\n\t * Returns the meta object for class '{@link models.VariabilityModelEntity <em>Variability Model Entity</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Variability Model Entity</em>'.\n\t * @see models.VariabilityModelEntity\n\t * @generated\n\t */\n\tEClass getVariabilityModelEntity();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.VariabilityModelEntity#getId()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Id();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getFlags <em>Flags</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Flags</em>'.\n\t * @see models.VariabilityModelEntity#getFlags()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Flags();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getType <em>Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Type</em>'.\n\t * @see models.VariabilityModelEntity#getType()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Type();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPrompt <em>Prompt</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Prompt</em>'.\n\t * @see models.VariabilityModelEntity#getPrompt()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Prompt();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModelEntity#getDefaultValues <em>Default Values</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Default Values</em>'.\n\t * @see models.VariabilityModelEntity#getDefaultValues()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEReference getVariabilityModelEntity_DefaultValues();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModelEntity#getSelects <em>Selects</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Selects</em>'.\n\t * @see models.VariabilityModelEntity#getSelects()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEReference getVariabilityModelEntity_Selects();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPromptCondition <em>Prompt Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Prompt Condition</em>'.\n\t * @see models.VariabilityModelEntity#getPromptCondition()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_PromptCondition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPresenceCondition <em>Presence Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Presence Condition</em>'.\n\t * @see models.VariabilityModelEntity#getPresenceCondition()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_PresenceCondition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getDepends <em>Depends</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Depends</em>'.\n\t * @see models.VariabilityModelEntity#getDepends()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Depends();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#isExternal <em>External</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>External</em>'.\n\t * @see models.VariabilityModelEntity#isExternal()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_External();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Feature <em>Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Feature</em>'.\n\t * @see models.Feature\n\t * @generated\n\t */\n\tEClass getFeature();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Feature#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.Feature#getName()\n\t * @see #getFeature()\n\t * @generated\n\t */\n\tEAttribute getFeature_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Choice <em>Choice</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Choice</em>'.\n\t * @see models.Choice\n\t * @generated\n\t */\n\tEClass getChoice();\n\n\t/**\n\t * Returns the meta object for class '{@link models.DefaultValue <em>Default Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Default Value</em>'.\n\t * @see models.DefaultValue\n\t * @generated\n\t */\n\tEClass getDefaultValue();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getValue <em>Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Value</em>'.\n\t * @see models.DefaultValue#getValue()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Value();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.DefaultValue#getCondition()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Condition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getOrder <em>Order</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Order</em>'.\n\t * @see models.DefaultValue#getOrder()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Order();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.DefaultValue#getId()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Select <em>Select</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Select</em>'.\n\t * @see models.Select\n\t * @generated\n\t */\n\tEClass getSelect();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getTarget <em>Target</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target</em>'.\n\t * @see models.Select#getTarget()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Target();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.Select#getCondition()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Condition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.Select#getId()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.MappedFeature <em>Mapped Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Mapped Feature</em>'.\n\t * @see models.MappedFeature\n\t * @generated\n\t */\n\tEClass getMappedFeature();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.MappedFeature#getTargets <em>Targets</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Targets</em>'.\n\t * @see models.MappedFeature#getTargets()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEReference getMappedFeature_Targets();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MappedFeature#getFeatureName <em>Feature Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Feature Name</em>'.\n\t * @see models.MappedFeature#getFeatureName()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEAttribute getMappedFeature_FeatureName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MappedFeature#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.MappedFeature#getId()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEAttribute getMappedFeature_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.CompilationTarget <em>Compilation Target</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Compilation Target</em>'.\n\t * @see models.CompilationTarget\n\t * @generated\n\t */\n\tEClass getCompilationTarget();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getTargetName <em>Target Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target Name</em>'.\n\t * @see models.CompilationTarget#getTargetName()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_TargetName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getTargetType <em>Target Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target Type</em>'.\n\t * @see models.CompilationTarget#getTargetType()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_TargetType();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.CompilationTarget#getId()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_Id();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getMappedToSymbol <em>Mapped To Symbol</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Mapped To Symbol</em>'.\n\t * @see models.CompilationTarget#getMappedToSymbol()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_MappedToSymbol();\n\n\t/**\n\t * Returns the meta object for class '{@link models.MakeSymbol <em>Make Symbol</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Make Symbol</em>'.\n\t * @see models.MakeSymbol\n\t * @generated\n\t */\n\tEClass getMakeSymbol();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MakeSymbol#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.MakeSymbol#getName()\n\t * @see #getMakeSymbol()\n\t * @generated\n\t */\n\tEAttribute getMakeSymbol_Name();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.MakeSymbol#getTargets <em>Targets</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Targets</em>'.\n\t * @see models.MakeSymbol#getTargets()\n\t * @see #getMakeSymbol()\n\t * @generated\n\t */\n\tEReference getMakeSymbol_Targets();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ReferencedValueFeature <em>Referenced Value Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Referenced Value Feature</em>'.\n\t * @see models.ReferencedValueFeature\n\t * @generated\n\t */\n\tEClass getReferencedValueFeature();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ReferencedValueFeature#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.ReferencedValueFeature#getName()\n\t * @see #getReferencedValueFeature()\n\t * @generated\n\t */\n\tEAttribute getReferencedValueFeature_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ConditionalBlock <em>Conditional Block</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Conditional Block</em>'.\n\t * @see models.ConditionalBlock\n\t * @generated\n\t */\n\tEClass getConditionalBlock();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getStart <em>Start</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Start</em>'.\n\t * @see models.ConditionalBlock#getStart()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Start();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getEnd <em>End</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>End</em>'.\n\t * @see models.ConditionalBlock#getEnd()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_End();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.ConditionalBlock#getCondition()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Condition();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ConditionalBlock#getValueFeatures <em>Value Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Value Features</em>'.\n\t * @see models.ConditionalBlock#getValueFeatures()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_ValueFeatures();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#isTouched <em>Touched</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Touched</em>'.\n\t * @see models.ConditionalBlock#isTouched()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Touched();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getExpression <em>Expression</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Expression</em>'.\n\t * @see models.ConditionalBlock#getExpression()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Expression();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.ConditionalBlock#getLines <em>Lines</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Lines</em>'.\n\t * @see models.ConditionalBlock#getLines()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_Lines();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ConditionalBlock#getEditedBy <em>Edited By</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Edited By</em>'.\n\t * @see models.ConditionalBlock#getEditedBy()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_EditedBy();\n\n\t/**\n\t * Returns the meta object for class '{@link models.FeatureConstant <em>Feature Constant</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Feature Constant</em>'.\n\t * @see models.FeatureConstant\n\t * @generated\n\t */\n\tEClass getFeatureConstant();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.FeatureConstant#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.FeatureConstant#getName()\n\t * @see #getFeatureConstant()\n\t * @generated\n\t */\n\tEAttribute getFeatureConstant_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ImplementationLine <em>Implementation Line</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Implementation Line</em>'.\n\t * @see models.ImplementationLine\n\t * @generated\n\t */\n\tEClass getImplementationLine();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationLine#getLine <em>Line</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Line</em>'.\n\t * @see models.ImplementationLine#getLine()\n\t * @see #getImplementationLine()\n\t * @generated\n\t */\n\tEAttribute getImplementationLine_Line();\n\n\t/**\n\t * Returns the meta object for class '{@link models.CodeEdit <em>Code Edit</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Code Edit</em>'.\n\t * @see models.CodeEdit\n\t * @generated\n\t */\n\tEClass getCodeEdit();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getRem_idx <em>Rem idx</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Rem idx</em>'.\n\t * @see models.CodeEdit#getRem_idx()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Rem_idx();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getAdd_idx <em>Add idx</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Add idx</em>'.\n\t * @see models.CodeEdit#getAdd_idx()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Add_idx();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getRem_size <em>Rem size</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Rem size</em>'.\n\t * @see models.CodeEdit#getRem_size()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Rem_size();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getAdd_size <em>Add size</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Add size</em>'.\n\t * @see models.CodeEdit#getAdd_size()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Add_size();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getDiff <em>Diff</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Diff</em>'.\n\t * @see models.CodeEdit#getDiff()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Diff();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.VariabilityTypes <em>Variability Types</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Variability Types</em>'.\n\t * @see models.VariabilityTypes\n\t * @generated\n\t */\n\tEEnum getVariabilityTypes();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.CompilationTargetType <em>Compilation Target Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Compilation Target Type</em>'.\n\t * @see models.CompilationTargetType\n\t * @generated\n\t */\n\tEEnum getCompilationTargetType();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.ChangeType <em>Change Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Change Type</em>'.\n\t * @see models.ChangeType\n\t * @generated\n\t */\n\tEEnum getChangeType();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tModelsFactory getModelsFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals\n\t{\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.VariabilityModelImpl <em>Variability Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.VariabilityModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityModel()\n\t\t * @generated\n\t\t */\n\t\tEClass VARIABILITY_MODEL = eINSTANCE.getVariabilityModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL__SPL = eINSTANCE.getVariabilityModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL__FEATURES = eINSTANCE.getVariabilityModel_Features();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.BuildModelImpl <em>Build Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.BuildModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getBuildModel()\n\t\t * @generated\n\t\t */\n\t\tEClass BUILD_MODEL = eINSTANCE.getBuildModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__SPL = eINSTANCE.getBuildModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__FEATURES = eINSTANCE.getBuildModel_Features();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Symbols</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__SYMBOLS = eINSTANCE.getBuildModel_Symbols();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ImplementationModelImpl <em>Implementation Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ImplementationModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getImplementationModel()\n\t\t * @generated\n\t\t */\n\t\tEClass IMPLEMENTATION_MODEL = eINSTANCE.getImplementationModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__SPL = eINSTANCE.getImplementationModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__VALUE_FEATURES = eINSTANCE.getImplementationModel_ValueFeatures();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Constants</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__CONSTANTS = eINSTANCE.getImplementationModel_Constants();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Blocks</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__BLOCKS = eINSTANCE.getImplementationModel_Blocks();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>File name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_MODEL__FILE_NAME = eINSTANCE.getImplementationModel_File_name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Chane</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_MODEL__CHANE = eINSTANCE.getImplementationModel_Chane();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.SPLImpl <em>SPL</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.SPLImpl\n\t\t * @see models.impl.ModelsPackageImpl#getSPL()\n\t\t * @generated\n\t\t */\n\t\tEClass SPL = eINSTANCE.getSPL();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Revision</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SPL__REVISION = eINSTANCE.getSPL_Revision();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Variabilitymodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__VARIABILITYMODEL = eINSTANCE.getSPL_Variabilitymodel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Buildmodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__BUILDMODEL = eINSTANCE.getSPL_Buildmodel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Implementationmodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__IMPLEMENTATIONMODEL = eINSTANCE.getSPL_Implementationmodel();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.VariabilityModelEntityImpl <em>Variability Model Entity</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.VariabilityModelEntityImpl\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityModelEntity()\n\t\t * @generated\n\t\t */\n\t\tEClass VARIABILITY_MODEL_ENTITY = eINSTANCE.getVariabilityModelEntity();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__ID = eINSTANCE.getVariabilityModelEntity_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Flags</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__FLAGS = eINSTANCE.getVariabilityModelEntity_Flags();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Type</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__TYPE = eINSTANCE.getVariabilityModelEntity_Type();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Prompt</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PROMPT = eINSTANCE.getVariabilityModelEntity_Prompt();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Default Values</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES = eINSTANCE.getVariabilityModelEntity_DefaultValues();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Selects</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL_ENTITY__SELECTS = eINSTANCE.getVariabilityModelEntity_Selects();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Prompt Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION = eINSTANCE.getVariabilityModelEntity_PromptCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Presence Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION = eINSTANCE.getVariabilityModelEntity_PresenceCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Depends</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__DEPENDS = eINSTANCE.getVariabilityModelEntity_Depends();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>External</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__EXTERNAL = eINSTANCE.getVariabilityModelEntity_External();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.FeatureImpl <em>Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.FeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass FEATURE = eINSTANCE.getFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute FEATURE__NAME = eINSTANCE.getFeature_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ChoiceImpl <em>Choice</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ChoiceImpl\n\t\t * @see models.impl.ModelsPackageImpl#getChoice()\n\t\t * @generated\n\t\t */\n\t\tEClass CHOICE = eINSTANCE.getChoice();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.DefaultValueImpl <em>Default Value</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.DefaultValueImpl\n\t\t * @see models.impl.ModelsPackageImpl#getDefaultValue()\n\t\t * @generated\n\t\t */\n\t\tEClass DEFAULT_VALUE = eINSTANCE.getDefaultValue();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__VALUE = eINSTANCE.getDefaultValue_Value();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__CONDITION = eINSTANCE.getDefaultValue_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Order</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__ORDER = eINSTANCE.getDefaultValue_Order();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__ID = eINSTANCE.getDefaultValue_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.SelectImpl <em>Select</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.SelectImpl\n\t\t * @see models.impl.ModelsPackageImpl#getSelect()\n\t\t * @generated\n\t\t */\n\t\tEClass SELECT = eINSTANCE.getSelect();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__TARGET = eINSTANCE.getSelect_Target();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__CONDITION = eINSTANCE.getSelect_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__ID = eINSTANCE.getSelect_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.MappedFeatureImpl <em>Mapped Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.MappedFeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getMappedFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass MAPPED_FEATURE = eINSTANCE.getMappedFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Targets</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MAPPED_FEATURE__TARGETS = eINSTANCE.getMappedFeature_Targets();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Feature Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAPPED_FEATURE__FEATURE_NAME = eINSTANCE.getMappedFeature_FeatureName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAPPED_FEATURE__ID = eINSTANCE.getMappedFeature_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.CompilationTargetImpl <em>Compilation Target</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.CompilationTargetImpl\n\t\t * @see models.impl.ModelsPackageImpl#getCompilationTarget()\n\t\t * @generated\n\t\t */\n\t\tEClass COMPILATION_TARGET = eINSTANCE.getCompilationTarget();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__TARGET_NAME = eINSTANCE.getCompilationTarget_TargetName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target Type</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__TARGET_TYPE = eINSTANCE.getCompilationTarget_TargetType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__ID = eINSTANCE.getCompilationTarget_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Mapped To Symbol</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__MAPPED_TO_SYMBOL = eINSTANCE.getCompilationTarget_MappedToSymbol();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.MakeSymbolImpl <em>Make Symbol</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.MakeSymbolImpl\n\t\t * @see models.impl.ModelsPackageImpl#getMakeSymbol()\n\t\t * @generated\n\t\t */\n\t\tEClass MAKE_SYMBOL = eINSTANCE.getMakeSymbol();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAKE_SYMBOL__NAME = eINSTANCE.getMakeSymbol_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Targets</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MAKE_SYMBOL__TARGETS = eINSTANCE.getMakeSymbol_Targets();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ReferencedValueFeatureImpl <em>Referenced Value Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ReferencedValueFeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getReferencedValueFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass REFERENCED_VALUE_FEATURE = eINSTANCE.getReferencedValueFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute REFERENCED_VALUE_FEATURE__NAME = eINSTANCE.getReferencedValueFeature_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ConditionalBlockImpl <em>Conditional Block</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ConditionalBlockImpl\n\t\t * @see models.impl.ModelsPackageImpl#getConditionalBlock()\n\t\t * @generated\n\t\t */\n\t\tEClass CONDITIONAL_BLOCK = eINSTANCE.getConditionalBlock();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Start</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__START = eINSTANCE.getConditionalBlock_Start();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>End</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__END = eINSTANCE.getConditionalBlock_End();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__CONDITION = eINSTANCE.getConditionalBlock_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__VALUE_FEATURES = eINSTANCE.getConditionalBlock_ValueFeatures();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Touched</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__TOUCHED = eINSTANCE.getConditionalBlock_Touched();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Expression</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__EXPRESSION = eINSTANCE.getConditionalBlock_Expression();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Lines</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__LINES = eINSTANCE.getConditionalBlock_Lines();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Edited By</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__EDITED_BY = eINSTANCE.getConditionalBlock_EditedBy();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.FeatureConstantImpl <em>Feature Constant</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.FeatureConstantImpl\n\t\t * @see models.impl.ModelsPackageImpl#getFeatureConstant()\n\t\t * @generated\n\t\t */\n\t\tEClass FEATURE_CONSTANT = eINSTANCE.getFeatureConstant();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute FEATURE_CONSTANT__NAME = eINSTANCE.getFeatureConstant_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ImplementationLineImpl <em>Implementation Line</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ImplementationLineImpl\n\t\t * @see models.impl.ModelsPackageImpl#getImplementationLine()\n\t\t * @generated\n\t\t */\n\t\tEClass IMPLEMENTATION_LINE = eINSTANCE.getImplementationLine();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Line</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_LINE__LINE = eINSTANCE.getImplementationLine_Line();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.CodeEditImpl <em>Code Edit</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.CodeEditImpl\n\t\t * @see models.impl.ModelsPackageImpl#getCodeEdit()\n\t\t * @generated\n\t\t */\n\t\tEClass CODE_EDIT = eINSTANCE.getCodeEdit();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Rem idx</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__REM_IDX = eINSTANCE.getCodeEdit_Rem_idx();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Add idx</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__ADD_IDX = eINSTANCE.getCodeEdit_Add_idx();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Rem size</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__REM_SIZE = eINSTANCE.getCodeEdit_Rem_size();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Add size</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__ADD_SIZE = eINSTANCE.getCodeEdit_Add_size();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Diff</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__DIFF = eINSTANCE.getCodeEdit_Diff();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.VariabilityTypes <em>Variability Types</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.VariabilityTypes\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityTypes()\n\t\t * @generated\n\t\t */\n\t\tEEnum VARIABILITY_TYPES = eINSTANCE.getVariabilityTypes();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.CompilationTargetType <em>Compilation Target Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.CompilationTargetType\n\t\t * @see models.impl.ModelsPackageImpl#getCompilationTargetType()\n\t\t * @generated\n\t\t */\n\t\tEEnum COMPILATION_TARGET_TYPE = eINSTANCE.getCompilationTargetType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.ChangeType <em>Change Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.ChangeType\n\t\t * @see models.impl.ModelsPackageImpl#getChangeType()\n\t\t * @generated\n\t\t */\n\t\tEEnum CHANGE_TYPE = eINSTANCE.getChangeType();\n\n\t}\n\n}", "@Override\n public String getApiWrapperModuleName() {\n List<String> names = Splitter.on(\".\").splitToList(packageName);\n return names.get(0);\n }" ]
[ "0.7031049", "0.695959", "0.695959", "0.65178394", "0.646751", "0.6446317", "0.6441703", "0.6291467", "0.6276656", "0.62723476", "0.6249071", "0.6208726", "0.6159915", "0.61581445", "0.61125857", "0.6102958", "0.6065828", "0.60304534", "0.6029082", "0.6002041", "0.59961873", "0.5969615", "0.5963664", "0.59566474", "0.59544134", "0.5920945", "0.5918665", "0.591651", "0.5908649", "0.5907819", "0.59009665", "0.58796686", "0.5823441", "0.5813051", "0.57860595", "0.5782704", "0.5773867", "0.5744828", "0.57420796", "0.5738316", "0.5730199", "0.57275945", "0.5718144", "0.5717052", "0.5710747", "0.5685186", "0.56448305", "0.56296766", "0.5618421", "0.5610086", "0.55961275", "0.55931854", "0.55906516", "0.5581639", "0.5581586", "0.5571382", "0.5570971", "0.5564837", "0.55639696", "0.55426633", "0.55396336", "0.5534305", "0.55282146", "0.55183655", "0.55099666", "0.55076915", "0.54872924", "0.54751563", "0.5449414", "0.5448394", "0.54448134", "0.5443786", "0.543888", "0.5433021", "0.54304403", "0.54298174", "0.5429112", "0.5425606", "0.5422951", "0.54224855", "0.5422256", "0.5421806", "0.5420637", "0.5420513", "0.5417957", "0.5414739", "0.54123116", "0.54115826", "0.5399613", "0.53980255", "0.5397717", "0.5394879", "0.5393617", "0.5392238", "0.53916204", "0.53878963", "0.5384154", "0.5382832", "0.5381894", "0.53796226", "0.5379497" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { DaemonThreadIntro t1 = new DaemonThreadIntro(); DaemonThreadIntro t2 = new DaemonThreadIntro(); DaemonThreadIntro t3 = new DaemonThreadIntro(); // Note: If you want to make a user thread as Daemon, it must not be // started otherwise it will throw IllegalThreadStateException. t1.setDaemon(true); t1.start(); t2.start(); t3.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Set the current value
private void setConditionAndListener(ObjectProperty<ConditionViewModel> property) { setCondition(property.get()); // Update for new values property.addListener((observable, oldValue, newValue) -> setCondition(newValue)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValue(Object value) { this.value = value; }", "public void setValue(int new_value){\n this.value=new_value;\n }", "protected void assignCurrentValue() {\n\t\tcurrentValue = new Integer(counter + incrValue);\n\t}", "public void setValue (int newValue) {\n myValue = newValue;\n }", "void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}", "public void setValue(Value value) {\n this.value = value;\n }", "public void setCurrentValue(Integer currentValue) {\n this.currentValue = currentValue;\n }", "public void setCurrentValue(Integer currentValue) {\n this.currentValue = currentValue;\n }", "public void setValue(A value) {this.value = value; }", "void setValue(int value);", "public void setValue(final Object value) { _value = value; }", "public void setValue(int value) {\r\n this.value = value;\r\n }", "@Override\n public void setValue(Object val)\n {\n value = val;\n }", "public void setValue(double newvalue){\n value = newvalue;\n }", "public void setValue(int value);", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setValue(int value)\n {\n this.value = value;\n }", "public V setValue(V value);", "public void setValue(Object value) {\n this.value = value;\n }", "void setValue(V value);", "protected void setValue(T value) {\r\n this.value = value;\r\n }", "public void setValue(Integer value) {\n _value = value ;\n }", "public void setValue(int val)\r\n {\r\n value = val;\r\n }", "public void setValue(Object value);", "public void setValue(T value) {\n\t\tthis.value = value;\n\t}", "public void setValue(T value) {\n\t\tthis.value = value;\n\t}", "protected abstract void setValue(V value);", "public void setValue(T value) \n\t{\n\t\tthis.value = value;\n\t}", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(T value) {\n this.value = value;\n }", "public void setValue(Object val);", "public abstract void setValue(int value);", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value)\n {\n // we have assumed value 1 for X and 10 for O\n this.value = value;\n }", "private void setValue(double value) {\n this.value = value;\n }", "public void setValue(Object value)\r\n\t{\r\n\t\tm_value = value;\r\n\t}", "public void setValue(Object o){\n \tthis.value = o;\n }", "public void setValue(int newValue) {\t\r\n\t\tthis.value = newValue;\r\n\t}", "void setValue(Object value);", "public void setValue (V v) {\n value = v;\n }", "public void setValue(Number value) {\n this.value = value;\n }", "public void setCurrentValue(float currentValue) {\n this.currentValue = currentValue;\n }", "public void setValue(Object value)\r\n {\r\n m_value = value;\r\n }", "public void setValue(int value) {\n\t\tthis.value = value;\n\t}", "public void setValue(int value) {\n\t\tthis.value = value;\n\t}", "void setNextValue() {\n this.value = this.value * 2;\n }", "void setValue(T value);", "void setValue(T value);", "public void setValue(double newV) { // assuming REST API update at instantiation - must be a Set method to prevent access to a variable directly\n this.Value=newV;\n }", "public void setValue(Object value) {\n\t\tthis.value = value;\n\t\tsetValueAction(value);\n\t}", "@Override\r\n\tpublic void setCurrent(double iCurrent) {\n\r\n\t}", "public int setValue (int val);", "public void setCurrentValueOverride(int currentValue_) {\n\t\tthis.currentValue = currentValue_;\n\t}", "public void setValue(S s) { value = s; }", "private void setValueInternal(int current, boolean notifyChange) {\n\t\tif (mValue == current) {\n\t\t\treturn;\n\t\t}\n\t\t// Wrap around the values if we go past the start or end\n\t\tif (mWrapSelectorWheel) {\n\t\t\tcurrent = getWrappedSelectorIndex(current);\n\t\t} else {\n\t\t\tcurrent = Math.max(current, mMinValue);\n\t\t\tcurrent = Math.min(current, mMaxValue);\n\t\t}\n\t\t// int previous = mValue;\n\t\tmValue = current;\n\t\tupdateInputTextView();\n\t\tif (notifyChange) {\n\t\t\t// notifyChange(previous, current);\n\t\t}\n\t\tinitializeSelectorWheelIndices();\n\t\tinvalidate();\n\t}", "public void setValue(long value) {\n\t this.value = value;\n\t }", "public void setValue(final V value) {\n this.value = value;\n }", "public void setValue(int value) {\n\t\tthis._value = value;\n\t}", "public void setValue(V newValue) {\n this.value = newValue;\n }", "void setValue(double value);", "String setValue();", "public void setValue(double value) {\n this.value = value; \n }", "public abstract void setValue(T value);", "public void setData(T val) {\r\n\t\tthis.val = val;\r\n\t}", "void setCurrentAmount(double newAmount) {\n this.currentAmount = newAmount;\n }", "public void apply() { writable.setValue(value); }", "public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }", "public void setValue(Integer value) {\n\t\tthis.value = value;\n\t}", "public void setValue(int value) {\n m_value = value;\n }", "public static void currentValue()\n\t{\n\t\tcurrentVal.setText(String.valueOf(calculateHand(playersCards)));\n\t}", "void setToValue(int val);", "public void setValue(V newValue) {\r\n\t\tvalue = newValue;\r\n\t}", "public void setIntValue(int newValue){\n value = newValue; //set value to newValue\n }", "public void setValue(int value) {\n\t\tm_value = value;\n\t}", "public void setCurrentValue(int currentValue_) {\n\t\tif (currentValue_ > 0 && currentValue_ <= this.numSides) {\n\t\t\tthis.currentValue = currentValue_;\n\t\t} else {\n\t\t\tSystem.out.println(\"ERROR: New value must be greater than 1 and less than or equal the number of sides on the die.\");\n\t\t}\n\t}", "public void setCurrentValue(final int currentValue) throws DfException {\n\t\tfinal String value = String.valueOf(currentValue);\n\t\tobject.setString(CURRENT_VALUE, value);\n\t}", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public void setValue(T value) {\n/* 134 */ this.value = value;\n/* */ }", "protected void setValue0(T value) {\n\t\t// Preconditions\n\t\tif (value == null) {\n\t\t\tthrow new NullPointerException(\"Value cannot be null\");\n\t\t}\n\n\t\tthis.value = value;\n\t}", "public void setValue(int n) {\n\t\t\tthis.value = n;\n\t}", "public void setValue (double value) {\n\t\tthis.value = value;\n\t}", "public void set(int value){\n val = value;\n }", "public void setValue(double val) {\n this.val = val;\n }", "void set(long newValue);", "public void setValue (String Value);", "public void setValue(int value)\n {\n if(this.valueInt == value)\n {\n return;\n }\n this.valueInt = value;\n treeModel.nodeChanged(this.treeNode);\n }", "public void setValue(AXValue value) {\n this.value = value;\n }", "public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}", "private void setValue(int value) {\n final boolean changed = mValue != value;\n if (changed || !mValueSet) {\n mValue = value;\n mValueSet = true;\n persistInt(value);\n if (changed) {\n notifyChanged();\n }\n }\n }", "public void setCurrent(String value)\n {\n // Make a new StringBuilder. If we reuse the old one, and a user of\n // the library keeps a reference to the buffer returned (for example,\n // by converting it to a String in a way which doesn't force a copy),\n // the buffer size will not decrease, and we will risk wasting a large\n // amount of memory.\n // Thanks to Wolfram Esser for spotting this problem.\n current = new StringBuilder(value);\n\tinit();\n }", "public void setValue(Object value) {\n setValue(value.toString());\n }", "public void setCurrentRecord(Integer value) {\n this.currentRecord = value;\n }" ]
[ "0.75991654", "0.7560505", "0.75031286", "0.74248004", "0.7420408", "0.7379292", "0.73730904", "0.73730904", "0.7349658", "0.732752", "0.7325561", "0.73142135", "0.73030514", "0.7245265", "0.7199208", "0.7193227", "0.71920115", "0.7188265", "0.7181555", "0.7179957", "0.7172962", "0.7170764", "0.71667945", "0.7128231", "0.71265393", "0.71265393", "0.71225214", "0.71213627", "0.71120036", "0.7110674", "0.7110674", "0.70979303", "0.7096076", "0.70764375", "0.707571", "0.707571", "0.707571", "0.707571", "0.707571", "0.707499", "0.707499", "0.707499", "0.70713997", "0.7045313", "0.7043277", "0.7032586", "0.7029303", "0.699851", "0.69983137", "0.6975435", "0.6970452", "0.6962476", "0.69620776", "0.69620776", "0.6958361", "0.6953469", "0.6953469", "0.6950523", "0.69451714", "0.69400555", "0.6925357", "0.6907042", "0.69061095", "0.68957543", "0.6892138", "0.6891739", "0.6891256", "0.68885684", "0.6879568", "0.68772066", "0.68669724", "0.6865487", "0.6858739", "0.6841501", "0.6818222", "0.6815027", "0.6814705", "0.6812871", "0.68042016", "0.6803843", "0.67834765", "0.6782368", "0.6775536", "0.6775202", "0.6732018", "0.67188025", "0.6708773", "0.66728836", "0.6672859", "0.66585004", "0.6649577", "0.66387916", "0.66369814", "0.6629633", "0.6625596", "0.6600107", "0.65933514", "0.65831035", "0.65689546", "0.65658265", "0.6564251" ]
0.0
-1
Initializes an authorized Analytics Reporting service object.
private static Analyticsreporting initializeAnalyticsReporting() throws GeneralSecurityException, IOException { httpTransport = GoogleNetHttpTransport.newTrustedTransport(); dataStoreFactory = new FileDataStoreFactory(DATA_STORE_DIR); // Load client secrets. GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(HelloAnalytics.class .getResourceAsStream(CLIENT_SECRET_JSON_RESOURCE))); // Set up authorization code flow for all authorization scopes. GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow .Builder(httpTransport, JSON_FACTORY, clientSecrets, AnalyticsreportingScopes.all()).setDataStoreFactory(dataStoreFactory) .build(); // Authorize. Credential credential = new AuthorizationCodeInstalledApp(flow, new LocalServerReceiver()).authorize("user"); // Construct the Analytics Reporting service object. return new Analyticsreporting.Builder(httpTransport, JSON_FACTORY, credential) .setApplicationName(APPLICATION_NAME).build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ReportService() { }", "@Override\n protected void initAnalytics() {\n }", "public CommonPersonalReportServiceImpl() {\r\n }", "public void initialize() {\n\t\tDLog(\"ANEAnalyticsExtension initialize\");\n\t}", "public UnityAnalytics() {}", "public AdminAnalytics()\n {\n \tinstructorDB = new InstructorDB();\n \tallScores = new ArrayList<Integer>();\n this.overallAnalytics = new HashMap<String, ArrayList<Integer>>();\n this.individualAnalytics = new ArrayList<AnalyticsRow>(30);\n \n this.overallAnalytics.put(\"Average\", new ArrayList<Integer>(1));\n this.overallAnalytics.put(\"Median\", new ArrayList<Integer>(1));\n this.overallAnalytics.put(\"Mode\", new ArrayList<Integer>());\n this.overallAnalytics.put(\"Standard Deviation\", new ArrayList<Integer>(1));\n }", "public SavingsAccount() {\n\t}", "@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t\tGoogleAnalytics.getInstance(MyAccountActivity.this)\r\n\t\t\t\t.reportActivityStart(MyAccountActivity.this);\r\n\r\n\t}", "public UploadReportIntentService() {\n super(TAG);\n }", "public AccountDataAccess() {\r\n\t\tlogger = Logger.getLogger(getClass());\r\n\t}", "public GoogleAnalyticsTracker(Tracker tracker) {\n this.tracker = tracker;\n }", "public void init() {\n\t\tM_log.info(\"initialization...\");\n\t\t\n\t\t// register as an entity producer\n\t\tm_entityManager.registerEntityProducer(this, SakaiGCalendarServiceStaticVariables.REFERENCE_ROOT);\n\t\t\n\t\t// register functions\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW_ALL);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_EDIT);\n\t\t\n \t\t//Setup cache. This will create a cache using the default configuration used in the memory service.\n \t\tcache = memoryService.newCache(CACHE_NAME);\n\t}", "Analytics_Engine createAnalytics_Engine();", "private void initGATracker() {\n\t\t/* get analytics singleton */\n\t\ttracker = GoogleAnalyticsTracker.getInstance();\n\n\t\t/* start tracker. Dispatch every 30 seconds. */\n\t\ttracker.startNewSession(\"UA-20341887-1\", 30, getApplicationContext());\n\t\t\n /* debug GA */\n tracker.setDebug(false);\n tracker.setDryRun(false);\n \n // Determine the screen orientation and set it in a custom variable.\n String orientation = \"unknown\";\n switch (this.getResources().getConfiguration().orientation) {\n case Configuration.ORIENTATION_LANDSCAPE:\n orientation = \"landscape\";\n break;\n case Configuration.ORIENTATION_PORTRAIT:\n orientation = \"portrait\";\n break;\n }\n tracker.setCustomVar(3, \"Screen Orientation\", orientation, 2);\n\t}", "@Override\n public void onStart() {\n super.onStart();\n GoogleAnalytics.getInstance(this).reportActivityStart(this);\n }", "public SSTBrexitDashboardService() {\n\t\tuserTeamDataService = new UserTeamDBDataService();\n\t\tindexDashboardService = new IndexDBDataService();\n\t}", "public SavingsAccount() {\n super();\n }", "private ServiceDomains() {\n }", "@Override\n\tpublic BaseService<Object> getService() {\n\t\treturn analyticsService;\n\t}", "public Slf4jLogService() {\n this(System.getProperties());\n }", "public AdsManager()\n\t{\n\t\t\n\t}", "public GoogleAuthenticatorAccount() {\n }", "protected static void initialize(boolean telemetryEnabled) {\n if (!TelemetryClient.isTelemetryClientLoaded) {\n synchronized (TelemetryClient.LOCK) {\n if (!TelemetryClient.isTelemetryClientLoaded) {\n TelemetryClient.isTelemetryClientLoaded = true;\n TelemetryClient.instance = new TelemetryClient(telemetryEnabled);\n }\n }\n }\n }", "public ArAgingDetailReportDAO () {}", "private static ServiceAccount getInstanceByEnvVars() {\n Map<String, String> env = System.getenv();\n String gaasUrl = env.get(GAAS_URL);\n String gaasApiKey = env.get(GAAS_API_KEY);\n if (gaasUrl == null || gaasApiKey == null) {\n return null;\n }\n logger.info(\"A ServiceAccount is created from environment variables: GAAS_URL=\"\n + gaasUrl + \", GAAS_API_KEY=***\");\n return getInstance(gaasUrl, gaasApiKey);\n }", "public TrafficService() {\n\t\tLog.i(TAG, \"service started\");\n\t}", "public static ReportService getInstance()\n {\n return reportService;\n }", "public RecordService() {\n super(\"RecordService\");\n }", "public GoogleApiA() {}", "private void initialize() {\n\t\tservice = KCSClient.getInstance(this.getApplicationContext(), new KinveySettings(APP_KEY, APP_SECRET));\n\n BaseKinveyDataSource.setKinveyClient(service);\n }", "public void instantiation() {\n TokenCredential tokenCredential = new DefaultAzureCredentialBuilder().build();\n\n // BEGIN: com.azure.monitor.query.MetricsQueryClient.instantiation\n MetricsQueryClient metricsQueryClient = new MetricsQueryClientBuilder()\n .credential(tokenCredential)\n .buildClient();\n // END: com.azure.monitor.query.MetricsQueryClient.instantiation\n\n // BEGIN: com.azure.monitor.query.MetricsQueryAsyncClient.instantiation\n MetricsQueryAsyncClient metricsQueryAsyncClient = new MetricsQueryClientBuilder()\n .credential(tokenCredential)\n .buildAsyncClient();\n // END: com.azure.monitor.query.MetricsQueryAsyncClient.instantiation\n }", "private AuthenticationService() {}", "@Override\r\n\tprotected void init() {\r\n\t\tsuper.init();\r\n\t\tauthorize();\r\n\t\tgetDebugSettings().setOutputComponentPath(true);\r\n\t\tgetDebugSettings().setAjaxDebugModeEnabled(false);\r\n\t\t// enable logger\r\n\t\tApplication.get().getRequestLoggerSettings()\r\n\t\t\t\t.setRequestLoggerEnabled(true);\r\n\r\n\t\t// mount pages\r\n\t\tmountPages();\r\n\r\n\t\ttry {\r\n\t\t\tnew com.aspose.cells.License().setLicense(getClass()\r\n\t\t\t\t\t.getClassLoader().getResourceAsStream(\r\n\t\t\t\t\t\t\t\"Aspose.Total.Java.lic\"));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// logger.error(\"Aspose load error.\", e);\r\n\t\t}\r\n\r\n\t}", "public GoogleanalyticsFactoryImpl() {\n\t\tsuper();\n\t}", "public Reports() {\n initComponents();\n }", "public Reports() {\n initComponents();\n }", "public Reports() {\n initComponents();\n }", "protected void initialize() {\n this.locals = Common.calculateSegmentSize(Common.NUM_CORES);\n this.drvrs = Common.calculateSegmentSize(Common.NUM_CORES);\n reports = new ArrayList<>();\n }", "public AppsFlyerTracker() {}", "public EmailService() {\n }", "public InitService() {\n super(\"InitService\");\n }", "public void initialize() throws Exception{\r\n\t\tfor (Constraint c:constraints){\r\n\t\t\tconstraintMap.put(c.getModel(), c);\r\n\t\t}\r\n\t\tservices.add(this);\r\n\t\t//System.out.println(\"constraints=\"+constraintMap);\r\n\t\tif (LightStr.isEmpty(dsId)){\r\n\t\t\tif (BeanFactory.getBeanFactory().getDataService(\"default\")==null) dsId=\"default\"; else dsId=LightUtil.getHashCode();\r\n\t\t}\r\n\t\tBeanFactory.getBeanFactory().addDataService(dsId, this);\r\n\t}", "public LogAnalyzer()\n { \n // Create the array object to hold the hourly\n // access counts.\n hourCounts = new int[24];\n // Create the reader to obtain the data.\n reader = new LogfileReader();\n }", "public DefaultValidationReport()\r\n {\r\n factory = new DefaultReportFactory();\r\n }", "public void initApiService() {\n apiService = ApiUtils.getAPIService();\n }", "public Service(int id)\r\n {\r\n this.id = id;\r\n \r\n logger = new Logger(this);\r\n }", "public DeviceReportExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private GeneralServicesImpl() {\r\n\t}", "public FormFieldsReport() {}", "public static void initialize() {\n Security.addProvider(new OAuth2Provider());\n }", "@Override // javax.inject.Provider\n public Analytics get() {\n return (Analytics) Preconditions.checkNotNullFromComponent(this.a.analytics());\n }", "public GTLServiceTicket() {}", "private void initService() {\r\n\t}", "public GoogleApiRecord() {\n super(GoogleApi.GOOGLE_API);\n }", "private void init()\n {\n SystrayActivator.bundleContext\n .addServiceListener(new ProtocolProviderServiceListener());\n \n ServiceReference[] protocolProviderRefs = null;\n try\n {\n protocolProviderRefs\n = SystrayActivator.bundleContext.getServiceReferences(\n ProtocolProviderService.class.getName(),null);\n }\n catch (InvalidSyntaxException ex)\n {\n // this shouldn't happen since we're providing no parameter string\n // but let's log just in case.\n logger .error(\"Error while retrieving service refs\", ex);\n return;\n }\n \n // in case we found any\n if (protocolProviderRefs != null)\n {\n \n for (int i = 0; i < protocolProviderRefs.length; i++)\n {\n ProtocolProviderService provider\n = (ProtocolProviderService) SystrayActivator.bundleContext\n .getService(protocolProviderRefs[i]);\n \n this.addAccount(provider);\n }\n }\n }", "public SessionService() {\n user = new User();\n project = new Project();\n project.setId(-1);\n project.setName(\"не выбран\");\n logged = false;\n textUpdated = false;\n }", "@Override\n public void init(Object data)\n {\n // Rely on injection\n if (schedulerService == null)\n {\n log.error(\"You can not use the SchedulerTool unless you enable \"\n +\"the Scheduler Service!!!!\");\n }\n }", "public ProfileService() {\n \t\tthis(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE);\n \t\tinitializeCache(DEFAULT_CACHE_SIZE);\n \t}", "private void initialize()\n {\n if (null!=cc)\n {\n throw new RuntimeException(\"CorpusServiceI has been initialized already\");\n }\n dataDir = mAdapter.getCommunicator().getProperties().getProperty(\"CVAC.DataDir\");\n logger.log(Level.FINE, \"CorpusService found CVAC.DataDir={0}\", dataDir);\n logger.setLevel(Level.FINEST);\n CorpusI.rootDataDir = dataDir;\n cc = new CorpusConfig();\n corpToImp = new HashMap<String, CorpusI>();\n logger.log(Level.INFO, \"CorpusService initialized\" );\n }", "public void service_INIT(){\n }", "public Ads() {\n }", "public ContactsService() {\r\n }", "void init() {\n CometUtils.printCometSdkVersion();\n validateInitialParams();\n this.connection = ConnectionInitializer.initConnection(\n this.apiKey, this.baseUrl, this.maxAuthRetries, this.getLogger());\n this.restApiClient = new RestApiClient(this.connection);\n // mark as initialized\n this.alive = true;\n }", "public void initialize(AccessServiceConfig accessServiceConfigurationProperties,\n OMRSTopicConnector enterpriseOMRSTopicConnector,\n OMRSRepositoryConnector enterpriseOMRSRepositoryConnector,\n AuditLog auditLog,\n String serverUserName) throws OMAGConfigurationErrorException {\n final String actionDescription = \"initialize\";\n\n auditLog.logMessage(actionDescription, GovernanceEngineAuditCode.SERVICE_INITIALIZING.getMessageDefinition());\n\n this.auditLog = auditLog;\n\n try {\n List<String> supportedZones = this.extractSupportedZones(\n accessServiceConfigurationProperties.getAccessServiceOptions(),\n accessServiceConfigurationProperties.getAccessServiceName(),\n auditLog);\n\n this.instance = new GovernanceEngineServicesInstance(enterpriseOMRSRepositoryConnector,\n supportedZones,\n auditLog,\n serverUserName,\n enterpriseOMRSRepositoryConnector.getMaxPageSize());\n this.serverName = instance.getServerName();\n\n /*\n * Only set up the listening and event publishing if requested in the config.\n */\n OpenMetadataTopicConnector outTopicConnector = null;\n\n if (accessServiceConfigurationProperties.getAccessServiceOutTopic() != null) {\n outTopicConnector = super.getOutTopicEventBusConnector(accessServiceConfigurationProperties.getAccessServiceOutTopic(),\n AccessServiceDescription.GOVERNANCE_ENGINE_OMAS.getAccessServiceFullName(),\n auditLog);\n }\n\n\n if (accessServiceConfigurationProperties.getAccessServiceOutTopic() != null) {\n GovernanceEngineOMRSTopicListener omrsTopicListener =\n new GovernanceEngineOMRSTopicListener(outTopicConnector,\n enterpriseOMRSRepositoryConnector.getRepositoryHelper(),\n enterpriseOMRSRepositoryConnector.getRepositoryValidator(),\n accessServiceConfigurationProperties.getAccessServiceName(),\n serverName,\n serverUserName,\n supportedZones,\n auditLog);\n super.registerWithEnterpriseTopic(accessServiceConfigurationProperties.getAccessServiceName(),\n serverName,\n enterpriseOMRSTopicConnector,\n omrsTopicListener,\n auditLog);\n }\n\n auditLog.logMessage(actionDescription, GovernanceEngineAuditCode.SERVICE_INITIALIZED.getMessageDefinition());\n } catch (OMAGConfigurationErrorException error) {\n throw error;\n } catch (Throwable error) {\n auditLog.logException(actionDescription,\n GovernanceEngineAuditCode.SERVICE_INSTANCE_FAILURE.getMessageDefinition(error.getMessage()),\n error);\n\n super.throwUnexpectedInitializationException(actionDescription,\n AccessServiceDescription.GOVERNANCE_ENGINE_OMAS.getAccessServiceFullName(),\n error);\n }\n }", "public ServicioLogger() {\n }", "public static void init() {\n\n\t\tsnapshot = new SnapshotService();\n\t\tlog.info(\"App init...\");\n\t}", "public TelaPrincipalADM() {\n initComponents();\n }", "public Report() {\r\n }", "private GoogleIntegration() {\n }", "@PostConstruct\n\tpublic void init() {\n\t\ttoolsClient = galaxyApiService.getGalaxyInstance().getToolsClient();\n\t}", "@Override\r\n\tpublic void initialize(URL location, ResourceBundle resources) {\r\n\t\tacainstance=this;\r\n\t\tchat.accept(new Message(66, null));\r\n\t\tchat.accept(new Message(67, null));\r\n\t\tchat.accept(new Message(75, null));\r\n\t\t\tReport.add(\"Comments Report for Marketing Campaign\");\r\n\t\t\tReport.add(\"Customer Periodic Characterization Report\");\r\n\t\t\tReportList.addAll(Report);\r\n\t\t\tcomboReportType.setItems(ReportList);\r\n\t}", "public Principal() {\r\n\t\tinitialize();\r\n\t}", "protected GrpcAnalyticsAdminServiceStub(\n AnalyticsAdminServiceStubSettings settings, ClientContext clientContext) throws IOException {\n this(settings, clientContext, new GrpcAnalyticsAdminServiceCallableFactory());\n }", "@Override\n protected void onStart(){\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestEmail()\n .build();\n\n // Build a GoogleSignInClient with the options specified by gso.\n mGoogleSignInClient = GoogleSignIn.getClient(this, gso);\n super.onStart();\n }", "public TycoAgent() {\n\n\t\t// Initialize the Gmail, clear its emails via initialize(), initialize\n\t\t// the whole map with the init message, then initialize the new map,\n\t\t// dummy databse, auth users, and auth threads\n\t\tjciEmail = GmailAuthorize.getGmailService();\n\t\t// initialize();\n\t\trecentMailMap = new HashMap<String, Mail>();\n\n\t}", "public DocumentServiceImpl() {\n this.store = new AuthenticationTokenStore();\n }", "private void initService() {\n\t\tavCommentService = new AvCommentService(getApplicationContext());\n\t}", "private ReportRepository() {\n ConnectionBD BD = ConnectionBD.GetInstance();\n this.con = BD.GetConnection();\n this.itemInfoFactory = ItemInfoFactory.GetInstance();\n }", "private AuthService() {\n configureAccessTokens();\n configure();\n ConfigurationWatcher.registerListener(this, JOSSO_GATEWAY_CONFIGURATION.getAbsolutePath());\n ConfigurationWatcher.registerListener(this, FOUNDATION_CONFIGURATION.getAbsolutePath());\n log.debug(\"AuthService listening for changes to \" + JOSSO_GATEWAY_CONFIGURATION + \" and \" + FOUNDATION_CONFIGURATION);\n }", "public SysAdminAccounts()\n {\n this.setBaseURI(RequestProperties.TRACK_BASE_URI());\n this.setPageName(PAGE_SYSADMIN_ACCOUNTS);\n this.setPageNavigation(new String[] { PAGE_LOGIN, PAGE_MENU_TOP });\n this.setLoginRequired(true);\n //this.setCssDirectory(\"extra/css\");\n }", "private static GetReportsResponse getReport(Analyticsreporting service) throws IOException {\n // Create the DateRange object.\n DateRange dateRange = new DateRange();\n dateRange.setStartDate(\"7DaysAgo\");\n dateRange.setEndDate(\"today\");\n\n // Create the Metrics object.\n Metric sessions = new Metric()\n .setExpression(\"ga:sessions\")\n .setAlias(\"sessions\");\n\n //Create the Dimensions object.\n Dimension browser = new Dimension()\n .setName(\"ga:browser\");\n\n // Create the ReportRequest object.\n ReportRequest request = new ReportRequest()\n .setViewId(VIEW_ID)\n .setDateRanges(Arrays.asList(dateRange))\n .setDimensions(Arrays.asList(browser))\n .setMetrics(Arrays.asList(sessions));\n\n ArrayList<ReportRequest> requests = new ArrayList<ReportRequest>();\n requests.add(request);\n\n // Create the GetReportsRequest object.\n GetReportsRequest getReport = new GetReportsRequest()\n .setReportRequests(requests);\n\n // Call the batchGet method.\n GetReportsResponse response = service.reports().batchGet(getReport).execute();\n\n // Return the response.\n return response;\n }", "private void init() {\n AdvertisingRequest();// 广告列表请求线程\n setapiNoticeControllerList();\n }", "@Autowired\n public ExternalAccountServiceImpl(AccountService accountService) {\n this.accountService = accountService;\n }", "public void startTracking() {\n if (mTracker == null) {\n GoogleAnalytics googleAnalytics = GoogleAnalytics.getInstance(this);\n // Get tracker\n mTracker = googleAnalytics.newTracker(R.xml.track_config);\n // Enable tracking of Activities\n googleAnalytics.enableAutoActivityReports(this);\n googleAnalytics.getLogger().setLogLevel(Logger.LogLevel.VERBOSE);\n }\n }", "@PostConstruct\r\n\tpublic void init() {\r\n\t\tLOGGER.info(\":: En postconsruct EAPI \");\r\n\t\t// reportId = 2;\r\n\t\t// tcReporte = reportesRepository.findOne(reportId);\r\n\t\tjasperReporteName = \"EAPI\";\r\n\t\tendFilename = jasperReporteName + \".pdf\";\r\n\t}", "public SalesReportView() {\n initComponents();\n }", "public ReviewerStatisticsManagerImpl() {\n this(DEFAULT_NAMESPACE);\n }", "public AuthStorageSession() { \n }", "public AdmissionsBean() {\n }", "public EmailDailyReportOfZA() {\n\t}", "private static Tracer initTracer(final String service) {\n\n // The sampler always makes the same decision for all traces. It samples all traces. If the parameter were\n // zero, it would sample no traces.\n final SamplerConfiguration samplerConfiguration = SamplerConfiguration.fromEnv().withType(ConstSampler.TYPE)\n .withParam(new Integer(1));\n // The reporter configuration species what is reported. In this case,\n final ReporterConfiguration reporterConfiguration = ReporterConfiguration.fromEnv().withLogSpans(Boolean.TRUE);\n\n // The configuration encapsulates the configuration for sampling and reporting.\n final Configuration configuration = new Configuration(service).withSampler(samplerConfiguration)\n .withReporter(reporterConfiguration);\n\n // Create the tracer from the configuration.\n return configuration.getTracer();\n }", "@Override\n\tprotected void initAsService() {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"Initiating service...\");\n\t\t}\n\t\trunnerFuture = activityRunner.schedule(this::scanModulesHealth, 500, TimeUnit.MILLISECONDS);\n\t}", "public AuthService() {\n//\t\tthis.dao = new UsuarioDAO();\n//\t\tthis.repository = repository;\n\t}", "protected IViewerReportService getReportService( )\n \t{\n \t\treturn BirtReportServiceFactory.getReportService( );\n \t}", "public ServiceClient() {\n\t\tsuper();\n\t}", "static StreamingAnalyticsService of(JsonObject config) throws IOException {\n JsonObject service = VcapServices.getVCAPService(config);\n \n JsonObject credentials = service.get(\"credentials\").getAsJsonObject();\n StreamingAnalyticsServiceVersion version = StreamsRestUtils.getStreamingAnalyticsServiceVersion(credentials);\n switch (version) {\n case V1:\n return new StreamingAnalyticsServiceV1(service);\n case V2:\n return new StreamingAnalyticsServiceV2(service);\n default:\n throw new IllegalStateException(\"Unknown Streaming Analytics Service version\");\n }\n }", "public ProfileService() {\n\t\tthis(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE);\n\t}", "private void initService() {\n \tlog_d( \"initService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) return;\n // Initialize the BluetoothChatService to perform bluetooth connections\n if ( mBluetoothService == null ) {\n log_d( \"new BluetoothService\" );\n \t\tmBluetoothService = new BluetoothService( mContext );\n\t }\n\t\tif ( mBluetoothService != null ) {\n log_d( \"set Handler\" );\n \t\tmBluetoothService.setHandler( sendHandler );\n\t }\t\t\n }", "public Prof_Report() {\r\n initComponents();\r\n }", "@PostConstruct\n public void init() {\n oAuthProviders.registerProvider(this);\n }" ]
[ "0.6432411", "0.6412017", "0.6072301", "0.57406354", "0.5614828", "0.55830336", "0.55645293", "0.5534987", "0.5524249", "0.5519181", "0.54736984", "0.5458791", "0.5451434", "0.54360753", "0.54282856", "0.53832734", "0.53774154", "0.5376999", "0.5311944", "0.53109974", "0.5265218", "0.52557546", "0.523143", "0.523088", "0.5219283", "0.52062356", "0.5197455", "0.5196727", "0.51944363", "0.5191145", "0.5181215", "0.51475424", "0.51473707", "0.5138645", "0.5120907", "0.5120907", "0.5120907", "0.5117276", "0.5115534", "0.51137644", "0.51100266", "0.5102472", "0.5098907", "0.5097652", "0.50932086", "0.50879496", "0.5084409", "0.5073565", "0.50715315", "0.5069952", "0.50639117", "0.5059914", "0.50579137", "0.5047762", "0.5036279", "0.5034116", "0.5026907", "0.5026657", "0.5013076", "0.50130284", "0.50105274", "0.5006722", "0.5005248", "0.49994808", "0.49983543", "0.4990909", "0.49886268", "0.49868104", "0.49796703", "0.4974228", "0.49741802", "0.49732965", "0.4966329", "0.49649966", "0.49545622", "0.49512592", "0.49467745", "0.49462077", "0.49444136", "0.4937866", "0.49366024", "0.49347383", "0.49275187", "0.49260092", "0.4920237", "0.49183616", "0.49174833", "0.49172336", "0.49160084", "0.49131513", "0.49122855", "0.491161", "0.49081108", "0.49029827", "0.49024704", "0.49012437", "0.48981938", "0.48944455", "0.4893293", "0.48929116" ]
0.77873814
0
Query the Analytics Reporting API V4. Constructs a request for the sessions for the past seven days. Returns the API response.
private static GetReportsResponse getReport(Analyticsreporting service) throws IOException { // Create the DateRange object. DateRange dateRange = new DateRange(); dateRange.setStartDate("7DaysAgo"); dateRange.setEndDate("today"); // Create the Metrics object. Metric sessions = new Metric() .setExpression("ga:sessions") .setAlias("sessions"); //Create the Dimensions object. Dimension browser = new Dimension() .setName("ga:browser"); // Create the ReportRequest object. ReportRequest request = new ReportRequest() .setViewId(VIEW_ID) .setDateRanges(Arrays.asList(dateRange)) .setDimensions(Arrays.asList(browser)) .setMetrics(Arrays.asList(sessions)); ArrayList<ReportRequest> requests = new ArrayList<ReportRequest>(); requests.add(request); // Create the GetReportsRequest object. GetReportsRequest getReport = new GetReportsRequest() .setReportRequests(requests); // Call the batchGet method. GetReportsResponse response = service.reports().batchGet(getReport).execute(); // Return the response. return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GET(\"sdk/v5/sessions\")\n Call<SessionResponse> getSession(@Header(\"Authorization\") String Authorization);", "ScheduleTasks getScheduledHarvestingSessions(String dsID) throws RepoxException;", "@RequestMapping(value = \"/getTodayReport\", method = RequestMethod.GET)\r\n public @ResponseBody String getDayWiseReport() {\r\n logger.info(\"in ReportGenerationController getDayWiseReport()\");\r\n\r\n String reportDetails = reportGenerationService.getTodayReport();\r\n\r\n return reportDetails;\r\n }", "@GET(\"reporting/subscription\")\n Call<PageResourceBillingReport> getSubscriptionReports(\n @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page\n );", "@GetMapping(\"/charts-current-patients-vo-for-group-session/{id}\")\n @Timed\n public List<ChartVO> getAllChartsCurrentPatientsVOForGroupSession(@PathVariable Long id) {\n log.debug(\"REST request to get all ChartsVO By Facility\");\n ZonedDateTime now = ZonedDateTime.now();\n return chartService.findAllByFacilityWaitingRoomFalseAndDischargeDateVOForGroupSession(id, now);\n }", "@Override\n\t\tprotected Void doInBackground(Void... params) {\n\t\t\tSessionManager session = new SessionManager(getBaseContext());\n\t\t\tString user = session.GetUserIdFromSharedPreferences();\n\n\t\t\taJSONObject = new JSONObject();\n\n\t\t\tRestAPI api = new RestAPI();\n\n\t\t\ttry {\n\t\t\t\taJSONObject = api.ReportinDateRange(user, dateFrom, dateTo);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}", "private void getReport() {\n\t\tdialog = ProgressDialog.show(this, \"\", \" Please wait...\", true);\n dialog.setCancelable(true);\n\t\tSharedPreferences pref = this.getSharedPreferences(\"User\", Activity.MODE_PRIVATE);\n\t\tString accessToken = pref.getString(\"access_token\", null);\n\t\tNetworkEngine.getInstance().getSeatReport(accessToken, bus_id, agent_id, new Callback<List<SeatReport>>() {\n\t\t\t\n\t\t\tpublic void success(List<SeatReport> arg0, Response arg1) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tseatReports = new ArrayList<SeatReport>();\n\t\t\t\tseatReports = arg0;\n\t\t\t\tlvSeatDetails.setAdapter(new SeatDetailsbyAgentAdapter(SeatDetailsbyAgentActivity.this, seatReports));\n\t\t\t\tdialog.cancel();\n\t\t\t}\n\t\t\t\n\t\t\tpublic void failure(RetrofitError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.cancel();\n\t\t\t\tLog.i(\"\",\"Hello Error Response Code: \"+arg0.getResponse().getStatus());\n\t\t\t}\n\t\t});\n\t}", "@GetMapping(\"currentUser\")\n public BetterResponse getUserLastSevenLoginLogs() {\n String currentUsername = SecurityContextHolder.getContext().getAuthentication().getName();\n List<LoginLog> userLastSevenLoginLogs = this.loginLogService.findUserLastSevenLoginLogs(currentUsername);\n return new BetterResponse().data(userLastSevenLoginLogs);\n }", "@Test\n public void getReportTest() throws Exception {\n httpclient = HttpClients.createDefault();\n //set up user\n deleteUsers();\n String userId = createTestUser();\n //created user\n CloseableHttpResponse response = createProject(\"projectname\", userId);\n String projectid = getIdFromResponse(response);//getIdFromResponse hasn't been implimented in this part\n response.close();\n //created project\n response = createSession(userId, projectid, \"2019-02-18T20:00Z\", \"2019-02-18T20:30Z\", \"1\");\n response.close();\n response = createSession(userId, projectid, \"2019-02-18T21:00Z\", \"2019-02-18T21:30Z\", \"1\");\n response.close();\n\n try {\n //case 1\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", false, false);\n \n int status = response.getStatusLine().getStatusCode();\n HttpEntity entity;\n String strResponse;\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n String expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}]}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //case 2\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, false);\n \n status = response.getStatusLine().getStatusCode();\n\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}],\\\"completedPomodoros\\\":2}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //case 3\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", false, true);\n \n status = response.getStatusLine().getStatusCode();\n\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}],\\\"totalHoursWorkedOnProject\\\":1.00}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //case 4\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, true);\n \n status = response.getStatusLine().getStatusCode();\n\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}],\\\"completedPomodoros\\\":2,\\\"totalHoursWorkedOnProject\\\":1.00}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n\n //test status 400\n response = createReport(userId, projectid, \"invalid\", \"invalid\", true, true);\n status = response.getStatusLine().getStatusCode();\n if(status != 400){\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //test status 404\n response = createReport(userId + \"1\", projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, true);\n status = response.getStatusLine().getStatusCode();\n if(status != 404){\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n EntityUtils.consume(response.getEntity());\n response.close();\n\n response = createReport(userId, projectid + \"1\", \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, true);\n status = response.getStatusLine().getStatusCode();\n if(status != 404){\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n EntityUtils.consume(response.getEntity());\n response.close();\n\n } finally {\n httpclient.close();\n }\n }", "public Result getStudyReportV4(String identifier, String startTimeString, String endTimeString, String offsetKey,\n String pageSizeString) {\n UserSession session = getAuthenticatedSession();\n \n DateTime startTime = getDateTimeOrDefault(startTimeString, null);\n DateTime endTime = getDateTimeOrDefault(endTimeString, null);\n int pageSize = getIntOrDefault(pageSizeString, BridgeConstants.API_DEFAULT_PAGE_SIZE);\n \n ForwardCursorPagedResourceList<ReportData> results = reportService\n .getStudyReportV4(session.getStudyIdentifier(), identifier, startTime, endTime, offsetKey, pageSize);\n \n return okResult(results);\n }", "private ReportRequest getAdGroupReport(Calendar from, Calendar to) {\r\n\t\tAdGroupPerformanceReportRequest request = new AdGroupPerformanceReportRequest();\r\n\t\trequest.setFormat(ReportFormat.CSV);\r\n\t\trequest.setReportName(\"Ad Group Report\");\r\n\t\trequest.setAggregation(ReportAggregation.HOURLY);\r\n\t\trequest.setReturnOnlyCompleteData(false);\r\n\r\n\t\tAccountThroughAdGroupReportScope scope = new AccountThroughAdGroupReportScope();\r\n\t\tArrayOflong accountIds = new ArrayOflong();\r\n\t\taccountIds.getLongs().add(authorizationData.getAccountId());\r\n\t\tscope.setAccountIds(accountIds);\r\n\t\tscope.setCampaigns(null);\r\n\t\tscope.setAdGroups(null); \r\n\t\trequest.setScope(scope);\r\n\r\n\t\tArrayOfAdGroupPerformanceReportColumn value = new ArrayOfAdGroupPerformanceReportColumn();\r\n\t\tList<AdGroupPerformanceReportColumn> columns = value.getAdGroupPerformanceReportColumns();\r\n\t\tString adFields = adsProperties.getProperty(\"api.bing.adGroupPerformanceReport.fields\");\r\n\t\tif (adFields != null && adFields.length() > 2) {\r\n\t\t\tfor (String fieldId : adFields.split(\",\")) {\r\n\t\t\t\tcolumns.add(AdGroupPerformanceReportColumn.fromValue(fieldId));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tcolumns.add(AdGroupPerformanceReportColumn.AD_GROUP_ID);\r\n\t\t\tcolumns.add(AdGroupPerformanceReportColumn.AD_GROUP_NAME);\r\n\t\t\tcolumns.add(AdGroupPerformanceReportColumn.CAMPAIGN_ID);\r\n\t\t\tcolumns.add(AdGroupPerformanceReportColumn.CAMPAIGN_NAME);\r\n\t\t\tcolumns.add(AdGroupPerformanceReportColumn.TIME_PERIOD);\r\n\t\t\tcolumns.add(AdGroupPerformanceReportColumn.CLICKS);\r\n\t\t\tcolumns.add(AdGroupPerformanceReportColumn.COST_PER_CONVERSION);\r\n\t\t\tcolumns.add(AdGroupPerformanceReportColumn.SPEND);\r\n\t\t\tcolumns.add(AdGroupPerformanceReportColumn.CONVERSION_RATE);\r\n\t\t\tcolumns.add(AdGroupPerformanceReportColumn.IMPRESSIONS);\r\n\t\t}\r\n\t\trequest.setColumns(value);\r\n\r\n\t\tReportTime reportTime = new ReportTime();\r\n\t\tDate start = new Date();\r\n\t\tDate end = new Date();\r\n\t\tstart.setDay(from.get(Calendar.DAY_OF_MONTH));\r\n\t\tstart.setMonth(from.get(Calendar.MONTH)+1);\r\n\t\tstart.setYear(from.get(Calendar.YEAR));\r\n\t\tend.setDay(to.get(Calendar.DAY_OF_MONTH));\r\n\t\tend.setMonth(to.get(Calendar.MONTH)+1);\r\n\t\tend.setYear(to.get(Calendar.YEAR));\r\n\t\treportTime.setCustomDateRangeStart(start);\r\n\t\treportTime.setCustomDateRangeEnd(end);\r\n\t\trequest.setTime(reportTime);\r\n\r\n\t\treturn request;\r\n\t}", "private void getWeekCalorieData(String accessToken, boolean getGoal) {\r\n ArrayList<String> taskParamsList = new ArrayList<>();\r\n taskParamsList.add(accessToken);\r\n\r\n Calendar startDate = getFirstMondayInWeek(endDate);\r\n\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(getString(R.string.fitbit_date_format));\r\n String formattedStartDate = dateFormat.format(startDate.getTime());\r\n String formattedEndDate = dateFormat.format(endDate.getTime());\r\n\r\n taskParamsList.add(\"https://api.fitbit.com/1/user/-/activities/calories/date/\" +\r\n formattedStartDate + \"/\" + formattedEndDate + \".json\");\r\n\r\n if(getGoal) {\r\n taskParamsList.add(\"https://api.fitbit.com/1/user/-/activities/date/\" +\r\n formattedEndDate + \".json\");\r\n }\r\n\r\n String[] taskParams = new String[taskParamsList.size()];\r\n taskParams = taskParamsList.toArray(taskParams);\r\n\r\n updateRequestCount(taskParams.length - 1);\r\n\r\n new FitbitGetRequestTask(this).execute(taskParams);\r\n }", "private void getDayNonSedTimeData(String accessToken) {\r\n String[] taskParams = new String[2];\r\n taskParams[0] = accessToken;\r\n\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(getString(R.string.fitbit_date_format));\r\n String formattedEndDate = dateFormat.format(endDate.getTime());\r\n\r\n taskParams[1] = \"https://api.fitbit.com/1/user/-/activities/steps/date/\"\r\n + formattedEndDate + \"/1d/15min.json\";\r\n\r\n updateRequestCount(taskParams.length - 1);\r\n\r\n new FitbitGetRequestTask(this).execute(taskParams);\r\n }", "public SPResponse getEngagementMatrix(User user, Object[] param) {\n \n final SPResponse response = new SPResponse();\n \n String startDateStr = (String) param[0];\n String endDateStr = (String) param[1];\n \n Set<String> allGroups = new HashSet<>();\n Set<String> allTags = new HashSet<>();\n LocalDate startDate = !StringUtils.isBlank(startDateStr) ? DateTimeUtil\n .getLocalDate(startDateStr) : LocalDate.now().minusMonths(3);\n LocalDate endDate = !StringUtils.isBlank(endDateStr) ? DateTimeUtil.getLocalDate(endDateStr)\n : LocalDate.now();\n List<UserActivityTracking> userActivity = trackingRepository.findUserActivityTracking(\n user.getCompanyId(), startDate, endDate);\n \n List<UserActivityTrackingDTO> collect = userActivity.stream().map(ua -> {\n User activityUser = userFactory.getUser(ua.getUserId());\n if (activityUser != null && !activityUser.isDeactivated()) {\n \n UserActivityTrackingDTO trackingDTO = new UserActivityTrackingDTO(activityUser, ua);\n trackingDTO.setGender(activityUser.getGender());\n List<String> groups = activityUser.getGroupAssociationList().stream().map(grp -> {\n String name = grp.getName();\n allGroups.add(name);\n return name;\n }).collect(Collectors.toList());\n trackingDTO.setGroups(groups);\n if (activityUser.getTagList() != null) {\n trackingDTO.setTags(activityUser.getTagList());\n allTags.addAll(activityUser.getTagList());\n }\n LocalDate dob = activityUser.getDob();\n LocalDate currentDate = LocalDate.now();\n if (dob != null) {\n int age = (int) dob.until(currentDate, ChronoUnit.YEARS);\n trackingDTO.setAge(age);\n }\n return trackingDTO;\n } else {\n return null;\n }\n \n }).filter(Objects::nonNull).collect(Collectors.toList());\n \n LocalDate localDate = LocalDate.now();\n \n List<TopPracticeTracking> findTopPracticeArea = trackingRepository.findTopPracticeAreaFromDate(\n user.getCompanyId(), localDate.minusMonths(12));\n \n List<TopPracticeAreaDTO> topDto = findTopPracticeArea.stream().map(top -> {\n \n TopPracticeAreaDTO areaDTO = new TopPracticeAreaDTO(top);\n top.getPracticeAreas().stream().forEach(prId -> {\n SPGoal goal = goalFactory.getGoal(prId, user.getUserLocale());\n PracticeAreaDetailsDTO baseGoalDto = new PracticeAreaDetailsDTO(goal);\n areaDTO.getPracticeAreasGoals().add(baseGoalDto);\n });\n return areaDTO;\n }).collect(Collectors.toList());\n \n SpectrumFilter spectrumFilter = new SpectrumFilter();\n spectrumFilter.getFilters().put(Constants.PARAM_GROUPS, allGroups);\n spectrumFilter.getFilters().put(Constants.PARAM_TAGS, allTags);\n spectrumFilter.getFilters().put(Constants.PARAM_AGE, AgeCategory.values());\n \n response.add(\"engagmentMatrixData\", collect);\n response.add(\"startDate\", startDate);\n response.add(\"endDate\", endDate);\n response.add(\"filter\", spectrumFilter);\n response.add(\"topPraticeArea\", topDto);\n \n return response;\n }", "private ReportRequest getAdReport(Calendar from, Calendar to) {\r\n\t\tAdPerformanceReportRequest request = new AdPerformanceReportRequest();\r\n\t\trequest.setFormat(ReportFormat.CSV);\r\n\t\trequest.setReportName(\"Ad Report\");\r\n\t\trequest.setAggregation(NonHourlyReportAggregation.DAILY);\r\n\t\trequest.setReturnOnlyCompleteData(false);\r\n\r\n\t\tAccountThroughAdGroupReportScope scope = new AccountThroughAdGroupReportScope();\r\n\t\tArrayOflong accountIds = new ArrayOflong();\r\n\t\taccountIds.getLongs().add(authorizationData.getAccountId());\r\n\t\tscope.setAccountIds(accountIds);\r\n\t\tscope.setCampaigns(null);\r\n\t\tscope.setAdGroups(null); \r\n\t\trequest.setScope(scope);\r\n\r\n\t\tArrayOfAdPerformanceReportColumn value = new ArrayOfAdPerformanceReportColumn();\r\n\t\tList<AdPerformanceReportColumn> columns = value.getAdPerformanceReportColumns();\r\n\t\tString adFields = adsProperties.getProperty(\"api.bing.adPerformanceReport.fields\");\r\n\t\tif (adFields != null && adFields.length() > 2) {\r\n\t\t\tfor (String fieldId : adFields.split(\",\")) {\r\n\t\t\t\tcolumns.add(AdPerformanceReportColumn.fromValue(fieldId));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_ID);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_TITLE);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.TITLE_PART_1);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.TITLE_PART_2);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_DESCRIPTION);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_GROUP_ID);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_GROUP_NAME);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_GROUP_STATUS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_STATUS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CAMPAIGN_ID);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CAMPAIGN_NAME);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CLICKS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.COST_PER_CONVERSION);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.SPEND);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CONVERSION_RATE);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.IMPRESSIONS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.DESTINATION_URL);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.FINAL_URL);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.DISPLAY_URL);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.TIME_PERIOD);\r\n\t\t}\r\n\t\trequest.setColumns(value);\r\n\r\n\t\tReportTime reportTime = new ReportTime();\r\n\t\tDate start = new Date();\r\n\t\tDate end = new Date();\r\n\t\tstart.setDay(from.get(Calendar.DAY_OF_MONTH));\r\n\t\tstart.setMonth(from.get(Calendar.MONTH)+1);\r\n\t\tstart.setYear(from.get(Calendar.YEAR));\r\n\t\tend.setDay(to.get(Calendar.DAY_OF_MONTH));\r\n\t\tend.setMonth(to.get(Calendar.MONTH)+1);\r\n\t\tend.setYear(to.get(Calendar.YEAR));\r\n\t\treportTime.setCustomDateRangeStart(start);\r\n\t\treportTime.setCustomDateRangeEnd(end);\r\n\t\trequest.setTime(reportTime);\r\n\r\n\t\treturn request;\r\n\t}", "private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}", "@Path(\"{userId}/sessions\")\n\tpublic SessionsResource sessions(@PathParam(Const.USER_ID) String userId) {\n\t\ttry {\n\t\t\treturn new SessionsResource(appId, userId);\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tLog.error(\"\", this, \"sessions\", \"Illegal Arguments.\", e); \n\t\t\tthrow new WebApplicationException(Response.status(Status.BAD_REQUEST).entity(\"Parse error\").build());\n\t\t}\n\t}", "public String report() {\r\n\t\tsession2 = ServletActionContext.getRequest().getSession();\r\n\t\tlogger.info(session2);\r\n\t\tif (session2 == null || session2.getAttribute(\"login\") == null) {\r\n\t\t\tlogger.error(\"if=====session error reporting===='\");\r\n\t\t\treturn LOGIN;\r\n\t\t} else {\r\n\t\t\tfactory = LoginAndSession.getFactory();\r\n\t\t\tdao_userWise = (Productivity_user_wiseDao) factory.getBean(\"d27\");\r\n\t\t\tdao_propwise = (Productivity_property_wiseDao) factory.getBean(\"d29\");\r\n\t\t\tpcw = (Productivity_client_wiseDao) factory.getBean(\"d30\");\r\n\t\t\tif (colorRadio.equalsIgnoreCase(\"red\")) {\r\n\r\n\t\t\t\t// for all user\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlst = dao_userWise\r\n\t\t\t\t\t\t\t.viewRecord(\"select puw.curr_date, puw.source_link, puw.infringing_link, puw.youtube,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.social_media, puw.white_list, puw.grey_list, puw.duplicate , mu.name\"\r\n\t\t\t\t\t\t\t\t\t+ \" , puw.facebook, puw.instagram, puw.twitter, puw.vk, puw.periscope, puw.source_domain,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.infringing_domain , puw.user_id \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_user_wise puw, Markscan_users mu where puw.curr_date \"\r\n\t\t\t\t\t\t\t\t\t+ \" between '\" + date + \"' and '\" + date1 + \"' and mu.id= puw.user_id\");\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tcud = (Crawle_url2Dao) factory.getBean(\"dash\");\r\n\r\n\t\t\t\t\t// lst1= cud.viewRecord(\"select DISTINCT count(domain_name)\r\n\t\t\t\t\t// ,date(created_on), link_logger from crawle_url3 where\r\n\t\t\t\t\t// user_id= 75 and created_on >'2017-06-01' and\r\n\t\t\t\t\t// link_logger=1 group by date(created_on)\")\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\t\t\t\t\t\tdata.setDuplicate((Integer) obj[7]);\r\n\t\t\t\t\t\tdata.setProj_name(obj[8].toString()); // user_name\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[11]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[13]);\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[14]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[15]);\r\n\t\t\t\t\t\tdata.setUser_id((Integer) obj[16]);\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT cm.client_name , mp.name , cm.id from Productivity_property_wise ppw, \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Project_info pi, Client_master cm, Markscan_projecttype mp where \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" ppw.project_id= pi.id and \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" pi.client_type= cm.id and pi.project_type = mp.id and ppw.user_id =\"\r\n\t\t\t\t\t\t\t\t\t\t+ (Integer) obj[16] + \" and \" + \" ppw.created_on = '\" + obj[0].toString()\r\n\t\t\t\t\t\t\t\t\t\t+ \"'\");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\"select sum( productivi0_.source_count), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.facebook), sum(productivi0_.instagram), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.twitter),sum(productivi0_.vk), sum(productivi0_.periscope) \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_property_wise productivi0_, Project_info project_in1_ \"\r\n\t\t\t\t\t\t\t\t\t+ \" where project_in1_.id=productivi0_.project_id and \" + \" productivi0_.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ (Integer) obj[16] + \" and \" + \" productivi0_.created_on='\" + obj[0].toString()\r\n\t\t\t\t\t\t\t\t\t+ \"' and \" + \"project_in1_.client_type=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// System.out.println(client_names);\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\t\tdata=null;\r\n\t\t\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally{\r\n\t\t\t\t\tobj0=null;\r\n\t\t\t\t\tcraw=null;\r\n\t\t\t\t\tobj1=null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\t\t\tlst = null;\r\n\t\t\t\t\t\t\tfactory=null;\r\n\t\t\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"allEmpReport\";\r\n\t\t\t} else if (colorRadio.equalsIgnoreCase(\"green\")) {\r\n\t\t\t\t// for single user\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlst = dao_userWise\r\n\t\t\t\t\t\t\t.viewRecord(\"select puw.curr_date, puw.source_link, puw.infringing_link, puw.youtube, \"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.social_media, puw.white_list, puw.grey_list, puw.duplicate , puw.facebook,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.instagram, puw.twitter, puw.vk, puw.periscope, puw.source_domain, \"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.infringing_domain from \" + \" Productivity_user_wise puw where puw.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ usertype + \" and puw.curr_date between\" + \" '\" + date + \"' and '\" + date1 + \"'\");\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\t\t\t\t\t\tdata.setDuplicate((Integer) obj[7]);\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[8]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[11]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[13]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[14]);\r\n\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT cm.client_name , mp.name , cm.id from Productivity_property_wise ppw, \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Project_info pi, Client_master cm, Markscan_projecttype mp where \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" ppw.project_id= pi.id and \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" pi.client_type= cm.id and pi.project_type = mp.id and ppw.user_id =\"\r\n\t\t\t\t\t\t\t\t\t\t+ usertype + \" and \" + \" ppw.created_on = '\" + obj[0].toString() + \"'\");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\"select sum( productivi0_.source_count), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.facebook), sum(productivi0_.instagram), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.twitter),sum(productivi0_.vk), sum(productivi0_.periscope) \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_property_wise productivi0_, Project_info project_in1_ \"\r\n\t\t\t\t\t\t\t\t\t+ \" where project_in1_.id=productivi0_.project_id and \" + \" productivi0_.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ usertype + \" and \" + \" productivi0_.created_on='\" + obj[0].toString() + \"' and \"\r\n\t\t\t\t\t\t\t\t\t+ \"project_in1_.client_type=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0=null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\tdata= null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally\r\n\t\t\t\t{\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\tcraw= null;\r\n\t\t\t\t\tfactory=null;\r\n\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"empReport\";\r\n\t\t\t} else if (colorRadio.equalsIgnoreCase(\"blue\")) {\r\n\t\t\t\t// for client wise\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tlst = pcw.viewRecord(\"select pcw.curr_date, pcw.source_link, pcw.infringing_link, pcw.youtube,\"\r\n\t\t\t\t\t\t\t+ \" pcw.social_media, pcw.white_list, pcw.grey_list , pcw.facebook, pcw.instagram, pcw.twitter,\"\r\n\t\t\t\t\t\t\t+ \" pcw.vk, pcw.periscope, pcw.source_domain, pcw.infringing_domain from Productivity_client_wise \"\r\n\t\t\t\t\t\t\t+ \" pcw where pcw.curr_date between '\" + date + \"' and '\" + date1 + \"' and pcw.client_id=\"\r\n\t\t\t\t\t\t\t+ clientname);\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[7]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[8]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[11]);\r\n\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[7] + (Integer) obj[8] + (Integer) obj[9] + (Integer) obj[10]\r\n\t\t\t\t\t\t\t\t+ (Integer) obj[11]);\r\n\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[13]);\r\n\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT mu.name, ppw.created_on ,ppw.user_id from Productivity_property_wise ppw ,\"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Markscan_users mu where mu.id= ppw.user_id and ppw.client_id = \"\r\n\t\t\t\t\t\t\t\t\t\t+ clientname + \" and ppw.created_on='\" + obj[0].toString() + \"' \");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\" select sum( productivi0_.source_count),\"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.facebook),sum(productivi0_.instagram),sum(productivi0_.twitter) \"\r\n\t\t\t\t\t\t\t\t\t+ \" ,sum(productivi0_.vk),sum( productivi0_.periscope) from \"\r\n\t\t\t\t\t\t\t\t\t+ \" Productivity_property_wise productivi0_, Markscan_users markscan_u1_ where \"\r\n\t\t\t\t\t\t\t\t\t+ \" markscan_u1_.id=productivi0_.user_id and productivi0_.client_id= \" + clientname\r\n\t\t\t\t\t\t\t\t\t+ \" and productivi0_.created_on='\" + obj[0].toString() + \"' and \"\r\n\t\t\t\t\t\t\t\t\t+ \" productivi0_.user_id=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0=null;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tobj= null;\r\n\t\t\t\t\t\tdata= null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpcw = null;\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally{\r\n\t\t\t\t\tpcw = null;\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\tobj=null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\tcraw=null;\r\n\t\t\t\t\tfactory=null;\r\n\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"clientReport\";\r\n\t\t\t}\r\n\r\n\t\t\tfactory=null;\r\n\t\t\tdao_userWise=null;\r\n\t\t\tdao_propwise=null;\r\n\t\t\tsession2=null;\r\n\t\t\tSystem.gc();\r\n\t\t\treturn SUCCESS;\r\n\t\t}\r\n\t}", "@GET(\"projects/session/{session_id}\")\n Call<ResponseBody> getAllProjects(@Path(\"session_id\") int id);", "private static void printResponse(GetReportsResponse response) {\n\n for (Report report: response.getReports()) {\n ColumnHeader header = report.getColumnHeader();\n List<String> dimensionHeaders = header.getDimensions();\n List<MetricHeaderEntry> metricHeaders = header.getMetricHeader().getMetricHeaderEntries();\n List<ReportRow> rows = report.getData().getRows();\n\n if (rows == null) {\n System.out.println(\"No data found for \" + VIEW_ID);\n return;\n }\n\n for (ReportRow row: rows) {\n List<String> dimensions = row.getDimensions();\n List<DateRangeValues> metrics = row.getMetrics();\n for (int i = 0; i < dimensionHeaders.size() && i < dimensions.size(); i++) {\n System.out.println(dimensionHeaders.get(i) + \": \" + dimensions.get(i));\n }\n\n for (int j = 0; j < metrics.size(); j++) {\n System.out.print(\"Date Range (\" + j + \"): \");\n DateRangeValues values = metrics.get(j);\n for (int k = 0; k < values.getValues().size() && k < metricHeaders.size(); k++) {\n System.out.println(metricHeaders.get(k).getName() + \": \" + values.getValues().get(k));\n }\n }\n }\n }\n }", "@GET\n @Path(\"/graphs/{project_id}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getLatestGraphsByExpedition(@PathParam(\"project_id\") Integer project_id,\n @QueryParam(\"access_token\") String accessToken) {\n String username;\n\n // if accessToken != null, then OAuth client is accessing on behalf of a user\n if (accessToken != null) {\n provider p = new provider();\n username = p.validateToken(accessToken);\n p.close();\n } else {\n HttpSession session = request.getSession();\n username = (String) session.getAttribute(\"user\");\n }\n projectMinter project= new projectMinter();\n\n String response = project.getLatestGraphs(project_id, username);\n project.close();\n\n return Response.ok(response).header(\"Access-Control-Allow-Origin\", \"*\").build();\n }", "@SuppressWarnings(\"unchecked\")\n\t\t\t@GetMapping(\"view-my-dashboard-test-report-name\")\n\t\t\tpublic @ResponseBody JsonResponse<PatientDashboardModel> dashboardTestReportn(HttpSession session) {\n\n\t\t\t\tlogger.info(\"Method : dashboardTestReportn starts\");\n\t\t\t\t\n\t\t\t\tJsonResponse<PatientDashboardModel> response = new JsonResponse<PatientDashboardModel>();\n\t\t\t\tString userId = \"\";\n\t\t\t\ttry {\n\n\t\t\t\t\tuserId = (String) session.getAttribute(\"USER_ID\");\n\n\t\t\t\t\tresponse = restTemplate.getForObject(env.getUserUrl() + \"dashboardTestReportn?id=\" + userId,\n\t\t\t\t\t\t\tJsonResponse.class);\n\t\t\t\t} catch (\n\n\t\t\t\tRestClientException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\n\t\t\t\tPatientDashboardModel customer = mapper.convertValue(response.getBody(),\n\t\t\t\t\t\tnew TypeReference<PatientDashboardModel>() {\n\t\t\t\t\t\t});\n\t\t\t\n\t\t\t\t\n\t\t\t\tresponse.setBody(customer);\n\t\t\t\tif (response.getMessage() != null && response.getMessage() != \"\") {\n\t\t\t\t\tresponse.setCode(response.getMessage());\n\t\t\t\t\tresponse.setMessage(\"Unsuccess\");\n\n\t\t\t\t} else {\n\t\t\t\t\tresponse.setMessage(\"Success\");\n\t\t\t\t}\n\t\t\t\tlogger.info(\"Method : dashboardTestReportn ends\");\n\t\t\t\treturn response;\n\t\t\t}", "@RequestMapping(value = \"/getDailyReportGraphOfIndividual\", method = RequestMethod.POST)\r\n public @ResponseBody String getDailyReportOfIndividual(@RequestParam(\"employeeId\") int employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getDailyReportOfIndividual()\");\r\n\r\n return reportGenerationService.getDailyReportOfIndividual(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "@GET\n @Produces(XML)\n public Response getLatestStorageReport(){\n log.debug(\"Getting the latest storage report\");\n\n try {\n InputStream stream = resource.getLatestStorageReport();\n if(null != stream) {\n return responseOkXmlStream(stream);\n } else {\n return responseNotFound();\n }\n } catch (Exception e) {\n return responseBad(e);\n }\n }", "public List<SurveyPullResponse> getUserCompletedSurvey(int batchSize,Application passport);", "RunningTasks getActiveHarvestingSessions() throws RepoxException;", "ResourceCollection<SubscriptionDailyUsageRecord> get();", "private void getDataFromApi() throws IOException {\n DateTime now = new DateTime(System.currentTimeMillis());\n Events events = mService.events().list(\"primary\")\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n List<Event> items = events.getItems();\n ScheduledEvents scheduledEvents;\n EventsList.clear();\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n start = event.getStart().getDate();\n }\n DateTime end = event.getEnd().getDateTime();\n if (end == null) {\n end = event.getStart().getDate();\n }\n scheduledEvents = new ScheduledEvents();\n scheduledEvents.setEventId(event.getId());\n scheduledEvents.setDescription(event.getDescription());\n scheduledEvents.setEventSummery(event.getSummary());\n scheduledEvents.setLocation(event.getLocation());\n scheduledEvents.setStartDate(dateTimeToString(start));\n scheduledEvents.setEndDate(dateTimeToString(end));\n StringBuffer stringBuffer = new StringBuffer();\n if(event.getAttendees()!=null) {\n for (EventAttendee eventAttendee : event.getAttendees()) {\n if(eventAttendee.getEmail()!=null)\n stringBuffer.append(eventAttendee.getEmail() + \" \");\n }\n scheduledEvents.setAttendees(stringBuffer.toString());\n }\n else{\n scheduledEvents.setAttendees(\"\");\n }\n EventsList.add(scheduledEvents);\n }\n }", "@Override\n\t\tprotected Void doInBackground(Void... params) {\n\n\t\t\tSessionManager session = new SessionManager(getBaseContext());\n\t\t\tString user = session.GetUserIdFromSharedPreferences();\n\n\t\t\taJSONObject = new JSONObject();\n\n\t\t\tRestAPI api = new RestAPI();\n\n\t\t\ttry {\n\t\t\t\taJSONObject = api.ReportOfTheMonth(user);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}", "public HashMap<String, Object> sendQueryRequest(String facilityName, byte[] days) {\n\t\tHashMap<String, Object> request = new HashMap<String, Object>();\n\t\trequest.put(\"service_type\", Constants.QUERY_FACILITY);\n\t\trequest.put(\"facility_name\", facilityName);\n\t\trequest.put(\"facility_days\", days);\n\t\t\n\t\treturn this.sendRequest(request);\n\t}", "public List<CustomVisitReport> searchVisitReport(long sgid,VisitUserDto visitdto,int start,int size);", "private static Analyticsreporting initializeAnalyticsReporting() throws GeneralSecurityException, IOException {\n\n httpTransport = GoogleNetHttpTransport.newTrustedTransport();\n dataStoreFactory = new FileDataStoreFactory(DATA_STORE_DIR);\n\n // Load client secrets.\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY,\n new InputStreamReader(HelloAnalytics.class\n .getResourceAsStream(CLIENT_SECRET_JSON_RESOURCE)));\n\n // Set up authorization code flow for all authorization scopes.\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow\n .Builder(httpTransport, JSON_FACTORY, clientSecrets,\n AnalyticsreportingScopes.all()).setDataStoreFactory(dataStoreFactory)\n .build();\n\n // Authorize.\n Credential credential = new AuthorizationCodeInstalledApp(flow,\n new LocalServerReceiver()).authorize(\"user\");\n // Construct the Analytics Reporting service object.\n return new Analyticsreporting.Builder(httpTransport, JSON_FACTORY, credential)\n .setApplicationName(APPLICATION_NAME).build();\n }", "public UserSession[] getUserSessions() throws SessionQueryException\n {\n UserSession[] userArray = null;\n\n \n // Get all of the users from the SMS\n UserLoginStruct[] userStructs;\n try {\n userStructs = getSessionManagementAdminService().getUsers(false);\n\n GUILoggerHome.find().debug(\"AbstractSessionInfoManager\", GUILoggerSABusinessProperty.USER_SESSION,\n userStructs);\n if (GUILoggerHome.find().isInformationOn()) {\n GUILoggerHome.find().information(\"AbstractSessionInfoManager\",\n GUILoggerSABusinessProperty.USER_SESSION, \"Found \" + userStructs.length + \" User Sessions\");\n }\n\n userArray = new UserSession[userStructs.length];\n UserSession userSession = null;\n\n for (int i = 0; i < userStructs.length; i++) {\n if (userStructs[i].sourceComponents != null && userStructs[i].sourceComponents.length == 1\n && userStructs[i].sourceComponents[0].length() == 0) {\n userSession = new UserSession(new User(userStructs[i].userId, userStructs[i].loggedIn),\n new String[0]);\n } else {\n userSession = new UserSession(new User(userStructs[i].userId, userStructs[i].loggedIn),\n userStructs[i].sourceComponents);\n }\n userArray[i] = userSession;\n }\n\n // Sort the list of users in alphabetical order by Name\n Arrays.sort(userArray, getNameComparator());\n\n } catch (Exception e) {\n throw new SessionQueryException(\"Could not acquire user sessions information.\" ,e);\n }\n \n return userArray;\n }", "public String aggregations(String query, String since, String until, String fields, String limit, String count)\n \t throws Exception {\n \t\tString apiUrl = \"api/search.json?\";\n\n \t\tthis.query = query;\n \t\tthis.since = since;\n \t\tthis.until = until;\n \t\tthis.fields = fields;\n \t\tthis.limit = limit == \"\" ? \"6\" : limit;\n \t\tthis.count = count == \"\" ? \"0\" : count;\n\n \t\tif (query != \"\") {\n \t\t\tapiUrl = apiUrl + \"query=\" + this.query;\n if (since != \"\") {\n \tapiUrl = apiUrl + \" since:\" + this.since;\n }\n if (until != \"\") {\n \tapiUrl = apiUrl + \" until:\" + this.until;\n }\n apiUrl = apiUrl + \"&source=cache\";\n apiUrl = apiUrl + \"&count=\" + this.count;\n if (fields != \"\") {\n \tapiUrl = apiUrl + \"&fields=\" + this.fields;\n }\n apiUrl = apiUrl + \"&limit=\" + this.limit;\n\n String url = this.baseUrl + apiUrl;\n\n URL urlObj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) urlObj.openConnection();\n\n con.setRequestMethod(\"GET\");\n\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n int responseCode = con.getResponseCode();\n String response = \"\";\n\t\t\tif (responseCode == 200) {\n response = buildReponse(con);\n\t\t\t} else {\n\t\t response = \"{'error': 'Something went wrong, looks like the server is down.'}\";\n\t\t\t}\n\n\t\t\treturn response;\n \t\t} else {\n\t\t\treturn \"{'error': 'No Query string has been sent to query for an account'}\";\n\t\t}\n \t}", "public void refresh() {\n OfficerDailyReportService officerService = new OfficerDailyReportService(sessionBean.getCompanyId());\n getClientDailyReports().clear();\n EquipmentService equipService = new EquipmentService(sessionBean.getCompanyId());\n HashMap<Integer, ClientEquipment> clientEquipHash = new HashMap<Integer, ClientEquipment>();\n try {\n if (sessionBean.getClients() != null) {\n ArrayList<Integer> clientIds = new ArrayList<Integer>();\n for (int c = 0; c < sessionBean.getClients().size(); c++) {\n clientIds.add(sessionBean.getClients().get(c).getClientId());\n }\n getClientDailyReports().addAll(officerService.getDailyReportsForClientsWithText(clientIds, numberOfDaysToGoBack, false));\n\n ArrayList<OfficerDailyReport> reports = getClientDailyReports();\n \n HashMap<Integer, Integer> clientEquipmentIds = new HashMap<Integer, Integer>();\n for (int c = 0; c < reports.size(); c++) {\n clientEquipmentIds.put(reports.get(c).getClientEquipmentId(), reports.get(c).getClientEquipmentId());\n }\n \n ArrayList<Integer> fetchClientEquipIds = new ArrayList<Integer>();\n Iterator<Integer> keyIterator = clientEquipmentIds.keySet().iterator();\n while (keyIterator.hasNext()) {\n fetchClientEquipIds.add(keyIterator.next());\n }\n ArrayList<ClientEquipment> equip = equipService.getClientEquipmentByIds(fetchClientEquipIds);\n for (int e = 0; e < equip.size(); e++) {\n clientEquipHash.put(equip.get(e).getClientEquipmentId(), equip.get(e));\n }\n \n for (int r = 0; r < getClientDailyReports().size(); r++) {\n getClientDailyReports().get(r).setClientEquipment(clientEquipHash.get(getClientDailyReports().get(r).getClientEquipmentId()));\n }\n logInLogOut = LogInLogOut.generateData(clientDailyReports, sessionBean.getCompanyId());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void getSeedEntryCount(String mVarietyMstID,\n String mGradeId,String CurrentDate,\n String HeapNo,\n\n final HttpResponseListener<JSONObject> hhtpResponseListener) {\n CurrentDate = AllUtils.getFormattedDateForSql(CurrentDate);\n String url = ConstantPath.BASE_URL_NEW + \"Mahacott/CallTrackingRequest?action=getSeedEntryCount&CommodityMstId=2\"\n + \"&CommoVarietyMstId=\" + mVarietyMstID\n + \"&Grade=\" + mGradeId\n + \"&PressingDate=\" +CurrentDate\n + \"&HeapNo=\" + HeapNo + \"\";\n\n System.out.println(\"URL==\" + url);\n\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(\n Request.Method.GET, url, null,\n new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n System.out.println(\"GET SEED STOCK QTY RESPONSE: \" + response.toString());\n hhtpResponseListener.getResponse(response);\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n // TODO Auto-generated method stub\n error.printStackTrace();\n }\n });\n\n RequestConnection.getRequestConnection(context).addRequestQue(jsonObjectRequest);\n\n }", "public String generateReport(final String merchantUuid, final Integer days, final Integer offset);", "@RequestMapping(value = \"workoutOfToday\", method = RequestMethod.GET)\n\tpublic String getSpecificDayGet(HttpSession session, ModelMap model){\n\t\t//Checks if user is logged in\n\t\tif(session.getAttribute(\"username\") == null){\n\t\t\tVIEW_INDEX = \"index\";\n\t\t\treturn \"redirect:/\"+VIEW_INDEX;\n\t\t}\n\n\t\t//Get parameters\n\t\tString username = (String)session.getAttribute(\"username\");\n\t\tString date = (String)session.getAttribute(\"date\");\n\n\t\tDay day = workoutService.getSpecificDay(username, date);\n\n\t\t//Input information from day into view.\n\t\tArrayList<Exercises> exercises = day.getExercises();\n\t\tint numberOfInputs=0;\n\n\t\tfor(int i=0; i<exercises.size();i++){\n\t\t\t numberOfInputs += exercises.get(i).getSet().size();\n\t\t}\n\t\tsession.setAttribute(\"numberOfInputs\",numberOfInputs);\n\t\tmodel.addAttribute(\"exercises\",exercises);\n\n\t\tVIEW_INDEX = \"workoutOfToday\";\n\t\treturn VIEW_INDEX;\n\t}", "List<Session> getAllSessions();", "private void queryForSelectedSession(String sessionId) {\r\n GetSessionQuery getSessionQuery = GetSessionQuery.builder().id(sessionId).build();\r\n awsAppSyncClient.query(getSessionQuery)\r\n .responseFetcher(AppSyncResponseFetchers.NETWORK_ONLY)\r\n .enqueue(getSessionCallBack);\r\n }", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n\n\n java.text.SimpleDateFormat toDateTime = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZ\");\n //Date todayDate = new Date();\n // String todayName = dayName.format(todayDate);\n\n java.util.Calendar calendar = java.util.Calendar.getInstance();\n\n calendar.setTime(nowToday);\n calendar.add(Calendar.HOUR, 2);\n Date twoFromNow = calendar.getTime();\n\n\n\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setTimeMax(new DateTime(twoFromNow, TimeZone.getDefault()))\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n // String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n\n // Only get events with exact start time set, exclude all day\n if (start != null) {\n eventStrings.add(\n String.format(\"%s //// %s)\", event.getSummary(), start));\n }\n\n\n }\n\n return eventStrings;\n }", "void queryTimeSeries(final Message<JsonObject> msg) {\n\n final JsonObject query = msg.body();\n LOG.debug(\"{}\\n{}\", address, query.encodePrettily());\n\n // get the paramsters from the query\n final Range range = rangeParser.parse(query.getJsonObject(\"range\").getString(\"from\"),\n query.getJsonObject(\"range\").getString(\"to\"));\n final long interval = intervalParser.parseToLong(query.getString(\"interval\"));\n final JsonArray targets = query.getJsonArray(\"targets\")\n .stream()\n .map(o -> ((JsonObject) o).getString(\"target\"))\n .collect(toJsonArray());\n\n //build the query and options\n final JsonObject tsQuery = $and(obj(\"n.begin\", $gte(range.getStart())),\n obj(\"n.begin\", $lte(range.getEnd())),\n obj(\"t.name\", $in(targets)));\n\n final FindOptions findOptions = new FindOptions().setFields(obj().put(\"t.name\", 1)\n .put(\"n.begin\", 1)\n .put(\"n.value\", 1)\n .put(\"_id\", 0)).setSort(obj(\"n.begin\", 1));\n\n long start = System.currentTimeMillis();\n //execute search and process response\n client.findWithOptions(collectionName, tsQuery, findOptions, result -> {\n\n if (result.succeeded()) {\n JsonArray resp = processResponse(range, r -> range.splitEvery(interval), targets, result);\n long end = System.currentTimeMillis();\n LOG.debug(\n \"Sending response with {} timeseries and {} datapoints (after {} ms)\",\n resp.size(),\n resp.stream()\n .map(o -> ((JsonObject) o).getJsonArray(\"datapoints\"))\n .collect(Collectors.summingInt(JsonArray::size)),\n (end - start));\n msg.reply(resp);\n\n } else {\n LOG.error(\"Annotation query failed\", result.cause());\n msg.reply(arr());\n }\n\n });\n }", "@Override\n public List getReports(String orderBy, Long count, String fromDate, String toDate) {\n return null;\n }", "public void getTransactionReport(HashMap<String, String> params) {\n\t\tQUERY_BY_SETTLEMENT = \"0\";\n\t\tREPORT_START = params.get(\"reportStart\");\n\t\tREPORT_END = params.get(\"reportEnd\");\n\t\tQUERY_BY_HIERARCHY = params.get(\"subaccountsSearched\");\n\t\tDO_NOT_ESCAPE = params.get(\"doNotEscape\");\n\t\tEXCLUDE_ERRORS = params.get(\"excludeErrors\");\n\t\tAPI = \"bpdailyreport2\";\n\t}", "@Headers({\n \t\"Content-Type:application/vnd.api+json\" \n })\n @GET(\"api/v2/reports/{id}.json_api\")\n Call<Report> show(\n @retrofit2.http.Path(\"id\") Integer id, @retrofit2.http.Query(\"include\") String include\n );", "@Override\r\n\tpublic int collect(Map<String, String> arguments) {\r\n\t\tinitialize(arguments);\r\n\t\tint count = 0;\r\n\r\n\t\t// Setup the authorization\r\n\t\tinitializeAuthorizationData();\r\n\r\n\t\tReportingServiceManager reportingManager = new ReportingServiceManager(authorizationData);\r\n\t\treportingManager.setStatusPollIntervalInMilliseconds(5000);\r\n\r\n\t\t// Setup the observable window range\r\n\t\tCalendar minRange = Calendar.getInstance();\r\n\t\tminRange.add(Calendar.HOUR, 0-lag-obsWindow);\r\n\t\tCalendar maxRange = Calendar.getInstance();\r\n\t\tmaxRange.add(Calendar.HOUR, 0-lag);\r\n\t\tLOG(\"Query range from: (\"+minRange.getTime()+\" - \"+maxRange.getTime()+\")\");\r\n\r\n\t\t// collect the data\r\n\t\t// do we load from offline or online source ?\r\n\t\tboolean bLoadFromFile = false;\r\n\t\tFile fromFile = null;\r\n\t\tif (loadFromFile != null) {\r\n\t\t\ttry {\r\n\t\t\t\tString[] files = loadFromFile.split(\";\");\r\n\t\t\t\tfromFile = new File(files[files.length-1]);\r\n\t\t\t\tbLoadFromFile = fromFile.exists() && fromFile.isFile();\r\n\t\t\t\tif (files.length > 1) {\r\n\t\t\t\t\tfor (int f = 0; f < files.length - 1; f++) {\r\n\t\t\t\t\t\tprocessFile(new File(files[f]), minRange, maxRange, false, false, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (Exception ea) {\r\n\t\t\t\tbLoadFromFile = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (!bLoadFromFile) {\r\n\t\t\t// Load From API (online)\r\n\t\t\t\r\n\t\t\t// 1. Prepare report request for AdPerformance\r\n\t\t\tReportRequest reportRequest = getAdReport(minRange, maxRange);\r\n\t\t\t// 2. Set Download options\r\n\t\t\tReportingDownloadParameters reportingDownloadParameters = new ReportingDownloadParameters();\r\n\t\t\treportingDownloadParameters.setReportRequest(reportRequest);\r\n\t\t\treportingDownloadParameters.setResultFileDirectory(new File(reportDirectory));\r\n\t\t\treportingDownloadParameters.setResultFileName(System.currentTimeMillis()+\"_AdReport.csv\");\r\n\t\t\treportingDownloadParameters.setOverwriteResultFile(true);\r\n\t\t\t// 3. Download report file from BingAds API (unfortunately Microsoft insists on using the file, there is no stream option)\r\n\t\t\t// We may optionally cancel the downloadFileAsync operation after a specified time interval.\r\n\t\t\tFile resultAdReportFile = null;;\r\n\t\t\ttry {\r\n\t\t\t\tresultAdReportFile = reportingManager.downloadFileAsync(\r\n\t\t\t\t\t\treportingDownloadParameters, \r\n\t\t\t\t\t\tnull).get(3600000, TimeUnit.MILLISECONDS);\r\n\r\n\t\t\t} catch (InterruptedException | ExecutionException | TimeoutException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// 4. Prepare the AdGroupPerformance request\r\n\t\t\treportRequest = getAdGroupReport(minRange, maxRange);\r\n\t\t\tFile resultAdGroupReportFile = null;\r\n\r\n\t\t\t// 5. Set Download options\r\n\t\t\treportingDownloadParameters.setReportRequest(reportRequest);\r\n\t\t\treportingDownloadParameters.setResultFileName(System.currentTimeMillis()+\"_AdGroupReport.csv\");\r\n\t\t\t\r\n\t\t\t// 6. Download the report file\r\n\t\t\ttry {\r\n\t\t\t\tresultAdGroupReportFile = reportingManager.downloadFileAsync(\r\n\t\t\t\t\t\treportingDownloadParameters, \r\n\t\t\t\t\t\tnull).get(3600000, TimeUnit.MILLISECONDS);\r\n\r\n\t\t\t} catch (InterruptedException | ExecutionException | TimeoutException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\t// 7. prepare the DB\r\n\t\t\tinitializeMongoDb();\r\n\r\n\t\t\t// 8. process downloaded files\r\n\t\t\tList<Document> adList = new ArrayList<>(32);\r\n\t\t\tcount += processFile(resultAdReportFile, minRange, maxRange, true, true, adList);\r\n\t\t\tList<Document> adGroupList = new ArrayList<>(32);\r\n\t\t\tcount += processFile(resultAdGroupReportFile, minRange, maxRange, false, true, adGroupList);\r\n\t\t\t\r\n\t\t\tList<Document> allDocs = extrapolateHourlyPerformance(adList, adGroupList);\r\n\t\t\tinsertDocuments(allDocs);\r\n\t\t\t// 9. cleanup\r\n\t\t\tmongoClient.close();\r\n\t\t\tif (removeDownloadedReportFile) {\r\n\t\t\t\tif (resultAdReportFile != null) {\r\n\t\t\t\t\tresultAdReportFile.deleteOnExit();\r\n\t\t\t\t}\r\n\t\t\t\tif (resultAdGroupReportFile != null) {\r\n\t\t\t\t\tresultAdGroupReportFile.deleteOnExit();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t// 1. Prepare DB\r\n\t\t\tinitializeMongoDb();\r\n\t\t\t\r\n\t\t\t// 2. load from provided offline file\r\n\t\t\tList<Document> adGroupList = new ArrayList<>(32);\r\n\t\t\tcount += processFile(fromFile, minRange, maxRange, false, true, null);\r\n\t\t\t\r\n\t\t\t// 3. cleanup\r\n\t\t\tmongoClient.close();\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public Session[] findSessions();", "@Nullable\n public UserExperienceAnalyticsAnomalyDevice get() throws ClientException {\n return send(HttpMethod.GET, null);\n }", "@RequestMapping(value = \"/getReportByNameDay\", method = RequestMethod.POST)\r\n public @ResponseBody String getReportByDay(@RequestParam(\"employeeId\") String employeeId,\r\n @RequestParam(\"attendanceDate\") String attendanceDate) {\r\n logger.info(\"inside ReportGenerationController getReportByDay()\");\r\n\r\n return reportGenerationService.getReportByDay(employeeId,\r\n new Date(Long.valueOf(attendanceDate)));\r\n }", "public abstract I_SessionInfo[] getSessions();", "public interface BackstageMediaReportsEndpoint {\n\n @GET(BackstagePaths.BACKSTAGE_API_PATH_PREFIX + \"/{account_id}/reports/top-campaign-content/dimensions/item_breakdown\")\n @Headers(\"Content-Type: application/json\")\n TopCampaignContentReport getTopCampaignContentReport(@Header(\"Authorization\") String authToken,\n @Path(\"account_id\") String accountId,\n @Query(\"start_date\") String startDate,\n @Query(\"end_date\") String endDate,\n @QueryMap Map<String, String> filters) throws BackstageAPIException;\n\n\n @GET(BackstagePaths.BACKSTAGE_API_PATH_PREFIX + \"/{account_id}/reports/campaign-summary/dimensions/{dimension}\")\n @Headers(\"Content-Type: application/json\")\n CampaignSummaryReport getCampaignSummary(@Header(\"Authorization\") String authToken,\n @Path(\"account_id\") String accountId,\n @Path(\"dimension\") String dimension,\n @Query(\"start_date\") String startDate,\n @Query(\"end_date\") String endDate,\n @QueryMap Map<String, String> filters) throws BackstageAPIException;\n }", "@Test\n\tpublic void generateEndOfNightReport(){\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\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(\"End-of-Night Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}", "@GET\n @Path(\"/{nqaId}\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public NbiNqa query(@Context HttpServletRequest req, @Context HttpServletResponse resp,\n @PathParam(\"nqaId\") String nqaId) throws ServiceException {\n\n long infterEnterTime = System.currentTimeMillis();\n\n LOGGER.info(\"Query begin, nqaId is :\" + nqaId);\n\n UuidUtils.checkUuid(nqaId);\n\n ResultRsp<NbiNqa> resultRsp = nqaSvc.query(req, resp, nqaId);\n\n LOGGER.info(\"Exit query NQA method. cost time(ms): \" + (System.currentTimeMillis() - infterEnterTime));\n\n return resultRsp.getData();\n }", "public SPResponse getErtiAnalytics(User user, Object[] params) {\n \n String userCompany = user.getCompanyId();\n \n SPResponse ertiInsightsResponse = new SPResponse();\n \n ErtiAnalytics ertiAnalytics = spectrumFactory.getErtiAnalytics(userCompany);\n \n LOG.debug(\"erti analytics returened is \" + ertiAnalytics);\n \n ertiInsightsResponse.add(\"ertiAnalytics\", ertiAnalytics);\n ertiInsightsResponse.isSuccess();\n return ertiInsightsResponse;\n }", "public ModelAndView findWeekDayCount(HttpServletRequest request, HttpServletResponse response) {\n\t\tHashMap<String, Object> model = new HashMap<String, Object>();\n\t\tresponse.setContentType(\"application/json; charset=UTF-8\");\n\t\tString startDate = request.getParameter(\"startDate\");\n\t\tString endDate = request.getParameter(\"endDate\");\n\t\ttry {\n\t\t\tout = response.getWriter();\n\n\t\t\tString weekdayCount = baseServiceFacade.findWeekDayCount(startDate, endDate);\n\t\t\tmodel.put(\"weekdayCount\", weekdayCount);\n\t\t\tmodel.put(\"errorMsg\", \"success\");\n\t\t\tmodel.put(\"errorCode\", 0);\n\n\t\t\tJSONObject jsonObject = JSONObject.fromObject(model);\n\t\t\tout.println(jsonObject);\n\t\t\tSystem.out.println(jsonObject);\n\n\t\t} catch (IOException ioe) {\n\t\t\tlogger.fatal(ioe.getMessage());\n\t\t\tString viewname = \"redirect:welcome.html\";\n\t\t\tmodel.clear();\n\t\t\tmodel.put(\"errorMsg\", ioe.getMessage());\n\t\t\tmodelAndView = new ModelAndView(viewname, model);\n\t\t} catch (DataAccessException dae) {\n\t\t\tlogger.fatal(dae.getMessage());\n\t\t\tmodel.clear();\n\t\t\tmodel.put(\"errorCode\", -1);\n\t\t\tmodel.put(\"errorMsg\", dae.getMessage());\n\t\t\tJSONObject jsonObject = JSONObject.fromObject(model);\n\t\t\tout.println(jsonObject);\n\t\t} finally {\n\t\t\tout.close();\n\t\t}\n\t\treturn modelAndView;\n\t}", "private void getWeekActiveTimeData(String accessToken) {\r\n String[] taskParams = new String[3];\r\n\r\n taskParams[0] = accessToken;\r\n\r\n Calendar startDate = getFirstMondayInWeek(endDate);\r\n\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(getString(R.string.fitbit_date_format));\r\n String formattedStartDate = dateFormat.format(startDate.getTime());\r\n String formattedEndDate = dateFormat.format(endDate.getTime());\r\n\r\n // Fairly active and very active minutes are added to get active minutes total\r\n taskParams[1] = \"https://api.fitbit.com/1/user/-/activities/minutesFairlyActive/date/\" +\r\n formattedStartDate + \"/\" + formattedEndDate + \".json\";\r\n\r\n taskParams[2] = \"https://api.fitbit.com/1/user/-/activities/minutesVeryActive/date/\" +\r\n formattedStartDate + \"/\" + formattedEndDate + \".json\";\r\n\r\n updateRequestCount(taskParams.length - 1);\r\n\r\n new FitbitGetRequestTask(this).execute(taskParams);\r\n }", "public static Iterable<AnalyticsResults> getAllEvents(Date start, Date end) {\n\t\ttry {\n\t\t\treturn Common.query(\n\t\t\t\t\t\"{CALL GetAnalyticsForDateRange(?,?)}\",\n\t\t\t\t\tprocedure -> {\n\t\t\t\t\t\tprocedure.setDate(1, start);\n\t\t\t\t\t\tprocedure.setDate(2, end);\n\t\t\t\t\t},\n\t\t\t\t\tAnalyticsResults::listFromResults\n\t\t\t);\n\t\t} catch (SQLException e) {\n\t\t\tlog.error(\"GetAnalyticsForDateRange\");\n\t\t\treturn Collections.emptyList();\n\t\t}\n\t}", "void generateResponseHistory(LocalDate from, LocalDate to);", "@GetMapping(\"tv_watching_sessions/{id}\")\n\tpublic TvWatchingSession showSession(@PathVariable int id,\n\t\t\tHttpServletResponse response){\n\t\tTvWatchingSession session = svc.retrieveSessionByUser(id, userName);\n\t\tif (session == null) {\n\t\t\tresponse.setStatus(404);\n\t\t}\n\t\treturn session;\n\t}", "@RequestMapping(method = RequestMethod.GET, value = \"/my-events/{id}/date/{date}/page/{page}/items/{size}\")\r\n public Page<Alert> getAllEventsByUserAndDate(@PathVariable(\"id\") String id,\r\n @DateTimeFormat(pattern = \"yyyy-MM-dd\") @PathVariable(\"date\") Date date, @PathVariable(\"page\") String page,\r\n @PathVariable(\"size\") String size, HttpServletRequest request) {\r\n Pageable pageable = new PageRequest(Integer.parseInt(page), Integer.parseInt(size));\r\n Calendar c = Calendar.getInstance();\r\n c.setTime(date);\r\n c.add(Calendar.DATE, 1);\r\n c.add(Calendar.SECOND, -1);\r\n Page<Alert> res = alertRepository.findByRefUserAndDateTimeBetweenOrderByDateTimeDesc(id, date, c.getTime(),\r\n pageable);\r\n return res;\r\n }", "@GetMapping(\"/Appointments/{id}\")\n public List<Appointment> findAllAppointmentsForASession(@PathVariable(name=\"id\") Integer SessionId, Authentication authentication) {\n return providerServiceImpl.findAllAppointmentsForASession(SessionId, authentication.getName());\n }", "UsageReport[] getUsageReportsBatch(int batchSize);", "@Override\n @Transactional\n public ReportView getHistoryForPatientId(UUID patientId) {\n User patient = Objects.requireNonNull(userRepository.findOne(patientId));\n Map<LocalDate, Boolean> history = new HashMap<>(7);\n\n for (int i = 0; i < 7; i++) {\n java.sql.Date date = new java.sql.Date(System.currentTimeMillis());\n date.setDate(date.getDate() - i);\n\n List<Assignment> missedAssignments = assignmentRepository.findIncompleteByPatientIdAndDate(patientId, date);\n history.put(date.toLocalDate(), missedAssignments.isEmpty());\n }\n\n ReportView reportView = new ReportView();\n reportView.setUser(patient.toView());\n reportView.setHistory(history);\n return reportView;\n }", "@Override\n\tpublic List<FrequencyReport> getReports(String ads, String date) {\n\t\tString sql=\"SELECT campaign_id, creative_id,publication_id,zone_id, rowcount, count(*) as frequency\"\n\t\t\t\t+ \" from (select if(count(*)>=30, 30, count(*))as rowcount,equipment_key,campaign_id,creative_id,publication_id,zone_id \"\n\t\t\t\t\t\t+ \" FROM \"+hiveTableName+\" WHERE operation_type='003' and business_id='\"+businessId+\"' \"\n\t\t\t\t\t\t+ \" and ad_date>='2014-01-08' and ad_date<='\"+date+\"' and creative_id in (\"+ ads +\") \"\n\t\t\t\t\t\t+ \" GROUP BY campaign_id, creative_id,publication_id,zone_id, equipment_key)d \"\n\t\t\t\t+ \" GROUP BY campaign_id, creative_id,publication_id,zone_id, rowcount\";\n\t\tlog.info(\"FrequencyTask Running-->\"+sql);\n\t\ttry{\n\t\t\tList<FrequencyReport> reports = new ArrayList<FrequencyReport>();\n//\t\t\tList<Map<String, Object>> result = hiveJdbcTemplate.queryForList(sql);\n//\t\t\tIterator<Map<String,Object>> it = result.iterator();\n//\t\t\twhile(it.hasNext()){\n//\t\t\t\tMap<String, Object> map = it.next();\n//\t\t\t\tFrequencyReport report = new FrequencyReport();\n//\t\t\t\tif(map.get(\"campaign_id\")!=null && !\"null\".equalsIgnoreCase(String.valueOf(map.get(\"campaign_id\")))){\n//\t\t\t\t\treport.setCampaign_id(Integer.valueOf(String.valueOf(map.get(\"campaign_id\"))));\n//\t\t\t\t}\n//\t\t\t\tif(map.get(\"creative_id\")!=null && !\"null\".equalsIgnoreCase(String.valueOf(map.get(\"creative_id\")))){\n//\t\t\t\t\treport.setAd_id(Integer.valueOf(String.valueOf(map.get(\"creative_id\"))));\n//\t\t\t\t}\n//\t\t\t\tif(map.get(\"publication_id\")!=null && !\"null\".equalsIgnoreCase(String.valueOf(map.get(\"publication_id\")))){\n//\t\t\t\t\treport.setPublication_id(Integer.valueOf(String.valueOf(map.get(\"publication_id\"))));\n//\t\t\t\t}\n//\t\t\t\tif(map.get(\"zone_id\")!=null && !\"null\".equalsIgnoreCase(String.valueOf(map.get(\"zone_id\")))){\n//\t\t\t\t\treport.setZone_id(Integer.valueOf(String.valueOf(map.get(\"zone_id\"))));\n//\t\t\t\t}\n//\t\t\t\treport.setDate(date);\n//\t\t\t\tint frequency = Integer.valueOf(String.valueOf(map.get(\"rowcount\")));\n//\t\t\t\tint number = Integer.valueOf(String.valueOf(map.get(\"frequency\")));\n//\t\t\t\tboolean already_in_list = false;\n//\t\t\t\tfor(FrequencyReport report_inlist : reports){\n//\t\t\t\t\tif(isSameReports(report_inlist, report)){\n//\t\t\t\t\t\tsetReportFrequency(report_inlist, frequency, number);\n//\t\t\t\t\t\talready_in_list = true;\n//\t\t\t\t\t\tbreak;\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tif(!already_in_list){\n//\t\t\t\t\tsetReportFrequency(report,frequency,number);\n//\t\t\t\t\treports.add(report);\n//\t\t\t\t}\n//\t\t\t}\n\t\t\tStatement stmt = hiveJdbcTemplate.getDataSource().getConnection().createStatement();\n\t\t\tstmt.execute(\"set mapred.child.java.opts=-Xmx1024m\");\n\t\t\tResultSet result = stmt.executeQuery(sql);\n\t\t\twhile (result.next()) {\n\t\t\t\tFrequencyReport report = new FrequencyReport();\n\t\t\t\tif(result.getString(1)!=null){\n\t\t\t\t\treport.setCampaign_id(Integer.valueOf(result.getString(1)));\n\t\t\t\t}\n\t\t\t\tif(result.getString(2)!=null){\n\t\t\t\t\treport.setAd_id(Integer.valueOf(result.getString(2)));\n\t\t\t\t}\n\t\t\t\tif(result.getString(3)!=null){\n\t\t\t\t\treport.setPublication_id(Integer.valueOf(result.getString(3)));\n\t\t\t\t}\n\t\t\t\tif(result.getString(4)!=null){\n\t\t\t\t\treport.setZone_id(Integer.valueOf(result.getString(4)));\n\t\t\t\t}\n\t\t\t\treport.setDate(date);\n\t\t\t\tint frequency = Integer.valueOf(result.getString(5));\n\t\t\t\tint number = Integer.valueOf(result.getString(6));\n\t\t\t\tboolean already_in_list = false;\n\t\t\t\tfor(FrequencyReport report_inlist : reports){\n\t\t\t\t\tif(isSameReports(report_inlist, report)){\n\t\t\t\t\t\tsetReportFrequency(report_inlist, frequency, number);\n\t\t\t\t\t\talready_in_list = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(!already_in_list){\n\t\t\t\t\tsetReportFrequency(report,frequency,number);\n\t\t\t\t\treports.add(report);\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult.close();\n\t\t\tstmt.close();\n\t\t\treturn reports;\n\t\t}catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tlog.error(\"FrequencyTask error\",e);\n\t\t\treturn null;\n\t\t}\n\t}", "@RequestMapping(value = \"/getDailyReportsInfo\", method = RequestMethod.GET )\r\n\tpublic @ResponseBody Response getDailyReportsInfo(@RequestParam(value=\"projectName\") String project,\r\n\t\t\t@RequestParam(value=\"releaseName\") String release){\r\n\t\t\r\n\t\ttry{\r\n\t\t\r\n\t\tlog.info(\"project :\"+project);\r\n\t\tlog.info(\"Release :\"+release);\r\n\t\t\r\n\t\tlog.info(\"Inside getTrendingInfo method :\");\r\n\t\tSystem.out.println(\"Inside getTrendingInfo method\");\r\n\t\t//log.debug(dashboardService);\r\n\t\treturn dailyReportsService.getDailyReportsInfo(project,release);\r\n } \r\n\t\t\r\n\t\tcatch (Exception e) {\r\n\t\t\tSystem.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ In Catch\");\r\n\t\t\tlog.error(\"Exception ocurred : \",e);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Session> \n getSessionsList();", "public String getOneDayStatistic(String unitId, String groupId,\n\t\t\tString deptId, Date queryDate) {\n\t\tMap<String,String> allAttendance = new HashMap<String,String>();\n\t\tList<OfficeAttendanceGroup> groupList = officeAttendanceGroupService.listOfficeAttendanceGroupByUnitId(unitId);\n\t\tString[] groupIds = new String[groupList.size()];\n\t\tfor(int m=0;m<groupList.size();m++){\n\t\t\tgroupIds[m] = groupList.get(m).getId();\n\t\t}\n\t\tMap<String,List<OfficeAttendanceGroupUser>> groupUserMap = officeAttendanceGroupUserService.getOfficeAttendanceGroupUserMap(groupIds);\n\t\tList<OfficeAttendanceExcludeUser> excludeUsers = officeAttendanceExcludeUserService.getOfficeAttendanceExcludeUserByUnitId(unitId);\n\t\tSet<String> excludeSet = new HashSet<String>();\n\t\tfor(OfficeAttendanceExcludeUser exclude:excludeUsers){\n\t\t\texcludeSet.add(exclude.getUserId());\n\t\t}\n\t\tif(StringUtils.isNotEmpty(groupId)){\n\t\t\tList<OfficeAttendanceGroupUser> groupUserList = groupUserMap.get(groupId);\n\t\t\tallAttendance = covertOfficeAttendanceInfoMap(groupUserList , excludeUsers);\n\t\t\t\n\t\t}else if(StringUtils.isNotEmpty(deptId)){\n\t\t\tList<User> deptUser = userService.getUsersByDeptId(deptId);\n\t\t\tallAttendance = covertUserMap(deptUser,excludeUsers);\n\t\t}else{\n\t\t\tList<User> unitUser = userService.getUserListByUnitId(unitId, null, User.TEACHER_LOGIN, null);\n\t\t\tallAttendance = covertUserMap(unitUser ,excludeUsers);\n\t\t}\n\t\tSet<String> userSet = allAttendance.keySet();\n\t\tint i =0;\n\t\tString[] userIds = new String[userSet.size()];\n\t\tfor(String s:userSet){\n\t\t\tuserIds[i++] = s;\n\t\t}\n\t\t\n\t\tJSONObject json = new JSONObject();\n//\t\tJSONArray jsonArr = new JSONArray();\n//\t\tJSONObject json2 = null;\n\t\tString[] attendancename = new String[11];\n\t\tInteger[] attendanceNum = new Integer[11];\n//\t\t取该单位下 迟到早退List\n\t\tList<OfficeAttendanceInfo> later = listOfficeAttendanceInfoByDateAndState(unitId, null,null,AttendanceConstants.ATTENDANCE_CLOCK_STATE_1, queryDate);\n\t\tList<OfficeAttendanceInfo> leaveEarly = listOfficeAttendanceInfoByDateAndState(unitId,null,null, AttendanceConstants.ATTENDANCE_CLOCK_STATE_2, queryDate);\n\n\t\tint laterSum = 0;\n\t\tint leaveEarlySum =0;\n\t\tlaterSum = sumLeaveOrLater(allAttendance,later);\n\t\tleaveEarlySum = sumLeaveOrLater(allAttendance,leaveEarly);\n\n\t\tattendancename[0] = \"迟到人数\";\n\t\tattendanceNum[0] = laterSum;\n\t\t\n\n\t\tattendancename[1] = \"早退人数\";\n\t\tattendanceNum[1] = leaveEarlySum;\n\t\tMap<String,String> costomAttendance = getOfficeAttendanceInfoByDateAndState(AttendanceConstants.ATTENDANCE_CLOCK_STATE_DEFAULT, queryDate, unitId,null,null);\n\t\tMap<String,String> outWork = getOfficeAttendanceInfoByDateAndState(AttendanceConstants.ATTENDANCE_CLOCK_STATE_3, queryDate, unitId,null,null);\n\t\t\n\t\n\t\tint customSum=0;\n\t\tint outWorkSum=0;\n\t\tcustomSum =sumPeople(allAttendance,costomAttendance);\n\t\toutWorkSum =sumPeople(allAttendance,outWork);\n\n\t\tattendancename[2] = \"正常考勤人数\";\n\t\tattendanceNum[2] = customSum;\n\n\t\tattendancename[3] = \"外勤考勤人数\";\n\t\tattendanceNum[3] = outWorkSum;\n\t\n//\t\tList<Teacher> teacherList = teacherService.getTeachers(unitId);\n//\t\tList<OfficeAttendanceExcludeUser> notAddAttendance = officeAttendanceExcludeUserService.getOfficeAttendanceExcludeUserByUnitId(unitId);\n//\t\tint sumNotAddAttencedance = sumNotAttendance(allAttendance,notAddAttendance,flag);\n//\t\t\n//\t\tint attendanceNum = allAttendance.size() - sumNotAddAttencedance;\n\n\t\tattendancename[5] = \"考勤人数\";\n\t\tattendanceNum[5] = allAttendance.size();\n\t\n\t\tSet<String> applySet = new HashSet<String>();\n\t\tList<OfficeTeacherLeave> leaveList = officeTeacherLeaveService.getQueryList(unitId, userIds, queryDate, queryDate, null, true);\n\t\tint leaveSum =0;\n\t\tfor(OfficeTeacherLeave l:leaveList){\n\t\t\tif(userSet.contains(l.getApplyUserId())){\n\t\t\t\tapplySet.add(l.getApplyUserId());\n\t\t\t\tleaveSum++;\n\t\t\t}\n\t\t}\n\n\t\tattendancename[7] = \"请假人数\";\n\t\t\n\t\tattendanceNum[7] = leaveSum;\n\t\tList<OfficeGoOut> gooutList = officeGoOutService.getListByStarttimeAndEndtime(queryDate, DateUtils.addDay(queryDate, 1), userIds);\n\t\tint goOutSum=0;\n\t\tfor(OfficeGoOut g:gooutList){\n\t\t\tif(userSet.contains(g.getApplyUserId())){\n\t\t\t\tapplySet.add(g.getApplyUserId());\n\t\t\t\tgoOutSum++;\n\t\t\t}\n\t\t}\n\t\tattendancename[8] = \"外出人数\";\n\t\tattendanceNum[8] = goOutSum;\n\t\tList<OfficeBusinessTrip> tripList = officeBusinessTripService.getListByStarttimeAndEndtime(queryDate, queryDate, userIds);\n\t\t\n\t\tMap<String,Set<String>> jtGoOutMap = officeJtGooutService.getMapStatistcGoOutSum(unitId, userIds, queryDate, DateUtils.addDay(queryDate, 1));\n\t\tint tripSum = 0;\n\t\tfor(OfficeBusinessTrip t:tripList){\n\t\t\tif(userSet.contains(t.getApplyUserId())){\n\t\t\t\tapplySet.add(t.getApplyUserId());\n\t\t\t\ttripSum++;\n\t\t\t}\n\t\t}\n\n//\t\tMap<String,Integer> jtGoOutMap = officeJtGooutService.getMapStatistcGoOutSum(unitId, userIds, queryDate, queryDate);\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n//\t\tint jtGoOutNum = jtGoOutMap.get(format.format(queryDate));\n\t\tattendancename[9] = \"出差人数\";\n\t\tattendanceNum[9] = tripSum;\n\t\tSet<String> jtSet = jtGoOutMap.get(format.format(queryDate));\n\t\tif(jtSet == null) jtSet = new HashSet<String>();\n\t\tattendancename[10] = \"集体外出人数\";\n\t\tattendanceNum[10] = jtSet.size();\n\t\tapplySet.addAll(jtSet);\n\t\t\n\t\tMap<String,String> missCard = getMissingCard(queryDate, unitId, AttendanceConstants.ATTENDANCE_CLOCK_STATE_98 ,null,null);\n\t\tMap<String,String> moreOneCard = getMissingCard(queryDate, unitId, null,null,null);\n\t\t\n\t\t\n\t\tSet<String> missCardSet = missCard.keySet();\n\t\t\n\t\tSet<String> oneMoreCardSet = moreOneCard.keySet();\n\t\tDateInfo info = dateInfoService.getDateInfo(unitId, queryDate);\n\t\tattendancename[4] = \"缺卡人数\";\n\t\tattendancename[6] = \"旷工人数\";\n\t\tif(info != null && \"N\".equals(info.getIsfeast())){\n\t\t\t\n\t\t\t//得到符合条件的 缺卡人数\n\t\t\tmissCardSet.retainAll(userSet);\n\t\t\tSet<String> missRetain = new HashSet<String>(missCardSet);\n\t\t\tmissRetain.retainAll(applySet);\n\t\t\tmissCardSet.removeAll(missRetain);\n\t\t\t\n\t\t\tattendanceNum[4] = missCardSet.size();\n\t\t\t\n\t\t\tapplySet.addAll(oneMoreCardSet);\n\t\t\tint allSum = userSet.size();\n\t\t\tuserSet.retainAll(applySet);\n\t\t\tint notWorkNum = allSum - userSet.size();\n\t\t\tattendanceNum[6] = notWorkNum;\n\t\t}else{\n\t\t\tattendanceNum[4] = 0;\n\t\t\tattendanceNum[6] = 0;\n\t\t}\n//\t\tjson.put(\"yInterval\",max_ds);\n\t\tjson.put(\"legendData\", new String[]{\"人数\"});\n\t\tjson.put(\"xAxisData\", attendancename);\n\t\tjson.put(\"loadingData\", new Integer[][]{attendanceNum});\n\t\treturn json.toString();\n\t}", "public USAStaffingAppointmentResult getAppointmentData(String requestNumber){\r\n\r\n\t\tUSAStaffingAppointmentResult usasAppointment = new USAStaffingAppointmentResult();\r\n\r\n\t\tPrompt appointmentPrompt = new Prompt(properties.getReportPromptRequest(), requestNumber, requestNumber);\r\n\t\tCognosReport appointmentReport = new CognosReport(properties.getAppointmentReportName(), properties.getAppointmentReportPath(), properties.getReportFormatDataSet(), appointmentPrompt);\r\n\r\n\t\tif(properties.getProgramMode().equalsIgnoreCase(properties.getTestMode())){//test mode\r\n\t\t\tlog.info(\"**Application is running in TEST MODE: Pre-downloaded Appointment report will be used to generate the response.\");\r\n\t\t\tString reportPath = properties.getAppointmentFileLocation() + File.separator + requestNumber + \".xml\";\r\n\t\t\tlog.info(\"Using XML report for Appointment \"+ reportPath + \" for transformation.\");\r\n\t\t\tusasAppointment = appointmentService.parseReportFromFile(reportPath);\r\n\t\t}else{//normal or production mode\r\n\t\t\tlog.info(\"Connecting to USAS - Cognos Server to get \" + properties.getAppointmentReportName() + \" report for Request Number [\"+requestNumber+\"].\");\r\n\t\t\tusasAppointment = appointmentService.parseReportFromUSASResponse(this.client.processReportDataRequest(appointmentReport), requestNumber);\r\n\t\t}\r\n\t\t\r\n\t\tif(usasAppointment.getRequestNumber().length() == 0)//setting request number for response if not available\t\t\t\r\n\t\t\tusasAppointment.setRequestNumber(requestNumber);\r\n\t\tlog.info(usasAppointment.toString());\r\n\t\treturn usasAppointment;\r\n\t}", "public List getUserAllAwayHistoryYear(Integer userId, Date hireDateStart) {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n\n //build the current hireDateStart and hireDateEnd for the search range\n //current date\n GregorianCalendar currentDate = new GregorianCalendar();\n currentDate.setTime(new Date());\n\n GregorianCalendar startHireDate = new GregorianCalendar();\n startHireDate.setTime(hireDateStart);\n //this is the start of current employment year\n startHireDate.set(Calendar.YEAR, currentDate.get(Calendar.YEAR));\n\n GregorianCalendar hireDateEnd = new GregorianCalendar();\n hireDateEnd.setTime(startHireDate.getTime());\n //advance its year by one\n //this is the end of the current employment year\n hireDateEnd.add(Calendar.YEAR, 1);\n\n //adjust to fit in current employment year\n if (startHireDate.after(currentDate)) {\n hireDateEnd.add(Calendar.YEAR, -1);\n startHireDate.add(Calendar.YEAR, -1);\n }\n\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n\n try {\n //retreive away events from database\n\n //this is the main class\n Criteria criteria = session.createCriteria(Away.class);\n\n //sub criteria; the user\n Criteria subCriteria = criteria.createCriteria(\"User\");\n subCriteria.add(Expression.eq(\"userId\", userId));\n\n criteria.add(Expression.ge(\"startDate\", startHireDate.getTime()));\n criteria.add(Expression.le(\"startDate\", hireDateEnd.getTime()));\n\n criteria.addOrder(Order.asc(\"startDate\"));\n\n //remove duplicates\n criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\n\n results = criteria.list();\n\n return results;\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "@Test\r\n\tpublic void findAllGames() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: findAllGames \r\n\t\tInteger startResult = 0;\r\n\t\tInteger maxRows = 0;\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tList<Game> response = null;\r\n\t\tTswacct tswacct = null;\r\n\t\tresponse = service.findAllGames4tsw(tswacct, startResult, maxRows);\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: findAllGames\r\n\t}", "@GetMapping(\"/activity\")\n Stats all() {\n Stats stats = new Stats();\n log.info(\"getting daily activity by default\");\n List<Activity> allActivity = repository.findAll();\n log.info(\"allActivity: \" + allActivity);\n Collections.sort(allActivity);\n Map<String, Integer> stepsByCategory = new TreeMap<String, Integer>();\n for (Activity activity : allActivity) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(activity.getUntilTime());\n int day = cal.get(Calendar.DAY_OF_YEAR);\n int year = cal.get(Calendar.YEAR);\n String dayOfYear = DAY + day + OF_YEAR + year;\n Integer steps = stepsByCategory.get(dayOfYear);\n if (steps == null) {\n steps = activity.getSteps();\n } else {\n steps += activity.getSteps();\n }\n stepsByCategory.put(dayOfYear, steps);\n }\n stats.setCategory(StatsCategory.DAILY);\n List<Details> details = new ArrayList<Stats.Details>();\n if(stepsByCategory != null) {\n for (Entry entry : stepsByCategory.entrySet()) {\n Details stat = stats.new Details();\n stat.key = entry.getKey().toString();\n stat.steps = entry.getValue().toString();\n details.add(stat);\n }\n stats.setDetails(details);\n }\n //stats.setStepsByCategory(stepsByCategory);\n return stats;\n }", "private static UserInfo getUserInfoStandardSession(int idUser)\n {\n User user = null;\n Squad squad = null;\n int countPost = 0;\n int invitationsAvailable = 0;\n try\n {\n user = DAOFactory.getInstance().getUserDAO().getFetched(idUser);\n if (user == null)\n {\n return new UserInfo();\n }\n //squad = DAOFactory.getInstance().getSquadDAO().getFirstByIdUser(idUser);\n squad = user.getFirstSquad();\n countPost = DAOFactory.getInstance().getMatchCommentDAO().countByIdUser(idUser);\n invitationsAvailable = user.getMaxInvitations() - DAOFactory.getInstance().getUserInvitationDAO().getCountUsed(idUser);\n if (invitationsAvailable < 0)\n {\n invitationsAvailable = 0;\n }\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving user info: \" + ex.getMessage());\n }\n boolean squadMarketEnabled = false;\n if (squad != null)\n {\n squadMarketEnabled = squad.getMarketEnabled() && !squad.getHiddenEnabled();\n }\n else\n {\n logger.error(String.format(\"Error on data about iduser %s: User must have almost one squad!!\", idUser));\n }\n // Set values\n Language language = ActionContext.getContext() != null ? UserContext.getInstance().getLanguage() : LanguageManager.chooseUserLanguage(user);\n Cobrand currentCobrand = ActionContext.getContext() != null ? UserContext.getInstance().getCurrentCobrand() : getCobrandByCode(user.getCobrandCode());\n UserInfo userInfo = new UserInfo();\n userInfo.setId(user.getId());\n userInfo.setName(user.getFirstName());\n userInfo.setAnonymousEnabled(user.getAnonymousEnabled());\n\n if (userInfo.isAnonymousEnabled())\n {\n userInfo.setSurname(StringUtils.left(user.getLastName(), 1) + '.');\n }\n else\n {\n userInfo.setSurname(user.getLastName());\n }\n\n userInfo.setCompleteSurname(user.getLastName());\n\n userInfo.setEmail(user.getEmail());\n userInfo.setRecordedMatches(user.getRecordedMatches());\n userInfo.setRecordedChallenges(user.getRecordedChallenges());\n userInfo.setPlayedMatches(user.getPlayedMatches());\n userInfo.setPlayedChallenges(user.getPlayedChallenges());\n userInfo.setCity(user.getCity().getName());\n userInfo.setProvince(user.getProvince().getName());\n userInfo.setCountry(user.getCountry().getName());\n userInfo.setIdCountry(user.getCountry().getId());\n userInfo.setIdProvince(user.getProvince() != null ? user.getProvince().getId() : 0);\n userInfo.setIdCity(user.getCity() != null ? user.getCity().getId() : 0);\n if (user.getNationalityCountry() != null)\n {\n userInfo.setIdNatCountry(user.getNationalityCountry().getId());\n userInfo.setNatCountry(user.getNationalityCountry().getName());\n }\n userInfo.setCreated(user.getCreated());\n userInfo.setBirthdayCity((user.getBirthdayCity() != null) ? user.getBirthdayCity().getName() : EMPTY_FIELD);\n userInfo.setBirthdayProvince((user.getBirthdayProvince() != null) ? user.getBirthdayProvince().getName() : EMPTY_FIELD);\n userInfo.setBirthdayCountry((user.getBirthdayCountry() != null) ? user.getBirthdayCountry().getName() : EMPTY_FIELD);\n userInfo.setPlayerFoot((user.getPlayerFoot() == null) ? EMPTY_FIELD : TranslationProvider.getTranslation(user.getPlayerFoot().getKeyName(), language, currentCobrand).getKeyValue());\n userInfo.setPlayerFootKeyName((user.getPlayerFoot() == null) ? EMPTY_FIELD : user.getPlayerFoot().getKeyName());\n userInfo.setPlayerShirtNumber((user.getPlayerShirtNumber() != null) ? (String.valueOf(user.getPlayerShirtNumber())) : EMPTY_FIELD);\n userInfo.setPlayerRole(user.getPlayerRole() == null ? EMPTY_FIELD : TranslationProvider.getTranslation(user.getPlayerRole().getKeyName(), language, currentCobrand).getKeyValue());\n userInfo.setIdPlayerRole(user.getPlayerRole().getId());\n userInfo.setPlayerRoleKey(user.getPlayerRole().getKeyName());\n userInfo.setPlayerMainFeature(user.getPlayerMainFeature() == null ? EMPTY_FIELD : user.getPlayerMainFeature());\n userInfo.setPlayerShirtNumber((user.getPlayerShirtNumber() != null) ? (String.valueOf(user.getPlayerShirtNumber())) : EMPTY_FIELD);\n userInfo.setAge((user.getBirthDay() != null) ? Utils.getAgefromDate(user.getBirthDay()) : EMPTY_FIELD);\n userInfo.setPlayerHeight((user.getPlayerHeight() != null) ? String.valueOf(user.getPlayerHeight()) : EMPTY_FIELD);\n userInfo.setPlayerWeight((user.getPlayerWeight() != null) ? String.valueOf(user.getPlayerWeight()) : EMPTY_FIELD);\n userInfo.setFootballTeam((user.getFootballTeam() != null) ? user.getFootballTeam().getName() : EMPTY_FIELD);\n userInfo.setPhysicalConditionKey((user.getPhysicalCondition() != null) ? user.getPhysicalCondition().getKeyName() : \"label.condizioneFisica.nonPervenuta\");\n userInfo.setIdPhysicalCondition((user.getPhysicalCondition() != null) ? String.valueOf(user.getPhysicalCondition().getId()) : EMPTY_FIELD);\n userInfo.setInfoFavouritePlayer((user.getInfoFavouritePlayer() != null) ? user.getInfoFavouritePlayer() : EMPTY_FIELD);\n userInfo.setInfoDream((user.getInfoDream() != null) ? user.getInfoDream() : EMPTY_FIELD);\n userInfo.setInfoHobby((user.getInfoHobby() != null) ? user.getInfoHobby() : EMPTY_FIELD);\n userInfo.setInfoAnnounce((user.getInfoAnnounce() != null) ? user.getInfoAnnounce() : EMPTY_FIELD);\n userInfo.setInfoDream((user.getInfoDream() != null) ? user.getInfoDream() : EMPTY_FIELD);\n userInfo.setPlayerTitle((user.getPlayerTitle() != null) ? user.getPlayerTitle() : EMPTY_FIELD);\n //userInfo.setPlayedMatches(user.getRecordedMatches() + user.getRecordedChallenges());//SBAGLIATO TODO,sono le organizzate\n userInfo.setCountryFlagName(String.format(\"%1$s%2$s\", Constants.COUNTRY_FLAG_IMAGE_PREFIX, user.getCountry().getId()));\n userInfo.setBirthday(user.getBirthDay());\n userInfo.setMarketEnabled(user.getMarketEnabled());\n userInfo.setSquadMarketEnabled(squadMarketEnabled);\n userInfo.setStatus(user.getEnumUserStatus());\n userInfo.setAlertOnMatchRegistrationOpen(user.getAlertOnRegistrationStart());\n //userInfo.setPlayedMatches(StatisticManager.getPlayed(userInfo.getId()));//Att è una query in piu'\n\n userInfo.setPostCount(countPost);\n userInfo.setInvitationsAvailable(invitationsAvailable);\n\n //Facebook\n userInfo.setFacebookIdUser(user.getFacebookIdUser());\n userInfo.setFacebookAccessToken(user.getFacebookAccessToken());\n userInfo.setFacebookPostOnMatchCreation(user.isFacebookPostOnMatchCreation());\n userInfo.setFacebookPostOnMatchRecorded(user.isFacebookPostOnMatchRecorded());\n userInfo.setFacebookPostOnMatchRegistration(user.isFacebookPostOnMatchRegistration());\n\n try\n {\n PictureCard pictureCard = null;\n if (user.getEnumUserStatus().equals(EnumUserStatus.Pending))\n {\n pictureCard = DAOFactory.getInstance().getPictureCardDAO().getByStatus(idUser, EnumPictureCardStatus.Pending);\n if (pictureCard != null)\n {\n userInfo.loadPictureCard(pictureCard);\n }\n }\n else\n {\n for (PictureCard pic : user.getPictureCards())\n {\n if (pic.getEnumPictureCardStatus().equals(EnumPictureCardStatus.Current))\n {\n userInfo.loadPictureCard(pic);\n break;\n }\n }\n }\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving current picture card in getUserInfo()\", ex);\n }\n return userInfo;\n\n }", "List<MedicalRecord> getAllPatientMedicalRecords(HttpSession session, int patientId);", "public JSONObject getGSTComputationDetailReport(JSONObject params) throws ServiceException, JSONException {\n JSONObject object = new JSONObject();\n JSONObject jMeta = new JSONObject();\n JSONArray jarrColumns = new JSONArray();\n JSONArray jarrRecords = new JSONArray();\n JSONArray dataJArr = new JSONArray();\n String start = params.optString(\"start\");\n String limit = params.optString(\"limit\");\n String companyId = params.optString(\"companyid\");\n params.put(\"companyid\", companyId);\n /**\n * Put all required parameter for GST report\n */\n getEntityDataForRequestedModule(params);\n getColNumForRequestedModules(params);\n getLocalStateOfEntity(params);\n \n params.put(GSTR3BConstants.DETAILED_VIEW_REPORT, true);\n String section = params.optString(\"section\");\n accGSTReportService.getColumnModelForGSTR3BDetails(jarrRecords, jarrColumns, params);\n JSONObject dataObj = new JSONObject();\n params.put(GSTR3BConstants.DETAILED_VIEW_REPORT, true);\n switch (section) {\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_1:\n dataObj = getGSTComputation_Sales_Section_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_1_1:\n dataObj = getGSTComputation_Sales_Section_1_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_1_2:\n dataObj = getGSTComputation_Sales_Section_1_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_1_3:\n dataObj = getGSTComputation_Sales_Section_1_3(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_2:\n dataObj = getGSTComputation_Sales_Section_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_2_2:\n dataObj = getGSTComputation_Sales_Section_2_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_3:\n dataObj = getGSTComputation_Sales_Section_3(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_3_1:\n dataObj = getGSTComputation_Sales_Section_3_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_4:\n dataObj = getGSTComputation_Sales_Section_4(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_4_1:\n dataObj = getGSTComputation_Sales_Section_4_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_4_2:\n dataObj = getGSTComputation_Sales_Section_4_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_7:\n dataObj = getGSTComputation_Sales_Section_7(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_1:\n dataObj = getGSTComputation_Sales_Section_7_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_2:\n dataObj = getGSTComputation_Sales_Section_7_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_3:\n dataObj = getGSTComputation_Sales_Section_7_3(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_4:\n dataObj = getGSTComputation_Sales_Section_7_4(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_5:\n dataObj = getGSTComputation_Sales_Section_7_5(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_8:\n dataObj = getGSTComputation_Sales_Section_8(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_9:\n dataObj = getGSTComputation_Sales_Section_9(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_9_1:\n dataObj = getGSTComputation_Sales_Section_9_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_9_2:\n dataObj = getGSTComputation_Sales_Section_9_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_10:\n dataObj = getGSTComputation_Sales_Section_10(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_10_1:\n dataObj = getGSTComputation_Sales_Section_10_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_10_2:\n dataObj = getGSTComputation_Sales_Section_10_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_1:\n dataObj = getGSTComputation_Purchase_Section_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_1_1:\n dataObj = getGSTComputation_Purchase_Section_1_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_2:\n dataObj = getGSTComputation_Purchase_Section_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_3:\n dataObj = getGSTComputation_Purchase_Section_3(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_3_1:\n dataObj = getGSTComputation_Purchase_Section_3_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_3_2:\n dataObj = getGSTComputation_Purchase_Section_3_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_4:\n dataObj = getGSTComputation_Purchase_Section_4(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_5:\n dataObj = getGSTComputation_Purchase_Section_5(params);\n break;\n\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_6:\n dataObj = getGSTComputation_Purchase_Section_6(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_7:\n dataObj = getGSTComputation_Purchase_Section_7(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_7_1:\n dataObj = getGSTComputation_Purchase_Section_7_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_7_2:\n dataObj = getGSTComputation_Purchase_Section_7_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_11:\n dataObj = getGSTComputation_Purchase_Section_11(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_12:\n dataObj = getGSTComputation_Purchase_Section_12(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_11_10:\n dataObj = getGSTComputation_Purchase_Section_11_10(params);\n break; \n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_13_1:\n dataObj = getGSTComputation_Purchase_Section_13_1(params);\n break; \n }\n\n dataJArr = dataObj.has(\"data\") ? dataObj.optJSONArray(\"data\") : new JSONArray();\n JSONArray pagedJson = new JSONArray();\n pagedJson = dataJArr;\n if (!StringUtil.isNullOrEmpty(start) && !StringUtil.isNullOrEmpty(limit)) {\n pagedJson = StringUtil.getPagedJSON(pagedJson, Integer.parseInt(start), Integer.parseInt(limit));\n }\n object.put(\"totalCount\", dataJArr.length());\n object.put(\"columns\", jarrColumns);\n object.put(\"coldata\", pagedJson);\n jMeta.put(\"totalProperty\", \"totalCount\");\n jMeta.put(\"root\", \"coldata\");\n jMeta.put(\"fields\", jarrRecords);\n object.put(\"metaData\", jMeta);\n return object;\n }", "@RequestMapping(method = RequestMethod.GET, value = \"/getReports\")\r\n public List<Reports> getReports() {\r\n\r\n List<Reports> results = reportsRepository.getReportsByDate();\r\n return results;\r\n\r\n }", "public long getExpiredSessions();", "@GET\n @Produces(\"text/plain\")\n public String getList(\n\n final StringBuilder builder = new StringBuilder();\n\n builder.append(\"JSESSIONID: \").append(sessionId).append(\"<br>Accept: \").append(acceptHeader);\n\n return builder.toString();\n }", "private static String fetchElevHistory(){\n\t\tRequestData req = new RequestData(\"activities/elevation/date/today/max\");\t//make request\n\t\treq.sendRequest();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//send request\n\t\tJSONObject json1 = new JSONObject(req.getBody());\t\t\t\t\t\t\t//make json from response\n\t\tJSONArray json = json1.getJSONArray(\"activities-elevation\");\n\t\treturn json.toString();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//return goals as json\n\t}", "public interface ApiService {\n @GET(\"h5game/index/mixlist\")\n Flowable<DataInfo<List<ResultsBean>>> homeFeeds();\n//?app_channel=1000&&push_id=0e47900897c7481e2ec077612a0e1471&system=android&appid=60fa5580-06ca-4f5c-8d5c-0fa41a9d0c7e&phone_version=23&versionNum=213&gouzai_id=G-54e0a4f6ffd6caeac01087c88eb3bfdd&product_type=SM-G9006W&openid=&pno=1&net_stat=1&psize=20&gouzaiId=G-54e0a4f6ffd6caeac01087c88eb3bfdd&version=2.1.3-debug&manufacturer=samsung&channel=1000\n @GET(\"h5game/user/history/list\")\n Flowable<DataInfo<GameInfos>> playHistory();\n}", "public ISFQuery<SFODataFeed<SFWebhookSubscription>> get()\t{\n\n\t\tSFApiQuery<SFODataFeed<SFWebhookSubscription>> sfApiQuery = new SFApiQuery<SFODataFeed<SFWebhookSubscription>>(this.client);\n\t\tsfApiQuery.setFrom(\"WebhookSubscriptions\");\n\t\tsfApiQuery.setHttpMethod(\"GET\");\n\t\treturn sfApiQuery;\n\t}", "@Get \n public JsonRepresentation getActivities(Variant variant) {\n \tlog.info(\"getActivities(@Get) entered ..... \");\n \tJSONObject jsonReturn = new JSONObject();\n\t\t\n\t\tString apiStatus = ApiStatusCode.SUCCESS;\n\t\tthis.setStatus(Status.SUCCESS_OK);\n\t\tUser currentUser = null;\n\t\tTimeZone tz = null;\n\t\t// teamId is provided only if getting activities for a single team. \n\t\tboolean isGetActivitiesForAllTeamsApi = this.teamId == null;\n try {\n \t\tcurrentUser = (User)this.getRequest().getAttributes().get(RteamApplication.CURRENT_USER);\n \t\tif(currentUser == null) {\n\t\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n \t\t\tlog.severe(\"user could not be retrieved from Request attributes!!\");\n \t\t}\n \t\t//::BUSINESSRULE:: user must be network authenticated to get activities\n \t\telse if(!currentUser.getIsNetworkAuthenticated()) {\n \t\t\tapiStatus = ApiStatusCode.USER_NOT_NETWORK_AUTHENTICATED;\n \t\t}\n \t\t//::BUSINESSRULE:: user must be a member of the team, if teamId was specified\n \t\telse if(this.teamId != null && !currentUser.isUserMemberOfTeam(this.teamId)) {\n\t\t\t\tapiStatus = ApiStatusCode.USER_NOT_MEMBER_OF_SPECIFIED_TEAM;\n\t\t\t\tlog.info(apiStatus);\n \t}\n \t\t// timeZone check \n \t\telse if(this.timeZoneStr == null || this.timeZoneStr.length() == 0) {\n \t\t\tlog.info(\"getActivities(): timeZone null or zero length\");\n \t \tapiStatus = ApiStatusCode.TIME_ZONE_REQUIRED;\n \t\t} else {\n \t\t\ttz = GMT.getTimeZone(this.timeZoneStr);\n \t\t\tif(tz == null) {\n \t\tapiStatus = ApiStatusCode.INVALID_TIME_ZONE_PARAMETER;\n \t\t\t}\n \t\t}\n\t\n \t\tif(!apiStatus.equals(ApiStatusCode.SUCCESS) || !this.getStatus().equals(Status.SUCCESS_OK)) {\n\t\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t\t\treturn new JsonRepresentation(jsonReturn);\n\t\t\t}\n\t\t\t\n \t\t//////////////////////////////////////\n\t\t\t// verify and default input parameters\n \t\t//////////////////////////////////////\n\t\t\tboolean refreshFirst = false;\n\t\t\tif(this.refreshFirstStr != null) {\n\t\t\t\tif(refreshFirstStr.equalsIgnoreCase(\"true\")) {\n\t\t\t\t\trefreshFirst = true;\n\t\t\t\t} else if(refreshFirstStr.equalsIgnoreCase(\"false\")) {\n\t\t\t\t\trefreshFirst = false;\n\t\t\t\t} else {\n\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_REFRESH_FIRST_PARAMETER;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tboolean newOnly = false;\n\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS)) {\n\t\t\t\tif(this.newOnlyStr != null) {\n\t\t\t\t\tif(newOnlyStr.equalsIgnoreCase(\"true\")) {\n\t\t\t\t\t\tnewOnly = true;\n\t\t\t\t\t} else if(newOnlyStr.equalsIgnoreCase(\"false\")) {\n\t\t\t\t\t\tnewOnly = false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_NEW_ONLY_PARAMETER;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint maxCount = DEFAULT_MAX_COUNT;\n\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS) && maxCountStr != null) {\n\t\t\t\ttry {\n\t\t\t\t\tmaxCount = new Integer(maxCountStr);\n\t\t\t\t\tif(maxCount > MAX_MAX_COUNT) maxCount = MAX_MAX_COUNT;\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_MAX_COUNT_PARAMETER;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t///////////////////////////////////\n\t\t\t// some parameters are API specific\n\t\t\t///////////////////////////////////\n\t\t\tLong maxCacheId = null;\n\t\t\tDate mostCurrentDate = null;\n\t\t\tInteger totalNumberOfDays = null;\n\t\t\tif(isGetActivitiesForAllTeamsApi) {\n\t\t\t\t////////////////////////////////////////////////////////\n\t\t\t\t// Get Activity for All Teams: Parameters and Validation\n\t\t\t\t////////////////////////////////////////////////////////\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS) && mostCurrentDateStr != null) {\n\t\t\t\t\tmostCurrentDate = GMT.convertToGmtDate(mostCurrentDateStr, false, tz);\n\t\t\t\t\tif(mostCurrentDate == null) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_MOST_CURRENT_DATE_PARAMETER;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS) && this.totalNumberOfDaysStr != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttotalNumberOfDays = new Integer(this.totalNumberOfDaysStr);\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_TOTAL_NUMBER_OF_DAYS_PARAMETER;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//::BUSINESSRULE:: if newOnly=true, then refreshFirst must also be true\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS)) {\n\t\t\t\t\tif(newOnly && !refreshFirst) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.REFRESH_FIRST_AND_NEW_ONLY_MUST_BE_SPECIFIED_TOGETHER;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//::BUSINESSRULE:: if newOnly=false, date interval must be specified\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS)) {\n\t\t\t\t\tif(!newOnly && (mostCurrentDate == null || totalNumberOfDays == null)) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.DATE_INTERVAL_REQUIRED;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//::BUSINESSRULE:: newOnly=true is mutually exclusive with date interval\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS)) {\n\t\t\t\t\tif(newOnly && (mostCurrentDate != null || totalNumberOfDays != null)) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.NEW_ONLY_AND_DATE_INTERVAL_MUTUALLY_EXCLUSIVE;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t///////////////////////////////////////////////////////////////////////\n\t\t\t\t// Get Activity for a Single, Specified Team: Parameters and Validation\n\t\t\t\t///////////////////////////////////////////////////////////////////////\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS) && maxCacheIdStr != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmaxCacheId = new Long(maxCacheIdStr);\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_MAX_CACHE_ID_PARAMETER;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//::BUSINESSRULE:: refreshFirst=true is mutually exclusive with maxCacheId\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS)) {\n\t\t\t\t\tif(refreshFirst && maxCacheId != null) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.REFRESH_FIRST_AND_MAX_CACHE_ID_MUTUALLY_EXCLUSIVE;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(!apiStatus.equals(ApiStatusCode.SUCCESS) || !this.getStatus().equals(Status.SUCCESS_OK)) {\n\t\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t\t\treturn new JsonRepresentation(jsonReturn);\n\t\t\t}\n\t\t\t\n\t\t\tList<Team> teams = new ArrayList<Team>();\n\t\t\tList<Key> teamKeys = null;\n\t\t\tEntityManager em = EMF.get().createEntityManager();\n\t\t\tif(isGetActivitiesForAllTeamsApi) {\n\t\t\t\tteamKeys = currentUser.getTeams();\n\t\t\t\tif(teamKeys.size() > 0) {\n\t\t\t\t\t//::JPA_BUG:: ?? if I get all teams by passing in a list of keys, the list of teams is not in same order as keys!!!!\n//\t \t\t\tList<Team> teams = (List<Team>) em.createQuery(\"select from \" + Team.class.getName() + \" where key = :keys\")\n//\t\t\t\t\t\t.setParameter(\"keys\", teamKeys)\n//\t\t\t\t\t\t.getResultList();\n\t\t\t\t\t\n\t\t\t\t\tfor(Key tk : teamKeys) {\n\t\t\t\t\t\tTeam aTeam = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t aTeam = (Team)em.createNamedQuery(\"Team.getByKey\")\n\t\t\t\t\t\t\t\t.setParameter(\"key\", tk)\n\t\t\t\t\t\t\t\t.getSingleResult();\n\t\t\t\t\t\t} catch(Exception e) {\n\t\t\t\t\t\t\tlog.severe(\"should never happen. Could not find team with the team key\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(aTeam != null) {teams.add(aTeam);}\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(\"number of teams retrieved for current user = \" + teams.size());\n\t\t\t\t} else {\n\t\t\t\t\tlog.info(\"user has no teams\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttry {\n \t\t\t\t\tTeam team = (Team)em.createNamedQuery(\"Team.getByKey\")\n \t\t\t\t\t\t.setParameter(\"key\", KeyFactory.stringToKey(this.teamId))\n \t\t\t\t\t\t.getSingleResult();\n \t\t\t\t\tlog.info(\"team retrieved = \" + team.getTeamName());\n \t\t\t\t\tteams.add(team);\n \t\t\t\t} catch (NoResultException e) {\n \t\t\t\t\tapiStatus = ApiStatusCode.TEAM_NOT_FOUND;\n \t\t\t\t\tlog.info(\"invalid team id\");\n \t\t\t\t} catch (NonUniqueResultException e) {\n \t\t\t\t\tlog.severe(\"should never happen - two teams have the same key\");\n \t\t\t\t}\n\t\t\t}\n \t\t\n\t\t\tList<Activity> allTeamsRequestedActivities = new ArrayList<Activity>();\n\t\t\t\n\t\t\t// All teams support activity so all teams are processed\n\t\t\tfor(Team userTeam : teams) {\n\t\t\t\tBoolean teamUsesTwitter = userTeam.getUseTwitter() != null && userTeam.getUseTwitter();\n\t\t\t\t\n\t\t\t\tList<Activity> teamRequestedActivities = null;\n\t\t\t\tLong cacheId = userTeam.getNewestCacheId();\n\t\t\t\t\n\t\t\t\t////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t\t// If a refresh has been requested and team uses Twitter, get the latest activities from Twitter and store in cache\n\t\t\t\t////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t\tif(teamUsesTwitter && refreshFirst) {\n\t\t\t\t\tlog.info(\"refreshFirst is true - updating the cache\");\n\t\t\t\t\t\n\t\t\t\t\tif(newOnly) {teamRequestedActivities = new ArrayList<Activity>();}\n\n\t\t\t\t\t// Twitter refresh is done at most once per minute, so see if the refresh has been done in the last minute.\n\t\t\t\t\tDate lastRefreshDate = userTeam.getLastTwitterRefresh();\n\t\t\t\t\tLong howLongSinceLastRefresh = null;\n\t\t\t\t\tDate now = new Date();\n\t\t\t\t\tif(lastRefreshDate != null) {\n\t\t\t\t\t\thowLongSinceLastRefresh = now.getTime() - lastRefreshDate.getTime();\n\t\t\t\t\t\tlog.info(\"howLongSinceLastRefresh = \" + howLongSinceLastRefresh);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlog.info(\"lastTwitterRefresh in User null, so refresh will proceed\"); \n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(lastRefreshDate == null || (howLongSinceLastRefresh > ONE_MINUTE_IN_MILLI_SECONDS)) {\n\t\t\t\t\t\tlog.info(\"has been over a minute so do a Twitter refresh\");\n\t\t\t\t\t\tLong newestTwitterId = userTeam.getNewestTwitterId();\n\t\t\t\t\t\tList<Activity> twitterActivities = TwitterClient.getTeamActivities(userTeam, newestTwitterId);\n\t\t\t\t\t\tif(twitterActivities == null) {\n\t\t\t\t\t\t\tapiStatus = ApiStatusCode.TWITTER_ERROR;\n\t\t\t\t\t\t} \n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!apiStatus.equals(ApiStatusCode.SUCCESS) || !this.getStatus().equals(Status.SUCCESS_OK)) {\n\t\t\t\t\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t\t\t\t\t\treturn new JsonRepresentation(jsonReturn);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// because twitterActivities doesn't have the cacheId set, this will get sorted by twitterId\n\t\t\t\t\t\tCollections.sort(twitterActivities);\n\t\t\t\t\t\t\n\t\t\t\t\t\t////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t\t\t\t// persist the activities retrieved from Twitter that aren't already stored in the cache\n\t\t\t\t\t\t////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t\t\t\tint requestedActivityCount = maxCount;\n\n\t\t\t\t\t\tLong largestTwitterId = newestTwitterId;\n\t\t\t\t\t\tlog.info(\"before processing activities, newestTwitterId = \" + newestTwitterId);\n\t\t\t\t\t\tEntityManager em0 = EMF.get().createEntityManager();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tfor(Activity a: twitterActivities) {\n\t\t\t\t\t\t\t\tem0.getTransaction().begin();\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tActivity precachedActivity = (Activity)em0.createNamedQuery(\"Activity.getByTwitterId\")\n\t\t\t\t\t\t\t\t\t\t.setParameter(\"twitterId\", a.getTwitterId())\n\t\t\t\t\t\t\t\t\t\t.getSingleResult();\n\t\t\t\t\t\t\t\t\t// if already cached, there is no work to do ...\n\t\t\t\t\t\t\t\t} catch (NoResultException e) {\n\t\t\t\t\t \t// not an error - we have found a Twitter update that was a direct post to Twitter\n\t\t\t\t\t\t\t\t\tlog.info(\"uncached activity retrieved with twitter ID = \" + a.getTwitterId());\n\t\t\t\t\t\t\t\t\tif(newOnly && requestedActivityCount != 0) {\n\t\t\t\t\t\t\t\t\t\tteamRequestedActivities.add(a);\n\t\t\t\t\t\t\t\t\t\trequestedActivityCount--;\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\tcacheId += 1;\n\t\t\t\t\t\t\t\t\ta.setCacheId(cacheId);\n\t\t\t\t\t\t\t\t\tem0.persist(a);\n\t\t\t\t\t\t\t\t\tif(a.getTwitterId() > largestTwitterId) {largestTwitterId = a.getTwitterId();}\n\t\t\t\t\t \t\t} catch (NonUniqueResultException e) {\n\t\t\t\t\t \t\t\tlog.severe(\"should never happen - two or more activities have the same twitter ID\");\n\t\t\t\t\t \t\t}\n\t\t\t\t\t\t\t\tem0.getTransaction().commit();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlog.info(\"after processing activities, largestTwitterId = \" + largestTwitterId);\n\t\t\t\t\t\t\tnewestTwitterId = largestTwitterId;\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tem0.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Update team in a separate transaction\n\t\t\t\t\t\t// at this point, newestTwitterId holds the largest, most recent Twitter Id\n\t\t\t\t\t\t// at this point, cachId holds the largest, most recent cache Id\n\t\t\t\t\t\tEntityManager em2 = EMF.get().createEntityManager();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tem2.getTransaction().begin();\n\t\t\t\t\t\t\tTeam teamInTransaction = (Team)em2.createNamedQuery(\"Team.getByKey\")\n\t\t\t\t\t\t\t\t.setParameter(\"key\", userTeam.getKey())\n\t\t\t\t\t\t\t\t.getSingleResult();\n\t\t\t\t\t\t\tlog.info(\"team2 retrieved = \" + teamInTransaction.getTeamName());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// update the activity IDs\n\t\t\t\t\t\t\tteamInTransaction.setNewestCacheId(cacheId);\n\t\t\t\t\t\t\tteamInTransaction.setNewestTwitterId(newestTwitterId);\n\t\t\t\t\t\t\tteamInTransaction.setLastTwitterRefresh(new Date());\n\t\t\t\t\t\t\tem2.getTransaction().commit();\n\t\t\t\t\t\t} catch(Exception e) {\n\t\t\t\t\t\t\tlog.severe(\"Should never happen. Could not find team using teamKey from User entity.\");\n\t\t\t\t\t\t\t// no matter what, the teamsWithPossibleUpdates team list MUST be complete if this is a refresh!\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t if (em2.getTransaction().isActive()) {\n\t\t\t\t\t\t em2.getTransaction().rollback();\n\t\t\t\t\t\t }\n\t\t\t\t\t\t em2.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} // end of if(teamUsesTwitter && refreshFirst)\n\t\t\t\t\n\t\t\t\t// If this team uses Twitter and this is a refreshFirst with newOnly, then teamRequestedActivities \n\t\t\t\t// already initialized in the code above.\n\t\t\t\tif(!(teamUsesTwitter && refreshFirst && newOnly)) {\n\t\t\t\t\tif(refreshFirst && newOnly) {\n\t\t\t\t\t\t// teamUsesTwitter must be false. If no Twitter, then a refreshFirst-newOnly request has no work to do,\n\t\t\t\t\t\t// but must create a teamRequestedActivities for code below, so make the empty list.\n\t\t\t\t\t\tteamRequestedActivities = new ArrayList<Activity>();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// To get into this leg of code, newOnly must be FALSE\n\t\t\t\t\t\t\n\t\t\t\t\t\t//////////////////////////////////////////////////////////////\n\t\t\t\t\t\t// Build the teamRequestedActivities list from the local cache\n\t\t\t\t\t\t//////////////////////////////////////////////////////////////\n\t\t\t\t\t\tEntityManager em3 = EMF.get().createEntityManager();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tlog.info(\"getting activities from the cache ...\");\n\t\t\t\t\t\t\t//////////////////////////////////////////////////////////////////////\n\t\t\t\t\t\t\t// return activities from cache (which may include some new stuff too)\n\t\t\t\t\t\t\t//////////////////////////////////////////////////////////////////////\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isGetActivitiesForAllTeamsApi) {\n\t\t\t\t\t\t\t\t// Since newOnly must be false (see comment above) the mostCurrentDate and totalNumberOfDays\n\t\t\t\t\t\t\t\t// must be specified according to the API business rules.\n\n\t\t\t\t\t\t\t\t//////////////////////////////////\n\t\t\t\t\t\t\t\t// get activities by date interval\n\t\t\t\t\t\t\t\t//////////////////////////////////\n\t\t\t\t\t\t\t\tDate leastCurrentDate = GMT.subtractDaysFromDate(mostCurrentDate, totalNumberOfDays-1);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tteamRequestedActivities = (List<Activity>)em3.createNamedQuery(\"Activity.getByTeamIdAndUpperAndLowerCreatedDates\")\n\t\t\t\t\t\t\t\t\t.setParameter(\"teamId\", KeyFactory.keyToString(userTeam.getKey()))\n\t\t\t\t\t\t\t\t\t.setParameter(\"mostCurrentDate\", GMT.setTimeToEndOfTheDay(mostCurrentDate))\n\t\t\t\t\t\t\t\t\t.setParameter(\"leastCurrentDate\", GMT.setTimeToTheBeginningOfTheDay(leastCurrentDate))\n\t\t\t\t\t\t\t\t\t.getResultList();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t//////////////////////////////////\n\t\t\t\t\t\t\t\t// get activities by cacheId range\n\t\t\t\t\t\t\t\t//////////////////////////////////\n\t\t\t\t\t\t\t\tLong upperCacheId = null; // non-inclusive, upper cache ID used in activity query\n\t\t\t\t\t\t\t\tLong lowerCacheId = null; // \n\t\t\t\t\t\t\t\tif(maxCacheId != null) {\n\t\t\t\t\t\t\t\t\t// typically used to request activities that are not the most recent\n\t\t\t\t\t\t\t\t\tif(maxCacheId > cacheId + 1) {maxCacheId = cacheId + 1;}\n\t\t\t\t\t\t\t\t\tupperCacheId = maxCacheId;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// the most recent activities are being requested\n\t\t\t\t\t\t\t\t\t// make upper cache ID large enough so newest item in cache will be returned\n\t\t\t\t\t\t\t\t\tupperCacheId = cacheId + 1; \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tlowerCacheId = upperCacheId - maxCount;\n\t\t\t\t\t\t\t\t// number of available activities might be less than maxCount\n\t\t\t\t\t\t\t\tif(lowerCacheId < 0) {lowerCacheId = 0L;}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tteamRequestedActivities = (List<Activity>)em3.createNamedQuery(\"Activity.getByTeamIdAndUpperAndLowerCacheIds\")\n\t\t\t\t\t\t\t\t\t.setParameter(\"teamId\", KeyFactory.keyToString(userTeam.getKey()))\n\t\t\t\t\t\t\t\t\t.setParameter(\"upperCacheId\", upperCacheId)\n\t\t\t\t\t\t\t\t\t.setParameter(\"lowerCacheId\", lowerCacheId)\n\t\t\t\t\t\t\t\t\t.getResultList();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlog.info(\"number of teamRequestedActivities found = \" + teamRequestedActivities.size());\n\t\t\t\t\t\t} catch(Exception e) {\n\t\t\t\t\t\t\tlog.severe(\"Failed in getting Activity from cache. Exception = \" + e.getMessage());\n\t\t\t\t\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tem3.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tallTeamsRequestedActivities.addAll(teamRequestedActivities);\n\t\t\t} // end of for(Team userTeam : teams)\n\t\t\tlog.info(\"number of allTeamsRequestedActivities found = \" + allTeamsRequestedActivities.size());\n\t\t\t\n\t\t\t/////////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t// Update newestCacheIds in User Entity. newestCacheIds are used to determine if a user\n\t\t\t// has any new activity. All the user's teams that were updated by this API call need\n\t\t\t// to be updated. Note that the team.newestCacheId may not have been updated in this\n\t\t\t// API but rather by the Create Activity API, but it doesn't matter. Any user team\n\t\t\t// that has had activity retrieved by this API call should the associated user.newestCacheId\n\t\t\t// updated.\n\t\t\t/////////////////////////////////////////////////////////////////////////////////////////////\n\t\t\tif(teams.size() > 0) {\n\t \tEntityManager em4= EMF.get().createEntityManager();\n\t \ttry {\n\t \t\tem4.getTransaction().begin();\n\t \t\t// re-get the user inside this transaction\n\t\t\t\t\tUser withinTransactionUser = (User)em4.createNamedQuery(\"User.getByKey\")\n\t\t\t\t\t\t.setParameter(\"key\", currentUser.getKey())\n\t\t\t\t\t\t.getSingleResult();\n\t\t\t\t\tlog.info(\"updating newCachIds for User = \" + withinTransactionUser.getFullName() + \". Number of updated teams = \" + teams.size());\n\t\t\t\t\t\n\t\t\t\t\tList<Long> newestCacheIds = withinTransactionUser.getTeamNewestCacheIds();\n\t\t\t\t\t// If a teamId was specified in the API call, then only ONE TEAM will be in the teamsWithPossibleUpdates list\n\t\t\t\t\t// so we must find the 'matching' team in the User's team list and update just that one team.\n\t\t\t\t\tif(teams.size() == 1) {\n\t\t\t\t\t\tTeam specifiedTeam = teams.get(0);\n\t\t\t\t\t\tint index = 0;\n\t\t\t\t\t\tfor(Key teamKey : withinTransactionUser.getTeams()) {\n\t\t\t\t\t\t\tif(teamKey.equals(specifiedTeam.getKey())) {\n\t\t\t\t\t\t\t\tnewestCacheIds.set(index, specifiedTeam.getNewestCacheId());\n\t\t\t\t\t\t\t\tlog.info(\"updating cacheID for specified team = \" + specifiedTeam.getTeamName());\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tindex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ALL the User's team could have been updated. In this case, the code above guarantees that\n\t\t\t\t\t\t// the teamsWithPossibleUpdates list will contain ALL the user's teams -- both updated\n\t\t\t\t\t\t// teams and teams not updated. For simplicity, just completely rebuild newestCacheIds list.\n\t\t\t\t\t\tnewestCacheIds = new ArrayList<Long>();\n\t\t\t\t\t\tfor(Team t : teams) {\n\t\t\t\t\t\t\t// even if Activity not active for this team, getNewestCacheId() guaranteed to return 0L\n\t\t\t\t\t\t\tlog.info(\"updating cacheID for team = \" + t.getTeamName());\n\t\t\t\t\t\t\tnewestCacheIds.add(t.getNewestCacheId());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\twithinTransactionUser.setTeamNewestCacheIds(newestCacheIds);\n\t\t\t\t\tem4.getTransaction().commit();\n\t \t} catch (NoResultException e) {\n\t \tlog.severe(\"user not found\");\n\t \te.printStackTrace();\n\t \t\t} catch (NonUniqueResultException e) {\n\t \t\t\tlog.severe(\"should never happen - two or more users have same key\");\n\t \t\t\te.printStackTrace();\n\t \t\t} finally {\n\t \t\t if (em4.getTransaction().isActive()) {\n\t \t\t \tem4.getTransaction().rollback();\n\t \t\t }\n\t \t\t em4.close();\n\t \t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// because cacheId has been set, this will get sorted by created date - reverse chronological order\n\t\t\tCollections.sort(allTeamsRequestedActivities);\n\t\t\t\n\t\t\tif(isGetActivitiesForAllTeamsApi) {\n\t\t\t\t// enforce the maxCount for Date Interval algorithm\n\t\t\t\tif(allTeamsRequestedActivities.size() > maxCount) {\n\t\t\t\t\t// activity list needs to be truncated, but truncation only happens on full day boundaries\n\t\t\t\t\tDate dateBoundary = allTeamsRequestedActivities.get(maxCount-1).getCreatedGmtDate();\n\t\t\t\t\tdateBoundary = GMT.setTimeToTheBeginningOfTheDay(dateBoundary);\n\t\t\t\t\tlog.info(\"Activity list exceeded max size of \" + maxCount + \". List size = \" + allTeamsRequestedActivities.size() + \" Date boundary = \" + dateBoundary.toString());\n\t\t\t\t\t\n\t\t\t\t\t// find the index of the first activity with a date greater than the boundary date\n\t\t\t\t\tInteger truncateIndex = null;\n\t\t\t\t\tfor(int searchIndex = maxCount; searchIndex<allTeamsRequestedActivities.size(); searchIndex++) {\n\t\t\t\t\t\tDate activityDate = allTeamsRequestedActivities.get(searchIndex).getCreatedGmtDate();\n\t\t\t\t\t\tactivityDate = GMT.setTimeToTheBeginningOfTheDay(activityDate);\n\t\t\t\t\t\tif(activityDate.before(dateBoundary)) {\n\t\t\t\t\t\t\ttruncateIndex = searchIndex;\n\t\t\t\t\t\t\tlog.info(\"truncate index found and = \" + truncateIndex);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// possible that no activity exceeded the boundary date, so modify activity list only if appropriate\n\t\t\t\t\tif(truncateIndex != null) {\n\t\t\t\t\t\t// for subList call, first index is inclusive and second is exclusive\n\t\t\t\t\t\tallTeamsRequestedActivities = allTeamsRequestedActivities.subList(0, truncateIndex);\n\t\t\t\t\t\tlog.info(\"Activity list truncated. New list size = \" + allTeamsRequestedActivities.size());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Package requested activities into JSON\n\t\t\tJSONArray jsonActivitiesArray = new JSONArray();\n\t\t\tfor(Activity a : allTeamsRequestedActivities) {\n\t\t\t\tJSONObject jsonActivityObj = new JSONObject();\n\t\t\t\tjsonActivityObj.put(\"activityId\", KeyFactory.keyToString(a.getKey()));\n\t\t\t\tjsonActivityObj.put(\"text\", a.getText());\n\t\t\t\t// TODO is the Twitter Date returned GMT? -- if not fix this code\n\t\t\t\tjsonActivityObj.put(\"createdDate\", GMT.convertToLocalDate(a.getCreatedGmtDate(), tz));\n\t\t\t\tif(isGetActivitiesForAllTeamsApi) {\n\t\t\t\t\tjsonActivityObj.put(\"teamId\", a.getTeamId());\n\t\t\t\t\tjsonActivityObj.put(\"teamName\", a.getTeamName());\n\t\t\t\t}\n\t\t\t\tjsonActivityObj.put(\"cacheId\", a.getCacheId());\n\t\t\t\tjsonActivityObj.put(\"numberOfLikeVotes\", a.getNumberOfLikeVotes());\n\t\t\t\tjsonActivityObj.put(\"numberOfDislikeVotes\", a.getNumberOfDislikeVotes());\n\t\t\t\tif(a.getThumbNailBase64() != null) {\n\t\t\t\t\tjsonActivityObj.put(\"thumbNail\",a.getThumbNailBase64());\n\t\t\t\t\tBoolean isVideo = a.getVideoBase64() == null ? false : true;\n\t\t\t\t\tjsonActivityObj.put(\"isVideo\", isVideo);\n\t\t\t\t}\n\t\t\t\tBoolean useTwitterRet = a.getTwitterId() == null ? false : true;\n\t\t\t\tjsonActivityObj.put(\"useTwitter\", useTwitterRet);\n\t\t\t\tjsonActivitiesArray.put(jsonActivityObj);\n\t\t\t}\n\t\t\tlog.info(\"JSON object built successfully\");\n\t\t\tjsonReturn.put(\"activities\", jsonActivitiesArray);\n\n } catch (JSONException e) {\n\t\t\tlog.severe(\"error converting json representation into a JSON object\");\n\t\t\te.printStackTrace();\n\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t} catch (NoResultException e) {\n\t\t\tlog.severe(\"team not found\");\n\t\t\tapiStatus = ApiStatusCode.TEAM_NOT_FOUND;\n\t\t} catch (NonUniqueResultException e) {\n\t\t\tlog.severe(\"should never happen - two or more teams have same team id\");\n\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t} catch (JSONException e) {\n\t\t\tlog.severe(\"error creating JSON return object\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn new JsonRepresentation(jsonReturn);\n }", "public void getAllReportes() throws IOException{\n okhttp3.Request request = new okhttp3.Request.Builder()\n .url(BASE_URL+\"/reportes\")\n .build();\n\n client.newCall(request).enqueue(new Callback(){\n\n @Override\n public void onFailure(Call call, IOException e) {\n\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n System.out.println(response.body().string());\n }\n });\n }", "@Test\r\n\tpublic void testGetPieChartCurrentWeekQCStatus() {\r\n\t\tlog.debug(\"TESTING getPieChartCurrentWeekQCStatus\");\n\t\tgiven().spec(requestSpec).header(AUTH, accessToken).contentType(ContentType.JSON)\r\n\t\t\t.when().get(baseUrl + \"all/reports/batch/2200/pie\")\r\n\t\t\t.then().assertThat().statusCode(404);\n\t}", "ResponseEntity<Response> registeredPlaces(int days);", "@Path(\"device/stats/{deviceId}\")\n @GET\n @ApiOperation(\n consumes = MediaType.APPLICATION_JSON,\n httpMethod = \"GET\",\n value = \"Retrieve Sensor data for the device type\",\n notes = \"\",\n response = Response.class,\n tags = \"picavi\",\n extensions = {\n @Extension(properties = {\n @ExtensionProperty(name = PicaviConstants.SCOPE, value = \"perm:picavi:enroll\")\n })\n }\n )\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n Response getPicaviDeviceStats(@PathParam(\"deviceId\") String deviceId, @QueryParam(\"from\") long from,\n @QueryParam(\"to\") long to, @QueryParam(\"sensorType\") String sensorType);", "public GenericReportResponse getMininmalSprintReport(BasicReportRequestParams params, JiraRestClient restClient,\n JiraClient jiraClient) {\n logger.debug(\"getMininmalSprintReport\");\n String sprint = params.getSprintName();\n String project = params.getSubProjectName();\n Integer maxResults = 1000;\n Integer startAt = 0;\n int rvId = 0;\n int sprintId = 0;\n if (project == null || sprint == null) {\n logger.error(\"Error: Missing required paramaters\");\n throw new DataException(HttpStatus.BAD_REQUEST.toString(), \"Missing required paramaters\");\n }\n List<SprintReport> sprintReportList = new ArrayList<>();\n SprintReport sprintReport;\n Iterable<Issue> retrievedIssue = restClient.getSearchClient()\n .searchJql(\" sprint = '\" + sprint + \"' AND project = '\" + project + \"'\", 1000, 0, null).claim()\n .getIssues();\n Pattern pattern = Pattern.compile(\"\\\\[\\\".*\\\\[id=(.*),rapidViewId=(.*),.*,name=(.*),startDate=(.*),.*\\\\]\");\n Matcher matcher = pattern\n .matcher(retrievedIssue.iterator().next().getFieldByName(\"Sprint\").getValue().toString());\n if (matcher.find()) {\n sprintId = Integer.parseInt(matcher.group(1));\n rvId = Integer.parseInt(matcher.group(2));\n }\n while (retrievedIssue.iterator().hasNext()) {\n for (Issue issueValue : retrievedIssue) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue.getKey());\n sprintReport = new SprintReport();\n try {\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n startAt += 1000;\n maxResults += 1000;\n retrievedIssue = restClient.getSearchClient()\n .searchJql(\" sprint = '\" + sprint + \"' AND project = '\" + project + \"'\", maxResults, startAt, null)\n .claim().getIssues();\n }\n for (int i = 0; i < 2; i++) {\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n }\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReport.setIssueKey(\"Removed Issues\");\n sprintReportList.add(sprintReport);\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n try {\n RemovedIssues removedIssues = removedIssuesService.get(jiraClient.getRestClient(), rvId, sprintId);\n for (SprintIssue issueValue : removedIssues.getPuntedIssues()) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue.getKey());\n sprintReport = new SprintReport();\n try {\n\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n for (int i = 0; i < 2; i++) {\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n }\n sprintReport = new SprintReport();\n sprintReport.setIssueKey(\"Issues Added during Sprint\");\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n for (String issueValue : removedIssues.getIssuesAdded()) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue);\n sprintReport = new SprintReport();\n try {\n\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n } catch (JiraException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n String filename = project + \"_\" + sprint + \"_minimal_report.csv\";\n filename = filename.replace(\" \", \"_\");\n ConvertToCSV exportToCSV = new ConvertToCSV();\n exportToCSV.exportToCSV(env.getProperty(\"csv.filename\") + filename, sprintReportList);\n GenericReportResponse response = new GenericReportResponse();\n response.setDownloadLink(env.getProperty(\"csv.aliaspath\") + filename);\n response.setReportAsJson(JSONUtils.toJson(sprintReportList));\n return response;\n }", "public List getUserTravelHistoryYear(Integer userId, Date hireDateStart) {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n\n //build the current hireDateStart and hireDateEnd for the search range\n //current date\n GregorianCalendar currentDate = new GregorianCalendar();\n currentDate.setTime(new Date());\n\n GregorianCalendar startHireDate = new GregorianCalendar();\n startHireDate.setTime(hireDateStart);\n //this is the start of current employment year\n startHireDate.set(Calendar.YEAR, currentDate.get(Calendar.YEAR));\n\n GregorianCalendar hireDateEnd = new GregorianCalendar();\n hireDateEnd.setTime(startHireDate.getTime());\n //advance its year by one\n //this is the end of the current employment year\n hireDateEnd.add(Calendar.YEAR, 1);\n\n //adjust to fit in current employment year\n if (startHireDate.after(currentDate)) {\n hireDateEnd.add(Calendar.YEAR, -1);\n startHireDate.add(Calendar.YEAR, -1);\n }\n\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n\n try {\n //retreive away events from database\n\n //this is the main class\n Criteria criteria = session.createCriteria(Away.class);\n\n //sub criteria; the user\n Criteria subCriteria = criteria.createCriteria(\"User\");\n subCriteria.add(Expression.eq(\"userId\", userId));\n\n criteria.add(Expression.ge(\"startDate\", startHireDate.getTime()));\n criteria.add(Expression.le(\"startDate\", hireDateEnd.getTime()));\n criteria.add(Expression.eq(\"type\", \"Travel\"));\n\n criteria.addOrder(Order.asc(\"startDate\"));\n\n //remove duplicates\n criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\n\n results = criteria.list();\n\n return results;\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "private void getReportReasonApi() {\n if (CommonClass.isNetworkAvailable(mActivity)) {\n String url = ApiUrl.REPORT_USER_REASON + \"?token=\" + mSessionManager.getAuthToken();\n mProgressBar.setVisibility(View.VISIBLE);\n OkHttp3Connection.doOkHttp3Connection(TAG, url, OkHttp3Connection.Request_type.GET, new JSONObject(), new OkHttp3Connection.OkHttp3RequestCallback() {\n @Override\n public void onSuccess(String result, String user_tag) {\n System.out.println(TAG + \" \" + \"get report reason res=\" + result);\n\n mProgressBar.setVisibility(View.GONE);\n System.out.println(TAG + \" \" + \"report post reason res=\" + result);\n\n Gson gson = new Gson();\n ReportProductMain reportProductMain = gson.fromJson(result, ReportProductMain.class);\n\n switch (reportProductMain.getCode()) {\n // success\n case \"200\":\n arrayListReportItem.addAll(reportProductMain.getData());\n if (arrayListReportItem != null && arrayListReportItem.size() > 0) {\n rL_submit.setVisibility(View.VISIBLE);\n ReportItemRvAdapter reportItemRvAdapter = new ReportItemRvAdapter(mActivity, arrayListReportItem, true);\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(mActivity);\n rV_reportUser.setLayoutManager(linearLayoutManager);\n rV_reportUser.setAdapter(reportItemRvAdapter);\n }\n break;\n\n // auth token expired\n case \"401\":\n CommonClass.sessionExpired(mActivity);\n break;\n\n //error\n default:\n break;\n }\n }\n\n @Override\n public void onError(String error, String user_tag) {\n\n }\n });\n } else\n CommonClass.showSnackbarMessage(rL_rootElement, getResources().getString(R.string.NoInternetAccess));\n }", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n Log.d(\"@@@@@LOOK HERE TIME@@\", show);\n Log.d(\"@@@@@LOOK HERE DATE@@\", show2);\n Log.d(\"@@@@@LOOK HERE DATETIME\", show3);\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n // All-day events don't have start times, so just use\n // the start date.\n start = event.getStart().getDate();\n }\n\n eventStrings.add(\n String.format(\"%s (%s)\", event.getSummary(), start));\n }\n List<String> realStrings = new ArrayList<String>();\n for (String a:eventStrings\n ) {\n // Log.d(\"@@@@\", a);\n String day;\n String korTimeSpeech = null;\n String newSpeech = null;\n day = a.substring(a.indexOf(\"(\"), a.indexOf(\")\"));\n day = day.substring(1);\n\n if(day.length() > 16) {\n int hour = Integer.parseInt(day.substring(11, 13));\n if(hour < 12) {\n korTimeSpeech = \"오전 \";\n } else{\n korTimeSpeech = \"오후 \";\n hour = hour - 12;\n }\n korTimeSpeech = korTimeSpeech + hour + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = korTimeSpeech + newSpeech;\n //Make it in day format\n day = day.substring(0, day.indexOf(\"T\"));\n }else {\n // korTimeSpeech = day.substring(11, 13) + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = newSpeech;\n }\n\n if (day.equals(nowDay)) {\n realStrings.add(newSpeech);\n }\n }\n\n return realStrings;\n }", "public static int deleteSessionId(){\n\t\tint totalDeleted = 0;\n\t\t//This should total 12 hours in milliseconds\n\t\tlong twelveHours = 1000 * 60 * 60 * 12; \n\t\t//Current time (long format)\n\t\tDate date = new Date();\n\t\tlong currentTimeMilliseconds = date.getTime();\n\t\t//Current time - 12 hours\n\t\tlong timeToDeleteBy = currentTimeMilliseconds - twelveHours;\n\t\t\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\t\n\t\t//Prepare the Query. No filters as we want ALL sessionIds\n\t\tQuery q = new Query(\"sessionId\");\n\t\t\n\t\t// Use PreparedQuery interface to retrieve results\n\t\tPreparedQuery pq = datastore.prepare(q);\n\t\t//Loops through all results. In our case, we are going to just use the first one\n\t\tfor (Entity result : pq.asIterable()) {\n\t\t\tlog.warning(\"Entity returned, found sessionId\");\n\t\t\t\n\t\t\tlong expiryTime = 0L;\n\t\t\ttry { //Try catch here in case the casting goes incorrectly\n\t\t\t\texpiryTime = (long) result.getProperty(\"dateCreated\");\n\t\t\t} catch (Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif(expiryTime == 0){\n\t\t\t\tcontinue; //Breaks the current loop\n\t\t\t}\n\t\t\t//Check against the date and see if it is more than 12 hours old\n\t\t\tif(expiryTime < timeToDeleteBy){\n\t\t\t\t//More than 12 hours old, delete \n\t\t\t\tKey key = result.getKey();\n\t\t\t\tdatastore.delete(key);\n\t\t\t\t//Increment the counter so we know one was deleted\n\t\t\t\ttotalDeleted++;\n\t\t\t}\t\t\n\t\t}\n\t\treturn totalDeleted;\n\t}", "@RequestMapping(method = RequestMethod.GET)\n public Sessions retrieve(@RequestHeader(\"X-CS-Auth\") String auth,\n @RequestHeader(\"X-CS-Session\") String sessionId) {\n return sessionService.retrieve();\n }", "Collection<CalendarEvent> getActiveEvents(long when)\n{\n List<CalendarEvent> rslt = new ArrayList<CalendarEvent>();\n try {\n getAllEvents(when);\n rslt.addAll(cal_events);\n }\n catch (Exception e) {\n BasisLogger.logE(\"GOOGLECAL: problem getting events\",e);\n }\n return rslt;\n}", "private void viewReportList(int userGroupID){\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"select * from reports where user_group_id=\" + userGroupID + \" order by week asc\");\n\t\t\t//create table\n\t\t\tout.println(\"<form name=\" + formElement(\"input\") + \" method=\" + formElement(\"post\")+ \">\");\n\t\t\tout.println(\"<h1>Time Reports - View</h1>\");\n\t\t\tout.println(\"Select a time report to view\");\n\t\t out.println(\"<table border=\" + formElement(\"1\") + \">\");\n\t\t out.println(\"<tr><td>Selection</td><td>Last update</td><td>Week</td><td>Total Time</td><td>Signed</td></tr>\");\n\t\t int inWhile = 0; \n\t \t\n\t\t while(rs.next()){\t\t \t\n\t\t \tinWhile = 1;\n\t\t \tString reportID = \"\"+rs.getInt(\"ID\");\n\t\t\t\tDate date = rs.getDate(\"date\"); \n\t\t\t\tint week = rs.getInt(\"week\");\n\t\t\t\tint totalTime = rs.getInt(\"total_time\");\n\t\t\t\tint signed = rs.getInt(\"signed\");\n\t\t\t\t//print in box\n\t\t\t\tout.println(\"<tr>\");\n\t\t\t\tout.println(\"<td>\" + \"<input type=\" + formElement(\"radio\") + \" name=\" + formElement(\"reportID\") +\n\t\t\t\t\t\t\" value=\" + formElement(reportID) +\"></td>\");\t\t//radiobutton\n\t\t\t\tout.println(\"<td>\" + date.toString() + \"</td>\");\n\t\t\t\tout.println(\"<td>\" + week + \"</td>\");\n\t\t\t\tout.println(\"<td>\" + totalTime + \"</td>\");\n\t\t\t\tout.println(\"<td>\" + signString(signed) + \"</td>\");\n\t\t\t\tout.println(\"</tr>\");\n\t\t\t}\n\t\t out.println(\"</table>\");\n\t\t out.println(\"<hidden name='function' value='viewReport'>\");\t\t \n\t\t out.println(\"<input type=\" + formElement(\"submit\") + \" value=\"+ formElement(\"View\") +\">\");\n\t\t out.println(\"</form>\");\n\t\t if (inWhile == 0){\n\t\t \tout.println(\"No reports to show\");\n\t\t }\n\t\t} catch(SQLException e) {\n\t\t\tSystem.out.println(\"SQLException: \" + e.getMessage());\n\t\t\tSystem.out.println(\"SQLState: \" + e.getSQLState());\n\t\t\tSystem.out.println(\"VendorError: \" + e.getErrorCode());\n\t\t}\t\n\t}", "public void queryDevices(){\r\n\r\n\r\n reportsDb.get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\r\n\r\n\r\n\r\n\r\n\r\n @Override\r\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\r\n if(task.isSuccessful()){\r\n\r\n\r\n //Gets the snapshot of the database and added into a map data structure\r\n for (QueryDocumentSnapshot doc: task.getResult()){\r\n\r\n\r\n\r\n Map<String, Object> queryData = doc.getData();\r\n\r\n deviceID.add(doc.getId());\r\n deviceNames.add(queryData.get(\"Name\").toString());\r\n\r\n\r\n\r\n }\r\n\r\n //Passing in data into the recycler from the query, to create a list like view\r\n initialiseRecycler(deviceID, deviceNames);\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 }", "@GET\n public List<Session> getAllSessions() {\n log.debug(\"REST request to get all Sessions\");\n List<Session> sessions = sessionRepository.findAll();\n return sessions;\n }", "@GetMapping(\"/all-charts/{id}\")\n @Timed\n public ResponseEntity<List<ChartVO>> getAllCharts(@PathVariable Long id,\n @RequestParam(value = \"page\", required = false) Integer offset,\n @RequestParam(value = \"size\", required = false) Integer size,\n @RequestParam(value = \"state\", required = false) String state,\n @RequestParam(value = \"query\", required = false) String query\n ) throws URISyntaxException {\n log.debug(\"REST request to get all Charts By Facility\");\n Pageable pageable = new PageRequest(offset, size);\n //Query Map\n Map<String, Object> mapQuery = new HashMap<>();\n mapQuery.put(\"state\", state);\n mapQuery.put(\"query\", query);\n\n Page<ChartVO> chartVOS = chartService.findAllCharts(id, pageable, mapQuery);\n HttpHeaders httpHeaders = PaginationUtil.generatePaginationHttpHeaders(chartVOS, \"api/all-charts/\" + id);\n return new ResponseEntity<>(chartVOS.getContent(), httpHeaders, HttpStatus.OK);\n }", "@GetMapping(\"/charts-current-patients-vo/{id}\")\n @Timed\n public List<ChartVO> getAllChartsCurrentPatientsVO(@PathVariable Long id) {\n log.debug(\"REST request to get all ChartsVO By Facility\");\n ZonedDateTime now = ZonedDateTime.now();\n return chartService.findAllByFacilityWaitingRoomFalseAndDischargeDateVO(id, now);\n }", "public JSONObject getGSTComputationSummaryReport(JSONObject params) throws ServiceException, JSONException {\n JSONObject object = new JSONObject();\n JSONObject jMeta = new JSONObject();\n JSONArray jarrColumns = new JSONArray();\n JSONArray jarrRecords = new JSONArray();\n JSONArray dataJArr = new JSONArray();\n JSONArray array = new JSONArray();\n JSONArray array1 = new JSONArray();\n String start = params.optString(\"start\");\n String limit = params.optString(\"limit\");\n String companyId = params.optString(\"companyid\");\n /**\n * Put all required parameter for GST report\n */\n getEntityDataForRequestedModule(params);\n getColNumForRequestedModules(params);\n getLocalStateOfEntity(params);\n /**\n * Get Column Model\n */\n params.put(GSTR3BConstants.DETAILED_VIEW_REPORT, true);\n params.put(\"reportid\", Constants.GSTR3B_Summary_Report);\n getColumnModelForGSTRComputation(jarrRecords, jarrColumns, params);\n JSONObject jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_1(params);\n jSONObject.put(\"section\", \"4.1\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"heading\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_1);\n jSONObject.put(\"typeofsales\", \"Reg. sales\");\n jSONObject.put(\"enableViewDetail\", true);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_1_1(params);\n jSONObject.put(\"section\", \"4.2\");\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_1_1);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_1_2(params);\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_1_2);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"section\", \"4.3\");\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_1_3(params);\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_1_3);\n jSONObject.put(\"section\", \"4.4\");\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_2(params);\n jSONObject.put(\"section\", \"5.1\");\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"heading\", \"Inter State Unregistered Sales\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_2);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_2_2(params);\n jSONObject.put(\"section\", \"7.1\");\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"heading\", \"Other Unregistered Sales\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_2_2);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_3(params);\n jSONObject.put(\"section\", \"6.1\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"heading\", \"Zero Rated Supplies\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_3);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_3_1(params);\n jSONObject.put(\"section\", \"6.2\");\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n// jSONObject.put(\"heading\", \"Zero Rated Supplies\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_3_1);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_4(params);\n jSONObject.put(\"section\", \"8.1\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_4);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_4_1(params);\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_4_1);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"section\", \"8.2\");\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_4_2(params);\n jSONObject.put(\"section\", \"8.3\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_4_2);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_7(params);\n jSONObject.put(\"section\", \"9.1\");\n jSONObject.put(\"heading\", \"DN\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_7);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_7_1(params);\n jSONObject.put(\"section\", \"9.2\");\n// jSONObject.put(\"heading\", \"DN\");\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_1);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_7_2(params);\n jSONObject.put(\"section\", \"9.3\");\n jSONObject.put(\"enableViewDetail\", true);\n// jSONObject.put(\"heading\", \"DN\");\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_2);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_7_3(params);\n jSONObject.put(\"section\", \"9.4\");\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"heading\", \"CN\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_3);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_7_4(params);\n jSONObject.put(\"section\", \"9.5\");\n jSONObject.put(\"enableViewDetail\", true);\n// jSONObject.put(\"heading\", \"CN\");\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_4);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_7_5(params);\n jSONObject.put(\"section\", \"9.6\");\n jSONObject.put(\"enableViewDetail\", true);\n// jSONObject.put(\"heading\", \"CN\");\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_5);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_8(params);\n jSONObject.put(\"section\", \"9.7\");\n jSONObject.put(\"heading\", \"Refund\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_8);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_9(params);\n jSONObject = jSONObject.optJSONObject(\"gstr3Obj\");\n jSONObject.put(\"section\", \"11.1\");\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"heading\", \"Advance\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_9);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_9_1(params);\n jSONObject = jSONObject.optJSONObject(\"gstr3Obj\");\n jSONObject.put(\"section\", \"11.2\");\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_9_1);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_9_2(params);\n jSONObject = jSONObject.optJSONObject(\"gstr3Obj\");\n jSONObject.put(\"section\", \"11.3\");\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_9_2);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_10(params);\n jSONObject = jSONObject.optJSONObject(\"gstr3Obj\");\n jSONObject.put(\"section\", \"11.4\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_10);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"fmt\", \"T\");\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_10_1(params);\n jSONObject = jSONObject.optJSONObject(\"gstr3Obj\");\n jSONObject.put(\"section\", \"11.5\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_10_1);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Sales_Section_10_2(params);\n jSONObject = jSONObject.optJSONObject(\"gstr3Obj\");\n jSONObject.put(\"section\", \"11.6\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_10_2);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n dataJArr.put(jSONObject);\n /**\n * Total (Define Formula) Sales\n */\n jSONObject = new JSONObject();\n JSONObject reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"dataArr\", dataJArr);\n jSONObject = getTotalForGSTR3B(reqParams);\n JSONObject salesSummaryTotal = new JSONObject(jSONObject.toString());\n jSONObject.put(\"typeofsales\", \"Total Of Sales\");\n jSONObject.put(\"section\", \"11.7\");\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n dataJArr.put(jSONObject);\n\n JSONArray purchasesArr = new JSONArray();\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_1(params);\n jSONObject.put(\"section\", \"4.1\");\n jSONObject.put(\"heading\", \"Registered Purchases\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_1);\n purchasesArr.put(jSONObject);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_1_1(params);\n jSONObject.put(\"section\", \"4.2\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_1_1);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n purchasesArr.put(jSONObject);\n dataJArr.put(jSONObject);\n\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_3(params);\n jSONObject.put(\"section\", \"4.3\");\n jSONObject.put(\"heading\", \"Import\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_3);\n purchasesArr.put(jSONObject);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_3_1(params);\n jSONObject.put(\"section\", \"4.4\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_3_1);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n purchasesArr.put(jSONObject);\n dataJArr.put(jSONObject);\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_3_2(params);\n jSONObject.put(\"section\", \"4.5\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_3_2);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n purchasesArr.put(jSONObject);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_4(params);\n jSONObject.put(\"section\", \"4.6\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_4);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n purchasesArr.put(jSONObject);\n dataJArr.put(jSONObject);\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_5(params);\n jSONObject.put(\"section\", \"4.7\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_5);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n purchasesArr.put(jSONObject);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject.put(\"section\", \"4.8\");\n jSONObject.put(\"heading\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_8);\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"typeofsales\", \"ISD Invoices\");\n purchasesArr.put(jSONObject);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject.put(\"section\", \"4.9\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_8_1);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n purchasesArr.put(jSONObject);\n dataJArr.put(jSONObject);\n jSONObject = new JSONObject();\n jSONObject.put(\"section\", \"4.10\");\n jSONObject.put(\"heading\", \"TDS (Tax Deduct at Source)\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_9);\n purchasesArr.put(jSONObject);\n dataJArr.put(jSONObject);\n jSONObject = new JSONObject();\n jSONObject.put(\"section\", \"4.11\");\n jSONObject.put(\"heading\", \"TCS (Tax Collected at source)\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_10);\n purchasesArr.put(jSONObject);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_11(params);\n// jSONObject = jSONObject.optJSONObject(\"gstr3Obj\");\n jSONObject.put(\"section\", \"4.12\");\n jSONObject.put(\"heading\", \"Advance payments\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_11);\n purchasesArr.put(jSONObject);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_12(params);\n// jSONObject = jSONObject.optJSONObject(\"gstr3Obj\");\n jSONObject.put(\"section\", \"4.13\");\n jSONObject.put(\"heading\", \"Advance adjustment\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_12);\n purchasesArr.put(jSONObject);\n dataJArr.put(jSONObject);\n\n /**\n * Define total.\n */\n jSONObject = new JSONObject();\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"isPurchase\", true);\n reqParams.put(\"dataArr\", purchasesArr);\n jSONObject = getTotalForGSTR3B(reqParams);\n JSONObject purchaseSummaryTotal = new JSONObject(jSONObject.toString());\n jSONObject.put(\"typeofsales\", \"Total Of Purchases\");\n jSONObject.put(\"section\", \"4.14\");\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n dataJArr.put(jSONObject);\n// /**\n// * 11.1.\n// */\n// jSONObject = new JSONObject();\n// jSONObject.put(\"heading\", \"Input Tax Credit Reversal/Reclaim\");\n// jSONObject.put(\"level\", 0);\n// jSONObject.put(\"leaf\", false);\n// jSONObject.put(\"fmt\", \"B\");\n// jSONObject.put(\"section\", \"11.1\");\n// dataJArr.put(jSONObject);\n//\n// /**\n// * Amount in terms of rule 2(2) of ITC Rules.\n// */\n// jSONObject = new JSONObject();\n// jSONObject.put(\"section\", \"11.2\");\n// jSONObject.put(\"typeofsales\", \"Amount in terms of rule 2(2) of ITC Rules\");\n// jSONObject.put(\"level\", 1);\n// jSONObject.put(\"leaf\", true);\n// jSONObject.put(\"fmt\", \"T\");\n// dataJArr.put(jSONObject);\n//\n// /**\n// * Amount in terms of rule 4(1)(j) (ii) of ITC Rules.\n// */\n// jSONObject = new JSONObject();\n// jSONObject.put(\"section\", \"11.3\");\n// jSONObject.put(\"typeofsales\", \"Amount in terms of rule 4(1)(j) (ii) of ITC Rules\");\n// jSONObject.put(\"level\", 1);\n// jSONObject.put(\"leaf\", true);\n// jSONObject.put(\"fmt\", \"T\");\n// dataJArr.put(jSONObject);\n// /**\n// * Amount in terms of rule 7 (1) (m) of ITC Rules.\n// */\n// jSONObject = new JSONObject();\n// jSONObject.put(\"section\", \"11.4\");\n// jSONObject.put(\"typeofsales\", \"Amount in terms of rule 7 (1) (m) of ITC Rules\");\n// jSONObject.put(\"level\", 1);\n// jSONObject.put(\"leaf\", true);\n// jSONObject.put(\"fmt\", \"T\");\n// dataJArr.put(jSONObject);\n// /**\n// * Amount in terms of rule 8(1) (h) of the ITC Rules.\n// */\n// jSONObject = new JSONObject();\n// jSONObject.put(\"section\", \"11.5\");\n// jSONObject.put(\"typeofsales\", \"Amount in terms of rule 8(1) (h) of the ITC Rules\");\n// jSONObject.put(\"level\", 1);\n// jSONObject.put(\"leaf\", true);\n// jSONObject.put(\"fmt\", \"T\");\n// dataJArr.put(jSONObject);\n// /**\n// * Amount in terms of rule 7 (2)(a) of ITC Rules.\n// */\n// jSONObject = new JSONObject();\n// jSONObject.put(\"section\", \"11.6\");\n// jSONObject.put(\"typeofsales\", \"Amount in terms of rule 7 (2)(a) of ITC Rules\");\n// jSONObject.put(\"level\", 1);\n// jSONObject.put(\"leaf\", true);\n// jSONObject.put(\"fmt\", \"T\");\n// dataJArr.put(jSONObject);\n// /**\n// * Amount in terms of rule 7(2)(b) of ITC Rules .\n// */\n// jSONObject = new JSONObject();\n// jSONObject.put(\"section\", \"11.7\");\n// jSONObject.put(\"typeofsales\", \"Amount in terms of rule 7(2)(b) of ITC Rules\");\n// jSONObject.put(\"level\", 1);\n// jSONObject.put(\"leaf\", true);\n// jSONObject.put(\"fmt\", \"T\");\n// dataJArr.put(jSONObject);\n// /**\n// * On account of amount paid subsequent to reversal of ITC.\n// */\n// jSONObject = new JSONObject();\n// jSONObject.put(\"section\", \"11.8\");\n// jSONObject.put(\"typeofsales\", \"On account of amount paid subsequent to reversal of ITC\");\n// jSONObject.put(\"level\", 1);\n// jSONObject.put(\"leaf\", true);\n// jSONObject.put(\"fmt\", \"T\");\n// dataJArr.put(jSONObject);\n// /**\n// * Any other liability (Specify).\n// */\n// jSONObject = new JSONObject();\n// jSONObject.put(\"section\", \"11.9\");\n// jSONObject.put(\"typeofsales\", \"Any other liability (Specify)\");\n// jSONObject.put(\"level\", 1);\n// jSONObject.put(\"leaf\", true);\n// jSONObject.put(\"fmt\", \"T\");\n// dataJArr.put(jSONObject);\n \n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_11_10(params);\n jSONObject.put(\"section\", \"4.15\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"fmt\", \"B\");\n// jSONObject.put(\"leaf\", true);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"heading\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_11_10);\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_11_10);\n JSONObject ReversedITCObj = new JSONObject(jSONObject.toString());\n dataJArr.put(jSONObject);\n \n jSONObject = new JSONObject();\n jSONObject.put(\"section\", \"4.16\");\n jSONObject.put(\"heading\", \"ITC Reclaimed\");\n jSONObject.put(\"typeofsales\", \"ITC Reclaimed\");\n jSONObject.put(\"level\", 0);\n// jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"B\");\n dataJArr.put(jSONObject);\n /**\n * ITC claimed on mismatched/duplication of invoices/debit notes.\n */\n// jSONObject = new JSONObject();\n// jSONObject.put(\"section\", \"12.1\");\n// jSONObject.put(\"heading\", \"Addition & Reduction\");\n// jSONObject.put(\"level\", 0);\n// jSONObject.put(\"leaf\", false);\n// jSONObject.put(\"fmt\", \"B\");\n// jSONObject.put(\"typeofsales\", \"ITC claimed on mismatched/duplication of invoices/debit notes\");\n// dataJArr.put(jSONObject);\n// /**\n// * Tax liability on mismatched credit notes.\n// */\n// jSONObject = new JSONObject();\n// jSONObject.put(\"section\", \"12.2\");\n// jSONObject.put(\"typeofsales\", \"Tax liability on mismatched credit notes \");\n// jSONObject.put(\"level\", 1);\n// jSONObject.put(\"leaf\", true);\n// jSONObject.put(\"fmt\", \"T\");\n// dataJArr.put(jSONObject);\n// /**\n// * Reclaim on account of rectification of mismatched invoices/debit\n// * notes .\n// */\n// jSONObject = new JSONObject();\n// jSONObject.put(\"section\", \"12.3\");\n// jSONObject.put(\"typeofsales\", \"Reclaim on account of rectification of mismatched invoices/debit notes \");\n// jSONObject.put(\"level\", 1);\n// jSONObject.put(\"leaf\", true);\n// jSONObject.put(\"fmt\", \"T\");\n// dataJArr.put(jSONObject);\n// /**\n// * Reclaim on account of rectification of mismatched credit note.\n// */\n// jSONObject = new JSONObject();\n// jSONObject.put(\"section\", \"12.4\");\n// jSONObject.put(\"typeofsales\", \"Reclaim on account of rectification of mismatched credit note\");\n// jSONObject.put(\"level\", 1);\n// jSONObject.put(\"leaf\", true);\n// jSONObject.put(\"fmt\", \"T\");\n// dataJArr.put(jSONObject);\n// /**\n// * Negative tax liability from previous tax periods.\n// */\n// jSONObject = new JSONObject();\n// jSONObject.put(\"section\", \"12.5\");\n// jSONObject.put(\"typeofsales\", \"Negative tax liability from previous tax periods\");\n// jSONObject.put(\"level\", 1);\n// jSONObject.put(\"leaf\", true);\n// jSONObject.put(\"fmt\", \"T\");\n// dataJArr.put(jSONObject);\n// /**\n// * Tax paid on advance in earlier tax periods and adjusted with tax on\n// * supplies made in current tax period.\n// */\n// jSONObject = new JSONObject();\n// jSONObject.put(\"section\", \"12.6\");\n// jSONObject.put(\"typeofsales\", \"Tax paid on advance in earlier tax periods and adjusted with tax on supplies made in current tax period\");\n// jSONObject.put(\"level\", 1);\n// jSONObject.put(\"leaf\", true);\n// jSONObject.put(\"fmt\", \"T\");\n// dataJArr.put(jSONObject);\n\n /**\n * GST Payable.\n */\n jSONObject = new JSONObject();\n// jSONObject.put(\"section\", \"14.1\");\n jSONObject.put(\"heading\", \"GST Payable\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n dataJArr.put(jSONObject);\n\n// salesSummaryTotal.put(\"section\", \"14.2\");\n salesSummaryTotal.put(\"typeofsales\", \"Total Sales (Summary)\");\n salesSummaryTotal.put(\"level\", 1);\n salesSummaryTotal.put(\"leaf\", true);\n salesSummaryTotal.put(\"fmt\", \"T\");\n dataJArr.put(salesSummaryTotal);\n\n// purchaseSummaryTotal.put(\"section\", \"14.3\");\n purchaseSummaryTotal.put(\"typeofsales\", \"Total Purchases (Summary)\");\n purchaseSummaryTotal.put(\"level\", 1);\n purchaseSummaryTotal.put(\"leaf\", true);\n purchaseSummaryTotal.put(\"fmt\", \"T\");\n dataJArr.put(purchaseSummaryTotal);\n\n jSONObject = new JSONObject();\n jSONObject.put(\"typeofsales\", \"Total GST Payable [11.7-(4.14-4.15+4.16)]\");\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(salesSummaryTotal.optDouble(\"taxableamt\", 0.0) - purchaseSummaryTotal.optDouble(\"taxableamt\", 0.0)+ReversedITCObj.optDouble(\"taxableamt\", 0.0), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(salesSummaryTotal.optDouble(\"igst\", 0.0) - purchaseSummaryTotal.optDouble(\"igst\", 0.0)+ReversedITCObj.optDouble(\"igst\", 0.0), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(salesSummaryTotal.optDouble(\"cgst\", 0.0) - purchaseSummaryTotal.optDouble(\"cgst\", 0.0)+ReversedITCObj.optDouble(\"cgst\", 0.0), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(salesSummaryTotal.optDouble(\"csgst\", 0.0) - purchaseSummaryTotal.optDouble(\"csgst\", 0.0)+ReversedITCObj.optDouble(\"csgst\", 0.0), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(salesSummaryTotal.optDouble(\"sgst\", 0.0) - purchaseSummaryTotal.optDouble(\"sgst\", 0.0)+ReversedITCObj.optDouble(\"sgst\", 0.0), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(salesSummaryTotal.optDouble(\"totaltax\", 0.0) - purchaseSummaryTotal.optDouble(\"totaltax\", 0.0)+ReversedITCObj.optDouble(\"totaltax\", 0.0), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount(salesSummaryTotal.optDouble(\"totalamount\", 0.0) - purchaseSummaryTotal.optDouble(\"totalamount\", 0.0)+ReversedITCObj.optDouble(\"totalamount\", 0.0), companyId));\n dataJArr.put(jSONObject);\n \n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_13_1(params);\n jSONObject.put(\"section\", \"4.17\");\n jSONObject.put(\"heading\", \"Ineligible ITC\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_13_1);\n dataJArr.put(jSONObject);\n \n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_6(params);\n jSONObject.put(\"section\", \"5.1\");\n jSONObject.put(\"heading\", \"Composition\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_6);\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_7(params);\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"section\", \"5.2\");\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"heading\", \"Exempted\");\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_7);\n \n dataJArr.put(jSONObject);\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_7_1(params);\n jSONObject.put(\"section\", \"5.3\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_7_1);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"fmt\", \"T\");\n dataJArr.put(jSONObject);\n \n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_7_2(params);\n jSONObject.put(\"section\", \"5.4\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_7_2);\n jSONObject.put(\"level\", 1);\n jSONObject.put(\"leaf\", true);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"fmt\", \"T\");\n dataJArr.put(jSONObject);\n\n jSONObject = new JSONObject();\n jSONObject = getGSTComputation_Purchase_Section_2(params);\n jSONObject.put(\"section\", \"5.5\");\n jSONObject.put(\"heading\", \"Unregistered\");\n jSONObject.put(\"level\", 0);\n jSONObject.put(\"enableViewDetail\", true);\n jSONObject.put(\"leaf\", false);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"typeofsales\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_2);\n dataJArr.put(jSONObject);\n \n JSONArray pagedJson = new JSONArray();\n pagedJson = dataJArr;\n if (!StringUtil.isNullOrEmpty(start) && !StringUtil.isNullOrEmpty(limit)) {\n pagedJson = StringUtil.getPagedJSON(pagedJson, Integer.parseInt(start), Integer.parseInt(limit));\n }\n object.put(\"totalCount\", dataJArr.length());\n object.put(\"columns\", jarrColumns);\n object.put(\"coldata\", pagedJson);\n jMeta.put(\"totalProperty\", \"totalCount\");\n jMeta.put(\"root\", \"coldata\");\n jMeta.put(\"fields\", jarrRecords);\n object.put(\"metaData\", jMeta);\n if (params.optBoolean(\"isExport\")) {\n object.put(\"data\", dataJArr);\n object.put(\"columns\", jarrColumns);\n }\n return object;\n }", "public abstract SortedSet<CalendarEvent> getEventsAt(User user, Date day);", "public List getUserUnpaidHistoryYear(Integer userId, Date hireDateStart) {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n\n //build the current hireDateStart and hireDateEnd for the search range\n //current date\n GregorianCalendar currentDate = new GregorianCalendar();\n currentDate.setTime(new Date());\n\n GregorianCalendar startHireDate = new GregorianCalendar();\n startHireDate.setTime(hireDateStart);\n //this is the start of current employment year\n startHireDate.set(Calendar.YEAR, currentDate.get(Calendar.YEAR));\n\n GregorianCalendar hireDateEnd = new GregorianCalendar();\n hireDateEnd.setTime(startHireDate.getTime());\n //advance its year by one\n //this is the end of the current employment year\n hireDateEnd.add(Calendar.YEAR, 1);\n\n //adjust to fit in current employment year\n if (startHireDate.after(currentDate)) {\n hireDateEnd.add(Calendar.YEAR, -1);\n startHireDate.add(Calendar.YEAR, -1);\n }\n\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n\n try {\n //retreive away events from database\n\n //this is the main class\n Criteria criteria = session.createCriteria(Away.class);\n\n //sub criteria; the user\n Criteria subCriteria = criteria.createCriteria(\"User\");\n subCriteria.add(Expression.eq(\"userId\", userId));\n\n criteria.add(Expression.ge(\"startDate\", startHireDate.getTime()));\n criteria.add(Expression.le(\"startDate\", hireDateEnd.getTime()));\n criteria.add(Expression.eq(\"type\", \"Unpaid\"));\n\n criteria.addOrder(Order.asc(\"startDate\"));\n\n //remove duplicates\n criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\n\n results = criteria.list();\n\n return results;\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }" ]
[ "0.52614504", "0.5169401", "0.47319996", "0.47297323", "0.4718946", "0.4691638", "0.4685363", "0.4660034", "0.46248335", "0.4616688", "0.46096185", "0.4608382", "0.4572577", "0.45629373", "0.4559017", "0.45530057", "0.45284006", "0.4515722", "0.4509274", "0.4483595", "0.44757807", "0.44595844", "0.44555333", "0.44505456", "0.4423361", "0.4412595", "0.44084167", "0.43816555", "0.43706134", "0.43703327", "0.43656754", "0.43641895", "0.43632862", "0.43519044", "0.43457136", "0.43335667", "0.43150795", "0.43112606", "0.43051794", "0.43036026", "0.4291963", "0.42853045", "0.42808482", "0.4273124", "0.4261553", "0.42579314", "0.42484605", "0.42472762", "0.42450583", "0.42367068", "0.4228515", "0.42159012", "0.42069173", "0.41950262", "0.41901466", "0.41872698", "0.41804296", "0.417049", "0.41591108", "0.41583988", "0.4157233", "0.41534743", "0.4145776", "0.41411045", "0.4137801", "0.41351637", "0.41306928", "0.41228864", "0.41226354", "0.4121715", "0.41178122", "0.41138557", "0.41116118", "0.41007343", "0.40969557", "0.4096824", "0.40954807", "0.409337", "0.4082968", "0.40788403", "0.40717828", "0.40612376", "0.4061012", "0.4060207", "0.40500036", "0.40472546", "0.40450776", "0.4042748", "0.40410364", "0.40378138", "0.40353364", "0.40329158", "0.40286472", "0.40268072", "0.40252528", "0.4018969", "0.40139848", "0.40132594", "0.40131125", "0.4008842" ]
0.63320994
0
Parses and prints the Analytics Reporting API V4 response.
private static void printResponse(GetReportsResponse response) { for (Report report: response.getReports()) { ColumnHeader header = report.getColumnHeader(); List<String> dimensionHeaders = header.getDimensions(); List<MetricHeaderEntry> metricHeaders = header.getMetricHeader().getMetricHeaderEntries(); List<ReportRow> rows = report.getData().getRows(); if (rows == null) { System.out.println("No data found for " + VIEW_ID); return; } for (ReportRow row: rows) { List<String> dimensions = row.getDimensions(); List<DateRangeValues> metrics = row.getMetrics(); for (int i = 0; i < dimensionHeaders.size() && i < dimensions.size(); i++) { System.out.println(dimensionHeaders.get(i) + ": " + dimensions.get(i)); } for (int j = 0; j < metrics.size(); j++) { System.out.print("Date Range (" + j + "): "); DateRangeValues values = metrics.get(j); for (int k = 0; k < values.getValues().size() && k < metricHeaders.size(); k++) { System.out.println(metricHeaders.get(k).getName() + ": " + values.getValues().get(k)); } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parseResponse();", "private void \n\tanalyseTrackerResponse(\n\t\t\tTRTrackerAnnouncerResponse\ttracker_response )\n\t{\n\t\t// tracker_response.print();\n\t\tfinal TRTrackerAnnouncerResponsePeer[]\tpeers = tracker_response.getPeers();\n\n\t\tif ( peers != null ){\n\t\t\taddPeersFromTracker( tracker_response.getPeers()); \n\t\t}\n\n\t\tfinal Map extensions = tracker_response.getExtensions();\n\n\t\tif (extensions != null ){\n\t\t\taddExtendedPeersFromTracker( extensions );\n\t\t}\n\t}", "public TrackResponse() {\n\t\tsuper();\n\t}", "@Override\n public void onResponse(JSONObject response) {\n report = response;\n try {\n messageSent = report.getString(Const.REPORT_MESSAGE); //Gives profId\n chatLog = report.getString(Const.REPORT_CHATLOG); //Gives Chatlog\n } catch (JSONException jse) {\n // if an error occurs with the JSON, log it\n Log.d(\"Prof_Info_Fill\", jse.toString());\n }\n }", "public abstract void parseReport();", "public static void printResponse(String response)\n\t{\n\t\n\t}", "@Headers({\n \t\"Content-Type:application/vnd.api+json\" \n })\n @GET(\"api/v2/reports/{id}.json_api\")\n Call<Report> show(\n @retrofit2.http.Path(\"id\") Integer id, @retrofit2.http.Query(\"include\") String include\n );", "private void printResponseDetails(\n MutateGoogleAdsRequest request, MutateGoogleAdsResponse response) {\n // Parse the Mutate response to print details about the entities that were removed and/or\n // created in the request.\n for (int i = 0; i < response.getMutateOperationResponsesCount(); i++) {\n MutateOperation operationRequest = request.getMutateOperations(i);\n MutateOperationResponse operationResponse = response.getMutateOperationResponses(i);\n\n if (operationResponse.getResponseCase()\n != ResponseCase.ASSET_GROUP_LISTING_GROUP_FILTER_RESULT) {\n String entityName = operationResponse.getResponseCase().toString();\n // Trim the substring \"_RESULT\" from the end of the entity name.\n entityName = entityName.substring(0, entityName.lastIndexOf(\"_RESULT\"));\n System.out.printf(\"Unsupported entity type: %s%n\", entityName);\n }\n\n String resourceName =\n operationResponse.getAssetGroupListingGroupFilterResult().getResourceName();\n AssetGroupListingGroupFilterOperation assetOperation =\n operationRequest.getAssetGroupListingGroupFilterOperation();\n\n String operationType =\n StringUtils.capitalize(assetOperation.getOperationCase().toString().toLowerCase());\n System.out.printf(\n \"%sd a(n) AssetGroupListingGroupFilter with resource name: '%s'%n\",\n operationType, resourceName);\n }\n }", "java.lang.String getResponse();", "@Override\n public void onResponse(JSONObject response) {\n Log.d(TAG, \"Response: \" + response.toString());\n displayGraphResult(response);\n }", "@Override\n\t\t\t\t\t\tpublic void onResponse(String response) {\n\t\t\t\t\t\t\tparseRespense(response);\n\t\t\t\t\t\t}", "@Override\n public void onResponse(String response) {\n System.out.println(response.toString());\n }", "public static GetYYT_YDBGResponse parse(\r\n javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n GetYYT_YDBGResponse object = new GetYYT_YDBGResponse();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"GetYYT_YDBGResponse\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (GetYYT_YDBGResponse) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"GetYYT_YDBGResult\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\",\r\n \"GetYYT_YDBGResult\").equals(reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"GetYYT_YDBGResult\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setGetYYT_YDBGResult(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "private static GetReportsResponse getReport(Analyticsreporting service) throws IOException {\n // Create the DateRange object.\n DateRange dateRange = new DateRange();\n dateRange.setStartDate(\"7DaysAgo\");\n dateRange.setEndDate(\"today\");\n\n // Create the Metrics object.\n Metric sessions = new Metric()\n .setExpression(\"ga:sessions\")\n .setAlias(\"sessions\");\n\n //Create the Dimensions object.\n Dimension browser = new Dimension()\n .setName(\"ga:browser\");\n\n // Create the ReportRequest object.\n ReportRequest request = new ReportRequest()\n .setViewId(VIEW_ID)\n .setDateRanges(Arrays.asList(dateRange))\n .setDimensions(Arrays.asList(browser))\n .setMetrics(Arrays.asList(sessions));\n\n ArrayList<ReportRequest> requests = new ArrayList<ReportRequest>();\n requests.add(request);\n\n // Create the GetReportsRequest object.\n GetReportsRequest getReport = new GetReportsRequest()\n .setReportRequests(requests);\n\n // Call the batchGet method.\n GetReportsResponse response = service.reports().batchGet(getReport).execute();\n\n // Return the response.\n return response;\n }", "private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}", "private void printResponse(ResponseEntity responseEntity){\n logger.info(JsonUtil.toJson(responseEntity));\n }", "public static YPrintResponse parse(\r\n javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n YPrintResponse object = new YPrintResponse();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"YPrintResponse\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (YPrintResponse) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"YPrintResult\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"YPrintResult\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"YPrintResult\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setYPrintResult(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "public static void parseResponse(byte[] response) {\n int qr = ((response[2] & 0b10000000) >> 7);\n int opcode = ((response[2] & 0b01111000) >> 3);\n int aa = ((response[2] & 0b00000100) >> 2);\n int tc = ((response[2] & 0b00000010) >> 1);\n int rd = (response[2] & 0b00000001);\n int ra = ((response[3] & 0b10000000) >> 7);\n int res1 = ((response[3] & 0b01000000) >> 6);\n int res2 = ((response[3] & 0b00100000) >> 5);\n int res3 = ((response[3] & 0b00010000) >> 4);\n int rcode = (response[3] & 0b00001111);\n int qdcount = (response[4] << 8 | response[5]);\n int ancount = (response[6] << 8 | response[7]);\n int nscount = (response[8] << 8 | response[9]);\n int arcount = (response[10] << 8 | response[11]);\n/*\n System.out.println(\"QR: \" + qr);\n System.out.println(\"OPCODE: \"+ opcode);\n System.out.println(\"AA: \" + aa);\n System.out.println(\"TC: \" + tc);\n System.out.println(\"RD: \" + rd);\n System.out.println(\"RA: \" + ra);\n System.out.println(\"RES1: \" + res1);\n System.out.println(\"RES2: \" + res2);\n System.out.println(\"RES3: \" + res3);\n System.out.println(\"RCODE: \" + rcode);\n System.out.println(\"QDCOUNT: \" + qdcount);\n System.out.println(\"ANCOUNT: \" + ancount);\n System.out.println(\"NSCOUNT: \" + nscount);\n System.out.println(\"ARCOUNT: \" + arcount);\n*/\n // WHO DESIGNED THE DNS PACKET FORMAT AND WHY DID THEY ADD POINTERS?!?\n HashMap<Integer, String> foundLabels = new HashMap<>();\n\n int curByte = 12;\n for(int i = 0; i < qdcount; i++) {\n ArrayList<Integer> currentLabels = new ArrayList<>();\n while(true) {\n if((response[curByte] & 0b11000000) != 0) {\n // Labels have a length value, the first two bits have to be 0.\n System.out.println(\"ERROR\\tInvalid label length in response.\");\n System.exit(1);\n }\n StringBuilder working = new StringBuilder();\n int labelLen = response[curByte];\n int pntr = curByte++;\n if(labelLen == 0) {\n break;\n }\n for(int j = 0; j < labelLen; j++, curByte++) {\n working.append((char) response[curByte]);\n }\n currentLabels.add(pntr);\n for(Integer n : currentLabels) {\n if(foundLabels.containsKey(n)) {\n foundLabels.put(n, foundLabels.get(n) + \".\" + working.toString());\n } else {\n foundLabels.put(n, working.toString());\n }\n }\n }\n\n // Increment curByte every time we use it, meaning it always points to the byte we haven't used.\n short qtype = (short) ((response[curByte++] << 8) | response[curByte++]);\n short qclass = (short) ((response[curByte++] << 8) | response[curByte++]);\n }\n\n // This for loop handles all the Answer section parts.\n for(int i = 0; i < ancount; i++) {\n StringBuilder recordName = new StringBuilder();\n while(true) {\n if((response[curByte] & 0b11000000) == 0b11000000) {\n recordName.append(foundLabels.get(((response[curByte++] & 0b00111111) << 8) | response[curByte++]));\n break;\n } else if ((response[curByte] & 0b11000000) == 0) {\n StringBuilder working = new StringBuilder();\n int labelLen = response[curByte];\n int pntr = curByte++;\n if(labelLen == 0) {\n break;\n }\n for(int j = 0; j < labelLen; j++, curByte++) {\n working.append((char) response[curByte]);\n }\n recordName.append(working.toString());\n foundLabels.put(pntr, working.toString());\n } else {\n System.out.println(\"ERROR\\tInvalid label.\");\n System.exit(1);\n }\n }\n short type = (short) ((response[curByte++] << 8) | response[curByte++]);\n short dnsclass = (short) ((response[curByte++] << 8) | response[curByte++]);\n int ttl = ((response[curByte++] << 24) | (response[curByte++] << 16) | (response[curByte++] << 8) | response[curByte++]);\n short rdlength = (short) ((response[curByte++] << 8) | response[curByte++]);\n\n // If it is an A record\n if(type == 1) {\n\n // If it is an invalid length\n if(rdlength != 4) {\n System.out.println(\"ERROR\\tA records should only have a 4 byte RDATA\");\n System.exit(1);\n }\n\n // Output the IP record\n System.out.println(\"IP\\t\" + (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \".\" +\n (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \"\\tnonauth\");\n }\n else if(type == 5){\n\n // Creates string to hold combined record\n String cnameRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte++] & 0xFF;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte] & 0xff;\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n cnameRecord += \".\";\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n cnameRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n cnameRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"CNAME\\t\" + cnameRecord + \"\\tnonauth\");\n }\n else if(type == 2){\n\n // Creates string to hold combined record\n String nsRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n nsRecord += \".\";\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n nsRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n nsRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"NS\\t\" + nsRecord + \"\\tnonauth\");\n }\n else if(type == 15){\n\n // Creates string to hold combined record\n String mxRecord = \"\";\n\n curByte ++;\n\n // Gets the preference number of the given mail server\n int preference = (int) response[curByte];\n\n curByte++;\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n mxRecord += \".\";\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n mxRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n mxRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"MX\\t\" + mxRecord + \"\\t\" + preference + \"\\tnonauth\");\n }\n }\n\n for(int i = 0; i < nscount; i++) {\n StringBuilder recordName = new StringBuilder();\n while(true) {\n if((response[curByte] & 0b11000000) == 0b11000000) {\n recordName.append(foundLabels.get(((response[curByte++] & 0b00111111) << 8) | response[curByte++]));\n break;\n } else if ((response[curByte] & 0b11000000) == 0) {\n StringBuilder working = new StringBuilder();\n int labelLen = response[curByte];\n int pntr = curByte++;\n if(labelLen == 0) {\n break;\n }\n for(int j = 0; j < labelLen; j++, curByte++) {\n working.append((char) response[curByte]);\n }\n recordName.append(working.toString());\n foundLabels.put(pntr, working.toString());\n } else {\n System.out.println(\"ERROR\\tInvalid label.\");\n System.exit(1);\n }\n }\n short type = (short) ((response[curByte++] << 8) | response[curByte++]);\n short dnsclass = (short) ((response[curByte++] << 8) | response[curByte++]);\n int ttl = ((response[curByte++] << 24) | (response[curByte++] << 16) | (response[curByte++] << 8) | response[curByte++]);\n short rdlength = (short) ((response[curByte++] << 8) | response[curByte++]);\n\n if(type == 1) {\n if(rdlength != 4) {\n System.out.println(\"ERROR\\tA records should only have a 4 byte RDATA\");\n System.exit(1);\n }\n System.out.println(\"IP\\t\" + (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \".\" +\n (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \"\\tauth\");\n }\n // If CNAME\n else if(type == 5){\n\n // Creates string to hold combined record\n String cnameRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n cnameRecord += \".\";\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n cnameRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n cnameRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"CNAME\\t\" + cnameRecord + \"\\tauth\");\n }\n else if(type == 2){\n\n // Creates string to hold combined record\n String nsRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n nsRecord += \".\";\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n nsRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n nsRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"NS\\t\" + nsRecord + \"\\tauth\");\n\n }\n else if(type == 15){\n\n // Creates string to hold combined record\n String mxRecord = \"\";\n\n curByte ++;\n\n // Gets the preference number of the given mail server\n int preference = (int) response[curByte];\n\n curByte++;\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n mxRecord += \".\";\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n mxRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n mxRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"MX\\t\" + mxRecord + \"\\t\" + preference + \"\\tauth\");\n }\n }\n }", "@Path(\"/info\")\n @GET\n @Produces(XML)\n public Response getStorageReportInfo(){\n log.debug(\"Getting storage report info\");\n\n try {\n String xml = resource.getStorageReportInfo();\n return responseOkXml(xml);\n } catch (Exception e) {\n return responseBad(e);\n }\n }", "@Test\n public void printResponse(){\n when().get(\"http:://34.223.219.142:1212/ords/hr/countries\")\n .body().prettyPrint();\n\n }", "@Override\n public void onResponse(String response) {\n parseData(url, response);\n }", "@Override\n\tpublic void getAwardPointsResponse(String arg0, int arg1) {\n\t\t\n\t}", "public abstract Response[] collectResponse();", "public static LinkIDAuthnResponse parse(final Response response) {\n\n String userId = null;\n Map<String, List<LinkIDAttribute<Serializable>>> attributes = Maps.newHashMap();\n if (!response.getAssertions().isEmpty()) {\n Assertion assertion = response.getAssertions().get( 0 );\n userId = assertion.getSubject().getNameID().getValue();\n attributes.putAll( LinkIDSaml2Utils.getAttributeValues( assertion ) );\n }\n\n LinkIDPaymentResponse paymentResponse = LinkIDSaml2Utils.findPaymentResponse( response );\n LinkIDExternalCodeResponse externalCodeResponse = LinkIDSaml2Utils.findExternalCodeResponse( response );\n\n return new LinkIDAuthnResponse( userId, attributes, paymentResponse, externalCodeResponse );\n }", "@Override\n\t\t\tpublic void onResponse(Response response) throws IOException {\n Log.i(\"info\",response.body().string());\n\t\t\t}", "String getResponse();", "@Override\n public void onResponse(String response) {\n System.out.println(\"Recieved Response: \" + response);\n }", "@Override\n\t\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t\tSystem.out.println(arg0);\n\t\t\t\t\t\n\t\t\t\t}", "private void parseForRecords() {\r\n\t\tApacheAgentExecutionContext c = (ApacheAgentExecutionContext)this.fContext;\r\n\t\tString text = c.getStatusPageContent();\r\n\t\tif(text == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tswitch(c.getApacheVersion()) {\r\n\t\t\tcase VERSION_IBM_6_0_X:\r\n\t\t\t\trecords = ApacheUtils.parseExtendedStatus_ibm_6_0(text);\r\n\t\t\tbreak;\r\n\t\t\tcase VERSION_ORACLE_1_3_X:\r\n\t\t\tcase VERSION_IBM_1_3_X:\r\n\t\t\t\trecords = ApacheUtils.parseExtendedStatus_1_3_x(text);\r\n\t\t\tbreak;\r\n\t\t\tcase VERSION_ORACLE_2_0_X:\r\n\t\t\tcase VERSION_IBM_2_0_X:\r\n\t\t\t\trecords = ApacheUtils.parseExtendedStatus_1_3_x(text);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tif(records == null) {\r\n\t\t\tfContext.error(new InvalidDataPattern());\r\n\t\t}\r\n\t}", "@Test\n public void testFullIntrospectionResponse() throws IOException {\n String jsonResponse = getResource(\"responses/magento-schema-2.3.4.min.json\");\n\n // Check that the reference response can be parsed and fields are properly set\n Query query = QueryDeserializer.getGson().fromJson(jsonResponse, Query.class);\n __Schema schema = query.__getSchema();\n Assert.assertEquals(256, schema.getTypes().size());\n Assert.assertEquals(3, schema.getDirectives().size());\n }", "@Test\n public void destiny2GetPostGameCarnageReportTest() {\n Long activityId = null;\n InlineResponse20046 response = api.destiny2GetPostGameCarnageReport(activityId);\n\n // TODO: test validations\n }", "private void getReport() {\n\t\tdialog = ProgressDialog.show(this, \"\", \" Please wait...\", true);\n dialog.setCancelable(true);\n\t\tSharedPreferences pref = this.getSharedPreferences(\"User\", Activity.MODE_PRIVATE);\n\t\tString accessToken = pref.getString(\"access_token\", null);\n\t\tNetworkEngine.getInstance().getSeatReport(accessToken, bus_id, agent_id, new Callback<List<SeatReport>>() {\n\t\t\t\n\t\t\tpublic void success(List<SeatReport> arg0, Response arg1) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tseatReports = new ArrayList<SeatReport>();\n\t\t\t\tseatReports = arg0;\n\t\t\t\tlvSeatDetails.setAdapter(new SeatDetailsbyAgentAdapter(SeatDetailsbyAgentActivity.this, seatReports));\n\t\t\t\tdialog.cancel();\n\t\t\t}\n\t\t\t\n\t\t\tpublic void failure(RetrofitError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.cancel();\n\t\t\t\tLog.i(\"\",\"Hello Error Response Code: \"+arg0.getResponse().getStatus());\n\t\t\t}\n\t\t});\n\t}", "private void dumpResponse(ByteArrayOutputStream out) {\n try {\n OutputStream file = new BufferedOutputStream(new FileOutputStream(new File(dumpDir, dataRspFile)));\n file.write(out.toByteArray());\n file.flush();\n file.close();\n } catch (Exception e) {\n try {\n String s = new String(out.toByteArray(), \"utf-8\");\n Log.i(TAG, \"----------------rsp data begin---------------------\");\n Log.i(TAG, s);\n Log.i(TAG, \"----------------rsp data end-----------------------\");\n } catch (Exception e2) {\n\n }\n }\n }", "private void getReportReasonApi() {\n if (CommonClass.isNetworkAvailable(mActivity)) {\n String url = ApiUrl.REPORT_USER_REASON + \"?token=\" + mSessionManager.getAuthToken();\n mProgressBar.setVisibility(View.VISIBLE);\n OkHttp3Connection.doOkHttp3Connection(TAG, url, OkHttp3Connection.Request_type.GET, new JSONObject(), new OkHttp3Connection.OkHttp3RequestCallback() {\n @Override\n public void onSuccess(String result, String user_tag) {\n System.out.println(TAG + \" \" + \"get report reason res=\" + result);\n\n mProgressBar.setVisibility(View.GONE);\n System.out.println(TAG + \" \" + \"report post reason res=\" + result);\n\n Gson gson = new Gson();\n ReportProductMain reportProductMain = gson.fromJson(result, ReportProductMain.class);\n\n switch (reportProductMain.getCode()) {\n // success\n case \"200\":\n arrayListReportItem.addAll(reportProductMain.getData());\n if (arrayListReportItem != null && arrayListReportItem.size() > 0) {\n rL_submit.setVisibility(View.VISIBLE);\n ReportItemRvAdapter reportItemRvAdapter = new ReportItemRvAdapter(mActivity, arrayListReportItem, true);\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(mActivity);\n rV_reportUser.setLayoutManager(linearLayoutManager);\n rV_reportUser.setAdapter(reportItemRvAdapter);\n }\n break;\n\n // auth token expired\n case \"401\":\n CommonClass.sessionExpired(mActivity);\n break;\n\n //error\n default:\n break;\n }\n }\n\n @Override\n public void onError(String error, String user_tag) {\n\n }\n });\n } else\n CommonClass.showSnackbarMessage(rL_rootElement, getResources().getString(R.string.NoInternetAccess));\n }", "private void printReport() {\n\t\tSystem.out.println(getReport());\n\t}", "@Override\n public VideoListResponse fetchViewCountsResponse(String videoIDString) {\n try {\n ytService = getService();\n YouTube.Videos.List req2 = ytService\n .videos()\n .list(\"statistics\")\n .setKey(DEVELOPER_KEY)\n .setId(videoIDString);\n return req2.execute();\n } catch (IOException | GeneralSecurityException e) {\n e.printStackTrace();\n return new VideoListResponse();\n }\n\n }", "public ReportResponse(List<ReportData> reportData) {\n this.reportData = reportData;\n }", "public String toString() {\n return HTTP_VERSION + SP + code + SP + responseString;\n }", "@Override\n public void onResponse(String response) {\n Log.d(DEBUG_TAG, \"Response is: \"+ response);\n }", "@Override\n public Object parseNetworkResponse(Response response, int i) throws Exception {\n return response.body().string();\n }", "@Override\n\t\t\tpublic void analyzeResponse(String response) {\n\t\t\t\tif(response.equals(GlobalData.SESSION_ERROR_CODE)){\n\t\t\t\t\tAlertUtil.showToast(getString(R.string.session_error_mes), context);\n\t\t\t\t} else {\n\t\t\t\t\tString[] datam = response.split(\"#\"); // ID#nameで格納を想定\n\t\t\t\t\tif (datam[0].equals(\"-1\")) {\n\t\t\t\t\t\tAlertUtil.showToast(\"近くに招待可能なユーザはいないようです。\", context);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (GlobalData.D) {\n\t\t\t\t\t\t\tAlertUtil.showToast(response, context);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinviteUser(Integer.valueOf(datam[0]), datam[1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onResponse(String response) {\n Utils.logApiResponseTime(calendar, tag + \" \" + url);\n mHandleSuccessResponse(tag, response);\n\n }", "private CallResponse() {\n initFields();\n }", "public Map<String, Object> parseResponse(String response, String service, String version) throws TransformersException {\n\t\treturn parseResponse(response, service, getMethodName(service), version);\n\t}", "public void getAllReportes() throws IOException{\n okhttp3.Request request = new okhttp3.Request.Builder()\n .url(BASE_URL+\"/reportes\")\n .build();\n\n client.newCall(request).enqueue(new Callback(){\n\n @Override\n public void onFailure(Call call, IOException e) {\n\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n System.out.println(response.body().string());\n }\n });\n }", "@Override\r\n\t\t\tpublic void onResponse(Call<LogDataModel> call, Response<LogDataModel> response) {\n\t\t\t\tif(response.code() !=200) {\r\n\t\t\t\t\tSystem.out.println(\"Error in Connection\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tString value= \"\";\r\n\t\t\t\tvalue+=\"ID: \" + response.body().getId();\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Data: \\n \" + value);\r\n\t\t\t}", "com.google.search.now.wire.feed.ResponseProto.Response getResponse();", "com.google.search.now.wire.feed.ResponseProto.Response getResponse();", "@Override\n \t\t\t\tpublic void finished(Response response) {\n \t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n \t\t\t\t}", "@Override\n \t\t\t\tpublic void finished(Response response) {\n \t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n \t\t\t\t}", "public ResponseStat getOverallResponse() {\r\n\r\n int responses = getResponses(connection, null);\r\n int exposures = getExposures(connection, null);\r\n return new ResponseStat(exposures, responses);\r\n\r\n }", "@Test\n\tpublic void testFullSignedAuthnResponseProcessing() throws Exception {\n\t\tthis.initStorageWithAuthnRequest();\n\t\tthis.testAuthnResponseProcessingScenario1(this.responseFullSigned);\n\t}", "@Override\n public void onCompleted(GraphResponse response) {\n Log.d(\"GraphAPI FB debug\", String.valueOf(response));\n Log.d(\"GraphAPI FB debug\", response.toString());\n }", "@Override\n public String toString() {\n final StringBuilder sb = new StringBuilder(\"ImageAnalyzeResponse{\");\n sb.append(\"source='\").append(source).append('\\'');\n sb.append(\", title='\").append(title).append('\\'');\n sb.append(\", preset='\").append(preset).append('\\'');\n sb.append(\", status='\").append(status).append('\\'');\n sb.append(\", finishTime='\").append(publishTime).append('\\'');\n sb.append(\", results='\").append(results).append('\\'');\n sb.append(\", error=\").append(error);\n sb.append('}');\n return sb.toString();\n }", "public static void main(String[] args) throws Exception {\n\t\tString response = \"<AuditResultHospital xmlns=\\\"http://schemas.datacontract.org/2004/07/BMI.Engine.Common.Hospital\\\" xmlns:i=\\\"http://www.w3.org/2001/XMLSchema-instance\\\">\"\n\t\t\t\t+ \"<ClaimID>50b768e10c02b60f7c9343d9</ClaimID>\" + \"<Elapsed>0:0:0:324.324563</Elapsed>\"\n\t\t\t\t+ \"<Patient_IDStr>0057824702</Patient_IDStr>\" + \"<ViolationResult>\" + \"<RuleResultHospital>\"\n\t\t\t\t+ \"<DetailID>0</DetailID>\" + \"<FullTip/>\" + \"<GroupCode>{30E50964211259DAF0D7832C075574CF}</GroupCode>\"\n\t\t\t\t+ \"<ITEM_ID/>\" + \"<ITEM_NAME/>\" + \"<Reason>诊断信息不规范</Reason>\"\n\t\t\t\t+ \"<Related>50b768e10c02b60f7c9343d9</Related>\" + \"<ResultType>1</ResultType>\"\n\t\t\t\t+ \"<ResultTypeName>非医保支付</ResultTypeName>\" + \"<RuleName>就诊信息数据异常</RuleName>\" + \"<RuleNo>150001</RuleNo>\"\n\t\t\t\t+ \"<TipsCode4Hospital>N</TipsCode4Hospital>\" + \"</RuleResultHospital>\" + \"<RuleResultHospital>\"\n\t\t\t\t+ \"<DetailID>70b768e10c02b60f7c934428</DetailID>\" + \"<FullTip/>\"\n\t\t\t\t+ \"<GroupCode>{ABF47EFF6CDEED4FFF8684A5BD7832CA}</GroupCode>\" + \"<ITEM_ID>x090203004191001</ITEM_ID>\"\n\t\t\t\t+ \"<ITEM_NAME>重组人白介素-11[Ⅰ]</ITEM_NAME>\" + \"<Reason>限放化疗引起的血小板减少患者</Reason>\"\n\t\t\t\t+ \"<Related>50b768e10c02b60f7c9343d9|70b768e10c02b60f7c934428</Related>\" + \"<ResultType>2</ResultType>\"\n\t\t\t\t+ \"<ResultTypeName>待核实</ResultTypeName>\" + \"<RuleName>违反限定适应症(条件)用药</RuleName>\"\n\t\t\t\t+ \"<RuleNo>100301</RuleNo>\" + \"<TipsCode4Hospital>N</TipsCode4Hospital>\" + \"</RuleResultHospital>\"\n\t\t\t\t+ \"<RuleResultHospital>\" + \"<DetailID>70b768e10c02b60f7c934424</DetailID>\" + \"<FullTip/>\"\n\t\t\t\t+ \"<GroupCode>{D3A8CA51A1DB07AA23EF11D8D6295B40}</GroupCode>\" + \"<ITEM_ID>f12010001100</ITEM_ID>\"\n\t\t\t\t+ \"<ITEM_NAME>吸痰护理</ITEM_NAME>\"\n\t\t\t\t+ \"<Reason>重复收费</Reason><Related>50b768e10c02b60f7c9343d9|70b768e10c02b60f7c934422,50b768e10c02b60f7c9343d9|70b768e10c02b60f7c934424</Related>\"\n\t\t\t\t+ \"<ResultType>1</ResultType>\" + \"<ResultTypeName>非医保支付</ResultTypeName>\" + \"<RuleName>重复收费</RuleName>\"\n\t\t\t\t+ \"<RuleNo>130301</RuleNo>\"\n\t\t\t\t+ \"<TipsCode4Hospital>130301|{C81E728D9D4C2F636F067F89CC14862C}@0</TipsCode4Hospital>\"\n\t\t\t\t+ \"</RuleResultHospital>\" + \"</ViolationResult>\" + \"</AuditResultHospital>\";\n\t\tMap<String, Object> map = TransformUtil.xmlToMap(response);\n\t\tSystem.out.println(map);\n\t}", "private static String parseResponse(HttpResponse response) throws Exception {\r\n \t\tString result = null;\r\n \t\tBufferedReader reader = null;\r\n \t\ttry {\r\n \t\t\tHeader contentEncoding = response\r\n \t\t\t\t\t.getFirstHeader(\"Content-Encoding\");\r\n \t\t\tif (contentEncoding != null\r\n \t\t\t\t\t&& contentEncoding.getValue().equalsIgnoreCase(\"gzip\")) {\r\n \t\t\t\treader = new BufferedReader(new InputStreamReader(\r\n \t\t\t\t\t\tnew GZIPInputStream(response.getEntity().getContent())));\r\n \t\t\t} else {\r\n \t\t\t\treader = new BufferedReader(new InputStreamReader(response\r\n \t\t\t\t\t\t.getEntity().getContent()));\r\n \t\t\t}\r\n \t\t\tStringBuilder sb = new StringBuilder();\r\n \t\t\tString line = null;\r\n \r\n \t\t\twhile ((line = reader.readLine()) != null) {\r\n \t\t\t\tsb.append(line + \"\\n\");\r\n \t\t\t}\r\n \t\t\tresult = sb.toString();\r\n \t\t} finally {\r\n \t\t\tif (reader != null) {\r\n \t\t\t\treader.close();\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn result;\r\n \t}", "@GET\n @Produces(XML)\n public Response getLatestStorageReport(){\n log.debug(\"Getting the latest storage report\");\n\n try {\n InputStream stream = resource.getLatestStorageReport();\n if(null != stream) {\n return responseOkXmlStream(stream);\n } else {\n return responseNotFound();\n }\n } catch (Exception e) {\n return responseBad(e);\n }\n }", "@Override\r\n\tpublic String parseResponses(String unfriendlyString) {\n\t\treturn null;\r\n\t}", "String responseToString(MovilizerResponse response);", "public Result getStudyReportV4(String identifier, String startTimeString, String endTimeString, String offsetKey,\n String pageSizeString) {\n UserSession session = getAuthenticatedSession();\n \n DateTime startTime = getDateTimeOrDefault(startTimeString, null);\n DateTime endTime = getDateTimeOrDefault(endTimeString, null);\n int pageSize = getIntOrDefault(pageSizeString, BridgeConstants.API_DEFAULT_PAGE_SIZE);\n \n ForwardCursorPagedResourceList<ReportData> results = reportService\n .getStudyReportV4(session.getStudyIdentifier(), identifier, startTime, endTime, offsetKey, pageSize);\n \n return okResult(results);\n }", "@Override\n public EndPointResponseDTO getEndPointLog() {\n\n //getting all called apis\n List<Logger> loggers = loggerRepository.findAll();\n List<EndPointLoggerDTO> endPointLoggerDTOs;\n ModelMapper modelMapper = new ModelMapper();\n\n //decoding header and bodies, mapping o dto class\n endPointLoggerDTOs = loggers.stream().map(n -> {\n n.setHeader(getDecod(n.getHeader()));\n n.setBody(getDecod(n.getBody()));\n return modelMapper.map(n, EndPointLoggerDTO.class);\n }).collect(Collectors.toList());\n\n //wrapping dto to response object\n EndPointResponseDTO endPointResponseDTO = new EndPointResponseDTO();\n endPointResponseDTO.setCount(endPointLoggerDTOs.size()/2);\n endPointResponseDTO.setEndPointLoggerDTOList(endPointLoggerDTOs);\n\n return endPointResponseDTO;\n }", "protected void fillContent() {\r\n appendResponse(\"ConnectTime=\");\r\n appendResponse(getConnectTime());\r\n appendResponse(\"\\n\");\r\n appendResponse(\"Billing=\");\r\n appendResponse(getBilling());\r\n appendResponse(\"\\n\");\r\n appendResponse(\"SignOffMessage=\");\r\n appendResponse(getSignOffMessage());\r\n appendResponse(\"\\n\");\r\n }", "private void parseResponse(String s)\n {\n s = s.trim();\n if (isNumeric(s))\n {\n int key = Integer.parseInt(s);\n doLookup(key);\n }\n else\n {\n char ch = s.charAt(0);\n if (ch == 'd')\n {\n displayAll();\n }\n else if (ch == 'q')\n {\n done = true;\n }\n else\n {\n System.out.println(\"Please enter 'd', 'q', or an id number\");\n }\n }\n }", "protected abstract void parseReport(ReportInfo info)\n throws DavException;", "ResponseChart getResponseChart(String questionId);", "@Override\n\t\t\t\tpublic void finished(Response response) {\n\t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n\t\t\t\t}", "public interface BackstageMediaReportsEndpoint {\n\n @GET(BackstagePaths.BACKSTAGE_API_PATH_PREFIX + \"/{account_id}/reports/top-campaign-content/dimensions/item_breakdown\")\n @Headers(\"Content-Type: application/json\")\n TopCampaignContentReport getTopCampaignContentReport(@Header(\"Authorization\") String authToken,\n @Path(\"account_id\") String accountId,\n @Query(\"start_date\") String startDate,\n @Query(\"end_date\") String endDate,\n @QueryMap Map<String, String> filters) throws BackstageAPIException;\n\n\n @GET(BackstagePaths.BACKSTAGE_API_PATH_PREFIX + \"/{account_id}/reports/campaign-summary/dimensions/{dimension}\")\n @Headers(\"Content-Type: application/json\")\n CampaignSummaryReport getCampaignSummary(@Header(\"Authorization\") String authToken,\n @Path(\"account_id\") String accountId,\n @Path(\"dimension\") String dimension,\n @Query(\"start_date\") String startDate,\n @Query(\"end_date\") String endDate,\n @QueryMap Map<String, String> filters) throws BackstageAPIException;\n }", "public void decode(ReportParser reportParser) throws DecoderException {\n init();\n if (reportParser == null) {\n // nothing to do.\n return;\n }\n if (reportParser.positionTo(SEC_4_LEAD)) {\n\n if (reportParser.next()) {\n String element = reportParser.getElement();\n if (matchElement(element, GENERAL_GROUP)) {\n cloudAmount = getInt(element, 0, 1);\n cloudGenus = getInt(element, 1, 2);\n cloudAltitude = getInt(element, 2, 4);\n cloudDescription = getInt(element, 4, 5);\n }\n }\n }\n }", "private String getResponse(Object responseData, String shortName) {\n\t\tArrayList<String> result = new ArrayList<String>();\n\n\t\ttry {\n\t\t\tString responseCode = responseData.getClass().getMethod(\"getResponseCode\").invoke(responseData).toString();\n\n\t\t\tString msg = Constants.getResponseMessage(responseCode);\n\t\t\tString response = \"\";\n\t\t\tif (responseCode.equals(\"00\"))\n\t\t\t\tresponse = getResultSet(responseData, \"NESingleResponse\");\n\n\t\t\tresult.add(msg);\n\t\t\tresult.add(response);\n\n\t\t\tSystem.out.println(responseCode);\n\t\t\tSystem.out.println(result.get(0));\n\t\t\tSystem.out.println(result.get(1));\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\treturn gson.toJson(result);\n\t}", "public static GetItemDataPrintResponse parse(\r\n javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n GetItemDataPrintResponse object = new GetItemDataPrintResponse();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"GetItemDataPrintResponse\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (GetItemDataPrintResponse) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"GetItemDataPrintResult\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\",\r\n \"GetItemDataPrintResult\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"GetItemDataPrintResult\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setGetItemDataPrintResult(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "public String provideAlwasDefResponse()\n {\n return (\"d\") ;\n }", "private void writeResponseLine(final DataOutput out) throws IOException {\n out.writeBytes(HTTP_VERSION);\n out.writeBytes(SP);\n out.writeBytes(code + \"\");\n out.writeBytes(SP);\n if (responseString != null) {\n out.writeBytes(responseString);\n }\n out.writeBytes(CRLF);\n }", "@Override\n\tpublic String ResponseToString() throws APIException \n\t{\n\t\tfor (Listener listen : listeners1)\n\t\t\tlisten.beforeResponseToString();\n\t\tString ResponseToString = \"\";\n\t\ttry\n\t\t{\n\t\t\tResponseToString=api.ResponseToString();\n\t\t}\n\t\tcatch(APIException e)\n\t\t{\n\t\t\tfor (Listener listen : listeners1)\n\t\t\t\tlisten.onError(e);\n\t\t\tthrow new APIException(e);\n\t\t}\n\t\tfor (Listener listen : listeners1)\n\t\t\tlisten.afterResponseToString();\n\t\treturn ResponseToString;\n\t}", "@Test\n public void destiny2ReportOffensivePostGameCarnageReportPlayerTest() {\n Long activityId = null;\n InlineResponse20019 response = api.destiny2ReportOffensivePostGameCarnageReportPlayer(activityId);\n\n // TODO: test validations\n }", "protected void getInterfaceInfo(org.dom4j.Element response) {\n\t\temailFields.webVersion = MDGlobalWebService.getElementText(response, \"Version\");\n\t}", "public void receiveResultGetReportAnnotations(\r\n\t\t\tcom.autometrics.analytics.v9.j2ee.webservices.v1_0.GetReportAnnotationsResponse result) {\r\n\t}", "public void onCompleted(GraphResponse response) {\n Log.i(\"mTAG\", \"onCompleted: \" + response.toString());\n Gson mGson = new Gson();\n AlbumObject mAlbumObject = mGson.fromJson(response.getJSONObject().toString(), AlbumObject.class);\n mDashboardItems = mAlbumObject.getmAlbums();\n DashboardAdapter mDashboardAdapter = new DashboardAdapter(mDashboardItems, mItemListener);\n mRecyclerView.setAdapter(mDashboardAdapter);\n mDashboardAdapter.notifyDataSetChanged();\n }", "String responseErrorsToString(MovilizerResponse response);", "public Void parseResponse(String str) {\n return null;\n }", "private static void readResponse(ClientResponse response)\r\n\t{\r\n\t// Response\r\n\tSystem.out.println();\r\n\tSystem.out.println(\"Response: \" + response.toString());\r\n\r\n\t}", "void printReport();", "private void getChartStatistics(HttpServletResponse response, int scenario, int tickIndex) throws IOException {\n JSONObject obj = new JSONObject();\n Map<Integer, JSONArray> jsonArays = new HashMap<>();\n\n List<String> listOfStatistics = SimApi.getChartStatistics(scenario, tickIndex);\n\n if (listOfStatistics == null) {\n response.getWriter().write(obj.toJSONString());\n return;\n }\n\n if (tickIndex > 0) {\n for (int i = 0; i < listOfStatistics.size(); i++) {\n JSONArray listJ = new JSONArray();\n listJ.add(listOfStatistics.get(i));\n jsonArays.put(i, listJ);\n }\n }\n\n // always add the headers to the result.\n List<String> listOfHeaders = SimApi.getChartStatistics(0, 0);\n for (int i = 0; i < listOfHeaders.size(); i++) {\n if (jsonArays.size() > 0) {\n obj.put(listOfHeaders.get(i), jsonArays.get(i));\n } else {\n obj.put(listOfHeaders.get(i), new JSONArray());\n }\n }\n\n response.getWriter().write(obj.toJSONString());\n }", "@Override\n public void onResponse(String response) {\n try {\n //Convert response to a json\n JSONObject jsonObject = new JSONObject(response.toString());\n String result = jsonObject.getString(\"result\");\n eventArray = new JSONArray(result);\n createListData(eventArray);\n } catch (JSONException e) {\n Log.d(\"TimelineLog\", \"json conversion didn't work\");\n e.printStackTrace();\n }\n }", "protected void logParsedMessage()\n {\n if (log.isInfoEnabled())\n {\n StringBuffer buf = new StringBuffer(\"Parsed EASMessage:\");\n buf.append(\"\\n OOB alert = \").append(isOutOfBandAlert());\n buf.append(\"\\n sequence_number = \").append(this.sequence_number);\n buf.append(\"\\n protocol_version = \").append(this.protocol_version);\n buf.append(\"\\n EAS_event_ID = \").append(this.EAS_event_ID);\n buf.append(\"\\n EAS_originator_code = \").append(this.EAS_originator_code).append(\": \").append(\n getOriginatorText());\n buf.append(\"\\n EAS_event_code = \").append(this.EAS_event_code);\n buf.append(\"\\n nature_of_activation_text = \").append(getNatureOfActivationText(new String[] { \"eng\" }));\n buf.append(\"\\n alert_message_time_remaining = \").append(getAlertMessageTimeRemaining()).append(\" seconds\");\n buf.append(\"\\n event_start_time = \").append(this.event_start_time);\n buf.append(\"\\n event_duration = \").append(this.event_duration).append(\" minutes\");\n buf.append(\"\\n alert_priority = \").append(getAlertPriority());\n buf.append(\"\\n details_OOB_source_ID = \").append(this.details_OOB_source_ID);\n buf.append(\"\\n details_major_channel_number = \").append(this.details_major_channel_number);\n buf.append(\"\\n details_minor_channel_number = \").append(this.details_minor_channel_number);\n buf.append(\"\\n audio_OOB_source_ID = \").append(this.audio_OOB_source_ID);\n buf.append(\"\\n alert_text = \").append(getAlertText(new String[] { \"eng\" }));\n buf.append(\"\\n location_code_count = \").append(this.m_locationCodes.size());\n for (int i = 0; i < this.m_locationCodes.size(); ++i)\n {\n buf.append(\"\\n location[\").append(i).append(\"]: \").append(this.m_locationCodes.get(i).toString());\n }\n buf.append(\"\\n exception_count = \").append(this.m_exceptions.size());\n for (int i = 0; i < this.m_exceptions.size(); ++i)\n {\n buf.append(\"\\n exception[\").append(i).append(\"]: \").append(this.m_exceptions.get(i).toString());\n }\n buf.append(\"\\n descriptor count = \").append(this.m_descriptors.size());\n for (int i = 0; i < this.m_descriptors.size(); ++i)\n {\n buf.append(\"\\n descriptor[\").append(i).append(\"]: \").append(this.m_descriptors.get(i).toString());\n }\n buf.append(\"\\n isAudioChannelAvailable = \").append(isAudioChannelAvailable());\n buf.append(\"\\n number of audio sources = \").append(this.m_audioFileSources.size());\n for (int i = 0; i < this.m_audioFileSources.size(); ++i)\n {\n buf.append(\"\\n audio file source[\").append(i).append(\"]: \").append(\n this.m_audioFileSources.get(i).toString());\n }\n buf.append(\"\\n m_detailsChannelLocator = \").append(this.m_detailsChannelLocator);\n buf.append(\"\\n m_eventReceivedTime = \").append(new Date(this.m_eventReceivedTime));\n buf.append(\"\\n m_eventStartTime = \").append(new Date(this.m_eventStartTime));\n buf.append(\"\\n m_eventExpirationTime = \").append(new Date(this.m_eventExpirationTime));\n if (log.isInfoEnabled())\n {\n log.info(buf.toString());\n }\n }\n }", "public void tracking_Report()\n {\n\t boolean trackingpresent =trackingreport.size()>0;\n\t if(trackingpresent)\n\t {\n\t\t //System.out.println(\"Tracking report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Tracking report is not present\");\n\t }\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"responseCode:\" + responseCode + \", dataType:\" + dataType + \", responseData.toString():\"\n\t\t\t\t+ responseData.toString();\n\t}", "net.iGap.proto.ProtoResponse.Response getResponse();", "net.iGap.proto.ProtoResponse.Response getResponse();", "@Override\n public void onResponse(String response) {\n // try/catch block for returned JSON data\n // see API's documentation for returned format\n try {\n JSONObject result = new JSONObject(response);\n JSONArray resultList = result.getJSONArray(\"outputs\");\n JSONObject inner = resultList.getJSONObject(0);\n String out = inner.getString(\"output\");\n output.setText(\" \"+out);\n\n // catch for the JSON parsing error\n } catch (JSONException e) {\n Toast.makeText(MainActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }", "public String getPatientResponses(){\n \treturn patientResponses;\n }", "edu.usfca.cs.dfs.StorageMessages.ListResponse getListResponse();", "@Override\n void parseOAuthResponse(String data) {\n }", "private ReportRequest getAdReport(Calendar from, Calendar to) {\r\n\t\tAdPerformanceReportRequest request = new AdPerformanceReportRequest();\r\n\t\trequest.setFormat(ReportFormat.CSV);\r\n\t\trequest.setReportName(\"Ad Report\");\r\n\t\trequest.setAggregation(NonHourlyReportAggregation.DAILY);\r\n\t\trequest.setReturnOnlyCompleteData(false);\r\n\r\n\t\tAccountThroughAdGroupReportScope scope = new AccountThroughAdGroupReportScope();\r\n\t\tArrayOflong accountIds = new ArrayOflong();\r\n\t\taccountIds.getLongs().add(authorizationData.getAccountId());\r\n\t\tscope.setAccountIds(accountIds);\r\n\t\tscope.setCampaigns(null);\r\n\t\tscope.setAdGroups(null); \r\n\t\trequest.setScope(scope);\r\n\r\n\t\tArrayOfAdPerformanceReportColumn value = new ArrayOfAdPerformanceReportColumn();\r\n\t\tList<AdPerformanceReportColumn> columns = value.getAdPerformanceReportColumns();\r\n\t\tString adFields = adsProperties.getProperty(\"api.bing.adPerformanceReport.fields\");\r\n\t\tif (adFields != null && adFields.length() > 2) {\r\n\t\t\tfor (String fieldId : adFields.split(\",\")) {\r\n\t\t\t\tcolumns.add(AdPerformanceReportColumn.fromValue(fieldId));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_ID);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_TITLE);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.TITLE_PART_1);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.TITLE_PART_2);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_DESCRIPTION);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_GROUP_ID);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_GROUP_NAME);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_GROUP_STATUS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.AD_STATUS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CAMPAIGN_ID);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CAMPAIGN_NAME);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CLICKS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.COST_PER_CONVERSION);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.SPEND);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.CONVERSION_RATE);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.IMPRESSIONS);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.DESTINATION_URL);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.FINAL_URL);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.DISPLAY_URL);\r\n\t\t\tcolumns.add(AdPerformanceReportColumn.TIME_PERIOD);\r\n\t\t}\r\n\t\trequest.setColumns(value);\r\n\r\n\t\tReportTime reportTime = new ReportTime();\r\n\t\tDate start = new Date();\r\n\t\tDate end = new Date();\r\n\t\tstart.setDay(from.get(Calendar.DAY_OF_MONTH));\r\n\t\tstart.setMonth(from.get(Calendar.MONTH)+1);\r\n\t\tstart.setYear(from.get(Calendar.YEAR));\r\n\t\tend.setDay(to.get(Calendar.DAY_OF_MONTH));\r\n\t\tend.setMonth(to.get(Calendar.MONTH)+1);\r\n\t\tend.setYear(to.get(Calendar.YEAR));\r\n\t\treportTime.setCustomDateRangeStart(start);\r\n\t\treportTime.setCustomDateRangeEnd(end);\r\n\t\trequest.setTime(reportTime);\r\n\r\n\t\treturn request;\r\n\t}", "@Override\n\t\t\t\t\tpublic void onResponse(String s) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "Object visitorResponse();", "@RequestMapping(value=\"/integration/datasetSummary/{datasetId}\", method=RequestMethod.GET)\n\tpublic void getSubmissionSummary(@PathVariable Long datasetId, HttpServletResponse response) throws IOException{\n\t\t//Check submissionId exists, and that it is published\n\t\tlogger.info(\"Request for Dataset Details with ID: \" + datasetId);\n\t\tResponseGetDatasetSummary respObj = submissionSummaryService.buildSubmissionSummaryForPortal(datasetId, YES_CHECK_IF_PUBLISHED);\n\t\twriteJsonStringToHttpServletResponse(respObj.getJsonString() ,response);\n\t}", "@Override\r\n public void onResponse(JSONArray response) {\n parseData(response, requestCount);\r\n }", "public SPResponse getBlueprintAnalytics(User user, Object[] params) {\n \n String userCompany = user.getCompanyId();\n \n Company company = companyFactory.getCompany(userCompany);\n SPResponse blueprintAnalyticsResponse = new SPResponse();\n \n if (company != null && company.getFeatureList().contains(SPFeature.Blueprint)) {\n BlueprintAnalytics blueprintAnalytics = spectrumFactory.getBlueprintAnalytics(userCompany);\n \n LOG.debug(\"Blueprint returened is \" + blueprintAnalytics);\n \n blueprintAnalyticsResponse.add(\"bluePrintAnalytics\", blueprintAnalytics);\n blueprintAnalyticsResponse.isSuccess();\n } else {\n LOG.debug(\"User \" + user.getId() + \" does not have access to Blueprint\");\n blueprintAnalyticsResponse\n .addError(new SPException(\"User does not have access to Blueprint\"));\n }\n \n return blueprintAnalyticsResponse;\n }", "@Test\n public void getReportTest() throws Exception {\n httpclient = HttpClients.createDefault();\n //set up user\n deleteUsers();\n String userId = createTestUser();\n //created user\n CloseableHttpResponse response = createProject(\"projectname\", userId);\n String projectid = getIdFromResponse(response);//getIdFromResponse hasn't been implimented in this part\n response.close();\n //created project\n response = createSession(userId, projectid, \"2019-02-18T20:00Z\", \"2019-02-18T20:30Z\", \"1\");\n response.close();\n response = createSession(userId, projectid, \"2019-02-18T21:00Z\", \"2019-02-18T21:30Z\", \"1\");\n response.close();\n\n try {\n //case 1\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", false, false);\n \n int status = response.getStatusLine().getStatusCode();\n HttpEntity entity;\n String strResponse;\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n String expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}]}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //case 2\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, false);\n \n status = response.getStatusLine().getStatusCode();\n\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}],\\\"completedPomodoros\\\":2}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //case 3\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", false, true);\n \n status = response.getStatusLine().getStatusCode();\n\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}],\\\"totalHoursWorkedOnProject\\\":1.00}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //case 4\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, true);\n \n status = response.getStatusLine().getStatusCode();\n\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}],\\\"completedPomodoros\\\":2,\\\"totalHoursWorkedOnProject\\\":1.00}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n\n //test status 400\n response = createReport(userId, projectid, \"invalid\", \"invalid\", true, true);\n status = response.getStatusLine().getStatusCode();\n if(status != 400){\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //test status 404\n response = createReport(userId + \"1\", projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, true);\n status = response.getStatusLine().getStatusCode();\n if(status != 404){\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n EntityUtils.consume(response.getEntity());\n response.close();\n\n response = createReport(userId, projectid + \"1\", \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, true);\n status = response.getStatusLine().getStatusCode();\n if(status != 404){\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n EntityUtils.consume(response.getEntity());\n response.close();\n\n } finally {\n httpclient.close();\n }\n }", "private static ArrayList<Map> formatResponse(String response) {\n\t\tObjectMapper mapper = new ObjectMapper();\r\n\t try {\r\n\t\t\tMap res1 = mapper.readValue(response, HashMap.class);\r\n\t\t\t\r\n\t\t\t return (ArrayList<Map>) res1.get(SESSION);\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\t \r\n\t}" ]
[ "0.5734424", "0.54520464", "0.51827264", "0.50955796", "0.5086282", "0.5074577", "0.5042561", "0.49879217", "0.4948746", "0.49016932", "0.49005055", "0.48801178", "0.48607355", "0.48338765", "0.4817587", "0.4755524", "0.4748944", "0.47440714", "0.4714557", "0.4707196", "0.47035503", "0.4687523", "0.466312", "0.46530655", "0.46514848", "0.46503162", "0.46237132", "0.4621383", "0.46102324", "0.46094525", "0.4602204", "0.45983803", "0.45975235", "0.45937514", "0.45786792", "0.45716745", "0.45619088", "0.45595476", "0.45535922", "0.4551914", "0.45405203", "0.4533662", "0.45260888", "0.45214495", "0.4510818", "0.4508068", "0.45053512", "0.45053512", "0.44965246", "0.44965246", "0.44836307", "0.447873", "0.44690055", "0.4467954", "0.4464869", "0.44579828", "0.4449564", "0.44448194", "0.4442138", "0.44412598", "0.44407442", "0.44384465", "0.44367558", "0.44328496", "0.44307745", "0.4429483", "0.44241682", "0.44232827", "0.44220716", "0.441918", "0.441733", "0.44120088", "0.44068068", "0.4405158", "0.44028145", "0.4396228", "0.43959472", "0.43956804", "0.43895146", "0.43858013", "0.43813786", "0.4378688", "0.4374848", "0.43716955", "0.4361873", "0.43600562", "0.43561637", "0.43561637", "0.4351799", "0.43510503", "0.43478572", "0.4336777", "0.43355924", "0.43355682", "0.4334128", "0.43289235", "0.43212143", "0.43189943", "0.43171415", "0.43120593" ]
0.6673816
0
Prints all elements of Linked List
public void display(ListNode head) { if(head == null) { return; } ListNode current = head; while (current != null) { System.out.print(current.data + " --> "); current = current.next; } System.out.println(current); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printList() {\n\t\tNode tnode = head;\n\t\twhile (tnode != null) {\n\t\t\tSystem.out.print(tnode.data + \"->\");\n\t\t\ttnode = tnode.next;\n\t\t}\n\t}", "public void print_list() {\n \t \n \t//define current node as\n \t node<Type> current_node = new node<>();\n \t \n \t //now keep for loop and print the answer\n \t current_node = head;\n \t \n \t //print first element\n \t System.out.println(current_node.show_element());\n \t \n \t //now run for loop\n \t for (int i = 1 ; i <= len - 1 ; i ++) {\n \t\t \n \t\t //change current node\n \t\t current_node = current_node.show_next();\n \t\t \n \t\t //just print the answer\n \t\t System.out.println(current_node.show_element());\n \t }\n }", "public void print() {\r\n\t\tfor (ListNode temp = head; temp != null; temp = temp.link) {\r\n\t\t\tSystem.out.println(temp.data);\r\n\t\t}\r\n\t}", "void printList(){\n Node iter = this.head;\n\n while(iter != null)\n {\n System.out.print(iter.data+\"->\");\n iter = iter.next;\n }\n System.out.print(\"null\\n\");\n }", "public void printList() \r\n\t { \r\n\t Node tnode = head; \r\n\t while (tnode != null) \r\n\t { \r\n\t System.out.print(tnode.data+\" \"); \r\n\t tnode = tnode.next; \r\n\t } \r\n\t }", "public void print() {\n\r\n Node aux = head;\r\n while (aux != null) {\r\n\r\n System.out.println(\" \" + aux.data);\r\n aux = aux.Next;\r\n\r\n }\r\n System.out.println();\r\n\r\n }", "public void print(){\n NodeD tmp = this.head;\n\n while(tmp!=null){\n System.out.println(tmp.getObject().asString());\n tmp = tmp.getNext();\n }\n }", "public void print(){\r\n ListNode temp = head;\r\n while(temp != null){\r\n System.out.println(temp.data.toString());//TODO check this\r\n temp = temp.link;\r\n }\r\n }", "public void printList()\n {\n Node temp;\n temp = head;\n while (temp != null)\n {\n System.out.print(temp.data + \" \");\n temp = temp.next;\n }\n }", "public void print()\n {\n for (Node curr = first; curr != null; curr = curr.next)\n System.out.print(curr.val + \" \");\n System.out.println();\n }", "public void print() {\r\n\t\tif(isEmpty()) {\r\n\t\t\tSystem.out.printf(\"%s is Empty%n\", name);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.printf(\"%s: %n\", name);\r\n\t\tNode<E> current = first;//node to traverse the list\r\n\t\t\r\n\t\twhile(current != null) {\r\n\t\t\tSystem.out.printf(\"%d \", current.data);\r\n\t\t\tcurrent = current.next;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public static void print()\r\n\t {\r\n\t\t Node n = head; \r\n\t\t\t\r\n\t\t\twhile(n!=null)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(n.data+\" \");\r\n\t\t\t\r\n\t\t\t\tn=n.next;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t }", "public void printAll() {\n Node node = head;\n\n while (node != null) {\n System.out.println(node.getStudent());\n node = node.getLink();\n }\n System.out.println();\n }", "public void printList()\n {\n ListNode currNode = this.head;\n while(true)\n {\n System.out.println(currNode.getValue());\n currNode = currNode.getNextNode();\n if(currNode == null)\n {\n break;\n }\n }\n }", "public void print() {\n\t\tNode temp = head;\n\n\t\tif(temp == null) {\n\t\t\treturn;\n\t\t} \n\n\t\twhile(temp.next != null) {\n\t\t\tSystem.out.print(temp.data + \"->\");\n\t\t\ttemp = temp.next;\n\t\t}\n\t\tSystem.out.println(temp.data);\n\t}", "public void print(){\n\t\t\tNode current = head;\n\t\t\tSystem.out.println(\"--------------------------\");\n\t\t\twhile(current != null) \n\t\t\t{\n\t\t\t\tSystem.out.println(current.data);\n\t\t\t\tcurrent = current.next;\n\t\t\t}\n\t}", "public void printList() {\n System.out.println(\"Linked list contents:\");\n for (Node p = head; p != null; p = p.next)\n System.out.println(p.data);\n }", "public void printList(){\n \t\t\tListNode temp = this;\n\t \t\tdo{\n\t \t\t\tSystem.out.print(temp.val + \"->\");\n\t \t\t\ttemp = temp.next;\n\t \t\t}while(temp != null);\n\t \t\tSystem.out.print(\"null\");\n\t \t\tSystem.out.println();\n\t \t}", "public void print(){\r\n\t\t\tNode temp = this.head;\r\n\t\t\twhile(temp!=null){\r\n\t\t\t\tSystem.out.print(\"| prev=\"+temp.prev+\", val=\"+temp.val+\", next=\"+temp.next+\" |\");\r\n\t\t\t\ttemp = temp.next;\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}", "public void printList() {\n ListNode currentNode = head;\n\n while (currentNode != null) {\n // Print the data at current node\n System.out.print(currentNode.data + \" \");\n // Go to next node\n currentNode = currentNode.next;\n }\n System.out.println();\n\n }", "void printList(){\n Node temp=head;\n while (temp!=null){\n System.out.println(temp.data+\" \");\n temp=temp.next;\n }\n }", "public void print() {\r\n\t\tif (this.isEmpty()) {\r\n\t\t\tSystem.out.println(\"The linked list is empty!\");\r\n\t\t}else if (this.size() == 1) {\r\n\t\t\tSystem.out.println(head.getValue());\r\n\t\t}else {\r\n\t\t\tpointer = head;\r\n\t\t\twhile (pointer != null) {\r\n\t\t\t\tif (pointer != tail) System.out.print(pointer.getValue()+\"-->\");\r\n\t\t\t\telse System.out.println(pointer.getValue());\r\n\t\t\t\tpointer = pointer.getNext();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void printList(Node head) \n { \n Node n = head; \n \n while (n != null) \n { \n System.out.print(n.data+\" \"); \n n = n.next; \n } \n }", "public void printList(){\n MyNode p;\n System.out.print(\"The list contains [\");\n for(p=head.next;p!=null;p=p.next)\n System.out.print(p.word +\" \");\n System.out.print(\"]\\n\");\n }", "public void printList(){\n MovieNode temp = head;\t\t//Iterator\n System.out.print(\"Data: \");\n while(temp.next != null){\t\t//While theres data\n System.out.print(temp.next.data + \"->\");\t//Print the data\n temp = temp.next;\t\t\t\t\t\t\t//Point to the next MovieNode\n }\n System.out.println();\t\t\t\t\t\t//Go to the next line\n }", "public void printList() {\r\n //traversing the linked list and will print each node.\r\n // assigning head to temp\r\n System.out.println(\"Printing list\");\r\n Node temp = head;\r\n while (temp != null) {\r\n System.out.print(temp.getData());\r\n // updating temp\r\n temp = temp.getNext();\r\n if (temp != null) {\r\n System.out.print(\"---->\");\r\n }\r\n\r\n\r\n }\r\n System.out.println();\r\n }", "public void printAllNodes() {\n\t\tNode current = head;\n\n\t\twhile( current != null ) {\n\t\t\tSystem.out.println(current.data);\n\t\t\tcurrent = current.next;\n\t\t}\n\t}", "public void print() {\n LinkedList i = this;\n\n System.out.print(\"LinkedList: \");\n while (i.next != null) {\n System.out.print(i.name + ' ');\n i = i.next;\n }\n System.out.print(i.name);\n }", "void printList() {\n Entry<T> node = header;\n while(node!=null){\n System.out.print(node.element+\" \");\n node = node.next;\n }\n }", "public void print() {\r\n\r\n Node currentNode = this.head;\r\n while (currentNode != null) {\r\n System.out.print(currentNode.data + \" \");\r\n currentNode = currentNode.next;\r\n }\r\n\r\n }", "public void displayNodes() {\n Node node = this.head;\n StringBuilder sb = new StringBuilder();\n while (node != null) {\n sb.append(node.data).append(\" \");\n node = node.next;\n };\n\n System.out.println(sb.toString());\n }", "public void printList()\n {\n System.out.print(\"SinglyLinkedList:\\n\");\n ListNode cur = first;\n while(cur != null)\n {\n System.out.println(cur.getValue());\n cur = cur.getNext();\n }\n }", "public void printLinkedList(){\n System.out.println(\"--------Head node: \" + this.data);\n\n if (this.next == null){\n return;\n }\n\n int count = 1;\n Node<T> currentNode = this.next;\n while (currentNode.next != null){\n System.out.println(\"Node \" + count++ + \" with value: \" + currentNode.data);\n currentNode = currentNode.next;\n }\n System.out.println(\"---------Tail node: \" + currentNode.data);\n }", "private static void print(ArrayList<Node<BinaryTreeNode<Integer>>> n) {\n\t\tfor(int i=0; i<n.size(); i++) {\n\t\t\tNode<BinaryTreeNode<Integer>> head = n.get(i);\n\t\t\twhile(head != null) {\n\t\t\t\tSystem.out.print(head.data.data+\" \");\n\t\t\t\thead = head.next;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private static void printlist(Node node) {\n\t\twhile (node != null) {\n\t\t\tSystem.out.print(node.data + \"->\");\n\t\t\tnode = node.next;\n\t\t}\n\t}", "public void show() {\n Node<T> node = head;\n while (node.next != null) {\n System.out.println(node.data);\n node = node.next;\n }\n System.out.println(node.data);\n }", "static void printList(Node head) {\n while (head != null) {\n System.out.print(head.data + \" \");\n head = head.next;\n }\n }", "public void print(){\n\t\tif(isEmpty()){\n\t\t\tSystem.out.printf(\"Empty %s\\n\", name);\n\t\t\treturn;\n\t\t}//end if\n\n\t\tSystem.out.printf(\"The %s is: \", name);\n\t\tListNode current = firstNode;\n\n\t\t//while not at end of list, output current node's data\n\t\twhile(current != null){\n\t\t\tSystem.out.printf(\"%s \", current.data);\n\t\t\tcurrent = current.nextNode;\n\t\t}//end while\n\n\t\tSystem.out.println(\"\\n\");\n\t}", "void printList(Node head)\n {\n Node temp = head;\n while (temp != null)\n {\n System.out.print(temp.data+\" \");\n temp = temp.next;\n } \n System.out.println();\n }", "void printList(Node node) {\n\t\twhile (node != null) {\n\t\t\tSystem.out.print(node.data + \" \");\n\t\t\tnode = node.next;\n\t\t}\n\t}", "public void print() \n //POST:\tThe contents of the linked list are printed\n\t{\n\t\tNode<T> tmp = start;\n\t\tint count = 0; //counter to keep track of how many loops occur\n\t\tif(length == 0) //if empty list \n\t\t{\n\t\t\tSystem.out.println(\"0: []\");\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\"start: \" + tmp.value);\n\t\tSystem.out.print(length + \": [\");\n\n\t\t//while the end of the list is not reached and it has not already looped once\n\t\twhile((tmp.next != start && count == 0) || count < 1) \n\t\t{\n\t\t\tSystem.out.print(tmp.value.toString() + \", \");\n\t\t\tif(tmp.next == start) //if we have reached the end of the list\n\t\t\t{\n\t\t\t\tcount++;\t\t//increment loop counter\n\t\t\t}\n\t\t\ttmp = tmp.next;\t\t//traverse list\n\t\t}\n\t\tSystem.out.print(\"]\\n\");\n\t}", "void display(Nodetype list)\n{\n\tNodetype temp;\n\tif(list==null)\n\t\tSystem.out.println(\"\\nEmpty linked list\");\n\telse\n\t{\n\t\ttemp=list;\n\t\twhile(temp!=null)\n\t\t{\n\t\t\tSystem.out.print(\"->\"+temp.info);\n\t\t\ttemp=temp.next;\n\t\t}\n\t}\n\tSystem.out.println();\n}", "public void show() {\n\n\t\tNode n = head;\n\t\twhile (n.next != null) {\n\t\t\t//logger.info(n.data);\n\t\t\tn = n.next;\n\t\t}\n\t\t//logger.info(n.data);\n\n\t}", "public void display()\n {\n System.out.print(\"\\nDoubly Linked List = \");\n if (size == 0)\n {\n System.out.print(\"empty\\n\");\n return;\n }\n if (start.getListNext()== null)\n {\n System.out.println(start.getData() );\n return;\n }\n List ptr = start;\n System.out.print(start.getData()+ \" <-> \");\n ptr = start.getListNext();\n while (ptr.getListNext()!= null)\n {\n System.out.print(ptr.getData()+ \" <-> \");\n ptr = ptr.getListNext();\n }\n System.out.print(ptr.getData()+ \"\\n\");\n }", "public void printList(Node head)\n {\n while(head!=null){\n System.out.print(head.data+\" \");\n head = head.next;\n }\n }", "public void printList()\n {\n String str = \"head > \";\n \n if(head == null)\n {\n str += \"null\";\n }\n else if(head.next == head)\n {\n str += head.data + \" (singly-linked, circular)\";\n }\n else\n {\n Node current = head;\n \n //While loop to create the string of all nodes besides the last one\n while(current.next != head)\n {\n str += current.data + \" > \";\n \n current = current.next;\n }\n \n str += current.data + \" (singly-linked, circular)\";\n }\n \n System.out.println(str);\n }", "public void print() {\n\t\tIntNode curr;\n\t\tfor (curr = head; curr != null; curr = curr.next) {\n\t\t\tSystem.out.print(curr.key + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void printValues(){\n Node runner = head;\n while(runner != null){ //iterate through end of list\n System.out.println(runner.value);\n runner = runner.next;\n }\n }", "public void show()\n\t{\n\t\tNode temp= head;\n\t\t\n\t\twhile(temp.next!=null)\n\t\t{\n\t\t\tSystem.out.println(temp.data);\n\t\t\ttemp=temp.next;\n\t\t}\n\t\tSystem.out.println(temp.data); //to print last node\n\t}", "public static void printList(Node head)\n {\n Node ptr = head;\n while (ptr != null)\n {\n System.out.print(ptr.data + \" -> \");\n ptr = ptr.next;\n }\n \n System.out.println(\"null\");\n }", "public void Print() {\n\t\tcurr = head;\n\t\twhile (curr != null) {\n\t\t\tcurr.Print();\n\t\t\tcurr = curr.next;\n\t\t}\n\t}", "void print() {\n Node current = this;\n while (current != null) {\n System.out.format(\"%d \", current.value);\n current = current.next;\n }\n System.out.println();\n }", "private void printList() {\n if (head == null)\n return;\n ListNode current = head;\n int count = 0;\n while (current != null) {\n count++;\n System.out.print(current.data + \" \");\n current = current.next;\n }\n System.out.println();\n System.out.println(\"Number of nodes in the list are:: \" + count);\n }", "static\nvoid\nprintList(Node head) \n\n{ \n\nwhile\n(head != \nnull\n) \n\n{ \n\nSystem.out.print(head.data + \n\" \"\n); \n\nhead = head.next; \n\n} \n\n\n}", "public String printList() {\n String str = \"\";\n Node<T> currentNode = head;\n\n if(head == null)\n return \"Empty List\";\n else {\n while (currentNode.next != null) {\n str += currentNode.data + \",\";\n currentNode = currentNode.next;\n }\n str += currentNode.data;\n //System.out.println(str);\n }\n return str;\n }", "public void display() {\n MyMapNode current = head;\n if (head == null) {\n System.out.println(\"List is empty\");\n return;\n }\n while (current != null) {\n //Prints each node by incrementing pointer\n System.out.print(current.data + \" \");\n current = current.next;\n }\n System.out.println();\n }", "public void display() {\r\n\t\tNode curr = new Node();\r\n\t\tcurr = head;\r\n\t\tString Output = \"Here is the linked list from the head node till the end\";\r\n\t\twhile (curr != null) {\r\n\t\t\tOutput += \"\\n\" + curr.num + \", \" + curr.str;\r\n\t\t\tcurr = curr.next;\r\n\t\t}\r\n\t\tSystem.out.print(Output);\r\n\t}", "public void printList(){\n Date212Node p = first.next;\n while(p != null){\n System.out.println(p.data.toString());\n p = p.next;\n }\n }", "void print(Node head) {\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tSystem.out.print(curr.data + \"->\");\n\t\t\tcurr = curr.next;\n\t\t}\n\t\tSystem.out.println();\n\n\t}", "void display(){\r\n\t\t if(start==null){\r\n\t\t\t System.out.println(\"linklist is empty\");\r\n\t\t\t }\r\n\t\telse{\r\n\t\t\tnode temp=start;\r\n\t\t\twhile(temp!=null){\r\n\t\t\t\tSystem.out.println(temp.data);\r\n\t\t\t\ttemp=temp.next;\r\n\t\t\t\t}//end of while\r\n\t\t\t}//end of else statement\r\n\r\n\t\t }", "public static void display(Node head) {\r\n for (Node node = head; node != null; node = node.next) {\r\n System.out.print(node.data + \" \");\r\n }\r\n }", "public void display()\n\n {\n\n System.out.print(\"\\nDoubly Linked List = \");\n\n if (size == 0) \n\n {\n\n System.out.print(\"empty\\n\");\n\n return;\n\n }\n\n if (start.getLinkNext() == null) \n\n {\n\n System.out.println(start.getData() );\n\n return;\n\n }\n\n Node ptr = start;\n\n System.out.print(start.getData()+ \" <-> \");\n\n ptr = start.getLinkNext();\n\n while (ptr.getLinkNext() != null)\n\n {\n\n System.out.print(ptr.getData()+ \" <-> \");\n\n ptr = ptr.getLinkNext();\n\n }\n\n System.out.print(ptr.getData()+ \"\\n\");\n\n }", "public void printNodes() {\n\t\tNode currentNode = headNode;\n\t\tif(currentNode==null) {\n\t\t\tSystem.out.println(\" The Node is Null\");\n\t\t\treturn;\n\t\t} else {\n\t\t\tSystem.out.print(\" \"+ currentNode.getData());\n\t\t\twhile(currentNode.getNextNode()!=null) {\n\t\t\t\tcurrentNode = currentNode.getNextNode();\n\t\t\t\tSystem.out.print(\"=> \"+ currentNode.getData());\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public static void print_list(List li){\n Iterator<Node> it=li.iterator();\n while(it.hasNext()){Node n=it.next();System.out.print(n.freq+\" \");}System.out.println();\n }", "@Override\n public String toString(){\n String str = \"\";\n DLNode<T> current = first;//a reference to the first node\n while (current != null) {//loop as long as we reach the end of the list\n str += current + \"\\n\";//store current element in a String at every iteration\n current = current.next;\n }\n return str;\n }", "public void printNodes() { \n //Node current will point to head \n Node current = head; \n if(head == null) { \n System.out.println(\"Doubly linked list is empty\"); \n return; \n } \n System.out.println(\"Nodes of doubly linked list: \"); \n while(current != null) { \n //Print each node and then go to next. \n System.out.print(current.item + \" \"); \n current = current.next; \n } \n }", "public void printList(Node node) {\n\t\tif (node == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tSystem.out.print(node.data + \" \");\n\t\tprintList(node.next);\n\t}", "public static void Output(LinkedList<Integer> list) {\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tSystem.out.print(list.get(i) + \"\\t\");\n\t\t}\n\t}", "public void print() {\n\t\tfor (int count = 0; count < adjacencyList.length; count++) {\n\t\t\tLinkedList<Integer> edges = adjacencyList[count];\n\t\t\tSystem.out.println(\"Adjacency list for \" + count);\n\n\t\t\tSystem.out.print(\"head\");\n\t\t\tfor (Integer edge : edges) {\n\t\t\t\tSystem.out.print(\" -> \" + edge);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void printList(Node head) {\r\n Node current = head;\r\n\r\n while (current != null) {\r\n System.out.print(Integer.toString(current.value) + \" \");\r\n current = current.right;\r\n if (current == head)\r\n break;\r\n }\r\n\r\n System.out.println();\r\n }", "public static void printlist( LinkedList list)\r\n\t\t{\r\n\t\t Node current = list.head;\t\r\n\t\t System.out.println(\"LinkedList: \"); \r\n\t\t \r\n\t\t while (current != null)\r\n\t\t {\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t //even check\r\n\t\t\t if (current.data %2 ==0)\r\n\t\t\t {\r\n\t\t\t\t System.out.println(\"Even\" + current.data + \" \"); \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t System.out.println(\"all\" + current.data + \" \");\r\n\t\t\t current = current.next;\r\n\t\t\t \r\n\t\t\t //\r\n\t\t }\r\n\t\t System.out.println(\"\"); \r\n\t\t}", "public void display(){\n if (this.listSize == 0){\n System.out.println(\"This is an empty list!\");\n return;\n }else if(this.head.getNextNode() == null){\n System.out.print(this.head.getData()); //single-node list\n return;\n }\n System.out.print(this.head.getData() + \" -> \"); //print out head node\n singlyListNode ptr = this.head.getNextNode();\n while(ptr.getNextNode() != null){\n System.out.print(ptr.getData() + \" -> \");\n ptr = ptr.getNextNode();\n }\n //when ptr reaches second last node\n System.out.println(ptr.getData());\n }", "public void printList(LinkedList list) {\n Node currNode = list.head;\n\n System.out.println(\"LinkedList: \");\n\n // Traverse through the LinkedList\n while (currNode != null) {\n // Print the data at current node\n System.out.print(currNode.data + \" \");\n\n // Go to next node\n currNode = currNode.next;\n }\n }", "void printList() {\n BookList current = this;\n\n while (current.next!=null){\n current.book.display();\n current = current.next;\n if (current.next == null){\n current.book.display();\n }\n }\n \n }", "public void print() {\n System.out.print(datum+\" \");\n if (next != null) {\n next.print();\n }\n }", "void output(Linked temp)\n {\n while(temp!=null)\n {\n System.out.print(temp.data+\" \");\n temp = temp.next;\n }\n System.out.println();\n }", "private static void printNodeList(ListNode head) {\n StringBuilder sb = new StringBuilder();\n\n while (head != null) {\n sb.append(head.val);\n sb.append(\"->\");\n head = head.next;\n }\n sb.append(\"null\");\n\n System.out.println(sb.toString());\n }", "public void displayList(){\n ArtistNode node = head;\n \n //while the next node isnt null, we print out the node\n while(node.next!=null){\n \n System.out.println(node);\n \n //once we've printed out the current node, we set our node equal to the next node.\n node=node.next;\n \n }\n \n //We need this because it stops printing when node.next has a null value which the end node will always have a null value so we must print the last node\n //after the while loop ends\n System.out.println(node);\n \n \n }", "public static void printList(CardNode rear) {\n\t\tif (rear == null) { \n\t\t\treturn;\n\t\t}\n\t\tSystem.out.print(rear.next.cardValue);\n\t\tCardNode ptr = rear.next;\n\t\tdo {\n\t\t\tptr = ptr.next;\n\t\t\tSystem.out.print(\",\" + ptr.cardValue);\n\t\t} while (ptr != rear);\n\t\tSystem.out.println(\"\\n\");\n\t}", "public void print()\n {\n for (int i=0; i<list.length; i++)\n System.out.println(i + \":\\t\" + list[i]);\n }", "public String toString() { // display the linked list\n\t\tString output = \"\";\n\t\tNode<E> current = head;\n\t\twhile (current != null) {\n\t\t\toutput += \"[\" + current.getValue().toString() + \"]\";\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\treturn output;\n\t}", "private static void printList() {\n\tNode n=head;\n\tint size=0;\n\twhile(n!=null)\n\t{\n\t\tSystem.out.print(n.data+\" \");\n\t\tn=n.next;\n\t\tsize++;\n\t}\n\tn=head;\n\tfor(int i=0;i<size-1;i++)\n\t\tn=n.next;\n\tSystem.out.println(\"\\nreverse direction\");\n\twhile(n!=null)\n\t{\n\t\t\n\t\tSystem.out.print(n.data+\" \");\n\t\tn=n.prev;\n\t}\n\t\n}", "public void printList(){\n System.out.println(\"Printing the list\");\n for(int i = 0; i<adjacentcyList.length;i++){\n System.out.println(adjacentcyList[i].value);\n }\n }", "public static void printList(ListNode node) {\n StringBuilder sb = new StringBuilder();\n sb.append(node.val);\n node = node.next;\n while (true) {\n if (node == null) { break; }\n sb.append(\" -> \").append(node.val);\n node = node.next;\n }\n System.out.println(sb.toString());\n }", "public void display() {\n\t\tSystem.out.println(\"[\" + recDisplay(head) + \"]\");\n\t}", "void print() {\t\r\n\t\tIterator<Elemento> e = t.iterator();\r\n\t\twhile(e.hasNext())\r\n\t\t\te.next().print();\r\n\t}", "public void print()\n\t{\n\t\tDNode tem=first;\n\t\tSystem.out.print(tem.distance+\" \");\n\t\twhile(tem.nextDNode!=null)\n\t\t{\n\t\t\ttem=tem.nextDNode;\n\t\t\tSystem.out.print(tem.distance+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "private void iter() {\n Node curr = new Node();\n curr = head;\n while (curr != null) {\n System.out.print(curr.card + \" \");\n curr = curr.next;\n }\n }", "public void printElements() {\r\n for (int i = 0; i < pageList.size(); i++) {\r\n System.out.println(i + \" : \" + pageList.get(i));\r\n }\r\n }", "public static void printDigitListContents(ListNode head){\n while(head != null){\n System.out.print(head.val + \" -> \");\n head = head.next;\n }\n System.out.println();\n }", "private void printNode() {\n System.out.println(\"value:\" + value + \" next:\" + nextNode);\n }", "static void display(ListNode head) {\n\n if (head == null) {\n return;\n }\n ListNode current = head;\n\n while (current != null) {\n\n System.out.print(current.data + \" ==> \"); //print current element's data\n current = current.next;\n }\n System.out.println(current); //then current is null\n\n }", "void printList();", "@Override\r\n\tpublic String toString() {\r\n\t\tString result = \"\";\r\n\t\tif (!this.isEmpty()) {\r\n\t\t\tfor (ListNode<E> iter = this.first(); iter != null; iter = iter.next) {\r\n\t\t\t\tresult += iter + \", \";\r\n\t\t\t}\r\n\t\t\tresult += \"\\n\";\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public String toString ()\n {\n String str = \"\";\n Node nodeRef = head;\n for (int i = 0; i < size&& nodeRef!= null; i++) {\n str = str + nodeRef.data + \"\\n\";\n nodeRef = nodeRef.next;}\n return str;\n }", "public static void printList(String msg, Node head)\n {\n System.out.print(msg);\n \n Node ptr = head;\n while (ptr != null) {\n System.out.print(ptr.data + \" -> \");\n ptr = ptr.next;\n }\n System.out.println(\"null\");\n }", "public static void print(ListNode node) {\n while (node != null) {\n System.out.print(node.val + \" \");\n node = node.next;\n }\n System.out.println(\"\");\n }", "public void print() {\n\t\tif (cs213.isEmpty()) {\n\t\t\tSystem.out.println(\"List is empty!\");\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\tcs213.print();\n\t\t}\n\t\treturn;\n\t\t}", "public void print() {\r\n\t\tSystem.out.print(\"|\");\r\n\t\t//loop executes until all elements of the list are printed\r\n\t\tfor (int i=0;i<capacity;i++) {\r\n\t\t\tSystem.out.print(list[i]+\" |\");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public void printForward(){\n\t\t\n\t\tif(isEmpty())\n\t\t\treturn;\n\t\t\n\t\tNode theNode = head;\n\n\t\twhile(theNode != null){\n\t\t\tSystem.out.print(theNode.data + \" \");\n\t\t\ttheNode = theNode.next;\n\t\t}\n\t\tSystem.out.println();\n\n\t}", "private static void printListHelper(LinkedListNode front) {\n\t\tLinkedListNode current = front;\n\t\twhile (current != null) {\n\t\t\tSystem.out.print(current.data + \" \");\n\t\t\tcurrent = current.next;\n\t\t}\n\t}" ]
[ "0.8406808", "0.83391005", "0.83372575", "0.8331101", "0.83149374", "0.8296513", "0.82911086", "0.82859397", "0.8282798", "0.8250809", "0.820164", "0.81974393", "0.8150039", "0.8133371", "0.8091923", "0.8081795", "0.8079607", "0.806829", "0.80635417", "0.8058123", "0.80496675", "0.80346686", "0.80289197", "0.8013601", "0.7985401", "0.79823595", "0.79511654", "0.7930964", "0.79297495", "0.7915448", "0.7910671", "0.7898848", "0.78920996", "0.7875427", "0.7866208", "0.7865929", "0.78181845", "0.780549", "0.7800692", "0.77895343", "0.777088", "0.77671313", "0.7747961", "0.77232176", "0.77177507", "0.7696533", "0.76790273", "0.7665817", "0.76559895", "0.76477456", "0.7631936", "0.76216364", "0.7606485", "0.7596102", "0.75917995", "0.7577234", "0.7568242", "0.75668496", "0.7545749", "0.7538616", "0.7509275", "0.7497273", "0.74948585", "0.7492342", "0.749226", "0.74858725", "0.74750483", "0.744934", "0.74381167", "0.7424373", "0.7406739", "0.7379734", "0.734269", "0.7338261", "0.7337493", "0.7334009", "0.7320804", "0.7312132", "0.7293229", "0.7268736", "0.72658587", "0.72554755", "0.725192", "0.72512937", "0.7246594", "0.72404295", "0.7236362", "0.72251695", "0.7216148", "0.7214259", "0.7206227", "0.720159", "0.7195817", "0.7194143", "0.7186677", "0.71670216", "0.71514505", "0.71465284", "0.714502", "0.7140257", "0.71329564" ]
0.0
-1
log entries will be received through SharedPreferencesChangedListener
private static void writeToPreference(String type, String tag, String s) { /*SharedPreferences.Editor editor = eventHistory.edit(); //save log entries editor.putString( HISTORY_KEY, //key type + " " + s + " " + tag); //content editor.apply();*/ recipient.replyTo( 1, (type + " " + s + " " + tag)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeUserLog(String name){\n SharedPreferences user = context.getSharedPreferences(\"user_info\",0);\n SharedPreferences.Editor mydata = user.edit();\n mydata.putString(\"userlist\" ,name);\n mydata.commit();\n }", "@Override\n public void onLoging() {\n }", "@Override\n\t\tpublic void onReceive(Context context, Intent intent) {\n\n\t\t\tBundle bundleBroadcast = intent.getExtras();\n\t\t\tdateTextView.setText(bundleBroadcast.getString(\"key\"));\n\n\t\t\tList.clear();\n\t\t\tList = ActivityModule.get_fitmi_exercise_log(databaseObject);\n\t\t\t// setAdapter();\n\t\t\tactivityAdapter.notifyDataSetChanged();\n\n\t\t}", "void setLogLevelsFromSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n // Set root log level\n String logLevelRoot =\n sharedPreferences.getString(getString(R.string.preferences_key_log_level),\n getString(R.string.preferences_default_log_level));\n Logs.setRootLogLevel(logLevelRoot);\n\n // Set log level for file appender\n String logLevelFile =\n sharedPreferences.getString(getString(R.string.preferences_key_log_level_file),\n getString(R.string.preferences_default_log_level_file));\n Logs.setThresholdFilterLevel(logLevelFile, Constants.FILE_APPENDER_NAME, this);\n\n // Set log level for logcat appender\n String logLevelLogCat =\n sharedPreferences.getString(getString(R.string.preferences_key_log_level_logcat),\n getString(R.string.preferences_default_log_level_logcat));\n Logs.setLogCatLevel(logLevelLogCat, this);\n }", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n SharedPreferences preferences = getSharedPreferences(\"logInfo\",\n Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);\n switch (msg.what) {\n case LOGIN_OK:\n application.isLogin = true;\n editor.putBoolean(\"isLogin\", true);\n editor.commit();\n break;\n case LOGOUT_OK:\n application.isLogin = false;\n editor.putBoolean(\"isLogin\", false);\n editor.commit();\n break;\n case PASSWORD_ERROR:\n application.isLogin = false;\n editor.putBoolean(\"isLogin\", false);\n editor.commit();\n startActivity(intent);\n Toast.makeText(getApplicationContext(), getString(R.string.try_again), Toast.LENGTH_SHORT).show();\n break;\n case NETWORK_ERROR:\n application.isLogin = false;\n editor.putBoolean(\"isLogin\", false);\n editor.commit();\n startActivity(intent);\n Toast.makeText(getApplicationContext(), getString(R.string.try_again), Toast.LENGTH_SHORT).show();\n break;\n case LOGIN_FAILED:\n application.isLogin = false;\n editor.putBoolean(\"isLogin\", false);\n editor.commit();\n startActivity(intent);\n Toast.makeText(getApplicationContext(), getString(R.string.try_again), Toast.LENGTH_SHORT).show();\n break;\n }\n showNotification();\n }", "private void registerPrefsListener() {\n if (userSharedPreferences == null) {\n userSharedPreferences = Util.getUserSharedPreferences();\n }\n userPreferenceChangeListener = new SharedPreferences.OnSharedPreferenceChangeListener() {\n @Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n switch (key) {\n case HPIApp.Prefs.SHARED_KEY_TOTAL_STEPS:\n int steps = sharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_TOTAL_STEPS, 0);\n txtViewStepsCountToday.setText(String.valueOf(steps));\n break;\n case HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY:\n int milestones = sharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY, 0);\n txtViewMilestonesCountToday.setText(String.valueOf(milestones));\n case HPIApp.Prefs.SHARED_KEY_RUN_SERVICE:\n boolean runService = sharedPreferences.getBoolean(HPIApp.Prefs.SHARED_KEY_RUN_SERVICE, false);\n if (runService) {\n HPIApp.getAppContext().startService(new Intent(HPIApp.getAppContext(), StepService.class));\n } else {\n HPIApp.getAppContext().stopService(new Intent(HPIApp.getAppContext(), StepService.class));\n }\n default:\n break;\n }\n }\n };\n\n userSharedPreferences.registerOnSharedPreferenceChangeListener(userPreferenceChangeListener);\n }", "@Override\n public void onSharedPreferenceChanged(\n SharedPreferences sharedPreferences, String key) {\n preferencesChanged = true; // user changed app setting\n\n if (key.equals(USER_NAME)) {\n //update user name\n user.setName(sharedPreferences.getString(USER_NAME, \"\"));\n //update user name to firebase database\n databaseHandler.updateUserData(user.getUserId(), user.getUserName(),\n MessageEnum.UPDATE_USER_NAME);\n\n } else if (key.equals(LOCATION)) {\n //update user location\n user.setLocation(sharedPreferences.getString(LOCATION, \"\"));\n databaseHandler.updateUserData(user.getUserId(), user.getUserLocation(),\n MessageEnum.UPDATE_USER_LOCATION);\n }\n }", "public void logLocation(View view) {\n writeGPSDataToDB(locationHandler.getLatitude(), locationHandler.getLongitude(), locationHandler.getAltitude());\n databaseHandler.setValueInExpInfo(((TextView) findViewById(R.id.accelerate_indicator_rec)).getText().toString(), \"receiver_orientation\", experimentNumber);\n accelerometerHandler.close();\n Toast.makeText(this, \"receivers GPS data logged\", Toast.LENGTH_SHORT).show();\n gpsLogged = true;\n }", "@Override\r\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\r\n if (somethingIsBeingProcessed) {\r\n return;\r\n }\r\n if (onSharedPreferenceChanged_busy || !MyPreferences.isInitialized()) {\r\n return;\r\n }\r\n onSharedPreferenceChanged_busy = true;\r\n \r\n try {\r\n String value = \"(not set)\";\r\n if (sharedPreferences.contains(key)) {\r\n try {\r\n value = sharedPreferences.getString(key, \"\");\r\n } catch (ClassCastException e) {\r\n try {\r\n value = Boolean.toString(sharedPreferences.getBoolean(key, false));\r\n } catch (ClassCastException e2) {\r\n value = \"??\";\r\n }\r\n }\r\n }\r\n MyLog.d(TAG, \"onSharedPreferenceChanged: \" + key + \"='\" + value + \"'\");\r\n \r\n // Here and below:\r\n // Check if there are changes to avoid \"ripples\": don't set new\r\n // value if no changes\r\n \r\n if (key.equals(MyAccount.Builder.KEY_ORIGIN_NAME)) {\r\n if (state.getAccount().getOriginName().compareToIgnoreCase(mOriginName.getValue()) != 0) {\r\n // If we have changed the System, we should recreate the\r\n // Account\r\n state.builder = MyAccount.Builder.newOrExistingFromAccountName(\r\n AccountName.fromOriginAndUserNames(mOriginName.getValue(),\r\n state.getAccount().getUsername()).toString(),\r\n TriState.fromBoolean(state.getAccount().isOAuth()));\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(MyAccount.Builder.KEY_OAUTH)) {\r\n if (state.getAccount().isOAuth() != mOAuth.isChecked()) {\r\n state.builder = MyAccount.Builder.newOrExistingFromAccountName(\r\n AccountName.fromOriginAndUserNames(mOriginName.getValue(),\r\n state.getAccount().getUsername()).toString(),\r\n TriState.fromBoolean(mOAuth.isChecked()));\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(MyAccount.Builder.KEY_USERNAME_NEW)) {\r\n String usernameNew = mEditTextUsername.getText();\r\n if (usernameNew.compareTo(state.getAccount().getUsername()) != 0) {\r\n boolean isOAuth = state.getAccount().isOAuth();\r\n String originName = state.getAccount().getOriginName();\r\n state.builder = MyAccount.Builder.newOrExistingFromAccountName(\r\n AccountName.fromOriginAndUserNames(originName, usernameNew).toString(),\r\n TriState.fromBoolean(isOAuth));\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(Connection.KEY_PASSWORD)) {\r\n if (state.getAccount().getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n state.builder.setPassword(mEditTextPassword.getText());\r\n showUserPreferences();\r\n }\r\n }\r\n } finally {\r\n onSharedPreferenceChanged_busy = false;\r\n }\r\n }", "@SuppressLint(\"CommitPrefEdits\")\n @Override\n public void onLoadFinished(Loader<SharedPreferences> loader,\n SharedPreferences prefs) {\n }", "public void loadData(){\n SharedPreferences sharedPreferences=getSharedPreferences(\"logDetails\",Context.MODE_PRIVATE);\n nameText=sharedPreferences.getString(\"name\",\"na\");\n regText=sharedPreferences.getString(\"regnum\",\"na\");\n count=sharedPreferences.getInt(\"count\",1);\n\n\n }", "public void shared() {\n\n String Email = editTextEmail.getText().toString();\n String Password = editTextPassword.getText().toString();\n String username = userstring;\n\n SharedPreferences sharedlog = getSharedPreferences(\"usernamelast\" , MODE_PRIVATE);\n SharedPreferences.Editor editorlogin = sharedlog.edit();\n editorlogin.putString(\"usernamelast\", username);\n editorlogin.apply();\n\n SharedPreferences sharedPref = getSharedPreferences(\"email\", MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"email\", Email);\n editor.apply();\n //Los estados los podemos setear en la siguiente actividad\n SharedPreferences sharedPref2 = getSharedPreferences(\"password\", MODE_PRIVATE);\n SharedPreferences.Editor editor2 = sharedPref2.edit();\n editor2.putString(\"password\", Password);\n editor2.apply();\n\n\n }", "public void saveSettings(View v) {\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE); // get shared preferences\n SharedPreferences.Editor editor = sharedPref.edit();\n int seconds_rec = Integer.parseInt(time_recording.getText().toString());\n int notif_occ = Integer.parseInt(time_occurance.getText().toString());\n\n editor.putInt(getString(R.string.time_recording_seconds), seconds_rec); // save values to a sp\n editor.putInt(getString(R.string.time_notification_minutes), notif_occ);\n editor.commit(); // commit the differences\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "@Override\n \tpublic void onSharedPreferenceChanged(SharedPreferences prefs, String key) {\n \t\tcheckDefaults();\n \t}", "@Override\n public void onClick(View view) {\n insertLogEntry();\n\n Toast toast = Toast.makeText(getActivity(), \"Sighting logged\", Toast.LENGTH_SHORT);\n toast.show();\n\n // go to the log book activity\n Intent intent = new Intent(getActivity(), LogBookActivity.class);\n startActivity(intent);\n }", "public void setUserLogStatus(boolean bValue){\n /*SharedPreferences sharedPreferences = _context.getSharedPreferences(APP_PREFERENCES, PRIVATE_MODE);\n SharedPreferences.Editor editor;\n editor = sharedPreferences.edit();*/\n editor.putBoolean(IS_LOGGED_IN, bValue);\n editor.apply();\n }", "@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.pref);\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n //onSharedPreferenceChanged(sharedPreferences, getString(R.string.language_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.difficulty_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.word_category_key));\n }", "void storeEvents()\n {\n this.storedPresences = new ArrayList<Presence>();\n this.storeEvents = true;\n }", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.loadlog);\r\n \r\n\r\n Intent startIntent = getIntent();\r\n\t\tint sessionId = startIntent.getIntExtra(Gymlog.PUT_SESSION, 0);\r\n \r\n // --- Get list of workouts ----------\r\n // Open database\r\n GymlogDatabaseHelper myDbHelper = new GymlogDatabaseHelper(this);\r\n myDbHelper = new GymlogDatabaseHelper(this);\r\n \r\n\t \tmyDbHelper.openDataBase();\t \r\n\t \t\t\t\t\t\t\t \r\n\t \t// --- Get workout list ----------\r\n\t\tArrayList<ArrayList<String>> myLog = new ArrayList<ArrayList<String>>();\r\n\t \tmyLog = myDbHelper.logLoad(sessionId);\r\n myDbHelper.close();\r\n \r\n\t\t//Toast.makeText(getBaseContext(), myLog.toString(), Toast.LENGTH_SHORT).show();\r\n\r\n\t\tthis.mainListView = getListView();\r\n\t\t\r\n\t\tmainListView.setCacheColorHint(0);\r\n\t\t\r\n\t\t// --- bind the data with the list -------\r\n\t\tthis.customListAdapter = new LoadLogAdapter(this, R.layout.exerciseitem, myLog);\r\n\t\tmainListView.setAdapter(this.customListAdapter);\r\n\t\t\r\n \r\n // --- Back ----------\r\n Button back = (Button) findViewById(R.id.Back);\r\n back.setOnClickListener(new View.OnClickListener() {\r\n public void onClick(View view) {\r\n Intent intent = new Intent();\r\n setResult(RESULT_OK, intent);\r\n finish();\r\n }\r\n });\r\n \r\n // --- Done ----------\r\n // TODO Save all\r\n Button done = (Button) findViewById(R.id.Done);\r\n done.setOnClickListener(new View.OnClickListener() {\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO cool down activity\r\n\t\t\t\tIntent myIntent = new Intent(v.getContext(), Gymlog.class);\r\n\t\t\t\tstartActivityForResult(myIntent, 0);\r\n\t\t\t}\r\n\t\t});\r\n }", "@Override\r\n \tpublic void onSharedPreferenceChanged(SharedPreferences sp, String key) {\r\n \t\tif (localLOGV) {\r\n \t\t\tLog.i(TAG, \"Pref \" + key + \"changed... reading new value...\");\r\n \t\t}\r\n \t\tif (key.equals(res.getString(R.string.pref_data_file_key))) {\r\n \t\t\t// get new value\r\n \t\t\tString newPath = sp.getString(\r\n \t\t\t\t\tres.getString(R.string.pref_data_file_key), null);\r\n \t\t\tif (localLOGV) {\r\n \t\t\t\tLog.i(TAG, \"New value \" + String.valueOf(newPath));\r\n \t\t\t}\r\n \t\t\t// change value\r\n \t\t\tsetDataFileChanged(newPath);\r\n \t\t} else if (key.equals(res.getString(R.string.pref_data_file_gzip))) {\r\n \t\t\t// get new value\r\n \t\t\tgzipFile = sp.getBoolean(\r\n \t\t\t\t\tres.getString(R.string.pref_data_file_gzip), false);\r\n \t\t\tif (localLOGV) {\r\n \t\t\t\tLog.i(TAG, \"New value \" + String.valueOf(gzipFile));\r\n \t\t\t}\r\n \t\t\t// Set to reload file\r\n \t\t\treloadFile = true;\r\n \t\t} \r\n \t}", "private void logUser() {\n }", "public void logData(){\n }", "@Override\n public void passed() {\n Log.d(\"elomelo\",\"saved\");\n }", "@Override\n public void onSettingChanged(ListPreference pref) {\n }", "public interface LogListener {\n void onReadLogComplete();\n}", "@Override\n protected void onResume() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n sp.registerOnSharedPreferenceChangeListener(this);\n super.onResume();\n }", "@Override\n protected void onResume() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n sp.registerOnSharedPreferenceChangeListener(this);\n super.onResume();\n }", "public interface LogTypeCallback {\n\n void onLogType(ArrayList<String> values);\n}", "private void getLogs(final CallbackContext callbackContext) {\n final Activity context = cordova.getActivity();\n this.cordova.getThreadPool().execute(new Runnable() {\n public void run() {\n try {\n // TODO: Consultar base de datos.\n List<String> messages = new AppDatabase(context).getMessages();\n\n Log.v(\"Cordova\", \"messages count: \" + messages.size());\n\n String[] payload = messages.toArray(new String[0]);\n\n // Convierte el payLoad a JSON.\n String json = new Gson().toJson(payload);\n\n CordovaPluginJavaConnection.getLogsContext = callbackContext;\n sendResultSuccess(callbackContext, json);\n } catch (Exception ex) {\n errorProcess(callbackContext, ex);\n }\n }\n });\n }", "public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\r\n if (AccountSettings.this.mSomethingIsBeingProcessed) {\r\n return;\r\n }\r\n if (onSharedPreferenceChanged_busy || !MyPreferences.isInitialized()) {\r\n return;\r\n }\r\n onSharedPreferenceChanged_busy = true;\r\n\r\n try {\r\n String value = \"(not set)\";\r\n if (sharedPreferences.contains(key)) {\r\n try {\r\n value = sharedPreferences.getString(key, \"\");\r\n } catch (ClassCastException e) {\r\n try {\r\n value = Boolean.toString(sharedPreferences.getBoolean(key, false));\r\n } catch (ClassCastException e2) {\r\n value = \"??\";\r\n }\r\n }\r\n }\r\n MyLog.d(TAG, \"onSharedPreferenceChanged: \" + key + \"='\" + value + \"'\");\r\n\r\n // Here and below:\r\n // Check if there are changes to avoid \"ripples\": don't set new value if no changes\r\n \r\n if (key.equals(MyAccount.Builder.KEY_ORIGIN_NAME)) {\r\n if (state.getMyAccount().getOriginName().compareToIgnoreCase(mOriginName.getValue()) != 0) {\r\n // If we have changed the System, we should recreate the Account\r\n state.builder = MyAccount.Builder.valueOf(mOriginName.getValue() + \"/\" + state.getMyAccount().getUsername());\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(MyAccount.Builder.KEY_OAUTH)) {\r\n if (state.getMyAccount().isOAuth() != mOAuth.isChecked()) {\r\n state.builder.setOAuth(mOAuth.isChecked());\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(MyAccount.Builder.KEY_USERNAME_NEW)) {\r\n String usernameNew = mEditTextUsername.getText();\r\n if (usernameNew.compareTo(state.getMyAccount().getUsername()) != 0) {\r\n boolean oauth = state.getMyAccount().isOAuth();\r\n String originName = state.getMyAccount().getOriginName();\r\n // TODO: maybe this is not enough...\r\n state.builder = MyAccount.Builder.valueOf(originName + \"/\" + usernameNew);\r\n state.builder.setOAuth(oauth);\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(ConnectionBasicAuth.KEY_PASSWORD)) {\r\n if (state.getMyAccount().getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n state.builder.setPassword(mEditTextPassword.getText());\r\n showUserPreferences();\r\n }\r\n }\r\n } finally {\r\n onSharedPreferenceChanged_busy = false;\r\n }\r\n }", "public void syncLogsAccordingly( ){\n Log.d(TAG, \"Syncing Logs to Log panel\");\n\n try{\n Log.d(TAG , \"STATUS : \"+AppInfoManager.getAppStatusEncode());\n APPORIOLOGS.appStateLog(AppInfoManager.getAppStatusEncode());}catch (Exception e){}\n AndroidNetworking.post(\"\"+ AtsApplication.EndPoint_add_logs)\n .addBodyParameter(\"timezone\", TimeZone.getDefault().getID())\n .addBodyParameter(\"key\", AtsApplication.getGson().toJson(HyperLog.getDeviceLogs(false)))\n .setTag(\"log_sync\")\n .setPriority(Priority.HIGH)\n .build()\n .getAsJSONObject(new JSONObjectRequestListener() {\n @Override\n public void onResponse(JSONObject response) {\n try{\n ModelResultChecker modelResultChecker = AtsApplication.getGson().fromJson(\"\"+response,ModelResultChecker.class);\n if(modelResultChecker.getResult() == 1 ){\n Log.i(TAG, \"Logs Synced Successfully \");\n HyperLog.deleteLogs();\n onSync.onSyncSuccess(\"\"+AtsConstants.SYNC_EXISTING_LOGS);\n }else{\n Log.e(TAG, \"Logs Not synced from server got message \"+modelResultChecker.getMessage());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n }catch (Exception e){\n Log.e(TAG, \"Logs Not synced with error code: \"+e.getMessage());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n }\n @Override\n public void onError(ANError error) {\n Log.e(TAG, \"Logs Not synced with error code: \"+error.getErrorCode());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n });\n }", "void onEntryAdded(Entry entry);", "public interface OnLogReceivedListener {\n public void onLogReceived(String logMessage);\n}", "@Override\n public void onNewToken(String token) {\n Log.e(\"Token:\", token);\n }", "@Override\n public void logs() {\n \n }", "protected void onSharedPreferenceChangedExtended(SharedPreferences prefs,\n String key) {\n // no additional preferences, maybe the shopping list (in the future)\n }", "private void savePrefsData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putBoolean(\"isIntroOpnend\", true);\n editor.commit();\n }", "void updateLocalCallLogs() {\n setIncludePairedCallLogs();\n buildCallLogsList();\n\n notifyCallDataChanged();\n }", "@Override\r\n\t\t\t\t\tpublic void onLoginedNotify() {\n\t\t\t\t\t\tTypeSDKLogger.d( \"onLoginedNotify\");\r\n\t\t\t\t\t\thaimaLogout();\r\n\t\t\t\t\t\thaimaLogin();\r\n\t\t\t\t\t}", "public void addSessionToLog(Setting theSetting) {\n // move all history items one position\n if (n == 1) {\n history[1] = history[0];\n }\n else if (n == MAX_HISTORY) {\n for (int i=MAX_HISTORY-1; i>=1; i--) {\n history[i] = history[i-1];\n }\n }\n else {\n for (int i=n; i>=1; i--) {\n history[i] = history[i-1];\n }\n }\n\n // add new item\n history[0] = theSetting.toString();\n settingList.add(new Setting(history[0]));\n if (n < MAX_HISTORY) {\n n++;\n }\n\n // print them to file\n try {\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(appContext.openFileOutput(MainActivity.FILENAME, Context.MODE_PRIVATE));\n\n for (int i=0; i<n; i++) {\n outputStreamWriter.write(history[i] + \"\\n\");\n }\n\n outputStreamWriter.close();\n }\n catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }", "private void initLog() {\n _logsList = (ListView) findViewById(R.id.lv_log);\n setupLogger();\n }", "public void storeLogUser(UserModel user)\n {\n\n // convert User object into String\n //convert to string using gson\n String stringUser= gson.toJson(user);\n\n //creating an Editor object ; to Edit(write into the file)\n SharedPreferences.Editor editor = sharedPreferences.edit();\n\n //storing the VoiceMArkerModel object\n editor.putString(\"LogUser\",stringUser);\n\n //apply the changes\n editor.apply();\n }", "public void saveInfo(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userinfo\", Context.MODE_PRIVATE);\n\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"username\", usernameInput.getText().toString());\n\n editor.apply();\n Toast.makeText(this,\"Saved!\",Toast.LENGTH_LONG).show();\n }", "@Override\n public void onResume() {\n super.onResume();\n\n getPreferenceManager().getSharedPreferences().registerOnSharedPreferenceChangeListener(this);\n }", "public void saveInfo(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE); //This means the info is private and hence secured\n\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"username\", usernameInput.getText().toString());\n editor.putString(\"password\", passwordInput.getText().toString());\n editor.apply();\n\n Toast.makeText(this, \"Saved!\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onNewToken(String token) {\n Log.d(TAG, \"Refreshed token: \" + token);\n\n }", "@Override\n\t\tpublic void clear() {\n\t\t\tsuper.clear();\n\t\t\tLogCateManager.getInstance().onLogsChanged();\n\t\t}", "public static void logPreferenceState() {\n RecordHistogram.recordEnumeratedHistogram(\"Search.ContextualSearchPreferenceState\",\n getPreferenceValue(), ContextualSearchPreference.NUM_ENTRIES);\n }", "public void logDeviceEnterpriseInfo() {\n Callback<OwnedState> callback = (result) -> {\n recordManagementHistograms(result);\n };\n\n getDeviceEnterpriseInfo(callback);\n }", "@Override\n public boolean onPreferenceChange(Preference preference, Object newValue) {\n String difficultySummary = \"Username: \" + newValue;\n usernamePref.setSummary(difficultySummary);\n // Since we are handling the pref, we must save it\n SharedPreferences.Editor ed = sharedPrefs.edit();\n name = newValue.toString();\n ed.putString(\"user_id\", newValue.toString());\n ed.apply();\n return true;\n }", "@Override\n public void log()\n {\n }", "@Override\n\tprotected void onPause() {\n\t\tSharedPreferences.Editor editor = myprefs.edit();\n\t\teditor.putString(\"userN\", userName);\n\t\teditor.putString(\"name\",person_name);\n\t\teditor.commit();\n\t\tsuper.onPause();\n\t}", "public void log(View view) {\n Log.i(TAG, \"LOGGING FOR \" + X + \", \" + Y);\n logButton.setText(R.string.logging_message);\n logButton.setEnabled(false);\n progressBar.setVisibility(View.VISIBLE);\n\n numLogs = 0;\n // Stops scanning after a pre-defined scan period.\n mHandler.postDelayed(new Runnable() {\n @Override\n public void run() {\n numLogs++;\n if (numLogs < NUM_LOGS){\n log();\n mHandler.postDelayed(this, SCAN_PERIOD);\n } else {\n mScanning = false;\n scanBLEDevice(false);\n logButton.setText(R.string.start_log_message);\n logButton.setEnabled(true);\n progressBar.setVisibility(View.INVISIBLE);\n }\n }\n }, SCAN_PERIOD);\n\n mScanning = true;\n scanBLEDevice(true);\n\n }", "@Override\n public void onEvent(EventInterface e)\n {\n if (e.getTarget() instanceof Contacts || e.getTarget() instanceof Login) {\n try {\n settings.store();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n }", "public void saveInfo(View view) {\n SharedPreferences sharedPref = getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"username\", usernameInput.getText().toString());\n editor.putString(\"password\", passwordInput.getText().toString());\n editor.apply();\n\n usernameInput.setText(\"\");\n passwordInput.setText(\"\");\n\n Toast.makeText(this, \"Saved!\", Toast.LENGTH_LONG).show();\n }", "private static void initLog() {\n LogManager.mCallback = null;\n if (SettingsManager.getDefaultState().debugToasts) {\n Toast.makeText(mContext, mContext.getClass().getCanonicalName(), Toast.LENGTH_SHORT).show();\n }\n if (SettingsManager.getDefaultState().debugLevel >= LogManager.LEVEL_ERRORS) {\n new TopExceptionHandler(SettingsManager.getDefaultState().debugMail);\n }\n //Si hubo un crash grave se guardo el reporte en el sharedpreferences, por lo que al inicio\n //levanto los posibles crashes y, si el envio por mail está activado , lo envio\n String possibleCrash = StoreManager.pullString(\"crash\");\n if (!possibleCrash.equals(\"\")) {\n OtherAppsConnectionManager.sendMail(\"Stack\", possibleCrash, SettingsManager.getDefaultState().debugMailAddress);\n StoreManager.removeObject(\"crash\");\n }\n }", "private void saveData() {\n // Save data to ReminderData class\n reminderData.setMinutes(timePicker.getMinute());\n reminderData.setDataHours(timePicker.getHour());\n reminderData.setNotificationText(reminderText.getText().toString());\n reminderData.saveDataToSharedPreferences();\n }", "void saveLog(LogInfo logText);", "public void pindah_ke_log(View v)\n {\n Intent dashboard = new Intent(DashboardUser.this,BuyerTransactionActivity.class) ;\n dashboard.putExtra(\"param1\",value1);\n dashboard.putExtra(\"param2\",value2);\n dashboard.putExtra(\"param3\",value3);\n dashboard.putExtra(\"param4\",value4);\n dashboard.putExtra(\"param5\",value5);\n// SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);\n// SharedPreferences.Editor editor = sharedPreferences.edit();\n// editor.putString(TEXT, value1);\n// editor.putString(SWITCH, value2);\n// editor.apply();\n startActivityForResult(dashboard, 100);\n }", "@Override\n\tpublic void svnLogChanged(SVNLogEntry logEntry) {\n\t\tif (mMonitorNotRun) {\n\t\t\treturn;\n\t\t}\n\t\tLogger.println(\"==SvnLog begin to logchanged\");\n\t\t\n\t\t//TODO:文件匹配\n\t\tfilterAuthor(logEntry);\n\t\t\n\t\t//TODO:路径匹配\n\t\tfilterFile(logEntry);\n\t\t\n\t\t//TODO: 是否需要更新本次的版本\n\t\tfilterPath(logEntry);\n\t\t\n\t}", "public void onEntry()\n\t{\n\t}", "@SuppressWarnings(\"deprecation\")\n\tpublic void onSharedPreferenceChanged(SharedPreferences sharedPreferences,\n\t\t\tString key) {\n\t\t// 갱신 시간 간격\n\t\tif (key.equals(IBRConstants.KEY_PREF_REFRESH_INTERVAL)) {\n\t\t\tPreference refreshInterval = findPreference(key);\n\t\t\tint position = Integer.parseInt(sharedPreferences\n\t\t\t\t\t.getString(key, \"\"));\n\t\t\t// Set summary to be the user-description for the selected value\n\t\t\trefreshInterval.setSummary(mRefreshIntervals[position]);\n\n setLocationFinderRefreshInterval(position);\n\n\t\t} else if (key.equals(IBRConstants.KEY_PREF_FACEBOOK_PROFILE)) {\n Preference refreshInterval = findPreference(key);\n boolean isChecked =sharedPreferences\n .getBoolean(key, true);\n\n sendFacebookProfilePolicyToServer(isChecked);\n\n }\n\t\t// else if (key.equals(PBNConstants.KEY_PREF_ZOOM_LEVEL)) {\n\t\t// eventLabel = \"keep_draft\";\n\t\t// boolean value = sharedPreferences.getBoolean(key, false);\n\t\t// eventValue = (value) ? 1 : 0;\n\t\t//\n\t\t// }\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tLog.i(\"CONFIG\", \"onResume\");\r\n\t}", "private void logToFile() {\n }", "@Override\n public void run() {\n boolean previouslyStarted = prefs.getBoolean(\"isFirstRun\", false);\n read1(new Firebasecallback1() {\n @Override\n public void onCallback1(List<DummyItem> list) {\n\n Toast.makeText(splash.this,\"completed\" ,Toast.LENGTH_LONG ).show();\n }\n\n });\n\n if(!previouslyStarted) {\n SharedPreferences.Editor edit = prefs.edit();\n edit.putBoolean(\"isFirstRun\", Boolean.TRUE);\n edit.commit();\n Intent mainIntent = new Intent(splash.this,LoginActivity.class);\n splash.this.startActivity(mainIntent);\n splash.this.finish();\n }\n\n else\n { db= FirebaseDatabase.getInstance().getReference(\"patient\");\n SharedPreferences prefs1 = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n previously=prefs1.getString(\"key\",\"null\" );\n Toast.makeText(getBaseContext(),\"my \"+previously ,Toast.LENGTH_LONG ).show();\n read(new LoginActivity.Firebasecallback() {\n @Override\n public void onCallback(List<user> list) {\n // Toast.makeText(getActivity(), \"msg12\",Toast.LENGTH_LONG).show();\n for (user e:list)\n { // Toast.makeText(LoginActivity.this, \"list\",Toast.LENGTH_LONG).show();\n if(previously.equals(e.id))\n { Toast.makeText(splash.this, e.url,Toast.LENGTH_LONG).show();\n LoginActivity.userg=new user(e.id,e.username,e.mail,e.url,e.phn,e.lat,e.lng);\n LoginActivity.usname=e.username;\n LoginActivity.name=e.mail;\n if(e.url==null)\n LoginActivity.url=null;\n else\n LoginActivity.url=Uri.parse(e.url);\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n SharedPreferences.Editor edit = preferences.edit();\n edit.putString(\"key\",e.id);\n edit.commit();\n break;\n\n }\n }\n\n check=true;\n Intent mainIntent = new Intent(splash.this, MainActivity.class);\n splash.this.startActivity(mainIntent);\n splash.this.finish();\n // Toast.makeText(splash.this, \"mmmm\", Toast.LENGTH_SHORT).show();\n //LoginActivity.usname=null;\n\n\n }\n\n });\n }\n }", "private void writePref() {\n SharedPreferences.Editor editor = sp.edit();\n long currentTime = System.currentTimeMillis();\n editor.putLong(UPDATE, currentTime);\n editor.commit();\n System.out.println(\"Time of current update: \" + getDateFromLong(currentTime));\n }", "@Override\n public void updateLog(String msg) {\n\n setText2Log(msg);\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tthis.prefs = PreferenceManager.getDefaultSharedPreferences(this);\n\t\t/*\n\t\t * Each app has its own shared preferences available to all components\n\t\t * of the app and this loads the default preferences that are saved on\n\t\t * the phone\n\t\t */\n\t\tthis.prefs.registerOnSharedPreferenceChangeListener(this);\n\t\t/*\n\t\t * Each user can change preferences. So this listener is a mechanism to\n\t\t * notify this activity that the old values are stale\n\t\t */\n\t}", "protected void writeLog() {\r\n\r\n // get the current date/time\r\n DateFormat df1 = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);\r\n\r\n // write to the history area\r\n if (Preferences.is(Preferences.PREF_LOG) && completed) {\r\n\r\n if (destImage != null) {\r\n\r\n if (srcImage != null) {\r\n destImage.getHistoryArea().setText(srcImage.getHistoryArea().getText());\r\n }\r\n\r\n if (historyString != null) {\r\n destImage.getHistoryArea().append(\"[\" + df1.format(new Date()) + \"] \" + historyString);\r\n }\r\n } else if (srcImage != null) {\r\n\r\n if (historyString != null) {\r\n srcImage.getHistoryArea().append(\"[\" + df1.format(new Date()) + \"] \" + historyString);\r\n }\r\n }\r\n }\r\n }", "public void onWritePersistent(View view) {\n if(view != null) {\n // Create and populate the properites\n ApplikationEinstellungen applikationEinstellungen = new ApplikationEinstellungen(getApplicationContext());\n ArrayList<String> zeiten = new ArrayList<>();\n zeiten.add(this.zeit1Von.getText().toString());\n zeiten.add(this.zeit1Bis.getText().toString());\n zeiten.add(this.zeit2Von.getText().toString());\n zeiten.add(this.zeit2Bis.getText().toString());\n zeiten.add(this.zeit3Von.getText().toString());\n zeiten.add(this.zeit3Bis.getText().toString());\n zeiten.add(this.zeit4Von.getText().toString());\n zeiten.add(this.zeit4Bis.getText().toString());\n applikationEinstellungen.setZeiten(zeiten);\n applikationEinstellungen.setSchwellwertBewegungssensor(this.seekbarSchwellwert.getProgress());\n applikationEinstellungen.setIntervallSmsBenachrichtigung(Integer.parseInt(smsIntervall.getText().toString()) * 60 * 1000);\n applikationEinstellungen.setMonitorAktiv(this.monitorAktiv.isChecked() ? 1 : 0);\n applikationEinstellungen.setBenutzerName(this.benutzerName.getText().toString());\n // Write persistent\n Datenbank.getInstanz(getApplicationContext()).set(applikationEinstellungen);\n finish();\n }\n }", "@Override\n\tpublic void onSave() {\n\t\tchatFile();\n\t}", "public void add_to_log(String s){\n }", "private void saveAppState(Context context) {\n LogHelper.v(LOG_TAG, \"Saving state.\");\n }", "@Override\n \tpublic void onSharedPreferenceChanged(SharedPreferences sharedPreferences,\n \t\t\tString key) {\n \t\ttwitter = null;\n \t}", "private void saveData() {\n\n SharedPreferences sharedPreferences=getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreferences.edit();\n\n editor.putString(\"name\",name.getText().toString());\n editor.putString(\"regnum\",regnum.getText().toString());\n editor.putInt(\"count\", count);\n editor.apply();\n\n }", "@Override\n protected void onResume() {\n sharedpreferences = getApplicationContext().getSharedPreferences(mypreference, Context.MODE_PRIVATE);\n sharedpreferences = getSharedPreferences(mypreference, Context.MODE_PRIVATE);\n\n if(!viewModel.isUserLoggedIn()) {\n if (sharedpreferences.contains(\"email\") && sharedpreferences.contains(\"password\")){\n loadSharedPreferences();\n String email = viewModel.getDBUser().getEmail();\n int atIndex = email.indexOf(\"@\");\n email = email.substring(0, atIndex);\n getSupportActionBar().setTitle(\"Notas de \" + email);\n viewModel.refreshNotes();\n }\n else{\n this.finish();\n goToLoginActivity();\n }\n }\n else {\n String email = viewModel.getDBUser().getEmail();\n int atIndex = email.indexOf(\"@\");\n email = email.substring(0, atIndex);\n getSupportActionBar().setTitle(\"Notas de \" + email);\n viewModel.refreshNotes();\n }\n\n super.onResume();\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n if (key.equals(getString(R.string.pref_driver_key))) {\n setDriver(sharedPreferences);\n } else if (key.equals(getString(R.string.pref_track_key))) {\n setTrack(sharedPreferences);\n }\n }", "public void addRecentVisited(int position) {\n SharedPreferences sharedPref1 = getContext().getSharedPreferences(\"recentVisited\", Context.MODE_PRIVATE);\n Boolean removeOld=false;\n int toRemove=0;\n Log.d(\"size\", userName.size()+\"\");\n int count = sharedPref1.getInt(\"size\",0);\n for(int i=0;i<count+1;i++){\n\n // checks if user is in shared preferences.\n if(Objects.equals(sharedPref1.getString(\"uid_\" + i, \"null\"), uid.get(position))){\n toRemove=i;\n removeOld=true;\n }\n }\n SharedPreferences.Editor editor = sharedPref1.edit();\n if(removeOld){\n editor.remove(\"uid_\"+toRemove);\n editor.remove(\"name_\"+toRemove);\n }\n editor.putInt(\"size\",(count+1));\n editor.putString(\"name_\" + (count+1), userName.get(position));\n editor.putString(\"uid_\" + (count+1), uid.get(position));\n\n editor.apply();\n\n }", "@Override\n public void onSave(MessageContainer messages) {\n }", "private void persistData() {\n mSharedPref.storeLastScreen(SCREEN_NAME);\n }", "public void viewLogs() {\n\t}", "public void onSaveListen() {\n _gamesList.get(_gamePos).getPlayers().add(playerName);\n // Increment the number of players that have joined the game\n _gamesList.get(_gamePos).setNumPlayers(_gamesList.get(_gamePos).getNumPlayers() + 1);\n\n TextView playersBlock = (TextView) findViewById(R.id.playersBlock);\n playersBlock.setText(\"\");\n List<String> players = _gamesList.get(_gamePos).getPlayers();\n for(int i = 0; i < players.size(); i++) {\n Log.d(\"GamePlayerSize\", Integer.toString(_gamesList.get(_gamePos).getPlayers().size()));\n if (i < players.size() - 1) {\n playersBlock.append(players.get(i) + \", \");\n }\n else {\n // Don't put a comma after the last one\n playersBlock.append(players.get(i));\n }\n }\n\n // Update the shared preferences with the edited game\n SharedPreferences gamesPref = this.getSharedPreferences(GAMES_FILE, MODE_PRIVATE);\n Gson gson = new Gson();\n\n SharedPreferences.Editor prefsEditor = gamesPref.edit();\n\n // Convert the games list into a json string\n String json = gson.toJson(_gamesList);\n Log.d(\"MainActivity\", json);\n\n // Update the _gamesMasterList with the modified _game\n prefsEditor.putString(GAME_KEY, json);\n prefsEditor.commit();\n\n Context context = getApplicationContext();\n CharSequence text = \"You have joined the game!\";\n int duration = Toast.LENGTH_SHORT;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "public void saveLogEntry(LogEntry log){\n\t\tlog.creationTime = new Date();\n\t\tgetSession().save(log);\n\t}", "public void logSensorData () {\n\t}", "@Override // com.android.settings.dashboard.DashboardFragment\n public String getLogTag() {\n return \"ConfigNotiSettings\";\n }", "public void logStoreAppendSuccess(AppendLogCommand cmd) {\r\n\r\n\r\n\r\n if (logger.isInfoEnabled())\r\n logger.info(\"LogStore call back MemberAppend {}\",\r\n new String(cmd.getTerm() + \" \" + cmd.getLastIndex()));\r\n\r\n\r\n\r\n // send to all follower and self\r\n\r\n\r\n\r\n }", "private void guardaRecord() {\n // Guardamos el record\n SharedPreferences datos = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor miEditor = datos.edit();\n miEditor.putInt(\"RECORD\", record);\n miEditor.apply();\n }", "private static void logResult(Tokens tokens) {\n\t\tLog.i(\"Got access token: \"+ tokens.getAccessToken());\n\t\tLog.i(\"Got refresh token: \"+ tokens.getRefreshToken());\n\t\tLog.i(\"Got token type: \"+ tokens.getTokenType());\n\t\tLog.i(\"Got expires in: \"+ tokens.getExpiresIn());\n\t}", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n if (key.equals(getString(R.string.pref_show_distance_key))) {\n boolean isChecked = sharedPreferences.getBoolean(getString(R.string.pref_show_distance_key),\n Boolean.parseBoolean(getString(R.string.pref_show_distance_default)));\n storeOnlyShowLocationDataInDatabase(isChecked);\n }\n }", "public void checkLogUser()\n {\n //get User\n\n String s1 = sharedPreferences.getString(\"LogUser\",\"\");\n\n Log.i(TAG,s1);\n\n if(!(s1 == \"\"))\n {\n ///call the Home Screen ;\n Intent intent = new Intent(LoginActivity.this, MainActivity.class);\n String myJson = gson.toJson(s1);\n intent.putExtra(\"user\", myJson);\n startActivity(intent);\n finish();\n\n }\n }", "public void clearAudit(View view) {\n audit = \"\";\n auditText.setText((audit));\n PreferenceManager.getDefaultSharedPreferences(this).edit().putString(\"audit\", audit).commit();\n\n }", "@Override\n\t@SuppressWarnings(\"deprecation\")\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tgetPreferenceScreen().getSharedPreferences()\n\t\t\t\t.registerOnSharedPreferenceChangeListener(this);\n\n\t}", "@Override\n public void onTabChanged(String tabId) {\n\t\t\t\tif(tabId.equalsIgnoreCase(FocusKeyWord.page_log.toString())&&isFirstInitLogBoolean){\n \tif(isLoadingLog==false)\n \t\tLoadPlayerLog(); \n \tSetFocusToView(refreshButton);\n \tisFirstInitLogBoolean=false;\n }\n else if(tabId.equalsIgnoreCase(FocusKeyWord.page_download.toString())&&isFirstInitDownloadBoolean){\n \tStartDownloadDatas();\n \tisFirstInitDownloadBoolean=false;\n }\n }", "private void saveValues() {\n for (Map.Entry<EditText, Integer> e : mPrefKeys.entrySet()) {\n // If the field is disabled, add the DEACTIVATED marker to the value of the field\n if (e.getKey().isEnabled())\n Pref.put(this, e.getValue(), e.getKey().getText().toString());\n else\n Pref.put(this, e.getValue(), Data.DEACTIVATED_MARKER + e.getKey().getText().toString());\n }\n\n }", "@Override\n\tprotected void onHandleIntent(Intent intent) {\n\t\tif (intent != null) {\n\t\t\tfinal String action = intent.getAction();\n\t\t\tif (ACTION_LOG_MESSAGE.equals(action)) {\n\t\t\t\tfinal MessageRecord record = intent.getParcelableExtra(EXTRA_RECORD);\n\t\t\t\thandleActionLog(record);\n\t\t\t}else if(ACTION_LOG_ATTACK.equals(action)){\n\t\t\t\tfinal AttackRecord record = intent.getParcelableExtra(EXTRA_RECORD);\n\t\t\t\thandleActionLog(record);\n\t\t\t}else if(ACTION_LOG_NETWORK.equals(action)){\n\t\t\t\tfinal NetworkRecord record = intent.getParcelableExtra(EXTRA_RECORD);\n\t\t\t\thandleActionLog(record);\n\t\t\t}else if(ACTION_LOG_PORTSCAN.equals(action)){\n\t\t\t\tfinal AttackRecord attackRecord = intent.getParcelableExtra(EXTRA_RECORD);\n\t\t\t\tfinal NetworkRecord networkRecord = intent.getParcelableExtra(EXTRA_RECORD2);\n\t\t\t\tattackRecord.setRecord(networkRecord);\n\n\t\t\t\tMessageRecord messageRecord = new MessageRecord(true);\n\t\t\t\tmessageRecord.setAttack_id(attackRecord.getAttack_id());\n\t\t\t\tmessageRecord.setRecord(attackRecord);\n\t\t\t\t//messageRecord.setId(0);\n\t\t\t\tmessageRecord.setPacket(\"\");\n\t\t\t\tmessageRecord.setTimestamp(intent.getLongExtra(EXTRA_TIMESTAMP, 0));\n\t\t\t\tmessageRecord.setType(MessageRecord.TYPE.RECEIVE);\n\t\t\t\thandleActionLog(attackRecord);\n\t\t\t\thandleActionLog(networkRecord);\n\t\t\t\thandleActionLog(messageRecord);\n\t\t\t} else if(ACTION_LOG_MULTISTAGE.equals(action)) {\n\t\t\t\tfinal AttackRecord attackRecord = intent.getParcelableExtra(EXTRA_RECORD);\n\t\t\t\tfinal NetworkRecord networkRecord = intent.getParcelableExtra(EXTRA_RECORD2);\n\t\t\t\tfinal MessageRecord msgRecord = intent.getParcelableExtra(EXTRA_RECORD3);\n\t\t\t\tmsgRecord.setRecord(attackRecord);\n\t\t\t\tattackRecord.setRecord(networkRecord);\n\n\t\t\t\thandleActionLog(attackRecord);\n\t\t\t\thandleActionLog(networkRecord);\n\t\t\t\thandleActionLog(msgRecord);\n\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\tpublic boolean add(LogCate e) {\n\t\t\tsuper.add(e);\n\t\t\tLogCateManager.getInstance().onLogsChanged();\n\t\t\treturn true;\n\t\t}", "public void saveData(){\n SharedPreferences sharedPreferences = getSharedPreferences(\"SHARED_PREFS\",MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"email_pref\",email.getText().toString());\n editor.putString(\"password_pref\",uPassword.getText().toString());\n editor.apply();\n }", "private void saveSharedPref() {\n SharedPreferences.Editor editor = this.sharedPreferences.edit();\n if (checkBox.isChecked()) {\n editor.putBoolean(Constants.SP_IS_REMEMBERED_KEY, true);\n }\n editor.apply();\n }", "@Override\r\n\tpublic void onSharedPreferenceChanged(SharedPreferences sharedPreferences,\r\n\t\t\tString key) {\n\t\tupdatePrefSummary(findPreference(key));\r\n\r\n\t}", "public void globalLog() {\n\t\tIterator iter = myCommit.entrySet().iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tMap.Entry entry = (Map.Entry) iter.next();\n\t\t\tVersion currVersion = (Version) entry.getValue();\n\t\t\tcurrVersion.log();\n\t\t}\n\t}" ]
[ "0.6626841", "0.6342607", "0.62195945", "0.6175245", "0.6172245", "0.5980613", "0.5921773", "0.58961767", "0.5890087", "0.5837002", "0.5760734", "0.57439744", "0.57197064", "0.57138264", "0.5705381", "0.5684689", "0.5667788", "0.5664915", "0.56496084", "0.5644393", "0.5626905", "0.5602634", "0.5588239", "0.55780107", "0.55608106", "0.55283743", "0.55283743", "0.55208224", "0.5518772", "0.5510186", "0.5505677", "0.54958", "0.54860854", "0.5476865", "0.54665875", "0.5457265", "0.54488355", "0.5434332", "0.5428891", "0.5426666", "0.54100853", "0.5396902", "0.5368187", "0.5362003", "0.5361175", "0.535566", "0.5349551", "0.5345196", "0.5340367", "0.53352016", "0.5330005", "0.53203183", "0.53167665", "0.531006", "0.5309714", "0.52795976", "0.5279415", "0.52638876", "0.52618116", "0.5260944", "0.5259163", "0.5255983", "0.52533907", "0.5245479", "0.5242642", "0.5239081", "0.52234644", "0.5219133", "0.5216888", "0.5215498", "0.52145183", "0.5210862", "0.52097327", "0.5188568", "0.5188142", "0.5186539", "0.51861894", "0.51826715", "0.51822656", "0.5178674", "0.51778114", "0.51742345", "0.5174006", "0.51728016", "0.5165387", "0.515206", "0.5150833", "0.51495105", "0.51489717", "0.5147608", "0.5146205", "0.5135295", "0.51342475", "0.5134107", "0.51264495", "0.512429", "0.51188034", "0.5118644", "0.51178217", "0.51166683" ]
0.55253845
27
When binding to the service, we return an interface to our messenger for sending messages to the service.
@Override public IBinder onBind(Intent intent) { if(DEBUG)Log.d(TAG, "onBind"); serviceConnected = true; Toast.makeText(getApplicationContext(), "binding", Toast.LENGTH_SHORT).show(); return mMessenger.getBinder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ServiceMessenger\n{\n\t/* public: ServiceMessager interface */\n\n\tpublic void sendEvent(Event event);\n}", "public interface MessageService {\n boolean sendMessage(String msg, String receiver);\n}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n\n messengerService = new Messenger(service);\n messengerServiceBound = true;\n }", "public interface MessageService {\n String getMessage();\n}", "public interface MessageService {\n String getMessage();\n}", "public interface IMessageService {\n\n /**\n * Notifies subscribed clients with the given message.\n *\n * @param m Message (e.g. object, status, warning)\n */\n void notify(Message m);\n\n /**\n * Notifies subscribed clients with the given message.\n *\n * @param m Message (e.g. object, status, warning)\n */\n void notify(PushMessage m);\n\n /**\n * Notifies subscribed clients with the given message and push-type (e.g. ALERT)\n * \n * @param data message which should be send to the client\n * @param type type of the notification (manual step, ...)\n */\n void notify(String data, PushType type);\n\n /**\n * Subscribes a client for push-notifications.\n *\n * @param id id of the client (address)\n */\n void subscribe(String id);\n\n /**\n * unsubscribes a client for push-notifications.\n *\n * @param id id of the client (address)\n */\n void unsubscribe(String id);\n\n /**\n * Informs all subscribed devices that something went wrong and the brewing process wasnt\n * successfull and could cause damage\n * \n * @param text message which should be shown to the user\n */\n void alarm(String text);\n}", "public void bindSendService(){\r\n\t\tif (sendService!=null){\r\n\t\t\tIntent intent = new Intent(context, SendService.class);\r\n\t context.bindService(intent, sendServiceConnection, Context.BIND_AUTO_CREATE);\r\n\t \r\n\t\t}\r\n\t}", "public interface MessageSender {\n boolean handle(Context context, MessageResponse response);\n}", "public interface ReceiverService {\n void process(String message);\n}", "public interface MessagingService {\n\n /**\n * Checks whether message receivers are registered for this channel.\n * \n * @param ccid the channel id\n * @return <code>true</code> if there are message receivers on this channel,\n * <code>false</code> if not.\n */\n boolean hasMessageReceiver(String ccid);\n\n /**\n * Passes the message to the registered message receiver.\n * \n * @param ccid the channel to pass the message on\n * @param serializedMessage the message to send (serialized SMRF message)\n */\n void passMessageToReceiver(String ccid, byte[] serializedMessage);\n\n /**\n * Check whether the messaging component is responsible to send messages on\n * this channel.<br>\n * \n * In scenarios with only one messaging component, this will always return\n * <code>true</code>. In scenarios in which channels are assigned to several\n * messaging components, only the component that the channel was assigned\n * to, returns <code>true</code>.\n * \n * @param ccid\n * the channel ID or cluster controller ID, respectively.\n * @return <code>true</code> if the messaging component is responsible for\n * forwarding messages on this channel, <code>false</code>\n * otherwise.\n */\n boolean isAssignedForChannel(String ccid);\n\n /**\n * Check whether the messaging component was responsible before but the\n * channel has been assigned to a new messaging component in the mean time.\n * \n * @param ccid the channel id\n * @return <code>true</code> if the messaging component was responsible\n * before but isn't any more, <code>false</code> if it either never\n * was responsible or still is responsible.\n */\n boolean hasChannelAssignmentMoved(String ccid);\n}", "public interface SendService {\n\n public void sendMessage(RemotingCommand remotingCommand, long timeout);\n}", "public void onServiceConnected(ComponentName className, IBinder service) {\n mService = new Messenger(service);\n mBound = true;\n }", "public void onServiceConnected(ComponentName className, IBinder service) {\n mService = new Messenger(service);\n mBound = true;\n }", "@Override\n public IBinder onBind(Intent intent) {\n return mMessenger.getBinder();\n }", "public interface IRemoteMessageService {\n\n void unsubscribeToMessage(UnSubscribeToMessage cmd);\n\n /**\n * Sets a message element to a specified value\n */\n void setElementValue(SetElementValue cmd);\n\n void zeroizeElement(ZeroizeElement cmd);\n\n /**\n * Notifies service to send message updates to the specified ip address\n */\n SubscriptionDetails subscribeToMessage(SubscribeToMessage cmd);\n\n Set<? extends DataType> getAvailablePhysicalTypes();\n\n boolean startRecording(RecordCommand cmd);\n\n InetSocketAddress getRecorderSocketAddress();\n\n InetSocketAddress getMsgUpdateSocketAddress();\n\n void stopRecording();\n\n void terminateService();\n\n void reset();\n\n void setupRecorder(IMessageEntryFactory factory);\n\n public Map<String, Throwable> getCancelledSubscriptions();\n}", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n BinderService.LocalBinder binder = (BinderService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\treturn mMessenger.getBinder();\n\t}", "public interface SysMessageService extends Service<SysMessage> {\r\n\r\n}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n MyService.LocalBinder binder = (MyService.LocalBinder) service;\n myService = binder.getService();\n isBound = true;\n\n }", "@Nullable\n @Override\n public IBinder onBind(Intent intent) {\n return messenger.getBinder();\n }", "public interface SendService {\n\n void send(String exchange,String routingKey,String content);\n}", "public void bind() {\n\n Intent startintent = new Intent(context, MafService.class);\n startintent.setAction(\"com.baidu.maf.service\");\n\n if(ServiceControlUtil.showInSeperateProcess(context)) {\n try {\n context.startService(startintent);\n } catch (Exception e) {\n LogUtil.e(TAG, \"fail to startService\", e);\n }\n }\n\n //Intent intent = new Intent(InAppApplication.getInstance().getContext(), OutAppService.class);\n\n\n boolean result =\n context.bindService(startintent, mConnection, Context.BIND_AUTO_CREATE);\n\n LogUtil.printMainProcess(\"Service bind. reslut = \" + result);\n LogUtil.printMainProcess(\"bind. serverMessenger = \" + serverMessenger);\n mIsBound = result;\n }", "public MessagingService messaging() {\n return service;\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalBinder binder = (LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "public void onServiceConnected(ComponentName className, IBinder service) {\n \tmServiceMessenger = new Messenger(service);\r\n // We want to monitor the service for as long as we are\r\n // connected to it.\r\n try {\r\n Message message = Message.obtain(null, WATCHiTServiceInterface.REGISTER_CLIENT);\r\n message.replyTo = mMessenger;\r\n mServiceMessenger.send(message);\r\n } catch (RemoteException e) {\r\n // In this case the service has crashed before we could even\r\n // do anything with it; we can count on soon being\r\n // disconnected (and then reconnected if it can be restarted)\r\n // so there is no need to do anything here.\r\n }\r\n // Toast.makeText(MainActivity.this, R.string.remote_service_bound, Toast.LENGTH_SHORT).show();\r\n }", "public interface FloatServiceBinder {\n /**\n * 启动并且绑定服务完成\n * @param componentName ServiceConnection的componentName\n * @param iBinder ServiceConnection的iBinder\n */\n void onBindSucceed(ComponentName componentName, IBinder iBinder);\n\n /**\n * 当服务意外死亡时触发\n * @param componentName ServiceConnection的componentName\n */\n void onServiceDisconnected(ComponentName componentName);\n}", "public interface OnMessagingServiceConnetcedListenner {\n void onServiceConnected();\n}", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\treturn serviceBinder;\n\t}", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n ServerService.LocalBinder binder = (ServerService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n public IBinder onBind(Intent intent) {\n \tinit(\"scream\", Boolean.parseBoolean(intent.getStringExtra(MessageCode.DEBUG_FLAG)));\n \t\n \tStrandLog.d(ScreamService.TAG, \"Binding Service started\");\n \t\n\t\tIntent i = new Intent(this, ScreamService.class);\n\t\ti.putExtra(MessageCode.PARAM_LIST, intent.getStringExtra(MessageCode.PARAM_LIST));\n\t\tstartService(i);\n\n\t\treturn mMessenger.getBinder();\n }", "public interface MessageService {\r\n\r\n BaseResult addMessage(MessageVo vo, Account user,String oType,String url);\r\n\r\n BaseResult selectMessage(QueryMessageVo vo);\r\n\r\n BaseResult selectMessageDetail(String cusId);\r\n\r\n BaseResult delMessage(String cusId);\r\n\r\n BaseResult getCount(String acceptType,String cusKind);\r\n\r\n BaseResult updateMessage(MessageVo vo, Account user);\r\n}", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n ConnectionService.ConnectionBinder binder = (ConnectionService.ConnectionBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "void doBindService() {\n\t\tbindService(new Intent(this, eidService.class), mConnection, Context.BIND_AUTO_CREATE);\n//\t\tLog.i(\"Convert\", \"At doBind2.\");\n\n\t\tmIsBound = true;\n\t\n\t\tif (mService != null) {\n//\t\t\tLog.i(\"Convert\", \"At doBind3.\");\n\t\t\ttry {\n\t\t\t\t//Request status update\n\t\t\t\tMessage msg = Message.obtain(null, eidService.MSG_UPDATE_STATUS, 0, 0);\n\t\t\t\tmsg.replyTo = mMessenger;\n\t\t\t\tmService.send(msg);\n\t\t\t\tLog.i(\"Convert\", \"At doBind4.\");\n\t\t\t\t//Request full log from service.\n\t\t\t\tmsg = Message.obtain(null, eidService.MSG_UPDATE_LOG_FULL, 0, 0);\n\t\t\t\tmService.send(msg);\n\t\t\t} catch (RemoteException e) {}\n\t\t}\n//\t\tLog.i(\"Convert\", \"At doBind5.\");\n\t}", "@Override\n\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\tserviceMessenger = new Messenger(service);\n\t\tsendMessageToService(ConnectionService.GET_MESSENGER);\n\t\tsendMessageToService(ConnectionService.CONNECT, host, port, key,\n\t\t\t\tinterval);\n\t}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n messenger = new Messenger(service);\n try {\n Message msg = Message.obtain(null, 2);\n msg.replyTo = mMessenger;\n messenger.send(msg);\n } catch (Exception e) {\n e.printStackTrace();\n }\n startActivity(new Intent(SplashActivity.this, ElawalletaActivity.class));\n finish();\n }", "public interface SystemMessageService {\n void subscribe(long lastSystemMessageId, User user);\n\n void message(SystemMessage systemMessage, User user);\n}", "@Override\n\tpublic IBinder onBind(Intent arg0)\n\t{\n\t\tLog.i(\"JSChatClientService\", \"JSChatClientService bound.\");\n\t\treturn binder;\n\t}", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n TranscriptDownService.LocalBinder binder = (TranscriptDownService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tBind bind = (Bind) service;\n\t\t\tParcel data = Parcel.obtain();\n\t\t\tParcel reply = Parcel.obtain();\n\t\t\tdata.writeString(\"test\");\n\t\t\ttry {\n\t\t\t\tbind.transact(0, data, reply, 0);\n\t\t\t} catch (RemoteException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tLog.i(tag, bind.a);\n\t\t}", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalService.LocalBinder binder = (LocalService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalService.LocalBinder binder = (LocalService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "public void bindMessageChannelService(MessageChannelService newInstance) {\n messageChannelService = newInstance;\n }", "public interface MessageSender {\n\tpublic void enqueueMessage(Message m);\n}", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\tLog.i(TAG, \"service on bind\");\n\t\treturn mBinder;\n\t}", "void bind(EventService service);", "public interface Sender {\r\n public void send();\r\n}", "public abstract T addService(BindableService bindableService);", "public interface INewMessagePresenter {\n void getUsers();\n void sendMessage(String fromId,String toId,String message);\n}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n System.out.println(\"绑定成功\");\n }", "@Override\r\n\tpublic IBinder onBind(Intent intent) {\r\n\t\tLog.d(TAG, \"onBind\");\r\n\t\tToast.makeText(getApplicationContext(), \"binding\", Toast.LENGTH_SHORT)\r\n\t\t\t\t.show();\r\n\t\treturn mMessenger.getBinder();\r\n\t}", "public interface MnsService {\n\n void init();\n\n String pop();\n\n boolean sendMsg(BaseConsumer.Message entity);\n\n String getTopicName();\n\n void destroy();\n}", "public interface MessageService {\n void postMessage(MessageDto messageDto);\n List<Message> getMessages(Long chatId);\n}", "@Override\n public IBinder onBind(Intent intent)\n {\n Log.d(\"MyService\", \"return\");\n return new MyBind();\n }", "public interface SmsListener {\n\n public void messageReceived(String message);\n}", "public interface SendSmsService {\n public String sendSms(String phoneNum);\n public boolean checkSmsCode(String phoneNum, String smsCode);\n}", "public interface Sender {\n\n public void send();\n}", "public interface Sender {\n\n public void send();\n}", "public interface MessageReceiver {\n public void receiveMessage(String message);\n}", "@Override\n public IBinder onBind(Intent mIntent) {\n Log.i(TAG, \"onBind\");\n String action = mIntent.getAction();\n Log.d(TAG, \"onBind: \" + action);\n\n if (SERVICE_INTERFACE.equals(action)) {\n Log.d(TAG, \"Bound by system\");\n return super.onBind(mIntent);\n } else {\n Log.d(TAG, \"Bound by application\");\n return mBinder;\n }\n }", "public interface MessageService {\n\n /**\n * 发送短信\n * @param\n */\n void sendNotice(HttpServletRequest request);\n\n /**\n * 向参会人发送通知短信(即时会议使用)\n * @param rid 会议记录id\n * @param phone\n * @param name\n */\n void sendMsg(Long rid,String phone,String name);\n\n /**\n * 向参会人发送通知短信(预约会议使用)\n * @param orid 预约会议记录id\n * @param phone\n * @param name\n */\n void sendOrderSms(Long orid, String phone, String name);\n\n /**\n * 向参会人发送通知短信(预约会议使用)\n * @param orderMeet 预约会议记录\n * @param phone\n */\n void sendOrderSms(OrderMeet orderMeet, String phone, String name);\n\n /**\n * 向参会人发送通知短信(预约会议使用)\n * @param rid 预约会议产生的会议记录id\n * @param orderMeet\n * @param phone\n * @param name\n */\n void sendOrderSms(Long rid,OrderMeet orderMeet,String phone,String name);\n}", "public interface Sender {\n public void send();\n}", "@Override\n\t\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\t}", "public interface IMessageService {\n int QueryMessageAmountService(String id);\n}", "public interface MessageHandler {\n /**\n * Makes the message handler handle the incoming message\n * @param data The incoming message (parsed JSON)\n * @param sender The ID of the sender from the JSON message\n */\n void invoke(Map<String, Object> data, String sender);\n String getIdentifier();\n}", "private void bind()\n {\n /* Cancel unbind */\n cancelUnbind();\n\n /* Bind to the Engagement service if not already done or being done */\n if (mEngagementService == null && !mBindingService)\n {\n mBindingService = true;\n mContext.bindService(EngagementAgentUtils.getServiceIntent(mContext), mServiceConnection,\n BIND_AUTO_CREATE);\n }\n }", "public interface MessageServiceInjector {\n public Consumer getConsumer() ;\n}", "public interface AMQPIntegratorService {\n\n\tvoid queueMessage(MailStructure email);\n}", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tLocalBinder binder = (LocalBinder)service;\n\t\t\tmService = binder.getService();\n\t\t\t//Toast.makeText(SyncServiceActivity.this, \"onServiceConnected=>\"+mService, Toast.LENGTH_SHORT).show();\n\t\t\t\n\t\t}", "public interface GrpcService extends BindableService {\r\n public String getServiceName();\r\n public String getDescription();\r\n}", "public interface Sendable {\n\n}", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tmBinder = (Stub) service;\n\t\t\tLog.d(TAG, \"mBinder init\");\n\t\t}", "public interface MessageHandler {\n\n public void setMessage(TextMessage message,String msg);\n}", "public interface ChatPlayerService extends PlayerService, Chatter\n{\n /**\n * Sets the player's ChatTarget focus.\n * \n * @param focus The new ChatTarget to focus\n */\n void setFocus( ChatTarget focus );\n \n /**\n * Gets the player's current focus.\n * \n * @return The channel the player has focused\n */\n ChatTarget getFocus();\n \n /**\n * Gets the player's BaseComponent name.\n * \n * @return The player's BaseComponent name.\n */\n BaseComponent getComponentName();\n \n /**\n * Gets the ChatManagerImpl.\n * \n * @return The ChatManagerImpl instance\n */\n ChatManager getChatManager();\n \n /**\n * Gets the PrivateMessageTarget from the last inbound PM.\n * \n * @return The PrivateMessageTarget from the last PM received\n */\n PrivateMessageTarget getLastInboundWhisperTarget();\n \n /**\n * Sets the most recent inbound PM's PrivateMessageTarget.\n * \n * @param lastInboundWhisperTarget The new target.\n * @return This ChatPlayerService object.\n */\n ChatPlayerService setLastInboundWhisperTarget( PrivateMessageTarget lastInboundWhisperTarget );\n \n /**\n * Gets a formatted message to show all of the channels the\n * player is currently in.\n * \n * @return A formatted message showing the channels the player is in.\n */\n BaseComponent[] getChannelsJoinedMessage();\n}", "public interface MessageReceived {\n void onMessageReceived(String message);\n}", "private void registerWithService() {\n\n try {\n\n Message msg = Message.obtain(null, TallyDeviceService.MSG_REGISTER_MESSAGE_ACTIVITY);\n if (msg == null) { return; }\n msg.obj = this;\n msg.replyTo = messenger;\n service.send(msg);\n\n } catch (Exception e) {\n Log.e(LOG_TAG, \"Line 306 :: \" + e.getMessage());\n service = null;\n }\n\n }", "Messenger getMessenger();", "public interface InstantMsgService {\n\n\tpublic void sendMsg(List<String> receivers,String content,String sendUser);\n\tpublic List<InstantMsg> receiveMsgs(String receiveUser,boolean clean);\n\tpublic boolean hasMsg(String receiveUser);\n\tpublic IBaseDTO receiveMsg(String receiveUser,boolean clean);\n\tpublic List<IBaseDTO> userList();\n}", "@Override\n public void onServiceConnected(ComponentName componentName, IBinder iBinder) {\n selfServiceMethodSolver = (ISelfMethod) iBinder;\n Log.d(\"BindLog\", \"Client - SelfService已Bind成功,并获取了代理\");\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n Log.d(\"service\", \"onServiceConnected() \" + name.getClassName());\n mMyServ = ((MyService.LocalBinder) service).getService();\n }", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\n\t\t\tYC_SERVICE_BINDER = IYCService.Stub.asInterface(service);\n\n\t\t}", "public interface MessagingService {\n\n /**\n * Returns observable to create a conversation.\n *\n * @param request Request with conversation details to create.\n * @param callback Callback with the result.\n */\n void createConversation(@NonNull final ConversationCreate request, @Nullable Callback<ComapiResult<ConversationDetails>> callback);\n\n /**\n * Returns observable to create a conversation.\n *\n * @param conversationId ID of a conversation to delete.\n * @param eTag Tag to specify local data version. Can be null.\n * @param callback Callback with the result.\n */\n void deleteConversation(@NonNull final String conversationId, final String eTag, @Nullable Callback<ComapiResult<Void>> callback);\n\n /**\n * Returns observable to create a conversation.\n *\n * @param conversationId ID of a conversation to obtain.\n * @param callback Callback with the result.\n */\n void getConversation(@NonNull final String conversationId, @Nullable Callback<ComapiResult<ConversationDetails>> callback);\n\n /**\n * Returns observable to get all visible conversations.\n *\n * @param scope {@link Scope} of the query\n * @param callback Callback with the result.\n * @deprecated Please use {@link MessagingService#getConversations(boolean, Callback)} instead.\n */\n @Deprecated\n void getConversations(@NonNull final Scope scope, @Nullable Callback<ComapiResult<List<ConversationDetails>>> callback);\n\n /**\n * Returns observable to get all visible conversations.\n *\n * @param isPublic Has the conversation public or private access.\n * @param callback Callback with the result.\n */\n void getConversations(final boolean isPublic, @Nullable Callback<ComapiResult<List<Conversation>>> callback);\n\n /**\n * Returns observable to update a conversation.\n *\n * @param eTag Tag to specify local data version.\n * @param conversationId ID of a conversation to update.\n * @param request Request with conversation details to update.\n * @param callback Callback with the result.\n */\n void updateConversation(@NonNull final String conversationId, @NonNull final ConversationUpdate request, @NonNull final String eTag, @Nullable Callback<ComapiResult<ConversationDetails>> callback);\n\n /**\n * Returns observable to remove list of participants from a conversation.\n *\n * @param conversationId ID of a conversation to delete.\n * @param ids List of participant ids to be removed.\n * @param callback Callback with the result.\n */\n void removeParticipants(@NonNull final String conversationId, @NonNull final List<String> ids, @Nullable Callback<ComapiResult<Void>> callback);\n\n /**\n * Returns observable to add a participant to.\n *\n * @param conversationId ID of a conversation to add a participant to.\n * @param callback Callback with the result.\n */\n void getParticipants(@NonNull final String conversationId, @Nullable Callback<ComapiResult<List<Participant>>> callback);\n\n /**\n * Returns observable to add a list of participants to a conversation.\n *\n * @param conversationId ID of a conversation to update.\n * @param participants New conversation participants details.\n * @param callback Callback with the result.\n */\n void addParticipants(@NonNull final String conversationId, @NonNull final List<Participant> participants, @Nullable Callback<ComapiResult<Void>> callback);\n\n /**\n * Send message to the conversation.\n *\n * @param conversationId ID of a conversation to send a message to.\n * @param message Message to be send.\n * @param callback Callback with the result.\n */\n void sendMessage(@NonNull final String conversationId, @NonNull final MessageToSend message, @Nullable Callback<ComapiResult<MessageSentResponse>> callback);\n\n /**\n * Send message to the chanel.\n *\n * @param conversationId ID of a conversation to send a message to.\n * @param body Message body to be send.\n * @param callback Callback with the result.\n */\n void sendMessage(@NonNull final String conversationId, @NonNull final String body, @Nullable Callback<ComapiResult<MessageSentResponse>> callback);\n\n /**\n * Upload content data. The response will return full url to the file.\n *\n * @param folder Folder name to put the file in.\n * @param data Content data. Accepts files, byte array or base64 encoded string.\n * @param callback Callback with the result.\n */\n void uploadContent(@NonNull final String folder, @NonNull final ContentData data, @Nullable Callback<ComapiResult<UploadContentResponse>> callback);\n\n /**\n * Sets statuses for sets of messages.\n *\n * @param conversationId ID of a conversation to modify.\n * @param msgStatusList List of status modifications.\n * @param callback Callback with the result.\n */\n void updateMessageStatus(@NonNull final String conversationId, @NonNull final List<MessageStatusUpdate> msgStatusList, @Nullable Callback<ComapiResult<Void>> callback);\n\n /**\n * Query conversation events.\n *\n * @param conversationId ID of a conversation to query events in it.\n * @param from ID of the event to start from.\n * @param limit Limit of events to obtain in this call.\n * @param callback Callback with the result.\n * @deprecated Use {@link #queryConversationEvents(String, Long, Integer, Callback)} for better visibility of possible events in the response.\n */\n @Deprecated\n void queryEvents(@NonNull final String conversationId, @NonNull final Long from, @NonNull final Integer limit, @Nullable Callback<ComapiResult<EventsQueryResponse>> callback);\n\n /**\n * Query conversation events.\n *\n * @param conversationId ID of a conversation to query events in it.\n * @param from ID of the event to start from.\n * @param limit Limit of events to obtain in this call.\n * @param callback Callback with the result.\n */\n void queryConversationEvents(@NonNull final String conversationId, @NonNull final Long from, @NonNull final Integer limit, @Nullable Callback<ComapiResult<ConversationEventsResponse>> callback);\n\n /**\n * Query conversation messages.\n *\n * @param conversationId ID of a conversation to query messages in it.\n * @param from ID of the message to start from.\n * @param limit Limit of events to obtain in this call.\n * @param callback Callback with the result.\n */\n void queryMessages(@NonNull final String conversationId, final Long from, @NonNull final Integer limit, @Nullable Callback<ComapiResult<MessagesQueryResponse>> callback);\n\n /**\n * Sends information that the participant started typing a new message in a conversation.\n *\n * @param conversationId ID of a conversation in which participant is typing a message.\n * @param callback Callback with the result.\n */\n void isTyping(@NonNull final String conversationId, @Nullable Callback<ComapiResult<Void>> callback);\n\n /**\n * Sends information to if the participant started or stopped typing a new message in a conversation.\n *\n * @param conversationId ID of a conversation in which participant is typing a message.\n * @param isTyping True if participant is typing, false if he has stopped typing.\n * @param callback Callback with the result.\n */\n void isTyping(@NonNull final String conversationId, final boolean isTyping, @Nullable Callback<ComapiResult<Void>> callback);\n }", "public void onServiceConnected(ComponentName className, IBinder service) {\n\t mBoundAutopilotService = new Messenger(service);\n\t //mCallbackText.setText(\"Attached.\");\n\n\t // We want to monitor the service for as long as we are\n\t // connected to it.\n\t try {\n\t Message msg = Message.obtain(null, autopilotService.MSG_REGISTER_CLIENT);\n\t msg.replyTo = mMessenger;\n\t mBoundAutopilotService.send(msg);\n\n\t // Give it some value as an example.\n\t //msg = Message.obtain(null, autopilotService.MSG_ECHO, this.hashCode(), 0);\n\t //mBoundAutopilotService.send(msg);\n\t msg = Message.obtain(null, autopilotService.MSG_IS_SERVICE_RUNNING, 0, 0);\n\t mBoundAutopilotService.send(msg);\n\t Log.i(\"anemoi\", \"Here 0\");\n\t } catch (RemoteException e) {\n\t // In this case the service has crashed before we could even\n\t // do anything with it; we can count on soon being\n\t // disconnected (and then reconnected if it can be restarted)\n\t // so there is no need to do anything here.\n\t }\n\t Log.i(\"anemoi\", \"Buuu\");\n\t }", "public interface IPostListener {\n /**\n * The state message from the service.\n * @param msg\n */\n void stateUpdate(String msg);\n}", "public interface MessageInterface {\n\t\n\t/** \n\t * Get Message type.<br>\n\t * \n\t * Operations on Server operate based on the Message type. A type can never be overridden.\n\t * @return A String for the Message type.\n\t */\n\tString getType();\n\n\t/** \n\t * Set Message status.<br>\n\t * \n\t * Message status can be used for validation of operations. All Client Messages will receive a reply from the Server. \n\t * The Client can use the Status to determine the success or failure of an operation.<br>\n\t * \n\t * @return A String for the Message type.\n\t */\n\tvoid setStatus(String status);\n\n\t/** \n\t * Get Message status.<br>\n\t * \n\t * Message status can be used for validation of operations. All Client Messages will receive a reply from the Server.<br> \n\t * The Client can use the Status to determine the success or failure of an operation.\n\t * \n\t */\n\tString getStatus();\n\t\n\t/** \n\t * Set Message content.<br>\n\t * \n\t * Each Message contains a payload that is used for operations. Such operations will require that content for the operation to work. \n\t */\n\tvoid setContent(Map<String, Object> content);\n\t\n\t/** \n\t * Get Message content.<br>\n\t * \n\t * Each Message contains a payload that is used for operations. Such operations will require that content for the operation to work. \n\t * \n\t * @return A Map containing content.\n\t */\n\tMap<String, Object> getContent();\n}", "public interface OnMessageReceived {\n public void messageReceived(String message);\n }", "public interface MessageComponent {\n}", "public interface HelloService {\n\n String greet (String userName);\n\n}", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n WebsocketService.WebsocketBinder binder = (WebsocketService.WebsocketBinder) service;\n mService = binder.getService();\n mWebsocketServiceBound = true;\n\n if (mAvatarUrl == null) {\n mAvatarUrl = mService.getAvatarUrl();\n }\n\n mRoomName = mService.getCurrentRoomName();\n\n ArrayList<User> users = mService.getUsersInRoom(mRoomName.equals(getString(R.string.default_room)) ? \"\" : mRoomName);\n\n ArrayList<ChatItem> messages = mService.getMessages(mRoomName.equals(getString(R.string.default_room)) ? \"\" : mRoomName);\n\n if (messages != null && users != null) {\n HashMap<String, User> userMap = new HashMap<>();\n for (User user : users) {\n userMap.put(user.Id, user);\n }\n\n clearMessages();\n for (ChatItem chatItem : messages) {\n User user = userMap.get(chatItem.Id);\n if (user != null) {\n addMessage(chatItem, user, false);\n }\n else {\n // self\n user = userMap.get(chatItem.getRecipient());\n addMessage(chatItem, user, false);\n }\n\n }\n\n prepareChatDisplay();\n }\n }", "public void onServiceConnected(ComponentName className, IBinder service) {\n imService = ((FriendLocationService.IMBinder)service).getService(); \r\n \r\n \r\n }", "@Override\n public void onServiceConnected(ComponentName className, IBinder service) {\n OpenVPNService.LocalBinder binder = (OpenVPNService.LocalBinder) service;\n mService = binder.getService();\n }", "public interface OnMessageReceived {\n void messageReceived(String message);\n }", "public interface Sendable {\n /**\n * Raw message to send\n */\n String getRawMessage();\n}", "public BindingService getService() {\n return BindingService.this;\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service)\n {\n mEngagementService = IEngagementService.Stub.asInterface(service);\n\n /* We are not binding anymore */\n mBindingService = false;\n\n /* Send pending commands */\n for (Runnable cmd : mPendingCmds)\n cmd.run();\n mPendingCmds.clear();\n\n /* Schedule unbind (if not in session) */\n scheduleUnbind();\n }", "public interface MessageFacade {\n\n /**\n * Creates a new chat message.\n *\n * @param invoice a chat message invoice.\n * @return the created chat message.\n */\n Message create(MessageInvoice invoice);\n\n /**\n * Retrieves an existing message by its ID.\n *\n * @param id the ID of the message.\n * @return the requested message.\n */\n Message get(String id);\n\n /**\n * Retrieves a search result.\n *\n * @param invoice a search invoice.\n * @return search result.\n */\n MessageSearchResult getSearchResult(MessageSearchInvoice invoice);\n}", "@Override\r\n\tpublic IBinder onBind(Intent intent) {\n\t\tSystem.out.println(\"Service onBind\");\r\n\t\treturn null;\r\n\t}", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tmsgService = ((MyService.MsgBinder) service).getService();\n\t\t\t// recieve callback progress\n\t\t\tmsgService.SetOnProgressListner(new OnProgressListner() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}\n\t\t\t});\n\t\t}", "public interface LKSmsService {\n\n /**\n * 发送 短信\n * @param sms\n *\n * @return\n */\n Result sendSms(SmsRequest sms) throws IOException;\n\n\n\n}", "public interface ServiceConnectionListener {\n /**\n * 服务绑定成功的监听回调\n * 注册或者注销场景TTS回调监听\n *\n * @param callbackListener 返回TTS到客户端的Binder\n */\n void onCallbackNotify(ICallbackListener callbackListener);\n\n /**\n * 服务绑定成功的监听回调\n * 注册或者注销场景回调监听\n *\n * @param sceneNotifyListener 返现场景状态到客户端的Binder\n */\n void onSceneNotifyListener(ISceneNotifyListener sceneNotifyListener);\n}", "public interface IMsgService {\n\n public String executeMsg(HttpServletRequest request);\n\n\n}" ]
[ "0.7203023", "0.7131137", "0.7104037", "0.6977216", "0.6977216", "0.6723777", "0.66895145", "0.6665591", "0.6654516", "0.66242015", "0.6622001", "0.6581941", "0.6581941", "0.65766954", "0.6561547", "0.65300846", "0.6484762", "0.64836776", "0.64660525", "0.6436848", "0.64302874", "0.6430212", "0.6421459", "0.63952845", "0.63727194", "0.6364547", "0.63382107", "0.63340783", "0.6325862", "0.6273465", "0.62611204", "0.62138194", "0.6206246", "0.62048656", "0.6200431", "0.61870307", "0.6174294", "0.6172677", "0.61706114", "0.61642635", "0.61642635", "0.6146629", "0.6136057", "0.6135443", "0.61261755", "0.6121066", "0.61121184", "0.60954267", "0.60950583", "0.60907876", "0.6082584", "0.6079879", "0.6068848", "0.6068309", "0.60574996", "0.6052867", "0.6052867", "0.60499954", "0.6049479", "0.604778", "0.60339266", "0.6020561", "0.6011122", "0.59827185", "0.5981717", "0.5980637", "0.5975724", "0.5973193", "0.59718037", "0.5967938", "0.5961401", "0.5953868", "0.59500974", "0.5947847", "0.59387106", "0.59351635", "0.5931749", "0.59251696", "0.5924872", "0.59215623", "0.59063345", "0.5882701", "0.58658427", "0.5856529", "0.58365524", "0.5836107", "0.58242196", "0.58212334", "0.5809559", "0.5808015", "0.5805044", "0.58043003", "0.58041656", "0.5801767", "0.58002645", "0.5798911", "0.578846", "0.57845694", "0.5778123", "0.5769754" ]
0.6456454
19
Das Hauptprogramm. Hier wird die Anwendung gestarted
public static void main(String[] args) { Flughafen pad = new Flughafen(); pad.name = "Paderborn"; pad.treibstoffLager = 1000000; System.out.println("\"*** Unser Flughafen ***"); System.out.println("Flughafen " + pad.name); System.out.println("Am Gate 1: " + pad.gate1); System.out.println("Am Gate 2: " + pad.gate2); System.out.println("Am Gate 3: " + pad.gate3); System.out.println("Treibstoff: " + pad.treibstoffLager); System.out.println("***********************"); // Boeing 747, https://de.wikipedia.org/wiki/Boeing_747#747-400 Passagierflugzeug lh1 = new Passagierflugzeug(); lh1.kennzeichen ="D-ABTL"; lh1.passagiere=360; lh1.besatzung=20; lh1.treibstoff= 1000; pad.treibstoffLager -= lh1.tanken(1000); pad.gate1 = lh1; System.out.println("Flugzeug an Gate 1: " + pad.gate1); // Airbus A380 https://de.wikipedia.org/wiki/Airbus_A380#A380-800 Passagierflugzeug lh2 = new Passagierflugzeug(); lh2.kennzeichen ="D-AIMN"; lh2.passagiere=360; lh2.besatzung=16; lh2.treibstoff= 4000; pad.treibstoffLager -= lh2.tanken(4000); pad.gate2 = lh2; System.out.println("Am Gate 2: " + pad.gate2); System.out.println("*** Unser Flughafen ***"); System.out.println("Flughafen " + pad.name); System.out.println("Am Gate 1: " + pad.gate1); System.out.println("Am Gate 2: " + pad.gate2); System.out.println("Am Gate 3: " + pad.gate3); System.out.println("Treibstoff: " + pad.treibstoffLager); System.out.println("***********************"); System.out.println("Ablegen Gate 1"); pad.gate1 = null; System.out.println("Flugzeug an Gate 1: " + pad.gate1); System.out.println("Rundflug von " + lh1.kennzeichen); System.out.println("Anlegen von " + lh1.kennzeichen + " an Gate 3"); pad.gate3 = lh1; System.out.println("*** Unser Flughafen ***"); System.out.println("Flughafen " + pad.name); System.out.println("Am Gate 1: " + pad.gate1); System.out.println("Am Gate 2: " + pad.gate2); System.out.println("Am Gate 3: " + pad.gate3); System.out.println("Treibstoff: " + pad.treibstoffLager); System.out.println("***********************"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void start() {\n\n\t}", "public void start() {\n\t\t\n\t}", "public void start() {\n\t\t\n\t}", "public void start() {}", "public void start() {}", "public void start()\n {\n }", "public void start() {\n\n\t}", "protected void start() {\n }", "@Override\r\n\tpublic void start() {\n\t\t\r\n\t}", "@Override\r\n public void start() {\r\n }", "public void starting();", "public void start() {\n }", "@Override public void start() {\n }", "@Override\r\n\tpublic void start() {\n\t\tsuper.start();\r\n\t\t\r\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n public void start() {}", "public void startup() {\n\t\tstart();\n }", "public void startup(){}", "@Override\n\tpublic void start() {\n\n\t}", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "public void start(){\n return;\n }", "public void start(){\n\t\tsuper.start();\n\t}", "@Override\n\tpublic void start() {\n\t}", "@Override\n\tpublic void start() {\n\t}", "public void start(){\n }", "@Override\n public void start() { }", "public void start() {\n\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n\n }", "@Override\n public void start() {\n\n }", "@Override\n public void start() {\n\n }", "public void start()\n {}", "public boolean start() {\n\t\treturn true;\n\t}", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "@Override\r\n\tpublic synchronized void start() {\n\t\tsuper.start();\r\n\t}", "public void start()\r\n\t{\n\tSystem.out.println(\"normal start method\");\r\n\t}", "public abstract void started();", "public boolean start();", "@Override\n public synchronized void start()\n {\n if (run)\n return;\n run = true;\n super.start();\n }", "public void start() {\n\t\tSystem.out.println(\"开启系统1\");\r\n\t}", "@Override\n\tpublic void start() throws Exception {\n\t\t\n\t}", "protected abstract boolean start();", "@Override\n public void start() {\n System.out.println(\"smart life cycle start\");\n flag = true;\n }", "public void start() {\n\r\n }", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "@Override\n\tvoid start() {\n\t\tSystem.out.println(\"starts\");\n\t}", "@Override\n public void startup() {\n }", "public start() {\n\t\tsuper();\n\t}", "@Override\n public synchronized void start() {\n init();\n }", "public void start(){\n\t\tstarted = true;\n\t\tlastTime = System.nanoTime();\n\t}", "void start() {\n }", "public abstract void startup();", "public void start() throws Exception;", "@Override\n protected void Start() {\n }", "public void start() {\n System.out.println(\"start\");\n }", "@Override\n public void run() {\n startup();\n }", "public abstract void start();", "public abstract void start();", "public abstract void start();", "public abstract void start();", "public abstract void start();", "public void start() {\n\t\tSystem.out.println(\"BMW.........start!!!.\");\n\t}", "abstract public void start();", "void doManualStart();", "public void start() {\n startTime = System.currentTimeMillis();\n }", "public void start() {\r\n\t\trunning = true;\r\n\t\trun();\r\n\t}", "public void sendeSpielStarten();" ]
[ "0.79550743", "0.7804705", "0.7804705", "0.7794628", "0.7794628", "0.77727854", "0.7767022", "0.77603555", "0.77555674", "0.76762056", "0.76166385", "0.7613627", "0.7577224", "0.7574837", "0.7573147", "0.7573147", "0.7573147", "0.7573147", "0.7553909", "0.75504977", "0.7547944", "0.7542987", "0.7533826", "0.7533826", "0.7533826", "0.7533826", "0.7533826", "0.7533826", "0.7533826", "0.7532943", "0.7531994", "0.7529074", "0.7529074", "0.7525465", "0.75029474", "0.74985474", "0.7453211", "0.74507594", "0.74507594", "0.74507594", "0.7423605", "0.74226844", "0.7408597", "0.7408597", "0.7408597", "0.7408597", "0.7408597", "0.7408597", "0.7408597", "0.7408597", "0.7408597", "0.7408597", "0.7408597", "0.7408597", "0.7406591", "0.74006414", "0.7390752", "0.73616594", "0.7356641", "0.72957844", "0.7263217", "0.7263115", "0.7261702", "0.7217535", "0.7214941", "0.7214941", "0.7214941", "0.7214941", "0.7214941", "0.7214941", "0.7214941", "0.7214941", "0.7214941", "0.7214941", "0.7214941", "0.7214941", "0.7214941", "0.7214941", "0.7214941", "0.7193819", "0.7179221", "0.71785223", "0.71507156", "0.7128367", "0.7125091", "0.71157587", "0.71031415", "0.7099899", "0.709721", "0.7083926", "0.7068676", "0.7068676", "0.7068676", "0.7068676", "0.7068676", "0.7050684", "0.7040748", "0.70390105", "0.7036495", "0.70341504", "0.7017666" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void collideEnd(Node node) { }
{ "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
if null or empty, return empty array
public int[] findDiagonalOrder(int[][] matrix) { if (matrix == null || matrix.length == 0) { return new int[0]; } int mRows, nCols; mRows = matrix.length; nCols = matrix[0].length; int[] result = new int[mRows * nCols]; int x = 0, y = 0; // current coordinates for traversing in matrix int direction = 0; // 0: top right, 1: bottom left // used for moving left, right, down and top // fancy way but very systematic int[][] delta = { { -1, 1 }, { 1, -1 } }; for (int i = 0; i < mRows * nCols; i++) { // store current result[i] = matrix[x][y]; // update x and y x += delta[direction][0]; y += delta[direction][1]; // handle cases where we hit edges if (x >= mRows) { x = mRows - 1; y += 2; direction = flipDirection(direction); } if (y >= nCols) { y = nCols - 1; x += 2; direction = flipDirection(direction); } if (x < 0) { x = 0; direction = flipDirection(direction); } if (y < 0) { y = 0; direction = flipDirection(direction); } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> T[] notEmpty(T[] array){\n if(ArrayUtils.isEmpty(array)) return array;\n List<T> items = new ArrayList<>();\n for(int i=0;i<array.length; i++){\n if(array[i] != null) items.add(array[i]);\n }\n return items.toArray((T[])Array.newInstance(\n array.getClass().getComponentType(),\n items.size()));\n }", "public static <T> T[] notEmpty(T[] array){\n if(ArrayUtils.isEmpty(array)) return array;\n List<T> items = new ArrayList<>();\n for(int i=0;i<array.length; i++){\n if(array[i] != null) items.add(array[i]);\n }\n return items.toArray((T[])Array.newInstance(\n array.getClass().getComponentType(),\n items.size()));\n }", "@SuppressWarnings(\"unchecked\")\n public static <T> Array<T> empty()\n {\n return (Array<T>) EMPTY;\n }", "public T[] toArray() {\n return null;\n }", "@Test\n public void testNullArray()\n {\n assertNull(ArrayFlattener.flattenArray(null));\n }", "@Override\n\tpublic Object[] toArray() {\n\t\treturn null;\n\t}", "protected boolean arrayIsEmpty(Object arr[]) {\n boolean empty = true;\n \n for (Object obj : arr) {\n \tif (obj != null) {\n \t\tempty = false;\n \t\tbreak;\n \t}\n }\n \treturn empty;\n }", "@Override\n\t\tpublic Object[] toArray() {\n\t\t\treturn null;\n\t\t}", "public Object[] toArray() {\n\t\treturn null;\n\t}", "protected double[] toArrayNotIncludingNoDataValues() {\r\n boolean handleOutOfMemoryError = false;\r\n Grids_GridDouble g = getGrid();\r\n int nrows = g.getChunkNRows(ChunkID, handleOutOfMemoryError);\r\n int ncols = g.getChunkNCols(ChunkID, handleOutOfMemoryError);\r\n double noDataValue = g.getNoDataValue(handleOutOfMemoryError);\r\n long n = getN();\r\n if (n != (int) n) {\r\n throw new Error(\"Error n != (int) n \");\r\n }\r\n double[] array = new double[(int) getN()];\r\n int row;\r\n int col;\r\n int count = 0;\r\n double value;\r\n for (row = 0; row < nrows; row++) {\r\n for (col = 0; col < ncols; col++) {\r\n value = getCell( row, col);\r\n if (value != noDataValue) {\r\n array[count] = value;\r\n count++;\r\n }\r\n }\r\n }\r\n return array;\r\n }", "@Test\n public void testEmptyArrayCreation() {\n final String[] array = ArrayUtils.<String>toArray();\n assertEquals(0, array.length);\n }", "public <T> T[] toArray(T[] arg0) {\n\t\treturn null;\n\t}", "@Override\n\t\tpublic <T> T[] toArray(T[] a) {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn null;\n\t}", "private boolean checkEmpty() {\n\t\treturn this.array[0] == null;\n\t}", "protected boolean checkEmptyList(){\n boolean emptyArray = true;\n String empty= alertList.get(AppCSTR.FIRST_ELEMENT).get(AppCSTR.NAME);\n if(!empty.equals(\"null\") && !empty.equals(\"\")) {\n emptyArray = false;\n }\n return emptyArray;\n }", "default Object[] toArray() {\n return toArray(new Object[0]);\n }", "@Override\r\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn null;\r\n\t}", "public E[] values(){\n\t\tE[] output = (E[]) new Object[howMany];\n\t\tint j = 0;\n\t\tfor (int i = 0; i < elem.length; i++)\n\t\t\tif (elem[i] != null){\n\t\t\t\toutput[j] = elem[i];\n\t\t\t\tj = j + 1;\n\t\t\t}\n\t\treturn output;\n\t}", "@Override\npublic Boolean isEmpty() {\n\treturn null;\n}", "private ContentProposalList getEmptyProposalArray() {\n\t\treturn new ContentProposalList();\n\t}", "@Test\r\n\tpublic void getRelatedFieldsArrayEmpty() {\r\n\t\tassertEquals(\"relatedFields should be empty\", 0, testObj.getRelatedFieldsArray().length);\r\n\t}", "@Override\n\tpublic Object processArrayValue(Object arg0, JsonConfig arg1) {\n\t\treturn null;\n\t}", "private Object[] buildEmptyRow() {\n Object[] rowData = RowDataUtil.allocateRowData( data.outputRowMeta.size() );\n\n return rowData;\n }", "public static AsonValue CreateRootArray() {\n return CreateRootArray(null);\n }", "public boolean isEmpty() {\n\t\treturn array.isEmpty();\n\t}", "@Test\r\n\tpublic void getRelatedTablesArrayEmpty() {\r\n\t\tassertEquals(\"relatedTables should be empty\", 0, testObj.getRelatedTablesArray().length);\r\n\t}", "public boolean isEmpty( Object[] array ){\n if( array == null || array.length == 0 ){\n return true;\n }\n return false;\n }", "protected double[] toArrayIncludingNoDataValues() {\r\n boolean handleOutOfMemoryError = false;\r\n Grids_GridDouble g = getGrid();\r\n int nrows = g.getChunkNRows(ChunkID, handleOutOfMemoryError);\r\n int ncols = g.getChunkNCols(ChunkID, handleOutOfMemoryError);\r\n double[] array;\r\n if (((long) nrows * (long) ncols) > Integer.MAX_VALUE) {\r\n //throw new PrecisionExcpetion\r\n System.out.println(\r\n \"PrecisionException in \" + getClass().getName()\r\n + \".toArray()!\");\r\n System.out.println(\r\n \"Warning! The returned array size is only \"\r\n + Integer.MAX_VALUE + \" instead of \"\r\n + ((long) nrows * (long) ncols));\r\n }\r\n array = new double[nrows * ncols];\r\n int row;\r\n int col;\r\n int count = 0;\r\n for (row = 0; row < nrows; row++) {\r\n for (col = 0; col < ncols; col++) {\r\n array[count] = getCell( row, col);\r\n count++;\r\n }\r\n }\r\n return array;\r\n }", "@Test\r\n\tpublic void getNativeFieldsArrayEmpty() {\r\n\t\tassertEquals(\"nativeFields should be empty\", 0, testObj.getNativeFieldsArray().length);\r\n\t}", "public void testCreateEmptyArray() {\n System.out.println(\"createEmptyArray\"); // NOI18N\n \n TypeID componentType = new TypeID(TypeID.Kind.COMPONENT,\"Root\"); // NOI18N\n \n PropertyValue result = PropertyValue.createEmptyArray(componentType);\n List<PropertyValue> expResult = new ArrayList<PropertyValue> (0);\n \n assertEquals(expResult, result.getArray());\n }", "public static List<String> filter_empty(String[] arr){\n\t\tboolean contient_added = false;\n\t\tList<String> out = new ArrayList<String>();\n\t\tfor(String s : arr) {\n\t\t\tif(s.trim().length() > 0){\n\t\t\t\tif(s.equals(\"CONTIENT\")){\n\t\t\t\t\tif(contient_added){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tcontient_added = true;\n\t\t\t\t}\n\t\t\t\tout.add(s);\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}", "@Override\n\tpublic int[] toArray() {\n\t\treturn null;\n\t}", "boolean isEmpty() {\n\t\t\n\t\t// array is empty if no elements can be polled from it\n\t\t// \"canPoll\" flag shows if any elements can be polled from queue\n\t\t// NOT \"canPoll\" means - empty\n\t\t\n\t\treturn !canPoll;\n\t}", "public boolean isEmpty()\n {return data == null;}", "@Override\n public boolean isEmpty() { return true; }", "public Product[] getProductsArray () {\n return null;\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\r\n\t\treturn data.isEmpty();\r\n\t}", "@SuppressWarnings({\"unchecked\"})\n @Test\n public void emptyArrayToGetInstance() {\n assertTrue(getPredicateInstance(new Predicate[] {}).evaluate(null), \"empty array not true\");\n }", "public void testToArray2() {\n SynchronousQueue q = new SynchronousQueue();\n\tInteger[] ints = new Integer[1];\n assertNull(ints[0]);\n }", "private static <T> Collection<T> fromNullSafeArray(T[] valor){\r\n\t\tCollection<T> collection = null;\r\n\t\tif (valor != null){\r\n\t\t\tcollection = Arrays.asList(valor);\r\n\t\t}\r\n\t\treturn collection;\r\n\t}", "@Override\n public Movie[] toPrimitive()\n {\n int j = 0;\n Movie moviesArray[] = new Movie[this.movies.length];\n\n for(int i = 0; i < this.movies.length; i++)\n {\n if(this.movies.get(i) != null)\n {\n moviesArray[j] = this.movies.get(i);\n j++;\n }\n }\n\n return moviesArray;\n }", "@Override\r\n public boolean isEmpty() {\n return size == 0;\r\n }", "@Override\npublic boolean isEmpty() {\n\treturn false;\n}", "public boolean isNilArrayOfValuationAggregate1()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.msbinfo.expresslync.rct.ArrayOfValuationAggregate1 target = null;\r\n target = (com.msbinfo.expresslync.rct.ArrayOfValuationAggregate1)get_store().find_element_user(ARRAYOFVALUATIONAGGREGATE1$0, 0);\r\n if (target == null) return false;\r\n return target.isNil();\r\n }\r\n }", "private ArrayList<PredatorPreyCell> getEmptyCells(Grid<Integer> grid) {\n\t\tArrayList<PredatorPreyCell> emptyCells = new ArrayList<PredatorPreyCell>();\n\t\tfor(int i = 0; i < grid.getHeight(); i++) {\n\t\t\tfor(int j = 0; j < grid.getWidth(); j++) {\n\t\t\t\tif(grid.getGridMatrix()[i][j].getValue() == EMPTY &&\n\t\t\t\t (grid.getGridMatrix()[i][j].getNewValue() == null || grid.getGridMatrix()[i][j].getNewValue() == EMPTY)) {\n\t\t\t\t\temptyCells.add((PredatorPreyCell) grid.getGridMatrix()[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn emptyCells;\n\t}", "@Override\n\tpublic Iterable<K> values() {\n\t\treturn null;\n\t}", "private int[] blankFinder(){\n for(int x = 0; x < n; x++){\n for(int y = 0; y < n; y++){\n if(tiles[x][y] == 0){\n return new int[]{x, y};\n }\n }\n }\n return null;\n }", "@Test\n public void testIndirectEmptyArrayCreation() {\n final String[] array = ArrayUtilsTest.<String>toArrayPropagatingType();\n assertEquals(0, array.length);\n }", "public boolean isEmpty() {\n //if the array length is 0, then the array is empty\n if (this.array.length < 1) {\n return true;\n }\n \n //return false if the length is greater than 0\n return false;\n }", "public String[] contatos() {\n\t\treturn null;\r\n\t}", "public boolean isEmpty() { return true; }", "@Override\n public boolean isEmpty() {\n return size()==0;\n }", "@Override\n public boolean isEmpty() {\n return false;\n }", "public void testGetPhases_EmptyArray() throws Exception {\n Phase[] phases = persistence.getPhases(new long[] {});\n\n // verify the results\n assertEquals(\"Should return an empty array.\", 0, phases.length);\n }", "@Override\n public boolean isEmpty() {\n return filtered.isEmpty();\n }", "@Override\r\n\tpublic List<T> getResult() {\n\t\treturn null;\r\n\t}", "@Test\n public void testToArray_0args() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n Integer[] expResult = { 1, 2, 3, 4, 5, 6 };\n Object[] result = instance.toArray();\n assertArrayEquals(expResult, result);\n\n }", "public Object[] getOracleArray()\n/* */ throws SQLException\n/* */ {\n/* 272 */ return getOracleArray(0L, Integer.MAX_VALUE);\n/* */ }", "@Override\n public abstract Object getEmptyValue(DeserializationContext ctxt) throws JsonMappingException;", "@Override\n public boolean isEmpty()\n {\n return false;\n }", "private static final Object ifEmpty(Object[] objArr, AbstractC32521a aVar) {\n return objArr.length == 0 ? aVar.invoke() : objArr;\n }", "@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}", "@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}", "@Override\n\t\t\tpublic boolean isEmpty() {\n\t\t\t\treturn false;\n\t\t\t}", "void isArrayEmpty(ArrayList<UserContactInfo> contactDeatailsList);", "default Empty getEmptyObject() {\n return null;\n }", "public boolean isArray(){\n\t\treturn false;\n\t}", "boolean isEmpty(int[] array) {\n return array.length == 0;\n }", "public int[] findFirstNonEmpty() {\n\t\tint[] coord = new int[2];\n\t\tfor (int r=0; r<size*size; r++) {\n\t\t\tfor (int c=0; c<size*size; c++) {\n\t\t\t\tif (board[r][c].val==0) {\n\t\t\t\t\tcoord[0]=r;\n\t\t\t\t\tcoord[1]=c;\n\t\t\t\t\treturn coord;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\treturn null;\n\t}", "public boolean isEmpty(){ return size==0;}", "public boolean isEmpty() {\n return data.isEmpty();\n }", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "public String[] getNoArguments(){\r\n\t\treturn args.toArray(new String[args.size()]);\r\n\t}", "default boolean isEmpty() {\n return get() == null;\n }", "private boolean isEmpty() {\n/* 547 */ return (this.filters.isEmpty() && this.maxArrayLength == Long.MAX_VALUE && this.maxDepth == Long.MAX_VALUE && this.maxReferences == Long.MAX_VALUE && this.maxStreamBytes == Long.MAX_VALUE);\n/* */ }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "private boolean isEmpty() {return first == null;}", "void setNullArray()\n/* */ {\n/* 1051 */ this.length = -1;\n/* 1052 */ this.elements = null;\n/* 1053 */ this.datums = null;\n/* 1054 */ this.pickled = null;\n/* 1055 */ this.pickledCorrect = false;\n/* */ }", "public boolean isEmpty()\n\t{\n\t\treturn arraySize == 0;\n\t}", "public boolean isEmpty() {\n\r\n if(size()==0){\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n\r\n }", "@Override\n public boolean isArray() {\n return false;\n }", "public boolean isEmpty() {\n return values.isEmpty();\n }" ]
[ "0.6519457", "0.6519457", "0.64579034", "0.6348", "0.6284022", "0.6156387", "0.6129216", "0.605689", "0.60418105", "0.60241556", "0.6012701", "0.5968947", "0.5952238", "0.59292656", "0.5908327", "0.5906847", "0.58865637", "0.5876211", "0.5855898", "0.5837771", "0.5804784", "0.58046836", "0.57441694", "0.5742471", "0.57399386", "0.5722412", "0.5680151", "0.5669624", "0.56578344", "0.5655131", "0.5641419", "0.56117755", "0.56053776", "0.5604971", "0.55774885", "0.55486953", "0.5546278", "0.55297625", "0.55151594", "0.5507185", "0.5491454", "0.5444153", "0.54305464", "0.5416783", "0.5415525", "0.54141104", "0.54071987", "0.54044473", "0.5392363", "0.538654", "0.5384152", "0.53805345", "0.5379605", "0.5378798", "0.5374251", "0.5373683", "0.5372068", "0.5370329", "0.53656656", "0.5362783", "0.5356861", "0.535606", "0.53456444", "0.53456444", "0.5345454", "0.5342815", "0.5339942", "0.5335199", "0.5334183", "0.532988", "0.5323355", "0.531744", "0.53083026", "0.53083026", "0.53083026", "0.53014237", "0.53014237", "0.53014237", "0.53014237", "0.53014237", "0.5290451", "0.5290451", "0.5290451", "0.5290451", "0.5290451", "0.5290451", "0.5290451", "0.52889645", "0.5288539", "0.52804327", "0.5279251", "0.5279251", "0.5279251", "0.5279251", "0.5279251", "0.5277529", "0.5272401", "0.52708226", "0.5267899", "0.52640146", "0.5263748" ]
0.0
-1
Hide everything until we are logged in
@Override public void onResume() { findViewById(R.id.root).setVisibility(View.INVISIBLE); Log.i("EVENT", "onResume normal"); super.onResume(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void hideLoginScreen()\n {\n logIngEditText.setVisibility(View.INVISIBLE);\n passwordEditText.setVisibility(View.INVISIBLE);\n loginButton.setVisibility(View.INVISIBLE);\n textViewLabel.setVisibility(View.INVISIBLE);\n }", "public void setNotLoggedInLayoutVisible() {\n mLoggedInLayout.setVisibility(View.GONE);\n mNotLoggedInLayout.setVisibility(View.VISIBLE);\n }", "public static void HideLoginScreen() {\n Login.window.setVisible(false);\n ControlPanelFrameHandler.bar.setVisible(true);\n }", "private void LoginOwner() {\n Transaksi.setEnabled(false);\n Transaksi.setVisible(false);\n }", "public void setLoggedInLayoutVisible() {\n mLoggedInLayout.setVisibility(View.VISIBLE);\n mNotLoggedInLayout.setVisibility(View.GONE);\n }", "private void initUIAfterLogin() {\n lnLoggedOutState.setVisibility(View.GONE);\n lnLoggedInState.setVisibility(View.VISIBLE);\n initUserProfileUI();\n }", "public void hideGebruikersBeheerPanel() {gebruikersBeheerView.setVisible(false);}", "private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}", "@FXML private void hideLackUserLoginLabel(){\n\t\tlackUserLoginLabel.setVisible(false);\n\t}", "private void hideMe() {\n\t\tthis.setVisible(false);\n\t\ttxtName.setText(\"\");\n\t\ttxtEmail.setText(\"\");\n\t\ttxtPhone.setText(\"\");\n\t}", "protected void hidePassword(){\n\t\tpasswordLabel.setVisible(false);\n\t\tconfirmPasswordLabel.setVisible(false);\n\t\tuserPasswordField.setVisible(false);\n\t\tuserConfirmPasswordField.setVisible(false);\n\t\tlackUserPasswordLabel.setVisible(false);\n\t\tlackUserConfirmPasswordLabel.setVisible(false);\t\t\n\t}", "@Override\n protected void onResume() {\n\t\tif (ParseUser.getCurrentUser() != null) {\n\t\t\tsettingsSignup.setVisibility(View.GONE);\n\t\t\tsettingsLogout.setVisibility(View.VISIBLE);\n\t\t} else {\n\t\t\tsettingsLogout.setVisibility(View.GONE);\n\t\t\tsettingsSignup.setVisibility(View.VISIBLE);\n\t\t}\n \tsuper.onResume();\n }", "@Override\n\tpublic boolean isLoggedIn() {\n\t\treturn false;\n\t}", "private void checkToLogout() {\n logout();\n checkToHome();\n drawViewSideMenu();\n }", "public static void makeUnlogged() {\n\t\tMemberSessionFacade.removeAttribute(ConfigKeys.LOGGED);\n//\t\tControllerUtils.addCookie(ConfigKeys.LOGGED, null);\n\t}", "private void showLoginScreen()\n {\n logIngEditText.setVisibility(View.VISIBLE);\n passwordEditText.setVisibility(View.VISIBLE);\n loginButton.setVisibility(View.VISIBLE);\n textViewLabel.setVisibility(View.VISIBLE);\n }", "@Override public void showLoginForm() {\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowLoginForm();\n\n errorView.setVisibility(View.GONE);\n\n setFormEnabled(true);\n //loginButton.setLoading(false);\n }", "@Override public void showLoading() {\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowLoading();\n\n errorView.setVisibility(View.GONE);\n setFormEnabled(false);\n }", "private void hide() {\n\t}", "public void logout() {\n showLoginScreen();\n }", "public void hide() {\n hidden = true;\n }", "private void hideMenuScreen()\n {\n logoutButton.setVisibility(textViewLabel.INVISIBLE);\n battleButton.setVisibility(View.INVISIBLE);\n char1.setVisibility(View.INVISIBLE);\n char2.setVisibility(View.INVISIBLE);\n char3.setVisibility(View.INVISIBLE);\n }", "public void hide() {\n\t\thidden = true;\n\t}", "@FXML private void hideLackUserPasswordLabel(){\n\t\tlackUserPasswordLabel.setVisible(false);\n\t}", "void hide();", "private void logOut() {\n mApi.getSession().unlink();\n\n // Clear our stored keys\n clearKeys();\n // Change UI state to display logged out version\n setLoggedIn(false);\n }", "private void hideLackUserPermissionsLabel(){\n\t\tlackUserPermissionsLabel.setVisible(false);\n\t}", "void hideProfileBackground();", "private void showSignInBar() {\n Log.d(TAG, \"Showing sign in bar\");\n findViewById(R.id.sign_in_bar).setVisibility(View.VISIBLE);\n findViewById(R.id.sign_out_bar).setVisibility(View.GONE);\n }", "private void showNothing(){\n errorTextView.setVisibility(View.INVISIBLE);\n errorButton.setVisibility(View.INVISIBLE);\n errorButton.setEnabled(false);\n recyclerView.setVisibility(View.INVISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n noFavoriteMoviesTextView.setVisibility(View.INVISIBLE);\n }", "public void stopLoadAnim() {\n avi.smoothToHide();\n loadTv.setVisibility(View.INVISIBLE);\n loginContainer.setVisibility(View.VISIBLE);\n }", "public void hidePlanels(){\n\t\tlblGradesSubj.getElement().setAttribute(\"style\", \"background: #e5e5e5;\");\n\t\tfilterPanel.addStyleName(LoginPopUpCBundle.INSTANCE.css().PopupMainVSmall());\n\t\tfilterPanel.removeStyleName(LoginPopUpCBundle.INSTANCE.css().PopupMainExtraLarge());\n\n\t\tlblStandards.getElement().getStyle().clearBackgroundColor();\n\t\tstandardsPanel.setVisible(false);\n\t\tgradesPanel.setVisible(true);\n\t}", "public void hide() {\n visible=false;\n }", "private void skippingWorks() {\n Storage storage = new Storage(SplashActivity.this);\n if (storage.getLogInState()) {\n Intent intent = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(intent);\n SplashActivity.this.overridePendingTransition(R.anim.slide_left, R.anim.slide_right);\n finish();\n } else {\n /*if user is previously not logged in take him to the AuthActivity*/\n Intent intent = new Intent(SplashActivity.this, AuthActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n SplashActivity.this.overridePendingTransition(R.anim.slide_left, R.anim.slide_right);\n finish();\n }\n }", "@Override\n\tpublic void onHiddenChanged(boolean hidden) {\n\t\tif (!hidden) {\n\t\t\tchangeviewbylogin();\n\t\t\tStatService.onPageStart(getActivity(),\t\"会员卡模块\");\n\t\t}else{\n\t\t\tStatService.onPageEnd(getActivity(),\"会员卡模块\");\n\t\t}\n\t\tsuper.onHiddenChanged(hidden);\n\t}", "public static void setInvisible() {\r\n\t\tfrmMfhEmailer.setVisible(false);\r\n\t}", "private void showSignOutBar() {\n Log.d(TAG, \"Showing sign out bar\");\n findViewById(R.id.sign_in_bar).setVisibility(View.GONE);\n findViewById(R.id.sign_out_bar).setVisibility(View.VISIBLE);\n }", "public void setVisible(boolean b) {\n\t\tLoginSystem l = new LoginSystem();\r\n\r\n\t}", "@Override\n protected void onFirstUserVisible() {\n }", "@Override\n\tpublic void hidePopup() {\n\t\t// logger.info(\"..errr..I'll hide u\");\n\t}", "@FXML private void hideLackUserNameLabel(){\n\t\tlackUserNameLabel.setVisible(false);\n\t}", "private void loginButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_loginButtonActionPerformed\n uL.setVisible(true);\n boolean isLoggedInNew = uL.isLoggedIn();\n boolean isLoggedIn = na.isLoggedIn();\n if (isLoggedInNew || isLoggedIn) {\n dm.messageMustLogOut();\n uL.dispose();\n }\n }", "public abstract void onFirstUserVisible();", "public void logOut() {\n try {\n // getGlobalNavigation().clickSignOut();\n } catch (TimeoutException e) {\n Log.log(\"logOut\", \"page loads for more than 30 seconds\", true);\n }\n }", "public void setlogUserOut() {\n\t\tcontroller.logoutUser();\n\t\tuserMenuButton.setText(\"\");\n\t\tuserMenuButton.setStyle(\"\");\n\t\tuserMenuButton.getItems().removeAll(menu1, menu2);\n\t\tloggedinuser.setVisible(false);\n\t\tuserSettings.setVisible(false);\n\t\tloginoption.setVisible(true);\n\n\t}", "protected void showLoginChooser() {\n if (mFenceClient != null && Constants.WPI_AREA_LANDMARKS.size() > 0) {\n FenceUpdateRequest.Builder builder = new FenceUpdateRequest.Builder();\n for (Map.Entry<String, LatLng> entry : Constants.WPI_AREA_LANDMARKS.entrySet()) {\n builder.removeFence(entry.getKey() + \"-dwell\");\n builder.removeFence(entry.getKey() + \"-exiting\");\n }\n\n mFenceClient.updateFences(builder.build())\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n close();\n }\n });\n } else {\n close();\n }\n }", "protected void userLoggedOut() {\n\t\tRuvego.userLoggedOut();\n\t\tResultsActivityMenu.userLoggedOut();\n\t\tHistory.newItem(\"homePage\");\n\t}", "public void hide() {\n super.hide();\n }", "public void ensureIsNotVisibleLoginBtn() {\n (new WebDriverWait(driver, 10)).until(ExpectedConditions.invisibilityOfElementLocated(By.id(\"signInBtn\")));\n }", "private boolean isLoggedInUser(){\n return true;\n }", "public void logout() {\n loggedIn = \"\";\n FacesContext.getCurrentInstance().getExternalContext()\n .getSessionMap().put(\"loggedIn\", \"\");\n }", "public T01Login() {\n initComponents();\n btnMenu.setVisible(false);\n }", "public void setHide()\n\t{\n\t\tMainController.getInstance().setVisible(name, false);\n\t}", "public void hide() {\n }", "private void hideLoadingAndUpdate() {\n image.setVisibility(View.VISIBLE);\n loadingBar.setVisibility(View.INVISIBLE);\n shareBtn.setVisibility(shareBtnVisibility);\n\n }", "public void loggedIn(){\n Button view = findViewById(R.id.buttonView);\n view.setVisibility(View.VISIBLE);\n Button logout = findViewById(R.id.buttonLogout);\n logout.setVisibility(View.VISIBLE);\n EditText username = findViewById(R.id.username);\n username.setVisibility(View.INVISIBLE);\n EditText pass = findViewById(R.id.password);\n pass.setVisibility(View.INVISIBLE);\n Button login = findViewById(R.id.buttonLogin);\n login.setVisibility(View.INVISIBLE);\n Button createAcc = findViewById(R.id.buttonCreateAccount);\n createAcc.setVisibility(View.INVISIBLE);\n TextView accountName = findViewById(R.id.accountName);\n accountName.setVisibility(View.VISIBLE);\n accountName.setText(user);\n }", "private void hideLoading()\n {\n relLoadingPanel.setVisibility(View.GONE);\n ViewHelper.setViewGroupEnabled(scrMainContainer, true);\n }", "@Override\n\tpublic void hide() {\n\t\tPostSign.Destroy();\n\t\tlevelbuilder = null;\n\t}", "void logoff();", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "public boolean isHidden() {\n return false;\n }", "@Override\n public void hide() {\n if (!unit.player.isPlayerDead) {\n MyPreference.setIsNewGame(false);\n saves.Save();\n }\n GameController.allFalse();\n dispose();\n }", "@Override\r\n public void hide() {\r\n\r\n }", "public void hideIt(){\n this.setVisible(false);\n }", "public void makeCurrentUser() {\n // Remove the Add Friend ImageView\n mFriendIv.setVisibility(View.GONE);\n\n // Show the \"You\" TextView\n mYouTv.setVisibility(View.VISIBLE);\n }", "public void hideChat(){\n\t\tElement chat = nifty.getScreen(\"hud\").findElementByName(\"chatPanel\");\n\t\tchat.setVisible(false);\n\t}", "@FXML private void hideLackUserConfirmPasswordLabel(){\n\t\tlackUserConfirmPasswordLabel.setVisible(false);\n\t}", "@Override\n public void show()\n {\n boolean loginOK; // true if good user info was entered\n // multithreaded code does not execute properly in IDEs; true if IDE run detected\n boolean runningFromIDE = false;\n\n do // continue login process while user chooses to stay in login menu\n {\n loginOK = false;\n while(!loginOK) // do this while no good login info acquired, or user choose to bail.\n {\n System.out.println(splashStrings.LOGIN); // SPLASH WELCOME\n\n String userName = GET.getString(\"Indtast venligst bruger navn:\\n\\t|> \");\n\n char[] password;\n\n if(!runningFromIDE) // getPassword does not work in IDE\n {\n password = PasswordField.getPassword(System.in, \"Indtast venligst password:\\n\\t|> \");\n\n if(password == null)\n {\n // getPassword returns a null array reference, if no chars were captured, thus this.\n runningFromIDE = true;\n\n System.out.println(\"MELDING:\\nDet ser ud til at du kører programmet fra en IDE:\\t\" +\n \"Password masking slås fra.\" +\n \"\\nKør shorttest.jar, for at opnå den fulde bruger-oplevelse.\\n\");\n\n continue;\n }\n\n loginOK = checkCredentials(userName, new String(password));\n\n } else // option is chosen if IDE-execution detected\n {\n String passw = GET.getString(\"Indtast venligst password:\\n\\t|> \");\n loginOK = checkCredentials(userName, passw);\n }\n\n if(!loginOK) // if user input were no good, and ONLY if info were no good\n {\n System.out.println(\"De indtastede informationer fandtes ikke i systemet.\");\n if(GET.getConfirmation(\"Vil du prøve igen?\\n\\tja / nej\\n\\t|> \", \"nej\", \"ja\"))\n {\n System.out.println(\"Du valgte ikke at prøve igen, login afsluttes.\");\n break;\n }\n }\n }\n\n if(loginOK)\n {\n System.out.println(\"Login var en success. Fortsætter til første menu.\\n\");\n menuLoggedInto.show();\n }\n\n // when user returns from main menu, they get to choose if they want to log in again\n } while(GET.getConfirmation(\"Skal en anden logge ind?\\n\\t ja / nej\\n\\t|> \", \"ja\", \"nej\"));\n }", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Step(\"Log out\")\n public void logOut() {\n open();\n sighOutButton.click();\n }", "@Override\r\n public void hide() {\n }", "@Override\n\tpublic void hide() {\n\t\tGdx.app.log(\"GameScreen\", \"Hidden\");\n\n\t}", "@Override\n public void hide() {\n \n }" ]
[ "0.7395294", "0.6841536", "0.68252546", "0.6615223", "0.6610495", "0.6551078", "0.6477065", "0.6406069", "0.6386975", "0.6365777", "0.63357294", "0.63254285", "0.62974644", "0.62818855", "0.6264257", "0.6261054", "0.6139988", "0.6139856", "0.61187226", "0.6065222", "0.60444695", "0.60191214", "0.6013557", "0.5995069", "0.597758", "0.5965025", "0.5955938", "0.59528744", "0.5944885", "0.5942687", "0.59325635", "0.5931617", "0.5918741", "0.59127766", "0.5911712", "0.59034836", "0.5902324", "0.58984363", "0.5878473", "0.58696973", "0.58686656", "0.5856361", "0.5843362", "0.5839361", "0.58359253", "0.5833586", "0.5829402", "0.5826212", "0.5810536", "0.58043706", "0.5799606", "0.5798072", "0.57953835", "0.5791133", "0.5786947", "0.57786536", "0.5774563", "0.5770245", "0.5766722", "0.57501835", "0.57501835", "0.57501835", "0.57501835", "0.57501835", "0.57501835", "0.57501835", "0.57501835", "0.57411623", "0.5740742", "0.57402647", "0.57295644", "0.57289904", "0.5726589", "0.5716618", "0.5708987", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.570494", "0.5698084", "0.5695927", "0.56954867", "0.5695296" ]
0.0
-1
Keeping reference to rest client
@Override public void onResume(RestClient client) { this.client = client; Log.i("EVENT", "onResume RestClient"); // Show everything findViewById(R.id.root).setVisibility(View.VISIBLE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected RestClient()\n\t{\n\t\tclient = new HttpClient();\n\t\tclient.setIdleTimeout(3000000);\n\t\t// for possible future use:\n\t\t//exchange_get = new ContentExchange()\n\t\t{\n\t\t\t// define the callback method to process the response when you get it back\n\t\t\t// protected void onResponseComplete() throws IOException\n\t\t\t// {\n\t\t\t// super.onResponseComplete();\n\t\t\t// int responseStatus = this.getStatus();\n\n\t\t\t// do something with the response content\n\t\t\t//System.out.println(\"Response status: \" + responseStatus);\n\t\t\t//System.out.println(this.getResponseContent());\n\t\t\t//\t }\n\t\t};\n\t}", "protected Client getRealClient() {\n\t\treturn client;\n\t}", "public abstract Client getClient();", "protected RestClient() {\n }", "public RestClient(){\n }", "Client getClient();", "private RestClient() {\n }", "@Bean(destroyMethod = \"close\", name = \"restClient\")\n public RestHighLevelClient initRestClient() {\n List<HttpHost> hosts = new ArrayList<>();\n String[] hostArrays = host.split(\",\");\n for (String host : hostArrays) {\n if (StringUtils.isNotEmpty(host)) {\n hosts.add(new HttpHost(host.trim(), port, \"http\"));\n }\n }\n\n RestClientBuilder restClientBuilder = RestClient.builder(hosts.toArray(new HttpHost[0]));\n\n // configurable auth\n if (authEnable) {\n final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();\n credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(username, password));\n restClientBuilder.setHttpClientConfigCallback(httpAsyncClientBuilder -> httpAsyncClientBuilder\n .setDefaultCredentialsProvider(credentialsProvider));\n }\n\n restClientBuilder.setRequestConfigCallback(requestConfigBuilder -> requestConfigBuilder\n .setConnectTimeout(connTimeout).setSocketTimeout(socketTimeout)\n .setConnectionRequestTimeout(connectionRequestTimeout));\n\n return new RestHighLevelClient(restClientBuilder);\n }", "public static RestClient getInstance() {\n synchronized (RestClient.class) {\n if (ourInstance == null) {\n ourInstance = new RestClient();\n }\n }\n return ourInstance;\n }", "public MessageRest() {\n client = javax.ws.rs.client.ClientBuilder.newClient();\n webTarget = client.target(BASE_URI).path(\"MessageResources\");\n }", "@Bean(destroyMethod = \"close\")\n public RestHighLevelClient client() {\n final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();\n credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(esUser, esPassword));\n\n RestClientBuilder builder = RestClient.builder(new HttpHost(esHost, esPort, \"https\"))\n .setHttpClientConfigCallback(httpClientBuilder -> httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider));\n\n return new RestHighLevelClient(builder);\n }", "public void setHttpClient( HttpClient req ) {\r\n\tclient=req;\r\n }", "RestClientBuilder(){\n\n }", "RESTClient(String serverName, String omasServerURL)\n {\n this.serverName = serverName;\n this.omasServerURL = omasServerURL;\n this.restTemplate = new RestTemplate();\n }", "private MockClientFacade() {\n\t\t//this.c = Client.getInstance();\n\t}", "@JacksonInject\n public void setClient(HttpClient client) {\n this.client = client;\n }", "private APIClient() {\n }", "public interface RestClientService {\n\n\tCollection<Resource<MeasurementDto>> getCatalogueMeasurements(String uri, String metricName, String resourceName);\n\tResource<MeasurementDto> getMonitorMeasurement(String uri, UserCredentials user);\n\tCollection<Resource<SystemResourceDto>> getSystemResources(String uri);\n\tCollection<Resource<ComplexTypeDto>> getAvailableComplexTypes(String uri);\n\tResource<ComplexMeasurementDto> getComplexDetails(String uri);\n\tvoid addMeasurement(String uri, ComplexMeasurementOutDto measurement, UserCredentials user);\n\tvoid deleteMeasurement(String uri, UserCredentials user);\n}", "private SOSCommunicationHandler getClient() {\r\n\t\treturn client;\r\n\t}", "private MyClientEndpoint(){\n // private to prevent anyone else from instantiating\n }", "public Client getClient() {\n return client;\n }", "public Client getClient() {\n return client;\n }", "@Before\n public void setUp() {\n restClient = new RestClient(client, accessTokenProvider, nestUrls);\n }", "protected HeavyClient getClient() {\n\t\treturn client;\n\t}", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "public TicketClient(@Value(\"${app.ticket-catalog.url}\") String serverUrl) {\n this.serverUrl = serverUrl;\n this.restTemplate = new RestTemplate();\n var requestFactory = new SimpleClientHttpRequestFactory();\n this.restTemplate.setRequestFactory(requestFactory);\n }", "protected static void shutdownClient() {\n\t\tif (restClient != null) {\n\t\t\ttry {\n\t\t\t\trestClient._transport().close();\n\t\t\t\trestClientAsync._transport().close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tlogger.error(null, ex);\n\t\t\t}\n\t\t}\n\t}", "protected void setClient(Client _client) {\n\t\tclient = _client;\n\t}", "private RestRequest createRestRequest(final Client jerseyClient) {\n String uri = getServiceEndpointAddress();\n WebResource webResource = buildWebResource(jerseyClient, uri);\n return new RestRequest(webResource);\n }", "private void createClient() {\n tc = new TestClient();\n }", "public static ElasticsearchClient getRESTClient() {\n\t\tif (restClient != null) {\n\t\t\treturn restClient;\n\t\t}\n\t\tString esScheme = Para.getConfig().elasticsearchRestClientScheme();\n\t\tString esHost = Para.getConfig().elasticsearchRestClientHost();\n\t\tint esPort = Para.getConfig().elasticsearchRestClientPort();\n\t\tboolean signRequests = Para.getConfig().elasticsearchSignRequestsForAwsEnabled();\n\n\t\tHttpHost host = new HttpHost(esHost, esPort, esScheme);\n\t\tRestClientBuilder clientBuilder = RestClient.builder(host);\n\n\t\tString esPrefix = Para.getConfig().elasticsearchRestClientContextPath();\n\t\tif (StringUtils.isNotEmpty(esPrefix)) {\n\t\t\tclientBuilder.setPathPrefix(esPrefix);\n\t\t}\n\n\t\tList<RestClientBuilder.HttpClientConfigCallback> configurationCallbacks = new ArrayList<>();\n\n\t\tif (signRequests) {\n\t\t\tconfigurationCallbacks.add(getAWSRequestSigningInterceptor(host.getSchemeName() + \"://\" + host.getHostName()));\n\t\t}\n\t\tconfigurationCallbacks.add(getAuthenticationCallback());\n\n\t\t// register all customizations\n\t\tclientBuilder.setHttpClientConfigCallback(httpClientBuilder -> {\n\t\t\tconfigurationCallbacks.forEach(c -> c.customizeHttpClient(httpClientBuilder));\n\t\t\tif (esHost.startsWith(\"localhost\") || !Para.getConfig().inProduction()) {\n\t\t\t\thttpClientBuilder.setSSLHostnameVerifier((hostname, session) -> true);\n//\t\t\t\thttpClientBuilder.setSSLContext(SSLContextBuilder.create().);\n\n\t\t\t}\n\t\t\treturn httpClientBuilder;\n\t\t});\n\n\t\t// Create the transport with a Jackson mapper\n\t\tRestClientTransport transport = new RestClientTransport(clientBuilder.build(), new JacksonJsonpMapper());\n\t\trestClient = new ElasticsearchClient(transport);\n\t\trestClientAsync = new ElasticsearchAsyncClient(transport);\n\n\t\tPara.addDestroyListener(new DestroyListener() {\n\t\t\tpublic void onDestroy() {\n\t\t\t\tshutdownClient();\n\t\t\t}\n\t\t});\n\t\tif (!existsIndex(Para.getConfig().getRootAppIdentifier())) {\n\t\t\tcreateIndex(Para.getConfig().getRootAppIdentifier());\n\t\t}\n\t\treturn restClient;\n\t}", "private String getRestUrl() {\n return restUrl;\n }", "public Client getClient() {\r\n\t\treturn this.client;\r\n\t}", "protected HttpClient getClient() {\n if (client == null) {\n synchronized (this) {\n if (client == null) {\n client = new DefaultHttpClient(conman, params);\n }\n }\n }\n\n return client;\n }", "public interface RestClientInt {\n\n /**\n * It performs a GET request\n * \n * @param client registration ID\n * \t\t\t (can be null\n * @param url\n * @param headers\n * (can be null)\n * @param queryParameters\n * (can be null)\n * @return\n */\n public ClientResponse performGetRequest(String clientRegistrationID, URL url, Map<String, String> headers, Map<String, String> queryParameters);\n\n /**\n * It returns the body representation of the HTTP response\n * \n * @param <T>\n * @param response\n * @param clazz\n * -> Class to use when parsing the response body\n * @return\n */\n public <T> T getBodyFromResponse(ClientResponse response, Class<T> clazz);\n\n}", "public Client getClient() {\n\t\treturn client;\n\t}", "public Client getClient() {\n\t\treturn client;\n\t}", "@Override\n\tpublic void createClient() {\n\t\t\n\t}", "public interface RestClientService {\n\n void setToken(String mToken);\n\n}", "private static WebClient getClient(final Context context) {\n if (sInstance == null) {\n sInstance = new WebClient(context);\n }\n return sInstance;\n }", "private ThirdPidRestClient getThirdPidRestClient() {\n if (mThirdPidRestClient == null && mHsConfig != null && mHsConfig.getIdentityServerUri() != null) {\n mThirdPidRestClient = new ThirdPidRestClient(mHsConfig);\n }\n return mThirdPidRestClient;\n }", "public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }", "public interface Rest {\n}", "public void setClient(Client client) {\r\n\t\tthis.client = client;\r\n\t}", "private LoginRestClient getLoginRestClient() {\n if (mLoginRestClient == null && mHsConfig != null) {\n mLoginRestClient = new LoginRestClient(mHsConfig);\n }\n return mLoginRestClient;\n }", "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void updateClient() {\n\t\t\n\t}", "private ProfileRestClient getProfileRestClient() {\n if (mProfileRestClient == null && mHsConfig != null) {\n mProfileRestClient = new ProfileRestClient(mHsConfig);\n }\n return mProfileRestClient;\n }", "protected NuxeoClient getClient() {\n if (client == null) {\n initClient();\n }\n return client;\n }", "public Client(Client client) {\n\n }", "public static RetrofitClient getInstance() {\n return OUR_INSTANCE;\n }", "public RestTemplate getRestTemplate();", "public JSONRPC2Session getClient()\n {\n return client;\n }", "public void setClient(Client client_) {\n\t\tclient = client_;\n\t}", "public void getClient(String id, AsyncCallback<Client> cb);", "private ResourceClient( ResourceConfigurationBase<?> theConfiguration, String theContractRoot, String theContractVersion, String theUserAgent, HttpClient theClient, JsonTranslationFacility theJsonFacility ) {\r\n\t\tPreconditions.checkNotNull( theConfiguration, \"need a configuration object so we can get our endpoint\" );\r\n \tPreconditions.checkArgument( !Strings.isNullOrEmpty( theContractRoot ), \"need a contract root\" );\r\n \tPreconditions.checkArgument( theContractRoot.startsWith( \"/\" ), \"the contract root '%s' must be a reference from the root (i.e. start with '/')\", theContractRoot );\r\n \tPreconditions.checkArgument( !Strings.isNullOrEmpty( theContractVersion ), \"need a version for contract root '%s'\", theContractRoot );\r\n \tPreconditions.checkArgument( ContractVersion.isValidVersion( theContractVersion), \"the version string '%s' for contract root '%s' is not valid\", theContractVersion, theContractRoot );\r\n\t\tPreconditions.checkArgument( !Strings.isNullOrEmpty( theUserAgent ), \"need a user agent for this client\" );\r\n\r\n\t\t// lets make sure the configuration is valid\r\n\t\ttheConfiguration.validate();\r\n\t\t\r\n\t\t// now let's start preparing the client\r\n\t\tendpoint = new HttpEndpoint( theConfiguration.getEndpoint( ) ); // this will do validation on the endpoint \r\n\t\tcontractRoot = theContractRoot; \r\n\t\tcontractVersion = theContractVersion;\r\n\t\tuserAgent = theUserAgent;\r\n\t\t\r\n\t\t// use the client if sent in, but create a working one otherwise\r\n\t\tif( theClient == null ) {\r\n\t\t\ttry {\r\n\t\t\t SslContextFactory sslContextFactory = null;\r\n\t\r\n\t\t\t if( endpoint.isSecure( ) ) {\r\n\t\t\t \tif( theConfiguration.getAllowUntrustedSsl() ) {\r\n\t\t\t \t\t// so we need SSL communication BUT we don't need to worry about it being valid, likley\r\n\t\t\t \t\t// because the caller is self-cert'ing or in early development ... we may need to do \r\n\t\t\t \t\t// more here mind you\r\n\t\t\t \t\t\r\n\t\t\t\t \t// the following code was based https://code.google.com/p/misc-utils/wiki/JavaHttpsUrl\r\n\t\t\t\t \t// if we were to look into mutual SSL and overall key handling, I probably want to\r\n\t\t\t\t \t// take a closer look\r\n\t\t\t\t \t\r\n\t\t\t\t \t// We need to create a trust manager that essentially doesn't except/fail checks\r\n\t\t\t\t\t final TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\r\n\t\t\t\t\t \t// this was based on the code found here:\r\n\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void checkClientTrusted(X509Certificate[] chain,\r\n\t\t\t\t\t\t\t\t\tString authType) throws CertificateException {\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void checkServerTrusted(X509Certificate[] chain,\r\n\t\t\t\t\t\t\t\t\tString authType) throws CertificateException {\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic X509Certificate[] getAcceptedIssuers() {\r\n\t\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t } };\r\n\t\t\t\t\t \r\n\t\t\t\t\t // then we need to create an SSL context that uses lax trust manager \r\n\t\t\t\t\t SSLContext sslContext = SSLContext.getInstance( \"SSL\" );\r\n\t\t\t\t\t\tsslContext.init( null, trustAllCerts, new java.security.SecureRandom() );\r\n\t\r\n\t\t\t\t\t\t// and finally, create the SSL context that\r\n\t\t\t\t\t\tsslContextFactory = new SslContextFactory();\r\n\t\t\t\t\t\tsslContextFactory.setSslContext( sslContext );\r\n\t\t\t \t} else {\r\n\t\t\t \t\t// TODO: this needs to be tested against \r\n\t\t\t \t\t//\t\t a) real certs with real paths that aren't expired\r\n\t\t\t \t\t//\t\t b) real certs with real paths that are expired\r\n\t\t\t \t\tsslContextFactory = new SslContextFactory( );\r\n\t\t\t \t}\r\n\t\t\t\t\thttpClient = new HttpClient( sslContextFactory );\r\n\t\t\t } else {\r\n\t\t\t\t\thttpClient = new HttpClient( );\r\n\t\t\t }\r\n\t\t\t httpClient.setFollowRedirects( false ); // tales doesn't have redirects (at least not yet)\r\n\t\t\t httpClient.setStrictEventOrdering( true ); // this seems to fix an odd issue on back-to-back calls to the same service on \r\n\t\t\t\thttpClient.start( );\r\n\t\t\t displayClientConfiguration( httpClient );\r\n\t\t\t} catch (NoSuchAlgorithmException | KeyManagementException e) {\r\n\t\t\t\tthrow new IllegalStateException( \"unable to create the resource client due to a problem setting up SSL\", e );\r\n\t\t\t} catch (Exception e ) {\r\n\t\t\t\tthrow new IllegalStateException( \"unable to create the resource client due to the inability to start the HttpClient\", e );\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\thttpClient = theClient;\r\n\t\t}\r\n\t\thttpClient.setUserAgentField( new HttpField( HttpHeader.USER_AGENT, theUserAgent ) );\r\n\r\n\t\tif( theJsonFacility == null ) {\r\n\t\tjsonFacility = new JsonTranslationFacility( new DataContractTypeSource( ) );\r\n\t\t} else {\r\n\t\t\tjsonFacility = theJsonFacility;\r\n\t\t}\r\n\t\t\r\n\t\tjsonParser = new JsonParser( );\r\n\t\t\r\n\t\t// now that we have the json facility, let's \r\n\t\t// get the adapter for the result type\r\n\t\tJavaType type = new JavaType( ResourceResult.class );\r\n\t\tJsonTypeMap typeMap = jsonFacility.generateTypeMap( type ); // TODO: technically I can, if I have the type of the result, now do the full thing (need to have a field for it)\r\n\t\tresultTypeAdapter = new TypeFormatAdapter( \r\n\t\t\t\ttype,\r\n\t\t\t\ttypeMap.getReflectedType().getName(),\r\n \t\t\tnew JsonObjectToObjectTranslator( typeMap ),\r\n \t\t\tnew ObjectToJsonObjectTranslator( typeMap ) );\t\t\t\t\r\n\t}", "public interface Client {\n \n /**\n * Get the unique id of current client.\n *\n * @return id of client\n */\n String getClientId();\n \n /**\n * Whether is ephemeral of current client.\n *\n * @return true if client is ephemeral, otherwise false\n */\n boolean isEphemeral();\n \n /**\n * Set the last time for updating current client as current time.\n */\n void setLastUpdatedTime();\n \n /**\n * Get the last time for updating current client.\n *\n * @return last time for updating\n */\n long getLastUpdatedTime();\n \n /**\n * Add a new instance for service for current client.\n *\n * @param service publish service\n * @param instancePublishInfo instance\n * @return true if add successfully, otherwise false\n */\n boolean addServiceInstance(Service service, InstancePublishInfo instancePublishInfo);\n \n /**\n * Remove service instance from client.\n *\n * @param service service of instance\n * @return instance info if exist, otherwise {@code null}\n */\n InstancePublishInfo removeServiceInstance(Service service);\n \n /**\n * Get instance info of service from client.\n *\n * @param service service of instance\n * @return instance info\n */\n InstancePublishInfo getInstancePublishInfo(Service service);\n \n /**\n * Get all published service of current client.\n *\n * @return published services\n */\n Collection<Service> getAllPublishedService();\n \n /**\n * Add a new subscriber for target service.\n *\n * @param service subscribe service\n * @param subscriber subscriber\n * @return true if add successfully, otherwise false\n */\n boolean addServiceSubscriber(Service service, Subscriber subscriber);\n \n /**\n * Remove subscriber for service.\n *\n * @param service service of subscriber\n * @return true if remove successfully, otherwise false\n */\n boolean removeServiceSubscriber(Service service);\n \n /**\n * Get subscriber of service from client.\n *\n * @param service service of subscriber\n * @return subscriber\n */\n Subscriber getSubscriber(Service service);\n \n /**\n * Get all subscribe service of current client.\n *\n * @return subscribe services\n */\n Collection<Service> getAllSubscribeService();\n \n /**\n * Generate sync data.\n *\n * @return sync data\n */\n ClientSyncData generateSyncData();\n \n /**\n * Whether current client is expired.\n *\n * @param currentTime unified current timestamp\n * @return true if client has expired, otherwise false\n */\n boolean isExpire(long currentTime);\n \n /**\n * Release current client and release resources if neccessary.\n */\n void release();\n \n /**\n * Recalculate client revision and get its value.\n * @return recalculated revision value\n */\n long recalculateRevision();\n \n /**\n * Get client revision.\n * @return current revision without recalculation\n */\n long getRevision();\n \n /**\n * Set client revision.\n * @param revision revision of this client to update\n */\n void setRevision(long revision);\n \n}", "public void updateClient()\n\t{\n\t\t// TODO\n\t}", "public Client getClient() {\n\t\tcheckInit();\n\t\tfinal Client cli = tenant.getContext().getBean(Client.class);\n\t\tif (cli.getEventMapper()==null) {\n\t\t\tcli.setEventMapper(getEventMapper());\n\t\t}\n\t\treturn cli;\n\t}", "@Override\n\t\tpublic Client getClient(int idClient) {\n\t\t\treturn null;\n\t\t}", "public TestWebClient() {\n\t\tresources = new LinkedList<Resource>();\n\t}", "public String getRestUrl() {\n return this.restUrl;\n }", "private RetrofitClient(Context context){\n mRetrofit=new Retrofit.Builder()\n .baseUrl(NetworkUtility.BASEURL)\n .addConverterFactory(GsonConverterFactory.create())\n// .client(createClient(context))\n .build();\n }", "public RestService() {\r\n \r\n }", "protected HttpClient getHttpClient( ) {\r\n\t\treturn httpClient;\r\n\t}", "public APIClient() {\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n // Build base url\n retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .addCallAdapterFactory(RxJava3CallAdapterFactory.create())\n .build();\n }", "public void setClient(Client client) {\n\t\tthis.client = client;\n\t}", "public void process()\n {\n ClientRequest clientRequest = threadPool.remove();\n\n if (clientRequest == null)\n {\n return;\n }\n\n\n // Do the work\n // Create new Client\n ServiceLogger.LOGGER.info(\"Building client...\");\n Client client = ClientBuilder.newClient();\n client.register(JacksonFeature.class);\n\n // Get uri\n ServiceLogger.LOGGER.info(\"Getting URI...\");\n String URI = clientRequest.getURI();\n\n ServiceLogger.LOGGER.info(\"Getting endpoint...\");\n String endpointPath = clientRequest.getEndpoint();\n\n // Create WebTarget\n ServiceLogger.LOGGER.info(\"Building WebTarget...\");\n WebTarget webTarget = client.target(URI).path(endpointPath);\n\n // Send the request and save it to a Response\n ServiceLogger.LOGGER.info(\"Sending request...\");\n Response response = null;\n if (clientRequest.getHttpMethodType() == Constants.getRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n String pathParam = clientRequest.getPathParam();\n\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a GET request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .get();\n }\n else if (clientRequest.getHttpMethodType() == Constants.postRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n ServiceLogger.LOGGER.info(\"Got a POST request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .post(Entity.entity(clientRequest.getRequest(), MediaType.APPLICATION_JSON));\n }\n else if (clientRequest.getHttpMethodType() == Constants.deleteRequest)\n {\n String pathParam = clientRequest.getPathParam();\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a DELETE request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .delete();\n }\n else\n {\n ServiceLogger.LOGGER.warning(ANSI_YELLOW + \"Request was not sent successfully\");\n }\n ServiceLogger.LOGGER.info(ANSI_GREEN + \"Sent!\" + ANSI_RESET);\n\n // Check status code of request\n String jsonText = \"\";\n int httpstatus = response.getStatus();\n\n jsonText = response.readEntity(String.class);\n\n // Add response to database\n String email = clientRequest.getEmail();\n String sessionID = clientRequest.getSessionID();\n ResponseDatabase.insertResponseIntoDB(clientRequest.getTransactionID(), jsonText, email, sessionID, httpstatus);\n\n }", "RESTClient(String serverName, String omasServerURL, String userId, String password)\n {\n this.serverName = serverName;\n this.omasServerURL = omasServerURL;\n\n RestTemplateBuilder restTemplateBuilder = new RestTemplateBuilder();\n\n this.restTemplate = restTemplateBuilder.basicAuthentication(userId, password).build();\n }", "public static Client getHttpClient() {\r\n return c;\r\n }", "public static DucktalesClient getClient() {\n \treturn client;\n }", "protected MqttAsyncClient getClient() {\n return client;\n }", "public void setRestUrl(String url) {\n this.restUrl = url;\n }", "private RestTemplate getRestTemplateForPatch() {\n HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory();\n return new RestTemplate(requestFactory);\n }", "private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }", "public ClientI getClient() {\n\t\treturn client;\n\t}", "@Override\n\tpublic Client getClientById(int id) {\n\t\treturn null;\n\t}", "Client getClient(int id) throws ClientNotFoundException;", "public RootResource() {\n setNegotiated(false);\n // setExisting(false);\n }", "public ArkFolioClientFactory(HttpClient client) {\n\t\tthis.client = client;\n\t}", "public static Retrofit getClient(final Context context) {\n //setup cache\n OkHttpClient okHttpClient = createCachedClient(context);\n retrofit = new Retrofit.Builder()\n .client(okHttpClient)\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n return retrofit;\n }", "public Factory() {\n this(getInternalClient());\n }", "public interface RestService {\n\n //\n //\n // AUTH\n //\n //\n @POST(\"auth\")\n Call<AccessToken> logIn(@Body Credentials credentials);\n\n @POST(\"users\")\n Call<Void> signUp(@Body Credentials credentials);\n\n //\n //\n // Fetch Data\n //\n //\n @GET(\"data\")\n Call<CategoriesWrapper> fetchData();\n\n @POST(\"categories\")\n Call<Category> addCategory(@Body AddCategoryWrapper wrapper);\n\n @POST(\"feeds\")\n Call<Void> subscribeFeed(@Body AddFeedWrapper wrapper);\n\n @DELETE(\"feeds/{id_feed}\")\n Call<Void> unsubscribeFeed(@Path(\"id_feed\") Integer channelId);\n\n //\n //\n // Update Read Items. Mark as read.\n //\n //\n @PUT(\"items\")\n Call<Void> updateReadAllItems(@Body ItemStateWrapper wrapper);\n\n @PUT(\"feeds/{id_feed}/items/\")\n Call<Void> updateReadItemsByChannelId(@Path(\"id_feed\") Integer channelId,\n @Body ItemStateWrapper wrapper);\n\n @PUT(\"items/{id_item}\")\n Call<Void> updateStateItem(@Path(\"id_item\") Integer itemId,\n @Body ItemStateWrapper wrapper);\n}", "public PartnerAPICallbackHandler(){\n this.clientData = null;\n }", "public SearchServiceRestClientImpl() {\n this(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()).build());\n }", "private void initialize(){\n if(uri != null)\n httpUriRequest = getHttpGet(uri);\n httpClient = HttpClients.createDefault();\n }", "public static Client createClient() {\n JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();\n provider.setAnnotationsToUse(new Annotations[]{Annotations.JACKSON});\n\n ClientConfig config = new ClientConfig(provider);\n //Allow delete request with entity\n config.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);\n //It helps to handle cookies\n config.property(ClientProperties.FOLLOW_REDIRECTS, Boolean.FALSE);\n //Allow PATCH\n config.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);\n\n Logger logger = Logger.getLogger(\"Client\");\n Feature feature = new LoggingFeature(logger, Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY,\n null);\n\n //Allow self trusted certificates\n SSLContext sslcontext;\n try {\n sslcontext = SSLContext.getInstance(\"TLS\");\n sslcontext.init(null, new TrustManager[]{new X509TrustManager() {\n public void checkClientTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public void checkServerTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[0];\n }\n }}, new java.security.SecureRandom());\n } catch (KeyManagementException | NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n\n return ClientBuilder\n .newBuilder()\n .withConfig(config)\n .sslContext(sslcontext)\n .build()\n .register(feature)\n .register(MultiPartFeature.class);\n }", "private OkHttpClient createClient(){\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n return new OkHttpClient.Builder()\n .addInterceptor(logging)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS)\n .build();\n }", "private WebClient getWebClient() {\n\t\treturn ClientSecurityUtils.applySecurityToRest(\n\t\t\t\tWebClient.fromClient(customerRestWebClient, true),\n\t\t\t\tpropertyManager.getRemoteUsername(),\n\t\t\t\tpropertyManager.getRemotePassword());\n\t}", "public AbstractReceiverRest(String subscribeEndpoint, String topicsEndpoint) {\n \t\tclient = ClientBuilder.newClient();\n \t\tsubscriptionsTarget = client.target(subscribeEndpoint);\n \t\ttopicsTarget = client.target(topicsEndpoint);\n \t}", "@Override\n\tpublic void createClient(Client clt) {\n\t\t\n\t}", "public ApiClient getApiClient() {\n return apiClient;\n }", "public ApiClient getApiClient() {\n return apiClient;\n }", "public interface HttpClientInterface {\n\n Retrofit getClient();\n}", "public BeerServiceClient(RestTemplateBuilder restTemplateBuilder) {\n this.restTemplate = restTemplateBuilder.build();\n }", "public RestApplication() {\n\t\tsingletons.add(new UtilResource());\n\t\tsingletons.add(new StudentResource());\n\t}", "public static Client getClient(){\n // Create a new client if it hasn't been created yet\n if(client == null) client = new Client(60000,60000);\n return client;\n }", "private CorrelationClient() { }", "public static Retrofit getClient() {\n if (retrofit == null){ // Nos aseguramos que no se haya creado un objeto retrofit\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n retrofit = new Retrofit.Builder() // Inicializamos el objeto Retrofit\n .baseUrl(BASE_URL) // Indicamos a cual sitio se estará conectando\n .addConverterFactory(GsonConverterFactory.create(gson)) // Indicamos cual será nuestro serializador y deserializador de objetos (JSON)\n .build(); // Construimos el objeto\n Log.w(\"Retrofit\",\"Retrofit Start\");\n }\n return retrofit;\n }", "private void setClient(ClientImpl model) {\n if (client == null) {\n this.client = model;\n }\n }" ]
[ "0.69898653", "0.67276776", "0.6638182", "0.66196644", "0.65323484", "0.65178645", "0.6412776", "0.6387383", "0.63299984", "0.6299326", "0.6295074", "0.6241312", "0.6231517", "0.6224459", "0.6170664", "0.6167913", "0.6163705", "0.61552393", "0.614737", "0.6116834", "0.61110455", "0.61110455", "0.6085503", "0.6067221", "0.605968", "0.6054349", "0.6045384", "0.6028832", "0.6019955", "0.60110825", "0.5998291", "0.5939589", "0.5919719", "0.5918603", "0.5917428", "0.58945787", "0.58945787", "0.5891966", "0.588948", "0.58669484", "0.5864958", "0.58646977", "0.58417875", "0.58216345", "0.582137", "0.5819446", "0.58193994", "0.5811333", "0.58084756", "0.5805536", "0.58012724", "0.5789233", "0.57860535", "0.5778585", "0.5773427", "0.5773128", "0.5771332", "0.5761023", "0.5745839", "0.57397354", "0.5733058", "0.5731575", "0.57227063", "0.5720767", "0.5719669", "0.5705149", "0.5701308", "0.56906974", "0.5688607", "0.5674805", "0.56617093", "0.56528115", "0.5652224", "0.5638628", "0.56376874", "0.5601745", "0.55853796", "0.5585052", "0.55741626", "0.55729425", "0.5563525", "0.5559053", "0.5558915", "0.5558233", "0.5533164", "0.5529936", "0.55127466", "0.5511587", "0.55092764", "0.5509058", "0.550277", "0.5502011", "0.5502011", "0.5499853", "0.54980475", "0.54963183", "0.54931074", "0.54924726", "0.5487694", "0.54869" ]
0.56365585
75
Limpia el layout de registros.
public void onClearClick(View v) { ViewGroup root = (ViewGroup) findViewById(R.id.root); for (int i = 0; i < root.getChildCount(); i++) { View vw = findViewById(R.id.vgroup); if (vw != null) { root.removeView(vw); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void iniciarLayout();", "public void setupLayout() {\n // left empty for subclass to override\n }", "@Override\n public void layout() {\n // TODO: not implemented\n }", "@JsOverlay\n public final void layout() {\n Dagre.get().layout(this);\n }", "@Override\n public void createInitialLayout(IPageLayout layout) {\n defineActions(layout);\n defineLayout(layout);\n }", "public void createInitialLayout(IPageLayout layout) {\n \n\t}", "public void forgetLayout()\r\n\t{\n\t}", "public void resetTipoLayoutBuscador()\r\n {\r\n this.tipoLayoutBuscador = null;\r\n }", "public void initLayouts() {\n\t\tJPanel p_header = (JPanel) getComponentByName(\"p_header\");\n\t\tJPanel p_container = (JPanel) getComponentByName(\"p_container\");\n\t\tJPanel p_tree = (JPanel) getComponentByName(\"p_tree\");\n\t\tJPanel p_commands = (JPanel) getComponentByName(\"p_commands\");\n\t\tJPanel p_execute = (JPanel) getComponentByName(\"p_execute\");\n\t\tJPanel p_buttons = (JPanel) getComponentByName(\"p_buttons\");\n\t\tJPanel p_view = (JPanel) getComponentByName(\"p_view\");\n\t\tJPanel p_info = (JPanel) getComponentByName(\"p_info\");\n\t\tJPanel p_chooseFile = (JPanel) getComponentByName(\"p_chooseFile\");\n\t\tJButton bt_apply = (JButton) getComponentByName(\"bt_apply\");\n\t\tJButton bt_revert = (JButton) getComponentByName(\"bt_revert\");\n\t\tJTextArea ta_header = (JTextArea) getComponentByName(\"ta_header\");\n\t\tJLabel lb_icon = (JLabel) getComponentByName(\"lb_icon\");\n\t\tJLabel lb_name = (JLabel) getComponentByName(\"lb_name\");\n\t\tJTextField tf_name = (JTextField) getComponentByName(\"tf_name\");\n\n\t\tBorder etched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);\n\n\t\tp_header.setBorder(etched);\n\t\tp_container.setBorder(etched);\n\t\tp_commands.setBorder(etched);\n\t\t// p_execute.setBorder(etched);\n\t\t// p_view.setBorder(etched);\n\t\t// p_buttons.setBorder(etched);\n\n\t\tp_buttons.setLayout(new FlowLayout(FlowLayout.LEFT, 25, 2));\n\t\tp_chooseFile.setLayout(new FlowLayout(FlowLayout.LEFT, 6, 1));\n\t\tp_view.setLayout(new BorderLayout(0, 0));\n\t\tp_info.setLayout(null);\n\n\t\t// GroupLayout for main JFrame\n\t\t// If you want to change this, use something like netbeans or read more\n\t\t// into group layouts\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout\n\t\t\t\t.setHorizontalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\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\t225,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\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.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_execute,\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\t957,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\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\tp_container,\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\t957,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_header,\n\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\t1188,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgroupLayout\n\t\t\t\t.setVerticalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_header,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, 57,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\n\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\t603,\n\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\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\t549,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\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\tp_execute,\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\t48,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\n\t\tGroupLayout gl_p_container = new GroupLayout(p_container);\n\t\tgl_p_container\n\t\t\t\t.setHorizontalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_view,\n\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\t955,\n\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.addGroup(\n\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\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_apply)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\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\tbt_revert))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlb_name)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\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\ttf_name,\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\t893,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_p_container\n\t\t\t\t.setVerticalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttf_name,\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\t\tGroupLayout.DEFAULT_SIZE,\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.addComponent(lb_name))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_view,\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\t\t466, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_revert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_apply))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\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\tShort.MAX_VALUE)));\n\t\tp_container.setLayout(gl_p_container);\n\n\t\t// GroupLayout for p_header\n\n\t\tGroupLayout gl_p_header = new GroupLayout(p_header);\n\t\tgl_p_header.setHorizontalGroup(gl_p_header.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tAlignment.TRAILING,\n\t\t\t\tgl_p_header\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(ta_header, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t1069, Short.MAX_VALUE).addGap(18)\n\t\t\t\t\t\t.addComponent(lb_icon).addGap(4)));\n\t\tgl_p_header\n\t\t\t\t.setVerticalGroup(gl_p_header\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tta_header,\n\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\t44,\n\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.addComponent(lb_icon))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tp_header.setLayout(gl_p_header);\n\n\t\tGroupLayout gl_p_commands = new GroupLayout(p_commands);\n\t\tgl_p_commands\n\t\t\t\t.setHorizontalGroup(gl_p_commands\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_tree,\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\t\t211,\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_buttons,\n\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\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_p_commands.setVerticalGroup(gl_p_commands.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_p_commands\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(p_buttons, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.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(p_tree, GroupLayout.DEFAULT_SIZE, 558,\n\t\t\t\t\t\t\t\tShort.MAX_VALUE).addContainerGap()));\n\t\tp_commands.setLayout(gl_p_commands);\n\n\t\tgetContentPane().setLayout(groupLayout);\n\t}", "public Layout() {\n\n //nao precisa colocar externo, apenas referencia com a linha 0\n for (int i = 0; i < 4; i++) {\n matrix[0][i] = Estados.EXTERNO;\n }\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = Estados.ROOM;\n }\n\n matrix[2][1] = Estados.ROOM_EMPTY;\n matrix[2][2] = Estados.ROOM_EMPTY2;\n\n matrix[2][0] = Estados.ACESSO_EXTERNO;\n matrix[2][3] = Estados.ACESSO_INTERNO;\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = Estados.ROOM;\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[4][i] = Estados.EXTERNO2;\n }\n\n }", "public GroupLayoutRonald ()\n {\n groupFunction();\n }", "void computeNewLayout();", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "private void initializeLayout(){\n String title = mStrInfo;\n String subtitle = mClientItem.clientName;\n mHomeToolbar.setGymRatToolbarTitle(title, subtitle);\n\n //initialize maids\n initializeMaid();\n\n //initialize bottom navigation\n initializeBottomNavigation();\n }", "public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }", "public void finishLayout() {\n\t\tsetTypeState(ir_type_state.layout_fixed);\n\t}", "private void defineLayout(IPageLayout layout) {\n String editorArea = layout.getEditorArea();\r\n\r\n IFolderLayout folder;\r\n\r\n // Place remote system view to left of editor area.\r\n folder = layout.createFolder(NAV_FOLDER_ID, IPageLayout.LEFT, 0.2F, editorArea);\r\n folder.addView(getRemoveSystemsViewID());\r\n\r\n // Place properties view below remote system view.\r\n folder = layout.createFolder(PROPS_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, NAV_FOLDER_ID);\r\n folder.addView(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n\r\n // Place job log explorer view below editor area.\r\n folder = layout.createFolder(JOB_LOG_EXPLORER_FOLDER_ID, IPageLayout.BOTTOM, 0.0F, editorArea);\r\n folder.addView(JobLogExplorerView.ID);\r\n\r\n // Place command log view below editor area.\r\n folder = layout.createFolder(CMDLOG_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, JobLogExplorerView.ID);\r\n folder.addView(getCommandLogViewID());\r\n\r\n layout.addShowViewShortcut(getRemoveSystemsViewID());\r\n layout.addShowViewShortcut(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n layout.addShowViewShortcut(getCommandLogViewID());\r\n\r\n layout.addPerspectiveShortcut(ID);\r\n\r\n layout.setEditorAreaVisible(false);\r\n }", "private void setLayout() {\n\t\ttxtNickname.setId(\"txtNickname\");\n\t\ttxtPort.setId(\"txtPort\");\n\t\ttxtAdress.setId(\"txtAdress\");\n\t\tlblNickTaken.setId(\"lblNickTaken\");\n\n\t\tgrid.setPrefSize(516, 200);\n\t\tbtnLogin.setDisable(true);\n\t\ttxtNickname.setPrefSize(200, 25);\n\t\tlblNickTaken.setPrefSize(250, 10);\n\t\tlblNickTaken.setText(null);\n\t\tlblNickTaken.setTextFill(Color.RED);\n\t\tlblNick.setPrefSize(120, 50);\n\t\ttxtAdress.setText(\"localhost\");\n\t\ttxtPort.setText(\"4455\");\n\t\tlblCardDesign.setPrefSize(175, 25);\n\t\tcomboBoxCardDesign.getSelectionModel().select(0);\n\t\tbtnLogin.setGraphic(imvStart);\n\t}", "private void clearLayouts() {\n this.imageLayout.removeAllViews();\n this.answerLayout.removeAllViews();\n }", "public void createLayout() {\n\t\tpersons = createPersonGuessPanel();\t\t\n\t\tweapons = createWeaponGuessPanel();\n\t\trooms = createRoomGuessPanel();\n\t\t\n\t\tpersonCheckList = createPeoplePanel();\n\t\tweaponCheckList =createWeaponsPanel(); \n\t\troomCheckList = createRoomsPanel();\n\t\t\n\t\tJPanel completed = new JPanel();\n\t\tcompleted.setLayout(new GridLayout(3, 2));\n\t\tadd(completed, BorderLayout.CENTER);\n\t\tcompleted.add(personCheckList);\n\t\tcompleted.add(persons);\n\t\tcompleted.add(weaponCheckList);\n\t\tcompleted.add(weapons);\n\t\tcompleted.add(roomCheckList);\n\t\tcompleted.add(rooms);\n\t}", "void initLayout() {\n\t\t/* Randomize the number of rows and columns */\n\t\tNUM = Helper.randomizeNumRowsCols();\n\n\t\t/* Remove all the children of the gridContainer. It will be added again */\n\t\tpiecesGrid.removeAllViews();\n\t\t\n\t\t/* Dynamically calculate the screen positions and sizes of the individual pieces\n\t * Store the starting (x,y) of all the pieces in pieceViewLocations */\n\t\tpieceViewLocations = InitDisplay.initialize(getScreenDimensions(), getRootLayoutPadding());\n\t\t\n\t\t/* Create an array of ImageViews to store the individual piece images */\n\t\tcreatePieceViews();\n\t\t\n\t\t/* Add listeners to the ImageViews that were created above */\n\t\taddImageViewListeners();\n\t}", "public Layout() {\n }", "Board createLayout();", "public void makeLayout() {\n\t\tgl_layout.setHorizontalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(150)\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 400, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 98, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 106, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t)\n\t\t);\n\t\tgl_layout.setVerticalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\t\t\t\t\t\t\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t);\n\t\tthis.setLayout(gl_layout);\t\t\n\t}", "private void setupAllSpecialLayoutViews(){\n allSpecialLayoutViews = new ArrayList<>();\n allSpecialLayoutViews.add(radianSpecialLayout);\n allSpecialLayoutViews.add(sineSpecialLayout);\n allSpecialLayoutViews.add(cosineSpecialLayout);\n allSpecialLayoutViews.add(tangentSpecialLayout);\n allSpecialLayoutViews.add(radianDivBar);\n allSpecialLayoutViews.add(radianTextDenominator);\n allSpecialLayoutViews.add(sineDivBar);\n allSpecialLayoutViews.add(sineTextDenominator);\n allSpecialLayoutViews.add(cosineDivBar);\n allSpecialLayoutViews.add(cosineTextDenominator);\n allSpecialLayoutViews.add(tangentDivBar);\n allSpecialLayoutViews.add(tangentTextDenominator);\n }", "private void setLayout() {\n\tHorizontalLayout main = new HorizontalLayout();\n\tmain.setMargin(true);\n\tmain.setSpacing(true);\n\n\t// vertically divide the right area\n\tVerticalLayout left = new VerticalLayout();\n\tleft.setSpacing(true);\n\tmain.addComponent(left);\n\n\tleft.addComponent(openProdManager);\n\topenProdManager.addListener(new Button.ClickListener() {\n\t public void buttonClick(ClickEvent event) {\n\t\tCustomerWindow productManagerWin = new CustomerWindow(CollectorManagerApplication.this);\n\t\tproductManagerWin.addListener(new Window.CloseListener() {\n\t\t public void windowClose(CloseEvent e) {\n\t\t\topenProdManager.setEnabled(true);\n\t\t }\n\t\t});\n\n\t\tCollectorManagerApplication.this.getMainWindow().addWindow(productManagerWin);\n\t\topenProdManager.setEnabled(false);\n\t }\n\t});\n\n\t\n\tsetMainWindow(new Window(\"Sistema de Cobranzas\", main));\n\n }", "private void buildLayout() {\n HorizontalLayout actions = new HorizontalLayout(filter, newPart);\n actions.setWidth(\"100%\"); //what portion of screen to take\n filter.setWidth(\"100%\"); //what portion filter textbox takes\n actions.setExpandRatio(filter, 1); //expand (leaves no gaps)\n\n VerticalLayout left = new VerticalLayout(actions, partList);\n left.setSizeFull();\n partList.setSizeFull();\n left.setExpandRatio(partList, 1);\n\n HorizontalLayout mainLayout = new HorizontalLayout(left, partForm);\n mainLayout.setSizeFull();\n mainLayout.setExpandRatio(left, 1);\n\n // Split and allow resizing\n setContent(mainLayout);\n }", "public abstract void doLayout();", "private synchronized void clearLayout() {\n\t\tmLeftViewIndex = -1;\n\t\tmRightViewIndex = 0;\n\t\tmDisplayOffset = 0;\n\t\tmCurrentX = mOffsetLeft;\n\t\tmNextX = 0;\n\t\tmMaxX = Integer.MAX_VALUE;\n\t}", "public testLayout() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void layoutGame() {\n\t\tthis.doLayoutGame();\r\n\t\tthis.doLayoutGame();\r\n\t}", "protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}", "private void setLayout() {\n if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n recyclerView.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL));\n\n } else if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext()));\n }\n }", "private void initLayout(){\r\n\t\t\r\n\t\tlabelSalvar.setLayoutX(((pane.getWidth() - labelSalvar.getWidth()) / 2) - 332);\r\n\t\tlabelSalvar.setLayoutY(60);\r\n\t\ttxSalvar.setLayoutX(((pane.getWidth() - txSalvar.getWidth()) / 2) - 100);\r\n\t\ttxSalvar.setPrefWidth(500);\r\n\t\ttxSalvar.setLayoutY(60);\r\n\t\t\r\n\t\tlabelArquivoRTF.setLayoutX(((pane.getWidth() - labelArquivoRTF.getWidth()) / 2) - 325);\r\n\t\tlabelArquivoRTF.setLayoutY(100);\r\n\t\ttxArquivoRTF.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 100);\r\n\t\ttxArquivoRTF.setPrefWidth(500);\r\n\t\ttxArquivoRTF.setLayoutY(100);\r\n\t\t\r\n\t\tlabelLinhaInicio.setLayoutX(((pane.getWidth() - labelLinhaInicio.getWidth()) / 2) - 145);\r\n\t\tlabelLinhaInicio.setLayoutY(140);\r\n\t\ttxLinhaInicio.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 10);\r\n\t\ttxLinhaInicio.setPrefWidth(50);\r\n\t\ttxLinhaInicio.setLayoutY(140);\r\n\t\t\r\n\t\tlabelLinhaFim.setLayoutX(((pane.getWidth() - labelLinhaFim.getWidth()) / 2) + 220);\r\n\t\tlabelLinhaFim.setLayoutY(140);\r\n\t\ttxLinhaFinal.setLayoutX(((pane.getWidth() - txLinhaFinal.getWidth()) / 2) + 350);\r\n\t\ttxLinhaFinal.setPrefWidth(50);\r\n\t\ttxLinhaFinal.setLayoutY(140);\r\n\t\t\r\n\t\tbtnExecutar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 80);\r\n\t\tbtnExecutar.setLayoutY(210);\r\n\t\t\r\n\t\tprogressBar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 260);\r\n\t\tprogressBar.setLayoutY(280);\r\n\t\t\r\n\t\tlabelBy.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) - 350);\r\n\t\tlabelBy.setScaleY(0.5);\r\n\t\tlabelBy.setScaleX(0.5);\r\n\t\tlabelBy.setLayoutY(280);\r\n\t\t\r\n\t}", "private void setUpLayout() {\n\n this.setLayout(new GridLayout(7, 1, 40, 37));\n this.setBackground(new Color(72, 0, 0));\n this.setBorder(BorderFactory.createEmptyBorder(8, 150, 8, 150));\n }", "private void initial() {\n\t\tsetTitleTxt(getString(R.string.choose_game));\n\t\tLinearLayout contentView = (LinearLayout) findViewById(R.id.contentView);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\n\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n\t\tview = View.inflate(this, R.layout.user_choose_game, null);\n\t\tcontentView.addView(view, params);\n\t\tgameGrid = (GridView) view.findViewById(R.id.game_list);\n\t\tgameContent = (LinearLayout) view.findViewById(R.id.game_list_info);\n\t\tview.setVisibility(View.GONE);\n\t}", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tmainLayout.setWidth(\"100.0%\");\r\n\t\tmainLayout.setHeight(\"100.0%\");\r\n\t\t\r\n\t\t// label\r\n\t\tlabel = new Label();\r\n\t\tlabel.setImmediate(false);\r\n\t\tlabel.setWidth(\"-1px\");\r\n\t\tlabel.setHeight(\"-1px\");\r\n\t\tlabel.setValue(\"Stellvertreter ernennen\");\r\n\t\tlabel.setStyleName(Runo.LABEL_H1);\r\n\t\tmainLayout.addComponent(label, \"top:25.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// benutzer\r\n\t\tbenutzer = new ListSelect();\r\n\t\tbenutzer.setImmediate(false);\r\n\t\tbenutzer.setWidth(\"46.0%\");\r\n\t\tbenutzer.setHeight(\"70.0%\");\r\n\t\tmainLayout.addComponent(benutzer, \"top:35.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// ok\r\n\t\tok = new Button();\r\n\t\tok.setCaption(\"Stellvertreter ernennen\");\r\n\t\tok.setImmediate(false);\r\n\t\tok.setWidth(\"25%\");\r\n\t\tok.setHeight(\"-1px\");\r\n\t\tok.addListener(this);\r\n\t\tmainLayout.addComponent(ok, \"top:83.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// delete\r\n\t\tdelete = new Button();\r\n\t\tdelete.setCaption(\"Stellvertreter löschen\");\r\n\t\tdelete.setImmediate(false);\r\n\t\tdelete.setWidth(\"25%\");\r\n\t\tdelete.setHeight(\"-1px\");\r\n\t\tdelete.addListener(this);\r\n\t\tmainLayout.addComponent(delete, \"top:88.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// logout\r\n\t\tlogout = new Button();\r\n\t\tlogout.setCaption(\"logout\");\r\n\t\tlogout.setImmediate(false);\r\n\t\tlogout.setWidth(\"-1px\");\r\n\t\tlogout.setHeight(\"-1px\");\r\n\t\tlogout.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tlogout.addListener(this);\r\n\t\tmainLayout.addComponent(logout, \"top:97.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// back\r\n\t\tback = new Button();\r\n\t\tback.setCaption(\"Startseite\");\r\n\t\tback.setImmediate(true);\r\n\t\tback.setWidth(\"-1px\");\r\n\t\tback.setHeight(\"-1px\");\r\n\t\tback.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tback.addListener(this);\r\n\t\tmainLayout.addComponent(back, \"top:94.0%;left:35.0%;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "public void loadLayout() {\n\t\ttry {\n\t\t\tsetLayout(FileManager.loadLayout(fc3.getSelectedFile().toString()));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Failed To Load Layout\");\n\t\t}\n\t}", "private void initBaseLayout()\n {\n add(viewPaneWrapper, BorderLayout.CENTER);\n \n currentLayoutView = VIEW_PANE;\n currentSearchView = SEARCH_PANE_VIEW;\n showMainView(VIEW_PANE);\n showSearchView(currentSearchView);\n }", "private void setLayout() {\n int orientation = getResources().getConfiguration().orientation;\n // if the orientation is Portrait\n if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n if (!webViewFragment.isAdded()) {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 0f));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 3f));\n\n }\n }\n else { // if the orientation is Landscape\n if (!webViewFragment.isAdded()) {\n\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n // Make the LandmarkLayout take 1/3 of the layout's width\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n // Make the WebPageLayout take 2/3's of the layout's width\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n }\n }", "private void setupLayout()\n {\n Container contentPane;\n\n setSize(300, 300); \n\n contentPane = getContentPane();\n\n // Layout this PINPadWindow\n }", "private void $$$setupUI$$$() {\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n }", "public LayoutCampo() {\n /* rimanda al costruttore della superclasse */\n super();\n\n try { // prova ad eseguire il codice\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "private void castLayoutElements() {\n linlaHeaderProgress = (LinearLayout) view.findViewById(R.id.linlaHeaderProgress);\n listPrinters = (RecyclerView) view.findViewById(R.id.listPrinters);\n linlaEmpty = (LinearLayout) view.findViewById(R.id.linlaEmpty);\n \n /* CONFIGURE THE RECYCLERVIEW */\n listPrinters.setHasFixedSize(true);\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n listPrinters.setLayoutManager(llm);\n }", "private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}", "public void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Pepoview.class.getResource(\"MainWindow.fxml\"));\n rootLayout = (SplitPane) loader.load(); \n \n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }", "@Override\n protected Layout constructShellLayout() {\n GridLayout mainLayout = new GridLayout(1, false);\n\n return mainLayout;\n }", "public void fixLayout() {\n splitPane.setDividerLocation(getWidth() / 2);\n }", "@Override\n\tpublic String getLayout() {\n\t\treturn \"main\";\n\t}", "public void setLayout() {\n\t\tpersonenListe.getItems().addAll(deck.getPersonenOrdered());\n\t\tpersonenListe.setValue(\"Täter\");\n\t\twaffenListe.getItems().addAll(deck.getWaffenOrdered());\n\t\twaffenListe.setValue(\"Waffe\");\n\t\t// zimmerListe.getItems().addAll(deck.getZimmerOrdered());\n\t\tzimmerListe.setValue(\"Raum\");\n\n\t\tanklage.setMinSize(80, 120);\n\t\tanklage.setMaxSize(80, 120);\n\t\tanklage.setTextFill(Color.BLACK);\n\t\tanklage.setStyle(\"-fx-background-color: #787878;\");\n\n\t\twurfel.setMinSize(80, 120);\n\t\twurfel.setMaxSize(80, 120);\n\t\twurfel.setTextFill(Color.BLACK);\n\t\twurfel.setStyle(\"-fx-background-color: #787878;\");\n\n\t\tgang.setMinSize(80, 120);\n\t\tgang.setMaxSize(80, 120);\n\t\tgang.setTextFill(Color.BLACK);\n\t\tgang.setStyle(\"-fx-background-color: #787878;\");\n\n\t\ttop = new HBox();\n\t\ttop.setSpacing(1);\n\t\ttop.setAlignment(Pos.CENTER);\n\n\t\tbuttons = new HBox();\n\t\tbuttons.setSpacing(20);\n\t\tbuttons.setAlignment(Pos.CENTER);\n\t\tbuttons.getChildren().addAll(anklage, wurfel, gang);\n\n\t\tbottom = new HBox();\n\t\tbottom.setSpacing(150);\n\t\tbottom.setAlignment(Pos.CENTER);\n\t\tbottom.getChildren().addAll(close);\n\n\t\tfenster = new BorderPane();\n\t\tfenster.setStyle(\"-fx-background-image: url('media/ZugFensterResized.png');\");\n\t\tfenster.setTop(top);\n\t\tfenster.setCenter(buttons);\n\t\tfenster.setBottom(bottom);\n\t}", "public CalcLayout() {\n\t\tthis(0);\n\t}", "@Override\n public void onGlobalLayout() {\n\n if (!isFirstLayout) {\n isFirstLayout = true;\n ListAdapter adapter=new MeAdapter(getActivity(),gv.getHeight()/2,resIds,names);\n gv.setAdapter(adapter);\n\n }\n }", "private HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"-1px\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100%\");\r\n\t\tsetHeight(\"100%\");\r\n\t\t\r\n\t\t// panelImg\r\n\t\tpanelImg = buildPanelImg();\r\n\t\tmainLayout.addComponent(panelImg);\r\n\t\t\r\n\t\t// gridInfo\r\n\t\tgridInfo = buildGridInfo();\r\n\t\tmainLayout.addComponent(gridInfo);\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "protected void clearRootLayout() {\n this.rootLayout.setVisible(false);\n this.rootLayout.removeAllComponents();\n removeStyleName(\"done\");\n }", "private static void initMainLayout(String mode) {\n\t\tCardLayout cl = ((CardLayout) _mapCards.getLayout());\n\n\t\t// update map\n\t\tif (mode == \"FP\") {\n\t\t\t_mapCards.add(ui, \"REAL_MAP\");\n\t\t\tcl.show(_mapCards, \"REAL_MAP\");\n\t\t} else {\n\t\t\t_mapCards.add(ui, \"EXPLORATION\");\n\t\t\tcl.show(_mapCards, \"EXPLORATION\");\n\t\t}\n\n\t}", "private void doLayout()\n \t{\n \t\tModel model = doc.getModel();\n \t\tExtendedLayoutModel sbase = (ExtendedLayoutModel)model.getExtension(LayoutConstants.namespaceURI);\n \t\tif (sbase != null)\n \t\t{\n \t\t\tfor (Layout l : sbase.getListOfLayouts())\n \t\t\t{\n \t\t\t\t// TODO: list of compartment glyphs, text glyphs, etc...\n \t\t\t\tfor (SpeciesGlyph g : l.getListOfSpeciesGlyphs())\n \t\t\t\t{\n \t\t\t\t\tString sid = g.getSpecies();\n \t\t\t\t\tPeerSpecies sbr = getSpeciesPeer(sid);\n \t\t\t\t\tif (sbr != null) {\n \t\t\t\t\t\tsbr.setSpeciesGlyph(g);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "public void initRootLayout() {\r\n try {\r\n // Load root layout from fxml file.\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(FilmApp.class.getResource(\"view/RootLayout.fxml\"));\r\n rootLayout = (BorderPane) loader.load();\r\n\r\n // Show the scene containing the root layout.\r\n Scene scene = new Scene(rootLayout);\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\r\n\tprotected int layoutId() {\n\t\treturn R.layout.mine_new_huankuan;\r\n\t}", "private void setLayout() {\n if (!mImageFragment.isAdded()) {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(\n MATCH_PARENT, MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n } else {\n if (getResources().getConfiguration().orientation\n == Configuration.ORIENTATION_LANDSCAPE){\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n\n else {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT,\n MATCH_PARENT));\n }\n }\n }", "public mainLayoutController() {\n\t }", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setStyleName(\"contenido\");\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(true);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// hl_cabecera\n\t\thl_cabecera = buildHl_cabecera();\n\t\tmainLayout.addComponent(hl_cabecera);\n\t\t\n\t\t// horizontalLayout_1\n\t\thorizontalLayout_1 = buildHorizontalLayout_1();\n\t\tmainLayout.addComponent(horizontalLayout_1);\n\t\tmainLayout.setComponentAlignment(horizontalLayout_1, new Alignment(20));\n\t\t\n\t\t// l_preferenciasUsuario\n\t\tl_preferenciasUsuario = new Label();\n\t\tl_preferenciasUsuario.setStyleName(\"mih2\");\n\t\tl_preferenciasUsuario.setImmediate(false);\n\t\tl_preferenciasUsuario.setWidth(\"100.0%\");\n\t\tl_preferenciasUsuario.setHeight(\"-1px\");\n\t\tl_preferenciasUsuario.setValue(\"Preferencias de Usuario\");\n\t\tmainLayout.addComponent(l_preferenciasUsuario);\n\t\t\n\t\t// hl_gridContent\n\t\thl_gridContent = new HorizontalLayout();\n\t\thl_gridContent.setImmediate(false);\n\t\thl_gridContent.setWidth(\"100.0%\");\n\t\thl_gridContent.setHeight(\"-1px\");\n\t\thl_gridContent.setMargin(false);\n\t\tmainLayout.addComponent(hl_gridContent);\n\t\t\n\t\t// b_enviar\n\t\tb_enviar = new Button();\n\t\tb_enviar.setCaption(\"Actualizar\");\n\t\tb_enviar.setImmediate(true);\n\t\tb_enviar.setWidth(\"-1px\");\n\t\tb_enviar.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(b_enviar);\n\t\tmainLayout.setComponentAlignment(b_enviar, new Alignment(48));\n\t\t\n\t\treturn mainLayout;\n\t}", "public void mostrarRootLayout() {\n try {\n // Load root layout from fxml file.\n // Carrega o layout raíz do arquivo FXML \"RootLayout\"\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(LivrariaPrincipal.class.getResource(\"view/RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n\n // Show the scene containing the root layout.\n // Mostra a cena que contém o layour raíz\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n\n // Dá acesso do controlador para o aplicativo principal\n RootLayoutController controller = loader.getController();\n controller.setMainApp(this);\n\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void setLayout(Layout layout) {\n checkWidget();\n return;\n }", "private VHorizontalLayout initLockInformationLayout() {\r\n VHorizontalLayout layout = new VHorizontalLayout();\r\n if(report.isLocked()) {\r\n Utils.removeAllThemes(layout);\r\n layout.getThemeList().add(ThemeAttribute.LOCKED);\r\n layout.add(getTranslation(\"reportView.reportLocked.label\", report.getLockOwner().getName() + \" \" +report.getLockOwner().getLastname()));\r\n }\r\n return layout;\r\n }", "private void emptyLayout() {\n mTvEmpty.setText(R.string.text_receive_list_empty);\n mIvEmpty.setImageResource(R.drawable.ic_money_payment);\n mIvEmpty.setContentDescription(getString(R.string.descr_hand_money_empty));\n mListView.setEmptyView(mEmptyView);\n }", "private void loadLayout(boolean forceTwoPaneMode) {\n\t\t// Load fragment container frame layout\n setContentView(R.layout.daily_selfie_main);\n\t}", "private void setupLayout()\n\t{\n\t\tbaseLayout.putConstraint(SpringLayout.WEST,firstButton,107,SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstButton, -32, SpringLayout.SOUTH, this);\n\t\tbaseLayout.putConstraint(SpringLayout.WEST, firstField, 37, SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstField, -24, SpringLayout.SOUTH, this);\n\t}", "private void layoutControls() {\n\t\t// cleanup all elements of lane (old regions for task)\n\t\tgetChildren().clear();\n\t\tgetRowConstraints().clear();\n\t\tgetColumnConstraints().clear();\n\t\trow = 1;\n\n\t\tallTasks = createRegionsForTasks(model.getRepo().readByStatus(status), color);\n\n\t\t// Nur eine Spalte für diese Lane.\n\t\tConstraintHelper.setColumnPercentConstraint(this, 100);\n\t\t\n\t\t// Für das Label.\n\t\tadd(label, 0, 0);\n\t\tConstraintHelper.setRowPercentConstraint(this, 5);\n\t\tGridPane.setMargin(label, new Insets(0, 0, 0, 3));\n\t\t\n\t\t// Padding für die Lane.\n\t\tsetPadding(new Insets(5));\n\n\t\tallTasks.stream()\n\t\t\t.forEach(task -> {\n\t\t\t\tConstraintHelper.setRowPercentConstraint(this, 95.0 / MAX_TASKS_PER_LANE);\n\t\t\t\tadd(task, 0, row++);\n\t\t\t\tGridPane.setMargin(task, new Insets(3));\n\t\t\t});\n\t}", "public void initRootLayout() {\n try {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(MainApplication.class.getResource(\"view/RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n \t}\n }", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pane = new JScrollPane(contentPanel);\n \n panelLayout = new GroupLayout(this);\n\t\tthis.setLayout(panelLayout);\n\t\tthis.setBackground(DAOConstants.BG_COLOUR);\n\n\t\tpanelLayout.setAutoCreateContainerGaps(true);\n\n panelLayout.setHorizontalGroup(\n\t\t\tpanelLayout.createParallelGroup()\n\t\t\t.addComponent(pane, 10, 520, 540)\n );\n\n panelLayout.setVerticalGroup(\n\t\t\tpanelLayout.createSequentialGroup()\n .addComponent(pane, 10, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)\n );\n }", "private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}", "private void initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }", "@Override\r\n\tprotected void setLayout() {\n\t\tsetContentView(R.layout.edit_trace_info_activity);\r\n\t}", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\t// Setzt die Hintergrundfarbe auf Grün\n\t\tmainLayout.addStyleName(\"backgroundErfassung\");\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\n\t\treturn mainLayout;\n\t}", "public void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(MainApp.class.getResource(\"RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n\n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void redoLayout() {\n // re-do the layout of the section's composite\n Composite comp = getComposite();\n _section.redraw();\n comp.layout();\n\n // re-do the layout of the composite containing all the sections\n Composite parent = comp;\n while (parent != null && !(parent instanceof Form)) {\n if (parent instanceof Shell) {\n break;\n }\n parent = parent.getParent();\n }\n if (parent != null && parent instanceof Form) {\n ((Form) parent).layout();\n }\n }", "public static Layout createFillLayout() {\n\t\tGeomUtil.LOG.warning(\n\t\t\t\t\"LayoutFactory.createFillLayout() method is deprecated. Use LayoutFactory.createOverlayLayout() method instead.\"); // NOI18N\n\t\treturn createOverlayLayout();\n\t}", "private void initLayouts() {\n mRelativeLayout1WA = findViewById(R.id.history_layout_one_week_ago);\n mRelativeLayout6DA = findViewById(R.id.history_layout_six_days_ago);\n mRelativeLayout5DA = findViewById(R.id.history_layout_five_days_ago);\n mRelativeLayout4DA = findViewById(R.id.history_layout_four_days_ago);\n mRelativeLayout3DA = findViewById(R.id.history_layout_three_days_ago);\n mRelativeLayout2DA = findViewById(R.id.history_layout_two_days_ago);\n mRelativeLayoutY = findViewById(R.id.history_layout_yesterday);\n\n layoutsList.add(mRelativeLayoutY);\n layoutsList.add(mRelativeLayout2DA);\n layoutsList.add(mRelativeLayout3DA);\n layoutsList.add(mRelativeLayout4DA);\n layoutsList.add(mRelativeLayout5DA);\n layoutsList.add(mRelativeLayout6DA);\n layoutsList.add(mRelativeLayout1WA);\n\n }", "public void mo9839a() {\n onLayout(false, 0, 0, 0, 0);\n }", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "@Override\n\tpublic int getLayoutId() {\n\t\treturn 0;\n\t}", "private void setupLayout() {\r\n\t\tgetContentPane().add(panel);\r\n\t}", "private JPanel initResPanel() {\n // Initiate the layout\n JPanel namePanel = new JPanel();\n GroupLayout NamePanelLayout = new GroupLayout(namePanel);\n namePanel.setLayout(NamePanelLayout);\n namePanel.setBackground(new Color(107, 0, 21));\n\n // Initiate the needed components\n detail = model.getRestaurantName();\n JLabel resName = new JLabel(detail);\n resName.setForeground(Color.white);\n resName.setFont(new Font(\"Tahoma\", 1, 12));\n\n detail = model.getAddress();\n JLabel add = new JLabel(detail);\n add.setForeground(Color.white);\n\n detail = model.getPhone();\n JLabel phone = new JLabel(detail);\n phone.setForeground(Color.white);\n\n User current = controller.getEZmodel().getCurrent();\n detail = current.getName() + \" (\" + current.getUsername() + \")\";\n JLabel currentUser = new JLabel(detail);\n currentUser.setForeground(Color.white);\n currentUser.setFont(new Font(\"Tahoma\", 1, 12));\n\n Calendar c = new GregorianCalendar();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n String m = (minute > 9) ? minute + \"\" : \"0\" + minute;\n int second = c.get(Calendar.SECOND);\n detail = rb.getString(\"Edited at \") + hour + \":\" + m + \":\"\n + second;\n JLabel createdTime = new JLabel(detail);\n createdTime.setForeground(Color.white);\n\n int date = c.get(Calendar.DAY_OF_MONTH);\n int year = c.get(Calendar.YEAR);\n String[] months = {rb.getString(\"Jan\"), rb.getString(\"Feb\"),\n rb.getString(\"Mar\"), rb.getString(\"Apr\"), rb.getString(\"May\"),\n rb.getString(\"Jun\"), rb.getString(\"Jul\"), rb.getString(\"Aug\"),\n rb.getString(\"Sep\"), rb.getString(\"Oct\"), rb.getString(\"Nov\"),\n rb.getString(\"Dec\")};\n String month = months[c.get(Calendar.MONTH)];\n detail = date + \" \" + month + \", \" + year;\n JLabel createdDate = new JLabel(detail);\n createdDate.setForeground(Color.white);\n\n // Set the layout\n NamePanelLayout.setHorizontalGroup(\n NamePanelLayout.createParallelGroup(\n GroupLayout.Alignment.LEADING).\n addGroup(NamePanelLayout.createSequentialGroup().\n addContainerGap().addGroup(\n NamePanelLayout.createParallelGroup(\n GroupLayout.Alignment.LEADING).\n addGroup(NamePanelLayout.createSequentialGroup().\n addComponent(resName).addPreferredGap(\n LayoutStyle.ComponentPlacement.RELATED, 124,\n Short.MAX_VALUE).\n addComponent(currentUser)).addGroup(\n NamePanelLayout.createSequentialGroup().addComponent(add).\n addPreferredGap(LayoutStyle.ComponentPlacement.RELATED,\n 223, Short.MAX_VALUE).\n addComponent(createdTime)).addGroup(\n NamePanelLayout.createSequentialGroup().addComponent(phone).\n addPreferredGap(\n LayoutStyle.ComponentPlacement.RELATED, 251,\n Short.MAX_VALUE).addComponent(createdDate))).\n addContainerGap()));\n NamePanelLayout.setVerticalGroup(\n NamePanelLayout.createParallelGroup(\n GroupLayout.Alignment.LEADING).\n addGroup(NamePanelLayout.createSequentialGroup().\n addContainerGap().addGroup(\n NamePanelLayout.createParallelGroup(\n GroupLayout.Alignment.BASELINE).\n addComponent(resName).addComponent(currentUser)).\n addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).\n addGroup(NamePanelLayout.createParallelGroup(\n GroupLayout.Alignment.BASELINE).\n addComponent(add).addComponent(createdTime)).\n addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).\n addGroup(NamePanelLayout.createParallelGroup(\n GroupLayout.Alignment.BASELINE).\n addComponent(phone).addComponent(createdDate)).\n addContainerGap(GroupLayout.DEFAULT_SIZE,\n Short.MAX_VALUE)));\n\n namePanel.setSize(400, 150);\n return namePanel;\n }", "private void setUpLayout() {\n myLinearLayout=(LinearLayout)rootView.findViewById(R.id.container_wartaMingguan);\n\n // Add LayoutParams\n params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n params.setMargins(0, 10, 0, 0);\n\n // Param untuk deskripsi\n paramsDeskripsi = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n paramsDeskripsi.setMargins(0, 0, 0, 0);\n\n tableParams = new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT);\n rowTableParams = new TableLayout.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT);\n\n // Untuk tag \"warta\"\n LinearLayout rowLayout = new LinearLayout(getActivity());\n rowLayout.setOrientation(LinearLayout.HORIZONTAL);\n\n // Membuat linear layout vertical untuk menampung kata-kata\n LinearLayout colLayout = new LinearLayout(getActivity());\n colLayout.setOrientation(LinearLayout.VERTICAL);\n colLayout.setPadding(0, 5, 0, 0);\n }", "@Override\r\n\tprotected void initializeLayout() {\r\n\t\tlayout = GraphLayoutFactory.createLayout(layoutType, graph, 250, 250, properties, AttributeMapSet.PROCEDURES);\r\n\t}", "private void initLayoutReferences() {\n // Initializing views\n initViews();\n // Initializing mapView element\n initMap();\n }", "protected void directUpdateLayout() {\n updateLayout();\n }", "private void $$$setupUI$$$() {\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n }", "protected void refreshRootLayout() {\n this.rootLayout.setVisible(true);\n addStyleName(\"done\");\n rootLayout.addComponent(contentPreview);\n rootLayout.addComponent(contentDetail);\n }", "@AutoGenerated\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"-1px\");\n\t\tmainLayout.setHeight(\"29px\");\n\t\tmainLayout.setMargin(false);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"-1px\");\n\t\tsetHeight(\"29px\");\n\t\t\n\t\t// pnToolbar\n\t\tpnToolbar = buildPnToolbar();\n\t\tmainLayout.addComponent(pnToolbar);\n\t\t\n\t\treturn mainLayout;\n\t}", "private void initialize() {\n layout = new HorizontalLayout();\n\n workspaceTabs = new TabSheet();\n\n WorkspacePanel panel = new WorkspacePanel(\"Workspace 1\");\n workspaceTabs.addTab(panel).setCaption(\"Workspace 1\");\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(dropHandler);\n\n layout.addComponent(workspaceTabs);\n\n setContent(layout);\n }", "public void EditorContainer() {\n\t setLayout(null);\n\t}", "protected void onLoadLayout(View view) {\n }", "private void initLayoutComponents()\n {\n viewPaneWrapper = new JPanel(new CardLayout());\n viewPane = new JTabbedPane();\n crawlPane = new JPanel(new BorderLayout());\n transitionPane = new JPanel();\n searchPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n resultsPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n }", "static public View inflateLayout(int Presid,View PlayoutView) //~1410I~\r\n { //~1410I~\r\n if (Dump.Y) Dump.println(\"AView:inflateLayout2 res=\"+Integer.toHexString(Presid)+\",view=\"+PlayoutView.toString());//~@@@@R~\r\n \tAG.setCurrentView(Presid,PlayoutView); //~1410I~\r\n return PlayoutView; //~1410I~\r\n }", "public GroupLayout miseEnPage(){\n\t\tGroupLayout gl_contentPanel = new GroupLayout(contentPanel);\n\t\tgl_contentPanel.setHorizontalGroup(\n\t\t\t\tgl_contentPanel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap(13, Short.MAX_VALUE)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(lblPort)\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.addComponent(textField_Port, GroupLayout.PREFERRED_SIZE, 53, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(lblNombreDeJoueurs)\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.addComponent(textField_nbJoueur, GroupLayout.PREFERRED_SIZE, 55, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t\t\t\t.addComponent(chckbxPartieLocale))\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblNomPartie)\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(textField_NomPartie))\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblMotDePasse)\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(textField_Mdp, GroupLayout.PREFERRED_SIZE, 106, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(createButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\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.addComponent(cancelButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t);\n\t\tgl_contentPanel.setVerticalGroup(\n\t\t\t\tgl_contentPanel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t.addGap(42)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblNomPartie)\n\t\t\t\t\t\t\t\t.addComponent(textField_NomPartie, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblMotDePasse)\n\t\t\t\t\t\t\t\t.addComponent(textField_Mdp, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblPort)\n\t\t\t\t\t\t\t\t.addComponent(textField_Port, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblNombreDeJoueurs)\n\t\t\t\t\t\t\t\t.addComponent(textField_nbJoueur, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(chckbxPartieLocale))\n\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(cancelButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(createButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(100, Short.MAX_VALUE))\n\t\t\t\t);\n\t\treturn gl_contentPanel;\n\t}", "@Override\n\tpublic int bindLayout() {\n\t\treturn R.layout.activity_init;\n\t}", "private void emptyLayout() {\n int maxIndex = getNumPeers();\n for (int i = 0; i < maxIndex; i++) {\n // Iterate over the remote Peers only (first Peer is self Peer)\n Utils.removeViewFromParent(getVideoView(getPeerId(i + 1)));\n }\n }", "public Layout detachLayout() {\n\t\tvar l = layout;\n\t\tlayout = null;\n\t\treturn l;\n\t}" ]
[ "0.6797287", "0.6620466", "0.6602709", "0.6526228", "0.64804584", "0.6455948", "0.6405561", "0.63829213", "0.62947094", "0.6257705", "0.6233774", "0.6227172", "0.6218573", "0.6204195", "0.619957", "0.6198499", "0.6196838", "0.619145", "0.6190142", "0.6189516", "0.61849326", "0.61846584", "0.61672384", "0.6142838", "0.613878", "0.6126759", "0.61263245", "0.60805625", "0.6079632", "0.60657483", "0.6043946", "0.6016726", "0.6003922", "0.59949875", "0.5972185", "0.5964331", "0.5961942", "0.59591097", "0.5959079", "0.5941833", "0.5915196", "0.59102106", "0.59090924", "0.5906937", "0.5904845", "0.58892167", "0.5883327", "0.5883038", "0.587395", "0.5873114", "0.5869775", "0.585052", "0.5850341", "0.5819639", "0.58085924", "0.5796755", "0.5791502", "0.5778365", "0.5771484", "0.5767402", "0.5765664", "0.57563573", "0.5741585", "0.57359153", "0.5726774", "0.5721408", "0.5719822", "0.5716228", "0.5714341", "0.5708069", "0.5703028", "0.5698986", "0.56901455", "0.5688816", "0.56883675", "0.56738883", "0.56614095", "0.5654108", "0.5649285", "0.5640436", "0.56354207", "0.5635178", "0.56339777", "0.562915", "0.5623213", "0.5618533", "0.5615813", "0.5604038", "0.55991894", "0.5592827", "0.55916303", "0.55915684", "0.5586231", "0.55826706", "0.55812615", "0.5581051", "0.55802274", "0.5578711", "0.55779696", "0.55773", "0.5574615" ]
0.0
-1
Obtiene resultado de codigo de barra
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data); if (result != null) { if (result.getContents() == null) { Log.d("MainActivity", "Cancelled scan"); makeToast(this, "Cancelado"); } else { Log.d("MainActivity", "Scanned"); makeToast(this, "Contactando con Salesforce, ISBN: " + result.getContents()); scanResult = result.getContents(); if (scanResult != null) { try { getProducto(scanResult); } catch (Exception e) { Log.e("RequestError", e.toString()); makeToast(this, "Ha ocurrido un error, intente nuevamente..."); } finally { sfResult = null; } } } } else { Log.d("MainActivity", "Weird"); // This is important, otherwise the result will not be passed to the fragment super.onActivityResult(requestCode, resultCode, data); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CodeBook getCodificacion(){\n CodeBook res=new CodeBook();\n \n //Se obtiene los valores ni\n ArrayList<Integer> n=obtenerNi(obtenerYi());\n \n //Se asigna a cada carácter un código\n ArrayList<String> candidatos;\n int i=0;\n int cont_alfa=0;\n int nd=0;\n \n // Se comprueba para cada ni si es mayor que 0, en cuyo caso, se generan\n // los posibles códigos de longitud i que quedan libres y se asignan.\n while (i<n.size()){\n nd=nd*base;\n int cont=n.get(i);\n if (cont>0){\n candidatos=generaCod(i+1,nd);\n int cod=0;\n while (cont>0){\n res.add(alfabeto.getN(cont_alfa), candidatos.get(cod));\n nd++;\n cont_alfa++;\n cod++;\n cont--;\n }\n }\n i++;\n } \n return res;\n }", "String getCodiceFiscale();", "public abstract java.lang.String getCod_tecnico();", "byte[] getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "public String MarcaCodigo(String nombre) {\n ResultSet rs = null;\n marca chf = new marca();\n Statement st;\n try {\n con = conexion.establecerConexionSQL();\n st = con.createStatement();\n String strSql = \"SELECT CODIGO_MAR FROM MARCA WHERE NOMBRE_MAR = '\" + nombre + \"'\";\n rs = st.executeQuery(strSql);\n while (rs.next()) {\n \n chf.setCodigo(rs.getString(\"CODIGO_MAR\"));\n \n \n }\n rs.close();\n st.close();\n con.close();\n \n } catch (SQLException ex) {\n System.out.println(\"Error: \" + ex);\n }\n return chf.getCodigo();\n }", "public java.lang.String getCodigo_agencia();", "Code getCode();", "public static ResultSet mostrar(int cod) throws SQLException {\n int nFilas = 0;\r\n String lineaSQL = \"Select * from pago WHERE codigo LIKE '%\"+ cod +\"%';\" ;\r\n ResultSet resultado = Conexion.getInstance().execute_Select(lineaSQL);\r\n \r\n return resultado;\r\n \r\n }", "public int obtenerDatos() {\n codigo =Integer.parseInt(modelo.getValueAt(fila,0).toString());\n return codigo;\n }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public Conserto buscarCodigo(int codigo) throws SQLException{\r\n Conserto conserto = null;\r\n conecta = FabricaConexao.conexaoBanco();\r\n sql = \"select * from conserto join carro on carchassi = concarchassi join modelo on oficodigo = conoficodigo where concodigo = ? \";\r\n pstm = conecta.prepareStatement(sql);\r\n pstm.setInt(1, codigo);\r\n rs = pstm.executeQuery();\r\n \r\n if(rs.next()){\r\n conserto = new Conserto();\r\n conserto.setCodigo(rs.getInt(\"concodigo\"));\r\n conserto.setDataEntrada(rs.getDate(\"condataentrada\"));\r\n conserto.setDataSaida(rs.getDate(\"condatasaida\"));\r\n \r\n //instanciando o carro\r\n Carro carro = new Carro();\r\n carro.setChassi(rs.getString(\"carchassi\"));\r\n carro.setPlaca(rs.getString(\"carplaca\"));\r\n carro.setAno(rs.getInt(\"carano\"));\r\n carro.setCor(rs.getString(\"carcor\"));\r\n carro.setStatus(rs.getInt(\"carstatus\"));\r\n conserto.setCarro(carro);\r\n \r\n //instanciando a oficina\r\n Oficina oficina = new Oficina();\r\n oficina.setCodigo(rs.getInt(\"oficodigo\"));\r\n oficina.setNome(rs.getString(\"ofinome\"));\r\n conserto.setOficina(oficina);\r\n }\r\n FabricaConexao.fecharConexao();\r\n \r\n return conserto;\r\n }", "public String codifica(String cadena) {\n MessageDigest messageDigest = null;\n\n //Se crea objeto de string buffer para almacenar la concatenacion de los datos del arreglo.\n StringBuffer sb = null;\n try {\n //Se inicializa el objeto y se le pasa el tipo de encriptacion deseada\n messageDigest = MessageDigest.getInstance(\"SHA-512\");\n\n //Se extraen los bytes que contiene la cadena\n byte[] encripta = messageDigest.digest(cadena.getBytes());\n\n //Se inicializa un objeto tipo String buffer\n sb = new StringBuffer();\n\n //Se recorre el arreglo de bytes que genero messageDigest\n for (byte hashB : encripta) {\n // se concatena los datos obtenidos del arreglo\n sb.append(String.format(\"%02x\", hashB));\n }\n\n } catch (Exception e) {\n// log.info(e.getMessage());\n// errorService.createError(e.getMessage(), \"Error encriptando la cadena: \"+ cadena);\n }\n\n return sb.toString();\n }", "public CodeBook getOptimalCodificacion(){\n ArrayList<ArbolCod> listaA=new ArrayList<ArbolCod>();\n \n // Se inicializan los árboles con las probabilidades.\n for (int i=0;i<probabilidades.size();i++)\n listaA.add(new ArbolCod(alfabeto.getI(i),probabilidades.get(i)));\n \n return codHuffman(listaA);\n }", "public abstract java.lang.String getCod_dpto();", "public java.lang.String getCodigo_pcom();", "public int getResultCode();", "public byte[] code();", "public Cuenta obtenerCuenta(String codigo_cuenta) {\n Cuenta cuenta = new Cuenta();\n try {\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"SELECT * FROM Cuenta WHERE Codigo = ?\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cuenta);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n cuenta.setCodigo(rs.getString(\"Codigo\"));\n cuenta.setCreacion(rs.getDate(\"Creacion\"));\n cuenta.setCredito(rs.getDouble(\"Credito\"));\n cuenta.setCodigo_cliente(rs.getString(\"Codigo_Cliente\"));\n }\n PrSt.close();\n rs.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n return cuenta;\n }", "public int getCodigo() {\r\n return Codigo;\r\n }", "int getResultCode();", "int getResultCode();", "int getResultCode();", "int getResultCode();", "int getResultCode();", "public String ottieniListaCodiceBilancio(){\n\t\tInteger uid = sessionHandler.getParametro(BilSessionParameter.UID_CLASSE);\n\t\tcaricaListaCodiceBilancio(uid);\n\t\treturn SUCCESS;\n\t}", "public int getComuneResidenzaCod() {\r\n return comuneResidenzaCod;\r\n }", "private String organizarCadena (Resultado res){\n String cadena = formatoCadenaTexto(res.getFuncion(),15) +\n formatoCadenaTexto(res.getAlgoritmo(),20) + \n res.getD() + \n \" \" + formatoDecimales(res.getPromedioIteracion(),1,6)+\n \" \" + formatoDecimales(res.getMejor_optimo(),10,10) + \n \" \" + formatoDecimales(res.getPeor_optimo(),10,10) + \n \" \" + formatoDecimales(res.getPromedioOptimos(), 10,10) + \n \" \" + formatoDecimales(res.getDesviacionOptimos(),10,15) + \n \" \" + formatoDecimales(res.getTiempoPromedio(), 3,1); \n return cadena;\n }", "java.lang.String getResult();", "public String getJP_BankDataCustomerCode2();", "public String getCodigoDeBarras() {\n\t\treturn producto.getCodigoDeBarras();\n\t}", "public String getCodigo() {\n return codigo;\n }", "public String getCodigo() {\n return codigo;\n }", "public int getCodigo() {\n return codigo;\n }", "public int getCodigo() {\n return codigo;\n }", "public int getCodigo() {\n return codigo;\n }", "public int getCodigo() {\n return codigo;\n }", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "public String getJP_BankDataCustomerCode1();", "public String getCodice() {\n\t\treturn codice;\n\t}", "public Institucion buscarInstitucionDeSolicitud(String cod_solicitud){\n\tString sql=\"select * from institucion where cod_institucion='\"+cod_solicitud+\"';\";\n\t\n\treturn db.queryForObject(sql, new InstitucionRowMapper());\n}", "public Long getCodigo() {\n return codigo;\n }", "public String borra() { \n clienteDAO.borra(c.getId());\n return \"listado\";\n }", "public Cuenta obtenerCuentaConMasDinero(String codigo_cliente) {\n Cuenta cuenta = new Cuenta();\n try {\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"SELECT * FROM Cuenta WHERE Codigo_Cliente = ? order by Credito desc limit 1\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cliente);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n cuenta.setCodigo(rs.getString(\"Codigo\"));\n cuenta.setCreacion(rs.getDate(\"Creacion\"));\n cuenta.setCredito(rs.getDouble(\"Credito\"));\n cuenta.setCodigo_cliente(rs.getString(\"Codigo_Cliente\"));\n }\n PrSt.close();\n rs.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n return cuenta;\n }", "public String extractingcode()\r\n\t{\r\n\t\tString localresponseJSONString = responseJSONString;\r\n\t\tJSONObject jsonResult = new JSONObject(localresponseJSONString);\r\n\t\tString getbookingscode;\r\n\t\tJSONArray getbookingsArray = jsonResult.getJSONObject(\"hotelogix\").getJSONObject(\"response\").getJSONArray(\"bookings\");\r\n\t\tJSONObject bookingscode = getbookingsArray.getJSONObject(0);\r\n\t\tgetbookingscode = bookingscode.getString(\"code\");\r\n\t\tSystem.out.println(\":getbookings code:\"+getbookingscode);\r\n\t\treturn getbookingscode;\r\n\t}", "String getDataNascimento();", "public java.lang.String getCodigo(){\n return localCodigo;\n }", "java.lang.String getCode();", "java.lang.String getCode();", "public String getCode();", "public String getCode();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCodigoBytes() {\n java.lang.Object ref = codigo_;\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 codigo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Integer getCodigo() {\n return codigo;\n }", "public com.google.protobuf.ByteString\n getCodigoBytes() {\n java.lang.Object ref = codigo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n codigo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@AutoEscape\n\tpublic String getCodDistrito();", "public String getTitulo(int codProva) {\n\t\tTransactionManager txManager = new TransactionManager();\n\t return txManager.doInTransactionWithReturn((connection) -> {\n\t \t\n\t\t\tps = connection.prepareStatement(\n\t\t\t\t\t\"SELECT codigo, titulo FROM prova WHERE codigo=?\");\n\t\t\tps.setInt(1, codProva);\n\t\t\trs = ps.executeQuery();\n\t\t\t\n\t\t\treturn (rs.next()) ? rs.getString(2) : \"\";\n\t\t});\n\t}", "String getCidade();", "com.google.protobuf.ByteString\n getResultBytes();", "public byte getCode();", "Integer getCode();", "Code[] getCodes();", "public java.lang.String getCodigo() {\n return codigo;\n }", "public Long obtenerUAporcodigo(Long oidMarca, Long oidCanal, Long oidPais,\n String codsgv, String codRegion, String codZona, String codSeccion,\n String codTer) throws MareException {\n \n UtilidadesLog.info(\"DAOZON.obtenerUAporcodigo(Long oidMarca, Long oidCanal, Long oidPais, String codsgv, String codRegion, String codZona, String codSeccion, String codTer): Entrada\");\n \n BigDecimal result;\n BelcorpService belcorpService;\n RecordSet respuestaRecordSet = null;\n Vector parametros = new Vector();\n\n StringBuffer stringBuffer = null;\n\n try {\n belcorpService = BelcorpService.getInstance();\n\n if (checkStr(codSeccion) && checkStr(codZona) &&\n checkStr(codRegion) && checkStr(codsgv) &&\n checkStr(codTer)) {\n //Chequeo sobre CodSGV,Region,Zona,Seccion. Para Territorio\n stringBuffer = new StringBuffer(\"SELECT T.OID_TERR as UA\");\n stringBuffer.append(\n \" FROM ZON_SUB_GEREN_VENTA SGV, ZON_REGIO R, ZON_ZONA Z, ZON_SECCI S, ZON_TERRI T, ZON_TERRI_ADMIN TA \");\n stringBuffer.append(\" WHERE \");\n stringBuffer.append(\" SGV.CANA_OID_CANA = \" +\n oidCanal.toString());\n stringBuffer.append(\" AND SGV.MARC_OID_MARC = \" +\n oidMarca.toString());\n stringBuffer.append(\" AND SGV.PAIS_OID_PAIS = \" +\n oidPais.toString());\n stringBuffer.append(\" AND SGV.COD_SUBG_VENT = '\" + codsgv +\n \"' \");\n stringBuffer.append(\" AND R.COD_REGI = '\" + codRegion + \"' \");\n stringBuffer.append(\" AND Z.COD_ZONA = '\" + codZona + \"' \");\n stringBuffer.append(\" AND S.COD_SECC = '\" + codSeccion + \"' \");\n stringBuffer.append(\" AND T.COD_TERR = '\" + codTer + \"' \");\n stringBuffer.append(\n \" AND R.ZSGV_OID_SUBG_VENT = SGV.OID_SUBG_VENT \");\n stringBuffer.append(\" AND Z.ZORG_OID_REGI = R.OID_REGI \");\n stringBuffer.append(\" AND S.ZZON_OID_ZONA = Z.OID_ZONA \");\n stringBuffer.append(\" AND TA.ZSCC_OID_SECC = S.OID_SECC \");\n stringBuffer.append(\" AND TA.TERR_OID_TERR = T.OID_TERR \"); \n stringBuffer.append(\" AND SGV.IND_BORR = 0 \");\n stringBuffer.append(\" AND R.IND_BORR = 0 \");\n stringBuffer.append(\" AND Z.IND_BORR = 0 \");\n stringBuffer.append(\" AND S.IND_BORR = 0 \");\n stringBuffer.append(\" AND T.IND_BORR = 0 \");\n stringBuffer.append(\" AND TA.IND_BORR = 0 \");\n \n respuestaRecordSet = belcorpService.dbService.executeStaticQuery(stringBuffer.toString());\n } else if (checkStr(codSeccion) && checkStr(codZona) &&\n checkStr(codRegion) && checkStr(codsgv)) {\n //Chequeo sobre CodSGV,Region,Zona,Seccion. Para Territorio\n stringBuffer = new StringBuffer(\"SELECT S.OID_SECC as UA\");\n stringBuffer.append(\n \" FROM ZON_SUB_GEREN_VENTA SGV, ZON_REGIO R, ZON_ZONA Z, ZON_SECCI S\");\n stringBuffer.append(\" WHERE \");\n stringBuffer.append(\" SGV.CANA_OID_CANA = \" +\n oidCanal.toString());\n stringBuffer.append(\" AND SGV.MARC_OID_MARC = \" +\n oidMarca.toString());\n stringBuffer.append(\" AND SGV.PAIS_OID_PAIS = \" +\n oidPais.toString());\n stringBuffer.append(\" AND SGV.COD_SUBG_VENT = '\" + codsgv +\n \"' \");\n stringBuffer.append(\" AND R.COD_REGI = '\" + codRegion + \"' \");\n stringBuffer.append(\" AND Z.COD_ZONA = '\" + codZona + \"' \");\n stringBuffer.append(\" AND S.COD_SECC = '\" + codSeccion + \"' \");\n stringBuffer.append(\n \" AND R.ZSGV_OID_SUBG_VENT = SGV.OID_SUBG_VENT \");\n stringBuffer.append(\" AND Z.ZORG_OID_REGI = R.OID_REGI \");\n stringBuffer.append(\" AND S.ZZON_OID_ZONA = Z.OID_ZONA \");\n stringBuffer.append(\" AND SGV.IND_BORR = 0 \");\n stringBuffer.append(\" AND R.IND_BORR = 0 \");\n stringBuffer.append(\" AND Z.IND_BORR = 0 \");\n stringBuffer.append(\" AND S.IND_BORR = 0 \");\n \n respuestaRecordSet = belcorpService.dbService.executeStaticQuery(stringBuffer.toString());\n } else if (checkStr(codsgv) && checkStr(codRegion) &&\n checkStr(codZona)) {\n //Chequeo sobre codSgv,Region,Zona. Para Seccion\n stringBuffer = new StringBuffer(\"SELECT Z.OID_ZONA as UA\");\n stringBuffer.append(\n \" FROM ZON_SUB_GEREN_VENTA SGV, ZON_REGIO R, ZON_ZONA Z\");\n stringBuffer.append(\" WHERE \");\n stringBuffer.append(\" SGV.CANA_OID_CANA = \" +\n oidCanal.toString());\n stringBuffer.append(\" AND SGV.MARC_OID_MARC = \" +\n oidMarca.toString());\n stringBuffer.append(\" AND SGV.PAIS_OID_PAIS = \" +\n oidPais.toString());\n stringBuffer.append(\" AND SGV.COD_SUBG_VENT = '\" + codsgv +\n \"' \");\n stringBuffer.append(\" AND R.COD_REGI = '\" + codRegion + \"' \");\n stringBuffer.append(\" AND Z.COD_ZONA = '\" + codZona + \"' \");\n stringBuffer.append(\n \" AND R.ZSGV_OID_SUBG_VENT = SGV.OID_SUBG_VENT \");\n stringBuffer.append(\" AND Z.ZORG_OID_REGI = R.OID_REGI \");\n stringBuffer.append(\" AND SGV.IND_BORR = 0 \");\n stringBuffer.append(\" AND R.IND_BORR = 0 \");\n stringBuffer.append(\" AND Z.IND_BORR = 0 \");\n \n respuestaRecordSet = belcorpService.dbService.executeStaticQuery(stringBuffer.toString());\n } else if (checkStr(codsgv) && checkStr(codRegion)) {\n //Chequeo sobre codSgv,Region. Para Zona.\n stringBuffer = new StringBuffer(\"SELECT R.OID_REGI as UA\");\n stringBuffer.append(\n \" FROM ZON_SUB_GEREN_VENTA SGV, ZON_REGIO R\");\n stringBuffer.append(\" WHERE \");\n stringBuffer.append(\" SGV.CANA_OID_CANA = \" +\n oidCanal.toString());\n stringBuffer.append(\" AND SGV.MARC_OID_MARC = \" +\n oidMarca.toString());\n stringBuffer.append(\" AND SGV.PAIS_OID_PAIS = \" +\n oidPais.toString());\n stringBuffer.append(\" AND SGV.COD_SUBG_VENT = '\" + codsgv +\n \"' \");\n stringBuffer.append(\" AND R.COD_REGI = '\" + codRegion + \"' \");\n stringBuffer.append(\n \" AND R.ZSGV_OID_SUBG_VENT = SGV.OID_SUBG_VENT \");\n stringBuffer.append(\" AND SGV.IND_BORR = 0 \");\n stringBuffer.append(\" AND R.IND_BORR = 0 \");\n \n respuestaRecordSet = belcorpService.dbService.executeStaticQuery(stringBuffer.toString());\n } else if (checkStr(codsgv)) {\n //Chequeo sobre codSgv. Para Region\n stringBuffer = new StringBuffer(\n \"SELECT SGV.OID_SUBG_VENT as UA\");\n stringBuffer.append(\" FROM ZON_SUB_GEREN_VENTA SGV\");\n stringBuffer.append(\" WHERE \");\n stringBuffer.append(\" SGV.CANA_OID_CANA = \" +\n oidCanal.toString());\n stringBuffer.append(\" AND SGV.MARC_OID_MARC = \" +\n oidMarca.toString());\n stringBuffer.append(\" AND SGV.PAIS_OID_PAIS = \" +\n oidPais.toString());\n stringBuffer.append(\" AND SGV.COD_SUBG_VENT = '\" + codsgv + \"' \");\n stringBuffer.append(\" AND SGV.IND_BORR = 0 \");\n \n respuestaRecordSet = belcorpService.dbService.executeStaticQuery(stringBuffer.toString());\n }\n } catch (MareMiiServiceNotFoundException serviceNotFoundException) {\n codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(serviceNotFoundException,\n UtilidadesError.armarCodigoError(codigoError));\n } catch (Exception exception) {\n codigoError = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(exception,\n UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (respuestaRecordSet.esVacio()) {\n UtilidadesLog.info(\"DAOZON.obtenerUAporcodigo(Long oidMarca, Long oidCanal, Long oidPais, String codsgv, String codRegion, String codZona, String codSeccion, String codTer): Salida\");\n return null;\n } else {\n result = (BigDecimal) respuestaRecordSet.getValueAt(0, \"UA\");\n }\n UtilidadesLog.info(\"DAOZON.obtenerUAporcodigo(Long oidMarca, Long oidCanal, Long oidPais, String codsgv, String codRegion, String codZona, String codSeccion, String codTer): Salida\");\n return new Long(result.longValue());\n }", "public String getCodigoLivro() throws IOException {\r\n ArrayList<String> listLivros = livro.getListLivros();\r\n String codigo = null;\r\n for (int i = 0; i < listLivros.size(); i++) {\r\n if (listLivros.get(i).contains(jComboBoxLivros.getSelectedItem().toString())) {\r\n String[] temp = listLivros.get(i).split(\";\");\r\n codigo = temp[0];\r\n }\r\n }\r\n return codigo;\r\n }", "public java.lang.String getResultCode() {\r\n return localResultCode;\r\n }", "public String getRetorno(){\n return retorno;\n }", "public String getCodigo() {\n\t\treturn codigo;\n\t}", "@JsonIgnore\n @Override\n public String getCode()\n {\n return code;\n }", "public Integer getCodigo() {\n\t\treturn codigo;\n\t}", "public Map<String,String> selectByCode(Context pActividad,int pId)\n {\n //tenemos que devolver un mapa con los valores resultantes del Select, solo sera una row\n Map<String,String> rst = new HashMap<String,String>();\n\n try\n {\n AdminSQLiteOpenHelper admin = new AdminSQLiteOpenHelper(pActividad, \"administracion\", null, 1);\n SQLiteDatabase db = admin.getWritableDatabase();\n\n //lanzamos una sentencia select --> el resultado de esta query vamos ha hacer que se guarde en una variable de tipo cursor\n //raw query es un metodo que hace eso precisamente, el resultado de un select a un cursor\n Cursor filas = db.rawQuery(\"Select descripcion, precio from Articulos where codigo = \" + pId, null);\n if (filas.moveToFirst())\n {\n rst.put(\"descripcion\", filas.getString(0));\n rst.put(\"precio\", filas.getString(1));\n }\n }\n catch (Exception e)\n {\n Toast.makeText(pActividad,\"Error al recuperar valores\",Toast.LENGTH_SHORT).show();\n }\n finally\n {\n return rst;\n }\n }", "public int getCodigo() {\n\t\treturn codigo;\n\t}", "public Integer getCodTienda();", "public List<VatCodeRec> getVatCodes() throws BacException {\n \n List<VatCodeRec> vatCodes = this.vatDM.getAllVatCodes();\n LOGGER.log(INFO, \"Number of VAT Codes returned from DB layer {0}\", vatCodes.size());\n return vatCodes;\n }", "private String cadenaABinario(String cadena){\n String cb = \"\";\n int longitud;\n for(int i = 0; i < cadena.length(); i++){\n cb += String.format(\"%8s\",Integer.toBinaryString(cadena.charAt(i)));\n }\n cb = formato(cb);\n return cb;\n }", "public int getCodigo_producto() {\n return codigo_producto;\n }", "public String ejecutarCodigoSQLtablas(String nombrearchivo )\r\n\t{\r\n\t\tString codigosqlcrebas=\"\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tFileReader codigoarchivo = new FileReader ( \"./images/BD/\"+nombrearchivo );\r\n\t\t\tBufferedReader reader = new BufferedReader (codigoarchivo);\r\n\t\t\tString codigo = reader.readLine();\r\n\t\t\twhile(codigo!= null)\r\n\t\t\t{\r\n\t\t\t\tcodigosqlcrebas+=codigo+\"\\n\";\r\n\t\t\t\tcodigo = reader.readLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t}\r\n\t\treturn codigosqlcrebas;\r\n\t}", "public ArrayList<Cuenta> verCuentasDeCliente(String codigo_cliente) {\n ArrayList<Cuenta> lista = new ArrayList<>();\n try {\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"SELECT * FROM Cuenta where Codigo_Cliente = ?\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cliente);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n Cuenta cuenta = new Cuenta();\n cuenta.setCodigo(rs.getString(\"Codigo\"));\n cuenta.setCreacion(rs.getDate(\"Creacion\"));\n cuenta.setCredito(rs.getDouble(\"Credito\"));\n lista.add(cuenta);\n }\n PrSt.close();\n rs.close();\n } catch (Exception e) {\n System.out.println(e.toString());\n }\n return lista;\n }", "public String getlbr_Barcode2();", "com.google.protobuf.ByteString getByteCode();", "public String getCodigoValor() {\n\t\treturn codigoValor;\n\t}", "public String getContrasena() {return contrasena;}", "static Producto busqueda(int codigo, Vector productos){ \r\n \tboolean band = false;\r\n \t//si return no es igual a null nos regresara el codigo\r\n Producto p,retornP = null; \r\n //For para comparar todos los codigos del vector que digitamos\r\n for(int x = 0; x < productos.size(); x++){ \r\n \tp = (Producto) productos.elementAt(x);\r\n \t//si el codigo es el mismo regresamos el producto que encontramos\r\n if(p.getCodigo() == codigo) \r\n \tretornP = p;\r\n }\r\n return retornP;\r\n }", "@Override\r\n\tpublic Code selectCode(Map<String, String[]> map) throws SQLException {\n\t\t\r\n\t\tJPAQuery query = new JPAQuery(entityManager);\r\n\r\n\t\tQCode code = QCode.code;\r\n\t\tCode codeList = null;\r\n\t\tif(map.get(\"gbn\")[0].equals(\"upr\")) {\r\n\t\t\tcodeList = query.from(code)\r\n\t\t\t .where(code.upr_cd.eq(\"*\").and(code.cd.eq(map.get(\"cd\")[0])))\r\n\t\t\t .singleResult(code);\r\n\t\t} else {\r\n\t\t\tcodeList = query.from(code)\r\n\t\t\t .where(code.upr_cd.eq(map.get(\"upr_cd\")[0]).and(code.cd.eq(map.get(\"cd\")[0])))\r\n\t\t\t .singleResult(code);\r\n\t\t}\r\n\t\t\r\n\t\treturn codeList;\r\n\t}", "public void colocarComentariosResultado()\r\n\t{\r\n\t\tresultadoprueba.colocarTextoComentarios(\"\");\r\n\t}", "java.lang.String getTranCode();", "com.google.protobuf.ByteString\n getTranCodeBytes();", "int getCodeValue();", "public abstract java.lang.Long getCod_actividad();", "@java.lang.Override\n public java.lang.String getCodigo() {\n java.lang.Object ref = codigo_;\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 codigo_ = s;\n return s;\n }\n }", "Reserva Obtener();", "public com.rpg.framework.database.Protocol.ResponseCode getResult() {\n return result_;\n }", "public com.rpg.framework.database.Protocol.ResponseCode getResult() {\n return result_;\n }", "public com.rpg.framework.database.Protocol.ResponseCode getResult() {\n return result_;\n }" ]
[ "0.6953679", "0.68475336", "0.6268923", "0.6236172", "0.6208498", "0.6208498", "0.6208373", "0.6208373", "0.6207508", "0.61142457", "0.60874814", "0.6047164", "0.60401267", "0.6027838", "0.5983974", "0.5968182", "0.5953225", "0.5939372", "0.59299475", "0.59036803", "0.58984977", "0.5883361", "0.5876561", "0.58661306", "0.585005", "0.585005", "0.585005", "0.585005", "0.585005", "0.58495504", "0.58371854", "0.5823814", "0.58208406", "0.58065015", "0.5793539", "0.5787865", "0.5787865", "0.5770871", "0.5770871", "0.5770871", "0.5770871", "0.57656795", "0.57656795", "0.57656795", "0.57656795", "0.57656795", "0.5757606", "0.5740917", "0.57383525", "0.5737956", "0.5737692", "0.5729768", "0.5729481", "0.57226974", "0.5721638", "0.5714195", "0.5714195", "0.570619", "0.570619", "0.56909424", "0.56877697", "0.5687421", "0.5672288", "0.56664795", "0.56620365", "0.56444204", "0.56335956", "0.56198967", "0.56164664", "0.5610389", "0.56097007", "0.56033045", "0.55977416", "0.5584935", "0.5580889", "0.5566265", "0.5563582", "0.5559653", "0.5541914", "0.5539944", "0.5536506", "0.55254036", "0.55253947", "0.55226445", "0.5515587", "0.5510702", "0.550078", "0.54960126", "0.54920727", "0.5488773", "0.5486094", "0.5484354", "0.5480228", "0.547949", "0.54793227", "0.54777014", "0.5476655", "0.5475143", "0.5473221", "0.5471715", "0.5471715" ]
0.0
-1
Inicia lector de codigos de barra
public void onGetProduct2Click(View v) throws UnsupportedEncodingException, JSONException { IntentIntegrator integrator = new IntentIntegrator(this); integrator.setDesiredBarcodeFormats(IntentIntegrator.ONE_D_CODE_TYPES); integrator.setPrompt("Escanea un codigo"); integrator.setCameraId(0); // Use a specific camera of the device integrator.setBeepEnabled(false); integrator.setBarcodeImageEnabled(true); integrator.initiateScan(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CodeBook getCodificacion(){\n CodeBook res=new CodeBook();\n \n //Se obtiene los valores ni\n ArrayList<Integer> n=obtenerNi(obtenerYi());\n \n //Se asigna a cada carácter un código\n ArrayList<String> candidatos;\n int i=0;\n int cont_alfa=0;\n int nd=0;\n \n // Se comprueba para cada ni si es mayor que 0, en cuyo caso, se generan\n // los posibles códigos de longitud i que quedan libres y se asignan.\n while (i<n.size()){\n nd=nd*base;\n int cont=n.get(i);\n if (cont>0){\n candidatos=generaCod(i+1,nd);\n int cod=0;\n while (cont>0){\n res.add(alfabeto.getN(cont_alfa), candidatos.get(cod));\n nd++;\n cont_alfa++;\n cod++;\n cont--;\n }\n }\n i++;\n } \n return res;\n }", "String getCodiceFiscale();", "public void transcribir() \r\n\t{\r\n\t\tpalabras = new ArrayList<List<CruciCasillas>>();\r\n\t\tmanejadorArchivos = new CruciSerializacion();\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\tmanejadorArchivos.leer(\"src/Archivos/crucigrama.txt\");\r\n\t\t\r\n\t\tfor(int x = 0;x<manejadorArchivos.getPalabras().size();x++){\r\n\t\t\t\r\n\t\t\tcontador++;\r\n\t\t\t\r\n\t\t\tif (contador == 4) {\r\n\t\t\t\r\n\t\t\t\tList<CruciCasillas> generico = new ArrayList<CruciCasillas>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 0; y < manejadorArchivos.getPalabras().get(x).length();y++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tgenerico.add(new CruciCasillas(manejadorArchivos.getPalabras().get(x).charAt(y)));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (y == (manejadorArchivos.getPalabras().get(x).length() - 1)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tpalabras.add(generico);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcontador = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "public ingresarBiblioteca() {\n initComponents();\n this.nombreUsuario.setText(usuariosID[0].getNombre());\n this.Picture.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.PLAIN,10));\n usuario.insertarInicio(this.nombreUsuario.getText()/*, carpeta*/);\n usuario.obtenerNodo(0).getArchivo().insertarFinal(\"GENERAL\");//carpeta.insertarFinal(\"GENERAL\");\n }", "public static void main(String[] args) {\n char [] letra = new char [27];\n letra [0] = 'A';\n letra [1] = 'B';\n letra [2] = 'C';\n letra [3] = 'D';\n letra [4] = 'E';\n letra [5] = 'F';\n letra [6] = 'G';\n letra [7] = 'H';\n letra [8] = 'I';\n letra [9] = 'J';\n letra [10] = 'K';\n letra [11] = 'L';\n letra [12] = 'M';\n letra [13] = 'N';\n letra [14] = 'Ñ';\n letra [15] = 'O';\n letra [16] = 'P';\n letra [17] = 'Q';\n letra [18] = 'R';\n letra [19] = 'S';\n letra [20] = 'T';\n letra [21] = 'U';\n letra [22] = 'V';\n letra [23] = 'W';\n letra [24] = 'X';\n letra [25] = 'Y';\n letra [26] = 'Z';\n int [] contadores = new int [27];\n pedirCadena();\n comprobarvocales(letra,contadores);\n }", "public abstract java.lang.String getCod_tecnico();", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void enemigosCatacumba(){\n esq81 = new Esqueleto(1, 8, 400, 160, 30);\n esq82 = new Esqueleto(2, 8, 400, 160, 30);\n esq111 = new Esqueleto(1, 11, 800, 255, 50);\n esq112 = new Esqueleto(2, 11, 800, 255, 50);\n esq141 = new Esqueleto(1, 14, 1000, 265, 60);\n esq142 = new Esqueleto(2, 14, 1000, 265, 60);\n //\n zom81 = new Zombie(1, 8, 1000, 170, 40);\n zom82 = new Zombie(2, 8, 1000, 170, 40);\n zom111 = new Zombie(1, 11, 1300, 250, 50);\n zom112 = new Zombie(2, 11, 1300, 250, 50);\n zom141 = new Zombie(1, 14, 1700, 260, 60);\n zom142 = new Zombie(2, 14, 1700, 260, 60);\n //\n fana81 = new Fanatico(1, 8, 400, 190, 40);\n fana82 = new Fanatico(2, 8, 400, 190, 40);\n fana111 = new Fanatico(1, 11, 700, 250, 50);\n fana112 = new Fanatico(2, 11, 700, 250, 50);\n fana141 = new Fanatico(1, 14, 900, 260, 60);\n fana142 = new Fanatico(2, 14, 900, 260, 60);\n //\n mi81 = new Mimico(1, 8, 3, 1, 3000);\n mi111 = new Mimico(1, 11, 4, 1, 3000);\n mi141 = new Mimico(1, 14, 5, 1, 3200);\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "private void getCodigosCasas(){\n mCodigosCasas = estudioAdapter.getListaCodigosCasasSinEnviar();\n //ca.close();\n }", "private void mostrarCoches() {\n int i = 0;\n for (Coche unCoche : coches) {\n System.out.println((i + 1) + \"º \" + coches.get(i));\n ++i;\n }\n }", "private void cargarCodDocente() {\n ClsNegocioDocente negoDoc = new ClsNegocioDocente(); \n txtCodDocente.setText(negoDoc.ObtenerCodigo());\n try {\n negoDoc.conexion.close();\n } catch (SQLException ex) {\n Logger.getLogger(FrmCRUDDocente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "public Tequisquiapan()\n {\n nivel = new Counter(\"Barrio Tequisquiapan: \");\n \n nivel.setValue(5);\n hombre.escenario=5;\n\n casa5.creaCasa(4);\n addObject(casa5, 2, 3);\n \n arbol2.creaArbol(2);\n addObject(arbol2, 20, 3);\n arbol3.creaArbol(3);\n addObject(arbol3, 20, 16); \n \n addObject(letrero5, 15, 8);\n\n addObject(hombre, 11, 1);\n \n arbol4.creaArbol(4);\n addObject(arbol4, 20, 20);\n arbol5.creaArbol(5);\n addObject(arbol5, 3, 17);\n \n fuente2.creaAfuera(6);\n addObject(fuente2, 11, 19);\n \n lampara1.creaAfuera(2);\n addObject(lampara1, 8, 14);\n lampara2.creaAfuera(1);\n addObject(lampara2, 8, 7);\n \n addObject(nivel, 5, 0);\n addObject(atras, 20, 2); \n }", "public static void main(String[] args) throws IOException {\n BufferedReader br= new BufferedReader(new InputStreamReader(System.in));\r\n System.out.println(\" Escribe : \");\r\n String texto=br.readLine().toUpperCase();\r\n String alfabeto = \"ABCDEFGHIJKLMNÑOPQRSTUVWXYZ\";\r\n\r\n int[] recuento=new int[alfabeto.length()];\r\n contarLetra(texto,alfabeto,recuento);\r\n visualizarRecuento(alfabeto,recuento);\r\n\r\n }", "public String ottieniListaCodiceBilancio(){\n\t\tInteger uid = sessionHandler.getParametro(BilSessionParameter.UID_CLASSE);\n\t\tcaricaListaCodiceBilancio(uid);\n\t\treturn SUCCESS;\n\t}", "public void ejercicio02() {\r\n\t\tcabecera(\"02\", \"Bisiesto no bisiesto\");\r\n\t\t// Inicio modificacion\r\n\t\t\r\n\t\tSystem.out.println(\"Introduce un año\");\r\n\r\n\t\tint anyo = Teclado.readInteger();\r\n\r\n\t\tif (anyo%400==0 || (anyo%4==0 && anyo%100!=0)) {\r\n\t\t\tSystem.out.println(anyo + \" es un año bisiesto\");\r\n\t\t}else {\r\n\t\t\tSystem.out.println(anyo + \" no es un año bisiesto\");\r\n\t\t}\r\n\r\n\t\t// Fin modificacion\r\n\t}", "private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }", "public static void MostrarPerroSegunCodigo( Perro BaseDeDatosPerros[]){\n int codigo;\r\n System.out.println(\"Ingrese el codigo del perro del cual decea saber la informacion\");\r\n codigo=TecladoIn.readLineInt();\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(\"El nombre del Dueño es: \"+BaseDeDatosPerros[codigo].getNombreDuenio());\r\n System.out.println(\"El telefono del Dueño es :\"+BaseDeDatosPerros[codigo].getTelefonoDuenio());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }", "public static void main(String[] args) {\n String asNombres[]=new String[TAMA];\r\n //CAPTURAR 5 NNOMBRES \r\n Scanner sCaptu = new Scanner (System.in);\r\n for (int i = 0; i < TAMA; i++) {\r\n System.out.println(\"Tu nombre :\");\r\n asNombres[i]=sCaptu.nextLine();\r\n }\r\n for (String asNombre : asNombres) {\r\n System.out.println(\"Nombre: \" + asNombre);\r\n \r\n }\r\n //CREAR UNA COPIA DEL ARREGLO\r\n /*String asCopia[]=asNombre;//Esto no funciona\r\n asNombre[0]=\"HOLA MUNDO\";\r\n System.out.println(asCopia[0]);*/\r\n \r\n String asCopia[]=new String[TAMA];\r\n for (int i = 0; i < TAMA; i++) {\r\n asCopia[i]=asNombres[i];\r\n \r\n }\r\n asNombres[0]=\"HOLA MUNDO\";\r\n System.out.println(\"Nombre = \" + asNombres[0]);\r\n System.out.println(\"Copia = \" + asCopia[0]);\r\n }", "public BoletoCodigoDeBarrasDV() {\n\n\t\tsuper();\n\t}", "private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "public figuras(int opcion) {\r\n this.opcion = opcion;\r\n // this.aleatorio = aleatorio;\r\n }", "public static void main(String[] args) {\n\r\n String contenido = \"\";\r\n\r\n try {\r\n FileReader in = new FileReader(\"./src/fichero_prueba.txt\");\r\n int c = in.read();\r\n\r\n while (c != -1) {\r\n contenido += (char) c;\r\n c = in.read();\r\n }\r\n in.close();\r\n } catch (IOException e){\r\n System.out.println(e.getMessage());\r\n }\r\n\r\n System.out.println(contenido);\r\n\r\n\r\n //LEER MENSAJE POR BLOQUES\r\n\r\n String contenido2 = \"\";\r\n\r\n try {\r\n BufferedReader inb = new BufferedReader(new FileReader(\"./src/fichero_prueba.txt\"));\r\n\r\n String linea = inb.readLine();\r\n while (linea!=null){\r\n contenido2 += linea+\"\\n\";\r\n linea = inb.readLine();\r\n }\r\n inb.close();\r\n } catch (IOException e){\r\n e.printStackTrace();\r\n }\r\n System.out.println(contenido2);\r\n\r\n }", "public ControladorArchivos() {\n diccionarioEncriptado = new HashMap<>();\n llenarDiccionario();\n for (Map.Entry<String, String> entry : diccionarioEncriptado.entrySet()) {\n String key = entry.getKey();\n String value = entry.getValue();\n System.out.println(key);\n }\n }", "@Override\n\tpublic void cargarBateria() {\n\n\t}", "@Override\n protected String elaboraBody() {\n String text = CostBio.VUOTO;\n int numCognomi = mappaCognomi.size();\n int numVoci = Bio.count();\n int taglioVoci = Pref.getInt(CostBio.TAGLIO_NOMI_ELENCO);\n\n text += A_CAPO;\n text += \"==Cognomi==\";\n text += A_CAPO;\n text += \"Elenco dei \";\n text += LibWiki.setBold(LibNum.format(numCognomi));\n text += \" cognomi '''differenti''' utilizzati nelle \";\n text += LibWiki.setBold(LibNum.format(numVoci));\n text += \" voci biografiche con occorrenze maggiori di \";\n text += LibWiki.setBold(taglioVoci);\n text += A_CAPO;\n text += creaElenco();\n text += A_CAPO;\n\n return text;\n }", "public void Caracteristicas(){\n System.out.println(\"La resbaladilla tiene las siguientes caracteristicas: \");\r\n if (escaleras==true) {\r\n System.out.println(\"Tiene escaleras\");\r\n }else System.out.println(\"No tiene escaleras\");\r\n System.out.println(\"Esta hecho de \"+material);\r\n System.out.println(\"Tiene una altura de \"+altura);\r\n }", "public Encargar() { \n initComponents();\n inicializar();\n \n }", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public String getCodice() {\n\t\treturn codice;\n\t}", "public void mostrarCompra() {\n }", "public BurbujaInmaculada(){\n\t\tthis.afectador = new AfectadorPorTurnos(2, new EfectoBurbujaInmaculada());\n\t}", "private static void readBooksInfo() {\n List<eGenre> arrBook = new ArrayList<>();\n\n // 1 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.ADVENTURE);\n book.add(new Book(1200, arrBook, \"Верн Жюль\", \"Таинственный остров\", 1875));\n arrBook.clear();\n // 2 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(425, arrBook, \"Григоренко Виталий\", \"Иван-душитель\", 1953));\n arrBook.clear();\n // 3 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(360, arrBook, \"Сейгер Райли\", \"Последние Девушки\", 1992));\n arrBook.clear();\n // 4 //\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(385, arrBook, \"Ольга Володарская\", \"То ли ангел, то ли бес\", 1995));\n arrBook.clear();\n // 5 //\n arrBook.add(eGenre.NOVEL);\n arrBook.add(eGenre.ACTION);\n book.add(new Book(180, arrBook, \"Лихэйн Деннис\", \"Закон ночи\", 1944));\n arrBook.clear();\n // 6 //\n arrBook.add(eGenre.NOVEL);\n book.add(new Book(224, arrBook, \"Мураками Харуки\", \"Страна Чудес без тормозов и Конец Света\", 1985));\n arrBook.clear();\n // 7 //\n arrBook.add(eGenre.STORY);\n book.add(new Book(1200, arrBook, \"Джон Хейвуд\", \"Люди Севера: История викингов, 793–1241\", 2017));\n arrBook.clear();\n // 8 //\n arrBook.add(eGenre.ACTION);\n arrBook.add(eGenre.MYSTIC);\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(415, arrBook, \"Линдквист Юн\", \"Впусти меня\", 2017));\n arrBook.clear();\n // 9 //\n arrBook.add(eGenre.ACTION);\n book.add(new Book(202, arrBook, \"Сухов Евгений\", \"Таежная месть\", 2016));\n arrBook.clear();\n // 10 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(231, arrBook, \"Винд Кристиан\", \"Призраки глубин\", 2019));\n arrBook.clear();\n }", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "public VentanaFichaMedica() {\n initComponents(); \n setSize(1195, 545);\n setIcon();\n setLocationRelativeTo(null);\n setResizable(false);\n cargar(\"\");\n setTitle(\"LISTA DE FICHAS MÉDICAS\");\n inicar(); \n }", "public static void main(String[] args) {\n int[] notas = new int[4];\n //FORMA 1 DE LLENAR EL ARREGLO\n notas[0] = 61;\n notas[1] = 84;\n notas[2] = 60;\n notas[3] = 95;\n // OTRA FORMA DE RELLENAR EL ARREGLO -- NO RECOMENDABLE --\n int[] n = {1, 8, 2, 3, 6, 4, 9, 7, 8, 5, 1, 2, 30};\n //Como acceder a los datos uno por uno\n System.out.println(\"Recorrido uno por uno: \");\n System.out.print(\"Recorrido notas: \");\n System.out.println(notas[2]);\n System.out.print(\"Recorrido de n: \");\n System.out.println(n[11]);\n //TODO JUNTO\n System.out.println(\"Recorrido de notas:\");\n for(int i = 0; i < 4; i++){\n System.out.print(notas[i] + \" \");\n }\n System.out.println(\"\");\n System.out.println(\"Recorrido de n:\");\n for(int i = 0; i < 13; i++){\n System.out.print(n[i] + \" \");\n }\n //---------- CON CHAR ----------\n char[] secciones = new char[3];\n \n secciones[0] = 'A';\n secciones[1] = 'B';\n secciones[2] = 'C';\n char[] s = {'D', 'E', 'F', 'G'};\n \n System.out.println(\"Recorrido uno por uno: \");\n System.out.print(\"Recorrido de secciones: \");\n System.out.println(secciones[1]);\n System.out.print(\"Recorrido de s: \");\n System.out.println(s[2]);\n System.out.println(\"Recorrido de todos\");\n }", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "public Asiakas(){\n\t\tid++;\n\t\tbussiNumero = new Random().nextInt(OmaMoottori.bussienMaara);\n\t\tsaapumisaika = Kello.getInstance().getAika();\n\t}", "public void setCodice(String codice) {\n\t\tthis.codice = codice;\n\t}", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.getCor().equals(\"Branco\") ? \" ♘ \": \" ♞ \";\r\n\t}", "public static void main(String[] args) {\n\t\tConcesionario listaconce=new Concesionario();\n\t\t//aņado coches\n\t\tlistaconce.addCoche(new coches(\"'6592 pgk'\",100,5,1500));\n\t\tSystem.out.println(listaconce);\n\t\t//otra forma\n\t\tcoches c1=(new coches(\"'5858 asd'\",120, 3, 1455));\n\t\tlistaconce.addCoche(c1);\n\t\tSystem.out.println(listaconce);\n\t\t\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}", "private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hola Mundo\");\n\t\t\n\t\t//--------------------------------------------------\n\t\t\n\t\t// Tipos de datos primitivos inician con minúscula\n\t\t\n\t\t// Enteros\n\t\tbyte edad = 24; // Tamaño: -128 a 127\n\t\tshort año = 20020;\n\t\tint idUsuario = 1847590;\n\t\tlong idAmazon = 109399029304012092L; // L es necesario al final, para identificarlo como long\n\t\t\n\t\t// Floante (Decimal)\n\t\tfloat radio = 35.63F; //F es necesario al final, para identificarlo como float\n\t\tdouble precio_acumulado = 34542342.546404935945034; // Se usa para datos con mayor precisión\n\t\t\n\t\t// Char (Un solo caracter)\n\t\tchar genero = 'M';\n\t\t\n\t\t// Lógico (Booleano)\n\t\tboolean visible = false;\n\t\tboolean funciona = true;\n\t\t\n\t\t// Constantes siempre en Mayúsculas\n\t\tint INICIA = 1;\n\t\tint VALOR_MAXIMO = 1524;\n\t\t\n\t\t//Lower camel case para variables, métodos u objetos\n\t\tint minValor = 1;\n\t\tboolean pruebaGit = true;\n\t\t\n\t\t//---------------------------------------------------------------\n\t\t\n\t\t// Cast automático\n\t\tbyte b = 24;\n\t\tshort s = b;\n\t\tb = (byte) s; // Cast explícito o manual\n\t\t\n\t\tint i = 24;\n\t\tdouble d = 12.24;\n\t\ti = (int) d; // Recorta el decimal, solo toma la parte entera del número\n\t\t\n\t\tint codigo = 97;\n\t\tchar codigoASCII = (char) codigo; // Cast explícito\t\t\n\t\t\n\t\t// Short a Byte\n\t\tshort numero = 2020;\n\t\tbyte numByte = (byte) numero; // Casting de un dato mas grande que el rango\n\t\t\t\t\t\t\t\t\t // del tipo de dato destino, genera números \"aleatorios\".\n\t\t\n\t\tSystem.out.println(\"\\n\" + numByte); // + variable (Concatenación)\n\t\tSystem.out.println(codigoASCII);\n\t\t\n\t\t//----------------------------------------------------\n\t\t\n\t\t// Arreglos\n\t\t\n\t\t// Formas de declarar un arreglo\n\t\tint[] arrayEntero;\n\t\tdouble arrayDouble[];\n\t\t\n\t\t// Iniciarlo\n\t\t// tipoDeDato[Dimensión] NombreDelArreglo = new tipoDeDato[N° de elementos]\n\t\tdouble[] arreglo1D = new double[3]; \n\t\tint[][] arreglo2D = new int[2][3]; // Arreglo 2D de 6 elementos\n\t\tchar[][][] arreglo3D = new char[3][3][2]; // Arreglo 3D de 18 elementos\n\t\t\n\t\t// Llenando el arreglo\n\t\tchar[][] days = { {'L','M','M'},\n\t\t\t\t\t\t {'J','V','S'} };\n\t\t\n\t\tchar[][][] days3D = { { {'a','b','c'}, {'d','e','f'} },\n\t\t\t\t\t\t\t { {'d','e','f'}, {'a','b','c'} } };\n\t\t\n\t\t// Agregar elementos al arreglo mediante los índices\n\t\tchar[] saludo = new char[4];\n\t\t\n\t\tsaludo[0] = 'H';\n\t\tsaludo[1] = 'o';\n\t\tsaludo[2] = 'l';\n\t\tsaludo[3] = 'a';\n\t\t\n\t\tSystem.out.println(\"\\n\" + saludo[0]);\n\t\tSystem.out.println(saludo[1]);\n\t\tSystem.out.println(saludo[2]);\n\t\tSystem.out.println(saludo[3]);\n\t\t\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Operadores aritméticos\n\t\tSystem.out.println(\"\\n\"+ 12+21);\n\t\tSystem.out.println(20-5);\n\t\tSystem.out.println(12*15);\n\t\tSystem.out.println(15/3);\n\t\tSystem.out.println(17%5);\n\t\t\n\t\t// Operadores de asignación\n\t\tint a = 10;\n\t\tSystem.out.println(\"\\n\" + (a += 2)); // Es equivalente: a = a + 2; + (Asignaciones de variables)\n\t\tSystem.out.println(a -= 3);\n\t\tSystem.out.println(a *= 4);\n\t\tSystem.out.println(a /= 5);\n\t\tSystem.out.println(a %= 6);\n\t\t\n\t\t\n\t\t// Operadores de incremento y decremento (Prefijo y Postfijo)\n\t\tint p = 5;\n\t\t\n\t\t/* ++p\n\t\t * 1. Incrementa el valor p + 1\n\t\t * 2. Asigna el valor a p */\n\t\tSystem.out.println(\"\\n\" + (++p));\n\t\t\n\t\t/* p++\n\t\t * Asigna el valor a p, p = p\n\t\t * Incrementa el valor p + 1 */\n\t\tSystem.out.println(p++); // Imprime el mismo valor 5\n\t\tSystem.out.println(p); // Imprime el valor aumentado en 1, 6\n\t\t\n\t\t// Operadores de equidad (Booleanos)\n\t\tint r = 24;\n\t\tint w = 12;\n\t\t\n\t\tSystem.out.println(\"\\n\" + (r == w));\n\t\tSystem.out.println(r != w);\n\t\t\n\t\t// Operadores relacionales\n\t\tSystem.out.println(\"\\nr > w -> \" + (r > w));\n\t\tSystem.out.println(r < w);\n\t\tSystem.out.println(r >= w);\n\t\tSystem.out.println(r <= w);\n\t\t\n\t\t// Operadores lógicos\n\t\tboolean n = false;\n\t\tboolean m = true;\n\t\t\n\t\tSystem.out.println(\"\\nn && m -> \" + (n && m));\n\t\tSystem.out.println(n || m);\n\t\tSystem.out.println(!n);\n\t}", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "@Override\n\tpublic String hablar() {\n\t\treturn \"Hola, soy un Buitre y sť volar\";\n\t}", "public String cargarDatos()\r\n/* 137: */ {\r\n/* 138:163 */ limpiar();\r\n/* 139:164 */ return \"\";\r\n/* 140: */ }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }", "private void inicializarJuego() {\n\t\tList<VerboIrregular> lista = utilService.getVerbosIrregulares(faciles, normales, dificiles);\n\n\t\trealmService.cambiarMostrarRespuestasVerbosIrregulares(lista, false);\n\n\t\tverbosIrregularesDesordenadas.clear();\n\n\t\tfor (VerboIrregular x : lista) {\n\t\t\tverbosIrregularesDesordenadas.add(x);\n\t\t}\n\n\t\tCollections.shuffle(verbosIrregularesDesordenadas);\n\t\t// --------------------------------------------------------------\n\n\t\t//------- Esto es por si el usuario quita una palabra problematica y se resetea el juego\n\t\tif (cantidadItems > verbosIrregularesDesordenadas.size()) {\n\t\t\tcantidadItems = verbosIrregularesDesordenadas.size();\n\t\t}\n\t\t// ---------------------------------------------------------------------------------\n\n\t\tverbosIrregularesDesordenadas = verbosIrregularesDesordenadas.subList(0, cantidadItems);\n\n\t\tindice = 0;\n\t\tsetearTitulo();\n\n\t\tbtRestart.setVisibility(View.INVISIBLE);\n\t\tivCongratulations.setVisibility(View.INVISIBLE);\n\t\tmbNext.setVisibility(View.VISIBLE);\n\t\tbtPrevious.setVisibility(View.INVISIBLE);\n\t\ttvJuegoCantidadPalabras.setVisibility(View.VISIBLE);\n\t\tbtMostrarRespuestaJuego.setVisibility(View.VISIBLE);\n\t\ttvInfinitivo.setVisibility(View.VISIBLE);\n\t\tbtDificultad.setVisibility(View.VISIBLE);\n\t\tlyRespuestaJuego.setVisibility(View.INVISIBLE);\n\t\tbtVolver.setVisibility(View.INVISIBLE);\n\n\t\tsetearTextoArribaYColorDeBoton();\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public void cambioLigas(){\n\t\ttry{\n\t\t\tmodelo.updatePartidosEmaitzak(ligasel.getSelectionModel().getSelectedItem().getIdLiga());\n\t\t}catch(ManteniException e){\n\t\t\t\n\t\t}\n\t\t\n\t}", "public List<String> verCarrito(){\n\t\treturn this.compras;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tRubro rubro1= new Rubro (\"Cafeteria\");\n\t\t\n\t\t// inicializo el arreglo de importes\n\t\t\n\t\trubro1.inicializarGastos();\n\t\t\n\t\t\n\t\t// le cargo a enero y febrero gastos // pruebo método agregarGasto\n\t\t\n\t\trubro1.agregarGasto(MESDELANIO.ABRIL, 100);\n\t\trubro1.agregarGasto(MESDELANIO.ENERO, 200);\n\n\t\t\n\t\t// VEO QUE LO HAYA CARGADO BIEN\n\t\t\n\t\tSystem.out.println(rubro1);\n\t\t\n\t\n\t\t// pruebo método getNombre()\n\n\t\trubro1.getName();\n\t\tSystem.out.println(rubro1.getName());\n\t\t\n\t\t// pruebo método getTotalGastos - pido enero y pido abril \n\t\t// debería darme 200 y 100\n\t\t\n\t\trubro1.getTotalGastos(MESDELANIO.ENERO);\n\t\trubro1.getTotalGastos(MESDELANIO.ABRIL);\n\n\t\tSystem.out.println(rubro1.getTotalGastos(MESDELANIO.ENERO));\n\t\tSystem.out.println(rubro1.getTotalGastos(MESDELANIO.ABRIL));\n\t\t\n\t\t\n\t\t/// ---- MÉTODOS DE GASTOSTOTAL\n\t\t\n\t\t\n\t\t// Creo un objeto gasto anual\n\t\t\n\t\tGastoAnual gasto2020 = new GastoAnual ();\n\t\t\n\t\t// AGREGO rubros\n\t\tgasto2020.agregarRubro(rubro1);\n\t\t\n\t\t// pruebo el método AgregarGasto\n\t\t\n\t\tgasto2020.agregarGastoNuevo(MESDELANIO.ENERO, \"Cafeteria\", 200);\n\t\tgasto2020.agregarGastoNuevo(MESDELANIO.ENERO, \"Cafeteria\", 200);\n\t\n\t\t\n // esto debería agregar 200 pesos a cafeteria, lo cual daría un total de 400 \n\t\t\n\t\trubro1.getTotalGastos(MESDELANIO.ENERO);\n\t\tSystem.out.println(rubro1.getTotalGastos(MESDELANIO.ENERO));\n\t\t\n\t\t\n\t\t// ahora pruebo si agrega un rubro que no existe con AgregarGastoNuevo\n\t\t\n\tgasto2020.agregarGastoNuevo(MESDELANIO.MARZO, \"Tintoreria\", 200);\n\tSystem.out.println(gasto2020);\n\t\t \n\t\t\n\t\t// pruebo consolidadoDeGastos()\n\t\t\n\t\tgasto2020.consolidadoDeGastos();\n\t\t\n\t\t// pruebo gastoAcumulado(MESDELANIO mes) \n\t\t\n\t\tgasto2020.gastoAcumulado(MESDELANIO.ENERO);\n\t\tgasto2020.gastoAcumulado(MESDELANIO.FEBRERO);\n\t\tgasto2020.gastoAcumulado(MESDELANIO.MARZO);\n\t\t\n\t\t// deberia dar 400\n\t\t\n\t\tSystem.out.println(gasto2020.gastoAcumulado(MESDELANIO.ENERO));\n\t\t\n\t\t// deberia dar 0 \n\t\t\n\t\tSystem.out.println(gasto2020.gastoAcumulado(MESDELANIO.FEBRERO));\n\t\t\n\t\t// deberia dar 200\n\n\t\tSystem.out.println(gasto2020.gastoAcumulado(MESDELANIO.MARZO));\n\n\t\t\n\t\t\n\t\t// pruebo gastoAcumulado(String nombreRubro) por rubro\n\t\t\n\t\tgasto2020.gastoAcumulado(\"Cafeteria\");\n\t\t\n\t\t// debería dar 400\n\t\t\n\t\tSystem.out.println(gasto2020.gastoAcumulado(\"Cafeteria\"));\n\t\t\n\t\t// debería dar 200 \n\t\tSystem.out.println(gasto2020.gastoAcumulado(\"Tintoreria\"));\n\t\t\n\t\t\n\t\t// debería dar -1\n\t\tSystem.out.println(gasto2020.gastoAcumulado(\"Supermercado\"));\n\t\t\n\t\t\n\t\t// pruebo informarConsumoPorMes y por promedio \n\t\t\n\t\tgasto2020.informarConsumosPorMes();\n\t\t\n\t\t\n\t\t// pruebo public void informarMesMayorConsumo() - debe darme enero con 400 \n\t\t\n\t\t\n\t\tgasto2020.informarMesMayorConsumo();\n\t\t\n\n\t\n\t\t\n\t\t\n\n\t}", "private void casoFor(ArrayList codigoFuente) {\n try {\n\n String texto = \"\", linea = \"\";\n String var[] = null;\n\n byte parenDerecho = 0;\n for (int i = 0; i < codigoFuente.size(); i++) {\n linea = codigoFuente.get(i).toString();\n for (int j = 0; j < linea.length(); j++) {\n if (linea.charAt(j) == ')') {\n parenDerecho++;\n\n if (j < linea.length() - 1) {\n if (linea.charAt(j + 1) == '{') {\n var = contenidoFor(texto);\n\n if (var[0].equals(\"0\")) {\n ta_output.setText(\"Línea \" + (i + 1) + \":\" + var[1]);\n break;\n } else {\n if (codigoFuente.get(codigoFuente.size() - 1).toString().charAt(codigoFuente.get(codigoFuente.size() - 1).toString().length() - 1) == '}') {\n ta_output.setText(\"Compilado Correctamente\");\n break;\n } else {\n ta_output.setText(\"Línea \" + (codigoFuente.size() - 1) + \": Sintáctico: falta llave derecha\");\n break;\n }\n }\n } else {\n ta_output.setText(\"Línea \" + (i + 1) + \": Sintáctico: falta llave izquierda\");\n break;\n }\n } else {//Evalua si la llave izquierda esta en la siguiente linea\n if (i < codigoFuente.size() - 1) {\n linea = codigoFuente.get(i + 1).toString();\n if (linea.charAt(0) == '{') {\n var = contenidoFor(texto);\n\n if (var[0].equals(\"0\")) {\n ta_output.setText(\"Línea \" + (i + 1) + \":\" + var[1]);\n break;\n } else {\n if (codigoFuente.get(codigoFuente.size() - 1).toString().charAt(codigoFuente.get(codigoFuente.size() - 1).toString().length() - 1) == '}') {\n ta_output.setText(\"Compilado Correctamente\");\n break;\n } else {\n ta_output.setText(\"Línea \" + (codigoFuente.size()) + \": Sintáctico: falta llave derecha\");\n break;\n }\n }\n } else {\n ta_output.setText(\"Línea \" + (i + 1) + \": Sintáctico: falta llave izquierda\");\n break;\n }\n } else {\n ta_output.setText(\"Línea \" + (i + 1) + \": Sintáctico: falta llave izquierda\");\n break;\n }\n }\n }\n texto += linea.charAt(j);\n if (texto.equals(\"for\")) {\n if (linea.length() > 5) {\n if (linea.charAt(j + 1) == '(') {\n texto = \"\";\n } else {\n if (linea.charAt(j + 2) == '(') {\n ta_output.setText(\"Línea \" + (i + 1) + \": Lexico: Caracter sobrante en sentencia for.\");\n parenDerecho++;\n break;\n } else {\n parenDerecho++;\n ta_output.setText(\"Línea \" + (i + 1) + \": Sintáctico: mala construcción de la sentencia.\");\n break;\n }\n }\n } else {\n parenDerecho++;\n ta_output.setText(\"Línea \" + (i + 1) + \": Sintáctico: mala construcción de la sentencia.\");\n break;\n }\n }\n }\n }\n if (parenDerecho == 0) {\n ta_output.setText(\"Sintáctico: falta paréntesis Derecho\");\n }\n\n } catch (Exception e) {\n System.out.println(\"Error en caso for \" + e.getClass());\n }\n }", "private static void benvenuto() {\n\t\tUtilityIO.header(MSG_BENVENUTO, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t\t\n\t}", "public AmbulanciaBasica(int codigo, String placa, String medico) {\n\t\tsuper(codigo, placa, medico);\n\t}", "public EnemigoGenerico[] cargaBichos()\n {\n \n //Crear la bicheria (hardCoded)\n CoordCasilla[] origen={new CoordCasilla(1,1), new CoordCasilla(18,1), new CoordCasilla(14,8), new CoordCasilla(17,17), new CoordCasilla(13,5)};\n CoordCasilla[] destino={new CoordCasilla(6,18) , new CoordCasilla(1,1), new CoordCasilla(1,8), new CoordCasilla(18,1) , new CoordCasilla(13,18) };\n \n \n DefBicho pelota=this.atlasBicheria.get(\"Pelota Maligna\");\n EnemigoGenerico bichos[]=new EnemigoGenerico[origen.length];\n \n for(int x=0;x<origen.length;x++)\n {\n List<CoordCasilla> camino = this.getCamino(origen[x], destino[x]);\n Gdx.app.log(\"CAMINO:\", \"DESDE (\"+origen[x].x+\",\"+origen[x].y+\") HASTA ( \"+destino[x].x+\",\"+destino[x].y+\")\");\n for (CoordCasilla cc : camino)\n Gdx.app.log(\"CASILLA.\", String.format(\"(%2d ,%2d )\", cc.x, cc.y));\n \n \n bichos[x] = new EnemigoGenerico(pelota, this.mapaAnimaciones.get(pelota.archivoAnim), pelota.pv, pelota.tasaRegen, pelota.velocidad, camino, pelota.distanciaPercepcion, pelota.ataques);\n }\n \n return bichos;\n }", "public void jugar_con_el() {\n System.out.println(nombre + \" esta jugando contigo :D\");\n }", "public void MostrarDatos(){\n // En este caso, estamos mostrando la informacion necesaria del objeto\n // podemos acceder a la informacion de la persona y de su arreglo de Carros por medio de un recorrido\n System.out.println(\"Hola, me llamo \" + nombre);\n System.out.println(\"Tengo \" + contador + \" carros.\");\n for (int i = 0; i < contador; i++) {\n System.out.println(\"Tengo un carro marca: \" + carros[i].getMarca());\n System.out.println(\"El numero de placa es: \" + carros[i].getPlaca()); \n System.out.println(\"----------------------------------------------\");\n }\n }", "public static void main(String[] args){\n //uso correcto de git aaaaa por fin lo comprendi, bueno, por ahora :/...\n\n Perro dog = new Perro(\"Teddy\", \"Callejero\", \"Croquetas\", 2, \"Fuerte\");\n Gato cat = new Gato(\"Miau\", \"Hogareño\", \"Atún\", 1, 7);\n //Perico\n Perico parrot = new Perico(\"Pericles\", \"Loro gris\", \"Galletas\", 1, \"Saludos humanos\");\n //Hamster\n Hamster ham = new Hamster(\"Hamilton\", \"Hamster chino\", \"Apio\", 4, \"Morado\");\n //No recuerdo lol...\n\n //los metodos\n dog.mostrarPerro();\n System.out.println(\"-------\");\n cat.mostrarGato();\n System.out.println(\"-------\");\n parrot.mostrarPerico();\n System.out.println(\"-------\");\n ham.mostrarHamster();\n System.out.println(\"_______\");\n \n }", "public TelaFimDeJogo() {\n initComponents();\n gerenciador.pegaJogadorDaRodada();\n mensagemBaixo.setForeground(gerenciador.pegaJogadorDaRodada().getColor());\n mensagemCima.setForeground(gerenciador.pegaJogadorDaRodada().getColor());\n mensagemCima.setText(\"PARABÉNS JOGADOR \" + gerenciador.pegaJogadorDaRodada().getNomeCor().toUpperCase() + \", VOCÊ VENCEU!!\");\n }", "public String getCodigoDeBarras() {\n\t\treturn producto.getCodigoDeBarras();\n\t}", "public Libro(String codigo, String titulo, String autor, int editorial, String ISBN, String anioEdicion, int numEdicion, int pais, int idioma, String materia, int paginas, String ubicacion, String descripcion, String tipo, String estado) {\r\n this.codigo = codigo;\r\n this.titulo = titulo;\r\n this.autor = autor;\r\n this.editorial = editorial;\r\n this.ISBN = ISBN;\r\n this.anioEdicion = anioEdicion;\r\n this.numEdicion = numEdicion;\r\n this.pais = pais;\r\n this.idioma = idioma;\r\n this.materia = materia;\r\n this.paginas = paginas;\r\n this.ubicacion = ubicacion;\r\n this.descripcion = descripcion;\r\n this.tipo = tipo;\r\n this.estado = estado;\r\n }", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void HordaHardcodeada() {\n\t\t\n\t\tObjetoDelJuego c = mapa.AgregarEnemigo();\n\t\tlistaDeEnemigos.add( (Enemigo) c );\n\t\t\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }", "private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }", "public void mostrarConsola() {\n\t\tProceso aux = this.raiz;\n\t\t// int i=this.numProcesos;\n\t\twhile (aux.sig != this.raiz /* i>0 */) {\n\t\t\t// i--;\n\t\t\taux = aux.sig;\n\t\t\tSystem.out.println(aux.toString());\n\t\t}\n\t}", "private ControleurAcceuil(){ }", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public void chocoContraBomba(Bomba bomba){}", "String getCognome();", "public void anuncio() {\n\n\t\tapp.image(pantallaEncontrado, 197, 115, 300, 150);\n\n\t\tapp.image(botonContinuar, 253, 285);\n\n\t}", "public void generarCuestionario() {\n setLayout(null);\n \n setTitle(\"Cuestionario de Fin de Curso\"); \n \n //Con el modelo construido debemos representar uestra pregunta\n //y mostrarala\n //Primero creamos las opciones\n \n Opcion op1 = new Opcion();\n op1.setTitulo(\"Londres\");\n op1.setCorrecta(false);\n\n Opcion op2 = new Opcion();\n op2.setTitulo(\"Roma\");\n op2.setCorrecta(false);\n\n Opcion op3 = new Opcion();\n op3.setTitulo(\"Paris\");\n op3.setCorrecta(true);\n\n Opcion op4 = new Opcion();\n op4.setTitulo(\"Oslo\");\n op4.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones = {op1, op2, op3, op4};\n Pregunta p1 = new Pregunta();\n p1.setTitulo(\"¿Cual es la capital de Francia\");\n p1.setOpciones(opciones);\n \n //Opiciones de la pregumta Numero 2\n Opcion op21 = new Opcion();\n op21.setTitulo(\"Atlantico\");\n op21.setCorrecta(false);\n\n Opcion op22 = new Opcion();\n op22.setTitulo(\"Indico\");\n op22.setCorrecta(false);\n\n Opcion op23 = new Opcion();\n op23.setTitulo(\"Artico\");\n op23.setCorrecta(false);\n\n Opcion op24 = new Opcion();\n op24.setTitulo(\"Pacifico\");\n op24.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones2 = {op21, op22, op23, op24};\n Pregunta p2 = new Pregunta();\n p2.setTitulo(\"¿Cual es el oceano más grande del mundo?\");\n p2.setOpciones(opciones2);\n \n //Opiciones de la pregumta Numero 3\n Opcion op31 = new Opcion();\n op31.setTitulo(\"Cristobal Colon\");\n op31.setCorrecta(true);\n\n Opcion op32 = new Opcion();\n op32.setTitulo(\"Cristobal Nodal\");\n op32.setCorrecta(false);\n\n Opcion op33 = new Opcion();\n op33.setTitulo(\"Cuahutemoc blanco\");\n op33.setCorrecta(false);\n\n Opcion op34 = new Opcion();\n op34.setTitulo(\"Cuahutemoc\");\n op34.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones3 = {op31, op32, op33, op34};\n Pregunta p3 = new Pregunta();\n p3.setTitulo(\"¿Quien descubrio América?\");\n p3.setOpciones(opciones3);\n \n //Opiciones de la pregumta Numero 4\n Opcion op41 = new Opcion();\n op41.setTitulo(\"Fernanflo\");\n op41.setCorrecta(false);\n\n Opcion op42 = new Opcion();\n op42.setTitulo(\"Polinesios\");\n op42.setCorrecta(false);\n\n Opcion op43 = new Opcion();\n op43.setTitulo(\"Eh vegeta\");\n op43.setCorrecta(true);\n\n Opcion op44 = new Opcion();\n op44.setTitulo(\"Willyrex\");\n op44.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones4 = {op41, op42, op43, op44};\n Pregunta p4 = new Pregunta();\n p4.setTitulo(\"¿Quien es el mejor youtuber?\");\n p4.setOpciones(opciones4);\n \n //Opiciones de la pregumta Numero 5\n Opcion op51 = new Opcion();\n op51.setTitulo(\"Amarillo patito\");\n op51.setCorrecta(false);\n\n Opcion op52 = new Opcion();\n op52.setTitulo(\"Verde Sherec\");\n op52.setCorrecta(false);\n\n Opcion op53 = new Opcion();\n op53.setTitulo(\"Rojo me faltas tú\");\n op53.setCorrecta(false);\n\n Opcion op54 = new Opcion();\n op54.setTitulo(\"Azul\");\n op54.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones5 = {op51, op52, op53, op54};\n Pregunta p5 = new Pregunta();\n p5.setTitulo(\"¿De que color es el cielo?\");\n p5.setOpciones(opciones5);\n \n //Opiciones de la pregumta Numero 6\n Opcion op61 = new Opcion();\n op61.setTitulo(\"200\");\n op61.setCorrecta(false);\n\n Opcion op62 = new Opcion();\n op62.setTitulo(\"100\");\n op62.setCorrecta(false);\n\n Opcion op63 = new Opcion();\n op63.setTitulo(\"45\");\n op63.setCorrecta(true);\n\n Opcion op64 = new Opcion();\n op64.setTitulo(\"13\");\n op64.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones6 = {op61, op62, op63, op64};\n Pregunta p6 = new Pregunta();\n p6.setTitulo(\"¿De cuantas localidades se compone una memoria de 8x5?\");\n p6.setOpciones(opciones6);\n \n //Opiciones de la pregumta Numero 7\n Opcion op71 = new Opcion();\n op71.setTitulo(\"Try - Catch\");\n op71.setCorrecta(false);\n\n Opcion op72 = new Opcion();\n op72.setTitulo(\"IF\");\n op72.setCorrecta(true);\n\n Opcion op73 = new Opcion();\n op73.setTitulo(\"Switch - Case\");\n op73.setCorrecta(false);\n\n Opcion op74 = new Opcion();\n op74.setTitulo(\"For anidado\");\n op74.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones7 = {op71, op72, op73, op74};\n Pregunta p7 = new Pregunta();\n p7.setTitulo(\"¿Que estructura condicional se recomienda usar menos en una interfaz de usuario?\");\n p7.setOpciones(opciones7);\n \n //Opiciones de la pregumta Numero 8\n Opcion op81 = new Opcion();\n op81.setTitulo(\"Access\");\n op81.setCorrecta(false);\n\n Opcion op82 = new Opcion();\n op82.setTitulo(\"Oracle\");\n op82.setCorrecta(false);\n\n Opcion op83 = new Opcion();\n op83.setTitulo(\"MySQL\");\n op83.setCorrecta(false);\n\n Opcion op84 = new Opcion();\n op84.setTitulo(\"Mongo DB\");\n op84.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones8 = {op81, op82, op83, op84};\n Pregunta p8 = new Pregunta();\n p8.setTitulo(\"¿Es una base de datos no relacional de uso moderno?\");\n p8.setOpciones(opciones8);\n \n //Opiciones de la pregumta Numero 9\n Opcion op91 = new Opcion();\n op91.setTitulo(\"GitHub\");\n op91.setCorrecta(true);\n\n Opcion op92 = new Opcion();\n op92.setTitulo(\"MIcrosoft teams\");\n op22.setCorrecta(false);\n\n Opcion op93 = new Opcion();\n op93.setTitulo(\"Zoom\");\n op93.setCorrecta(false);\n\n Opcion op94 = new Opcion();\n op94.setTitulo(\"Collaborate\");\n op94.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones9 = {op91, op92, op93, op94};\n Pregunta p9 = new Pregunta();\n p9.setTitulo(\"¿Es una plataforma para trabajo en línea?\");\n p9.setOpciones(opciones9);\n\n //Opiciones de la pregumta Numero 10\n Opcion op101 = new Opcion();\n op101.setTitulo(\"Prog. a nivel maquina\");\n op101.setCorrecta(false);\n\n Opcion op102 = new Opcion();\n op102.setTitulo(\"Prog. orientada a objetos\");\n op102.setCorrecta(true);\n\n Opcion op103 = new Opcion();\n op103.setTitulo(\"MySQL\");\n op103.setCorrecta(false);\n\n Opcion op104 = new Opcion();\n op104.setTitulo(\"C++\");\n op104.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones10 = {op101, op102, op103, op104};\n Pregunta p10 = new Pregunta();\n p10.setTitulo(\"¿Que aprendi en este curso?\");\n p10.setOpciones(opciones10);\n\n\n //Vamos a adaptar el cuestioanario a lo que ya teniamos\n Cuestionario c = new Cuestionario();\n //Creamos el list de preguntas\n\n //Se agrega a este list la unica prgunta que tenemos\n preguntas.add(p1);\n preguntas.add(p2);\n preguntas.add(p3);\n preguntas.add(p4);\n preguntas.add(p5);\n preguntas.add(p6);\n preguntas.add(p7);\n preguntas.add(p8);\n preguntas.add(p9);\n preguntas.add(p10);\n //A este list le vamos a proporcionar el valor del correspondiente\n //cuestioanrio\n c.setPreguntas(preguntas);\n//Primero ajustamos el titulo de la primer pregunta en la etiqueta de la preunta\n mostrarPregunta(preguntaActual);\n \n Salir.setVisible(false);\n siguiente.setEnabled(false);\n \n }", "@Override\n protected String elaboraFooterCategorie() {\n String text = CostBio.VUOTO;\n\n text += A_CAPO;\n text += LibWiki.setRigaCat(\"Liste di persone per cognome| \");\n text += LibWiki.setRigaCat(\"Progetto Antroponimi|Cognomi\");\n\n return text;\n }", "public void modificarCompraComic();", "public BitacoraHotelera() {\n initComponents();\n tabla();\n this.setTitle(\"BITACORA DEL ÁREA DE HOTELERIA\");\n }", "public void listarCarpetas() {\n\t\tFile ruta = new File(\"C:\" + File.separator + \"Users\" + File.separator + \"ram\" + File.separator + \"Desktop\" + File.separator+\"leyendo_creando\");\n\t\t\n\t\t\n\t\tSystem.out.println(ruta.getAbsolutePath());\n\t\t\n\t\tString[] nombre_archivos = ruta.list();\n\t\t\n\t\tfor (int i=0; i<nombre_archivos.length;i++) {\n\t\t\t\n\t\t\tSystem.out.println(nombre_archivos[i]);\n\t\t\t\n\t\t\tFile f = new File (ruta.getAbsoluteFile(), nombre_archivos[i]);//SE ALMACENA LA RUTA ABSOLUTA DE LOS ARCHIVOS QUE HAY DENTRO DE LA CARPTEA\n\t\t\t\n\t\t\tif(f.isDirectory()) {\n\t\t\t\tString[] archivos_subcarpeta = f.list();\n\t\t\t\tfor (int j=0; j<archivos_subcarpeta.length;j++) {\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(archivos_subcarpeta[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n protected int getCodigoJuego() {\n return 5;\n }", "private String cadenaABinario(String cadena){\n String cb = \"\";\n int longitud;\n for(int i = 0; i < cadena.length(); i++){\n cb += String.format(\"%8s\",Integer.toBinaryString(cadena.charAt(i)));\n }\n cb = formato(cb);\n return cb;\n }", "public Elya() {\n\n estado=PersonajeEstado.quieto;\n cargarText(\"Personajes/ElyaQuieta.png\",1,0);\n cargarText(\"Personajes/ElyaRunning2.png\", 24, 1);\n cargarText(\"Personajes/ElyaAtack2.png\", 24, 2);\n cargarText(\"Personajes/ElyaDead.png\", 1, 3);\n\n }", "public void mostrarAyuda() {\r\n\t\t\r\n\t\tEnum_Instrucciones[] arrayEnumerado;\r\n\t\t\r\n\t\tarrayEnumerado = Enum_Instrucciones.getArrayEnumerados();\r\n\t\t\r\n\t\t// El tamano del array de enumerados es 8.\r\n\t\tfor(int i = 0; i < Enum_Instrucciones.tamanoArrayEnumerados(); i++) {\r\n\t\t\tSystem.out.println(arrayEnumerado[i].getDescripcionOrden());\r\n\t\t}\r\n\t}", "private void limpiarDatos() {\n\t\t\n\t}", "public static void main(String[] args) {\n \n String palabaras[], palabraSelected=\"\";\n char juego[];\n char letra; \n char seguir; \n \n \n //puede volver a jugar.\n //con las palabras que no ha salido. Gastando palabras\n //en caso de no existir palabra terminar el juego e indicar el mensaje respectivo.\n\n\n do {\n aciertos=0; errores=0;\n bandera=false;\n\n palabaras= leerArchivo();\n \n if(palabaras.length==0){\n System.out.println(\"No se puede jugar porque no hay palabras\");\n break; \n }\n\n \n \n String nombre= palabaras[0].substring(0,18).trim().toUpperCase();\n\n String pa= String.format(\"%1$-20s\", \"walter\");\n System.out.println(pa.length());\n\n // escribirLineaArchivo(palabaras);\n \n //obtenerPalabra\n //random para obtener la palabara\n \n palabraSelected= obtenerPalabra(palabaras);\n //palabraSelected= palabraSelected.toUpperCase();\n \n //obtnerVectorJuego\n //instacia del venctor juego con el tamaño de la palabra seleccionada\n juego= obtenerVectorJuego(palabraSelected);\n \n /*//1 manera apata de llenar el vector juego con la palabra seleccinada\n for(int i=0; i<palabraSelected.length(); i++){\n \n juego[i]=palabraSelected.charAt(i);\n \n }\n */\n \n //segunda manera\n\n /* if(!palabraSelected.equals(\"fdd\")){\n\n\n }*/\n \n System.out.println(\"BIENVENIDO AL JUEGO DEL AHORCADO..\"); \n \n do {\n \n bandera=false;\n //imprimirJuego\n imprimirJuego(palabraSelected, juego);\n \n letra = solicitarLetra();\n \n //validarLetra\n validarLetra(letra, juego);\n \n //imprimirResultado\n imprimirResultado();\n \n \n } while (aciertos!=juego.length && errores!=7);\n \n \n //imprimirResultadoFinal\n imprimirResultadoFinal(juego, palabraSelected);\n\n\n\n System.out.println(\"Desea volver a jugar(S/N)? \"); \n seguir= scan.next().toUpperCase().charAt(0);\n \n eliminarPalabraArchivo(palabraSelected, palabaras);\n \n\n\n\n\n } while (seguir=='S');\n }", "@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}", "@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}", "public Comida(String nombre, int calorias){\n super(\"Comida\");\n this.calorias = calorias;\n }", "public static void main(String[] args) throws Exception {\n GeradorParChaves gpc = new GeradorParChaves(); \r\n gpc.geraParChaves (new File (\"chave.publica\"), new File (\"chave.privada\")); \r\n \r\n //-- Cifrando a mensagem \"Hello, world!\" \r\n byte[] textoClaro = \"Hello, world!\".getBytes(\"ISO-8859-1\"); \r\n CarregadorChavePublica ccp = new CarregadorChavePublica(); \r\n PublicKey pub = ccp.carregaChavePublica (new File (\"chave.publica\")); \r\n Cifrador cf = new Cifrador(); \r\n byte[][] cifrado = cf.cifra (pub, textoClaro); \r\n //printHex (cifrado[0]); \r\n //printHex (cifrado[1]); \r\n \r\n //-- Decifrando a mensagem \r\n CarregadorChavePrivada ccpv = new CarregadorChavePrivada(); \r\n PrivateKey pvk = ccpv.carregaChavePrivada (new File (\"chave.privada\")); \r\n Decifrador dcf = new Decifrador(); \r\n byte[] decifrado = dcf.decifra (pvk, cifrado[0], cifrado[1]); \r\n System.out.println (new String (textoClaro, \"ISO-8859-1\")); \r\n }", "public void Horas() {\r\n File archivo = null;\r\n FileReader fr = null;\r\n BufferedReader br = null;\r\n \r\n try {\r\n // Apertura del fichero y creacion de BufferedReader para poder\r\n // hacer una lectura comoda (disponer del metodo readLine()).\r\n \r\n \r\n // Lectura del fichero\r\n String linea;\r\n \r\n for (a=0;a<5;a++){\r\n if (a==0){\r\n categoria=\"Embarazadas\";\r\n }\r\n if (a==1){\r\n categoria=\"Regulares\";\r\n }\r\n if (a==2){\r\n categoria=\"Discapacitados\";\r\n }\r\n if (a==3){\r\n categoria=\"Mayores\";\r\n }\r\n if (a==4){\r\n categoria=\"Corporativos\";\r\n }\r\n archivo = new File (System.getProperty(\"user.dir\")+\"/Clientes/\"+categoria+\".txt\");\r\n fr = new FileReader (archivo);\r\n br = new BufferedReader(fr);\r\n while((linea=br.readLine())!=null)\r\n if (leerHora == contador){\r\n comparar = linea.substring(0,2);\r\n \r\n if (\"09\".equals(comparar)){\r\n nueve++;\r\n }\r\n if (\"10\".equals(comparar)){\r\n diez++;\r\n }\r\n if (\"11\".equals(comparar)){\r\n once++;\r\n }\r\n if (\"13\".equals(comparar)){\r\n una++;\r\n }\r\n if (\"14\".equals(comparar)){\r\n dos++;\r\n }\r\n if (\"15\".equals(comparar)){\r\n tres++;\r\n }\r\n if (\"16\".equals(comparar)){\r\n cuatro++;\r\n }\r\n \r\n contador +=1;\r\n leerHora += 6;\r\n }\r\n else{\r\n contador += 1;\r\n }\r\n }\r\n }\r\n catch(Exception e){\r\n e.printStackTrace();\r\n }finally{\r\n // En el finally cerramos el fichero, para asegurarnos\r\n // que se cierra tanto si todo va bien como si salta \r\n // una excepcion.\r\n try{ \r\n if( null != fr ){ \r\n fr.close(); \r\n } \r\n }catch (Exception e2){ \r\n e2.printStackTrace();\r\n }\r\n }\r\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public byte[] encode() throws IOException, IllegalStateException {\n check();\n\n // Tempat data ter-enkode\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n \n // Judul film dalam byte. UTF-8 adalah cara enkode karakter\n // yang sekarang populer dan kompatibel dengan ASCII, dan\n // muat dalam tipe data byte.\n byte titleByte[] = title.getBytes(StandardCharsets.UTF_8);\n\n // Dapatkan timestamp tanggal rilis. Timestamp yang dimaksud disini\n // adalah banyak detik semenjak 1 Januari 1970.\n // Method Date.getTime() menghasilkan waktu dalam milidetik (1/1000 detik)\n // jadi harus dibagi dengan 1000.\n // Tipe data long digunakan untuk menghindari masalah pada tahun 2038.\n long releaseTS = release.getTime() / 1000;\n\n // Sinopsis dalam bentuk byte.\n byte synopsisByte[] = synopsis.getBytes(StandardCharsets.UTF_8);\n // Daftar genre dalam bentuk byte, dipisah dengan koma.\n byte genreByte[] = genre.getBytes(StandardCharsets.UTF_8);\n // Sama untuk pemeran\n byte castByte[] = cast.getBytes(StandardCharsets.UTF_8);\n\n // Tulis panjang judul dalam bytes\n Utils.write(byteStream, titleByte.length);\n // Tulis judul\n byteStream.write(titleByte);\n\n // Tulis tanggal rilis\n Utils.write(byteStream, releaseTS);\n // Tulis durasi film\n Utils.write(byteStream, duration);\n\n // Tulis panjang sinopsis\n Utils.write(byteStream, synopsisByte.length);\n // Tulis sinopsis\n byteStream.write(synopsisByte);\n\n // Sama untuk genre\n Utils.write(byteStream, genreByte.length);\n byteStream.write(genreByte);\n\n // Dan pemeran\n Utils.write(byteStream, castByte.length);\n byteStream.write(castByte);\n\n byte result[] = byteStream.toByteArray();\n\n try {\n byteStream.close();\n } catch (IOException p) {\n // Masalah serius!\n p.printStackTrace(System.out);\n throw p;\n }\n\n return result;\n }", "@Override\n protected void elaboraMappaBiografie() {\n if (mappaCognomi == null) {\n mappaCognomi = Cognome.findMappaTaglioListe();\n }// end of if cycle\n }" ]
[ "0.6604204", "0.6542736", "0.63488156", "0.6346787", "0.61587864", "0.6158357", "0.60446155", "0.5967675", "0.5933857", "0.5921591", "0.5918694", "0.59029686", "0.5891838", "0.5889995", "0.58676434", "0.5866913", "0.5827035", "0.5819085", "0.5817574", "0.5782686", "0.57624054", "0.57615036", "0.57592696", "0.5757862", "0.57512367", "0.5750301", "0.5746887", "0.57411575", "0.57404256", "0.56933725", "0.5690825", "0.5688172", "0.5682156", "0.5670446", "0.56602365", "0.5659249", "0.56464833", "0.56359684", "0.5633111", "0.56243813", "0.56221575", "0.5619795", "0.56180274", "0.56024337", "0.5590537", "0.5590152", "0.5571254", "0.5571254", "0.5567295", "0.5565992", "0.5564564", "0.5563931", "0.555779", "0.5555691", "0.5549322", "0.5547625", "0.5545235", "0.554502", "0.554331", "0.55419856", "0.55414224", "0.55390686", "0.5538727", "0.55371356", "0.5532673", "0.5526555", "0.5523344", "0.55225104", "0.55180854", "0.551305", "0.5507923", "0.5505942", "0.55041003", "0.54999447", "0.5496111", "0.54921436", "0.5491468", "0.549134", "0.5487677", "0.5483427", "0.54776126", "0.54748994", "0.54656005", "0.5465393", "0.5464912", "0.5464374", "0.54625565", "0.546205", "0.54606956", "0.54580873", "0.54568076", "0.5455357", "0.5452538", "0.5450398", "0.5450398", "0.54496276", "0.5444194", "0.54407275", "0.5438178", "0.5435232", "0.543364" ]
0.0
-1
Agrega producto al layout
private void agregarProducto(String msg, String value) { // Obtiene el grupo LinearLayout parentLayout = (LinearLayout) findViewById(R.id.root); // Crea el inflater LayoutInflater layoutInflater = getLayoutInflater(); View view; // Obtiene el layout a insertar view = layoutInflater.inflate(R.layout.productos_insertar, parentLayout, false); // Obtiene views LinearLayout linearLayout = (LinearLayout) view.findViewById(R.id.vgroup); EditText et = (EditText) linearLayout.findViewById(R.id.editText); TextView tv = (TextView) linearLayout.findViewById(R.id.textView); tv.setText(msg); if (value != "0") { et.setText(value); } parentLayout.addView(linearLayout); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AdicionarProdutoCarrinhoVIew() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public Registrar_Producto() {\n this.setContentPane(fondo);\n initComponents();\n llenaArr();\n llenaCB();\n soloLetras(rp_tx_nombre);\n soloNumeros(rp_tx_cantidad);\n soloNumeros(rp_tx_precio);\n soloLetras(rp_tx_descripcion);\n }", "public Comprar_Productos() {\n initComponents();\n setLocationRelativeTo(null);\n setResizable(false);\n mostrarProductos();\n }", "public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }", "protected abstract void iniciarLayout();", "public ActualizarProducto() {\n initComponents();\n }", "public VentanaCrearProducto(ControladorProducto controladorProducto) {\n initComponents();\n this.controladorProducto=controladorProducto;\n txtCodigoCrearProducto.setText(String.valueOf(this.controladorProducto.getCodigo()));\n this.setSize(1000,600);\n }", "public DetalleProducto() {\n initComponents();\n }", "void LienaDivisoria(){\r\n \t\r\n VerticalLayout LayoutLineaDivisoria = new VerticalLayout();\r\n LayoutLineaDivisoria.setWidth(\"1024px\");\r\n LayoutLineaDivisoria.setHeight(\"5px\");\r\n LayoutLineaDivisoria.setStyleName(EstiloCSS + \"LayoutLineaDicisoria\");\r\n layout.addComponent(LayoutLineaDivisoria, \"left: 0px; top: 450px;\"); \r\n\r\n }", "private void inicComponent() {\n\n\t\tprogres = (LinearLayout) findViewById(R.id.linearLayoutProgres);\n\t\t\n\t\tbuttonKategorije = (Button) findViewById(R.id.buttonKategorije);\n\t\t\n\t}", "private void colocar(){\n setLayout(s);\n eleccion = new BarraEleccion(imagenes,textos);\n eleccion.setLayout(new GridLayout(4,4));\n eleccion.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createBevelBorder(5), \"SELECCIONA EL MAGUEY\",\n TitledBorder.CENTER, TitledBorder.TOP,new Font(\"Helvetica\",Font.BOLD,15),Color.WHITE));\n eleccion.setFondoImagen(imgFond);\n etqAlcohol = new JLabel(\"SELECCIONA EL GRADO DE ALCOHOL\");\n etqAlcohol.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqAlcohol.setForeground(Color.WHITE);\n alcohol = new JComboBox<>();\n etqTipo = new JLabel(\"SELECCIONA EL TIPO DE MEZCAL\");\n etqTipo.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqTipo.setForeground(Color.WHITE);\n tipo = new JComboBox<>();\n btnRegistrar = new JButton();\n btnRegistrar.setFont(new Font(\"Sylfaen\", Font.BOLD, 17));\n btnRegistrar.setText(\"Registrar\");\n btnRegistrar.setHorizontalAlignment(SwingConstants.CENTER);\n btnRegistrar.setActionCommand(\"registrar\");\n add(eleccion);\n add(etqAlcohol);\n add(alcohol);\n add(etqTipo);\n add(tipo);\n add(btnRegistrar);\n iniciarVistas();\n }", "public void agregarDatosProductoText() {\n if (cantidadProducto != null && cantidadProducto > 0) {\n //agregando detalle a la Lista de Detalle\n listDetalle.add(new Detallefactura(null, this.producto.getCodBarra(),\n this.producto.getNombreProducto(), cantidadProducto, this.producto.getPrecioVenta(),\n this.producto.getPrecioVenta().multiply(new BigDecimal(cantidadProducto))));\n \n //Seteamos el producto al item del detalle\n //Accedemos al ultimo Item agregado a la lista\n listDetalle.get(listDetalle.size()-1).setCodProducto(producto);\n \n //Seteamos la factura al item del detalle\n //Accedemos al ultimo Item agregado a la lista \n // listDetalle.get(listDetalle.size()-1).setCodFactura(factura);\n \n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Invocamos al metodo que calcula el Total de la Venta para la factura\n totalFacturaVenta();\n\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n //Mensaje de confirmacion de exito de la operacion \n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\", \"Producto agregado correctamente!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n } else {\n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n }\n\n }", "public VistaListadeproductos() {\n // You can initialise any data required for the connected UI components here.\n }", "public BuscarProducto(AgregandoProductos ventanaPadre) {\n this.daoProductos = new ProductoJpaController();\n this.ventanaPadre = ventanaPadre;\n initComponents();\n this.setupComponents();\n }", "@Override\r\n\tpublic void ManageProduct() {\n\t\tint id = this.view.enterId();\r\n\t\tString name = this.view.enterName();\r\n\t\tfloat price = this.view.enterPrice();\r\n\t\tint quantity = this.view.enterQuantity();\r\n\t\t\r\n\t\tthis.model.updProduct(id, name, price, quantity);\r\n\t}", "public void listarProducto() {\n }", "public CrearProductos() {\n initComponents();\n }", "public Producto_Insertar() {\n initComponents();\n this.setLocationRelativeTo(null);\n setResizable(false);\n actualizarJTabale();\n }", "public void a() {\n this.f25458d.a(this.f25457c);\n this.f25457c.a(this);\n Context context = getContext();\n LinearLayout linearLayout = new LinearLayout(context);\n linearLayout.setOrientation(1);\n addView(linearLayout, new ViewGroup.LayoutParams(-1, -2));\n d a2 = ShopAssistantItemView_.a(context);\n a2.a(R.drawable.ic_myproducts, R.string.sp_my_products, 0);\n a2.setTag(\"PRODUCT\");\n a2.setMinimumHeight(this.f25455a);\n linearLayout.addView(a2, new FrameLayout.LayoutParams(-1, -2));\n d a3 = ShopAssistantItemView_.a(context);\n a3.a(R.drawable.ic_mycustomers, R.string.sp_my_customers, 2);\n linearLayout.addView(a3, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a4 = ShopAssistantItemView_.a(context);\n a4.a(R.drawable.ic_shopprofile, R.string.sp_label_shop_profile, 6);\n linearLayout.addView(a4, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a5 = ShopAssistantItemView_.a(context);\n a5.a(R.drawable.img_shopsettings, R.string.sp_shop_settings, 4);\n linearLayout.addView(a5, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a6 = ShopAssistantItemView_.a(context);\n a6.a(R.drawable.ic_categories, R.string.sp_my_shop_categories, 8);\n a6.setSubtitle(this.f25461g.getCategoriesPath());\n linearLayout.addView(a6, new FrameLayout.LayoutParams(-1, this.f25455a));\n View view = new View(context);\n view.setBackgroundColor(b.a(R.color.background));\n linearLayout.addView(view, new FrameLayout.LayoutParams(-1, b.a.k));\n View view2 = new View(context);\n view2.setBackgroundColor(com.garena.android.appkit.tools.b.a(R.color.black06));\n linearLayout.addView(view2, new FrameLayout.LayoutParams(-1, b.a.f7690a));\n View inflate = ((LayoutInflater) context.getSystemService(\"layout_inflater\")).inflate(R.layout.seller_center, (ViewGroup) null);\n ((TextView) inflate.findViewById(R.id.url)).setText(\"http://seller\" + i.f7042e);\n int b2 = com.garena.android.appkit.tools.b.b() - b.a.m;\n w.a(getContext()).a((int) R.drawable.sellercentre_banner).b(b2, (int) (((float) b2) / 1.886f)).e().f().a((ImageView) inflate.findViewById(R.id.banner));\n FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, -2);\n inflate.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n g.this.f25459e.V();\n }\n });\n linearLayout.addView(inflate, layoutParams);\n this.f25457c.e();\n this.f25457c.f();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n\n\n productModels = new ArrayList<>();\n //Electro\n ProductModel productModel1 = new ProductModel(\"LED 4K Ultra HD Smart TV\",\"https://home.ripley.cl/store/Attachment/WOP/D171/2000371667503/2000371667503_2.jpg\",279990,209990,\"electro\",\"2000371667503P\",\"11223950\");\n productModels.add(productModel1);\n ProductModel productModel2 = new ProductModel(\"Lavadora carga superior 15 kilos\",\"https://home.ripley.cl/store/Attachment/WOP/D136/2000351773811/2000351773811_2.jpg\",339990,229990,\"electro\",\"2000351773811P\",\"1190613\");\n productModels.add(productModel2);\n ProductModel productModel3 = new ProductModel(\"Robot aspirador\",\"https://home.ripley.cl/store/Attachment/WOP/D122/2000369109855/2000369109855_2.jpg\",399990,194990,\"electro\",\"2000369109855P\",\"9334029\");\n productModels.add(productModel3);\n ProductModel productModel4 = new ProductModel(\"Extractor de jugo\",\"https://home.ripley.cl/store/Attachment/WOP/D122/2000366737198/2000366737198_2.jpg\",199990,59990,\"electro\",\"2000366737198P\",\"5538059\");\n productModels.add(productModel4);\n ProductModel productModel5 = new ProductModel(\"Máquina de Coser\",\"https://home.ripley.cl/store/Attachment/WOP/D122/2000372411631/2000372411631_2.jpg\",249990,169990,\"electro\",\"2000372411631P\",\"11780619\");\n productModels.add(productModel5);\n\n //tecno\n ProductModel productModel6 = new ProductModel(\"Cámara réflex 18-55mm 18MP\",\"https://home.ripley.cl/store/Attachment/WOP/D126/2000359329935/2000359329935_2.jpg\",399990,379990,\"tecno\",\"2000359329935P\",\"2077501\");\n productModels.add(productModel6);\n ProductModel productModel7 = new ProductModel(\"Consola PS4 Bundle\",\"https://home.ripley.cl/store/Attachment/WOP/D172/2000375421729/2000375421729_2.jpg\",279990,229990,\"tecno\",\"2000375421729P\",\"13486166\");\n productModels.add(productModel7);\n ProductModel productModel8 = new ProductModel(\"ACER NITRO 5 AN515-42-R4KY\",\"https://home.ripley.cl/store/Attachment/WOP/D113/2000372107077/2000372107077_2.jpg\",599990,549990,\"tecno\",\"2000375421729P\",\"13486166\");\n productModels.add(productModel8);\n ProductModel productModel9 = new ProductModel(\"CAMARA GOPRO HERO7 BLACK\",\"https://home.ripley.cl/store/Attachment/WOP/D126/2000371958953/2000371958953_2.jpg\",349990,249990,\"tecno\",\"2000371958953P\",\"11446224\");\n productModels.add(productModel9);\n ProductModel productModel10 = new ProductModel(\"HUAWEI MATE 20\",\"https://home.ripley.cl/store/Attachment/WOP/D191/2000373857964/2000373857964_2.jpg\",169990,149990,\"tecno\",\"2000373857964P\",\"12264501\");\n productModels.add(productModel10);\n\n //decohogar\n ProductModel productModel11 = new ProductModel(\"JUEGO DE COMEDOR RIPLEY\",\"https://home.ripley.cl/store/Attachment/WOP/D359/2000371827983/2000371827983_2.jpg\",349990,249990,\"decohogar\",\"2000371827983P\",\"12431080\");\n productModels.add(productModel11);\n ProductModel productModel12 = new ProductModel(\"JUEGO DE CUBIERTOS\",\"https://home.ripley.cl/store/Attachment/WOP/D361/2000374299572/2000374299572_2.jpg\",16990,9990,\"decohogar\",\"2000374299572P\",\"12773851\");\n productModels.add(productModel12);\n ProductModel productModel13 = new ProductModel(\"ALFOMBRA DIB\",\"https://home.ripley.cl/store/Attachment/WOP/D102/2000374310932/2000374310932_2.jpg\",231990,79990,\"decohogar\",\"2000374310932P\",\"12734724\");\n productModels.add(productModel13);\n ProductModel productModel14 = new ProductModel(\"SET 2 MALETAS CAMBRIDGE\",\"https://home.ripley.cl/store/Attachment/WOP/D369/2000368425048/2000368425048_2.jpg\",129990,129990,\"decohogar\",\"2000368425048P\",\"9322533\");\n productModels.add(productModel14);\n ProductModel productModel15 = new ProductModel(\"CUADROS DECORATIVOS RIPLEY\",\"https://home.ripley.cl/store/Attachment/WOP/D367/2000371915604/2000371915604_2.jpg\",26990,21990,\"decohogar\",\"2000371915604P\",\"12409117\");\n productModels.add(productModel15);\n\n //deporte\n ProductModel productModel16 = new ProductModel(\"BICICLETA TREK MARLIN 5\",\"https://home.ripley.cl/store/Attachment/WOP/D192/2000369989594/2000369989594_2.jpg\",379990,289990,\"deporte\",\"2000369989594P\",\"10128017\");\n productModels.add(productModel16);\n ProductModel productModel17 = new ProductModel(\"SCOOTER ELECTRICO\",\"http://ripleycl.imgix.net/https%3A%2F%2Fripley-prod.mirakl.net%2Fmmp%2Fmedia%2Fproduct-media%2F58911%2FFalabella%25201.jpg?w=750&h=555&ch=Width&auto=format&cs=strip&bg=FFFFFF&q=60&trimcolor=FFFFFF&trim=color&fit=fillmax&ixlib=js-1.1.0&s=fb80d9cbd5408cf0615a71e550fdbcdd\",329990,309990,\"deporte\",\"MPM00002006512\",\"11768504\");\n productModels.add(productModel17);\n ProductModel productModel18 = new ProductModel(\"BICICLETA ESTÁTICA\",\"https://home.ripley.cl/store/Attachment/WOP/D192/2000335659285/2000335659285_2.jpg\",99990,89990,\"deporte\",\"2000335659285P\",\"320034\");\n productModels.add(productModel18);\n ProductModel productModel19 = new ProductModel(\"CARPA NATIONAL GEOGRAPHIC\",\"https://home.ripley.cl/store/Attachment/WOP/D170/2000327637482/2000327637482_2.jpg\",89990,54990,\"deporte\",\"2000327637482P\",\"493501\");\n productModels.add(productModel19);\n ProductModel productModel20 = new ProductModel(\"TROTADORA ELECTRICA\",\"http://ripleycl.imgix.net/http%3A%2F%2Fs3.amazonaws.com%2Fimagenes-sellers-mercado-ripley%2F2019%2F07%2F22094411%2FARC-3421A.jpg?w=750&h=555&ch=Width&auto=format&cs=strip&bg=FFFFFF&q=60&trimcolor=FFFFFF&trim=color&fit=fillmax&ixlib=js-1.1.0&s=2a5ae55b9f8903faa978d95d2a3aecfe\",329990,179990,\"deporte\",\"MPM00001075806\",\"10144001\");\n productModels.add(productModel20);\n\n //moda\n ProductModel productModel21 = new ProductModel(\"PARKA TATIENNE\",\"https://home.ripley.cl/store/Attachment/WOP/D321/2000370840310/2000370840310_2.jpg\",39990,16990,\"moda\",\"2000370840266\",\"11755568\");\n productModels.add(productModel21);\n ProductModel productModel22 = new ProductModel(\"PARKA\",\"https://home.ripley.cl/store/Attachment/WOP/D129/2000371979576/2000371979576_2.jpg\",34990,12990,\"moda\",\"2000371979422\",\"11986727\");\n productModels.add(productModel22);\n ProductModel productModel23 = new ProductModel(\"SWEATER SFERA\",\"https://home.ripley.cl/store/Attachment/WOP/D388/2000373199514/2000373199514_2.jpg\",14990,5990,\"moda\",\"2000373199514\",\"13111833\");\n productModels.add(productModel23);\n ProductModel productModel24 = new ProductModel(\"SWEATER CACHAREL\",\"https://home.ripley.cl/store/Attachment/WOP/D320/2000373423961/2000373423961_2.jpg\",21990,16990,\"moda\",\"2000373423879\",\"13165378\");\n productModels.add(productModel24);\n ProductModel productModel25 = new ProductModel(\"PIJAMA INDEX\",\"https://home.ripley.cl/store/Attachment/WOP/D134/2000372471772/2000372471772_2.jpg\",19990,4990,\"moda\",\"2000372471789\",\"12647300\");\n productModels.add(productModel25);\n\n //TODO Delete\n ArrayList<ProductModel> resultArrayList = new ArrayList<>();\n for(ProductModel searchItemMasterObj : productModels) {\n if(searchItemMasterObj.getCategory().contains(\"electro\") || searchItemMasterObj.getCategory().contains(\"moda\") ) {\n resultArrayList.add(searchItemMasterObj);\n }\n }\n\n Log.i(TAG,\"resultArrayList cantidad: \" + resultArrayList.size() );\n\n recyclerView = (RecyclerView) view.findViewById(R.id.recycler_view1);\n RecyclerView.LayoutManager recyclerViewLayoutManager = new GridLayoutManager(getContext(),2);\n recyclerView.setLayoutManager(recyclerViewLayoutManager);\n recyclerProductViewAdapter= new RecyclerProductViewAdapter(productModels,getContext());\n recyclerView.setAdapter(recyclerProductViewAdapter);\n\n return view;\n }", "public CadastrarProduto() {\n initComponents();\n }", "private void updateContent() {\n if (product != null) {\n etProductName.setText(product.getName());\n etPrice.setText(product.getPrice().toString());\n }\n }", "@AutoGenerated\r\n\tprivate VerticalLayout buildPnlFondo() {\n\t\tpnlFondo = new VerticalLayout();\r\n\t\tpnlFondo.setImmediate(false);\r\n\t\tpnlFondo.setWidth(\"-1px\");\r\n\t\tpnlFondo.setHeight(\"-1px\");\r\n\t\tpnlFondo.setMargin(false);\r\n\t\t\r\n\t\t// imgFondo\r\n\t\timgFondo = new Embedded();\r\n\t\timgFondo.setImmediate(false);\r\n\t\timgFondo.setWidth(\"500px\");\r\n\t\timgFondo.setHeight(\"500px\");\r\n\t\timgFondo.setSource(new ThemeResource(\"img/imagen.jpg\"));\r\n\t\timgFondo.setType(1);\r\n\t\timgFondo.setMimeType(\"image/jpg\");\r\n\t\tpnlFondo.addComponent(imgFondo);\r\n\t\t\r\n\t\treturn pnlFondo;\r\n\t}", "public VendasProdutos() {\n initComponents();\n }", "public void agregar(Producto producto) throws BusinessErrorHelper;", "public Productos() {\n super();\n // TODO Auto-generated constructor stub\n }", "public Vent_Productos() {\n initComponents();\n Llenar();\n LlenarC();\n provBox.setVisible(false);\n catBox.setVisible(false);\n proidprov.setText(\" \");\n proidcat.setText(\"\");\n }", "public CadProdutos() {\r\n\t\tsetTitle(\"Produtos\");\r\n\t\tsetBounds(100, 100, 450, 300);\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\r\n\t\tcontentPanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNome = new JLabel(\"Nome:\");\r\n\t\tlblNome.setBounds(10, 11, 46, 14);\r\n\t\tcontentPanel.add(lblNome);\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(66, 8, 86, 20);\r\n\t\tcontentPanel.add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblDescrio = new JLabel(\"Descri\\u00E7\\u00E3o:\");\r\n\t\tlblDescrio.setBounds(182, 14, 66, 14);\r\n\t\tcontentPanel.add(lblDescrio);\r\n\t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setBounds(258, 8, 110, 20);\r\n\t\tcontentPanel.add(textField_1);\r\n\t\ttextField_1.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblCategoria = new JLabel(\"Categoria:\");\r\n\t\tlblCategoria.setBounds(10, 36, 60, 14);\r\n\t\tcontentPanel.add(lblCategoria);\r\n\t\t\r\n\t\tJLabel lblValorDeCusto = new JLabel(\"Valor de Custo:\");\r\n\t\tlblValorDeCusto.setBounds(10, 88, 86, 14);\r\n\t\tcontentPanel.add(lblValorDeCusto);\r\n\t\t\r\n\t\ttextField_3 = new JTextField();\r\n\t\ttextField_3.setBounds(106, 85, 96, 20);\r\n\t\tcontentPanel.add(textField_3);\r\n\t\ttextField_3.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblValorDeVenda = new JLabel(\"Valor de Venda:\");\r\n\t\tlblValorDeVenda.setBounds(10, 113, 96, 14);\r\n\t\tcontentPanel.add(lblValorDeVenda);\r\n\t\t\r\n\t\ttextField_4 = new JTextField();\r\n\t\ttextField_4.setBounds(106, 110, 76, 20);\r\n\t\tcontentPanel.add(textField_4);\r\n\t\ttextField_4.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblValorDeVenda_1 = new JLabel(\"Valor de Venda:\");\r\n\t\tlblValorDeVenda_1.setBounds(192, 113, 100, 14);\r\n\t\tcontentPanel.add(lblValorDeVenda_1);\r\n\t\t\r\n\t\ttextField_5 = new JTextField();\r\n\t\ttextField_5.setBounds(287, 110, 66, 20);\r\n\t\tcontentPanel.add(textField_5);\r\n\t\ttextField_5.setColumns(10);\r\n\t\t\r\n\t\tJComboBox comboBox = new JComboBox();\r\n\t\tcomboBox.setBounds(76, 33, 96, 20);\r\n\t\tcontentPanel.add(comboBox);\r\n\t\t\r\n\t\tJButton button = new JButton(\"...\");\r\n\t\tbutton.setBounds(182, 32, 33, 18);\r\n\t\tcontentPanel.add(button);\r\n\t\t\r\n\t\tJLabel lblDataDeCadastro = new JLabel(\"Data de Cadastro:\");\r\n\t\tlblDataDeCadastro.setBounds(10, 138, 110, 14);\r\n\t\tcontentPanel.add(lblDataDeCadastro);\r\n\t\t\r\n\t\ttextField_2 = new JTextField();\r\n\t\ttextField_2.setBounds(116, 135, 76, 20);\r\n\t\tcontentPanel.add(textField_2);\r\n\t\ttextField_2.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblUnMedida = new JLabel(\"Un. Medida:\");\r\n\t\tlblUnMedida.setBounds(202, 138, 76, 14);\r\n\t\tcontentPanel.add(lblUnMedida);\r\n\t\t\r\n\t\ttextField_6 = new JTextField();\r\n\t\ttextField_6.setBounds(287, 135, 66, 20);\r\n\t\tcontentPanel.add(textField_6);\r\n\t\ttextField_6.setColumns(10);\r\n\t\t{\r\n\t\t\tJPanel buttonPane = new JPanel();\r\n\t\t\tbuttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));\r\n\t\t\tgetContentPane().add(buttonPane, BorderLayout.SOUTH);\r\n\t\t\t{\r\n\t\t\t\tJButton okButton = new JButton(\"OK\");\r\n\t\t\t\tokButton.setActionCommand(\"OK\");\r\n\t\t\t\tbuttonPane.add(okButton);\r\n\t\t\t\tgetRootPane().setDefaultButton(okButton);\r\n\t\t\t}\r\n\t\t\t{\r\n\t\t\t\tJButton cancelButton = new JButton(\"Cancel\");\r\n\t\t\t\tcancelButton.addActionListener(new ActionListener() {\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tcancelButton.setActionCommand(\"Cancel\");\r\n\t\t\t\tbuttonPane.add(cancelButton);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Listen(\"onClick =#asignarEspacio\")\n\tpublic void Planificacion() {\n\t\tString dir = \"gc/espacio/frm-asignar-espacio-recursos-catalogo.zul\";\n\t\tclearDivApp(dir);\n\t\t// Clients.evalJavaScript(\"document.title = 'ServiAldanas'; \");\n\t}", "private JPanel productVendArea() {\n JPanel productsToVend = new JPanel();\n productsToVend.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\n int size = inventoryManager.getProductNumber();\n size = size % 2 == 0 ? size / 2 : size / 2 + 1;\n productButtons = new ArrayList<>();\n productsToVend.setLayout(new GridLayout(size,size, 10, 10)); // creating a 10x10 area\n ArrayList<String> products = inventoryManager.getProductInventory();\n for (String prod : products) {\n JButton temp = new JButton(prod);\n temp.addActionListener(new productListener());\n productButtons.add(temp);\n productsToVend.add(temp);\n }\n return productsToVend;\n }", "public CaracteristicasProducto() {\n initComponents();\n setTitle(\"Los Productos\");\n this.setFrameIcon(new ImageIcon(this.getClass().getResource(\"/Imagenes/icoChiqui.png\")));\n tbProducto.setModel(modelo);\n modelo.setColumnIdentifiers(new String[]{\"Item\", \"Nombre\", \"codigo\", \"Serie\"});\n \n tbProducto.getColumnModel().getColumn(0).setPreferredWidth(50);\n tbProducto.getColumnModel().getColumn(1).setPreferredWidth(200);\n tbProducto.getColumnModel().getColumn(2).setPreferredWidth(70);\n tbProducto.getColumnModel().getColumn(3).setPreferredWidth(60);\n \n tbCaracteristicas.setModel(modelo1);\n modelo1.setColumnIdentifiers(new String[]{\"Item\", \"Caracteristica\"});\n tbCaracteristicas.getColumnModel().getColumn(0).setPreferredWidth(40);\n tbCaracteristicas.getColumnModel().getColumn(1).setPreferredWidth(250);\n \n tbCaracteristicasSimilares.setModel(modelo2);\n modelo2.setColumnIdentifiers(new String[]{\"Item\", \"Caracteristica\"});\n tbCaracteristicasSimilares.getColumnModel().getColumn(0).setPreferredWidth(40);\n tbCaracteristicasSimilares.getColumnModel().getColumn(1).setPreferredWidth(250);\n MostrarProductos();\n txtCarateristica.setEnabled(false);\n txtBuscar.grabFocus();\n FormatoTabla ft= new FormatoTabla(1);\n tbCaracteristicas.setDefaultRenderer(Object.class, ft);\n tbCaracteristicasSimilares.setDefaultRenderer(Object.class, ft);\n tbProducto.setDefaultRenderer(Object.class, ft);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.wordpanel);\n products = (Products1) getIntent().getSerializableExtra(\"Product\");\n product_name = (TextView) findViewById(R.id.text_prodctname);\n text_spec = (TextView) findViewById(R.id.text_spec);\n text_price = (TextView) findViewById(R.id.text_price);\n text_count = (TextView) findViewById(R.id.text_count);\n text_shouyibili = (TextView) findViewById(R.id.text_shouyibili);\n text_daigou_price = (TextView) findViewById(R.id.text_daigou_price);\n text_daigoushouyi = (TextView) findViewById(R.id.text_daigoushouyi);\n\n product_name.setText(products.getName());\n\n text_spec.setText(products.getSpec());\n\n text_shouyibili.setText(products.getScale());\n\n\n text_price.setText(products.getPrice());\n text_count.setText(products.getCount());\n\n text_daigou_price.setText(products.getMoney());\n text_daigoushouyi.setText(products.getLucreMoney());\n }", "private void CargaInicial() {\r\n this.setTitle(\"\" + gui.getTitle().concat(\"\").concat(\" - [Modulo: Precio por Producto/Servicio]\"));\r\n }", "public GestionProd() {\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 850, 550);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\t\t\r\n\t\tcnx = ConnexionMysql.connexionDB();\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Gestion des produits \");\r\n\t\tlblNewLabel.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel.setFont(new Font(\"Franklin Gothic Demi\", Font.BOLD | Font.ITALIC, 21));\r\n\t\tlblNewLabel.setBounds(281, 11, 222, 39);\r\n\t\tcontentPane.add(lblNewLabel);\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Genre :\");\r\n\t\tlblNewLabel_1.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_1.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tlblNewLabel_1.setBounds(39, 105, 73, 32);\r\n\t\tcontentPane.add(lblNewLabel_1);\r\n\t\t\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Marque :\");\r\n\t\tlblNewLabel_2.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_2.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tlblNewLabel_2.setBounds(29, 158, 73, 32);\r\n\t\tcontentPane.add(lblNewLabel_2);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tJLabel lblNewLabel_7 = new JLabel(\"\");\r\n\t\tlblNewLabel_7.setIcon(new ImageIcon(\"C:\\\\Users\\\\Ahmed\\\\Desktop\\\\Projects\\\\App_JAVA\\\\images\\\\a.png\"));\r\n\t\tlblNewLabel_7.setForeground(SystemColor.textHighlight);\r\n\t\tlblNewLabel_7.setBackground(SystemColor.textHighlight);\r\n\t\tlblNewLabel_7.setBounds(254, 78, 210, 178);\r\n\t\tcontentPane.add(lblNewLabel_7);\r\n\t\t\r\n\t\t\r\n\t\tJLabel lblNewLabel_3 = new JLabel(\"Couleur :\");\r\n\t\tlblNewLabel_3.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_3.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tlblNewLabel_3.setBounds(23, 217, 79, 20);\r\n\t\tcontentPane.add(lblNewLabel_3);\r\n\t\t\r\n\t\tJLabel lblNewLabel_4 = new JLabel(\"Pointure :\");\r\n\t\tlblNewLabel_4.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_4.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tlblNewLabel_4.setBounds(20, 257, 92, 32);\r\n\t\tcontentPane.add(lblNewLabel_4);\r\n\t\t\r\n\t\tJLabel lblNewLabel_5 = new JLabel(\"Prix :\");\r\n\t\tlblNewLabel_5.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_5.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tlblNewLabel_5.setBounds(54, 312, 63, 28);\r\n\t\tcontentPane.add(lblNewLabel_5);\r\n\t\t\r\n\t\ttextField_2 = new JTextField();\r\n\t\ttextField_2.setColumns(10);\r\n\t\ttextField_2.setBounds(122, 215, 111, 28);\r\n\t\tcontentPane.add(textField_2);\r\n\t\t\r\n\t\ttextField_3 = new JTextField();\r\n\t\ttextField_3.setBounds(122, 261, 111, 28);\r\n\t\tcontentPane.add(textField_3);\r\n\t\ttextField_3.setColumns(10);\r\n\t\t\r\n\t\ttextField_4 = new JTextField();\r\n\t\ttextField_4.setBounds(122, 314, 80, 28);\r\n\t\tcontentPane.add(textField_4);\r\n\t\ttextField_4.setColumns(10);\r\n\t\t\r\n\t\tJComboBox comboBox = new JComboBox();\r\n\t\tcomboBox.setForeground(SystemColor.desktop);\r\n\t\tcomboBox.setBackground(new Color(169, 169, 169));\r\n\t\tcomboBox.setFont(new Font(\"Sitka Subheading\", Font.BOLD | Font.ITALIC, 13));\r\n\t\tcomboBox.setModel(new DefaultComboBoxModel(new String[] {\"Adidas\", \"Nike\", \"Puma\", \"Reebok\"}));\r\n\t\tcomboBox.setBounds(122, 166, 99, 20);\r\n\t\tcontentPane.add(comboBox);\r\n\t\t\r\n\t\tJComboBox comboBox_1 = new JComboBox();\r\n\t\tcomboBox_1.setForeground(SystemColor.controlText);\r\n\t\tcomboBox_1.setBackground(new Color(169, 169, 169));\r\n\t\tcomboBox_1.setFont(new Font(\"Sitka Text\", Font.BOLD | Font.ITALIC, 13));\r\n\t\tcomboBox_1.setModel(new DefaultComboBoxModel(new String[] {\"Homme\", \"Femme\"}));\r\n\t\tcomboBox_1.setBounds(122, 113, 99, 20);\r\n\t\tcontentPane.add(comboBox_1);\r\n\t\t\r\n\t\tJLabel lblNewLabel_6 = new JLabel(\"(Dinars)\");\r\n\t\tlblNewLabel_6.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_6.setFont(new Font(\"Tahoma\", Font.BOLD, 13));\r\n\t\tlblNewLabel_6.setBounds(205, 328, 63, 14);\r\n\t\tcontentPane.add(lblNewLabel_6);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Ajouter\");\r\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 13));\r\n\t\tbtnNewButton.setBackground(new Color(30, 144, 255));\r\n\t\tbtnNewButton.setForeground(new Color(255, 255, 255));\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tString genre = comboBox_1.getSelectedItem().toString();\r\n\t\t\t\tString marque = comboBox.getSelectedItem().toString();\r\n\t\t\t\tString couleur = textField_2.getText().toString();\r\n\t\t\t\tString pointure = textField_3.getText().toString();\r\n\t\t\t\tfloat prix = Float.parseFloat(textField_4.getText());\r\n\t\t\t\t\r\n\t\t\t\ttry { \r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!couleur.equals(\"\") && !pointure.equals(\"\") && !String.valueOf(prix).equals(\"\")) \r\n\t\t\t\t\t{\t\r\n\t\t\t\t\t\tString sql=\"insert into produit (genre, marque, couleur, pointure, prix, image) values ( ? , ? , ? , ? , ? , ?)\";\r\n\t\t\t\t\t\tInputStream imgg = new FileInputStream(new File(s));\r\n\t\t\t\t\t\tprepared = cnx.prepareStatement(sql);\r\n\t\t\t\t\t\tprepared.setString(1, genre);\r\n\t\t\t\t\t\tprepared.setString(2, marque);\r\n\t\t\t\t\t\tprepared.setString(3, couleur);\r\n\t\t\t\t\t\tprepared.setString(4, pointure);\r\n\t\t\t\t\t\tprepared.setFloat(5, prix);\t\r\n\t\t\t\t\t\tprepared.setBlob(6, imgg);\r\n\t\t\t\t\t prepared.execute();\r\n\t\t\t\t\t\r\n\t\t\t\t JOptionPane.showMessageDialog(null,\"Produit Ajouté :D \");\r\n\t\t\t\t MenuAdmin obj = new MenuAdmin();\r\n\t\t\t\t obj.setLocationRelativeTo(null);\r\n\t\t\t\t\t obj.setVisible(true);\r\n\t\t\t\t\t setVisible(false);\r\n\t\t\t\t\t \r\n\t\t\t\t\t }\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (SQLException | FileNotFoundException e1) {\r\n\t\t\t\t\t\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(23, 406, 99, 39);\r\n\t\tcontentPane.add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnNewButton_1 = new JButton(\"Supprimer\");\r\n\t\tbtnNewButton_1.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 13));\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tint ligne = table.getSelectedRow();\r\n\t\t\t\t\r\n\t\t\t\tif(ligne == -1 )\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Sélectionnez un Produit !\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse {\r\n\t\t\t\t\t\r\n\t\t\t\t\tString id4=table.getModel().getValueAt(ligne, 0).toString();\r\n\t\t\t\t\t\r\n\t\t\t\t\tString sql = \"delete from produit where id = '\"+id4+\"' \";\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tprepared = cnx.prepareStatement(sql);\r\n\t\t\t\t\t prepared.execute();\r\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"Produit Supprimé !\");\r\n\t\t\t\t\t \r\n\t\t\t\t\t MenuAdmin obj = new MenuAdmin();\r\n\t\t\t\t\t\t obj.setVisible(true);\r\n\t\t\t\t\t\t obj.setLocationRelativeTo(null);\r\n\t\t\t\t\t\t setVisible(false);\r\n\t\t\t\t\t \r\n\t\t\t\t\t \r\n\t\t\t\t\t \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t}}\r\n\t\t});\r\n\t\tbtnNewButton_1.setBackground(new Color(255, 0, 0));\r\n\t\tbtnNewButton_1.setForeground(new Color(255, 255, 255));\r\n\t\tbtnNewButton_1.setBounds(288, 406, 105, 39);\r\n\t\tcontentPane.add(btnNewButton_1);\r\n\t\t\r\n\t\tJButton btnNewButton_2 = new JButton(\"Modifier\");\r\n\t\tbtnNewButton_2.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 13));\r\n\t\tbtnNewButton_2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tint ligne = table.getSelectedRow();\r\n\t\t\t\t\r\n\t\t\t\tif(ligne == -1 )\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Sélectionnez un Produit !\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse {\r\n\t\t\t\t\t\r\n\t\t\t\t\tString id4=table.getModel().getValueAt(ligne, 0).toString();\r\n\t\t\t\t\t\r\n\t\t\t\t\tString sql = \"Update produit set genre = ? , marque = ? , couleur = ? , pointure = ? , prix = ? , image = ? where id = '\"+id4+\"' \";\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tInputStream in = new FileInputStream(new File(s));\r\n\t\t\t\t\t\tprepared = cnx.prepareStatement(sql);\r\n\t\t\t\r\n\t\t\t\t\t\tprepared.setString(1, comboBox_1.getSelectedItem().toString());\r\n\t\t\t\t\t\tprepared.setString(2, comboBox.getSelectedItem().toString());\r\n\t\t\t\t\t\tprepared.setString(3, textField_2.getText().toString());\r\n\t\t\t\t\t\tprepared.setString(4, textField_3.getText().toString());\r\n\t\t\t\t\t\tprepared.setFloat(5, Float.parseFloat(textField_4.getText()));\t\r\n\t\t\t\t\t\tprepared.setBlob(6, in);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t prepared.execute();\r\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"Produit Modifié !\");\r\n\t\t\t\t\t \r\n\t\t\t\t\t \r\n\t\t\t\t\t \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (SQLException | FileNotFoundException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_2.setBackground(new Color(30, 144, 255));\r\n\t\tbtnNewButton_2.setForeground(new Color(255, 255, 255));\r\n\t\tbtnNewButton_2.setBounds(156, 406, 99, 39);\r\n\t\tcontentPane.add(btnNewButton_2);\r\n\t\t\r\n\t\tJScrollPane scrollPane = new JScrollPane();\r\n\t\tscrollPane.setViewportBorder(new MatteBorder(2, 2, 2, 2, (Color) Color.BLUE));\r\n\t\tscrollPane.setEnabled(false);\r\n\t\tscrollPane.setBounds(474, 78, 350, 422);\r\n\t\tcontentPane.add(scrollPane);\r\n\t\t\r\n\t\ttable = new JTable();\r\n\t\ttable.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\t\r\n\t\t\t\tint ligne=table.getSelectedRow();\r\n\t\t\t\tString id2=table.getModel().getValueAt(ligne, 0).toString();\r\n\t\t\t\tString sql= \"SELECT * from produit where id = '\"+id2+\"'\";\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tprepared = cnx.prepareStatement(sql);\r\n\t\t\t\t\tresultat = prepared.executeQuery();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(resultat.next()) {\r\n\t\t\t\t\t\tcomboBox_1.setSelectedItem(resultat.getString(\"genre\"));\r\n\t\t\t\t\t\tcomboBox.setSelectedItem(resultat.getString(\"marque\"));\r\n\t\t\t\t\t\ttextField_2.setText(resultat.getString(\"couleur\"));\r\n\t\t\t\t\t\ttextField_3.setText(resultat.getString(\"pointure\"));\r\n\t\t\t\t\t\ttextField_4.setText(String.valueOf(resultat.getFloat(\"prix\")));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbyte[] img = resultat.getBytes(\"image\");\r\n\t\t\t\t\t\tImageIcon image = new ImageIcon(img);\r\n\t\t\t\t\t\tjava.awt.Image im = image.getImage();\r\n\t\t\t\t\t\tjava.awt.Image myImg = im.getScaledInstance(lblNewLabel_7.getWidth(), lblNewLabel_7.getHeight(), java.awt.Image.SCALE_SMOOTH);\r\n\t\t\t\t\t\tImageIcon imggg = new ImageIcon(myImg);\r\n\t\t\t\t\t\tlblNewLabel_7.setIcon(imggg);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttable.setModel(new DefaultTableModel(\r\n\t\t\tnew Object[][] {\r\n\t\t\t},\r\n\t\t\tnew String[] {\r\n\t\t\t\t\"id_prod\",\"Genre\", \"Marque\", \"Couleur\", \"Pointure\", \"Prix\"\r\n\t\t\t}\r\n\t\t));\r\n\t\tscrollPane.setViewportView(table);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tJButton btnNewButton_3 = new JButton(\"Parcourir\");\r\n\t\tbtnNewButton_3.setBackground(new Color(135, 206, 235));\r\n\t\tbtnNewButton_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tbtnNewButton_3.setForeground(new Color(0, 0, 0));\r\n\t\tbtnNewButton_3.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\t\t\tfileChooser.setCurrentDirectory(new File(\"D:\"));\r\n\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"IMAGE\", \"jpg\",\"png\",\"gif\");\r\n\t\t\t\tfileChooser.addChoosableFileFilter(filter);\r\n\t\t\t\tint result = fileChooser.showSaveDialog(null);\r\n\t\t\t\t\r\n\t\t\t\tif(result == JFileChooser.APPROVE_OPTION)\r\n\t\t\t\t{\r\n\t\t\t\t\tFile selectedfile = fileChooser.getSelectedFile();\r\n\t\t\t\t\tString path = selectedfile.getAbsolutePath();\r\n\t\t\t\t\tImageIcon myImage = new ImageIcon(path);\r\n\t\t\t\t\tjava.awt.Image img = myImage.getImage();\r\n\t\t\t\t\tjava.awt.Image newImage = img.getScaledInstance(lblNewLabel_7.getWidth(), \r\n\t\t\t\t\t\t\tlblNewLabel_7.getHeight(), java.awt.Image.SCALE_SMOOTH);\r\n\t\t\t\t\tImageIcon finalImg = new ImageIcon(newImage);\r\n\t\t\t\t\tlblNewLabel_7.setIcon(finalImg);\r\n\t\t\t\t\ts = path ;\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tif(result == JFileChooser.CANCEL_OPTION)\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"t'as Rien choisi\");\r\n\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\tJButton btnNewButton_4 = new JButton(\"Menu\");\r\n\t\tbtnNewButton_4.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tMenuAdmin obj = new MenuAdmin();\r\n\t\t\t\t obj.setVisible(true);\r\n\t\t\t\t obj.setLocationRelativeTo(null);\r\n\t\t\t\t setVisible(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_4.setForeground(new Color(255, 255, 255));\r\n\t\tbtnNewButton_4.setBackground(new Color(255, 0, 0));\r\n\t\tbtnNewButton_4.setBounds(0, 23, 89, 23);\r\n\t\tcontentPane.add(btnNewButton_4);\r\n\t\tbtnNewButton_3.setBounds(254, 256, 210, 39);\r\n\t\tcontentPane.add(btnNewButton_3);\r\n\t\t\r\n\t\tJLabel lblNewLabel_8 = new JLabel(\"Table des produits\");\r\n\t\tlblNewLabel_8.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 13));\r\n\t\tlblNewLabel_8.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_8.setBounds(612, 48, 135, 20);\r\n\t\tcontentPane.add(lblNewLabel_8);\r\n\t\t\r\n\t\tJLabel label = new JLabel(\"\");\r\n\t\tlabel.setIcon(new ImageIcon(\"C:\\\\Users\\\\Ahmed\\\\Desktop\\\\Projects\\\\App_JAVA\\\\images\\\\c.jpg\"));\r\n\t\tlabel.setBounds(0, 0, 834, 511);\r\n\t\tcontentPane.add(label);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString sql= \"SELECT * from produit\" ;\r\n\t\ttry {\r\n\t\t\tprepared = cnx.prepareStatement(sql);\r\n\t\t\tresultat=prepared.executeQuery(sql);\r\n\t\t\t\r\n\t\t\twhile(resultat.next()) {\r\n\t\t\t\tint id0=resultat.getInt(\"id\");\r\n\t\t\t\tString id1=Integer.toString(id0);\r\n\t\t\t\tString Genre1=resultat.getString(\"genre\");\r\n\t\t\t\tString Marque1=resultat.getString(\"marque\");\r\n\t\t\t\tString Couleur1=resultat.getString(\"couleur\");\r\n\t\t\t\tString Pointure1=resultat.getString(\"pointure\");\r\n\t\t\t\tfloat Prix1=resultat.getFloat(\"prix\");\r\n\t\t\t\tString pr=Float.toString(Prix1);\r\n\t\t\t\tDefaultTableModel md = (DefaultTableModel)table.getModel();\r\n\t\t\t\tmd.addRow(new Object[]{id1,Genre1,Marque1,Couleur1,Pointure1,pr});\r\n\t\t\t}\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\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t}", "public void agregarMarcayPeso() {\n int id_producto = Integer.parseInt(TextCodProduct.getText());\n String Descripcion_prod = TextDescripcion.getText();\n double Costo_Venta_prod = Double.parseDouble(TextCostoproduc.getText());\n double Precio_prod = Double.parseDouble(TextPrecio.getText());\n int Codigo_proveedor = ((Proveedor) LitsadeProovedores.getSelectedItem()).getIdProveedor();\n double ivaproducto = Double.parseDouble(txtIvap.getText());\n Object tipodelproducto = jcboxTipoProducto.getSelectedItem();\n\n //Captura el tipo del producto\n //Se crea un nuevo objeto de tipo producto para hacer el llamado al decorador\n Producto p;\n //Switch para Ingresar al tipo de producto deseado \n switch ((String) tipodelproducto) {\n case \"Alimentos\":\n log(String.valueOf(tipodelproducto));\n //Creamos un nuevo producto de tipo en este caso comida y le enviamois\n //el id y el tipo de producto\n p = new Producto_tipo_comida(id_producto, (String) tipodelproducto);\n //el producto p , ahora tendra una adicion de marca del producto\n //ingreso\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n //ingreso\n break;\n case \"Ropa\":\n p = new Producto_tipo_ropa(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Automotor\":\n p = new Producto_tipo_automotor(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Electronico\":\n p = new Producto_tipo_electronico(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n }\n\n }", "@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }", "public ViewProductJPanel(JPanel userProcessContainer,Product product) {\n initComponents();\n this.userProcessContainer=userProcessContainer;\n this.product=product;\n txtname.setText(product.getProductname());\n txtfloor.setText(String.valueOf(product.getFloorprice()));\n txttarget.setText(String.valueOf(product.getTargetprice()));\n txtceiling.setText(String.valueOf(product.getCeilingprice()));\n txtid.setText(String.valueOf(product.getProductid()));\n txtavail.setText(String.valueOf(product.getAvail()));\n \n}", "public DAOTablaMenuProductos() {\r\n\t\trecursos = new ArrayList<Object>();\r\n\t}", "public producto_interfaz(Producto producto) {\n initComponents();\n jSpinner1.setEnabled(false);\n this.producto=producto;\n titulo.setText(producto.getNombre());\n peso.setText(Double.toString(producto.getPeso()));\n precio.setText(Double.toString(producto.getPrecio()));\n \n }", "protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }", "@Override\r\n\tint setLayout() {\n\t\treturn R.layout.product_bigimg;\r\n\t}", "@Override\n public View getView(int position, View convertView,ViewGroup parent){\n View element = convertView;\n Vista vista;\n\n if(element == null){\n LayoutInflater inflater = context.getLayoutInflater();\n element = inflater.inflate(R.layout.listitem_shop,null);\n\n vista = new Vista();\n vista.lblShop = (TextView) element.findViewById(R.id.txtNomTasca);\n vista.quantity = (TextView)element.findViewById(R.id.txtQuantitat);\n\n element.setTag(vista);\n\n } else{\n vista = (Vista) element.getTag();\n }\n\n vista.lblShop.setText(dades.get(position).getProductName());\n vista.quantity.setText(dades.get(position).getQuantity()+\"\");\n\n\n return element;\n\n }", "public product() {\n initComponents();\n }", "void Comunicasiones() { \t\r\n /* Comunicacion */\r\n Button dComunicacion01 = new Button();\r\n dComunicacion01.setWidth(\"73px\");\r\n dComunicacion01.setHeight(\"47px\");\r\n dComunicacion01.setIcon(ByosImagenes.icon[133]);\r\n dComunicacion01.setStyleName(EstiloCSS + \"BotonComunicacion\");\r\n layout.addComponent(dComunicacion01, \"left: 661px; top: 403px;\"); \r\n\r\n /* Comunicacion */\r\n Button iComunicacion01 = new Button();\r\n iComunicacion01.setWidth(\"73px\");\r\n iComunicacion01.setHeight(\"47px\");\r\n iComunicacion01.setIcon(ByosImagenes.icon[132]);\r\n iComunicacion01.setStyleName(EstiloCSS + \"BotonComunicacion\");\r\n layout.addComponent(iComunicacion01, \"left: 287px; top: 403px;\"); \r\n \r\n }", "public JuegoCarta() {\n initComponents();\n dibujarPuntuaciones();\n }", "public void addProduct(ArticleInq artInq) {\n\t\tif (artInq != null) {\n\t\t\tdt.setVisibility(View.INVISIBLE);\n\t\t\tPriceInquiery priceInquiery = artInq.getPriceInquiery();\n\t\t\ttry {\n\n\t\t\t\tif (ArticleInq.IsProductFound) {\n\n\t\t\t\t\tpt.setText(CommonTask.toCamelCase(priceInquiery.text, \" \"));\n\t\t\t\t\tif (priceInquiery.text2 != null) {\n\t\t\t\t\t\tpt2.setText(priceInquiery.text2);\n\t\t\t\t\t}\n\t\t\t\t\tString[] vals = String.valueOf(priceInquiery.price)\n\t\t\t\t\t\t\t.replace('.', ':').split(\":\");\n\t\t\t\t\ttr.setText(vals[0]);\n\t\t\t\t\ttf.setText(vals[1].length() > 1 ? vals[1] : vals[1] + \"0\");\n\t\t\t\t\tft.setText(String.valueOf(priceInquiery.contents)\n\t\t\t\t\t\t\t+ priceInquiery.contentsdesc + \" (\"\n\t\t\t\t\t\t\t+ priceInquiery.priceperdesc + \"-pris\" + \" \"\n\t\t\t\t\t\t\t+ CommonTask.getString(priceInquiery.priceper)\n\t\t\t\t\t\t\t+ \")\");\n\t\t\t\t\tif (priceInquiery.getDiscount().quantity > 0) {\n\t\t\t\t\t\tDiscount dis = priceInquiery.getDiscount();\n\t\t\t\t\t\tdt.setText(String.valueOf(dis.quantity) + \" \"\n\t\t\t\t\t\t\t\t+ dis.text + \" \" + Math.round(dis.amount));\n\t\t\t\t\t\tdt.setVisibility(View.VISIBLE);\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tpt.setText(getString(R.string.productError));\n\t\t\t\t\tpt2.setText(\"\");\n\t\t\t\t\ttr.setText(\"\");\n\t\t\t\t\ttf.setText(\"\");\n\t\t\t\t\tft.setText(\"\");\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tpt.setText(getString(R.string.productError));\n\t\t\t\tpt2.setText(\"\");\n\t\t\t\ttr.setText(\"\");\n\t\t\t\ttf.setText(\"\");\n\t\t\t\tft.setText(\"\");\n\t\t\t}\n\n\t\t\tproductDetailsLayOut.setVisibility(View.VISIBLE);\n\t\t\tproductDetailsLayOut.startAnimation(animTop);\n\t\t\t\n\t\t\tmHandler.postDelayed(mWaitRunnable, PRODUCT_DETAILS_DELAY_MS);\n\t\t\tai.setBackgroundDrawable(null);\n\t\t\tif (ArticleInq.IsProductFound) {\n\t\t\t\tBitmapDrawable image = getArticleImage(artInq.EAN);\n\t\t\t\tif (image != null) {\n\t\t\t\t\tai.setBackgroundDrawable(image);\n\t\t\t\t} else {\n\t\t\t\t\tCommonTask.setAsyncImageBackground(ai, artInq.EAN);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static void VeureProductes (BaseDades bd) {\n ArrayList <Producte> llista = new ArrayList<Producte>();\n llista = bd.consultaPro(\"SELECT * FROM PRODUCTE\");\n if (llista != null)\n for (int i = 0; i<llista.size();i++) {\n Producte p = (Producte) llista.get(i);\n System.out.println(\"ID=>\"+p.getIdproducte()+\": \"\n +p.getDescripcio()+\"* Estoc: \"+p.getStockactual()\n +\"* Pvp: \"+p.getPvp()+\" Estoc Mínim: \"\n + p.getStockminim());\n }\n }", "public ViewProductInfo() {\n initComponents();\n }", "private void upview(ProdInfo data) {\n\t\t\n\t\tDecimalFormat df = new DecimalFormat(\"###.00\"); \n\t\tString price = \"\";\n\t\ttry {\n\t\t\tprice = df.format(Double.parseDouble(data.price));\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tprice = \"0.00\";\n\t\t}\n\t\tname.setText(data.name);\n\t\tpic.setText(\"¥\"+price);\n\t\tmodo.setText(data.model);\n\t\tcontent.setText(data.description);\n\t\t\n\t\tlist = new ArrayList<Banner>();\n\t\tif(!TextUtils.isEmpty(data.photo)){\n\t\t\tString[] shop_photos = data.photo.split(\",\");\n\t\t\tfor (int i = 0; i < shop_photos.length; i++) {\n\t\t\t\tBanner b = new Banner();\n\t\t\t\tb.banner_imgurl = shop_photos[i];\n\t\t\t\tlist.add(b);\n\t\t\t}\n\t\t}\n\t\tif(list!=null&&list.size()>0){\n\t\t\trealizeFunc(list);\n\t\t}\n\t}", "public String menuProducto() {\n\n\t\tIcon icono = new ImageIcon(getClass().getResource(\"../img/producto.png\"));\n\n\t\tString[] opciones = { \"Mostrar todos los valores\", \"Borrar Producto\", \"Crear Producto\", \"Modificar Producto\",\n\t\t\t\t\"Buscar por nombre\", \"Buscar por clave\", \"Salir\" };\n\n\t\tString opcionElegida = (String) JOptionPane.showInputDialog(null, \"¿Que deseas realizar?\", \"Tabla Producto\",\n\t\t\t\tJOptionPane.QUESTION_MESSAGE, icono, opciones, opciones[0]);\n\n\t\treturn opcionElegida;\n\n\t}", "private void RptStockItem() {\n try {\n pnUmum.removeAll();\n pnUmum.repaint();\n pnUmum.revalidate();\n String sql = \"SELECT `ProdName`,`SellPrice`,`CostPrice`,`Netto`,`Stock`,ProdUnit.UnitName AS Unit FROM `Products` \"\n + \"INNER JOIN ProdUnit ON Products.UnitID = ProdUnit.UnitID ORDER BY Products.ProductID ASC\";\n JRDesignQuery jQuery = new JRDesignQuery();\n jQuery.setText(sql);\n JasperDesign jDesign = JRXmlLoader.load(System.getProperty(\"user.dir\") + \"/src/com/resources/jrxml/RptStokBarang.jrxml\");\n jDesign.setQuery(jQuery);\n JasperReport jReport = JasperCompileManager.compileReport(jDesign);\n JasperPrint jPrint = JasperFillManager.fillReport(jReport, null, new ConfigDB().getConnection());\n JRViewer jView = new JRViewer(jPrint);\n pnUmum.setLayout(new BorderLayout());\n jView.setFitPageZoomRatio();\n jView.setFont(new java.awt.Font(\"Arial\", 0, 14));\n pnUmum.add(jView);\n } catch (JRException ex) {\n JOptionPane.showMessageDialog(null, \"Terjadi Error Pada:\\n\" + ex.toString(), \"Kesalahan\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private void setLayout() {\n\tHorizontalLayout main = new HorizontalLayout();\n\tmain.setMargin(true);\n\tmain.setSpacing(true);\n\n\t// vertically divide the right area\n\tVerticalLayout left = new VerticalLayout();\n\tleft.setSpacing(true);\n\tmain.addComponent(left);\n\n\tleft.addComponent(openProdManager);\n\topenProdManager.addListener(new Button.ClickListener() {\n\t public void buttonClick(ClickEvent event) {\n\t\tCustomerWindow productManagerWin = new CustomerWindow(CollectorManagerApplication.this);\n\t\tproductManagerWin.addListener(new Window.CloseListener() {\n\t\t public void windowClose(CloseEvent e) {\n\t\t\topenProdManager.setEnabled(true);\n\t\t }\n\t\t});\n\n\t\tCollectorManagerApplication.this.getMainWindow().addWindow(productManagerWin);\n\t\topenProdManager.setEnabled(false);\n\t }\n\t});\n\n\t\n\tsetMainWindow(new Window(\"Sistema de Cobranzas\", main));\n\n }", "public void agregarDetalleProducto() {\n //Creamos instancia de ProductoDao\n ProductoDao productoDao = new ProductoDaoImp();\n try {\n //obtenemos la instancia del producto\n producto = productoDao.obtenerProductoPorCodigoBarra(productoSeleccionado);\n if (cantidadProductoDlg != null && cantidadProductoDlg > 0) {\n //agregando detalle a la Lista de Detalle\n listDetalle.add(new Detallefactura(null, this.producto.getCodBarra(),\n this.producto.getNombreProducto(), cantidadProductoDlg, this.producto.getPrecioVenta(),\n (this.producto.getPrecioVenta().multiply(new BigDecimal(cantidadProductoDlg)))));\n \n //Seteamos el producto al item del detalle\n //Accedemos al ultimo Item agregado a la lista\n listDetalle.get(listDetalle.size()-1).setCodProducto(producto);\n \n //Seteamos la factura al item del detalle\n //Accedemos al ultimo Item agregado a la lista \n // listDetalle.get(listDetalle.size()-1).setCodFactura(factura);\n \n //Limpiamos la variable 'cantidadProducto'\n cantidadProductoDlg = null;\n //Invocamos al metodo que calcula el Total de la Venta para la factura\n totalFacturaVenta();\n\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\", \"Producto agregado al detalle!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }else{\n //Limpiamos la variable 'cantidadProducto'\n cantidadProductoDlg = null;\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR , \"Incorrecto\", \"La cantidad es incorrecta!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public VistaProductos() {\n setUndecorated(true);\n initComponents();\n ValidadSoloNumeros(TextCodProduct);\n ValidadCaracteres(TextDescripcion);\n ValidadSoloNumeros(TextPrecio);\n ValidadSoloNumeros(TextCostoproduc);\n ValidadSoloNumeros(txtIvap);\n cn = Conexion.getConn();\n cargar();\n\n LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(cc.listaProvee().toArray()));\n\n obj = ControllerSql.getInstancia();\n proveedores = cc.listaProvee();\n // LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(proveedores.toArray()));\n LitsadeProovedores.setSelectedIndex(-1);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane2 = new javax.swing.JScrollPane();\n jPanel3 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n ComprarTodo = new javax.swing.JButton();\n NombreCategoria = new javax.swing.JLabel();\n ImagenProductoPrincipal = new javax.swing.JLabel();\n AgregarAlaCesta = new javax.swing.JButton();\n Precio = new javax.swing.JLabel();\n Descripcion = new javax.swing.JLabel();\n Nombre = new javax.swing.JLabel();\n Existencias = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n JLCML = new javax.swing.JLabel();\n Categoria1 = new javax.swing.JButton();\n Categoria2 = new javax.swing.JButton();\n Categoria3 = new javax.swing.JButton();\n Categoria4 = new javax.swing.JButton();\n SiguientesCategorias = new javax.swing.JButton();\n Categoria5 = new javax.swing.JButton();\n AnterioresCategorias = new javax.swing.JButton();\n Cantidad = new javax.swing.JLabel();\n Quitar = new javax.swing.JButton();\n Agregar = new javax.swing.JButton();\n jPanel4 = new javax.swing.JPanel();\n Producto1 = new javax.swing.JButton();\n Producto2 = new javax.swing.JButton();\n SiguientesProductos = new javax.swing.JButton();\n AnterioresProductos = new javax.swing.JButton();\n DescripcionP1 = new javax.swing.JLabel();\n DescripcionP2 = new javax.swing.JLabel();\n Producto3 = new javax.swing.JButton();\n Producto4 = new javax.swing.JButton();\n DescripcionP3 = new javax.swing.JLabel();\n DescripcionP4 = new javax.swing.JLabel();\n Producto5 = new javax.swing.JButton();\n Producto6 = new javax.swing.JButton();\n DescripcionP5 = new javax.swing.JLabel();\n DescripcionP6 = new javax.swing.JLabel();\n Producto7 = new javax.swing.JButton();\n Producto8 = new javax.swing.JButton();\n DescripcionP7 = new javax.swing.JLabel();\n DescripcionP8 = new javax.swing.JLabel();\n Imagen2 = new javax.swing.JButton();\n Imagen4 = new javax.swing.JButton();\n Imagen1 = new javax.swing.JButton();\n EliminarCesta = new javax.swing.JButton();\n Imagen3 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setBackground(new java.awt.Color(254, 254, 254));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosed(java.awt.event.WindowEvent evt) {\n formWindowClosed(evt);\n }\n });\n\n jPanel3.setBackground(new java.awt.Color(254, 254, 254));\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 342, Short.MAX_VALUE)\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 629, Short.MAX_VALUE)\n );\n\n jScrollPane2.setViewportView(jPanel3);\n\n jPanel1.setBackground(new java.awt.Color(254, 254, 254));\n\n ComprarTodo.setBackground(new java.awt.Color(255, 255, 255));\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(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(339, 339, 339)\n .addComponent(NombreCategoria)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(ComprarTodo, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(21, 21, 21))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ComprarTodo, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(NombreCategoria)))\n );\n\n ImagenProductoPrincipal.setBackground(new java.awt.Color(254, 254, 254));\n\n AgregarAlaCesta.setText(\"Añadir a la cesta\");\n\n Precio.setText(\"Precio: \");\n\n Descripcion.setText(\"Descripción:\");\n\n Nombre.setText(\"Nombre:\");\n\n Existencias.setText(\"Existencias:\");\n\n jPanel2.setBackground(new java.awt.Color(254, 254, 254));\n\n Categoria1.setBackground(new java.awt.Color(254, 254, 254));\n\n Categoria2.setBackground(new java.awt.Color(254, 254, 254));\n\n Categoria3.setBackground(new java.awt.Color(254, 254, 254));\n\n Categoria4.setBackground(new java.awt.Color(254, 254, 254));\n\n SiguientesCategorias.setText(\">>\");\n\n Categoria5.setBackground(new java.awt.Color(254, 254, 254));\n\n AnterioresCategorias.setText(\"<<\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(0, 54, Short.MAX_VALUE)\n .addComponent(AnterioresCategorias)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(SiguientesCategorias)\n .addGap(53, 53, 53))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(Categoria4, javax.swing.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)\n .addComponent(Categoria1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Categoria2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Categoria3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Categoria5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(JLCML, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(JLCML, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(Categoria1, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Categoria2, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Categoria3, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Categoria4, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Categoria5, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(SiguientesCategorias)\n .addComponent(AnterioresCategorias))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n Cantidad.setText(\"1\");\n\n Quitar.setText(\"-\");\n\n Agregar.setText(\"+\");\n\n jPanel4.setBackground(new java.awt.Color(254, 254, 254));\n\n Producto1.setBackground(new java.awt.Color(254, 254, 254));\n Producto1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Producto1ActionPerformed(evt);\n }\n });\n\n Producto2.setBackground(new java.awt.Color(254, 254, 254));\n\n SiguientesProductos.setText(\">>\");\n\n AnterioresProductos.setText(\"<<\");\n\n DescripcionP1.setText(\"_______________\");\n\n DescripcionP2.setText(\"______________\");\n\n Producto3.setBackground(new java.awt.Color(254, 254, 254));\n Producto3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Producto3ActionPerformed(evt);\n }\n });\n\n Producto4.setBackground(new java.awt.Color(254, 254, 254));\n\n DescripcionP3.setText(\"______________\");\n\n DescripcionP4.setText(\"______________\");\n\n Producto5.setBackground(new java.awt.Color(254, 254, 254));\n Producto5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Producto5ActionPerformed(evt);\n }\n });\n\n Producto6.setBackground(new java.awt.Color(254, 254, 254));\n\n DescripcionP5.setText(\"______________\");\n\n DescripcionP6.setText(\"______________\");\n\n Producto7.setBackground(new java.awt.Color(254, 254, 254));\n Producto7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Producto7ActionPerformed(evt);\n }\n });\n\n Producto8.setBackground(new java.awt.Color(254, 254, 254));\n\n DescripcionP7.setText(\"______________\");\n\n DescripcionP8.setText(\"______________\");\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Producto3, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(DescripcionP3))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(DescripcionP4)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(Producto4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Producto1, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(DescripcionP1))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(DescripcionP2)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(Producto2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Producto5, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(DescripcionP5))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(DescripcionP6)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(Producto6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(Producto7, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addComponent(AnterioresProductos)\n .addGap(25, 25, 25)))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(DescripcionP7)\n .addGap(95, 95, 95)))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(DescripcionP8)\n .addComponent(SiguientesProductos)\n .addComponent(Producto8, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Producto1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Producto2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(DescripcionP1)\n .addComponent(DescripcionP2))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(Producto3, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)\n .addComponent(Producto4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(DescripcionP3)\n .addComponent(DescripcionP4))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Producto5, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Producto6, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(DescripcionP5)\n .addComponent(DescripcionP6))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Producto7, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Producto8, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(DescripcionP7)\n .addComponent(DescripcionP8))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(AnterioresProductos)\n .addComponent(SiguientesProductos))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n Imagen2.setBackground(new java.awt.Color(254, 254, 254));\n\n Imagen4.setBackground(new java.awt.Color(254, 254, 254));\n\n Imagen1.setBackground(new java.awt.Color(254, 254, 254));\n\n EliminarCesta.setText(\"Eliminar\");\n\n Imagen3.setBackground(new java.awt.Color(254, 254, 254));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Descripcion)\n .addGroup(layout.createSequentialGroup()\n .addComponent(Quitar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Cantidad)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Agregar)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Existencias)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Nombre)\n .addComponent(Precio)\n .addComponent(AgregarAlaCesta)\n .addComponent(ImagenProductoPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, 349, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Imagen2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Imagen1, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(Imagen3, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Imagen4, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(18, 18, 18)))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(EliminarCesta)\n .addGap(27, 27, 27))))\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(ImagenProductoPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(AgregarAlaCesta)\n .addGap(18, 18, 18)\n .addComponent(Nombre)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Precio))\n .addGroup(layout.createSequentialGroup()\n .addComponent(Imagen1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Imagen2, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(16, 16, 16)\n .addComponent(Imagen3, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(Imagen4, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Existencias)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Agregar)\n .addComponent(Quitar)\n .addComponent(Cantidad))\n .addGap(24, 24, 24)\n .addComponent(Descripcion)\n .addContainerGap())\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 608, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(EliminarCesta)\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n\n pack();\n }", "public AdmAddProduct() {\n initComponents();\n }", "public void handleAddProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(false);\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Add Products\");\n stage.setScene(new Scene(root));\n stage.show();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tView v = convertView;\r\n\t\tItemProducto producto = (ItemProducto)this.getItem(position);\r\n\t\tLayoutInflater in = activity.getLayoutInflater();\r\n\t\r\n\t\t\r\n\t\tif(v == null)//Si el item no esta renderizado\r\n\t\t{\r\n\t\t\t//LayoutInflater inflater = (LayoutInflater) activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n v = in.inflate(R.layout.adaptador_productos,null);\r\n\t\t\t//v = in.inflate(R.layout.adaptador_productos, null);\r\n\t\t}\r\n\t\t\r\n\t\t//Se referencian los componenetes\r\n\t\tTextView titulo = (TextView)v.findViewById(R.id.productos_titulo);\r\n\t\tTextView subtitulo = (TextView)v.findViewById(R.id.productos_subtitulo);\r\n\t\tImageView imagen = (ImageView)v.findViewById(R.id.productos_imagen);\r\n\t\t//se carga cada producto dentro de la grilla\r\n\t\t\r\n\t\ttitulo.setText(producto.getTitulo());\r\n\t\tsubtitulo.setText(producto.getSubTitulo());\r\n\t\tif(imagen!=null)\r\n\t\t\timagen.setImageResource(producto.getImage());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn v;\r\n\t}", "public lisProducto(int modo) {\n initComponents();\n setModo(modo);\n setFiltro(\"\");\n }", "public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }", "public void printProduct() {\n System.out.println(\"nom_jeu : \" + name);\n System.out.println(\"price : \" + price);\n System.out.println(\"uniqueID : \" + identifier);\n System.out.println(\"stock : \" + stock);\n System.out.println(\"image : \" + image);\n System.out.println(\"genre : \" + genre);\n System.out.println(\"plateforme : \" + platform);\n System.out.println();\n }", "public ConsultaPNporproducto() {\n initComponents();\n ListarPro();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_primeiro, container, false);\n\n initViews(view);\n\n botaoAndroid.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n SistemaOperacional sistemaOperacional = new SistemaOperacional(\"ANDROID\", R.drawable.android);\n\n comunicador.envioDadosSistemaOperaciona(sistemaOperacional);\n\n }\n });\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_edit_bebida, container, false);\n\n reciclador =(RecyclerView)view.findViewById(R.id.reciclador);\n layout = new GridLayoutManager(getActivity(),2);\n reciclador.setLayoutManager(layout);\n adaptador = new AdaptadorEditBebida(getContext(),getArguments().getInt(\"TIPO\"));\n Principal ma = (Principal) getActivity();\n // 0 nombre de producto\n // 1 Precio del producto\n // 2 cantidad del producto\n // 3 imagen de producto\n Cursor c;\n if(getArguments().getInt(\"TIPO\")==1){\n c = ma.datos.getCursorQuery(\"SELECT producto.nombre, producto.precio, producto.cantidad,producto.imagen,producto.id \" +\n \"FROM producto\");\n }else if(getArguments().getInt(\"TIPO\")==2){\n c = ma.datos.getCursorQuery(\"SELECT insumo.nombre, insumo.cantidad,insumo.imagen,insumo.id \" +\n \"FROM insumo\");\n }else {\n c = null;\n }\n\n adaptador.swapCursor(c);\n reciclador.setAdapter(adaptador);\n return view;\n }", "private void buscarProducto() {\n EntityManagerFactory emf= Persistence.createEntityManagerFactory(\"pintureriaPU\");\n List<Almacen> listaproducto= new FacadeAlmacen().buscarxnombre(jTextField1.getText().toUpperCase());\n DefaultTableModel modeloTabla=new DefaultTableModel();\n modeloTabla.addColumn(\"Id\");\n modeloTabla.addColumn(\"Producto\");\n modeloTabla.addColumn(\"Proveedor\");\n modeloTabla.addColumn(\"Precio\");\n modeloTabla.addColumn(\"Unidades Disponibles\");\n modeloTabla.addColumn(\"Localizacion\");\n \n \n for(int i=0; i<listaproducto.size(); i++){\n Vector vector=new Vector();\n vector.add(listaproducto.get(i).getId());\n vector.add(listaproducto.get(i).getProducto().getDescripcion());\n vector.add(listaproducto.get(i).getProducto().getProveedor().getNombre());\n vector.add(listaproducto.get(i).getProducto().getPrecio().getPrecio_contado());\n vector.add(listaproducto.get(i).getCantidad());\n vector.add(listaproducto.get(i).getLocalizacion());\n modeloTabla.addRow(vector);\n }\n jTable1.setModel(modeloTabla);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel4 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n txtNombre = new javax.swing.JTextField();\n txtDescripcion = new javax.swing.JTextField();\n txtTalla = new javax.swing.JComboBox<>();\n txtColor = new javax.swing.JTextField();\n txtDisponible = new javax.swing.JTextField();\n txtNombreimg = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n Id_producto = new javax.swing.JTextField();\n jButton3 = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n lblfoto = new javax.swing.JLabel();\n Ingre_img = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jPanel3 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jButton1 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem2 = new javax.swing.JMenuItem();\n jMenuItem1 = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(184, 136, 81));\n setForeground(new java.awt.Color(165, 142, 112));\n setResizable(false);\n\n jPanel4.setBackground(new java.awt.Color(251, 254, 153));\n\n jPanel1.setBackground(new java.awt.Color(202, 220, 231));\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(70, 150, 196), 1, true), \"Ingrese los Datos\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 0, 12), new java.awt.Color(70, 150, 196))); // NOI18N\n\n jLabel2.setText(\"Nombre:\");\n\n jLabel3.setText(\"Descripcion:\");\n\n jLabel4.setText(\"Numero:\");\n\n jLabel5.setText(\"Color:\");\n\n jLabel6.setText(\"Cantidad Disponible:\");\n\n txtNombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNombreActionPerformed(evt);\n }\n });\n\n txtTalla.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"...\", \"1\", \"2\", \"3\", \"4\", \"5\" }));\n\n txtDisponible.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtDisponibleActionPerformed(evt);\n }\n });\n\n txtNombreimg.setEditable(false);\n txtNombreimg.setColumns(10);\n txtNombreimg.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNombreimgActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"ID: \");\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(36, 36, 36)\n .addComponent(txtNombreimg, javax.swing.GroupLayout.PREFERRED_SIZE, 263, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(45, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtNombre)\n .addComponent(txtDescripcion)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Id_producto, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtDisponible))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel5))\n .addGap(52, 52, 52)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtColor)\n .addComponent(txtTalla, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(11, 11, 11)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtTalla, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtColor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtDisponible, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(Id_producto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(67, 67, 67)\n .addComponent(txtNombreimg, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/Expo_17/1486485588-add-create-new-math-sign-cross-plus_81186.png\"))); // NOI18N\n jButton3.setText(\"Nuevo Ingreso\");\n jButton3.setBorder(null);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jPanel2.setBackground(new java.awt.Color(202, 220, 231));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(70, 150, 196)), \"Ingrese la Imagen\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 0, 12), new java.awt.Color(70, 150, 196))); // NOI18N\n\n lblfoto.setBackground(new java.awt.Color(254, 254, 254));\n lblfoto.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(5, 2, 51)));\n\n Ingre_img.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/Expo_17/Screenshot-80_icon-icons.com_57274.png\"))); // NOI18N\n Ingre_img.setText(\"Ingrese Imagen\");\n Ingre_img.setBorder(null);\n Ingre_img.setBorderPainted(false);\n Ingre_img.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Ingre_imgActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblfoto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(63, 63, 63)\n .addComponent(Ingre_img)\n .addContainerGap(68, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(Ingre_img)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblfoto, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/Expo_17/save_78348.png\"))); // NOI18N\n jButton2.setText(\"Guardar\");\n jButton2.setBorder(null);\n jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jPanel3.setBackground(new java.awt.Color(202, 220, 231));\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(70, 150, 196)), \"Tabla Balones\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 0, 12), new java.awt.Color(70, 150, 196))); // NOI18N\n\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jTable1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jTable1MouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(jTable1);\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 541, Short.MAX_VALUE)\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addContainerGap(14, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/Expo_17/document-edit_icon-icons.com_52428.png\"))); // NOI18N\n jButton1.setText(\"Editar\");\n jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/Expo_17/ic_delete_128_28267.png\"))); // NOI18N\n jButton4.setText(\"Eliminar\");\n jButton4.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jButton3)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton4)\n .addGap(18, 18, 18)\n .addComponent(jButton2))\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n jMenu1.setText(\"Menu\");\n\n jMenuItem2.setText(\"Cambiar Usuario\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem2);\n\n jMenuItem1.setText(\"Volver\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem1);\n\n jMenuBar1.add(jMenu1);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel4, 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(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 539, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "private void addProduct() {\n String type = console.readString(\"type (\\\"Shirt\\\", \\\"Pant\\\" or \\\"Shoes\\\"): \");\n String size = console.readString(\"\\nsize: \");\n int qty = console.readInt(\"\\nQty: \");\n int sku = console.readInt(\"\\nSKU: \");\n Double price = console.readDouble(\"\\nPrice: \");\n int reorderLevel = console.readInt(\"\\nReorder Level: \");\n daoLayer.addProduct(type, size, qty, sku, price, reorderLevel);\n\n }", "private void dibujar() {\n\n\t\tdiv.setWidth(\"99%\");\n\t\tdiv.setHeight(\"99%\");\n\t\treporte.setWidth(\"99%\");\n\t\treporte.setHeight(\"99%\");\n\t\treporte.setType(type);\n\t\treporte.setSrc(url);\n\t\treporte.setParameters(parametros);\n\t\treporte.setDatasource(dataSource);\n\n\t\tdiv.appendChild(reporte);\n\n\t\tthis.appendChild(div);\n\n\t}", "public CadastroProdutoNew() {\n initComponents();\n }", "@FXML\n\t private void populateAndShowProduct(Product prod) throws ClassNotFoundException {\n\t if (prod != null) {\n\t populateProduct(prod);\n\t setProdInfoToTextArea(prod);\n\t } else {\n\t resultArea.setText(\"This product does not exist!\\n\");\n\t }\n\t }", "private void agregarProducto(HttpServletRequest request, HttpServletResponse response) throws SQLException {\n\t\tString codArticulo = request.getParameter(\"CArt\");\n\t\tString seccion = request.getParameter(\"seccion\");\n\t\tString nombreArticulo = request.getParameter(\"NArt\");\n\t\tSimpleDateFormat formatoFecha = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = formatoFecha.parse(request.getParameter(\"fecha\"));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdouble precio = Double.parseDouble(request.getParameter(\"precio\"));\n\t\tString importado = request.getParameter(\"importado\");\n\t\tString paisOrigen = request.getParameter(\"POrig\");\n\t\t// Crear un objeto del tipo producto\n\t\tProducto producto = new Producto(codArticulo, seccion, nombreArticulo, precio, fecha, importado, paisOrigen);\n\t\t// Enviar el objeto al modelo e insertar el objeto producto en la BBDD\n\t\tmodeloProductos.agregarProducto(producto);\n\t\t// Volver al listado de productos\n\t\tobtenerProductos(request, response);\n\n\t}", "private void inicializarComponentes() {\n\n\n comenzar = new JButton(devolverImagenButton(\"comenzar\", \"png\", 300, 300));\n comenzar.setRolloverIcon(devolverImagenButton(\"comenzar1\", \"png\", 300, 300));\n comenzar.setBackground(Color.WHITE);\n comenzar.setBorder(null);\n comenzar.setActionCommand(\"COMENZAR\");\n comenzar.setBounds(335, 450, 240, 100);\n add(comenzar);\n\n l1 = new JLabel();\n devolverImagenLabel(\"Bienvenido\", \"gif\", 900, 700, l1);\n l1.setBounds(0, 0, 900, 700);\n add(l1);\n\n }", "public int getIdProducto() {\n return idProducto;\n }", "public addproduct() {\n\t\tsuper();\n\t}", "public MainMenu(ProductDao dao) {\n this.dao = dao;\n initComponents();\n setLocationRelativeTo(null);\n this.setResizable(true);\n\n\n }", "private void crearComponentes(){\n\tjdpFondo.setSize(942,592);\n\t\n\tjtpcContenedor.setSize(230,592);\n\t\n\tjtpPanel.setTitle(\"Opciones\");\n\tjtpPanel2.setTitle(\"Volver\");\n \n jpnlPanelPrincilal.setBounds(240, 10 ,685, 540);\n \n }", "public PanelTableProduct(JTable tProductos, ArrayList productList) {\n\n // ToolsInterface\n InterfaceTools tools = new InterfaceTools();\n\n ModelTableProduct tmodel = new ModelTableProduct(productList);\n tProductos.setModel(tmodel);\n\n /// PanelTableProduct model = new PanelTableProduct();\n\n\n // BaseDatosProducto baseDatos = new BaseDatosProducto();\n\n // Modificar encabezado\n tProductos.getTableHeader().setReorderingAllowed(false);\n\n tProductos.getTableHeader().setBackground(tools.getColorThree());\n tProductos.getTableHeader().setForeground(tools.getColorFour());\n\n\n tProductos.getTableHeader().setFont(new Font(\"Arial\",Font.PLAIN,14));\n // tProductos.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n tProductos.setSelectionBackground(tools.getColorOne());\n\n\n // tProductos.setEnabled(false);\n tProductos.setRowHeight(20);\n\n\n // Alinear a la Izquierda columna precios e inventario\n\n DefaultTableCellRenderer alignRight = new DefaultTableCellRenderer();\n alignRight.setHorizontalAlignment(SwingConstants.RIGHT);\n tProductos.getColumnModel().getColumn(1).setCellRenderer(alignRight);\n tProductos.getColumnModel().getColumn(2).setCellRenderer(alignRight);\n\n // Edición de celdas\n\n JScrollPane scrollPane = new JScrollPane(tProductos);\n\n scrollPane.setPreferredSize(new Dimension(450,363));\n scrollPane.setViewportView(tProductos);\n\n\n add(scrollPane);\n\n }", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.show_product_root);\n\n menue();\n\n thumbNail = (NetworkImageView) findViewById(R.id.img_product_show);\n imageSliderDefault = (ImageView) findViewById(R.id.img_default_show);\n imgPlay = (ImageView) findViewById(R.id.img_play);\n mVideoView = (VideoView) findViewById(R.id.buffer);\n layVideo = (CenterLayout) findViewById(R.id.lay_video);\n\n txtView = (TextView) findViewById(R.id.txt_view_details);\n txrName = (TextView) findViewById(R.id.txt_name_details);\n txtPrice = (TextView) findViewById(R.id.txt_price_details);\n txtTeacher = (TextView) findViewById(R.id.txt_teacher_detils);\n txtDescrip = (TextView) findViewById(R.id.txt_description_detils);\n\n btnRezomeh = (Button) findViewById(R.id.btn_rezomeh);\n btnMoreDescrip = (Button) findViewById(R.id.btn_more_descrip_detils);\n\n btnRezomeh.setTypeface(G.font1);\n btnMoreDescrip.setTypeface(G.font1);\n // adapterListDiscount = new AdapterCommodityTiles(G.DataKalaDiscount);\n\n lstTopic = (ListView) findViewById(R.id.lst_topic);\n\n griAnotherProduct = (NestedListView) findViewById(R.id.gri_another_product);\n LayAnother = (LinearLayout) findViewById(R.id.lay_another_product);\n layLoadingAnotherProduct = (LinearLayout) findViewById(R.id.lay_loading_abother_product);\n\n Bundle extras = getIntent().getExtras();\n id = 0;\n if (extras != null) {\n id = extras.getInt(\"id\");\n }\n\n final LinearLayout LayDescripH = (LinearLayout) findViewById(R.id.lay_description_h);\n final LinearLayout LayTopicH = (LinearLayout) findViewById(R.id.lay_topic_h);\n final LinearLayout LayAnotherH = (LinearLayout) findViewById(R.id.lay_another_product_h);\n final LinearLayout LayDescrip = (LinearLayout) findViewById(R.id.lay_description);\n final LinearLayout LayTopic = (LinearLayout) findViewById(R.id.lay_topic);\n\n final RelativeLayout layAddProduct = (RelativeLayout) findViewById(R.id.lay_add_product);\n\n final ImageView ImgDescrip = (ImageView) findViewById(R.id.img_descip);\n final ImageView ImgTopic = (ImageView) findViewById(R.id.img_topic);\n final ImageView ImgAnother = (ImageView) findViewById(R.id.img_another_product);\n\n final ImageView imgShaering = (ImageView) findViewById(R.id.img_shaering);\n\n LinearLayout LayCheck = (LinearLayout) findViewById(R.id.lay_check_internet);\n LinearLayout LayMain = (LinearLayout) findViewById(R.id.lay_main_show_product);\n\n LinearLayout LayRefresh = (LinearLayout) findViewById(R.id.lay_check_refresh);\n LinearLayout LayMobile = (LinearLayout) findViewById(R.id.lay_check_mobile);\n LinearLayout LayWifi = (LinearLayout) findViewById(R.id.lay_check_wifi);\n\n // loading = (TextView) findViewById(R.id.lo);\n layLoading = (LinearLayout) findViewById(R.id.lay_loading);\n\n final Connectivity Check = new Connectivity();\n if (Check.isConnected(G.context)) {\n\n conected();\n layLoading.setVisibility(View.VISIBLE);\n layMain.setVisibility(View.GONE);\n\n reciveNewProduct(id);\n\n LayDescripH.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n if (LayDescrip.getVisibility() == View.GONE) {\n ImgDescrip.setImageResource(R.drawable.up_arrow);\n LayDescrip.setVisibility(View.VISIBLE);\n } else {\n ImgDescrip.setImageResource(R.drawable.down_arrow);\n LayDescrip.setVisibility(View.GONE);\n }\n\n }\n });\n\n LayTopicH.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n if (LayTopic.getVisibility() == View.GONE) {\n ImgTopic.setImageResource(R.drawable.up_arrow);\n LayTopic.setVisibility(View.VISIBLE);\n } else {\n ImgTopic.setImageResource(R.drawable.down_arrow);\n LayTopic.setVisibility(View.GONE);\n }\n\n }\n });\n\n LayAnotherH.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n Log.i(\"DATA\", \"\" + DataAnotherProduct.size());\n //LayAnother.setVisibility(View.VISIBLE);\n layLoadingAnotherProduct.setVisibility(View.VISIBLE);\n if (DataAnotherProduct.size() == 0) {\n\n Log.i(\"DATA\", \"\" + DataProduct.get(0).nameTeacher);\n //DataAnotherProduct.clear();\n reciveAnotherProduct(\"byTeacher\", DataProduct.get(0).nameTeacher);\n } else {\n showAnotherProduct();\n }\n\n if (LayAnother.getVisibility() == View.GONE) {\n\n ImgAnother.setImageResource(R.drawable.up_arrow);\n LayAnother.setVisibility(View.VISIBLE);\n } else {\n\n ImgAnother.setImageResource(R.drawable.down_arrow);\n LayAnother.setVisibility(View.GONE);\n }\n\n }\n });\n\n btnRezomeh.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n final Dialog dialog2 = new Dialog(G.currentActivity);\n dialog2.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog2.setContentView(R.layout.dialog_short_rezomeh);\n ImageLoader imageLoader2 = G.getInstance().getImageLoader();\n NetworkImageView thumbPicPro = (NetworkImageView) dialog2.findViewById(R.id.img_short_rezumeh);\n imageLoader2.get(WebServiceUrl.getPictureTeacher + DataProduct.get(0).picTeache, ImageLoader.getImageListener(thumbPicPro, R.drawable.loading, R.drawable.no_teacher_pic));\n thumbPicPro.setImageUrl(WebServiceUrl.getProductPicture + DataProduct.get(0).picTeache, imageLoader2);\n\n nameTeacherRezumeh = (TextView) dialog2.findViewById(R.id.txt_teacher_name_rezumeh);\n nameHeaderTeacherRezumeh = (TextView) dialog2.findViewById(R.id.txt_header_teacher_name);\n nameRezumeh1 = (TextView) dialog2.findViewById(R.id.txt_rezuneh1);\n nameRezumeh2 = (TextView) dialog2.findViewById(R.id.txt_rezuneh2);\n nameRezumeh3 = (TextView) dialog2.findViewById(R.id.txt_rezuneh3);\n\n reciveShortRezumeh(DataProduct.get(0).nameTeacher);\n\n dialog2.setCancelable(true);\n dialog2.show();\n\n }\n });\n\n btnMoreDescrip.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n final Dialog dialog2 = new Dialog(G.currentActivity);\n dialog2.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog2.setContentView(R.layout.dialog_more_topic);\n\n TextView txtHeader = (TextView) dialog2.findViewById(R.id.txt_dialog_header);\n TextView txtText = (TextView) dialog2.findViewById(R.id.txt_text_dialog);\n TextView txtOk = (TextView) dialog2.findViewById(R.id.txt_ok_dialog);\n\n txtHeader.setText(\" سرفصل \");\n txtText.setText(DataProduct.get(0).descrip);\n\n txtOk.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n dialog2.hide();\n }\n });\n\n dialog2.setCancelable(true);\n dialog2.show();\n\n }\n });\n\n imgShaering.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n String shareBody = \"نام محصول : \" + DataProduct.get(0).name + \"\\n\" + \" مدرس\" + DataProduct.get(0).nameTeacher + \" \\n\" + \"قیمت : \" + DataProduct.get(0).price + \"\\n آدرس فروشگاه : \\n رایکا\" + \"\\n\" + \"http://www.http://rayka-co.ir\";\n sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Subject Here\");\n sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);\n G.currentActivity.startActivity(Intent.createChooser(sharingIntent, \"ارسال برای دیگران\"));\n\n }\n });\n\n layAddProduct.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n BasketProductDB bp = new BasketProductDB();\n bp.setId(DataProduct.get(0).id);\n int count = bp.selectId();\n if (bp.selectId() == 0) {\n\n Toast.makeText(G.context, \"محصول به سبد اضافه شد\", Toast.LENGTH_LONG).show();\n bp.setText(DataProduct.get(0).name);\n bp.setPrice(DataProduct.get(0).price);\n bp.setTeacherName(DataProduct.get(0).nameTeacher);\n bp.setCount((bp.selectId() + 1));\n bp.insertProduct();\n\n addProduct();\n\n } else {\n\n Toast.makeText(G.context, \"این محصول قبلا در سبد شما قرار دارد \", Toast.LENGTH_LONG).show();\n // bp.setCount((bp.selectId() + 1));\n // bp.updateProduct();\n\n // addProduct();\n }\n\n }\n });\n\n imgPlay.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n\n Intent intentm = new Intent(G.currentActivity, ShowVideo.class);\n // intentm.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | IntentCompat.FLAG_ACTIVITY_CLEAR_TASK);\n intentm.putExtra(\"URL\", UrlFilm);\n G.currentActivity.startActivity(intentm);\n // setVideo();\n\n }\n });\n\n } else {\n disconected();\n\n }\n LayWifi.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n //Toast.makeText(G.context, \"text\", Toast.LENGTH_SHORT).show();\n Check.goToSettingWiFiNet();\n }\n });\n LayMobile.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n Check.goToSettingMobileNet();\n }\n });\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jToolBar1 = new javax.swing.JToolBar();\n botonCrear = new javax.swing.JButton();\n botonModificar = new javax.swing.JButton();\n botonEliminar = new javax.swing.JButton();\n botonSalir = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jToolBar3 = new javax.swing.JToolBar();\n radioCodigoBarras = new javax.swing.JRadioButton();\n jSeparator1 = new javax.swing.JToolBar.Separator();\n radioNombre = new javax.swing.JRadioButton();\n jSeparator2 = new javax.swing.JToolBar.Separator();\n radioTipoProducto = new javax.swing.JRadioButton();\n jSeparator3 = new javax.swing.JToolBar.Separator();\n radioMarca = new javax.swing.JRadioButton();\n jSeparator4 = new javax.swing.JToolBar.Separator();\n radioUnidadMedida = new javax.swing.JRadioButton();\n jPanel2 = new javax.swing.JPanel();\n textoBuscar = new javax.swing.JTextField();\n botonBuscar = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n tablaProducto = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Gestionar Producto\");\n setResizable(false);\n\n jToolBar1.setFloatable(false);\n jToolBar1.setRollover(true);\n\n botonCrear.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n botonCrear.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/apptiendasoft/c5_recursos/iconos/crearx32.png\"))); // NOI18N\n botonCrear.setText(\"Crear\");\n botonCrear.setFocusable(false);\n botonCrear.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n botonCrear.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n botonCrear.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonCrearActionPerformed(evt);\n }\n });\n jToolBar1.add(botonCrear);\n\n botonModificar.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n botonModificar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/apptiendasoft/c5_recursos/iconos/modificarx32.png\"))); // NOI18N\n botonModificar.setText(\"Modificar\");\n botonModificar.setFocusable(false);\n botonModificar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n botonModificar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(botonModificar);\n\n botonEliminar.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n botonEliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/apptiendasoft/c5_recursos/iconos/eliminarx32.png\"))); // NOI18N\n botonEliminar.setText(\"Eliminar\");\n botonEliminar.setFocusable(false);\n botonEliminar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n botonEliminar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(botonEliminar);\n\n botonSalir.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n botonSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/apptiendasoft/c5_recursos/iconos/salirx32.png\"))); // NOI18N\n botonSalir.setText(\"Salir\");\n botonSalir.setFocusable(false);\n botonSalir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n botonSalir.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n botonSalir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonSalirActionPerformed(evt);\n }\n });\n jToolBar1.add(botonSalir);\n\n getContentPane().add(jToolBar1, java.awt.BorderLayout.PAGE_START);\n\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n jToolBar3.setFloatable(false);\n jToolBar3.setRollover(true);\n\n buttonGroup1.add(radioCodigoBarras);\n radioCodigoBarras.setText(\"Codigo de Barras\");\n radioCodigoBarras.setFocusable(false);\n radioCodigoBarras.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n radioCodigoBarras.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(radioCodigoBarras);\n jToolBar3.add(jSeparator1);\n\n buttonGroup1.add(radioNombre);\n radioNombre.setSelected(true);\n radioNombre.setText(\"Nombre \");\n radioNombre.setFocusable(false);\n radioNombre.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n radioNombre.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(radioNombre);\n jToolBar3.add(jSeparator2);\n\n buttonGroup1.add(radioTipoProducto);\n radioTipoProducto.setText(\"Tipo de Producto\");\n radioTipoProducto.setFocusable(false);\n radioTipoProducto.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n radioTipoProducto.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(radioTipoProducto);\n jToolBar3.add(jSeparator3);\n\n buttonGroup1.add(radioMarca);\n radioMarca.setText(\"Marca\");\n radioMarca.setFocusable(false);\n radioMarca.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n radioMarca.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(radioMarca);\n jToolBar3.add(jSeparator4);\n\n buttonGroup1.add(radioUnidadMedida);\n radioUnidadMedida.setText(\"Unidad de Medida\");\n radioUnidadMedida.setFocusable(false);\n radioUnidadMedida.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n radioUnidadMedida.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(radioUnidadMedida);\n\n jPanel1.add(jToolBar3, java.awt.BorderLayout.PAGE_START);\n\n textoBuscar.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n botonBuscar.setBackground(new java.awt.Color(255, 255, 255));\n botonBuscar.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n botonBuscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/apptiendasoft/c5_recursos/iconos/buscarx20.png\"))); // NOI18N\n botonBuscar.setText(\"Buscar\");\n botonBuscar.setOpaque(false);\n botonBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonBuscarActionPerformed(evt);\n }\n });\n\n tablaProducto.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n jScrollPane1.setViewportView(tablaProducto);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Nombre:\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(textoBuscar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(botonBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 788, Short.MAX_VALUE))\n .addGap(23, 23, 23))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(textoBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(botonBuscar)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel1.add(jPanel2, java.awt.BorderLayout.CENTER);\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);\n\n pack();\n setLocationRelativeTo(null);\n }", "public Item_Productos() {\n initComponents();\n Actualizar_Tabla();\n //oculta columna ID\n \n this.setLocationRelativeTo(null);\n jTable1.getColumnModel().getColumn(0).setMaxWidth(0);\n jTable1.getColumnModel().getColumn(0).setMinWidth(0);\n jTable1.getTableHeader().getColumnModel().getColumn(0).setMaxWidth(0);\n jTable1.getTableHeader().getColumnModel().getColumn(0).setMinWidth(0);\n //editor de caldas\n jTable1.getColumnModel().getColumn(1).setCellEditor(new MyTableCellEditor(db, \"Codigo\"));\n jTable1.getColumnModel().getColumn(2).setCellEditor(new MyTableCellEditor(db, \"Descripcion\"));\n jTable1.getColumnModel().getColumn(3).setCellEditor(new MyTableCellEditor(db, \"Precio de venta\"));\n jTable1.getColumnModel().getColumn(4).setCellEditor(new MyTableCellEditor(db, \"Precion de compra\"));\n jTable1.getColumnModel().getColumn(5).setCellEditor(new MyTableCellEditor(db, \"Cantidad\"));\n jTable1.getColumnModel().getColumn(6).setCellEditor(new MyTableCellEditor(db, \"Fecha\"));\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root=inflater.inflate(R.layout.fragment_order_view, container, false);\n ButterKnife.bind(this,root);\n mProdcut= Parcels.unwrap(getArguments().getParcelable(\"product\"));\n getActivity().setTitle(root.getContext().getString(R.string.order_list));\n setupOrderView();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_producto_principal, container, false);\n btnregistro=(Button)view.findViewById(R.id.btn_nuevo_producto);\n btnlistar= (Button)view.findViewById(R.id.btn_lista_productos);\n\n\n\n btnregistro.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Fragment nuevoFragmento = new producto_registro_fragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.nav_host_fragment, nuevoFragmento);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n });\n\n btnlistar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Fragment nuevoFragmento = new producto_ver_fragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.nav_host_fragment, nuevoFragmento);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n });\n return view;\n }", "public void iniciar(){\r\n \r\n view.setTitle(\"MVC Proyecto\");\r\n //Indica posicion, null -> posicion 0 = centro\r\n view.setLocationRelativeTo(null);\r\n \r\n }", "public BaseDatosProductos iniciarProductos() {\n\t\tBaseDatosProductos baseDatosProductos = new BaseDatosProductos();\n\t\t// construcion datos iniciales \n\t\tProductos Manzanas = new Productos(1, \"Manzanas\", 8000.0, 65);\n\t\tProductos Limones = new Productos(2, \"Limones\", 2300.0, 15);\n\t\tProductos Granadilla = new Productos(3, \"Granadilla\", 2500.0, 38);\n\t\tProductos Arandanos = new Productos(4, \"Arandanos\", 9300.0, 55);\n\t\tProductos Tomates = new Productos(5, \"Tomates\", 2100.0, 42);\n\t\tProductos Fresas = new Productos(6, \"Fresas\", 4100.0, 3);\n\t\tProductos Helado = new Productos(7, \"Helado\", 4500.0, 41);\n\t\tProductos Galletas = new Productos(8, \"Galletas\", 500.0, 8);\n\t\tProductos Chocolates = new Productos(9, \"Chocolates\", 3500.0, 806);\n\t\tProductos Jamon = new Productos(10, \"Jamon\", 15000.0, 10);\n\n\t\t\n\n\t\tbaseDatosProductos.agregar(Manzanas);\n\t\tbaseDatosProductos.agregar(Limones);\n\t\tbaseDatosProductos.agregar(Granadilla);\n\t\tbaseDatosProductos.agregar(Arandanos);\n\t\tbaseDatosProductos.agregar(Tomates);\n\t\tbaseDatosProductos.agregar(Fresas);\n\t\tbaseDatosProductos.agregar(Helado);\n\t\tbaseDatosProductos.agregar(Galletas);\n\t\tbaseDatosProductos.agregar(Chocolates);\n\t\tbaseDatosProductos.agregar(Jamon);\n\t\treturn baseDatosProductos;\n\t\t\n\t}", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n //Optimizamos la creación del layout realizándola solo una primera vez.\n View item= convertView;\n ViewHolder holder;\n if(item==null) {\n LayoutInflater inflater = LayoutInflater.from(context);\n holder= new ViewHolder();\n item = inflater.inflate(R.layout.producto, null);\n\n\n holder.nombre=(TextView)item.findViewById(R.id.textView_nombre);\n\n //Almacenamos el elemento en como un tag de la View\n item.setTag(holder);\n }else{\n //Si el item ya ha sido instanciado con anterioridad lo recuperamos del convertView\n holder= (ViewHolder)item.getTag();\n }\n\n\n holder.nombre.setText(productos.get(position).getNombre());\n\n return item;\n }", "public void manageArticles(View v, String opcio) {\n View row = (View) v.getParent().getParent();\n // Busquem el listView per poder treure el numero de la fila\n ListView lv = (ListView) row.getParent();\n // Busco quina posicio ocupa la Row dins de la ListView\n int position = lv.getPositionForView(row);\n // Carrego la linia del cursor de la posició.\n Cursor linia = (Cursor) getItem(position);\n\n int id = linia.getInt(linia.getColumnIndexOrThrow(GestorArticlesDataSource.GESTORARTICLES_ID));\n\n Intent i = new Intent(v.getContext(), stockManagerGestorArticles.class);\n i.putExtra(\"opcio\", opcio);\n i.putExtra(\"_id\", id);\n ((Activity)v.getContext()).startActivityForResult(i, 3);\n\n }", "public ShowProductListLimited() {\n initComponents();\n List<Product> products = WinkelApplication.getQueryManager().getProductList();\n DefaultTableModel model = (DefaultTableModel) this.jTable1.getModel();\n for (Product product : products) {\n model.addRow(new Object[]{new Integer(product.getProductId()),\n product.getCategorieId(),\n product.getName(),\n product.getPrice(),\n product.getDescription()});\n }\n }", "private JList<ProductoAlmacen> crearListaProductos() {\n\n JList<ProductoAlmacen> lista = new JList<>(new Vector<>(almacen.getProductos()));\n\n lista.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n\n lista.setCellRenderer(new DefaultListCellRenderer() {\n @Override\n public Component getListCellRendererComponent(JList<? extends Object> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n Component resultado = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\n ProductoAlmacen productoAlmacen = (ProductoAlmacen) value;\n\n String texto = String.format(\"%s (%d uds.)\", productoAlmacen.getProducto().getNombre(), productoAlmacen.getStock());\n this.setText(texto);\n\n return resultado;\n }\n });\n\n return lista;\n }", "@Override\n public void redimensionarPantalla(ComponentEvent e) {}", "public void initShop(){\n addCountToStorage(actionProduct.findProductByName(\"Jemeson\"), 3);\n addCountToStorage(actionProduct.findProductByName(\"Red Label\"), 5);\n addCountToStorage(actionProduct.findProductByName(\"Burenka\"), 10);\n addCountToStorage(actionProduct.findProductByName(\"Kupyanskoe\"), 21);\n\n //add transaction\n int idxCustomer = actionCustomer.findCustomerByName(\"Perto\");\n int idxProduct = actionProduct.findProductByName(\"Burenka\");\n\n addTransaction(idxCustomer, idxProduct, getDate(-7), 1 , actionProduct.getPriceByIdx(idxProduct));\n\n idxProduct = actionProduct.findProductByName(\"white bread\");\n addTransaction(idxCustomer, idxProduct, getDate(-7), 1 , actionProduct.getPriceByIdx(idxProduct));\n\n idxCustomer = actionCustomer.findCustomerByName(\"Dmytro\");\n addTransaction(idxCustomer, idxProduct, getDate(-6), 2 , actionProduct.getPriceByIdx(idxProduct));\n\n idxProduct = actionProduct.findProductByName(\"burenka\");\n addTransaction(idxCustomer, idxProduct, getDate(-6), 2 , actionProduct.getPriceByIdx(idxProduct));\n\n\n }", "public void agregar_producto(RecyclingImageView c)\n {\n array_productos.add(c);\n }", "public String addProduct(Context pActividad,int pId, String pDescripcion,float pPrecio)\n {\n AdminSQLiteOpenHelper admin = new AdminSQLiteOpenHelper(pActividad, \"administracion\", null, 1);\n\n // con el objeto de la clase creado habrimos la conexion\n SQLiteDatabase db = admin.getWritableDatabase();\n try\n {\n // Comprobamos si el id ya existe\n Cursor filas = db.rawQuery(\"Select codigo from Articulos where codigo = \" + pId, null);\n if(filas.getCount()<=0)\n {\n //ingresamos los valores mediante, key-value asocioados a nuestra base de datos (tecnica muñeca rusa admin <- db <- registro)\n ContentValues registro = new ContentValues();\n registro.put(\"codigo\",pId);\n registro.put(\"descripcion\",pDescripcion);\n registro.put(\"precio\", pPrecio);\n\n //ahora insertamos este registro en la base de datos\n db.insert(\"Articulos\", null, registro);\n }\n else\n return \"El ID insertado ya existe\";\n }\n catch (Exception e)\n {\n return \"Error Añadiendo producto\";\n }\n finally\n {\n db.close();\n }\n return \"Producto Añadido Correctamente\";\n }", "private JPanel texte() {\r\n\t\tJPanel position = new JPanel();\r\n\t\tJPanel menu1 = new JPanel();\r\n\t\tJPanel menu2 = new JPanel();\r\n\t\tJPanel menu3 = new JPanel();\r\n\t\tJPanel menu4 = new JPanel();\r\n\r\n\t\tmenu1.setLayout(new BoxLayout(menu1, BoxLayout.X_AXIS));\r\n\t\tmenu1.add(textnomligue);\r\n\t\tmenu2.setLayout(new BoxLayout(menu2, BoxLayout.X_AXIS));\r\n\t\tmenu2.add(textadresse);\r\n\t\tmenu3.setLayout(new BoxLayout(menu3, BoxLayout.X_AXIS));\r\n\t\tmenu3.add(textnomAdmin);\r\n\t\tmenu4.setLayout(new BoxLayout(menu4, BoxLayout.X_AXIS));\r\n\t\tmenu4.add(tprenomAdmin);\r\n\r\n\t\tposition.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS));\r\n\t\tposition.add(menu1);\r\n\t\tposition.add(menu2);\r\n\t\tposition.add(menu3);\r\n\t\tposition.add(menu4);\r\n\r\n\t\treturn position;\r\n\t}", "public JFrameFormularioProducto() {\n initComponents();\n }", "public void onClick(View v) {\n addTocart();\n ProductListFragment.updateQuantity(selectedData.getProdId(), selectedData.getCount());\n }", "public void onClick(View v) {\n addTocart();\n ProductListFragment.updateQuantity(selectedData.getProdId(), selectedData.getCount());\n }", "public void afficherPartie() throws SQLException{\n this.partie.maj();\n VBox fp = ((VBox) windows.getRoot());\n fp.getChildren().remove(1);\n fp.getChildren().add(partie);\n }", "public void iniciarComponentes() {\n btnSalir = new JButton(\"SALIR\");\n btnSaludo = new JButton(\"SALUDO\");\n \n btnSalir.setForeground(Color.RED);\n btnSaludo.setForeground(Color.BLUE);\n \n btnSalir.setPreferredSize(new Dimension(100, 60));\n btnSaludo.setPreferredSize(new Dimension(100, 60));\n \n //Creamos y aplicamos el layout para que salgan de laico\n FlowLayout fl = new FlowLayout(FlowLayout.CENTER);\n setLayout(fl);\n \n //Y metemos los botones y sus funciones\n add(btnSaludo);\n //Función en la clase Ventana\n \n add(btnSalir);\n btnSalir.addActionListener(e->salir());\n \n //Ahora vamos a separar los botones, de puede de dos maneras\n //De este modo crea una distancia fija entre los 2 cuando reescalemos\n add(Box.createRigidArea(new Dimension(15, 0)));\n //En este otro la distancia va variando\n add(Box.createGlue());\n \n }" ]
[ "0.64472747", "0.640081", "0.6338934", "0.63342726", "0.6321328", "0.6297698", "0.62917817", "0.6263063", "0.62593496", "0.6238827", "0.61520594", "0.60996294", "0.6083273", "0.6041202", "0.6034621", "0.6027409", "0.60005766", "0.59941727", "0.59885085", "0.5976129", "0.59708637", "0.59237444", "0.5877072", "0.58679396", "0.58401376", "0.58216757", "0.58145887", "0.58036053", "0.5803388", "0.5795944", "0.57947993", "0.5790601", "0.57860273", "0.57834303", "0.577342", "0.57673246", "0.5765578", "0.57611895", "0.5758739", "0.5750794", "0.57417434", "0.5741737", "0.5741096", "0.573025", "0.5715217", "0.5693095", "0.5686603", "0.5683118", "0.56794363", "0.56684816", "0.5657994", "0.5655795", "0.5654613", "0.56480205", "0.56470346", "0.56275594", "0.56272006", "0.56269914", "0.56198335", "0.56086886", "0.56003", "0.559961", "0.55978036", "0.5596538", "0.5590962", "0.55881566", "0.55872434", "0.55843997", "0.55819434", "0.557461", "0.55643666", "0.5563778", "0.5562425", "0.55598205", "0.5551448", "0.55483", "0.5546979", "0.55444664", "0.5536664", "0.5515174", "0.5511992", "0.55065775", "0.5505591", "0.55052286", "0.5502911", "0.55008256", "0.5499494", "0.5499441", "0.54954237", "0.5486957", "0.5485744", "0.5480997", "0.547833", "0.54737985", "0.5472854", "0.5471375", "0.5471134", "0.5471134", "0.54697496", "0.54696363" ]
0.5559936
73
Obtiene producto y agrega a la lista
private void getProducto(String isbn) throws UnsupportedEncodingException { String soql = "SELECT ProductCode, Name FROM Product2 WHERE isActive = true AND ISBN__c = " + isbn + ".0"; RestRequest restRequest = RestRequest.getRequestForQuery(getString(R.string.api_version), soql); client.sendAsync(restRequest, new AsyncRequestCallback() { @Override public void onSuccess(RestRequest request, RestResponse result) { try { sfResult = result.asJSONObject().getJSONArray("records"); Log.d("RequestResponse", String.valueOf((sfResult != null))); if (sfResult != null) { if (sfResult.length() > 0) { String lineStr; for (int i = 0; i < sfResult.length(); i++) { lineStr = sfResult.getJSONObject(i).getString("ProductCode") + " - " + sfResult.getJSONObject(i).getString("Name"); agregarProducto(lineStr, "0"); } } else { makeToast(getApplicationContext(), "No se han encontrado resultados para " + scanResult); } } } catch (Exception e) { onError(e); } } @Override public void onError(Exception exception) { VolleyError volleyError = (VolleyError) exception; NetworkResponse response = volleyError.networkResponse; String json = new String(response.data); Log.e("RestError", exception.toString()); Log.e("RestError", json); Toast.makeText(MainActivity.this, MainActivity.this.getString(SalesforceSDKManager.getInstance().getSalesforceR().stringGenericError(), exception.toString()), Toast.LENGTH_LONG).show(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listarProducto() {\n }", "private void cargarProductos() {\r\n\t\tproductos = productoEJB.listarInventariosProductos();\r\n\r\n\t\tif (productos.size() == 0) {\r\n\r\n\t\t\tList<Producto> listaProductos = productoEJB.listarProductos();\r\n\r\n\t\t\tif (listaProductos.size() > 0) {\r\n\r\n\t\t\t\tMessages.addFlashGlobalWarn(\"Para realizar una venta debe agregar los productos a un inventario\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public BaseDatosProductos iniciarProductos() {\n\t\tBaseDatosProductos baseDatosProductos = new BaseDatosProductos();\n\t\t// construcion datos iniciales \n\t\tProductos Manzanas = new Productos(1, \"Manzanas\", 8000.0, 65);\n\t\tProductos Limones = new Productos(2, \"Limones\", 2300.0, 15);\n\t\tProductos Granadilla = new Productos(3, \"Granadilla\", 2500.0, 38);\n\t\tProductos Arandanos = new Productos(4, \"Arandanos\", 9300.0, 55);\n\t\tProductos Tomates = new Productos(5, \"Tomates\", 2100.0, 42);\n\t\tProductos Fresas = new Productos(6, \"Fresas\", 4100.0, 3);\n\t\tProductos Helado = new Productos(7, \"Helado\", 4500.0, 41);\n\t\tProductos Galletas = new Productos(8, \"Galletas\", 500.0, 8);\n\t\tProductos Chocolates = new Productos(9, \"Chocolates\", 3500.0, 806);\n\t\tProductos Jamon = new Productos(10, \"Jamon\", 15000.0, 10);\n\n\t\t\n\n\t\tbaseDatosProductos.agregar(Manzanas);\n\t\tbaseDatosProductos.agregar(Limones);\n\t\tbaseDatosProductos.agregar(Granadilla);\n\t\tbaseDatosProductos.agregar(Arandanos);\n\t\tbaseDatosProductos.agregar(Tomates);\n\t\tbaseDatosProductos.agregar(Fresas);\n\t\tbaseDatosProductos.agregar(Helado);\n\t\tbaseDatosProductos.agregar(Galletas);\n\t\tbaseDatosProductos.agregar(Chocolates);\n\t\tbaseDatosProductos.agregar(Jamon);\n\t\treturn baseDatosProductos;\n\t\t\n\t}", "public ArrayList<Producto> ListaProductos() {\n ArrayList<Producto> list = new ArrayList<Producto>();\n \n try {\n conectar();\n ResultSet result = state.executeQuery(\"select * from producto;\");\n while(result.next()) {\n Producto nuevo = new Producto();\n nuevo.setIdProducto((int)result.getObject(1));\n nuevo.setNombreProducto((String)result.getObject(2));\n nuevo.setFabricante((String)result.getObject(3));\n nuevo.setCantidad((int)result.getObject(4));\n nuevo.setPrecio((int)result.getObject(5));\n nuevo.setDescripcion((String)result.getObject(6));\n nuevo.setSucursal((int)result.getObject(7));\n list.add(nuevo);\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return list;\n }", "private static void VeureProductes (BaseDades bd) {\n ArrayList <Producte> llista = new ArrayList<Producte>();\n llista = bd.consultaPro(\"SELECT * FROM PRODUCTE\");\n if (llista != null)\n for (int i = 0; i<llista.size();i++) {\n Producte p = (Producte) llista.get(i);\n System.out.println(\"ID=>\"+p.getIdproducte()+\": \"\n +p.getDescripcio()+\"* Estoc: \"+p.getStockactual()\n +\"* Pvp: \"+p.getPvp()+\" Estoc Mínim: \"\n + p.getStockminim());\n }\n }", "private static void cadastroProduto() {\n\n\t\tString nome = Entrada(\"PRODUTO\");\n\t\tdouble PrecoComprado = Double.parseDouble(Entrada(\"VALOR COMPRA\"));\n\t\tdouble precoVenda = Double.parseDouble(Entrada(\"VALOR VENDA\"));\n String informacaoProduto = Entrada(\"INFORMAÇÃO DO PRODUTO\");\n String informacaoTecnicas = Entrada(\"INFORMAÇÕES TÉCNICAS\");\n\n\t\tProduto produto = new Produto(nome, PrecoComprado, precoVenda, informacaoProduto,informacaoTecnicas);\n\n\t\tListaDProduto.add(produto);\n\n\t}", "public DAOTablaMenuProductos() {\r\n\t\trecursos = new ArrayList<Object>();\r\n\t}", "private void buscarProducto() {\n EntityManagerFactory emf= Persistence.createEntityManagerFactory(\"pintureriaPU\");\n List<Almacen> listaproducto= new FacadeAlmacen().buscarxnombre(jTextField1.getText().toUpperCase());\n DefaultTableModel modeloTabla=new DefaultTableModel();\n modeloTabla.addColumn(\"Id\");\n modeloTabla.addColumn(\"Producto\");\n modeloTabla.addColumn(\"Proveedor\");\n modeloTabla.addColumn(\"Precio\");\n modeloTabla.addColumn(\"Unidades Disponibles\");\n modeloTabla.addColumn(\"Localizacion\");\n \n \n for(int i=0; i<listaproducto.size(); i++){\n Vector vector=new Vector();\n vector.add(listaproducto.get(i).getId());\n vector.add(listaproducto.get(i).getProducto().getDescripcion());\n vector.add(listaproducto.get(i).getProducto().getProveedor().getNombre());\n vector.add(listaproducto.get(i).getProducto().getPrecio().getPrecio_contado());\n vector.add(listaproducto.get(i).getCantidad());\n vector.add(listaproducto.get(i).getLocalizacion());\n modeloTabla.addRow(vector);\n }\n jTable1.setModel(modeloTabla);\n }", "public List<Producto> verProductos(){\n SessionFactory sf = NewHibernateUtil.getSessionFactory();\n Session session = sf.openSession();\n // El siguiente objeto de query se puede hacer de dos formas una delgando a hql (lenguaje de consulta) que es el\n //lenguaje propio de hibernate o ejecutar ancestarmente la colsulta con sql\n Query query = session.createQuery(\"from Producto\");\n // En la consulta hql para saber que consulta agregar se procede a añadirla dandole click izquierdo sobre\n // hibernate.cfg.xml y aquí añadir la correspondiente consulta haciendo referencia a los POJOS\n List<Producto> lista = query.list();\n session.close();\n return lista;\n }", "public void setProductos(ArrayList<Producto> productos) {\r\n this.productos = productos;\r\n }", "private JList<ProductoAlmacen> crearListaProductos() {\n\n JList<ProductoAlmacen> lista = new JList<>(new Vector<>(almacen.getProductos()));\n\n lista.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n\n lista.setCellRenderer(new DefaultListCellRenderer() {\n @Override\n public Component getListCellRendererComponent(JList<? extends Object> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n Component resultado = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\n ProductoAlmacen productoAlmacen = (ProductoAlmacen) value;\n\n String texto = String.format(\"%s (%d uds.)\", productoAlmacen.getProducto().getNombre(), productoAlmacen.getStock());\n this.setText(texto);\n\n return resultado;\n }\n });\n\n return lista;\n }", "@Override\r\n public void getProduct() {\r\n\r\n InventoryList.add(new Product(\"Prod1\", \"Shirt\", \"Each\", 10.0, LocalDate.of(2021,03,19)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,21)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,29)));\r\n }", "public void Addproduct(Product objproduct) {\n\t\t\n\t}", "public List<Producto> traerTodos () {\n \n return jpaProducto.findProductoEntities();\n \n \n \n }", "public void addProductToList(Product aProduct){\n listOfProduct.add(aProduct);\n }", "private void obtenerProductos(HttpServletRequest request, HttpServletResponse response) {\n\n\t\tList<Producto> productos;\n\n\t\ttry {\n\t\t\tproductos = modeloProductos.getProductos();\n\n\t\t\t// Agregar lista de productos del Requst\n\t\t\trequest.setAttribute(\"LISTAPRODUCTOS\", productos);\n\t\t\t// Enviar ese request a la página JSP\n\t\t\tRequestDispatcher requestDispatcher = request.getRequestDispatcher(\"/ListaProductos.jsp\");\n\t\t\trequestDispatcher.forward(request, response);\n\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "protected ArrayList<Product> addProduct() {\r\n int productType;\r\n Scanner scanner = new Scanner(System.in);\r\n System.out.print(\"\\n(1: Giyim)\\n\"+ \"(2: Gıda&Beslenme)\\n\" +\"(3: Kozmetik)\\n\");\r\n System.out.print(\"Lutfen urun tipini seciniz :\\n\");\r\n\r\n productType =scanner.nextInt();\r\n while (productType != 1 && productType != 2 && productType != 3 ) {\r\n\r\n System.out.println(\"Yanlis urun tipi secimi !\\nLutfen tekrar deneyiniz : \");\r\n productType =scanner.nextInt();\r\n }\r\n scanner.nextLine();\r\n\r\n String name, size, gender, tag, content;\r\n double price;\r\n int numberOfProduct;\r\n if(productType == 1){\r\n\r\n System.out.print(\"Urun adini giriniz --> \");\r\n name = scanner.nextLine();\r\n System.out.print(\"Urun fiyatini giriniz --> \");\r\n price = scanner.nextDouble();\r\n scanner.nextLine();\r\n System.out.print(\"Urun bedenini giriniz --> \");\r\n size = scanner.nextLine();\r\n System.out.print(\"Urun cinsiyetini giriniz --> \");\r\n gender = scanner.nextLine();\r\n System.out.print(\"Urun etiketini giriniz --> \");\r\n tag = scanner.nextLine();\r\n\r\n while (splitSize(tag) !=4){\r\n System.out.println(\"Eksik etiket inputu girdiniz, 4 etiket inputu giriniz\");\r\n tag = scanner.nextLine();\r\n }\r\n\r\n System.out.print(\"Urun icerigini giriniz --> \");\r\n content = scanner.nextLine();\r\n while (splitSize(content) !=4) {\r\n System.out.println(\"Eksik icerik inputu girdiniz, 4 icerik inputu giriniz\");\r\n content = scanner.nextLine();\r\n }\r\n\r\n System.out.print(\"Urun sayisini giriniz --> \");\r\n numberOfProduct = scanner.nextInt();\r\n\r\n Clothes clothes = new Clothes(name, price, size, gender, tag, content, numberOfProduct);\r\n\r\n ClothesList.add(clothes);\r\n allProducts.add(allProducts.size(),clothes);\r\n }\r\n else if(productType == 2){\r\n\r\n System.out.print(\"Urun adini giriniz --> \");\r\n name = scanner.nextLine();\r\n System.out.print(\"Urun fiyatini giriniz --> \");\r\n price = scanner.nextDouble();\r\n scanner.nextLine();\r\n System.out.print(\"Urun etiketini giriniz --> \");\r\n tag = scanner.nextLine();\r\n while (splitSize(tag) !=4){\r\n System.out.println(\"Eksik etiket inputu girdiniz, 4 etiket inputu giriniz\");\r\n tag = scanner.nextLine();\r\n }\r\n\r\n System.out.print(\"Urun icerigini giriniz --> \");\r\n content = scanner.nextLine();\r\n while (splitSize(content) !=4){\r\n System.out.println(\"Eksik icerik inputu girdiniz, 4 icerik inputu giriniz\");\r\n content = scanner.nextLine();\r\n }\r\n\r\n System.out.print(\"Urun sayisini giriniz --> \");\r\n numberOfProduct = scanner.nextInt();\r\n\r\n Nutrient nutrient = new Nutrient(name, price,tag,content, numberOfProduct);\r\n NutrientList.add(nutrient);\r\n allProducts.add(allProducts.size(),nutrient);\r\n }\r\n else if(productType == 3){\r\n\r\n System.out.print(\"Urun adini giriniz --> \");\r\n name = scanner.nextLine();\r\n System.out.print(\"Urun fiyatini giriniz --> \");\r\n price = scanner.nextDouble();\r\n scanner.nextLine();\r\n System.out.print(\"Urun cinsiyetini giriniz --> \");\r\n gender = scanner.nextLine();\r\n System.out.print(\"Urun etiketini giriniz --> \");\r\n tag = scanner.nextLine();\r\n while (splitSize(tag) !=4){\r\n System.out.println(\"Eksik etiket inputu girdiniz, 4 etiket inputu giriniz\");\r\n tag = scanner.nextLine();\r\n }\r\n\r\n System.out.print(\"Urun icerigini giriniz --> \");\r\n content = scanner.nextLine();\r\n while (splitSize(content) !=4){\r\n System.out.println(\"Eksik icerik inputu girdiniz, 4 icerik inputu giriniz\");\r\n content = scanner.nextLine();\r\n }\r\n\r\n System.out.print(\"Urun sayisini giriniz --> \");\r\n numberOfProduct = scanner.nextInt();\r\n\r\n Cosmetics cosmetics = new Cosmetics(name, price,gender,tag, content, numberOfProduct);\r\n CosmeticsList.add(cosmetics);\r\n allProducts.add(allProducts.size(),cosmetics);\r\n }\r\n writeToCsv();\r\n return allProducts;\r\n }", "public List<Produto> buscarProdutos(){\n return new ArrayList<>();\n }", "Product getPProducts();", "public void cargarProductosEnVenta() {\n try {\n //Lectura de los objetos de tipo producto Vendido\n FileInputStream archivo= new FileInputStream(\"productosVentaCliente\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n this.productosEnVenta = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"ERROR: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }", "public void agregar(Producto producto) throws BusinessErrorHelper;", "public static void apagarProduto(){\n if(ListaDProduto.size() == 0){\n SaidaDados(\"Nehum produto cadastrado!!\");\n return;\n }\n \n String pesquisarNome = Entrada(\"Informe o nome do produto que deseja deletar: \");\n for(int i =0; i < ListaDProduto.size(); i++){\n \n Produto produtoProcurado = ListaDProduto.get(i);\n \n if(pesquisarNome.equalsIgnoreCase(produtoProcurado.getNome())){\n ListaDProduto.remove(i);\n SaidaDados(\"Produto deletado com sucesso!!\");\n }\n \n }\n \n }", "public void agregarDetalleProducto() {\n //Creamos instancia de ProductoDao\n ProductoDao productoDao = new ProductoDaoImp();\n try {\n //obtenemos la instancia del producto\n producto = productoDao.obtenerProductoPorCodigoBarra(productoSeleccionado);\n if (cantidadProductoDlg != null && cantidadProductoDlg > 0) {\n //agregando detalle a la Lista de Detalle\n listDetalle.add(new Detallefactura(null, this.producto.getCodBarra(),\n this.producto.getNombreProducto(), cantidadProductoDlg, this.producto.getPrecioVenta(),\n (this.producto.getPrecioVenta().multiply(new BigDecimal(cantidadProductoDlg)))));\n \n //Seteamos el producto al item del detalle\n //Accedemos al ultimo Item agregado a la lista\n listDetalle.get(listDetalle.size()-1).setCodProducto(producto);\n \n //Seteamos la factura al item del detalle\n //Accedemos al ultimo Item agregado a la lista \n // listDetalle.get(listDetalle.size()-1).setCodFactura(factura);\n \n //Limpiamos la variable 'cantidadProducto'\n cantidadProductoDlg = null;\n //Invocamos al metodo que calcula el Total de la Venta para la factura\n totalFacturaVenta();\n\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\", \"Producto agregado al detalle!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }else{\n //Limpiamos la variable 'cantidadProducto'\n cantidadProductoDlg = null;\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR , \"Incorrecto\", \"La cantidad es incorrecta!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public GrupoProducto adicionar(GrupoProducto grupoProducto){\r\n grupoProducto.setId(listaGrupoProductos.size()+1);\r\n listaGrupoProductos.add(grupoProducto);\r\n return grupoProducto;\r\n }", "public ArrayList<Producto> getProductos() {\r\n return productos;\r\n }", "public Productos() {\n super();\n // TODO Auto-generated constructor stub\n }", "public List<Producto> getProductos(Producto producto) throws Exception {\n\t\treturn null;\n\t}", "private void agregarProducto(HttpServletRequest request, HttpServletResponse response) throws SQLException {\n\t\tString codArticulo = request.getParameter(\"CArt\");\n\t\tString seccion = request.getParameter(\"seccion\");\n\t\tString nombreArticulo = request.getParameter(\"NArt\");\n\t\tSimpleDateFormat formatoFecha = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = formatoFecha.parse(request.getParameter(\"fecha\"));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdouble precio = Double.parseDouble(request.getParameter(\"precio\"));\n\t\tString importado = request.getParameter(\"importado\");\n\t\tString paisOrigen = request.getParameter(\"POrig\");\n\t\t// Crear un objeto del tipo producto\n\t\tProducto producto = new Producto(codArticulo, seccion, nombreArticulo, precio, fecha, importado, paisOrigen);\n\t\t// Enviar el objeto al modelo e insertar el objeto producto en la BBDD\n\t\tmodeloProductos.agregarProducto(producto);\n\t\t// Volver al listado de productos\n\t\tobtenerProductos(request, response);\n\n\t}", "public void agregarProducto(String producto){\n\t\tif (!this.existeProducto(producto)) {\n\t\t\tthis.compras.add(producto);\n\t\t}\n\t}", "List<Product> retrieveProducts();", "public List<Producto> listar() throws Exception {\n\t\ttry{\n\t\t\tthis.objCnx = new Conexion(\"MYSQL\");\n\t\t\tList<Producto> lista = new ArrayList<Producto>();\n\t\t\tthis.objCnx.conectarBD();\n\t\t\tString sql = \"SELECT t.idproducto, t.nombre_producto, t.imagen, t.idcategoria, t.idmarca, t.idmodelo, c.nombre as categoria, m.nombre as marca, d.nombre as modelo \"\n\t\t\t\t\t+ \" FROM conftbc_producto t INNER JOIN conftbc_categoria c on c.idcategoria = t.idcategoria\"\n\t\t\t\t\t+ \" INNER JOIN conftbc_marca m on m.idmarca = t.idmarca INNER JOIN conftbc_modelo d on d.idmodelo = t.idmodelo \";\n\t\t\tPreparedStatement ps = this.objCnx.cnx.prepareStatement(sql);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tProducto producto = new Producto();\n\t\t\t\tproducto.setIdproducto(rs.getInt(\"idproducto\"));\n\t\t\t\tproducto.setNombre(rs.getString(\"nombre_producto\"));\n\t\t\t\tproducto.setImagen(rs.getString(\"imagen\"));\n\t\t\t\tCategoria categoria = new Categoria();\n\t\t\t\tcategoria.setIdcategoria(rs.getInt(\"idcategoria\"));\n\t\t\t\tcategoria.setNombre(rs.getString(\"categoria\"));\n\t\t\t\tproducto.setCategoria(categoria);\n\t\t\t\tMarca marca = new Marca();\n\t\t\t\tmarca.setIdmarca(rs.getInt(\"idmarca\"));\n\t\t\t\tmarca.setNombre(rs.getString(\"marca\"));\n\t\t\t\tproducto.setMarca(marca);\n\t\t\t\tModelo modelo = new Modelo();\n\t\t\t\tmodelo.setIdmodelo(rs.getInt(\"idmodelo\"));\n\t\t\t\tmodelo.setNombre(rs.getString(\"modelo\"));\n\t\t\t\tproducto.setModelo(modelo);\n\t\t\t\tlista.add(producto);\n\t\t\t}\n\t\t\treturn lista;\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tthis.objCnx.deshacerDB();\n\t\t\tthrow ex;\n\t\t}finally{\n\t\t\tthis.objCnx.closeDB();\n\t\t\tthis.objCnx = null;\n\t\t}\n\t}", "public void agregarDatosProductoText() {\n if (cantidadProducto != null && cantidadProducto > 0) {\n //agregando detalle a la Lista de Detalle\n listDetalle.add(new Detallefactura(null, this.producto.getCodBarra(),\n this.producto.getNombreProducto(), cantidadProducto, this.producto.getPrecioVenta(),\n this.producto.getPrecioVenta().multiply(new BigDecimal(cantidadProducto))));\n \n //Seteamos el producto al item del detalle\n //Accedemos al ultimo Item agregado a la lista\n listDetalle.get(listDetalle.size()-1).setCodProducto(producto);\n \n //Seteamos la factura al item del detalle\n //Accedemos al ultimo Item agregado a la lista \n // listDetalle.get(listDetalle.size()-1).setCodFactura(factura);\n \n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Invocamos al metodo que calcula el Total de la Venta para la factura\n totalFacturaVenta();\n\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n //Mensaje de confirmacion de exito de la operacion \n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\", \"Producto agregado correctamente!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n } else {\n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n }\n\n }", "public static void main(String[] args) {\n\t\tControladorProducto controlaPro = new ControladorProducto();\n\n\t\t// Guardamos en una lista de objetos de tipo cuenta(Mapeador) los datos\n\t\t// obtenidos\n\t\t// de la tabla Cuenta de la base de datos\n\t\tList<Producto> lista = controlaPro.findAll();\n\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla Cuenta:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t// Vamos a guardar en un objeto el objeto que obtenemos pasando como parametro\n\t\t// el nombre\n\t\tProducto productoNombre = controlaPro.findByNombre(\"Manguera Camuflaje\");\n\n\t\t// Mostramos el objeto\n\t\tSystem.out.println(\"\\nEl objeto con el nombre Manguera Camuflaje es: \\n\" + productoNombre);\n\n\t\t// Vamos a guardar en un objeto el objeto que obtenemos pasando como parametro\n\t\t// su pk\n\n\t\tProducto productoPk = controlaPro.findByPK(2);\n\n\t\t// Mostramos el objeto\n\t\tSystem.out.println(\"\\nEl objeto con la Pk es: \\n\" + productoPk);\n\n\t\t// Vamos a crear un nuevo producto\n\t\tProducto nuevoProducto = new Producto();\n\n\t\tnuevoProducto.setNombreproducto(\"Embery Mono\");\n\t\t\n\t\t//Persistimos el nuevo producto\n\t\tcontrolaPro.crearEntidad(nuevoProducto);\n\n\t\tlista = controlaPro.findAll();\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla con nuevo producto:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t\t//Modificamos el nuevo producto\n\t\tnuevoProducto.setNombreproducto(\"Caesar Dorada\");\n\n\t\tcontrolaPro.ModificarEntidad(nuevoProducto);\n\t\t\n\t\tlista = controlaPro.findAll();\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla con nuevo producto modificado:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t\t//Borramos el nuevo producto\n\t\tcontrolaPro.borrarEntidad(controlaPro.findByPK(2));\n\t\t\n\t\tlista = controlaPro.findAll();\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla con nuevo producto eliminado:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t}", "public List<Producto> buscar(String nombre) throws Exception {\n\t\ttry{\n\t\t\tthis.objCnx = new Conexion(\"MYSQL\");\n\t\t\tList<Producto> lista = new ArrayList<Producto>();\n\t\t\tthis.objCnx.conectarBD();\n\t\t\tString sql = \"SELECT idproducto, nombre_producto, imagen \"\n\t\t\t\t\t+ \" FROM conftbc_producto WHERE nombre_producto like '%\"+nombre+\"%' \";\n\t\t\tPreparedStatement ps = this.objCnx.cnx.prepareStatement(sql);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tProducto producto = new Producto();\n\t\t\t\tproducto.setIdproducto(rs.getInt(\"idproducto\"));\n\t\t\t\tproducto.setNombre(rs.getString(\"nombre_producto\"));\n\t\t\t\tproducto.setImagen(rs.getString(\"imagen\"));\n//\t\t\t\tCategoria categoria = new Categoria();\n//\t\t\t\tcategoria.setIdcategoria(rs.getInt(\"idcategoria\"));\n//\t\t\t\tcategoria.setNombre(rs.getString(\"categoria\"));\n//\t\t\t\tproducto.setCategoria(categoria);\n//\t\t\t\tMarca marca = new Marca();\n//\t\t\t\tmarca.setIdmarca(rs.getInt(\"idmarca\"));\n//\t\t\t\tmarca.setNombre(rs.getString(\"marca\"));\n//\t\t\t\tproducto.setMarca(marca);\n//\t\t\t\tModelo modelo = new Modelo();\n//\t\t\t\tmodelo.setIdmodelo(rs.getInt(\"idmodelo\"));\n//\t\t\t\tmodelo.setNombre(rs.getString(\"modelo\"));\n//\t\t\t\tproducto.setModelo(modelo);\n\t\t\t\tlista.add(producto);\n\t\t\t}\n\t\t\treturn lista;\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tthis.objCnx.deshacerDB();\n\t\t\tthrow ex;\n\t\t}finally{\n\t\t\tthis.objCnx.closeDB();\n\t\t\tthis.objCnx = null;\n\t\t}\n\t}", "@Override\n\tpublic void entregarProductos(AgenteSaab a, Oferta o) {\n\t\t\n\t}", "List<Product> getProductsList();", "private void getAllProducts() {\n }", "public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }", "public void agregarMarcayPeso() {\n int id_producto = Integer.parseInt(TextCodProduct.getText());\n String Descripcion_prod = TextDescripcion.getText();\n double Costo_Venta_prod = Double.parseDouble(TextCostoproduc.getText());\n double Precio_prod = Double.parseDouble(TextPrecio.getText());\n int Codigo_proveedor = ((Proveedor) LitsadeProovedores.getSelectedItem()).getIdProveedor();\n double ivaproducto = Double.parseDouble(txtIvap.getText());\n Object tipodelproducto = jcboxTipoProducto.getSelectedItem();\n\n //Captura el tipo del producto\n //Se crea un nuevo objeto de tipo producto para hacer el llamado al decorador\n Producto p;\n //Switch para Ingresar al tipo de producto deseado \n switch ((String) tipodelproducto) {\n case \"Alimentos\":\n log(String.valueOf(tipodelproducto));\n //Creamos un nuevo producto de tipo en este caso comida y le enviamois\n //el id y el tipo de producto\n p = new Producto_tipo_comida(id_producto, (String) tipodelproducto);\n //el producto p , ahora tendra una adicion de marca del producto\n //ingreso\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n //ingreso\n break;\n case \"Ropa\":\n p = new Producto_tipo_ropa(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Automotor\":\n p = new Producto_tipo_automotor(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Electronico\":\n p = new Producto_tipo_electronico(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n }\n\n }", "public List<Produto> consultarProdutos(int consulta, String valor) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n List<Produto> produtos = new ArrayList<>();\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.createStatement();\r\n //Se a consulta for igual a zero(0) uma lista de todos os produtos \"cervejas\" e recuperada\r\n if (consulta == 0) {\r\n rs = stmt.executeQuery(consultas[consulta]);\r\n //Se a consulta for igual a tres(3) uma lista de todos os produtos \"cervejas\" e recuperada a parti do preco\r\n } else {\r\n rs = stmt.executeQuery(consultas[consulta] + \"'\" + valor + \"'\");\r\n }\r\n Produto produto;\r\n while (rs.next()) {\r\n produto = new Produto();\r\n produto.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n produto.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n produto.setPais(rs.getString(\"PAIS\"));\r\n produto.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n produto.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n produto.setRotulo(rs.getString(\"ROTULO\"));\r\n produto.setPreco(rs.getString(\"PRECO\"));\r\n produto.setVolume(rs.getString(\"VOLUME\"));\r\n produto.setTeor(rs.getString(\"TEOR\"));\r\n produto.setCor(rs.getString(\"COR\"));\r\n produto.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n produto.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n produto.setDescricao(rs.getString(\"DESCRICAO\"));\r\n produto.setSabor(rs.getString(\"SABOR\"));\r\n produto.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n produto.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n produto.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n produtos.add(produto);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return produtos;\r\n }", "public Producto BuscarProducto(int id) {\n Producto nuevo = new Producto();\n try {\n conectar();\n ResultSet result = state.executeQuery(\"select * from producto where idproducto=\"+id+\";\");\n while(result.next()) {\n \n nuevo.setIdProducto((int)result.getObject(1));\n nuevo.setNombreProducto((String)result.getObject(2));\n nuevo.setFabricante((String)result.getObject(3));\n nuevo.setCantidad((int)result.getObject(4));\n nuevo.setPrecio((int)result.getObject(5));\n nuevo.setDescripcion((String)result.getObject(6));\n nuevo.setSucursal((int)result.getObject(7));\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return nuevo;\n }", "public void addProduct(Product p) {\n c.addProduct(p);\n }", "public void addProduct(Product p){\n stock.add(p);\n }", "@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }", "public List<ImagenVO> imagenesToProducto(ProductoVO p) {\n\t\treturn (List<ImagenVO>)p.getImagenes();\n\t}", "private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produto)){\n\t //defino a quantidade atual(pego a quantidade atual e somo um)\n\t it.setQuantidade(it.getQuantidade() + 1);\n\t //a apartir daqui, faço o cálculo. Valor Total(ATUAL) + ((NOVA) quantidade * valor unitário do produto(ATUAL))\n\t it.setValorTotal(0.);\n\t it.setValorTotal(it.getValorTotal() + (it.getQuantidade() * it.getValorUnitario()));\n }\n}\n\t}", "public void cargarProductosVendidos() {\n try {\n //Lectura de los objetos de tipo productosVendidos\n FileInputStream archivo= new FileInputStream(\"productosVendidos\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosVendidos = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "private void loadProducts() {\n\t\tproduct1 = new Product();\n\t\tproduct1.setId(1L);\n\t\tproduct1.setName(HP);\n\t\tproduct1.setDescription(HP);\n\t\tproduct1.setPrice(BigDecimal.TEN);\n\n\t\tproduct2 = new Product();\n\t\tproduct2.setId(2L);\n\t\tproduct2.setName(LENOVO);\n\t\tproduct2.setDescription(LENOVO);\n\t\tproduct2.setPrice(new BigDecimal(20));\n\n\t}", "public RecyclerViewProductos( List<Producto> lista) {\n this.productoList=lista;\n }", "public void comprarProducto(Producto producto) throws Exception{\n try{\n if(this.productosEnVenta.contains(producto)){\n throw new suProducto();\n }\n producto.getVendedor().venderProducto(producto, this);\n producto.setComprador(this);\n this.productosComprados.add(producto);\n \n }catch(Exception e){\n throw e;\n } \n }", "private static void ListaProduto() throws IOException {\n \n if(ListaDProduto.isEmpty()){\n SaidaDados(\"Nenhum produto cadastrado\");\n return;\n }\n \n \n\t\tFileWriter arq = new FileWriter(\"lista_produto.txt\"); // cria o arquivo\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// será criado o\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// arquivo para\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// armazenar os\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// dados\n\t\tPrintWriter gravarArq = new PrintWriter(arq); // imprimi no arquivo \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// dados.\n\n\t\tString relatorio = \"\";\n\n\t\tgravarArq.printf(\"+--LISTA DE PRODUTOS--+\\r\\n\");\n\n\t\tfor (int i = 0; i < ListaDProduto.size(); i++) {\n\t\t\tProduto Lista = ListaDProduto.get(i);\n\t\t\t\n\n\t\t\tgravarArq.printf(\n\t\t\t\t\t\" - |Codigo: %d |NOME: %s | VALOR COMPRA: %s | VALOR VENDA: %s | INFORMAÇÕES DO PRODUTO: %s | INFORMAÇÕES TÉCNICAS: %s\\r\\n\",\n\t\t\t\t\tLista.getCodigo(), Lista.getNome(), Lista.getPrecoComprado(),\n\t\t\t\t\tLista.getPrecoVenda(), Lista.getInformacaoProduto(), Lista.getInformacaoTecnicas()); // formatação dos dados no arquivos\n \n\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\n\n\t\t\trelatorio += \"\\nCódigo: \" + Lista.getCodigo() +\n \"\\nNome: \" + Lista.getNome() +\n\t\t\t\t \"\\nValor de Compra: \" + Lista.getPrecoComprado() + \n \"\\nValor de Venda: \" + Lista.getPrecoVenda() +\n \"\\nInformações do Produto: \" + Lista.getInformacaoProduto() +\n \"\\nInformações Técnicas: \" + Lista.getInformacaoTecnicas() +\n \"\\n------------------------------------------------\";\n\n\t\t}\n \n \n\n\t\tgravarArq.printf(\"+------FIM------+\\r\\n\");\n\t\tgravarArq.close();\n\n\t\tSaidaDados(relatorio);\n\n\t}", "@Override\n\tpublic List<Producto> productos(int id) {\n\n\t\tQuery query = entity.createQuery(\"FROM Seccion s WHERE s.id =: id_seccion\",Seccion.class);\n\t\tquery.setParameter(\"id_seccion\", id);\n \n Seccion seccion = (Seccion)query.getSingleResult();\t\n \n return seccion.getProductos();\t\n\t}", "List<Product> getProducts(Order order);", "List<Product> list();", "public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }", "public Producto() {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tnombre = \"\";\r\n\t\tvendedor = \"\";\r\n\t\tprecio = 0;\r\n\t\tcantidad = 0;\r\n\t\tenVenta = false;\r\n\t\tdescripcion = \"\";\r\n\t\tcategorias = new Categoria();\r\n\t\tcaracteristicas = null;//TODO CORREGIR\r\n\t}", "private static void listaProdutosCadastrados() throws Exception {\r\n String nomeCategoria;\r\n ArrayList<Produto> lista = arqProdutos.toList();\r\n if (!lista.isEmpty()) {\r\n System.out.println(\"\\t** Lista dos produtos cadastrados **\\n\");\r\n }\r\n for (Produto p : lista) {\r\n if (p != null && p.getID() != -1) {\r\n nomeCategoria = getNomeCategoria(p.idCategoria - 1);\r\n System.out.println(\r\n \"Id: \" + p.getID()\r\n + \"\\nNome: \" + p.nomeProduto\r\n + \"\\nDescricao: \" + p.descricao\r\n + \"\\nPreco: \" + tf.format(p.preco)\r\n + \"\\nMarca: \" + p.marca\r\n + \"\\nOrigem: \" + p.origem\r\n );\r\n if (nomeCategoria != null) {\r\n System.out.println(\"Categoria: \" + nomeCategoria);\r\n } else {\r\n System.out.println(\"Categoria: \" + p.idCategoria);\r\n }\r\n System.out.println();\r\n Thread.sleep(500);\r\n }\r\n }\r\n }", "public void addProduct(Product product);", "void addProduct(Product product);", "public void adiciona(Produto produto) {\n\t\tthis.produtos.addAll(produtos);\n\t}", "public List<Product> searchProducts(ProductDTO product) {\n String SQL_SEARCH_QUERY=prepareSql(product);\n List<Product> productList=new ArrayList<>();\n Product p;\n List<Object[]> objList=entityManager.createNativeQuery(SQL_SEARCH_QUERY).getResultList();\n for(Object[] o: objList) {\n p=new Product();\n p.setCategory(new Category());\n p.setId(((BigInteger)o[0]).longValue());\n p.setName(o[1].toString());\n p.setPrice(((BigInteger) o[2]).longValue());\n p.setQuantity((Integer) o[3]);\n p.setVolume(((BigInteger) o[4]).longValue());\n p.setWeight(((BigInteger) o[5]).longValue());\n p.getCategory().setId(((BigInteger) o[6]).longValue());\n productList.add(p);\n }\n return productList;\n }", "private List<Product> getProductListFromRs(ResultSet productRs) throws SQLException {\n\t\t/*\n\t\t * Preleviamo il contenuto della tabella COMPOSIZIONE e lo inseriamo in una\n\t\t * struttura associativa in cui la chiave è un codice prodotto (univoco) e\n\t\t * e il valore è la lista dei materiali di cui il prodotto è composto.\n\t\t */\n\t\tStatement compositionStm = null;\n\t\tResultSet compositionRs = null;\n\t\tMap<Integer,List<String>> materialsMap = new HashMap<Integer,List<String>>();\n\t\ttry{\n\t\t\tcompositionStm = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM COMPOSIZIONE;\";\n\t\t\tcompositionRs = compositionStm.executeQuery(sql);\n\t\t\t\n\t\t\twhile(compositionRs.next()){\n\t\t\t\tInteger codiceProdotto = compositionRs.getInt(\"CODICEPRODOTTO\");\n\t\t\t\tif(materialsMap.containsKey(codiceProdotto)){\n\t\t\t\t\tmaterialsMap.get(codiceProdotto).add(compositionRs.getString(\"MATERIALE\"));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tArrayList<String> newMaterialList = new ArrayList<String>();\n\t\t\t\t\tnewMaterialList.add(compositionRs.getString(\"MATERIALE\"));\n\t\t\t\t\tmaterialsMap.put(compositionRs.getInt(\"CODICEPRODOTTO\"), newMaterialList);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcompositionStm.close(); // Chiude anche il ResultSet compositionRs\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tSystem.out.println(\"DB issue: failed to retrive product data from database.\\n\");\n\t\t\tSystem.out.println(sqle.getClass().getName() + \": \" + sqle.getMessage());\n\t\t}\n\t\t\n\t\t/*\n\t\t * Produciamo la lista dei prodotti.\n\t\t */\n\t\tList<Product> productList = new ArrayList<Product>();\n\t\twhile(productRs.next()){\n\t\t\tProduct p = new Product();\n\t\t\tp.setCode(productRs.getInt(\"CODICE\")); //AUTOBOXING\n\t\t\tp.setName(productRs.getString(\"NOMEPRODOTTO\"));\n\t\t\tp.setLine(productRs.getString(\"LINEA\"));\n\t\t\tp.setType(productRs.getString(\"TIPO\"));\n\t\t\tp.setImages(productRs.getString(\"IMMAGINI\"));\n\t\t\tp.setAvailableUnits(productRs.getInt(\"UNITADISPONIBILI\"));\n\t\t\t/*\n\t\t\t * getInt() returns:\n\t\t\t * the column value; if the value is SQL NULL, the value returned is 0\n\t\t\t */\n\t\t\tp.setMinInventory(productRs.getInt(\"SCORTAMINIMA\")); // 0 di default\n\t\t\tp.setPrice(productRs.getBigDecimal(\"PREZZOVENDITA\"));\n\t\t\tp.setCost(productRs.getBigDecimal(\"PREZZOACQUISTO\"));\n\t\t\t/*\n\t\t\t * SQLite non ha un tipo esplicito per le date. Il metodo getTimeStamp()\n\t\t\t * non riesce ad interprestare la data correttamente. Si utilizza\n\t\t\t * il metodo getString() anche se ci� non rappresenta la migliore pratica.\n\t\t\t */\n\t\t\tp.setInsertDate(LocalDateTime.parse(productRs.getString(\"DATAINSERIMENTO\")));\n\t\t\tp.setDescription(productRs.getString(\"DESCRIZIONE\"));\n\t\t\tp.setDeleted(productRs.getBoolean(\"ELIMINATO\"));\n\t\t\t\n\t\t\t// LocalDateTime.parse(null) or LocalDateTime.parse(\"\") would throw an exception\n\t\t\tif(productRs.getString(\"DATAELIMINAZIONE\") != null && !productRs.getString(\"DATAELIMINAZIONE\").equals(\"\")) {\n\t\t\t\tp.setDeletionDate(LocalDateTime.parse(productRs.getString(\"DATAELIMINAZIONE\")));\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * Preleviamo dalla struttura dati associativa la lista dei materiali\n\t\t\t * di fabbricazione per il corrente prodotto e aggiorniamo il campo\n\t\t\t * relativo del bean \"Product\".\n\t\t\t */\n\t\t\ttry{\n\t\t\t\tp.setMaterials(materialsMap.get(productRs.getInt(\"CODICE\")));\n\t\t\t}\n\t\t\tcatch(ClassCastException cce){\n\t\t\t\tSystem.out.println(\"Map issue: key not comparable.\\n\");\n\t\t\t\tSystem.out.println(cce.getClass().getName() + \": \" + cce.getMessage());\n\t\t\t}\n\t\t\tcatch(NullPointerException npe){\n\t\t\t\tSystem.out.println(\"Map issue: invalid Key.\\n\");\n\t\t\t\tSystem.out.println(npe.getClass().getName() + \": \" + npe.getMessage());\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * Aggiungiamo il prodotto alla lista.\n\t\t\t */\n\t\t\tproductList.add(p);\n\t\t}\n\t\t\n\t\treturn productList;\n\t}", "public List<Product> getFullProductList(){\n\t\t/*\n\t\t * La lista dei prodotti da restituire.\n\t\t */\n\t\tList<Product> productList = new ArrayList<Product>();\n\t\t\n\t\t/*\n\t\t * Preleviamo il contenuto della tabella PRODOTTO.\n\t\t */\n\t\tStatement productStm = null;\n\t\tResultSet productRs = null;\n\t\t\n\t\ttry{\n\t\t\tproductStm = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM PRODOTTO;\";\n\t\t\tproductRs = productStm.executeQuery(sql);\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tSystem.out.println(\"DB issue: failed to retrive product data from database.\");\n\t\t\tSystem.out.println(sqle.getClass().getName() + \": \" + sqle.getMessage());\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tproductList = this.getProductListFromRs(productRs);\n\t\t\tproductStm.close(); // Chiude anche il ResultSet productRs\n\t\t\tConnector.releaseConnection(connection);\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tSystem.out.println(\"ResultSet issue 2: failed to retrive data from ResultSet.\\n\");\n\t\t\tSystem.out.println(sqle.getClass().getName() + \": \" + sqle.getMessage());\n\t\t}\n\t\t\n\t\treturn productList;\n\t}", "public GrupoProducto modificar(GrupoProducto grupoProducto){\r\n Long id = grupoProducto.getId();\r\n for (int i = 0; i <= listaGrupoProductos.size(); i++) {\r\n if (id == listaGrupoProductos.get(i).getId()) {\r\n listaGrupoProductos.set(i, grupoProducto);\r\n return grupoProducto;\r\n\r\n }\r\n }\r\n return null;\r\n }", "public List<Product> getProducts();", "public List<Product> getProducts();", "public boolean addProduct(Product p) {\n// products.add(p);\n boolean prodExists = false;\n for(Product prod: products){\n if(prod.getId() == p.getId()){\n prodExists = true;\n break;\n }\n }\n if(!prodExists){\n products.add(p);\n return true;\n }\n return false;\n }", "public void prodottiDellaLista(int LID, HttpServletRequest request){\n \n HttpSession session = request.getSession();\n \n ProductListDAO productListDAO = new MySQLProductListDAOImpl();\n ProductDAO productDAO = new MySQLProductDAOImpl();\n ProductCategoryDAO productCategoryDAO = new MySQLProductCategoryDAOImpl();\n UserDAO userDAO = new MySQLUserDAOImpl();\n \n List productList = productListDAO.getPIDsByLID(LID);\n Product product = null;\n String [][] prodotto = new String [productList.size()][10];\n \n SharingProductDAO sharingProductDAO = new MySQLSharingProductDAOImpl();\n List userSharedProduct = null;\n \n for(int i=0; i<productList.size(); i++){\n product = productDAO.getProduct(((ProductList)(productList.get(i))).getPID(), (String)session.getAttribute(\"emailSession\"));\n prodotto[i][0] = product.getName();\n prodotto[i][1] = product.getNote();\n prodotto[i][2] = product.getLogo();\n prodotto[i][3] = product.getPhoto();\n prodotto[i][4] = productCategoryDAO.getProductCategory(product.getPCID()).getName();\n prodotto[i][5] = userDAO.getUser(product.getEmail()).getName();\n prodotto[i][6] = Integer.toString(((ProductList)(productList.get(i))).getQuantity());\n prodotto[i][7] = Integer.toString(product.getPID());\n prodotto[i][8] = userDAO.getUser(product.getEmail()).getSurname();\n \n if (!userDAO.getUser(product.getEmail()).getAdmin()) {\n userSharedProduct = sharingProductDAO.getAllEmailsbyPID(Integer.parseInt(prodotto[i][7]));\n if (userSharedProduct.isEmpty() || userSharedProduct.size()>1){\n prodotto[i][9] = String.valueOf(userSharedProduct.size()) + \" utenti\";\n } else {\n prodotto[i][9] = String.valueOf(userSharedProduct.size()) + \" utente\";\n }\n } else {\n prodotto[i][9] = \"Tutti gli utenti\";\n }\n }\n \n session.setAttribute(\"Prodotto\", prodotto);\n \n }", "public static void main(String[] args) throws Exception\n {\n Scanner sc = new Scanner(System.in);\n ArrayList<String> parse = null;\n Producto product = null;\n Iterator<Producto> it = null;\n ArrayList<Producto> listProducts = new ArrayList<Producto>();\n int op = 0;\n\n do {\n parse = procesarEntrada(sc.nextLine());\n op = Integer.parseInt(parse.get(0));\n switch (op)\n {\n case 1: // add a new product \n if (parse.get(1).equals(\"Medicamento\"))\n {\n product = new Medicamento(parse.get(6), parse.get(2), Long.parseLong(parse.get(3)), Float.parseFloat(parse.get(4)), parse.get(5));\n }\n else if (parse.get(1).equals(\"Alimentos\"))\n {\n product = new Alimentos(parse.get(6), parse.get(2), Long.parseLong(parse.get(3)), Float.parseFloat(parse.get(4)), parse.get(5));\n }\n listProducts.add(product);\n break;\n\n case 2: // show all of the products\n\n it = listProducts.iterator();\n System.out.println(\"***DrogueriaTic***\");\n while(it.hasNext()) {\n System.out.println(it.next());\n }\n break; \n }\n } while (op != 3);\n\n sc.close();\n }", "private ArrayList<Order> extractProductFromResultSet(ResultSet rs){\n ArrayList<Order> orderList = new ArrayList<>();\n\n try {\n Order order = new Order();\n ProdOrder ps;\n ProductDao pd;\n Product p;\n AddressDao ad;\n Address a;\n int i = 0;\n\n while (rs.next()){\n\n // creo inserisco dati ordine generale\n order = new Order();\n i++;\n order.setOrderID(rs.getInt(\"OrderID\"));\n order.setUserID(rs.getInt(\"UserID\"));\n order.setDate(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parse(rs.getString(\"Date\")));\n //System.out.println(\"[ INFO ] Data: \" + order.getDate().toString());\n // creo prodotto con dati venditore\n pd = new ProductDaoImpl();\n p = pd.getProduct(rs.getInt(\"ProductID\"),rs.getInt(\"ShopID\"));\n //System.out.println(\"[ INFO ] Prodotto : \" + p.getProductName());\n\n // creo indirizzo spedizione\n ad = new AddressDaoImpl();\n a = ad.getAddress(rs.getInt(\"AddressID\"));\n\n // creo l'ordine del prodotto particolare e lo aggiungo alla lista dell'ordine generale\n ps = extractProdOrder(rs,p,a);\n\n // aggiungo l'ordine del prodotto al corrispettivo ordine generale\n order.getProductList().add(ps);\n //System.out.println(order.toString());\n // ciclo sugli elementi successivi dell'ordine (basta aggiungere gli progelem alla lista ordine)\n while (rs.next()){\n\n // se trovo un elemento che non appartiene più all'ordine corrente\n if (rs.getInt(\"OrderID\") != order.getOrderID()){\n // finalizzo l'ordine\n System.out.println(\"[ INFO ] Ordine \" + order.getOrderID() + \" aggiunto\");\n orderList.add(order);\n // torno all'elemento precedente (perchè poi nel while esterno ritorno avanti di uno e dichiaro un nuovo ordine)\n rs.previous();\n // esco dal while interno (ovvero non ho più prodotti relativi all'ordine corrente)\n break;\n }\n\n // creo prodotto con dati venditore\n pd = new ProductDaoImpl();\n p = pd.getProduct(rs.getInt(\"ProductID\"), rs.getInt(\"ShopID\"));\n //System.out.println(\"[ INFO ] Prodotto : \" + p.getProductName());\n\n // creo indirizzo spedizione\n ad = new AddressDaoImpl();\n a = ad.getAddress(rs.getInt(\"AddressID\"));\n\n // creo l'ordine del prodotto particolare e lo aggiungo alla lista dell'ordine generale\n ps = extractProdOrder(rs,p,a);\n\n // aggiungo l'ordine del prodotto al corrispettivo ordine generale\n order.getProductList().add(ps);\n }\n\n }\n if (i > 0){\n orderList.add(order);\n //System.out.println(\"[ INFO ] Ordine \" + order.getOrderID() + \" aggiunto\");\n }\n\n return orderList;\n } catch (SQLException | ParseException e) {\n e.printStackTrace();\n }\n return null;\n }", "ArrayList<Product> ListOfProducts();", "public String addProduct(Context pActividad,int pId, String pDescripcion,float pPrecio)\n {\n AdminSQLiteOpenHelper admin = new AdminSQLiteOpenHelper(pActividad, \"administracion\", null, 1);\n\n // con el objeto de la clase creado habrimos la conexion\n SQLiteDatabase db = admin.getWritableDatabase();\n try\n {\n // Comprobamos si el id ya existe\n Cursor filas = db.rawQuery(\"Select codigo from Articulos where codigo = \" + pId, null);\n if(filas.getCount()<=0)\n {\n //ingresamos los valores mediante, key-value asocioados a nuestra base de datos (tecnica muñeca rusa admin <- db <- registro)\n ContentValues registro = new ContentValues();\n registro.put(\"codigo\",pId);\n registro.put(\"descripcion\",pDescripcion);\n registro.put(\"precio\", pPrecio);\n\n //ahora insertamos este registro en la base de datos\n db.insert(\"Articulos\", null, registro);\n }\n else\n return \"El ID insertado ya existe\";\n }\n catch (Exception e)\n {\n return \"Error Añadiendo producto\";\n }\n finally\n {\n db.close();\n }\n return \"Producto Añadido Correctamente\";\n }", "public int getIdProducto() {\n return idProducto;\n }", "public Producto getProducto() {\n\t\treturn producto;\n\t}", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n\n try {\n\n Object o[] = null;\n List<Producto> listP = CProducto.findProductoEntities();\n boolean resp = false; //ESTO ES LA BANDERA PARA SABER SI EL PRODUCTO EXISTE\n int num = 0;\n String nombreP = txtproducto.getText();\n for (int i = 0; i < listP.size(); i++) {\n\n if (listP.get(i).getNombreProducto().equals(txtproducto.getText())) {\n resp = true;\n num = i;\n }\n }\n if (resp != true) { //VA A VENDER UN PRODUCTO QUE NO EXISTE:\n JOptionPane.showMessageDialog(null, \"Estás intentando vender un articulo que no existe!\\nRevisa tu inventario.\", \"ERROR\", JOptionPane.WARNING_MESSAGE);\n\n } else {\n //Obtenemos el valor total y la cantidad que tenemos hasta ahora en inventarios.\n int cantidadTotal = listP.get(num).getCantidadAlmacenada();\n\n //Obtenemos el valor total de la compra que acabamos de realizar\n int cantidadCompra = Integer.parseInt(txtcantidad.getText());\n\n int resultado = cantidadTotal - cantidadCompra;\n if (resultado < 0) {\n JOptionPane.showMessageDialog(null, \"Lo sentimos, no tenemos esa cantidad.\\nActualmente solo le podemos vender \" + cantidadTotal + \" unidades de ese articulo.\", \"Total excedido\", JOptionPane.INFORMATION_MESSAGE);\n\n int respuesta = JOptionPane.showConfirmDialog(null, \"¿Desea realizar una compra por esta cantidad?\", \"Alerta!\", JOptionPane.YES_NO_OPTION);\n\n if (respuesta == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n this.setVisible(false);\n }\n } else if (resultado == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n float valorTotal = listP.get(num).getValorUnitario() * cantidadTotal;\n\n float valorTotalC = Float.parseFloat(txtvalorU.getText()) * cantidadCompra;\n\n //Actualizamos el valor total y la cntidad de inventario (Producto)\n valorTotal = valorTotal - valorTotalC;\n float valorUnitario = valorTotal / resultado; //Este es el costo unitario\n Producto pEdit = CProducto.findProducto(id);\n pEdit.setCantidadAlmacenada(resultado);\n pEdit.setValorUnitario(valorUnitario);\n\n CProducto.edit(pEdit);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n this.setVisible(false);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage() + e.getCause());\n }\n }", "public abstract List<Subproducto> listarSubproducto(EntityManager sesion, Subproducto subproducto);", "public ArrayList<GrupoProducto> consultarTodos(){\r\n ArrayList<GrupoProducto> grupoProducto = new ArrayList<>();\r\n for (int i = 0; i < listaGrupoProductos.size(); i++) {\r\n if (!listaGrupoProductos.get(i).isEliminado()) {\r\n grupoProducto.add(listaGrupoProductos.get(i));\r\n }\r\n }\r\n return grupoProducto;\r\n }", "public void cargarProductosComprados() {\n try {\n //Lectura de los objetos de tipo productoComprado\n FileInputStream archivo= new FileInputStream(\"productosComprados\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosComprados = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "private List<Product> extractProducts() {\r\n\t\t//load products from hidden fields\r\n\t\tif (this.getListProduct() != null){\r\n\t\t\tfor(String p : this.getListProduct()){\r\n\t\t\t\tProduct product = new Product();\r\n\t\t\t\tproduct.setId(Long.valueOf(p));\r\n\t\t\t\tthis.products.add(product);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn this.products;\r\n\t}", "public static ArrayList<Product> addProduct() {\r\n\r\n\t\tboolean proDiscontinued = false;\r\n\t\tboolean proInStock = false;\r\n\t\tint proQtyAvailable = 0;\r\n\r\n\t\tArrayList<Product> newProductArray = new ArrayList<Product>();\r\n\r\n\t\tSystem.out.println(\"---Product details---\");\r\n\r\n\t\tRandom proCodeRandom = new Random();\t\t\t\t\t\t\t\r\n\t\tint proCode = proCodeRandom.nextInt(100);\r\n\r\n\r\n\t\tSystem.out.println(\"Please enter the make of the product:\");\t\t\r\n\r\n\t\tString proMake = Validation.stringNoIntsValidation();\r\n\r\n\r\n\t\tSystem.out.println(\"Please enter the model of the product:\");\r\n\r\n\t\tString proModel = Validation.stringNoIntsValidation();\r\n\r\n\r\n\t\tSystem.out.println(\"Please enter the price of the product:\");\r\n\t\tdouble proPrice = Validation.doubleValidation();\r\n\r\n\t\tSystem.out.println(\"Is the product discontinued? y/n \");\r\n\r\n\t\tString answer = Validation.stringNoIntsValidation();\r\n\r\n\r\n\t\tif(answer.equals(\"y\") || answer.equals(\"Y\")) {\r\n\t\t\tproDiscontinued = true;\r\n\t\t\tSystem.out.println(\"How many products are available?\");\r\n\t\t\tproQtyAvailable = Validation.intValidation();\r\n\t\t\tif(proQtyAvailable <= 0) {\r\n\r\n\t\t\t\tproInStock = false;\r\n\t\t\t}else {\r\n\t\t\t\tproInStock = true;\r\n\t\t\t}\r\n\t\t}else if(answer.equals(\"n\") || answer.equals(\"N\")) {\r\n\t\t\tproDiscontinued = false;\r\n\t\t\tSystem.out.println(\"How many products are available?\");\r\n\t\t\tproQtyAvailable = Validation.intValidation();\r\n\t\t\tif(proQtyAvailable <= 0) {\r\n\t\t\t\tproInStock = false;\r\n\t\t\t}else {\r\n\t\t\t\tproInStock = true;\r\n\t\t\t}\r\n\t\t}\t\r\n\r\n\t\tProduct newProduct = new Product(proCode, proMake, proModel, proPrice, proInStock);\r\n\t\tnewProduct.setProQtyAvailable(proQtyAvailable);\r\n\t\tnewProduct.setProDiscontinued(proDiscontinued);\r\n\r\n\t\tnewProductArray.add(newProduct);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//The product is then added to the array list for the specified supplier\r\n\r\n\t\tSystem.out.println();\r\n\r\n\t\treturn newProductArray;\r\n\t}", "private void fetchProducts() {\n Product p1 = new Product(R.drawable.aj1rls, \"Air Jordan 1 Retro Low Slip\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Jordan\", 9);\n Product p2 = new Product(R.drawable.aj1rhp, \"Air Jordan 1 Retro High Premium\", \"Đen/Trắng\", \"Nữ\", 8500000,9.5,\"Jordan\", 8.7);\n Product p3 = new Product(R.drawable.nm2ktse, \"Nike M2k Tenko SE\", \"Đen/Trắng\", \"Nữ\", 8500000,8,\"Nike\", 8.6);\n Product p4 = new Product(R.drawable.nre55, \"Nike React Element 55\", \"Đen/Trắng\", \"Nữ\", 8500000,8.5,\"Nike\", 9);\n Product p5 = new Product(R.drawable.ncracp, \"NikeCourt Royale AC\", \"Đen/Trắng\", \"Nữ\", 8500000,7,\"Nike\", 8);\n Product p6 = new Product(R.drawable.namff720, \"Nike Air Max FF 720\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p7 = new Product(R.drawable.nam90, \"Nike Air Max 90\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p8 = new Product(R.drawable.nbmby, \"Nike Blazer Mid By You\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p9 = new Product(R.drawable.nam270, \"Nike Air Max 270\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p10 = new Product(R.drawable.ncclxf, \"Air Jordan 1 Retro Low Slip\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Jordan\", 9);\n productList = new ArrayList<>(Arrays.asList(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10));\n }", "private static void createProducts() {\n productRepository.addProduct(Product.builder()\n .name(\"Milk\")\n .barcode(new Barcode(\"5900017304007\"))\n .price(new BigDecimal(2.90))\n .build()\n );\n productRepository.addProduct(Product.builder()\n .name(\"Butter\")\n .barcode(new Barcode(\"5906217041483\"))\n .price(new BigDecimal(4.29))\n .build()\n );\n productRepository.addProduct(Product.builder()\n .name(\"Beer\")\n .barcode(new Barcode(\"5905927001114\"))\n .price(new BigDecimal(2.99))\n .build()\n );\n }", "List<Product> getAllProducts();", "List<Product> getAllProducts();", "List<Product> getAllProducts();", "private void addProduct() {\n String type = console.readString(\"type (\\\"Shirt\\\", \\\"Pant\\\" or \\\"Shoes\\\"): \");\n String size = console.readString(\"\\nsize: \");\n int qty = console.readInt(\"\\nQty: \");\n int sku = console.readInt(\"\\nSKU: \");\n Double price = console.readDouble(\"\\nPrice: \");\n int reorderLevel = console.readInt(\"\\nReorder Level: \");\n daoLayer.addProduct(type, size, qty, sku, price, reorderLevel);\n\n }", "public Registrar_Producto() {\n this.setContentPane(fondo);\n initComponents();\n llenaArr();\n llenaCB();\n soloLetras(rp_tx_nombre);\n soloNumeros(rp_tx_cantidad);\n soloNumeros(rp_tx_precio);\n soloLetras(rp_tx_descripcion);\n }", "@Override\n\tpublic List<Produto> listar(Produto entidade) {\n\t\treturn null;\n\t}", "public void addStock(Product p, int n) {\nif (p.id < 0) return;\nif (n < 1) return;\n\nfor (int i = 0; i < productCatalog.size(); i++) {\nProductStockPair pair = productCatalog.get(i);\nif (pair.product.id == p.id) {\nproductCatalog.set(i, new ProductStockPair(p, pair.stock + n));\nreturn;\n}\n}\nproductCatalog.add(new ProductStockPair(p, n));\n}", "public static void llenarWalmart(){\r\n \r\n \r\n Producto café = new Producto(\"cafe\", \"nescafe\", 77, 2);\r\n Nodo<Producto> nTemp = new Nodo(café);\r\n listaWalmart.agregarNodo(nTemp);\r\n \r\n Producto panblancobimbo = new Producto(\"pan blanco bimbo\", \"bimbo\", 30, 2);\r\n Nodo<Producto> nTemp2 = new Nodo(panblancobimbo);\r\n listaWalmart.agregarNodo(nTemp2);\r\n \r\n Producto lecheentera = new Producto(\"leche\", \"Lala\", 17, 2);\r\n Nodo<Producto> nTemp3 = new Nodo(lecheentera);\r\n listaWalmart.agregarNodo(nTemp3);\r\n \r\n Producto mantequilla = new Producto(\"mantequilla\", \"sin sal lala\", 11.50, 2);\r\n Nodo<Producto> nTemp4 = new Nodo(mantequilla);\r\n listaWalmart.agregarNodo(nTemp4);\r\n \r\n Producto huevoblanco= new Producto(\"huevo\", \"san juan\",50.50, 2);\r\n Nodo<Producto> nTemp5 = new Nodo(huevoblanco);\r\n listaWalmart.agregarNodo(nTemp5);\r\n \r\n Producto crema= new Producto(\"crema\", \"lala\", 46, 2);\r\n Nodo<Producto> nTemp6 = new Nodo(crema);\r\n listaWalmart.agregarNodo(nTemp6);\r\n \r\n Producto naranja= new Producto(\"naranja\", \"valencia\", 15.90, 0);\r\n Nodo<Producto> nTemp7 = new Nodo(naranja);\r\n listaWalmart.agregarNodo(nTemp7);\r\n \r\n Producto limon= new Producto(\"limon\", \"limon agrio\", 25.90, 0);\r\n Nodo<Producto> nTemp8 = new Nodo(limon);\r\n listaWalmart.agregarNodo(nTemp8);\r\n \r\n Producto manzana= new Producto(\"manzana\", \"red delicious\", 39.90, 0);\r\n Nodo<Producto> nTemp9 = new Nodo(manzana);\r\n listaWalmart.agregarNodo(nTemp9);\r\n \r\n Producto plátano = new Producto(\"platano\", \"chiapas\", 13.90, 0);\r\n Nodo<Producto> nTemp10 = new Nodo(plátano);\r\n listaWalmart.agregarNodo(nTemp10);\r\n \r\n Producto papaya= new Producto(\"papaya\", \"maradol\",27.90, 0);\r\n Nodo<Producto> nTemp11 = new Nodo(papaya);\r\n listaWalmart.agregarNodo(nTemp11);\r\n \r\n Producto uva= new Producto(\"uva\", \"roja sin semilla\", 59, 0);\r\n Nodo<Producto> nTemp12 = new Nodo(uva);\r\n listaWalmart.agregarNodo(nTemp12);\r\n \r\n Producto chiledelarbol= new Producto(\"chile del arbol\", \"verde valle\", 20, 2);\r\n Nodo<Producto> nTemp13 = new Nodo(chiledelarbol);\r\n listaWalmart.agregarNodo(nTemp13);\r\n \r\n Producto piernaymuslodepollo = new Producto(\"pierna y muslo de pollo\", \"bachoco\", 34, 1);\r\n Nodo<Producto> nTemp14 = new Nodo(piernaymuslodepollo);\r\n listaWalmart.agregarNodo(nTemp14);\r\n \r\n Producto pechugadepollo= new Producto(\"pechuga de pollo\", \"bachoco\", 114, 1);\r\n Nodo<Producto> nTemp15 = new Nodo(pechugadepollo);\r\n listaWalmart.agregarNodo(nTemp15);\r\n \r\n Producto costilladecerdo= new Producto(\"costilla de cerdo\", \"pork loin\", 114, 1);\r\n Nodo<Producto> nTemp16 = new Nodo(costilladecerdo);\r\n listaWalmart.agregarNodo(nTemp16);\r\n \r\n Producto carnemolida= new Producto(\"carne molida\", \"premium\", 152, 1);\r\n Nodo<Producto> nTemp17 = new Nodo(carnemolida);\r\n listaWalmart.agregarNodo(nTemp17);\r\n \r\n Producto chuletadecostilla= new Producto(\"chuleta de costilla\", \"premium\", 219, 1);\r\n Nodo<Producto> nTemp18 = new Nodo(chuletadecostilla);\r\n listaWalmart.agregarNodo(nTemp18);\r\n \r\n Producto pescado= new Producto(\"pescado\", \"sierra del golfo\", 89, 1);\r\n Nodo<Producto> nTemp19 = new Nodo(pescado);\r\n listaWalmart.agregarNodo(nTemp19);\r\n \r\n Producto atun= new Producto(\"atun\", \"herdez\", 18.50, 2);\r\n Nodo<Producto> nTemp20 = new Nodo(atun);\r\n listaWalmart.agregarNodo(nTemp20);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"verde valle super extra\", 22.50, 2);\r\n Nodo<Producto> nTemp21 = new Nodo(arroz);\r\n listaWalmart.agregarNodo(nTemp21);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"verde valle\", 30, 2);\r\n Nodo<Producto> nTemp22 = new Nodo(frijol);\r\n listaWalmart.agregarNodo(nTemp22);\r\n \r\n \r\n Producto azucar= new Producto(\"azucar\", \"zulka\", 54, 2);\r\n Nodo<Producto> nTemp23 = new Nodo(azucar);\r\n listaWalmart.agregarNodo(nTemp23);\r\n \r\n Producto consome= new Producto(\"consome\", \"knorr\", 7, 2);\r\n Nodo<Producto> nTemp24 = new Nodo(consome);\r\n listaWalmart.agregarNodo(nTemp24);\r\n \r\n Producto galletassaladas= new Producto(\"galletas saladas\", \"saladitas\", 40, 2);\r\n Nodo<Producto> nTemp25 = new Nodo(galletassaladas);\r\n listaWalmart.agregarNodo(nTemp25);\r\n \r\n Producto sal= new Producto(\"sal\", \"la fina\", 8.90, 2);\r\n Nodo<Producto> nTemp26 = new Nodo(sal);\r\n listaWalmart.agregarNodo(nTemp26);\r\n \r\n Producto pimienta= new Producto(\"pimienta\", \"mccormick\", 47.50, 2);\r\n Nodo<Producto> nTemp27= new Nodo(pimienta);\r\n listaWalmart.agregarNodo(nTemp27);\r\n \r\n Producto comino= new Producto(\"comino\", \"mccormick\", 30, 2);\r\n Nodo<Producto> nTemp28 = new Nodo(comino);\r\n listaWalmart.agregarNodo(nTemp28);\r\n \r\n Producto canela= new Producto(\"canela\", \"el cuernito\", 4.50, 2);\r\n Nodo<Producto> nTemp29 = new Nodo(canela);\r\n listaWalmart.agregarNodo(nTemp29);\r\n \r\n Producto cebolla= new Producto(\"cebolla\", \"blanca\", 31.90, 2);\r\n Nodo<Producto> nTemp30 = new Nodo(cebolla);\r\n listaWalmart.agregarNodo(nTemp30);\r\n \r\n Producto zanahoria= new Producto(\"zanahoria\", \"simple\", 19.50, 2);\r\n Nodo<Producto> nTemp31 = new Nodo(zanahoria);\r\n listaWalmart.agregarNodo(nTemp31);\r\n \r\n Producto polvoparaprepararbebida= new Producto(\"polvo para preparar bebida\", \"zuko\", 3.80, 2);\r\n Nodo<Producto> nTemp32 = new Nodo(polvoparaprepararbebida);\r\n listaWalmart.agregarNodo(nTemp32);\r\n \r\n Producto cereal= new Producto(\"cereal\", \"nestle\", 39.90, 2);\r\n Nodo<Producto> nTemp33 = new Nodo(cereal);\r\n listaWalmart.agregarNodo(nTemp33);\r\n \r\n Producto sopa= new Producto(\"sopa\", \"aurrera \", 3.10, 2);\r\n Nodo<Producto> nTemp34 = new Nodo(sopa);\r\n listaWalmart.agregarNodo(nTemp34);\r\n \r\n \r\n Producto espagueti= new Producto(\"espagueti\", \"moderna\", 5.20, 2);\r\n Nodo<Producto> nTem35 = new Nodo(espagueti);\r\n listaWalmart.agregarNodo(nTem35);\r\n \r\n Producto maquinaparaafeitar= new Producto(\"maquina para afeitar\", \"gillette prestobarba\", 20, 3);\r\n Nodo<Producto> nTemp35 = new Nodo(maquinaparaafeitar);\r\n listaWalmart.agregarNodo(nTemp35);\r\n \r\n Producto shampoo= new Producto(\"shampoo\", \"ego black\", 63.50, 3);\r\n Nodo<Producto> nTemp36 = new Nodo(shampoo);\r\n listaWalmart.agregarNodo(nTemp36);\r\n \r\n \r\n Producto pastadental= new Producto(\"pasta dental\", \"colgate\", 43.50, 3);\r\n Nodo<Producto> nTemp37 = new Nodo(pastadental);\r\n listaWalmart.agregarNodo(nTemp37);\r\n \r\n Producto papelhigienico= new Producto(\"papel higienico\", \"elite\", 17.50, 3);\r\n Nodo<Producto> nTemp38 = new Nodo(papelhigienico);\r\n listaWalmart.agregarNodo(nTemp38);\r\n \r\n Producto pañuelos = new Producto(\"pañuelos\", \"kleenex\", 14.50, 3);\r\n Nodo<Producto> nTemp39 = new Nodo(pañuelos);\r\n listaWalmart.agregarNodo(nTemp39);\r\n \r\n Producto cremad = new Producto(\"crema\", \"pond´s\", 56, 2);\r\n Nodo<Producto> nTemp40 = new Nodo(cremad);\r\n listaWalmart.agregarNodo(nTemp40);\r\n \r\n Producto desodorantemasculino= new Producto(\"desodorante masculino\", \"stefano\", 41.50, 3);\r\n Nodo<Producto> nTemp41 = new Nodo(desodorantemasculino);\r\n listaWalmart.agregarNodo(nTemp41);\r\n \r\n Producto desodorantefemenino= new Producto(\"desodorante femenino\", \"lady speed stick\", 23, 3);\r\n Nodo<Producto> nTemp42 = new Nodo(desodorantefemenino);\r\n listaWalmart.agregarNodo(nTemp42);\r\n \r\n Producto cloro= new Producto(\"cloro\", \"cloralex\", 21, 3);\r\n Nodo<Producto> nTemp43 = new Nodo(cloro);\r\n listaWalmart.agregarNodo(nTemp43);\r\n \r\n Producto pinol= new Producto(\"pinol\", \"pinol\", 29.90, 3);\r\n Nodo<Producto> nTemp44 = new Nodo(pinol);\r\n listaWalmart.agregarNodo(nTemp44);\r\n \r\n Producto lavatrastes= new Producto(\"lavatrastes\", \"axion\", 36.90, 3);\r\n Nodo<Producto> nTemp45 = new Nodo(lavatrastes);\r\n listaWalmart.agregarNodo(nTemp45);\r\n \r\n Producto deterjente= new Producto(\"deterjente\", \"finish\", 99, 3);\r\n Nodo<Producto> nTemp46 = new Nodo(deterjente);\r\n listaWalmart.agregarNodo(nTemp46);\r\n \r\n Producto queso= new Producto(\"queso\", \"chichuahua\", 125, 1);\r\n Nodo<Producto> nTemp47 = new Nodo(queso);\r\n listaWalmart.agregarNodo(nTemp47);\r\n \r\n Producto lentejas= new Producto(\"lentejas\", \"verde valle\", 25.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo(lentejas);\r\n listaWalmart.agregarNodo(nTemp48);\r\n \r\n Producto papitas= new Producto(\"papitas\", \"sabritas\", 36, 2);\r\n Nodo<Producto> nTemp49 = new Nodo(papitas);\r\n listaWalmart.agregarNodo(nTemp49);\r\n \r\n Producto mole= new Producto(\"mole\", \"doña maria \", 33, 2);\r\n Nodo<Producto> nTemp50 = new Nodo(mole);\r\n listaWalmart.agregarNodo(nTemp50);\r\n }", "public ArrayList<producto> bodegaDefault() { \n ArrayList<producto> temporaryProductList = new ArrayList<producto>();\n temporaryProductList.add(new producto(001, \"Mouse Logitech\", 39990, 10));\n temporaryProductList.add(new producto(002, \"Teclado Logitech\", 79990, 20));\n temporaryProductList.add(new producto(003, \"Mousepad Razer\", 19990, 30));\n temporaryProductList.add(new producto(004, \"MSI GTX 970\", 119990, 10));\n return temporaryProductList;\n }", "public List<Producto> obtenerProductosConfigurados(List<Producto> productos){\n\t\treturn null;\n\t}", "public static void addProduct(Product product){\r\n \r\n System.out.println(\"Adding Product \" + product.getProductName());\r\n productInvMap.put(productInvMap.size(),product);\r\n }", "public lisProducto(int modo) {\n initComponents();\n setModo(modo);\n setFiltro(\"\");\n }", "public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }", "public void guardarProductosEnVenta() {\n try {\n //Si hay datos los guardamos...\n \n /****** Serialización de los objetos ******/\n //Serialización de las productosEnVenta\n FileOutputStream archivo = new FileOutputStream(\"productosVentaCliente\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de productosEnVenta\n guardar.writeObject(productosEnVenta);\n archivo.close();\n \n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }", "public List<Product> list();", "public Product getProductInfo(int pid) {\nfor (ProductStockPair pair : productCatalog) {\nif (pair.product.id == pid) {\nreturn pair.product;\n}\n}\nreturn null;\n}", "public void buscarProductosXSucursal(){\n\t\tif(getEmpresaId()==null){\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Seleccione una sucursal\"));\n\t\t\treturn;\t\t\n\t\t}\n\t\tsetProductoEmpresaList(productoEmpresaService.getByEmpresa(getEmpresaId()));\n\t\tif(getProductoEmpresaList()==null||getProductoEmpresaList().isEmpty()){\n\t\t\tRequestContext.getCurrentInstance().execute(\"PF('confirmarBusqueda').show();\");\n\t\t}\n\t}", "public static void llenarAlsuper(){\r\n Producto huevos = new Producto(\"huevos\", \"bachoco\", 56.90, 1);\r\n Nodo<Producto> ATemp = new Nodo(huevos);\r\n listaAlsuper.agregarNodo(ATemp);\r\n \r\n Producto chuletas = new Producto(\"chuletas\", \"Del Cero\", 84.90, 1);\r\n Nodo<Producto> ATemp2 = new Nodo(chuletas);\r\n listaAlsuper.agregarNodo(ATemp2);\r\n \r\n Producto carnemolida = new Producto(\"carne molida\", \"premium\", 79.90, 1);\r\n Nodo<Producto> ATemp3 = new Nodo(carnemolida);\r\n listaAlsuper.agregarNodo(ATemp3);\r\n \r\n Producto pollo = new Producto(\"pollo\", \"super pollo\", 59.90, 1);\r\n Nodo<Producto> ATemp4 = new Nodo(pollo);\r\n listaAlsuper.agregarNodo(ATemp4);\r\n \r\n Producto pescado = new Producto(\"pescado\", \"el pecesito\", 63.90, 1);\r\n Nodo<Producto> ATemp5 = new Nodo(pescado);\r\n listaAlsuper.agregarNodo(ATemp5);\r\n \r\n Producto atunagua = new Producto(\"atun en agua\", \"en agua\", 9.90, 1);\r\n Nodo<Producto> ATemp6 = new Nodo(atunagua);\r\n listaAlsuper.agregarNodo(ATemp6);\r\n \r\n Producto atunaceite = new Producto(\"atun en aceite\", \"en aceite\", 9.90, 1);\r\n Nodo<Producto> ATemp7 = new Nodo(atunaceite);\r\n listaAlsuper.agregarNodo(ATemp7);\r\n \r\n Producto leche = new Producto(\"leche\", \"nutri leche\", 14.90, 1);\r\n Nodo<Producto> ATemp8 = new Nodo(leche);\r\n listaAlsuper.agregarNodo(ATemp8);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"mimarca\", 13.90, 1);\r\n Nodo<Producto> ATemp9 = new Nodo(arroz);\r\n listaAlsuper.agregarNodo(ATemp9);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"pinto\", 16.90, 1);\r\n Nodo<Producto> ATemp10 = new Nodo(frijol);\r\n listaAlsuper.agregarNodo(ATemp10);\r\n \r\n Producto azucar = new Producto(\"azucar\", \"mimarca\", 17.90, 1);\r\n Nodo<Producto> ATemp11 = new Nodo(azucar);\r\n listaAlsuper.agregarNodo(ATemp11);\r\n \r\n Producto sal = new Producto(\"sal\", \"salada\", 10.90, 1);\r\n Nodo<Producto> ATemp12 = new Nodo(sal);\r\n listaAlsuper.agregarNodo(ATemp12);\r\n \r\n Producto pimienta = new Producto(\"pimienta\", \"pimi\", 3.90, 2);\r\n Nodo<Producto> ATemp13 = new Nodo(pimienta);\r\n listaAlsuper.agregarNodo(ATemp13);\r\n \r\n Producto limon = new Producto(\"limon\", \"verde\", 5.90, 0);\r\n Nodo<Producto> ATemp14 = new Nodo(limon);\r\n listaAlsuper.agregarNodo(ATemp14);\r\n \r\n Producto tomate = new Producto(\"tomate\", \"rojo\", 13.90, 0);\r\n Nodo<Producto> ATemp15 = new Nodo(tomate);\r\n listaAlsuper.agregarNodo(ATemp15);\r\n \r\n Producto zanahoria = new Producto(\"zanahoria\", \"goku\", 8.90, 0);\r\n Nodo<Producto> ATemp16 = new Nodo(zanahoria);\r\n listaAlsuper.agregarNodo(ATemp16);\r\n \r\n Producto papas = new Producto(\"papas\", \"ochoa\", 8.90, 0);\r\n Nodo<Producto> ATemp17 = new Nodo(papas);\r\n listaAlsuper.agregarNodo(ATemp17);\r\n \r\n Producto cebolla = new Producto(\"cebolla\", \"blanca\", 17.90, 1);\r\n Nodo<Producto> ATemp18 = new Nodo(cebolla);\r\n listaAlsuper.agregarNodo(ATemp18);\r\n \r\n Producto aceitecocina = new Producto(\"aceite de cocina\", \"123\", 29.90, 1);\r\n Nodo<Producto> ATemp19 = new Nodo(aceitecocina);\r\n listaAlsuper.agregarNodo(ATemp19);\r\n \r\n Producto panblanco = new Producto(\"pan blanco\", \"blanco\", 2.90, 1);\r\n Nodo<Producto> ATemp20 = new Nodo(panblanco);\r\n listaAlsuper.agregarNodo(ATemp20);\r\n \r\n Producto pan = new Producto(\"pan\", \"bimbo\", 39.90, 1);\r\n Nodo<Producto> ATemp21 = new Nodo(pan);\r\n listaAlsuper.agregarNodo(ATemp21);\r\n \r\n Producto zuko = new Producto(\"zuko\", \"zuko\", 4.90, 1);\r\n Nodo<Producto> ATemp22 = new Nodo(zuko);\r\n listaAlsuper.agregarNodo(ATemp22);\r\n \r\n Producto consome = new Producto(\"consome\", \"panchi\", 10.90, 2);\r\n Nodo<Producto> ATemp23 = new Nodo(consome);\r\n listaAlsuper.agregarNodo(ATemp23);\r\n \r\n Producto cereal = new Producto(\"cereal\", \"nesquik\", 40.90, 2);\r\n Nodo<Producto> ATemp24 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp24);\r\n \r\n Producto cereal2 = new Producto(\"cereal\", \"zucaritas\", 50.90, 2);\r\n Nodo<Producto> ATemp25 = new Nodo(cereal2);\r\n listaAlsuper.agregarNodo(ATemp25);\r\n \r\n Producto cereal3 = new Producto(\"cereal\", \"kellogs\", 35.90, 2);\r\n Nodo<Producto> ATemp26 = new Nodo(cereal3);\r\n listaAlsuper.agregarNodo(ATemp26);\r\n \r\n Producto chocomilk = new Producto(\"chocomilk\", \"pancho pantera\", 60.90, 2);\r\n Nodo<Producto> ATemp27 = new Nodo(chocomilk);\r\n listaAlsuper.agregarNodo(ATemp27);\r\n \r\n Producto apio = new Producto(\"apio\", \"pa el clamato\", 1.90, 0);\r\n Nodo<Producto> ATemp28 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp28);\r\n \r\n Producto chocomilk2 = new Producto(\"chocomilk\", \"el dinosaurio\", 15.90, 2);\r\n Nodo<Producto> ATemp29 = new Nodo(chocomilk2);\r\n listaAlsuper.agregarNodo(ATemp29);\r\n \r\n Producto chile = new Producto(\"chile\", \"amor\", 7.90, 0);\r\n Nodo<Producto> ATemp30 = new Nodo(chile);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto chilaca = new Producto(\"chilaca\", \"chihuahua\", 8.80, 0);\r\n Nodo<Producto> ATemp31 = new Nodo(chilaca);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto cafe= new Producto(\"cafe\", \"nescafe\",.90, 2);\r\n Nodo<Producto> ATemp32 = new Nodo(cafe);\r\n listaAlsuper.agregarNodo(ATemp32);\r\n \r\n Producto sopa = new Producto(\"sopa\", \"de coditos\", 4.90, 2);\r\n Nodo<Producto> ATemp33 = new Nodo(sopa);\r\n listaAlsuper.agregarNodo(ATemp33);\r\n \r\n Producto sopa2 = new Producto(\"sopa\", \"estrellas\", 3.90, 2);\r\n Nodo<Producto> ATemp34 = new Nodo(sopa2);\r\n listaAlsuper.agregarNodo(ATemp34);\r\n \r\n Producto sopa3 = new Producto(\"sopa\", \"moñitos\", 3.90, 2);\r\n Nodo<Producto> ATemp35 = new Nodo(sopa3);\r\n listaAlsuper.agregarNodo(ATemp35);\r\n \r\n Producto sopa4 = new Producto(\"sopa\", \"letras\", 3.90, 2);\r\n Nodo<Producto> ATemp36 = new Nodo(sopa4);\r\n listaAlsuper.agregarNodo(ATemp36);\r\n \r\n Producto pasta = new Producto(\"pasta\", \"spaguetti\", 15.90, 2);\r\n Nodo<Producto> ATemp37 = new Nodo(pasta);\r\n listaAlsuper.agregarNodo(ATemp37);\r\n \r\n Producto shampoo = new Producto(\"champu\", \"palmolive\", 36.90, 3);\r\n Nodo<Producto> ATemp38 = new Nodo(shampoo);\r\n listaAlsuper.agregarNodo(ATemp38);\r\n \r\n Producto desodorante = new Producto(\"desodorante\", \"old spice\", 50.90, 3);\r\n Nodo<Producto> ATemp39 = new Nodo(desodorante);\r\n listaAlsuper.agregarNodo(ATemp39);\r\n \r\n Producto jabontrastes = new Producto(\"jabon para los trastes\", \"salvo\", 40.90, 3);\r\n Nodo<Producto> ATemp40 = new Nodo(jabontrastes);\r\n listaAlsuper.agregarNodo(ATemp40);\r\n \r\n Producto jaboncuerpo = new Producto(\"jabon para el cuerpo\", \"jabonzote\", 6.90, 3);\r\n Nodo<Producto> ATemp41 = new Nodo(jaboncuerpo);\r\n listaAlsuper.agregarNodo(ATemp41);\r\n \r\n Producto rastrillo = new Producto(\"rastrillo\", \"gillette\", 60.90, 3);\r\n Nodo<Producto> ATemp42 = new Nodo(rastrillo);\r\n listaAlsuper.agregarNodo(ATemp42);\r\n \r\n Producto detergente = new Producto(\"detergente\", \"downy\", 38.90, 3);\r\n Nodo<Producto> ATemp43 = new Nodo(detergente);\r\n listaAlsuper.agregarNodo(ATemp43);\r\n \r\n Producto puredetomate = new Producto(\"pure de tomate\", \"tomax\", 9.90, 3);\r\n Nodo<Producto> ATemp44 = new Nodo(puredetomate);\r\n listaAlsuper.agregarNodo(ATemp44);\r\n \r\n Producto mole = new Producto(\"mole\", \"doña maria\", 25.90, 3);\r\n Nodo<Producto> ATemp45 = new Nodo(mole);\r\n listaAlsuper.agregarNodo(ATemp45);\r\n \r\n Producto papel = new Producto(\"papel\", \"petalo\", 6.90, 3);\r\n Nodo<Producto> ATemp46 = new Nodo(papel);\r\n listaAlsuper.agregarNodo(ATemp46);\r\n \r\n Producto servilletas = new Producto(\"servilletas\", \"mimarca\", 12.90, 3);\r\n Nodo<Producto> ATemp47 = new Nodo(servilletas);\r\n listaAlsuper.agregarNodo(ATemp47);\r\n \r\n Producto manzana = new Producto(\"manzanas\", \"roja\", 20.90, 0);\r\n Nodo<Producto> ATemp48 = new Nodo(manzana);\r\n listaAlsuper.agregarNodo(ATemp48);\r\n \r\n Producto platano = new Producto(\"platano\", \"meagarras\", 19.90, 0);\r\n Nodo<Producto> ATemp50 = new Nodo(platano);\r\n listaAlsuper.agregarNodo(ATemp50);\r\n \r\n Producto papaya = new Producto(\"papaya\", \"naranja\", 0.90, 0);\r\n Nodo<Producto> ATemp51 = new Nodo(papaya);\r\n listaAlsuper.agregarNodo(ATemp51);\r\n \r\n Producto pastadedientes = new Producto(\"pasta de dientes\", \"colgate\", 30.90, 0);\r\n Nodo<Producto> ATemp52 = new Nodo(pastadedientes);\r\n listaAlsuper.agregarNodo(ATemp52);\r\n \r\n Producto desodorante2 = new Producto(\"desodorante\", \"axe\", 50.90, 3);\r\n Nodo<Producto> ATemp53 = new Nodo(desodorante2);\r\n listaAlsuper.agregarNodo(ATemp53);\r\n \r\n Producto cremacuerpo = new Producto(\"crema\", \"real\", 30.90, 3);\r\n Nodo<Producto> ATemp54 = new Nodo(cremacuerpo);\r\n listaAlsuper.agregarNodo(ATemp54);\r\n \r\n Producto cremacomer = new Producto(\"crema\", \"lala\", 29.90, 2);\r\n Nodo<Producto> ATemp55 = new Nodo(cremacomer);\r\n listaAlsuper.agregarNodo(ATemp55);\r\n \r\n Producto cloro = new Producto(\"cloro\", \"cloralex\", 9.90, 3);\r\n Nodo<Producto> ATemp56 = new Nodo(cloro);\r\n listaAlsuper.agregarNodo(ATemp56);\r\n \r\n Producto pinol = new Producto(\"pinol\", \"pinol\", 28.90, 0);\r\n Nodo<Producto> ATemp57 = new Nodo(pinol);\r\n listaAlsuper.agregarNodo(ATemp57);\r\n \r\n Producto amonia = new Producto(\"amonia\", \"amonio\", 666.66, 3);\r\n Nodo<Producto> ATemp58 = new Nodo(amonia);\r\n listaAlsuper.agregarNodo(ATemp58);\r\n \r\n Producto tortillas = new Producto(\"tortillas\", \"caseras\", 18.90, 2);\r\n Nodo<Producto> ATemp59 = new Nodo(tortillas);\r\n listaAlsuper.agregarNodo(ATemp59);\r\n \r\n Producto winni = new Producto(\"winni\", \"chimex\", 30.90, 1);\r\n Nodo<Producto> ATemp60 = new Nodo(winni);\r\n listaAlsuper.agregarNodo(ATemp60);\r\n \r\n Producto salchicha = new Producto(\"salchicha\", \"chimex\", 60.90, 1);\r\n Nodo<Producto> ATemp61 = new Nodo(salchicha);\r\n listaAlsuper.agregarNodo(ATemp61);\r\n \r\n Producto jamon = new Producto(\"jamon\", \"chimex\", 70.90, 1);\r\n Nodo<Producto> ATemp63 = new Nodo(jamon);\r\n listaAlsuper.agregarNodo(ATemp63);\r\n \r\n Producto queso = new Producto(\"queso\", \"camargo\", 90.90, 1);\r\n Nodo<Producto> ATemp64 = new Nodo(queso);\r\n listaAlsuper.agregarNodo(ATemp64);\r\n \r\n Producto saladas = new Producto(\"saladas\", \"saladitas\", 15.90, 2);\r\n Nodo<Producto> ATemp65 = new Nodo(saladas);\r\n listaAlsuper.agregarNodo(ATemp65);\r\n \r\n Producto galletas = new Producto(\"galletas\", \"emperador\", 18.90, 2);\r\n Nodo<Producto> ATemp66 = new Nodo(galletas);\r\n listaAlsuper.agregarNodo(ATemp66);\r\n \r\n Producto lentejas = new Producto(\"lentejas\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp67 = new Nodo(lentejas);\r\n listaAlsuper.agregarNodo(ATemp67);\r\n \r\n Producto puredepapa = new Producto(\"pure de papa\", \"mi marca\", 20.90, 2);\r\n Nodo<Producto> ATemp68 = new Nodo(puredepapa);\r\n listaAlsuper.agregarNodo(ATemp68);\r\n \r\n Producto trapos = new Producto(\"trapos\", \"trapitos\", 15.90, 3);\r\n Nodo<Producto> ATemp69 = new Nodo(trapos);\r\n listaAlsuper.agregarNodo(ATemp69);\r\n \r\n Producto soda = new Producto(\"soda\", \"cocacola\", 31.90, 2);\r\n Nodo<Producto> ATemp70 = new Nodo(soda);\r\n listaAlsuper.agregarNodo(ATemp70);\r\n \r\n Producto jugo = new Producto(\"jugo\", \"jumex\",19.90, 2);\r\n Nodo<Producto> ATemp71 = new Nodo(jugo);\r\n listaAlsuper.agregarNodo(ATemp71);\r\n \r\n Producto cerbeza = new Producto(\"cerbeza\", \"indio\", 11.90, 2);\r\n Nodo<Producto> ATemp72 = new Nodo(cerbeza);\r\n listaAlsuper.agregarNodo(ATemp72);\r\n \r\n Producto hielo = new Producto(\"hielo\", \"pinguino\", 10.90, 2);\r\n Nodo<Producto> ATemp73 = new Nodo(hielo);\r\n listaAlsuper.agregarNodo(ATemp73);\r\n \r\n Producto salsa = new Producto(\"salsa\", \"maggi\", 60.90, 2);\r\n Nodo<Producto> ATemp74 = new Nodo(salsa);\r\n listaAlsuper.agregarNodo(ATemp74);\r\n \r\n Producto desechables = new Producto(\"desechables\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp75 = new Nodo(desechables);\r\n listaAlsuper.agregarNodo(ATemp75);\r\n \r\n Producto chicharo = new Producto(\"chicharo\", \"chicharo\", 10.90, 2);\r\n Nodo<Producto> ATemp76 = new Nodo(chicharo);\r\n listaAlsuper.agregarNodo(ATemp76);\r\n \r\n Producto elotes = new Producto(\"elotes\", \"elotin\", 2.90, 2);\r\n Nodo<Producto> ATemp77 = new Nodo(elotes);\r\n listaAlsuper.agregarNodo(ATemp77);\r\n \r\n Producto champiñones = new Producto(\"champiñones\", \"toat\", 14.90, 2);\r\n Nodo<Producto> ATemp78 = new Nodo(champiñones);\r\n listaAlsuper.agregarNodo(ATemp78);\r\n \r\n Producto sardina = new Producto(\"sardina\", \"sardinota\", 31.90, 2);\r\n Nodo<Producto> ATemp79 = new Nodo(sardina);\r\n listaAlsuper.agregarNodo(ATemp79);\r\n \r\n Producto hilodental = new Producto(\"hilo dental\", \"colgate\", 40.90, 3);\r\n Nodo<Producto> ATemp80 = new Nodo(hilodental);\r\n listaAlsuper.agregarNodo(ATemp80);\r\n \r\n Producto cepillodedientes = new Producto(\"cepillo de dientes\", \"colgate\", 25.90, 3);\r\n Nodo<Producto> ATemp81 = new Nodo(cepillodedientes);\r\n listaAlsuper.agregarNodo(ATemp81);\r\n \r\n Producto gel = new Producto(\"gel para el cabello\", \"ego\", 16.90, 3);\r\n Nodo<Producto> ATemp82 = new Nodo(gel);\r\n listaAlsuper.agregarNodo(ATemp82);\r\n \r\n Producto cera = new Producto(\"cera\", \"ego\", 47.90, 3);\r\n Nodo<Producto> ATemp83 = new Nodo(cera);\r\n listaAlsuper.agregarNodo(ATemp83);\r\n \r\n Producto aerosol = new Producto(\"aerosol\", \"paris\", 75.90, 3);\r\n Nodo<Producto> ATemp84 = new Nodo(aerosol);\r\n listaAlsuper.agregarNodo(ATemp84);\r\n \r\n Producto acondicionador = new Producto(\"acondicionador\", \"loreal paris\", 70.90, 3);\r\n Nodo<Producto> ATemp85 = new Nodo(acondicionador);\r\n listaAlsuper.agregarNodo(ATemp85);\r\n \r\n Producto cremaafeitar = new Producto(\"crema para afeitar\", \"yilet\", 40.90, 3);\r\n Nodo<Producto> ATemp86 = new Nodo(cremaafeitar);\r\n listaAlsuper.agregarNodo(ATemp86);\r\n }", "public Producto getProductoBusqueda(ArrayList<Producto>busqueda){\n try{\n BufferedReader read = new BufferedReader(new InputStreamReader(System.in));\n System.out.println(busqueda.toString());\n System.out.println(\"Introduzca el inidice del producto a comprar, 1 para el primero\");\n int indice =Integer.parseInt(read.readLine());\n Producto resultado=busqueda.get(indice-1);\n\n\n return resultado;\n \n }catch(IOException ioe){\n System.out.println(\"ERROR: \"+ioe.getMessage());\n }catch(Exception e){\n System.out.println(\"ERROR: \"+e.getMessage());\n }\n return null; \n }" ]
[ "0.7604665", "0.7423955", "0.72283924", "0.72078454", "0.7146369", "0.7145108", "0.7115355", "0.70117885", "0.6962381", "0.6950054", "0.6927441", "0.6924345", "0.69111323", "0.68982184", "0.6871187", "0.686493", "0.6855958", "0.68445635", "0.6840391", "0.6802743", "0.6760858", "0.67510027", "0.67448807", "0.6734727", "0.6732481", "0.67053634", "0.6689221", "0.6678558", "0.66602397", "0.664386", "0.66299516", "0.66261566", "0.66180974", "0.6606386", "0.6600151", "0.6593565", "0.6581432", "0.6581046", "0.6560484", "0.6549609", "0.6545849", "0.65383", "0.65356225", "0.65330637", "0.65330267", "0.65288293", "0.6521433", "0.6510479", "0.650327", "0.6496426", "0.649082", "0.64873207", "0.64864874", "0.6484329", "0.64817876", "0.6481027", "0.6478709", "0.6469438", "0.64630467", "0.64611334", "0.6454764", "0.6453564", "0.644597", "0.6431069", "0.64122504", "0.64122504", "0.6402239", "0.64010847", "0.6385194", "0.63844526", "0.638138", "0.6376505", "0.63756037", "0.6357933", "0.6354726", "0.63510567", "0.63495624", "0.6342999", "0.6342655", "0.6342039", "0.6333603", "0.63253707", "0.63241935", "0.63241935", "0.63241935", "0.6319511", "0.63000447", "0.6298174", "0.62965804", "0.6293915", "0.6289689", "0.62833774", "0.62803084", "0.6279407", "0.62674546", "0.625746", "0.6255059", "0.6252676", "0.6250473", "0.6250019", "0.6236407" ]
0.0
-1
Check for any missing dependencies, returning a set of names and disabling the module is any are found
public final Set<String> missingDependencies(final Collection<ModuleInstance> instances) { final JSONArray dependencies = this.descriptionFile.getDependency(); if(dependencies == null) { // No dependencies return Collections.emptySet(); } final Set<String> missing = new HashSet<>(); for(int i = 0; i < dependencies.length(); i++) { final String name = dependencies.string(i); if(instances.stream().noneMatch(instance -> instance.getDescriptionFile().getName().equalsIgnoreCase(name))) { missing.add(name); this.status = Status.MISSING_DEPENDENCY; } } return missing; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<String> getDependencies();", "public String[] getUnresolvedDependencies();", "public Set<String> getMissingModules() {\r\n return missing;\r\n }", "public String[] getResolvedDependencies();", "@Override\n\tpublic void checkDependencies() throws Exception\n\t{\n\t\t\n\t}", "@Override\n public Collection<Class<? extends IFloodlightService>> getModuleDependencies() {\n return null;\n }", "public List<Module> unloadedButAvailableModules() {\n \t\tArrayList<Module> returned = new ArrayList<Module>();\n \t\treturned.addAll(_availableModules);\n \t\tfor (Enumeration<FlexoModule> e = loadedModules(); e.hasMoreElements();) {\n \t\t\treturned.remove(e.nextElement().getModule());\n \t\t}\n \t\treturn returned;\n \t}", "@Test\n public void testZeroDependencies() {\n dependencyManager.depend(\"foo\", ImmutableSet.of());\n assertTrue(dependencyManager.isdepend(\"foo\", ImmutableSet.of()));\n }", "Set<DependencyItem> getUnresolvedDependencies(ControllerState state);", "String getApplicationDependencies();", "boolean isBundleDependencies();", "public void resolveInternalDependencies()\n {\n List<Dependency> dependencies = getUnresolvedDependencies();\n\n for (Dependency dependency : dependencies)\n {\n List<Target> allTargets = getTargets();\n\n for (Target target : allTargets)\n {\n String dependencyName = dependency.getName();\n String targetName = target.getName();\n\n System.out.println(\"Antfile.resolveInternalDependencies dependencyName, targetName = \" + dependencyName + \" \" + targetName);\n\n if (dependencyName == null)\n {\n System.out.println(\"Antfile.resolveInternalDependencies dependency = \" + dependency);\n }\n else if (dependencyName.equals(targetName))\n {\n dependency.setResolved(true);\n\n break;\n }\n }\n }\n }", "Requires getRequires();", "Set<Path> getDependencies();", "public default String[] getDependencies() {\r\n\t\treturn new String[0];\r\n\t}", "public final boolean hasDependents() {\r\n synchronized (f_seaLock) {\r\n return !f_dependents.isEmpty();\r\n }\r\n }", "@Stub\n\tpublic String[] getDependencies()\n\t{\n\t\treturn new String[] {};\n\t}", "private void collectDependencies() throws Exception {\n backupModAnsSumFiles();\n CommandResults goGraphResult = goDriver.modGraph(true);\n String cachePath = getCachePath();\n String[] dependenciesGraph = goGraphResult.getRes().split(\"\\\\r?\\\\n\");\n for (String entry : dependenciesGraph) {\n String moduleToAdd = entry.split(\" \")[1];\n addModuleDependencies(moduleToAdd, cachePath);\n }\n restoreModAnsSumFiles();\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}", "private boolean checkDependenciesSatisfied() {\n\t\tLOGGER.trace(\"CheckDependenciesSatisfied: Start Checking\");\n\t\tfinal Collection<ModuleDependency> moduleDependencies = selfModule.getDependencies();\n\t\tif (moduleDependencies == null) {\n\t\t\treturn true;\n\t\t}\n\t\tfor (final ModuleDependency moduleDependency : moduleDependencies) {\n\t\t\tif (!peerDiscoveryService.getPeerRegistry().containsPeerWithType(moduleDependency.getModuleTypeId(), true)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private static List<ModCandidate> findCompatibleSet(Collection<ModCandidate> candidates, EnvType envType, Map<String, Set<ModCandidate>> envDisabledMods) throws ModResolutionException {\n\n\t\tList<ModCandidate> allModsSorted = new ArrayList<>(candidates);\n\n\t\tallModsSorted.sort(modPrioComparator);\n\n\t\t// group/index all mods by id\n\n\t\tMap<String, List<ModCandidate>> modsById = new LinkedHashMap<>(); // linked to ensure consistent execution\n\n\t\tfor (ModCandidate mod : allModsSorted) {\n\t\t\tmodsById.computeIfAbsent(mod.getId(), ignore -> new ArrayList<>()).add(mod);\n\n\t\t\tfor (String provided : mod.getProvides()) {\n\t\t\t\tmodsById.computeIfAbsent(provided, ignore -> new ArrayList<>()).add(mod);\n\t\t\t}\n\t\t}\n\n\t\t// soften positive deps from schema 0 or 1 mods on mods that are present but disabled for the current env\n\t\t// this is a workaround necessary due to many mods declaring deps that are unsatisfiable in some envs and loader before 0.12x not verifying them properly\n\n\t\tfor (ModCandidate mod : allModsSorted) {\n\t\t\tif (mod.getMetadata().getSchemaVersion() >= 2) continue;\n\n\t\t\tfor (ModDependency dep : mod.getMetadata().getDependencies()) {\n\t\t\t\tif (!dep.getKind().isPositive() || dep.getKind() == Kind.SUGGESTS) continue; // no positive dep or already suggests\n\t\t\t\tif (!(dep instanceof ModDependencyImpl)) continue; // can't modify dep kind\n\t\t\t\tif (modsById.containsKey(dep.getModId())) continue; // non-disabled match available\n\n\t\t\t\tCollection<ModCandidate> disabledMatches = envDisabledMods.get(dep.getModId());\n\t\t\t\tif (disabledMatches == null) continue; // no disabled id matches\n\n\t\t\t\tfor (ModCandidate m : disabledMatches) {\n\t\t\t\t\tif (dep.matches(m.getVersion())) { // disabled version match -> remove dep\n\t\t\t\t\t\t((ModDependencyImpl) dep).setKind(Kind.SUGGESTS);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// preselect mods, check for builtin mod collisions\n\n\t\tList<ModCandidate> preselectedMods = new ArrayList<>();\n\n\t\tfor (List<ModCandidate> mods : modsById.values()) {\n\t\t\tModCandidate builtinMod = null;\n\n\t\t\tfor (ModCandidate mod : mods) {\n\t\t\t\tif (mod.isBuiltin()) {\n\t\t\t\t\tbuiltinMod = mod;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (builtinMod == null) continue;\n\n\t\t\tif (mods.size() > 1) {\n\t\t\t\tmods.remove(builtinMod);\n\t\t\t\tthrow new ModResolutionException(\"Mods share ID with builtin mod %s: %s\", builtinMod, mods);\n\t\t\t}\n\n\t\t\tpreselectedMods.add(builtinMod);\n\t\t}\n\n\t\tMap<String, ModCandidate> selectedMods = new HashMap<>(allModsSorted.size());\n\t\tList<ModCandidate> uniqueSelectedMods = new ArrayList<>(allModsSorted.size());\n\n\t\tfor (ModCandidate mod : preselectedMods) {\n\t\t\tpreselectMod(mod, allModsSorted, modsById, selectedMods, uniqueSelectedMods);\n\t\t}\n\n\t\t// solve\n\n\t\tModSolver.Result result;\n\n\t\ttry {\n\t\t\tresult = ModSolver.solve(allModsSorted, modsById,\n\t\t\t\t\tselectedMods, uniqueSelectedMods);\n\t\t} catch (ContradictionException | TimeoutException e) {\n\t\t\tthrow new ModResolutionException(\"Solving failed\", e);\n\t\t}\n\n\t\tif (!result.success) {\n\t\t\tLog.warn(LogCategory.RESOLUTION, \"Mod resolution failed\");\n\t\t\tLog.info(LogCategory.RESOLUTION, \"Immediate reason: %s%n\", result.immediateReason);\n\t\t\tLog.info(LogCategory.RESOLUTION, \"Reason: %s%n\", result.reason);\n\t\t\tif (!envDisabledMods.isEmpty()) Log.info(LogCategory.RESOLUTION, \"%s environment disabled: %s%n\", envType.name(), envDisabledMods.keySet());\n\n\t\t\tif (result.fix == null) {\n\t\t\t\tLog.info(LogCategory.RESOLUTION, \"No fix?\");\n\t\t\t} else {\n\t\t\t\tLog.info(LogCategory.RESOLUTION, \"Fix: add %s, remove %s, replace [%s]%n\",\n\t\t\t\t\t\tresult.fix.modsToAdd,\n\t\t\t\t\t\tresult.fix.modsToRemove,\n\t\t\t\t\t\tresult.fix.modReplacements.entrySet().stream().map(e -> String.format(\"%s -> %s\", e.getValue(), e.getKey())).collect(Collectors.joining(\", \")));\n\n\t\t\t\tfor (Collection<ModCandidate> mods : envDisabledMods.values()) {\n\t\t\t\t\tfor (ModCandidate m : mods) {\n\t\t\t\t\t\tresult.fix.inactiveMods.put(m, InactiveReason.WRONG_ENVIRONMENT);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthrow new ModResolutionException(\"Mod resolution encountered an incompatible mod set!%s\",\n\t\t\t\t\tResultAnalyzer.gatherErrors(result, selectedMods, modsById, envDisabledMods, envType));\n\t\t}\n\n\t\tuniqueSelectedMods.sort(Comparator.comparing(ModCandidate::getId));\n\n\t\t// clear cached data and inbound refs for unused mods, set minNestLevel for used non-root mods to max, queue root mods\n\n\t\tQueue<ModCandidate> queue = new ArrayDeque<>();\n\n\t\tfor (ModCandidate mod : allModsSorted) {\n\t\t\tif (selectedMods.get(mod.getId()) == mod) { // mod is selected\n\t\t\t\tif (!mod.resetMinNestLevel()) { // -> is root\n\t\t\t\t\tqueue.add(mod);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmod.clearCachedData();\n\n\t\t\t\tfor (ModCandidate m : mod.getNestedMods()) {\n\t\t\t\t\tm.getParentMods().remove(mod);\n\t\t\t\t}\n\n\t\t\t\tfor (ModCandidate m : mod.getParentMods()) {\n\t\t\t\t\tm.getNestedMods().remove(mod);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// recompute minNestLevel (may have changed due to parent associations having been dropped by the above step)\n\n\t\t{\n\t\t\tModCandidate mod;\n\n\t\t\twhile ((mod = queue.poll()) != null) {\n\t\t\t\tfor (ModCandidate child : mod.getNestedMods()) {\n\t\t\t\t\tif (child.updateMinNestLevel(mod)) {\n\t\t\t\t\t\tqueue.add(child);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tString warnings = ResultAnalyzer.gatherWarnings(uniqueSelectedMods, selectedMods,\n\t\t\t\tenvDisabledMods, envType);\n\n\t\tif (warnings != null) {\n\t\t\tLog.warn(LogCategory.RESOLUTION, \"Warnings were found!%s\", warnings);\n\t\t}\n\n\t\treturn uniqueSelectedMods;\n\t}", "public static List<Module> getExtraDependencyModules() {\r\n\t\treturn Arrays.asList((Module)new TitanGraphModule());\r\n\t}", "private List resolvePackages(Iterator pkgs) {\n ArrayList res = new ArrayList();\n\n while (pkgs.hasNext()) {\n ExportPkg provider = null;\n ImportPkg ip = (ImportPkg)pkgs.next();\n if (ip.provider != null) {\n framework.listeners.frameworkError(ip.bpkgs.bundle,\n new Exception(\"resolvePackages: InternalError1!\"));\n }\n if (Debug.packages) {\n Debug.println(\"resolvePackages: check - \" + ip.pkgString());\n }\n provider = (ExportPkg)tempProvider.get(ip.name);\n if (provider != null) {\n if (Debug.packages) {\n Debug.println(\"resolvePackages: \" + ip.name + \" - has temporary provider - \"\n + provider);\n }\n if (provider.zombie && provider.bpkgs.bundle.state == Bundle.UNINSTALLED) {\n if (Debug.packages) {\n Debug.println(\"resolvePackages: \" + ip.name +\n \" - provider not used since it is an uninstalled zombie - \"\n + provider);\n }\n provider = null;\n } else if (!ip.okPackageVersion(provider.version)) {\n if (Debug.packages) {\n Debug.println(\"resolvePackages: \" + ip.name +\n \" - provider has wrong version - \" + provider +\n \", need \" + ip.packageRange + \", has \" + provider.version);\n }\n provider = null;\n }\n } else {\n for (Iterator i = ip.pkg.providers.iterator(); i.hasNext(); ) {\n ExportPkg ep = (ExportPkg)i.next();\n tempBlackListChecks++;\n if (tempBlackList.contains(ep)) {\n tempBlackListHits++;\n continue;\n }\n\t if (ep.zombie) {\n // TBD! Should we refrain from using a zombie package and try a new provider instead?\n continue;\n }\n if (ip.okPackageVersion(ep.version)) {\n if (Debug.packages) {\n Debug.println(\"resolvePackages: \" + ip.name + \" - has provider - \" + ep);\n }\n HashMap oldTempProvider = (HashMap)tempProvider.clone();\n if (!checkUses(ep)) {\n tempProvider = oldTempProvider;\n tempBlackList.add(ep);\n continue;\n }\n provider = ep;\n break;\n }\n }\n if (provider == null) {\n provider = pickProvider(ip);\n }\n if (provider != null) {\n tempProvider.put(ip.pkg.pkg, provider);\n }\n }\n if (provider == null) {\n if (ip.resolution == Constants.RESOLUTION_MANDATORY) {\n res.add(ip);\n } else {\n if (Debug.packages) {\n Debug.println(\"resolvePackages: Ok, no provider for optional \" + ip.name);\n }\n }\n }\n }\n return res;\n }", "Iterable<String> getModuleNames();", "public String[] getAllDependencyExtensions();", "@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}", "public void dontWantToInstall() {\n\t\tpackageList.removeAll(packageList);\n\t}", "private void getModules() throws BuildException {\n FilenameFilter fltr = new FilenameFilter() {\n @Override\n public boolean accept(final File dir, final String name) {\n return name.endsWith(\".war\");\n }\n };\n\n if (warDir == null) {\n throw new BuildException(\"No wardir supplied\");\n }\n\n String[] warnames = warDir.list(fltr);\n\n if (warnames == null) {\n throw new BuildException(\"No wars found at \" + warDir);\n }\n\n for (int wi = 0; wi < warnames.length; wi++) {\n wars.add(warnames[wi]);\n }\n\n for (FileSet fs: filesets) {\n DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n\n String[] dsFiles = ds.getIncludedFiles();\n\n for (int dsi = 0; dsi < dsFiles.length; dsi++) {\n String fname = dsFiles[dsi];\n\n if (fname.endsWith(\".jar\")) {\n jars.add(fname);\n } else if (fname.endsWith(\".war\")) {\n wars.add(fname);\n }\n }\n }\n }", "public String[] requires() { return new String[0]; }", "Set<DependencyItem> getIDependOn(Class<?> type);", "public void setSkipDependencies(boolean skipDependencies) {\n\t\tthis.skipDependencies = skipDependencies;\n\t}", "@Test\n public void shouldNotReportValidReferences() {\n\n Compilation compilation = compile();\n assertThat(compilation).failed();\n\n List<Diagnostic<? extends JavaFileObject>> collect = compilation.errors().stream()\n .filter(e -> e.getMessage(null).indexOf(\"must not access org.moditect.deptective.plugintest.basic.bar\") == -1)\n .collect(Collectors.toList());\n\n assertThat(\n \"Test-Class 'Foo' should not have any invalid dependencies beside those to 'org.moditect.deptective.plugintest.basic.bar*'\",\n collect, Is.is(Lists.emptyList()));\n }", "public Collection<String> getRequireFeature();", "default ImmutableSet<Class<? extends ManagedService>> getDependencies()\n\t{\n\t\treturn Sets.immutable.empty();\n\t}", "private Collection getPackagesProvidedBy(BundlePackages bpkgs) {\n ArrayList res = new ArrayList();\n // NYI Improve the speed here!\n for (Iterator i = bpkgs.getExports(); i.hasNext();) {\n ExportPkg ep = (ExportPkg) i.next();\n if (ep.pkg.providers.contains(ep)) {\n res.add(ep);\n }\n }\n return res;\n }", "public IPath[] getAdditionalDependencies();", "public int returnTargetSourcesWithoutDep() {\r\n ArrayList<Module> DepSources = (returnSourceModuleLists().get(0)); //Gets all source modules with dependencies\r\n ArrayList<Module> TargetSourcesNoDep = new ArrayList<>();\r\n\r\n for (FileLine line : getQueryData()) {\r\n if (line.isDependency()) {\r\n String Target = line.getAttribute(\"target\");\r\n Module TargetModule = new Module(Target); //Creates new module from target module\r\n\r\n //If the target module is not in the DepSources list or the TargetSourceNoDepList, then it is added to the latter\r\n if (DepSources.indexOf(TargetModule) == -1 && TargetSourcesNoDep.indexOf(TargetModule) == -1) {\r\n TargetSourcesNoDep.add(TargetModule);\r\n }\r\n }\r\n }\r\n return TargetSourcesNoDep.size(); //Returning the number of elements in the ArrayList\r\n }", "public abstract List<Requirement> getFailedChecks();", "private Set<String> crossCheckDependenciesAndResolve(Map<String, List<Dependency>> dependencies) throws MojoFailureException {\n Map<String, Map<String, Dependency>> lookupTable = new HashMap<>();\n for (String bom : dependencies.keySet()) {\n Map<String, Dependency> bomLookup = new HashMap<>();\n lookupTable.put(bom, bomLookup);\n\n for (Dependency dependency : dependencies.get(bom)) {\n String key = dependencyKey(dependency);\n bomLookup.put(key, dependency);\n }\n }\n\n Map<String, Set<VersionInfo>> inconsistencies = new TreeMap<>();\n Set<String> trueInconsistencies = new TreeSet<>();\n\n // Cross-check all dependencies\n for (String bom1 : dependencies.keySet()) {\n for (Dependency dependency1 : dependencies.get(bom1)) {\n String key = dependencyKey(dependency1);\n String version1 = dependency1.getArtifact().getVersion();\n\n for (String bom2 : dependencies.keySet()) {\n // Some boms have conflicts with themselves\n\n Dependency dependency2 = lookupTable.get(bom2).get(key);\n String version2 = dependency2 != null ? dependency2.getArtifact().getVersion() : null;\n if (version2 != null) {\n Set<VersionInfo> inconsistency = inconsistencies.get(key);\n if (inconsistency == null) {\n inconsistency = new TreeSet<>();\n inconsistencies.put(key, inconsistency);\n }\n\n inconsistency.add(new VersionInfo(dependency1, bom1));\n inconsistency.add(new VersionInfo(dependency2, bom2));\n\n if (!version2.equals(version1)) {\n trueInconsistencies.add(key);\n }\n }\n }\n }\n }\n\n // Try to solve with preferences\n Set<String> resolvedInconsistencies = new TreeSet<>();\n DependencyMatcher preferencesMatcher = new DependencyMatcher(this.preferences);\n for (String key : trueInconsistencies) {\n int preferred = 0;\n for (VersionInfo nfo : inconsistencies.get(key)) {\n if (preferencesMatcher.matches(nfo.getDependency())) {\n preferred++;\n }\n }\n\n if (preferred == 1) {\n resolvedInconsistencies.add(key);\n }\n }\n\n trueInconsistencies.removeAll(resolvedInconsistencies);\n\n if (trueInconsistencies.size() > 0) {\n StringBuilder message = new StringBuilder();\n message.append(\"Found \" + trueInconsistencies.size() + \" inconsistencies in the generated BOM.\\n\");\n\n for (String key : trueInconsistencies) {\n message.append(key);\n message.append(\" has different versions:\\n\");\n for (VersionInfo nfo : inconsistencies.get(key)) {\n message.append(\" - \");\n message.append(nfo);\n message.append(\"\\n\");\n }\n }\n\n throw new MojoFailureException(message.toString());\n }\n\n return resolvedInconsistencies;\n }", "private Set<LECCModule> getDependeeModuleSet() {\r\n Set<LECCModule> dependeeModuleSet = new HashSet<LECCModule>();\r\n buildDependeeModuleSet(getModuleTypeInfo(), new HashSet<ModuleName>(), dependeeModuleSet);\r\n \r\n return dependeeModuleSet;\r\n }", "protected Set getModules()\n throws MojoExecutionException, MojoFailureException\n {\n Map dependencies = new HashMap();\n\n for ( Iterator i = reactorProjects.iterator(); i.hasNext(); )\n {\n MavenProject reactorProject = (MavenProject) i.next();\n\n Artifact artifact = reactorProject.getArtifact();\n\n try\n {\n artifactResolver.resolve( artifact, project.getRemoteArtifactRepositories(), localRepository );\n }\n catch ( ArtifactNotFoundException e )\n {\n //TODO: Is there a better way to get the artifact if it is not yet installed in the repo?\n //reactorProject.getArtifact().getFile() is returning null\n //tried also the project.getArtifact().getFile() but returning same result\n File fileArtifact = new File( reactorProject.getBuild().getDirectory() + File.separator +\n reactorProject.getBuild().getFinalName() + \".\" + reactorProject.getPackaging() );\n\n getLog().info( \"Artifact ( \" + artifact.getFile().getName() + \" ) not found \" +\n \"in any repository, resolving thru modules...\" );\n\n artifact.setFile( fileArtifact );\n\n if ( fileArtifact.exists() )\n {\n if ( artifact.getType().equals( \"pom\" ) )\n {\n continue;\n }\n\n addModuleArtifact( dependencies, artifact );\n }\n }\n catch ( ArtifactResolutionException e )\n {\n throw new MojoExecutionException( \"Failed to resolve artifact\", e );\n }\n\n if ( artifact.getFile() != null )\n {\n if ( artifact.getType().equals( \"pom\" ) )\n {\n continue;\n }\n\n addModuleArtifact( dependencies, artifact );\n }\n }\n return new HashSet( dependencies.values() );\n }", "@Override\n\tpublic Set<Class<? extends IndexingItemHandler>> getDependencies() {\n\t\treturn null;\n\t}", "public void loadDependencies() throws Exception {\n\n\t\t// Make seperate loading bar\n\t\tif (plugin.getConfigHandler().useAdvancedDependencyLogs()) {\n\t\t\tplugin.getLogger().info(\"---------------[Autorank Dependencies]---------------\");\n\t\t\tplugin.getLogger().info(\"Searching dependencies...\");\n\t\t}\n\n\t\t// Load all dependencies\n\t\tfor (final DependencyHandler depHandler : handlers.values()) {\n\t\t\t// Make sure to respect settings\n\t\t\tdepHandler.setup(plugin.getConfigHandler().useAdvancedDependencyLogs());\n\t\t}\n\n\t\tif (plugin.getConfigHandler().useAdvancedDependencyLogs()) {\n\t\t\tplugin.getLogger().info(\"Searching stats plugin...\");\n\t\t\tplugin.getLogger().info(\"\");\n\t\t}\n\n\t\t// Search a stats plugin.\n\t\tstatsPluginManager.searchStatsPlugin();\n\n\t\tif (plugin.getConfigHandler().useAdvancedDependencyLogs()) {\n\t\t\t// Make seperate stop loading bar\n\t\t\tplugin.getLogger().info(\"---------------[Autorank Dependencies]---------------\");\n\t\t}\n\n\t\tplugin.getLogger().info(\"Loaded libraries and dependencies\");\n\n\t}", "public static Set<String> findTranslatablePackagesInModule(final GeneratorContext context) {\n final Set<String> packages = new HashSet<String>();\n try {\n final StandardGeneratorContext stdContext = (StandardGeneratorContext) context;\n final Field field = StandardGeneratorContext.class.getDeclaredField(\"module\");\n field.setAccessible(true);\n final Object o = field.get(stdContext);\n\n final ModuleDef moduleDef = (ModuleDef) o;\n\n if (moduleDef == null) {\n return Collections.emptySet();\n }\n\n // moduleName looks like \"com.foo.xyz.MyModule\" and we just want the package part\n // for tests .JUnit is appended to the module name by GWT\n final String moduleName = moduleDef.getCanonicalName().replace(\".JUnit\", \"\");\n final int endIndex = moduleName.lastIndexOf('.');\n final String modulePackage = endIndex == -1 ? \"\" : moduleName.substring(0, endIndex);\n\n for (final String packageName : findTranslatablePackages(context)) {\n if (packageName != null && packageName.startsWith(modulePackage)) {\n packages.add(packageName);\n }\n }\n }\n catch (final NoSuchFieldException e) {\n logger.error(\"the version of GWT you are running does not appear to be compatible with this version of Errai\", e);\n throw new RuntimeException(\"could not access the module field in the GeneratorContext\");\n }\n catch (final Exception e) {\n throw new RuntimeException(\"could not determine module package\", e);\n }\n\n return packages;\n }", "public static Set<String> getIndicatorExemptedPackages(@NonNull Context context) {\n updateIndicatorExemptedPackages(context);\n ArraySet<String> pkgNames = new ArraySet<>();\n pkgNames.add(SYSTEM_PKG);\n for (int i = 0; i < INDICATOR_EXEMPTED_PACKAGES.length; i++) {\n String exemptedPackage = INDICATOR_EXEMPTED_PACKAGES[i];\n if (exemptedPackage != null) {\n pkgNames.add(exemptedPackage);\n }\n }\n return pkgNames;\n }", "@Test\n public void testNonSpecifiedImports() throws Exception {\n final DefaultConfiguration checkConfig =\n createModuleConfig(CustomImportOrderCheck.class);\n checkConfig.addAttribute(\"thirdPartyPackageRegExp\", \"org.\");\n checkConfig.addAttribute(\"customImportOrderRules\",\n \"STATIC###STANDARD_JAVA_PACKAGE###THIRD_PARTY_PACKAGE###SAME_PACKAGE(3)\");\n checkConfig.addAttribute(\"sortImportsInGroupAlphabetically\", \"true\");\n final String[] expected = {\n \"4: \" + getCheckMessage(MSG_LEX, \"java.awt.Button.ABORT\",\n \"java.io.File.createTempFile\"),\n \"5: \" + getCheckMessage(MSG_LEX, \"java.awt.print.Paper.*\",\n \"java.io.File.createTempFile\"),\n \"10: \" + getCheckMessage(MSG_LEX, \"java.awt.Dialog\", \"java.awt.Frame\"),\n \"15: \" + getCheckMessage(MSG_LEX, \"java.io.File\", \"javax.swing.JTable\"),\n \"16: \" + getCheckMessage(MSG_LEX, \"java.io.IOException\", \"javax.swing.JTable\"),\n \"17: \" + getCheckMessage(MSG_LEX, \"java.io.InputStream\", \"javax.swing.JTable\"),\n \"18: \" + getCheckMessage(MSG_LEX, \"java.io.Reader\", \"javax.swing.JTable\"),\n \"20: \" + getCheckMessage(MSG_ORDER, SAME, THIRD, \"com.puppycrawl.tools.*\"),\n \"22: \" + getCheckMessage(MSG_NONGROUP_IMPORT, \"com.google.common.collect.*\"),\n \"23: \" + getCheckMessage(MSG_LINE_SEPARATOR, \"org.junit.*\"),\n };\n\n verify(checkConfig, getPath(\"InputCustomImportOrderDefault.java\"), expected);\n }", "@Override\n\tpublic void typeCheck()\n\t{\n\t\t// Check for module name duplication\n\n\t\tboolean nothing = true;\n\t\tboolean hasFlat = false;\n\n\t\tfor (AModuleModules m1 : modules)\n\t\t{\n\t\t\tfor (AModuleModules m2 : modules)\n\t\t\t{\n\t\t\t\tif (m1 != m2 && m1.getName().equals(m2.getName()))\n\t\t\t\t{\n\t\t\t\t\tTypeChecker.report(3429, \"Module \" + m1.getName()\n\t\t\t\t\t\t\t+ \" duplicates \" + m2.getName(), m1.getName().getLocation());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (m1.getIsFlat())\n\t\t\t{\n\t\t\t\thasFlat = true;\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (hasFlat && Settings.release == Release.CLASSIC)\n\t\t\t\t{\n\t\t\t\t\tTypeChecker.report(3308, \"Cannot mix modules and flat specifications\", m1.getName().getLocation());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!m1.getTypeChecked())\n\t\t\t{\n\t\t\t\tnothing = false;\n\t\t\t}\n\t\t}\n\n\t\tif (nothing)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n \t\t// Mark top level definitions of flat specifications as used\n \t\tnew PDefinitionAssistantTC(new TypeCheckerAssistantFactory());\n \t\t\n \t\tfor (AModuleModules module: modules)\n \t\t{\n \t\t\tif (module instanceof CombinedDefaultModule)\n \t\t\t{\n\t \t\t\tfor (PDefinition definition: module.getDefs())\n\t \t\t\t{\n \t\t\t\t\tassistantFactory.createPDefinitionAssistant().markUsed(definition);\n\t \t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n\t\t// Generate implicit definitions for pre_, post_, inv_ functions etc.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tEnvironment env = new ModuleEnvironment(assistantFactory, m);\n\t\t\t\tassistantFactory.createPDefinitionListAssistant().implicitDefinitions(m.getDefs(), env);\n\t\t\t}\n\t\t}\n\n\t\t// Exports have to be identified before imports can be processed.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tassistantFactory.createAModuleModulesAssistant().processExports(m); // Populate exportDefs\n\t\t\t}\n\t\t}\n\n\t\t// Process the imports early because renamed imports create definitions\n\t\t// which can affect type resolution.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tassistantFactory.createAModuleModulesAssistant().processImports(m, modules); // Populate importDefs\n\t\t\t}\n\t\t}\n\n\t\t// Create a list of all definitions from all modules, including\n\t\t// imports of renamed definitions.\n\n\t\tList<PDefinition> alldefs = new Vector<PDefinition>();\n\t\tList<PDefinition> checkDefs = new Vector<PDefinition>();\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tfor (PDefinition d : m.getImportdefs())\n\t\t\t{\n\t\t\t\talldefs.add(d);\n\t\t\t\tif (!m.getTypeChecked())\n\t\t\t\t{\n\t\t\t\t\tcheckDefs.add(d);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tfor (PDefinition d : m.getDefs())\n\t\t\t{\n\t\t\t\talldefs.add(d);\n\t\t\t\tif (!m.getTypeChecked())\n\t\t\t\t{\n\t\t\t\t\tcheckDefs.add(d);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Attempt type resolution of unchecked definitions from all modules.\n\t\tEnvironment env = new FlatCheckedEnvironment(assistantFactory, alldefs, NameScope.NAMESANDSTATE);\n\t\tTypeCheckVisitor tc = new TypeCheckVisitor();\n\t\tfor (PDefinition d : checkDefs)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tassistantFactory.createPDefinitionAssistant().typeResolve(d, tc, new TypeCheckInfo(new TypeCheckerAssistantFactory(), env));\n\t\t\t} catch (TypeCheckException te)\n\t\t\t{\n\t\t\t\treport(3430, te.getMessage(), te.location);\n\t\t\t} catch (AnalysisException te)\n\t\t\t{\n\t\t\t\treport(3431, te.getMessage(), null);// FIXME: internal error\n\t\t\t}\n\t\t}\n\n\t\t// Proceed to type check all definitions, considering types, values\n\t\t// and remaining definitions, in that order.\n\n\t\tfor (Pass pass : Pass.values())\n\t\t{\n\t\t\tfor (AModuleModules m : modules)\n\t\t\t{\n\t\t\t\tif (!m.getTypeChecked())\n\t\t\t\t{\n\t\t\t\t\tEnvironment e = new ModuleEnvironment(assistantFactory, m);\n\n\t\t\t\t\tfor (PDefinition d : m.getDefs())\n\t\t\t\t\t{\n\t\t\t\t\t\t// System.out.println(\"Number of Defs: \" + m.getDefs().size());\n\t\t\t\t\t\t// System.out.println(\"Def to typecheck: \" + d.getName());\n\t\t\t\t\t\tif (d.getPass() == pass)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\td.apply(tc, new TypeCheckInfo(assistantFactory, e, NameScope.NAMES));\n\t\t\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t\t} catch (TypeCheckException te)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treport(3431, te.getMessage(), te.location);\n\t\t\t\t\t\t\t} catch (AnalysisException te)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treport(3431, te.getMessage(), null);// FIXME: internal error\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// System.out.println(\"Number of Defs: \" + m.getDefs().size());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Report any discrepancies between the final checked types of\n\t\t// definitions and their explicit imported types.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\t// TODO\n\t\t\t\tassistantFactory.createAModuleModulesAssistant().processImports(m, modules); // Re-populate importDefs\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t// TODO\n\t\t\t\t\tassistantFactory.createAModuleModulesAssistant().typeCheckImports(m);\n\t\t\t\t\t// m.typeCheckImports(); // Imports compared to exports\n\t\t\t\t} catch (TypeCheckException te)\n\t\t\t\t{\n\t\t\t\t\treport(3432, te.getMessage(), te.location);\n\t\t\t\t} catch (AnalysisException te)\n\t\t\t\t{\n\t\t\t\t\treport(3431, te.getMessage(), null);// FIXME: internal error\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Any names that have not been referenced or exported produce \"unused\"\n\t\t// warnings.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tassistantFactory.createPDefinitionListAssistant().unusedCheck(m.getImportdefs());\n\t\t\t\tassistantFactory.createPDefinitionListAssistant().unusedCheck(m.getDefs());\n\t\t\t}\n\t\t}\n\t}", "public void checkRequirements() throws TNotFoundEx{\n\t\t\n\t\tArrayList<SimpleEntry> toolsCheck = new ArrayList<>();\n\t\t\n\t\t//adb\n\t\ttoolsCheck.add(new SimpleEntry<String, String>(\"adb\", \"adb devices\"));\n\t\t//sqlite3\n\t\ttoolsCheck.add(new SimpleEntry<String, String>(\"sqlite3\", \"sqlite3 -version\"));\n\t\t//strings\n\t\ttoolsCheck.add(new SimpleEntry<String, String>(\"strings\", \"strings -v\"));\n\t\t\n\t\tboolean pass = this.checkToolOnHost(toolsCheck);\n\t\t\n\t\tif (!pass)\n\t\t\tthrow new TNotFoundEx(\"Missing tools on host: Please install the missing tools and rerun the command\");\n\t}", "protected void setDependencies() {\n\t\t\n\t}", "public static Set<String> getExternalProvidedDeps(Scope runtime, Scope compile) {\n return Sets.difference(compile.getExternalDeps(), runtime.getExternalDeps());\n }", "Set<File> getModules();", "private void solveDependencies() {\n requiredProjects.clear();\n requiredProjects.addAll(getFlattenedRequiredProjects(selectedProjects));\n }", "default Map<DependencyDescriptor, Set<DependencyDescriptor>> getTestDependencies() {\n return Collections.emptyMap();\n }", "public abstract NestedSet<Artifact> getTransitiveJackClasspathLibraries();", "Set<DependencyItem> getDependsOnMe(Class<?> type);", "private void excludeFromWarPackaging() {\n getLog().info(\"excludeFromWarPackaging\");\n String pluginGroupId = \"org.apache.maven.plugins\";\n String pluginArtifactId = \"maven-war-plugin\";\n if (project.getBuildPlugins() != null) {\n for (Object o : project.getBuildPlugins()) {\n Plugin plugin = (Plugin) o;\n\n if (pluginGroupId.equals(plugin.getGroupId()) && pluginArtifactId.equals(plugin.getArtifactId())) {\n Xpp3Dom dom = (Xpp3Dom) plugin.getConfiguration();\n if (dom == null) {\n dom = new Xpp3Dom(\"configuration\");\n plugin.setConfiguration(dom);\n }\n Xpp3Dom excludes = dom.getChild(\"packagingExcludes\");\n if (excludes == null) {\n excludes = new Xpp3Dom(\"packagingExcludes\");\n dom.addChild(excludes);\n excludes.setValue(\"\");\n } else if (excludes.getValue().trim().length() > 0) {\n excludes.setValue(excludes.getValue() + \",\");\n }\n\n Set<Artifact> dependencies = getArtifacts();\n getLog().debug(\"Size of getArtifacts: \" + dependencies.size());\n String additionalExcludes = \"\";\n for (Artifact dependency : dependencies) {\n getLog().debug(\"Dependency: \" + dependency.getGroupId() + \":\" + dependency.getArtifactId() + \"type: \" + dependency.getType());\n if (!dependency.isOptional() && Types.JANGAROO_TYPE.equals(dependency.getType())) {\n getLog().debug(\"Excluding jangaroo dependency form war plugin [\" + dependency.toString() + \"]\");\n // Add two excludes. The first one is effective when no name clash occurs\n additionalExcludes += \"WEB-INF\" + File.separator + \"lib\" + File.separator + dependency.getArtifactId() + \"-\" + dependency.getVersion() + \".jar,\";\n // the second when a name clash occurs (artifact will hav groupId prepended before copying it into the lib dir)\n additionalExcludes += \"WEB-INF\" + File.separator + \"lib\" + File.separator + dependency.getGroupId() + \"-\" + dependency.getArtifactId() + \"-\" + dependency.getVersion() + \".jar,\";\n }\n }\n excludes.setValue(excludes.getValue() + additionalExcludes);\n }\n }\n }\n }", "public List<String> getDependencies() {\n return new ArrayList<>(mDependencies);\n }", "private void validateDependencies() throws ReportingSystemException {\r\n\r\n\t\tif (calculationService == null || manipulationService == null || incomingRankingService == null\r\n\t\t\t\t|| outgoingRankingService == null || dataReader == null || dataWriter == null)\r\n\t\t\tthrow new ReportingSystemException(\r\n\t\t\t\t\tReportingSystemResourceUtil.getValue(ReportingSystemConstants.EXCEPTION_DEPENDENCY_INJECTION));\r\n\r\n\t}", "List<ICMakeModule> getModules();", "int getIncompatiblePluginsCount();", "public Set<String> getPluginDependencyNames() { return pluginDependencyNames; }", "private boolean checkResolve(BundleImpl b) {\n ArrayList okImports = new ArrayList();\n if (framework.perm.missingMandatoryPackagePermissions(b.bpkgs, okImports) == null &&\n checkBundleSingleton(b) == null) {\n HashSet oldTempResolved = (HashSet)tempResolved.clone();\n HashMap oldTempProvider = (HashMap)tempProvider.clone();\n HashMap oldTempRequired = (HashMap)tempRequired.clone();\n HashSet oldTempBlackList = (HashSet)tempBlackList.clone();\n tempResolved.add(b);\n if (checkRequireBundle(b) == null) {\n List r = resolvePackages(okImports.iterator());\n if (r.size() == 0) {\n return true;\n }\n }\n tempResolved = oldTempResolved;\n tempProvider = oldTempProvider;\n tempRequired = oldTempRequired;\n tempBlackList = oldTempBlackList;\n }\n return false;\n }", "private void installModuleDependencies(boolean force) {\n\t\tif(initialised && !force)\n\t\t\treturn;\n\n\t\tAssetManager mgr = getAssets();\n\t\ttry {\n\t\t\tString[] modules = mgr.list(MODULE_PATH);\n\t\t\tif (modules != null) {\n\t\t\t\tfor(String module : modules) {\n\t\t\t\t\tLog.v(TAG, \"Checking module: \" + module);\n\t\t\t\t\tcheckModule(module, force);\n\t\t\t\t\tsendBroadcast(new Intent(\"org.webinos.android.app.wrt.ui.PROGRESS\"));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tLog.v(TAG, \"Unable to get assets in \" + MODULE_PATH);\n\t\t}\n\t\tinitialised = true;\n\t\t/* broadcast intent to indicate we're finished */\n\t\tIntent postInstallIntent = new Intent(ACTION_POSTINSTALL_COMPLETE);\n\t\tpostInstallIntent.setData(Uri.parse(\"package://org.webinos.android.app\"));\n\t\tsendBroadcast(postInstallIntent);\n\t}", "java.util.List<com.google.wireless.android.sdk.stats.BuildAttributionPluginIdentifier>\n getIncompatiblePluginsList();", "@Ignore\n @Test\n public void discoverNoTypes() throws Exception {\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 }", "@Override\n\tpublic void youNeedToImplementTheStaticFunctionCalled_getExtraDependencyModules() {\n\t\t\n\t}", "private void checkNoCycles(List<JpsModule> component) {\n if (component.size() > 1) {\n StringBuilder message = new StringBuilder();\n message.append(\"Found circular module dependency: \")\n .append(component.size())\n .append(\" modules\");\n for (JpsModule module : component) {\n message.append(\" \").append(module.getName());\n }\n logger.error(message.toString());\n }\n }", "public List<String> getDependencies() throws IOException {\n\t\tPackageJSON packageJSON = new ObjectMapper()\n\t\t\t\t.readValue(this.getClass().getClassLoader().getResourceAsStream(\"package.json\"), PackageJSON.class);\n\t\treturn packageJSON.getDependencies();\n\t}", "protected List getDependenciesIncludeList()\n throws MojoExecutionException\n {\n List includes = new ArrayList();\n\n for ( Iterator i = getDependencies().iterator(); i.hasNext(); )\n {\n Artifact a = (Artifact) i.next();\n\n if ( project.getGroupId().equals( a.getGroupId() ) && project.getArtifactId().equals( a.getArtifactId() ))\n {\n continue;\n }\n\n includes.add( a.getGroupId() + \":\" + a.getArtifactId() );\n }\n\n return includes;\n }", "default Map<DependencyDescriptor, Set<DependencyDescriptor>> getDependencies() {\n return Collections.emptyMap();\n }", "boolean hasImported();", "@Override\n\tpublic boolean isIgnored(String fullname) {\n\t\treturn ignorePackages.stream().anyMatch(p -> \n\t\t\tfullname.startsWith(p + DOT) ||\n\t\t\tfullname.equals(p)\n\t\t);\n\t}", "public static List<String> getResolvedLibsList(List<String> libNames) {\n Set<String> removeSet = new HashSet<>();\n // key - nameOfLib , value = list of matched versions\n Map<String, List<String>> versionsMap = new HashMap<>();\n\n for (String libraryName : libNames) {\n LibraryDefinition curLibDef = getLibraryDefinition(libraryName);\n\n String currentLibName = curLibDef.getName();\n String currentLibVersion = curLibDef.getVersion();\n //fill versionsMap\n List<String> tempList = versionsMap.get(currentLibName);\n if (tempList != null)\n tempList.add(currentLibVersion);\n else {\n tempList = new LinkedList<>();\n tempList.add(currentLibVersion);\n versionsMap.put(currentLibName, tempList);\n }\n }\n\n for (Map.Entry<String, List<String>> entry : versionsMap.entrySet()) {\n String key = entry.getKey();\n List<String> versionsList = entry.getValue();\n\n for (int i = 0; i < versionsList.size(); i++) {\n for (int j = i + 1; j < versionsList.size(); j++) {\n String iPlatform = getLibraryPlatform(versionsList.get(i));\n String jPlatform = getLibraryPlatform(versionsList.get(j));\n\n if (!Objects.equals(iPlatform, jPlatform)) {\n continue;\n }\n\n String versionToDelete = getLowestVersion(versionsList.get(i), versionsList.get(j));\n if (versionToDelete != null) {\n versionToDelete = key + \"-\" + versionToDelete + \".jar\";\n removeSet.add(versionToDelete);\n }\n }\n }\n }\n\n List<String> resolvedLibNames = new ArrayList<>(libNames);\n resolvedLibNames.removeAll(removeSet);\n return resolvedLibNames;\n }", "@Test\n public void testSpecifiedDependencies() throws IOException {\n BufferedReader br = new BufferedReader(new FileReader(OUTPUT_DIRECTORY + File.separator + FILENAME_SPECIFIED_DEPENDENCY));\n StringBuilder builder = new StringBuilder();\n String lineContents;\n while ((lineContents = br.readLine()) != null) {\n // The new lines are stripped via FileReader\n builder.append(lineContents);\n builder.append(System.lineSeparator());\n }\n br.close();\n\n // These definitions exist in the test schema file. Ordering is random hence the contains way of testing\n final String schemaFileContents = builder.toString();\n MatcherAssert.assertThat(schemaFileContents, CoreMatchers.containsString(SCHEMA_NAMESPACE));\n MatcherAssert.assertThat(schemaFileContents, CoreMatchers.containsString(SCHEMA_ENUM_USERSTATE));\n MatcherAssert.assertThat(schemaFileContents, CoreMatchers.containsString(SCHEMA_ENUM_CALLTYPE));\n MatcherAssert.assertThat(schemaFileContents, CoreMatchers.containsString(SCHEMA_TABLE_REQUEST));\n MatcherAssert.assertThat(schemaFileContents, CoreMatchers.containsString(SCHEMA_TABLE_RESPONSE));\n MatcherAssert.assertThat(schemaFileContents, CoreMatchers.containsString(SCHEMA_TABLE_WALLET));\n MatcherAssert.assertThat(schemaFileContents, CoreMatchers.containsString(SCHEMA_TABLE_LOOKUP_ERROR));\n MatcherAssert.assertThat(schemaFileContents, not(CoreMatchers.containsString(TABLE_PROPERTY_WALLET_WITH_NAMESPACE)));\n MatcherAssert.assertThat(schemaFileContents, not(CoreMatchers.containsString(TABLE_PROPERTY_LOOKUP_ERROR_WITH_NAMESPACE)));\n MatcherAssert.assertThat(schemaFileContents, not(CoreMatchers.containsString(TABLE_PROPERTY_REQUEST_CALLTYPE_WITH_NAMESPACE)));\n MatcherAssert.assertThat(schemaFileContents, CoreMatchers.containsString(TABLE_PROPERTY_LOOKUP_ERROR_WITHOUT_NAMESPACE));\n MatcherAssert.assertThat(schemaFileContents, CoreMatchers.containsString(TABLE_PROPERTY_REQUEST_CALLTYPE_WITHOUT_NAMESPACE));\n }", "@NonNull\n Set<ServerLibraryDependency> getLibraries() throws ConfigurationException;", "@Override\n public Collection<Class<? extends IFloodlightService>> getModuleServices() {\n return null;\n }", "public boolean shouldIncludeInGlobalSearch() {\n/* 255 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "boolean isBlacklisted(DependencyNodeFunction function);", "@Override\n public boolean selectDependency(Dependency d) {\n return false;\n }", "public static Set<String> getExternalDeps(Scope runtime, Scope compile) {\n return Sets.intersection(runtime.getExternalDeps(), compile.getExternalDeps());\n }", "ImportOption[] getImports();", "private void waitDependencies() {\n log(\"Waiting for dependencies to start: \" + dependencies);\n dependencies.forEach(dependency -> dependency.requestResume(this));\n try {\n synchronized (this) {\n while(!dependencies.equals(runningDependencies)) {\n wait();\n }\n }\n } catch (InterruptedException e) {\n log(\"Interrupted while trying to start\");\n requestStop();\n }\n parents.forEach(parent -> parent.notifyResumed(this));\n }", "public Set<ModuleRevisionId> getDependencies() { return this.dependencies; }", "Set<String> classNames(String packageName, String except) throws Exception;", "@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleServices() \n\t{\n\t\treturn null;\n\t}", "public String[] getDependencies()\r\n {\r\n return m_dependencies;\r\n }", "public List getDependencies() {\n return Collections.unmodifiableList(dependencies);\n }", "@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleServices() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleServices() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleServices() {\n\t\treturn null;\n\t}", "@Override\n public abstract boolean needsResolving();", "@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleServices() {\n return null;\n\t}", "private String checkRequireBundle(BundleImpl b) {\n // NYI! More speed?\n if (b.bpkgs.require != null) {\n if (Debug.packages) {\n Debug.println(\"checkRequireBundle: check requiring bundle \" + b);\n }\n if (!framework.perm.okRequireBundlePerm(b)) {\n return b.symbolicName;\n }\n HashMap res = new HashMap();\n for (Iterator i = b.bpkgs.require.iterator(); i.hasNext(); ) {\n RequireBundle br = (RequireBundle)i.next();\n List bl = framework.bundles.getBundles(br.name, br.bundleRange);\n BundleImpl ok = null;\n for (Iterator bci = bl.iterator(); bci.hasNext() && ok == null; ) {\n BundleImpl b2 = (BundleImpl)bci.next();\n if (tempResolved.contains(b2)) {\n ok = b2;\n } else if ((b2.state & BundleImpl.RESOLVED_FLAGS) != 0) {\n HashMap oldTempProvider = (HashMap)tempProvider.clone();\n ok = b2;\n for (Iterator epi = b2.bpkgs.getExports(); epi.hasNext(); ) {\n ExportPkg ep = (ExportPkg)epi.next();\n if (!checkUses(ep)) {\n tempProvider = oldTempProvider;\n tempBlackList.add(ep);\n ok = null;\n }\n }\n } else if (b2.state == Bundle.INSTALLED &&\n framework.perm.okProvideBundlePerm(b2) &&\n checkResolve(b2)) {\n ok = b2;\n }\n }\n if (ok != null) {\n if (Debug.packages) {\n Debug.println(\"checkRequireBundle: added required bundle \" + ok);\n }\n res.put(br, ok.bpkgs);\n } else if (br.resolution == Constants.RESOLUTION_MANDATORY) {\n if (Debug.packages) {\n Debug.println(\"checkRequireBundle: failed to satisfy: \" + br.name);\n }\n return br.name;\n }\n }\n tempRequired.putAll(res);\n }\n return null;\n }", "public abstract List<Dependency> selectDependencies( Class<?> clazz );", "public List<Module> availableModules() {\n \t\treturn _availableModules;\n \t}", "boolean hasUses();", "void removeDependsOnMe(DependencyItem dependency);", "@Override\n public ImmutableSet<Artifact> getMandatoryOutputs() {\n Artifact outputFile = getPrimaryOutput();\n if (outputFile.isFileType(CppFileTypes.CPP_MODULE)) {\n return ImmutableSet.of(outputFile);\n }\n return super.getMandatoryOutputs();\n }", "public final HashSet<Drop> getDependents() {\r\n synchronized (f_seaLock) {\r\n return new HashSet<>(f_dependents);\r\n }\r\n }" ]
[ "0.65809166", "0.64765286", "0.6353005", "0.6008558", "0.5957396", "0.5921696", "0.58689624", "0.5832412", "0.58159417", "0.56984574", "0.5665978", "0.56415457", "0.5640209", "0.5602114", "0.552831", "0.550814", "0.5503917", "0.54727626", "0.54713327", "0.5423418", "0.5410236", "0.540102", "0.53973496", "0.5396959", "0.53946346", "0.5392698", "0.5332103", "0.5317462", "0.53173107", "0.5315943", "0.53034997", "0.52949315", "0.5279472", "0.5279239", "0.52783567", "0.525337", "0.5234495", "0.5202285", "0.5175361", "0.5174427", "0.517052", "0.51681596", "0.51490134", "0.5137334", "0.5133605", "0.5117899", "0.51043177", "0.5082216", "0.5071721", "0.50626874", "0.50473803", "0.5039252", "0.5007204", "0.49985662", "0.49919534", "0.49874297", "0.4980151", "0.49791396", "0.49738428", "0.4961006", "0.49602014", "0.49561188", "0.4954302", "0.49521175", "0.4952052", "0.49362576", "0.4925531", "0.49251622", "0.49059692", "0.49016458", "0.48936823", "0.4881517", "0.4874952", "0.48672712", "0.48649517", "0.48459348", "0.4839969", "0.48381126", "0.4832744", "0.48317415", "0.48212126", "0.48208034", "0.48155755", "0.48137322", "0.48113996", "0.48090014", "0.4803269", "0.47975165", "0.4797105", "0.4797105", "0.4797105", "0.4795848", "0.4795146", "0.47900563", "0.4778316", "0.47767845", "0.4771062", "0.4765194", "0.47635445", "0.47566438" ]
0.60051674
4
/public List getDriverList() throws Exception; public List vehicleList() throws Exception; public List travelAgencyList() throws Exception; public List modelList() throws Exception; public List getDriverDetailList() throws Exception; public List getAddressList() throws Exception; public List getVehicleDetailList() throws Exception; public String updateMasterData(MTApplicationBean bean) throws Exception; public String deleteMasterData(MTApplicationBean mtBean) throws Exception; public List getVehicleType() throws Exception; public List getEmployeeDetails(MTApplicationBean mtBean) throws Exception ; added by Narayana for Vehicle Category
public List<VehicleCategoryMasterBean> categoryList() throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getVehicleList() {\n mApiCall.getVehicleList();\n }", "void vehicleDetails();", "@Override\n public List<Vehicle> getVehicles(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,3);\n\n //get the vehicles - > for each vehicle, with the vehicle model field (String model = vehicle.getForeignKey(\"model\"))\n List<Vehicle> vehicles = new ArrayList<>();\n try {\n List<Map<String,Object>> data = get(\"SELECT * FROM TblVehicles\");\n for(Map<String,Object> map: data) {\n //create a vehicle\n Vehicle vehicle = new Vehicle(map);\n\n //get the model number\n String model = vehicle.getForeignKey(\"model\");\n\n //get the model from Tbl\n if (model != null) {\n VehicleModel vehicleModel = new VehicleModel(get(\"SELECT * FROM TblVehicleModel WHERE modelNum = ?\", model).get(0));\n vehicle.setModel(vehicleModel);\n }\n //adding\n vehicles.add(vehicle);\n }\n return vehicles;\n }catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }", "@GetMapping(\"/getVehicleInformation\")\n public Iterable<Vehicle> getAllVehicle() {\n\n return vehicleService.list();\n }", "@Override\n\tpublic List<Vehicle> getAll() {\n\t\tList<Vehicle> list = new LinkedList<Vehicle>();\n\t\ttry {\n\t\t\tStatement st = Database.getInstance().getDBConn().createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT v.vehicle_ID, v.plate_number, v.mv_number, v.engine_number, v.chassis_number, m.description as model_name, c.description as category, v.encumbered_to, v.amount, v.maturity_date, v.status, v.image FROM models m INNER JOIN vehicles v ON m.model_ID=v.model_ID INNER JOIN vehicle_categories c ON c.category_ID=v.category_ID\");\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tBlob blob = rs.getBlob(\"image\");\n\t\t\t\tInputStream is = blob.getBinaryStream(1, (int)blob.length());\n\t\t\t\tBufferedImage bf = ImageIO.read(is);\n\t\t\t\tImage img = SwingFXUtils.toFXImage(bf, null);\n\t\t\t\t\n\t\t\t\tlist.add(new Vehicle(rs.getInt(\"vehicle_ID\"), rs.getString(\"plate_number\"), rs.getString(\"mv_number\"), rs.getString(\"engine_number\"), rs.getString(\"chassis_number\"),rs.getString(\"model_name\"), rs.getString(\"category\"), rs.getString(\"encumbered_to\"), rs.getDouble(\"amount\"), Date.parse(rs.getString(\"maturity_date\")), rs.getString(\"status\"), img));\n\t\t\t}\n\t\t\t\n\t\t\tst.close();\n\t\t\trs.close();\n\t\t} catch(Exception err) {\n\t\t\terr.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "public void carDetails() {\n\t\t\r\n\t}", "public List<Vehicle> getVehicles() {\n\t\tList<Vehicle> vehicleList = new ArrayList<Vehicle>();\n\t\tif ((vehicles == null)||(vehicles.isEmpty())) { // call DAO method getCustomers to retrieve list of customer objects from database\n\t\t\ttry {\n\t\t\t\tvehicleList = vehicleService.getAllVehicles();\n\t\t\t} catch (Exception e) {\n\t\t\t\tcurrentInstance = FacesContext.getCurrentInstance();\n\t\t\t\tFacesMessage message = null;\n\t\t\t\tmessage = new FacesMessage(FacesMessage.SEVERITY_ERROR,\"Failed\",\"Failed to retrieve vehicles from the database\" + e.getMessage());\n\t\t\t\tcurrentInstance.addMessage(null, message);\n\t\t\t}\n\t\t} else {\n\t\t\tvehicleList = vehicles;\n\t\t}\n\t\treturn vehicleList;\n\t}", "@Override\n public List<VehicleModel> getVehicleModels(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,2,3);\n List<VehicleModel> vehicleModels = new ArrayList<>();\n try {\n List<Map<String, Object>> data = get(\"SELECT * FROM TblVehicleModel\");\n for(Map<String,Object> map: data)\n vehicleModels.add(new VehicleModel(map));\n return vehicleModels;\n } catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }", "public interface VehicleMapper {\n\n Vehicle getById(long id);\n\n List<Vehicle> getByViid(@Param(\"viid\") Long viid, @Param(\"is_delete\") Integer is_delete);\n\n List<Vehicle> getByViidAndStatus(@Param(\"viid\") Long viid, @Param(\"status\") Integer status, @Param(\"is_delete\") Integer is_delete);\n\n //int getVehicleCount(@Param(\"viid\") long viid);\n\n Vehicle getByNumber(String number);\n\n List<Vehicle> getAll(@Param(\"is_delete\") Integer is_delete);\n\n int updateVehicleById(Vehicle vehicle);\n\n int updateVehicleDescription(Vehicle vehicle);\n\n int insertVehicle(Vehicle vehicle);\n\n int updateVehicleToDelete(Long id);\n\n List<VehicleCount> getVehicleCount(@Param(\"viid\") Long viid, @Param(\"is_delete\") Integer is_delete);\n}", "public void getShowRecord(List<MentalShowStruct> list) {\n/* 55 */ this.component.getRevertShowList(list);\n/* */ }", "@Override\n\tpublic LovServiceResponse getLovDetails() {\n\t\tLovServiceResponse l_res = new LovServiceResponse();\n\t\tList<LovDetail> l_lovList=null;\n\t\tList<LovVO> l_lovVoList=new ArrayList<LovVO>();\n\t\tLovVO l_lovVo = null;\n\t\ttry {\n\t\t\tl_lovList = lovDao.getLovDetails();\n\t\t\tfor(LovDetail l_etity : l_lovList ){\n\t\t\t\tl_lovVo = new LovVO(l_etity);\n\t\t\t\tBeanUtils.copyProperties(l_etity, l_lovVo);\n\t\t\t\tl_lovVoList.add(l_lovVo);\t\t\t\t\n\t\t\t}\n\t\t\tl_res.setLovList(l_lovVoList);\n\t\t\tl_res.setStatus(true);\n\t\t\t\n\t\t}catch(DataAccessException e){\t\t\t\n\t\t\tthrow new ServiceException(\"DataAccessException while fetch lov data\",e);\n\t\t}\n\t\tcatch (Exception e) {\t\t\t\n\t\t\tthrow new ServiceException(\"Unhandled Exception while fetch lov data\",e);\n\t\t}\n\t\treturn l_res;\t\t\n\t}", "public List<Vehicle> getAllVehicle() {\n // array of columns to fetch\n String[] columns = {\n COLUMN_VEHICLE_ID,\n COLUMN_VEHICLE_NAME,\n COLUMN_VEHICLE_NUMBER,\n COLUMN_VEHICLE_CC,\n COLUMN_VEHICLE_YEAR,\n COLUMN_VEHICLE_TYPE,\n COLUMN_VEHICLE_FUEL,\n COLUMN_VEHICLE_CATEGORY,\n COLUMN_VEHICLE_DATE\n };\n // sorting orders\n String sortOrder =\n COLUMN_VEHICLE_NAME + \" ASC\";\n List<Vehicle> vehicleList = new ArrayList<Vehicle>();\n\n SQLiteDatabase db = this.getReadableDatabase();\n\n // query the vehicle table\n /**\n * Here query function is used to fetch records from vehicle table this function works like we use sql query.\n */\n Cursor cursor = db.query(TABLE_VEHICLE, //Table to query\n columns, //columns to return\n null, //columns for the WHERE clause\n null, //The values for the WHERE clause\n null, //group the rows\n null, //filter by row groups\n sortOrder); //The sort order\n\n\n // Traversing through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Vehicle vehicle = new Vehicle();\n vehicle.setId(Integer.parseInt(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_ID))));\n vehicle.setName(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_NAME)));\n vehicle.setNumber(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_NUMBER)));\n vehicle.setCc(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_CC)));\n vehicle.setYear(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_YEAR)));\n vehicle.setType(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_TYPE)));\n vehicle.setFuel(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_FUEL)));\n vehicle.setCategory(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_CATEGORY)));\n vehicle.setDate(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_DATE)));\n // Adding vehicle record to list\n vehicleList.add(vehicle);\n } while (cursor.moveToNext());\n }\n cursor.close();\n db.close();\n\n // return vehicle list\n return vehicleList;\n }", "public String getAllDataForAttributes() throws Exception {\n\t\tactionStartTime = new Date();\n\t\ttry {\n\t\t\tif (lstObjectType != null && lstObjectType.size() > 0 && lstId != null && lstId.size() > 0 && lstObjectType.size() == lstId.size()) { //lstId = listObjectId\n\t\t\t\tList<PromotionCustAttrVO> lst = new ArrayList<PromotionCustAttrVO>();\n\t\t\t\tPromotionCustAttrVO vo;\n\t\t\t\tInteger objectType;\n\t\t\t\tLong objectId;\n\t\t\t\tCustomerAttribute attribute;\n\t\t\t\tAttributeColumnType attColType;\n\t\t\t\tList<AttributeDetailVO> lstAttDetail;\n\t\t\t\tfor (int i = 0; i < lstObjectType.size(); i++) {\n\t\t\t\t\tobjectType = lstObjectType.get(i);\n\t\t\t\t\tobjectId = lstId.get(i);\n\t\t\t\t\tif (objectType != null) {\n\t\t\t\t\t\tvo = new PromotionCustAttrVO();\n\t\t\t\t\t\tvo.setObjectType(objectType);\n\t\t\t\t\t\tvo.setObjectId(objectId);\n\t\t\t\t\t\tif (objectType.equals(AUTO_ATTRIBUTE)) {\n\t\t\t\t\t\t\tattribute = customerAttributeMgr.getCustomerAttributeById(objectId);\n\t\t\t\t\t\t\tif (attribute != null) {\n\t\t\t\t\t\t\t\tattColType = attribute.getValueType();\n\t\t\t\t\t\t\t\tvo.setValueType(attColType);// setValueType\n\t\t\t\t\t\t\t\tvo.setName(attribute.getName());\n\t\t\t\t\t\t\t\t// chi set du lieu cho kieu dropdownlist:\n\t\t\t\t\t\t\t\tif (attColType == AttributeColumnType.CHOICE || attColType == AttributeColumnType.MULTI_CHOICE) {\n\t\t\t\t\t\t\t\t\tlstAttDetail = promotionProgramMgr.getListPromotionCustAttVOCanBeSet(attribute.getId());\n\t\t\t\t\t\t\t\t\tvo.setListData(lstAttDetail);// setListData\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 if (objectType.equals(CUSTOMER_TYPE)) {\n\t\t\t\t\t\t\tList<ChannelTypeVO> listChannelTypeVO = promotionProgramMgr.getListChannelTypeVO();\n\t\t\t\t\t\t\tvo.setListData(listChannelTypeVO);//setListData\n\t\t\t\t\t\t} else if (objectType.equals(SALE_LEVEL)) {\n\t\t\t\t\t\t\tList<ProductInfoVO> listProductInfoVO = promotionProgramMgr.getListProductInfoVO();\n\t\t\t\t\t\t\tif (listProductInfoVO != null && listProductInfoVO.size() > 0) {\n\t\t\t\t\t\t\t\tfor (ProductInfoVO productInfoVO : listProductInfoVO) {\n\t\t\t\t\t\t\t\t\tList<SaleCatLevelVO> listSaleCatLevelVO = promotionProgramMgr.getListSaleCatLevelVOByIdPro(productInfoVO.getIdProductInfoVO());\n\t\t\t\t\t\t\t\t\tproductInfoVO.setListSaleCatLevelVO(listSaleCatLevelVO);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tvo.setListProductInfoVO(listProductInfoVO);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tlst.add(vo);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tresult.put(\"list\", lst);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.getAllDataForAttributes\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t\treturn JSON;\n\t\t}\n\t\treturn JSON;\n\t}", "public abstract List<CarTO> listAll();", "public List<VehicleMaintenance> getVehicleMaintenances(){\n\n return vehicleMaintenanceRepository.findAll();\n }", "public List<VehicleVO> getCarList() {\n return carList;\n }", "public interface OrderDetailsService {\n\n List<MallV_Order_Show> getMallV_Order_Show(Map<String, Object> map);/*列表*/\n\n int getMallV_Order_ShowCount(Map<String, Object> map);\n\n MallV_Order_Show selectMallV_Order_Show(String no);\n\n}", "List<RadarTechnologies> getAllRadarTechnologies();", "public List<EmployeeDetails> getEmployeeDetails();", "public ArrayList<CarDetail> gettingAllAvailableCars() throws Exception;", "public List<Departmentdetails> getDepartmentDetails();", "public interface DataBasePresent {\n void setDistrict(List<Name_Id> list);\n\n void setLocalBodyType(List<Name_Id> list);\n\n void setLocalBodyName(List<LocalBody> list);\n\n List<Name_Id> getDistrict();\n\n List<Name_Id> getLocalBodyType();\n\n List<LocalBody> getLocalBodyName(String districId ,String locatType);\n}", "public interface ICarSupportDAO {\n\n\t/**\n\t * Saving feebdback.\n\t *\n\t * @param feedback the feedback\n\t * @throws Exception the exception\n\t */\n\tpublic void savingFeebdback(FeedbackDetail feedback)throws Exception;\n\t\n\t/**\n\t * Gets the ting booking history.\n\t *\n\t * @return the ${e.g(1).rsfl()}\n\t * @throws Exception the exception\n\t */\n\tpublic ArrayList<BookingDetail> gettingBookingHistory() throws Exception;\n\t\n\t/**\n\t * Gets the ting all available users.\n\t *\n\t * @return the ting all available users\n\t * @throws Exception the exception\n\t */\n\tpublic ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;\n\t\n\t/**\n\t * Gets the ting all available feedbacks.\n\t *\n\t * @return the ting all available feedbacks\n\t * @throws Exception the exception\n\t */\n\tpublic ArrayList<FeedbackDetail> gettingAllAvailableFeedbacks() throws Exception;\n\t\n\t/**\n\t * Gets the ting all available cars.\n\t *\n\t * @return the ting all available cars\n\t * @throws Exception the void editing car( car detail detail)\n\t */\n\tpublic ArrayList<CarDetail> gettingAllAvailableCars() throws Exception;\n\t\n\n}", "public VehicleList() {\n\t\tvehicles = new ArrayList<Vehicle>();\n\t}", "public void setCarList(List<VehicleVO> carList) {\n this.carList = carList;\n }", "java.util.List<WorldUps.UInitTruck> \n getTrucksList();", "@Override\n\tpublic Object doService() throws Exception {\n\t\t\n\t\tString sql;\n\t\n\t\tList<Map<String,Object>> list=new ArrayList<Map<String,Object>>();\n\t\t\n\t\t\n\t\t\n\t\t//全路网\n\t\t\t String [] selType=JsonTagContext.getRequest().getParameterValues(\"selType[]\");\n\t\t\tString tp_sql=\"0\";\n\t\t\tif(selType!=null){\n\t\t\t\tfor(String tp:selType){\n\t\t\t\t\tif(\"1\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+enter_times\";\n\t\t\t\t\t}else if(\"2\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+exit_times\";\n\t\t\t\t\t}else if(\"3\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+change_times\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsql =\"SELECT T.*, ROWNUM RN FROM (\"\n\t\t\t\t\t+\"select b.district_code,sum(in_pass_num) in_pass_num from\"\n\t\t\t\t\t +\"(select station_id,round(sum(\"+tp_sql+\")/1000000,2) in_pass_num from TBL_METRO_FLUXNEW_\" +date+\" GROUP BY station_id) a,\"\n\t\t\t\t\t+\"(select * from tbl_metro_station_info_area WHERE STATION_VER in (select max(STATION_VER) from tbl_metro_station_info_area)) b\"\n\t\t\t\t\t +\" where a.STATION_ID=b.station_id\"\n\t\t\t\t\t +\" GROUP BY b.district_code order by in_pass_num desc\"\n\t\t\t\t+ \") T where ROWNUM <= ?\" ;\n\t\t\t//jsonTagJdbcDao.getJdbcTemplate().setMaxRows(this.getSize());\n\t\t\tlist = jsonTagJdbcDao.getJdbcTemplate().queryForList(sql,this.getSize());\n\t\t\t\n\t\t\n\t\t\t\n\t\t \n\t\t \n\t\treturn list;\n\t\t\n\t}", "public ArrayList<DeliveryVehicle> getVehiclesFromFile() throws java.io.IOException {\n \n DeliveryVehicleController controller = new DeliveryVehicleController();\n \n //reading the file and adding all lines to the list\n List<String> lines = Files.readAllLines(Paths.get(_filePath));\n String[] lineTokens;\n List<String> fileLines = Files.readAllLines(Paths.get(_filePath));\n\n for(String line : fileLines) {\n lineTokens = line.split(\" \");\n \n //Possible to change if statement case statement instead\n // [0] = Bike Used to check what type (never going to change)\n // [1] = RegNumber\n // [2] = EngineSize\n // [3] = DaysInService\n // [4] = MilesCovered\n // [5] = Deliverys\n\n if (lineTokens[0].equalsIgnoreCase(\"Bike\")){\n // System.out.print(lineTokens[1] + \"THISSHOULD BE REG NUMBER\");\n controller.addBike( lineTokens[1] , Integer.parseInt(lineTokens[2]), Integer.parseInt(lineTokens[3] ), Double.parseDouble(lineTokens[4] ), Integer.parseInt(lineTokens[5]) );\n // return _vehicleList;\n // System.out.print(_vehicleList);\n }\n\n else if (lineTokens[0].equalsIgnoreCase(\"Car\")){\n controller.addCar( lineTokens[1] , Integer.parseInt(lineTokens[2]), Integer.parseInt(lineTokens[3] ), Double.parseDouble(lineTokens[4] ), Integer.parseInt(lineTokens[5]) );\n // return _vehicleList;\n }\n\n else if (lineTokens[0].equalsIgnoreCase(\"Scooter\")){\n // _vehicleList.add(new DeliveryScooter( lineTokens[1] , Integer.parseInt(lineTokens[2]), Integer.parseInt(lineTokens[3] ), Double.parseDouble(lineTokens[4] ), Integer.parseInt(lineTokens[5]) ));\n controller.addScooter( lineTokens[1] , Integer.parseInt(lineTokens[2]), Integer.parseInt(lineTokens[3] ), Double.parseDouble(lineTokens[4] ), Integer.parseInt(lineTokens[5]) );\n // return _vehicleList;\n }\n } \n \n return controller.getVehiclesList();\n \n }", "public void getAllVehicles(DefaultTableModel dataTableModel, String brand, String model) {\n// dataTableModel.setColumnIdentifiers(Vehicle.getVehicleDefinition());\n// dataTableModel.addRow(Vehicle.getVehicleDefinition());\n// ResultSet rs = db.getAllVehicles(brand, model);\n// try {\n// while (rs.next()) {\n Vehicle vehicle = createVehicle(/*rs*/);\n// dataTableModel.addRow(vehicle.vehicleToArray());\n// }\n// } catch (SQLException e) {\n// e.printStackTrace();\n// }\n }", "public interface VehicleService {\n\n void saveOrUpdate(Vehicle detainedObject);\n\n void delete(Vehicle detainedObject);\n List<Vehicle> getByplate(String plate);\n List<Vehicle> getBycarteJone(String carteJone );\n\n}", "@Override\n\tpublic List<HeadUnit> getallHeadUnitDetail() {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sql = \"SELECT * FROM headunit\";\n\t\tList<HeadUnit> listHeadunit = jdbcTemplate.query(sql, new RowMapper<HeadUnit>() {\n\t\t\t@Override\n\t\t\tpublic HeadUnit mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t// set parameters\n\t\t\t\tHeadUnit headunit = new HeadUnit();\n\t\t\t\theadunit.setHeadunitid(rs.getLong(\"headunit_id\"));\n\t\t\t\theadunit.setUserid(rs.getInt(\"user_id\"));\n\t\t\t\theadunit.setCarname(rs.getString(\"carname\"));\n\t\t\t\theadunit.setHduuid(rs.getString(\"hduuid\"));\n\t\t\t\theadunit.setAppversion(rs.getString(\"appversion\"));\n\t\t\t\theadunit.setGcmregistartionkey(rs.getString(\"gcmregistartionkey\"));\n\t\t\t\theadunit.setCreateddate(rs.getDate(\"createddate\"));\n\t\t\t\treturn headunit;\n\t\t\t}\n\t\t});\n\t\treturn listHeadunit;\n\t}", "public interface RWDeviceMapper {\n /**\n * 批量获取设备\n * 0\n *\n * @param longs\n * @return\n */\n public List<DeviceRoleDeviceRea> RWbatchCWsByDeviceId(List<String> longs);\n\n /**\n * 1\n *\n * @param longs\n * @return\n */\n public List<DeviceRoleDeviceRea> MHbatchCWsByDeviceId(List<String> longs);\n\n /**\n * 2\n *\n * @param longs\n * @return\n */\n public List<DeviceRoleDeviceRea> CWbatchCWsByDeviceId(List<String> longs);\n\n /**\n * 3\n *\n * @param longs\n * @return\n */\n public List<DeviceRoleDeviceRea> ECbatchCWsByDeviceId(List<String> longs);\n\n /**\n * 根据区域 查询 地表水设备\n *\n * @return\n */\n public List<XwEquipmentRwDO> getRWAllBySelect_v1(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n /**\n * 根据区域 查询 地表水设备\n *\n * @return\n */\n public List<XwEquipmentRwDO> getRWAllBySelect_v1_admin(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n\n /**\n * 根据区域 查询 井盖 设备\n *\n * @return\n */\n public List<XwEquipmentMhDO> getMHAllBySelect_v1(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n /**\n * 根据区域 查询 井盖 设备\n *\n * @return\n */\n public List<XwEquipmentMhDO> getMHAllBySelect_v1_admin(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n\n /**\n * 根据区域 查询 生活用水 设备\n *\n * @return\n */\n public List<XwEquipmentCwDO> getCWAllBySelect_v1(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n /**\n * 根据区域 查询 生活用水 设备\n *\n * @return\n */\n public List<XwEquipmentCwDO> getCWAllBySelect_v1_admin(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n\n /**\n * 根据区域 查询 电梯 设备\n *\n * @return\n */\n public List<XwEquipmentEcDO> getECAllBySelect_v1(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n /**\n * 根据区域 查询 电梯 设备\n *\n * @return\n */\n public List<XwEquipmentEcDO> getECAllBySelect_v1_admin(AreaToDeviceVO_v1 areaToDeviceVO_v1);\n}", "public List getOrderDetails(OrderDetail orderDetail);", "private void callFormDetailFunctions() {\n ArrayList<Item> items = new ArrayList<>();\n items.addAll(computers);\n items.addAll(printers);\n getBuildingNames(items);\n getBrandNames(items);\n getOSNames(computers);\n setAdapters();\n }", "public static void listVehicles() {\n\t\tSystem.out.println(\"-----------------\");\n\t\tSystem.out.println(\"Listing Vehicles\");\n\t\tSystem.out.println(\"-----------------\");\n\t\t\n\t\tfor (int i = 0; i < owners.size(); i++) {\n\t\t\tfor (Vehicle v : owners.get(i).getVehicles()) {\n\t\t\t\t\n\t\t\t\tSystem.out.println((owners.get(i).getName() + \"'s \" + v.toString()));\n\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\t\n\t}", "public interface loadDataService {\n public List<Row> getComboContent( String sType,String comboType, Map<String,String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public Result getGridContent(PagingObject po, String gridType,Map<String,String[]> parameterMap,String searchText , usersInfo loggedUser,String statusID,String from,String where ) throws Exception;\n public List<listInfo> loadStrukturList(String partID,long langID) throws Exception;\n public finalInfo getOrgInfo(long treeID) throws Exception;\n public categoryFinalInfo getCategoryInfo(long treeID) throws Exception;\n public carriersInfo getCariesInfo(long carryID) throws Exception;\n public carriersInfo getOrganizationInfo(long carryID) throws Exception;\n public List<contact> getOrgContacts(long treeID) throws Exception;\n public person getEmployeeInfo( long empId) throws Exception;\n public List<examples> getExamplesInfo(long exmpID,String langID) throws Exception;\n public List<contact> getPersonContact(long perID) throws Exception;\n public List<docList> loadQRphoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> loadPhoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> getExamplesPictures(Connection cc, long relID, long relType) throws Exception;\n public List<examples> getExamplesOperation(Connection cc, long relID, long langID) throws Exception;\n public int checkUser(String uName) throws Exception;\n public int checkDictRecord(String text, int dictType,String org,String pos) throws Exception ;\n public usersInfo loadUserInfo(String pID) throws Exception;\n public List<person> loadEmpList( int OrgID) throws Exception;\n public List<Row> getSelectContent( String type, Map<String, String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public List<subjElement> getADVSearchMenuList(String partID) throws Exception;\n public String getADVInfo(String paramID,String paramVal,String val,String cond,String typ)throws Exception;\n public List<listInfo> loadComboForAdvancedSearch(String prmID,long parametr) throws Exception;\n public List<docList> loadRightPanelPhoto(long realID, int iType) throws Exception;\n public List<categoryFinalInfo> getCategoryStructure(long catID, int id) throws Exception;\n}", "@SkipValidation\r\n\tpublic String invokeTerritoryList() throws Exception{\r\n\t\t\r\n\t\t //territoryList=dao_impl.fetchTerritory(); ------>>>>>Written in prepare method, so commented\r\n\t\t dsgnList = dao_impl.fetchDesignation();\r\n\t\t bloodGrpList = dao_impl.fetchBloodGroup();\r\n\t\t stateList = dao_impl.fetchState();\r\n\t\t cityList = dao_impl.fetchCity();\r\n\t\t regionList = dao_impl.fetchRegion();\r\n\t\t stateList = dao_impl.fetchState();\r\n\t\t \r\n\t\t System.out.println(\"size of bloodGrpList in AddMRAction class --->> \"+bloodGrpList.size());\r\n\t\t \r\n\t\t return \"SUCCESS\";\r\n\t\t\r\n\t}", "List<Travel> getAllTravel();", "public void addHotel(int hotelId, List<Hotel_Room_Detail> hotelRoomDetailList){\n\n }", "public interface CarListService {\n\n public List<Transportation> getLocal();\n public List<Transportation> getLuxery();\n public List<Transportation> getExotic();\n}", "public List<MotorCycle> getListMototCycleNameAndCylinder(){\r\n\t\treturn motorCycleDao.getListMotorNameAndCylinder();\r\n\t}", "@Override\r\n\tpublic void vehicleBrand() {\n\r\n\t}", "public String getCategoryListing(){\n\t\tCategoryDAO daoObject = new CategoryDAO();\n\t\tString result = \"\";\n\t\t/*if(requestCall.equalsIgnoreCase(\"table\")){\n\t\t\t//System.out.println(\"in getCategoryListing service call table\");\n\t\t\tresult = daoObject.getCategoriesAndSubCategories();\n\t\t}else{\n\t\t\tresult = daoObject.getCategories(); \n\t\t}*/\n\t\t//result = daoObject.getCategoriesAndSubCategories();\n\t\tresult = daoObject.getCategories();\n\t\treturn result;\n\t}", "public interface RadarTechnologiesService {\n\n /**\n * A method which gets all existing RadarTechnologies objects\n * @return list of RadarTechnologies objects\n */\n List<RadarTechnologies> getAllRadarTechnologies();\n\n /**\n * A method which updates existing information about radars and technologies they include.\n * @param updateList list of CategoryUpdate objects which hold information about required updates\n */\n void modifyRadarTechnologiesInformation(List<CategoryUpdate> updateList);\n}", "@Override\r\n\tpublic String getDetails() {\r\n\t\tString result = \"\";\r\n\t\tresult += \"Vehicle ID: \t\t\t\" + getID() + \"\\n\" + \"Year:\t\t\t\t\" + getYear() + \"\\n\"\r\n\t\t\t\t+ \"Make:\t\t\t\t\" + getMake() + \"\\n\" + \"Model:\t\t\t\t\" + getModel() + \"\\n\"\r\n\t\t\t\t+ \"Number of seats:\t\t\" + getNumOfSeats() + \"\\n\" + \"Status:\t\t\t\t\" + getStatus() + \"\\n\"\r\n\t\t\t\t+ \"RENTAL RECORD:\t\t\" + \"\\n\";\r\n\r\n\t\tList<RentalRecord> carRecorder = databaseHandle.getAllRecordsByVehicleID(ID);\r\n\t\tfor (int i = 0; i < carRecorder.size() && i < 10; i++) {\r\n\t\t\tif (i == 0 && status == Status.RENTED) {\r\n\r\n\t\t\t\tRentalRecord temp = carRecorder.get(carRecorder.size() - 1);\r\n\t\t\t\tresult += \"Record ID: \t\t\t \" + temp.getId() + \"\\n\" + \"Rent date:\t\t\t \" + temp.getRentDate()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Estimated Return Date: \" + temp.getEstimatedReturnDate() + \"\\n\";\r\n\r\n\t\t\t} else {\r\n\t\t\t\tresult += \"------------------------------------\" + \"\\n\";\r\n\t\t\t\tRentalRecord temp = carRecorder.get(carRecorder.size() - 1 - i);\r\n\t\t\t\tresult += \"Record ID: \t\t\t \" + temp.getId() + \"\\n\" + \"Rent date:\t \t\t \" + temp.getRentDate()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Estimated Return Date: \" + temp.getEstimatedReturnDate() + \"\\n\"\r\n\t\t\t\t\t\t+ \"Actual Return Date: \" + temp.getActualReturnDate() + \"\\n\" + \"Rental Fee: \t\t\t \"\r\n\t\t\t\t\t\t+ temp.getRentalFee() + \"\\n\" + \"Late Fee: \" + temp.getLateFee() + \"\\n\";\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tresult += \"====================================\" + \"\\n\";\r\n\t\treturn result;\r\n\t}", "List<SchoolMasterVo> getSchoolMasterVoList();", "@Override\n\tpublic List<StudyVO> list(Criteria cri) {\n \n\t\n\t\t \n\tList<StudyVO> list =mapper.list(cri);\n\tlogger.info(\"service계층에서list는\"+mapper.list(cri));\n\t\n\tlogger.info(\"service에서 list값은\"+list);\n\tSystem.out.println(\"service에서 list값은\"+list);\n\t\n\treturn list;\n\t\n\t\n\t}", "@Override\r\n\tpublic List<CustVO> getAll() {\n\t\tList<CustVO> list = new ArrayList<CustVO>();\r\n\t\tCustVO custVO = null;\r\n\r\n\t\tConnection con = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\tpstmt = con.prepareStatement(GET_ALL_STMT);\r\n\t\t\trs = pstmt.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustVO = new CustVO();\r\n\t\t\t\tcustVO.setCust_ID(rs.getString(\"CUST_ID\"));\r\n\t\t\t\tcustVO.setCust_acc(rs.getString(\"CUST_ACC\"));\r\n\t\t\t\tcustVO.setCust_pwd(rs.getString(\"CUST_PWD\"));\r\n\t\t\t\tcustVO.setCust_name(rs.getString(\"CUST_NAME\"));\r\n\t\t\t\tcustVO.setCust_sex(rs.getString(\"CUST_SEX\"));\r\n\t\t\t\tcustVO.setCust_tel(rs.getString(\"CUST_TEL\"));\r\n\t\t\t\tcustVO.setCust_addr(rs.getString(\"CUST_ADDR\"));\r\n\t\t\t\tcustVO.setCust_pid(rs.getString(\"CUST_PID\"));\r\n\t\t\t\tcustVO.setCust_mail(rs.getString(\"CUST_MAIL\"));\r\n\t\t\t\tcustVO.setCust_brd(rs.getDate(\"CUST_BRD\"));\r\n\t\t\t\tcustVO.setCust_reg(rs.getDate(\"CUST_REG\"));\r\n\t\t\t\tcustVO.setCust_pic(rs.getBytes(\"CUST_PIC\"));\r\n\t\t\t\tcustVO.setCust_status(rs.getString(\"CUST_STATUS\"));\r\n\t\t\t\tcustVO.setCust_niname(rs.getString(\"CUST_NINAME\"));\r\n\t\t\t}\r\n\t\t} catch (SQLException se) {\r\n\t\t\tthrow new RuntimeException(\"A database error occured. \" + se.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (rs != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (con != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon.close();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}", "public VehicleSearchRS getVehicles() {\r\n\t\tVehicleSearchRS response = null;\r\n\t\t//VehicleSearchService vehiclesearch = new VehicleSearchService();\r\n\t\t\r\n\t\t///Suppliers are useful when we donít need to supply any value and obtain a result at the same time.\r\n\t\tSupplier<VehicleSearchService> vehiclesearch = VehicleSearchService::new;\r\n\t\ttry {\r\n\t\t\tresponse = vehiclesearch.get().getVehicles(searchRQ);\r\n\t\t\t//System.out.println(response);\r\n\t\t} catch (VehicleValidationException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\treturn response;\r\n\t}", "@Test\n\t// @Disabled\n\tvoid testViewCustomerbyVehicleType() {\n\t\tCustomer customer1 = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"[email protected]\");\n\t\tVehicle vehicle1 = new Vehicle(101, \"TN02J0666\", \"car\", \"A/C\", \"prime\", \"goa\", \"13\", 600.0, 8000.0);\n\t\tVehicle vehicle2 = new Vehicle(102, \"TN02J0666\", \"car\", \"A/C\", \"prime\", \"goa\", \"13\", 600.0, 8000.0);\n\t\tList<Vehicle> vehicleList =new ArrayList<>();\n\t\tvehicleList.add(vehicle1);\n\t\tvehicleList.add(vehicle2);\n\t\tcustomer1.setVehicle(vehicleList);\n\t\tList<Customer> customerList = new ArrayList<>();\n\t\tcustomerList.add(customer1);\n\t\tMockito.when(custRep.findbyType(\"car\")).thenReturn(customerList);\n\t\tList<Customer> cust3 = custService.findbyType(\"car\");\n\t\tassertEquals(1, cust3.size());\n\t}", "@Override\n\tpublic List<String> findCarModel() {\n\t\tList<String> carModelInfoList = chargeCarMapper.selectCarModelInfo();\n\t\treturn carModelInfoList;\n\t}", "public List<TblRetur>getAllDataRetur();", "private void setCarList(){\n List<com.drife.digitaf.ORM.Database.CarModel> models = new ArrayList<>();\n\n if(nonPackageGrouping != null && nonPackageGrouping.size()>0){\n //cars = CarController.getAllAvailableCarInPackage(nonPackageGrouping.get(0).getCategoryGroupId());\n for (int i=0; i<nonPackageGrouping.size(); i++){\n List<com.drife.digitaf.ORM.Database.CarModel> carModels = CarController.getAllAvailableCarInPackage(nonPackageGrouping.get(i).getCategoryGroupId());\n for (int j=0; j<carModels.size(); j++){\n com.drife.digitaf.ORM.Database.CarModel model = carModels.get(j);\n models.add(model);\n }\n }\n }\n\n TextUtility.sortCar(models);\n\n for (int i=0; i<models.size(); i++){\n com.drife.digitaf.ORM.Database.CarModel model = models.get(i);\n String car = model.getCarName();\n if(!carModel.contains(car)){\n carModel.add(car);\n cars.add(model);\n }\n }\n\n /*for (int i=0; i<cars.size(); i++){\n com.drife.digitaf.ORM.Database.CarModel carModel = cars.get(i);\n String model = carModel.getCarName();\n this.carModel.add(model);\n }*/\n\n atModel.setAdapter(new ArrayAdapter<com.drife.digitaf.ORM.Database.CarModel>(this, android.R.layout.simple_list_item_1, this.cars));\n\n //SpinnerUtility.setSpinnerItem(getApplicationContext(), spinModel, this.carModel);\n }", "public static void carlist() {\n Cars xx = new Cars();\n System.out.println(\"You have \" + String.valueOf(listcars.size())+ \" cars\");\n System.out.println(\"List of all your cars \");\n for (int i = 0; i < listcars.size();i++) {\n xx = listcars.get(i);\n System.out.println(xx.getBrand()+ \" \"+ xx.getModel()+ \" \"+ xx.getReference()+ \" \"+ xx.getYear()+ \" \");\n }\n }", "@Override\r\n\tpublic void vehicleType() {\n\r\n\t}", "@Override\n\tpublic List<mOrderDetail> getListOrderDetail(String status, String CUSCode) {\n\t\ttry {\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT mo.O_Status_Code, mo.O_Code, mo.O_OrderDate, mo.O_DeliveryAddress, mo.O_DeliveryLat, mo.O_DeliveryLng ,mo.O_TimeEarly, mo.O_TimeLate, mo.O_DueDate, mc.C_Name, mrb.REQBAT_Description\"\n\t\t\t\t\t+ \" FROM mOrders mo, mClients mc, batchOnlineStore mrb\"\n\t\t\t\t\t+ \" WHERE mo.O_Status_Code IN (\"+status+\") and mo.O_ClientCode = mc.C_Code and mrb.REQBAT_Code = mo.O_BatchCode and mrb.REQBAT_CustomerCode = :C_Code ORDER BY mo.O_DueDate ASC\";\n//\t\t\t='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\n//\t\t\t\t\t\"' or mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"')\n\t\t\tQuery query = getSession().createQuery(sql);\n\t\t\tquery.setParameter(\"C_Code\", CUSCode);\n\t\t\tquery.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n\t\t\tList query_result = query.list();\n\t\t\tList<mOrderDetail> lstOrderDetail = new ArrayList<mOrderDetail>();\n\t\t\t//0=Chưa được gán cho shipper, 1=OR000137, 2=2016-09-06, 3=200 Lê Duẩn, Hà Nội, 4=21.0173, 5=105.841, 6=18:00:00, 7=19:00:00, 8=2016-09-06, 9=Phan Anh Tú, 10=Các request lô 2016-09-24 10:00:00\n\t\t\tfor(int i=0; i<query_result.size(); i++){\n\t\t\t\tMap tmp = (Map) query_result.get(i);\n\t\t\t\tmOrderDetail temp = new mOrderDetail();\n\t\t\t\ttemp.setO_Code(tmp.get(\"1\").toString());\n\t\t\t\ttemp.setO_DeliveryLat(Float.valueOf(tmp.get(\"4\").toString()));\n\t\t\t\ttemp.setO_DeliveryLng(Float.valueOf(tmp.get(\"5\").toString()));\n\t\t\t\ttemp.setO_TimeEarly(tmp.get(\"6\").toString());\n\t\t\t\ttemp.setO_TimeLate(tmp.get(\"7\").toString());\n\t\t\t\ttemp.setO_DueDate(tmp.get(\"8\").toString());\n\t\t\t\ttemp.setC_Name(tmp.get(\"9\").toString());\n\t\t\t\ttemp.setREQBAT_Description(tmp.get(\"10\").toString());\n\t\t\t\ttemp.setO_DeliveryAddress(tmp.get(\"3\").toString());\n\t\t\t\ttemp.setO_Status_Code(tmp.get(\"0\").toString());\n\t\t\t\ttemp.setO_OrderDate(tmp.get(\"2\").toString());\n\t\t\t\t//System.out.println(name()+\"::getListOrderDetail--mOrderDetail[\"+i+\"]\"+tmp.toString());\n\t\t\t\tlstOrderDetail.add(temp);\n\t\t\t}\n\t commit();\n\t \n\t return lstOrderDetail;\n\t \n\t } catch (HibernateException e) {\n\t \te.printStackTrace();\n\t rollback();\n\t close();\n\t return null;\n\t } finally {\n\t \tflush();\n\t close();\n\t }\n\t}", "public List<String> getDriverDetailsList()\r\n {\r\n List<String> driverDetailsList = new ArrayList<>(Arrays.asList(\r\n String.valueOf(this.getDriverId()),\r\n String.valueOf(this.getDriverName()),\r\n String.valueOf(this.getDriverCountry()),\r\n String.valueOf(this.getDriverTeam()),\r\n String.valueOf(this.getDriverCar()),\r\n String.valueOf(this.getDriverEngine()),\r\n String.valueOf(this.getDriverTyres()),\r\n String.valueOf(this.getDriverPoints())\r\n ));\r\n return driverDetailsList;\r\n }", "public interface CommonService {\n public String getUUID() throws Exception;\n\n public List<NlbsDistributor> selectChildrenListDistributor(String distributorCode) throws Exception;\n\n public List<NlbsUser> selectChildrenListUser(String userCode) throws Exception;\n\n List<Map> queryAllMaterialTypeList() throws Exception;\n\n List<Map> queryAllApplyRecordStatusList() throws Exception;\n\n List<NlbsCity> queryAllCity() throws Exception;\n\n public NlbsUser queryNlbsUserByUserNoIgnoreStatus(String userNo) throws Exception;\n\n public boolean isAdministrator(String userNo, List<String> roleList) throws Exception;\n\n}", "public String productList(ProductDetails p);", "public interface ReadDao {\n\n /**\n * 根据手机号码获取用户\n *\n * @param phone\n * @return\n */\n @Select(\"select * from t_user where phone=#{phone}\")\n UserModel getUserByPhone(@Param(\"phone\") String phone);\n\n /**\n * 根据用户名密码获取用户\n *\n * @param phone\n * @return\n */\n @Select(\"select * from t_user where phone=#{phone} and passwd=substr(md5(#{pwd}),9,8)\")\n UserModel getUserByPassword(@Param(\"phone\") String phone, @Param(\"pwd\") String pwd);\n\n /**\n * 根据商品名查询商品\n *\n * @return\n */\n @Select(\"select id goodsid,name,price from t_goods where name like #{name}\")\n List<Commodity> queryCommodity(@Param(\"name\") String name);\n\n /**\n * 根据关键字查询\n *\n * @param keyword\n * @param size\n * @return\n */\n @Select(\"select * from t_goods where name like #{keyword} limit 0,#{size}\")\n public List<Commodity> getCommodityByKeyword(@Param(\"keyword\") String keyword, @Param(\"size\") int size);\n\n\n /**\n * 根据ID获取商品\n *\n * @param id\n * @return\n */\n @Select(\"select * from t_goods where id=#{id}\")\n public Commodity getCommodityById(@Param(\"id\") long id);\n\n /**\n * 查询所有商品类别\n * @return\n */\n @Select(\"select id,category1,category2 from t_goods_category\")\n public List<CommodityCategory> queryCategorys();\n\n /**\n * 查询所有商品\n * @return\n */\n @Select(\"select * from t_goods\")\n public List<Commodity> queryAllCommodityes();\n\n\n /**\n * 根据父级名称获取子级名称\n *\n * @param name\n * @return\n */\n @Select(\"select * from t_goods_category where category1=#{name}\")\n public List<CommodityCategory> getCommodityCategoryByParentName(@Param(\"name\") String name);\n\n /**\n * 获取一级分类名称\n *\n * @return\n */\n @Select(\"select DISTINCT(category1) as category1 from t_goods_category\")\n public List<CommodityCategory> getParentCommodityCateory();\n}", "@Override\r\n\tpublic List<Object[]> searchPlantDetails() {\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public interface SeePatientCaseModel {\n /**\n * 向服务器上传添加患者的信息\n */\n void updateTherapy(String token, int therapyId, List<String> photos, int doctorId, int patientId, String state, String date, String record, CallBack callBack);\n\n /**\n * 获取病例信息\n */\n void getTherapy(String token,int therapyId,CallBack callBack);\n}", "public void Category_name()\n {\n\n RequestBody requestBody = new ParamsBuilder<>()\n .key(\"pbevyvHkf1sFtyGL35gFfQ==\")\n .methodName(\"GetArea\")\n .gson(new Gson())\n .noParams()\n // .object(loginParams)\n /*.typeValue(\"string\",\"\")*/\n .build();\n// ParamsBuilder<LoginParams> builder = new ParamsBuilder<LoginParams>().\n// .key(\"\")\n// .build();\n //分类名称\n Call<BaseResp> call = HttpClients.getInstance().maintenance(requestBody);\n\n call.enqueue(new Callback<BaseResp>() {\n @Override\n public void onResponse(Call<BaseResp> call, Response<BaseResp> response) {\n String data = response.body().getData();\n Log.e(\"地区列表\",data+\"\");\n jx(data);\n\n }\n\n @Override\n public void onFailure(Call<BaseResp> call, Throwable t) {\n Log.e(\"111\",\"失败\");\n }\n });\n\n\n }", "@Test\n public void findAllVehiclesTest() throws ItemNotFoundException {\n controller.findAllVehicles(null,null,null,request,principal);\n verify(vService).findAllVehicles(0,0, principal);\n\n //Test with all default values\n controller.findAllVehicles(null,null,5,request,principal);\n verify(vService).findAllVehicles(0,5, principal);\n\n //Test with all default values\n controller.findAllVehicles(\"car\",null,null,request,principal);\n verify(vService).findAllVehiclesByDisplayName(\"car\",0,0, principal);\n }", "public List<Agent> listAgentNotMappedwithDevice();", "private void populateBasicLists() {\n // TODO chathuranga change following\n districtList = districtDAO.getDistrictNames(language, user);\n // TODO chathuranga when search by all district option\n /* if (districtId == 0) {\n if (!districtList.isEmpty()) {\n districtId = districtList.keySet().iterator().next();\n logger.debug(\"first allowed district in the list {} was set\", districtId);\n }\n }*/\n dsDivisionList = dsDivisionDAO.getDSDivisionNames(districtId, language, user);\n mrDivisionList = mrDivisionDAO.getMRDivisionNames(dsDivisionId, language, user);\n }", "@Override\n public List<Vehicle> getVehiclesByMake(String make){\n List<VehicleDetails> results = repo.findByMake(make);\n return mapper.mapAsList(results, Vehicle.class);\n }", "private List<Model> getModel() {\n \r\n DataBaseTestAdapter1 mDbHelper = new DataBaseTestAdapter1(this); \r\n\t \tmDbHelper.createDatabase(); \r\n\t \tmDbHelper.open(); \r\n\t \t \r\n \t \tpure = (Pure?\"T\":\"F\");\r\n\r\n \t \tString sql =\"SELECT Code FROM \"+major+\" WHERE (Pure='All' OR Pure='\" + pure + \"') ORDER BY Year,Code\"; \r\n\t \tCursor testdata = mDbHelper.getTestData(sql); \r\n\t \tString code = DataBaseUtility1.GetColumnValue(testdata, \"Code\");\r\n\t \tlist.add(new Model(code));\r\n\t \twhile (testdata.moveToNext()){\r\n\t \t\t \r\n\t \tcode = DataBaseUtility1.GetColumnValue(testdata, \"Code\");\r\n\t \tModel temp = new Model(code);\r\n\t \t\r\n\t \tif ((code.equals(\"CommonCore1\") && SA) ||\t\t\t//name conversion\r\n\t \t\t\t(code.equals(\"CommonCore2\") && S_T) ||\r\n\t \t\t\t(code.equals(\"CommonCore3\") && A_H) ||\r\n\t \t\t\t(code.equals(\"CommonCore4\") && Free) ||\r\n\t \t\t\t(code.equals(\"SBM\") && SBM) ||\r\n\t \t\t\t(code.equals(\"ENGG\") && ENGG) ||\r\n\t \t\t\t(code.equals(\"FreeElective\") && FreeE) ||\r\n\t \t\t\t(code.equals(\"COMPElective1\") && compx1) ||\r\n\t \t\t\t((code.equals(\"COMPElective1\")|| code.equals(\"COMPElective2\")) && compx2) ||\r\n\t \t\t\t((code.equals(\"COMPElective1\")|| code.equals(\"COMPElective2\") || code.equals(\"COMPElective3\")) && compx3) ||\r\n\t \t\t\t((code.equals(\"COMPElective1\")|| code.equals(\"COMPElective2\") || code.equals(\"COMPElective3\") || code.equals(\"COMPElective4\")) && compx4) ||\r\n\t \t\t\t((code.equals(\"COMPElective1\")|| code.equals(\"COMPElective2\") || code.equals(\"COMPElective3\") || code.equals(\"COMPElective4\") || code.equals(\"COMPElective5\")) && compx5) ||\r\n\t \t\t\t(code.equals(\"COMP/ELEC/MATH1\") && CEMx1) ||\r\n\t \t\t\t((code.equals(\"COMP/ELEC/MATH1\") || code.equals(\"COMP/ELEC/MATH2\")) && CEMx2) \r\n\t \t\t\t\t\t\t\t){\r\n\t \t\t\r\n\t \t\ttemp.setSelected(true);\r\n\t \t}\r\n\t \r\n\t \tlist.add(temp);\r\n \t}\r\n\r\n\t\ttestdata.close();\r\n \tmDbHelper.close();\r\n\r\n return list;\r\n }", "public ArrayList displayBrandDetailsImpl(Bwfl_permit_tracking_action act){\n\n\n\t\t\tArrayList list = new ArrayList();\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement ps = null;\n\t\t\tResultSet rs = null;\n\t\t\tint j = 1;\n\t\t\tString selQr = null;\n\t\t\tString filter = \"\";\n\n\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\n\t\t\t\t \n\t\t\t\tselQr = \" SELECT distinct a.fk_id, a.district_id, a.brand_id, a.pckg_id, a.etin,a.scanning_fee, a.no_of_cases, a.no_of_bottle_per_case, \"+\n\t\t\t\t\t\t\" a.pland_no_of_bottles, a.import_fee, (a.duty+a.add_duty)as duty, a.add_duty, a.special_fee, a.cr_date, \"+\n\t\t\t\t\t\t\" b.import_fee as tot_import_fee, (b.duty+b.add_duty) as tot_duty, \" +\n\t\t\t\t\t\t\" b.add_duty as tot_adduty, b.special_fee as tot_spcl_fee, \" +\n\t\t\t\t\t\t\" br.brand_name, br.liquor_category, pk.package_name, pk.quantity \"+\n\t\t\t\t\t\t\" FROM bwfl_license.import_permit_dtl_20_21 a, bwfl_license.import_permit_20_21 b, \"+\n\t\t\t\t\t\t\" distillery.brand_registration_20_21 br, distillery.packaging_details_20_21 pk \"+\n\t\t\t\t\t\t\" WHERE a.fk_id=b.id AND a.district_id=b.district_id AND a.login_type=b.login_type AND a.app_id=b.app_id \"+\n\t\t\t\t\t\t\" AND br.brand_id=a.brand_id and br.brand_id=pk.brand_id_fk and a.pckg_id=pk.package_id \"+\n\t\t\t\t\t\t\" AND a.app_id=\"+act.getAppId()+\" \" +\n\t\t\t\t\t\t\" ORDER BY a.fk_id \";\n\n\t\t\t\tps = con.prepareStatement(selQr);\n\t\t\t\t//System.out.println(\"brand query---------------\" + selQr);\n\t\t\t\trs = ps.executeQuery();\n\n\t\t\t\twhile (rs.next()) {\n\n\t\t\t\t\tBwfl_permit_tracking_dt dt = new Bwfl_permit_tracking_dt();\n\n\t\t\t\t\tdt.setSrNo(j);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tdt.setBrandId_dt(rs.getInt(\"brand_id\"));\n\t\t\t\t\tdt.setBrandName_dt(rs.getString(\"brand_name\"));\n\t\t\t\t\tdt.setSize_dt(rs.getInt(\"no_of_bottle_per_case\"));\n\t\t\t\t\tdt.setEtinNo_dt(rs.getString(\"etin\"));\n\t\t\t\t\tdt.setPckgID_dt(rs.getInt(\"pckg_id\"));\n\t\t\t\t\tdt.setPckgType_dt(rs.getString(\"package_name\"));\n\t\t\t\t\tdt.setNmbrOfBox_dt(rs.getInt(\"no_of_cases\"));\n\t\t\t\t\tdt.setNmbrOfBtl_dt(rs.getInt(\"pland_no_of_bottles\"));\n\t\t\t\t\tdt.setDuty_dt(rs.getDouble(\"duty\"));\n\t\t\t\t\tdt.setAddDuty_dt(rs.getDouble(\"add_duty\"));\n\t\t\t\t\tdt.setImportFees_dt(rs.getDouble(\"import_fee\"));\n\t\t\t\t\tdt.setSpecialfees_dt(rs.getDouble(\"special_fee\"));\n\t\t\t\t\tdt.setQuantity_dt(rs.getInt(\"quantity\"));\n\t\t\t\t\tdt.setLiquorCatgry_dt(rs.getInt(\"liquor_category\"));\n\t\t\t\t\tdt.setScanning_fee(rs.getDouble(\"scanning_fee\"));\n\n\t\t\t\t\tact.setTotalDuty(rs.getDouble(\"tot_duty\"));\n\t\t\t\t\tact.setTotalAddDuty(rs.getDouble(\"tot_adduty\"));\n\t\t\t\t\tact.setTotalImportFee(rs.getDouble(\"tot_import_fee\"));\n\t\t\t\t\tact.setTotalSpecialFee(rs.getDouble(\"tot_spcl_fee\"));\n\t\t\t\t\tact.setTotal_scanning_fee(act.getTotal_scanning_fee()+rs.getDouble(\"scanning_fee\"));\n\n\n\t\t\t\t\tj++;\n\t\t\t\t\tlist.add(dt);\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(e.getMessage(), e.getMessage()));\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (ps != null)\n\t\t\t\t\t\tps.close();\n\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\trs.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\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\treturn list;\n\n\t\t\n\t\t}", "public List<Car> getCarsData() { return carsData; }", "public interface TenureCustomerMapper {\n /**\n * 按天查询总条数\n * @return\n */\n int selectDayCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按月查询总条数\n * @return\n */\n int selectMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按年查询总条数\n * @return\n */\n int selectYearCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按周查询总条数\n * @return\n */\n int selectWeekCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n /**\n * 按月筛选\n * @param accountId\n * @param childId\n * @param perfect\n * @param month\n * @return\n */\n int selectByMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect,@Param(\"month\")String month);\n /**\n * 查询已完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectYesCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectYesCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n /**\n * 查询待完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectNoCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectNoCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n int selectBySaledCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n\n List<CustomerTenure> selectBySaledMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n /**\n * 查询list\n * @param p1\n * @param p2\n * @param times\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectTenureMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"times\")int times,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n List<CustomerTenure> selectTenureMsgByMonth(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 根据id查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureAll(@Param(\"tid\")int tid);\n\n /**\n * 根据id查询car表\n * @param tcid\n * @return\n */\n CustomerCar selectCarAll(@Param(\"tcid\") int tcid);\n\n /**\n * 根据关键字查询总数\n */\n int selectBySearch(@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n int selectByNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n int selectByNotNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n\n /**\n * 根据关键字查询list\n * @param p1\n * @param p2\n * @param selects\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectSearchList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n List<CustomerTenure> selectNotNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n /**\n * 根据tid删除tenure表\n * @param tid\n * @return\n */\n int deleteByTid(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid删除tenurecar表\n * @param tcid\n * @return\n */\n int deleteByTcid(@Param(\"tcid\")int tcid);\n\n /**\n * 根据tid查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureById(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid查询tenurecar表\n * @param tcid\n * @return\n */\n CustomerCar selectTenureCarById(@Param(\"tcid\")int tcid);\n\n /**\n * 添加CustomerTenure\n * @param customerTenure\n * @return\n */\n int insertTenure(CustomerTenure customerTenure);\n\n /**\n * 添加CustomerCar\n * @param customerCar\n * @return\n */\n int insertTenureCar(CustomerCar customerCar);\n\n int insertWelfare(Welfare welfare);\n\n int updateWelfare(Welfare welfare);\n\n Welfare selectCarWelfareByMobile(@Param(\"mobile\")String mobile);\n\n int updateTenureMsg(CustomerTenure customerTenure);\n\n List<TenureTask> selectTenureThree();\n\n CustomerTenure selectNewMsgBycustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectCarListByCustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n CustomerTenure selectCustMsgByCarId(int tenurecarId);\n\n int updateOldByNew(CustomerCar customerCar);\n\n int updateNewCarIsDelete(@Param(\"id\") int id);\n\n int selectByProductId(@Param(\"id\")Integer id);\n\n int selectNum(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")int type);\n\n Page<CustomerTenure> selectListNew(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")String type, @Param(\"selects\")String selects, @Param(\"compeleteStatus\")String compeleteStatus, @Param(\"dateStatus\")String dateStatus, @Param(\"buyStatus\")String buyStatus);\n\n List<TenureCarFollow> selectFollowMessage(@Param(\"tcid\")int tcid);\n\n int saveFollowMessage(TenureCarFollow tenureCarFollow);\n\n int updateStatusByType(@Param(\"tenurecarId\")Integer tenurecarId, @Param(\"followType\")Integer followType);\n\n int selectByTenurecarId(@Param(\"tcid\")Integer tcid);\n}", "public static Object[] getVehicleData(){\n String make, model;\n double price, fuelConsumption;\n int power, year;\n FuelType fuelType;\n\n System.out.println(\"\\n1. Car\\n2. Truck\");\n int res = ConsoleReader.getInt();\n System.out.print(\"\\nEnter make :\");\n ConsoleReader.getString();\n make = ConsoleReader.getString();\n System.out.print(\"Enter model :\");\n model = ConsoleReader.getString();\n System.out.print(\"Enter price($) :\");\n price = Double.parseDouble(ConsoleReader.getString());\n System.out.print(\"Enter fuelConsumption(l) :\");\n fuelConsumption = Double.parseDouble(ConsoleReader.getString());\n System.out.print(\"Enter power(kW) :\");\n power = ConsoleReader.getInt();\n System.out.print(\"Enter year :\");\n year = ConsoleReader.getInt();\n System.out.print(\"Enter fuelType :\\n\");\n\n FuelType[] fuelTypes = FuelType.values();\n for(int i = 0; i < fuelTypes.length; i++){\n System.out.print(\" \" + i + \". \" + fuelTypes[i].toString() + \"\\n\");\n }\n fuelType = FuelType.valueOf((fuelTypes[ConsoleReader.getInt()]).toString());\n\n if (res == 1){\n int seatCount, doorCount;\n BodyType bodyType;\n\n System.out.print(\"Enter seatCount :\");\n seatCount = ConsoleReader.getInt();\n System.out.print(\"Enter doorCount :\\n\");\n doorCount = ConsoleReader.getInt();\n\n BodyType[] bodyTypes = BodyType.values();\n for(int i = 0; i < bodyTypes.length; i++){\n System.out.print(\" \" + i + \". \" + bodyTypes[i].toString() + \"\\n\");\n }\n bodyType = BodyType.valueOf((bodyTypes[ConsoleReader.getInt()]).toString());\n\n return new Object[] {res, make, model, price, fuelConsumption,\n power, year, fuelType, seatCount, doorCount, bodyType};\n }else {\n int capacity;\n TruckCategory truckCategory;\n\n System.out.print(\"Enter capacity :\");\n capacity = ConsoleReader.getInt();\n\n TruckCategory[] truckCategories = TruckCategory.values();\n for (int i = 0; i < truckCategories.length; i++) {\n System.out.print(\" \" + i + \". \" + truckCategories[i].toString() + \"\\n\");\n }\n truckCategory = TruckCategory.valueOf((truckCategories[ConsoleReader.getInt()]).toString());\n\n return new Object[]{res, make, model, price, fuelConsumption,\n power, year, fuelType, capacity, truckCategory};\n }\n }", "org.naru.park.ParkController.CommonAction getAll();", "org.naru.park.ParkController.CommonAction getAll();", "public interface UpLoadElemService\n{\n int selectMonthTotalOnStations(List<RbacDep> departments);\n\n int selectMonthNoneReCheckOnActiveUserStations(List<RbacDep> departments);\n\n ArrayList<VehMonthCount> selectVehMonthCountOnActiveUserStations(List<RbacDep> departments);\n\n ArrayList<UpLoadUnit> selectByTermsOnActiveUser(Integer length, Integer start, Integer station_id, String license_plate, Integer axle_num,\n Integer whole_weight_from, Integer whole_weight_to, Integer recheck_wholeWeight_from,\n Integer recheck_wholeWeight_to, Integer whole_over_from, Integer whole_over_to, Integer whole_overrate_from,\n Integer whole_overrate_to, String check_dt_from, String check_dt_to, String recheck_dt_from, String recheck_dt_to,\n Integer isover, String vehowner_name, List<RbacDep> stations);\n\n ArrayList<UpLoadUnit> selectByTermsAllOnActiveUser( Integer station_id, String license_plate, Integer axle_num,\n Integer whole_weight_from, Integer whole_weight_to, Integer recheck_wholeWeight_from,\n Integer recheck_wholeWeight_to, Integer whole_over_from, Integer whole_over_to, Integer whole_overrate_from,\n Integer whole_overrate_to, String check_dt_from, String check_dt_to, String recheck_dt_from, String recheck_dt_to,\n Integer isover, String vehowner_name, List<RbacDep> stations);\n\n\n int selectWhereCountOnActiveUser(Integer station_id, String license_plate, Integer axle_num, Integer whole_weight_from, Integer whole_weight_to,\n Integer recheck_wholeWeight_from, Integer recheck_wholeWeight_to, Integer whole_over_from, Integer whole_over_to,\n Integer whole_overrate_from, Integer whole_overrate_to, String check_dt_from, String check_dt_to, String recheck_dt_from,\n String recheck_dt_to, Integer isover, String vehowner_name, List<RbacDep> stations);\n\n ArrayList<MonthlyStatistic> selectStatisticBaseYearMonrh(Integer year ,Integer month, List<RbacDep> departments);\n\n int selectIsExist(String checkCode, Integer wholeWeight, Integer recheckWholeweight);\n\n int insertUpLoadElem(UpLoadUnit upLoadUnit);\n\n int deleteByCheckCode(String checkCode);\n\n}", "public List<AlbumDTO> getAlbumList()\n/* */ {\n/* 90 */ return this.albumList;\n/* */ }", "public List<ErpBookInfo> selData();", "@SuppressWarnings(\"unchecked\")\n\t@RequestMapping(value = \"/auction/cs/unserviceableList.do\", method = RequestMethod.GET)\n\t@PreAuthorize(\"isAuthenticated()\")\n\tpublic ModelAndView getCsUnserviceableList() {\n\t\tMap<String, Object> model = new HashMap<String, Object>();\n\t\ttry {\n\t\t\tAuctionMst mstDb = new AuctionMst();\n\n\t\t\tList<CSItemTransactionMst> csTnxMstList = (List<CSItemTransactionMst>) (Object) commonService\n\t\t\t\t\t.getObjectListByAnyColumn(\"CSItemTransactionMst\",\n\t\t\t\t\t\t\t\"ledgerName\", UNSERVICEABLE);\n\t\t\tDepartments department = (Departments) commonService\n\t\t\t\t\t.getAnObjectByAnyUniqueColumn(\"Departments\", \"deptId\",\n\t\t\t\t\t\t\t\"505\");\n\n\t\t\tif (csTnxMstList.size() > 0) {\n\t\t\t\tAuctionMst auctionMst = new AuctionMst();\n\t\t\t\tauctionMst.setId(null);\n\t\t\t\tauctionMst.setCountDate(new Date());\n\t\t\t\tauctionMst.setDepartments(department);\n\t\t\t\tauctionMst.setCreatedDate(new Date());\n\t\t\t\tauctionMst.setCreatedBy(commonService.getAuthUserName());\n\n\t\t\t\tcommonService.saveOrUpdateModelObjectToDB(auctionMst);\n\n\t\t\t\tInteger maxMstId = (Integer) commonService\n\t\t\t\t\t\t.getMaxValueByObjectAndColumn(\"AuctionMst\", \"id\");\n\t\t\t\tmstDb = (AuctionMst) commonService\n\t\t\t\t\t\t.getAnObjectByAnyUniqueColumn(\"AuctionMst\", \"id\",\n\t\t\t\t\t\t\t\tmaxMstId + \"\");\n\n\t\t\t\tfor (CSItemTransactionMst mst : csTnxMstList) {\n\t\t\t\t\tString itemCode = mst.getItemCode();\n\t\t\t\t\tItemMaster itemMaster = (ItemMaster) commonService\n\t\t\t\t\t\t\t.getAnObjectByAnyUniqueColumn(\"ItemMaster\",\n\t\t\t\t\t\t\t\t\t\"itemId\", itemCode);\n\t\t\t\t\tDescoKhath descoKhath = (DescoKhath) commonService\n\t\t\t\t\t\t\t.getAnObjectByAnyUniqueColumn(\"DescoKhath\", \"id\",\n\t\t\t\t\t\t\t\t\tmst.getKhathId().toString());\n\n\t\t\t\t\tAuctionDtl dtl = new AuctionDtl();\n\t\t\t\t\tdtl.setId(null);\n\t\t\t\t\tdtl.setAuctionMst(mstDb);\n\t\t\t\t\tdtl.setItemMaster(itemMaster);\n\t\t\t\t\tdtl.setDescoKhath(descoKhath);\n\t\t\t\t\tdtl.setLedgerQty(mst.getQuantity());\n\t\t\t\t\tdtl.setStoreFinalQty(mst.getQuantity());\n\t\t\t\t\tauctionMst.setCreatedDate(new Date());\n\t\t\t\t\tauctionMst.setCreatedBy(commonService.getAuthUserName());\n\n\t\t\t\t\tcommonService.saveOrUpdateModelObjectToDB(dtl);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tList<AuctionDtl> dtlList = (List<AuctionDtl>) (Object) commonService\n\t\t\t\t\t.getObjectListByAnyColumn(\"AuctionDtl\", \"auctionMst.id\",\n\t\t\t\t\t\t\tmstDb.getId().toString());\n\n\t\t\tmodel.put(\"auctionMst\", mstDb);\n\t\t\tmodel.put(\"auctionDtlList\", dtlList);\n\t\t\treturn new ModelAndView(\"centralStore/auction/csUnserviceableList\",\n\t\t\t\t\tmodel);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tmodel.put(\"errorMsg\", e.getMessage());\n\t\t\treturn new ModelAndView(\"centralStore/error\", model);\n\t\t}\n\t}", "public interface SGTView extends IView {\n\n void getSGTHomeData(ApiResponse<List<SGTHomeListEntity>> listApiResponse, String msg, Throwable mThrowable);//赛格通主页列表数据\n\n void getSGTSearchData(ApiResponse<List<FootSSEntity>> listApiResponse, String msg, Throwable mThrowable);//赛格通主页列表数据\n\n void getSearchFootInfoData(ApiResponse<SearchFootEntity> listApiResponse, String msg, Throwable mThrowable);//搜索足环号码\n\n// void getSGTSearchData(List<FootSSEntity> data, String msg);//赛格通足环搜索页\n\n void getFootImg(List<SGTImgEntity> imgDatas, String str);//获取足环照片\n\n void getFootInfo(SGTFootInfoEntity infoData, String str);//获取足环详情\n\n void getGZImgEntity(List<GZImgEntity> gzImgData, String str);//获取鸽主图片\n\n void uploadResults(ApiResponse<Object> dateApiResponse, String msg);//上传图片结果\n\n void getTagData(List<TagEntitiy> tagDatas);//获取标签数据\n\n void getGeZhuFootData(ApiResponse<GeZhuFootEntity> listApiResponse, String msg);//获取鸽主下的足环列表\n\n void getUserInfo_SGT(ApiResponse<SGTUserInfo> dataApiResponse, String msg);//获取赛鸽通用户信息\n\n void getSetRpTimeResults(ApiResponse<Object> dataApiResponse, String msg);//设置本届比赛入棚时间(修改足环号码)\n\n void getSetGPKrysResults(ApiResponse<Object> dataApiResponse, String msg);//设置公棚可容羽数\n}", "@Override\n\t@Transactional\n\tpublic List<CategoryCar> getCategoryCarList() {\n\t\treturn categoryCarDAO.getCategoryCarList();\n\t}", "public static void returnVehicle(Employee[] employeeList, Employee employee) {\n\t\t\n\t}", "public String getList_Base();", "public interface JetspeedService\r\n{\r\n\t\r\n\t/**\r\n\t * Gets the jetspeed information.\r\n\t * \r\n\t * @param servProvCode the target agency code.\r\n\t * @param connType the DB connection type\r\n\t * \r\n\t * @return the jetspeed information\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n\tList<CustomizeProfileModel> getJetspeedInformationByAgencyCode(String servProvCode, String connType) throws AAException;\r\n\t\r\n\t/**\r\n\t * Creates the jetspeed informaiton.\r\n\t * \r\n\t * @param profiles the jetspeed information.\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n\tvoid copyJetspeedInformaitonToMiddleTable(List<CustomizeProfileModel> profiles) throws AAException;\r\n\t\r\n\t/**\r\n\t * Gets the jetspeed profile sequence.\r\n\t * \r\n\t * @return the jetspeed profile sequence\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n\tLong getJetspeedProfileSequence() throws AAException;\r\n\t\r\n\t/**\r\n\t * Gets the turbine user sequence.\r\n\t * \r\n\t * @return the turbine user sequence\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n\tLong getTurbineUserSequence() throws AAException;\r\n\r\n\t/**\r\n\t * Get Jetspeed information by user names.\r\n\t * \r\n\t * @param userNames the user names.\r\n\t * @param connType the DB connection type\r\n\t * \r\n\t * @return List CustomizeProfileModel\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n\tList<CustomizeProfileModel> getJetspeedProfilesByUserNames(List<String> userNames, String connType)\r\n\t\t\tthrows AAException;\r\n\r\n\t/**\r\n\t * Update jetspeed information.\r\n\t * \r\n\t * @param connType the DB connection type\r\n\t * @param userName the user name\r\n\t * \r\n\t * @return the turbine user\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n//\tvoid updateJetspeedInformaiton(List<CustomizeProfileModel> profiles, List<CustomizeProfileModel> dbProfiles,\r\n//\t\t\tString connType) throws AAException;\r\n\r\n\t\r\n\t/**\r\n\t * Gets the turbine user.\r\n\t * \r\n\t * @param userName the user name\r\n\t * @param connType the conn type\r\n\t * \r\n\t * @return the turbine user\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n\tTurbineUserModel getTurbineUser(String userName,String connType) throws AAException;\r\n\t\r\n\t/**\r\n\t * Migrate middle table data to Jetspeed DB..\r\n\t * \r\n\t * @param servProvCode the serv prov code\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n\tvoid migrateMiddleTableDataToJetspeed(String servProvCode) throws AAException;\r\n\r\n\t/**\r\n\t * \r\n\t * Migrate Jetspeed DB to Middle Table.\r\n\t *\r\n\t * @param servProvCode the agency Code.\r\n\t * @throws AAException\r\n\t */\r\n\tvoid migrateJetspeedToMiddleTableData(String servProvCode) throws AAException;\r\n}", "public String categoryList(CategoryDetails c);", "java.util.List<WorldUps.UTruck> \n getTruckstatusList();", "List<PartDetail> getDetails();", "public interface DataAnalyzeService {\n\n void saveFirstLevelLeakage(FirstLevelLeakage firstLevelLeakage);\n\n /**\n * //根据换热站id拿到换热站名称\n * //然后根据换热站名称去Heatstation表中拿到换热站对应的hid\n * //然后用hid去匹配plot表,拿到plot的名称\n * //根据plot名称去cardnumberAddress表匹配,拿到房卡号\n * @return\n * @param tagid\n */\n List<Cardnumberaddress> findCardNum4RlzTagId(Integer tagid);\n\n void saveSecondLeaveLeakage(SecondLevelLeakage secondLevelLeakage);\n\n /**\n * 查询电厂在定时任务表中指定时间内用量\n * @param beginTime\n * @param endTime\n * @return\n */\n double findDCHeatNumByFirstLevelLeakage(Long beginTime, Long endTime);\n\n /**\n * 查询热力站以及上级为电厂的贸易结算系统在任务表中指定时间内用量\n * @param beginTime\n * @param endTime\n * @return\n */\n double findRLZHeatNumBySecondLevelLeakage(Long beginTime, Long endTime);\n\n /**\n * 查询时间段内一级(电厂)漏损值和对应的时间\n * @param begin\n * @param end\n * @return leakageNumList 漏损值 timeList 漏损值对应的时间\n */\n HashMap<String, ArrayList> findFirstLeakageNumAndTimeByBeginTime2EndTime(Date begin, Date end);\n\n /**\n * 查询时间段内二级(热力站,贸易)漏损值和对应的时间\n * @param begin\n * @param end\n * @return\n */\n HashMap<String, ArrayList> findSecondLeakageNumAndTimeByBeginTime2EndTime(Date begin, Date end);\n\n /**\n * 查询时间段内一级(电厂)用量和对应时间\n * @param begin\n * @param end\n * @return\n */\n HashMap<String, ArrayList> findFirstHeatNumAndTimeByBeginTime2EndTime(Date begin, Date end);\n\n /**\n * 查询时间段内二级(热力站,贸易)用量,功率,温差和对应时间\n * @param begin\n * @param end\n * @return\n */\n HashMap<String, ArrayList> findSecondHeatNumAndTimeByBeginTime2EndTime(Date begin, Date end);\n\n void saveSecondLeaveLeakageSum(SecondLevelLeakageSum secondLevelLeakageSum);\n}", "public ArrayList<Poentity> get_all_poentity() throws Exception {\n\n \t\t log.setLevel(Level.INFO);\n\t log.info(\" service operation started !\");\n\n\t\ttry{\n\t\t\tArrayList<Poentity> Poentity_list;\n\n\t\t\tPoentity_list = Poentity_Activity_dao.get_all_poentity();\n\n \t\t\tlog.info(\" Object returned from service method !\");\n\t\t\treturn Poentity_list;\n\n\t\t}catch(Exception e){\n\n\t\t\tSystem.out.println(\"ServiceException: \" + e.toString());\n\t\t\tlog.error(\" service throws exception : \"+ e.toString());\n\n\t\t}\n\t\treturn null;\n\n\n\n\t}", "@Override\r\n\tpublic List<ManufacturersVO> k_getAll() {\n\t\treturn null;\r\n\t}", "public interface CarService {\n LsResponse add(Car car,String endTime,Associator associator);\n LsResponse update(Car car);\n\n LsResponse getCarList(Associator associator,Integer pageNum,Integer pageSize,String endTime);\n\n LsResponse removeAll(Associator associator);\n\n LsResponse deleteCar(List<Car> cars, Associator associator,Integer time);\n\n LsResponse seeCarOrder(List<Car> cars);\n\n List<List<Car>> getCarsByType(List<Car> cares, Canteen canteen);\n}", "public static void showAllVilla(){\n ArrayList<Villa> villaList = getListFromCSV(FuncGeneric.EntityType.VILLA);\n displayList(villaList);\n showServices();\n }", "public List<Vehicle> getVehicles() {\n\t\treturn vehicles;\n\t\t\n\t}", "@RequestMapping(\"/fashionCategories\")\r\n public ResponseEntity<List> listFashionCategories() {\r\n\t\tSystem.out.println(\"*************************************ListAllItems\");\r\n\t\tDBConnection db = new DBConnection();\r\n \tList<Advertisment> categories = \tdb.getAllAdsByCategory(\"Fashion\");\r\n\t\t//List<String> categories = itemService.populateAllCategories(); \r\n\t\t\r\n\t\tSystem.out.println(\"*************************************ListAllItems1111\");\r\n if(categories.isEmpty()){\r\n return new ResponseEntity<List>(HttpStatus.NO_CONTENT);//You many decide to return HttpStatus.NOT_FOUND\r\n }\r\n return new ResponseEntity<List>(categories, HttpStatus.OK);\r\n }", "public Vector listSpecification(String activityId) throws SQLException {\n Debug.print(\"Inside the listSpecification activityId : \"+activityId);\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT specification_id,activity_type_id,specification_name FROM \"+ DBHelper.USEA_SPECIFICATION_MASTER+\n \" WHERE activity_type_id = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, activityId);\n rs = prepStmt.executeQuery();\n System.out.println(\"after execute Query activityId \"+activityId);\n while (rs.next()) {\n this.specificationId = rs.getString(1);\n this.activityTypeId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String [] speciList = {specificationId,specificationName};\n vObj.add(speciList);\n }\n \n }catch (SQLException e){\n releaseConnection();\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }", "public interface ProductMeterialInfoDao {\r\n public List<Product_material_info> getProductPageList(Page<Product_material_info> pageInfo);\r\n public int getProductPageCount(Map<String, Object> params);\r\n\r\n List<Supplier_product_rel> getSupplierProductPageList(Page<Supplier_product_rel> pageInfo);\r\n int getSupplierProductPageCount(Page<Supplier_product_rel> pageInfo);\r\n\r\n public void addProductInfo(Map<String, Object> params);\r\n public void delProduct(Map<String, Object> params);\r\n public Product_material_info getProductInfo(Map<String, Object> params);\r\n public void updProductInfo(Map<String,Object> params);\r\n public List<Product_material_info> getProductList(Map<String, Object> params);\r\n public String getProductImage(Map<String, Object> params);\r\n\r\n\r\n List<product_use> getProductMaterialList(Map<String,Object> params);\r\n int getProductMaterialCount(Map<String,Object> params);\r\n List<product_use> use_material(Map<String,Object> params);\r\n void add_Usematerial(Map<String,Object> params);\r\n List<product_use> MaterialHistoryList(Map<String,Object> params);\r\n int MaterialHistoryCount(Map<String,Object> params);\r\n void updProductMaterial(Map<String,Object> params);\r\n List<consumable_use> getProductSuppliesList(Map<String,Object> params);\r\n int getProductSuppliesCount(Map<String,Object> params);\r\n List<consumable_use> use_supplies(Map<String,Object> params);\r\n void add_Usesupplies(Map<String,Object> params);\r\n void updProductSupplies(Map<String,Object> params);\r\n List<consumable_use> SuppliesHistoryList(Map<String,Object> params);\r\n int SuppliesHistoryCount(Map<String,Object> params);\r\n List<product_research> getProductResearchList(Map<String,Object> params);\r\n int getProductResearchCount(Map<String,Object> params);\r\n List<product_research> use_res(Map<String,Object> params);\r\n void add_Useres(Map<String,Object> params);\r\n void updProductRes(Map<String,Object> params);\r\n List<product_research> ResearchHistoryList(Map<String,Object> params);\r\n int ResearchHistoryCount(Map<String,Object> params);\r\n public List<Staff_info> moblieSelect(Map<String,Object> params);\r\n List<Product_material_enter_detail> stockSelectCas(Map<String,Object> params);\r\n void apply_purchasing(Map<String,Object> params);\r\n List<Product_material_enter_detail> use_purchasing(Map<String,Object> params);\r\n void add_purchasing(Map<String,Object> params);\r\n List<consumable_material_info> suppliesSelectName(Map<String,Object> params);\r\n void add_supplies(Map<String,Object> params);\r\n void add_consumable_use(Map<String,Object> params);\r\n List<consumable_repair> suppliesRepairList(Map<String,Object> params);\r\n int suppliesRepairCount(Map<String,Object> params);\r\n void addRepairList(Map<String,Object> params);\r\n void updRepair(Map<String,Object> params);\r\n List<consumable_repair> selectRepairName(Map<String,Object> params);\r\n List<consumable_repair> selectRepairFanxiu(Map<String,Object> params);\r\n void addRepairFanxiu(Map<String,Object> params);\r\n void no_addRepairFanxiu(Map<String,Object> params);\r\n List<consumable_material_info> fanxiu_add_select(Map<String,Object> params);\r\n void addFanxiuRepair(Map<String,Object> params);\r\n void fanxiu_info_add(Map<String,Object> params);\r\n\r\n List<product_use> MaterialRequisitionAuditList(Map<String,Object> params);\r\n int MaterialRequisitionAuditCount(Map<String,Object> params);\r\n void ConfirmationAudit(Map<String,Object> params);\r\n product_use Receive_Preview(int use_id);\r\n List<Staff_info> staff_mobilephone(Map<String,Object> params);\r\n List<consumable_use> getConsumableList(Map<String,Object> params);\r\n int getConsumableCount(Map<String,Object> params);\r\n void useUpdate(Map<String,Object> params);\r\n List<consumable_use> consumable_mobilephone(Map<String, Object> params);\r\n List<product_research> getResearchList(Map<String, Object> params);\r\n int getResearchCount(Map<String, Object> params);\r\n void researchStatusUp(Map<String,Object> params);\r\n void researchDel(product_research product_research);\r\n\r\n\r\n\r\n List<PurchaseInventoryInfo> warehouseMaterialList(Map<String, Object> params);\r\n int warehouseMaterialCount(Map<String, Object> params);\r\n\r\n List<PurchaseInventoryInfo> warehouseMaterialList_history(Map<String, Object> params);\r\n int warehouseMaterialCount_history(Map<String, Object> params);\r\n\r\n}", "public interface InventoryDataManager{\n\n /**\n * Returns the Lot records with entity type matching the given parameter.\n * \n * @param type\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * \n * @return List of Lot POJOs\n */\n public List<Lot> getLotsByEntityType(String type, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Lot records with entity type matching the given\n * parameter.\n * \n * @param type\n * @return\n */\n public long countLotsByEntityType(String type) throws MiddlewareQueryException;\n\n /**\n * Returns the Lot records with entity type and entity id matching the given\n * parameters.\n * \n * @param type\n * @param entityId\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * \n * @return List of Lot POJOs\n */\n public List<Lot> getLotsByEntityTypeAndEntityId(String type, Integer entityId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Lot records with entity type and entity id matching\n * the given parameters.\n * \n * @param type\n * @param entityId\n * @return\n */\n public long countLotsByEntityTypeAndEntityId(String type, Integer entityId) throws MiddlewareQueryException;\n\n /**\n * Returns the Lot records with entity type and location id matching the\n * given parameters.\n * \n * @param type\n * @param locationId\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * \n * @return List of Lot POJOs\n */\n public List<Lot> getLotsByEntityTypeAndLocationId(String type, Integer locationId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Lot records with entity type and location id\n * matching the given parameters.\n * \n * @param type\n * @param locationId\n * @return\n */\n public long countLotsByEntityTypeAndLocationId(String type, Integer locationId) throws MiddlewareQueryException;\n\n /**\n * Returns the Lot records with entity type, entity id, and location id\n * matching the given parameters.\n * \n * @param type\n * @param entityId\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * \n * @return List of Lot POJOs\n */\n public List<Lot> getLotsByEntityTypeAndEntityIdAndLocationId(String type, \n Integer entityId, Integer locationId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Lot records with entity type, entity id, and\n * location id matching the given parameters.\n * \n * @param type\n * @param entityId\n * @param locationId\n * @return\n */\n public long countLotsByEntityTypeAndEntityIdAndLocationId(String type, Integer entityId, Integer locationId) throws MiddlewareQueryException;\n\n /**\n * Returns the actual transaction balance of the Lot with the specified\n * lotId. Lot balance is computed from the sum of all its related\n * transaction records' quantity. Only committed transactions (nstat=1) are\n * included in the computation.\n * \n * @param lotId\n * - id of the Lot record\n * @return The actual transaction balance of all the specified Lot\n */\n public Long getActualLotBalance(Integer lotId) throws MiddlewareQueryException;\n\n /**\n * Returns the available transaction balance of the Lot with the specified\n * lotId. Lot balance is computed from the sum of all its related\n * transaction records' quantity. All non-cancelled transactions (nstat!=9)\n * are included in the computation.\n * \n * @param lotId\n * - id of the Lot record\n * @return The available transaction balance of all the specified Lot\n */\n public Long getAvailableLotBalance(Integer lotId) throws MiddlewareQueryException;\n\n /**\n * Given a valid Lot object, add it as a new record to the database. It is\n * assumed that the entity referenced by the Lot is already present in the\n * database.\n * \n * @param lot\n * @return Returns the id of the {@code Lot} record added\n * @throws MiddlewareQueryException\n */\n public Integer addLot(Lot lot) throws MiddlewareQueryException;\n\n /**\n * Given a List of valid Lot objects, add them as new records to the\n * database. It is assumed that the entities referenced by the lots are\n * already present in the database.\n * \n * @param lots\n * @return Returns the ids of the {@code Lot} records added\n * @throws MiddlewareQueryException\n */\n public List<Integer> addLot(List<Lot> lots) throws MiddlewareQueryException;\n\n /**\n * Given a valid Lot object which represents an existing record in the\n * database, update the record to the changes contained in the given object.\n * \n * @param lot\n * @return Returns the id of the updated {@code Lot} record\n * @throws MiddlewareQueryException\n */\n public Integer updateLot(Lot lot) throws MiddlewareQueryException;\n\n /**\n * Given a List of valid Lot objects, each of them representing an existing\n * record in the database, update the records to the changes contained in\n * the given objects.\n * \n * @param lots\n * @return Returns the ids of the updated {@code Lot} records\n * @throws MiddlewareQueryException\n */\n public List<Integer> updateLot(List<Lot> lots) throws MiddlewareQueryException;\n\n /**\n * Given a valid Transaction record, add it as a new record to the database.\n * \n * @param transaction\n * @return Returns the id of the {@code Transaction} record added\n * @throws MiddlewareQueryException\n */\n public Integer addTransaction(Transaction transaction) throws MiddlewareQueryException;\n\n /**\n * Given a List of valid Transaction records, add them as new records to the\n * database.\n * \n * @param transactions\n * @return Returns the ids of the {@code Transaction} records added\n * @throws MiddlewareQueryException\n */\n public List<Integer> addTransaction(List<Transaction> transactions) throws MiddlewareQueryException;\n\n /**\n * Given a valid Transaction record, update the database to the changes from\n * the object. Note that the Lot can not be changed.\n * \n * @param transaction\n * @return Returns the id of the updated {@code Transaction} record\n * @throws MiddlewareQueryException\n */\n public Integer updateTransaction(Transaction transaction) throws MiddlewareQueryException;\n\n /**\n * Givan a List of valid Transaction objects, update their corresponding\n * records in the database. Note that the Lot of the Transactions can not be\n * changed.\n * \n * @param transactions\n * @return Returns the ids of the updated {@code Transaction} records\n * @throws MiddlewareQueryException\n */\n public List<Integer> updateTransaction(List<Transaction> transactions) throws MiddlewareQueryException;\n\n /**\n * Returns the Transaction object which represents the record identified by\n * the given id.\n * \n * @param id\n * @return\n */\n public Transaction getTransactionById(Integer id) throws MiddlewareQueryException;\n\n /**\n * Return all Transaction records associated with the Lot identified by the\n * given parameter.\n * \n * @param id\n * @return Set of Transaction POJOs representing the records\n */\n public Set<Transaction> getTransactionsByLotId(Integer id) throws MiddlewareQueryException;\n\n /**\n * Returns the Transaction records which are classified as reserve\n * transactions. The records have status = 0 and negative quantities.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return\n */\n public List<Transaction> getAllReserveTransactions(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Transaction records which are classified as reserve\n * transactions. The records have status = 0 and negative quantities.\n * \n * @return\n */\n public long countAllReserveTransactions() throws MiddlewareQueryException;\n\n /**\n * Returns the Transaction records which are classified as deposit\n * transactions. The records have status = 0 and positive quantities.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of Transaction POJOs\n */\n public List<Transaction> getAllDepositTransactions(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Transaction records which are classified as deposit\n * transactions. The records have status = 0 and positive quantities.\n * \n * @return\n */\n public long countAllDepositTransactions() throws MiddlewareQueryException;\n\n /**\n * Returns the Transaction records which are classified as reserve\n * transactions (the records have status = 0 and negative quantities) and\n * made by the person identified by the given id.\n * \n * @param personId\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of Transaction POJOs\n */\n public List<Transaction> getAllReserveTransactionsByRequestor(Integer personId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Transaction records which are classified as reserve\n * transactions (the records have status = 0 and negative quantities) and\n * made by the person identified by the given id.\n * \n * @param personId\n * @return\n */\n public long countAllReserveTransactionsByRequestor(Integer personId) throws MiddlewareQueryException;\n\n /**\n * Returns the Transaction records which are classified as deposit\n * transactions (the records have status = 0 and positive quantities) and\n * made by the person identified by the given id.\n * \n * @param personId\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of Transaction POJOs\n */\n public List<Transaction> getAllDepositTransactionsByDonor(Integer personId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Transaction records which are classified as deposit\n * transactions (the records have status = 0 and positive quantities) and\n * made by the person identified by the given id.\n * \n * @param personId\n * @return\n */\n public long countAllDepositTransactionsByDonor(Integer personId) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all uncommitted Transaction records. Included\n * information are: commitment date, quantity of transaction, scale of the\n * lot of the transaction, location of the lot, comment on the lot.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of TransactionReportRow objects\n */\n public List<TransactionReportRow> generateReportOnAllUncommittedTransactions(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Return the number of all Transaction records which are uncommitted\n * (status is equal to zero).\n * \n * @return\n */\n public long countAllUncommittedTransactions() throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Transaction records classified as reserve\n * transactions. Included information are: commitment date, quantity of\n * transaction, scale of the lot of the transaction, location of the lot,\n * comment on the lot, entity id of the lot.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of TransactionReportRow objects\n */\n public List<TransactionReportRow> generateReportOnAllReserveTransactions(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Transaction records classified as withdrawal\n * transactions (quantity is negative). Included information are: commitment\n * date, quantity of transaction, scale of the lot of the transaction,\n * location of the lot, comment on the lot, entity id of the lot, person\n * responsible for the transaction.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of TransactionReportRow objects\n */\n public List<TransactionReportRow> generateReportOnAllWithdrawalTransactions(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Transaction records classified as withdrawal\n * transactions (quantity is negative).\n * \n * @return\n */\n public long countAllWithdrawalTransactions() throws MiddlewareQueryException;\n\n /**\n * Returns all Lot records in the database.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of Lot POJOs\n */\n public List<Lot> getAllLots(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Counts the lots in the database.\n * \n * @return The number of lots in the database.\n */\n public long countAllLots() throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Lot records. Included information are: lot\n * balance, location of the lot, and scale of the lot.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of LotReportRow objects\n */\n public List<LotReportRow> generateReportOnAllLots(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all dormant Lot records given a specific year. All\n * lots with non-zero balance on or before the given year are retrieved as\n * dormant lots. Included information are: lot balance, location of the lot,\n * and scale of the lot.\n * \n * @param year\n * - filter dormant lots depending on the year specified\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of LotReportRow objects\n */\n public List<LotReportRow> generateReportOnDormantLots(int year, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report about Lots with zero balance Included information are:\n * lot id of the lot, entity id of the lot, lot balance, location of the\n * lot, and scale of the lot.\n * \n * @return List of LotReportRow\n * @throws MiddlewareQueryException\n */\n public List<LotReportRow> generateReportOnEmptyLots(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report about Lots with balance less than the amount specified\n * Included information are: lot id of the lot, entity id of the lot, lot\n * balance, location of the lot, and scale of the lot.\n * \n * @param minAmount\n * - value specified\n * @return List of LotReportRow objects\n * @throws MiddlewareQueryException\n */\n public List<LotReportRow> generateReportOnLotsWithMinimumAmount(long minimumAmount, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Lot records associated with the given entity\n * type. Included information are: lot id of the lot, entity id of the lot,\n * lot balance, location of the lot, and scale of the lot.\n * \n * @param type\n * - entity type of the Lots to generate the report from\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of LotReportRow objects\n */\n public List<LotReportRow> generateReportOnLotsByEntityType(String type, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Lot records associated with the given entity type\n * and entityId. Included information are: lot id of the lot, entity id of\n * the lot, lot balance, location of the lot, and scale of the lot.\n * \n * @param type\n * - entity type of the Lots to generate the report from\n * @param entityId\n * - entity Id of the Lot to generate the report from\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of LotReportRow objects\n */\n public List<LotReportRow> generateReportOnLotsByEntityTypeAndEntityId(String type, Integer entityId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Lot records associated with the given entity type\n * and a list of entityIds. Included information are: lot id of the lot,\n * entity id of the lot, lot balance, location of the lot, and scale of the\n * lot.\n * \n * @param type\n * - entity type of the Lots to generate the report from\n * @param entityIds\n * - a List of entity Ids of the Lots to generate the report from\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of LotReportRow objects\n */\n public List<LotReportRow> generateReportOnLotsByEntityTypeAndEntityId(String type, List<Integer> entityIds, int start, int numOfRows) throws MiddlewareQueryException;\n\n}", "public abstract List<CarTO> findCarByModel(String model);", "public interface CategoryDAO extends DAO<AbsractCategory> {\n\n /**\n * getting exactly one category specified by the given id\n *\n * @param identificaitonNumber of the category to search for\n * @return exactely one category\n * @throws PersistenceException\n */\n AbsractCategory searchByID(int identificaitonNumber) throws PersistenceException;\n\n /**\n * getting a list of all equipment categorys\n *\n * @return a list of all equipment categorys like, kurzhantel, langhantel, springschnur ...\n * @throws PersistenceException\n */\n List<EquipmentCategory> getAllEquipment() throws PersistenceException;\n\n /**\n * getting a list of all muscle groups\n *\n * @return a list of all muslce groups like, bauchmuskeln, oberschenkel, unterschenkel ...\n * @throws PersistenceException\n */\n List<MusclegroupCategory> getAllMusclegroup() throws PersistenceException;\n\n /**\n * getting a list of all trainingstypes\n *\n * @return a list of all trainingstypes: ausdauer, kraft, balance, flexibilitaet\n * @throws PersistenceException\n */\n List<TrainingsCategory> getAllTrainingstype() throws PersistenceException;\n\n}", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "public List<String> getListOfAircraftModels() {\n \n List<AircraftModel> list = project.getAircraftModelList().getModelList();\n LinkedList<String> modelListInString = new LinkedList<>();\n for (AircraftModel model : list) {\n modelListInString.add(model.getId());\n }\n\n return modelListInString;\n }" ]
[ "0.7152627", "0.65792274", "0.6467326", "0.64565337", "0.6341975", "0.62080723", "0.61801624", "0.6173583", "0.6113551", "0.6099395", "0.60727733", "0.6044254", "0.60129464", "0.6006532", "0.5969027", "0.5956243", "0.5951869", "0.594713", "0.5937191", "0.59053695", "0.58321476", "0.58282524", "0.57853913", "0.5773587", "0.5764902", "0.57462806", "0.57435304", "0.57417727", "0.5719204", "0.5712834", "0.5707051", "0.56860447", "0.5684795", "0.568407", "0.56798", "0.5670743", "0.565182", "0.56514585", "0.56418264", "0.5629762", "0.5628429", "0.5622649", "0.5607191", "0.5595938", "0.5593271", "0.55848604", "0.5571824", "0.55677176", "0.55485374", "0.55447006", "0.5538165", "0.5532974", "0.5531634", "0.55277926", "0.5526649", "0.55264956", "0.55219907", "0.5510733", "0.5496619", "0.54940325", "0.5479405", "0.54780334", "0.54736763", "0.5470751", "0.54693985", "0.54692125", "0.54685855", "0.5463329", "0.5460933", "0.54593366", "0.54586315", "0.54578626", "0.5450132", "0.5450132", "0.5447161", "0.5443303", "0.5442822", "0.54363537", "0.54268354", "0.54267025", "0.5425967", "0.5418974", "0.5417057", "0.5416846", "0.541531", "0.5414637", "0.54038453", "0.54002756", "0.539521", "0.53921485", "0.53880596", "0.53811", "0.53772265", "0.5370827", "0.5369472", "0.5362979", "0.5360038", "0.53575444", "0.5356983", "0.5355322" ]
0.69915634
1
for getting driver,vehicle absent list
public List getDriverAbsentList() throws Exception ;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Agent> listAgentNotMappedwithDevice();", "public List getCurrentAvailabeDrivers() throws Exception;", "public List<Agent> findAgentsActifs() {\n Query q = getEntityManager().createQuery(\"select A from Agent A WHERE A.etat NOT IN('RET','DEM') ORDER BY A.personne.name\");\n List<Agent> list = q.getResultList();\n return list;\n }", "private void getVehicleList() {\n mApiCall.getVehicleList();\n }", "public List<String> getDriverDetailsList()\r\n {\r\n List<String> driverDetailsList = new ArrayList<>(Arrays.asList(\r\n String.valueOf(this.getDriverId()),\r\n String.valueOf(this.getDriverName()),\r\n String.valueOf(this.getDriverCountry()),\r\n String.valueOf(this.getDriverTeam()),\r\n String.valueOf(this.getDriverCar()),\r\n String.valueOf(this.getDriverEngine()),\r\n String.valueOf(this.getDriverTyres()),\r\n String.valueOf(this.getDriverPoints())\r\n ));\r\n return driverDetailsList;\r\n }", "public static void listVehicles() {\n\t\tSystem.out.println(\"-----------------\");\n\t\tSystem.out.println(\"Listing Vehicles\");\n\t\tSystem.out.println(\"-----------------\");\n\t\t\n\t\tfor (int i = 0; i < owners.size(); i++) {\n\t\t\tfor (Vehicle v : owners.get(i).getVehicles()) {\n\t\t\t\t\n\t\t\t\tSystem.out.println((owners.get(i).getName() + \"'s \" + v.toString()));\n\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\t\n\t}", "public ArrayList<DriverVO> showDriver() throws ClassNotFoundException,\n\t\t\tIOException {\n\t\tmanageVOPO.addLog(LogType.DRIVER_MANAGEMENT);\n\t\tif (driverDataService != null) {\n\t\t\tArrayList<DriverPO> pos = driverDataService.showDriver();\n\t\t\tArrayList<DriverVO> vos = new ArrayList<DriverVO>();\n\t\t\tDriverVO vo;\n\t\t\tfor (DriverPO po : pos) {\n\t\t\t\tvo = manageVOPO.poToVO(po);\n\t\t\t\tvos.add(vo);\n\t\t\t}\n\t\t\treturn vos;\n\t\t} else\n\t\t\tthrow new RemoteException();\n\t}", "@Override\n public List<Vehicle> getVehicles(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,3);\n\n //get the vehicles - > for each vehicle, with the vehicle model field (String model = vehicle.getForeignKey(\"model\"))\n List<Vehicle> vehicles = new ArrayList<>();\n try {\n List<Map<String,Object>> data = get(\"SELECT * FROM TblVehicles\");\n for(Map<String,Object> map: data) {\n //create a vehicle\n Vehicle vehicle = new Vehicle(map);\n\n //get the model number\n String model = vehicle.getForeignKey(\"model\");\n\n //get the model from Tbl\n if (model != null) {\n VehicleModel vehicleModel = new VehicleModel(get(\"SELECT * FROM TblVehicleModel WHERE modelNum = ?\", model).get(0));\n vehicle.setModel(vehicleModel);\n }\n //adding\n vehicles.add(vehicle);\n }\n return vehicles;\n }catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }", "@Override\r\n\tpublic List<IAutomatedVehicle> getVehiclesOfFuelType(Fuel fuel) {\r\n\t\tList<IAutomatedVehicle> allVehiclesOfFuelType = new ArrayList<>();\r\n\r\n//\t\tfor (INonAutomatedVehicle notAuto : this.vehicleDatabase.get(CAR)) {\r\n//\t\t\tIAutomatedVehicle auto = (IAutomatedVehicle) notAuto;\r\n//\t\t\tif (auto.getFuel().equals(fuel)) {\r\n//\t\t\t\tallVehiclesOfFuelType.add(auto);\r\n//\t\t\t}\r\n//\t\t}\r\n//\r\n//\t\tfor (INonAutomatedVehicle notAuto : this.vehicleDatabase.get(MOTORCYCLE)) {\r\n//\t\t\tIAutomatedVehicle auto = (IAutomatedVehicle) notAuto;\r\n//\t\t\tif (auto.getFuel().equals(fuel)) {\r\n//\t\t\t\tallVehiclesOfFuelType.add(auto);\r\n//\t\t\t}\r\n//\t\t}\r\n\r\n\t\tList<INonAutomatedVehicle> nonAuto = new ArrayList<>();\r\n\t\tnonAuto.addAll(this.vehicleDatabase.get(CAR));\r\n\t\tnonAuto.addAll(this.vehicleDatabase.get(MOTORCYCLE));\r\n\t\tfor (INonAutomatedVehicle nonVehicle : nonAuto) {\r\n\t\t\tIAutomatedVehicle auto = (IAutomatedVehicle) nonVehicle;\r\n\t\t\tif (auto.getFuel().equals(fuel)) {\r\n\t\t\t\tallVehiclesOfFuelType.add(auto);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn allVehiclesOfFuelType;\r\n\t}", "List<Driver> findAllDrivers();", "public static void getVehicleInformation(Employee [] employee) {\n\t\tif (Vehicle.getVehicleQuantity() == 0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no vehicle!\");\n\t\t} else {\n\t\t\tfor (int i = 0; i < Vehicle.getVehicleQuantity(); i++) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"-------List of Vehicles-------\\n\"\n\t\t\t\t\t\t+ (i+1) + \" \" + employee[i+1].getVehicle().getName() + \"\\n\");\n\t\t\t}\t\t\t\n\t\t}\n\t}", "public List<Agent> findAgentsInterne() {\n Query q = getEntityManager().createQuery(\"select A from Agent A WHERE A.etat NOT IN('RET','DEM') AND A.lastDirection IN(SELECT D.code FROM Direction D WHERE D.internExtern=?1) ORDER BY A.personne.name\");\n q.setParameter(1, InterneExterne.Interne);\n List<Agent> list = q.getResultList();\n return list;\n }", "public List<Vehicle> getVehicles() {\n\t\tList<Vehicle> vehicleList = new ArrayList<Vehicle>();\n\t\tif ((vehicles == null)||(vehicles.isEmpty())) { // call DAO method getCustomers to retrieve list of customer objects from database\n\t\t\ttry {\n\t\t\t\tvehicleList = vehicleService.getAllVehicles();\n\t\t\t} catch (Exception e) {\n\t\t\t\tcurrentInstance = FacesContext.getCurrentInstance();\n\t\t\t\tFacesMessage message = null;\n\t\t\t\tmessage = new FacesMessage(FacesMessage.SEVERITY_ERROR,\"Failed\",\"Failed to retrieve vehicles from the database\" + e.getMessage());\n\t\t\t\tcurrentInstance.addMessage(null, message);\n\t\t\t}\n\t\t} else {\n\t\t\tvehicleList = vehicles;\n\t\t}\n\t\treturn vehicleList;\n\t}", "private void bonded_devices_get()\n\t\t{\n\t\t\tmPairedDevList.clear();\n\t\t\tSet<BluetoothDevice> PairedDevices = btAdapter.getBondedDevices();\n\t\t\tif(PairedDevices.size() > 0)\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.VISIBLE);\n\t\t\t\tfor(BluetoothDevice device : PairedDevices)\n\t\t\t\t{\n\t\t\t\t\tString device_info = device.getName()+\"\\n\"+device.getAddress();\n\t\t\t\t\tmPairedDevList.add(device_info);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.GONE);\n\t\t\t\tmPairedDevList.add(\"No Bonded Devices\");\n\t\t\t}\n\t\t}", "private static List<Element> getXMLVehicles(Model model) {\n Set<Vehicle> vehicles = new TreeSet<>(Comparators.objectsById());\n vehicles.addAll(model.getVehicles(null));\n List<Element> result = new ArrayList<>(vehicles.size());\n for (Vehicle curVehicle : vehicles) {\n Element vehicleElement = new Element(\"vehicle\");\n vehicleElement.setAttribute(\"id\", String.valueOf(curVehicle.getId()));\n vehicleElement.setAttribute(\"name\", curVehicle.getName());\n vehicleElement.setAttribute(\"length\",\n String.valueOf(curVehicle.getLength()));\n vehicleElement.setAttribute(\"energyLevelCritical\",\n String.valueOf(curVehicle.getEnergyLevelCritical()));\n vehicleElement.setAttribute(\"energyLevelGood\",\n String.valueOf(curVehicle.getEnergyLevelGood()));\n for (Map.Entry<String, String> curEntry\n : curVehicle.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n vehicleElement.addContent(propertyElement);\n }\n result.add(vehicleElement);\n }\n return result;\n }", "public ArrayList<DriverVO> showDriver(City city)\n\t\t\tthrows ClassNotFoundException, IOException {\n\t\tDriverVO temp;\n\t\tArrayList<DriverVO> localDrivers = new ArrayList<DriverVO>();\n\t\tArrayList<DriverVO> allDrivers = showDriver();\n\t\tif (allDrivers != null) {\n\t\t\tIterator<DriverVO> t = allDrivers.iterator();\n\t\t\tfor (; t.hasNext();) {\n\t\t\t\ttemp = t.next();\n\t\t\t\tif (City.getCityByNum(temp.driverNum.substring(0, 3)) == city) {\n\t\t\t\t\tlocalDrivers.add(temp);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (localDrivers.size() == 0 || localDrivers == null) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn localDrivers;\n\t\t\t}\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "List<DeviceDetails> getDevices();", "public void showVehicles() {\n\t\tfor (Vehicle vehicle : vehicles) {\n\t\t\tSystem.out.println(vehicle);\n\t\t}\n\t}", "public List<MotorCycle> getListMototCycleNameAndCylinder(){\r\n\t\treturn motorCycleDao.getListMotorNameAndCylinder();\r\n\t}", "public static void main(String[] args) {\n\t\tOilStation benzinostanciq = new OilStation(\"OMV\");\r\n\t\tbenzinostanciq.printInfo();\r\n\t\t\r\n\t\t//2\r\n\t\tString[] names = {\"Petar\", \"Dragomir\", \"Svetoslav\", \"Canko\", \"Dencho\", \"Ivan\", \"Hristo\", \"Stamat\"};\r\n\t\tdouble[] money = {6500, 6100, 4900, 5900, 6000, 5700, 6200};\r\n\t\t\r\n\t\tArrayList<Driver> drivers = new ArrayList<>();\r\n\t\tfor (int i = 0; i < 20; i++) {\r\n\t\t\tdrivers.add(new Driver(names[new Random().nextInt(names.length)], money[new Random().nextInt(money.length)], benzinostanciq));\r\n\t\t}\r\n\t\t\r\n\t\t//3\r\n\t\tArrayList<Vehicle> avtomobili = new ArrayList<>();\r\n\t\t\r\n\t\tfor (int i = 0; i < 200; i++) {\r\n\t\t\tswitch (new Random().nextInt(3)) {\r\n\t\t\tcase 0:\r\n\t\t\t\tavtomobili.add(new Car(\"Golf\", 2005));\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\tavtomobili.add(new Bus(\"Man\", 2006));\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tavtomobili.add(new Truck(\"Scania\", 2011));\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int i = 0; i < drivers.size(); i++) {\r\n\t\t\tint broiAvt = 10;\r\n\t\t\twhile (broiAvt > 0) {\r\n\t\t\t\tint idx = new Random().nextInt(avtomobili.size());\r\n\t\t\t\tdrivers.get(i).addVehicle(avtomobili.get(idx));\r\n\t\t\t\tavtomobili.remove(idx);\r\n\t\t\t\tbroiAvt--;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//4\r\n\r\n\t\tfor (int i = 0; i < drivers.size(); i++) {\r\n\t\t\tif (i % 3 == 0) {\r\n\t\t\t\tint buyVinetki = 5;\r\n\t\t\t\twhile (buyVinetki > 0) {\r\n\t\t\t\t\tint idx = new Random().nextInt(drivers.get(i).getVehicle().size());\r\n\t\t\t\t\tif (drivers.get(i).getVehicle().get(idx).getVinetka() == null) {\r\n\t\t\t\t\t\tdrivers.get(i).buyVinetka(idx, ValidPeriod.values()[new Random().nextInt(ValidPeriod.values().length)]);\r\n\t\t\t\t\t\tbuyVinetki--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tdrivers.get(i).buyVinetki(ValidPeriod.values()[new Random().nextInt(ValidPeriod.values().length)]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//5\r\n\t\tfor (Driver dr : drivers) {\r\n\t\t\tdr.printInfoForDriver();\r\n\t\t}\r\n\t\t\r\n\t\t//6\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"-----ÑÏÈÑÚÊ ÍÀ ÂÈÍÅÒÊÈ ÑËÅÄ ÏÐÎÄÀÆÁÀ-----\");\r\n\t\tbenzinostanciq.printInfo();\r\n\r\n\t}", "private void getVehicleByParse() {\n\t\tvehicles = new ArrayList<DCVehicle>();\n\t\tfinal ParseUser user = ParseUser.getCurrentUser();\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCVehicle\");\n\n\t\tquery.setCachePolicy(ParseQuery.CachePolicy.NETWORK_ELSE_CACHE);\n\t\tquery.whereEqualTo(\"vehiclePrivateOwner\", user);\n\t\tquery.findInBackground(new FindCallback<ParseObject>() {\n\t\t\tpublic void done(final List<ParseObject> vehicleList,\n\t\t\t\t\tParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\t// Loop through all vehicles that we got from the query\n\t\t\t\t\tfor (int i = 0; i < vehicleList.size(); i++) {\n\t\t\t\t\t\t// Convert parse object (DC Vehicle) into vehicle\n\t\t\t\t\t\tDCVehicle vehicle = ParseUtilities\n\t\t\t\t\t\t\t\t.convertVehicle(vehicleList.get(i));\n\n\t\t\t\t\t\t// Get photo from the parse\n\t\t\t\t\t\tParseFile photo = (ParseFile) vehicleList.get(i).get(\n\t\t\t\t\t\t\t\t\"vehiclePhoto\");\n\t\t\t\t\t\tbyte[] data = null;\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (photo != null)\n\t\t\t\t\t\t\t\tdata = photo.getData();\n\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (data == null) {\n\t\t\t\t\t\t\tvehicle.setPhotoSrc(null);\n\t\t\t\t\t\t\tvehicle.setPhoto(false);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvehicle.setPhotoSrc(data);\n\t\t\t\t\t\t\tvehicle.setPhoto(true);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvehicles.add(vehicle);\n\t\t\t\t\t\tvehicleObjects.add(vehicleList.get(i));\n\t\t\t\t\t}\n\n\t\t\t\t\t// Set adapter\n\t\t\t\t\tadapter = new VehicleListAdapter(VehiclesListActivity.this,\n\t\t\t\t\t\t\tvehicles, vehiclePicker, addJournyActivity);\n\t\t\t\t\tlist.setAdapter(adapter);\n\t\t\t\t} else {\n\t\t\t\t\tLog.e(\"Get Vehicle\", e.getMessage());\n\t\t\t\t}\n\n\t\t\t\t// Disable loading bar\n\t\t\t\tloading.setVisibility(View.GONE);\n\t\t\t}\n\t\t});\n\t}", "void vehicleDetails();", "@GetMapping(\"/getVehicleInformation\")\n public Iterable<Vehicle> getAllVehicle() {\n\n return vehicleService.list();\n }", "public List<ErpBookInfo> selData();", "List<Ticket> getListTicketByDriverIDAndStatus(String driverID, String status);", "@Test\n\tpublic void testRetrieveMultipleAddressesForDriver() throws MalBusinessException{\n\t\t// driver with more than one address\n\t\tLong drv_id = 168535L;\n\t\tList<DriverAddress> da = driverService.getDriver(drv_id).getDriverAddressList();\n\t\tassertTrue(da.size() > 1);\n\t\t\n\t}", "@Override\n\tpublic List<AfterBrandGclass> findAfterBrandList() {\n\t\tString sql=\" select brand_id brandId,brand_name_s brandName from tb_brand where is_display=0\";\n\t\treturn this.queryList(sql, new Object[]{}, new BeanPropertyRowMapper(AfterBrandGclass.class));\n\t}", "java.util.List<online_info>\n getInfoList();", "public Vector listSpecification1() throws SQLException {\n Debug.print(\"Inside the listSpecification1 : \");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT specification_id,activity_type_id,specification_name FROM \"+ DBHelper.USEA_SPECIFICATION_MASTER;\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n // prepStmt.setString(1, activityId);\n rs = prepStmt.executeQuery();\n System.out.println(\"after execute Query listSpecification1 \");\n while (rs.next()) {\n this.specificationId = rs.getString(1);\n this.activityTypeId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String [] speciList = {specificationId,specificationName};\n vObj.add(speciList);\n }\n \n }catch (SQLException e){\n releaseConnection();\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }", "@Override\n\tpublic Collection<VendedorWebVO> getListVendedor(GetVendedorParams params) {\n\t\ttry {\n\t\t\tVendedorModuleRemote service = getVendedorModuleService();\n\t\t\tCollection<VendedorDTO> listVendedores = service.getListVendedor(params);\n\t\t\tCollection<VendedorWebVO> vendedores = new ArrayList<VendedorWebVO>();\n\t\t\tfor (VendedorDTO vendedor : listVendedores) {\n\t\t\t\tVendedorWebVO vend = MarketPlaceAdapterService.vendedorDTO2VendedorWebVO(vendedor);\n\t\t\t\tvendedores.add(vend);\n\t\t\t}\n\n\t\t\treturn vendedores;\n\t\t} catch (Exception e) {\n\t\t\t//throw AcademiaExceptionHandler.handleException(AcademiaErrorLayerConstants.WEB_SERVER, null, null, e);\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public List<VehicleModel> getVehicleModels(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,2,3);\n List<VehicleModel> vehicleModels = new ArrayList<>();\n try {\n List<Map<String, Object>> data = get(\"SELECT * FROM TblVehicleModel\");\n for(Map<String,Object> map: data)\n vehicleModels.add(new VehicleModel(map));\n return vehicleModels;\n } catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }", "public List<DocumentoVinculadoDTO> getListaNoEspecifico() {\n System.out.println(\"entrei getListaNoEspecifico \");\n listar1Produto();\n return listaNoEspecifico;\n }", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "public void viewVehiclesInGarage() {\n\t\tfor (Vehicle vehicle : vehicleList) {\n\t\t\tvehicle.print();\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "public ArrayList<CarDetail> gettingAllAvailableCars() throws Exception;", "public Vector listActivityTypeRegister() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Registration\");\n prepStmt.setBoolean(2 , true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) { \n this.specificationId = rs.getString(1);\n this.specificationName = rs.getString(2);\n String txnTypeId = rs.getString(3);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n Debug.print(\" Specification Id : \"+specificationId);\n Debug.print(\" specificationName : \"+specificationName);\n Debug.print(\" txnTypeId : \"+txnTypeId);\n \n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }", "public Vector listSpecification(String activityId) throws SQLException {\n Debug.print(\"Inside the listSpecification activityId : \"+activityId);\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT specification_id,activity_type_id,specification_name FROM \"+ DBHelper.USEA_SPECIFICATION_MASTER+\n \" WHERE activity_type_id = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, activityId);\n rs = prepStmt.executeQuery();\n System.out.println(\"after execute Query activityId \"+activityId);\n while (rs.next()) {\n this.specificationId = rs.getString(1);\n this.activityTypeId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String [] speciList = {specificationId,specificationName};\n vObj.add(speciList);\n }\n \n }catch (SQLException e){\n releaseConnection();\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }", "public static ArrayList<CustomerInfoBean> getCutomers_onWait() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" WHERE e.status=0;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "public List<Consultor> getConsultores()\n\t{\n\t\tList<Consultor> nombres = new ArrayList<Consultor>();\n\t\tLinkedList<Consultor> tb = Consultor.findAll();\n\t\tfor(Consultor c : tb)\n\t\t{\n\t\t\tnombres.add(c);\n\t\t}\n\t\treturn nombres;\t\n\t}", "public ArrayList<String> deadPersonsFalseGuess(Guess currGuess) {\n ArrayList<String> deadPerson = new ArrayList<String>();\n\n for (Person person : config.personList) {\n for (HashMap.Entry<String, String> entry : person.getPersonAttValSet().entrySet()) {\n if (entry.getKey().equals(currGuess.getAttribute()) && entry.getValue().equals(currGuess.getValue())) {\n deadPerson.add(person.getName());\n }\n }\n }\n\n return deadPerson;\n\n }", "@Test(priority = 5, description = \"To get Vendors List\")\n\tpublic void GetVendorList() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\tdata.getvendorList();\n\t\taddEvidence(CurrentState.getDriver(), \"To get Vendor List\", \"yes\");\n\t}", "private void getParticipantes() {\n mParticipantes = estudioAdapter.getParticipantes(MainDBConstants.estado + \"= '\" + Constants.STATUS_NOT_SUBMITTED+ \"'\", null);\n //ca.close();\n }", "@Override\r\n\tpublic List<INonAutomatedVehicle> getVehiclesOfType(String vehicle) {\r\n\t\tList<INonAutomatedVehicle> vehicles = this.vehicleDatabase.get(vehicle);\r\n\t\treturn vehicles;\r\n\t}", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "private void listDevices(Context context) {\n\t DeviceList list = new DeviceList();\n\t int result = LibUsb.getDeviceList(context, list);\n\t if(result < 0) throw new LibUsbException(\"Unable to get device list\", result);\n\n\t try\n\t {\n\t for(Device device: list)\n\t {\n\t DeviceDescriptor descriptor = new DeviceDescriptor();\n\t result = LibUsb.getDeviceDescriptor(device, descriptor);\n\t if (result != LibUsb.SUCCESS) throw new LibUsbException(\"Unable to read device descriptor\", result);\n\t System.out.println(\"vendorId=\" + descriptor.idVendor() + \", productId=\" + descriptor.idProduct());\n\t }\n\t }\n\t finally\n\t {\n\t // Ensure the allocated device list is freed\n\t LibUsb.freeDeviceList(list, true);\n\t }\n\t}", "@Test\n\tpublic void searchForDriversByClientNo_FuncTest(){ \n\t\tList<DriverSearchVO> drivers = driverService.searchDriver(null, null, null, customerAccount, null, null, null, null, false, null, null, null);\t\n\t\tlong driversCnt = driverService.searchDriverCount(null, null, null, customerAccount, null, null, null, null, false, null);\n\t\t\n\t\t// we get back results of the same length as the list returned\n\t\tassertEquals(drivers.size(), driversCnt);\n\t\t\n\t\t// the list is greater than 0\n\t\tassertTrue(driversCnt > 0);\t\t\t\n\t}", "java.util.List<WorldUps.UTruck> \n getTruckstatusList();", "List<ExamPackage> getListPresent();", "public List<String> query1(){\n List<String> list = this.stats.bus_non_available(this.mR.clone(), this.mB.clone());\n return list;\n }", "public List getHistoricoCapacitadasDetalle(HistoricoCapacitadasDetalle historicoCapacitadasDetalle);", "public ArrayList<ArrayList<String>> listeDemande() throws RemoteException {\r\n\t\t\t\r\n\t\t\tArrayList<ArrayList<String>> list = new ArrayList<ArrayList<String>>();\r\n\t\t\t\r\n\t\t String requete = \"select e_nom, e_prenom, t_nom from demande, etudiant, typeprojet, groupe \" +\r\n\t\t \t\t\t\t \"where d_idgroupe in (select g_id from groupe where g_idprop = \" + _etudiant.getId() \r\n\t\t \t\t\t\t + \") AND d_idetudiant = e_id AND d_idgroupe = g_id AND g_idtype = t_id\";\r\n\t\t System.out.println(\"requete : listeDemande()\" + requete);\r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t \t\t \r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \tArrayList<String> tmp = new ArrayList<String>();\r\n\t\t \t\r\n\t\t \ttmp.add(data.getColumnValue(\"e_nom\"));\r\n\t\t \ttmp.add(data.getColumnValue(\"e_prenom\"));\r\n\t\t \ttmp.add(data.getColumnValue(\"t_nom\"));\r\n\t\t \tlist.add(tmp);\r\n\t\t }\r\n\t\t for (int i = 0 ; i < list.size() ; ++i)\r\n\t\t {\r\n\t\t \tSystem.out.println(list.get(i).get(0));\r\n\t\t }\r\n\t\t \r\n\t\t return list;\r\n\t\t}", "public List<ProductDetails> retrieveOfferNamesAndIds() throws MISPException\n\t{\n\t\tlogger.entering(\"retrieveOfferNamesAndIds\");\n\t\t\n\t\tList<ProductDetails> products = null;\n\t\t\n\t\ttry{\t\t\n\t\t\tproducts = offerDetailsMgr.retrieveOfferNamesAndIds();\n\t\t}\n\t\tcatch (DBException exception){\t\t\t\n\t\t\tlogger.error\n\t\t\t\t\t(\"An exception occured while retrieving offers.\",exception);\n\t\t\tthrow new MISPException(exception);\n\t\t}\n\t\t\n\t\tlogger.exiting(\"retrieveOfferNamesAndIds\");\n\t\treturn products;\t\t\n\t}", "public VehicleSearchRS getVehicles() {\r\n\t\tVehicleSearchRS response = null;\r\n\t\t//VehicleSearchService vehiclesearch = new VehicleSearchService();\r\n\t\t\r\n\t\t///Suppliers are useful when we donít need to supply any value and obtain a result at the same time.\r\n\t\tSupplier<VehicleSearchService> vehiclesearch = VehicleSearchService::new;\r\n\t\ttry {\r\n\t\t\tresponse = vehiclesearch.get().getVehicles(searchRQ);\r\n\t\t\t//System.out.println(response);\r\n\t\t} catch (VehicleValidationException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\treturn response;\r\n\t}", "public String [] getDriveNames()\n throws CdbException , InterruptedException {\n return _pvr.getDriveNames() ;\n }", "@Override\n\tpublic List<Vehicle> getAll() {\n\t\tList<Vehicle> list = new LinkedList<Vehicle>();\n\t\ttry {\n\t\t\tStatement st = Database.getInstance().getDBConn().createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT v.vehicle_ID, v.plate_number, v.mv_number, v.engine_number, v.chassis_number, m.description as model_name, c.description as category, v.encumbered_to, v.amount, v.maturity_date, v.status, v.image FROM models m INNER JOIN vehicles v ON m.model_ID=v.model_ID INNER JOIN vehicle_categories c ON c.category_ID=v.category_ID\");\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tBlob blob = rs.getBlob(\"image\");\n\t\t\t\tInputStream is = blob.getBinaryStream(1, (int)blob.length());\n\t\t\t\tBufferedImage bf = ImageIO.read(is);\n\t\t\t\tImage img = SwingFXUtils.toFXImage(bf, null);\n\t\t\t\t\n\t\t\t\tlist.add(new Vehicle(rs.getInt(\"vehicle_ID\"), rs.getString(\"plate_number\"), rs.getString(\"mv_number\"), rs.getString(\"engine_number\"), rs.getString(\"chassis_number\"),rs.getString(\"model_name\"), rs.getString(\"category\"), rs.getString(\"encumbered_to\"), rs.getDouble(\"amount\"), Date.parse(rs.getString(\"maturity_date\")), rs.getString(\"status\"), img));\n\t\t\t}\n\t\t\t\n\t\t\tst.close();\n\t\t\trs.close();\n\t\t} catch(Exception err) {\n\t\t\terr.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "public void populateVitals() {\n try {\n Statement stmt = con.createStatement();\n\n ResultSet rs = stmt.executeQuery(\"select * from device\");\n while (rs.next()) {\n\n String guid = rs.getString(\"DeviceGUID\");\n int deviceId = rs.getInt(\"DeviceID\");\n int deviceTypeId = rs.getInt(\"DeviceTypeID\");\n int locationId = rs.getInt(\"LocationID\");\n float deviceProblem = rs.getFloat(\"ProblemPercentage\");\n\n String dateService = rs.getString(\"DateOfInitialService\");\n\n Device device = new Device();\n device.setDateOfInitialService(dateService);\n device.setDeviceGUID(guid);\n device.setDeviceID(deviceId);\n device.setDeviceTypeID(deviceTypeId);\n device.setLocationID(locationId);\n device.setProblemPercentage(deviceProblem);\n\n deviceList.add(device);\n\n }\n } catch (SQLException e) {\n log.error(\"Error populating devices\", e);\n }\n\n }", "@Test\n\tpublic void driverListReport() {\n\t\tfinal Object testingData[][] = {\n\t\t\t{\n\t\t\t\t\"manager1\", \"manager1\", 1, null\n\t\t\t},//1. All fine\n\t\t\t{\n\t\t\t\t\"manager1\", \"manager1\", 777, IllegalArgumentException.class\n\t\t\t},//2. Not expected number\n\t\t\t{\n\t\t\t\t\"manager1\", \"president1\", 1, IllegalArgumentException.class\n\t\t\t},//3. Invalid authority\n\n\t\t};\n\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.templateListReport((String) testingData[i][0], (String) testingData[i][1], (Integer) testingData[i][2], (Class<?>) testingData[i][3]);\n\t}", "public List<Viaje> getDriverTravelsinPeriod(String driverNif, Date initDate, Date endDate) {\n EntityManager em = getEntityManager();\n return em.createNamedQuery(\"Viaje.getDriverTravelsByDate\")\n .setParameter(\"driverNif\", driverNif)\n .setParameter(\"initDate\", initDate)\n .setParameter(\"endDate\", endDate).getResultList();\n }", "List<SeatBean> select(int rno) throws Exception;", "public List<EntradaDeMaterial> buscarEntradasDisponibles();", "public Vector<Cars> getCars() {\n\t\tVector<Cars> v = new Vector<Cars>();\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tResultSet rs = stmt\n\t\t\t\t\t.executeQuery(\"select * from vehicle_details order by vehicle_reg\");\n\t\t\twhile (rs.next()) {\n\t\t\t\tString reg = rs.getString(1);\n\t\t\t\tString make = rs.getString(2);\n\t\t\t\tString model = rs.getString(3);\n\t\t\t\tString drive = rs.getString(4);\n\t\t\t\tCars cars = new Cars(reg, make, model, drive);\n\t\t\t\tv.add(cars);\n\t\t\t}\n\t\t}\n\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn v;\n\t}", "@Override\r\n public void printAllVehicles(Integer age) {\r\n if(!drivers.containsKey(age)) {\r\n System.out.println(\"No vehicle found parked by the driver of age \" + age.toString() + \".\");\r\n return;\r\n }\r\n Driver driver = drivers.get(age);\r\n Iterator<Vehicle> it = driver.getVehiclesOwned().iterator();\r\n System.out.print(\"Vehicle Registeration Numbers of all cars parked by driver of age \" + age.toString() + \" are as follows: \");\r\n while(it.hasNext()){\r\n System.out.print(it.next().getVehicleNumber() + \" | \");\r\n }\r\n System.out.println();\r\n }", "public NSMutableArray<I_WorkFlowItem> getTachesObligatoiresAbsentes() {\n\t\tNSMutableArray<I_WorkFlowItem> tachesObligatoiresAbsentes = new NSMutableArray<I_WorkFlowItem>();\n\n\t\tfor (int i = 0; i < tachesObligatoires().count(); i++) {\n\t\t\tI_WorkFlowItem tache = tachesObligatoires().objectAtIndex(i);\n\t\t\tif (!tachesFaites.containsObject(tache)) {\n\t\t\t\ttachesObligatoiresAbsentes.addObject(tache);\n\t\t\t}\n\t\t}\n\n\t\treturn tachesObligatoiresAbsentes;\n\t}", "public List<Driver> findDriverByType(String driverType);", "@Test\n\tpublic void searchForActiveInActiveDrivers_FuncTest() throws MalBusinessException { \n\t\n\t\t\t//add a driver with active ind fald as Y and perform search\n\t\t\tsetUpDriverForAdd();\n\t\t\tdriver = driverService.saveOrUpdateDriver(externalAccount, driverGrade, driver, generateAddresses(driver, 1), generatePhoneNumbers(driver, 1), userName, null);\n\t\t\tList<DriverSearchVO> drivers = driverService.searchDriver(null, driver.getDrvId(), null, null, null, null, null, null, false, MalConstants.FLAG_Y, null, null);\t\n\t\t\tlong driversCnt = driverService.searchDriverCount(null, driver.getDrvId(), null, null, null, null, null, null, false, MalConstants.FLAG_Y);\n\t\t\t\n\t\t\tassertTrue(\"Driver has not active indicator flag as Y\", driver.getActiveInd().equals(MalConstants.FLAG_Y));\n\t\t\tassertTrue(\"Driver search didn't pulled driver with active indicator flag as Y\",driversCnt == 1);\t\n\t\t\tassertTrue(\"Driver search didn't pulled driver with active indicator flag as Y\",drivers.size() == 1);\t\n\t\t\t\n\t\t\t//add a driver with active ind fald as N and perform search\n\t\t\tsetUpDriverForAdd();\n\t\t\tdriver.setActiveInd(MalConstants.FLAG_N);\t\n\t\t\tdriver = driverService.saveOrUpdateDriver(externalAccount, driverGrade, driver, generateAddresses(driver, 1), generatePhoneNumbers(driver, 1), userName, null);\n\t\t\tdrivers = driverService.searchDriver(null, driver.getDrvId(), null, null, null, null, null, null, false, MalConstants.FLAG_N, null, null);\t\n\t\t\tdriversCnt = driverService.searchDriverCount(null, driver.getDrvId(), null, null, null, null, null, null, false, MalConstants.FLAG_N);\n\t\t\t\n\t\t\tassertTrue(\"Driver has not active indicator flag as N\", driver.getActiveInd().equals(MalConstants.FLAG_N));\n\t\t\tassertTrue(\"Driver search didn't pulled driver with active indicator flag as N\",driversCnt == 1);\t\n\t\t\tassertTrue(\"Driver search didn't pulled driver with active indicator flag as N\",drivers.size() == 1);\n\t\t\t\n\t\t\t// Driver search should fetch active inactive both if we will passed active ind flag as null\n\t\t\tdrivers = driverService.searchDriver(null, driver.getDrvId(), null, null, null, null, null, null, false, null, null, null);\t\n\t\t\tdriversCnt = driverService.searchDriverCount(null, driver.getDrvId(), null, null, null, null, null, null, false, null);\n\t\t\tassertTrue(\"Driver search didn't pulled driver with active indicator flag as null\",driversCnt == 1);\t\n\t\t\tassertTrue(\"Driver search didn't pulled driver with active indicator flag as null\",drivers.size() == 1);\n\t\t\t\n\t\t\t\n\t}", "public static void returnVehicle(Employee[] employeeList, Employee employee) {\n\t\t\n\t}", "public List<UniteeDto> listerUniteeDivers() {\n\n\t\t// INITIALISATIONS\n\t\tList<UniteeDto> listeUniteeDivers = new ArrayList<>();\n\n\t\t// RECHERCHE DES UNITES (Type 1)\n\t\tfor (Unitee unitee : uniteeRepo.findByIdTypeUnitee(1)) {\n\t\t\tUniteeDto uniteeDto = new UniteeDto();\n\t\t\tuniteeDto.setId(unitee.getId());\n\t\t\tuniteeDto.setIdTypeUnitee(unitee.getIdTypeUnitee());\n\t\t\tuniteeDto.setIdBatimentProvenance(unitee.getIdBatimentProvenance());\n\t\t\tuniteeDto.setIcone(unitee.getIcone());\n\t\t\tuniteeDto.setLibelle(unitee.getLibelle());\n\t\t\tuniteeDto.setDescriptif(unitee.getDescriptif());\n\t\t\tuniteeDto.setCoutPierreFormation(unitee.getCoutPierreFormation());\n\t\t\tuniteeDto.setCoutBoisFormation(unitee.getCoutBoisFormation());\n\t\t\tuniteeDto.setCoutOrFormation(unitee.getCoutOrFormation());\n\t\t\tuniteeDto.setCoutNourritureFormation(unitee.getCoutNourritureFormation());\n\t\t\tuniteeDto.setCoutHumain(unitee.getCoutHumain());\n\t\t\tuniteeDto.setTempsFormation(unitee.getTempsFormation());\n\t\t\tuniteeDto.setVie(unitee.getVie());\n\t\t\tuniteeDto.setAttaque(unitee.getAttaque());\n\t\t\tuniteeDto.setPortee(unitee.getPortee());\n\t\t\tuniteeDto.setArmure(unitee.getArmure());\n\t\t\tuniteeDto.setVitesse(unitee.getVitesse());\n\t\t\tuniteeDto.setNiveauBatimentNecessaireFormation(unitee.getNiveauBatimentNecessaireFormation());\n\t\t\tuniteeDto.setApportRessourcePierreHeure(unitee.getApportRessourcePierreHeure());\n\t\t\tuniteeDto.setApportRessourceBoisHeure(unitee.getApportRessourceBoisHeure());\n\t\t\tuniteeDto.setApportRessourceOrHeure(unitee.getApportRessourceOrHeure());\n\t\t\tuniteeDto.setApportRessourceNourritureHeure(unitee.getApportRessourceNourritureHeure());\n\t\t\tuniteeDto.setApportExperience(unitee.getApportExperience());\n\n\t\t\t// AJOUT AU TABLEAU\n\t\t\tlisteUniteeDivers.add(uniteeDto);\n\t\t}\n\n\t\t// RETOUR\n\t\treturn listeUniteeDivers;\n\t}", "@Override\n\tpublic LovServiceResponse getLovDetails() {\n\t\tLovServiceResponse l_res = new LovServiceResponse();\n\t\tList<LovDetail> l_lovList=null;\n\t\tList<LovVO> l_lovVoList=new ArrayList<LovVO>();\n\t\tLovVO l_lovVo = null;\n\t\ttry {\n\t\t\tl_lovList = lovDao.getLovDetails();\n\t\t\tfor(LovDetail l_etity : l_lovList ){\n\t\t\t\tl_lovVo = new LovVO(l_etity);\n\t\t\t\tBeanUtils.copyProperties(l_etity, l_lovVo);\n\t\t\t\tl_lovVoList.add(l_lovVo);\t\t\t\t\n\t\t\t}\n\t\t\tl_res.setLovList(l_lovVoList);\n\t\t\tl_res.setStatus(true);\n\t\t\t\n\t\t}catch(DataAccessException e){\t\t\t\n\t\t\tthrow new ServiceException(\"DataAccessException while fetch lov data\",e);\n\t\t}\n\t\tcatch (Exception e) {\t\t\t\n\t\t\tthrow new ServiceException(\"Unhandled Exception while fetch lov data\",e);\n\t\t}\n\t\treturn l_res;\t\t\n\t}", "java.util.List<WorldUps.UInitTruck> \n getTrucksList();", "public List<Departmentdetails> getDepartmentDetails();", "public VehicleList() {\n\t\tvehicles = new ArrayList<Vehicle>();\n\t}", "@Override\n\tpublic ArrayList<DriverVO> getDriveVOList(String institutionName) throws RemoteException{\n\t\tArrayList<DriverVO> driverVOList=new ArrayList<DriverVO>();\n\t\tArrayList<DriverPO> driverPOList=new ArrayList<DriverPO>();\n\t\n\t\t\tdriverPOList=driverDataService.findDriver(institutionName);\n\t\n\t\tfor(DriverPO po:driverPOList){\n\t\t\tdriverVOList.add(new DriverVO(po.getDriverID(),po.getName(),po.getSex(),po.getBirthday(),po.getIdentity(),po.getTel(),po.getInstitution(),po.getBeginLimit(),po.getEndLimit()));\n\t\t}\n\t\t\n\t\treturn driverVOList;\n\t}", "public List<Vehicle> getAllVehicle() {\n // array of columns to fetch\n String[] columns = {\n COLUMN_VEHICLE_ID,\n COLUMN_VEHICLE_NAME,\n COLUMN_VEHICLE_NUMBER,\n COLUMN_VEHICLE_CC,\n COLUMN_VEHICLE_YEAR,\n COLUMN_VEHICLE_TYPE,\n COLUMN_VEHICLE_FUEL,\n COLUMN_VEHICLE_CATEGORY,\n COLUMN_VEHICLE_DATE\n };\n // sorting orders\n String sortOrder =\n COLUMN_VEHICLE_NAME + \" ASC\";\n List<Vehicle> vehicleList = new ArrayList<Vehicle>();\n\n SQLiteDatabase db = this.getReadableDatabase();\n\n // query the vehicle table\n /**\n * Here query function is used to fetch records from vehicle table this function works like we use sql query.\n */\n Cursor cursor = db.query(TABLE_VEHICLE, //Table to query\n columns, //columns to return\n null, //columns for the WHERE clause\n null, //The values for the WHERE clause\n null, //group the rows\n null, //filter by row groups\n sortOrder); //The sort order\n\n\n // Traversing through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Vehicle vehicle = new Vehicle();\n vehicle.setId(Integer.parseInt(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_ID))));\n vehicle.setName(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_NAME)));\n vehicle.setNumber(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_NUMBER)));\n vehicle.setCc(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_CC)));\n vehicle.setYear(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_YEAR)));\n vehicle.setType(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_TYPE)));\n vehicle.setFuel(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_FUEL)));\n vehicle.setCategory(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_CATEGORY)));\n vehicle.setDate(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_DATE)));\n // Adding vehicle record to list\n vehicleList.add(vehicle);\n } while (cursor.moveToNext());\n }\n cursor.close();\n db.close();\n\n // return vehicle list\n return vehicleList;\n }", "@Test\n\tpublic void searchForUnallocatedDriversByName_FuncTest(){ \n\t\tList<DriverSearchVO> drivers = driverService.searchDriver(unallocatedDriver, null, null, null, null, null, null, null, false, null, null, null);\t\n\t\tlong driversCnt = driverService.searchDriverCount(unallocatedDriver, null, null, null, null, null, null, null, false, null);\n\t\t\n\t\t// we get back results of the same length as the list returned\n\t\tassertEquals(drivers.size(), driversCnt);\n\t\t\n\t\t// the list is greater than 0\n\t\tassertTrue(driversCnt > 0);\t\t\t\n\t}", "public List getInwDepartCompetences(InwDepartCompetence inwDepartCompetence);", "public List<Agent> findAgentsInService(String serviceCode) {\n Query q = getEntityManager().createQuery(\"select A from Agent A WHERE A.etat NOT IN('RET','DEM') AND A.lastService=?1 ORDER BY A.personne.name\");\n q.setParameter(1, serviceCode);\n List<Agent> list = q.getResultList();\n return list;\n }", "java.lang.String getRaceList();", "public ArrayList<String> deadPersonsTrueGuess(Guess currGuess) {\n ArrayList<String> deadPerson = new ArrayList<String>();\n for (Person person : config.personList) {\n for (HashMap.Entry<String, String> entry : person.getPersonAttValSet().entrySet()) {\n if (entry.getKey().equals(currGuess.getAttribute()) && !entry.getValue().equals(currGuess.getValue())) {\n deadPerson.add(person.getName());\n }\n }\n }\n\n return deadPerson;\n }", "public Vector<HotelInfo> getAllHotels(){\n Session session=null;\n List result=null;\n Vector<HotelInfo> hotelInfos = null;\n try\n {\n session= HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n result=session.createQuery(\"from Hotel\").list();\n System.out.println(\"Successfully return hotels from database\");\n session.getTransaction().commit();\n hotelInfos= new Vector<HotelInfo>();\n for (int i = 0; i < result.size(); i++)\n {\n HotelInfo myHotel=new HotelInfo();\n myHotel.setHotelId(((Hotel)result.get(i)).getHotelId());\n myHotel.setName(((Hotel)result.get(i)).getName());\n myHotel.setUsername((((Hotel)result.get(i)).getUsername()));\n myHotel.setPassword((((Hotel)result.get(i)).getPassword()));\n myHotel.setIpaddress((((Hotel)result.get(i)).getIpaddress()));\n myHotel.setPort((((Hotel)result.get(i)).getPort()));\n myHotel.setContextpath((((Hotel)result.get(i)).getContextPath()));\n hotelInfos.add(myHotel);\n }\n }\n catch(Exception e)\n {\n System.out.println(e.getMessage());\n }\n return hotelInfos;\n }", "public static ArrayList<CustomerInfoBean> getCutomers_notinterested() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status, cs.customer_family_size FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN do_salesman ds ON s.salesman_id=ds.salesman_id join city c on cs.customer_city=c.city_id WHERE cs.status=3 GROUP BY cs.customer_id\\n\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "public List<Vendedor> listarVendedor();", "List<PartDetail> getDetails();", "@Override\n\tpublic List<CarEquipment> getEquipmentLists(Map map) {\n\t\treturn cardoneinfoDao.getEquipmentLists(map);\n\t}", "@Override\n public ArrayList<VendorInfoDetails> getVendorInformation(String orinNo)\n throws PEPPersistencyException{\n LOGGER.info(\"in getVendorInfoDetails()\"); \n List<VendorInfoDetails> vendorDetailsList = new ArrayList<VendorInfoDetails>();\n Session session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getVendorInformation());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(10);\n List<Object[]> rows = query.list();\n try{\n for(Object[] row : rows){\n \n VendorInfoDetails viDetails = new VendorInfoDetails();\n //Null check\n if(row[2] != null){\n viDetails.setCarrierAcct(row[0]!=null?row[2].toString():null); \n }else{\n \n viDetails.setCarrierAcct(\"\"); \n }if(row[3]!= null){ \n viDetails.setVendorsampleAddress(row[3]!=null?row[3].toString():null);\n }else{\n \n viDetails.setVendorsampleAddress(\"\");\n }\n \n viDetails.setVendorsampleIndicator(row[0]!=null?row[1].toString():null);\n \n vendorDetailsList.add(viDetails);\n \n } \n }catch(Exception e){\n \te.printStackTrace();\n }\n \n tx.commit();\n session.close(); \n \n LOGGER.info(\"Exiting getVendorInfoDetails\");\n return (ArrayList<VendorInfoDetails>) vendorDetailsList;\n }", "private static String[] getExcludeServices() {\n\t\tString[] excludeServicesList = null;\n\t\ttry {\n\t\t\texcludeServicesList = ATUIUtils.getDefault().getString(ATUI_EXCLUDE_SERVICES_LIST).trim().split(COMMA);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn excludeServicesList;\n\t}", "public List<BusInfo> extractData(ResultSet rs) throws SQLException, DataAccessException {\n\t\t\t\treturn list;\r\n\t\t\t}", "public List<BusInfo> extractData(ResultSet rs) throws SQLException, DataAccessException {\n\t\t\t\treturn list;\r\n\t\t\t}", "@GetMapping(\n value = \"/driver-vehicle-history\",\n produces = \"application/json\")\n List<Vehicle> getDriversVehicleHistory(@RequestParam(value = \"driverId\", required = true) int driverId);", "public Properties getAttributeLists()throws Exception \r\n\t{\r\n\t\t/****************\r\n\t\t// by LDAP\r\n\t\tClass.forName(\"com.octetstring.jdbcLdap.sql.JdbcLdapDriver\");\r\n\t\t\t\r\n\t\tString ldapConnectString =\"jdbc:ldap://kalsse.knoc.co.kr:59812/ou=eamConfig,dc=kang,dc=com?SEARCH_SCOPE:=oneLevelScope\";\r\n\t\t\r\n\t\tjava.sql.Connection con;\r\n\t\tcon = DriverManager.getConnection(ldapConnectString, \"cn=Directory Manager\", \"22222222\");\r\n\t\t\r\n\t\tProperties prop = null;\r\n\t\t\r\n\t \tStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\t\r\n\t\tString eamAttributeTypeId = null;\r\n\t\tString eamDescription = null;\t\t\t\t\r\n\t\t\r\n\t\t// Query List\r\n\t\t//String SQL = \"SELECT * FROM ou=users WHERE (uid=t*) AND (birthday=19*)\";\t\r\n\t\tString SQL = \"SELECT * FROM ou=attribute WHERE (&(objectclass=eamAttributeType)(eamAttributeTypeId=*))\";\t\t\t\r\n\t\t*************/\r\n\t\t\r\n\t\tProperties prop = null;\r\n\t\tString eamAttributeId = null;\r\n\t\tString eamDescription = null;\r\n\t\t\r\n\t\tDriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());\r\n\t\tConnection conn = DriverManager.getConnection(sDB_URL, sDB_ID, sDB_PW);\r\n\t\tStatement stmt = conn.createStatement();\r\n\t\tResultSet rs = null;\r\n\t\t\r\n\t\tString sql = \"select attributeid,description from attrtype where attributeid != '000000000000000000'\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tstmt = conn.createStatement();\r\n\t\t\trs = stmt.executeQuery(sql);\r\n\t\t\t\r\n\t\t\tprop = new Properties();\r\n\t\t\twhile(rs.next()) {\t\t\r\n\t\t\t\teamAttributeId = rs.getString(\"AttributeId\");\r\n\t\t\t\teamDescription = rs.getString(\"Description\");\r\n\t\t\t\tprop.setProperty(eamDescription, eamDescription);\t\r\n\t\t\t}\r\n\t\t} catch (SQLException se) {\t\t\t\r\n\t\t\t//System.out.println(\"SQLException:\"+se.getMessage());\r\n\t\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t//System.out.println(\"Exception::\"+e.getMessage());\r\n\t\t\t\t\t\t\r\n\t\t} finally {\r\n\t\t\tif (rs!=null)\trs.close();\r\n\t\t\tif (stmt!=null) stmt.close();\r\n\t\t\tif (conn!=null)\tconn.close();\r\n\t\t}\t\t\t\t\t\r\n\t\treturn prop;\r\n\t}", "private void findAllReceivers()\n {\n //IF actually there is something where we can search\n if(getDataStore().containsKey(MUSICIAN_LIST))\n {\n //We take the list from the data store\n musicians = (Vector) getDataStore().get(MUSICIAN_LIST);\n\n //exclude myself from the list\n for (int i = 0; i<musicians.size(); i++)\n {\n if(!musicians.get(i).equals(myAgent.getAID()))\n {\n receivers.add(musicians.get(i));\n }\n }\n }\n nResponders = receivers.size();\n\n }", "private List getWaitingDoctors() {\n\t\tVector v = new Vector();\n\t\tfor (int i = 0; i < _doctors.length; ++i) {\n\t\t\tif (_doctors[i].isWaiting()) {\n\t\t\t\tv.add(_doctors[i]);\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(v);\n\t\treturn v;\n\t}", "private void listarDepartamentos() {\r\n\t\tdepartamentos = departamentoEJB.listarDepartamentos();\r\n\t}", "public void populateVehicleList() {\n\t\tfor (int i = 0; i < VEHICLE_LIST_SIZE; i++) {\n\t\t\tvehicleList[i] = createNewVehicle();\n\t\t}\n\t}", "public List<ReportModel> getChildDetailsForIUS(String childs,String indicator);", "public List<Doctor> getDoctorbyGPS_Spec() {\n\t\treturn null;\n\t}", "public List<XeBusDTO> getAllBusDESC() {\n String sql = \"select * from xe_bus order by BKS DESC;\";\n return jdbcTemplate.query(sql, new XeBusDTOMapper());\n }", "public Vector listICPUserRegBasedOnStatus(String status) throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.icp_meeting_id,A.user_id,B.first_name, B.last_name, A.membership_status,A.member_id,A.add_date,A.active_status,A.request_status,A.release_id FROM \"+\n DBHelper.USEA_ICP_USER_DETAIL+\" A, \"+DBHelper.USEA_MMS_USERMASTER+\" B WHERE A.user_id = B.user_id AND A.request_status = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, status);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listICPUserReg status : \"+userId);\n while (rs.next()) {\n this.icpMeetingId = rs.getString(1);\n this.userId = rs.getString(2);\n this.firstName = rs.getString(3);\n this.lastName = rs.getString(4);\n this.membershipStatus = rs.getString(5);\n this.memberId = rs.getString(6);\n Date addDate1 = rs.getDate(7);\n this.activeStatus = rs.getString(8);\n this.requestStatus = rs.getString(9);\n this.releaseId = rs.getString(10);\n \n this.addDate = DBHelper.dateToString(addDate1);\n \n String [] userList = {icpMeetingId,userId,firstName,lastName,membershipStatus,memberId,addDate,activeStatus,requestStatus,releaseId};\n vObj.add(userList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }", "@Override\n public List<Vehicle> getVehiclesByMake(String make){\n List<VehicleDetails> results = repo.findByMake(make);\n return mapper.mapAsList(results, Vehicle.class);\n }", "@Override\r\n\tpublic List<Driver> viewBestDrivers() {\r\n\t\tList<Driver> drivers = driverRepository.viewBestDrivers();\r\n\t\tif (drivers.size() == 0) {\r\n\t\t\tthrow new DriverNotFoundException(\"No Driver with best rating at the moment\");\r\n\t\t}\r\n\t\treturn drivers;\r\n\t}", "@Override\r\n\tpublic List<AgentDBInfoVO> selectDBInfoList(){\n\t\treturn sqlSession.getMapper(CollectMapper.class).selectDBInfoList();\r\n\t}" ]
[ "0.6516395", "0.5901346", "0.58488804", "0.58405894", "0.5772162", "0.5706577", "0.5627844", "0.5511246", "0.54606885", "0.54521173", "0.54473066", "0.53999466", "0.5330759", "0.5329338", "0.5328467", "0.5292393", "0.5284821", "0.5277646", "0.52546614", "0.5250206", "0.5220111", "0.52142626", "0.5212257", "0.52089906", "0.51982087", "0.5195821", "0.5184499", "0.51838577", "0.51553494", "0.51317877", "0.5068466", "0.5062831", "0.5062156", "0.5059501", "0.5056174", "0.5048697", "0.5037108", "0.50288665", "0.5018803", "0.5015531", "0.50134265", "0.50068206", "0.5006635", "0.5005667", "0.50055265", "0.50040287", "0.4999017", "0.49958688", "0.49823368", "0.49821356", "0.49813667", "0.49804395", "0.49775687", "0.49767995", "0.4969262", "0.4959616", "0.49524555", "0.49517736", "0.4945808", "0.49395844", "0.4935925", "0.49353456", "0.492759", "0.49237525", "0.49200138", "0.49193293", "0.49146694", "0.4914659", "0.49131188", "0.49085888", "0.49067295", "0.4901653", "0.49011704", "0.48988524", "0.48960972", "0.4892431", "0.48892212", "0.48858726", "0.4883307", "0.48829702", "0.48699036", "0.486985", "0.486887", "0.48657933", "0.48599914", "0.48583987", "0.48583987", "0.48557958", "0.4851476", "0.4848683", "0.4846193", "0.48415756", "0.4840138", "0.48379347", "0.4837289", "0.48364756", "0.48318982", "0.4829428", "0.48291624", "0.4825129" ]
0.7738893
0
for getting available drivers
public List getCurrentAvailabeDrivers() throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN})\n public String getAvailableDatabaseDrivers() {\n final Enumeration<Driver> loadedDrivers = DriverManager.getDrivers();\n final List<String> drivers = new ArrayList<>();\n while (loadedDrivers.hasMoreElements()) {\n Driver driver = loadedDrivers.nextElement();\n drivers.add(driver.getClass().getCanonicalName());\n }\n final DriversDTO driversDTO = DtoFactory.getInstance().createDto(DriversDTO.class).withDrivers(drivers);\n final String msg = DtoFactory.getInstance().toJson(driversDTO);\n LOG.debug(msg);\n return msg;\n }", "public static List<String> GetDriverOnSystem() {\n\t\tOSType osType = Utils.getOperatingSystemType();\n\t\tswitch (osType) {\n\t\tcase Windows:\n\t\t\treturn GetDriverOnWindows();\n\t\tcase MacOS:\n\t\t\treturn GetDriverOnMacOS();\n\t\tcase Linux:\n\t\t\treturn GetDriverOnMacOS();\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t\t\n\t}", "public static List<String> GetDriverOnWindows() {\n\t\tList<String> providerList = new ArrayList<String>();\n\t\tString folderDriver = System.getenv(\"WINDIR\") + \"\\\\system32\";\n\t\tFile folder = new File(folderDriver);\n\t\tFile[] files = folder.listFiles();\n\n\t\tfor (File file : files) {\n\t\t\tif (file.isFile()) {\n\t\t\t\tif (file.getPath().toString().contains(\".dll\")) {\n\t\t\t\t\tif (file.getName().toLowerCase().contains(\"microsoft\") \n\t\t\t\t\t\t\t|| file.getName().toLowerCase().contains(\"windows\")\n\t\t\t\t\t\t\t|| file.getName().toLowerCase().contains(\"terminator\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tproviderList.add(file.getPath().toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn providerList;\n\t}", "public List<Driver> findDriverByType(String driverType);", "List<Driver> findAllDrivers();", "@DataProvider(name = \"sBoxBrowsersProvider\", parallel=true)\n public Object[][] getRemoteDrivers() throws MalformedURLException {\n DesiredCapabilities firefoxCapabs = DesiredCapabilities.firefox();\n\n //firefoxCapabs.setPlatform(Platform.LINUX);\n //firefoxCapabs.setCapability(\"e34:auth\", \"sjej35po2vgxd7yg\");\n //firefoxCapabs.setCapability(\"e34:video\", true);\n //firefoxCapabs.setCapability(\"acceptInsecureCerts\", true);\n\n\n // Return Chrome capabilities object\n DesiredCapabilities chromeCaps = DesiredCapabilities.chrome();\n\n chromeCaps.setPlatform(Platform.LINUX);\n chromeCaps.setCapability(\"e34:auth\", \"sjej35po2vgxd7yg\");\n chromeCaps.setCapability(\"e34:video\", true);\n chromeCaps.setCapability(\"acceptInsecureCerts\", true);\n\n\n return new Object[][]{\n {firefoxCapabs},\n //{chromeCaps}\n };\n\n }", "public void selectDriver();", "public ArrayList<DriverVO> showDriver() throws ClassNotFoundException,\n\t\t\tIOException {\n\t\tmanageVOPO.addLog(LogType.DRIVER_MANAGEMENT);\n\t\tif (driverDataService != null) {\n\t\t\tArrayList<DriverPO> pos = driverDataService.showDriver();\n\t\t\tArrayList<DriverVO> vos = new ArrayList<DriverVO>();\n\t\t\tDriverVO vo;\n\t\t\tfor (DriverPO po : pos) {\n\t\t\t\tvo = manageVOPO.poToVO(po);\n\t\t\t\tvos.add(vo);\n\t\t\t}\n\t\t\treturn vos;\n\t\t} else\n\t\t\tthrow new RemoteException();\n\t}", "Driver getDriver();", "public List<String> getAvailableDevices() {\n if (getEcologyDataSync().getData(\"devices\") != null) {\n return new ArrayList<>((Collection<? extends String>) ((Map<?, ?>) getEcologyDataSync().\n getData(\"devices\")).keySet());\n } else {\n return Collections.emptyList();\n }\n }", "protected List<PCIDevice> probeDevices() {\n final ArrayList<PCIDevice> result = new ArrayList<PCIDevice>();\n rootBus.probeDevices(result);\n return result;\n }", "Set<Capability> getAvailableCapability();", "private Instrument[] getAvailableInstruments() {\r\n\t\tInstrument[] allInstruments = synth.getAvailableInstruments();\r\n\t\tInstrument[] bank1 = new Instrument[128];\r\n\t\tfor (int i = 0; i < 128; i++) {\r\n\t\t\tif (allInstruments[i].getPatch().getBank() == 0)\r\n\t\t\t\tbank1[i] = allInstruments[i];\r\n\t\t}\r\n\t\treturn bank1;\r\n\t}", "private void populateAvailableProviders() {\n allAvailableProviders = new HashSet<Provider>();\n\n DataType dataType = DataType.valueOfIgnoreCase(this.dataType);\n try {\n for (Provider provider : DataDeliveryHandlers.getProviderHandler()\n .getAll()) {\n\n ProviderType providerType = provider.getProviderType(dataType);\n if (providerType != null) {\n allAvailableProviders.add(provider);\n }\n }\n } catch (RegistryHandlerException e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Unable to retrieve the list of providers.\", e);\n }\n }", "public abstract String getDriver();", "@Override\r\n\tpublic List<Driver> viewBestDrivers() {\r\n\t\tList<Driver> drivers = driverRepository.viewBestDrivers();\r\n\t\tif (drivers.size() == 0) {\r\n\t\t\tthrow new DriverNotFoundException(\"No Driver with best rating at the moment\");\r\n\t\t}\r\n\t\treturn drivers;\r\n\t}", "public abstract List<AbstractCapability> getCapabilities();", "public Collection<String> listDevices();", "public static List<String> GetDriverOnMacOS() {\n\t\tList<String> providerList = new ArrayList<String>();\n\t\tFile folder = new File(PROVIDER_FOLDER);\n\t\tFile[] files = folder.listFiles();\n\n\t\tfor (File file : files) {\n\t\t\tif (file.isFile()) {\n\t\t\t\tif (file.getPath().toString().contains(\".dylib\")) {\n\t\t\t\t\tproviderList.add(file.getPath().toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn providerList;\n\t}", "public Peripheral getHardwareDriverFromSoftwareDriver();", "public List<String> getAvailableDataTypes() {\n Set<String> typeSet = new TreeSet<String>();\n\n ITimer timer = TimeUtil.getTimer();\n timer.start();\n\n try {\n for (Provider provider : DataDeliveryHandlers.getProviderHandler()\n .getAll()) {\n\n for (ProviderType type : provider.getProviderType()) {\n typeSet.add(type.getDataType().toString());\n }\n }\n } catch (RegistryHandlerException e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Unable to retrieve the provider list.\", e);\n }\n\n List<String> typeList = new ArrayList<String>(typeSet);\n timer.stop();\n\n return typeList;\n }", "public abstract List<NADevice> getDevices(Context context);", "public ArrayList<DriverVO> showDriver(City city)\n\t\t\tthrows ClassNotFoundException, IOException {\n\t\tDriverVO temp;\n\t\tArrayList<DriverVO> localDrivers = new ArrayList<DriverVO>();\n\t\tArrayList<DriverVO> allDrivers = showDriver();\n\t\tif (allDrivers != null) {\n\t\t\tIterator<DriverVO> t = allDrivers.iterator();\n\t\t\tfor (; t.hasNext();) {\n\t\t\t\ttemp = t.next();\n\t\t\t\tif (City.getCityByNum(temp.driverNum.substring(0, 3)) == city) {\n\t\t\t\t\tlocalDrivers.add(temp);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (localDrivers.size() == 0 || localDrivers == null) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn localDrivers;\n\t\t\t}\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public Driver getDriver() throws InterruptedException {\n return drivers.take();\n }", "Set<String> listCapabilities();", "Capabilities getCapabilities();", "@DataProvider(name = \"browserProviderWithoutVersions\", parallel = true)\n public Object[][] getDriversWithoutVersion() {\n\n //if no version is set, then latest browser version is used\n DesiredCapabilities firefox1 = DesiredCapabilities.firefox();\n\n //use n-1, n-1 etc. to specify non-hardcoded browserversions (sliding window)\n DesiredCapabilities firefox2 = DesiredCapabilities.firefox();\n firefox1.setCapability(\"version\", \"n-1\");\n\n DesiredCapabilities firefox3 = DesiredCapabilities.firefox();\n firefox1.setCapability(\"version\", \"n-2\");\n\n DesiredCapabilities chrome1 = DesiredCapabilities.chrome();\n\n DesiredCapabilities chrome2 = DesiredCapabilities.chrome();\n chrome2.setCapability(\"version\", \"n-1\");\n\n DesiredCapabilities chrome3 = DesiredCapabilities.chrome();\n chrome3.setCapability(\"version\", \"n-2\");\n\n return new Object[][]{\n {firefox1},\n {firefox2},\n {firefox3},\n {chrome1},\n {chrome2},\n {chrome3},\n };\n }", "public SortedSet<String> getAvailableDataProviders() {\n if (allAvailableProviders == null) {\n populateAvailableProviders();\n }\n\n SortedSet<String> providers = new TreeSet<String>();\n for (Provider p : allAvailableProviders) {\n providers.add(p.getName());\n }\n\n return providers;\n }", "public abstract List getProviders();", "List<DeviceDetails> getDevices();", "public TestDevice[] allocateDevices(final int num) throws DeviceNotAvailableException {\n \n ArrayList<TestDevice> deviceList;\n TestDevice td;\n int index = 0;\n \n if (num < 0) {\n throw new IllegalArgumentException();\n }\n if (num > mDevices.size()) {\n throw new DeviceNotAvailableException(\"The number of connected device(\"\n + mDevices.size() + \" is less than the specified number(\"\n + num + \"). Please plug in enough devices\");\n }\n deviceList = new ArrayList<TestDevice>();\n \n while (index < mDevices.size() && deviceList.size() != num) {\n td = mDevices.get(index);\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n deviceList.add(td);\n }\n index++;\n }\n if (deviceList.size() != num) {\n throw new DeviceNotAvailableException(\"Can't get the specified number(\"\n + num + \") of idle device(s).\");\n }\n return deviceList.toArray(new TestDevice[num]);\n }", "public List<Resource> getAvailableResources();", "public ArrayList<DriverVO> showDriver(String institutionNum) throws ClassNotFoundException, IOException {\n\t\tDriverVO temp;\n\t\tArrayList<DriverVO> localDrivers = new ArrayList<DriverVO>();\n\t\tArrayList<DriverVO> allDrivers = showDriver();\n\t\tif (allDrivers != null) {\n\t\t\tIterator<DriverVO> t = allDrivers.iterator();\n\t\t\tfor (; t.hasNext();) {\n\t\t\t\ttemp = t.next();\n\t\t\t\tlocalDrivers.add(temp);\n\t\t\t}\n\t\t\tif (localDrivers.size() == 0 || localDrivers == null) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn localDrivers;\n\t\t\t}\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public void fetchClassInfo() {\n try {\n telephonyClassName = \"android.telephony.TelephonyManager\";\n listofClass = new String[]{\n \"com.mediatek.telephony.TelephonyManagerEx\",\n \"android.telephony.TelephonyManager\",\n \"android.telephony.MSimTelephonyManager\",\n \"android.telephony.TelephonyManager\"};\n for (int index = 0; index < listofClass.length; index++) {\n if (isTelephonyClassExists(listofClass[index])) {\n if (isMethodExists(listofClass[index], \"getDeviceId\")) {\n if (!simVariant.equalsIgnoreCase(\"\")) {\n break;\n }\n }\n if (isMethodExists(listofClass[index], \"getNetworkOperatorName\")) {\n break;\n } else if (isMethodExists(listofClass[index], \"getSimOperatorName\")) {\n break;\n }\n }\n }\n for (int index = 0; index < listofClass.length; index++) {\n try {\n if (slotName1 == null || slotName1.equalsIgnoreCase(\"\")) {\n getValidSlotFields(listofClass[index]);\n // if(slotName1!=null || !slotName1.equalsIgnoreCase(\"\")){\n getSlotNumber(listofClass[index]);\n } else {\n break;\n }\n } catch (Exception e) {\n LOGE(TAG, \"[fetchClassInfo] Unable to get class info\", e);\n }\n }\n } catch (Exception e) {\n LOGE(TAG, \"[fetchClassInfo] Unable to get class info\", e);\n }\n }", "private void listDevices(Context context) {\n\t DeviceList list = new DeviceList();\n\t int result = LibUsb.getDeviceList(context, list);\n\t if(result < 0) throw new LibUsbException(\"Unable to get device list\", result);\n\n\t try\n\t {\n\t for(Device device: list)\n\t {\n\t DeviceDescriptor descriptor = new DeviceDescriptor();\n\t result = LibUsb.getDeviceDescriptor(device, descriptor);\n\t if (result != LibUsb.SUCCESS) throw new LibUsbException(\"Unable to read device descriptor\", result);\n\t System.out.println(\"vendorId=\" + descriptor.idVendor() + \", productId=\" + descriptor.idProduct());\n\t }\n\t }\n\t finally\n\t {\n\t // Ensure the allocated device list is freed\n\t LibUsb.freeDeviceList(list, true);\n\t }\n\t}", "@Test\n public void determine_provider_capabilities() {\n Provider bouncyCastleProvider = Security.getProvider(\"BC\");\n assertThat(bouncyCastleProvider, is(notNullValue()));\n /**\n * Get the KeySet where the provider keep a list of it's\n * capabilities\n */\n Iterator<Object> capabilitiesIterator = bouncyCastleProvider.keySet().iterator();\n while(capabilitiesIterator.hasNext()){\n String capability = (String) capabilitiesIterator.next();\n\n if(capability.startsWith(\"Alg.Alias.\")) {\n capability = capability.substring(\"Alg.Alias.\".length());\n }\n\n String factoryClass = capability.substring(0, capability.indexOf(\".\"));\n String name = capability.substring(factoryClass.length() + 1);\n\n assertThat(factoryClass, is(not(isEmptyOrNullString())));\n assertThat(name, is(not(isEmptyOrNullString())));\n\n System.out.println(String.format(\"%s : %s\", factoryClass, name));\n }\n }", "public String[] getVideoDevicesList();", "@Override\n public List<CECDevice> scanDevices() {\n sendCommand(\"scan\");\n return CECClientParser.parseScanResult(waitForOutputLine(\"===================\"));\n }", "public Map<String, Set<String>> getBufferedDeviceNamesByType();", "public String getDriver() {\r\n return driver;\r\n }", "public void initializeDriver() {\n }", "private void selectAvailableDevices() {\n\n ArrayList deviceStrs = new ArrayList();\n final ArrayList<String> devices = new ArrayList();\n\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n // checking and enabling bluetooth\n if (!btAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n } else {\n btAdapter = BluetoothAdapter.getDefaultAdapter();\n Set<BluetoothDevice> pairedDevices = btAdapter.getBondedDevices();\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n deviceStrs.add(device.getName() + \"\\n\" + device.getAddress());\n devices.add(device.getAddress());\n }\n }\n\n // show a list of paired devices to connect with\n final AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);\n ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.select_dialog_singlechoice,\n deviceStrs.toArray(new String[deviceStrs.size()]));\n alertDialog.setSingleChoiceItems(adapter, -1, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n int position = ((AlertDialog) dialog).getListView().getCheckedItemPosition();\n String deviceAddress = devices.get(position);\n setDeviceAddress(deviceAddress);\n chosen = true;\n //notify user for ongoing connection\n launchRingDialog();\n\n }\n });\n\n alertDialog.setTitle(R.string.blueChose);\n alertDialog.show();\n }\n }", "private Collection<MarketDataProvider> getActiveMarketDataProviders()\n {\n populateProviderList();\n return providersByPriority;\n }", "public boolean hasDriver() {\n return fieldSetFlags()[6];\n }", "DeviceCapabilitiesProvider getDeviceCapabilitiesProvider();", "Set<ICapability> getAllCapabilities();", "@Test\n\tpublic void searchForUnallocatedDriversByName_FuncTest(){ \n\t\tList<DriverSearchVO> drivers = driverService.searchDriver(unallocatedDriver, null, null, null, null, null, null, null, false, null, null, null);\t\n\t\tlong driversCnt = driverService.searchDriverCount(unallocatedDriver, null, null, null, null, null, null, null, false, null);\n\t\t\n\t\t// we get back results of the same length as the list returned\n\t\tassertEquals(drivers.size(), driversCnt);\n\t\t\n\t\t// the list is greater than 0\n\t\tassertTrue(driversCnt > 0);\t\t\t\n\t}", "public String getSoftwareDriverVersion();", "public List<ProductModel> getAllDevices() {\n\t\tSystem.out.println(\"\\nNetworkDevServ-getAllDev()\");\r\n\t\treturn deviceData.getAllDevices();\r\n\t}", "public PeripheralHardwareDriverInterface getHardwareDriver();", "public List getDriverAbsentList() throws Exception ;", "public static ArrayList<File> findDevices() {\n return findDevices(\"/dev/\");\n }", "public String getDriver() {\n return driver;\n }", "public String getDriver() {\n return driver;\n }", "private void populateProviderList()\n {\n synchronized(activeProvidersByName) {\n if(ModuleManager.getInstance() != null) {\n List<ModuleURN> providerUrns = ModuleManager.getInstance().getProviders();\n for(ModuleURN providerUrn : providerUrns) {\n String providerName = providerUrn.providerName();\n if(providerUrn.providerType().equals(MDATA) && !providerName.equals(MarketDataCoreModuleFactory.IDENTIFIER) && !activeProvidersByName.containsKey(providerName)) {\n List<ModuleURN> instanceUrns = ModuleManager.getInstance().getModuleInstances(providerUrn);\n if(!instanceUrns.isEmpty()) {\n ModuleURN instanceUrn = instanceUrns.get(0);\n ModuleInfo info = ModuleManager.getInstance().getModuleInfo(instanceUrn);\n if(info.getState() == ModuleState.STARTED) {\n ModuleProvider provider = new ModuleProvider(providerName,\n AbstractMarketDataModule.getFeedForProviderName(providerName));\n SLF4JLoggerProxy.debug(this,\n \"Creating market data provider proxy for {}\",\n providerName);\n addProvider(provider);\n }\n }\n }\n }\n }\n }\n }", "@Override\n public void getAdapters() {\n // standard Cricket adapters\n logAdapter = (LoggerAdapterIface) getRegistered(\"Logger\");\n echoAdapter = (EchoHttpAdapterIface) getRegistered(\"Echo\");\n database = (KeyValueDBIface) getRegistered(\"Database\");\n scheduler = (SchedulerIface) getRegistered(\"Scheduler\");\n htmlAdapter = (HtmlGenAdapterIface) getRegistered(\"WWWService\");\n fileReader = (FileReaderAdapterIface) getRegistered(\"FileReader\");\n // optional\n //scriptingService = (HttpAdapterIface) getRegistered(\"ScriptingService\");\n //scriptingEngine = (ScriptingAdapterIface) getRegistered(\"ScriptingEngine\");\n }", "public interface PeripheralSoftwareDriverInterface extends DriverBaseDataEventListener {\r\n\r\n /**\r\n * Is set in the BaseDriver, you can overwrite it, but for debugging\r\n * purposes not handy\r\n */\r\n public final static String DriverBaseName = \"driver:port\";\r\n\r\n /**\r\n * Returns the driver DB id.\r\n * @return \r\n */\r\n public int getId();\r\n \r\n /**\r\n * Starts the driver and runs the thread\r\n */\r\n public void startDriver();\r\n\r\n /**\r\n * Stops the driver and the thread the driver is running in\r\n */\r\n public void stopDriver();\r\n\r\n /**\r\n * Returns the Hardware driver which belongs to the given running software\r\n * driver.\r\n *\r\n * @return\r\n */\r\n public Peripheral getHardwareDriverFromSoftwareDriver();\r\n\r\n \r\n /**\r\n * Returns the hardware driver.\r\n * @return \r\n */\r\n public PeripheralHardwareDriverInterface getHardwareDriver();\r\n \r\n /**\r\n * Returns the amount of active devices attached to this driver.\r\n *\r\n * @return\r\n */\r\n public int getRunningDevicesCount();\r\n\r\n /**\r\n * Returns a list of running devices whom belong to this driver.\r\n *\r\n * @return\r\n */\r\n public List<Device> getRunningDevices();\r\n\r\n /**\r\n * Send a batch of commands through the proxy. This method is preferred when\r\n * sending multiple commands at once with a build in delay. this function\r\n * should create a batch with a default name (anonymous)\r\n *\r\n * @param batchData Strings with commands\r\n * @see #runBatch()\r\n * @see #runBatch(java.lang.String)\r\n */\r\n public void addBatch(List<Map<String, String>> batchData);\r\n\r\n /**\r\n * Send a batch of commands through the proxy. This method is preferred when\r\n * sending multiple commands at once with a build in delay.\r\n *\r\n * @param batchData Strings with commands\r\n * @param batchName String with the name of the batch to use later on with\r\n * runBatch()\r\n * @see #runBatch()\r\n * @see #runBatch(java.lang.String)\r\n */\r\n public void addBatch(List<Map<String, String>> batchData, String batchName);\r\n\r\n /**\r\n * Runs the batch previously set with the anonymous addBatch\r\n */\r\n public void runBatch();\r\n\r\n /**\r\n * Runs the batch previously set with addBatch with a batchName\r\n *\r\n * @param batchName Name of the batch to run\r\n */\r\n public void runBatch(String batchName);\r\n\r\n /**\r\n * Sends the data to the hardware itself\r\n *\r\n * @param data The data to send\r\n * @param prefix When having multiple devices supported by the hardware a\r\n * prefix can distinct the device in your hardware\r\n * @return result of the send command\r\n * @throws java.io.IOException\r\n * @Obsolete Use writeBytes.\r\n */\r\n public boolean sendData(String data, String prefix) throws IOException;\r\n\r\n /**\r\n * Sends the data to the hardware itself\r\n *\r\n * @param data The data to send\r\n * @return the result of the command\r\n * @throws java.io.IOException\r\n * @Obsolete Use WriteBytes.\r\n */\r\n public boolean sendData(String data) throws IOException;\r\n\r\n /**\r\n * Retrieves the name of the class.\r\n *\r\n * @return the name of the class\r\n */\r\n public String getName();\r\n\r\n /**\r\n * For adding an hardware driver.\r\n *\r\n * @param l\r\n */\r\n public void setPeripheralEventListener(PeripheralHardwareDriverInterface l);\r\n\r\n /**\r\n * for removing an hardware driver.\r\n *\r\n * @param l\r\n */\r\n public void removePeripheralEventListener(PeripheralHardwareDriverInterface l);\r\n\r\n /**\r\n * Handles data received from the hardware driver to be used by overwriting\r\n * classes.\r\n *\r\n * @param oEvent\r\n */\r\n @Override\r\n public void driverBaseDataReceived(PeripheralHardwareDataEvent oEvent);\r\n\r\n /**\r\n * Driver proxy for hardware data.\r\n *\r\n * @param oEvent\r\n */\r\n public void driverBaseDataReceivedProxy(PeripheralHardwareDataEvent oEvent);\r\n\r\n /**\r\n * Returns the package name of the driver as used in the database.\r\n *\r\n * @return The package name of this class\r\n */\r\n public String getPackageName();\r\n\r\n /**\r\n * Adds a device to the listers for whom data can exist.\r\n *\r\n * @param device\r\n */\r\n public void addDeviceListener(DeviceDriverListener device);\r\n\r\n /**\r\n * Removes a device from the listeners list.\r\n *\r\n * @param device\r\n */\r\n public void removeDeviceListener(DeviceDriverListener device);\r\n\r\n /**\r\n * Handle the data coming from a device driver to dispatch to the hardware\r\n * driver. With this function you can do stuff with the data. For example if\r\n * needed change from string to byte array?\r\n *\r\n * @param device\r\n * @param group\r\n * @param set\r\n * @param deviceData\r\n * @return A string which represents a result, human readable please.\r\n * @throws java.io.IOException\r\n */\r\n public boolean handleDeviceData(Device device, String group, String set, String deviceData) throws IOException;\r\n\r\n /**\r\n * Handles data coming from a device as is in the request!\r\n * @param device\r\n * @param request\r\n * @return\r\n * @throws IOException \r\n */\r\n public boolean handleDeviceData(Device device, DeviceCommandRequest request) throws IOException;\r\n \r\n /**\r\n * Sets the driver DB id.\r\n * @param driverDBId \r\n */\r\n public void setId(int driverDBId);\r\n \r\n /**\r\n * Sets the named id\r\n * @param dbNameId\r\n */\r\n public void setNamedId(String dbNameId);\r\n \r\n /**\r\n * Gets the named id\r\n * @return \r\n */\r\n public String getNamedId();\r\n \r\n /**\r\n * Returns if the driver supports custom devices.\r\n * @return \r\n */\r\n public boolean hasCustom();\r\n \r\n /**\r\n * Set if a driver has custom devices.\r\n * @param hasCustom\r\n * @return \r\n */\r\n public void setHasCustom(boolean hasCustom);\r\n \r\n /**\r\n * Returns the software driver id.\r\n *\r\n * @param softwareId\r\n */\r\n public void setSoftwareDriverId(String softwareId);\r\n\r\n /**\r\n * Returns the version set in the driver.\r\n *\r\n * @param softwareIdVersion\r\n */\r\n public void setSoftwareDriverVersion(String softwareIdVersion);\r\n\r\n /**\r\n * Returns the software driver id.\r\n *\r\n * @return\r\n */\r\n public String getSoftwareDriverId();\r\n\r\n /**\r\n * Returns the version set in the driver.\r\n *\r\n * @return\r\n */\r\n public String getSoftwareDriverVersion();\r\n\r\n /**\r\n * Returns true if there is a web presentation present.\r\n *\r\n * @return\r\n */\r\n public boolean hasPresentation();\r\n\r\n /**\r\n * Sets a web presentation;\r\n *\r\n * @param pres\r\n */\r\n public void addWebPresentationGroup(WebPresentationGroup pres);\r\n\r\n /**\r\n * Returns the web presentation.\r\n *\r\n * @return\r\n */\r\n public List<WebPresentationGroup> getWebPresentationGroups();\r\n\r\n /**\r\n * Sets the friendlyname.\r\n * @param name \r\n */\r\n public void setFriendlyName(String name);\r\n \r\n /**\r\n * Returns the friendlyname.\r\n * @return \r\n */\r\n public String getFriendlyName();\r\n \r\n /**\r\n * Sets a link with the device service.\r\n * @param deviceServiceLink \r\n */\r\n public void setDeviceServiceLink(PeripheralDriverDeviceMutationInterface deviceServiceLink);\r\n \r\n /**\r\n * Removes a device service link.\r\n */\r\n public void removeDeviceServiceLink();\r\n \r\n /**\r\n * Indicator to let know a device is loaded.\r\n * @param device \r\n */\r\n public void deviceLoaded(Device device);\r\n \r\n}", "public String getDriver()\n {\n return m_driverName;\n }", "private void bonded_devices_get()\n\t\t{\n\t\t\tmPairedDevList.clear();\n\t\t\tSet<BluetoothDevice> PairedDevices = btAdapter.getBondedDevices();\n\t\t\tif(PairedDevices.size() > 0)\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.VISIBLE);\n\t\t\t\tfor(BluetoothDevice device : PairedDevices)\n\t\t\t\t{\n\t\t\t\t\tString device_info = device.getName()+\"\\n\"+device.getAddress();\n\t\t\t\t\tmPairedDevList.add(device_info);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.GONE);\n\t\t\t\tmPairedDevList.add(\"No Bonded Devices\");\n\t\t\t}\n\t\t}", "public static ArrayList<FamilyType> getAvailableFamilies() {\n ArrayList<FamilyType> allFamilies = new ArrayList<FamilyType>();\n File dir = new File(getRapidSmithPath() + File.separator + \"devices\");\n if (!dir.exists()) {\n MessageGenerator.briefErrorAndExit(\"ERROR: No part files exist. Please run \" +\n Installer.class.getCanonicalName() + \" to create part files.\");\n }\n for (String partFamily : dir.list()) {\n FamilyType type = PartNameTools.getFamilyTypeFromFamilyName(partFamily);\n if (type != null) allFamilies.add(type);\n }\n\n return allFamilies;\n }", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "private void getDynamicProfie() {\n getDeviceName();\n }", "@Test\n\tpublic void searchForDriversByDriverName_FuncTest(){ \n\t\tList<DriverSearchVO> drivers = driverService.searchDriver(driverName, null, null, null, null, null, null, null, false, null, null, null);\t\n\t\tlong driversCnt = driverService.searchDriverCount(driverName, null, null, null, null, null, null, null, false, null);\n\t\t\n\t\t// we get back results of the same length as the list returned\n\t\tassertEquals(drivers.size(), driversCnt);\n\t\t\n\t\t// the list is greater than 0\n\t\tassertTrue(driversCnt > 0);\t\t\n\t}", "public static AppiumDriver getDriver(){\n return appiumDriverList.get(0);\n }", "public List<String> execAdbDevices() {\n System.out.println(\"adb devices\");\n\n List<String> ret_device_id_list = new ArrayList<>();\n Process proc = null;\n try {\n proc = new ProcessBuilder(this.adb_path, \"devices\").start();\n proc.waitFor();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } catch (InterruptedException ire) {\n ire.printStackTrace();\n }\n\n String devices_result = this.collectResultFromProcess(proc);\n String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\n\n if (device_id_list.length <= 1) {\n System.out.println(\"No Devices Attached.\");\n return ret_device_id_list;\n }\n\n /**\n * collect the online devices\n */\n String str_device_id = null;\n String device = null;\n String[] str_device_id_parts = null;\n // ignore the first line which is \"List of devices attached\"\n for (int i = 1; i < device_id_list.length; i++) {\n str_device_id = device_id_list[i];\n str_device_id_parts = str_device_id.split(\"\\\\s+\");\n // add the online device\n if (str_device_id_parts[1].equals(\"device\")) {\n device = str_device_id_parts[0];\n ret_device_id_list.add(device);\n System.out.println(device);\n }\n }\n\n return ret_device_id_list;\n }", "public static void listDevices()\n\t{\n\t\tfor(SerialPort port : SerialPort.getCommPorts())\n\t\t{\n\t String portName = port.getSystemPortName();\n\t System.out.println(portName);\n\t\t}\n\t}", "private List<String> initializeRequiredCapabilities() {\n // Required device capabilities\n\n String[] capabilityEntries = {V3PO_CAPABILITY, INTERFACES_CAPABILITY};\n return Arrays.asList(capabilityEntries);\n }", "protected abstract String getDriverClassName();", "@Deprecated\r\n private void setDevices() throws ClassNotFoundException {\n\r\n installedDevices = new Device[deviceName.length];\r\n\r\n for (int i = 0; i < deviceName.length; i++) {\r\n\r\n //Class<?> eine = Class.forName(deviceName[0]);\r\n try {\r\n Constructor<?>[] ctors = Class.forName(deviceName[i]).getDeclaredConstructors();\r\n Constructor<?> ctor = null;\r\n for (Constructor<?> c : ctors) {\r\n if (c.getGenericParameterTypes().length == 0) {\r\n ctor = c;\r\n }\r\n }\r\n ctor.setAccessible(true);\r\n Device device = (Device) ctor.newInstance();\r\n\r\n installedDevices[i] = device;\r\n\r\n } catch (Exception e) {\r\n throw new ClassNotFoundException(\r\n \"Ist abgestuerzt, weil Klasse aus Config nicht existiert oder im falschen ordner sich befindet\"\r\n + e + \".\");\r\n }\r\n\r\n }\r\n\r\n }", "private boolean cargarDrv_F1(String driver){\r\n boolean blnRes=true;\r\n try{\r\n Class.forName(driver);\r\n }\r\n catch (ClassNotFoundException e){\r\n blnRes=false;\r\n \r\n objUti.mostrarMsgErr_F1(jifCnt, e);\r\n }\r\n return blnRes;\r\n }", "public Lab[] getAvailableLabs()\n {\n List<Lab> labsList = new ArrayList<Lab> ();\n File [] files = directory.listFiles();\n for (File file : files)\n {\n Lab lab = Lab.getInstance(file);\n if (lab != null)\n labsList.add(lab);\n }\n return labsList.toArray(new Lab [0]);\n }", "public abstract String getDriver() throws DataServiceException;", "public List<String> execAdbDevices()\r\n\t{\r\n\t\tList<String> ret_device_id_list = new ArrayList<>();\r\n\t\t\r\n\t\tProcess proc = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tproc = new ProcessBuilder(this.adb_directory, \"devices\").start();\r\n\t\t\tproc.waitFor();\r\n\t\t} catch (IOException ioe)\r\n\t\t{\r\n\t\t\tioe.printStackTrace();\r\n\t\t} catch (InterruptedException ire)\r\n\t\t{\r\n\t\t\tire.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tString devices_result = this.collectResultFromProcess(proc);\r\n\t String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\r\n\r\n\t if (device_id_list.length <= 1)\r\n\t {\r\n\t \tSystem.out.println(\"No Devices Attached.\");\r\n\t \treturn ret_device_id_list;\r\n\t }\r\n\t \r\n\t /**\r\n\t * collect the online devices \r\n\t */\r\n\t String str_device_id = null;\r\n\t String[] str_device_id_parts = null;\r\n\t // ignore the first line which is \"List of devices attached\"\r\n\t for (int i = 1; i < device_id_list.length; i++)\r\n\t\t{\r\n\t\t\tstr_device_id = device_id_list[i];\r\n\t\t\tstr_device_id_parts = str_device_id.split(\"\\\\s+\");\r\n\t\t\t// add the online device\r\n\t\t\tif (str_device_id_parts[1].equals(\"device\"))\r\n\t\t\t\tret_device_id_list.add(str_device_id_parts[0]);\r\n\t\t}\r\n\t \r\n\t return ret_device_id_list;\r\n\t}", "private void initDriver(){\r\n String browserToBeUsed = (String) jsonConfig.get(\"browserToBeUsed\");\r\n switch (browserToBeUsed) {\r\n case \"FF\":\r\n System.setProperty(\"webdriver.gecko.driver\", (String) jsonConfig.get(\"fireFoxDriverPath\"));\r\n FirefoxProfile ffProfile = new FirefoxProfile();\r\n // ffProfile.setPreference(\"javascript.enabled\", false);\r\n ffProfile.setPreference(\"intl.accept_languages\", \"en-GB\");\r\n\r\n FirefoxOptions ffOptions = new FirefoxOptions();\r\n ffOptions.setProfile(ffProfile);\r\n driver = new FirefoxDriver(ffOptions);\r\n break;\r\n case \"CH\":\r\n String driverPath = (String) jsonConfig.get(\"chromeDriverPath\");\r\n System.setProperty(\"webdriver.chrome.driver\", driverPath);\r\n\r\n Map<String, Object> prefs = new HashMap<String, Object>();\r\n prefs.put(\"profile.default_content_setting_values.notifications\", 2);\r\n\r\n ChromeOptions options = new ChromeOptions();\r\n options.setExperimentalOption(\"prefs\", prefs);\r\n options.addArguments(\"--lang=en-GB\");\r\n driver = new ChromeDriver(options);\r\n break;\r\n case \"IE\":\r\n System.setProperty(\"webdriver.ie.driver\", (String) jsonConfig.get(\"ieDriverPath\"));\r\n\r\n InternetExplorerOptions ieOptions = new InternetExplorerOptions();\r\n ieOptions.disableNativeEvents();\r\n ieOptions.requireWindowFocus();\r\n ieOptions.introduceFlakinessByIgnoringSecurityDomains();\r\n driver = new InternetExplorerDriver(ieOptions);\r\n }\r\n\r\n driver.manage().window().maximize();\r\n }", "public static void getDevicesList()\n {\n MidiDevice.Info[]\taInfos = MidiSystem.getMidiDeviceInfo();\n\t\tfor (int i = 0; i < aInfos.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMidiDevice\tdevice = MidiSystem.getMidiDevice(aInfos[i]);\n\t\t\t\tboolean\t\tbAllowsInput = (device.getMaxTransmitters() != 0);\n\t\t\t\tboolean\t\tbAllowsOutput = (device.getMaxReceivers() != 0);\n\t\t\t\tif (bAllowsInput || bAllowsOutput)\n\t\t\t\t{\n\n\t\t\t\t\tSystem.out.println(i + \"\" + \" \"\n\t\t\t\t\t\t+ (bAllowsInput?\"IN \":\" \")\n\t\t\t\t\t\t+ (bAllowsOutput?\"OUT \":\" \")\n\t\t\t\t\t\t+ aInfos[i].getName() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVendor() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVersion() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getDescription());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\" + i + \" \" + aInfos[i].getName());\n\t\t\t\t\t}\n\n\t\t\t}\n\t\t\tcatch (MidiUnavailableException e)\n\t\t\t{\n\t\t\t\t// device is obviously not available...\n\t\t\t\t// out(e);\n\t\t\t}\n\t\t}\n\t\tif (aInfos.length == 0)\n\t\t{\n\t\t\tSystem.out.println(\"[No devices available]\");\n\t\t}\n\t\t//System.exit(0);\n }", "private CharSequence[] getSelections() {\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n if (null != btAdapter) {\n int idx = 0;\n Set<BluetoothDevice> setDevices = btAdapter.getBondedDevices();\n CharSequence[] entries = new CharSequence[setDevices.size() + 1];\n entries[idx++] = NONE;\n\n for (BluetoothDevice btd : setDevices) {\n entries[idx++] = btd.getName();\n }\n\n // tell bluetooth to stop scanning. it's a power issue\n btAdapter.cancelDiscovery();\n return entries;\n }\n\n CharSequence[] entries = new CharSequence[1];\n entries[0] = NONE;\n return entries;\n }", "public Expirator getAvailableExpirator() {\n \t\tExpirator available = null;\n \t\tfor(Expirator e : expirators) {\n \t\t\tif(!e.isBusy()) {\n \t\t\t\tavailable = e;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\treturn available;\n \t}", "public void initDriver() {\n if (getBrowser().equals(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n if (System.getProperty(\"headless\") != null) {\n FirefoxOptions firefoxOptions = new FirefoxOptions();\n firefoxOptions.setHeadless(true);\n driver = new FirefoxDriver(firefoxOptions);\n } else {\n driver = new FirefoxDriver();\n }\n } else {\n WebDriverManager.chromedriver().setup();\n if (System.getProperty(\"headless\") != null) {\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.setHeadless(true);\n driver = new ChromeDriver(chromeOptions);\n } else {\n driver = new ChromeDriver();\n }\n }\n }", "private void getPairedDevices() {\n\t\tdevicesArray = btAdapter.getBondedDevices();\n\t\tif(devicesArray.size()>0){\n\t\t\tfor(BluetoothDevice device:devicesArray){\n\t\t\t\tpairedDevices.add(device.getName());\n\t\t\t}\n\t\t}\n\t}", "public static List<String> getSupportedVersions () {\n if (instBySupportedVersion == null) {\n init();\n }\n return new ArrayList(instBySupportedVersion.keySet());\n }", "public List<Device> getRunningDevices();", "public static java.lang.String[] getAvailableIDs() { throw new RuntimeException(\"Stub!\"); }", "public String showAvailableExternalSystem() {\n int counter = 1;\n StringBuilder systems = new StringBuilder();\n\n for (String systemName : externalSystemsAvailable) {\n systems.append(counter + \". \" + systemName + \"\\n\");\n }\n\n systems.setLength(systems.length() - 1);\n return systems.toString();\n }", "private static void buildDriverMap() {\n\t\tdriverMap = new HashMap<>();\n\t\t// Web Browser class\n\t\tdriverMap.put(TestBedType.CHROME.toString(), ChromeDriver.class);\n\t\tdriverMap.put(TestBedType.SAFARI.toString(), SafariDriver.class);\n\t\tdriverMap.put(TestBedType.FIREFOX.toString(), FirefoxDriver.class);\n\t\tdriverMap.put(TestBedType.INTERNETEXPLORER.toString(), IEDriver.class);\n\t\tdriverMap.put(TestBedType.EDGE.toString(), EdgeDriver.class);\n\n\t\t// Mobile Browser class\n\t\tdriverMap.put(TestBedType.ANDROID.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.ANDROIDBROWSER.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.ANDROIDCHROME.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.AndroidMotoG.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.AndroidMicromax.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.AndroidLenovo.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.ANDROIDNATIVE.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.ANDROIDHYBRIDAPP.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.MOTOROLA.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.KARBONN.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.LENOVO.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.MICROMAX.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.AndroidSAMSUNG.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.ANDROID1.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.IPHONENATIVESIM.toString(), IOSDriver.class);\n\t\tdriverMap.put(TestBedType.IPHONENATIVE.toString(), IOSDriver.class);\n\t\tdriverMap.put(TestBedType.IPADNATIVE.toString(), IOSDriver.class);\n\t\tdriverMap.put(TestBedType.IPADWEB.toString(), IOSDriver.class);\n\t\tdriverMap.put(TestBedType.IPADSIMULATOR.toString(), IOSDriver.class);\n\t\tdriverMap.put(TestBedType.AndroidNexusTab.toString(), AndroidDriver.class);\n\t}", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "public String [] getDriveNames()\n throws CdbException , InterruptedException {\n return _pvr.getDriveNames() ;\n }", "@RequestMapping(value = \"/drivers\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<List<Driver>> getAll(@RequestParam(value = \"page\" , required = false) Integer offset,\n @RequestParam(value = \"per_page\", required = false) Integer limit)\n throws URISyntaxException {\n Page<Driver> page = driverRepository.findAll(PaginationUtil.generatePageRequest(offset, limit));\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/drivers\", offset, limit);\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }", "protected boolean isAvailable() {\r\n\t\treturn true;\r\n\t}", "private static void setupDrivers(Application application) {\n\t\tJob2dDriver loggerDriver = new LoggerDriver();\n\t\tDriverFeature.addDriver(\"Logger driver\", loggerDriver);\n\n\t\tDrawPanelController drawerController = DrawerFeature.getDrawerController();\n\t\tJob2dDriver driver = new LineDriverAdapter(drawerController, LineFactory.getBasicLine(), \"basic\");\n\t\tDriverFeature.addDriver(\"Line Simulator\", driver);\n\t\tDriverFeature.getDriverManager().setCurrentDriver(driver);\n\n\t\tdriver = new LineDriverAdapter(drawerController, LineFactory.getSpecialLine(), \"special\");\n\t\tDriverFeature.addDriver(\"Special line Simulator\", driver);\n\t\tDriverFeature.updateDriverInfo();\n\n\t\tdriver = new LineDriverAdapter(drawerController, customizableLine, \"customizable\");\n\t\tDriverFeature.addDriver(\"Customizable Line\", driver);\n\t\tDriverFeature.updateDriverInfo();\n\t}", "public void getDriver() {\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver = new ChromeDriver();\n\t}", "public Class[] getAdapterList() {\n \t\treturn new Class[] { IWorkbenchAdapter.class, IPropertySource.class,\n \t\t\t\tIDeferredWorkbenchAdapter.class, IHistoryPageSource.class,\n \t\t\t\tISynchronizationCompareAdapter.class, ITeamStateProvider.class };\n \t}", "public static WebDriver getDriver(){\n if(driver==null){\n //get the driver type from properties file\n\n String browser=ConfigurationReader.getPropery(\"browser\");\n switch(browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver=new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver=new FirefoxDriver();\n }\n }\n\n return driver;\n }", "private void fillDriversCb() {\n List<Transportista> findTransportistaEntities = getUtils().getTruckDriverController().findTransportistaEntities();\n ObservableList driversList = FXCollections.observableArrayList();\n for (Transportista t : findTransportistaEntities) {\n driversList.add(t.getNombre().trim() + \" \" + t.getApellido1().trim() + \" \" + t.getApellido2().trim());\n }\n getDriverCb().setItems(driversList);\n }", "public IDevice[] getDevices() { return devices; }", "public void scanWifiList() {\n wifiManager.startScan();\n scanResultList=wifiManager.getScanResults();\n Log.e(\"length\",\"\"+scanResultList.size());\n //wifiInfoList= (List<WifiInfo>)wifiManager .getConnectionInfo();//\n adapter = new RecyclerAdapterItems(getApplicationContext(),scanResultList,this);\n recyclerView.setAdapter(adapter);\n\n /* for (int i = 0; i < scanResultList.size(); i++){\n\n if (scanResultList.get(i).SSID.equalsIgnoreCase(\"D-Link\")){\n //Toast.makeText(this, \"found!!\", Toast.LENGTH_SHORT).show();\n Log.e(\"scanWifiList\", \"Found!!\");\n String capp = scanResultList.get(i).capabilities;\n Log.e(\"Capabilities\", \"\"+capp);\n }\n }*/\n }", "public static List<String> getSupportedGraphics()\n {\n List<String> graphics = new ArrayList<String>();\n graphics.addAll(getTacGrpGraphics());\n graphics.addAll(getMetocGraphics());\n graphics.addAll(getEmsGraphics());\n return graphics;\n }", "public abstract GraphicsDevice[] getScreenDevices();" ]
[ "0.71572804", "0.69362813", "0.6563372", "0.64990985", "0.6495983", "0.6415518", "0.63816917", "0.6357721", "0.6326179", "0.6324409", "0.6255298", "0.6238053", "0.61560124", "0.61457646", "0.6003836", "0.5974371", "0.5924879", "0.5911077", "0.5894737", "0.5885175", "0.5864729", "0.58414775", "0.57624775", "0.5730323", "0.5729136", "0.5726731", "0.5716783", "0.5712877", "0.5675279", "0.5625978", "0.56150556", "0.56123835", "0.56110686", "0.5606132", "0.5595838", "0.55936724", "0.55797684", "0.5576864", "0.55693585", "0.5504903", "0.5498305", "0.5495922", "0.5494548", "0.5469821", "0.5465705", "0.5463746", "0.54566836", "0.54564345", "0.5454118", "0.54435354", "0.54286563", "0.5419098", "0.54176444", "0.54176444", "0.541473", "0.5409127", "0.54090065", "0.5402139", "0.5388768", "0.53764325", "0.53751254", "0.5369001", "0.53681326", "0.53628147", "0.53617555", "0.5359757", "0.5353594", "0.5336992", "0.5333974", "0.53297347", "0.5328893", "0.5325617", "0.5316506", "0.53095245", "0.5307442", "0.53023845", "0.53010607", "0.52928287", "0.52910906", "0.52888024", "0.52789354", "0.52784246", "0.5277981", "0.52687484", "0.52683634", "0.52683634", "0.52683634", "0.52683634", "0.5262535", "0.52601206", "0.5259913", "0.5254491", "0.5250978", "0.52500147", "0.5249485", "0.52472585", "0.52466553", "0.5243811", "0.5235944", "0.5235233" ]
0.7479841
0
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc= new Scanner(System.in); System.out.println("Enter the number of queens"); int n=sc.nextInt(); int[] X= new int[n]; int k=0; for(int i=0;i<n;i++) { X[i]=0; } while(k>=0) { X[k]=X[k]+1; while(X[k]<=n && !place(k,X)) { X[k]=X[k]+1; } if(X[k]<=n) { if(k==n-1) { for(int m=0;m<n;m++) { System.out.print(X[m]+" "); } break; } else { k=k+1; X[k]=0; } } else { k=k-1; } } }
{ "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
Get all the views which matches the given Tag recursively
public static List<View> findAllViewsWithTag(ViewGroup root, Object tag){ List<View> allViews = new ArrayList<View>(); final int childCount = root.getChildCount(); for(int i=0; i<childCount; i++){ final View childView = root.getChildAt(i); if(childView instanceof ViewGroup){ allViews.addAll(findAllViewsWithTag((ViewGroup)childView, tag)); } else{ final Object tagView = childView.getTag(); if(tagView != null && tagView.equals(tag)) allViews.add(childView); } } return allViews; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<View> findViewsWithTag(View view, Object tag) {\n List<View> viewsWithTag = new ArrayList<>();\n if (view instanceof ViewGroup) {\n for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {\n viewsWithTag.addAll(findViewsWithTag(((ViewGroup) view).getChildAt(i), tag));\n }\n }\n if (view.getTag() != null && view.getTag().equals(tag)) {\n viewsWithTag.add(view);\n }\n return viewsWithTag;\n }", "private static ArrayList<View> getViewsByTag(ViewGroup root, String tag){\n ArrayList<View> views = new ArrayList<>();\n final int childCount = root.getChildCount();\n for (int i = 0; i < childCount; i++) {\n final View child = root.getChildAt(i);\n if (child instanceof ViewGroup) {\n views.addAll(getViewsByTag((ViewGroup) child, tag));\n }\n final Object tagObj = child.getTag();\n if (tagObj != null && tagObj.toString().equals(tag)) {\n views.add(child);\n }\n }\n return views;\n }", "public static ArrayList<View> getViewsByTag(ViewGroup root, String tag){\n ArrayList<View> views = new ArrayList<View>();\n final int childCount = root.getChildCount();\n for (int i = 0; i < childCount; i++) {\n final View child = root.getChildAt(i);\n if (child instanceof ViewGroup) {\n views.addAll(getViewsByTag((ViewGroup) child, tag));\n }\n\n final Object tagObj = child.getTag();\n if (tagObj != null && tagObj.equals(tag)) {\n views.add(child);\n }\n }\n return views;\n }", "ITagView getTagView();", "Views getViews();", "private void findViews() {\n jurgen = (ImageView) findViewById(R.id.jurgen_view);\n jurgen.setTag(JURGEN_VIEW_TAG);\n joost = (ImageView) findViewById(R.id.joost_view);\n joost.setTag(JOOST_VIEW_TAG);\n nick = (ImageView) findViewById(R.id.nick_view);\n nick.setTag(NICK_VIEW_TAG);\n stijn = (ImageView) findViewById(R.id.stijn_view);\n stijn.setTag(STIJN_VIEW_TAG);\n }", "public static ArrayList<View> getAllChildrenInView(View view) {\n ArrayList<View> result = null;\n try {\n if (!(view instanceof ViewGroup)) {\n ArrayList<View> viewArrayList = new ArrayList<>();\n viewArrayList.add(view);\n return viewArrayList;\n }\n result = new ArrayList<>();\n ViewGroup viewGroup = (ViewGroup) view;\n for (int i = 0; i < viewGroup.getChildCount(); i++) {\n\n View child = viewGroup.getChildAt(i);\n\n ArrayList<View> viewArrayList = new ArrayList<>();\n viewArrayList.add(view);\n viewArrayList.addAll(getAllChildrenInView(child));\n\n result.addAll(viewArrayList);\n }\n } catch (Exception e) {\n Log.d(TAG, \"getAllChildrenInView: \"+e); }\n return result;\n }", "@Override\n\tpublic List<TagInstance> searchTags(List<TagType> tags) {\n List<MarkedUpText> texts = getDescendantTexts();\n \n List<TagInstance> tagInstances = new LinkedList<TagInstance>();\n for(MarkedUpText t: texts) {\n tagInstances.addAll(t.searchTags(tags));\n }\n return tagInstances;\n\t}", "List<Tag<? extends Type>> getChildren();", "public List<ITuple> listByTag(String tag) {\n\t\tsynchronized(cache) {\n\t\t\tList<ITuple> result = new ArrayList<ITuple>();\n\t\t\tIterator<String>itr = cache.keySet().iterator();\n\t\t\tString id;\n\t\t\tITuple t;\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tid = itr.next();\n\t\t\t\tt = cache.get(id);\n\t\t\t\tif (tag.equals(\"*\"))\n\t\t\t\t\tresult.add(t);\n\t\t\t\telse if (t.getTag().equals(tag))\n\t\t\t\t\tresult.add(t);\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}", "List<IViewRelation> getViewRelations();", "private void findAllViews(View view) {\n recyclerView = view.findViewById(R.id.news_recycler_view);\n emptyView = view.findViewById(R.id.empty_view);\n progressBar = view.findViewById(R.id.progress_bar);\n swipeRefreshLayout = view.findViewById(R.id.swipe_container);\n }", "public List<Movie> getMoviesByTag(String tag)\n\t{\n\t\tList<Movie> searchRes = new ArrayList<Movie>();\n\t\tfor(Integer key:movies.keySet()) {\n\t\t\tif(movies.get(key).tags.contains(tag)) {\n\t\t\t\tsearchRes.add(movies.get(key));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn searchRes;\n\t}", "java.util.List<MateriliazedView>\n getViewsList();", "private List<View> getAllChildrenBFS(View v) {\n List<View> visited = new ArrayList<View>();\n List<View> unvisited = new ArrayList<View>();\n unvisited.add(v);\n\n while (!unvisited.isEmpty()) {\n View child = unvisited.remove(0);\n visited.add(child);\n if (!(child instanceof ViewGroup)) continue;\n ViewGroup group = (ViewGroup) child;\n final int childCount = group.getChildCount();\n for (int i=0; i<childCount; i++) unvisited.add(group.getChildAt(i));\n }\n return visited;\n }", "MateriliazedView getViews(int index);", "List<MetaTag> findAll();", "public List<View> getActivityViews(Activity activity) {\n\t\tView[] decorViews = getWindowDecorViews();\n\t\tView currentDecorView = null;\n\t\tList<View> viewList = new ArrayList<View>();\n\t\t\n\t\tfor (int iDecorView = 0; iDecorView < decorViews.length; iDecorView++) {\n\t\t\tif (decorViews[iDecorView].getContext() == activity) {\n\t\t\t\tcurrentDecorView = decorViews[iDecorView];\n\t\t\t\taddChildren((ViewGroup) currentDecorView, viewList);\n\t\t\t}\n\t\t}\n\t\treturn viewList;\n\t}", "public void getViews() {\n cameraButton = (ImageButton) findViewById(R.id.cameraButton);\n galleryButton = (ImageButton)findViewById(R.id.galleryButton);\n tagText = (TextView) findViewById(R.id.tag_text);\n }", "@Override\n\tpublic List<BaiVietModel> findBaiVietByTag(String tag) {\n\t\treturn baiVietByTagDAO.findBaiVietByTag(tag);\n\t}", "public List<Tag> findAll() {\n\t\treturn tagRepository.findAll();\n\t}", "private void findViews(View view) {\n list = (RecyclerView)view.findViewById(R.id.listview);\n\n GridLayoutManager layoutManager = new GridLayoutManager(getActivity(), 2);\n\n list.setLayoutManager(layoutManager);\n list.setHasFixedSize(true);\n\n// imageView = (PhotoDraweeView) view.findViewById(R.id.imageView);\n// imageGallery = (RelativeLayout) view.findViewById(R.id.imageGallery);\n// imageGallery.setVisibility(View.GONE);\n }", "@Override\n Flux<Tag> findAll();", "TextView getTagView();", "@Override\r\n\tpublic Set<Visit> findAll() {\n\t\treturn super.findAll();\r\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @RolesAllowed({\"admin\", \"simple\"})\n public List<Tag> listAll(@Context UriInfo uriInfo) {\n Long taskId = (uriInfo.getPathSegments().size() != 1?\n Long.valueOf(uriInfo.getPathSegments().get(3).getPath())\n :null);\n\n List<Tag> result ;\n\n if (taskId != null) {\n result = em.createQuery(\"SELECT t FROM Tag t INNER JOIN t.tasks p WHERE p.id = :taskId\", Tag.class)\n .setParameter(\"taskId\",taskId)\n .getResultList();\n } else {\n result = em.createQuery(\"SELECT t FROM Tag t\", Tag.class).getResultList();\n }\n return result;\n }", "public String seachTag(Tags tag) {\r\n String tagC = tag.getContent();\r\n\r\n boolean match;\r\n String[] hitCount = new String[(Main.mainObj.projectObj.textFiles.size() * 2)];\r\n int hitIndex = 0;\r\n String returnString = tag.getName()+\": \"+tag.getContent()+\"\\n\";\r\n \r\n for (Document d : Main.mainObj.projectObj.textFiles) {\r\n match = false;\r\n //track file name\r\n returnString+= d.getFileTitle()+\": \";\r\n //track file's hit rate\r\n String doc = d.getContent().toLowerCase();\r\n String useTag = tagC.toLowerCase();\r\n int temp = StringUtils.countMatches(doc, useTag);\r\n returnString += temp+\" --- \";\r\n returnString += Stats.findStats(doc,useTag)+ \"% of Document\\n\";\r\n hitCount[hitIndex] = String.valueOf(temp);\r\n hitIndex++;\r\n\r\n }\r\n return returnString+\"\\n\";\r\n\r\n }", "List<Tag> getTagList();", "List<Tag> getTagList();", "@RequestMapping(\"items/search/itemtag\")\n public String searchByItemTags(HttpServletRequest request, Model model)\n {\n String searchString = request.getParameter(\"search\");\n model.addAttribute(\"search\", searchString);\n model.addAttribute(\"items\",\n items.findAllByItemTagsContainingIgnoreCase(searchString));\n return \"allitems\";\n }", "public List<TagPregunta> findMatchingTags(String parcial);", "public List<Tag> getTagList();", "List<Tag> getTagsByKeys(Collection<String> keys);", "public List<ITag> getTags ();", "@SuppressWarnings(\"unchecked\")\n\tpublic List<TagMapping> findAll() {\n\t\tList<TagMapping> tagMap = list(namedQuery(\"com.wpff.core.TagMapping.findAll\"));\n\t\treturn tagMap;\n\t}", "public List<SentenceStructure> getSentencesByTagPattern(String tagPattern) {\n\t\tList<SentenceStructure> sentences = new LinkedList<SentenceStructure>();\n\t\tIterator<SentenceStructure> iter = this.getSentenceHolderIterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tSentenceStructure sentenceItem = iter.next();\n\t\t\tString tag = sentenceItem.getTag();\n\t\t\tif (StringUtility.isMatchedNullSafe(tag, tagPattern)) {\n\t\t\t\tsentences.add(sentenceItem);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn sentences;\n\t}", "public List getTags();", "private String determineViewTag() {\r\n\t\tif (viewTag == null) {\r\n\t\t\tviewTag = ClearCaseUtils.getViewTag(getViewPath(), getProject());\r\n\t\t}\r\n\t\treturn viewTag;\r\n\t}", "private static ArrayDeque<View> m36213i(View view) {\n ArrayDeque<View> arrayDeque = new ArrayDeque<>();\n int i = 0;\n View view2 = view;\n while (true) {\n if (view2.getParent() == null && view2 != view.getRootView()) {\n break;\n }\n i++;\n if (i <= 50) {\n arrayDeque.add(view2);\n if (!(view2.getParent() instanceof View)) {\n break;\n }\n view2 = (View) view2.getParent();\n } else {\n C10969p.m36113a(3, \"VisibilityInfo\", (Object) null, \"Short-circuiting chain retrieval, reached max\");\n break;\n }\n }\n return arrayDeque;\n }", "public ArrayList<ContentTag> getContentTagByAllTags(ContentTagRequest contentTagRequest){\n\n Integer[] tagArray = contentTagRequest.getTagIdArray();\n Set<Integer> usedIDs = new HashSet<>();\n ArrayList<ContentTag> contentTags = new ArrayList<>();\n\n for(Integer tag : tagArray){\n\n Iterable<ContentTag> contentTags1 = contentTagRepository.findByTagID(tag);\n\n for(ContentTag contentTag : contentTags1){\n\n if(usedIDs.contains(contentTag.getContentID())) {\n //Do Nothing\n }\n else{\n usedIDs.add(contentTag.getContentID());\n contentTags.add(contentTag);\n }\n }\n }\n contentTags.sort(Comparator.comparing(a -> a.getContentID()));\n Collections.reverse(contentTags);\n return contentTags;\n }", "private void findViews() {\n // Buttons first\n closeBtn = (ImageButton) findViewById(getApplication().getResources().getIdentifier(\"closeBtn\", \"id\", getApplication().getPackageName()));\n shareBtn = (ImageButton) findViewById(getApplication().getResources().getIdentifier(\"shareBtn\", \"id\", getApplication().getPackageName()));\n\n //ProgressBar\n loadingBar = (ProgressBar) findViewById(getApplication().getResources().getIdentifier(\"loadingBar\", \"id\", getApplication().getPackageName()));\n // Image Container\n image = (TouchImageView) findViewById(getApplication().getResources().getIdentifier(\"imageView\", \"id\", getApplication().getPackageName()));\n \n\n // Title TextView\n titleTxt = (TextView) findViewById(getApplication().getResources().getIdentifier(\"titleTxt\", \"id\", getApplication().getPackageName()));\n }", "List<ViewResourcesMapping> get(String viewResourceId) throws Exception;", "public boolean anyTagFound (Tags selTags) {\n\n boolean tagSelected = false;\n if (selTags == null || selTags.length() == 0) {\n tagSelected = true;\n } else {\n int i = 0;\n String selTag = selTags.getTag(i);\n while (selTag.length() > 0 && (! tagSelected)) {\n tagSelected = tagFound (selTag);\n if (! tagSelected) {\n i++;\n selTag = selTags.getTag(i);\n }\n } // While more item tags for comparision \n } // End if we have selection tags\n return tagSelected;\n }", "@Override\n public java.util.List<MateriliazedView> getViewsList() {\n return views_;\n }", "@SuppressWarnings(\"unchecked\")\n public List<TagMapping> findTagMappingsByTagId(int userId, int tagId) {\n List<TagMapping> tagMap = list(\n namedQuery(\"com.wpff.core.TagMapping.getTagMappingsForUserAndTagIds\")\n .setParameter(\"user_id\", userId)\n .setParameter(\"tag_id\", tagId));\n \n return tagMap;\n }", "private void findViews() {\r\n\t\t// Buttons first\r\n\t\tcloseBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"closeBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\tshareBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"shareBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\t// Photo Container\r\n\t\tphoto = (ImageView) findViewById( getApplication().getResources().getIdentifier(\"photoView\", \"id\", getApplication().getPackageName()) );\r\n\t\twarning = this.getResources().getIdentifier(\"warning\", \"drawable\", getApplication().getPackageName());\r\n\t\tplace = this.getResources().getIdentifier(\"no_media\", \"drawable\", getApplication().getPackageName());\r\n\t\tmAttacher = new PhotoViewAttacher(photo);\r\n\t\t// Title TextView\r\n\t\t//titleTxt = (TextView) findViewById( getApplication().getResources().getIdentifier(\"titleTxt\", \"id\", getApplication().getPackageName()) );\r\n\t\tprogress = (ProgressBar) findViewById( getApplication().getResources().getIdentifier(\"progressBar\", \"id\", getApplication().getPackageName()));\r\n\t}", "List<ViewDefinition> list();", "private List<Tag> getTags() {\r\n\r\n\t\treturn getTags(null);\r\n\r\n\t}", "private void findViews() {\n tabLayout = (TabLayout) findViewById(R.id.tab_layout);\r\n viewPager = (ViewPager) findViewById(R.id.view_pager);\r\n }", "private static void searchchildren(String keyword, Individual root, ListView<Individual> list) {\n\t\tif(root.getName().toLowerCase().contains(keyword.toLowerCase())){\n\t\t\t//System.out.println(root.getInfo());\n\t\t\tlist.getItems().add(root);\n\t\t\thits++;\n\t\t}\n\t\tif(root.getChildren()!=null){\n\t\t\tList<Individual> children = root.getChildren();\n\t\t\tfor(Individual e: children){\n\t\t\t\tsearchchildren(keyword, e, list);\n\t\t\t}\n\t\t}\n\t}", "private Collection<View> selectViewsByType(Collection<View> views, String type) {\n\t\tArrayList<View> result = new ArrayList<View>();\n\t\tfor (View nextView : views) {\n\t\t\tif (type.equals(nextView.getType()) && isOwnView(nextView)) {\n\t\t\t\tresult.add(nextView);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private void searchProductUsingtag(int tag) {\n\t\tboolean flag = false;\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i].getTag() == tag) {\r\n\t\t\t\tSystem.out.println(products[i].toString());\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(flag == false)\r\n\t\t\tSystem.out.println(\"해당하는 tag는 없습니다.\");\r\n\t}", "public List<ImageThumbnail> getImageThumbnails(String searchConstraints){\n //Places markers on treeItems.\n getFileMenu().getRoot().getChildren()\n .stream()\n .peek(treeItem -> treeItem.setGraphic(null))\n .flatMap(treeItem -> {\n if(treeItem.getValue().contains(searchConstraints) && !searchConstraints.isEmpty()) {\n ImageView fileHourGlass = new ImageView(\"/views/img/search.png\");\n fileHourGlass.setPreserveRatio(true);\n fileHourGlass.setFitWidth(17);\n fileHourGlass.setFitHeight(17);\n treeItem.setGraphic(fileHourGlass);\n }\n return treeItem.getChildren().stream();\n }).peek(treeItem -> treeItem.setGraphic(null))\n .forEach(treeItem -> {\n if(treeItem.getValue().contains(searchConstraints) && !searchConstraints.isEmpty()){\n ImageView fileHourGlass = new ImageView(\"/views/img/search.png\");\n fileHourGlass.setPreserveRatio(true);\n fileHourGlass.setFitWidth(17);\n fileHourGlass.setFitHeight(17);\n treeItem.setGraphic(fileHourGlass);\n if(treeItem.getParent().getGraphic() == null) {\n ImageView folderHourGlass = new ImageView(\"/views/img/search.png\");\n folderHourGlass.setPreserveRatio(true);\n folderHourGlass.setFitWidth(17);\n folderHourGlass.setFitHeight(17);\n treeItem.getParent().setGraphic(folderHourGlass);\n }\n }\n });\n //Places markers on treeItems.\n getTagsMenu().getRoot().getChildren()\n .stream()\n .peek(treeItem -> treeItem.setGraphic(null))\n .flatMap(treeItem -> {\n if(treeItem.getValue().contains(searchConstraints) && !searchConstraints.isEmpty()) {\n ImageView fileHourGlass = new ImageView(\"/views/img/search.png\");\n fileHourGlass.setPreserveRatio(true);\n fileHourGlass.setFitWidth(17);\n fileHourGlass.setFitHeight(17);\n treeItem.setGraphic(fileHourGlass);\n }\n return treeItem.getChildren().stream();\n }).peek(treeItem -> treeItem.setGraphic(null))\n .forEach(treeItem -> {\n if(treeItem.getValue().contains(searchConstraints) && !searchConstraints.isEmpty()){\n ImageView fileHourGlass = new ImageView(\"/views/img/search.png\");\n fileHourGlass.setPreserveRatio(true);\n fileHourGlass.setFitWidth(17);\n fileHourGlass.setFitHeight(17);\n treeItem.setGraphic(fileHourGlass);\n if(treeItem.getParent().getGraphic() == null) {\n ImageView folderHourGlass = new ImageView(\"/views/img/search.png\");\n folderHourGlass.setPreserveRatio(true);\n folderHourGlass.setFitWidth(17);\n folderHourGlass.setFitHeight(17);\n treeItem.getParent().setGraphic(folderHourGlass);\n }\n }\n });\n\n //Filters images based on search constraint\n return getFiles()\n .stream()\n .map(this::procureImageThumbnail)\n .filter(imageThumbnail -> imageThumbnail.getImageView().getId().contains(searchConstraints) ||\n IMAGE_DATA.get(IMAGES.inverse().get(imageThumbnail)).getTags().toString().contains(searchConstraints)\n || IMAGE_DATA.get(IMAGES.inverse().get(imageThumbnail)).getMetadata().toString().contains(searchConstraints))\n .collect(Collectors.toList());\n }", "private List<Class<?>> extractViews(List<Class<?>> views) {\n return views.subList(0, views.size() - 1);\n }", "Pattern getTagPattern();", "@Timed\n @RequestMapping(\n method = RequestMethod.GET,\n value = \"/views/**\"\n )\n public String handleViewsSubpaths(\n @Nonnull Model model\n ) {\n LOGGER.debug(\n \"handleViewsSubpaths called: {}\",\n HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE\n );\n return handleSinglePageApp(model);\n }", "@Override\n public List<INaviView> getViews() {\n List<INaviView> localCachedViews = m_cachedViews;\n\n if (localCachedViews == null) {\n final IFilter<INaviView> filter = getFilter();\n\n if (m_originContainer.isLoaded()) {\n localCachedViews =\n filter == null ? m_originContainer.getUserViews() : filter.get(m_originContainer\n .getUserViews());\n } else {\n localCachedViews = new ArrayList<INaviView>();\n }\n }\n\n CStaredItemFunctions.sort(localCachedViews);\n\n m_cachedViews = localCachedViews;\n return new ArrayList<INaviView>(localCachedViews);\n }", "public List<Tag> getAllTags() {\n\t\treturn DAO.getInstance().getTags().getTagList();\n\t}", "public void testTag() throws Exception {\n IProject project = createProject(\"testTag\", new String[] { \"changed.txt\", \"deleted.txt\", \"folder1/\", \"folder1/a.txt\", \"folder1/b.txt\", \"folder1/subfolder1/c.txt\" });\n \n tag(asResourceMapping(new IResource[] { project }, IResource.DEPTH_ONE), new CVSTag(\"v1\", CVSTag.VERSION));\n tag(asResourceMapping(new IResource[] { project.getFolder(\"folder1\") }, IResource.DEPTH_ONE), new CVSTag(\"v2\", CVSTag.VERSION));\n tag(asResourceMapping(new IResource[] { project.getFile(\"folder1/subfolder1/c.txt\") }, IResource.DEPTH_ZERO), new CVSTag(\"v3\", CVSTag.VERSION));\n tag(asResourceMapping(new IResource[] { project}, IResource.DEPTH_INFINITE), new CVSTag(\"v4\", CVSTag.VERSION));\n }", "private void findAll(View view) {\n facility_RGP_group = view.findViewById(R.id.search_RGP_facility);\n facility_EDT_value = view.findViewById(R.id.search_facility_EDT_value);\n facility_BTN_search = view.findViewById(R.id.search_facility_BTN_search);\n facility_RCV_result = view.findViewById(R.id.search_RCV_facilities);\n facility_LBL_results = view.findViewById(R.id.search_facility_LBL_results);\n }", "public Set<String> getViews() {\n return views;\n }", "@Test\n public void testGetAllByTags() {\n int size = dao.getSitesByHashTag(1).size();\n assertEquals(1, size);\n\n size = dao.getSitesByHashTag(2).size();\n assertEquals(2, size);\n\n size = dao.getSitesByHashTag(-1).size();\n assertEquals(0, size);\n }", "private void devideVorlage(List<TemplateTag> tags) throws MissingTagException{\r\n \t\tTreeSet<TemplateTag> sortedTags = new TreeSet<TemplateTag>();\r\n \t\tfor (TemplateTag tag:tags){\r\n \t\t\tint position = template.indexOf(tag.name);\r\n \t\t\tif(position > -1){\r\n \t\t\t\ttag.setPositions(position);\r\n \t\t\t\ttag.found = true;\r\n \t\t\t\tsortedTags.add(tag);\r\n \t\t\t}else{\r\n \t\t\t\tif(tag.required){\r\n \t\t\t\t\tthrow new MissingTagException(tag,templateFile);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\tdevidePointer = 0;\r\n \t\tfor (TemplateTag tag:sortedTags){\r\n \t\t\ttemplateParts.add(getHtmPart(tag));\r\n \t\t\ttag.templatePosition = templateParts.size();\r\n \t\t\ttemplateParts.add(\"\");\r\n \t\t}\r\n \t\ttemplateParts.add(template.substring(devidePointer, template.length()));\r\n \t}", "public List<Pregunta> getPreguntasConTag(TagPregunta tag);", "public List<Pregunta> getPreguntasConTag(String tag);", "private List<String> getTagNames() {\n String query = \"SELECT DISTINCT ?tagName WHERE { ?thing isa:tag [isa:tagName ?tagName; isa:tagDetail ?tagDetail]}\";\n List<Map<String, String>> results = moduleContext.getModel().executeSelectQuery(query);\n List<String> tags = new ArrayList<>();\n results.forEach(solution -> tags.add(solution.get(\"tagName\")));\n return tags;\n }", "ObservableList<Tag> getTagList();", "ObservableList<Tag> getTagList();", "public static List<View> getViewsById(@NonNull View root, @NonNull Resources res, int arrayId,\n @Nullable Filter filter) {\n TypedArray viewIds = res.obtainTypedArray(arrayId);\n List<View> views = new ArrayList<>(viewIds.length());\n for (int i = 0; i < viewIds.length(); i++) {\n int viewId = viewIds.getResourceId(i, 0);\n if (viewId != 0) {\n View view = root.findViewById(viewId);\n if (view != null && (filter == null || filter.isValid(view))) {\n views.add(view);\n }\n }\n }\n viewIds.recycle();\n return views;\n }", "private Pair<View, ChatsStruct> getChatPairWithTag(Object chatWindowTag) {\n Logger.d(TAG, \"getChatPairWithTag() entry the chatwindowTag is \"\n + chatWindowTag);\n if (null == chatWindowTag) {\n Logger.d(TAG, \"getChatPairWithTag() The chatWindowTag is null\");\n return null;\n }\n if (mData.isEmpty()) {\n Logger.d(TAG, \"getChatPairWithTag() The mData is empty\");\n return null;\n }\n Set<View> viewSet = mData.keySet();\n Iterator<View> viewIterator = viewSet.iterator();\n if (viewIterator == null) {\n Logger.d(TAG, \"getChatPairWithTag() The viewIterator is null\");\n return null;\n }\n while (viewIterator.hasNext()) {\n View view = viewIterator.next();\n if (view == null) {\n Logger.d(TAG, \"getChatPairWithTag() The view is null\");\n } else {\n Object obj = mData.get(view);\n if (obj == null) {\n Logger.d(TAG, \"getChatPairWithTag() The value is null\");\n } else {\n if (obj instanceof ChatsStruct) {\n ChatsStruct chatStruct = (ChatsStruct) obj;\n Object windowTag = chatStruct.getWindowTag();\n if (null != windowTag && chatWindowTag == windowTag) {\n Logger.d(TAG,\n \"getChatPairWithTag() find the specific window Tag\");\n Pair<View, ChatsStruct> tempPair = new Pair<View, ChatsStruct>(\n view, chatStruct);\n return tempPair;\n }\n }\n }\n }\n }\n return null;\n }", "public Object getTag(String tagName);", "@Override\n\tpublic List<Tags> getlist() {\n\t\treturn TagsRes.findAll();\n\t}", "private void getPhotoList(String query){\n for(Photo p : photolist){\n for(String s : p.getLocationTaglist()){\n if(s.toLowerCase().contains(query)){\n searchResult.add(p);\n break;\n }\n }\n for(String s : p.getPersonTaglist()){\n if(s.toLowerCase().contains(query)){\n searchResult.add(p);\n break;\n }\n }\n }\n }", "public XMLFindTagHandeler() {super(Object.class, \"FIND\", false);}", "private List<NamePartView> namePartViewList(TreeNode namePartStructure){\n\t\tList<NamePartView> namePartViews=Lists.newArrayList();\n for(TreeNode node: treeNodeManager.filteredNodeList(namePartStructure,true, false)){\n \tNamePartView namePartView =node.getData() instanceof NamePartView ? (NamePartView) node.getData() :null;\n \tNamePart namePart =namePartView!=null? namePartView.getNamePart():null;\n \tif(namePart!=null && (devicesBySection.containsKey(namePart)||devicesByDeviceType.containsKey(namePart))){\n \t\tnamePartViews.add(namePartView);\n \t}\n }\n return namePartViews;\n\t}", "protected Object getTag(View view) {\n return view.getTag();\n }", "public void findViews() {\n titleTextView = findViewById(R.id.song_title_text_view);\n artistTextView = findViewById(R.id.song_artist_text_view);\n albumCoverImg = findViewById(R.id.album_cover_img);\n albumTextView = findViewById(R.id.album_text_view);\n playButton = findViewById(R.id.play_button);\n nextButton = findViewById(R.id.next_button);\n backButton = findViewById(R.id.back_button);\n shuffleButton = findViewById(R.id.shuffle_button);\n repeatButton = findViewById(R.id.repeat_button);\n }", "UniqueTagList getTags();", "public Iterable<ContentTag> getContentTagsByTagID(Integer tagID){\n\n return contentTagRepository.findByTagID(tagID);\n }", "public List<String> getMTFromParentTag(String tag) {\n\t\tString modifier = \"\";\n\t\tString newTag = \"\";\n\n\t\tPattern p = Pattern.compile(\"^\\\\[(\\\\w+)\\\\s+(\\\\w+)\\\\]$\");\n\t\tMatcher m = p.matcher(tag);\n\t\tif (m.lookingAt()) {\n\t\t\tmodifier = m.group(1);\n\t\t\tnewTag = m.group(2);\n\t\t} else {\n\t\t\tp = Pattern.compile(\"^(\\\\w+)\\\\s+(\\\\w+)$\");\n\t\t\tm = p.matcher(tag);\n\t\t\tif (m.lookingAt()) {\n\t\t\t\tmodifier = m.group(1);\n\t\t\t\tnewTag = m.group(2);\n\t\t\t}\n\n\t\t}\n\t\tList<String> pair = new ArrayList<String>();\n\t\tpair.add(modifier);\n\t\tpair.add(newTag);\n\n\t\treturn pair;\n\t}", "java.util.List<? extends MateriliazedViewOrBuilder>\n getViewsOrBuilderList();", "@FXML\n\tprivate void searchByTag(ActionEvent event) throws IOException {\n\t\tArrayList<Photo> searchResults = new ArrayList<Photo>();\n\t\tif(andOrList.getSelectionModel().isEmpty()) {\n\t\t\tif(firstTagKey.getSelectionModel().isEmpty() || (firstTagValue.getText() == null || firstTagValue.getText().trim().isEmpty())) {\n\t\t\t\tAlert error = new Alert(AlertType.ERROR);\n\t\t\t\terror.setTitle(\"Error\");\n\t\t\t\terror.setHeaderText(\"Tag Search Error\");\n\t\t\t\terror.setContentText(\"No tag type is selected or a tag value has not been entered.\");\n\t\t\t\terror.showAndWait();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor(int i = 0; i<userAdmin.getUser(username).getAlbums().size();i++) {\n\t\t\t\t\tfor(int j =0; j<userAdmin.getUser(username).getAlbums().get(i).getPhotos().size();j++) {\n\t\t\t\t\t\tfor(int k = 0; k<userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j).getTags().size(); k++){\n\t\t\t\t\t\t\tif(userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j).getTags().get(k).getKeyTag().toLowerCase().equals(firstTagKey.getSelectionModel().getSelectedItem().toLowerCase()) && userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j).getTags().get(k).getValueTag().toLowerCase().equals(firstTagValue.getText().toLowerCase())) {\n\t\t\t\t\t\t\t\tsearchResults.add(userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j));\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif(firstTagKey.getSelectionModel().isEmpty() || (firstTagValue.getText() == null || firstTagValue.getText().trim().isEmpty()) || secondTagKey.getSelectionModel().isEmpty() || (secondTagValue.getText() == null || secondTagValue.getText().trim().isEmpty()) ) {\n\t\t\t\tAlert error = new Alert(AlertType.ERROR);\n\t\t\t\terror.setTitle(\"Error\");\n\t\t\t\terror.setHeaderText(\"Tag Search Error\");\n\t\t\t\terror.setContentText(\"Tag type or Tag Values are empty.\");\n\t\t\t\terror.showAndWait();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(andOrList.getSelectionModel().getSelectedItem().equals(\"or\")){\n\t\t\t\t\tfor(int i = 0; i<userAdmin.getUser(username).getAlbums().size();i++) {\n\t\t\t\t\t\tfor(int j =0; j<userAdmin.getUser(username).getAlbums().get(i).getPhotos().size();j++) {\n\t\t\t\t\t\t\tfor(int k = 0; k<userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j).getTags().size(); k++){\n\t\t\t\t\t\t\t\tif((userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j).getTags().get(k).getKeyTag().toLowerCase().equals(firstTagKey.getSelectionModel().getSelectedItem().toLowerCase())\n\t\t\t\t\t\t\t\t\t&& userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j).getTags().get(k).getValueTag().toLowerCase().equals(firstTagValue.getText().toLowerCase())) \n\t\t\t\t\t\t\t\t\t|| userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j).getTags().get(k).getKeyTag().toLowerCase().equals(secondTagKey.getSelectionModel().getSelectedItem().toLowerCase())\n\t\t\t\t\t\t\t\t\t&& userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j).getTags().get(k).getValueTag().toLowerCase().equals(secondTagValue.getText().toLowerCase())){\n\t\t\t\t\t\t\t\t\tsearchResults.add(userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j));\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}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor(int i = 0; i<userAdmin.getUser(username).getAlbums().size();i++) {\n\t\t\t\t\t\tfor(int j =0; j<userAdmin.getUser(username).getAlbums().get(i).getPhotos().size();j++) {\n\t\t\t\t\t\t\tfor(int k = 0; k<userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j).getTags().size(); k++){\n\t\t\t\t\t\t\t\tif(userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j).getTags().get(k).getKeyTag().toLowerCase().equals(firstTagKey.getSelectionModel().getSelectedItem().toLowerCase())\n\t\t\t\t\t\t\t\t\t\t&& userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j).getTags().get(k).getValueTag().toLowerCase().equals(firstTagValue.getText().toLowerCase())){\n\t\t\t\t\t\t\t\t\tfor(int l=0;l<userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j).getTags().size(); l++) {\n\t\t\t\t\t\t\t\t\t\tif(userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j).getTags().get(l).getKeyTag().toLowerCase().equals(secondTagKey.getSelectionModel().getSelectedItem().toLowerCase())\n\t\t\t\t\t\t\t\t\t\t\t\t&& userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j).getTags().get(l).getValueTag().toLowerCase().equals(secondTagValue.getText().toLowerCase())) {\n\t\t\t\t\t\t\t\t\t\t\tsearchResults.add(userAdmin.getUser(username).getAlbums().get(i).getPhotos().get(j));\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(searchResults.isEmpty()) {\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION);\n\t\t\talert.setTitle(\"Search Results\");\n\t\t\talert.setHeaderText(\"Search Results\");\n\t\t\talert.setContentText(\"No photos were found that match your criteria.\");\n\t\t\talert.showAndWait();\n\t\t}\n\t\telse {\n\t\t\tfor(int i = 0; i<searchResults.size();i++) {\n\t\t\t\tfor(int j =i+1;j<searchResults.size();j++) {\n\t\t\t\t\tif(searchResults.get(i).getFilepath().toString().equals(searchResults.get(j).getFilepath().toString())){\n\t\t\t\t\t\tsearchResults.remove(j);\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(andOrList.getSelectionModel().isEmpty()) {\n\t\t\t\tSearchResultsController.search = firstTagKey.getValue().toString() + \":\" + firstTagValue.getText().toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSearchResultsController.search = firstTagKey.getValue().toString() + \":\" + firstTagValue.getText().toString() + \" \" + andOrList.getValue().toString() + \" \" + secondTagKey.getValue().toString() + \":\" + secondTagValue.getText().toString(); \n\t\t\t}\n\t\t\tSearchResultsController.username = username;\n\t\t\tSearchResultsController.searchResults = searchResults;\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(getClass().getClassLoader().getResource(\"view/SearchResultsView.fxml\"));\n\t\t\tPane pane = (Pane)loader.load();\n\t\t\tSearchResultsController src = loader.getController();\n\t\t\tStage stage = new Stage();\n\t\t\tsrc.start(stage);\n\t\t\tstage.setTitle(\"Search Results\");\n\t\t\tstage.setScene(new Scene(pane));\n\t\t\tstage.setResizable(false);\n\t\t\tstage.show();\n\t\t\t((Node)(event.getSource())).getScene().getWindow().hide();\n\t\t}\n\t}", "public List<Suggestion> searchByTag(String tag) {\n List<Suggestion> sugs = libraryDao.getSuggestionsByTag(tag);\n if (sugs == null) {\n return new ArrayList<Suggestion>();\n }\n return sugs;\n }", "default public List<View> getViewsForUserId(long userId){\n\t\tthrow DefaultHandler.notSupported();\n\t}", "@Override\r\n public List<Visitors> visfindAll() {\n return userMapper.visfindAll();\r\n }", "@Override\n\tpublic void staticFindViewByView() {\n\t\t\n\t}", "public boolean matchesTag(int tag) {\n if (super.matchesTag(tag)) {\n return true;\n }\n if (this.mLayout != null) {\n Spanned text = (Spanned) this.mLayout.getText();\n for (RCTRawText span : (RCTRawText[]) text.getSpans(0, text.length(), RCTRawText.class)) {\n if (span.getReactTag() == tag) {\n return true;\n }\n }\n }\n return false;\n }", "static List<PsiFile> findViewFiles(String relativePath, Project project) {\n PsiManager psiManager = PsiManager.getInstance(project);\n\n // If no extension is specified, it's a PHP file\n relativePath = PhpExtensionUtil.addIfMissing(relativePath);\n\n List<PsiFile> viewFiles = new ArrayList<>();\n for (PsiFileSystemItem fileSystemItem : getViewDirectories(project)) {\n VirtualFile viewDirectory = fileSystemItem.getVirtualFile();\n VirtualFile viewFile = viewDirectory.findFileByRelativePath(relativePath);\n if (viewFile != null && !viewFile.isDirectory()) {\n PsiFile psiFile = psiManager.findFile(viewFile);\n if (psiFile != null) {\n viewFiles.add(psiFile);\n }\n }\n }\n return viewFiles;\n }", "public static List<Tag> getAllTags() {\n\t\treturn Arrays.asList(\n\t\t\t\tnew Tag(\"home\", Color.parseColor(\"#3F91EB\")),\n\t\t\t\tnew Tag(\"work\", Color.parseColor(\"#CF4647\")),\n\t\t\t\tnew Tag(\"other\", Color.parseColor(\"#85D95B\"))\n\t\t);\n\t}", "public static __Tag getTagSub(String tag) {\n\t return map.get(tag);\n\t}", "public static __Tag getTagSub(String tag) {\n\t return map.get(tag);\n\t}", "private List<String> getAllTagsOfUser(Integer userId){\n \t List<String> openTags = new ArrayList<String>();\n \t DataLayerFactory factory = new DataLayerFactory(db);\n \t PostDataLayer postDataLayer = factory.createPostDataLayer();\n \t List<Question> userQuestions = postDataLayer.getQuestionsOfUser(userId, OrderCriteria.CREATION_DATE);\n \t for (Question question : userQuestions) \n \t\t for (String tag : question.getTags()) {\n\t\t\t\tif (!openTags.contains(tag)) {\n\t\t\t\t\topenTags.add(tag);\n\t\t\t\t}\n\t\t\t}\n \t\t\t\n \t return openTags;\n \t\t}", "public List<ContentItem> getTaggedPages() {\r\n\t\tList<Tag> tagResources = taggingService.getAllTags();\r\n\t\tList<ContentItem> pagesX = new ArrayList<ContentItem>();\r\n\t\tList<ContentItem> pagesFinal = new ArrayList<ContentItem>();\r\n\t\tSet<String> pagesTitle = new HashSet<String>();\r\n\t\t\tfor (Tag tag : tagResources){\r\n\t\t\t\tpagesX = taggingService.listTaggedItems(tag.getTaggingResource());\r\n\t\t\t\tfor (ContentItem page: pagesX){\r\n\t\t\t\t\tif (page!=null && !pagesTitle.contains(page.getTitle()) ) {\r\n\t\t\t\t\t\tpagesTitle.add(page.getTitle());\r\n\t\t\t\t\t\tpagesFinal.add(page);\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn pagesFinal;\r\n\t}", "public ArrayList<ArrayList<Tag>> getAllTagLists() {\n return tags;\n }", "private void findViews() {\n mListView = (ListView) mFragment.findViewById(R.id.line_friend_list);\n }", "public List<TodoTag> getAllTodosTags() {\n List<TodoTag> todoTags = new ArrayList<TodoTag>();\n String vyber = \"SELECT * FROM \" + TABLE_TODO_TAG;\n \n Log.e(LOG, vyber);\n \n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(vyber, null);\n \n if (c.moveToFirst()) {\n do {\n \tTodoTag t = new TodoTag();\n t.setId(c.getInt((c.getColumnIndex(KEY_ID))));\n t.setTodo_id(c.getInt(c.getColumnIndex(KEY_TODO_ID)));\n t.setTag_id(c.getInt(c.getColumnIndex(KEY_TAG_ID)));\n todoTags.add(t);\n } while (c.moveToNext());\n }\n return todoTags;\n }", "@FactoryFunc\r\n @JsArray(Node.class)\r\n\t@Function NodeList getElementsByTagName(String tagname);", "public java.util.List<MateriliazedView.Builder>\n getViewsBuilderList() {\n return getViewsFieldBuilder().getBuilderList();\n }", "public List<AccessibilityNodeInfo> findAccessibilityNodeInfosByViewId(String viewId) {\n/* 624 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic List<Tag> getAllTags() throws Exception {\n\t\treturn null;\n\t}" ]
[ "0.7655189", "0.75206625", "0.71229184", "0.5453872", "0.5322916", "0.53173995", "0.52919763", "0.52515936", "0.5234785", "0.5187906", "0.51080614", "0.50963145", "0.50461066", "0.50163937", "0.49356043", "0.49265668", "0.4894596", "0.48920822", "0.489026", "0.48844042", "0.48433706", "0.48204762", "0.480981", "0.4803217", "0.4780552", "0.4763133", "0.4758619", "0.4754654", "0.4754654", "0.47413346", "0.47371677", "0.47281554", "0.46974948", "0.46906716", "0.46879178", "0.4686791", "0.46493554", "0.46486083", "0.46231827", "0.46200702", "0.46183562", "0.46147063", "0.4612221", "0.46095735", "0.45948568", "0.45932886", "0.4587533", "0.4583259", "0.45776734", "0.4567238", "0.4564896", "0.4559708", "0.45396203", "0.45333645", "0.45223936", "0.45074785", "0.45062733", "0.449642", "0.44941485", "0.44893757", "0.447998", "0.44606772", "0.4458737", "0.44567183", "0.445553", "0.44551995", "0.44537753", "0.44537753", "0.44517773", "0.4444849", "0.44321817", "0.44270387", "0.4420585", "0.44157627", "0.44097564", "0.44045332", "0.43986502", "0.43770695", "0.43745777", "0.43733528", "0.43708304", "0.43628365", "0.43577665", "0.43571976", "0.4351242", "0.43492723", "0.43454948", "0.43437082", "0.43385926", "0.43159705", "0.43159705", "0.42953694", "0.42864457", "0.4281038", "0.4264578", "0.42612782", "0.42548728", "0.4248978", "0.42358178", "0.42342907" ]
0.7360436
2
a type for set of strings interface.
interface Set { boolean contains(String s); void add(String s); // notice that void means Set will be mutated. // => no longer functional. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StringSet() {\r\n\t\tsuper();\r\n\t}", "public interface SetOfStrings\n{\n\n /**\n * Determine if the set contains a particular string.\n */\n public boolean contains(String str);\n\n /**\n * Add an element to the set.\n * \n * @post contains(str)\n */\n public void add(String str);\n\n /**\n * Remove an element from the set.\n * \n * @post !contains(str)\n */\n public void remove(String str);\n}", "public static PropertyDescriptionBuilder<Set<String>> setOfStringsProperty(String name) {\n // Trick to work-around type erasure\n // https://stackoverflow.com/a/30754982/2535153\n @SuppressWarnings(\"unchecked\")\n Class<Set<String>> clazz = (Class<Set<String>>)(Class<?>)Set.class;\n return PropertyDescriptionBuilder.start(name, clazz, Parsers.parseSet(Parsers::parseString));\n }", "protected abstract Set<String> _addToSet(String key, Collection<String> str);", "<V extends Object> Set<V> getSet(String setName);", "public StringSet(HashSet<String> strings) {\r\n\t\tsuper();\r\n\t\tthis.strings = strings;\r\n\t}", "private static HashSet<String> set(String... s)\r\n {\r\n return new HashSet<>(Arrays.asList(s));\r\n }", "protected abstract Set<String> _removeFromSet(String key, Collection<String> str);", "@Test\r\n public void addToStringSet() throws Exception {\r\n TreeSet<String> s = new TreeSet<>();\r\n assertTrue(s.add(\"kek\"));\r\n assertTrue(s.contains(\"kek\"));\r\n }", "abstract CharArraySet build();", "public static Set<String> createSet() {\n Set<String> set = new HashSet<>();\n set.add(\"lesson\");\n set.add(\"large\");\n set.add(\"link\");\n set.add(\"locale\");\n set.add(\"love\");\n set.add(\"light\");\n set.add(\"limitless\");\n set.add(\"lion\");\n set.add(\"line\");\n set.add(\"lunch\");\n set.add(\"level\");\n set.add(\"lamp\");\n set.add(\"luxurious\");\n set.add(\"loop\");\n set.add(\"last\");\n set.add(\"lie\");\n set.add(\"lose\");\n set.add(\"lecture\");\n set.add(\"little\");\n set.add(\"luck\");\n\n return set;\n }", "public interface Set<Type> {\r\n\r\n\t/**\r\n\t * Ensures that this set contains the specified item.\r\n\t * \r\n\t * @param item\r\n\t * - the item whose presence is ensured in this set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if the input item was actually inserted); otherwise, returns\r\n\t * false\r\n\t */\r\n\tpublic boolean add(Type item);\r\n\r\n\t/**\r\n\t * Ensures that this set contains all items in the specified collection.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items whose presence is ensured in this\r\n\t * set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if any item in the input collection was actually inserted);\r\n\t * otherwise, returns false\r\n\t */\r\n\tpublic boolean addAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Removes all items from this set. The set will be empty after this method\r\n\t * call.\r\n\t */\r\n\tpublic void clear();\r\n\r\n\t/**\r\n\t * Determines if there is an item in this set that is equal to the specified\r\n\t * item.\r\n\t * \r\n\t * @param item\r\n\t * - the item sought in this set\r\n\t * @return true if there is an item in this set that is equal to the input\r\n\t * item; otherwise, returns false\r\n\t */\r\n\tpublic boolean contains(Type item);\r\n\r\n\t/**\r\n\t * Determines if for each item in the specified collection, there is an item\r\n\t * in this set that is equal to it.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items sought in this set\r\n\t * @return true if for each item in the specified collection, there is an\r\n\t * item in this set that is equal to it; otherwise, returns false\r\n\t */\r\n\tpublic boolean containsAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Returns true if this set contains no items.\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n\t/**\r\n\t * Returns the number of items in this set.\r\n\t */\r\n\tpublic int size();\r\n}", "@Test\r\n public void addAllFromSetWithStrings() throws Exception {\r\n TreeSet<String> s = new TreeSet<>();\r\n s.addAll(sStr);\r\n assertTrue(s.contains(\"kek\"));\r\n assertTrue(s.contains(\"lel\"));\r\n assertTrue(s.contains(\"lol\"));\r\n }", "public void mo16912a(String str, Set<String> set) {\n try {\n this.f9119b.edit().putStringSet(str, set).apply();\n } catch (Throwable unused) {\n }\n }", "public Set<String> mo16916b(String str, Set<String> set) {\n try {\n return this.f9119b.getStringSet(str, set);\n } catch (Throwable unused) {\n return set;\n }\n }", "public static StringSetFieldBuilder of() {\n return new StringSetFieldBuilder();\n }", "public HashSet<String> getStrings() {\r\n\t\treturn this.strings;\r\n\t}", "public static Set typedSet(Set set, Class type) {\n/* 205 */ return TypedSet.decorate(set, type);\n/* */ }", "public StringSetFieldBuilder value(final java.util.List<String> value) {\n this.value = value;\n return this;\n }", "public static MekString[] getMekStringArray(){\n\t\treturn setOfStrings;\n\t}", "Set<String> tags();", "Set<String> getBaseTypes();", "public void setT(List<String> e);", "@Override\n public int hashCode() {\n return strings.hashCode();\n }", "private void addTypedStrings(Set<String> set, String hdr) {\n BundlesG globals = getRTParent().getRootBundles().getGlobals(); Set<String> to_add = new HashSet<String>();\n\tSet<BundlesDT.DT> datatypes = globals.getFieldDataTypes(globals.fieldIndex(hdr));\n\n // In transformed datatypes (e.g., dstip|ORG), the datatypes lookup fails and a null is returned. I'm\n // unsure if the following will further break the selection/filtered data views -- the underlying assumption\n // in the original implementation was that all of the entities were strongly typed... however, for IP Org\n // lookups, this is clearly not the case.\n if (datatypes == null) return;\n\n\tIterator<BundlesDT.DT> it_dt = datatypes.iterator();\n\twhile (it_dt.hasNext()) {\n\t BundlesDT.DT dt = it_dt.next();\n\t Iterator<String> it = set.iterator();\n while (it.hasNext()) {\n\t String str = it.next();\n\t if (BundlesDT.stringIsType(str, dt)) to_add.add(hdr + BundlesDT.DELIM + str);\n\t }\n\t}\n\tset.addAll(to_add);\n }", "public interface Set<E> {\n\t\n\t/**\n\t * Returns true if the element is contained in the set\n\t * @param element\n\t * @return\n\t */\n\tpublic boolean contains(E element);\n\t\n\t/**\n\t * Adds the element to the set if the element is not already in the set\n\t * @param element\n\t */\n\tpublic void put(E element);\n\t\n\t/**\n\t * Returns the size of the set\n\t * @return\n\t */\n\tpublic int size();\n\t\n\t/**\n\t * Returns an iterator over all the elements in the set in an arbitrary order\n\t * @return\n\t */\n\tpublic Iterator<E> iterator();\n}", "public static Set stringToSet( String text )\r\n {\r\n Set returnVal = new HashSet();\r\n String[] s = stringToArray( text );\r\n if ( s != null )\r\n {\r\n for( int i = 0 ; i < s.length ; i++ )\r\n {\r\n returnVal.add( s[ i ] );\r\n }\r\n }\r\n return returnVal ;\r\n }", "Collection<String> getStringListValue(int type);", "Set<String> getDictionary();", "public StringSetFieldBuilder value(final String... value) {\n this.value = new ArrayList<>(Arrays.asList(value));\n return this;\n }", "public Set (ArrayList<String> inputArray) { // Constructor, taking in an ArrayList\n\t\tstringArray = inputArray;\n\t\t// Setting that passed ArrayList to our private variable\n\t}", "public Set<String> getStringPropertyNames();", "public static ArrayStringSet set(ArrayString values) {\n\t\t// creates the set\n\t\t// if values not consistent\n\t\t// creates an empty set\n\t\treturn new ArrayStringSet(values);\n\t}", "StringList createStringList();", "Set createSet();", "Set<String> getNames();", "public interface Keys {\n String STRING = \"string\";\n String NUM = \"num\";\n String PERSON = \"person\";\n}", "Set<String> getUniqueCharacterStrings();", "public static Set<Tag> getTagSet(String... strings) {\n return Arrays.stream(strings)\n .map(Tag::new)\n .collect(Collectors.toSet());\n }", "public static Set<Tag> getTagSet(String... strings) {\n return Arrays.stream(strings)\n .map(Tag::new)\n .collect(Collectors.toSet());\n }", "public static Set<Tag> getTagSet(String... strings) {\n return Arrays.stream(strings)\n .map(Tag::new)\n .collect(Collectors.toSet());\n }", "String getStringList();", "Set<String> getKeys();", "private Set() {\n this(\"<Set>\", null, null);\n }", "@Override\n public Set<ConvertiblePair> getConvertibleTypes() {\n return Collections.singleton(new ConvertiblePair(String.class, String.class));\n }", "public void setV(List<String> v);", "public interface IStringPrefIDable extends IStringable {\r\n\r\n \r\n public String getSelectorKeyPrefID();\r\n}", "public MultiStringColl() {\n c = null;\n how_many = 0;\n }", "public void set(String s);", "Set<String> getOsPSet();", "public static void main(String[] args) {\n\n Set<String> mySetList = new SetC<>();\n Set<String> hashSetList = new HashSet<>();\n\n\n\n mySetList.add(\"Тест1\"); hashSetList.add(\"Тест1\");\n mySetList.add(\"Тест2\"); hashSetList.add(\"Тест2\");\n mySetList.add(\"Тест3\"); hashSetList.add(\"Тест3\");\n\n\n\n System.out.println(\"mySetList:\"+mySetList+\"\\nhashSetList:\"+hashSetList);\n\n\n\n }", "public void question4(List<String> input){\n Set<String> s = new HashSet<>(input);\n }", "public OpenHashSet(String[] data) {\n new OpenHashSet();\n linkedListStrings = new LinkedListString[INITIAL_CAPACITY];\n\n\n for (int i = 0; i < data.length; i++) {\n add(data[i]);\n }\n }", "public void setUnionString(java.lang.CharSequence value) {\n\t throw new java.lang.UnsupportedOperationException(\"Set is not supported on tombstones\");\n\t }", "public SerializingStringSetTranscoder(){\r\n\t\tthis(CachedData.MAX_SIZE);\r\n\t}", "boolean isSetString();", "public interface ValueType {\n /** synonyms. */\n String SYNONYMS = \"synonyms\";\n /** patterns. */\n String PATTERNS = \"patterns\";\n }", "private void setKeySet(OwnSet<K> st){\n this.keySet = st; \n }", "@Override\n public LinkedHashSet<String> testSet() {\n LinkedHashSet<String> testNameSet = new LinkedHashSet<>();\n testNameSet.add(\"test1\");\n return testNameSet;\n }", "public void setStringArray(String[] value);", "public void set(String[] as);", "private Set<String> m47c(String str, Context context, AttributeSet attributeSet, boolean z) throws C0414b {\n String b = m45b(str, context, attributeSet, z);\n HashSet hashSet = new HashSet();\n if (b != null) {\n for (String trim : b.split(\",\")) {\n String trim2 = trim.trim();\n if (trim2.length() != 0) {\n hashSet.add(trim2);\n }\n }\n }\n return hashSet;\n }", "public abstract String getSetSpec();", "public void genericStringArray() {\n\t\tArrayList<String> b1 = new ArrayList<String>();\n\t\tb1.add(\"ABC\");\n\t\tb1.add(\"sdfsdfs\");\n\t\tSystem.out.println(\"String generic ArrayList b1: \" + b1);\n\n\t}", "Rule SetType() {\n // Push 1 SetTypeNode onto the value stack\n return Sequence(\n \"set \",\n Optional(CppType()),\n \"<\",\n FieldType(),\n \"> \",\n actions.pushSetTypeNode());\n }", "public void addStringListValue(int type, String value);", "public interface ValueSet {\n boolean isEmpty();\n int size();\n boolean contains(Object v);\n void add(Object v);\n void add(ValueSet s);\n Iterator<Object> iterator();\n}", "static Set<String> readValueAsSet(Map m, String key) {\n Set<String> result = new HashSet<>();\n Object val = m.get(key);\n if (val == null) {\n if(\"collection\".equals(key)){\n //for collection collection: null means a core admin/ collection admin request\n // otherwise it means a request where collection name is ignored\n return m.containsKey(key) ? singleton((String) null) : singleton(\"*\");\n }\n return null;\n }\n if (val instanceof Collection) {\n Collection list = (Collection) val;\n for (Object o : list) result.add(String.valueOf(o));\n } else if (val instanceof String) {\n result.add((String) val);\n } else {\n throw new RuntimeException(\"Bad value for : \" + key);\n }\n return result.isEmpty() ? null : Collections.unmodifiableSet(result);\n }", "@Test\r\n public void testRegexpSetInclusion() {\r\n rs.getRegexp(reString);\r\n stringSet.add(reString);\r\n assertTrue(rs.getRegexpSet().containsAll(stringSet));\r\n }", "public String[] getStringList();", "@Test\n\tpublic void test1() {\n\t\t// add a new method for ordering\n\t\tMySet<String> s = loadSet();\n\t\ts.add(\"a\");\n\t\ts.add(\"b\");\n\t\ts.add(\"c\");\n\t\ts.add(\"d\");\n\t\ts.add(\"e\");\n\t\ts.add(\"f\");\n\t\ts.add(\"g\");\n\t\ts.add(\"h\");\n\t\tassertEquals(8, ((MyLinkedHashSet<String>) s).map.size());\n\n\t\tString exp = \"[ a b c d e f g h ]\";\n\t\tassertEquals(exp, s.toString());\n\n\t}", "ElementSetNameType createElementSetNameType();", "interface PolySet<T>\n{\n boolean contains(T t);\n void add(T t); \n}", "public interface StringMapResource<V> extends SharedResourceObject, Iterable<String> {\n /**\n * Return the mapped value V for a given key.\n * \n * @param key to fetch the value V for\n * @return the value V mapped to the key\n */\n public V get(String key);\n\n /**\n * Check if the given key exists.\n * \n * @param key to check\n * @return <code>true</code> if the key is known to the resource\n */\n public boolean containsKey(String key);\n \n /**\n * Return the number of keys.\n * \n * @return the number of keys known by this resource.\n */\n public int size();\n\n /**\n * Fetch an iterator for the keys.\n * \n * @return a key iterator\n */\n public Iterator<String> iterator();\n\n /**\n * Get the name of this resource.\n * \n * @return resource name\n */\n public String getResourceName();\n\n /**\n * Get the URL or URI of this resource.\n * \n * @return the resource URL string or <code>null</code>\n */\n public String getUrl();\n}", "@Override // java.util.List, java.util.Collection\n public /* synthetic */ boolean add(String str) {\n throw new UnsupportedOperationException(\"Operation is not supported for read-only collection\");\n }", "Set<String> getOsUSet();", "public RegexNode ReduceSet()\n\t{\n\t\t// Extract empty-set, one and not-one case as special\n\n\t\tif (RegexCharClass.IsEmpty(_str))\n\t\t{\n\t\t\t_type = Nothing;\n\t\t\t_str = null;\n\t\t}\n\t\telse if (RegexCharClass.IsSingleton(_str))\n\t\t{\n\t\t\t_ch = RegexCharClass.SingletonChar(_str);\n\t\t\t_str = null;\n\t\t\t_type += (One - Set);\n\t\t}\n\t\telse if (RegexCharClass.IsSingletonInverse(_str))\n\t\t{\n\t\t\t_ch = RegexCharClass.SingletonChar(_str);\n\t\t\t_str = null;\n\t\t\t_type += (Notone - Set);\n\t\t}\n\n\t\treturn this;\n\t}", "@Override\n\tpublic Set<String> keySet() {\n\t\treturn null;\n\t}", "public Set(String name, IDatatype type, IModelElement parent) {\n super(name, DTYPE, type, parent);\n }", "public MyHashSet() {\n s = new ArrayList<>();\n }", "public interface StringSequence extends CharSequence {\n\n void setHead(StringSequence string);\n\n void setNext(StringSequence string);\n\n StringSequence getHead();\n\n StringSequence getNext();\n\n StringSequence add(CharSequence string);\n\n int getSequenceLength();\n}", "private Set<String> parseStringToSet(final String data) {\n String[] splits;\n\n if (data != null && data.length() > 0) {\n splits = data.split(\",\");\n } else {\n splits = new String[] {};\n }\n\n Set<String> set = new HashSet<String>();\n if (splits.length > 0) {\n for (String split : splits) {\n set.add(split.trim());\n }\n }\n\n return set;\n }", "public static Set<Category> getCategorySet(String... strings) {\n return Arrays.stream(strings)\n .map(Category::new)\n .collect(Collectors.toSet());\n }", "public void createSet(String element) {\n\t\t\n\t\tSet<String> set = new HashSet<String>();\n\t\tset.add(element);\n\t\t\n\t\tMap<String, Set<String>> map = new HashMap<String, Set<String>>();\t\t\n\t\tmap.put(element, set);\n\t\t\n\t\tdisjointSet.add(map);\n\t\n\t}", "public ContainsNamedTypeChecker(Set<String> names) {\n myNames.addAll(names);\n }", "private static Set<String> m23475a(String[] strArr) {\n if (strArr == null || strArr.length == 0) {\n return Collections.emptySet();\n }\n HashSet hashSet = new HashSet(strArr.length);\n for (String str : strArr) {\n hashSet.add(str);\n }\n return hashSet;\n }", "interface RemovableSet extends Set\n{\n void remove(String s);\n}", "@Override\n\tpublic Set<String> getWordSet() {\n\t\tlock.lockReadOnly();\n\t\ttry {\n\t\t\treturn super.getWordSet();\n\t\t} finally {\n\t\t\tlock.unlockReadOnly();\n\t\t}\n\t}", "Set<K> keySet();", "public static Set<String> getEnglishWords()\n{\n return english_words;\n}", "public static void main(String[] args) {\nString str = \"java,C, Java\";\r\nStringBuffer sf = new StringBuffer();\r\nSet<Character> set = new HashSet<>();\r\nfor(int i=0;i<str.length();i++)\r\n{\r\nchar c=str.charAt(i);\r\nif(!set.contains(c))\r\n{\r\nset.add(c);\r\n//System.out.println(set);\r\n\r\nsf.append(c);\r\n\r\n//Set s = new Set();\r\n}\r\n}\r\nSystem.out.println(set);\r\nSystem.out.println(sf.toString());\r\n}", "Set<String> getIdentifiers();", "protected abstract Set method_1559();", "public void setHobbies(Set<String> h){\n }", "private ISet<String> getKeySet(IList<String> words) {\n\t\tISet<String> keySet = new ChainedHashSet<String>();\n\t\tfor (String word: words) {\n\t\t\tkeySet.add(word);\n\t\t}\n\t\treturn keySet;\n }", "ImmutableSetMultimap<String, String> describe();", "public static Set<String> unmodifiableSet(ArrayString values) {\n\t\treturn Collections.unmodifiableSet(set(values));\n\t}", "public interface SString extends SInlinedSQLType\n{\n}", "public StringBag(){\n\n list = new ArrayList();\n\n\t}", "@NotNull\n @Generated\n @Selector(\"tags\")\n public native NSSet<String> tags();" ]
[ "0.731911", "0.72059745", "0.6859617", "0.6836083", "0.6339166", "0.6276884", "0.6222931", "0.6133112", "0.61299294", "0.60848737", "0.60399574", "0.60324395", "0.602001", "0.5994141", "0.5991791", "0.5976351", "0.5958309", "0.59538037", "0.59217584", "0.5878707", "0.58451575", "0.5845005", "0.58157897", "0.58078855", "0.5796636", "0.57907665", "0.57798374", "0.5770267", "0.5763367", "0.5751147", "0.57505834", "0.57472354", "0.5742603", "0.57263476", "0.57165015", "0.5712274", "0.5698972", "0.56944126", "0.5689446", "0.5689446", "0.5689446", "0.56707764", "0.56684214", "0.56634283", "0.5637004", "0.5625277", "0.56222224", "0.56194466", "0.5604426", "0.55953866", "0.5594543", "0.5570669", "0.55669314", "0.55588835", "0.5553697", "0.5547528", "0.55472225", "0.5546442", "0.55382717", "0.5512115", "0.55096686", "0.55087954", "0.55051905", "0.54847777", "0.54680073", "0.54661703", "0.5464942", "0.54555935", "0.54442024", "0.5430191", "0.5420389", "0.54187983", "0.5417851", "0.54151773", "0.54092973", "0.54053885", "0.54007727", "0.53872186", "0.53844106", "0.53822225", "0.5381427", "0.53774", "0.53757066", "0.5365949", "0.53405386", "0.533532", "0.5332878", "0.5327964", "0.5327361", "0.5326052", "0.532257", "0.53133535", "0.5308385", "0.5304868", "0.5304146", "0.52933836", "0.5286143", "0.5282478", "0.52798975", "0.52787083" ]
0.572662
33
/ Two forms of polymorphism: parametric polymorphism: some type is pareterized by one or more type variables. client can choose how to intstantiate type variables. example: see PolySet below.
interface PolySet<T> { boolean contains(T t); void add(T t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void LessonPolymorphism() {\n Employee empOne = new Employee(\"Bob\");\n Employee empTwo = new Employee(\"Linda\", \"Belcher\");\n System.out.println(empOne.getFirstName());\n System.out.println(empTwo.getFirstName() + \" \" + empTwo.getLastName());\n // run-time polymorphism - override\n //Override a method that is in a super class in a lower class\n // Create a method in BaseBO and create the same method in Empl\n BaseBO obj1 = new BaseBO();\n System.out.println(obj1.test_method());\n\n EntityType obj2 = new EntityType();\n System.out.println(obj2.test_method());\n }", "private static void handlePolymorphism() {\n\n for(String subClass : superDict.keySet()) {\n addPlace(subClass);\n for (String superClass : superDict.get(subClass)) {\n addPlace(superClass);\n String methodName = subClass + \"IsPolymorphicTo\" + superClass;\n petrinet.createTransition(methodName);\n petrinet.createFlow(subClass, methodName, 1);\n petrinet.createFlow(methodName, superClass, 1);\n }\n }\n }", "Polymorph(int x, int y, int height, int width){\n \t this.x = x;\n \t this.y = y;\n \t this.height = height;\n \t this.width = width;\n }", "private static void handlePolymorphism() {\n for(String subClass : superDict.keySet()) {\n try {\n petrinet.getPlace(subClass.toString());\n } catch (NoSuchNodeException e ) {\n petrinet.createPlace(subClass.toString());\n }\n assert (petrinet.containsNode(subClass));\n for (String superClass : superDict.get(subClass)) {\n // If the class is not in the petrinet, create the class\n try {\n petrinet.getPlace(superClass.toString());\n } catch (NoSuchNodeException e) {\n petrinet.createPlace(superClass.toString());\n }\n assert (petrinet.containsNode(superClass));\n\n String methodName = subClass + \"IsPolymorphicTo\" + superClass;\n petrinet.createTransition(methodName);\n petrinet.createFlow(subClass, methodName);\n petrinet.createFlow(methodName, superClass);\n }\n }\n }", "public interface FrequencyConstraintShapeType extends ExternalConstraintShapeType {\n}", "public interface Particle extends VisualValue, Point\n{\n}", "public abstract void setType();", "public interface ShapeV1 {\n public double area();\n public double perimeter();\n}", "protected abstract String getType();", "public interface Graphing<T> {\n\n void paint(T shape);\n}", "abstract public Type getType();", "public interface ParamPoint {\r\n\r\n\t/**\r\n\t * Get X coordinate parameter.\r\n\t * \r\n\t * @return X coordinate\r\n\t */\r\n\tpublic abstract ParamNumber getParamX();\r\n\r\n\t/**\r\n\t * Get Y coordinate parameter.\r\n\t * \r\n\t * @return Y coordinate\r\n\t */\r\n\tpublic abstract ParamNumber getParamY();\r\n\r\n\t/**\r\n\t * Get Z coordinate parameter.\r\n\t * \r\n\t * @return Z coordinate\r\n\t */\r\n\tpublic abstract ParamNumber getParamZ();\r\n}", "abstract public String getType();", "public interface Shape {\n\n void draw(); //Tells what kind of shape is drawn\n}", "public interface EffectFullType extends Type\n{\n}", "public interface ShapeFactory{\n Line createLine();\n Rectangle createRectangle();\n Circle createCircle();\n Polygon createPolygon();\n}", "public static void main(String[] args) {\n try {\n UnsafePokeBall pokeBall = new UnsafePokeBall();\n pokeBall.setPokemon(new Pikachu());\n Pokemon pokemon = pokeBall.getPokemon(); // type is lost\n Pikachu pikachu = (Pikachu) pokemon; // we have to cast to get the type back\n\n // somewhere later in our program, another developer does\n pokeBall.setPokemon(new Bulbasaur());\n //\n // and we do ...\n //\n pikachu = (Pikachu) pokeBall.getPokemon(); // java.lang.ClassCastException\n } catch (Exception e) {\n System.err.println(e);\n }\n\n // Using our typesafe PikeBall implementation:\n {\n PokeBall<Pikachu> pikatchuPokeBall = new PokeBall<Pikachu>();\n pikatchuPokeBall.setPokemon(new Pikachu());\n final Pikachu pikachu = pikatchuPokeBall.getPokemon(); // no casting needed\n // somewhere later in our program, another developer CANNOT do:\n // pikatchuPokeBall.setPokemon(new Bulbasaur());\n }\n\n {\n // Type parameter 'T' can hold all reference types, but not primitive types:\n new PokeBall<Object>();\n new PokeBall<Pokemon>();\n new PokeBall<Pikachu>();\n new PokeBall<Raichu>();\n new PokeBall<Bulbasaur>();\n new PokeBall<String>(); // ups ... not what we wanted\n new PokeBall<Integer>(); // ups ... not what we wanted\n // new PokeBall<int>(); // primitive types not allowed\n }\n\n // Using the diamond operator '<>', the compiler may be able to determine/infer the type\n // parameter automatically\n {\n final PokeBall<Pikachu> pikatchuPokeBall = new PokeBall<>();\n final PokeBall<Object> objectPokeBall = new PokeBall<>();\n final PokeBall<Raichu> raichuPokeBall = new PokeBall<>();\n }\n\n // You can also substitute a type parameter 'T' with a parameterized type (List<Pikachu>)\n {\n final PokeBall<List<Pikachu>> pikatchuListPokeBall = new PokeBall<>();\n final List<Pikachu> pikachuList = new ArrayList<>();\n pikachuList.add(new Pikachu());\n pikatchuListPokeBall.setPokemon(pikachuList);\n }\n\n // A raw type is the name of a generic class or interface without any type arguments.\n try {\n final PokeBall<Pikachu> pikachuPokeBall = new PokeBall<>();\n\n final PokeBall pokeBall = pikachuPokeBall; // OK, but raw use\n pokeBall.setPokemon(new Bulbasaur()); // unchecked call\n\n final PokeBall<Pikachu> pikachuPokeBall2 = pokeBall;\n\n final Pikachu pokemon = pikachuPokeBall2.getPokemon(); // ClassCastException\n } catch (Exception e) {\n System.err.println(e);\n }\n }", "public interface Point{\n\t\n\t/**\n\t * Types of points.\n\t * @author zroslaw\n\t */\n\tpublic enum PointType{\n\t\tRegular,\n\t\tMultiPoint\n\t}\n\t\n\t/**\n\t * Return current lengthy.\n\t * @return lengthy instance on which this observable is placed\n\t */\n\tpublic Lengthy getLengthy();\n\n\t/**\n\t * Current position.\n\t * @return position of this point on the lengthy.\n\t */\n\tpublic float getPosition();\n\t\n\t/**\n\t * Set lengthy.\n\t */\n\tpublic void setLengthy(Lengthy lengthy);\n\n\t/**\n\t * Set position.\n\t */\n\tpublic void setPosition(float position);\n\t\n\t/**\n\t * Get point type.\n\t * @return point type.\n\t */\n\tpublic PointType getPointType();\n\n}", "public interface IProperty<O extends Object> extends IFeature{\n O getProperty();\n void setProperty(O property);\n EPropertyCategory getCategory(); \n}", "public static void main(String[] args) {\n ToyBox<Car> carBox = new ToyBox<>();\n Car t1 = new Car(\"Yaris\", 1500);\n Car t2 = new Car(\"Corolla\", 2500);\n carBox.add(t1);\n carBox.add(t2);\n showToysinBox(carBox);\n\n // Create a \"bearBox\" with proper sentence\n ToyBox<Bear> bearBox = new ToyBox<>();\n Bear b1 = new Bear(\"Bear1\", 1000);\n Bear b2 = new Bear(\"Bear2\", 2000);\n bearBox.add(b1);\n bearBox.add(b2);\n showToysinBox(bearBox);\n\n\n /* It is OK till now */\n\n // Next, create Box<Toy>\n\n // Create a \"toyBox\" with proper sentence\n ToyBox<Toy> toyBox = new ToyBox<>();\n Car t3 = new Car(\"Tacoma\", 3300);\n Bear b3 = new Bear(\"Bear3\", 1200);\n\n toyBox.add(t3);\n toyBox.add(b3);\n\n showToysinBox(toyBox);\n /* It is still OK till now */\n\n // How about the next? Is it subtype?\n ToyBox<? extends Toy> sometoyBox = carBox;\n System.out.println(\"After assigning the carBox into the \\\"sometoyBox\\\"...\");\n showToysinBox(sometoyBox);\n }", "public abstract int getType();", "public abstract int getType();", "public abstract int getType();", "public interface Shape {\n\n String getDescription();\n}", "public static void main(String [] args){\n ShapeFactory sf = new ShapeFactory();\n\n //Get the shape of desire by passing the type parameter\n Shape circle = sf.getShape(\"CIRCLE\");\n\n //call the draw method on circle.\n circle.draw();\n\n Shape square = sf.getShape(\"SQUARE\");\n //call the draw method on Square.\n square.draw();\n\n Shape rectangle = sf.getShape(\"RECTANGLE\");\n //call the draw method on rectangle.\n rectangle.draw();\n }", "public TypeParameterListNode getTypeParameters()throws ClassCastException;", "@Override\r\n protected void setPositionType(Collection<? extends Geometry> adds)\r\n {\n }", "public boolean isPolymorphic() {\n return var != null;\n }", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "private static void handlePolymorphismAlt() {\n for(Transition t : petrinet.getTransitions()) {\n Stack<Place> inputs = new Stack<>();\n Set<Flow> inEdges = t.getPresetEdges();\n for(Flow f : inEdges) {\n for(int i = 0; i < f.getWeight(); i++) {\n inputs.push(f.getPlace());\n }\n }\n Stack<Place> trueInputs = new Stack<>();\n generatePolymophism(t, 0, inputs, trueInputs);\n }\n }", "public abstract Type getType();", "private void testAbstraction() {\n Shape triangle = new Triangle();\n\n Shape circle = new Circle();\n\n //Since square implements IShape but not Shape, so we cannot create instance of Shape using Square\n Square square = new Square();\n\n //The end user only calls getNoOfSides(). But does not see implementation in Shape class.\n //Here it picks implementation from Triangle class, so it will return a 3.\n System.out.println(\"No of sides in a triangle: \" + triangle.getNoOfSides());\n System.out.println(\"No of sides in a circle: \" + circle.getNoOfSides());\n System.out.println(\"No of sides in a square: \" + square.getNoOfSides());\n }", "private void setupPrimitiveTypes()\n {\n primitiveTypes.add(INTEGER_TYPE);\n primitiveTypes.add(FLOAT_TYPE);\n primitiveTypes.add(DOUBLE_TYPE);\n primitiveTypes.add(STRING_TYPE);\n primitiveTypes.add(BOOL_TYPE);\n primitiveTypes.add(TIMESTAMP_TYPE);\n }", "public interface Shape {\n float getArea();\n float getPerimeter();\n void printMe();\n}", "public void setTypeParameters(TypeParameterListNode typeParameters);", "public interface Shape {\n\n double size();\n Color color();\n\n\n}", "public static void main(String[] args) {\n Vehicle vehicle = new Vehicle(4,\"Black\",12343443,true);\n Object vehicle2 = new Vehicle(4,\"White\",32343443,false);\n //Create RegisteredVehicle Object\n RegisteredVehicle registeredVehicle =\n new RegisteredVehicle(4,\"Red\",134345454,true,\n \"AN123\", LocalDate.of(2020,5,2), LocalDate.of(2021, 5, 2));\n Vehicle registredVihicle2 = new RegisteredVehicle(4,\"Blue\",23322434,true,\n \"ABC222\", LocalDate.of(2020,4,22), LocalDate.of(2021, 4, 22));\n //Create Bike Object\n Bike bike =\n new Bike(2,\"black\",1213223,\n \"AC2323\",LocalDate.of(2020,4,22),\n LocalDate.of(2021, 4, 22),\n \"Sport\", \"Yamaha\",1000);\n RegisteredVehicle bike2 = new Bike(2,\"blue\",1213223,\n \"Abb2323\",LocalDate.of(2020,4,22),\n LocalDate.of(2021, 4, 22),\n \"Sport\", \"BMW\",1000);\n Vehicle bike3 = new Bike(2,\"Yellow\",33434,\n \"jjj222\",LocalDate.of(2020,4,22),\n LocalDate.of(2021, 4, 22),\n \"Sport\", \"Honda\",1000);\n\n System.out.println(\"price for vehicle object \" + VehicleShop.estimatePrice(vehicle));\n //vehicle2 is stored in Object class, which is larger than Vehicle class, so it Vehicle param cannot take it.\n //we can use casting in order to narrow down the variable data type\n System.out.println(vehicle2);//doesnt have access to any Vehicle members\n System.out.println(\"price for vehicle object \" + VehicleShop.estimatePrice((Vehicle)vehicle2));//we are changing\n //the data type of vehicle2 to Vehicle from Object\n System.out.println(((Vehicle) vehicle2).getNumOfWheels());\n System.out.println(VehicleShop.estimatePrice(registeredVehicle));\n //polymorphism\n Vehicle vehicle1 = VehicleShop.createAnObject(\"vehicle\");\n Bike bike1 = (Bike)VehicleShop.createAnObject(\"bike\");//cast\n bike1.setBrand(\"Yamaha\");\n System.out.println(bike1.getBrand());\n// Bike bike4 = (Bike)VehicleShop.createAnObject(\"registeredvehicle\");//ClassCast Exception.\n// //which we get when the actual object that's stored in the Parent Class data type is not\n// //covariant to the object we try casting to.\n// bike4.setBrand(\"Honda\");\n// System.out.println(bike4.getBrand());\n Vehicle vehicle3 = new Vehicle();//has info only about vehicle\n Vehicle v = new RegisteredVehicle();//has info about vehicle\n //by casting we can also get info about RegisteredVehicle.\n //RegisteredVehicle rg = (RegisteredVehicle)vehicle3;//class cast exception\n RegisteredVehicle rg = (RegisteredVehicle)v; //which object v is pointing to?\n //the object v is pointing to should be same or narrower than what we are trying to cast to.\n RegisteredVehicle rv = new Bike();\n Bike b1 = (Bike)rv;\n System.out.println(vehicle3.sum(4,2));\n //if the method is overridden in subclass\n //and the variable is stored in the parent class DataType\n //but actual value(object is subclass) we call a method in subclass\n System.out.println(v.sum(4,2));\n //Casting\n int y = 100;\n short x = (short)y;//compile time error.\n sum((byte)y);\n // sum(\"Hello\");cannot even be casted because they are not covariant.\n }", "abstract public Type type();", "public abstract void add(T var1);", "public static void main(final String[] args) {\r\n Shape myRec = new Rectangle(10.0f, 20.0f);\r\n System.out.println(\"Rectangle\");\r\n printAreaOf(myRec);\r\n printPerimeterOf(myRec);\r\n Shape mySqu = new Square(10.0f);\r\n System.out.println(\"Square\");\r\n printAreaOf(mySqu);\r\n printPerimeterOf(mySqu);\r\n System.out.println(\"Circle\");\r\n Shape myCir = new Circle(10.0f);\r\n printAreaOf(myCir);\r\n printPerimeterOf(myCir);\r\n System.out.println(\"Triangle\");\r\n Shape myTri = new Triangle(3.0f, 4.0f, 5.0f);\r\n printAreaOf(myTri);\r\n printPerimeterOf(myTri);\r\n System.out.println(\"Regular polygon 3 sides\");\r\n Shape rp1 = new RegularPolygon(10.0f, 3);\r\n printAreaOf(rp1);\r\n printPerimeterOf(rp1);\r\n System.out.println(\"Regular polygon 4 sides\");\r\n Shape rp2 = new RegularPolygon(new Float(5 * Math.sqrt(2f) / 2), 4);\r\n printAreaOf(rp2);\r\n printPerimeterOf(rp2);\r\n System.out.println(\"Regular polygon 999 sides\");\r\n Shape rp3 = new RegularPolygon(1f, 999);\r\n printAreaOf(rp3);\r\n printPerimeterOf(rp3);\r\n System.out.println(Math.PI * 2);\r\n try {\r\n Shape tr = new Triangle(0f, 1f, 2f);\r\n } catch (IllegalArgumentException e) {\r\n System.out.format(\"Erreur during creation of shape: %s\\n\"\r\n + e.getMessage());\r\n }\r\n\r\n }", "public void setBasePoly(Polygon poly) {\r\n\t\tbasePoly = poly;\r\n\t\t_checkInvariant();\r\n\t}", "public interface Zoo {\n AnimalType getAnimalType();\n}", "public interface TwoDimensionalShape extends Shape {\r\n\tdouble getPerimeter();\r\n double getArea();\r\n}", "public void testType() {\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6))).oclIsTypeOf(tInteger).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6))).oclIsTypeOf(tReal).not().isTrue() ); //differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p1))).oclIsTypeOf(tPersonFQ).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(\"foo\"))).oclIsTypeOf(tOclString).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(true))).oclIsTypeOf(tBoolean).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6.0))).oclIsTypeOf(tReal).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6.0))).oclIsTypeOf(tInteger).not().isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p2))).oclIsTypeOf(tCompany).not().isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(false))).oclIsTypeOf(tAny).not().isTrue() ); //differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(0.0))).oclIsTypeOf(tAny).not().isTrue() ); // differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(0))).oclIsTypeOf(tAny).not().isTrue() ); // differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p1))).oclIsTypeOf(tObject).not().isTrue() ); // differs\n }", "public void setP_type(String p_type) {\n this.p_type = p_type;\n }", "public Object prop(String name, String type);", "public interface GeometricShape {\n double area();\n\n double perimeter();\n\n void drawShape();\n}", "public void clearPolymorphismType() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "public static Set typedSet(Set set, Class type) {\n/* 205 */ return TypedSet.decorate(set, type);\n/* */ }", "public interface ShapeTemplate { #\n\t//Show/hide when rendering\n\tpublic void show();\n\tpublic void hide();\n\tpublic boolean getVisible();\n\t\n\t//Storage/retreival of shape mesh\n\tpublic char[][] regenCharTable();\n\tpublic char[][] getCharTable();\n\tpublic String[] getStringTable();\n\t\n\t//Internal storage of current rendered position\n\tpublic Position getPosition();\n\tpublic void setPosition(int x, int y);\n\t\n\t//Width/height accessor properties\n\tpublic int getWidth();\n\tpublic int getHeight();\n\t\n\t//Fill\n\tpublic char getFillChar();\n\tpublic void setFillChar(char newChar);\n\tpublic boolean getFilled();\n\tpublic void setFilled(boolean isFilled);\n\t\n\t//ToString\n\tpublic String toString();\n}", "public interface IPolygon {\n // Returns the text telling what shape it is\n public String whatShape();\n\n // Returns the numbers of sides\n public int noOfSides();\n\n // Returns the array of lengths of all sides\n public double[] getSides();\n\n // Returns the area of the shape\n public double area();\n\n // Returns the perimeter of the shape\n public double perimeter();\n}", "public abstract Type getSpecializedType(Type type);", "ShapeType getShapeType();", "protected abstract void setShapes();", "public interface FType {\n boolean isPointer();\n boolean isDimension();\n String getCanonicalText();\n FTypeParamValue getKind();\n}", "interface Shape{\r\n\tvoid draw();\r\n}", "public interface MapObjectType {\n}", "public interface Shape {\n public String draw();\n}", "public interface Shape {\n\t/**\n\t * Calculates and returns the area of the object\n\t * @return\n\t */\n\tpublic abstract double getArea();\n\t\n\t/**\n\t * Returns the Color of the object.\n\t * @return\n\t */\n\tpublic abstract Color getColor();\n\t\n\t/**\n\t * Sets the Color of the object.\n\t * @param color\n\t */\n\tpublic abstract void setColor(Color color);\n\t\n\t/**\n\t * Returns true if the object is filled with color, otherwise false.\n\t * @return\n\t */\n\tpublic abstract boolean getFilled();\n\t\n\t/**\n\t * Sets the filled state of the object.\n\t * @param filled\n\t */\n\tpublic abstract void setFilled(boolean filled);\n\t\n\t/**\n\t * Moves the shape by the x and y amounts specified in the Point.\n\t * @param point\n\t */\n\tpublic abstract void move(Point point);\t\n}", "public abstract Object getTypedParams(Object params);", "public void addType(String value) {\n/* 380 */ addStringToBag(\"type\", value);\n/* */ }", "public interface ShapeOperations {\n\n /**\n * Computes the difference between this Shape and the input Shape <code>s</code> and puts the\n * result back into this Shape. The difference is the points that are in this Shape but not in\n * the input Shape.\n * \n * @param s the Shape to compute the difference from.\n */\n public void difference(Shape s);\n\n /**\n * Computes the intersection between this Shape and the input Shape <code>s</code> and puts the\n * result back into this Shape. The intersection is the points that are in both this Shape and\n * in the input Shape.\n * \n * @param s the Shape to compute the intersection from.\n */\n public void intersect(Shape s);\n\n /**\n * Computes the union between this Shape and the input Shape <code>s</code> and puts the result\n * back into this Shape. The union is the points that are in either this Shape or in the input\n * Shape.\n * \n * @param s the Shape to compute the union from.\n */\n public void union(Shape s);\n\n}", "public static List<Polyomino> generic(int P, String s) {\n Set<Square> vus = new HashSet<Square>();\n LinkedList<Square> untried = new LinkedList<Square>();\n Square origin = new Square(0, 0);\n untried.add(origin);\n vus.add(origin);\n List<Polyomino> l = new LinkedList<Polyomino>();\n return generic_aux(P, new Polyomino(), untried, vus, l, s);\n }", "@Test\r\n public void testParamterizedWithComplexTypeParameters()\r\n {\r\n test(Types.create(Map.class)\r\n .withSubtypeOf(Number.class)\r\n .withSupertypeOf(Comparable.class)\r\n .build());\r\n }", "@Override\n protected void assignTypes(Multiset<JReferenceType> typesWithReferenceCounts) {\n assignId(program.getJavaScriptObject());\n assignId(program.getTypeJavaLangObject());\n assignId(program.getTypeJavaLangString());\n\n for (JType type : typesWithReferenceCounts) {\n assignId(type);\n }\n }", "public static void main(String[] args) {\n\t\tList<? super Integer> list1 = new ArrayList<Integer>();\n\t\tList<? super Integer> list2 = new ArrayList<Number>();\n\t\tList<? super Integer> list3 = new ArrayList<Object>();\n\t\t\n\t\t//showAll(list1); //invalid because (minimum) lower bound is Number \n\t\t\n\t\t//Number class extend Object implements Serializable \n\t\tList<? super Number> nums = new ArrayList<>();\n\t\t//We can add element to lower bounded wild card\n\t\t// but element must be the given type or it's Sub type\n\t\tnums.add(3);//valid because Integer is a sub type of Number\n\t\tnums.add(10.23);//valid because Double is a sub type of Number\n\t\tnums.add(50.3f);//valid because Float is a sub type of Number\n\t\t//Valid call\n\t\tshowAll(nums);\n\t\t\n\t\t//Valid call because Number extends Object\n\t\tList<? super Object> objects = new ArrayList<>();\n\t\tshowAll(objects);\n\t\t\n\t\t//Valid call because Number extends Serializable\n\t\tList<Serializable> list = new ArrayList<>();\n\t\tlist.add(\"Adam\");\n\t\tlist.add(\"Raghav\");\n\t\tlist.add(\"Mark\");\n\t\tshowAll(list);\n\t}", "@Override abstract public String type();", "@Override\r\n\tpublic Node visitVarType(VarTypeContext ctx) {\n\t\treturn super.visitVarType(ctx);\r\n\t}", "public interface Shape\n{\n void draw();\n}", "public interface Generic extends Reference\n{\n}", "public interface GeometricalObjectVisitor {\n\n\t/**\n\t * Visits the given line.\n\t * \n\t * @param line\n\t * to visit\n\t */\n\tpublic abstract void visit(Line line);\n\n\t/**\n\t * Visits the given circle.\n\t * \n\t * @param circle\n\t * to visit\n\t */\n\tpublic abstract void visit(Circle circle);\n\n\t/**\n\t * Visits the given filled circle.\n\t * \n\t * @param filledCircle\n\t * to visit\n\t */\n\tpublic abstract void visit(FilledCircle filledCircle);\n\n\tpublic abstract void visit(FilledPolygon filledPolygon);\n}", "interface MultiSet<X> {\n // Add x to this multiset\n MultiSet<X> add(X x);\n\n // Apply f to every element of this multiset, collect results as a multiset\n <R> MultiSet<R> map(Function<X, R> f);\n\n // Count the number of elements in this multiset\n Integer count();\n\n // Is this multiset the same as the given multiset?\n Boolean same(MultiSet<X> s);\n\n // Does this multiset contain all of the elements of the given multiset?\n Boolean superset(MultiSet<X> s);\n\n // Does the given multiset contain all of the elements of given multiset?\n Boolean subset(MultiSet<X> s);\n\n // Does this mutliset contain the given element?\n Boolean contains(X x);\n\n // Does there exist an element that satisfies p in this multiset?\n Boolean exists(Predicate<X> p);\n\n // Do all elements satisfy p in this multiset?\n Boolean forAll(Predicate<X> p);\n\n // Convert this multiset to a list of elements (order is unspecified)\n Listof<X> toList();\n\n // Produce an element of this multiset (if one exists)\n Optional<X> elem();\n\n // Choose an element from this (if one exists) and\n // produce the element and rest of the multiset\n Optional<Pairof<X, MultiSet<X>>> choose();\n\n // Convert this multiset into a set\n Set<X> toSet();\n}", "public List<Ref<? extends Type>> typeVariables();", "@Override\n protected void assignTypes(Multiset<JReferenceType> typesWithReferenceCounts) {\n assignId(program.getJavaScriptObject());\n assignId(program.getTypeJavaLangObject());\n assignId(program.getTypeJavaLangString());\n\n ImmutableMultiset<JReferenceType> typesOrderedByFrequency =\n Multisets.copyHighestCountFirst(typesWithReferenceCounts);\n for (JType type : typesOrderedByFrequency) {\n assignId(type);\n }\n }", "public interface FloorProperty<T extends Floor> extends XElevatorStateProperty<T> {\n}", "public interface Shape \r\n{\r\n void draw();\r\n}", "public static Vector<Shape> convertAll(Vector<Shape> v)\r\n\t{\r\n\t\tint i = 0;\r\n\t\tVector<Shape> v2 = new Vector<Shape>();\r\n\t\tfor(i=0 ; i<v.size() ; i++)\r\n\t\t{\r\n\t\r\n\t\t\tif(v.get(i) instanceof Rectangle)\r\n\t\t\t{\r\n\t\t\t\tRectangle r = new Rectangle();\r\n\t\t\t\tr = (Rectangle)(v.get(i));\r\n\t\r\n\t\t\t\tPolygonDyn obj = new PolygonDyn(r);\r\n\t\t\t\tv2.add(obj);\r\n\t\t\t}\r\n\t\t\tif(v.get(i) instanceof Triangle)\r\n\t\t\t{\r\n\t\t\t\tTriangle t = new Triangle();\r\n\t\t\t\tt = (Triangle)(v.get(i));\r\n\t\r\n\t\t\t\tPolygonDyn obj = new PolygonDyn(t);\r\n\t\t\t\tv2.add(obj);\r\n\t\t\t}\r\n\t\t\tif(v.get(i) instanceof Circle)\r\n\t\t\t{\r\n\t\t\t\tCircle c = new Circle();\r\n\t\t\t\tc = (Circle)(v.get(i));\r\n\t\r\n\t\t\t\tPolygonDyn obj = new PolygonDyn(c);\r\n\t\t\t\tv2.add(obj);\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\r\n\t\treturn v2;\r\n\t}", "public abstract BoundType a();", "abstract public boolean isTyped();", "public void setShapeType(ShapeType shapeType) {\n }", "public static void main(String[] args) {\n Measurable myShape; // define data type of Measureable and variable name myShape\n\n myShape = new Square(5);\n\n// System.out.println(box1.getPerimeter()); // 18\n// System.out.println(box1.getArea()); // 20\n// System.out.println(\"\");\n// System.out.println(box2.getPerimeter()); // 20\n// System.out.println(box2.getArea()); // 25\n\n System.out.println(myShape.getArea());\n System.out.println(myShape.getPerimeter());\n\n myShape = new Rectangle(5,4);\n\n System.out.println(myShape.getPerimeter());\n System.out.println(myShape.getArea());\n\n\n }", "public void setGeneric(T t)\t\t//setting a generic var\n\t{\n\t\t\n\t\tthis.t=t;\n\t}", "public interface Shape {\n\n void draw();\n\n}", "public interface Shape {\n void draw();\n}", "public interface Shape {\n void draw();\n}", "public interface Shape {\n void draw();\n}", "public interface Shape {\n void draw();\n}", "public interface Shape {\n public void draw();\n}", "public interface BaseView<P extends GoPresenter> extends IGoView<P> {\n}", "public interface Shape {\n\t \n\tvoid draw();\n}", "public interface One extends RelationQuantifier\n{\n}", "public interface Shape {\r\n void draw();\r\n}", "protected abstract STORE_TYPE decideType();" ]
[ "0.5663088", "0.5612097", "0.5569867", "0.55341774", "0.52415407", "0.52237624", "0.5182591", "0.51825255", "0.5144039", "0.5141232", "0.5103341", "0.5079856", "0.5075322", "0.5066316", "0.5035916", "0.502325", "0.50143576", "0.4999264", "0.49940622", "0.49802172", "0.49690247", "0.49690247", "0.49690247", "0.49533737", "0.4938921", "0.49359527", "0.4935594", "0.4932454", "0.4904555", "0.4904555", "0.4904555", "0.4904555", "0.4904555", "0.4904555", "0.4904555", "0.4904555", "0.4896291", "0.48934615", "0.48822048", "0.48750758", "0.4857751", "0.48572886", "0.48459363", "0.48414195", "0.4840067", "0.48385942", "0.48370907", "0.48217863", "0.4820041", "0.48133463", "0.4811298", "0.48015544", "0.479876", "0.4788631", "0.47670233", "0.47660393", "0.4756572", "0.47539443", "0.4753804", "0.47392243", "0.47323698", "0.47299477", "0.47297215", "0.4725646", "0.47225016", "0.47136644", "0.4698941", "0.4693434", "0.4689865", "0.46893978", "0.4683574", "0.4680602", "0.46797588", "0.46796116", "0.46756217", "0.4667584", "0.46653974", "0.46337125", "0.46315497", "0.46269497", "0.46215472", "0.46152622", "0.46141645", "0.4608397", "0.4602669", "0.4600883", "0.45985407", "0.45960668", "0.45933712", "0.45928115", "0.45890605", "0.45890605", "0.45890605", "0.45890605", "0.45876446", "0.45794296", "0.45781174", "0.45736098", "0.4571438", "0.45696434" ]
0.5649808
1
/ Java has a second kind of polymorphism: subtype polymorphism there's a subtype relation on types if S is a subtype of T, then you can pass an object of type S where an object of type T is expected. Subtype polymorphism is a property of interfaces. example: RemovableSet is a subtype of Set.
interface RemovableSet extends Set { void remove(String s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface o<Downstream, Upstream> {\n r<? super Upstream> a(r<? super Downstream> rVar) throws Exception;\n}", "public interface DerivedType extends EObject {\r\n}", "Object visitSubtype(SubtypeNode node, Object state);", "public interface Set<Type> {\r\n\r\n\t/**\r\n\t * Ensures that this set contains the specified item.\r\n\t * \r\n\t * @param item\r\n\t * - the item whose presence is ensured in this set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if the input item was actually inserted); otherwise, returns\r\n\t * false\r\n\t */\r\n\tpublic boolean add(Type item);\r\n\r\n\t/**\r\n\t * Ensures that this set contains all items in the specified collection.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items whose presence is ensured in this\r\n\t * set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if any item in the input collection was actually inserted);\r\n\t * otherwise, returns false\r\n\t */\r\n\tpublic boolean addAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Removes all items from this set. The set will be empty after this method\r\n\t * call.\r\n\t */\r\n\tpublic void clear();\r\n\r\n\t/**\r\n\t * Determines if there is an item in this set that is equal to the specified\r\n\t * item.\r\n\t * \r\n\t * @param item\r\n\t * - the item sought in this set\r\n\t * @return true if there is an item in this set that is equal to the input\r\n\t * item; otherwise, returns false\r\n\t */\r\n\tpublic boolean contains(Type item);\r\n\r\n\t/**\r\n\t * Determines if for each item in the specified collection, there is an item\r\n\t * in this set that is equal to it.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items sought in this set\r\n\t * @return true if for each item in the specified collection, there is an\r\n\t * item in this set that is equal to it; otherwise, returns false\r\n\t */\r\n\tpublic boolean containsAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Returns true if this set contains no items.\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n\t/**\r\n\t * Returns the number of items in this set.\r\n\t */\r\n\tpublic int size();\r\n}", "Set<Concept> getSubclasses(Concept concept);", "boolean isSubclass(Concept x, Concept y);", "public interface Set extends TraversableCollection\r\n{\r\n\t\r\n\t/**\r\n\t *\tremove the specified item from the Set\r\n\t *\r\n\t *\treturns true if removal was successful, false otherwise\r\n\t */\r\n\tpublic boolean remove(Object obj);\r\n}", "public interface Parental {\n boolean removeChild(Child child);\n void addChild(Child child);\n String getName();\n}", "public interface Type extends DeclarationContainer, DeclarationWithType {\n\n public default boolean newSubtypeOf(Type other) throws LookupException {\n return sameAs(other);\n }\n\n @Override\n default SelectionResult<Declaration> updatedTo(Declaration declaration) {\n return DeclarationWithType.super.updatedTo(declaration);\n }\n\n @Override\n default List<? extends DeclarationContainerRelation> relations() throws LookupException {\n \treturn inheritanceRelations();\n }\n\n public default void accumulateSuperTypeJudge(SuperTypeJudge judge) throws LookupException {\n judge.add(this);\n List<Type> temp = getProperDirectSuperTypes();\n for(Type type:temp) {\n Type existing = judge.get(type);\n if(existing == null) {\n type.accumulateSuperTypeJudge(judge);\n }\n }\n }\n\n\n /**\n * Find the super type with the same base type as the given type.\n * \n * @param type The type with the same base type as the requested super type.\n * @return A super type of this type that has the same base type as the given\n * type. If there is no such super type, null is returned.\n * @throws LookupException\n */\n public default Type getSuperTypeWithSameBaseTypeAs(Type type) throws LookupException {\n return superTypeJudge().get(type);\n }\n\n public SuperTypeJudge superTypeJudge() throws LookupException;\n\n public void accumulateAllSuperTypes(Set<Type> acc) throws LookupException;\n\n public void newAccumulateAllSuperTypes(Set<Type> acc) throws LookupException;\n\n public void newAccumulateSelfAndAllSuperTypes(Set<Type> acc) throws LookupException;\n\n\n public Set<Type> getSelfAndAllSuperTypesView() throws LookupException;\n\n public abstract List<InheritanceRelation> explicitNonMemberInheritanceRelations();\n\n public <I extends InheritanceRelation> List<I> explicitNonMemberInheritanceRelations(Class<I> kind);\n\n public List<InheritanceRelation> implicitNonMemberInheritanceRelations();\n\n public default void reactOnDescendantAdded(Element element) {}\n\n public default void reactOnDescendantRemoved(Element element) {}\n\n public default void reactOnDescendantReplaced(Element oldElement, Element newElement) {}\n\n /**\n * Return the fully qualified name.\n * @throws LookupException \n */\n /*@\n\t @ public behavior\n\t @\n\t @ getPackage().getFullyQualifiedName().equals(\"\") ==> \\result == getName();\n\t @ ! getPackage().getFullyQualifiedName().equals(\"\") == > \\result.equals(getPackage().getFullyQualifiedName() + getName());\n\t @*/\n public String getFullyQualifiedName();\n\n /*******************\n * LEXICAL CONTEXT \n *******************/\n\n @Override\n public LocalLookupContext<?> targetContext() throws LookupException;\n\n @Override\n public LookupContext localContext() throws LookupException;\n\n /**\n * If the given element is an inheritance relation, the lookup must proceed to the parent. For other elements,\n * the context is a lexical context connected to the target context to perform a local search.\n * @throws LookupException \n */\n @Override\n public LookupContext lookupContext(Element element) throws LookupException;\n\n public List<ParameterBlock<?>> parameterBlocks();\n\n public <P extends Parameter> ParameterBlock<P> parameterBlock(Class<P> kind);\n\n public void addParameterBlock(ParameterBlock<?> block);\n\n public void removeParameterBlock(ParameterBlock<?> block);\n\n public <P extends Parameter> List<P> parameters(Class<P> kind);\n\n /**\n * Indices start at 1.\n */\n public <P extends Parameter> P parameter(Class<P> kind, int index);\n\n public <P extends Parameter> int nbTypeParameters(Class<P> kind);\n\n public <P extends Parameter> void addParameter(Class<P> kind,P parameter);\n\n public <P extends Parameter> void addAllParameters(Class<P> kind,Collection<P> parameter);\n\n public <P extends Parameter> void replaceParameter(Class<P> kind, P oldParameter, P newParameter);\n\n public <P extends Parameter> void replaceAllParameters(Class<P> kind, List<P> newParameters);\n\n /************************\n * BEING A TYPE ELEMENT *\n ************************/\n\n public List<Declaration> getIntroducedMembers();\n\n /**********\n * ACCESS *\n **********/\n\n /**\n * Add the given element to this type.\n * \n * @throws ChameleonProgrammerException\n * The given element could not be added. E.g when you try to add\n * an element to a computed type.\n */\n /*@\n\t @ public behavior\n\t @\n\t @ pre element != null;\n\t @\n\t @ post directlyDeclaredElements().contains(element);\n\t @*/\n public void add(Declarator element) throws ChameleonProgrammerException;\n\n /**\n * Remove the given element to this type.\n * \n * @throws ChameleonProgrammerException\n * The given element could not be added. E.g when you try to add\n * an element to a computed type.\n */\n /*@\n\t @ public behavior\n\t @\n\t @ pre element != null;\n\t @\n\t @ post ! directlyDeclaredElements().contains(element);\n\t @*/\n public void remove(Declarator element) throws ChameleonProgrammerException;\n\n /**\n * Add all type elements in the given collection to this type.\n * @param elements\n * @throws ChameleonProgrammerException\n */\n /*@\n\t @ public behavior\n\t @\n\t @ pre elements != null;\n\t @ pre !elements.contains(null);\n\t @\n\t @ post directlyDeclaredElements().containsAll(elements);\n\t @*/\n public default void addAll(Collection<? extends Declarator> elements) {\n \telements.forEach(e -> add(e));\n }\n\n /**************\n * SUPERTYPES *\n **************/\n\n /**\n * Return the proper direct super types of this type. A proper super type is a super type\n * that is not equal to this type. A direct super type is a super type that is specified\n * by an inheritance relation of this type, or this type.\n * \n * @return A list containing the direct super types of this type.\n * @throws LookupException The type of an inheritance relation could not be resolved.\n */\n public default List<Type> getProperDirectSuperTypes() throws LookupException {\n\t\tList<Type> result = Lists.create();\n\t\tfor(InheritanceRelation element:inheritanceRelations()) {\n\t\t\tType type = element.superType();\n\t\t\tif (type!=null) {\n\t\t\t\tresult.add(type);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n public Set<Type> getAllSuperTypes() throws LookupException;\n\n public default boolean contains(Type other, TypeFixer trace) throws LookupException {\n return sameAs(other, trace);\n }\n \n public default boolean subtypeOf(Type other) throws LookupException {\n return subtypeOf(other, new TypeFixer());\n }\n\n public default boolean subtypeOf(Type other, TypeFixer trace) throws LookupException {\n TypeFixer clone = trace.clone();\n boolean result = sameAs(other,clone);\n if(! result) {\n clone = trace.clone();\n result = uniSubtypeOf(other,clone);\n if(! result) {\n result = other.uniSupertypeOf(this, trace);\n }\n }\n return result;\n }\n\n public default boolean uniSupertypeOf(Type type, TypeFixer trace) throws LookupException {\n return false;\n }\n\n public default boolean uniSubtypeOf(Type other, TypeFixer trace) throws LookupException {\n Type sameBase = getSuperTypeWithSameBaseTypeAs(other);\n return sameBase != null && sameBase.compatibleParameters(other, trace);\n }\n\n /**\n * Check if this type is assignable to another type.\n * \n * @param other\n * @return\n * @throws LookupException\n */\n /*@\n\t @ public behavior\n\t @\n\t @ post \\result == equals(other) || subTypeOf(other);\n\t @*/\n public boolean assignableTo(Type other) throws LookupException;\n\n /**\n * Return the inheritance relations of this type.\n * \n * @throws LookupException \n */\n /*@\n\t @ public behavior\n\t @\n\t @ post \\result != null;\n\t @*/\n public default List<InheritanceRelation> inheritanceRelations() throws LookupException {\n return nonMemberInheritanceRelations();\n }\n\n public List<InheritanceRelation> nonMemberInheritanceRelations();\n\n public <I extends InheritanceRelation> List<I> nonMemberInheritanceRelations(Class<I> kind);\n\n /**\n * Add the give given inheritance relation to this type.\n * @param relation The relation to add. Cannot be null.\n * @throws ChameleonProgrammerException\n * It is not possible to add the given type. E.g. you cannot\n * add an inheritance relation to a computed type.\n */\n /*@\n\t @ public behavior\n\t @\n\t @ pre relation != null;\n\t @ post inheritanceRelations().contains(relation);\n\t @*/\n public void addInheritanceRelation(InheritanceRelation relation);\n\n public void addAllInheritanceRelations(Collection<InheritanceRelation> relations);\n /**\n * Remove the give given inheritance relation from this type.\n * @param relation\n * @throws ChameleonProgrammerException\n * It is not possible to remove the given type. E.g. you cannot\n * remove an inheritance relation to a computed type.\n */\n /*@\n\t @ public behavior\n\t @\n\t @ pre relation != null;\n\t @ post ! inheritanceRelations().contains(relation);\n\t @*/\n public void removeNonMemberInheritanceRelation(InheritanceRelation relation) throws ChameleonProgrammerException;\n\n public void removeAllNonMemberInheritanceRelations();\n\n /**\n * Return the members of the given kind directly declared by this type.\n * @return\n * @throws LookupException \n * @throws \n */\n public <T extends Declaration> List<T> localMembers(final Class<T> kind) throws LookupException;\n\n /**\n * Return the members that are implicitly part of this type, such as default constructors and destructors.\n * @return\n */\n public List<Declaration> implicitMembers();\n\n public <M extends Declaration> List<M> implicitMembers(Class<M> kind);\n\n /**\n * Return the members directly declared by this type. The order of the elements in the list is the order in which they\n * are written in the type.\n * @return\n * @throws LookupException \n */\n public List<Declaration> localMembers() throws LookupException;\n\n public <T extends Declaration> List<T> directlyDeclaredMembers(Class<T> kind);\n\n public <T extends Declaration> List<T> directlyDeclaredMembers(Class<T> kind, ChameleonProperty property);\n\n public List<Declaration> directlyDeclaredMembers();\n\n public <D extends Declaration> List<SelectionResult<D>> members(DeclarationSelector<D> selector) throws LookupException;\n\n public <D extends Declaration> List<? extends SelectionResult<D>> localMembers(DeclarationSelector<D> selector) throws LookupException;\n\n public List<Declaration> members() throws LookupException;\n\n /**\n * Return the members of this class.\n * @param <M>\n * @param kind\n * @return\n * @throws LookupException\n */\n public <M extends Declaration> List<M> members(final Class<M> kind) throws LookupException;\n\n /**\n * DO NOT CONFUSE THIS METHOD WITH localMembers(). This method does not\n * transform type elements into members.\n * \n * FIXME: rename to localDeclarators()\n * \n * @return\n */\n public List<? extends Declarator> directlyDeclaredElements();\n\n public <T extends Declarator> List<T> directlyDeclaredElements(Class<T> kind);\n\n @Override\n public List<? extends Declaration> declarations() throws LookupException;\n\n public Type alias(String name);\n\n public Type intersection(Type type) throws LookupException;\n\n public Type intersectionDoubleDispatch(Type type) throws LookupException;\n\n public Type intersectionDoubleDispatch(IntersectionType type) throws LookupException;\n\n public void replace(Declarator oldElement, Declarator newElement);\n\n public Type baseType();\n\n public default boolean compatibleParameters(Type other, TypeFixer trace) throws LookupException {\n int size = nbTypeParameters(TypeParameter.class);\n boolean result = true;\n for(int i=0; i< size && result;i++) {\n TypeParameter otherParameter = other.parameter(TypeParameter.class, i);\n TypeParameter myParameter = parameter(TypeParameter.class,i);\n result = otherParameter.contains(myParameter, trace.clone());\n }\n return result;\n }\n\n\n public Type union(Type lowerBound) throws LookupException;\n\n public Type unionDoubleDispatch(Type type) throws LookupException;\n\n public Type unionDoubleDispatch(UnionType type) throws LookupException;\n\n public default boolean sameAs(Type other, TypeFixer trace) throws LookupException {\n if(other == this || trace.contains(other, this)) {\n return true;\n }\n TypeFixer newTrace = trace.clone();\n newTrace.add(other, this);\n boolean result = uniSameAs(other,newTrace);\n if(! result) {\n newTrace = trace.clone();\n newTrace.add(other, this);\n result = other.uniSameAs(this,newTrace);\n }\n return result;\n }\n\n /**\n * Check if this type is equal to the given type, taking\n * recursive types into account. If a loop is encountered,\n * that branch of the check will return true: it did not\n * encounter a problem.\n * \n * @param other The type of which we want to check if it is the same as this type.\n * @param fixer The object that will ensure that we can do a fixed point computation.\n * @return\n * @throws LookupException\n */\n public boolean uniSameAs(Type other, TypeFixer fixer) throws LookupException;\n\n /**\n * <p>Return the lower bound of this type.</p>\n * \n * <p> By <b>default</b>, the current object is returned.\n * \n * @return A type representing the lower bound of this type, when consider as an interval.\n * @throws LookupException\n */\n /*@\n @ post \\result != null;\n @ post \\result.subtypeOf(this);\n @*/\n public default Type lowerBound() throws LookupException {\n return this;\n }\n\n /**\n * <p>Return the upper bound of this type.</p>\n * \n * <p> By <b>default</b>, the current object is returned.\n * \n * @return A type representing the upper bound of this type, when consider as an interval.\n * @throws LookupException\n */\n /*@\n @ post \\result != null;\n @ post subtypeOf(\\result);\n @*/\n public default Type upperBound() throws LookupException {\n return this;\n }\n\n /**\n * A name that is strictly for debugging purposes.\n * \n * @return The result is not null.\n */\n public String infoName();\n\n /**\n * Verify whether the this type is a subtype of the given other type. \n * If that is the case, then a valid verification result is returned.\n * Otherwise, a problem is reported. The message of the problem is \n * constructed using the descriptions of the meaning of\n * each type as determined by the arguments.\n * \n * @param type The type for which the subtype relation is verified.\n * @param meaningThisType A textual description of the meaning of this type.\n * @param meaningOtherType A textual description of the meaning of the other type.\n * @param cause The element in which the verification is done.\n * @return\n */\n public Verification verifySubtypeOf(Type type, String meaningThisType, String meaningOtherType, Element cause);\n\n\n /**\n * @return\n */\n public default boolean isWildCard() {\n return false;\n }\n\n}", "public interface IContainerTreeNode extends IMutableTypeContainer, MutableTreeNode {\r\n}", "public interface Pie {\n Pie accept(PieVisitor visitor);\n\n public static void main(String[] args) {\n Pie p = new Top(new Integer(3), new Top(new Integer(2), new Top(new Integer(3), new Bot())));\n System.out.println(p);//Top{t=3, p=Top{t=2, p=Top{t=3, p=Bot{}}}}\n System.out.println(p.accept(new Rem(new Integer(2))));//Top{t=3, p=Top{t=3, p=Bot{}}}\n System.out.println(p.accept(new Subst(new Integer(5), new Integer(3))));//Top{t=5, p=Top{t=2, p=Top{t=5, p=Bot{}}}}\n System.out.println(\"--------------\");\n p = new Top(new Anchovy(), new Top(new Integer(3), new Top(new Zero(), new Bot())));\n System.out.println(p);//Top{t=Anchovy{}, p=Top{t=3, p=Top{t=Zero{}, p=Bot{}}}}\n System.out.println(p.accept(new Rem(new Zero())));//Top{t=Anchovy{}, p=Top{t=3, p=Bot{}}}\n System.out.println(\"--------------\");\n p = new Top(new Anchovy(), new Top(new Tuna(), new Top(new Anchovy(), new Top(new Tuna(), new Top(new Anchovy(), new Bot())))));\n System.out.println(p);//Top{t=Anchovy{}, p=Top{t=Tuna{}, p=Top{t=Anchovy{}, p=Top{t=Tuna{}, p=Top{t=Anchovy{}, p=Bot{}}}}}}\n System.out.println(p.accept(new LtdSubst(new Integer(2), new Salmon(), new Anchovy())));//Top{t=Salmon{}, p=Top{t=Tuna{}, p=Top{t=Salmon{}, p=Top{t=Tuna{}, p=Top{t=Anchovy{}, p=Bot{}}}}}}\n System.out.println(\"--------------\");\n }\n}", "public interface t<T> {\n void a(r<? super T> rVar);\n}", "abstract void sub();", "boolean test(AbstractAnimals a);", "public interface Generic extends Reference\n{\n}", "public interface DomainEventSubscirber<T extends DomainEvent> {\n public void handler(T event);\n}", "public void testObjectSuperclassOfInterface() throws NoSuchMethodException {\n assertEquals(Object.class, GenericTypeReflector.getExactSuperType(ArrayList.class, Object.class));\n assertEquals(Object.class, GenericTypeReflector.getExactSuperType(List.class, Object.class));\n assertEquals(Object.class, GenericTypeReflector.getExactSuperType(String[].class, Object.class));\n }", "@Override\n public abstract boolean isAssignableBy(TypeUsage other);", "public static void main(String[] args) {\n ToyBox<Car> carBox = new ToyBox<>();\n Car t1 = new Car(\"Yaris\", 1500);\n Car t2 = new Car(\"Corolla\", 2500);\n carBox.add(t1);\n carBox.add(t2);\n showToysinBox(carBox);\n\n // Create a \"bearBox\" with proper sentence\n ToyBox<Bear> bearBox = new ToyBox<>();\n Bear b1 = new Bear(\"Bear1\", 1000);\n Bear b2 = new Bear(\"Bear2\", 2000);\n bearBox.add(b1);\n bearBox.add(b2);\n showToysinBox(bearBox);\n\n\n /* It is OK till now */\n\n // Next, create Box<Toy>\n\n // Create a \"toyBox\" with proper sentence\n ToyBox<Toy> toyBox = new ToyBox<>();\n Car t3 = new Car(\"Tacoma\", 3300);\n Bear b3 = new Bear(\"Bear3\", 1200);\n\n toyBox.add(t3);\n toyBox.add(b3);\n\n showToysinBox(toyBox);\n /* It is still OK till now */\n\n // How about the next? Is it subtype?\n ToyBox<? extends Toy> sometoyBox = carBox;\n System.out.println(\"After assigning the carBox into the \\\"sometoyBox\\\"...\");\n showToysinBox(sometoyBox);\n }", "public interface Graphing<T> {\n\n void paint(T shape);\n}", "interface PolySet<T>\n{\n boolean contains(T t);\n void add(T t); \n}", "public interface Reader {\n\n <T extends Eat> Set<T> read();\n}", "public interface Command<T>\n{\n /**\n * Subclasses determine how to update the given object\n */\n public void execute (T target);\n}", "private static void LessonPolymorphism() {\n Employee empOne = new Employee(\"Bob\");\n Employee empTwo = new Employee(\"Linda\", \"Belcher\");\n System.out.println(empOne.getFirstName());\n System.out.println(empTwo.getFirstName() + \" \" + empTwo.getLastName());\n // run-time polymorphism - override\n //Override a method that is in a super class in a lower class\n // Create a method in BaseBO and create the same method in Empl\n BaseBO obj1 = new BaseBO();\n System.out.println(obj1.test_method());\n\n EntityType obj2 = new EntityType();\n System.out.println(obj2.test_method());\n }", "public abstract void process(final EClass Super, final EClass Sub);", "public static void substitutionTests()\r\n {\n List<Number> nums = new ArrayList<Number>();\r\n\r\n // Substitution example 2\r\n // 1 is an Integer (autoboxing) and Integer is a subtype of Number.\r\n nums.add(1);\r\n nums.add(2);\r\n nums.add(3.14);\r\n assert nums.toString().compareTo(\"[1 2 3.14]\") == 0;\r\n\r\n // Question: Can a List<Integer> be a subtype of List<Number>?\r\n // no. because List<Number> can be List<Double> and List<Integer> can not be assigned to List<Double>\r\n // The Liskopf substitution princple fails as a double can be added to a list of integers.\r\n\r\n // Question: Can a List<Number> be a subtype of List<Integer>?\r\n // same reason as above, a List<Number> can contain doubles but a List<Double> can not be assigned to List<Integer>\r\n // The Liskof substitution principle fails as a list of doubles can be assigned to a list of integers.\r\n\r\n /// Array Examples.\r\n Number[] numarr = new Number[1];\r\n numarr[0] = 2.14;\r\n // casting allowed but this will cause an exception.\r\n Integer[] intarr = (Integer[])numarr;\r\n }", "public interface Shape {\n\n void draw(); //Tells what kind of shape is drawn\n}", "public interface BaseRepository<T> extends GraphRepository<T> {\n}", "public interface BaseObject {\n}", "public void visit(Instanceof i) {}", "public interface MagicType extends Type {\n\n\t/**\n\t * Given that we are a type specified in a replacement rule (e.g. a Var or\n\t * Atom), can we consume a submatch of the given type in the match?\n\t *\n\t * Alternatively, we could have overriden .equals().\n\t */\n\tboolean replacementfor(Type o);\n}", "Set<? extends TypeContract<? super _Type_>> getSuperTypeContracts();", "@Override\n\tpublic void visit(Instanceof n) {\n\t\t\n\t}", "public static void main(String[] args) {\n try {\n UnsafePokeBall pokeBall = new UnsafePokeBall();\n pokeBall.setPokemon(new Pikachu());\n Pokemon pokemon = pokeBall.getPokemon(); // type is lost\n Pikachu pikachu = (Pikachu) pokemon; // we have to cast to get the type back\n\n // somewhere later in our program, another developer does\n pokeBall.setPokemon(new Bulbasaur());\n //\n // and we do ...\n //\n pikachu = (Pikachu) pokeBall.getPokemon(); // java.lang.ClassCastException\n } catch (Exception e) {\n System.err.println(e);\n }\n\n // Using our typesafe PikeBall implementation:\n {\n PokeBall<Pikachu> pikatchuPokeBall = new PokeBall<Pikachu>();\n pikatchuPokeBall.setPokemon(new Pikachu());\n final Pikachu pikachu = pikatchuPokeBall.getPokemon(); // no casting needed\n // somewhere later in our program, another developer CANNOT do:\n // pikatchuPokeBall.setPokemon(new Bulbasaur());\n }\n\n {\n // Type parameter 'T' can hold all reference types, but not primitive types:\n new PokeBall<Object>();\n new PokeBall<Pokemon>();\n new PokeBall<Pikachu>();\n new PokeBall<Raichu>();\n new PokeBall<Bulbasaur>();\n new PokeBall<String>(); // ups ... not what we wanted\n new PokeBall<Integer>(); // ups ... not what we wanted\n // new PokeBall<int>(); // primitive types not allowed\n }\n\n // Using the diamond operator '<>', the compiler may be able to determine/infer the type\n // parameter automatically\n {\n final PokeBall<Pikachu> pikatchuPokeBall = new PokeBall<>();\n final PokeBall<Object> objectPokeBall = new PokeBall<>();\n final PokeBall<Raichu> raichuPokeBall = new PokeBall<>();\n }\n\n // You can also substitute a type parameter 'T' with a parameterized type (List<Pikachu>)\n {\n final PokeBall<List<Pikachu>> pikatchuListPokeBall = new PokeBall<>();\n final List<Pikachu> pikachuList = new ArrayList<>();\n pikachuList.add(new Pikachu());\n pikatchuListPokeBall.setPokemon(pikachuList);\n }\n\n // A raw type is the name of a generic class or interface without any type arguments.\n try {\n final PokeBall<Pikachu> pikachuPokeBall = new PokeBall<>();\n\n final PokeBall pokeBall = pikachuPokeBall; // OK, but raw use\n pokeBall.setPokemon(new Bulbasaur()); // unchecked call\n\n final PokeBall<Pikachu> pikachuPokeBall2 = pokeBall;\n\n final Pikachu pokemon = pikachuPokeBall2.getPokemon(); // ClassCastException\n } catch (Exception e) {\n System.err.println(e);\n }\n }", "private static void doSomething(Operable operable)\r\n {\n operable.run(1000);\r\n\r\n //Here we are casting, or \"relabeling\" the Operable as a laptop.\r\n //this does not affect what is stored in the actual object\r\n //this works because we actually passed a laptop.\r\n Laptop laptop = (Laptop) operable;\r\n System.out.println(laptop.getProcessorSpeed());\r\n\r\n //This, however, is violating the compiler's trust!\r\n //The compiler will think that we know what we are doing, and allow us to compile this code.\r\n //However, the operable we passed in is NOT a Car, and this will crash during runtime\r\n Car car = (Car) operable; //ClassCastException thrown here\r\n }", "public interface EffectFullType extends Type\n{\n}", "boolean isSuperclass(Concept x, Concept y);", "@Override\npublic void resting(Animal a) {\nSystem.out.println(a.getType()+ \" is resting.\");\n}", "private static void handlePolymorphism() {\n\n for(String subClass : superDict.keySet()) {\n addPlace(subClass);\n for (String superClass : superDict.get(subClass)) {\n addPlace(superClass);\n String methodName = subClass + \"IsPolymorphicTo\" + superClass;\n petrinet.createTransition(methodName);\n petrinet.createFlow(subClass, methodName, 1);\n petrinet.createFlow(methodName, superClass, 1);\n }\n }\n }", "public interface Findable<F extends Findable<F>> {\n\n}", "Set<Concept> getSuperclasses(Concept concept);", "interface Bank<T>{\t\t\t// here Singapore is considered as Type<T>: Bank<T>.\n\tvoid bankInfo(T ref);\t// ref is local variable of Singapore Type\n}", "public Verification verifySubtypeOf(Type type, String meaningThisType, String meaningOtherType, Element cause);", "public interface IProperty<O extends Object> extends IFeature{\n O getProperty();\n void setProperty(O property);\n EPropertyCategory getCategory(); \n}", "public interface BaseBridge<T> {\n void addData(List<T> datas);\n void addData(T data);\n\n void error();\n\n interface ImageDetailData extends BaseBridge<RoomBean> {\n }\n\n}", "public interface Fox extends Animals, Sittable {\r\n\r\n /**\r\n * Gets the current type of this fox.\r\n *\r\n * @return Type of the fox.\r\n */\r\n @NotNull\r\n public Type getFoxType();\r\n\r\n /**\r\n * Sets the current type of this fox.\r\n *\r\n * @param type New type of this fox.\r\n */\r\n public void setFoxType(@NotNull Type type);\r\n\r\n /**\r\n * Checks if this animal is crouching\r\n *\r\n * @return true if crouching\r\n */\r\n boolean isCrouching();\r\n\r\n /**\r\n * Sets if this animal is crouching.\r\n *\r\n * @param crouching true if crouching\r\n */\r\n void setCrouching(boolean crouching);\r\n\r\n /**\r\n * Sets if this animal is sleeping.\r\n *\r\n * @param sleeping true if sleeping\r\n */\r\n void setSleeping(boolean sleeping);\r\n\r\n /**\r\n * Gets the first trusted player.\r\n *\r\n * @return the owning AnimalTamer, or null if not owned\r\n */\r\n @Nullable\r\n public AnimalTamer getFirstTrustedPlayer();\r\n\r\n /**\r\n * Set the first trusted player.\r\n * <p>\r\n * The first trusted player may only be removed after the second.\r\n *\r\n * @param player the AnimalTamer to be trusted\r\n */\r\n public void setFirstTrustedPlayer(@Nullable AnimalTamer player);\r\n\r\n /**\r\n * Gets the second trusted player.\r\n *\r\n * @return the owning AnimalTamer, or null if not owned\r\n */\r\n @Nullable\r\n public AnimalTamer getSecondTrustedPlayer();\r\n\r\n /**\r\n * Set the second trusted player.\r\n * <p>\r\n * The second trusted player may only be added after the first.\r\n *\r\n * @param player the AnimalTamer to be trusted\r\n */\r\n public void setSecondTrustedPlayer(@Nullable AnimalTamer player);\r\n\r\n /**\r\n * Represents the various different fox types there are.\r\n */\r\n public enum Type {\r\n RED,\r\n SNOW;\r\n }\r\n}", "public interface s extends a {\n void a();\n\n void a(g gVar);\n\n void a(String str, boolean z);\n}", "public interface IChildrenQuery<C extends SuperVO> {\n\n List<C> queryByParentPk(String parentPk);\n}", "public interface Parameter {\n\n boolean isAssignableTo(Type<?> type);\n\n}", "protected interface TypeCheckingNode {\n /**\n * Checks whether an object is known to be subtype in the cache.\n *\n * @param isSub - the cache of subtypes\n * @param expected - the expected type\n * @param argument - the object being checked\n * @param type - the type of the argument\n * @param sourceSection - the location in source of the type check\n * @param exception - the node used to throw errors\n * @return The argument if it is a subtype. Null if it wasn't in the cache. Otherwise an\n * error is thrown.\n */\n default <E> E checkTable(final byte[] isSub,\n final SObjectWithClass expected, final E argument, final SType type,\n final SourceSection sourceSection, final ExceptionSignalingNode exception) {\n byte sub = isSub[type.id];\n if (sub == SUBTYPE) {\n return argument;\n } else if (sub == FAIL) {\n reportError(argument, type, expected, sourceSection, exception);\n }\n return null;\n }\n\n /**\n * The method that should call throwTypeError.\n */\n void reportError(Object argument, Object type, Object expected,\n SourceSection sourceSection, ExceptionSignalingNode exception);\n\n /**\n * Checks whether an object is Nil.\n */\n default boolean isNil(final SObjectWithoutFields obj) {\n return obj == Nil.nilObject;\n }\n }", "interface Shape{\r\n\tvoid draw();\r\n}", "private static void handlePolymorphism() {\n for(String subClass : superDict.keySet()) {\n try {\n petrinet.getPlace(subClass.toString());\n } catch (NoSuchNodeException e ) {\n petrinet.createPlace(subClass.toString());\n }\n assert (petrinet.containsNode(subClass));\n for (String superClass : superDict.get(subClass)) {\n // If the class is not in the petrinet, create the class\n try {\n petrinet.getPlace(superClass.toString());\n } catch (NoSuchNodeException e) {\n petrinet.createPlace(superClass.toString());\n }\n assert (petrinet.containsNode(superClass));\n\n String methodName = subClass + \"IsPolymorphicTo\" + superClass;\n petrinet.createTransition(methodName);\n petrinet.createFlow(subClass, methodName);\n petrinet.createFlow(methodName, superClass);\n }\n }\n }", "public interface GenericTemp<T extends GenericTemp> {\n public Boolean dosomething( T one);\n\n //上界限定的List进行处理\n public void doTwo(List<? extends T> w);\n}", "public interface BasePresenter<V extends BaseView> {\n\n void addView(V View);\n void removeView();\n}", "public interface ITypeRegistry extends IRegistry<ISourceType> {\n}", "public interface IHasParent {\n <T> T setParent(Object parent);\n Object getParent();\n}", "void place(Animal animal);", "interface Surgeon extends Doctor {\n\t\n}", "public interface SimapaCollection extends SimapaObject {\r\n}", "public static void main(String[] args) {\n\n Dog dog = new Dog();\n Cat cat = new Cat();\n System.out.println(\"The dog's age is \"+ dog.getAge());\n System.out.println(\"The cat's age is \"+ cat.getAge());\n cat.meow();\n dog.ruff();\n dog.eat();\n cat.eat();\n dog.run();\n cat.prance();\n\n System.out.println();\n System.out.println();\n dog.eat();\n cat.eat();\n\n System.out.println();\n System.out.println();\n cat.sleep();\n dog.sleep();\n\n //Converting from a super to a sub\n //Animal billy = new Dog();\n\n // Casting\n Object doggie = new Dog();\n Dog realDog = (Dog) doggie;\n realDog.ruff();\n\n Object str = \"est\";\n String realS = (String) str;\n realS.getBytes();\n\n // What happens when...\n\n Dog doggy = new Dog();\n if (dog instanceof Animal){\n Animal animal = (Animal) doggy;\n animal.sleep();\n }\n doggy.sleep();\n\n }", "public interface Shape\n{\n void draw();\n}", "public interface ShapeOperations {\n\n /**\n * Computes the difference between this Shape and the input Shape <code>s</code> and puts the\n * result back into this Shape. The difference is the points that are in this Shape but not in\n * the input Shape.\n * \n * @param s the Shape to compute the difference from.\n */\n public void difference(Shape s);\n\n /**\n * Computes the intersection between this Shape and the input Shape <code>s</code> and puts the\n * result back into this Shape. The intersection is the points that are in both this Shape and\n * in the input Shape.\n * \n * @param s the Shape to compute the intersection from.\n */\n public void intersect(Shape s);\n\n /**\n * Computes the union between this Shape and the input Shape <code>s</code> and puts the result\n * back into this Shape. The union is the points that are in either this Shape or in the input\n * Shape.\n * \n * @param s the Shape to compute the union from.\n */\n public void union(Shape s);\n\n}", "public void visitISUB(ISUB o){\n\t\tif (stack().peek() != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'int', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1) != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack next-to-top is not of type 'int', but of type '\"+stack().peek(1)+\"'.\");\n\t\t}\n\t}", "public void setSubtype (String subtype) {\n this.subtype = subtype;\n }", "public interface UpdateT extends Update {\n}", "@Override\npublic void mating(Animal a) {\nSystem.out.println(a.getType()+ \" is mating.\");\n}", "public interface Mergeable<T extends Mergeable>\n{\n /**\n * Performs merge of this object with another object of the same type.\n * Returns this object as a result of the performed merge.\n *\n * @param object object to merge into this one\n * @return this object as a result of the performed merge\n */\n public T merge ( T object );\n}", "public interface VideoScrapper extends Scrapper<Video> {\n\n}", "private static void subPropertyOf(final OWLAxiom axiom, final Set<Rule> rules) {\n\t\tOWLSubObjectPropertyOfAxiom subPropertyOfAxiom = (OWLSubObjectPropertyOfAxiom) axiom;\n\t\tOWLObjectPropertyExpression superProperty = subPropertyOfAxiom.getSuperProperty().getSimplified();\n\t\tOWLObjectPropertyExpression subProperty = subPropertyOfAxiom.getSubProperty().getSimplified();\n\n\t\t// R(x,y) -> S(x,y)\n\t\tRule subRoleOf = new Rule(OWLObjectPropertytoAtom(superProperty, VAR_X, VAR_Y),\n\t\t\t\tOWLObjectPropertytoAtom(subProperty, VAR_X, VAR_Y));\n\t\trules.add(subRoleOf);\n\t}", "public boolean assignableTo(Type other) throws LookupException;", "public static void main(String[] args) {\n// subClass[] classes = new subClass[1];\n// System.out.println(superClass.value);\n// System.out.println(subClass.value);\n subClass s = new subClass();\n s.lala();\n// superClass p = s;\n// System.out.println(s==p);\n// System.out.println(s.name);\n// System.out.println(s.value);\n// subClass.haha();\n// s.heihei();\n// System.out.println( p.name);\n// System.out.println(p.value);\n// p.haha();\n// p.heihei();\n\n }", "@Override\n public abstract boolean isAssignableBy(ResolvedType other);", "public interface Shape {\n public void draw();\n}", "public interface Zoo {\n AnimalType getAnimalType();\n}", "protected abstract void registerSuperTypes();", "public interface Shape \r\n{\r\n void draw();\r\n}", "public static void main(String[] args) {\n\n List<Object> objectList = new ArrayList<>(Arrays.asList(new Person(), 9L, 10d, \"11f\")); ;\n\n List<Number> numberList = new ArrayList<>(Arrays.asList(5, 9L, 10d, 11f));\n\n List<Double> doubleList = List.of(5.3, 4.2);\n List<Long> longList = List.of(1L, 2L, 3L);\n List<Integer> integerList = List.of(5, 6, 7);\n\n // How to call generic methods?\n Printer p = new Printer();\n\n p.<Person>print(new Person());\n p.<Integer>print(42);\n p.<String>print(\"42\");\n\n // Passing type argument (<..>) is optional when calling generic method\n p.print(new Person());\n p.print(42);\n p.print(\"42\");\n\n p.print(numberList);\n p.print(longList);\n\n // covariant: all subtypes of Number and Number itself allowed as T in List<T>, so\n // - List<Integer>,\n // - List<Long>,\n // - ...\n // = preserved subtyping relation\n p.printCo(numberList);\n p.printCo(longList);\n p.printCo(integerList);\n p.printCo(doubleList);\n\n // contravariant: only supertypes of Number and Number itself can be passed as T in List<T>, so only\n // - List<Number> and\n // - List<Object>\n // = reserved subtyping relation\n p.printContra(objectList);\n p.printContra(numberList);\n\n // invariant: you have to pass the exact type, List<Number> in this case, no subtypes allowed.\n p.printNumbers(numberList);\n // p.printNumbers(longList); // not allowed: would result in longList.add(1.0d) inside printNumbers\n\n }", "public interface BaseItem {\n}", "public interface RoadRailVehicle extends RailVehicle, RoadVehicle {\n\n\n\n}", "public interface IPetRepository extends IBaseRepository<Pet> {\n // Will be dinamically implemented (polymorphism style)\n}", "public static void main(String[] args) {\n Vehicle vehicle = new Vehicle(4,\"Black\",12343443,true);\n Object vehicle2 = new Vehicle(4,\"White\",32343443,false);\n //Create RegisteredVehicle Object\n RegisteredVehicle registeredVehicle =\n new RegisteredVehicle(4,\"Red\",134345454,true,\n \"AN123\", LocalDate.of(2020,5,2), LocalDate.of(2021, 5, 2));\n Vehicle registredVihicle2 = new RegisteredVehicle(4,\"Blue\",23322434,true,\n \"ABC222\", LocalDate.of(2020,4,22), LocalDate.of(2021, 4, 22));\n //Create Bike Object\n Bike bike =\n new Bike(2,\"black\",1213223,\n \"AC2323\",LocalDate.of(2020,4,22),\n LocalDate.of(2021, 4, 22),\n \"Sport\", \"Yamaha\",1000);\n RegisteredVehicle bike2 = new Bike(2,\"blue\",1213223,\n \"Abb2323\",LocalDate.of(2020,4,22),\n LocalDate.of(2021, 4, 22),\n \"Sport\", \"BMW\",1000);\n Vehicle bike3 = new Bike(2,\"Yellow\",33434,\n \"jjj222\",LocalDate.of(2020,4,22),\n LocalDate.of(2021, 4, 22),\n \"Sport\", \"Honda\",1000);\n\n System.out.println(\"price for vehicle object \" + VehicleShop.estimatePrice(vehicle));\n //vehicle2 is stored in Object class, which is larger than Vehicle class, so it Vehicle param cannot take it.\n //we can use casting in order to narrow down the variable data type\n System.out.println(vehicle2);//doesnt have access to any Vehicle members\n System.out.println(\"price for vehicle object \" + VehicleShop.estimatePrice((Vehicle)vehicle2));//we are changing\n //the data type of vehicle2 to Vehicle from Object\n System.out.println(((Vehicle) vehicle2).getNumOfWheels());\n System.out.println(VehicleShop.estimatePrice(registeredVehicle));\n //polymorphism\n Vehicle vehicle1 = VehicleShop.createAnObject(\"vehicle\");\n Bike bike1 = (Bike)VehicleShop.createAnObject(\"bike\");//cast\n bike1.setBrand(\"Yamaha\");\n System.out.println(bike1.getBrand());\n// Bike bike4 = (Bike)VehicleShop.createAnObject(\"registeredvehicle\");//ClassCast Exception.\n// //which we get when the actual object that's stored in the Parent Class data type is not\n// //covariant to the object we try casting to.\n// bike4.setBrand(\"Honda\");\n// System.out.println(bike4.getBrand());\n Vehicle vehicle3 = new Vehicle();//has info only about vehicle\n Vehicle v = new RegisteredVehicle();//has info about vehicle\n //by casting we can also get info about RegisteredVehicle.\n //RegisteredVehicle rg = (RegisteredVehicle)vehicle3;//class cast exception\n RegisteredVehicle rg = (RegisteredVehicle)v; //which object v is pointing to?\n //the object v is pointing to should be same or narrower than what we are trying to cast to.\n RegisteredVehicle rv = new Bike();\n Bike b1 = (Bike)rv;\n System.out.println(vehicle3.sum(4,2));\n //if the method is overridden in subclass\n //and the variable is stored in the parent class DataType\n //but actual value(object is subclass) we call a method in subclass\n System.out.println(v.sum(4,2));\n //Casting\n int y = 100;\n short x = (short)y;//compile time error.\n sum((byte)y);\n // sum(\"Hello\");cannot even be casted because they are not covariant.\n }", "public interface Shape {\n void draw();\n}", "public interface Shape {\n void draw();\n}", "public interface Shape {\n void draw();\n}", "public interface Shape {\n void draw();\n}", "public void setSubtype (String subtype) {\n this.subtype = subtype;\n }", "public <E extends cn.vertxup.atom.domain.tables.interfaces.IMRelation> E into(E into);", "public interface IChild<T extends IChild<T,ID>,ID extends Serializable> extends IIdable<ID> {\n List<T> getParents();\n\n default boolean isCanHaveParents() {\n return true;\n }\n default List<T> getAllParentsAndThis() {\n return Hierarchicals.getAllParents(true, (T) this);\n }\n\n default List<T> getAllParents() {\n return Hierarchicals.getAllParents((T) this);\n }\n\n default boolean isChildOf(Iterable<T> parents) {\n return Hierarchicals.isChildOf((T) this, parents);\n }\n\n default boolean isChildOf(T... parents) {\n return Hierarchicals.isChildOf((T) this, parents);\n }\n\n default boolean isChildOfId(Iterable<ID> parentIds) {\n return Hierarchicals.isChildOfId((IChild)this, parentIds);\n }\n\n default boolean isChildOfId(ID... parentIds) {\n return Hierarchicals.isChildOfId((IChild)this, parentIds);\n }\n default T getFirstParent() {\n return Iterables.getFirst(getParents(), (T) this);\n }\n default void setParents(List<T> childs) {\n throw new UnsupportedOperationException(getClass().getName() + \" method setParents not supported\");\n }\n\n}", "public interface CreateData<T extends SaveableData> {\r\n T createElement();\r\n}", "public interface Shape {\r\n void draw();\r\n}", "public interface RemotingServer<T> {\n Set<RemotingClient<T>> getRemotingClients();\n\n Set<RemotingSupervisor<T>> getSupervisors();\n\n Set<SharingSession<T>> getSessions();\n\n void addRemotingClient(RemotingClient<T> client);\n\n void addSuprevisor(RemotingSupervisor<T> supervisor);\n}", "public static void TestGenericMethod_addToCollection()\r\n\t{\n\t\tCollection<Object> objc = new ArrayList<Object>();\r\n\t\tCollection<Integer> intc = new ArrayList<Integer>();\r\n\t\tObject[] objs = new Object[2];\r\n\t\taddToCollection(objs, objc);\r\n\t\tString[] strings = new String[2];\r\n\t\tfor (int i = 0; i < strings.length; ++i)\r\n\t\t\tstrings[i] = Integer.toString(i);\r\n\t\t// Object argument inferred.\r\n\t\taddToCollection(strings, objc);\r\n\t\t// now you can print the array of objects ONLY.\r\n\t\tCollection<String> stringc = new ArrayList<String>();\r\n\t\taddToCollection(strings, stringc);\r\n\t\tint[] ints = new int[2];\r\n\t\tfor (int i = 0; i < ints.length; ++i)\r\n\t\t\tints[i] = i;\r\n\t\t// FAILS: is it an int or string?\r\n\t\t//addToCollection(ints, stringc);\r\n\t\t// FAILS: No autoboxing.\r\n\t\t//addToCollection<Integer>(ints,intc);\r\n\t}", "public interface Animal extends Cloneable {\r\n\tAnimal makeCopy();\r\n}", "public interface IEventType<T> {\n\n /**\n * It sets the event name for an event instance.\n * @param name A simple name for the event instance.\n */\n public void setEventName(String name);\n\n /**\n * It returns the event name for an event instance.\n * @return A simple name for the event instance.\n */\n public String getEventName();\n\n /**\n * It sets the class name for the event type.\n * @param clazz The full class name for the event instance.\n */\n public void setClazzName(String clazz);\n\n /**\n * It returns the class name for the event type.\n * @return The full class name for the event instance.\n */\n public String getClazzName();\n\n /**\n * It returns the super types for a specific event.\n * @return array of the super types.\n */\n public IEventType<T>[] getSuperTypes();\n\n /**\n * It returns the deep super types.\n * @return an iteration of the deep super types.\n */\n public Iterator<IEventType<T>> getDeepSuperTypes();\n\n /**\n * It sets the properties for the event type.\n * @param propSchema minimum schema for a property.\n */\n public void setProperties(List<IPropertyDescriptor<T>> propSchema);\n\n /**\n * It returns the properties for the event type.\n * @param propSchema minimum schema for a property.\n */\n public List<IPropertyDescriptor<T>> getProperties();\n}", "public interface n {\n void a(au<?> auVar);\n}", "public interface Squad extends Unit {\n List<Individual> getMembers();\n List<Trait> getSquadOffensiveTraits();\n List<Trait> getSquadDefensiveTraits();\n}", "interface Set\n{\n boolean contains(String s);\n void add(String s); // notice that void means Set will be mutated. \n // => no longer functional. \n}", "public interface Particle extends VisualValue, Point\n{\n}", "public abstract void setType();", "public interface Shape {\n\n void draw();\n}" ]
[ "0.595979", "0.5582417", "0.5559713", "0.5532084", "0.54084957", "0.5393497", "0.53709286", "0.53628504", "0.534518", "0.53398645", "0.53379184", "0.5337358", "0.5320801", "0.530529", "0.5268364", "0.524976", "0.52365494", "0.52322733", "0.52085084", "0.51695955", "0.5160745", "0.51528984", "0.51320255", "0.51316786", "0.51112825", "0.5102541", "0.50816035", "0.5061931", "0.50545275", "0.5043746", "0.50282055", "0.501703", "0.50122786", "0.5007414", "0.5007183", "0.49999222", "0.4989989", "0.49837562", "0.49813423", "0.49426293", "0.49397328", "0.49387023", "0.49375448", "0.49251905", "0.49177396", "0.48988816", "0.48886663", "0.48852652", "0.48771822", "0.48769623", "0.48760954", "0.48737404", "0.48702174", "0.48623258", "0.48594633", "0.4857295", "0.48564488", "0.4846999", "0.48417133", "0.48409298", "0.48271665", "0.48184967", "0.4818152", "0.48166347", "0.4813773", "0.48098686", "0.48012614", "0.48011807", "0.47989225", "0.47979635", "0.4795185", "0.4792512", "0.47924682", "0.47841734", "0.4777699", "0.47772378", "0.47740966", "0.47732097", "0.47682634", "0.47660586", "0.47520298", "0.47490802", "0.47490802", "0.47490802", "0.47490802", "0.4748807", "0.47465047", "0.47433326", "0.4742013", "0.4734943", "0.47313896", "0.47305647", "0.47274524", "0.4720053", "0.4719967", "0.47168198", "0.47122607", "0.47103637", "0.47099847", "0.47033897" ]
0.57193035
1
notice that elems, since protected, can be used in this class.
public void remove(String s) { elems.remove(s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object[] elements() {\n return elements.toArray();\n }", "public interface ElementsGetter<T> {\n\t\n\t/**\n\t * Metoda provjerava ima li jos elemenata\n\t * u kolekciji\n\t * @return boolean true ako ima jos elemenata, false ako nema\n\t */\n\tpublic boolean hasNextElement();\n\t\n\t/**\n\t * Metoda dohvaca iduci element kolekcije i vraca ga.\n\t * @return Object koji je iduci element iz kolekcije\n\t */\n\tpublic T getNextElement();\n\t\n\t/**\n\t * Nad svim preostalim elementima kolekcije poziva \n\t * metodu procesora p process(Object value).\n\t * @param p Procesor koji hocemo pozvati nad\n\t * preostalim elementima kolekcije.\n\t * @throws NullPointerException ako je procesor p null\n\t */\n\tdefault void processRemaining(Processor<? super T> p) {\n\t\tObjects.requireNonNull(p);\n\t\twhile(hasNextElement()) {\n\t\t\tp.process(getNextElement());\n\t\t}\n\t}\n}", "public Collection<P> getPoolableElements();", "@Override\n\tCollection<T> internalElements() {\n\t\tCollection<T> values = new LinkedList<T>();\n\t\t\n\t\tfor(LinkedList<T> list : internalStorage.get(0).values()) {\n\t\t values.addAll(list);\t\n\t\t}\n\t\treturn values;\n\t}", "public abstract Enumeration elements();", "public interface ElementsGetter {\n\t\n\t/**\n\t * Tests if this ElementsGetter contains more elements.\n\t * @return true if this ElementsGetter contains at least one more element to provide, false otherwise.\n\t */\n\tboolean hasNextElement();\n\t\n\t/**\n\t * Returns the next element of this ElementsGetter if it has at least one more element to provide.\n\t * @return the next element of this ElementsGetter if exists.\n\t * @throws NoSuchElementException if no more elements exist.\n\t */\n\tObject getNextElement() throws NoSuchElementException;\n\t\n\t/**\n\t * Processes all the remaining elements in this ElementsGetter using the given processor object.\n\t * @param p Processor object that processes the remaining elements.\n\t */\n\tdefault void processRemaining(Processor p) {\n\t\twhile(hasNextElement()) {\n\t\t\tp.process(getNextElement());\n\t\t}\n\t}\n}", "public Object[] getElements() {\r\n\t\treturn elements.clone();\r\n\t}", "private ArraySetHelper() {\n\t\t// nothing\n\t}", "Iterable<? extends XomNode> elements();", "Collection<V> getAllElements();", "@SuppressWarnings(\"unchecked\")\n private void initElements() {\n\n try {\n\n Elements marker = null;\n\n for (Annotation annotation : this.getClass().getDeclaredAnnotations()) {\n if(annotation instanceof Elements) {\n marker = (Elements) annotation;\n }\n }\n\n if(marker == null) {\n String msg = \"Expected @Elements annotation on Screen class\";\n log.error(msg);\n throw new FrameworkException(msg);\n }\n\n PlatformType platform = DriverWrapper.getActivePlatform();\n Validate.notNull(platform);\n\n Class<? extends BaseElements> elementsClass = null;\n\n if(marker.elements().equals(BaseElements.class)) {\n // do we have individual iOS or Android elements?\n if(PlatformType.ANDROID == platform) {\n elementsClass = marker.androidElements();\n\n } else if(PlatformType.IOS == platform) {\n elementsClass = marker.iosElements();\n } else {\n throw new IllegalArgumentException(\"Un-supported platform\");\n }\n\n } else {\n // just take combined merged elements\n elementsClass = marker.elements();\n }\n\n if(marker.elements().equals(BaseElements.class)) {\n throw new IllegalArgumentException(\"Expected that you provide an elements class\");\n }\n\n Constructor<? extends BaseElements> constructor = elementsClass.getConstructor();\n this.elements = constructor.newInstance();\n\n PageFactory.initElements(new AppiumFieldDecorator(driver), elements);\n\n this.elements.init(driver);\n\n } catch(Exception e) {\n\n log.error(\"Failed to initialize page elements\", e);\n throw new FrameworkException(e);\n }\n }", "@Override\n public List<IExpression> getElements() {\n return elements;\n }", "Iterable<CtElement> asIterable();", "public Iterable<MapElement> elements() {\n return new MapIterator() {\n\n @Override\n public MapElement next() {\n return findNext(true);\n }\n \n };\n }", "private Vector<ResourceLocation> getElements() {\n return getRef().elements;\n }", "public int elements() {\n\t\treturn elements;\n\n\t}", "Object element();", "Object element();", "public Vector(boolean useGiven, double... elems) {\n\t\tif (useGiven) {\n\t\t\tthis.elements = elems;\n\t\t} else {\n\t\t\tthis.elements = new double[elems.length];\n\t\t\tfor (int i = elems.length - 1; i >= 0; i--) {\n\t\t\t\tthis.elements[i] = elems[i];\n\t\t\t}\n\t\t}\n\t\tdimensions = elems.length;\n\t}", "void element() {}", "public HashSet getElements() {\n\treturn elements;\n }", "@Override\r\n public List<Element> findElements()\r\n {\n return null;\r\n }", "public int getElem()\r\n\t{\r\n\t\treturn elem;\r\n\t}", "protected abstract Object[] getComponents();", "public ZYArraySet(){\n elements = (ElementType[])new Object[DEFAULT_INIT_LENGTH];\n }", "public interface PermutableElements extends SortableElements {\n\t/**\n\t * Initializes an Elements instance by creating n elements with ascending keys from 0 to n-1.\n\t * @param n the number of elements.\n\t */\n\tvoid init(int n);\n\t\n\t/**\n\t * Returns the key of the i-th element.\n\t */\n\tint getKey(int i);\n\t\n\t/**\n\t * Sets a new key for the i-th element.\n\t */\n\tvoid setKey(int i, int key);\n\t\n\t/**\n\t * Returns true iff the elements are sorted (in ascending order).\n\t */\n\tboolean areSorted();\n\t\n\t/**\n\t * Returns the number of comparisons, i.e., the number of invocations of the compare methods,\n\t * since the last call of init.\n\t */\n\tlong getNumberOfComparisons();\n}", "private void serializeXmlElementsArray(ArrayList<?> al, JsonGenerator jgen, SerializerProvider prov,\n Map<Class<?>, QName> nameMap)\n throws JsonGenerationException, IOException {\n for (Object obj : al) {\n Class<?> objClass = obj.getClass();\n QName qn = nameMap.get(objClass);\n if (qn == null) {\n if (org.w3c.dom.Element.class.isAssignableFrom(objClass)) {\n // XmlAnyElement handling\n org.w3c.dom.Element w3ce = (org.w3c.dom.Element) obj;\n jgen.writeFieldName(w3ce.getLocalName());\n JsonSerializer<org.w3c.dom.Element> eleSer = new ZmDomElementJsonSerializer();\n eleSer.serialize(w3ce, jgen, prov);\n } else {\n if (!nameInfo.isMixedAllowed()) {\n LOG.debug(\"Unexpected '\" + objClass.getName() + \"' object in XmlElements(Refs) array - ignored\");\n } else {\n jgen.writeFieldName(JSONElement.A_CONTENT /* \"_content\" */);\n jgen.writeObject(obj);\n }\n }\n } else {\n jgen.writeFieldName(qn.getLocalPart());\n jgen.writeStartArray();\n jgen.writeObject(obj);\n jgen.writeEndArray();\n }\n }\n }", "@Override\n public int getNumSubElements()\n {\n return 0;\n }", "Elem getElem();", "@Override\n\tpublic AllegationsElement Elements() {\n\t\treturn new AllegationsElement(driver);\n\t}", "public Enumeration elements();", "public Layer_ElementsCollection()\n\t{\n\t\tthis.elements = new ArrayList<GIS_element>();\n\t}", "String getElem();", "public ListsElements( T[] expected)\n {\n this( expected, null);\n }", "Map<Double, Element> getElements();", "public List allElements() {\r\n\t\tArrayList elems = new ArrayList();\r\n\t\tfor (int i = 0; i < elements.size(); ++i) {\r\n\t\t\tObject ob = elements.get(i);\r\n\t\t\tif (ob instanceof Operator) {\r\n\t\t\t} else if (ob instanceof FunctionDef) {\r\n\t\t\t\tExpression[] params = ((FunctionDef) ob).getParameters();\r\n\t\t\t\tfor (int n = 0; n < params.length; ++n) {\r\n\t\t\t\t\telems.addAll(params[n].allElements());\r\n\t\t\t\t}\r\n\t\t\t} else if (ob instanceof TObject) {\r\n\t\t\t\tTObject tob = (TObject) ob;\r\n\t\t\t\tif (tob.getTType() instanceof TArrayType) {\r\n\t\t\t\t\tExpression[] exp_list = (Expression[]) tob.getObject();\r\n\t\t\t\t\tfor (int n = 0; n < exp_list.length; ++n) {\r\n\t\t\t\t\t\telems.addAll(exp_list[n].allElements());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\telems.add(ob);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\telems.add(ob);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn elems;\r\n\t}", "public Element[] echo(Element[] elements) {\n return elements;\n }", "public Iterable<HTMLElement> elements() {\n return iterable;\n }", "Map<String, Element> getElements();", "public static <OUT> void checkCollection(Collection<OUT> elements, Class<OUT> viewedAs) {\n checkIterable(elements, viewedAs);\n }", "public E[] values(){\n\t\tE[] output = (E[]) new Object[howMany];\n\t\tint j = 0;\n\t\tfor (int i = 0; i < elem.length; i++)\n\t\t\tif (elem[i] != null){\n\t\t\t\toutput[j] = elem[i];\n\t\t\t\tj = j + 1;\n\t\t\t}\n\t\treturn output;\n\t}", "public List_inArraySlots() {\n intElements = new int[INITIAL_CAPACITY];\n doubleElements = new double[INITIAL_CAPACITY];\n stringElements = new String[INITIAL_CAPACITY];\n\n typeOfElements = new int[INITIAL_CAPACITY];\n }", "public Enumeration elements()\r\n/* 54: */ {\r\n/* 55:82 */ return this.pop.elements();\r\n/* 56: */ }", "@Override\n public Iterator<E> iterator() {\n return new ElementIterator();\n }", "public void setPoolableElements(Collection<P> poolables);", "public boolean elementDirect(Element elem) {\r\n\r\n boolean test = false;\r\n\r\n for (int i = 0; i < element.size(); i++) {\r\n if (element.get(i).getNom().equals(elem.getNom())) {\r\n test = true;\r\n }\r\n }\r\n return test;\r\n }", "public void setElem(int elem)\r\n\t{\r\n\t\tthis.elem = elem;\r\n\t}", "@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 }", "public abstract Integer getNumberOfElements();", "public abstract Elemento[] elementosStone(Elemento[] elementos);", "public List<? extends Declarator> directlyDeclaredElements();", "public static void buildElements(Object p,Object v,List<DataElement> dataVect) {\n if(!(p instanceof Iterable<?>)) p=null;\r\n if(!(v instanceof Iterable<?>)) v=null;\r\n if(p==null && v==null) return;\r\n Iterator<?> pi=(p==null)?null:((Iterable<?>)p).iterator();\r\n Iterator<?> vi=(v==null)?null:((Iterable<?>)v).iterator();\r\n while((pi!=null && pi.hasNext()) || (vi!=null && vi.hasNext())) {\r\n Object po=(pi==null)?null:pi.next();\r\n Object vo=(vi==null)?null:vi.next();\r\n int[] params=null;\r\n float[] vals=null;\r\n // if(po instanceof NativeArray) po=new IterableNativeArray((NativeArray)po);\r\n if(po instanceof int[]) params=(int[])po;\r\n else if(po instanceof Iterable<?>) {\r\n Iterable<?> i=(Iterable<?>)po;\r\n int cnt=0;\r\n for(Iterator<?> iter=i.iterator(); iter.hasNext(); iter.next()) {\r\n cnt++;\r\n }\r\n params=new int[cnt];\r\n cnt=0;\r\n for(Object o:i) {\r\n params[cnt]=ScriptUtil.objectToInt(o);\r\n cnt++;\r\n }\r\n } else if(po!=null) {\r\n params=new int[1];\r\n params[0]=ScriptUtil.objectToInt(po);\r\n }\r\n // if(vo instanceof NativeArray) vo=new IterableNativeArray((NativeArray)vo);\r\n if(vo instanceof float[]) vals=(float[])vo;\r\n else if(vo instanceof Iterable<?>) {\r\n Iterable<?> i=(Iterable<?>)vo;\r\n int cnt=0;\r\n for(Iterator<?> iter=i.iterator(); iter.hasNext(); iter.next()) {\r\n cnt++;\r\n }\r\n vals=new float[cnt];\r\n cnt=0;\r\n for(Object o:i) {\r\n vals[cnt]=ScriptUtil.objectToFloat(o);\r\n cnt++;\r\n }\r\n } else if(vo!=null) {\r\n vals=new float[1];\r\n vals[0]=ScriptUtil.objectToFloat(vo);\r\n }\r\n if(params==null) params=new int[0];\r\n if(vals==null) vals=new float[0];\r\n dataVect.add(new DataElement(params,vals));\r\n }\r\n }", "protected int getElementSize () {\n return 1;\n }", "@Override\n\tpublic Enumeration elements() {\n\t return Collections.enumeration(perms);\n\t}", "public List<AccessibleElement> getAccessibleChildren();", "public abstract void setUpElementsWithData();", "public Object getElement();", "public AttributeSet(Object[] elems) {\n\n elements = new Hashtable(elems.length, 1);\n for (int i=0; i < elems.length; i++) {\n Object next = elems[i];\n elements.put(next, next);\n }\n }", "public static List<Object> elements(Tuple tuple) {\n return tuple.elements;\n }", "public ListState(DartObjectImpl[] elements) {\n this.elements = elements;\n }", "public Iterator getIterator() {\n return myElements.iterator();\n }", "protected MyAbstractClass(E[] objects) //contructor\n{\nfor(int i = 0; i < objects.length; i++)\nadd(objects[i]);\n}", "public java.util.Enumeration elements () {\r\n methods = super.elements ();\r\n same_name_methods_index = 0;\r\n return this;\r\n }", "public T[] items();", "@Override\r\n\tpublic List<WebElement> findElements() {\n\t\thandleContext(bean.getIn());\r\n\t\treturn driver.getRealDriver().findElements(bean.getBys().get(0));\r\n\t}", "public boolean member(D elt) {\n\treturn false;\n }", "public synchronized Enumeration elements()\n\t{\n\t\treturn m_elements.elements();\n\t}", "@Override\n\tpublic Iterator<WebElement> iterator() {\n\t\treturn this.elements.iterator();\n\t}", "public Enumeration elements()\n {\n return element.elements();\n }", "Elem getPointedElem();", "private ContainerElementAccessor() {\n }", "private static <T> List<T> list(T... elements) {\n return ImmutableList.copyOf(elements);\n }", "@Override\n\tpublic Element getElement() {\n\t\treturn elem;\n\t}", "@Override\n public Iterator<E> iterator() {\n return new ArrayIterator(); // create a new instance of the inner class\n }", "private void assertImmutableList() {\n\t\tassertImmutableList(wc);\n\t}", "protected void setArray (JField jf, Vector nodes, Object obj, XmlDescriptor desc,\n\t\t\t\t\t\t\t UnmarshalContext context) throws Exception {\n\t\tif (nodes.size () == 0) return;\n\t\tClass thisClass = obj.getClass();\n\n\t\tObject theArray = Array.newInstance (getAClass (jf.getObjectType ()), nodes.size ());\n\t\tObject value = null;\n Method m = null;\n\n\t\tm = getASetMethod (thisClass, \"set\" + jf.getGetSet(), theArray.getClass ());\n\n\t\tfor (int i=0; i< nodes.size (); i++) {\n\t\t\t// W3CXmlNode ..\n\t\t\tXmlNode thisNode = ((XmlNode)nodes.elementAt (i));\n\t\t\tif (jf instanceof JCompositeField) {\n\t\t\t\tXmlDescriptor fieldDesc = (XmlDescriptor)this.classList.get (jf.getObjectType());\n\t\t\t\tvalue = unmarshal (thisNode, context, fieldDesc);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvalue = getPrimitive (thisNode, jf, context);\n\t\t\t\t\n\t\t\t}\n\n\t\t\tArray.set (theArray, i, value);\n\t\t}\n\t\tm.invoke(obj, new Object[]{theArray});\n\t}", "Element() {\n\t}", "protected Object[][] getContents() {\n/* 447 */ return contents;\n/* */ }", "private CollectionPOJODescriptorGenerator(List<MongoElement> elements) {\n this.genElements = elements;\n }", "public abstract String[] map() throws TooFewNocNodesException;", "private static void zoomInArrayElmnt(\n String curPath,\n Object curObj,\n String idxStr,\n int curIndex,\n ArrayList<String> accessors,\n HashSet<Variable> variables) {\n int nextIndex = curIndex + 1;\n int elementIndex = 0;\n int target = Integer.parseInt(idxStr);\n String nextPath = curPath + \".[\" + idxStr + \"]\";\n Object nextObj = null;\n\n String typeString = curObj.getClass().getComponentType().toString();\n switch (typeString) {\n case \"boolean\":\n for (boolean element : (boolean[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n case \"byte\":\n for (byte element : (byte[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n case \"short\":\n for (short element : (short[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n case \"int\":\n for (int element : (int[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n case \"long\":\n for (long element : (long[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n case \"char\":\n for (char element : (char[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n case \"float\":\n for (float element : (float[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n case \"double\":\n for (double element : (double[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n default:\n for (Object element : (Object[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n }\n zoomInAndGetVars(nextObj, accessors, nextIndex, nextPath, variables);\n }", "@Override\r\n\tpublic Object[] getElements(Object inputElement) {\n\t\treturn ((List) inputElement).toArray();\r\n\t}", "Object[] elements(Object[] destination) {\n return elements.toArray(destination);\n }", "public Iterator<T> getPageElements();", "public synchronized Collection getElementos() {\n return elemento.values();\n }", "public void testAddIndivisibleElementsThatPermitStyles() throws Exception {\n String[] elements = { \"a\", \"b\", \"c\" };\n cfg.addIndivisibleElementsThatPermitStyles(elements);\n\n String[] moreElements = { \"c\", \"d\" };\n cfg.addIndivisibleElementsThatPermitStyles(moreElements);\n\n Set set = (Set)PrivateAccessor.getField(\n cfg, \"indivisibleElementsThatPermitStyles\");\n assertEquals(\"Should have added and merged all elements:\",\n 6, set.size());\n\n for (int i = 0; i < elements.length; i++) {\n assertTrue(\"Should be in list: \", set.contains(elements[i]));\n }\n for (int i = 0; i < moreElements.length; i++) {\n assertTrue(\"Should be in list: \", set.contains(moreElements[i]));\n }\n }", "@Override\r\n\tpublic void visit(Array array) {\n\r\n\t}", "public Object[] getElements(Object inputElement){\n\t\treturn null;\n\t}", "@Override\n\tpublic ArrayList<Elezione> listaElezioni() {\n\t\tArrayList<Elezione> listaElezioni = caricaElezioni();\n\t\treturn listaElezioni;\n\t}", "public List<T> getPageElementsList();", "public Object[] filter(Viewer viewer, Object parent, Object[] elements) {\n Object[] result = null;\n if (getWorkingSet() != null) {\n\t\t\tcachedWorkingSet = getWorkingSet().getElements();\n\t\t}\n try {\n result = super.filter(viewer, parent, elements);\n } finally {\n cachedWorkingSet = null;\n }\n return result;\n }", "protected int getArraySize(){\r\n\t \treturn numElems;\r\n\t \t//return arraySize;\r\n\t }", "private void expand() {\n\n intElements = copyIntArray(intElements, intElements.length * 2);\n doubleElements = copyDoubleArray(doubleElements, doubleElements.length * 2);\n stringElements = copyStringArray(stringElements, stringElements.length * 2);\n typeOfElements = copyIntArray(typeOfElements, typeOfElements.length * 2);\n }", "public ChainedArraysIterator(){\r\n\t\t\tcurrentNode = beginMarker.next;\r\n\t\t\tcurrent = currentNode.getFirst();\r\n\t\t\tidx = 0;\r\n\t\t\texpectedModCount=modCount;\r\n\t\t}", "public Object[] getElements(Object arg0) {\n\t\t\t\tRoomFactory roomFactory=(RoomFactory)arg0;\r\n\t\t\t\treturn roomFactory.getRoomList().toArray();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}", "private ImmutableSetMultimap<TypeElement, Element> validElements(RoundEnvironment roundEnv) {\n ImmutableSet<ElementName> prevDeferredElementNames = ImmutableSet.copyOf(deferredElementNames);\n deferredElementNames.clear();\n\n ImmutableSetMultimap.Builder<TypeElement, Element> deferredElementsByAnnotationBuilder =\n ImmutableSetMultimap.builder();\n for (ElementName deferredElementName : prevDeferredElementNames) {\n Optional<? extends Element> deferredElement = deferredElementName.getElement(elements);\n if (deferredElement.isPresent()) {\n findAnnotatedElements(\n deferredElement.get(),\n getSupportedAnnotationTypeElements(),\n deferredElementsByAnnotationBuilder);\n } else {\n deferredElementNames.add(deferredElementName);\n }\n }\n\n ImmutableSetMultimap<TypeElement, Element> deferredElementsByAnnotation =\n deferredElementsByAnnotationBuilder.build();\n\n ImmutableSetMultimap.Builder<TypeElement, Element> validElements =\n ImmutableSetMultimap.builder();\n\n Set<ElementName> validElementNames = new LinkedHashSet<>();\n\n // Look at the elements we've found and the new elements from this round and validate them.\n for (TypeElement annotationType : getSupportedAnnotationTypeElements()) {\n Set<? extends Element> roundElements = roundEnv.getElementsAnnotatedWith(annotationType);\n ImmutableSet<Element> prevRoundElements = deferredElementsByAnnotation.get(annotationType);\n for (Element element : Sets.union(roundElements, prevRoundElements)) {\n ElementName elementName = ElementName.forAnnotatedElement(element);\n boolean isValidElement =\n validElementNames.contains(elementName)\n || (!deferredElementNames.contains(elementName)\n && validateElement(\n element.getKind().equals(PACKAGE) ? element : getEnclosingType(element)));\n if (isValidElement) {\n validElements.put(annotationType, element);\n validElementNames.add(elementName);\n } else {\n deferredElementNames.add(elementName);\n }\n }\n }\n\n return validElements.build();\n }", "public ListsElements( T[] expected, Function<T,Matcher<T>> elementMatcherSupplier)\n {\n Iterable<T> members = expected == null? null : Arrays.asList( expected);\n listsMembers = new ListsMembers<T>( members, elementMatcherSupplier);\n }", "public List<MenuElement> getElements()\n {\n return elements;\n }", "public Control[] getMemberControls() {\n/* 78 */ Control[] arrayOfControl = new Control[this.controls.length];\n/* */ \n/* 80 */ for (byte b = 0; b < this.controls.length; b++) {\n/* 81 */ arrayOfControl[b] = this.controls[b];\n/* */ }\n/* */ \n/* 84 */ return arrayOfControl;\n/* */ }", "@Override\n public Iterator<T> impNiveles(){\n return (super.impNiveles());\n }", "private Object[] resize(E[] elems, int newsize){\n if(newsize < 0){\n throw new IllegalArgumentException();\n // UP FOR CHANGE\n }\n E[] newelems = (E[])(new Comparable[newsize]);\n if (elems == null){\n return newelems;\n }\n // Add elements back in\n System.arraycopy(elems, 0, newelems, 0, Math.min(elems.length, newsize));\n\n return newelems;\n }" ]
[ "0.64309466", "0.5871445", "0.57353973", "0.5689886", "0.5645983", "0.5640504", "0.5613811", "0.5589487", "0.5574624", "0.54651624", "0.54651594", "0.54565156", "0.5452748", "0.542559", "0.5423699", "0.5410888", "0.54062825", "0.54062825", "0.5396201", "0.5383499", "0.5376601", "0.5368341", "0.5362677", "0.5356189", "0.5351586", "0.5346867", "0.53364265", "0.53273594", "0.53247714", "0.5323202", "0.52938795", "0.528103", "0.5250095", "0.5248382", "0.52374256", "0.5229924", "0.5215316", "0.52150667", "0.520476", "0.5194441", "0.5184434", "0.5170992", "0.51527095", "0.51449436", "0.51301074", "0.5072428", "0.50710297", "0.50644046", "0.5063302", "0.50547206", "0.505468", "0.5041494", "0.5029958", "0.50239104", "0.5023241", "0.5021001", "0.5018382", "0.50062567", "0.49867126", "0.49858803", "0.4985764", "0.49792045", "0.49680224", "0.49639782", "0.4956714", "0.49545598", "0.49435097", "0.4938957", "0.4928781", "0.492679", "0.49096912", "0.49065307", "0.49055701", "0.4905149", "0.48998013", "0.4895809", "0.48842418", "0.48830172", "0.48797938", "0.4869836", "0.4869675", "0.48693103", "0.48689693", "0.48670876", "0.48655584", "0.48639205", "0.48637527", "0.48615292", "0.48593816", "0.4858521", "0.4858082", "0.4856829", "0.48522586", "0.48470497", "0.48432752", "0.48390692", "0.48345357", "0.48327717", "0.4825962", "0.4824682", "0.4823724" ]
0.0
-1
... other method implementations
public void addAll(String[] a) { for (String s : a) this.add(s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void method_4270() {}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "protected abstract Set method_1559();", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void getExras() {\n }", "public abstract void mo56925d();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "public abstract Object mo26777y();", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public abstract void mo30696a();", "@Override\n\tpublic void function() {\n\t\t\n\t}", "abstract int pregnancy();", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo27385c();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "public abstract void mo27386d();", "public void gored() {\n\t\t\n\t}", "public abstract void mo6549b();", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "@Override\n public void apply() {\n }", "public abstract void mo35054b();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public abstract void mo42331g();", "public abstract Object mo1771a();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "private stendhal() {\n\t}", "public void mo21877s() {\n }", "public abstract void afvuren();", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func01() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void some() {\n\t\t\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "@Override\n\tpublic void jugar() {}", "public abstract void mo102899a();", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public abstract void mo957b();", "private void getStatus() {\n\t\t\n\t}", "abstract void uminus();", "public abstract void mo42329d();", "@Override\n\tpublic void processing() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void visit() {\n\r\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public abstract void mo27464a();", "private void m50366E() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "public abstract String mo118046b();", "private void poetries() {\n\n\t}", "public abstract Object mo1185b();", "public abstract void m15813a();", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void method_191() {}", "abstract void method();", "public abstract void mo2624j();", "public abstract String mo41079d();" ]
[ "0.6699532", "0.6695641", "0.6661111", "0.66306823", "0.66306823", "0.66205215", "0.65990496", "0.6498298", "0.6490272", "0.6452656", "0.64343435", "0.642825", "0.6411001", "0.63974607", "0.6377646", "0.63737005", "0.63699937", "0.635879", "0.635879", "0.63576645", "0.6348532", "0.63206816", "0.63203037", "0.62927186", "0.6287162", "0.62863654", "0.6263552", "0.6261358", "0.62284386", "0.62107295", "0.62069666", "0.6206309", "0.618326", "0.6140864", "0.613184", "0.61302775", "0.61207134", "0.6103327", "0.6101986", "0.6098708", "0.6093275", "0.60930973", "0.609294", "0.608473", "0.60694313", "0.6050821", "0.60441285", "0.6029239", "0.602751", "0.6024605", "0.6020628", "0.60203755", "0.60203755", "0.60187185", "0.60166454", "0.60149395", "0.6013202", "0.5999324", "0.5970496", "0.5947213", "0.59297705", "0.5910449", "0.5903722", "0.5903012", "0.58915037", "0.588704", "0.5883712", "0.5880163", "0.5872983", "0.5866679", "0.5863368", "0.5860522", "0.5860089", "0.5858786", "0.5854434", "0.5854434", "0.585214", "0.5851614", "0.5850618", "0.5849103", "0.5843478", "0.58403355", "0.58377665", "0.58360577", "0.58353156", "0.5822338", "0.5821523", "0.5816", "0.58114964", "0.580982", "0.58077466", "0.5797259", "0.579401", "0.5793666", "0.5792884", "0.579277", "0.57922304", "0.57919556", "0.5791474", "0.5791104", "0.5788492" ]
0.0
-1
a method to spawn in the player as the main car
@Spawns("car") public Entity spawnCar(SpawnData data) { PhysicsComponent physics = new PhysicsComponent(); physics.setBodyType(BodyType.DYNAMIC); return entityBuilder() .type(CAR) .from(data) .viewWithBBox(texture(MainMenu.getSelectedCarAsset() , 70, 140)) .with(new CollidableComponent(true)) .with(new IrremovableComponent()) .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void control(Spawn spawn) {}", "@Override\n\tpublic void spawn(Location loc) {\n\t\t\n\t}", "public void spawn()\n\t{\n\t\tsynchronized(this)\n\t\t{\n\t\t\t// Set the x,y,z position of the L2Object spawn and update its _worldregion\n\t\t\tsetVisible(true);\n\t\t\tsetWorldRegion(WorldManager.getInstance().getRegion(getWorldPosition()));\n\n\t\t\t// Add the L2Object spawn in the _allobjects of L2World\n\t\t\tWorldManager.getInstance().storeObject(object);\n\n\t\t\t// Add the L2Object spawn to _visibleObjects and if necessary to _allplayers of its L2WorldRegion\n\t\t\tregion.addVisibleObject(object);\n\t\t}\n\n\t\t// this can synchronize on others instancies, so it's out of\n\t\t// synchronized, to avoid deadlocks\n\t\t// Add the L2Object spawn in the world as a visible object\n\t\tWorldManager.getInstance().addVisibleObject(object, region);\n\n\t\tobject.onSpawn();\n\t}", "public void spawnCreature(){\n\t\tif(spawnType.equalsIgnoreCase(\"worm\")){\n\t\t\tRuntimeObjectFactory.getObjectFromPool(\"worm\"+spawnId);\n\t\t}else if(spawnType.equalsIgnoreCase(\"antorc\")){\n\t\t\tGdx.app.debug(TamerGame.LOG, this.getClass()\n\t\t\t\t\t.getSimpleName() + \" :: Ant entered\");\t\t\t\n\t\t\t//CHANGE SPAWNING IMPLEMENTATION\n\t\t\tAntOrc orc = new AntOrc();\n\t\t\torc.setPosition(getPosition());\n\t\t\torc.setWaypoint(waypoint);\n\t\t\tenvironment.addNewObject(orc);\n\t\t\tEventPool.addEvent(new tEvent(this,\"spawnCreature\",sleepTime,1));\n\t\t}\n\t\t\t\n\t}", "private void spawnPlayer() {\n\t\tplayer.show(true);\n\t\tplayer.resetPosition();\n\t\tplayerDead = false;\n\t\tplayerDeadTimeLeft = 0.0;\n\t}", "@Override\r\n\tpublic void spawn(Location location) {\n\t\t\r\n\t}", "abstract public void initSpawn();", "public HighwayCar(){\r\n \t\r\n \tint dir = (int) (Math.random() * 4 % 4);\r\n \t\r\n setDirection(dir * Math.PI / 2); \r\n \r\n setProperty(\"icon\", \"/robot.png\");\r\n setProperty(\"size\", 20);\r\n Clock.addClockListener(this, 2);\r\n }", "public void spawnRobots() {\n\t\tString robotName\t= \"\";\n\t\tPlayer newPlayer\t= null;\n\t\tint numberOfRobots \t= 0;\n\t\tint robotsPerPlayer = server.getRobotsPerPlayer();\n\t\tint numberOfPlayers = server.getPlayerCount();\n\t\tint robotsPerLevel\t= server.getRobotsPerLevel();\n\t\t\n\t\t// calculate how many robots that should be spawned\n\t\trobotsPerPlayer = robotsPerPlayer *\n\t\t\t\t\t\t (robotsPerLevel * \n\t\t\t\t\t\t currentLevel);\n\t\t\n\t\tnumberOfRobots \t= robotsPerPlayer *\n\t\t\t\t\t\t numberOfPlayers;\n\t\t\n\t\tfor(int i = 0; i < numberOfRobots; i++) {\n\t\t\trobotName \t\t\t= \"Robot\" + (i+1);\n\t\t\tnewPlayer = initPlayerToGameplane(robotName, \n\t\t\t\t\t\t\t\t \t\t\t PlayerType.Robot, \n\t\t\t\t\t\t\t\t \t\t\t 0, 0);\n\t\t\t\n\t\t\tHandleCommunication.broadcastToClient(null, \n\t\t\t\t\t\t\t\t\t\t\t\t server.getConnectedClientList(), \n\t\t\t\t\t\t\t\t\t\t\t\t SendSetting.AddPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t newPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t null);\n\t\t}\n\t}", "private void spawnStart() {\n\t\tswitch (gameType) {\n\t\t\n\t\t}\n\t\tspawnCloud(10,1,0,0); //spawns base cloud\n\t\tspawnCloud(rng(7,10),6,rng(1,2),rng(2,3)); //spawns first clouds\n\t\tspawnCloud(rng(9,12),6,rng(1,2),rng(2,3));\n\t\t//spawnCloud(10,6,16,0);\n\t}", "SpawnController createSpawnController();", "@Override\n public void run() {\n World world=Bukkit.getWorld(\"world\");\n world.spawnEntity(world.getHighestBlockAt(world.getSpawnLocation()).getLocation(), EntityType.VILLAGER);\n }", "public void spawn(boolean type)\n\t{\n\t\tif (type)\n\t\t{\n\t\t\triver[findEmpty()] = new Bear();\n\t\t}\n\t\telse\n\t\t{\n\t\t\triver[findEmpty()] = new Fish();\n\t\t}\n\t}", "public void spawnNew() {\n\t\tif (tier> 1) {\n\t\t\ttier--;\n\t\t\thealth = tier;\n\t\t\tdamage = tier;\n\t\t\tspeed = 5;\n\t\t\timg = getImage(updateImage(tier)); // converted getImage to protected b/c it wasn't accessible by Balloon class (child class)\n\t\t}\n\t\telse {\n\t\t\tisAlive = false;\n\t\t\tdeletePath();\t\t\t\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n void spawn(Entity entity);", "public abstract void makePlayer(Vector2 origin);", "public ParentAI(Car car){\n\t\tthis.car = car;\n\t\tthis.currentX = car.getXLocation();\n\t\tthis.currentY = car.getYLocation();\n\t\tthis.currentTile = car.getTileType();\n\t\tthis.tileRotation = car.getTileRotation();\n\t\t\n\t\tfindValidMoveDirections();\n\t}", "public static void main(String[] args) {\nCar car=new Car();\r\nSystem.out.println(car.color);\r\nSystem.out.println(Car.name);\r\ncar.run();\r\ncar.play();\r\n\t}", "public void makeCars()\r\n\t{\r\n\t\tString[] names = new String[]{\"BOB\",\"SUE\",\"JOE\",\"NEATO\",\"FALCON\"};\r\n\t\tfor(int i=0; i<cars.length; i++)\r\n\t\t{\r\n\t\t\tString name = names[(int)(Math.random()*names.length)];\r\n\t\t\tColor color = new Color((int)(Math.random()*256),(int)(Math.random()*256),(int)(Math.random()*256));\r\n\t\t\tdouble speed = Math.random()*5+1;\r\n\t\t\tcars[i] = new Car(Math.random()*(-SCREEN_WIDTH),Math.random()*SCREEN_HEIGHT,name,color,speed);\r\n\t\t}\r\n\t}", "public void startGame() {\n\t\ttank1.create(20, 530, 0, 0);\n\t\ttank1.setDefaults();\n\t\ttank2.create(960, 530, 0, 0);\n\t\ttank2.setDefaults();\n\t\tobjects.add(tank1);\n\t\tobjects.add(tank2);\n\t\tground = new Groundmod2((int) (Math.random() * 4));\n\t\tturn = Turn.PLAYER1;\n\t\tgrabFocus();\n\t}", "@Override\n public void run() {\n if (!GameState.getCurrent().equals(GameState.PLAYING)) return;\n \n player.setGameMode(GameMode.SURVIVAL);\n player.teleport(ConfigUtils.getRandomSpawn(game.getActiveWorld()));\n player.setHealth(20.0);\n player.setFoodLevel(20);\n new InventoryBuilder(main, player);\n \n }", "@Override\n\tpublic void carEngine() {\n\n\t}", "private void prepare()\n {\n addObject(player,185,196);\n player.setLocation(71,271);\n Ground ground = new Ground();\n addObject(ground,300,360);\n invent invent = new invent();\n addObject(invent,300,375);\n }", "public synchronized void spawnMe()\n\t{\n\t\t_itemInstance = ItemTable.getInstance().createItem(\"Combat\", _itemId, 1, null, null);\n\t\t_itemInstance.dropMe(null, _location.getX(), _location.getY(), _location.getZ());\n\t}", "public GameObject spawnCarrier(LogicEngine in_logicEngine, float in_x , CARRIER_TYPE in_type)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/thrusterboss.png\",in_x,LogicEngine.SCREEN_HEIGHT+64,30);\r\n\t\t\r\n\t\t\r\n\t\t//set animation frame\r\n\t\tship.i_animationFrame=4;\r\n\t\tship.i_animationFrameRow=0;\r\n\t\tship.i_animationFrameSizeWidth=32;\r\n\t\tship.i_animationFrameSizeHeight=132;\r\n\t\t\r\n\t\tSimplePathfollowing followPathBehaviour = new SimplePathfollowing();\r\n\t\t//pause at the first waypoint\r\n\t\tfollowPathBehaviour.waitAtWaypoint(1, 50);\r\n\t\t\r\n\t\tfollowPathBehaviour.setInfluence(1);\r\n\t\tfollowPathBehaviour.setAttribute(\"arrivedistance\", \"50\", null);\r\n\t\t\r\n\t\tfollowPathBehaviour.waitAtWaypoint(1, 300);\r\n\t\t\r\n\t\t//go straight down then split\r\n\t\tship.v.addWaypoint(new Point2d(in_x, LogicEngine.SCREEN_HEIGHT/1.5));\r\n\t\tship.v.addWaypoint(new Point2d(in_x,-100));\r\n\t\t\r\n\t\tCustomBehaviourStep b = new CustomBehaviourStep(followPathBehaviour);\r\n\t\t\r\n\t\t//turret\r\n\t\t//turret\r\n\t\tDrawable turret = new Drawable();\r\n\t\tturret.i_animationFrame = 6;\r\n\t\tturret.i_animationFrameSizeWidth=16;\r\n\t\tturret.i_animationFrameSizeHeight=16;\r\n\t\tturret.str_spritename = \"data/\"+GameRenderer.dpiFolder+\"/gravitonlevel.png\";\r\n\t\tturret.f_forceRotation = 90;\r\n\t\tship.shotHandler = new TurretShot(turret,\"data/\"+GameRenderer.dpiFolder+\"/redbullets.png\",6,5.0f);\r\n\t\tship.visibleBuffs.add(turret);\r\n\t\t\r\n\t\tship.v.setMaxForce(1);\r\n\t\tship.v.setMaxVel(1);\r\n\t\t\r\n\t\tship.stepHandlers.add(b);\r\n\t\t\r\n\t\tHitpointShipCollision s;\r\n\t\tif(!Difficulty.isHard())\r\n\t\t\t s = new HitpointShipCollision(ship, 160, 32);\r\n\t\telse\r\n\t\t\t s = new HitpointShipCollision(ship, 125, 32);\r\n\t\t\t\r\n\t\ts.setExplosion(Utils.getBossExplosion(ship));\r\n\t\tship.collisionHandler = s; \r\n\t\r\n\t\t//TODO:launch ships handler for shooting\r\n\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_BOTH_SIDES)\r\n\t\t{\r\n\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(true), 50, 5, 5,true));\r\n\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(false), 50, 5, 5,false));\r\n\t\t}\r\n\t\telse\r\n\t\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_RIGHT_ONLY)\r\n\t\t\t{\r\n\t\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(true), 50, 5, 5,true));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_LEFT_ONLY)\r\n\t\t\t\t{\r\n\t\t\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(false), 50, 5, 5,false));\r\n\t\t\t\t}\r\n\t\t\t\t\t\t \r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t\r\n\t}", "private void createPlayers() {\n\tGlobal.camera_player1 = new Camera(new OrthographicCamera());\n\tGlobal.camera_player2 = new Camera(new OrthographicCamera());\n\tGlobal.camera_ui = new OrthographicCamera();\n\tGlobal.player1 = new Plane(Global.player1_respawn.x,\n\t\tGlobal.player1_respawn.y, 0, new Planetype(PlaneTypes.F35),\n\t\tEntityType.PLAYER1);\n\tGlobal.player2 = new Plane(Global.player2_respawn.x,\n\t\tGlobal.player2_respawn.y, 0, new Planetype(PlaneTypes.F35),\n\t\tEntityType.PLAYER2);\n }", "@Override\n\tpublic void onAdd() {\n\t\tsuper.onAdd();\n\n\t\tsetIdleAnimation(4527);\n\t\tsetNeverRandomWalks(true);\n\t\tsetWalkingHomeDisabled(true);\n\n\t\tthis.region = Stream.of(AbyssalSireRegion.values()).filter(r -> r.getSire().getX() == getSpawnPositionX()\n\t\t && r.getSire().getY() == getSpawnPositionY()).findAny().orElse(null);\n\n\t\tRegion region = Region.getRegion(getSpawnPositionX(), getSpawnPositionY());\n\n\t\tif (region != null) {\n\t\t\tregion.forEachNpc(npc -> {\n\t\t\t\tif (npc instanceof AbyssalSireTentacle) {\n\t\t\t\t\tif (!npc.isDead()) {\n\t\t\t\t\t\tnpc.setDead(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tList<Position> tentaclePositions = Arrays.asList(\n\t\t\t\tthis.region.getTentacleEast(),\n\t\t\t\tthis.region.getTentacleWest(),\n\t\t\t\tthis.region.getTentacleNorthEast(),\n\t\t\t\tthis.region.getTentacleNorthWest(),\n\t\t\t\tthis.region.getTentacleSouthEast(),\n\t\t\t\tthis.region.getTentacleSouthWest()\n\t\t );\n\n\t\ttentaclePositions.forEach(position -> {\n\t\t\ttentacles.add(NpcHandler.spawnNpc(5909, position.getX(), position.getY(), position.getZ()));\n\t\t});\n\n\t\tList<Position> respiratoryPositions = Arrays.asList(\n\t\t\t\tthis.region.getRespiratorySystemNorthEast(),\n\t\t\t\tthis.region.getRespiratorySystemNorthWest(),\n\t\t\t\tthis.region.getRespiratorySystemSouthEast(),\n\t\t\t\tthis.region.getRespiratorySystemSouthWest()\n\t\t );\n\n\t\trespiratoryPositions.forEach(position -> respiratorySystems.add(\n\t\t\t\tNpcHandler.spawnNpc(5914, position.getX(), position.getY(), position.getZ())));\n\t}", "public void setCar() {\n\n\t\tint tries = 0;\n\t\tif(type ==RANDOM)\n\t\t{\n\t\t\tfor (int i = 0; i < noOfCarsGenerated; i++) {\n\t\t\t\tCar c = generateRandomCar(Timer.getClock());\n\t\t\t\twhile (c == null){\n\t\t\t\t\ttries++;\n\t\t\t\t\tSystem.out.println(\"i'm null somehow : \" + tries);\n\t\t\t\t\tc = generateRandomCar(Timer.getClock());\n\t\t\t\t}\n\t\t\t\tSimulator.getStations().get(c.getDestination()).addMovingQueue(c);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\telse if (type == FIXED) {\n\t\t\t\n\t\t\tPoint source=Simulator.geoToCor(latitude, longitude);\n\t\t\tString destination=strategy.chooseDestination(source);\n\n\t\t\tfor (int i = 0; i < noOfCarsGenerated; i++) {\n\t\t\t\tCar c = new Car(latitude, longitude, destination, Timer.getClock(), strategy.setChargingTime(source));\n\t\t\t\tc.saveRoute(c.getCarRoute());\n\t\t\t\tSimulator.getStations().get(c.getDestination()).addMovingQueue(c);\n\t\t\t}\n\t\t}\n\n\t\tcurrentNo += noOfCarsGenerated;\n\n\t\tSimulator.updateCarNolbl(noOfCarsGenerated);\n\n\n\t}", "public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }", "private void startSpawning()\n {\n MAUtils.setSpawnFlags(plugin, world, 1, allowMonsters, allowAnimals);\n \n // Start the spawnThread.\n spawnThread = new MASpawnThread(plugin, this);\n spawnTaskId = Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, spawnThread, waveDelay, (!waveClear) ? waveInterval : 60);\n }", "public void startGearCam() {\n }", "private void createCars(int numPlayers, double offset, Random rand) {\n offset *= 2;\n ArrayList<Integer> forStart = new ArrayList<>();\n ArrayList<Integer> forEnd = new ArrayList<>();\n for (int j = 0; j < numPlayers; j++) {\n int start = rand.nextInt(locations.size());\n int end = rand.nextInt(locations.size());\n// end = start == end ? end : rand.nextInt(locations.size());\n while (forStart.contains(start)) start = rand.nextInt(locations.size());\n while (forEnd.contains(end) && end != start) end = rand.nextInt(locations.size());\n forStart.add(start);\n forEnd.add(end);\n Location s = locations.get(start);\n Location e = locations.get(end);\n cars.add(new Car(s.getCenterX(), s.getCenterY(), (offset * 2) - 16, s, e, j));\n this.getChildren().add(cars.get(j));\n cars.get(j).setVisible(false);\n }\n\n }", "Player attackingPlayer(int age, int overall, int potential) {\r\n Player newPlayer = new Player(this.nameGenerator.generateName(), age, overall, potential, 'C' , 'F');\r\n\r\n\r\n\r\n\r\n }", "private void prepare()\n {\n treespawn treespawn2 = new treespawn();\n addObject(treespawn2,30,486);\n\n hantu hantu = new hantu();\n addObject(hantu,779,359);\n \n hantu hantu2 = new hantu();\n addObject(hantu2,88,84);\n \n bergerak bergerak2 = new bergerak();\n addObject(bergerak2,745,423);\n\n bergerak bergerak3 = new bergerak();\n addObject(bergerak3,266,566);\n \n bergerak bergerak4 = new bergerak();\n addObject(bergerak4,564,566);\n\n hantu hantu3 = new hantu();\n addObject(hantu3,671,490);\n \n hantu hantu4 = new hantu();\n addObject(hantu4,371,499);\n\n bergerak bergerak = new bergerak();\n addObject(bergerak,150,148);\n\n lantai lantai = new lantai();\n addObject(lantai,561,577); \n addObject(lantai,419,579); \n\n player player = new player();\n addObject(player,882,498);\n\n lantai3 lantai3 = new lantai3();\n addObject(lantai3,120,148);\n\n flyinglantai flyinglantai = new flyinglantai();\n addObject(flyinglantai,292,148);\n\n treespawn treespawn = new treespawn();\n addObject(treespawn,30,291);\n\n lantai4 lantai4 = new lantai4();\n addObject(lantai4,235,536);\n \n lantai4 lantai42 = new lantai4();\n addObject(lantai42,275,508);\n \n lantai4 lantai43 = new lantai4();\n addObject(lantai43,323,480);\n \n lantai4 lantai44 = new lantai4();\n addObject(lantai44,369,454);\n\n lantai2 lantai2 = new lantai2();\n addObject(lantai2,680,424);\n\n \n lantai3 lantai32 = new lantai3();\n addObject(lantai32,938,146);\n \n lantai4 lantai45 = new lantai4();\n addObject(lantai45,21,370);\n\n lantai4 lantai46 = new lantai4();\n addObject(lantai46,210,180);\n \n lantai4 lantai47 = new lantai4();\n addObject(lantai47,257,201);\n \n lantai4 lantai48 = new lantai4();\n addObject(lantai48,302,229);\n \n lantai4 lantai49 = new lantai4();\n addObject(lantai49,354,255);\n \n lantai4 lantai410 = new lantai4();\n addObject(lantai410,402,281);\n \n lantai4 lantai411 = new lantai4();\n addObject(lantai411,444,302);\n \n lantai4 lantai412 = new lantai4();\n addObject(lantai412,491,334);\n \n lantai4 lantai413 = new lantai4();\n addObject(lantai413,546,364);\n \n lantai4 lantai414 = new lantai4();\n addObject(lantai414,582,397);\n \n doorlv3 doorlv3 = new doorlv3();\n addObject(doorlv3,910,45);\n\n \n }", "public void enter(FieldPlayer player){\n player.getTeam().setReceiver(player);\n \n //this player is also now the controlling player\n player.getTeam().setControllingPlayer(player);\n\n //there are two types of receive behavior. One uses arrive to direct\n //the receiver to the position sent by the passer in its telegram. The\n //other uses the pursuit behavior to pursue the ball. \n //This statement selects between them dependent on the probability\n //ChanceOfUsingArriveTypeReceiveBehavior, whether or not an opposing\n //player is close to the receiving player, and whether or not the receiving\n //player is in the opponents 'hot region' (the third of the pitch closest\n //to the opponent's goal\n double PassThreatRadius = 70.0;\n\n if (( player.isInHotRegion() ||\n RandFloat() < Params.Instance().ChanceOfUsingArriveTypeReceiveBehavior) &&\n !player.getTeam().isOpponentWithinRadius(player.getPos(), PassThreatRadius)){\n player.getSteering().arriveOn();\n }\n else{\n player.getSteering().pursuitOn();\n }\n \n //FIXME: Change animation\n// player.info.setAnim(\"Run\");\n// player.info.setDebugText(\"ReceiveBall\");\n }", "public void Enter(Car car) {\n\t\tcurrentCar = car;\n\t\tcar.curVelocity=car.maxVelocity;\n\t\tArrayList <Road> tempList = new ArrayList<Road>();\n\t\tfor(int i=0; i<roads.size(); i++){\n\t\t\tif(roads.get(i).roadClosed){\n\t\t\t\ttempList.add(null);\n\t\t\t\t//System.out.println(\"road closed\");\n\t\t\t\t//System.out.println(roads.get(i).getStart() + \", \" + roads.get(i).getEnd());\n\t\t\t}\n\t\t\telse if(roads.get(i).direction == i){\n\t\t\t\ttempList.add(roads.get(i));\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttempList.add(null);\n\t\t\t}\n\n\t\t}\n\t\tnextDir = currentCar.getNextDirection(tempList);\n\t}", "@Override\n protected void initGame() {\n getGameWorld().setEntityFactory(new PlatformerFactory());\n getGameWorld().setLevelFromMap(\"Platformergame1.json\");\n\n // Sets spawnloction of the player\n player = getGameWorld().spawn(\"player\", 50, 50);\n }", "public void spawnEnemy(){\n\t\tint initTile = 0;\n\t\n\t\tfor(int i=0; i<screen.maps[screen.currentMap].path.getHeight(); i++){\n\t\t\tif(screen.maps[screen.currentMap].path.getCell(0, i).getTile().getProperties().containsKey(\"ground\") == true){\n\t\t\t\tinitTile = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\txCoor = 2;\n\t\tyCoor = (initTile)*64 + 2;\n\t\tbound = new Circle(xCoor+30, yCoor+30, 30);\n\t\tinGame = true;\n\t}", "public void newGame() {\n // this.dungeonGenerator = new TowerDungeonGenerator();\n this.dungeonGenerator = cfg.getGenerator();\n\n Dungeon d = dungeonGenerator.generateDungeon(cfg.getDepth());\n Room[] rooms = d.getRooms();\n\n String playername = JOptionPane.showInputDialog(null, \"What's your name ?\");\n if (playername == null) playername = \"anon\";\n System.out.println(playername);\n\n this.player = new Player(playername, rooms[0], 0, 0);\n player.getCurrentCell().setVisible(true);\n rooms[0].getCell(0, 0).setEntity(player);\n\n frame.showGame();\n frame.refresh(player.getCurrentRoom().toString());\n frame.setHUD(player.getGold(), player.getStrength(), player.getCurrentRoom().getLevel());\n }", "void placeTower();", "public static void main(String[] args)\n {\n Pokeball pokeball = new Pokeball();\n Pokeball greatball = new Greatball();\n Pokeball ultraball = new Ultraball();\n Pokeball masterball = new Masterball();\n ArrayList<AbstractPokemon> ashPokemon = new ArrayList<AbstractPokemon>();\n ashPokemon.add(new Charmander());\n ashPokemon.add(new Squirtle());\n ashPokemon.add(new Bulbasaur());\n PokemonTrainer ash = new PokemonTrainer(\"Ash\", ashPokemon, AbstractPokemon.Type.ANY_TYPE, masterball);\n ActorWorld world = new ActorWorld();\n AbstractPokemon charmander = new Charmander();\n AbstractPokemon squirtle = new Squirtle();\n AbstractPokemon bulbasaur = new Bulbasaur();\n AbstractPokemon vulpix = new Vulpix();\n AbstractPokemon poliwhirl = new Poliwhirl();\n AbstractPokemon sunkern = new Sunkern();\n AbstractPokemon magby = new Magby();\n AbstractPokemon magikarp = new Magikarp();\n AbstractPokemon oddish = new Oddish();\n String[] worldChoices = {\"Randomly Generated\", \"Blank\", \"Cancel\"};\n int worldSelection = JOptionPane.showOptionDialog(null, \"Please select the world template:\", \"World Selection\",\n JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE, null, worldChoices, worldChoices[0]);\n if (worldSelection == 2)\n {\n JOptionPane.showMessageDialog(null, \"No world chosen. Program will terminate.\", \"World Selection\", JOptionPane.PLAIN_MESSAGE);\n System.exit(0);\n }\n else if (worldSelection == 0)\n {\n spawn(charmander, world);\n spawn(squirtle, world);\n spawn(bulbasaur, world);\n spawn(vulpix, world);\n spawn(poliwhirl, world);\n spawn(sunkern, world);\n spawn(magby, world);\n spawn(magikarp, world);\n spawn(oddish, world);\n spawn(ash, world);\n }\n world.show();\n }", "public static void main(String[] args){\n Car myCar = new Car();\n myCar.car_human();\n myCar.car_color(); \n }", "public void spawnRubble() {\n\t\tString rubbleName \t= \"\";\n\t\tPlayer newPlayer \t= null; \n\t\tint numberOfRubble \t= server.getRubbleCount();\n\t\t\n\t\tfor(int i = 0; i < numberOfRubble; i++) {\n\t\t\trubbleName = \"Rubble\" + (i+1);\n\t\t\tnewPlayer = initPlayerToGameplane(rubbleName, \n\t\t\t\t\t\t\t\t\t\t\t PlayerType.Rubble, \n\t\t\t\t\t\t\t\t\t\t\t 0, 0);\n\t\t\t\n\t\t\tHandleCommunication.broadcastToClient(null, \n\t\t\t\t\t\t\t\t\t\t\t\t server.getConnectedClientList(), \n\t\t\t\t\t\t\t\t\t\t\t\t SendSetting.AddPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t newPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t null);\n\t\t}\n\t}", "private static void mainTribrid(Player player) {\n\t\tbankInventoryAndEquipment(player);\n\t\tspawnInventory(player, TribridMain.inventorySet(player));\n\t\tspawnEquipment(player, TribridMain.equipmentSet(player));\n\t\tupdateEquipment(player);\n\t\theal(player, true, true);\n\t\tsetCombatSkills(player, \"MAIN\", false, null);\n\t\tsetPrayerAndMagicBook(player, \"ANCIENT\");\n\t\tPresets.isPresetFlagged(player, player.bankIsFullWhileUsingPreset);\n\t}", "public void spawn(Location location) {\r\n Packet<?>[] packets = {\r\n new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.ADD_PLAYER),\r\n new PacketPlayOutNamedEntitySpawn(),\r\n new PacketPlayOutEntityHeadRotation()\r\n };\r\n\r\n setFieldCastValue(packets[0], \"b\", Collections.singletonList(this.getPlayerInfoData((PacketPlayOutPlayerInfo) packets[0])));\r\n\r\n setFieldValue(packets[1], \"a\", this.entityId); // Just change entity id to prevent client-side problems\r\n setFieldValue(packets[1], \"b\", this.profile.getId());\r\n setFieldValue(packets[1], \"c\", location.getX());\r\n setFieldValue(packets[1], \"d\", location.getY());\r\n setFieldValue(packets[1], \"e\", location.getZ());\r\n setFieldValue(packets[1], \"f\", (byte) (location.getYaw() * 256.0F / 360.0F));\r\n setFieldValue(packets[1], \"g\", (byte) (location.getPitch() * 256.0F / 360.0F));\r\n setFieldValue(packets[1], \"h\", this.player.getPlayer().getHandle().getDataWatcher());\r\n\r\n setFieldValue(packets[2], \"a\", this.entityId);\r\n setFieldValue(packets[2], \"b\", (byte) (location.getYaw() * 256.0F / 360.0F));\r\n\r\n for (GamePlayer player : this.plugin.getGameManager().getAllPlayers())\r\n for (Packet<?> packet : packets)\r\n player.sendPacket(packet);\r\n }", "public Stage1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 900, 1);\n \n GreenfootImage image = getBackground();\n image.setColor(Color.BLACK);\n image.fill();\n star();\n \n \n \n //TurretBase turretBase = new TurretBase();\n playerShip = new PlayerShip();\n scoreDisplay = new ScoreDisplay();\n addObject(scoreDisplay, 100, 50);\n addObject(playerShip, 100, 450);\n \n }", "private static void createParty() {\n\n\n JFrame fenetre = new JFrame(\"Little Thief Auto\");\n\n Route route = new Route();\n User user = new User();\n\n Affichage affichage = new Affichage(fenetre, user, route);\n Controleur ctrl = new Controleur(affichage, user, route);\n //ctrl.setAffichage(affichage);\n //ctrl.setCmds();\n //Deplace deplace = new Deplace(user, route, affichage);\n\n //deplace.start();//Voir qui le lance, en fonction de si il y a une fenetre de demarage ou pas\n Data.initGame();\n\n //fenetre.add(affichage);\n //fenetre.add(affichage.outScreen);\n affichage.switchInteface(false);\n\n //ctrl.startPartie(); //Pas d ecran dacceuil\n /*\n\n Voler fly = new Voler();\n Etat modele = new Etat(fly);\n Controleur ctrl = new Controleur(modele);\n Affichage affichage = new Affichage(ctrl, modele);\n VueBird bird = new VueBird(affichage);\n\n Instant start = Instant.now();\n affichage.setTimer(start);\n\n ctrl.setVue(affichage);\n Avancer avance = new Avancer(affichage, modele.getParcours());\n\n ctrl.enableKeyPad();\n enableReload(fenetre, affichage);\n\n modele.getParcours().setTime(start);\n fly.start();\n avance.start();\n\n\n\n fenetre.add(affichage);\n*/\n\n\n\n\n fenetre.pack();\n fenetre.setVisible(true);\n fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "@Override\r\n\tpublic void playRoadBuildingCard() {\n\t\t\r\n\t}", "public static void spawn(World world, Player player) {\n Location spawnLoc = world.getSpawnLocation();\n player.teleport(spawnLoc);\n if (Main.plugin.getConfig().getString(\"NOTIFICATIONS.Spawn\").equalsIgnoreCase(\"True\")) {\n String msg = MessageManager.getMessageYml().getString(\"Spawn.Spawn\");\n player.sendMessage(MessageManager.getPrefix() + ChatColor.translateAlternateColorCodes('&', msg));\n }\n }", "public void act() \n {\n EggFactory eggFactory = new EggFactory();\n \n move(4);\n int random = Greenfoot.getRandomNumber(5000);\n if((random>200 & random<300) || ((Farm)getWorld()).atWorldEdge(this))\n {\n turn(180);\n getImage().mirrorVertically();\n move(4);\n \n }\n\n if( Greenfoot.getRandomNumber(100) ==0)\n {\n\n Farm farm = (Farm)getWorld();\n Egg egg = null; \n int eggPicker = Greenfoot.getRandomNumber(80);\n //DropEggStrategy dropEgg = new DropEggStrategy(); //Strategy pattern\n\n IEggStrategy whiteStrategy = new WhiteEggStrategy(eggFactory);\n IEggStrategy blackStrategy = new BlackEggStrategy(eggFactory);\n IEggStrategy goldenStrategy = new GoldenEggStrategy(eggFactory);\n \n DropEggContext context = new DropEggContext();\n \n if(eggPicker >= 50 && eggPicker <= 60){\n \n context.setIEggStrategy(goldenStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n else if(eggPicker >= 60 && eggPicker <= 70){\n\n context.setIEggStrategy(blackStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n else{\n context.setIEggStrategy(whiteStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n \n egg.register(farm.getLifeObserver());//register life creator observer into egg subject \n\n \n\n }\n\n }", "public void carParking() {\r\n\t\t\r\n\t}", "private void newGame() {\n\t\t// Firstly, we spawn the player.\n\t\tplayer = new AsteroidsPlayer(GameObject.ROOT, this);\n\t\tspawnPlayer();\n\n\t\t// Make sure that no other objects exist.\n\t\tasteroids.clear();\n\t\tlaserShots.clear();\n\t\totherObjects.clear();\n\n\t\t// Then we create the score text using two strings.\n\t\tAsteroidsString scoreText = new AsteroidsString(GameObject.ROOT, \"SCORE\", true, false);\n\t\tscoreText.translate(new Vector3(-cameraZoom, cameraZoom - 1));\n\t\totherObjects.add(scoreText);\n\t\tscoreString = new AsteroidsString(GameObject.ROOT, Integer.toString(score), true, false);\n\t\tscoreString.translate(new Vector3(-cameraZoom, cameraZoom - 3));\n\t\totherObjects.add(scoreString);\n\n\t\t// We set our starting lives to 3.\n\t\tlives = 3;\n\n\t\t//And we also create the lives text.\n\t\tAsteroidsString livesText = new AsteroidsString(GameObject.ROOT, \"LIVES\", false, true);\n\t\tlivesText.translate(new Vector3(cameraZoom, cameraZoom - 1));\n\t\totherObjects.add(livesText);\n\t\tlivesString = new AsteroidsString(GameObject.ROOT, Integer.toString(lives), false, true);\n\t\tlivesString.translate(new Vector3(cameraZoom, cameraZoom - 3));\n\t\totherObjects.add(livesString);\n\n\t\t// Then we just set the delay to the first asteroid.\n\t\ttimeToNextAsteroid = asteroidDelay;\n\t}", "private void spawnStuff(PlayScreen screen, float delta) {\n if (stageId!=3 && stageId!=5) {\n isCombatEnabled = true;\n int where;\n boolean spawnRight = true;\n float speed;\n\n\n //Alien Spawn\n if (System.currentTimeMillis() - lastASpawn >= SpawnATimer + extraTimer) {\n speed = (float)(Utils.doRandom(250,400));\n lastASpawn = System.currentTimeMillis();\n int count = 3;\n if (stageId==4) count = 1;\n for (int i = 0; i < count; i++) {\n if (stageId==4){\n speed = (float) (speed*0.75);\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - Alien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - Alien.width, y, Alien.width, Alien.height)))\n hits = true;\n }\n }\n screen.entities.add(new Alien(new Vector2(x, y), 1, screen.alienImages, speed, screen.player));\n }else{\n int x = 0 - Alien.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - Alien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + Alien.width*2 , y, Alien.width, Alien.height)))\n hits = true;\n }\n }\n screen.entities.add(new Alien(new Vector2(x, y), 1, screen.alienImages, speed, screen.player,false));\n }\n }\n }\n //AcidAlien Spawn\n if (System.currentTimeMillis() - lastBSpawn >= SpawnBTimer + extraTimer) {\n speed = 200;\n lastBSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - AcidAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - AcidAlien.width, y, AcidAlien.width, AcidAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new AcidAlien(new Vector2(x, y), screen.alien2Images, screen.acidImage, speed, screen.player));\n }else{\n int x = 0 - AcidAlien.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - AcidAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + AcidAlien.width*2, y, AcidAlien.width, AcidAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new AcidAlien(new Vector2(x, y), screen.alien2Images, screen.acidImage, speed, screen.player,false));\n }\n }\n //FastAlien Spawn\n if (System.currentTimeMillis() - lastCSpawn >= SpawnCTimer + extraTimer) {\n speed= Utils.doRandom(250,400);\n lastCSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - FastAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - FastAlien.width, y, FastAlien.width, FastAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new FastAlien(new Vector2(x, y), 1, screen.alien3Images,speed, screen.player));\n }else{\n int x = 0 - FastAlien.width;\n int y =0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - FastAlien.height);\n for (int h=0;h<collisions.size();h++){\n if (Collision.checkWalls(collisions.get(h),new Rectangle(x-FastAlien.width*2,y,FastAlien.width,FastAlien.height))) hits = true;\n }\n }\n screen.entities.add(new FastAlien(new Vector2(x, y), 1, screen.alien3Images, speed,screen.player,false));\n }\n\n }\n\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule ) {\n speed = 500;\n int x = 0;\n int y = 0;\n lastCapsuleSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n x = (int) screen.gameViewport.getWorldWidth();\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }else{\n x = 0 - BlueBulletItem.width;\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width *2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }\n\n int capsule = screen.random.nextInt(2);\n\n if (capsule == 0) {\n if (spawnRight) {\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages));\n }else{\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages,false));\n }\n } else if (capsule == 1) {\n if (spawnRight) {\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages));\n }else{\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages,false));\n }\n }\n\n }\n if (System.currentTimeMillis() - lastHealthSpawn >= SpawnTimerHealth) {\n speed = 500;\n lastHealthSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages));\n }else{\n int x = 0 - BlueBulletItem.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width*2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages,false));\n }\n }\n /*if (System.currentTimeMillis() - lastBombSpawn >= SpawnTimerBomb) {\n lastBombSpawn = System.currentTimeMillis();\n int x = (int) screen.gameViewport.getWorldWidth();\n int y =0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - PurpleCapsuleItem.height);\n for (int h=0;h<collisions.size();h++){\n if (Collision.checkWalls(collisions.get(h),new Rectangle(x,y,PurpleCapsuleItem.width,PurpleCapsuleItem.height))) hits = true;\n }\n }\n screen.items.add(new PurpleCapsuleItem(x, y, 500, screen.itemPurpleImages));\n }*/\n }else{\n if (stageId==3) {\n //SPACE STAGE\n ///SPAWN ENEMY SHIP:\n //TODO\n if (PlayScreen.entities.size() == 1) {\n isCombatEnabled = false;\n //no enemy spawned, so spawn:\n if (spawnIterator >= killCount) {\n //TODO END STAGE\n } else {\n System.out.println(\"SPAWNS SHIP\");\n spawnIterator++;\n screen.entities.add(new EnemyShipOne(new Vector2(0, 0), 100, screen.enemyShipOne, true, screen.player));\n\n }\n }\n //Items:\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule) {\n lastCapsuleSpawn = System.currentTimeMillis();\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new BlackBulletItem(x, y, 1000, screen.itemBlackImages));\n\n\n }\n }else{\n if (stageId == 5){\n isCombatEnabled = true;\n float speed;\n boolean spawnRight=true;\n int where=0;\n //TODO FINAL STAGE\n if (!isBossSpawned){\n //TODO\n screen.entities.add(new Boss(new Vector2(PlayScreen.gameViewport.getWorldWidth(),PlayScreen.gameViewport.getWorldHeight()/2 - Boss.height/2),screen.player));\n isBossSpawned=true;\n }\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule ) {\n speed = 500;\n int x = 0;\n int y = 0;\n lastCapsuleSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n x = (int) screen.gameViewport.getWorldWidth();\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }else{\n x = 0 - BlueBulletItem.width;\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width *2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }\n\n int capsule = screen.random.nextInt(2);\n\n if (capsule == 0) {\n if (spawnRight) {\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages));\n }else{\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages,false));\n }\n } else if (capsule == 1) {\n if (spawnRight) {\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages));\n }else{\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages,false));\n }\n }\n\n }\n if (System.currentTimeMillis() - lastHealthSpawn >= SpawnTimerHealth) {\n speed = 500;\n lastHealthSpawn = System.currentTimeMillis();\n if (stageId == 4) {\n speed = speed / 2;\n where = Utils.doRandom(0, 1);\n if (where < 50) {\n spawnRight = true;\n } else {\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages));\n } else {\n int x = 0 - BlueBulletItem.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width * 2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages, false));\n }\n }\n //TODO\n }\n }\n }\n\n //run .update(delta) on all objects\n for (int i=0; i<screen.entities.size();i++){\n screen.entities.get(i).update(delta);\n }\n\n for (int i=0; i<screen.items.size();i++){\n screen.items.get(i).update(delta);\n }\n\n //labels set:\n screen.labelHealth.setText(\"Health: \" + screen.player.health + \"/\" + screen.player.maxHealth);\n if (scoreBased) {\n screen.labelInfo.setText(\"Score: \" + screen.player.score + \"/\" + scoreGoal);\n }else{\n if (killCount>0){\n screen.labelInfo.setText(\"Score: \" + screen.player.score + \"/\" + killCount);\n }else{\n if (boss){\n screen.labelInfo.setText(\"Boss: \"+screen.player.score + \"/\" + Boss.bossHealth);\n }else{\n screen.labelInfo.setText(\"\");\n }\n\n }\n }\n if (this.stageId == 999) {\n screen.labelInfo.setText(\"Score: \" + screen.player.score);\n }\n\n\n }", "private final synchronized void enterInstance(L2PcInstance player) {\n\t\tInstanceWorld world = InstanceManager.getInstance().getPlayerWorld(\r\n\t\t\t\tplayer);\r\n\t\tif (world != null) {\r\n\t\t\tif (world.getTemplateId() != INSTANCE_ID) {\r\n\t\t\t\tplayer.sendPacket(SystemMessageId.YOU_HAVE_ENTERED_ANOTHER_INSTANT_ZONE_THEREFORE_YOU_CANNOT_ENTER_CORRESPONDING_DUNGEON);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tInstance inst = InstanceManager.getInstance().getInstance(\r\n\t\t\t\t\tworld.getInstanceId());\r\n\t\t\tif (inst != null) {\r\n\t\t\t\tteleportPlayer(player, TELEPORT, world.getInstanceId());\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// New instance\r\n\t\telse {\r\n\t\t\tworld = new InstanceWorld();\r\n\t\t\tworld.setInstanceId(InstanceManager.getInstance()\r\n\t\t\t\t\t.createDynamicInstance(\"PailakaInjuredDragon.xml\"));\r\n\t\t\tworld.setTemplateId(INSTANCE_ID);\r\n\t\t\tworld.setStatus(0);\r\n\t\t\tInstanceManager.getInstance().addWorld(world);\r\n\r\n\t\t\tworld.addAllowed(player.getObjectId());\r\n\t\t\tteleportPlayer(player, TELEPORT, world.getInstanceId());\r\n\t\t}\r\n\t}", "public void spawnEntity(String entityToSpawn,World world, int xplane, int yplane, int zplane)\n { \n \t//Spawn a creeper\n \tif(entityToSpawn.contentEquals(\"Cr\"))\n \t{\t\n \t\tEntityCreeper creeper = new EntityCreeper(world);\n \t\tcreeper.entityAge = -24000;\n \t\tcreeper.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(creeper);\n \t\treturn;\n \t}\n \t//Spawn an Enderman\n \tif(entityToSpawn.contentEquals(\"En\"))\n \t{\n \t\tEntityEnderman enderman = new EntityEnderman(world);\n \t\tenderman.entityAge = -24000;\n \t\tenderman.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(enderman);\n \t\treturn;\n \t}\n \t//Spawn a Skeleton\n \tif(entityToSpawn.contentEquals(\"Sk\"))\n \t{\n \t\tEntitySkeleton skeleton = new EntitySkeleton(world);\n \t\tskeleton.entityAge = -24000;\n \t\tskeleton.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(skeleton);\n \t\treturn;\n \t}\n \t//Spawn a Zombie\n \tif(entityToSpawn.contentEquals(\"Zo\"))\n \t{\n \t\tEntityZombie zombie = new EntityZombie(world);\n \t\tzombie.entityAge = -24000;\n \t\tzombie.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(zombie);\n \t\treturn;\n \t}\n \t//Spawn a Slime\n \tif(entityToSpawn.contentEquals(\"Sl\"))\n \t{\n \t\tEntitySlime slime = new EntitySlime(world);\n \t\tslime.entityAge = -24000;\n \t\tslime.setSlimeSize(3);\n \t\tslime.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(slime);\n \t\treturn;\n \t}\n \t//Spawn a Spider\n \tif(entityToSpawn.contentEquals(\"Sp\"))\n \t{\n \t\tEntitySpider spider = new EntitySpider(world);\n \t\tspider.entityAge = -24000;\n \t\tspider.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(spider);\n \t\treturn;\n \t}\n \t//Spawn a Cave Spider\n \tif(entityToSpawn.contentEquals(\"Cs\"))\n \t{\n \t\tEntityCaveSpider cavespider = new EntityCaveSpider(world);\n \t\tcavespider.entityAge = -24000;\n \t\tcavespider.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(cavespider);\n \t\treturn;\n \t}\n \t//Spawn a Ghast\n \tif(entityToSpawn.contentEquals(\"Gh\"))\n \t{\n \t\tEntityGhast ghast = new EntityGhast(world);\n \t\tghast.entityAge = -24000;\n \t\tghast.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(ghast);\n \t\treturn;\n \t}\n \t//Spawn a Blaze\n \tif(entityToSpawn.contentEquals(\"Bl\"))\n \t{\n \t\tEntityBlaze blaze = new EntityBlaze(world);\n \t\tblaze.entityAge = -24000;\n \t\tblaze.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(blaze);\n \t\treturn;\n \t}\n \t//Spawn a Magma Cube\n \tif(entityToSpawn.contentEquals(\"Ma\"))\n \t{\n \t\tEntityMagmaCube magmacube = new EntityMagmaCube(world);\n \t\tmagmacube.entityAge = -24000;\n \t\tmagmacube.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(magmacube);\n \t\treturn;\n \t}\n \t//Spawn a Dragon\n \tif(entityToSpawn.contentEquals(\"Dr\"))\n \t{\n \t\tEntityDragon dragon = new EntityDragon(world);\n \t\tdragon.entityAge = -24000;\n \t\tdragon.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(dragon);\n \t\treturn;\n \t}\n \t//Spawn a sheep\n \tif(entityToSpawn.contentEquals(\"Sh\"))\n \t{\n \t\tEntitySheep sheep = new EntitySheep(world);\n \t\tsheep.entityAge = -2;\n \t\tsheep.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(sheep);\n \t\treturn;\n \t}\n \t//Spawn a Cow\n \tif(entityToSpawn.contentEquals(\"Co\"))\n \t{\n \t\tEntityCow cow = new EntityCow(world);\n \t\tcow.entityAge = -2;\n \t\tcow.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(cow);\n \t\treturn;\n \t}\n \t//Spawn a Pig\n \tif(entityToSpawn.contentEquals(\"Pi\"))\n \t{\n \t\tEntityPig pig = new EntityPig(world);\n \t\tpig.entityAge = -2;\n \t\tpig.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(pig);\n \t\treturn;\n \t}\n \t//Spawn a Chicken\n \tif(entityToSpawn.contentEquals(\"Ch\"))\n \t{\n \t\tEntityChicken chicken = new EntityChicken(world);\n \t\tchicken.entityAge = -2;\n \t\tchicken.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(chicken);\n \t\treturn;\n \t}\n \t//Spawn a Ocelot\n \tif(entityToSpawn.contentEquals(\"Ch\"))\n \t{\n \t\tEntityOcelot ocelot = new EntityOcelot(world);\n \t\tocelot.entityAge = -2;\n \t\tocelot.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(ocelot);\n \t\treturn;\n \t}\n \t//Spawn a Pig Zombie\n \tif(entityToSpawn.contentEquals(\"Pz\"))\n \t{\n \t\tEntityPigZombie pigzombie = new EntityPigZombie(world);\n \t\tpigzombie.entityAge = -24000;\n \t\tpigzombie.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(pigzombie);\n \t\treturn;\n \t}\n \t//Spawn a boat\n \tif(entityToSpawn.contentEquals(\"Bo\"))\n \t{\n \t\tEntityBoat boat = new EntityBoat(world);\n \t\t//boat.entityAge = -2;\n \t\tboat.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(boat);\n \t\treturn;\n \t}\n \t//Spawn a Iron Golem\n \tif(entityToSpawn.contentEquals(\"Ir\"))\n \t{\n \t\tEntityIronGolem irongolem = new EntityIronGolem(world);\n \t\tirongolem.entityAge = -24000;\n \t\tirongolem.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(irongolem);\n \t\treturn;\n \t}\n \t//Spawn a Giant Zombie\n \tif(entityToSpawn.contentEquals(\"Gi\"))\n \t{\n \t\tEntityGiantZombie giant = new EntityGiantZombie(world);\n \t\tgiant.entityAge = -24000;\n \t\tgiant.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(giant);\n \t\treturn;\n \t}\n \t//Spawn a Mine Cart\n \tif(entityToSpawn.contentEquals(\"Mi\"))\n \t{\n \t\tEntityMinecart cart = new EntityMinecart(world);\n \t\t//cart.entityAge = -24000;\n \t\tcart.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(cart);\n \t\treturn;\n \t}\n \t//Spawn a Mooshroom\n \tif(entityToSpawn.contentEquals(\"Gi\"))\n \t{\n \t\tEntityMooshroom moosh = new EntityMooshroom(world);\n \t\tmoosh.entityAge = -2;\n \t\tmoosh.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(moosh);\n \t\treturn;\n \t}\n \t//Spawn a Sliver Fish\n \tif(entityToSpawn.contentEquals(\"Si\"))\n \t{\n \t\tEntitySilverfish silverfish = new EntitySilverfish(world);\n \t\tsilverfish.entityAge = -24000;\n \t\tsilverfish.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(silverfish);\n \t\treturn;\n \t}\n \t//Spawn a Snowman\n \tif(entityToSpawn.contentEquals(\"Sn\"))\n \t{\n \t\tEntitySnowman frosty = new EntitySnowman(world);\n \t\tfrosty.entityAge = -24000;\n \t\tfrosty.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(frosty);\n \t\treturn;\n \t}\n \t//Spawn a Squid\n \tif(entityToSpawn.contentEquals(\"Sq\"))\n \t{\n \t\tEntitySquid squid = new EntitySquid(world);\n \t\tsquid.entityAge = -2;\n \t\tsquid.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(squid);\n \t\treturn;\n \t}\n \t//Spawn a Villager\n \tif(entityToSpawn.contentEquals(\"Vi\"))\n \t{\n \t\tEntityVillager villager = new EntityVillager(world);\n \t\tvillager.entityAge = -2;\n \t\tvillager.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(villager);\n \t\treturn;\n \t}\n \t//Spawn a Wolf\n \tif(entityToSpawn.contentEquals(\"Wo\"))\n \t{\n \t\tEntityWolf wolf = new EntityWolf(world);\n \t\twolf.entityAge = -2;\n \t\twolf.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(wolf);\n \t\treturn;\n \t}\n }", "public static void WorkAtCompany(Player gamer){\r\n gamer.zen = gamer.zen-30;\r\n gamer.money = gamer.money+10;\r\n gamer.turn = gamer.turn+1; \r\n }", "public void start() {\r\n\t\tSystem.out.println(\"start the car\");\r\n\t}", "public void launch(){\n try{\n System.out.println(\"Main: Creando agentes\");\n \tmap = visualizer.getMapToLoad();\n \tsatelite = new Satelite(id_satelite, map, visualizer);\n \tdrone = new Drone(new AgentID(\"Drone\"), map.getWidth(), map.getHeigh(), id_satelite);\n \tSystem.out.println(\"MAIN : Iniciando agentes...\");\n \tvisualizer.setSatelite(satelite);\n satelite.start();\n drone.start();\n }catch(Exception e){\n \tSystem.err.println(\"Main: Error al crear los agentes\");\n System.exit(-1);\n }\n\t}", "public Game()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1, false); \n Greenfoot.start(); //Autostart the game\n Greenfoot.setSpeed(50); // Set the speed to 30%\n setBackground(bgImage);// Set the background image\n \n //Create instance\n \n Airplane gameplayer = new Airplane ();\n addObject (gameplayer, 100, getHeight()/2);\n \n }", "private void spawn()\n\t{\n\t\t// get the path index and set the stage for the next path to be different\n\t\tint currentPathIndex = 0; //currentWave.getPathIndex();\n\t\t//currentWave.cyclePathList();\n\t\t\n\t\t// get the actual path using the index\n\t\tPath currentPath = pathList.get(currentPathIndex);\n\t\t\n\t\t// create the new Walker with that path\n\t\tWalker walker;\n\t\t\n\t\tswitch(currentWave.dequeueWalker())\n\t\t{\n\t\t\tcase QUICK:\t\twalker = new WalkerQuick(currentPath);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\tdefault:\t\twalker = new WalkerBasic(currentPath);\n\t\t}\n\t\t\n\t\t// put Walker on specific DrawingLayer if necessary\n\t\tif(spawnDrawingLayer != null)\n\t\t{\n\t\t\twalker.moveToDrawingLayer(spawnDrawingLayer);\n\t\t}\n\t}", "void forceSpawn() throws SpawnException;", "public static void vehicleShoot(Player curr, int owner) {\n boolean airShot = false;\n if (gameMode == EARTH_INVADERS) //so vehicles don't shoot each other\n airShot = true;\n if (numFrames >= curr.getLastShotTime() + curr.getReloadTime()) {\n int hd = curr.getHeadDirection();\n Bullet temp = null;\n int bulletSpeed = SPEED * 6;\n //find monster in sights\n int[] target = isMonsterInSight(curr);\n int mIndex = target[1];\n int detX = -1;\n int detY = -1;\n if (mIndex > 0) {\n detX = players[mIndex].findX(cellSize);\n detY = players[mIndex].findY(cellSize);\n if (players[mIndex].isFlying())\n airShot = true;\n }\n if (curr.getName().endsWith(\"missile\")) {\n channels[0].programChange(instr[TAIKO].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 10) + 5, (int) (Math.random() * 10) + 40);\n\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 4;\n else\n bulletSpeed = SPEED * 3;\n temp = new Bullet(\"missile\" + hd, curr.getX(), curr.getY(), 50, rocketImages, SPEED, \"SHELL\", bulletSpeed, true, owner, detX, detY);\n } else if (curr.getName().endsWith(\"jeep\")) {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 65, (int) (Math.random() * 10) + 30);\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 7;\n else\n bulletSpeed = SPEED * 6;\n temp = new Bullet(\"jeep\" + hd, curr.getX(), curr.getY(), 5, machBulletImages, SPEED, \"BULLET\", bulletSpeed, airShot, owner, -1, -1);\n } else if (curr.getName().endsWith(\"troops\") || curr.getName().endsWith(\"police\")) {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 70, (int) (Math.random() * 10) + 20);\n temp = new Bullet(\"troops\" + hd, curr.getX(), curr.getY(), 3, bulletImages, SPEED, \"BULLET\", SPEED * 6, airShot, owner, -1, -1);\n } else if (curr.getName().endsWith(\"flame\")) {\n channels[0].programChange(instr[TAIKO].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 10) + 15, (int) (Math.random() * 10) + 40);\n\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 5;\n else\n bulletSpeed = SPEED * 4;\n temp = new Bullet(\"flame\" + hd, curr.getX(), curr.getY(), 15, monsterFireImages, SPEED, \"FIRE\", bulletSpeed, airShot, owner, -1, -1);\n } else {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 45, (int) (Math.random() * 10) + 85);\n\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 6;\n else\n bulletSpeed = SPEED * 5;\n temp = new Bullet(\"\" + hd, curr.getX(), curr.getY(), 15, shellImages, SPEED, \"SHELL\", bulletSpeed, airShot, owner, -1, -1);\n }\n temp.setDirection(hd);\n if (temp != null) {\n bullets.add(temp);\n curr.setLastShotTime(numFrames);\n }\n if (bullets.size() > BULLET_LIMIT) //remove earliest fired bullet if we have more than the bullet limit\n {\n explosions.add(new Explosion(\"SMALL\", bullets.get(0).getX() - (cellSize / 2), bullets.get(0).getY() - (cellSize / 2), explosionImages, animation_delay));\n bullets.remove(0);\n }\n }\n }", "public void askSpawn() throws RemoteException{\n respawnPopUp = new RespawnPopUp();\n respawnPopUp.setSenderRemoteController(senderRemoteController);\n respawnPopUp.setMatch(match);\n\n Platform.runLater(\n ()-> {\n try{\n respawnPopUp.start(new Stage());\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }\n );\n }", "public static void Crafting() {\n\n }", "void createNewGame(Player player);", "@Override\n public void handle(Car car) {\n\t SimpleMaxXCar inter = (SimpleMaxXCar) Main.intersection;\n try {\n sleep(car.getWaitingTime());\n } catch (InterruptedException e) {\n e.printStackTrace();\n } // NU MODIFICATI\n\n\t try {\n\t\t System.out.println(\"Car \"+ car.getId() + \" has reached the roundabout from lane \"\n\t\t\t\t + car.getStartDirection());\n\t\t // semafor de x pt fiecare directie\n\t\t inter.s.get(car.getStartDirection()).acquire();\n\t\t System.out.println(\"Car \"+ car.getId() + \" has entered the roundabout from lane \"\n\t\t\t\t + car.getStartDirection());\n\n\t\t // sleep t secunde cand masina e in giratoriu\n\t\t sleep(inter.t);\n\n\t\t System.out.println(\"Car \"+ car.getId() +\" has exited the roundabout after \"\n\t\t\t\t + inter.t + \" seconds\");\n\n\t\t inter.s.get(car.getStartDirection()).release();\n\n\t } catch (InterruptedException e) {\n\t\t e.printStackTrace();\n\t }\n }", "void createPlayer(Player player);", "private void createPlayer() {\n Entity entity = engine.createEntity();\n B2dBodyComponent b2dbody = engine.createComponent(B2dBodyComponent.class);\n TransformComponent position = engine.createComponent(TransformComponent.class);\n TextureComponent texture = engine.createComponent(TextureComponent.class);\n PlayerComponent player = engine.createComponent(PlayerComponent.class);\n CollisionComponent colComp = engine.createComponent(CollisionComponent.class);\n TypeComponent type = engine.createComponent(TypeComponent.class);\n StateComponent stateCom = engine.createComponent(StateComponent.class);\n\n // create the data for the components and add them to the components\n b2dbody.body = bodyFactory.makeCirclePolyBody(10,10,1, BodyFactory.STONE, BodyType.DynamicBody,true);\n // set object position (x,y,z) z used to define draw order 0 first drawn\n position.position.set(10,10,0);\n texture.region = atlas.findRegion(\"player\");\n type.type = TypeComponent.PLAYER;\n stateCom.set(StateComponent.STATE_NORMAL);\n b2dbody.body.setUserData(entity);\n\n // add the components to the entity\n entity.add(b2dbody);\n entity.add(position);\n entity.add(texture);\n entity.add(player);\n entity.add(colComp);\n entity.add(type);\n entity.add(stateCom);\n\n // add the entity to the engine\n engine.addEntity(entity);\n }", "public void act()\n {\n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Cabbage(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Eggplant(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Onion(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(300) < 3)\n {\n addObject(new Pizza(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Cake(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Icecream(), Greenfoot.getRandomNumber(600), 0);\n }\n countTime();\n }", "Player createPlayer();", "public void generatePlayer()\n {\n board.getTile(8,0).insertPlayer(this.player);\n }", "public static void main(String[] args){\n Car audi = new Car(\"ABC\", \"Audi\", \"A3\", 26000);\n Car vw = new Car(\"XYZ\", \"VolksWagen\", \"Golf\", 250000);\n Car ford = new Car(\"ABC\", \"Ford\", \"focus\", 20000);\n CarDealer beterAuto = new CarDealer(\"Beter Auto\");\n CarDealer autoConcurrent = new CarDealer(\"De Autoconcurrent\");\n CarOwner jantje = new CarOwner(\"Jan\", 6);\n CarOwner hans = new CarOwner(\"Hans\", 34);\n CarOwner oma = new CarOwner(\"Jeanet\", 80);\n\n audi.registerTo(beterAuto);\n vw.registerTo(beterAuto);\n ford.registerTo(beterAuto);\n beterAuto.sellCar(vw, jantje);\n beterAuto.sellCar(vw, hans);\n beterAuto.sellCar(vw, oma);\n beterAuto.sellCar(ford, oma);\n vw.registerTo(autoConcurrent);\n }", "public void onPlayerCollide(Player player) {\n \tplayer.x().set(getX());\r\n \tplayer.y().set(getY());\r\n \t\r\n \t// One ladder at a time\r\n \tif (player.getInventory().findEntity(this) == null) {\r\n \t\tplayAudio(\"sounds/pickup.wav\");\r\n \t\tplayer.getInventory().addEntity(this);\r\n \tdisplayInventory();\r\n \t}\n }", "private boolean spawn(int x, int y) {\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tVehicleFactory factory = new CarFactory();\n\t\tMoveable moveable = factory.Create();\n\t\tmoveable.run();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public final void spawn(AttachmentViewer viewer, Vector motion) {\n super.spawn(viewer, motion);\n }", "public void spawnWanderingSeeker(LogicEngine in_logicEngine)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/triangle.png\",(float)LogicEngine.SCREEN_WIDTH*Math.random(),LogicEngine.SCREEN_HEIGHT-10,0);\r\n\t\t\t\t\r\n\t\t//set animation frame\r\n\t\tship.i_animationFrame=1;\r\n\t\tship.i_animationFrameRow=0;\r\n\t\tship.i_animationFrameSizeWidth=16;\r\n\t\tship.i_animationFrameSizeHeight=16;\r\n\t\t\r\n\t\t//wander \t\r\n\t\tCustomBehaviourStep cb = new CustomBehaviourStep(new Wander(-2.5,2.5,20,0.1));\r\n\t\tship.stepHandlers.add( cb);\r\n\t\t\r\n\t\t//chase player if on medium or hard\r\n\t\tif(Difficulty.difficulty == DIFFICULTY.MEDIUM || \r\n\t\t\t\tDifficulty.difficulty == DIFFICULTY.HARD)\r\n\t\t{\t\r\n\t\t\tSeekNearestPlayerStep sps = new SeekNearestPlayerStep(100);\r\n\t\t\tship.stepHandlers.add(sps);\r\n\t\t}\r\n\t\r\n\t\tship.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-2)));\r\n\t\tship.collisionHandler = new DestroyIfEnemyCollision(ship, 10, true);\r\n\t\tship.v.setMaxForce(2);\r\n\t\tship.v.setMaxVel(2);\r\n\t\t\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t}", "public void attemptSpawn(Player player) {\n\n int min = plugin.CONFIG.SPAWNING_RADIUS_MIN;\n int max = plugin.CONFIG.SPAWNING_RADIUS_MAX;\n\n // choose random x,z coordinates within the allowed radius range\n int distance = rand.nextInt((max - min) + 1) + min;\n double angle = 2 * Math.PI * rand.nextDouble();\n double deltaX = distance * Math.cos(angle);\n double deltaZ = distance * Math.sin(angle);\n Location loc = player.getLocation().clone();\n loc.setX(player.getLocation().getX() + deltaX);\n loc.setZ(player.getLocation().getZ() + deltaZ);\n\n // pick a new y coordinate if the same level is not possible\n if (!isSpawnable(loc)) {\n int high = (loc.getBlockY() + 10 >= 255) ? 254 : loc.getBlockY() + 10;\n int low = (loc.getBlockY() - 10 <= 0) ? 1 : loc.getBlockY() - 10;\n for (int i = high; i >= low; i--) {\n loc.setY(i);\n if (!isSpawnable(loc)) return;\n }\n }\n\n // do the spawn\n player.getWorld().spawnEntity(loc, EntityType.ZOMBIE);\n\n }", "@Override\n public void performStrategy(NPCCar car, GameWorld gw) {\n if(Utilities.findTheNumberOfPylons() != 0) {\n /* Index Number Agnostic */\n /* 1. Retrieve all pylons of the world */\n Vector<Pylon> allPylons = Utilities.getAllPylons();\n /* 2. Sort'em\n *\n * Returns negative one, zero, or one if the first argument is smaller,\n * equal, or larger than the second.\n */\n allPylons.sort( (p1, p2) -> {\n if(p1.getIndexNumber() < p2.getIndexNumber()){\n return -1;\n } else {\n return 1;\n }\n });\n\n Pylon nextPylonToFollow = null;\n\n java.util.Iterator<Pylon> iterInALlPylons;\n for(iterInALlPylons = allPylons.iterator(); iterInALlPylons.hasNext(); ){\n Pylon temp = iterInALlPylons.next();\n if(temp.getIndexNumber() > car.getLastHighestPylonReached()){\n nextPylonToFollow = temp;\n break;\n }\n }\n if(Utilities.findTheNumberOfPylons() != 0 && nextPylonToFollow == null){\n nextPylonToFollow = allPylons.firstElement();\n }\n\n if(nextPylonToFollow.getIndexNumber() != car.getLastHighestPylonReached()){\n Location pylonLocation = nextPylonToFollow.getLocation();\n Location npcLocation = car.getLocation();\n float adj = pylonLocation.getX() - npcLocation.getX();\n float op = pylonLocation.getY() - npcLocation.getY();\n\n\n float angleToAdd;\n\n angleToAdd = (float) Math.toDegrees(atan2(op, adj));\n\n car.setHeading(angleToAdd);\n\n float deltaY = (float) (Math.sin(Math.toRadians(car.getHeading())) * car.getSpeed() * 10);\n float deltaX = (float) (Math.cos(Math.toRadians(car.getHeading())) * car.getSpeed() * 10);\n\n car.setX(deltaX);\n car.setY(deltaY);\n\n car.setHeading(90 - angleToAdd);\n\n if ((car.getX() < (nextPylonToFollow.getX() + 10) && car.getX() > (nextPylonToFollow.getX() - 10)) &&\n (car.getY() < (nextPylonToFollow.getY() + 10) && car.getY() > (nextPylonToFollow.getY() - 10))) {\n car.setLastHighestPylonReached(nextPylonToFollow.getIndexNumber());\n }\n }\n }\n\n }", "public static Activity pestControl() {\n Position veteranBoat = new Position(2638, 2653);\n BooleanSupplier isOnIsland = Game.getClient()::isInInstancedScene;\n\n Function<Position, Activity> moveTo = position -> Activity.newBuilder()\n .withName(\"Moving to position: \" + position)\n .addPreReq(() -> Movement.isWalkable(position))\n .addPreReq(() -> position.distance(Players.getLocal()) > 5)\n .addSubActivity(Activities.toggleRun())\n .addSubActivity(() -> Movement.walkTo(position))\n .thenPauseFor(Duration.ofSeconds(4))\n .maximumDuration(Duration.ofSeconds(20))\n .untilPreconditionsFail()\n .build();\n\n Activity boardShip = Activity.newBuilder()\n .withName(\"Boarding ship to start game\")\n .addPreReq(() -> SceneObjects.getNearest(\"Gangplank\") != null)\n .addPreReq(() -> !isOnIsland.getAsBoolean())\n .addPreReq(() -> Players.getLocal().getX() >= 2638)\n .tick()\n .addSubActivity(Activities.moveTo(veteranBoat))\n .addSubActivity(() -> SceneObjects.getNearest(\"Gangplank\").interact(\"Cross\"))\n .thenPauseFor(Duration.ofSeconds(3))\n .build();\n\n Activity waitForGameToStart = Activity.newBuilder()\n .withName(\"Waiting for game to start\")\n .addPreReq(() -> !isOnIsland.getAsBoolean())\n .addPreReq(() -> Players.getLocal().getX() < 2638)\n .addSubActivity(() -> Time.sleepUntil(isOnIsland, 1000 * 60 * 10))\n .build();\n\n Activity goToSpawnSpot = Activity.newBuilder()\n .withName(\"Going to my fav spot\")\n .addPreReq(isOnIsland)\n .addSubActivity(() -> moveTo.apply(Players.getLocal().getPosition().translate(0, -31)).run())\n .build();\n\n Activity killStuff = Activity.newBuilder()\n .withName(\"killing stuff\")\n .addPreReq(isOnIsland)\n .addPreReq(() -> Npcs.getNearest(npc -> true) != null)\n .addPreReq(() -> Npcs.getNearest(npc -> true).containsAction(\"Attack\"))\n .addSubActivity(() -> Npcs.getNearest(npc -> true).interact(\"Attack\"))\n .thenSleepUntil(() -> Players.getLocal().getTarget() == null)\n .build();\n\n return Activity.newBuilder()\n // TODO(dmattia): Check for world 344\n .withName(\"Pest Control\")\n .addSubActivity(boardShip)\n .addSubActivity(waitForGameToStart)\n .addSubActivity(goToSpawnSpot)\n .addSubActivity(killStuff)\n .build();\n }", "public void act() \n {\n World myWorld = getWorld();\n \n Mapa mapa = (Mapa)myWorld;\n \n EnergiaMedicZ vidaMZ = mapa.getEnergiaMedicZ();\n \n EnergiaGuerriZ vidaGZ = mapa.getEnergiaGuerriZ();\n \n EnergiaConstrucZ vidaCZ = mapa.getEnergiaConstrucZ();\n \n GasZerg gasZ = mapa.getGasZerg();\n \n CristalZerg cristalZ = mapa.getCristalZerg();\n \n BunkerZerg bunkerZ = mapa.getBunkerZerg();\n \n Mina1 mina1 = mapa.getMina1();\n Mina2 mina2 = mapa.getMina2();\n Mina3 mina3 = mapa.getMina3();\n \n \n //movimiento del personaje\n if(Greenfoot.isKeyDown(\"b\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }\n }\n else if(Greenfoot.isKeyDown(\"z\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }}\n //encuentro con objeto\n \n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"s\"))\n {\n setLocation(getX(),getY()-1);\n }\n \n \n //probabilida de daño al enemigo\n \n if(isTouching(MedicTerran.class) && Greenfoot.getRandomNumber(100)==3)\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n if(isTouching(ConstructorTerran.class) && (Greenfoot.getRandomNumber(100)==3 ||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n if(isTouching(GuerreroTerran.class) && (Greenfoot.getRandomNumber(100)==3||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1||Greenfoot.getRandomNumber(100)==4||Greenfoot.getRandomNumber(100)==5))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n \n \n //encuentro con Bunker\n \n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"s\"))\n \n {\n setLocation(getX(),getY()-1);\n }\n \n //AccionesUnicas\n \n if(isTouching(YacimientoDeGas.class) && gasZ.gasZ < 100)\n {\n \n gasZ.addGasZ();\n \n }\n \n \n if(isTouching(Mina1.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina1.removemina1();\n \n }\n \n if(isTouching(Mina2.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina2.removemina2();\n \n }\n \n if(isTouching(Mina3.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina3.removemina3();\n \n }\n \n \n if(isTouching(DepositoZ.class) && gasZ.gasZ > 4 && bunkerZ.bunkerZ() < 400){\n \n gasZ.removeGasZ();\n bunkerZ.addbunkerZ();\n }\n \n if(isTouching(DepositoZ.class) && cristalZ.cristalZ() > 0 && bunkerZ.bunkerZ() < 400 ){\n \n cristalZ.removeCristalZ();\n bunkerZ.addbunkerZ();\n }\n \n //determinar si la vida llega a 0\n \n if( vidaCZ.vidaCZ <= 0 )\n {\n \n getWorld().removeObjects(getWorld().getObjects(EnergiaConstrucZ.class)); \n \n getWorld().removeObjects(getWorld().getObjects(ConstructorZerg.class));\n \n EnergiaZerg energiaZ = mapa.getEnergiaZerg(); \n \n energiaZ.removenergiaCZ();\n }\n \n if( mina1.mina1() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina1.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal1.class));\n \n }\n \n if( mina2.mina2() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina2.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal2.class));\n \n }\n \n if( mina3.mina3() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina3.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal3.class));\n \n }\n \n \n}", "private void doSpawnProcess()\n\t{\n\t\t// spawn sometin\n\t\tthis.spawn();\n\t\t\n\t\t// record another spawned enemy\n\t\tspawnCurrent++;\n\t\t\n\t\t// if that wasn't the last Walker\n\t\tif(currentWave.getNumberOfWalkers() > 0)\n\t\t{\n\t\t\t// restart the spawn timer\n\t\t\tfloat delay = currentWave.getSpawnDelay();\n\t\t\tspawnTimer.start(delay);\n\t\t}\n\t\t// otherwise, we've spawned all our piggies in this wave\n\t\telse\n\t\t{\n\t\t\tprepareNextWave();\n\t\t}\n\t}", "public void startGame(){\n\n AgentAddress coordinatorAddressPre = getAgentWithRole(\"investment_game\", \"tout_le_monde\", \"coordinator\");\n\n if (coordinatorAddressPre==null){\n Coordinator coordinator = new Coordinator();\n\n launchAgent(coordinator);\n\n pause(1000);\n }\n\n Set<Player> players = new HashSet<Player>();\n Player primaryPlayer = null;\n\n //now launch all human player avatar agents, each of them will be initialized as agent having a GUI frame\n Iterator<GameSpecification.PlayerSpecification> playerSpecs = gameSpecification.getPlayerSpecifications().iterator();\n\n int launchedHumanPlayers = 0;\n\n while (playerSpecs.hasNext()){\n GameSpecification.PlayerSpecification spec = playerSpecs.next();\n\n if (spec instanceof GameSpecification.HumanPlayerSpecification){\n\n HumanPlayerAvatar humanPlayerAvatar = new HumanPlayerAvatar(spec.getName());\n\n launchAgent(humanPlayerAvatar,true);\n\n players.add(humanPlayerAvatar);\n\n launchedHumanPlayers++;\n\n if (null == primaryPlayer){\n primaryPlayer=humanPlayerAvatar;\n }\n\n }\n }\n\n //launch computer player agents. If no human players have been launched, the first computer player will display a GUI frame.\n playerSpecs = gameSpecification.getPlayerSpecifications().iterator();\n\n boolean first = true;\n\n while (playerSpecs.hasNext()){\n GameSpecification.PlayerSpecification spec = playerSpecs.next();\n\n if (spec instanceof GameSpecification.ComputerPlayerSpecification){\n\n ChooseAmountStrategy chooseAmountStrategy = ((GameSpecification.ComputerPlayerSpecification) spec).getChooseAmountStrategy();\n\n SelectOpponentStrategy selectOpponentStrategy = ((GameSpecification.ComputerPlayerSpecification) spec).getSelectOpponentStrategy();\n \n ComputerPlayer computerPlayer = new ComputerPlayer(spec.getName(),spec.getPictureFileName(), chooseAmountStrategy, selectOpponentStrategy);\n\n chooseAmountStrategy.setPlayer(computerPlayer);\n\n selectOpponentStrategy.setPlayer(computerPlayer);\n\n launchAgent(computerPlayer, launchedHumanPlayers == 0 && first);\n\n players.add(computerPlayer);\n\n if (null == primaryPlayer){\n primaryPlayer=computerPlayer;\n }\n\n first = false;\n\n }\n }\n\n //request new game from coordinator\n AgentAddress coordinatorAddress;\n\n while((coordinatorAddress = getAgentWithRole(\"investment_game\",\"tout_le_monde\",\"coordinator\"))==null){\n pause(750);\n }\n\n String requestGameSpec = \"<new_game> <for> \"+gameSpecification.getPlayerSpecifications().size()+\" <players> <having> \"+gameSpecification.getRounds()+\" <rounds> <invite> 0 <computer_players>\";\n\n ActMessage reply = (ActMessage)sendMessageWithRoleAndWaitForReply(coordinatorAddress,new ActMessage(\"request_game\",requestGameSpec),\"jeromes_assistant\");\n\n if (reply.getAction().equals(\"game_initialized\")){\n\n final String gameId = reply.getContent();\n\n //let players join the game\n Iterator<Player> playerIterator = players.iterator();\n\n while (playerIterator.hasNext()){\n\n final Player player = playerIterator.next();\n final boolean isPrimaryPlayer = player.equals(primaryPlayer);\n\n new Thread(){\n @Override\n public void run() {\n player.joinGame(gameId,isPrimaryPlayer,player.getPicturePath());\n }\n }.start();\n\n }\n }else{\n //TODO throw Exception\n }\n\n }", "@Override\n\tpublic void enter() {\n\t\t//Update dimensions\n\t\tattachedTo.setWidth(20);\n\t\tattachedTo.setHeight(20);\n\t\t\n\t\t//set image of player to overworld image\n\t\tattachedTo.setShape(new Ellipse2D.Double(), Color.green);\n\t\tattachedTo.updateShape();\n\t\t\n\t\t\n\t\t//Set the sprite to testspritesheet (until image for overworld state is made)\n\t\t//Now sets the sprite to a test spritesheet\n\t\tattachedTo.setSprite(Directory.spriteLibrary.get(\"HeroOverworld\"));\n\t\t\n\t\t//Queue up an animation of row 0 in spritesheet to repeat\n\t\tattachedTo.getSprite().queueAnimation(0, false);\n\t\t\n\t\t//Start timing movement by getting previous time\n\t\tpreviousTime = System.currentTimeMillis();\n\t}", "void spawnEntityAt(String typeName, int x, int y);", "private void startMapCreater() {\n\t\tNavigator navi = new Navigator(pilot);\n\t\tnavi.addWaypoint(0,0);\n\t\tnavi.addWaypoint(0,5000);\n\t\tBehavior forward = new Forward(navi);\n\t\tBehavior ultrasonic = new UltrasonicSensor(ultrasonicSensorAdaptor,pilot, sonicWheel,dis,dos,navi);\n\t\tBehavior stopEverything = new StopRobot(Button.ESCAPE);\n\t\tBehavior[] behaiverArray = {forward, ultrasonic, stopEverything};\n\t\tarb = new Arbitrator(behaiverArray);\n\t\t\n\t arb.go();\n\t\t\n\t}", "public static void spawn(String spawnName, Player player) {\n World w = Bukkit.getWorld(FileManager.getSpawnYml().getString(\"Spawns.\" + spawnName + \".world\"));\n Double x = FileManager.getSpawnYml().getDouble(\"Spawns.\" + spawnName + \".x\");\n Double y = FileManager.getSpawnYml().getDouble(\"Spawns.\" + spawnName + \".y\");\n Double z = FileManager.getSpawnYml().getDouble(\"Spawns.\" + spawnName + \".z\");\n int ya = FileManager.getSpawnYml().getInt(\"Spawns.\" + spawnName + \".yaw\");\n int pi = FileManager.getSpawnYml().getInt(\"Spawns.\" + spawnName + \".pitch\");\n Location spawnLoc = new Location(w, x, y, z, ya, pi);\n player.teleport(spawnLoc);\n if (Main.plugin.getConfig().getString(\"NOTIFICATIONS.Spawn\").equalsIgnoreCase(\"True\")) {\n String msg = MessageManager.getMessageYml().getString(\"Spawn.Spawn\");\n player.sendMessage(MessageManager.getPrefix() + ChatColor.translateAlternateColorCodes('&', msg));\n }\n }", "private void initialize() {\n SystemManager.get(this);\n SystemManager.add(new PlayerInputSystem(this, win.getInputHandler()));\n SystemManager.add(new PhysicSystem(this, win.getDimension()));\n SystemManager.add(new RenderSystem(this));\n\n World world = new World(new Vector2D(0.0f, 98.1f));\n theCar = new Car(\"car\");\n\n theCar.setPosition(new Vector2D(win.getWidth() * 0.5f, win.getHeight() * 0.5f))\n .setSize(new Rectangle(50, 20))\n .setVelocity(new Vector2D(0.0f, 0.0f))\n .setResistance(0.90f)\n .setMass(2000.0f)\n .setWorld(world);\n\n add(theCar);\n }", "public void startNewGame();", "public void playCvC() {\n isAI[0] = true;\n isAI[1] = true;\n players[0] = new AI();\n players[1] = new AI();\n playerShips[0] = players[0].getShipList();\n playerShips[1] = players[1].getShipList();\n grids[0] = new Grid();\n grids[1] = new Grid();\n currentPlayer = 0;\n playGame();\n }", "@Override\n public void show() {\n player = new Player(game.getAssetManager().get(\"player.png\", Texture.class), world, new Vector2(1, 2));\n floor = new Floor(game.getAssetManager().get(\"floor.png\", Texture.class), world, new Vector2(0, 0 + 0.5f), 20f, 1f);\n hud = new HUD();\n\n stage.addActor(floor);\n stage.addActor(player);\n\n //TODO: AUTOGENERATE when the player goes up.\n platforms.clear();\n int ax = (int) (Math.random() * 5 + 0);\n platforms.add(new Platform(game.getAssetManager().get(\"platform.png\", Texture.class), world, new Vector2(ax, 3), 1.2f, 0.3f));\n for (int i = 3; i <= 25; i++) {\n\n int x, y;\n x = (int) (Math.random() * 4.5 + 0.5);\n y = ((int) (Math.random() * 3 + 1)) + i;\n\n while ((x < ax && x > ax + 1f) && (x > ax && x < ax - 1f)) {\n x = (int) (Math.random() * 4.5 + 0.5);\n }\n Gdx.app.log(\"kk\",x+\"x\"+y);\n platforms.add(new Platform(game.getAssetManager().get(\"platform.png\", Texture.class), world, new Vector2(x, y), 1f, 0.3f));\n ax = x;\n }\n\n for (Platform platform : platforms) {\n stage.addActor(platform);\n }\n\n stage.getCamera().position.set(cameraInitialPosition);\n stage.getCamera().update();\n\n playing = false;\n jumps = 0;\n lastPlatformTouched = 0;\n\n song.play();\n\n }", "private void initiateProjectile() {\n\t}", "public static Action spawn(final Class<?> e) {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.isFacingValidLocation() && a.getFacing() == null) {\n if(a.energy >= getCost()) {\n try {\n Actor b = (Actor) e.newInstance();\n b.putSelfInGrid(a.getGrid(), a.getLocation().getAdjacentLocation(a.getDirection()));\n } catch(InstantiationException r) {\n r.printStackTrace();\n } catch(IllegalAccessException r) {\n r.printStackTrace();\n }\n a.energy = a.energy - 400;\n }\n }\n }\n\n @Override\n public int getCost() {\n return 400;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return e;\n }\n\n @Override\n public String toString() {\n return \"Spawn(\" + (e != null ? e.toString() : \"null\") + \")\";\n }\n };\n }", "public Location mainSpawn(){\r\n\t\treturn mainSpawn;\r\n\t}", "@Override\r\n\tpublic void playSoldierCard() {\n\t\t\r\n\t}", "public GameObject spawnBigBeamer(LogicEngine in_logicEngine) {\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bigbeamer.png\",((float)LogicEngine.SCREEN_WIDTH/2),LogicEngine.SCREEN_HEIGHT+64,0);\r\n\t\tship.i_animationFrameSizeHeight = 115;\r\n\t\tship.i_animationFrameSizeWidth = 115;\r\n\t\t\r\n\t\t\r\n\t\tship.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-1f)));\r\n\t\t\r\n\t\r\n\t\tship.v.setMaxForce(2.5f);\r\n\t\tship.v.setMaxVel(2.5f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tint i_shootEvery = 80;\r\n\t\t\r\n\t\tBeamShot b = new BeamShot(i_shootEvery);\r\n\t\t\r\n\t\tb.b_flare=false;\r\n\t\tb.f_offsetX=-40;\r\n\t\tb.f_offsetY=-30;\r\n\t\tb.i_delay = 40;\r\n\t\tb.i_beamWidth = 15;\r\n\t\t\r\n\t\tBeamShot b2 = new BeamShot(i_shootEvery);\r\n\t\tb2.b_flare=false;\r\n\t\tb2.f_offsetX=40;\r\n\t\tb2.f_offsetY=-30;\r\n\t\tb2.i_delay = 40+(i_shootEvery/2);\r\n\t\tb2.i_beamWidth = 15;\r\n\t\tb.nextBeam = b2;\r\n\t\t\r\n\t\tship.shootEverySteps=1;\r\n\t\tship.shotHandler = b;\r\n\t\t\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 100, 50f);\r\n\t\t\r\n\t\tif(!Difficulty.isHard())\r\n\t\t\tc.f_numberOfHitpoints = 200;\r\n\t\tif(!Difficulty.isMedium())\r\n\t\t\tc.f_numberOfHitpoints = 160;\r\n\t\t\r\n\t\tc.setExplosion(Utils.getBossExplosion(ship));\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t}", "public void act() \n {\n String worldname = getWorld().getClass().getName();\n if (worldname == \"Level0\")\n setImage(new GreenfootImage(\"vibranium.png\"));\n else if (worldname == \"Level1\")\n setImage(rocket.getCurrentImage());\n setLocation(getX()-8, getY()); \n if (getX() == 0) \n {\n getWorld().removeObject(this);\n }\n \n }", "public GameObject spawnBomber(LogicEngine in_logicEngine){\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bomber.png\",((float)LogicEngine.SCREEN_WIDTH)+50,LogicEngine.SCREEN_HEIGHT-50,0);\r\n\t\tship.i_animationFrameSizeHeight = 58;\r\n\t\tship.i_animationFrameSizeWidth = 58;\r\n\t\t\r\n\t\t//fly back and forth\r\n\t\tLoopWaypointsStep s = new LoopWaypointsStep();\r\n\t\ts.waypoints.add(new Point2d(-30,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\ts.waypoints.add(new Point2d(LogicEngine.SCREEN_WIDTH+50,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\t\r\n\t\tship.b_mirrorImageHorizontal = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(s);\r\n\t\tship.v.setMaxForce(5.0f);\r\n\t\tship.v.setMaxVel(5.0f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\r\n\r\n\t\t//tadpole bullets\r\n\t\tGameObject go_tadpole = this.spawnTadpole(in_logicEngine);\r\n\t\tgo_tadpole.stepHandlers.clear();\r\n\t\tFlyStraightStep fly = new FlyStraightStep(new Vector2d(0,-0.5f));\r\n\t\tfly.setIsAccelleration(true);\r\n\t\t\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t{\tgo_tadpole.v.setMaxVel(5);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\telse\r\n\t\t{\tgo_tadpole.v.setMaxVel(10);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\tgo_tadpole.stepHandlers.add(fly);\r\n\t\tgo_tadpole.v.setVel(new Vector2d(-2.5f,0f));\r\n\t\t\r\n\t\t\r\n\t\t//bounce on hard and medium\r\n\t\tif(Difficulty.isHard() || Difficulty.isMedium())\r\n\t\t{\r\n\t\t\tBounceOfScreenEdgesStep bounce = new BounceOfScreenEdgesStep();\r\n\t\t\tbounce.b_sidesOnly = true;\r\n\t\t\tgo_tadpole.stepHandlers.add(bounce);\r\n\t\t}\r\n\t\t\r\n\t\t//drop bombs\r\n\t\tLaunchShipsStep launch = new LaunchShipsStep(go_tadpole, 20, 5, 3, true);\r\n\t\tlaunch.b_addToBullets = true;\r\n\t\tlaunch.b_forceVelocityChangeBasedOnParentMirror = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(launch);\r\n\t\tship.rotateToV=true;\r\n\t\t\r\n\t\t//give it some hp\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 50, 50f);\r\n\t\tc.setSimpleExplosion();\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t\r\n\t}", "public Craft createCraft(Player player, CraftType craftType, int x, int y, int z, String name, float dr, Block signBlock, boolean autoShip) {\n\t\t\n\t\tif (DebugMode == true)\n\t\t\tplayer.sendMessage(\"Attempting to create \" + craftType.name\n\t\t\t\t\t+ \"at coordinates \" + Integer.toString(x) + \", \"\n\t\t\t\t\t+ Integer.toString(y) + \", \" + Integer.toString(z));\n\n\t\t//Craft craft = Craft.getPlayerCraft(player);\n\n\t\t// release any old craft the player had\n\t\t//if (craft != null) {\n\t\t//\treleaseCraft(player, craft);\n\t\t//}\n\n\t\t//float pRot = (float) Math.PI * player.getLocation().getYaw() / 180f;\n\t\t\n\t\tCraft craft = new Craft(craftType, player, name, dr, signBlock.getLocation(), this);\n\n\t\t\n\t\t// auto-detect and create the craft\n\t\tif (!CraftBuilder.detect(craft, x, y, z, autoShip)) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tif( autoShip )\n\t\t\tcraft.captainName = null;\n\t\t\n\t\t/*if(craft.engineBlocks.size() > 0)\n\t\t\tcraft.timer = new MoveCraft_Timer(this, 0, craft, player, \"engineCheck\", false);\n\t\telse {\n\t\t\tif(craft.type.requiresRails) {\n\t\t\t\t//craft.railMove();\n\t\t\t}\n\t\t}*/\n\t\t\n\t\tif( !craft.redTeam && !craft.blueTeam )\n\t\t{\n\t\t\tif( checkTeamRegion(player.getLocation()) > 0 )\n\t\t\t{\n\t\t\t\tif( checkTeamRegion(player.getLocation()) == 1 )\n\t\t\t\t{\n\t\t\t\t\tcraft.blueTeam = true;\n\t\t\t\t\tplayer.sendMessage(ChatColor.BLUE + \"You start a blue team vehicle!\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcraft.redTeam = true;\n\t\t\t\t\tplayer.sendMessage(ChatColor.RED + \"You start a red team vehicle!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tCraftMover cm = new CraftMover(craft, this);\n\t\tcm.structureUpdate(null,false);\n\n\n\t\tCraft.addCraftList.add(craft);\n\t\t//craft.cloneCraft();\n\t\t\n\t\t\n\t\tif( craft.type.canFly )\n\t\t{\n\t\t\tcraft.type.maxEngineSpeed = 10;\n\t\t}else if( craft.type.isTerrestrial )\n\t\t{\n\t\t\tcraft.type.maxEngineSpeed = 4;\n\t\t}else\n\t\t{\n\t\t\tcraft.type.maxEngineSpeed = 6;\n\t\t}\n\t\t\n\t\t\n\t\tif( checkSpawnRegion(new Location(craft.world, craft.minX, craft.minY, craft.minZ)) || checkSpawnRegion(new Location(craft.world, craft.maxX, craft.maxY, craft.maxZ)) )\n\t\t{\n\t\t\tcraft.speedChange(player, true);\n\t\t}\n\t\t\n\t\tif( !autoShip )\n\t\t{\n\t\t\tcraft.driverName = craft.captainName;\n\t\t\tif(craft.type.listenItem == true)\n\t\t\t\tplayer.sendMessage(ChatColor.GRAY + \"With a gold sword in your hand, right-click in the direction you want to go.\");\n\t\t\tif(craft.type.listenAnimation == true)\n\t\t\t\tplayer.sendMessage(ChatColor.GRAY + \"Swing your arm in the direction you want to go.\");\n\t\t\tif(craft.type.listenMovement == true)\n\t\t\t\tplayer.sendMessage(ChatColor.GRAY + \"Move in the direction you want to go.\");\n\t\t}\n\t\treturn craft;\n\t}", "public gameWorld()\n { \n // Create a new world with 600x600 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n addObject(new winSign(), 310, 300);\n addObject(new obscureDecorative(), 300, 400);\n addObject(new obscureDecorative(), 300, 240);\n \n for(int i = 1; i < 5; i++) {\n addObject(new catchArrow(i * 90), 125 * i, 100);\n }\n for (int i = 0; i < 12; i++) {\n addObject(new damageArrowCatch(), 50 * i + 25, 50); \n }\n \n \n //Spawning Interval\n\n if(timerInterval >= 10) {\n arrowNumber = Greenfoot.getRandomNumber(3);\n }\n if(arrowNumber == 0) {\n addObject(new upArrow(directionOfArrow[0], imageOfArrow[0]), 125, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 1) {\n addObject(new upArrow(directionOfArrow[1], imageOfArrow[1]), 125 * 2, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 2) {\n addObject(new upArrow(directionOfArrow[2], imageOfArrow[2]), 125 * 3, 590);\n arrowNumber = 5;\n }\n if( arrowNumber == 3) {\n addObject(new upArrow(directionOfArrow[3], imageOfArrow[3]), 125 * 4, 590);\n arrowNumber = 5;\n }\n \n \n\n \n }" ]
[ "0.6859272", "0.6690443", "0.6651439", "0.6618977", "0.66055506", "0.65867805", "0.64587694", "0.64346576", "0.6406546", "0.636788", "0.6342828", "0.63284576", "0.6328265", "0.63240945", "0.6265272", "0.6263809", "0.624597", "0.62384194", "0.6229786", "0.62259096", "0.6212701", "0.6209878", "0.61887455", "0.61769277", "0.61472857", "0.613107", "0.6129746", "0.61288476", "0.61106026", "0.61037576", "0.6062745", "0.6050527", "0.6043282", "0.6034557", "0.60032994", "0.59856135", "0.59809405", "0.5974087", "0.597219", "0.59690195", "0.59653175", "0.5952743", "0.594354", "0.5940974", "0.593826", "0.5936893", "0.59291065", "0.5922763", "0.59217256", "0.5909775", "0.5902225", "0.5898947", "0.58985615", "0.589348", "0.58921415", "0.58877987", "0.58846563", "0.5884647", "0.58783543", "0.5873132", "0.58709276", "0.58703667", "0.58640355", "0.5853183", "0.58517164", "0.5848843", "0.5846857", "0.584167", "0.5836593", "0.5833265", "0.5826227", "0.5817601", "0.58161306", "0.5815442", "0.5814667", "0.5806817", "0.5806095", "0.58031684", "0.57945234", "0.5780714", "0.57772523", "0.5773049", "0.5767536", "0.5767245", "0.5763573", "0.5759594", "0.5752571", "0.5751848", "0.5751594", "0.5744158", "0.5741443", "0.57383907", "0.5730313", "0.5729761", "0.5725162", "0.5722493", "0.57213306", "0.57036203", "0.57030904", "0.57023597" ]
0.7376599
0
a method to spawn in a moose, the main enemy. Will cause a game over on collision.
@Spawns("moose") public Entity spawnMoose(SpawnData data) { return entityBuilder() .from(data) .type(MOOSE) .viewWithBBox(texture("moose.png", 40, 58)) .with(new CollidableComponent(true)) .with(new OffscreenCleanComponent()) .with(new LiftComponent().yAxisSpeedDuration(150, Duration.seconds(15))) .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n void spawn(Entity entity);", "private void spawnEnemy() {\n float randomEnemy = (float) Math.random();\n\n if (round == 1) {\n addActorFunction.accept(new SimpleEnemy(tileSet));\n } else {\n float speedMultiplier = 1 + (0.08f * round);\n float healthMultiplier = 1 + (0.01f * round * round);\n\n if (randomEnemy < (round - 1) * 0.1) {\n addActorFunction.accept(new HeavyEnemy(tileSet, speedMultiplier, healthMultiplier));\n } else {\n addActorFunction.accept(new SimpleEnemy(tileSet, speedMultiplier, healthMultiplier));\n }\n }\n }", "public static void enemy(){\n\t\tenemy = null;\n\t\twhile(enemy == null){\n\t\t spawnEnemy();\n\t\t}\n\t}", "public void spawnEnemy(){\n\t\tint initTile = 0;\n\t\n\t\tfor(int i=0; i<screen.maps[screen.currentMap].path.getHeight(); i++){\n\t\t\tif(screen.maps[screen.currentMap].path.getCell(0, i).getTile().getProperties().containsKey(\"ground\") == true){\n\t\t\t\tinitTile = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\txCoor = 2;\n\t\tyCoor = (initTile)*64 + 2;\n\t\tbound = new Circle(xCoor+30, yCoor+30, 30);\n\t\tinGame = true;\n\t}", "protected abstract void defineEnemy();", "@Override\n protected void spawnInWorld(float x, float y, float xVel, float yVel)\n {\n PolygonShape hitbox = new PolygonShape();\n hitbox.setAsBox(3.0F, 1.0F, new Vector2(0, 0), 0);\n \n //Set up body definition - Defines the type of physics body that this is\n BodyDef bodyDef = new BodyDef();\n bodyDef.type = BodyDef.BodyType.DynamicBody;\n bodyDef.position.set(x, y);\n \n //Set up physics body - Defines the actual physics body\n this.physBody = this.world.getPhysWorld().createBody(bodyDef);\n this.physBody.setUserData(this); //Store this object into the body so that it isn't lost\n \n //Set up physics fixture - Defines physical properties\n FixtureDef fixtureDef = new FixtureDef();\n fixtureDef.shape = hitbox;\n fixtureDef.density = 100.0F; //About 1 g/cm^2 (2D), which is the density of water, which is roughly the density of humans.\n fixtureDef.friction = 0.1F; //friction with other objects\n fixtureDef.restitution = 0.1F; //Bouncyness\n \n //Set which collision type this object is\n fixtureDef.filter.categoryBits = COL_SEA_CREATURE;\n //Set which collision types this object collides with\n fixtureDef.filter.maskBits = COL_ALL ^ COL_SEA_PROJECTILE; //Collide with everything except sea creature projectiles\n \n this.physBody.createFixture(fixtureDef);\n \n //Set the linear damping\n this.physBody.setLinearDamping(5F);\n \n //Set the angular damping\n this.physBody.setAngularDamping(2.5F);\n \n //Apply impulse\n this.physBody.applyLinearImpulse(xVel, yVel, x, y, true);\n \n //Dispose of the hitbox shape, which is no longer needed\n hitbox.dispose();\n }", "public void spawnEnemy(Location location) {\r\n\t\t\tlocation.addNpc((Npc) this.getNpcSpawner().newObject());\r\n\t\t}", "public void spawnCreature(){\n\t\tif(spawnType.equalsIgnoreCase(\"worm\")){\n\t\t\tRuntimeObjectFactory.getObjectFromPool(\"worm\"+spawnId);\n\t\t}else if(spawnType.equalsIgnoreCase(\"antorc\")){\n\t\t\tGdx.app.debug(TamerGame.LOG, this.getClass()\n\t\t\t\t\t.getSimpleName() + \" :: Ant entered\");\t\t\t\n\t\t\t//CHANGE SPAWNING IMPLEMENTATION\n\t\t\tAntOrc orc = new AntOrc();\n\t\t\torc.setPosition(getPosition());\n\t\t\torc.setWaypoint(waypoint);\n\t\t\tenvironment.addNewObject(orc);\n\t\t\tEventPool.addEvent(new tEvent(this,\"spawnCreature\",sleepTime,1));\n\t\t}\n\t\t\t\n\t}", "public void enemySpawner(){\n\t\tif (spawnFrame >= spawnTime){\n\t\t\tfor(int i =0;i<enemies.size();i++){\n\t\t\t\tif (!enemies.get(i).getInGame()){\n\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy);\n\t\t\t\t\tbreak;\n\t\t\t\t\t/*if (enemies.get(i).getNum()==1){\n\t\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (enemies.get(i).getNum()==2){\n\t\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy2);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (enemies.get(i).getNum()==3){\n\t\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy3);\n\t\t\t\t\t\tbreak;\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\tspawnFrame=0;\n\t\t} else{\n\t\t\tspawnFrame+=1;\n\t\t}\n\t}", "void generateEnemy(){\n\t\tEnemy e = new Enemy((int)(Math.random()*\n\t\t\t(cp.getWidthScreen() - (ss.getWidth()/2)))\n\t\t\t,ss.getHeight(), cp.getHieghtScreen());\t\t\t\t//Enemy (int x, int y, int heightScreen)\n\t\tcp.shapes.add(e);\n\t\tenemies.add(e);\n\t}", "private void spawnMediumEnemy(IEnemyService spawner, World world, GameData gameData) {\r\n if (spawner != null) {\r\n spawner.createMediumEnemy(world, gameData, new Position(randomIntRange(1600, 3200), gameData.getGroundHeight()));\r\n spawner.createMediumEnemy(world, gameData, new Position(randomIntRange(-600, -2000), gameData.getGroundHeight()));\r\n }\r\n }", "void spawnEntityAt(String typeName, int x, int y);", "@Override\r\n\tpublic void spawn(Location location) {\n\t\t\r\n\t}", "private void createEnemyHelicopter()\n\t {\n\t \t\tRandNum = 0 + (int)(Math.random()*700);\n\t\t \t\tint xCoordinate = 1400;\n\t int yCoordinate = RandNum; \n\t eh = new Enemy(xCoordinate,yCoordinate);\n\t \n\t // Add created enemy to the list of enemies.\n\t EnemyList.add(eh);\n\t \n\t }", "@Override\n\tpublic void spawn(Location loc) {\n\t\t\n\t}", "private void createEnemy()\n {\n scorpion = new Enemy(\"Giant Scorpion\", 5, 10); \n rusch = new Enemy(\"Mr. Rusch\", 10, 1000);\n skeleton = new Enemy(\"Skeleton\", 10, 50);\n zombie = new Enemy(\"Zombie\", 12, 25);\n ghoul = new Enemy(\"Ghoul\", 15, 45);\n ghost = new Enemy(\"Ghost\", 400, 100);\n cthulu = new Enemy(\"Cthulu\", 10000000, 999999);\n concierge = new Enemy(\"Concierge\", 6, 100);\n wookie = new Enemy(\"Savage Wookie\", 100, 300);\n }", "public TestEnemy(Vector2 spawnPoint) {\n super(spawnPoint);\n this.health = MAX_HEALTH;\n this.speed = MAX_SPEED;\n this.damage = DAMAGE;\n this.moneyOnKill = MONEY_ON_KILL;\n this.bounds = new Circle(spawnPoint, RADIUS);\n this.ai = new RunnerAi(this);\n }", "public static Action spawn(final Class<?> e) {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.isFacingValidLocation() && a.getFacing() == null) {\n if(a.energy >= getCost()) {\n try {\n Actor b = (Actor) e.newInstance();\n b.putSelfInGrid(a.getGrid(), a.getLocation().getAdjacentLocation(a.getDirection()));\n } catch(InstantiationException r) {\n r.printStackTrace();\n } catch(IllegalAccessException r) {\n r.printStackTrace();\n }\n a.energy = a.energy - 400;\n }\n }\n }\n\n @Override\n public int getCost() {\n return 400;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return e;\n }\n\n @Override\n public String toString() {\n return \"Spawn(\" + (e != null ? e.toString() : \"null\") + \")\";\n }\n };\n }", "public abstract void attack(Vector2 spawnPos, Vector2 target);", "public void act()\n {\n \n //move();\n //if(canSee(Worm.class))\n //{\n // eat(Worm.class);\n //}\n //else if( atWorldEdge() )\n //{\n // turn(15);\n //}\n\n }", "public void spawn(Integer spawnSize) {\n for (Integer i = 0; i < spawnSize; i++) {\n Enemy enemy = new Enemy(mainPlayerPosX, mainPlayerPosY);\n enemies.put(i, enemy);\n }\n initEnemiesSpawned = spawnSize;\n enemiesSize = spawnSize;\n }", "public synchronized void spawnMe()\n\t{\n\t\t_itemInstance = ItemTable.getInstance().createItem(\"Combat\", _itemId, 1, null, null);\n\t\t_itemInstance.dropMe(null, _location.getX(), _location.getY(), _location.getZ());\n\t}", "@Override\n public boolean act() {\n float variation = (random.nextFloat() / 2f) - 1;\n\n // Reconfigure the time to wait before spawning another enemy.\n this.deltaLimit = Math.max(100, INITIAL_SPAWN_TIME + variation - (100 * round));\n\n spawnEnemy();\n return false;\n }", "private void spawnBigEnemy(IEnemyService spawner, World world, GameData gameData) {\r\n if (spawner != null) {\r\n spawner.createBigEnemy(world, gameData, new Position(randomIntRange(1600, 3200), gameData.getGroundHeight()));\r\n spawner.createBigEnemy(world, gameData, new Position(randomIntRange(-600, -2000), gameData.getGroundHeight()));\r\n }\r\n }", "public void act() \n {\n \n move(1);\n \n Player2 player2 = new Player2();\n myWorld2 world = (myWorld2)getWorld();\n \n \n checkForDeath();\n }", "void forceSpawn() throws SpawnException;", "public void spawnFirstCreature(){\n\n\t\tif(spawnType.equalsIgnoreCase(\"worm\")){\n\t\t\tRuntimeObjectFactory.getObjectFromPool(\"worm\"+spawnId);\n\t\t}else if(spawnType.equalsIgnoreCase(\"antorc\"))\n\t\t\tRuntimeObjectFactory.getObjectFromPool(\"antorc\"+spawnId);\n\t\t\n\t\t//Add new event into pool which will spawn the rest of the worms ( -1 because this method already spawned one )\n\t\tEventPool.addEvent(new tEvent(this,\"spawnCreature\",sleepTime,spawnCount-1));\n\t}", "@Override \n public void collide(Ball ball, Collidable collidable) {\n super.collide(ball, collidable);\n Vect transferLoc = new Vect(this.getLocation().x()+0.5, this.getLocation().y()+0.5);\n Double theta = Math.random()*2*Math.PI;\n board.addBall(new Ball(transferLoc, new Vect(Constants.SPAWNER_SHOOT_VELOCITY*Math.cos(theta),Constants.SPAWNER_SHOOT_VELOCITY*Math.sin(theta) ), this.getName()+\"SpawnedBall\"+this.spawnCount, board.getGravity(), board.getFriction1(), board.getFriction2()));\n spawnCount += 1;\n this.trigger();\n }", "public void control(Spawn spawn) {}", "@Override\n\tpublic void updateEntity() {\n\t\t\n\t\tif (this.mobID != null && !this.worldObj.isRemote) {\n\t\t\t\n\t\t\tif (this.delay > 0) {\n\t\t\t\tthis.delay--;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tEntity entity = EntityList.createEntityByName(this.mobID, this.worldObj);\n\t\t\t\n\t\t\t// L'entity n'existe pas\n\t\t\tif (entity == null) {\n\t\t\t\tModGollumCoreLib.log.warning(\"This mob \"+this.mobID+\" isn't register\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tthis.worldObj.setBlockToAir(this.xCoord , this.yCoord , this.zCoord);\n\t\t\t\n\t\t\tdouble x = (double)this.xCoord + 0.5D;\n\t\t\tdouble y = (double)(this.yCoord);// + this.worldObj.rand.nextInt(3) - 1);\n\t\t\tdouble z = (double)this.zCoord + 0.5D;\n\t\t\tEntityLiving entityLiving = entity instanceof EntityLiving ? (EntityLiving)entity : null;\n\t\t\tentity.setLocationAndAngles(x, y, z, this.worldObj.rand.nextFloat() * 360.0F, this.worldObj.rand.nextFloat() * 360.0F);\n\t\t\tthis.worldObj.spawnEntityInWorld(entity);\n\t\t\t\n\t\t\tif (entityLiving == null || entityLiving.getCanSpawnHere()) {\n\t\t\t\t\n\t\t\t\tthis.worldObj.playSoundEffect (this.xCoord, this.yCoord, this.zCoord, \"dig.stone\", 0.5F, this.worldObj.rand.nextFloat() * 0.25F + 0.6F);\n\t\t\t\t\n\t\t\t\tif (entityLiving != null) {\n\t\t\t\t\tentityLiving.spawnExplosionParticle();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void killedByPlayer() {\r\n\t\tscreen.enemiesKilled++;\r\n\t\tMazeCrawler mc = screen.mazeHandler.mazeCrawler;\r\n\t\tint n = 2; //if enemy is large do movement n+1 times\r\n\t\tswitch (enemyType) {\r\n\t\tcase DOWN:\r\n\t\t\tmc.moveDown();\r\n\t\t\tif(large) {for(int i = 0; i < n; i++) mc.moveDown();}\r\n\t\t\tbreak;\r\n\t\tcase LEFT:\r\n\t\t\tmc.moveLeft();\r\n\t\t\tif(large) {for(int i = 0; i < n; i++) mc.moveLeft();}\r\n\t\t\tbreak;\r\n\t\tcase RIGHT:\r\n\t\t\tmc.moveRight();\r\n\t\t\tif(large) {for(int i = 0; i < n; i++) mc.moveRight();}\r\n\t\t\tbreak;\r\n\t\tcase UP:\r\n\t\t\tmc.moveUp();\r\n\t\t\tif(large) {for(int i = 0; i < n; i++) mc.moveUp();}\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tscreen.enemyDeath.play(.5f);\r\n\t\tdestroy();\r\n\t}", "private void spawnStuff(PlayScreen screen, float delta) {\n if (stageId!=3 && stageId!=5) {\n isCombatEnabled = true;\n int where;\n boolean spawnRight = true;\n float speed;\n\n\n //Alien Spawn\n if (System.currentTimeMillis() - lastASpawn >= SpawnATimer + extraTimer) {\n speed = (float)(Utils.doRandom(250,400));\n lastASpawn = System.currentTimeMillis();\n int count = 3;\n if (stageId==4) count = 1;\n for (int i = 0; i < count; i++) {\n if (stageId==4){\n speed = (float) (speed*0.75);\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - Alien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - Alien.width, y, Alien.width, Alien.height)))\n hits = true;\n }\n }\n screen.entities.add(new Alien(new Vector2(x, y), 1, screen.alienImages, speed, screen.player));\n }else{\n int x = 0 - Alien.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - Alien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + Alien.width*2 , y, Alien.width, Alien.height)))\n hits = true;\n }\n }\n screen.entities.add(new Alien(new Vector2(x, y), 1, screen.alienImages, speed, screen.player,false));\n }\n }\n }\n //AcidAlien Spawn\n if (System.currentTimeMillis() - lastBSpawn >= SpawnBTimer + extraTimer) {\n speed = 200;\n lastBSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - AcidAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - AcidAlien.width, y, AcidAlien.width, AcidAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new AcidAlien(new Vector2(x, y), screen.alien2Images, screen.acidImage, speed, screen.player));\n }else{\n int x = 0 - AcidAlien.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - AcidAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + AcidAlien.width*2, y, AcidAlien.width, AcidAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new AcidAlien(new Vector2(x, y), screen.alien2Images, screen.acidImage, speed, screen.player,false));\n }\n }\n //FastAlien Spawn\n if (System.currentTimeMillis() - lastCSpawn >= SpawnCTimer + extraTimer) {\n speed= Utils.doRandom(250,400);\n lastCSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - FastAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - FastAlien.width, y, FastAlien.width, FastAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new FastAlien(new Vector2(x, y), 1, screen.alien3Images,speed, screen.player));\n }else{\n int x = 0 - FastAlien.width;\n int y =0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - FastAlien.height);\n for (int h=0;h<collisions.size();h++){\n if (Collision.checkWalls(collisions.get(h),new Rectangle(x-FastAlien.width*2,y,FastAlien.width,FastAlien.height))) hits = true;\n }\n }\n screen.entities.add(new FastAlien(new Vector2(x, y), 1, screen.alien3Images, speed,screen.player,false));\n }\n\n }\n\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule ) {\n speed = 500;\n int x = 0;\n int y = 0;\n lastCapsuleSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n x = (int) screen.gameViewport.getWorldWidth();\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }else{\n x = 0 - BlueBulletItem.width;\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width *2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }\n\n int capsule = screen.random.nextInt(2);\n\n if (capsule == 0) {\n if (spawnRight) {\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages));\n }else{\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages,false));\n }\n } else if (capsule == 1) {\n if (spawnRight) {\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages));\n }else{\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages,false));\n }\n }\n\n }\n if (System.currentTimeMillis() - lastHealthSpawn >= SpawnTimerHealth) {\n speed = 500;\n lastHealthSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages));\n }else{\n int x = 0 - BlueBulletItem.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width*2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages,false));\n }\n }\n /*if (System.currentTimeMillis() - lastBombSpawn >= SpawnTimerBomb) {\n lastBombSpawn = System.currentTimeMillis();\n int x = (int) screen.gameViewport.getWorldWidth();\n int y =0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - PurpleCapsuleItem.height);\n for (int h=0;h<collisions.size();h++){\n if (Collision.checkWalls(collisions.get(h),new Rectangle(x,y,PurpleCapsuleItem.width,PurpleCapsuleItem.height))) hits = true;\n }\n }\n screen.items.add(new PurpleCapsuleItem(x, y, 500, screen.itemPurpleImages));\n }*/\n }else{\n if (stageId==3) {\n //SPACE STAGE\n ///SPAWN ENEMY SHIP:\n //TODO\n if (PlayScreen.entities.size() == 1) {\n isCombatEnabled = false;\n //no enemy spawned, so spawn:\n if (spawnIterator >= killCount) {\n //TODO END STAGE\n } else {\n System.out.println(\"SPAWNS SHIP\");\n spawnIterator++;\n screen.entities.add(new EnemyShipOne(new Vector2(0, 0), 100, screen.enemyShipOne, true, screen.player));\n\n }\n }\n //Items:\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule) {\n lastCapsuleSpawn = System.currentTimeMillis();\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new BlackBulletItem(x, y, 1000, screen.itemBlackImages));\n\n\n }\n }else{\n if (stageId == 5){\n isCombatEnabled = true;\n float speed;\n boolean spawnRight=true;\n int where=0;\n //TODO FINAL STAGE\n if (!isBossSpawned){\n //TODO\n screen.entities.add(new Boss(new Vector2(PlayScreen.gameViewport.getWorldWidth(),PlayScreen.gameViewport.getWorldHeight()/2 - Boss.height/2),screen.player));\n isBossSpawned=true;\n }\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule ) {\n speed = 500;\n int x = 0;\n int y = 0;\n lastCapsuleSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n x = (int) screen.gameViewport.getWorldWidth();\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }else{\n x = 0 - BlueBulletItem.width;\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width *2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }\n\n int capsule = screen.random.nextInt(2);\n\n if (capsule == 0) {\n if (spawnRight) {\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages));\n }else{\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages,false));\n }\n } else if (capsule == 1) {\n if (spawnRight) {\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages));\n }else{\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages,false));\n }\n }\n\n }\n if (System.currentTimeMillis() - lastHealthSpawn >= SpawnTimerHealth) {\n speed = 500;\n lastHealthSpawn = System.currentTimeMillis();\n if (stageId == 4) {\n speed = speed / 2;\n where = Utils.doRandom(0, 1);\n if (where < 50) {\n spawnRight = true;\n } else {\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages));\n } else {\n int x = 0 - BlueBulletItem.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width * 2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages, false));\n }\n }\n //TODO\n }\n }\n }\n\n //run .update(delta) on all objects\n for (int i=0; i<screen.entities.size();i++){\n screen.entities.get(i).update(delta);\n }\n\n for (int i=0; i<screen.items.size();i++){\n screen.items.get(i).update(delta);\n }\n\n //labels set:\n screen.labelHealth.setText(\"Health: \" + screen.player.health + \"/\" + screen.player.maxHealth);\n if (scoreBased) {\n screen.labelInfo.setText(\"Score: \" + screen.player.score + \"/\" + scoreGoal);\n }else{\n if (killCount>0){\n screen.labelInfo.setText(\"Score: \" + screen.player.score + \"/\" + killCount);\n }else{\n if (boss){\n screen.labelInfo.setText(\"Boss: \"+screen.player.score + \"/\" + Boss.bossHealth);\n }else{\n screen.labelInfo.setText(\"\");\n }\n\n }\n }\n if (this.stageId == 999) {\n screen.labelInfo.setText(\"Score: \" + screen.player.score);\n }\n\n\n }", "public void act() \n {\n EggFactory eggFactory = new EggFactory();\n \n move(4);\n int random = Greenfoot.getRandomNumber(5000);\n if((random>200 & random<300) || ((Farm)getWorld()).atWorldEdge(this))\n {\n turn(180);\n getImage().mirrorVertically();\n move(4);\n \n }\n\n if( Greenfoot.getRandomNumber(100) ==0)\n {\n\n Farm farm = (Farm)getWorld();\n Egg egg = null; \n int eggPicker = Greenfoot.getRandomNumber(80);\n //DropEggStrategy dropEgg = new DropEggStrategy(); //Strategy pattern\n\n IEggStrategy whiteStrategy = new WhiteEggStrategy(eggFactory);\n IEggStrategy blackStrategy = new BlackEggStrategy(eggFactory);\n IEggStrategy goldenStrategy = new GoldenEggStrategy(eggFactory);\n \n DropEggContext context = new DropEggContext();\n \n if(eggPicker >= 50 && eggPicker <= 60){\n \n context.setIEggStrategy(goldenStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n else if(eggPicker >= 60 && eggPicker <= 70){\n\n context.setIEggStrategy(blackStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n else{\n context.setIEggStrategy(whiteStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n \n egg.register(farm.getLifeObserver());//register life creator observer into egg subject \n\n \n\n }\n\n }", "public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }", "@Override\n\tprotected void onImpact(MovingObjectPosition mop)\n\t{\n\t\tif (mop.entityHit != null && !this.fake.cantDamage(mop.entityHit))\n\t\t\tmop.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), 22);\n\n\t\tif (!this.worldObj.isRemote)\n\t\t{\n\t\t\t// TODO gamerforEA use ExplosionByPlayer\n\t\t\tExplosionByPlayer.createExplosion(this.fake.get(), this.worldObj, this, this.posX, this.posY, this.posZ, 2, false);\n\n\t\t\tthis.setDead();\n\t\t}\n\t}", "@Override\n public void run() {\n World world=Bukkit.getWorld(\"world\");\n world.spawnEntity(world.getHighestBlockAt(world.getSpawnLocation()).getLocation(), EntityType.VILLAGER);\n }", "public void moveTowards(){\n \n \n \n if(!exploded){\n \n \n move(speed);\n \n if(isTouching(Enemy.class)){\n move(explosionRadius); \n \n inRange = (ArrayList) getObjectsInRange(explosionRadius + 25, Enemy.class);\n for(Enemy e : inRange){\n e.hit(damage);\n }\n \n //explode\n exploded = true;\n \n image = new GreenfootImage(\"50x50 aoe.png\");\n image.scale(explosionRadius*2, explosionRadius*2);\n setImage(image);\n //getWorld().removeObject(this);\n }\n else if (isAtEdge())\n {\n getWorld().removeObject(this);\n }\n else if ( radius < distance) {\n getWorld().removeObject(this); \n }\n }\n else{\n setImage(image);\n image.setTransparency(image.getTransparency() - 5);\n if(image.getTransparency() <= 0) getWorld().removeObject(this);\n }\n }", "public GameObject spawnBigBeamer(LogicEngine in_logicEngine) {\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bigbeamer.png\",((float)LogicEngine.SCREEN_WIDTH/2),LogicEngine.SCREEN_HEIGHT+64,0);\r\n\t\tship.i_animationFrameSizeHeight = 115;\r\n\t\tship.i_animationFrameSizeWidth = 115;\r\n\t\t\r\n\t\t\r\n\t\tship.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-1f)));\r\n\t\t\r\n\t\r\n\t\tship.v.setMaxForce(2.5f);\r\n\t\tship.v.setMaxVel(2.5f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tint i_shootEvery = 80;\r\n\t\t\r\n\t\tBeamShot b = new BeamShot(i_shootEvery);\r\n\t\t\r\n\t\tb.b_flare=false;\r\n\t\tb.f_offsetX=-40;\r\n\t\tb.f_offsetY=-30;\r\n\t\tb.i_delay = 40;\r\n\t\tb.i_beamWidth = 15;\r\n\t\t\r\n\t\tBeamShot b2 = new BeamShot(i_shootEvery);\r\n\t\tb2.b_flare=false;\r\n\t\tb2.f_offsetX=40;\r\n\t\tb2.f_offsetY=-30;\r\n\t\tb2.i_delay = 40+(i_shootEvery/2);\r\n\t\tb2.i_beamWidth = 15;\r\n\t\tb.nextBeam = b2;\r\n\t\t\r\n\t\tship.shootEverySteps=1;\r\n\t\tship.shotHandler = b;\r\n\t\t\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 100, 50f);\r\n\t\t\r\n\t\tif(!Difficulty.isHard())\r\n\t\t\tc.f_numberOfHitpoints = 200;\r\n\t\tif(!Difficulty.isMedium())\r\n\t\t\tc.f_numberOfHitpoints = 160;\r\n\t\t\r\n\t\tc.setExplosion(Utils.getBossExplosion(ship));\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t}", "@Override\n public void run() {\n// handler.addObject(new Enemy(rnd.nextInt(Game.WIDTH), rnd.nextInt(200), ID.Trump));\n// handler.addObject(new Enemy(rnd.nextInt(Game.WIDTH), rnd.nextInt(200), ID.Trump));\n int rnd_x = rnd.nextInt(Game.WIDTH);\n handler.addObject(new Enemy(getX() + 30, y, ID.Trump, 0));\n handler.addObject(new Enemy(getX() -30, y, ID.Trump, 0));\n handler.addObject(new Enemy(getX() , y+30, ID.Trump, 0));\n handler.addObject(new Enemy(getX() , y-30, ID.Trump, 0));\n\n\n }", "public static void spawnEnemy(){\n RNG.D100();\n if(PlayerStats.LVL <= 2){\n if(RNG.num <= 90){\n enemy = \"imp\";\n }else{\n enemy = \"IMP LORD\";\n }\n }else if(PlayerStats.LVL > 2 && PlayerStats.LVL <= 3){\n if(RNG.num <= 20){\n enemy = \"imp\";\n }else if(RNG.num > 20 && RNG.num <= 90){\n enemy = \"toadman\";\n }else{\n enemy = \"IMP LORD\";\n }\n }else if(PlayerStats.LVL > 3 && PlayerStats.LVL <= 5){\n if(RNG.num <= 10){\n enemy = \"toadman\";\n }else if(RNG.num > 10 && RNG.num <= 90){\n enemy = \"giant spider\";\n }else{\n enemy = \"BROODMOTHER\";\n }\n }else if (PlayerStats.LVL > 5 && PlayerStats.LVL <= 8){\n if(RNG.num <= 30){\n enemy = \"goblin sorceror\";\n }else if(RNG.num > 30 && RNG.num <= 60){\n enemy = \"goblin warrior\";\n }else if(RNG.num >60 && RNG.num <= 90){\n enemy = \"goblin archer\";\n }else if(RNG.num > 90 && RNG.num <= 100){\n enemy = \"GOBLIN CHIEFTAN\"; \n }\n } \n }", "private boolean spawn(int x, int y) {\n\t\treturn false;\n\t}", "public void act() \n {\n moveAround(); \n addBomb(); \n touchGhost(); \n }", "public default boolean shouldSpawnEntity(){ return false; }", "public void spawnEntity(String entityToSpawn,World world, int xplane, int yplane, int zplane)\n { \n \t//Spawn a creeper\n \tif(entityToSpawn.contentEquals(\"Cr\"))\n \t{\t\n \t\tEntityCreeper creeper = new EntityCreeper(world);\n \t\tcreeper.entityAge = -24000;\n \t\tcreeper.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(creeper);\n \t\treturn;\n \t}\n \t//Spawn an Enderman\n \tif(entityToSpawn.contentEquals(\"En\"))\n \t{\n \t\tEntityEnderman enderman = new EntityEnderman(world);\n \t\tenderman.entityAge = -24000;\n \t\tenderman.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(enderman);\n \t\treturn;\n \t}\n \t//Spawn a Skeleton\n \tif(entityToSpawn.contentEquals(\"Sk\"))\n \t{\n \t\tEntitySkeleton skeleton = new EntitySkeleton(world);\n \t\tskeleton.entityAge = -24000;\n \t\tskeleton.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(skeleton);\n \t\treturn;\n \t}\n \t//Spawn a Zombie\n \tif(entityToSpawn.contentEquals(\"Zo\"))\n \t{\n \t\tEntityZombie zombie = new EntityZombie(world);\n \t\tzombie.entityAge = -24000;\n \t\tzombie.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(zombie);\n \t\treturn;\n \t}\n \t//Spawn a Slime\n \tif(entityToSpawn.contentEquals(\"Sl\"))\n \t{\n \t\tEntitySlime slime = new EntitySlime(world);\n \t\tslime.entityAge = -24000;\n \t\tslime.setSlimeSize(3);\n \t\tslime.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(slime);\n \t\treturn;\n \t}\n \t//Spawn a Spider\n \tif(entityToSpawn.contentEquals(\"Sp\"))\n \t{\n \t\tEntitySpider spider = new EntitySpider(world);\n \t\tspider.entityAge = -24000;\n \t\tspider.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(spider);\n \t\treturn;\n \t}\n \t//Spawn a Cave Spider\n \tif(entityToSpawn.contentEquals(\"Cs\"))\n \t{\n \t\tEntityCaveSpider cavespider = new EntityCaveSpider(world);\n \t\tcavespider.entityAge = -24000;\n \t\tcavespider.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(cavespider);\n \t\treturn;\n \t}\n \t//Spawn a Ghast\n \tif(entityToSpawn.contentEquals(\"Gh\"))\n \t{\n \t\tEntityGhast ghast = new EntityGhast(world);\n \t\tghast.entityAge = -24000;\n \t\tghast.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(ghast);\n \t\treturn;\n \t}\n \t//Spawn a Blaze\n \tif(entityToSpawn.contentEquals(\"Bl\"))\n \t{\n \t\tEntityBlaze blaze = new EntityBlaze(world);\n \t\tblaze.entityAge = -24000;\n \t\tblaze.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(blaze);\n \t\treturn;\n \t}\n \t//Spawn a Magma Cube\n \tif(entityToSpawn.contentEquals(\"Ma\"))\n \t{\n \t\tEntityMagmaCube magmacube = new EntityMagmaCube(world);\n \t\tmagmacube.entityAge = -24000;\n \t\tmagmacube.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(magmacube);\n \t\treturn;\n \t}\n \t//Spawn a Dragon\n \tif(entityToSpawn.contentEquals(\"Dr\"))\n \t{\n \t\tEntityDragon dragon = new EntityDragon(world);\n \t\tdragon.entityAge = -24000;\n \t\tdragon.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(dragon);\n \t\treturn;\n \t}\n \t//Spawn a sheep\n \tif(entityToSpawn.contentEquals(\"Sh\"))\n \t{\n \t\tEntitySheep sheep = new EntitySheep(world);\n \t\tsheep.entityAge = -2;\n \t\tsheep.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(sheep);\n \t\treturn;\n \t}\n \t//Spawn a Cow\n \tif(entityToSpawn.contentEquals(\"Co\"))\n \t{\n \t\tEntityCow cow = new EntityCow(world);\n \t\tcow.entityAge = -2;\n \t\tcow.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(cow);\n \t\treturn;\n \t}\n \t//Spawn a Pig\n \tif(entityToSpawn.contentEquals(\"Pi\"))\n \t{\n \t\tEntityPig pig = new EntityPig(world);\n \t\tpig.entityAge = -2;\n \t\tpig.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(pig);\n \t\treturn;\n \t}\n \t//Spawn a Chicken\n \tif(entityToSpawn.contentEquals(\"Ch\"))\n \t{\n \t\tEntityChicken chicken = new EntityChicken(world);\n \t\tchicken.entityAge = -2;\n \t\tchicken.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(chicken);\n \t\treturn;\n \t}\n \t//Spawn a Ocelot\n \tif(entityToSpawn.contentEquals(\"Ch\"))\n \t{\n \t\tEntityOcelot ocelot = new EntityOcelot(world);\n \t\tocelot.entityAge = -2;\n \t\tocelot.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(ocelot);\n \t\treturn;\n \t}\n \t//Spawn a Pig Zombie\n \tif(entityToSpawn.contentEquals(\"Pz\"))\n \t{\n \t\tEntityPigZombie pigzombie = new EntityPigZombie(world);\n \t\tpigzombie.entityAge = -24000;\n \t\tpigzombie.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(pigzombie);\n \t\treturn;\n \t}\n \t//Spawn a boat\n \tif(entityToSpawn.contentEquals(\"Bo\"))\n \t{\n \t\tEntityBoat boat = new EntityBoat(world);\n \t\t//boat.entityAge = -2;\n \t\tboat.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(boat);\n \t\treturn;\n \t}\n \t//Spawn a Iron Golem\n \tif(entityToSpawn.contentEquals(\"Ir\"))\n \t{\n \t\tEntityIronGolem irongolem = new EntityIronGolem(world);\n \t\tirongolem.entityAge = -24000;\n \t\tirongolem.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(irongolem);\n \t\treturn;\n \t}\n \t//Spawn a Giant Zombie\n \tif(entityToSpawn.contentEquals(\"Gi\"))\n \t{\n \t\tEntityGiantZombie giant = new EntityGiantZombie(world);\n \t\tgiant.entityAge = -24000;\n \t\tgiant.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(giant);\n \t\treturn;\n \t}\n \t//Spawn a Mine Cart\n \tif(entityToSpawn.contentEquals(\"Mi\"))\n \t{\n \t\tEntityMinecart cart = new EntityMinecart(world);\n \t\t//cart.entityAge = -24000;\n \t\tcart.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(cart);\n \t\treturn;\n \t}\n \t//Spawn a Mooshroom\n \tif(entityToSpawn.contentEquals(\"Gi\"))\n \t{\n \t\tEntityMooshroom moosh = new EntityMooshroom(world);\n \t\tmoosh.entityAge = -2;\n \t\tmoosh.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(moosh);\n \t\treturn;\n \t}\n \t//Spawn a Sliver Fish\n \tif(entityToSpawn.contentEquals(\"Si\"))\n \t{\n \t\tEntitySilverfish silverfish = new EntitySilverfish(world);\n \t\tsilverfish.entityAge = -24000;\n \t\tsilverfish.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(silverfish);\n \t\treturn;\n \t}\n \t//Spawn a Snowman\n \tif(entityToSpawn.contentEquals(\"Sn\"))\n \t{\n \t\tEntitySnowman frosty = new EntitySnowman(world);\n \t\tfrosty.entityAge = -24000;\n \t\tfrosty.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(frosty);\n \t\treturn;\n \t}\n \t//Spawn a Squid\n \tif(entityToSpawn.contentEquals(\"Sq\"))\n \t{\n \t\tEntitySquid squid = new EntitySquid(world);\n \t\tsquid.entityAge = -2;\n \t\tsquid.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(squid);\n \t\treturn;\n \t}\n \t//Spawn a Villager\n \tif(entityToSpawn.contentEquals(\"Vi\"))\n \t{\n \t\tEntityVillager villager = new EntityVillager(world);\n \t\tvillager.entityAge = -2;\n \t\tvillager.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(villager);\n \t\treturn;\n \t}\n \t//Spawn a Wolf\n \tif(entityToSpawn.contentEquals(\"Wo\"))\n \t{\n \t\tEntityWolf wolf = new EntityWolf(world);\n \t\twolf.entityAge = -2;\n \t\twolf.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(wolf);\n \t\treturn;\n \t}\n }", "public void spawn()\n\t{\n\t\tsynchronized(this)\n\t\t{\n\t\t\t// Set the x,y,z position of the L2Object spawn and update its _worldregion\n\t\t\tsetVisible(true);\n\t\t\tsetWorldRegion(WorldManager.getInstance().getRegion(getWorldPosition()));\n\n\t\t\t// Add the L2Object spawn in the _allobjects of L2World\n\t\t\tWorldManager.getInstance().storeObject(object);\n\n\t\t\t// Add the L2Object spawn to _visibleObjects and if necessary to _allplayers of its L2WorldRegion\n\t\t\tregion.addVisibleObject(object);\n\t\t}\n\n\t\t// this can synchronize on others instancies, so it's out of\n\t\t// synchronized, to avoid deadlocks\n\t\t// Add the L2Object spawn in the world as a visible object\n\t\tWorldManager.getInstance().addVisibleObject(object, region);\n\n\t\tobject.onSpawn();\n\t}", "@Override\r\n public boolean dye() {\r\n if (getX() > 3100 || getX() < 10 || getY() < 10 || getY() > 3100) {\r\n return true;\r\n }\r\n// int pixel = mapRGB.getRGB((int) getX(), (int) getY());\r\n// int red = (pixel >> 16) & 0xff;\r\n// if(red==255){this.handler.getWaves().removeEnemy(); return true;}\r\n int k = collision(velX, velY, this.getX(), this.getY());\r\n if(k!=0) {\r\n this.handler.getWaves().removeEnemy(); \r\n return true;\r\n }\r\n else{\r\n zombie_x = getX(); \r\n zombie_y = getY();\r\n }\r\n //I proiettili hanno una portata limitata o se ha colpito il player o se è uscito dalla mappa o se è andato contro un muro\r\n if ((this.getHealth() == 0) || (handler.getPlayer().getBounds().contains(getX(), getY()))) {\r\n int n = (int) (Math.random() * 10);\r\n if(n>1) n=2;\r\n switch (n) {\r\n case 2:\r\n this.handler.addSprite(new StandardZombie(zombie_x, zombie_y, 3, 200, 25, handler.getPlayer(), this.handler, 30, 60, 60, 5, new Animation(Assets.zombie, 20), new Animation(Assets.zombieAttack, 35), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n case 0:\r\n this.handler.addSprite(new StandardZombie(zombie_x, zombie_y, 4, 70, 50, handler.getPlayer(), this.handler, 0, 60, 60, 20, new Animation(Assets.zombie2, 15), new Animation(Assets.zombie2Attack, 15), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n case 1:\r\n this.handler.addSprite(new SpittleZombie(zombie_x, zombie_y, 3, 500, 40, handler.getPlayer(), this.handler, 0, 60, 60, 45, new Animation(Assets.zombie3, 15), new Animation(Assets.zombie3Attack, 15), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n }\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "public void spawnNew() {\n\t\tif (tier> 1) {\n\t\t\ttier--;\n\t\t\thealth = tier;\n\t\t\tdamage = tier;\n\t\t\tspeed = 5;\n\t\t\timg = getImage(updateImage(tier)); // converted getImage to protected b/c it wasn't accessible by Balloon class (child class)\n\t\t}\n\t\telse {\n\t\t\tisAlive = false;\n\t\t\tdeletePath();\t\t\t\n\t\t}\n\t}", "public static void main(String[] args) {\n Hero aventurier = new Hero(200, 100);\n Equipement epee = new Equipement(\"epee\", 0);\n Monsters sorciere = new Monsters(\"witch\", 180, 0);\n Monsters barbare = new Monsters(\"olaf\", 160, 0);//Degat et point attaque sont à 0 car ils prendront les valeurs du random\n\n\n System.out.println(\"Bienvenue dans le dongeon\");\n System.out.println(\"Vous avez \" + aventurier.getPointDeVie() + \" Point de vie, \" + aventurier.getFlasqueDeau() + \" flasques pour combatre vos ennemies et une \");\n\n // i=room ;si pointdevie > room-->room+1 sinon game over(pas besoin de creer une classe)\n int i = 1;\n do {\n\n if (aventurier.getPointDeVie() > 0) ;\n {\n System.out.println(\"Room\" + i);\n\n Monsters enemieActuel = barbare;\n//nbr aleatoire entre sorcier et monster\n Random random = new Random();\n int nbrAl = random.nextInt(2 );\n//si nbr=0 = sorcier sinon barbare\n if (nbrAl == 0) {\n enemieActuel = sorciere;\n //sinon barbare\n } else {\n enemieActuel = barbare;\n }\n\n\n //Si barbare faire le do while\n\n if (enemieActuel == barbare) {\n\n do { //Faire des degats aleatoire grace au random à l'aide de l'epee\n epee.setDegat((int) (5 + (Math.random() * 30)));//comme .set dega=0 on lui donne la valeur de math.random\n int degat = epee.getDegat(); //.get renvoi la valeur au int nommer degat\n barbare.setPointDeVie(barbare.getPointDeVie() - degat);//vie - degat\n System.out.println(\"Il reste au barbare \" + barbare.getPointDeVie());//nouvelle valeur de point de vie\n\n\n //idem avec l'aventurier\n barbare.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = barbare.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n // tant que les Pvie de l'aventurier >= 0 et idem barbare continuer le combat\n } while (aventurier.getPointDeVie() >= 0 && barbare.getPointDeVie() >= 0);\n //à la fin du combat si pvie de l'aventurier sont >0 et que i (room) egale 5 \"gagné\"\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n\n //Si juste pvie de l'aventurier > 0 --->room suivante\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n //on redonne les valeurs de depart pdeVie pour la nouvelle room\n aventurier.setPointDeVie(200);\n barbare.setPointDeVie(180);\n i+=1;\n }\n\n // sinon room = 6 pour envoyer le sout \"game over\"\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n\n\n\n }\n\n //IDEM avec sorciere\n else {\n do {\n\n\n aventurier.setFlasqueDeau((int) (5 + (Math.random() * 30)));\n int degat = aventurier.getFlasqueDeau();\n sorciere.setPointDeVie(sorciere.getPointDeVie() - degat);\n System.out.println(\"Il reste à la sorciere \" + sorciere.getPointDeVie());\n\n sorciere.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = sorciere.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n } while (aventurier.getPointDeVie() >= 0 && sorciere.getPointDeVie() >= 0);\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n aventurier.setPointDeVie(200);\n sorciere.setPointDeVie(160);\n i+=1;\n }\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n }\n } } while (i <= 5 && aventurier.getPointDeVie() > 0);\n\n\n }", "@Override\r\n\tpublic void collisionReaction(GameObject collidedWith)\r\n\t{\r\n\t\tif (\"Enemy\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(30,40);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\r\n\t\tif (\"StarBurst\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(20,40);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\t\tif (\"GeneralEnemyBullet\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(10,20);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\t\tif (\"AimedShot\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(1,5);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\r\n\r\n\t\tif (\"Asteroid\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(20, 45);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\r\n\t\t\t//DESTROYED ASTEROID CODE! NEEDS TO BE REUSED WITH SHOOTING!\r\n\t\t\tVec2 deathSpot = collidedWith.getPosition();\r\n\r\n\r\n\t\t\tint healthdropNum = 0;\r\n\t\t\twhile(healthdropNum <= 4)\r\n\t\t\t{\r\n\t\t\t\thealthdropNum++;\r\n\t\t\t\tGameObject healthDrop = new HealthDrops();\r\n\t\t\t\thealthDrop.setPosition(deathSpot.getX() + getRandomValue(-5, 5), deathSpot.getY() + getRandomValue(-5, 5));\r\n\t\t\t\tObjectManager.addGameObject(healthDrop);\r\n\r\n\t\t\t}\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\r\n\t\t\tif (ShipHealth <= 30)\r\n\t\t\t{\r\n\t\t\t\tSoundManager.playBackgroundSound(\"LowHealth\");\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\r\n\t\tif (\"HealthDrop\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\tscore = score + 1;\r\n\t\t\tSystem.out.println(\"Score: \"+ score);\r\n\t\t\tif (ShipHealth < 100)\r\n\t\t\t{\r\n\r\n\t\t\t\tShipHealth += 1;\r\n\t\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\r\n\t\t\t\tif (ShipHealth > 30)\r\n\t\t\t\t{\r\n\t\t\t\t\tSoundManager.stopBackgroundSound(\"LowHealth\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcollidedWith.kill();\r\n\t\t}\r\n\t\tif (\"EnemyHealthDrop\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\tscore = score + 2;\r\n\t\t\tSystem.out.println(\"Score: \"+ score);\r\n\t\t\tif (ShipHealth < 100)\r\n\t\t\t{\r\n\r\n\t\t\t\tShipHealth += 2;\r\n\t\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\t\tif (ShipHealth > 30)\r\n\t\t\t\t{\r\n\t\t\t\t\tSoundManager.stopBackgroundSound(\"LowHealth\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcollidedWith.kill();\r\n\t\t}\r\n\t\tif (\"HealthPickup\".equals(collidedWith.getName()))\r\n\t\t{\r\n\r\n\t\t\t//System.out.println(\"Score: \" + score);\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth = 100;\r\n\t\t\tSystem.out.println(\"HEALTH RESTORED\");\r\n\t\t\tSoundManager.stopBackgroundSound(\"LowHealth\");\r\n\r\n\t\t}\r\n\t\tif (\"FollowBullet\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(10, 30);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t\tif (ShipHealth <= 30)\r\n\t\t\t{\r\n\t\t\t\tSoundManager.playBackgroundSound(\"LowHealth\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (\"BossFollower\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\tsetPositionY(165.7f);\r\n\t\t}\r\n\t}", "public void enemySpawn(String typeofEnemy) {\n if (spawnTimer == 0) {\n if (typeofEnemy.equals(\"bee\")) {\n outerloop:\n//label to later break when enemy is spawned\n for (int row = 3; row < 5; row++) {\n for (int column = 0; column < 8; column++) {\n if (canSpawn[row][column] == false) {\n handler.getGalagaState().entityManager.entities.add(new EnemyBee(x, y, 32, 32, handler, row, column));\n canSpawn[row][column] = true;\n spawnTimer = random.nextInt(60 * 7);\n break outerloop;\n } else continue;\n }\n }\n } else {//ENEMYOTHER\n outerloop:\n for (int row = 1; row < 3; row++) {\n for (int column = 0; column < 8; column++) {\n if (canSpawn[row][column] == false) {\n handler.getGalagaState().entityManager.entities.add(new EnemyOther(x, y, 32, 32, handler, row, column));\n canSpawn[row][column] = true;\n spawnTimer = random.nextInt(60 * 7);\n break outerloop;\n } else continue;\n }\n }\n\n }\n }\n else {\n spawnTimer--;\n }\n\n// int enemyType = random.nextInt(2);\n// spawnTimer--;\n// if (spawnTimer == 0) {\n// if (typeofEnemy.equals(\"bee\")) {\n// int row = random.nextInt(2) + 3, column = random.nextInt(8);\n// if (canSpawn[row][column] == false) {\n// handler.getGalagaState().entityManager.entities.add(new EnemyBee(x, y, 32, 32, handler, row, column));\n// canSpawn[row][column] = true;\n// } else {\n// return;\n// }\n// } else {\n// int row = random.nextInt(2) + 1, column = random.nextInt(8);\n// if (canSpawn[row][column] == false) {\n// handler.getGalagaState().entityManager.entities.add(new EnemyOther(x, y, 32, 32, handler, row, column));\n// canSpawn[row][column] = true;\n// }\n// }\n// }\n// else{\n// spawnTimer--;\n// }\n\n\n\n\n }", "private void doSpawnProcess()\n\t{\n\t\t// spawn sometin\n\t\tthis.spawn();\n\t\t\n\t\t// record another spawned enemy\n\t\tspawnCurrent++;\n\t\t\n\t\t// if that wasn't the last Walker\n\t\tif(currentWave.getNumberOfWalkers() > 0)\n\t\t{\n\t\t\t// restart the spawn timer\n\t\t\tfloat delay = currentWave.getSpawnDelay();\n\t\t\tspawnTimer.start(delay);\n\t\t}\n\t\t// otherwise, we've spawned all our piggies in this wave\n\t\telse\n\t\t{\n\t\t\tprepareNextWave();\n\t\t}\n\t}", "public void act() \n {\n move(4); \n collision();\n \n \n }", "public void spawn(boolean type)\n\t{\n\t\tif (type)\n\t\t{\n\t\t\triver[findEmpty()] = new Bear();\n\t\t}\n\t\telse\n\t\t{\n\t\t\triver[findEmpty()] = new Fish();\n\t\t}\n\t}", "public void spawnWanderingSeeker(LogicEngine in_logicEngine)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/triangle.png\",(float)LogicEngine.SCREEN_WIDTH*Math.random(),LogicEngine.SCREEN_HEIGHT-10,0);\r\n\t\t\t\t\r\n\t\t//set animation frame\r\n\t\tship.i_animationFrame=1;\r\n\t\tship.i_animationFrameRow=0;\r\n\t\tship.i_animationFrameSizeWidth=16;\r\n\t\tship.i_animationFrameSizeHeight=16;\r\n\t\t\r\n\t\t//wander \t\r\n\t\tCustomBehaviourStep cb = new CustomBehaviourStep(new Wander(-2.5,2.5,20,0.1));\r\n\t\tship.stepHandlers.add( cb);\r\n\t\t\r\n\t\t//chase player if on medium or hard\r\n\t\tif(Difficulty.difficulty == DIFFICULTY.MEDIUM || \r\n\t\t\t\tDifficulty.difficulty == DIFFICULTY.HARD)\r\n\t\t{\t\r\n\t\t\tSeekNearestPlayerStep sps = new SeekNearestPlayerStep(100);\r\n\t\t\tship.stepHandlers.add(sps);\r\n\t\t}\r\n\t\r\n\t\tship.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-2)));\r\n\t\tship.collisionHandler = new DestroyIfEnemyCollision(ship, 10, true);\r\n\t\tship.v.setMaxForce(2);\r\n\t\tship.v.setMaxVel(2);\r\n\t\t\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t}", "public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }", "public abstract void collideWith(Entity entity);", "public void act() \n {\n moveEnemy();\n checkHealth();\n attacked();\n }", "BossEnemy(){\n super();\n totallyDied = true;\n }", "public void spawnObstacle(){\n\t\tif(this.seconds > this.nextSpawn && !this.gameOver){\n\t\t\tint pX = this.radom.nextInt(350);\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,0,30,pX,0));\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,pX+110,30,HEIGHT-pX-111,0));\n\t\t\tthis.goals.add(new Goal(WIDTH,pX,30,110,0xffffff));\n\t\t\tthis.nextSpawn = this.seconds + this.spawnRate;\n\t\t}\n\t}", "public void unitCollision() {\n\t}", "private void makeMonster(int lvl)\r\n {\r\n maxHealth = lvl*12;\r\n health = maxHealth;\r\n \r\n Equip tempWeapon = null;\r\n Equip tempArmor = null;\r\n if (type == GOLEM)\r\n {\r\n tempWeapon = new Equip(\"roll smash\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"rock body\", Equip.ARMOR, lvl);\r\n }\r\n else if (type == GHOST)\r\n {\r\n tempWeapon = new Equip(\"scythe\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"magic armor\", Equip.ARMOR, lvl);\r\n }\r\n else if (type == SLIME)\r\n {\r\n tempWeapon = new Equip(\"liquid attack\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"shock absorb\", Equip.ARMOR, lvl);\r\n }\r\n else\r\n {\r\n tempWeapon = new Equip(\"teeth\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"hardskin\", Equip.ARMOR, lvl);\r\n }\r\n tempWeapon.changeOwner(this);\r\n tempArmor.changeOwner(this);\r\n tempWeapon.equipTo(this);\r\n tempArmor.equipTo(this);\r\n }", "public Enemy() {\n createModel();\n enemyCounter++;\n }", "public abstract void collide(InteractiveObject obj);", "@Override\n\tpublic void doCollideEnemy(SlowEnemy enemy) {\n\t\t\n\t}", "protected Enemy spawn(Class enemyClass, final ArrayList<Enemy> enemies, final int spawnRadius, final int escapeRadius) {\n // at a random angle\n double theta = Math.random() * 2 * Math.PI;\n // pick a random point from 10% spawn radius to 100% spawn radius\n double radius = (Math.random() * 0.9 + 0.1) * spawnRadius;\n\n GameUtils.Position p = GameUtils.radialLocation(radius, theta);\n\n Enemy newEnemy = null;\n if (enemyClass == BasicEnemy.class) {\n newEnemy = new BasicEnemy(p.x, p.y, escapeRadius);\n } else if (enemyClass == ShootEnemy.class) {\n newEnemy = new ShootEnemy(p.x, p.y, escapeRadius);\n } else if (enemyClass == LaserEnemy.class) {\n newEnemy = new LaserEnemy(p.x, p.y, escapeRadius);\n } else if (enemyClass == BombEnemy.class) {\n newEnemy = new BombEnemy(p.x, p.y, escapeRadius);\n } else if (enemyClass == Kraken.class) {\n newEnemy = new Kraken(escapeRadius, spawnRadius);\n } else if (enemyClass == ArcEnemy.class) {\n int rotateSide = (int)Math.round(Math.random());\n newEnemy = new ArcEnemy(p.x, p.y, escapeRadius, rotateSide);\n } else if (enemyClass == ArcShootEnemy.class) {\n int rotateSide = (int)Math.round(Math.random());\n newEnemy = new ArcShootEnemy(p.x, p.y, escapeRadius, rotateSide);\n }\n\n if(newEnemy == null) {\n System.err.println(\"Stage cannot spawn enemy of type \" + enemyClass);\n }\n\n return newEnemy;\n }", "public void collide(DynamicCollEvent dce, int collRole) {\n if (collRole == DynamicCollEvent.COLL_AFFECTED) {\n BasicGameObject invoker = dce.getInvoker();\n if (invoker instanceof Monster) { /* Do nothing */ }\n if (invoker instanceof Player) {\n Player player = (Player) invoker;\n boolean harmedPlayer = (\n dce.getInvokerCollType() == DynamicCollEvent.COLL_LEFT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_RIGHT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_TOP ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_TOPLEFT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_TOPRIGHT\n );\n boolean harmedByPlayer = (\n dce.getInvokerCollType() == DynamicCollEvent.COLL_BOTTOM ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_BOTTOMLEFT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_BOTTOMRIGHT\n );\n\n if (harmedPlayer) {\n player.decreaseHealth(10); // This monster scores 10 hitpoints. ;)\n collLeftRight = true; // This way, we will turn around in advanceCycle.\n } else if (harmedByPlayer) {\n player.setVelocity(player.getVelX(), -20);\n this.getReferrer().getSndFX().play(SoundFX.SND_MONSTERSQUISH);\n this.decreaseHealth(100);\n referrer.getPlayer().increasePoints(5);\n } else {\n System.out.println(\"Undefined collision between Monster and Player. ERROR 30\");\n }\n }\n this.newX = dce.getAffectedNewX();\n this.newY = dce.getAffectedNewY();\n } else {\n this.newX = dce.getInvokerNewX();\n this.newY = dce.getInvokerNewY();\n }\n\n if (DEBUG) {\n if (this == this.getReferrer().getObjects()[9]) {\n System.out.println(\"DET F�RSTE MONSTERET HAR CRASHET MED PLAYER!!!\");\n }\n }\n }", "public void act()\n {\n if(isInWorld == true)\n {\n if(!WorldOne.isTimerOn() && getWorld().getClass() == WorldOne.class && WorldControl.subWave == 1)\n { \n getWorld().addObject(healthMessage, getX() - 30, getY() - 30);\n }\n getWorld().addObject(healthMessage, getX() - 30, getY() - 30);\n move();\n lastX = getX();\n lastY = getY();\n healthMessage.updatePosition(getX() - 30, getY() - 30);\n healthMessage.update(\"HP \" + getHealth(), Color.GREEN, font); \n checkKeys();\n incrementReloadDelayCount();\n //healthMessage.update(\"HP \" + getHealth(), Color.GREEN, font);\n if(!hasHealth())\n {\n removeSelfFromWorld(healthMessage);\n removeSelfFromWorld(this);\n isInWorld = false;\n isRocketAlive = false;\n Greenfoot.playSound(\"Explosion.wav\");\n }\n } \n\n }", "public void enemyCreator() { // Creates enemies\n \tif(createFrame >= createTime) {\n \t\tfor(int i = 0; i < enemies.length; i++) {\n \t\t\tif(!enemies[i].isAlive) { // If the enemy is no longer alive\n \t\t\t\tenemies[i].Create(0); // Create a new one\n \t\t\t\tbreak;\n \t\t\t} \t\t\t\t\n \t\t}\n \t\tcreateFrame = 0;\n \t}\n \telse\n \t\tcreateFrame += 1;\n \t\n \tif(killCount == 10){ // Every ten enemies\n \t\tkillCount = 0;\n \t\tif(createTime > 700)\n \t\t\tcreateTime -= 275; // Increase spawn rate\n \t\t\n \t\tif(Enemy.moveSpeed > 8)\t\n \t\t\t\tEnemy.moveSpeed -= 2; // Increase enemy movement speed\n \t\tif(killed > 100)\n \t\t\tBlock.healthTime += 25; // Increase enemy health\n \t\telse if(killed > 200)\n \t\t\tBlock.healthTime += 30;\n \t\telse\n \t\t\tBlock.healthTime += 20;\n \t}\n }", "protected void onCollision(Actor other) {\r\n\r\n\t}", "private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }", "public void act()\r\n {\n \r\n if (Background.enNum == 0)\r\n {\r\n length = Background.length;\r\n width = Background.width;\r\n getWorld().addObject (new YouWon(), length / 2, width / 2);\r\n \r\n //long lastAdded2 = System.currentTimeMillis();\r\n //long curTime3 = System.currentTimeMillis();\r\n //long curTime3 = System.currentTimeMillis();\r\n //long seconds = curTime3 / 1000;\r\n //sleep = 3;\r\n //try {\r\n //TimeUnit.SECONDS.sleep(sleep);\r\n //} catch(InterruptedException ex) {\r\n //Thread.currentThread().interrupt();\r\n //}\r\n //Greenfoot.delay(3);\r\n //long curTime3 = System.currentTimeMillis();\r\n //long secs2 = curTime3 / 1000;\r\n //long curTime4;\r\n //long secs3;\r\n //do\r\n //{\r\n //getWorld().addObject (new YouWon(), length / 2, width / 2);\r\n //curTime4 = System.currentTimeMillis();\r\n //secs3 = curTime3 / 1000;\r\n //} while (curTime4 / 1000 < curTime3 / 1000 + 3);\r\n //if (System.currentTimeMillis()/1000 - 3 >= secs2)\r\n //{\r\n //do\r\n //{\r\n pause(3000);\r\n Actor YouWon;\r\n YouWon = getOneObjectAtOffset(0, 0, YouWon.class);\r\n World world;\r\n world = getWorld();\r\n world.removeObject(this);\r\n Background.xp += 50;\r\n Background.myGold += 100;\r\n if (Background.xp >= 50 && Background.xp < 100){\r\n Background.myLevel = 2;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 100 && Background.xp < 200){\r\n Background.myLevel = 3;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 200 && Background.xp < 400){\r\n Background.myLevel = 4;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 400 && Background.xp < 800){\r\n Background.myLevel = 5;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 800 && Background.xp < 1600){\r\n Background.myLevel = 6;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 1600 && Background.xp < 3200){\r\n Background.myLevel = 7;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 3200 && Background.xp < 6400){\r\n Background.myLevel = 8;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 6400 && Background.xp < 12800){\r\n Background.myLevel = 9;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 12800){\r\n Background.myLevel = 10;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n }\r\n //curTime3 = System.currentTimeMillis();\r\n //secs2 = curTime3 / 1000;\r\n //index2++;\r\n //Greenfoot.setWorld(new YouWon());\r\n //lastAdded2 = curTime3;\r\n //}\r\n //} while (index2 <= 0);\r\n }\r\n }", "public void spawnNpcOnChance(Location location) {\r\n\t\t\tif(location.isOutdoors() && Math.random() < 0.20) {\r\n\t\t\t\tthis.spawnEnemy(location);\r\n\t\t\t}\r\n\t\t}", "public void startGame() {\n\t\tgameStart = true;\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tenemys[i] = new Enemy(1 + (-i * 164), 192, pacman, 64, 64, 2.5, 0.0, 50);\n\t\t}\n\t\tfor(int i = 2; i < 10; i++) {\n\t\t\tenemys[i] = new Enemy(-100 + (-i * 164), 192, msPacman, 64, 64, 2.5, 0.0, 75);\n\t\t}\n\t\t\n\t\trepaint();\n\t}", "void setEnemyPos(Point2D pos);", "public void act() \r\n {\r\n Actor hitMC = getOneIntersectingObject(MC.class);\r\n if (hitMC != null) {\r\n ((Hall) getWorld()).player.health++;\r\n getWorld().removeObject(this);\r\n }\r\n }", "void mineWave( LogicEngine in_logicEngine,int in_numberOfMines, boolean b_isStaggered,boolean randomX)\r\n\t{\r\n\t\tint i_numberOfMines=in_numberOfMines;\r\n\t\tif(randomX)\r\n\t\t\ti_numberOfMines=1;\r\n\t\t\r\n\t\t\r\n\t\t//String in_spritename, double in_x, double in_y, boolean in_rotateToV,int in_shootEverySteps\r\n\t\tfor(int i=0 ; i< i_numberOfMines ; i++)\r\n\t\t{\r\n\t\t\tGameObject mine = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/mine.png\",((double)i+0.5)* (LogicEngine.SCREEN_WIDTH/i_numberOfMines+1),LogicEngine.SCREEN_HEIGHT+5,5);\r\n\t\t\t\r\n\t\t\t//to do a interleafed pattern\r\n\t\t\tif(b_isStaggered)\r\n\t\t\t\tmine.v.setX(mine.v.getX()+(LogicEngine.SCREEN_WIDTH/((i_numberOfMines+1)*2)));\r\n\t\t\telse\r\n\t\t\t\tif(randomX)\r\n\t\t\t\t\tmine.v.setX(LogicEngine.SCREEN_WIDTH * Math.random());\r\n\t\t\t\r\n\t\t\tmine.i_animationFrame=0;\r\n\t\t\tmine.i_animationFrameSizeWidth=16;\r\n\t\t\tmine.i_animationFrameSizeHeight=16;\r\n\t\t\t\r\n\r\n\t\t\tmine.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-2)));\r\n\t\t\t\r\n\t\t\tHitpointShipCollision c = new HitpointShipCollision(mine,3,10);\r\n\t\t\tc.setSimpleExplosion();\r\n\t\t\t\r\n\t\t\tmine.shotHandler = new ExplodeIfInRange(true);\r\n\t\t\t\r\n\t\t\tmine.collisionHandler =c; \r\n\t\t\tmine.allegiance = GameObject.ALLEGIANCES.LETHAL;\r\n\t\t\t\r\n\t\t\tin_logicEngine.objectsEnemies.add(mine);\r\n\t\t}\r\n\t}", "abstract public void initSpawn();", "private void setEnemy(){\n depths.setEnemy(scorpion);\n throne.setEnemy(rusch);\n ossuary.setEnemy(skeleton);\n graveyard.setEnemy(zombie);\n ramparts.setEnemy(ghoul);\n bridge.setEnemy(concierge);\n deathRoom1.setEnemy(ghost);\n deathRoom2.setEnemy(cthulu);\n deathRoom3.setEnemy(wookie); \n }", "public void act() \n {\n moveAround();\n die();\n }", "private void enemyMove() {\n\t\tArrayList<EnemySprite> enemylist = this.model.getEnemy();\n\t\tfor(EnemySprite sp :enemylist) {\n\t\t\tif(sp instanceof NormalEnemySprite) {\n\t\t\t\t\n\t\t\t\t((NormalEnemySprite)sp).move();\n\t\t\t}\n\t\t\t\n\t\t\telse if(sp instanceof PatrollingEnemySprite) {\n\t\t\t\t\n\t\t\t\t((PatrollingEnemySprite) sp).move();\n\t\t\t\t\n\t\t\t} \n\t\t\t\n\t\t\telse if (sp instanceof BigEnemySprite) {\n\t\t\t\t((BigEnemySprite)sp).move();\n\t\t\t}\n\t\t\t\n\t\t\telse if (sp instanceof PatrollingBigEnemySprite) {\n\t\t\t\t((PatrollingBigEnemySprite) sp).move();\n\t\t\t}\n\t\t\t\n\t\t\telse if (sp instanceof CircleBigEnemySprite) {\n\t\t\t\t((CircleBigEnemySprite) sp).move();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\t\t\n\t}", "public Location spawn(teamName team, Match m) {\r\n\t\tif (team == teamName.ALLIES && m.getState().equals(gameState.PREGAME)){\r\n\t\t\treturn alliesSpawn;\r\n\t\t} else if (team == teamName.AXIS && m.getState().equals(gameState.PREGAME)){\r\n\t\t\treturn axisSpawn;\r\n\t\t} else if (team == teamName.SPECTATOR){\r\n\t\t\treturn mainSpawn;\r\n\t\t} else if (team == teamName.ALONE){\r\n\t\t\treturn randomSpawn(m);\r\n\t\t} else {\r\n\t\t\treturn randomSpawn(team, m);\r\n\t\t}\r\n\t}", "void spawnHitbox() {\n\t\tif (invalid || hitbox != null) return;\n\t\tif (!getWorld().isChunkLoaded(getChunkX(), getChunkZ())) return;\n\t\t\n\t\thitbox = spawnHitbox(location);\n\t\thitbox.setMetadata(\"deathpoint\", new FixedMetadataValue(SecondChance.instance(), this));\n\t}", "public void playEnemy(){\n // System.out.println(\"staaaaaaaaaaaaaaaaaaaaar\"+character.getBlock());\n for(int i = 0 ; i < enemyController.getSize() ; i++){\n if (! enemies.get(i).isDead())\n effectHandler.playEnemy( i );\n }\n for( int i = 0 ; i < enemyController.getSize() ; i++){\n if (! enemies.get(i).isDead())\n effectHandler.endEnemyTurn(i);\n }\n\n }", "public Enemy spawn(float playerXPos)\n {\n if (spawned || playerXPos + spawnDistance < x)\n {\n return null;\n }\n else\n {\n spawned = true;\n \n myEnemy.reset();\n myEnemy.setPosition(x, y);\n return myEnemy;\n }\n }", "private void generateEnemies(){\n\t\tint coordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tint coordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tEnemy enemy = new Enemy(coordX,coordY);\n\t\tenemies.put(0, enemy);\n\t\tcoordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tcoordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tenemy = new Enemy(coordX,coordY);\n\t\tenemies.put(1, enemy);\n\t}", "@Override\n public void action(){\n\n Position move=this.findWeed();\n if(move.getX()==0 && move.getY()==0){\n super.action();\n }\n else{\n System.out.println(this.getClass().getSimpleName());\n int actualX = this.position.getX();\n int actualY = this.position.getY();\n int xAction = actualX+move.getX();\n int yAction = actualY+move.getY();\n Organism tmpOrganism = this.WORLD.getOrganism(xAction, yAction);\n if(tmpOrganism==null){\n this.move(move.getX(), move.getY());\n this.WORLD.erasePosition(actualX,actualY);\n }\n else{\n tmpOrganism.collision(this, actualX, actualY, move);\n }\n }\n }", "public static void mainMelee(Player player) {\n\t\tbankInventoryAndEquipment(player);\n\t\tspawnInventory(player, MeleeMain.inventory);\n\t\tspawnEquipment(player, MeleeMain.equipmentSet(player));\n\t\tupdateEquipment(player);\n\t\theal(player, true, true);\n\t\tsetCombatSkills(player, \"MAIN\", false, null);\n\t\tsetPrayerAndMagicBook(player, \"LUNAR\");\n\t\tPresets.isPresetFlagged(player, player.bankIsFullWhileUsingPreset);\n\t}", "@Override\r\n\tpublic void Collision(Entity e)\r\n\t{\r\n\t\tthis.isAlive = false;\r\n\t}", "public abstract String forceAttack(Humanoid enemy);", "private void createBasicEnemies() {\n\t\tint xTemp1 = (int) app.random(60, 500);\n\t\tint xTemp2 = (int) app.random(650, 1140);\n\t\tint yTemp = -60;\n\t\t\n\t\t//Contador para crear enemigo cada cierto tiempo\n\t\tapp.frameRate(80);\n\t\t\n\t\t//Agregar enemigos basicos\n\t\tif (app.frameCount%120 == 0) {\n\t\t\tbasicEnemies1.add(new BasicEnemy(app, xTemp1, yTemp));\n\t\t\tbasicEnemies2.add(new BasicEnemy(app, xTemp2, yTemp));\n\t\t}\n\t\t\n\t\t//Agregar enemigos que disparan\t\t\n\t\tif (app.frameCount%250 == 0) {\n\t\t\thardEnemies1.add(new HardEnemy(app, xTemp1, yTemp));\n\t\t\thardEnemies2.add(new HardEnemy(app, xTemp2, yTemp));\n\t\t}\n\t}", "public void act() \n {\n World w = getWorld();\n int height = w.getHeight();\n \n setLocation(getX(),getY()+1);\n if (getY() <=0 || getY() >= height || getX() <= 0) // off the world\n {\n w.removeObject(this);\n return;\n }\n \n \n SaboWorld thisWorld = (SaboWorld) getWorld();\n Turret turret = thisWorld.getTurret();\n Actor turretActor = getOneIntersectingObject(Turret.class);\n Actor bullet = getOneIntersectingObject(Projectile.class);\n \n if (turretActor!=null && bullet==null) // hit the turret!\n {\n \n turret.bombed(); //Turret loses health\n explode();\n w.removeObject(this);\n } else if (turret==null && bullet!=null) //hit by a bullet!\n {\n explode();\n w.removeObject(this);\n }\n \n }", "public EnemySpawner(String mapName) {\n\n map = new Map(mapName);\n enemiesLeft = new int[]{0};\n }", "public void moveActor();", "public void act() \n {\n checkCollision();\n KeyMovements(); \n attackWeapon();\n //stopGame();\n \n }", "protected void onImpact(MovingObjectPosition movingObj) {\r\n\t\tif (movingObj.entityHit != null) {\r\n\t\t\tbyte b0 = 0;\r\n\r\n\t\t\tif (movingObj.entityHit instanceof EntityBlaze) {\r\n\t\t\t\tb0 = 3;\r\n\t\t\t}\r\n\r\n\t\t\tmovingObj.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float) b0);\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < 8; ++i) {\r\n\t\t\tthis.worldObj.spawnParticle(\"snowballpoof\", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);\r\n\t\t}\r\n\r\n\t\tif (!this.worldObj.isRemote) {\r\n\t\t\tthis.setDead();\r\n\t\t}\r\n\t}", "public void act() \n {\n playerMovement();\n }", "public void basicEnemyAI(){\n if(enemyMana == enemyManaMax){\n applyCard(enemyPlayCard(), \"enemy\");\n }\n }", "private static void spawn(Actor actor, ActorWorld world)\n {\n Random generator = new Random();\n int row = generator.nextInt(10);\n int col = generator.nextInt(10);\n Location loc = new Location(row, col);\n while(world.getGrid().get(loc) != null)\n {\n row = generator.nextInt(10);\n col = generator.nextInt(10);\n loc = new Location(row, col);\n }\n world.add(loc, actor);\n }", "void impact(GameObject object) {\n\n }", "@SubscribeEvent\n public void spawnMobs(WorldTickEvent event)\n {\n if(event.phase == TickEvent.Phase.END && event.world.provider.getDimension() == 0\n && event.side == Side.SERVER && event.world.playerEntities.size() > 0)\n {\n //fires at 10PM every in-game day\n if(event.world.getWorldTime()%23999 == 16000)\n {\n //gets a list of all players in-game\n List<EntityPlayer> players = event.world.playerEntities;\n ArrayList<BlockPos> spawnpoints = new ArrayList<>();\n\n //gets the current day in-game\n int currDay = DifficultyScaling.getCurrDay(event.world);\n Random rand = new Random();\n\n if(DifficultyScaling.getCurrWeek(event.world) > 0)\n {\n //sets the current difficulty\n difficulty = DifficultyScaling.getDifficulty(currDay);\n\n //populates spawnpoints... creates 5 spawnpoints around each players\n for (int i = 0; i < players.size(); i++)\n {\n BlockPos playerPos = players.get(i).getPosition();\n for (int k = 0; k < 5; k++)\n {\n int x = playerPos.getX(), y, z = playerPos.getZ();\n int posOrNeg = rand.nextInt(2);\n\n if(posOrNeg == 0)\n x = rand.nextInt(15) + 15 + x;\n else\n x = rand.nextInt(15) - 30 + x;\n\n posOrNeg = rand.nextInt(2);\n if(posOrNeg == 0)\n z = rand.nextInt(15) + 15 + z;\n else\n z = rand.nextInt(15) - 30 + z;\n\n y = event.world.getHeight(x, z);\n\n spawnpoints.add(new BlockPos(x, y, z));\n }\n }\n\n //Sets the adjusted amount of mobs\n int creepersToSpawn = (int) (baseSpawnCreeper * (difficulty + (players.size() - 1) * 1.2));\n int zombiesToSpawn = (int) (baseSpawnZombie * (difficulty + (players.size() - 1) * 1.2));\n int endermenToSpawn = (int) (baseSpawnEnderman * (difficulty + (players.size() - 1) * 1.2));\n int totalMobsToSpawn = creepersToSpawn + zombiesToSpawn + endermenToSpawn;\n\n spawnMobs(event.world, spawnpoints, players, zombiesToSpawn, endermenToSpawn, creepersToSpawn);\n\n for(int i = 0; i < players.size(); i++)\n players.get(i).sendMessage(new TextComponentString(\"Number of mobs spawned: \" + totalMobsToSpawn));\n }\n //goes through the playerlist and messages them that it's 10pm at 10pm\n for(int k = 0; k < players.size(); k++)\n {\n players.get(k).sendMessage(new TextComponentString(\"Time: \" + (event.world.getWorldTime()%24000)/10));\n players.get(k).sendMessage(new TextComponentString(\"Day: \" + (DifficultyScaling.getCurrDay(event.world) + 1)));\n players.get(k).sendMessage(new TextComponentString(\"Week: \" + DifficultyScaling.getCurrWeek(event.world)));\n\n }\n }\n }\n }" ]
[ "0.7324009", "0.7271115", "0.6919052", "0.6883725", "0.67985004", "0.6753498", "0.675129", "0.6693676", "0.66841483", "0.66804916", "0.6560068", "0.6537537", "0.6498033", "0.6494835", "0.64910007", "0.64691395", "0.639767", "0.6356664", "0.63452923", "0.6340586", "0.63088286", "0.62895006", "0.6275187", "0.6267041", "0.6224538", "0.6219917", "0.62189156", "0.6201922", "0.617787", "0.61733407", "0.6155954", "0.6150344", "0.6147074", "0.6143593", "0.6131713", "0.61260104", "0.61209035", "0.60969", "0.6096572", "0.6095035", "0.6090098", "0.60818404", "0.6081708", "0.6065229", "0.60569304", "0.6055408", "0.6050349", "0.60458314", "0.60417426", "0.60241294", "0.602087", "0.60139674", "0.60139656", "0.6013023", "0.6010611", "0.6002009", "0.599532", "0.5986105", "0.5976694", "0.5963999", "0.5941521", "0.5936173", "0.5934214", "0.5929517", "0.5925589", "0.5902199", "0.5901556", "0.58811176", "0.58804744", "0.58799636", "0.5878483", "0.5866462", "0.5862591", "0.5859999", "0.5855621", "0.585301", "0.58487993", "0.58397263", "0.5834588", "0.5834088", "0.58288", "0.5818817", "0.581709", "0.5810202", "0.5786944", "0.57840025", "0.5782029", "0.5778687", "0.5778271", "0.57771707", "0.57660824", "0.57654005", "0.5761429", "0.5759027", "0.5754875", "0.57492405", "0.57448876", "0.57374334", "0.57334286", "0.5733025" ]
0.67242163
7
a method to spawn a pothole, an obstacle that reduces health on collision.
@Spawns("potHole") public Entity spawnPotHole(SpawnData data) { return entityBuilder() .from(data) .type(POTHOLE) .viewWithBBox(texture("pothole.png", 40, 58)) .with(new CollidableComponent(true)) .with(new OffscreenCleanComponent()) .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void spawnObstacle(){\n\t\tif(this.seconds > this.nextSpawn && !this.gameOver){\n\t\t\tint pX = this.radom.nextInt(350);\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,0,30,pX,0));\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,pX+110,30,HEIGHT-pX-111,0));\n\t\t\tthis.goals.add(new Goal(WIDTH,pX,30,110,0xffffff));\n\t\t\tthis.nextSpawn = this.seconds + this.spawnRate;\n\t\t}\n\t}", "public void addObstacle(Coord obstacleCoord);", "public Robots(PApplet p) {\n\t\tbSpeed = 6;\n\t\tbSize = 1;\n\t\tparent = p;\n\t\tx = parent.random (bobWidth, parent.width/2 - bobWidth); // Bob starts in a random place on the screen\n\t\ty = parent.random (bobWidth,parent.width/2 - bobWidth); \n\t}", "public static void main(String[] args) {\n Hero aventurier = new Hero(200, 100);\n Equipement epee = new Equipement(\"epee\", 0);\n Monsters sorciere = new Monsters(\"witch\", 180, 0);\n Monsters barbare = new Monsters(\"olaf\", 160, 0);//Degat et point attaque sont à 0 car ils prendront les valeurs du random\n\n\n System.out.println(\"Bienvenue dans le dongeon\");\n System.out.println(\"Vous avez \" + aventurier.getPointDeVie() + \" Point de vie, \" + aventurier.getFlasqueDeau() + \" flasques pour combatre vos ennemies et une \");\n\n // i=room ;si pointdevie > room-->room+1 sinon game over(pas besoin de creer une classe)\n int i = 1;\n do {\n\n if (aventurier.getPointDeVie() > 0) ;\n {\n System.out.println(\"Room\" + i);\n\n Monsters enemieActuel = barbare;\n//nbr aleatoire entre sorcier et monster\n Random random = new Random();\n int nbrAl = random.nextInt(2 );\n//si nbr=0 = sorcier sinon barbare\n if (nbrAl == 0) {\n enemieActuel = sorciere;\n //sinon barbare\n } else {\n enemieActuel = barbare;\n }\n\n\n //Si barbare faire le do while\n\n if (enemieActuel == barbare) {\n\n do { //Faire des degats aleatoire grace au random à l'aide de l'epee\n epee.setDegat((int) (5 + (Math.random() * 30)));//comme .set dega=0 on lui donne la valeur de math.random\n int degat = epee.getDegat(); //.get renvoi la valeur au int nommer degat\n barbare.setPointDeVie(barbare.getPointDeVie() - degat);//vie - degat\n System.out.println(\"Il reste au barbare \" + barbare.getPointDeVie());//nouvelle valeur de point de vie\n\n\n //idem avec l'aventurier\n barbare.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = barbare.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n // tant que les Pvie de l'aventurier >= 0 et idem barbare continuer le combat\n } while (aventurier.getPointDeVie() >= 0 && barbare.getPointDeVie() >= 0);\n //à la fin du combat si pvie de l'aventurier sont >0 et que i (room) egale 5 \"gagné\"\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n\n //Si juste pvie de l'aventurier > 0 --->room suivante\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n //on redonne les valeurs de depart pdeVie pour la nouvelle room\n aventurier.setPointDeVie(200);\n barbare.setPointDeVie(180);\n i+=1;\n }\n\n // sinon room = 6 pour envoyer le sout \"game over\"\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n\n\n\n }\n\n //IDEM avec sorciere\n else {\n do {\n\n\n aventurier.setFlasqueDeau((int) (5 + (Math.random() * 30)));\n int degat = aventurier.getFlasqueDeau();\n sorciere.setPointDeVie(sorciere.getPointDeVie() - degat);\n System.out.println(\"Il reste à la sorciere \" + sorciere.getPointDeVie());\n\n sorciere.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = sorciere.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n } while (aventurier.getPointDeVie() >= 0 && sorciere.getPointDeVie() >= 0);\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n aventurier.setPointDeVie(200);\n sorciere.setPointDeVie(160);\n i+=1;\n }\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n }\n } } while (i <= 5 && aventurier.getPointDeVie() > 0);\n\n\n }", "@SuppressWarnings(\"unused\")\n void spawn(Entity entity);", "private void createEnemyHelicopter()\n\t {\n\t \t\tRandNum = 0 + (int)(Math.random()*700);\n\t\t \t\tint xCoordinate = 1400;\n\t int yCoordinate = RandNum; \n\t eh = new Enemy(xCoordinate,yCoordinate);\n\t \n\t // Add created enemy to the list of enemies.\n\t EnemyList.add(eh);\n\t \n\t }", "public void spawnEnemy(){\n\t\tint initTile = 0;\n\t\n\t\tfor(int i=0; i<screen.maps[screen.currentMap].path.getHeight(); i++){\n\t\t\tif(screen.maps[screen.currentMap].path.getCell(0, i).getTile().getProperties().containsKey(\"ground\") == true){\n\t\t\t\tinitTile = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\txCoor = 2;\n\t\tyCoor = (initTile)*64 + 2;\n\t\tbound = new Circle(xCoor+30, yCoor+30, 30);\n\t\tinGame = true;\n\t}", "private void createObstacole()\n {\n //Create Obstacole\n Obstacole topObstacole = new Obstacole(\"top\");\n Obstacole botObstacole = new Obstacole(\"bottom\");\n Obstacole midObstacole = new Obstacole(\"mid\");\n //amount of space between obstacole\n int ObstacoleSpacing = 150;\n \n //get object image\n GreenfootImage image = botObstacole.getImage();\n \n //random number to vary\n int numOfObstacoles = Greenfoot.getRandomNumber(40) + 15;\n \n //counter increment to 50\n ObstacoleCounter++;\n if (ObstacoleCounter == 50)\n {\n if (getObjects(Obstacole.class).size() < numOfObstacoles)\n {\n addObject(botObstacole, getWidth(), getHeight() / 2 + image.getHeight() - Greenfoot.getRandomNumber(100) - 10);\n addObject(topObstacole, getWidth(), botObstacole.getY() - image.getHeight() - ObstacoleSpacing);\n addObject(midObstacole, getWidth(), botObstacole.getY() + image.getHeight() / 3 + ObstacoleSpacing);\n }\n ObstacoleCounter = 0;\n }\n }", "public GameWon()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(550, 600, 1); \n addObject(b1,275,250);\n addObject(b2,275,380);\n }", "private void prepare()\n {\n /**build the outer wall actor\n * width of wall: 50\n */\n //top wall\n for(int top = 0; top < 59; top++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(25 + top * 50, 25);\n }\n //down wall\n for(int down = 0; down < 59; down++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(25 + down * 50, 675);\n }\n //left wall\n for(int left = 1; left < 13; left++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(25, 25 + left * 50);\n }\n //right wall\n for(int right = 1; right < 13; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2925, 25 + right * 50);\n }\n \n /**starting point of the cat */\n P1 p1 = new P1();\n addObject(p1, 133, 321);\n p1.setLocation(575, 125);\n \n //attach obsever to the cat\n HealthPointObserver hpObserver = new HealthPointObserver(p1);\n addObject(hpObserver, 800, 100);\n \n \n \n \n \n /**first page\n * x: 25 - 1025\n */\n //starting location\n for(int start = 0; start < 17; start++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(175 + start * 50, 175);\n }\n //page seperator\n for(int right = 1; right < 10; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1025, 25 + right * 50);\n }\n //jumpers\n Wall wall1 = new Wall();\n addObject(wall1, 32, 382);\n wall1.setLocation(175, 625);\n for(int jump = 0; jump < 2; jump++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(275, 575 + jump * 50);\n }\n for(int jump = 0; jump < 4; jump++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(375, 475 + jump * 50);\n }\n for(int jump = 0; jump < 4; jump++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(525, 475 + jump * 50);\n }\n //set thorn\n Thorn thorn1 = new Thorn();\n addObject(thorn1, 32, 382);\n thorn1.setLocation(625, 625);\n Thorn thorn2 = new Thorn();\n addObject(thorn2, 32, 382);\n thorn2.setLocation(775, 625);\n Thorn thorn3 = new Thorn();\n addObject(thorn3, 32, 382);\n thorn3.setLocation(825, 625);\n \n /**second page \n * x: 1025 - 1975\n */\n //steps for left-top area\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1225 + step * 50, 575);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1075 + step * 50, 475);\n }\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1225 + step * 50, 375);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1075 + step * 50, 275);\n }\n Wall step1 = new Wall();\n addObject(step1, 32, 382);\n step1.setLocation(1225, 175);\n Wall step2 = new Wall();\n addObject(step2, 32, 382);\n step2.setLocation(1775, 125);\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1875 + step * 50, 125);\n }\n //area seperator\n for(int right = 3; right < 13; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1325, 25 + right * 50);\n }\n for(int right = 0; right < 8; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1375 + right * 50, 175);\n }\n //steps for right-down area\n for(int step = 0; step < 4; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1575 + step * 50, 575);\n }\n for(int step = 0; step < 4; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1375 + step * 50, 475);\n }\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1825, step * 50 + 275);\n }\n for(int step = 0; step < 7; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1575 + step * 50, 375);\n }\n for(int step = 0; step < 5; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1775, step * 50 + 425);\n }\n //page seperator\n for(int right = 1; right < 11; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1975, 25 + right * 50);\n }\n //set thorn\n Thorn thorn4 = new Thorn();\n addObject(thorn4, 32, 382);\n thorn4.setLocation(1125, 225);\n Thorn thorn5 = new Thorn();\n addObject(thorn5, 32, 382);\n thorn5.setLocation(1275, 325);\n Thorn thorn6 = new Thorn();\n addObject(thorn6, 32, 382);\n thorn6.setLocation(1875, 325);\n Thorn thorn7 = new Thorn();\n addObject(thorn7, 32, 382);\n thorn7.setLocation(1825, 625);\n Thorn thorn8 = new Thorn();\n addObject(thorn8, 32, 382);\n thorn8.setLocation(1825, 225);\n \n /**third page \n * x: 1975 - 2925\n */\n for(int step = 0; step < 4; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2125 + step * 150, 625);\n }\n //jumper\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2025, step * 150 + 225);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2125, step * 150 + 175);\n }\n // Wall jump1 = new Wall();\n //addObject(jump1, 32, 382);\n //jump1.setLocation(2125, 525);\n for(int step = 0; step < 8; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2175, step * 50 + 175);\n }\n //hidden thorn\n Thorn thorn9 = new Thorn();\n addObject(thorn9, 32, 382);\n thorn9.setLocation(2225, 165);\n Wall jump2 = new Wall();\n addObject(jump2, 32, 382);\n jump2.setLocation(2275, 175);\n Wall jump3 = new Wall();\n addObject(jump3, 32, 382);\n jump3.setLocation(2225, 175);\n Wall jump4 = new Wall();\n addObject(jump4, 32, 382);\n jump4.setLocation(2325, 275);\n Wall jump5 = new Wall();\n addObject(jump5, 32, 382);\n jump5.setLocation(2525, 275);\n Wall jump6 = new Wall();\n addObject(jump6, 32, 382);\n jump6.setLocation(2225, 375);\n Wall jump7 = new Wall();\n addObject(jump7, 32, 382);\n jump7.setLocation(2275, 425);\n for(int step = 0; step < 6; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2425 + step * 50, 425);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2625 + step * 50, 375);\n }\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2725 + step * 50, 325);\n }\n Wall jump8 = new Wall();\n addObject(jump8, 32, 382);\n jump8.setLocation(2825, 275);\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2825 + step * 50, 125);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2675, step * 50 + 475);\n }\n //set thorn\n Thorn thorn10 = new Thorn();\n addObject(thorn10, 32, 382);\n thorn10.setLocation(2825, 175);\n Thorn thorn11 = new Thorn();\n addObject(thorn11, 32, 382);\n thorn11.setLocation(2825, 625);\n Thorn thorn12 = new Thorn();\n addObject(thorn12, 32, 382);\n thorn12.setLocation(2775, 275);\n Thorn thorn13 = new Thorn();\n addObject(thorn13, 32, 382);\n thorn13.setLocation(2675, 325);\n Thorn thorn14 = new Thorn();\n addObject(thorn14, 32, 382);\n thorn14.setLocation(2875, 425);\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2025, sharp * 150 + 275);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2125, sharp * 150 + 225);\n }\n //wheel-thorn\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2275 + sharp * 200, 275);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2325 + sharp * 200, 225);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2375 + sharp * 200, 275);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2325 + sharp * 200, 325);\n }\n //three-limit\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2275 + sharp * 150, 475);\n }\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2275 + sharp * 150, 575);\n }\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2225 + sharp * 150, 525);\n }\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2325 + sharp * 150, 525);\n }\n }", "private void createParticleOutsideOfBB(){\n\t\tint x = 0;\n\t\tint y = 0;\n\t\tint r = randInt.getRandInt(1, 4);\n\t\tif(movementType == 0){\n\t\t\tx = randInt.getRandInt(0,xMin);\n\t\t\ty = randInt.getRandInt(0,799);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tswitch (r) {\n\t\t\tcase 1: \n\t\t\t\tx = randInt.getRandInt(0,599);\n\t\t\t\ty = randInt.getRandInt(0,yMin);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tx = randInt.getRandInt(0,599);\n\t\t\t\ty = randInt.getRandInt(yMax,799);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tx = randInt.getRandInt(0,xMin);\n\t\t\t\ty = randInt.getRandInt(0,799);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tx = randInt.getRandInt(xMax,599);\n\t\t\t\ty = randInt.getRandInt(0,799);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tparticleCollection.add(new Particle(x,y,1,1,width,height,randInt.getRandInt(0,1),randInt.getRandInt(0,1),worldMatrix));\n\t}", "@Override\n \tpublic void update() {\n \t\tif (!constructing) {\n \t\t\t// not constructing means the pellet is still traveling through\n \t\t\t// space\n \n \t\t\t// move the pellet\n \t\t\tVector3f.add(pos, vel, pos);\n \n \t\t\t// if it's too old, kill it\n \t\t\tif (Main.timer.getTime() - birthday > 5) {\n \t\t\t\talive = false;\n \t\t\t} else {\n \t\t\t\t// if the pellet is not dead yet, see if it intersected anything\n \n \t\t\t\t// did it hit another pellet?\n \t\t\t\tPellet neighbor_pellet = queryOtherPellets();\n \n \t\t\t\t// did it hit a line or plane?\n \t\t\t\tVector3f closest_point = queryScaffoldGeometry();\n \n \t\t\t\tif (neighbor_pellet != null) {\n \t\t\t\t\talive = false;\n \n\t\t\t\t\tif (neighbor_pellet == current_cycle.lastElement()){\n\t\t\t\t\t\tSystem.out.println(\"shot at same pellet\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n \t\t\t\t\tif (!(neighbor_pellet instanceof PolygonPellet)) {\n \t\t\t\t\t\tMain.all_dead_pellets_in_world.add(neighbor_pellet);\n \t\t\t\t\t\tneighbor_pellet = new PolygonPellet(neighbor_pellet);\n \t\t\t\t\t\tMain.new_pellets_to_add_to_world.add(neighbor_pellet);\n \t\t\t\t\t}\n \n \t\t\t\t\t// if neighbor pellet's class is not PolygonPellet...\n \t\t\t\t\t// neighbor_pellet = new PolygonPellet(neighbor_pellet)\n \t\t\t\t\t// copy the position and stuff from the line/plane\n \t\t\t\t\t// pellet into the new polygon pellet\n \t\t\t\t\t// then go and add it to this cycle\n \t\t\t\t\t// hopefully it changes in the actual array of world\n \t\t\t\t\t// pellets\n \t\t\t\t\t// if not, remove that pellet from all world pelelts and\n \t\t\t\t\t// then add the new one to the end\n \n \t\t\t\t\tcurrent_cycle.add((PolygonPellet) neighbor_pellet);\n \t\t\t\t\tif (current_cycle.size() > 1) {\n \t\t\t\t\t\tmakeLine();\n \t\t\t\t\t}\n \n \t\t\t\t\tif (current_cycle.size() > 2\n \t\t\t\t\t\t\t&& current_cycle.get(0) == current_cycle\n \t\t\t\t\t\t\t\t\t.get(current_cycle.size() - 1)) {\n \t\t\t\t\t\tmakePolygon();\n \t\t\t\t\t} else {\n \t\t\t\t\t\tActionTracker.newPolygonPellet(this);\n \t\t\t\t\t}\n \n \t\t\t\t} else if (closest_point != null) {\n \t\t\t\t\tSystem.out.println(\"pellet stuck to some geometry\");\n \t\t\t\t\tconstructing = true;\n \n \t\t\t\t\tpos.set(closest_point);\n \n \t\t\t\t\tif (CONNECT_TO_PREVIOUS)\n \t\t\t\t\t\tcurrent_cycle.add(this);\n \n \t\t\t\t\tif (CONNECT_TO_PREVIOUS && current_cycle.size() > 1) {\n \t\t\t\t\t\tmakeLine();\n \t\t\t\t\t}\n \n \t\t\t\t\tif (current_cycle.size() > 2\n \t\t\t\t\t\t\t&& current_cycle.get(0) == current_cycle\n \t\t\t\t\t\t\t\t\t.get(current_cycle.size() - 1))\n \t\t\t\t\t\tmakePolygon();\n \t\t\t\t} else if (Main.draw_points) {\n \t\t\t\t\t// if it's not dead yet and also didn't hit a\n \t\t\t\t\t// neighboring\n \t\t\t\t\t// pellet, look for nearby points in model\n \t\t\t\t\tint neighbors = queryKdTree(pos.x, pos.y, pos.z, radius);\n \n \t\t\t\t\t// is it near some points?!\n \t\t\t\t\tif (neighbors > 0) {\n \t\t\t\t\t\tconstructing = true;\n \t\t\t\t\t\tsetInPlace();\n \n \t\t\t\t\t\tsnapToCenterOfPoints();\n \n \t\t\t\t\t\tif (CONNECT_TO_PREVIOUS)\n \t\t\t\t\t\t\tcurrent_cycle.add(this);\n \n \t\t\t\t\t\tif (CONNECT_TO_PREVIOUS && current_cycle.size() > 1) {\n \t\t\t\t\t\t\tmakeLine();\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t\tif (current_cycle.size() > 0)\n \t\t\t\t\tcurrent_cycle.get(0).setAsFirstInCycle();\n \n \t\t\t\tif (constructing == true) {\n \t\t\t\t\tActionTracker.newPolygonPellet(this);\n \t\t\t\t}\n \t\t\t}\n \t\t} else {\n \t\t\t// the pellet has stuck... here we just give it a nice growing\n \t\t\t// bubble animation\n \t\t\tif (radius < max_radius) {\n \t\t\t\tradius *= 1.1;\n \t\t\t}\n \t\t}\n \t}", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n \n Player player = new Player();\n Point point0 = new Point();\n Point point1 = new Point();\n Point point2 = new Point();\n Point point3 = new Point();\n Point point4 = new Point();\n Danger danger0 = new Danger();\n Danger danger1 = new Danger();\n addObject(player, getWidth()/2, getHeight()/2);\n \n addObject(point0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point2,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point3,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point4,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n \n addObject(danger0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(danger1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n }", "public Obstacle(int x, int y) {\n super(x, y);\n }", "public MobSpawner(Vector2D position, Game game)\n {\n super(position, new Vector2D(0,0), RADIUS);\n ships = new ArrayList<>();\n double maximumAngle = Math.toRadians(360/ENEMIES_CAN_SPAWN);\n for (double i = 0; i < Math.toRadians(360); i+= maximumAngle)\n {\n double randomAngle = Math.random() * maximumAngle;\n Vector2D newPos = Vector2D.polar(i + randomAngle, SPAWN_RADIUS).add(position);\n ships.add(new EnemyShip(new HlAiController(game, this), newPos));\n }\n }", "public void spawnNew() {\n\t\tif (tier> 1) {\n\t\t\ttier--;\n\t\t\thealth = tier;\n\t\t\tdamage = tier;\n\t\t\tspeed = 5;\n\t\t\timg = getImage(updateImage(tier)); // converted getImage to protected b/c it wasn't accessible by Balloon class (child class)\n\t\t}\n\t\telse {\n\t\t\tisAlive = false;\n\t\t\tdeletePath();\t\t\t\n\t\t}\n\t}", "public gameWorld()\n { \n // Create a new world with 600x600 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n addObject(new winSign(), 310, 300);\n addObject(new obscureDecorative(), 300, 400);\n addObject(new obscureDecorative(), 300, 240);\n \n for(int i = 1; i < 5; i++) {\n addObject(new catchArrow(i * 90), 125 * i, 100);\n }\n for (int i = 0; i < 12; i++) {\n addObject(new damageArrowCatch(), 50 * i + 25, 50); \n }\n \n \n //Spawning Interval\n\n if(timerInterval >= 10) {\n arrowNumber = Greenfoot.getRandomNumber(3);\n }\n if(arrowNumber == 0) {\n addObject(new upArrow(directionOfArrow[0], imageOfArrow[0]), 125, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 1) {\n addObject(new upArrow(directionOfArrow[1], imageOfArrow[1]), 125 * 2, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 2) {\n addObject(new upArrow(directionOfArrow[2], imageOfArrow[2]), 125 * 3, 590);\n arrowNumber = 5;\n }\n if( arrowNumber == 3) {\n addObject(new upArrow(directionOfArrow[3], imageOfArrow[3]), 125 * 4, 590);\n arrowNumber = 5;\n }\n \n \n\n \n }", "protected Entity createEntity()\n\t{\n\t\tLane lane = getLane();\n\t\t//sanity check\n\t\tif( lane instanceof PedestrianLane){\n\t\t\tPedestrianLane pLane = (PedestrianLane) lane;\n\t\t\t\n\t\t\t//create the pedestrian\n\t\t\t//Range of values within the lane a Pedestrian can be spawned at\n\t\t\tdouble rangeMin = Pedestrian.PEDESTRIAN_WIDTH/2;\n\t\t\tdouble rangeMax = PedestrianLane.LANE_WIDTH - Pedestrian.PEDESTRIAN_WIDTH/2;\n\t\t\t\n\t\t\tdouble randRange = rangeMin + (rangeMax - rangeMin)*Utils.random();\n\t\t\t\n\t\t\tdouble x = pLane.x() - randRange*Math.sin(pLane.dirRad());\n\t\t\tdouble y = pLane.y() + randRange*Math.cos(pLane.dirRad());\n\t\t\t\n\t\t\tif (x == pLane.x()) {\n\t\t\t\tx -= 7.5*Math.sin(pLane.dirRad());\n\t\t\t} else if (x == pLane.x() -PedestrianLane.LANE_WIDTH*Math.sin(pLane.dirRad())) {\n\t\t\t\tx += 7.5*Math.sin(pLane.dirRad());\n\t\t\t}\n\t\t\tif (y == pLane.y()) {\n\t\t\t\ty += 7.5*Math.cos(pLane.dirRad());\n\t\t\t} else if (y == pLane.y() +PedestrianLane.LANE_WIDTH*Math.cos(pLane.dirRad())) {\n\t\t\t\ty -= 7.5*Math.cos(pLane.dirRad());\n\t\t\t}\n\t\t\t\n\t\t\tPedestrian p = new Pedestrian(x, y, pLane.dirDeg(), pLane);\n\t\t\treturn p;\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"ERROR: Can't add a pedestrian to a non pedestrian lane\");\n\t\t\t\treturn null;\n\t\t\t}\n\n\t}", "private GameObject spawnBoss(LogicEngine in_logicEngine,LevelManager in_manager)\r\n\t{\n\t\tGameObject go = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/redcube.png\",in_logicEngine.SCREEN_WIDTH/2,LogicEngine.rect_Screen.getHeight()+50,0);\r\n\t\tboss = go;\r\n\t\t\r\n\t\tboss.i_animationFrameRow = 1;\r\n\t\tboss.i_animationFrame =0;\r\n\t\tboss.i_animationFrameSizeWidth =75;\r\n\t\tboss.i_animationFrameSizeHeight =93;\r\n\t\t\r\n\t\tboss.v.setMaxForce(1);\r\n\t\tboss.v.setMaxVel(5);\r\n\t\tboss.stepHandlers.add( new BounceOfScreenEdgesStep());\r\n\t\t\r\n\t\t\r\n\t\tboss_arrive.setAttribute(\"arrivedistance\", \"50\", null);\r\n\t\tboss.stepHandlers.add( new CustomBehaviourStep(boss_arrive));\r\n\t\tboss.isBoss = true;\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(boss, 150, 40, true,1);\r\n\t\t\r\n\t\tif(Difficulty.isMedium())\r\n\t\t\tc.f_numberOfHitpoints = 200;\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t\tc.f_numberOfHitpoints = 250;\r\n\t\t\r\n\t\tif(Difficulty.isMedium())\r\n\t\t\ti_bossBubbleEvery = 125;\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t\ti_bossBubbleEvery = 100;\r\n\t\t\r\n\t\t\r\n\t\tc.addHitpointBossBar(in_logicEngine);\r\n\t\tc.setExplosion(Utils.getBossExplosion(boss));\r\n\t\tboss.collisionHandler = c;\r\n\t\t\r\n\t\tboss.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t//initial velocity of first one \r\n\t\tboss.v.setVel(new Vector2d(0,-5));\r\n\t\t\r\n\t\tGameObject Tadpole1 = in_manager.spawnTadpole(in_logicEngine);\r\n\t\tGameObject Tadpole2 = in_manager.spawnTadpole(in_logicEngine);\r\n\t\t\r\n\t\tGameObject Bubble = null;\r\n\t\t\r\n\t\t\r\n\t\tBubble = spawnBossBubble(in_logicEngine, 0, 3);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tTadpole1.v.setVel(new Vector2d(-10,5));\r\n\t\tTadpole2.v.setVel(new Vector2d(10,5));\r\n\t\tBubble.v.setVel(new Vector2d(0,-5));\r\n\t\t\r\n\t\tLaunchShipsStep l1 = new LaunchShipsStep(Tadpole1 , 50, 5, 1, false);\r\n\t\tLaunchShipsStep l2 = new LaunchShipsStep(Tadpole2, 50, 5, 1, true);\r\n\t\tLaunchShipsStep l3 = new LaunchShipsStep(Bubble, i_bossBubbleEvery, 1, 1, true);\r\n\t\tl1.b_addToBullets = true;\r\n\t\tl2.b_addToBullets = true;\r\n\t\t\r\n\t\tboss.stepHandlers.add(l1);\r\n\t\tboss.stepHandlers.add(l2);\r\n\t\tboss.stepHandlers.add(l3);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\td_eye = new Drawable();\r\n\t\td_eye.i_animationFrameSizeHeight=8;\r\n\t\td_eye.i_animationFrameSizeWidth=8;\r\n\t\td_eye.i_animationFrameRow = 3;\r\n\t\td_eye.str_spritename = \"data/\"+GameRenderer.dpiFolder+\"/eye.png\";\r\n\t\t\r\n\t\tboss.visibleBuffs.add(d_eye);\r\n\t\t\r\n\t\treturn boss;\r\n\t}", "@Override\r\n\tpublic void spawn(Location location) {\n\t\t\r\n\t}", "public void plant(int x, int y) throws IOException {\r\n\t\tint level = killed / 5 + 1;\r\n\t\t// The amount of plants cannot exceed the number of zombies\r\n\t\tif (planted <= zombies.size() ) {\r\n\t\t\tfield[x][y] = new Plant(level*3, Plants.PEASHOOTER);\r\n\t\t\tplanted++;\r\n\t\t\tupdate(getGraphics());\r\n\t\t}\r\n\t}", "@Override\n protected void spawnInWorld(float x, float y, float xVel, float yVel)\n {\n PolygonShape hitbox = new PolygonShape();\n hitbox.setAsBox(3.0F, 1.0F, new Vector2(0, 0), 0);\n \n //Set up body definition - Defines the type of physics body that this is\n BodyDef bodyDef = new BodyDef();\n bodyDef.type = BodyDef.BodyType.DynamicBody;\n bodyDef.position.set(x, y);\n \n //Set up physics body - Defines the actual physics body\n this.physBody = this.world.getPhysWorld().createBody(bodyDef);\n this.physBody.setUserData(this); //Store this object into the body so that it isn't lost\n \n //Set up physics fixture - Defines physical properties\n FixtureDef fixtureDef = new FixtureDef();\n fixtureDef.shape = hitbox;\n fixtureDef.density = 100.0F; //About 1 g/cm^2 (2D), which is the density of water, which is roughly the density of humans.\n fixtureDef.friction = 0.1F; //friction with other objects\n fixtureDef.restitution = 0.1F; //Bouncyness\n \n //Set which collision type this object is\n fixtureDef.filter.categoryBits = COL_SEA_CREATURE;\n //Set which collision types this object collides with\n fixtureDef.filter.maskBits = COL_ALL ^ COL_SEA_PROJECTILE; //Collide with everything except sea creature projectiles\n \n this.physBody.createFixture(fixtureDef);\n \n //Set the linear damping\n this.physBody.setLinearDamping(5F);\n \n //Set the angular damping\n this.physBody.setAngularDamping(2.5F);\n \n //Apply impulse\n this.physBody.applyLinearImpulse(xVel, yVel, x, y, true);\n \n //Dispose of the hitbox shape, which is no longer needed\n hitbox.dispose();\n }", "void spawnItem(@NotNull Point point) {\n int anInt = r.nextInt(100) + 1;\n if (anInt <= 10)\n objectsInMap.add(new AmmoItem(point));\n else if (anInt <= 20)\n objectsInMap.add(new HealthItem(point));\n else if (anInt <= 30)\n objectsInMap.add(new ShieldItem(point));\n else if (anInt <= 40)\n objectsInMap.add(new StarItem(point));\n else if (anInt <= 45)\n objectsInMap.add(new LivesItem(point));\n }", "public Obstacle(Location location) {\n super(location);\n }", "public void spawn(boolean type)\n\t{\n\t\tif (type)\n\t\t{\n\t\t\triver[findEmpty()] = new Bear();\n\t\t}\n\t\telse\n\t\t{\n\t\t\triver[findEmpty()] = new Fish();\n\t\t}\n\t}", "@Override\r\n public Food createFood(List<Coordinate> obstacles) {\r\n Random random = new Random();\r\n double num = random.nextDouble();\r\n\r\n if (num <= MushroomPowerUp.rarity) {\r\n return new MushroomPowerUp(randomCoordinates(obstacles));\r\n }\r\n if (num <= DoubleScorePowerUp.rarity + MushroomPowerUp.rarity) {\r\n return new DoubleScorePowerUp(randomCoordinates(obstacles));\r\n }\r\n return new AppleFactory().createFood();\r\n }", "public void makeHero()\r\n { \r\n maxHealth = 100;\r\n health = maxHealth;\r\n }", "public Cow(int _pos_x , int _pos_y)\n {\n pos_x = _pos_x;\n pos_y = _pos_y;\n availableProduct = false;\n hunger_countdown = 5;\n allowed_tiles = \"Grassland\";\n }", "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 }", "private void spawnEnemy() {\n float randomEnemy = (float) Math.random();\n\n if (round == 1) {\n addActorFunction.accept(new SimpleEnemy(tileSet));\n } else {\n float speedMultiplier = 1 + (0.08f * round);\n float healthMultiplier = 1 + (0.01f * round * round);\n\n if (randomEnemy < (round - 1) * 0.1) {\n addActorFunction.accept(new HeavyEnemy(tileSet, speedMultiplier, healthMultiplier));\n } else {\n addActorFunction.accept(new SimpleEnemy(tileSet, speedMultiplier, healthMultiplier));\n }\n }\n }", "private boolean spawn(int x, int y) {\n\t\treturn false;\n\t}", "public Field(int w, int h, int numberPoney, int numberRounds) {\n this.height = h;\n this.width = w;\n ObjectsFactory objectsFactory = new ObjectsFactory();\n\n this.setPoney(new Poney[numberPoney]);\n this.setObstacle(new Obstacle[numberPoney]);\n if (numberPoney == 5) {\n this.getPoney()[0] = (PoneyAmeliore) objectsFactory.getObject(\"PoneyAmeliore\", colorMap[0], 0 * 110);\n this.getPoney()[1] = (PoneyIA) objectsFactory.getObject(\"PoneyIA\", colorMap[1], 1 * 110);\n this.getPoney()[2] = (PoneyAmeliore) objectsFactory.getObject(\"PoneyAmeliore\", colorMap[2], 2 * 110);\n this.getPoney()[3] = (PoneyIA) objectsFactory.getObject(\"PoneyIA\", colorMap[3], 3 * 110);\n this.getPoney()[4] = (PoneyIA) objectsFactory.getObject(\"PoneyIA\", colorMap[4], 4 * 110);\n }\n for (int i = 0; i < numberPoney; i++) {\n\n int choice = 1 + (int) (Math.random() * ((2 - 1) + 1));\n System.out.println(choice);\n if (choice == 1)\n this.getObstacle()[i] = (ObstacleDeplace) objectsFactory.getObject(\"ObstacleDeplace\", \"\", (i * 110) + 50);\n else\n this.getObstacle()[i] = (ObstacleStatique) objectsFactory.getObject(\"ObstacleStatique\", \"\", (i * 110) + 50);\n\n }\n this.numberPoney = numberPoney;\n this.numberObstacles = numberPoney;\n this.numberRounds = numberRounds;\n this.finished = false;\n setRank(new Vector());\n addNeighbour();\n }", "public void setConstructingObstacle(Obstacle obstacle);", "public void createRoom() {\n int hp = LabyrinthFactory.HP_PLAYER;\n if (hero != null) hp = hero.getHp();\n try {\n labyrinth = labyrinthLoader.createLabyrinth(level, room);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n characterLoader.createCharacter(level, room);\n hero = characterLoader.getPlayer();\n if (room > 1) hero.setHp(hp);\n createMonsters();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public GameObject spawnBomber(LogicEngine in_logicEngine){\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bomber.png\",((float)LogicEngine.SCREEN_WIDTH)+50,LogicEngine.SCREEN_HEIGHT-50,0);\r\n\t\tship.i_animationFrameSizeHeight = 58;\r\n\t\tship.i_animationFrameSizeWidth = 58;\r\n\t\t\r\n\t\t//fly back and forth\r\n\t\tLoopWaypointsStep s = new LoopWaypointsStep();\r\n\t\ts.waypoints.add(new Point2d(-30,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\ts.waypoints.add(new Point2d(LogicEngine.SCREEN_WIDTH+50,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\t\r\n\t\tship.b_mirrorImageHorizontal = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(s);\r\n\t\tship.v.setMaxForce(5.0f);\r\n\t\tship.v.setMaxVel(5.0f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\r\n\r\n\t\t//tadpole bullets\r\n\t\tGameObject go_tadpole = this.spawnTadpole(in_logicEngine);\r\n\t\tgo_tadpole.stepHandlers.clear();\r\n\t\tFlyStraightStep fly = new FlyStraightStep(new Vector2d(0,-0.5f));\r\n\t\tfly.setIsAccelleration(true);\r\n\t\t\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t{\tgo_tadpole.v.setMaxVel(5);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\telse\r\n\t\t{\tgo_tadpole.v.setMaxVel(10);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\tgo_tadpole.stepHandlers.add(fly);\r\n\t\tgo_tadpole.v.setVel(new Vector2d(-2.5f,0f));\r\n\t\t\r\n\t\t\r\n\t\t//bounce on hard and medium\r\n\t\tif(Difficulty.isHard() || Difficulty.isMedium())\r\n\t\t{\r\n\t\t\tBounceOfScreenEdgesStep bounce = new BounceOfScreenEdgesStep();\r\n\t\t\tbounce.b_sidesOnly = true;\r\n\t\t\tgo_tadpole.stepHandlers.add(bounce);\r\n\t\t}\r\n\t\t\r\n\t\t//drop bombs\r\n\t\tLaunchShipsStep launch = new LaunchShipsStep(go_tadpole, 20, 5, 3, true);\r\n\t\tlaunch.b_addToBullets = true;\r\n\t\tlaunch.b_forceVelocityChangeBasedOnParentMirror = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(launch);\r\n\t\tship.rotateToV=true;\r\n\t\t\r\n\t\t//give it some hp\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 50, 50f);\r\n\t\tc.setSimpleExplosion();\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t\r\n\t}", "public Heroes(int x, int y,int tamanioX, int tamanioY,String nombre, boolean spawned,boolean alive, int HP, int velocidad) {//inicio de el constructor por paramteros que recibe si esta vivo, la vida, velocidad\r\n\t\t\tsuper(x,y,tamanioX,tamanioY,nombre,spawned,alive,HP,velocidad);\r\n\t\r\n\t\t}", "public Hole(Map map){\n //tree\n ModelLoader loader = new ObjLoader();\n model = loader.loadModel(Gdx.files.internal(\"hole/flagBlue.obj\"));\n hole = new ModelInstance(model);\n\n hole.transform.translate(map.getHolePosTranslV2().x, map.getHeight(map.getHolePosTranslV2(), -0.5f),map.getHolePosTranslV2().y ) ;\n hole.transform.scl(2f);\n }", "Piece(int a, int b, int player)\n {\n x = a;\n y = b;\n this.player = player;\n }", "public Point randomPoint() \t // creates a random point for gameOjbects to be placed into\r\n\t{\n\t\tint x = rand.nextInt(900);\r\n\t\tx = x + 50;\r\n\t\tint y = rand.nextInt(900);\r\n\t\ty = y + 50;\r\n\t\tPoint p = new Point(x, y);\r\n\t\treturn p;\r\n\t}", "public void newShot(Graphics g, Pea[] p, int numPeas, int px, int py) {\r\n\t\tfor(int i = 0; i < numPeas; i++) {\r\n\t \tif(!p[i].getMoving() ) {\r\n\t \t\tp[i].setMoving(true);\r\n\t \t\tp[i].setX(px);\r\n\t \t\tp[i].setY(py);\r\n\t \t\tbreak;\r\n\t \t}\r\n\t }\r\n\t \r\n\t}", "public void enterRoom(Person p) {\n if (p.poisoned) {\n System.out.println(\"The poison eats away at you. You take 5 damage.\");\n p.hp -= 5;\n System.out.println(\"You now have \" + p.hp + \"health\");\n if (p.hp <= 0) {\n\n gameOff();\n }\n }\n occupant = p;\n p.setxLoc(this.xLoc);\n p.setyLoc(this.yLoc);\n Scanner n = new Scanner(System.in);\n\n if (!m.sleep) {\n if (m.alive) {\n System.out.println(\"There's a monster in the room!\");\n } else {\n System.out.println(\"The monster's remains lies before you.\");\n }\n m.aggro = true;\n while (m.alive && m.aggro) {\n if (m.hp <= 0) {\n m.alive = false;\n int g = m.dropGold();\n System.out.println(\"You gain \" + g + \" Gold\");\n p.gold += g;\n }\n int damage = m.counterAttack(p);\n System.out.println(\"The monster bites you. You take \" + damage + \" damage.\");\n p.hp -= damage;\n if (p.hp <= 0) {\n System.out.println(\"You died. No one knows you died.\");\n Runner.gameOff();\n }\n System.out.println(\"You have \" + p.hp + \" health.\");\n System.out.println(\"What do you do now? (Fight, Run)\");\n String re = n.nextLine();\n if (re.equalsIgnoreCase(\"run\")) {\n damage = (int) (m.counterAttack(p) / p.dex);\n System.out.println(\"The monster bites you. You take \" + damage + \" damage.\");\n p.hp -= damage;\n m.aggro = false;\n }\n if (re.equalsIgnoreCase(\"Fight\")) {\n double dam = (p.str + p.str * Math.random()) / (m.resist + 1);\n\n m.hp -= dam;\n System.out.println(\"You deal \" + dam + \"damage.\");\n if (m.hp <= 0) {\n m.alive = false;\n System.out.println(\"The monster howls as you deal a finishing blow.\");\n int g = m.dropGold();\n System.out.println(\"You gain \" + p.gold + \" Gold\");\n p.gold += g;\n m.threat = false;\n p.exp += (m.attack + m.resist) * floor;\n System.out.println(\"You gain \" + (m.attack + m.resist) * floor + \" EXP\");\n if (p.exp >= 100) {\n p.exp -= 100;\n p.level++;\n System.out.println(\"You leveled up! You gain +1 Strength and +1 Dexterity\");\n p.str++;\n p.dex++;\n }\n }\n }\n }\n }\n if (m.alive) {\n if (m.sleep) {\n System.out.println(\"You find a sleeping monster. Do you attack it? (Y/N)\");\n\n String q = n.nextLine();\n if (q.equalsIgnoreCase(\"yes\") || q.equalsIgnoreCase(\"y\")) {\n\n double dam = p.str * (1.5) + p.str * Math.random();\n m.hp -= dam;\n System.out.println(\"You deal \" + dam + \" damage.\");\n m.aggro = true;\n if (m.hp <= 0) {\n System.out.println(\"The monster dies on the spot. Who's the real monster here?\");\n m.alive = false;\n int g = m.dropGold();\n System.out.println(\"You gain \" + g + \" Gold\");\n\n p.gold += g;\n System.out.println(\"You now have \" + p.gold + \" Gold\");\n p.exp += (m.attack + m.resist) * floor;\n System.out.println(\"You gain \" + (m.attack + m.resist) * floor + \" EXP\");\n if (p.exp >= 100) {\n p.exp -= 100;\n p.level++;\n System.out.println(\"You leveled up! You gain +1 Strength and +1 Dexterity\");\n p.str++;\n p.dex++;\n }\n }\n while (m.alive && m.aggro) {\n if (m.hp <= 0) {\n m.alive = false;\n int g = m.dropGold();\n System.out.println(\"You gain \" + g + \" Gold\");\n p.gold += g;\n System.out.println(\"You now have \" + p.gold + \"Gold\");\n }\n int damage = m.counterAttack(p);\n System.out.println(\"The monster bites you. You take \" + damage + \" damage.\");\n p.hp -= damage;\n if (p.hp <= 0) {\n System.out.println(\"You died. Serves you right for hitting a sleeping monster.\");\n Runner.gameOff();\n }\n System.out.println(\"You have \" + p.hp + \" health.\");\n System.out.println(\"What do you do now? (Fight, Run)\");\n q = n.nextLine();\n if (q.equalsIgnoreCase(\"run\")) {\n damage = (m.counterAttack(p) / p.dex);\n System.out.println(\"The monster bites you. You take \" + damage + \" damage.\");\n p.hp -= damage;\n m.aggro = false;\n }\n if (q.equalsIgnoreCase(\"Fight\")) {\n dam = (p.str + p.str * Math.random()) / (m.resist + 1);\n m.hp -= dam;\n System.out.println(\"You deal \" + dam + \"damage.\");\n if (m.hp <= 0) {\n m.alive = false;\n System.out.println(\"The monster howls as you deal a finishing blow.\");\n int g = m.dropGold();\n System.out.println(\"You gain \" + g + \" Gold\");\n p.gold += g;\n System.out.println(\"You now have \" + p.gold + \" Gold\");\n m.threat = false;\n p.exp += (m.attack + m.resist) * floor;\n System.out.println(\"You gain \" + (m.attack + m.resist) * floor + \" EXP\");\n if (p.exp >= 100) {\n p.exp -= 100;\n p.level++;\n System.out.println(\"You leveled up! You gain +1 Strength and +1 Dexterity\");\n p.str++;\n p.dex++;\n }\n }\n }\n\n }\n } else {\n System.out.println(\"You let the sleeping monster be.\");\n m.threat = false;\n n.close();\n }\n\n }\n }\n else\n {\n System.out.println(\"The monster's remains are still here.\");\n }\n }", "public void spawnNpcOnChance(Location location) {\r\n\t\t\tif(location.isOutdoors() && Math.random() < 0.20) {\r\n\t\t\t\tthis.spawnEnemy(location);\r\n\t\t\t}\r\n\t\t}", "public Critter(){\n\tthis.x_location = (int) (Math.random()*99);\n\tthis.y_location = (int) (Math.random()*99);\n\tthis.wrap();\n\t}", "public Warrior(Point3D position, int speed) {\r\n super(\"img/Ants/warrior.png\", position, speed);\r\n currentBehaviour = WarriorBehaviour.PATROL;\r\n }", "@Override \n public void collide(Ball ball, Collidable collidable) {\n super.collide(ball, collidable);\n Vect transferLoc = new Vect(this.getLocation().x()+0.5, this.getLocation().y()+0.5);\n Double theta = Math.random()*2*Math.PI;\n board.addBall(new Ball(transferLoc, new Vect(Constants.SPAWNER_SHOOT_VELOCITY*Math.cos(theta),Constants.SPAWNER_SHOOT_VELOCITY*Math.sin(theta) ), this.getName()+\"SpawnedBall\"+this.spawnCount, board.getGravity(), board.getFriction1(), board.getFriction2()));\n spawnCount += 1;\n this.trigger();\n }", "private void spawnBigEnemy(IEnemyService spawner, World world, GameData gameData) {\r\n if (spawner != null) {\r\n spawner.createBigEnemy(world, gameData, new Position(randomIntRange(1600, 3200), gameData.getGroundHeight()));\r\n spawner.createBigEnemy(world, gameData, new Position(randomIntRange(-600, -2000), gameData.getGroundHeight()));\r\n }\r\n }", "public WallCollision(NinjaEntity player){\n this.player = player;\n }", "public Square createWall() {Collect.Hit(\"BoardFactory.java\",\"createWall()\"); Collect.Hit(\"BoardFactory.java\",\"createWall()\", \"1976\");return new Wall(sprites.getWallSprite()) ; }", "private void wentOffWall() {\n //random location\n b.numX = r.nextInt(2400) + 100;\n b.numY = r.nextInt(1400) + 100;\n //random speed\n b.xSpeed = this.newSpeed();\n b.ySpeed = this.newSpeed();\n }", "public void spawnWanderingSeeker(LogicEngine in_logicEngine)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/triangle.png\",(float)LogicEngine.SCREEN_WIDTH*Math.random(),LogicEngine.SCREEN_HEIGHT-10,0);\r\n\t\t\t\t\r\n\t\t//set animation frame\r\n\t\tship.i_animationFrame=1;\r\n\t\tship.i_animationFrameRow=0;\r\n\t\tship.i_animationFrameSizeWidth=16;\r\n\t\tship.i_animationFrameSizeHeight=16;\r\n\t\t\r\n\t\t//wander \t\r\n\t\tCustomBehaviourStep cb = new CustomBehaviourStep(new Wander(-2.5,2.5,20,0.1));\r\n\t\tship.stepHandlers.add( cb);\r\n\t\t\r\n\t\t//chase player if on medium or hard\r\n\t\tif(Difficulty.difficulty == DIFFICULTY.MEDIUM || \r\n\t\t\t\tDifficulty.difficulty == DIFFICULTY.HARD)\r\n\t\t{\t\r\n\t\t\tSeekNearestPlayerStep sps = new SeekNearestPlayerStep(100);\r\n\t\t\tship.stepHandlers.add(sps);\r\n\t\t}\r\n\t\r\n\t\tship.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-2)));\r\n\t\tship.collisionHandler = new DestroyIfEnemyCollision(ship, 10, true);\r\n\t\tship.v.setMaxForce(2);\r\n\t\tship.v.setMaxVel(2);\r\n\t\t\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t}", "private void newPiece() {\n curPiece.setRandomShape();\n//compute the initial curX and curY values \n curX = BOARD_WIDTH / 2 + 1;\n curY = BOARD_HEIGHT - 1 + curPiece.minY();\n//if a piece reaches the top and cannot drop any more piece\n if (!tryMove(curPiece, curX, curY)) {\n//cancel timer and display game over\n curPiece.setShape(Tetrominoe.NoShape);\n timer.cancel();\n isStarted = false;\n statusbar.setText(\"Game over\");\n }\n }", "public void addDrone(char type) {\n boolean clash = true;\t\t//initialise clash to true\n double xVal = randomGenerator.nextInt(xSize); //find random location\n double yVal = randomGenerator.nextInt(ySize);\n\n while(clash) {\n if(getDroneAt(xVal, yVal) == null) { //keep trying till nothing in that space\n clash = false;\n }\n xVal = randomGenerator.nextInt(xSize);\t\t//random x less than width\n yVal = randomGenerator.nextInt(ySize);\t\t//random y less than height\n\n\n }\n\n if(type == 'd'){ //add piece of type drone to list\n Drone newPiece = new Drone(xVal, yVal);\n drones.add(newPiece);\n }\n else if(type == 'o'){ //add piece of type obstacle to list\n Obstacle newPiece = new Obstacle(xVal, yVal);\n drones.add(newPiece);\n }\n else if(type == 'b'){ //add piece of type bird to list\n Bird newPiece = new Bird(xVal, yVal);\n drones.add(newPiece);\n }\n }", "Tower(Point location)\r\n\t{\r\n\t\tthis.location=location;\r\n\t}", "public void PSShot()\n\t{\n\t\t//collision can only occur if an enemy missile and a PlayerShip are spawned\n\t\tif(gameObj[1].size() > 0 && gameObj[3].size() > 0)\n\t\t{\n\t\t\tint mis = new Random().nextInt(gameObj[3].size());\n\t\t\tgameObj[1].remove(0);\n\t\t\tgameObj[3].remove(mis);\n\t\t\tlives--;\n\t\t\tSystem.out.println(\"An enemy missile has struck a PS -1 life\");\n\t\t\tif(lives >0) \n\t\t\t\tSystem.out.println(\"you have \" + lives + \" left\");\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Game over\");\n\t\t\t\tgameOver();\n\t\t\t}\n\t\t}else\n\t\t\tSystem.out.println(\"A player ship and an enemy missile are not spawned\");\t\t\n\t}", "public void doAi(){\n\t\t\tif(MathHelper.getRandom(0, Game.FRAMERATE * 5) == 5){\n\t\t\t\tsetScared(true);\n\t\t\t}\n\t\t\n\t\t//Update rectangle\n\t\tsetRectangle(getX(), getY(), getTexture().getWidth(), getTexture().getHeight());\n\t\t\n\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\t\n\t\tif(rect.intersects(getRectangle())){\n\t\t\t\n\t\t\tif(StateManager.getState() == StateManager.STATE_BOSSTWO){\n\t\t\t\t\n\t\t\t\t\tsetDestinationX(StateGame.player.getX());\n\t\t\t\t\t\n\t\t\t\t\tsetDestinationY(StateGame.player.getY());\n\t\t\t\t\t\n\t\t\t\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\t\t\t\treachedDestination = (true);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Check for collision with jelly\n\t\tint checkedJelly = (0);\n\t\twhile(checkedJelly < EntityJelly.JELLY.size() && EntityJelly.JELLY.get(checkedJelly) != null){\n\t\t\tif(EntityJelly.JELLY.get(checkedJelly).getDead() == false){\n\t\t\t\tif(getRectangle().intersects(EntityJelly.JELLY.get(checkedJelly).getRectangle())){\n\t\t\t\t\tsetHealth(getHealth() - 2);\n\t\t\t\t\tif(MathHelper.getRandom(1, 10) == 10){\n\t\t\t\t\tAnnouncer.addAnnouncement(\"-2\", 60, EntityJelly.JELLY.get(checkedJelly).getX(), EntityJelly.JELLY.get(checkedJelly).getY());\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tcheckedJelly++;\n\t\t}\n\t\t\n\t\t//If we're out of health, kill the entity\n\t\tif(getHealth() < 0){\n\t\t\tsetDead(true);\n\t\t}\n\t\t\n\t\tif(StateManager.getState() == StateManager.STATE_BOSSTWO){\n\t\t\tif(reachedDestination == true){\n\t\t\t\tif(getScared() == false){\n\t\t\t\tsetY(getY() + getSpeed());\n\t\t\t\t}else{\n\t\t\t\t\tsetY(getY() - getSpeed() * 3);\n\t\t\t\t\tsetX(getX() - getSpeed() * 3);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(getScared() == false){\n\t\t\t\tif(getX() < getDestinationX())\n\t\t\t\t\tsetX(getX() + getSpeed());\n\t\t\t\tif(getX() > getDestinationX())\n\t\t\t\t\tsetX(getX() - getSpeed());\n\t\t\t\tif(getY() < getDestinationY())\n\t\t\t\t\tsetY(getY() + getSpeed());\n\t\t\t\tif(getY() > getDestinationY())\n\t\t\t\t\tsetY(getY() - getSpeed());\n\t\t\t\t}else{\n\t\t\t\t\t\tsetY(getY() - getSpeed() * 3);\n\t\t\t\t\t\tsetX(getX() - getSpeed() * 3);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void moveTowards(){\n \n \n \n if(!exploded){\n \n \n move(speed);\n \n if(isTouching(Enemy.class)){\n move(explosionRadius); \n \n inRange = (ArrayList) getObjectsInRange(explosionRadius + 25, Enemy.class);\n for(Enemy e : inRange){\n e.hit(damage);\n }\n \n //explode\n exploded = true;\n \n image = new GreenfootImage(\"50x50 aoe.png\");\n image.scale(explosionRadius*2, explosionRadius*2);\n setImage(image);\n //getWorld().removeObject(this);\n }\n else if (isAtEdge())\n {\n getWorld().removeObject(this);\n }\n else if ( radius < distance) {\n getWorld().removeObject(this); \n }\n }\n else{\n setImage(image);\n image.setTransparency(image.getTransparency() - 5);\n if(image.getTransparency() <= 0) getWorld().removeObject(this);\n }\n }", "public Pile() {\r\n\t\tconstruirePile();\r\n\t}", "public ObstacleSprite(int left, int top, int right, int bottom, OBSTACLE_SPEED obstacleSpeed, Game game)\n {\n super(left, top, right, bottom, game);\n speed = (int) Math.round(DEFAULT_OBSTACLE_SPEED * (obstacleSpeed.value / 2.0));\n wasTouched = false;\n\n if(obstacleSpriteImage == null)\n {\n Bitmap settingsBitmap = BitmapFactory.decodeResource(resources, R.drawable.missile);\n obstacleSpriteImage = new AndroidImage(settingsBitmap, AndroidGraphics.ImageFormat.ARGB4444);\n }\n\n if(obstacleExplosionImage == null)\n {\n Bitmap settingsBitmap = BitmapFactory.decodeResource(resources, R.drawable.explosion);\n obstacleExplosionImage = new AndroidImage(settingsBitmap, AndroidGraphics.ImageFormat.ARGB4444);\n }\n }", "public Bomb(int x, int y) {\n\t\tsuper(x, y);\n\t\tthis.state = new Spawned();\n\t\tthis.visualStatus = new SimpleIntegerProperty(0);\n\t}", "void animalMove(int x,int y, Living[][] map,int gridLength, int gridWidth){\r\n \r\n boolean age=map[x][y].getAge();\r\n boolean gender=map[x][y].getGender();\r\n boolean checkRight=false;\r\n boolean checkLeft=false;\r\n boolean checkUp=false;\r\n boolean checkDown=false;\r\n boolean up=false;\r\n boolean down=false;\r\n boolean right=false;\r\n boolean left=false;\r\n boolean baby=false;\r\n boolean turn=map[x][y].getMovement(); //Check to see if it moved before in the array\r\n \r\n double random=Math.random();\r\n \r\n \r\n \r\n \r\n //Checks to see if it is possible to even see to the left first\r\n if(y-1>=0){\r\n left=true;\r\n \r\n if(turn && (map[x][y-1] instanceof Plant) ){ //Check to see if there is plants and goes to plants\r\n map[x][y].gainHealth((map[x][y-1].getHealth()));\r\n map[x][y].setMovement(false); \r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n turn=false; \r\n }\r\n if(turn && (map[x][y-1] instanceof Sheep) && (age==map[x][y-1].getAge()) ){ \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x][y-1].getGender()) && (map[x][y].getHealth()>19) && (map[x][y-1].getHealth()>19) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){ \r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null)&& !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n \r\n if( (x-1>=0) && (map[x-1][y]==null)&& !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if((y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){\r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x][y-1].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x][y-1].setMovement(false);\r\n turn=false;\r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n //If it can move to the left need to check if it can foresee more incase there wasn't any place for it to go\r\n if(y-2>=0){\r\n checkLeft=true;\r\n }\r\n }\r\n \r\n //Checks to see if it is possible to even see to the right first \r\n if(y+1<gridWidth){\r\n right=true;\r\n \r\n //Check to move on towards plants\r\n if(turn && (map[x][y+1] instanceof Plant)){\r\n map[x][y].gainHealth(map[x][y+1].getHealth()); \r\n map[x][y].setMovement(false); \r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null;\r\n turn=false; \r\n }\r\n \r\n if(turn && (map[x][y+1] instanceof Sheep && age==map[x][y+1].getAge()) ){ \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x][y+1].getGender()) && (map[x][y].getHealth()>19) && (map[x][y+1].getHealth()>19) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n \r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n \r\n if( (x-1>=0) && (map[x-1][y]==null) && !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheeps will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x][y+1].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x][y+1].setMovement(false);\r\n turn=false; \r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n \r\n //If it can move to the right need to check if it can foresee more incase there wasn't any place for it to go\r\n if(y+2<gridWidth){ \r\n checkRight=true;\r\n }\r\n } \r\n \r\n //Check to see if it can go up\r\n if(x-1>=0){\r\n up=true;\r\n \r\n //Check for plant to go on to upwards \r\n if(turn && (map[x-1][y] instanceof Plant) ){\r\n map[x][y].gainHealth(map[x-1][y].getHealth()); \r\n map[x][y].setMovement(false); \r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n turn=false;\r\n }\r\n \r\n if(turn && (map[x-1][y] instanceof Sheep) && (age==map[x-1][y].getAge()) ){ \r\n //If the ages match age must be false to be adults and both be opposite genders and have more then 19 health\r\n if(turn && !age && !(gender==map[x-1][y].getGender()) &&map[x][y].getHealth()>19 &&map[x-1][y].getHealth()>19){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n if( (y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n \r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null) && !(baby) ){\r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n \r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x-1][y].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x-1][y].setMovement(false);\r\n turn=false; \r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n \r\n //If it can move to upwards need to check if it can foresee more incase there wasn't any place for it to go\r\n if(x-2>=0){\r\n checkUp=true; \r\n }\r\n } \r\n //Check to see where to go downwards\r\n if(x+1<gridLength){\r\n down=true; \r\n \r\n //Check to see if any plants are downwards\r\n if(turn && (map[x+1][y] instanceof Plant) ){\r\n map[x][y].gainHealth( (map[x+1][y].getHealth()));\r\n map[x][y].setMovement(false);\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n turn=false;\r\n } \r\n \r\n if(turn && (map[x+1][y] instanceof Sheep) && (age==map[x+1][y].getAge()) ){ \r\n \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x+1][y].getGender()) && (map[x][y].getHealth()>=20) && (map[x+1][y].getHealth()>=20) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n if( (y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep \r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if( (x-1>=0) && (map[x+1][y]==null) && !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x+1][y].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x+1][y].setMovement(false);\r\n turn=false;\r\n baby=false;\r\n }\r\n }\r\n } \r\n } \r\n if(x+2<gridLength){\r\n checkDown=true;\r\n }\r\n } \r\n \r\n //Movement towards plant only if no immediate sheep/plants are there to move to\r\n if(turn && checkRight && (map[x][y+2] instanceof Plant) ){\r\n if(map[x][y+1]==null){\r\n \r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null;\r\n map[x][y+1].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n if(turn && checkDown && (map[x+2][y] instanceof Plant) ){\r\n if(map[x+1][y]==null){\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n map[x+1][y].setMovement(false);\r\n turn=false;\r\n }\r\n } \r\n if(turn && checkUp && (map[x-2][y] instanceof Plant) ){\r\n if(map[x-1][y]==null){\r\n \r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n map[x-1][y].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n \r\n if(turn && checkLeft && (map[x][y-2] instanceof Plant) ){\r\n if(map[x][y-1]==null){\r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n map[x][y-1].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n \r\n //Random Movement if there are no plants to move towards \r\n if(turn && right && (random<=0.2) ){\r\n if(map[x][y+1]==null){\r\n map[x][y].setMovement(false);\r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null; \r\n }\r\n }\r\n if(turn && left && (random>0.2) && (random<=0.4) ){\r\n if(map[x][y-1]==null){\r\n map[x][y].setMovement(false);\r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n if(turn && up && (random>0.4) && (random<=0.6) ){\r\n if(map[x-1][y]==null){\r\n map[x][y].setMovement(false);\r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n if(turn && down && (random>0.6) && (random<=0.8) ){\r\n if(map[x+1][y]==null){\r\n map[x][y].setMovement(false);\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n }", "public Othello() {\n\t\tmyBoard = new Board(8);\n\t\tplayerBlack = spawnPlayer(Color.BLACK);\n\t\tplayerWhite = spawnPlayer(Color.WHITE);\n\t\tpropertySupport = new PropertyChangeSupport(this);\n\t\tinitialisationBoard();\n\t\tcurrentPlayer = playerBlack;\n\t\tfoeHasPlay = true;\n\t\taiPlay = false;\n\t}", "@Override\n\tpublic void makeShoeComfortable() {\n\t\t\n\t}", "public Water_Hero(RefLinks refLink, float x, float y)\r\n {\r\n ///Apel al constructorului clasei de baza\r\n super(refLink, x,y, Character.DEFAULT_CREATURE_WIDTH, Character.DEFAULT_CREATURE_HEIGHT);\r\n\r\n ///Seteaza imaginea de start a eroului\r\n image = Assets.heroLeft;\r\n\r\n ///Stabilieste pozitia relativa si dimensiunea dreptunghiului de coliziune, starea implicita(normala)\r\n normalBounds.x = 16;\r\n normalBounds.y = 16;\r\n normalBounds.width = 16;\r\n normalBounds.height = 32;\r\n\r\n ///Stabilieste pozitia relativa si dimensiunea dreptunghiului de coliziune, starea de atac\r\n attackBounds.x = 10;\r\n attackBounds.y = 10;\r\n attackBounds.width = 38;\r\n attackBounds.height = 38;\r\n\r\n jumpingTimer = new Timer();\r\n\r\n lista_dinamic_element = new ArrayList<CollisionItem>();\r\n\r\n lista_static_element = new ArrayList<CollisionItem>();\r\n list_fire = new ArrayList<CollisionItem>();\r\n }", "public Boss(String line, String ship, String explosion, Point pos){\r\n\t\tsuper(line,pos,ship,explosion);\r\n\t\tposition=pos;\r\n\t\tbossHb = new Health(600, 10);\r\n\t\tinPosition=false;\r\n\t}", "private void createShips() {\n //context,size, headLocation, bodyLocations\n Point point;\n Ship scout_One, scout_Two, cruiser, carrier, motherShip;\n if(player) {\n point = new Point(maxN - 1, 0); //row, cell\n scout_One = new Ship(1, point, maxN, \"Scout One\", player);\n ships.add(scout_One);\n point = new Point(maxN - 1, 1);\n scout_Two = new Ship(1, point, maxN, \"Scout Two\", player);\n ships.add(scout_Two);\n point = new Point(maxN - 2, 2);\n cruiser = new Ship(2, point, maxN, \"Cruiser\", player);\n ships.add(cruiser);\n point = new Point(maxN - 2, 3);\n carrier = new Ship(4, point, maxN, \"Carrier\", player);\n ships.add(carrier);\n point = new Point(maxN - 4, 5);\n motherShip = new Ship(12, point, maxN, \"MotherShip\", player);\n ships.add(motherShip);\n\n }else{\n Random rand = new Random();\n int rowM = maxN-3;\n int colM = maxN -2;\n int row = rand.nextInt(rowM);\n int col = rand.nextInt(colM);\n point = new Point(row, col);\n motherShip = new Ship(12, point, maxN, \"MotherShip\", player);\n updateOccupiedCells(motherShip.getBodyLocationPoints());\n ships.add(motherShip);\n\n rowM = maxN - 1;\n colM = maxN -1;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n carrier = new Ship(4, point, maxN, \"Carrier\", player);\n updateOccupiedCells(carrier.getBodyLocationPoints());\n ships.add(carrier);\n checkIfOccupiedForSetShip(carrier, row, col, rowM, colM);\n\n\n rowM = maxN - 1;\n colM = maxN;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n cruiser = new Ship(2, point, maxN, \"Cruiser\", player);\n updateOccupiedCells(cruiser.getBodyLocationPoints());\n ships.add(cruiser);\n checkIfOccupiedForSetShip(cruiser, row, col, rowM, colM);\n\n\n rowM = maxN;\n colM = maxN;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n scout_Two = new Ship(1, point, maxN, \"Scout_Two\", player);\n updateOccupiedCells(scout_Two.getBodyLocationPoints());\n ships.add(scout_Two);\n checkIfOccupiedForSetShip(scout_Two, row, col, rowM, colM);\n\n rowM = maxN;\n colM = maxN;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n scout_One = new Ship(1, point, maxN, \"Scout_One\", player);\n updateOccupiedCells(scout_One.getBodyLocationPoints());\n ships.add(scout_One);\n checkIfOccupiedForSetShip(scout_One, row, col, rowM, colM);\n\n\n\n\n }\n //Need an algorithm to set enemy ship locations at random without overlaps\n }", "public void spawnCreature(){\n\t\tif(spawnType.equalsIgnoreCase(\"worm\")){\n\t\t\tRuntimeObjectFactory.getObjectFromPool(\"worm\"+spawnId);\n\t\t}else if(spawnType.equalsIgnoreCase(\"antorc\")){\n\t\t\tGdx.app.debug(TamerGame.LOG, this.getClass()\n\t\t\t\t\t.getSimpleName() + \" :: Ant entered\");\t\t\t\n\t\t\t//CHANGE SPAWNING IMPLEMENTATION\n\t\t\tAntOrc orc = new AntOrc();\n\t\t\torc.setPosition(getPosition());\n\t\t\torc.setWaypoint(waypoint);\n\t\t\tenvironment.addNewObject(orc);\n\t\t\tEventPool.addEvent(new tEvent(this,\"spawnCreature\",sleepTime,1));\n\t\t}\n\t\t\t\n\t}", "public void shootBabyInto(int x, int y) {\n home.world.cells[x][y].resident\n = new Omnivore(home.world.cells[x][y]);\n }", "void placeTower();", "public static void reproduce (Species [][] map, int sheepHealth, int wolfHealth, int plantHealth) {\n \n // Place the baby\n int babyY, babyX;\n \n // Check if the baby has been placed\n int spawned = 0;\n \n for (int y = 0; y < map[0].length; y++){\n for (int x = 0; x < map.length; x++){\n \n boolean [][] breeding = breedChoice (map, x, y, plantHealth);\n \n // Sheep upwards to breed with\n if (breeding[0][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y-1][x]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Sheep downwards to breed with\n } else if (breeding[1][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y+1][x]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Sheep to the left to breed with\n } else if (breeding[2][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y][x-1]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Sheep to the right to breed with\n } else if (breeding[3][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y][x+1]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Wolf upwards to breed with\n } else if (breeding[0][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y-1][x]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n // Wolf downwards to breed with\n } else if (breeding[1][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y+1][x]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n // Wolf to the left to breed with\n } else if (breeding[2][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y][x-1]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n // Wolf to the right to breed with\n } else if (breeding[3][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y][x+1]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n }\n \n }\n }\n \n }", "@Override\n void planted() {\n super.planted();\n TimerTask Task = new TimerTask() {\n @Override\n public void run() {\n\n for (Drawable drawables : gameState.getDrawables()) {\n if (drawables instanceof Zombie) {\n int distance = (int) Math.sqrt(Math.pow((drawables.x - x), 2) + Math.pow((drawables.y - y), 2));\n if (distance <= explosionradious) {\n ((Zombie) drawables).hurt(Integer.MAX_VALUE);\n }\n }\n }\n\n life = 0;\n }\n\n };\n\n Timer timer = new Timer();\n timer.schedule(Task, 2000);\n }", "public void placeMandatoryObjects()\r\n {\r\n Random rng = new Random();\r\n //Adds an endgame chest somewhere (NOT in spawn)\r\n Room tempRoom = getRoom(rng.nextInt(dungeonWidth - 1) +1, rng.nextInt(dungeonHeight - 1) +1);\r\n tempRoom.addObject(new RoomObject(\"Endgame Chest\", \"overflowing with coolness!\"));\r\n if (tempRoom.getMonster() != null)\r\n {\r\n tempRoom.removeMonster();\r\n }\r\n tempRoom.addMonster(new Monster(\"Pelo Den Stygge\", \"FINAL BOSS\", 220, 220, 12));\r\n //Adds a merchant to the spawn room\r\n getRoom(0,0).addObject(new RoomObject(\"Merchant\", \"like a nice fella with a lot of goods (type \\\"wares\\\" to see his goods)\"));\r\n }", "public void move() {\n\t\tsetHealth(getHealth() - 1);\n\t\t//status();\n\t\tint row = getPosition().getRow() ;\n\t\tint column = getPosition().getColumn();\n\t\tint randomInt = (int)((Math.random()*2) - 1);\n\t\t\n\t\tif(hunter == false && row < 33) {\n\t\t\tif(row == 32) {\n\t\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(row == 0) {\n\t\t\t\tgetPosition().setCoordinates(row + 1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 99) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column - 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 0) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column + 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t}\n\t\tif(hunter == false && row > 32) {\n\t\t\t//setHealth(100);\n\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\tsetPosition(getPosition()) ;\n\t\t}\n\t\telse {\n\t\t\tif(row < 65 && hunter == true) {\n\t\t\t\tgetPosition().setCoordinates(row + 1, column);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tgetPosition().setCoordinates(65, column);\n\t\t\t\tsetPosition(getPosition());\n\t\t\t\t//Check if there is a gazelle\n\t\t\t\tPair [][] range = {{Drawer.pairs[row+1][column-1],Drawer.pairs[row+1][column],\n\t\t\t\t\t\t\t Drawer.pairs[row+1][column+1]}, {\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column-1],\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column],Drawer.pairs[row+2][column+1]}};\n\t\t\t\t\n\t\t\t\tfor(Pair [] line: range) {\n\t\t\t\t\tfor(Pair prey: line) {\n\t\t\t\t\t\tif(prey.getAnimal() instanceof Gazelle ) {\n\t\t\t\t\t\t\tattack();\n\t\t\t\t\t\t\tprey.getAnimal().die();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "Wall(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\", \"2420\");}", "public static Action spawn(final Class<?> e) {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.isFacingValidLocation() && a.getFacing() == null) {\n if(a.energy >= getCost()) {\n try {\n Actor b = (Actor) e.newInstance();\n b.putSelfInGrid(a.getGrid(), a.getLocation().getAdjacentLocation(a.getDirection()));\n } catch(InstantiationException r) {\n r.printStackTrace();\n } catch(IllegalAccessException r) {\n r.printStackTrace();\n }\n a.energy = a.energy - 400;\n }\n }\n }\n\n @Override\n public int getCost() {\n return 400;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return e;\n }\n\n @Override\n public String toString() {\n return \"Spawn(\" + (e != null ? e.toString() : \"null\") + \")\";\n }\n };\n }", "public void spawnSateliteShip(LogicEngine in_logicEngine,float in_x)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/gravitonlevel.png\",in_x,LogicEngine.SCREEN_HEIGHT,1);\r\n\t\tship.i_animationFrameSizeWidth = 64;\r\n\t\tship.i_animationFrameSizeHeight = 32;\r\n\t\tship.i_animationFrame = 2;\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tship.v.setMaxForce(1.0f);\r\n\t\tship.v.setMaxVel(4.0f);\r\n\t\t\r\n\t\t\r\n\t\t//fly down\r\n\t\t//ship.stepHandlers.add( new FlyStraightStep(new Vector2d(0,-1f)));\r\n\t\t\r\n\t\tSimplePathfollowing followPathBehaviour = new SimplePathfollowing();\r\n\t\tfollowPathBehaviour.setInfluence(1);\r\n\t\tfollowPathBehaviour.setAttribute(\"arrivedistance\", \"10\", null);\r\n\t\t\r\n\t\t//add waypoints\r\n\t\tfor(int i=0 ; i< 20 ; i++)\r\n\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t//put in some edge ones too\r\n\t\t\tif(r.nextInt(6)%3==0)\r\n\t\t\t\tship.v.addWaypoint(new Point2d((int) LogicEngine.SCREEN_WIDTH * (i%2), LogicEngine.SCREEN_HEIGHT/1.5 + r.nextInt((int) LogicEngine.SCREEN_HEIGHT/5)));\r\n\t\t\telse\r\n\t\t\t\t//put in some random doublebacks etc\r\n\t\t\t\tship.v.addWaypoint(new Point2d(r.nextInt((int) LogicEngine.SCREEN_WIDTH), LogicEngine.SCREEN_HEIGHT/1.5 + r.nextInt((int) LogicEngine.SCREEN_HEIGHT/5)));\r\n\t\t}\r\n\t\tship.v.addWaypoint(new Point2d(LogicEngine.SCREEN_WIDTH/2, -100));\r\n\t\t\r\n\t\tif(Difficulty.isEasy())\r\n\t\t\tship.shotHandler = new BeamShot(50);\r\n\t\telse\r\n\t\tif(Difficulty.isMedium())\r\n\t\t\tship.shotHandler = new BeamShot(40);\r\n\t\telse\r\n\t\tif(Difficulty.isHard())\r\n\t\t\tship.shotHandler = new BeamShot(30);\r\n\t\t\r\n\t\tCustomBehaviourStep b = new CustomBehaviourStep(followPathBehaviour);\r\n\t\tship.stepHandlers.add(b);\r\n\t\t\r\n\t\t//destroy ships that get too close\r\n\t\tHitpointShipCollision hps = new HitpointShipCollision(ship, 10, 32);\r\n\t\thps.setSimpleExplosion();\r\n\t\t\r\n\t\tship.collisionHandler = hps; \r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\t\r\n\t\r\n\t}", "public void boom() {\n\t\tboom.setPosition(sprite.getX(),sprite.getY());\n\t\tsprite = boom;\n\t}", "public Obstacle getConstructingObstacle();", "public void placeBombs(int difficulty){\r\n int randomRow;\r\n int randomCol;\r\n int maxBombs;\r\n if(difficulty == 1){\r\n maxBombs = 12;\r\n bombDifficulty(maxBombs);\r\n\r\n }\r\n if(difficulty == 2){\r\n maxBombs = 41;\r\n bombDifficulty(maxBombs);\r\n }\r\n if(difficulty == 3){\r\n maxBombs = 102;\r\n bombDifficulty(maxBombs);\r\n }\r\n\r\n }", "public OutputHole(float __pos_x, float __pos_y, float __width,\n float __height)\n {\n super(new Vector(__pos_x, __pos_y), new Vector(__width, __height),\n Color.BLACK);\n }", "public GridCell(int xPosition, int yPosition, char actor) // Based on the actor we are creating respective object.\n {\n\t xPos = xPosition;\n\t yPos = yPosition;\n\t if(actor == Constants.PATH)\n\t {\n\t\t a = new Actor();\n\t }\n\t if( actor == Constants.ROBOT)\n\t {\n\t\t a = new PlayerRobotManual();// creating PlayerRobotManual object.\n\t }\n\t if(actor == 'x' || actor == Constants.WALL)\n\t {\n\t\t a = new Wall();// wall object.\n\t }\n\t if(actor == 'b' || actor == Constants.BOMB)\n\t {\n\t\t a = new Bomb(); // Bomb objection.\n\t }\n\t if(actor == Constants.SMALL_CANDY ) \n\t {\n\t\t a = new Candy(Constants.SMALL_CANDY); // candy object of type small.\n\t }\n\t if(actor == Constants.SMALL_CANDY ) \n\t {\n\t\t a = new Candy(Constants.SMALL_CANDY);\n\t }\n\t if(actor == Constants.BIG_CANDY)\n\t {\n\t\t a = new Candy(Constants.BIG_CANDY);// candy object of type Big.\n\t }\n\t if(actor == Constants.DUMB_ENEMY)\n\t {\n\t\t a = new DumbEnemy(); // object of dumb enemy which moves in random direction.\n\t }\n\t if(actor == Constants.SENTINEL_ENEMY)\n\t {\n\t\t a = new SentinelEnemy();// THis will be at one fixed postion and will kill the robot if its in neighbour cell.\n\t }\n\t if(actor == Constants.WALKING_SENTINEL)\n\t {\n\t\t a = new WalkingSentinelEnemy();// object for walking sentinel enemy.\n\t }\n\t if(actor == Constants.PLAYER_CHASER)\n\t {\n\t\t a = new SmartEnemy();// object for player chaser enemy.\n\t }\n\t if(actor == Constants.CANDY_CHASER)\n\t {\n\t\t a = new WatcherEnemy();// object for candy chaser enemy.\n\t }\n\t if(actor == Constants.ROBOT_HOLDING_BOMB)\n\t {\n\t\t a = new PlayerRobotHoldingBomb();// object used to repersent the player holding bomb.\n\t }\n\t if(actor == Constants.FLYING_BOMB)\n\t {\n\t\t a = new FlyingBomb(); // Object used to represent the flying bomb.\n\t }\n\t if((int)actor >= 49 && (int)actor <=57)\n\t {\n\t\t a = new WarpZone(actor);\n\t }\n\t if(actor == 'i')\n\t {\n\t\t a = new InvisibleCloak();\n\t\t\t\t \n\t }\n\t}", "private static void spawn(Actor actor, ActorWorld world)\n {\n Random generator = new Random();\n int row = generator.nextInt(10);\n int col = generator.nextInt(10);\n Location loc = new Location(row, col);\n while(world.getGrid().get(loc) != null)\n {\n row = generator.nextInt(10);\n col = generator.nextInt(10);\n loc = new Location(row, col);\n }\n world.add(loc, actor);\n }", "public TestEnemy(Vector2 spawnPoint) {\n super(spawnPoint);\n this.health = MAX_HEALTH;\n this.speed = MAX_SPEED;\n this.damage = DAMAGE;\n this.moneyOnKill = MONEY_ON_KILL;\n this.bounds = new Circle(spawnPoint, RADIUS);\n this.ai = new RunnerAi(this);\n }", "public HanoiTower(){\n\n }", "public void spawnRobots() {\n\t\tString robotName\t= \"\";\n\t\tPlayer newPlayer\t= null;\n\t\tint numberOfRobots \t= 0;\n\t\tint robotsPerPlayer = server.getRobotsPerPlayer();\n\t\tint numberOfPlayers = server.getPlayerCount();\n\t\tint robotsPerLevel\t= server.getRobotsPerLevel();\n\t\t\n\t\t// calculate how many robots that should be spawned\n\t\trobotsPerPlayer = robotsPerPlayer *\n\t\t\t\t\t\t (robotsPerLevel * \n\t\t\t\t\t\t currentLevel);\n\t\t\n\t\tnumberOfRobots \t= robotsPerPlayer *\n\t\t\t\t\t\t numberOfPlayers;\n\t\t\n\t\tfor(int i = 0; i < numberOfRobots; i++) {\n\t\t\trobotName \t\t\t= \"Robot\" + (i+1);\n\t\t\tnewPlayer = initPlayerToGameplane(robotName, \n\t\t\t\t\t\t\t\t \t\t\t PlayerType.Robot, \n\t\t\t\t\t\t\t\t \t\t\t 0, 0);\n\t\t\t\n\t\t\tHandleCommunication.broadcastToClient(null, \n\t\t\t\t\t\t\t\t\t\t\t\t server.getConnectedClientList(), \n\t\t\t\t\t\t\t\t\t\t\t\t SendSetting.AddPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t newPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t null);\n\t\t}\n\t}", "private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }", "void forceSpawn() throws SpawnException;", "void generateEnemy(){\n\t\tEnemy e = new Enemy((int)(Math.random()*\n\t\t\t(cp.getWidthScreen() - (ss.getWidth()/2)))\n\t\t\t,ss.getHeight(), cp.getHieghtScreen());\t\t\t\t//Enemy (int x, int y, int heightScreen)\n\t\tcp.shapes.add(e);\n\t\tenemies.add(e);\n\t}", "public Monster(String name,int monsterType,int health,int monstersWalkDistanceX,int monstersWalkDistanceY,int resourceReward,int monsterSize,int whichSide,int respawnTime)\n {\n this.name=name;\n this.monsterType=monsterType;\n this.health=health;\n this.monstersWalkDistanceX=monstersWalkDistanceX;\n this.monstersWalkDistanceY=monstersWalkDistanceY;\n this.resourceReward=resourceReward;\n this.monsterSize=monsterSize;\n this.whichSide=whichSide;\n this.maxHealth=health;\n this.targetable=true;\n this.visible=true;\n this.respawnTime=respawnTime;\n\n setDefaultMonsterCords();\n\n this.firstCross=pathDrawLots(2)+1;\n this.secondCross=pathDrawLots(2)+3;\n\n }", "public void spawnEnemy(Location location) {\r\n\t\t\tlocation.addNpc((Npc) this.getNpcSpawner().newObject());\r\n\t\t}", "private void createEnemy()\n {\n scorpion = new Enemy(\"Giant Scorpion\", 5, 10); \n rusch = new Enemy(\"Mr. Rusch\", 10, 1000);\n skeleton = new Enemy(\"Skeleton\", 10, 50);\n zombie = new Enemy(\"Zombie\", 12, 25);\n ghoul = new Enemy(\"Ghoul\", 15, 45);\n ghost = new Enemy(\"Ghost\", 400, 100);\n cthulu = new Enemy(\"Cthulu\", 10000000, 999999);\n concierge = new Enemy(\"Concierge\", 6, 100);\n wookie = new Enemy(\"Savage Wookie\", 100, 300);\n }", "public PokemonHielo(Pokemon pokemon) {\n \tsuper(pokemon,500,100,120);\n }", "public SaboWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1);\n addObject(counter, 100, 380); //Add the scoreboard\n addObject(healthBar, 300, 370); //Add the health bar\n addObject(turret, getWidth()/2-5, getHeight()-turret.getImage().getWidth()); \n }", "public void initPlateau() {\r\n\t\t// On place les obstacles\r\n\t\tint epaisseur = 20;\r\n\t\tint delta = 50;\r\n\t\tint espace = 150;\r\n\t\tobstacles.add(new Obstacle(0,0,width,epaisseur));\r\n\t\tobstacles.add(new Obstacle(0,height - epaisseur,width,epaisseur));\r\n\t\tobstacles.add(new Obstacle(0,0,epaisseur,height));\r\n\t\tobstacles.add(new Obstacle(width - epaisseur,0,epaisseur,height));\r\n\t\t\r\n\t\tobstacles.add(new Obstacle(0,100,width-espace,epaisseur));\r\n\t\tobstacles.add(new Obstacle(espace,200,width-espace,epaisseur));\r\n\t\tobstacles.add(new Obstacle(0,300,width-espace,epaisseur));\r\n\t\tobstacles.add(new Obstacle(espace,400,width-espace,epaisseur));\r\n\t\t\r\n\t\t// On place les objectifs\r\n\t\t\r\n\t\tobjectifs.add(new Objectif(400,50));\r\n\t\tobjectifs.add(new Objectif(150,50));\r\n\t\tobjectifs.add(new Objectif(300,50));\r\n\t\tobjectifs.add(new Objectif(50,50));\r\n\t\tobjectifs.add(new Objectif(400,50));\r\n\t\tobjectifs.add(new Objectif(600,50));\r\n\t\tobjectifs.add(new Objectif(700,70));\r\n\t\tobjectifs.add(new Objectif(730,100));\r\n\t\tobjectifs.add(new Objectif(730,130));\r\n\t\tobjectifs.add(new Objectif(100,150));\r\n\t\tobjectifs.add(new Objectif(200,150));\r\n\t\tobjectifs.add(new Objectif(400,150));\r\n\t\tobjectifs.add(new Objectif(500,150));\r\n\t\tobjectifs.add(new Objectif(600,150));\r\n\t\tobjectifs.add(new Objectif(700,150));\r\n\t\tobjectifs.add(new Objectif(70,200));\r\n\t\tobjectifs.add(new Objectif(100,250));\r\n\t\tobjectifs.add(new Objectif(500,250));\r\n\t\tobjectifs.add(new Objectif(300,250));\r\n\t\tobjectifs.add(new Objectif(600,250));\r\n\t\tobjectifs.add(new Objectif(700,270));\r\n\t\tobjectifs.add(new Objectif(730,300));\r\n\t\tobjectifs.add(new Objectif(730,330));\r\n\t\tobjectifs.add(new Objectif(100,350));\r\n\t\tobjectifs.add(new Objectif(200,350));\r\n\t\tobjectifs.add(new Objectif(700,350));\r\n\t\tobjectifs.add(new Objectif(500,350));\r\n\t\tobjectifs.add(new Objectif(300,350));\r\n\t\tobjectifs.add(new Objectif(100,350));\r\n\t\tobjectifs.add(new Objectif(70,400));\r\n\t\tobjectifs.add(new Objectif(100,450));\r\n\t\tobjectifs.add(new Objectif(500,450));\r\n\t\tobjectifs.add(new Objectif(300,450));\r\n\t\tobjectifs.add(new Objectif(600,450));\r\n\t\t\r\n\t}", "private TetrisPiece randomPiece() {\n\t\tint rand = Math.abs(random.nextInt());\n\t\treturn new TetrisPiece(rand % (PIECE_COLORS.length));\n\t}", "private void placeEnemyShips() {\n\t\tint s51 = (int) (Math.random() * 6); // mostly random numbers\n\t\tint s52 = (int) (Math.random() * 10);\n\t\tfor (int i = 0; i < 5; i++)\n\t\t\tpgrid[s51 + i][s52] = 1;\n\n\t\t// Places the ship of length 3\n\t\tint s31 = (int) (Math.random() * 10);\n\t\tint s32 = (int) (Math.random() * 8);\n\t\twhile (pgrid[s31][s32] == 1 || pgrid[s31][s32 + 1] == 1 // prevents\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// overlaps\n\t\t\t\t|| pgrid[s31][s32 + 2] == 1) {\n\t\t\ts31 = (int) (Math.random() * 10);\n\t\t\ts32 = (int) (Math.random() * 8);\n\t\t}\n\t\tpgrid[s31][s32] = 1;\n\t\tpgrid[s31][s32 + 1] = 1;\n\t\tpgrid[s31][s32 + 2] = 1;\n\n\t\t// Places the ship of length 1\n\t\tint s21 = (int) (Math.random() * 10);\n\t\tint s22 = (int) (Math.random() * 9);\n\t\twhile (pgrid[s21][s22] == 1 || pgrid[s21][s22 + 1] == 1) { // prevents\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// overlaps\n\t\t\ts21 = (int) (Math.random() * 10);\n\t\t\ts22 = (int) (Math.random() * 9);\n\t\t}\n\t\tpgrid[s21][s22] = 1;\n\t\tpgrid[s21][s22 + 1] = 1;\n\n\t}", "private void addRandomAsteroid() {\n ThreadLocalRandom rng = ThreadLocalRandom.current();\n Point.Double newAsteroidLocation;\n //TODO: dont spawn on top of players\n Point.Double shipLocation = new Point2D.Double(0,0);\n double distanceX, distanceY;\n do { // Iterate until a point is found that is far enough away from the player.\n newAsteroidLocation = new Point.Double(rng.nextDouble(0.0, 800.0), rng.nextDouble(0.0, 800.0));\n distanceX = newAsteroidLocation.x - shipLocation.x;\n distanceY = newAsteroidLocation.y - shipLocation.y;\n } while (distanceX * distanceX + distanceY * distanceY < 50 * 50); // Pythagorean theorem for distance between two points.\n\n double randomChance = rng.nextDouble();\n Point.Double randomVelocity = new Point.Double(rng.nextDouble() * 6 - 3, rng.nextDouble() * 6 - 3);\n AsteroidSize randomSize;\n if (randomChance < 0.333) { // 33% chance of spawning a large asteroid.\n randomSize = AsteroidSize.LARGE;\n } else if (randomChance < 0.666) { // 33% chance of spawning a medium asteroid.\n randomSize = AsteroidSize.MEDIUM;\n } else { // And finally a 33% chance of spawning a small asteroid.\n randomSize = AsteroidSize.SMALL;\n }\n this.game.getAsteroids().add(new Asteroid(newAsteroidLocation, randomVelocity, randomSize));\n }", "@Override\n\tpublic void spawn(Location loc) {\n\t\t\n\t}", "private void makeRobot(int lvl)\r\n {\r\n maxHealth = lvl*10;\r\n health = maxHealth;\r\n \r\n Equip tempWeapon = null;\r\n Equip tempArmor = null;\r\n if (type == SOLDIER)\r\n {\r\n tempWeapon = new Equip(\"rifle\", Equip.WEAPON, lvl*5);\r\n tempArmor = new Equip(\"leather armor\", Equip.ARMOR, lvl*2);\r\n }\r\n else if (type == ELF)\r\n {\r\n tempWeapon = new Equip(\"bow\", Equip.WEAPON, lvl*5);\r\n tempArmor = new Equip(\"magic armor\", Equip.ARMOR, lvl*2);\r\n }\r\n else if (type == KNIGHT)\r\n {\r\n tempWeapon = new Equip(\"sword\", Equip.WEAPON, lvl*5);\r\n tempArmor = new Equip(\"splendid shield\", Equip.ARMOR, lvl*2);\r\n }\r\n else if (type == MAGICIAN)\r\n {\r\n tempWeapon = new Equip(\"magic\", Equip.WEAPON, lvl*5);\r\n tempArmor = new Equip(\"magic armor\", Equip.ARMOR, lvl*2);\r\n }\r\n else\r\n {\r\n tempWeapon = new Equip(\"broom stick\", Equip.WEAPON, lvl*5);\r\n tempArmor = new Equip(\"straw\", Equip.ARMOR, lvl*2);\r\n }\r\n tempWeapon.changeOwner(this);\r\n tempArmor.changeOwner(this);\r\n tempWeapon.equipTo(this);\r\n tempArmor.equipTo(this);\r\n }", "public GameObject spawnBigBeamer(LogicEngine in_logicEngine) {\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bigbeamer.png\",((float)LogicEngine.SCREEN_WIDTH/2),LogicEngine.SCREEN_HEIGHT+64,0);\r\n\t\tship.i_animationFrameSizeHeight = 115;\r\n\t\tship.i_animationFrameSizeWidth = 115;\r\n\t\t\r\n\t\t\r\n\t\tship.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-1f)));\r\n\t\t\r\n\t\r\n\t\tship.v.setMaxForce(2.5f);\r\n\t\tship.v.setMaxVel(2.5f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tint i_shootEvery = 80;\r\n\t\t\r\n\t\tBeamShot b = new BeamShot(i_shootEvery);\r\n\t\t\r\n\t\tb.b_flare=false;\r\n\t\tb.f_offsetX=-40;\r\n\t\tb.f_offsetY=-30;\r\n\t\tb.i_delay = 40;\r\n\t\tb.i_beamWidth = 15;\r\n\t\t\r\n\t\tBeamShot b2 = new BeamShot(i_shootEvery);\r\n\t\tb2.b_flare=false;\r\n\t\tb2.f_offsetX=40;\r\n\t\tb2.f_offsetY=-30;\r\n\t\tb2.i_delay = 40+(i_shootEvery/2);\r\n\t\tb2.i_beamWidth = 15;\r\n\t\tb.nextBeam = b2;\r\n\t\t\r\n\t\tship.shootEverySteps=1;\r\n\t\tship.shotHandler = b;\r\n\t\t\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 100, 50f);\r\n\t\t\r\n\t\tif(!Difficulty.isHard())\r\n\t\t\tc.f_numberOfHitpoints = 200;\r\n\t\tif(!Difficulty.isMedium())\r\n\t\t\tc.f_numberOfHitpoints = 160;\r\n\t\t\r\n\t\tc.setExplosion(Utils.getBossExplosion(ship));\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t}", "private static WorldDescription createWorld() {\r\n \t\tWorldDescription world = new WorldDescription();\t \r\n \t\tworld.setPlaneSize(100);\t\t\r\n \t \tObstacleGenerator generator = new ObstacleGenerator();\r\n \t generator.obstacalize(obstacleType, world); // activate to add obstacles\r\n \t // world.setPlaneTexture(WorldDescription.WHITE_GRID_TEXTURE);\r\n \t\treturn world;\r\n \t}" ]
[ "0.71932936", "0.6210168", "0.61249286", "0.6096053", "0.60902977", "0.5987578", "0.59311676", "0.5910144", "0.5908545", "0.5875625", "0.5859377", "0.5852509", "0.5842295", "0.582942", "0.57880235", "0.5767183", "0.5763873", "0.57503796", "0.5743282", "0.57408065", "0.5720711", "0.5714118", "0.5710145", "0.57056665", "0.5672399", "0.5657977", "0.56407166", "0.56370133", "0.56364256", "0.5621371", "0.56197727", "0.5612815", "0.5604377", "0.56041336", "0.560081", "0.55991286", "0.55960846", "0.55958056", "0.5595059", "0.5588071", "0.5585066", "0.5580548", "0.5577283", "0.556645", "0.5565736", "0.5565459", "0.5546616", "0.5538758", "0.5524207", "0.5517949", "0.55175936", "0.5514703", "0.5513571", "0.55117077", "0.5507158", "0.54974586", "0.5497248", "0.54919875", "0.5481711", "0.54756194", "0.54714954", "0.5465684", "0.54634064", "0.54600006", "0.54546267", "0.5454547", "0.54545146", "0.5453766", "0.5448908", "0.54450047", "0.54426426", "0.5442489", "0.5440424", "0.54337496", "0.54271394", "0.5420247", "0.54194736", "0.54184014", "0.54173803", "0.54144794", "0.5412015", "0.54116935", "0.5397322", "0.5386428", "0.5380415", "0.5379694", "0.5378971", "0.5367753", "0.5366409", "0.53662956", "0.535782", "0.5353875", "0.5350881", "0.53489745", "0.5348356", "0.53415686", "0.53358936", "0.53342634", "0.53269374", "0.5324644" ]
0.69661254
1
a method to spawn a pylon, an obstacle that reduces health on collision.
@Spawns("pylon") public Entity spawnPylon(SpawnData data) { return entityBuilder() .from(data) .type(PYLON) .viewWithBBox(texture("pylon.png", 40, 58)) .with(new CollidableComponent(true)) .with(new OffscreenCleanComponent()) .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void spawnObstacle(){\n\t\tif(this.seconds > this.nextSpawn && !this.gameOver){\n\t\t\tint pX = this.radom.nextInt(350);\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,0,30,pX,0));\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,pX+110,30,HEIGHT-pX-111,0));\n\t\t\tthis.goals.add(new Goal(WIDTH,pX,30,110,0xffffff));\n\t\t\tthis.nextSpawn = this.seconds + this.spawnRate;\n\t\t}\n\t}", "public void addObstacle(Coord obstacleCoord);", "public void spawnEnemy(){\n\t\tint initTile = 0;\n\t\n\t\tfor(int i=0; i<screen.maps[screen.currentMap].path.getHeight(); i++){\n\t\t\tif(screen.maps[screen.currentMap].path.getCell(0, i).getTile().getProperties().containsKey(\"ground\") == true){\n\t\t\t\tinitTile = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\txCoor = 2;\n\t\tyCoor = (initTile)*64 + 2;\n\t\tbound = new Circle(xCoor+30, yCoor+30, 30);\n\t\tinGame = true;\n\t}", "@Override\r\n\tpublic void spawn(Location location) {\n\t\t\r\n\t}", "public Obstacle(Location location) {\n super(location);\n }", "@Override\n\tpublic void spawn(Location loc) {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n void spawn(Entity entity);", "@Override\n protected void spawnInWorld(float x, float y, float xVel, float yVel)\n {\n PolygonShape hitbox = new PolygonShape();\n hitbox.setAsBox(3.0F, 1.0F, new Vector2(0, 0), 0);\n \n //Set up body definition - Defines the type of physics body that this is\n BodyDef bodyDef = new BodyDef();\n bodyDef.type = BodyDef.BodyType.DynamicBody;\n bodyDef.position.set(x, y);\n \n //Set up physics body - Defines the actual physics body\n this.physBody = this.world.getPhysWorld().createBody(bodyDef);\n this.physBody.setUserData(this); //Store this object into the body so that it isn't lost\n \n //Set up physics fixture - Defines physical properties\n FixtureDef fixtureDef = new FixtureDef();\n fixtureDef.shape = hitbox;\n fixtureDef.density = 100.0F; //About 1 g/cm^2 (2D), which is the density of water, which is roughly the density of humans.\n fixtureDef.friction = 0.1F; //friction with other objects\n fixtureDef.restitution = 0.1F; //Bouncyness\n \n //Set which collision type this object is\n fixtureDef.filter.categoryBits = COL_SEA_CREATURE;\n //Set which collision types this object collides with\n fixtureDef.filter.maskBits = COL_ALL ^ COL_SEA_PROJECTILE; //Collide with everything except sea creature projectiles\n \n this.physBody.createFixture(fixtureDef);\n \n //Set the linear damping\n this.physBody.setLinearDamping(5F);\n \n //Set the angular damping\n this.physBody.setAngularDamping(2.5F);\n \n //Apply impulse\n this.physBody.applyLinearImpulse(xVel, yVel, x, y, true);\n \n //Dispose of the hitbox shape, which is no longer needed\n hitbox.dispose();\n }", "public Obstacle(int x, int y) {\n super(x, y);\n }", "public void spawn()\n\t{\n\t\tsynchronized(this)\n\t\t{\n\t\t\t// Set the x,y,z position of the L2Object spawn and update its _worldregion\n\t\t\tsetVisible(true);\n\t\t\tsetWorldRegion(WorldManager.getInstance().getRegion(getWorldPosition()));\n\n\t\t\t// Add the L2Object spawn in the _allobjects of L2World\n\t\t\tWorldManager.getInstance().storeObject(object);\n\n\t\t\t// Add the L2Object spawn to _visibleObjects and if necessary to _allplayers of its L2WorldRegion\n\t\t\tregion.addVisibleObject(object);\n\t\t}\n\n\t\t// this can synchronize on others instancies, so it's out of\n\t\t// synchronized, to avoid deadlocks\n\t\t// Add the L2Object spawn in the world as a visible object\n\t\tWorldManager.getInstance().addVisibleObject(object, region);\n\n\t\tobject.onSpawn();\n\t}", "@Spawns(\"potHole\")\n public Entity spawnPotHole(SpawnData data) {\n return entityBuilder()\n .from(data)\n .type(POTHOLE)\n .viewWithBBox(texture(\"pothole.png\", 40, 58))\n .with(new CollidableComponent(true))\n .with(new OffscreenCleanComponent())\n .build();\n }", "@Override\n \tpublic void update() {\n \t\tif (!constructing) {\n \t\t\t// not constructing means the pellet is still traveling through\n \t\t\t// space\n \n \t\t\t// move the pellet\n \t\t\tVector3f.add(pos, vel, pos);\n \n \t\t\t// if it's too old, kill it\n \t\t\tif (Main.timer.getTime() - birthday > 5) {\n \t\t\t\talive = false;\n \t\t\t} else {\n \t\t\t\t// if the pellet is not dead yet, see if it intersected anything\n \n \t\t\t\t// did it hit another pellet?\n \t\t\t\tPellet neighbor_pellet = queryOtherPellets();\n \n \t\t\t\t// did it hit a line or plane?\n \t\t\t\tVector3f closest_point = queryScaffoldGeometry();\n \n \t\t\t\tif (neighbor_pellet != null) {\n \t\t\t\t\talive = false;\n \n\t\t\t\t\tif (neighbor_pellet == current_cycle.lastElement()){\n\t\t\t\t\t\tSystem.out.println(\"shot at same pellet\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n \t\t\t\t\tif (!(neighbor_pellet instanceof PolygonPellet)) {\n \t\t\t\t\t\tMain.all_dead_pellets_in_world.add(neighbor_pellet);\n \t\t\t\t\t\tneighbor_pellet = new PolygonPellet(neighbor_pellet);\n \t\t\t\t\t\tMain.new_pellets_to_add_to_world.add(neighbor_pellet);\n \t\t\t\t\t}\n \n \t\t\t\t\t// if neighbor pellet's class is not PolygonPellet...\n \t\t\t\t\t// neighbor_pellet = new PolygonPellet(neighbor_pellet)\n \t\t\t\t\t// copy the position and stuff from the line/plane\n \t\t\t\t\t// pellet into the new polygon pellet\n \t\t\t\t\t// then go and add it to this cycle\n \t\t\t\t\t// hopefully it changes in the actual array of world\n \t\t\t\t\t// pellets\n \t\t\t\t\t// if not, remove that pellet from all world pelelts and\n \t\t\t\t\t// then add the new one to the end\n \n \t\t\t\t\tcurrent_cycle.add((PolygonPellet) neighbor_pellet);\n \t\t\t\t\tif (current_cycle.size() > 1) {\n \t\t\t\t\t\tmakeLine();\n \t\t\t\t\t}\n \n \t\t\t\t\tif (current_cycle.size() > 2\n \t\t\t\t\t\t\t&& current_cycle.get(0) == current_cycle\n \t\t\t\t\t\t\t\t\t.get(current_cycle.size() - 1)) {\n \t\t\t\t\t\tmakePolygon();\n \t\t\t\t\t} else {\n \t\t\t\t\t\tActionTracker.newPolygonPellet(this);\n \t\t\t\t\t}\n \n \t\t\t\t} else if (closest_point != null) {\n \t\t\t\t\tSystem.out.println(\"pellet stuck to some geometry\");\n \t\t\t\t\tconstructing = true;\n \n \t\t\t\t\tpos.set(closest_point);\n \n \t\t\t\t\tif (CONNECT_TO_PREVIOUS)\n \t\t\t\t\t\tcurrent_cycle.add(this);\n \n \t\t\t\t\tif (CONNECT_TO_PREVIOUS && current_cycle.size() > 1) {\n \t\t\t\t\t\tmakeLine();\n \t\t\t\t\t}\n \n \t\t\t\t\tif (current_cycle.size() > 2\n \t\t\t\t\t\t\t&& current_cycle.get(0) == current_cycle\n \t\t\t\t\t\t\t\t\t.get(current_cycle.size() - 1))\n \t\t\t\t\t\tmakePolygon();\n \t\t\t\t} else if (Main.draw_points) {\n \t\t\t\t\t// if it's not dead yet and also didn't hit a\n \t\t\t\t\t// neighboring\n \t\t\t\t\t// pellet, look for nearby points in model\n \t\t\t\t\tint neighbors = queryKdTree(pos.x, pos.y, pos.z, radius);\n \n \t\t\t\t\t// is it near some points?!\n \t\t\t\t\tif (neighbors > 0) {\n \t\t\t\t\t\tconstructing = true;\n \t\t\t\t\t\tsetInPlace();\n \n \t\t\t\t\t\tsnapToCenterOfPoints();\n \n \t\t\t\t\t\tif (CONNECT_TO_PREVIOUS)\n \t\t\t\t\t\t\tcurrent_cycle.add(this);\n \n \t\t\t\t\t\tif (CONNECT_TO_PREVIOUS && current_cycle.size() > 1) {\n \t\t\t\t\t\t\tmakeLine();\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t\tif (current_cycle.size() > 0)\n \t\t\t\t\tcurrent_cycle.get(0).setAsFirstInCycle();\n \n \t\t\t\tif (constructing == true) {\n \t\t\t\t\tActionTracker.newPolygonPellet(this);\n \t\t\t\t}\n \t\t\t}\n \t\t} else {\n \t\t\t// the pellet has stuck... here we just give it a nice growing\n \t\t\t// bubble animation\n \t\t\tif (radius < max_radius) {\n \t\t\t\tradius *= 1.1;\n \t\t\t}\n \t\t}\n \t}", "public Obstacle(int x, int y, int length, String direction)\n {\n super(x, y, length, direction);\n updateImages();\n }", "private boolean spawn(int x, int y) {\n\t\treturn false;\n\t}", "private void createEnemyHelicopter()\n\t {\n\t \t\tRandNum = 0 + (int)(Math.random()*700);\n\t\t \t\tint xCoordinate = 1400;\n\t int yCoordinate = RandNum; \n\t eh = new Enemy(xCoordinate,yCoordinate);\n\t \n\t // Add created enemy to the list of enemies.\n\t EnemyList.add(eh);\n\t \n\t }", "private void spawnBigEnemy(IEnemyService spawner, World world, GameData gameData) {\r\n if (spawner != null) {\r\n spawner.createBigEnemy(world, gameData, new Position(randomIntRange(1600, 3200), gameData.getGroundHeight()));\r\n spawner.createBigEnemy(world, gameData, new Position(randomIntRange(-600, -2000), gameData.getGroundHeight()));\r\n }\r\n }", "public void onLivingUpdate() {\n if (!this.onGround && this.motionY < 0.0D)\n this.motionY *= 0.6D;\n\n\n if (this.ticksExisted % 20 == 0 && this.getHealth() != this.getMaxHealth() && this.getHealth() >= 1)\n this.setHealth(this.getHealth() + 1);\n\n if (worldObj.isRemote) {\n if (this.isSitting())\n worldObj.spawnParticle(EnumParticleTypes.REDSTONE, posX, posY + 1.5, posZ, 0, 0, 0);\n }\n\n if (worldObj.isRemote) {\n MoWitchAndWizard.proxy.spawnParticles(\"air_normal\", this);\n }\n\n super.onLivingUpdate();\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n \n Player player = new Player();\n Point point0 = new Point();\n Point point1 = new Point();\n Point point2 = new Point();\n Point point3 = new Point();\n Point point4 = new Point();\n Danger danger0 = new Danger();\n Danger danger1 = new Danger();\n addObject(player, getWidth()/2, getHeight()/2);\n \n addObject(point0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point2,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point3,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point4,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n \n addObject(danger0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(danger1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n }", "private void wentOffWall() {\n //random location\n b.numX = r.nextInt(2400) + 100;\n b.numY = r.nextInt(1400) + 100;\n //random speed\n b.xSpeed = this.newSpeed();\n b.ySpeed = this.newSpeed();\n }", "public void spawnNew() {\n\t\tif (tier> 1) {\n\t\t\ttier--;\n\t\t\thealth = tier;\n\t\t\tdamage = tier;\n\t\t\tspeed = 5;\n\t\t\timg = getImage(updateImage(tier)); // converted getImage to protected b/c it wasn't accessible by Balloon class (child class)\n\t\t}\n\t\telse {\n\t\t\tisAlive = false;\n\t\t\tdeletePath();\t\t\t\n\t\t}\n\t}", "public MobSpawner(Vector2D position, Game game)\n {\n super(position, new Vector2D(0,0), RADIUS);\n ships = new ArrayList<>();\n double maximumAngle = Math.toRadians(360/ENEMIES_CAN_SPAWN);\n for (double i = 0; i < Math.toRadians(360); i+= maximumAngle)\n {\n double randomAngle = Math.random() * maximumAngle;\n Vector2D newPos = Vector2D.polar(i + randomAngle, SPAWN_RADIUS).add(position);\n ships.add(new EnemyShip(new HlAiController(game, this), newPos));\n }\n }", "public void spawnEnemy(Location location) {\r\n\t\t\tlocation.addNpc((Npc) this.getNpcSpawner().newObject());\r\n\t\t}", "public void setConstructingObstacle(Obstacle obstacle);", "public void shootBabyInto(int x, int y) {\n home.world.cells[x][y].resident\n = new Omnivore(home.world.cells[x][y]);\n }", "public GameWon()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(550, 600, 1); \n addObject(b1,275,250);\n addObject(b2,275,380);\n }", "public boolean canCoordinateBeSpawn(int par1, int par2)\n {\n return false;\n }", "public void attemptSpawn(Player player) {\n\n int min = plugin.CONFIG.SPAWNING_RADIUS_MIN;\n int max = plugin.CONFIG.SPAWNING_RADIUS_MAX;\n\n // choose random x,z coordinates within the allowed radius range\n int distance = rand.nextInt((max - min) + 1) + min;\n double angle = 2 * Math.PI * rand.nextDouble();\n double deltaX = distance * Math.cos(angle);\n double deltaZ = distance * Math.sin(angle);\n Location loc = player.getLocation().clone();\n loc.setX(player.getLocation().getX() + deltaX);\n loc.setZ(player.getLocation().getZ() + deltaZ);\n\n // pick a new y coordinate if the same level is not possible\n if (!isSpawnable(loc)) {\n int high = (loc.getBlockY() + 10 >= 255) ? 254 : loc.getBlockY() + 10;\n int low = (loc.getBlockY() - 10 <= 0) ? 1 : loc.getBlockY() - 10;\n for (int i = high; i >= low; i--) {\n loc.setY(i);\n if (!isSpawnable(loc)) return;\n }\n }\n\n // do the spawn\n player.getWorld().spawnEntity(loc, EntityType.ZOMBIE);\n\n }", "public static EntityBunnyMount spawnBunny(World world, EnumBunnyType type, double x, double y, double z) {\n EntityBunnyMount jordan = new EntityBunnyMount(world, type);\n\n jordan.setLocationAndAngles(x, y, z, MathHelper.wrapAngleTo180_float(world.rand.nextFloat() * 360.0F), 0.0F);\n jordan.rotationYawHead = jordan.rotationYaw;\n jordan.renderYawOffset = jordan.rotationYaw;\n world.spawnEntityInWorld(jordan);\n jordan.playSound(\"step.gravel\", 1.0F, 1.0F);\n\n return jordan;\n }", "private GameObject spawnBoss(LogicEngine in_logicEngine,LevelManager in_manager)\r\n\t{\n\t\tGameObject go = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/redcube.png\",in_logicEngine.SCREEN_WIDTH/2,LogicEngine.rect_Screen.getHeight()+50,0);\r\n\t\tboss = go;\r\n\t\t\r\n\t\tboss.i_animationFrameRow = 1;\r\n\t\tboss.i_animationFrame =0;\r\n\t\tboss.i_animationFrameSizeWidth =75;\r\n\t\tboss.i_animationFrameSizeHeight =93;\r\n\t\t\r\n\t\tboss.v.setMaxForce(1);\r\n\t\tboss.v.setMaxVel(5);\r\n\t\tboss.stepHandlers.add( new BounceOfScreenEdgesStep());\r\n\t\t\r\n\t\t\r\n\t\tboss_arrive.setAttribute(\"arrivedistance\", \"50\", null);\r\n\t\tboss.stepHandlers.add( new CustomBehaviourStep(boss_arrive));\r\n\t\tboss.isBoss = true;\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(boss, 150, 40, true,1);\r\n\t\t\r\n\t\tif(Difficulty.isMedium())\r\n\t\t\tc.f_numberOfHitpoints = 200;\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t\tc.f_numberOfHitpoints = 250;\r\n\t\t\r\n\t\tif(Difficulty.isMedium())\r\n\t\t\ti_bossBubbleEvery = 125;\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t\ti_bossBubbleEvery = 100;\r\n\t\t\r\n\t\t\r\n\t\tc.addHitpointBossBar(in_logicEngine);\r\n\t\tc.setExplosion(Utils.getBossExplosion(boss));\r\n\t\tboss.collisionHandler = c;\r\n\t\t\r\n\t\tboss.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t//initial velocity of first one \r\n\t\tboss.v.setVel(new Vector2d(0,-5));\r\n\t\t\r\n\t\tGameObject Tadpole1 = in_manager.spawnTadpole(in_logicEngine);\r\n\t\tGameObject Tadpole2 = in_manager.spawnTadpole(in_logicEngine);\r\n\t\t\r\n\t\tGameObject Bubble = null;\r\n\t\t\r\n\t\t\r\n\t\tBubble = spawnBossBubble(in_logicEngine, 0, 3);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tTadpole1.v.setVel(new Vector2d(-10,5));\r\n\t\tTadpole2.v.setVel(new Vector2d(10,5));\r\n\t\tBubble.v.setVel(new Vector2d(0,-5));\r\n\t\t\r\n\t\tLaunchShipsStep l1 = new LaunchShipsStep(Tadpole1 , 50, 5, 1, false);\r\n\t\tLaunchShipsStep l2 = new LaunchShipsStep(Tadpole2, 50, 5, 1, true);\r\n\t\tLaunchShipsStep l3 = new LaunchShipsStep(Bubble, i_bossBubbleEvery, 1, 1, true);\r\n\t\tl1.b_addToBullets = true;\r\n\t\tl2.b_addToBullets = true;\r\n\t\t\r\n\t\tboss.stepHandlers.add(l1);\r\n\t\tboss.stepHandlers.add(l2);\r\n\t\tboss.stepHandlers.add(l3);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\td_eye = new Drawable();\r\n\t\td_eye.i_animationFrameSizeHeight=8;\r\n\t\td_eye.i_animationFrameSizeWidth=8;\r\n\t\td_eye.i_animationFrameRow = 3;\r\n\t\td_eye.str_spritename = \"data/\"+GameRenderer.dpiFolder+\"/eye.png\";\r\n\t\t\r\n\t\tboss.visibleBuffs.add(d_eye);\r\n\t\t\r\n\t\treturn boss;\r\n\t}", "public TestEnemy(Vector2 spawnPoint) {\n super(spawnPoint);\n this.health = MAX_HEALTH;\n this.speed = MAX_SPEED;\n this.damage = DAMAGE;\n this.moneyOnKill = MONEY_ON_KILL;\n this.bounds = new Circle(spawnPoint, RADIUS);\n this.ai = new RunnerAi(this);\n }", "@Override\n\tpublic void updateEntity() {\n\t\t\n\t\tif (this.mobID != null && !this.worldObj.isRemote) {\n\t\t\t\n\t\t\tif (this.delay > 0) {\n\t\t\t\tthis.delay--;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tEntity entity = EntityList.createEntityByName(this.mobID, this.worldObj);\n\t\t\t\n\t\t\t// L'entity n'existe pas\n\t\t\tif (entity == null) {\n\t\t\t\tModGollumCoreLib.log.warning(\"This mob \"+this.mobID+\" isn't register\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tthis.worldObj.setBlockToAir(this.xCoord , this.yCoord , this.zCoord);\n\t\t\t\n\t\t\tdouble x = (double)this.xCoord + 0.5D;\n\t\t\tdouble y = (double)(this.yCoord);// + this.worldObj.rand.nextInt(3) - 1);\n\t\t\tdouble z = (double)this.zCoord + 0.5D;\n\t\t\tEntityLiving entityLiving = entity instanceof EntityLiving ? (EntityLiving)entity : null;\n\t\t\tentity.setLocationAndAngles(x, y, z, this.worldObj.rand.nextFloat() * 360.0F, this.worldObj.rand.nextFloat() * 360.0F);\n\t\t\tthis.worldObj.spawnEntityInWorld(entity);\n\t\t\t\n\t\t\tif (entityLiving == null || entityLiving.getCanSpawnHere()) {\n\t\t\t\t\n\t\t\t\tthis.worldObj.playSoundEffect (this.xCoord, this.yCoord, this.zCoord, \"dig.stone\", 0.5F, this.worldObj.rand.nextFloat() * 0.25F + 0.6F);\n\t\t\t\t\n\t\t\t\tif (entityLiving != null) {\n\t\t\t\t\tentityLiving.spawnExplosionParticle();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void Update() {\r\n\t\t//if player is near and haven't fired in a while, fire a projectile\r\n\t\tif(!playerNear().equals(\"n\") && j > 250){\r\n\t\t\tfireProjectile(playerNear());\r\n\t\t\tj = 0;\r\n\t\t}\r\n\t\tj++;\r\n\r\n\t\t//COLLISION\r\n\t\tfor(int i = 0; i < AdventureManager.currentRoom.projectiles.size(); i++){ //Checks for collision with player projectiles\r\n\t\t\tif(((AdventureManager.currentRoom.projectiles.get(i).x + 50 > x) && (AdventureManager.currentRoom.projectiles.get(i).x + 50 < x+50) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50> y) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50< y+98) )\r\n\t\t\t\t\t|| ((AdventureManager.currentRoom.projectiles.get(i).x > x) && (AdventureManager.currentRoom.projectiles.get(i).x < x+50) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50> y) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50< y+98) )\r\n\r\n\t\t\t\t\t\t) {\r\n\r\n\t\t\t\t\tswitch(AdventureManager.currentRoom.projectiles.get(i).type) {\r\n\t\t\t\t\tcase \"fireball\": health -= AdventureManager.toon.intelligence; break;\r\n\t\t\t\t\tcase \"sword\": health -= AdventureManager.toon.strength;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tAdventureManager.currentRoom.projectiles.get(i).kill();\r\n\t\t\t\t}\r\n\t\t}\r\n\t\tif((AdventureManager.toon.y < y+50) && (AdventureManager.toon.y > y+40) && //Checks for collision with player\r\n\t\t\t\t(((AdventureManager.toon.x > x) && (AdventureManager.toon.x < x+50))\r\n\t\t\t\t|| ((AdventureManager.toon.x+50 > x) && AdventureManager.toon.x+50 < x+50))) {\r\n\t\t\tAdventureManager.toon.y = y+55; AdventureManager.toon.repaint();\r\n\t\t\tif(contact <= 0){\r\n\t\t\t\tAdventureManager.toon.damage(1);\r\n\t\t\t\tcontact = 50;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if((AdventureManager.toon.y+100 < y) && (AdventureManager.toon.y+100 > y-5) && (((AdventureManager.toon.x >= x) && (AdventureManager.toon.x <= x+50)) //Checks for collision with player\r\n\t\t\t\t|| ((AdventureManager.toon.x+50 >= x) && (AdventureManager.toon.x+50 <= x+50))\r\n\t\t\t\t|| ((AdventureManager.toon.x+25 >= x) && AdventureManager.toon.x+25 <= x+50))) {\r\n\t\t AdventureManager.toon.y = y-105; AdventureManager.toon.repaint();\r\n\t\t AdventureManager.toon.jumpCount = 25;\r\n\t\t if(contact <= 0){\r\n\t\t\t AdventureManager.toon.damage(1);\r\n\t\t\t contact = 50;\r\n\t\t }\r\n\t\t}\r\n\t\telse if(((AdventureManager.toon.x + 50) > x) && ((AdventureManager.toon.x+50)<x+20) && ( //Left Collision\r\n\t\t\t\t((AdventureManager.toon.y > y) && (AdventureManager.toon.y < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 25 > y) && (AdventureManager.toon.y + 25 < y+45)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 50 > y) && (AdventureManager.toon.y + 50 < y+45)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 75 > y) && (AdventureManager.toon.y + 75 < y+45)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 100 > y) && (AdventureManager.toon.y + 100 < y+45))\r\n\r\n\r\n\t\t\t\t) ) {\r\n\t\t\tAdventureManager.toon.x = x-51; AdventureManager.toon.repaint();\r\n\t\t\tif(contact <= 0){\r\n\t\t\t\tAdventureManager.toon.damage(1);\r\n\t\t\t\tcontact = 50;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(((AdventureManager.toon.x) > x+40) && ((AdventureManager.toon.x)<x+50) && ( //Right Collision\r\n\t\t\t\t((AdventureManager.toon.y > y) && (AdventureManager.toon.y < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 25 > y) && (AdventureManager.toon.y + 25 < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 50 > y) && (AdventureManager.toon.y + 50 < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 75 > y) && (AdventureManager.toon.y + 75 < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 100 > y) && (AdventureManager.toon.y + 100 < y+50))\r\n\r\n\r\n\t\t\t\t) ) {\r\n\t\t\tAdventureManager.toon.x = x+51; AdventureManager.toon.repaint();\r\n\t\t\tif(contact <= 0){\r\n\t\t\t\tAdventureManager.toon.damage(1);\r\n\t\t\t\tcontact = 50;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcontact--;\r\n\t\tif(health<=0){\r\n\t\t\tsetVisible(false);\r\n\t\t\talive = false;\r\n\t\t\tAdventureManager.currentRoom.enemies.remove(this);\r\n\t\t}\r\n\r\n\r\n\r\n\t\t\tif((y+100)>=AdventureManager.floorHeight) {\r\n\t\t\t\ty= AdventureManager.floorHeight -100;\r\n\t\t\t\tgravity *= 0;\r\n\r\n\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tgravity = 3;}\r\n\r\n\t\t\ty += gravity; setLocation(x,y);\r\n\r\n\t\t\tswitch(movetype) {\r\n\t\t\tcase 0: chasePlayer(); break;\r\n\t\t\tcase 1: randomMove(); break;\r\n\t\t\tcase 2: dontMove(); break;\r\n\t\t\t}\r\n\r\n\t\t\t}", "private void spawnEnemy() {\n float randomEnemy = (float) Math.random();\n\n if (round == 1) {\n addActorFunction.accept(new SimpleEnemy(tileSet));\n } else {\n float speedMultiplier = 1 + (0.08f * round);\n float healthMultiplier = 1 + (0.01f * round * round);\n\n if (randomEnemy < (round - 1) * 0.1) {\n addActorFunction.accept(new HeavyEnemy(tileSet, speedMultiplier, healthMultiplier));\n } else {\n addActorFunction.accept(new SimpleEnemy(tileSet, speedMultiplier, healthMultiplier));\n }\n }\n }", "@Override\n\tpublic void respawn() {\n\t\tbounds.x = OmniWorld.SpawnX;\n\t\tbounds.y = OmniWorld.SpawnY;\n\t\tHP = MaxHP;\n\t\tisDead = false;\n\t\tstateTime = 0;\n\t}", "public Cow(int _pos_x , int _pos_y)\n {\n pos_x = _pos_x;\n pos_y = _pos_y;\n availableProduct = false;\n hunger_countdown = 5;\n allowed_tiles = \"Grassland\";\n }", "public void removeObstacle(Coord obstacleCoord);", "public gameWorld()\n { \n // Create a new world with 600x600 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n addObject(new winSign(), 310, 300);\n addObject(new obscureDecorative(), 300, 400);\n addObject(new obscureDecorative(), 300, 240);\n \n for(int i = 1; i < 5; i++) {\n addObject(new catchArrow(i * 90), 125 * i, 100);\n }\n for (int i = 0; i < 12; i++) {\n addObject(new damageArrowCatch(), 50 * i + 25, 50); \n }\n \n \n //Spawning Interval\n\n if(timerInterval >= 10) {\n arrowNumber = Greenfoot.getRandomNumber(3);\n }\n if(arrowNumber == 0) {\n addObject(new upArrow(directionOfArrow[0], imageOfArrow[0]), 125, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 1) {\n addObject(new upArrow(directionOfArrow[1], imageOfArrow[1]), 125 * 2, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 2) {\n addObject(new upArrow(directionOfArrow[2], imageOfArrow[2]), 125 * 3, 590);\n arrowNumber = 5;\n }\n if( arrowNumber == 3) {\n addObject(new upArrow(directionOfArrow[3], imageOfArrow[3]), 125 * 4, 590);\n arrowNumber = 5;\n }\n \n \n\n \n }", "public Obstacle getConstructingObstacle();", "public void setSpawn (int x, int y) {\n xCord = x;\n yCord = y;\n }", "public ObstacleSprite(int left, int top, int right, int bottom, OBSTACLE_SPEED obstacleSpeed, Game game)\n {\n super(left, top, right, bottom, game);\n speed = (int) Math.round(DEFAULT_OBSTACLE_SPEED * (obstacleSpeed.value / 2.0));\n wasTouched = false;\n\n if(obstacleSpriteImage == null)\n {\n Bitmap settingsBitmap = BitmapFactory.decodeResource(resources, R.drawable.missile);\n obstacleSpriteImage = new AndroidImage(settingsBitmap, AndroidGraphics.ImageFormat.ARGB4444);\n }\n\n if(obstacleExplosionImage == null)\n {\n Bitmap settingsBitmap = BitmapFactory.decodeResource(resources, R.drawable.explosion);\n obstacleExplosionImage = new AndroidImage(settingsBitmap, AndroidGraphics.ImageFormat.ARGB4444);\n }\n }", "public WallCollision(NinjaEntity player){\n this.player = player;\n }", "@Override \n public void collide(Ball ball, Collidable collidable) {\n super.collide(ball, collidable);\n Vect transferLoc = new Vect(this.getLocation().x()+0.5, this.getLocation().y()+0.5);\n Double theta = Math.random()*2*Math.PI;\n board.addBall(new Ball(transferLoc, new Vect(Constants.SPAWNER_SHOOT_VELOCITY*Math.cos(theta),Constants.SPAWNER_SHOOT_VELOCITY*Math.sin(theta) ), this.getName()+\"SpawnedBall\"+this.spawnCount, board.getGravity(), board.getFriction1(), board.getFriction2()));\n spawnCount += 1;\n this.trigger();\n }", "public Boss(String line, String ship, String explosion, Point pos){\r\n\t\tsuper(line,pos,ship,explosion);\r\n\t\tposition=pos;\r\n\t\tbossHb = new Health(600, 10);\r\n\t\tinPosition=false;\r\n\t}", "public GameObject spawnBomber(LogicEngine in_logicEngine){\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bomber.png\",((float)LogicEngine.SCREEN_WIDTH)+50,LogicEngine.SCREEN_HEIGHT-50,0);\r\n\t\tship.i_animationFrameSizeHeight = 58;\r\n\t\tship.i_animationFrameSizeWidth = 58;\r\n\t\t\r\n\t\t//fly back and forth\r\n\t\tLoopWaypointsStep s = new LoopWaypointsStep();\r\n\t\ts.waypoints.add(new Point2d(-30,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\ts.waypoints.add(new Point2d(LogicEngine.SCREEN_WIDTH+50,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\t\r\n\t\tship.b_mirrorImageHorizontal = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(s);\r\n\t\tship.v.setMaxForce(5.0f);\r\n\t\tship.v.setMaxVel(5.0f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\r\n\r\n\t\t//tadpole bullets\r\n\t\tGameObject go_tadpole = this.spawnTadpole(in_logicEngine);\r\n\t\tgo_tadpole.stepHandlers.clear();\r\n\t\tFlyStraightStep fly = new FlyStraightStep(new Vector2d(0,-0.5f));\r\n\t\tfly.setIsAccelleration(true);\r\n\t\t\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t{\tgo_tadpole.v.setMaxVel(5);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\telse\r\n\t\t{\tgo_tadpole.v.setMaxVel(10);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\tgo_tadpole.stepHandlers.add(fly);\r\n\t\tgo_tadpole.v.setVel(new Vector2d(-2.5f,0f));\r\n\t\t\r\n\t\t\r\n\t\t//bounce on hard and medium\r\n\t\tif(Difficulty.isHard() || Difficulty.isMedium())\r\n\t\t{\r\n\t\t\tBounceOfScreenEdgesStep bounce = new BounceOfScreenEdgesStep();\r\n\t\t\tbounce.b_sidesOnly = true;\r\n\t\t\tgo_tadpole.stepHandlers.add(bounce);\r\n\t\t}\r\n\t\t\r\n\t\t//drop bombs\r\n\t\tLaunchShipsStep launch = new LaunchShipsStep(go_tadpole, 20, 5, 3, true);\r\n\t\tlaunch.b_addToBullets = true;\r\n\t\tlaunch.b_forceVelocityChangeBasedOnParentMirror = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(launch);\r\n\t\tship.rotateToV=true;\r\n\t\t\r\n\t\t//give it some hp\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 50, 50f);\r\n\t\tc.setSimpleExplosion();\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t\r\n\t}", "public Water_Hero(RefLinks refLink, float x, float y)\r\n {\r\n ///Apel al constructorului clasei de baza\r\n super(refLink, x,y, Character.DEFAULT_CREATURE_WIDTH, Character.DEFAULT_CREATURE_HEIGHT);\r\n\r\n ///Seteaza imaginea de start a eroului\r\n image = Assets.heroLeft;\r\n\r\n ///Stabilieste pozitia relativa si dimensiunea dreptunghiului de coliziune, starea implicita(normala)\r\n normalBounds.x = 16;\r\n normalBounds.y = 16;\r\n normalBounds.width = 16;\r\n normalBounds.height = 32;\r\n\r\n ///Stabilieste pozitia relativa si dimensiunea dreptunghiului de coliziune, starea de atac\r\n attackBounds.x = 10;\r\n attackBounds.y = 10;\r\n attackBounds.width = 38;\r\n attackBounds.height = 38;\r\n\r\n jumpingTimer = new Timer();\r\n\r\n lista_dinamic_element = new ArrayList<CollisionItem>();\r\n\r\n lista_static_element = new ArrayList<CollisionItem>();\r\n list_fire = new ArrayList<CollisionItem>();\r\n }", "public void spawnNpcOnChance(Location location) {\r\n\t\t\tif(location.isOutdoors() && Math.random() < 0.20) {\r\n\t\t\t\tthis.spawnEnemy(location);\r\n\t\t\t}\r\n\t\t}", "public void spawnSateliteShip(LogicEngine in_logicEngine,float in_x)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/gravitonlevel.png\",in_x,LogicEngine.SCREEN_HEIGHT,1);\r\n\t\tship.i_animationFrameSizeWidth = 64;\r\n\t\tship.i_animationFrameSizeHeight = 32;\r\n\t\tship.i_animationFrame = 2;\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tship.v.setMaxForce(1.0f);\r\n\t\tship.v.setMaxVel(4.0f);\r\n\t\t\r\n\t\t\r\n\t\t//fly down\r\n\t\t//ship.stepHandlers.add( new FlyStraightStep(new Vector2d(0,-1f)));\r\n\t\t\r\n\t\tSimplePathfollowing followPathBehaviour = new SimplePathfollowing();\r\n\t\tfollowPathBehaviour.setInfluence(1);\r\n\t\tfollowPathBehaviour.setAttribute(\"arrivedistance\", \"10\", null);\r\n\t\t\r\n\t\t//add waypoints\r\n\t\tfor(int i=0 ; i< 20 ; i++)\r\n\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t//put in some edge ones too\r\n\t\t\tif(r.nextInt(6)%3==0)\r\n\t\t\t\tship.v.addWaypoint(new Point2d((int) LogicEngine.SCREEN_WIDTH * (i%2), LogicEngine.SCREEN_HEIGHT/1.5 + r.nextInt((int) LogicEngine.SCREEN_HEIGHT/5)));\r\n\t\t\telse\r\n\t\t\t\t//put in some random doublebacks etc\r\n\t\t\t\tship.v.addWaypoint(new Point2d(r.nextInt((int) LogicEngine.SCREEN_WIDTH), LogicEngine.SCREEN_HEIGHT/1.5 + r.nextInt((int) LogicEngine.SCREEN_HEIGHT/5)));\r\n\t\t}\r\n\t\tship.v.addWaypoint(new Point2d(LogicEngine.SCREEN_WIDTH/2, -100));\r\n\t\t\r\n\t\tif(Difficulty.isEasy())\r\n\t\t\tship.shotHandler = new BeamShot(50);\r\n\t\telse\r\n\t\tif(Difficulty.isMedium())\r\n\t\t\tship.shotHandler = new BeamShot(40);\r\n\t\telse\r\n\t\tif(Difficulty.isHard())\r\n\t\t\tship.shotHandler = new BeamShot(30);\r\n\t\t\r\n\t\tCustomBehaviourStep b = new CustomBehaviourStep(followPathBehaviour);\r\n\t\tship.stepHandlers.add(b);\r\n\t\t\r\n\t\t//destroy ships that get too close\r\n\t\tHitpointShipCollision hps = new HitpointShipCollision(ship, 10, 32);\r\n\t\thps.setSimpleExplosion();\r\n\t\t\r\n\t\tship.collisionHandler = hps; \r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\t\r\n\t\r\n\t}", "public static void setHardLevelObstacles() {\n\t\t// Setting values for obstacles\n\t\tint selectedPlatform = 0;\n\t\tint selectedXPart = 0;\n\t\tfor(int i = 0; i < obstacle.length; i++) {\n\t\t\tif(i % 2 == 0) {\n\t\t\t\tobstacle[i].setSize(OBSTACLE_WIDTH, OBSTACLE_HEIGHT);\n\t\t\t\tobstacle[i].setObstacleImage(Engine.pickRandomImage(imgObstacle));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tobstacle[i].setSize(OBSTACLE_LARGE_WIDTH, OBSTACLE_LARGE_HEIGHT);\n\t\t\t\tobstacle[i].setObstacleImage(Engine.pickRandomImage(imgObstacleLarge));\n\t\t\t}\n\n\t\t\tint x;\n\t\t\tint y;\n\t\t\tint randomOffset = (int) (Math.random() * OBSTACLE_INCREASE);\n\t\t\t\t\n\t\t\t// X CALCULATION //\n\t\t\t\n\t\t\t// Place on second platform\n\t\t\tif((float) i / 6 == 1) {\n\t\t\t\tselectedPlatform++;\n\t\t\t\tselectedXPart = 0;\n\t\t\t}\n\t\t\t// Place on third and last platform\n\t\t\tif((float) i / 6 == 2) {\n\t\t\t\tselectedPlatform++;\n\t\t\t\tselectedXPart = 0;\n\t\t\t}\n\t\t\t// Next \"third part section\" of the platform \n\t\t\tif(i % 2 == 0) selectedXPart += 2;\n\t\t\t\n\t\t\tif(selectedXPart != 6) x = platform[selectedPlatform].getX() + (OBSTACLE_INCREASE * (selectedXPart - 1)) + randomOffset;\n\t\t\telse x = platform[selectedPlatform].getX() + (OBSTACLE_INCREASE * (selectedXPart - 1)) + randomOffset - OBSTACLE_LARGE_WIDTH;\n\t\t\t\n\t\t\t// Y CALCULATION //\n\t\t\t\n\t\t\tif(i % 2 == 0) {\n\t\t\t\tint temp = (int) (Math.random() * 10);\n\t\t\t\tif(temp <= 5) y = ground[selectedPlatform].getY() - Init.getObstacleGroundOffset();\n\t\t\t\telse y = platform[selectedPlatform].getY() + Init.getObstaclePlatformOffset();\n\t\t\t}\n\t\t\telse y = platform[selectedPlatform].getY() - Init.getObstacleLargePlatformOffset();\n\t\t\t\n\t\t\tobstacle[i].setLocation(x, y);\n\t\t}\n\t}", "void spawnEntityAt(String typeName, int x, int y);", "Tower(Point location)\r\n\t{\r\n\t\tthis.location=location;\r\n\t}", "protected Entity createEntity()\n\t{\n\t\tLane lane = getLane();\n\t\t//sanity check\n\t\tif( lane instanceof PedestrianLane){\n\t\t\tPedestrianLane pLane = (PedestrianLane) lane;\n\t\t\t\n\t\t\t//create the pedestrian\n\t\t\t//Range of values within the lane a Pedestrian can be spawned at\n\t\t\tdouble rangeMin = Pedestrian.PEDESTRIAN_WIDTH/2;\n\t\t\tdouble rangeMax = PedestrianLane.LANE_WIDTH - Pedestrian.PEDESTRIAN_WIDTH/2;\n\t\t\t\n\t\t\tdouble randRange = rangeMin + (rangeMax - rangeMin)*Utils.random();\n\t\t\t\n\t\t\tdouble x = pLane.x() - randRange*Math.sin(pLane.dirRad());\n\t\t\tdouble y = pLane.y() + randRange*Math.cos(pLane.dirRad());\n\t\t\t\n\t\t\tif (x == pLane.x()) {\n\t\t\t\tx -= 7.5*Math.sin(pLane.dirRad());\n\t\t\t} else if (x == pLane.x() -PedestrianLane.LANE_WIDTH*Math.sin(pLane.dirRad())) {\n\t\t\t\tx += 7.5*Math.sin(pLane.dirRad());\n\t\t\t}\n\t\t\tif (y == pLane.y()) {\n\t\t\t\ty += 7.5*Math.cos(pLane.dirRad());\n\t\t\t} else if (y == pLane.y() +PedestrianLane.LANE_WIDTH*Math.cos(pLane.dirRad())) {\n\t\t\t\ty -= 7.5*Math.cos(pLane.dirRad());\n\t\t\t}\n\t\t\t\n\t\t\tPedestrian p = new Pedestrian(x, y, pLane.dirDeg(), pLane);\n\t\t\treturn p;\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"ERROR: Can't add a pedestrian to a non pedestrian lane\");\n\t\t\t\treturn null;\n\t\t\t}\n\n\t}", "public Critter(){\n\tthis.x_location = (int) (Math.random()*99);\n\tthis.y_location = (int) (Math.random()*99);\n\tthis.wrap();\n\t}", "public void boom() {\n\t\tboom.setPosition(sprite.getX(),sprite.getY());\n\t\tsprite = boom;\n\t}", "public Hole(Map map){\n //tree\n ModelLoader loader = new ObjLoader();\n model = loader.loadModel(Gdx.files.internal(\"hole/flagBlue.obj\"));\n hole = new ModelInstance(model);\n\n hole.transform.translate(map.getHolePosTranslV2().x, map.getHeight(map.getHolePosTranslV2(), -0.5f),map.getHolePosTranslV2().y ) ;\n hole.transform.scl(2f);\n }", "void forceSpawn() throws SpawnException;", "public Bomb(int x, int y) {\n\t\tsuper(x, y);\n\t\tthis.state = new Spawned();\n\t\tthis.visualStatus = new SimpleIntegerProperty(0);\n\t}", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "abstract public void initSpawn();", "public Obstacle(int xPos,BufferedImage bi)\r\n {\r\n super(xPos,(int)(bi.getHeight()*2/3*(Math.random()*0.5+0.25)),bi);\r\n //super(x,y,width,height);\r\n }", "public abstract LivingObject createLife(Cell locat);", "private void createParticleOutsideOfBB(){\n\t\tint x = 0;\n\t\tint y = 0;\n\t\tint r = randInt.getRandInt(1, 4);\n\t\tif(movementType == 0){\n\t\t\tx = randInt.getRandInt(0,xMin);\n\t\t\ty = randInt.getRandInt(0,799);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tswitch (r) {\n\t\t\tcase 1: \n\t\t\t\tx = randInt.getRandInt(0,599);\n\t\t\t\ty = randInt.getRandInt(0,yMin);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tx = randInt.getRandInt(0,599);\n\t\t\t\ty = randInt.getRandInt(yMax,799);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tx = randInt.getRandInt(0,xMin);\n\t\t\t\ty = randInt.getRandInt(0,799);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tx = randInt.getRandInt(xMax,599);\n\t\t\t\ty = randInt.getRandInt(0,799);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tparticleCollection.add(new Particle(x,y,1,1,width,height,randInt.getRandInt(0,1),randInt.getRandInt(0,1),worldMatrix));\n\t}", "public void initPlateau() {\r\n\t\t// On place les obstacles\r\n\t\tint epaisseur = 20;\r\n\t\tint delta = 50;\r\n\t\tint espace = 150;\r\n\t\tobstacles.add(new Obstacle(0,0,width,epaisseur));\r\n\t\tobstacles.add(new Obstacle(0,height - epaisseur,width,epaisseur));\r\n\t\tobstacles.add(new Obstacle(0,0,epaisseur,height));\r\n\t\tobstacles.add(new Obstacle(width - epaisseur,0,epaisseur,height));\r\n\t\t\r\n\t\tobstacles.add(new Obstacle(0,100,width-espace,epaisseur));\r\n\t\tobstacles.add(new Obstacle(espace,200,width-espace,epaisseur));\r\n\t\tobstacles.add(new Obstacle(0,300,width-espace,epaisseur));\r\n\t\tobstacles.add(new Obstacle(espace,400,width-espace,epaisseur));\r\n\t\t\r\n\t\t// On place les objectifs\r\n\t\t\r\n\t\tobjectifs.add(new Objectif(400,50));\r\n\t\tobjectifs.add(new Objectif(150,50));\r\n\t\tobjectifs.add(new Objectif(300,50));\r\n\t\tobjectifs.add(new Objectif(50,50));\r\n\t\tobjectifs.add(new Objectif(400,50));\r\n\t\tobjectifs.add(new Objectif(600,50));\r\n\t\tobjectifs.add(new Objectif(700,70));\r\n\t\tobjectifs.add(new Objectif(730,100));\r\n\t\tobjectifs.add(new Objectif(730,130));\r\n\t\tobjectifs.add(new Objectif(100,150));\r\n\t\tobjectifs.add(new Objectif(200,150));\r\n\t\tobjectifs.add(new Objectif(400,150));\r\n\t\tobjectifs.add(new Objectif(500,150));\r\n\t\tobjectifs.add(new Objectif(600,150));\r\n\t\tobjectifs.add(new Objectif(700,150));\r\n\t\tobjectifs.add(new Objectif(70,200));\r\n\t\tobjectifs.add(new Objectif(100,250));\r\n\t\tobjectifs.add(new Objectif(500,250));\r\n\t\tobjectifs.add(new Objectif(300,250));\r\n\t\tobjectifs.add(new Objectif(600,250));\r\n\t\tobjectifs.add(new Objectif(700,270));\r\n\t\tobjectifs.add(new Objectif(730,300));\r\n\t\tobjectifs.add(new Objectif(730,330));\r\n\t\tobjectifs.add(new Objectif(100,350));\r\n\t\tobjectifs.add(new Objectif(200,350));\r\n\t\tobjectifs.add(new Objectif(700,350));\r\n\t\tobjectifs.add(new Objectif(500,350));\r\n\t\tobjectifs.add(new Objectif(300,350));\r\n\t\tobjectifs.add(new Objectif(100,350));\r\n\t\tobjectifs.add(new Objectif(70,400));\r\n\t\tobjectifs.add(new Objectif(100,450));\r\n\t\tobjectifs.add(new Objectif(500,450));\r\n\t\tobjectifs.add(new Objectif(300,450));\r\n\t\tobjectifs.add(new Objectif(600,450));\r\n\t\t\r\n\t}", "public Walker(Map map, int x, int y) {\n // set attributes\n this.map = map;\n this.x = x;\n this.y = y;\n\n // set direction\n changeDirection();\n\n // make spawning tile ground\n this.map.tiles[this.y][this.x].add(StaticTile.FLOOR_1);\n }", "public GameObject spawnBigBeamer(LogicEngine in_logicEngine) {\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bigbeamer.png\",((float)LogicEngine.SCREEN_WIDTH/2),LogicEngine.SCREEN_HEIGHT+64,0);\r\n\t\tship.i_animationFrameSizeHeight = 115;\r\n\t\tship.i_animationFrameSizeWidth = 115;\r\n\t\t\r\n\t\t\r\n\t\tship.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-1f)));\r\n\t\t\r\n\t\r\n\t\tship.v.setMaxForce(2.5f);\r\n\t\tship.v.setMaxVel(2.5f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tint i_shootEvery = 80;\r\n\t\t\r\n\t\tBeamShot b = new BeamShot(i_shootEvery);\r\n\t\t\r\n\t\tb.b_flare=false;\r\n\t\tb.f_offsetX=-40;\r\n\t\tb.f_offsetY=-30;\r\n\t\tb.i_delay = 40;\r\n\t\tb.i_beamWidth = 15;\r\n\t\t\r\n\t\tBeamShot b2 = new BeamShot(i_shootEvery);\r\n\t\tb2.b_flare=false;\r\n\t\tb2.f_offsetX=40;\r\n\t\tb2.f_offsetY=-30;\r\n\t\tb2.i_delay = 40+(i_shootEvery/2);\r\n\t\tb2.i_beamWidth = 15;\r\n\t\tb.nextBeam = b2;\r\n\t\t\r\n\t\tship.shootEverySteps=1;\r\n\t\tship.shotHandler = b;\r\n\t\t\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 100, 50f);\r\n\t\t\r\n\t\tif(!Difficulty.isHard())\r\n\t\t\tc.f_numberOfHitpoints = 200;\r\n\t\tif(!Difficulty.isMedium())\r\n\t\t\tc.f_numberOfHitpoints = 160;\r\n\t\t\r\n\t\tc.setExplosion(Utils.getBossExplosion(ship));\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t}", "public GameObject spawnCarrier(LogicEngine in_logicEngine, float in_x , CARRIER_TYPE in_type)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/thrusterboss.png\",in_x,LogicEngine.SCREEN_HEIGHT+64,30);\r\n\t\t\r\n\t\t\r\n\t\t//set animation frame\r\n\t\tship.i_animationFrame=4;\r\n\t\tship.i_animationFrameRow=0;\r\n\t\tship.i_animationFrameSizeWidth=32;\r\n\t\tship.i_animationFrameSizeHeight=132;\r\n\t\t\r\n\t\tSimplePathfollowing followPathBehaviour = new SimplePathfollowing();\r\n\t\t//pause at the first waypoint\r\n\t\tfollowPathBehaviour.waitAtWaypoint(1, 50);\r\n\t\t\r\n\t\tfollowPathBehaviour.setInfluence(1);\r\n\t\tfollowPathBehaviour.setAttribute(\"arrivedistance\", \"50\", null);\r\n\t\t\r\n\t\tfollowPathBehaviour.waitAtWaypoint(1, 300);\r\n\t\t\r\n\t\t//go straight down then split\r\n\t\tship.v.addWaypoint(new Point2d(in_x, LogicEngine.SCREEN_HEIGHT/1.5));\r\n\t\tship.v.addWaypoint(new Point2d(in_x,-100));\r\n\t\t\r\n\t\tCustomBehaviourStep b = new CustomBehaviourStep(followPathBehaviour);\r\n\t\t\r\n\t\t//turret\r\n\t\t//turret\r\n\t\tDrawable turret = new Drawable();\r\n\t\tturret.i_animationFrame = 6;\r\n\t\tturret.i_animationFrameSizeWidth=16;\r\n\t\tturret.i_animationFrameSizeHeight=16;\r\n\t\tturret.str_spritename = \"data/\"+GameRenderer.dpiFolder+\"/gravitonlevel.png\";\r\n\t\tturret.f_forceRotation = 90;\r\n\t\tship.shotHandler = new TurretShot(turret,\"data/\"+GameRenderer.dpiFolder+\"/redbullets.png\",6,5.0f);\r\n\t\tship.visibleBuffs.add(turret);\r\n\t\t\r\n\t\tship.v.setMaxForce(1);\r\n\t\tship.v.setMaxVel(1);\r\n\t\t\r\n\t\tship.stepHandlers.add(b);\r\n\t\t\r\n\t\tHitpointShipCollision s;\r\n\t\tif(!Difficulty.isHard())\r\n\t\t\t s = new HitpointShipCollision(ship, 160, 32);\r\n\t\telse\r\n\t\t\t s = new HitpointShipCollision(ship, 125, 32);\r\n\t\t\t\r\n\t\ts.setExplosion(Utils.getBossExplosion(ship));\r\n\t\tship.collisionHandler = s; \r\n\t\r\n\t\t//TODO:launch ships handler for shooting\r\n\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_BOTH_SIDES)\r\n\t\t{\r\n\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(true), 50, 5, 5,true));\r\n\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(false), 50, 5, 5,false));\r\n\t\t}\r\n\t\telse\r\n\t\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_RIGHT_ONLY)\r\n\t\t\t{\r\n\t\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(true), 50, 5, 5,true));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_LEFT_ONLY)\r\n\t\t\t\t{\r\n\t\t\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(false), 50, 5, 5,false));\r\n\t\t\t\t}\r\n\t\t\t\t\t\t \r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t\r\n\t}", "Enemy(int floor, int position, String n, int l, int m){\r\n\t\tname = n;\r\n\t\talive = true;\r\n\t\tmovetype = m;\r\n\t\tlevel = l;\r\n\t\thealth = 10*level;\r\n\t\tleftImage = new ImageIcon(getClass().getClassLoader().getResource(n +\"Left.png\"));\r\n\t\trightImage = new ImageIcon(getClass().getClassLoader().getResource(n +\"Right.png\"));\r\n\t\tsetIcon(rightImage);\r\n\r\n\t\t\ty = floor - 100;\r\n\t\t\tx = position;\r\n\t\t\tsetSize(50, 100);\r\n\t\t\tsetLocation(x,y);\r\n\t\t\tsetBackground(Color.red);\r\n\r\n\r\n\t\t}", "private static WorldDescription createWorld() {\r\n \t\tWorldDescription world = new WorldDescription();\t \r\n \t\tworld.setPlaneSize(100);\t\t\r\n \t \tObstacleGenerator generator = new ObstacleGenerator();\r\n \t generator.obstacalize(obstacleType, world); // activate to add obstacles\r\n \t // world.setPlaneTexture(WorldDescription.WHITE_GRID_TEXTURE);\r\n \t\treturn world;\r\n \t}", "public Robots(PApplet p) {\n\t\tbSpeed = 6;\n\t\tbSize = 1;\n\t\tparent = p;\n\t\tx = parent.random (bobWidth, parent.width/2 - bobWidth); // Bob starts in a random place on the screen\n\t\ty = parent.random (bobWidth,parent.width/2 - bobWidth); \n\t}", "public void control(Spawn spawn) {}", "public Piece(int xLoc, int yLoc)\n\t{\n\t\tl = new Location(xLoc, yLoc);\n\t}", "Road(boolean h, MP m){\n\t\t time = m.getLifeTime();\n\t\t horizontal = h; \n\t\t _MP = m;\n\t\t endPosition = _MP.createRandom(_MP.getRoadLengthMin(), _MP.getRoadLengthMax());\n\t }", "public MonkeyTower(MonkeyTowerType type, Floor startingFloor, CopyOnWriteArrayList<Balloon> balloons, int width,\r\n\t\t\tint height) {\r\n\t\tthis.x = startingFloor.getxPos();\r\n\t\tthis.y = startingFloor.getyPos();\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t\t// this.target = target;\r\n\t\tthis.timeSinceLastShot = 0f;\r\n\t\tthis.darts = new ArrayList<Dart>();\r\n\t\tthis.damage = type.damage;\r\n\t\tthis.textures = type.textures;\r\n\t\tthis.balloons = balloons;\r\n\t\tthis.targeted = false;\r\n\t\tthis.range = type.range;\r\n\t\tthis.firingSpeed = type.firingSpeed;\r\n\t\tthis.angle = 0f;\r\n\t\tthis.type = type;\r\n\t\tthis.dart = DartType.NormalDart;\r\n\t\tSystem.out.println(\"Image: \" + width + \" \" + height);\r\n\t}", "@Override\n\tpublic boolean canCoordinateBeSpawn(int par1, int par2) {\n\t\tint i = worldObj.getFirstUncoveredBlock(par1, par2);\n\t\tif (i == 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn Block.blocksList[i].blockMaterial.blocksMovement();\n\t\t}\n\t}", "public EntityItemEmpowerable(World world) {\n super(world);\n }", "@Override\n\tpublic void update() {\n\t\tthis.setBounds(obstacle.getCoords().getX() * 64, obstacle.getCoords().getY() * 64, 64, 64);\n\t}", "private void addObjectTo(Obstacle obj, int l) {\r\n\t\tassert inBounds(obj) : \"Object is not in bounds\";\r\n\t\tif (l == LevelCreator.allTag) {\r\n\t\t\tsharedObjects.add(obj);\r\n\t\t\t//obj.activatePhysics(world);\r\n\t\t}\r\n\t\telse if (l == LevelCreator.lightTag) {\r\n\t\t\tlightObjects.add(obj);\r\n\t\t\t//obj.activatePhysics(world);\r\n\t\t}else if (l == LevelCreator.darkTag) {\r\n\t\t\tdarkObjects.add(obj);\r\n\t\t\t//obj.activatePhysics(world);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onAdd() {\n\t\tsuper.onAdd();\n\n\t\tsetIdleAnimation(4527);\n\t\tsetNeverRandomWalks(true);\n\t\tsetWalkingHomeDisabled(true);\n\n\t\tthis.region = Stream.of(AbyssalSireRegion.values()).filter(r -> r.getSire().getX() == getSpawnPositionX()\n\t\t && r.getSire().getY() == getSpawnPositionY()).findAny().orElse(null);\n\n\t\tRegion region = Region.getRegion(getSpawnPositionX(), getSpawnPositionY());\n\n\t\tif (region != null) {\n\t\t\tregion.forEachNpc(npc -> {\n\t\t\t\tif (npc instanceof AbyssalSireTentacle) {\n\t\t\t\t\tif (!npc.isDead()) {\n\t\t\t\t\t\tnpc.setDead(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tList<Position> tentaclePositions = Arrays.asList(\n\t\t\t\tthis.region.getTentacleEast(),\n\t\t\t\tthis.region.getTentacleWest(),\n\t\t\t\tthis.region.getTentacleNorthEast(),\n\t\t\t\tthis.region.getTentacleNorthWest(),\n\t\t\t\tthis.region.getTentacleSouthEast(),\n\t\t\t\tthis.region.getTentacleSouthWest()\n\t\t );\n\n\t\ttentaclePositions.forEach(position -> {\n\t\t\ttentacles.add(NpcHandler.spawnNpc(5909, position.getX(), position.getY(), position.getZ()));\n\t\t});\n\n\t\tList<Position> respiratoryPositions = Arrays.asList(\n\t\t\t\tthis.region.getRespiratorySystemNorthEast(),\n\t\t\t\tthis.region.getRespiratorySystemNorthWest(),\n\t\t\t\tthis.region.getRespiratorySystemSouthEast(),\n\t\t\t\tthis.region.getRespiratorySystemSouthWest()\n\t\t );\n\n\t\trespiratoryPositions.forEach(position -> respiratorySystems.add(\n\t\t\t\tNpcHandler.spawnNpc(5914, position.getX(), position.getY(), position.getZ())));\n\t}", "public static void main(String[] args) {\n Hero aventurier = new Hero(200, 100);\n Equipement epee = new Equipement(\"epee\", 0);\n Monsters sorciere = new Monsters(\"witch\", 180, 0);\n Monsters barbare = new Monsters(\"olaf\", 160, 0);//Degat et point attaque sont à 0 car ils prendront les valeurs du random\n\n\n System.out.println(\"Bienvenue dans le dongeon\");\n System.out.println(\"Vous avez \" + aventurier.getPointDeVie() + \" Point de vie, \" + aventurier.getFlasqueDeau() + \" flasques pour combatre vos ennemies et une \");\n\n // i=room ;si pointdevie > room-->room+1 sinon game over(pas besoin de creer une classe)\n int i = 1;\n do {\n\n if (aventurier.getPointDeVie() > 0) ;\n {\n System.out.println(\"Room\" + i);\n\n Monsters enemieActuel = barbare;\n//nbr aleatoire entre sorcier et monster\n Random random = new Random();\n int nbrAl = random.nextInt(2 );\n//si nbr=0 = sorcier sinon barbare\n if (nbrAl == 0) {\n enemieActuel = sorciere;\n //sinon barbare\n } else {\n enemieActuel = barbare;\n }\n\n\n //Si barbare faire le do while\n\n if (enemieActuel == barbare) {\n\n do { //Faire des degats aleatoire grace au random à l'aide de l'epee\n epee.setDegat((int) (5 + (Math.random() * 30)));//comme .set dega=0 on lui donne la valeur de math.random\n int degat = epee.getDegat(); //.get renvoi la valeur au int nommer degat\n barbare.setPointDeVie(barbare.getPointDeVie() - degat);//vie - degat\n System.out.println(\"Il reste au barbare \" + barbare.getPointDeVie());//nouvelle valeur de point de vie\n\n\n //idem avec l'aventurier\n barbare.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = barbare.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n // tant que les Pvie de l'aventurier >= 0 et idem barbare continuer le combat\n } while (aventurier.getPointDeVie() >= 0 && barbare.getPointDeVie() >= 0);\n //à la fin du combat si pvie de l'aventurier sont >0 et que i (room) egale 5 \"gagné\"\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n\n //Si juste pvie de l'aventurier > 0 --->room suivante\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n //on redonne les valeurs de depart pdeVie pour la nouvelle room\n aventurier.setPointDeVie(200);\n barbare.setPointDeVie(180);\n i+=1;\n }\n\n // sinon room = 6 pour envoyer le sout \"game over\"\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n\n\n\n }\n\n //IDEM avec sorciere\n else {\n do {\n\n\n aventurier.setFlasqueDeau((int) (5 + (Math.random() * 30)));\n int degat = aventurier.getFlasqueDeau();\n sorciere.setPointDeVie(sorciere.getPointDeVie() - degat);\n System.out.println(\"Il reste à la sorciere \" + sorciere.getPointDeVie());\n\n sorciere.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = sorciere.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n } while (aventurier.getPointDeVie() >= 0 && sorciere.getPointDeVie() >= 0);\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n aventurier.setPointDeVie(200);\n sorciere.setPointDeVie(160);\n i+=1;\n }\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n }\n } } while (i <= 5 && aventurier.getPointDeVie() > 0);\n\n\n }", "public static Action spawn(final Class<?> e) {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.isFacingValidLocation() && a.getFacing() == null) {\n if(a.energy >= getCost()) {\n try {\n Actor b = (Actor) e.newInstance();\n b.putSelfInGrid(a.getGrid(), a.getLocation().getAdjacentLocation(a.getDirection()));\n } catch(InstantiationException r) {\n r.printStackTrace();\n } catch(IllegalAccessException r) {\n r.printStackTrace();\n }\n a.energy = a.energy - 400;\n }\n }\n }\n\n @Override\n public int getCost() {\n return 400;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return e;\n }\n\n @Override\n public String toString() {\n return \"Spawn(\" + (e != null ? e.toString() : \"null\") + \")\";\n }\n };\n }", "private void populateLevel() {\n\t\t// Make the ragdoll\n\t\tragdoll = new RagdollModel(DOLL_POS.x, DOLL_POS.y);\n\t\tragdoll.setDrawScale(scale.x,scale.y);\n\t\tragdoll.setPartTextures(bodyTextures);\n\t\tragdoll.getBubbleGenerator().setTexture(bubbleTexture);\n\t\taddObject(ragdoll);\n\n\t\t// Create ground pieces\n\t\tPolygonObstacle obj;\n\t\tobj = new PolygonObstacle(WALL1, 0, 0);\n\t\tobj.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tobj.setDensity(BASIC_DENSITY);\n\t\tobj.setFriction(BASIC_FRICTION);\n\t\tobj.setRestitution(BASIC_RESTITUTION);\n\t\tobj.setDrawScale(scale);\n\t\tobj.setTexture(earthTile);\n\t\tobj.setName(\"wall1\");\n\t\taddObject(obj);\n\n\t\tobj = new PolygonObstacle(WALL2, 0, 0);\n\t\tobj.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tobj.setDensity(BASIC_DENSITY);\n\t\tobj.setFriction(BASIC_FRICTION);\n\t\tobj.setRestitution(BASIC_RESTITUTION);\n\t\tobj.setDrawScale(scale);\n\t\tobj.setTexture(earthTile);\n\t\tobj.setName(\"wall2\");\n\t\taddObject(obj);\n\n\t\tselector = new ObstacleSelector(world);\n\t\tselector.setTexture(crosshairTexture);\n\t\tselector.setDrawScale(scale);\n\t\t\n\t\t/*\n\t\tBodyDef groundDef = new BodyDef();\n\t\tgroundDef.type = BodyDef.BodyType.StaticBody;\n\t\tEdgeShape groundShape = new EdgeShape();\n\t\tgroundShape.set(-500.0f, 0.0f, 500.0f, 0.0f);\n\t\tground = world.createBody(groundDef);\n\t\tground.createFixture(groundShape,0);\n\t\t*/\n\t}", "public BigLpiece()\r\n\t{\r\n\t\tsuper();\r\n\t\ttype=BIGL_PIECE; \r\n\t\tpositions = new Point[][]{{new Point (0,1), new Point (0,2), new Point (0,3), new Point (1,3)}, \r\n\t\t\t\t{new Point (1,0), new Point (2,0), new Point (3,0), new Point (3,-1)},\r\n\t\t\t\t{new Point (0,-1), new Point (0,-2), new Point (0,-3), new Point (-1,-3)},\r\n\t\t\t\t{new Point (-1,0), new Point (-2,0), new Point (-3,0), new Point (-3,1)},\r\n\t\t\t\t{new Point (0,-1), new Point (0,-2), new Point (0,-3), new Point (1,-3)},\r\n\t\t\t\t{new Point (1,0), new Point (2,0), new Point (3,0), new Point (3,1)},\r\n\t\t\t\t{new Point (0,1), new Point (0,2), new Point (0,3), new Point (-1,3)}, \r\n\t\t\t\t{new Point (-1,0), new Point (-2,0), new Point (-3,0), new Point (-3,-1)}};\r\n\t}", "private static void spawnAtRandomLocation(World world, GameObject gameObject) {\n spawnAtRandomLocation(world, gameObject, 0.5);\n }", "@Override\n public void run() {\n World world=Bukkit.getWorld(\"world\");\n world.spawnEntity(world.getHighestBlockAt(world.getSpawnLocation()).getLocation(), EntityType.VILLAGER);\n }", "public BallSpawner(Board board, String name, GridLocation location) {\n super(board, name, location, Constants.BALLSPAWNER_REFLECTION_COEFF);\n collidables.add(new FixedCircle(location.toVect().plus(new Vect(0.5,0.5)), 0.5, reflectionCoeff));\n representation = Collections.unmodifiableList(Arrays.asList(\"@\"));\n assert(checkRep());\n }", "public SaboWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1);\n addObject(counter, 100, 380); //Add the scoreboard\n addObject(healthBar, 300, 370); //Add the health bar\n addObject(turret, getWidth()/2-5, getHeight()-turret.getImage().getWidth()); \n }", "public Othello() {\n\t\tmyBoard = new Board(8);\n\t\tplayerBlack = spawnPlayer(Color.BLACK);\n\t\tplayerWhite = spawnPlayer(Color.WHITE);\n\t\tpropertySupport = new PropertyChangeSupport(this);\n\t\tinitialisationBoard();\n\t\tcurrentPlayer = playerBlack;\n\t\tfoeHasPlay = true;\n\t\taiPlay = false;\n\t}", "public void spawn(Location location) {\r\n Packet<?>[] packets = {\r\n new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.ADD_PLAYER),\r\n new PacketPlayOutNamedEntitySpawn(),\r\n new PacketPlayOutEntityHeadRotation()\r\n };\r\n\r\n setFieldCastValue(packets[0], \"b\", Collections.singletonList(this.getPlayerInfoData((PacketPlayOutPlayerInfo) packets[0])));\r\n\r\n setFieldValue(packets[1], \"a\", this.entityId); // Just change entity id to prevent client-side problems\r\n setFieldValue(packets[1], \"b\", this.profile.getId());\r\n setFieldValue(packets[1], \"c\", location.getX());\r\n setFieldValue(packets[1], \"d\", location.getY());\r\n setFieldValue(packets[1], \"e\", location.getZ());\r\n setFieldValue(packets[1], \"f\", (byte) (location.getYaw() * 256.0F / 360.0F));\r\n setFieldValue(packets[1], \"g\", (byte) (location.getPitch() * 256.0F / 360.0F));\r\n setFieldValue(packets[1], \"h\", this.player.getPlayer().getHandle().getDataWatcher());\r\n\r\n setFieldValue(packets[2], \"a\", this.entityId);\r\n setFieldValue(packets[2], \"b\", (byte) (location.getYaw() * 256.0F / 360.0F));\r\n\r\n for (GamePlayer player : this.plugin.getGameManager().getAllPlayers())\r\n for (Packet<?> packet : packets)\r\n player.sendPacket(packet);\r\n }", "public void createWorld(){\n\n }", "Enemy(int floor, int position, String n, int l){\r\n\t\tname = n;\r\n\t\talive = true;\r\n\t\tlevel = l;\r\n\t\thealth = 2*level;\r\n\t\tleftImage = new ImageIcon(getClass().getClassLoader().getResource(n +\"Left.png\"));\r\n\t\trightImage = new ImageIcon(getClass().getClassLoader().getResource(n +\"Right.png\"));\r\n\t\tsetIcon(rightImage);\r\n\r\n\t\t\ty = floor - 100;\r\n\t\t\tx = position;\r\n\t\t\tsetSize(50, 100);\r\n\t\t\tsetLocation(x,y);\r\n\t\t\tsetBackground(Color.red);\r\n\r\n\r\n\t\t}", "public void doAi(){\n\t\t\tif(MathHelper.getRandom(0, Game.FRAMERATE * 5) == 5){\n\t\t\t\tsetScared(true);\n\t\t\t}\n\t\t\n\t\t//Update rectangle\n\t\tsetRectangle(getX(), getY(), getTexture().getWidth(), getTexture().getHeight());\n\t\t\n\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\t\n\t\tif(rect.intersects(getRectangle())){\n\t\t\t\n\t\t\tif(StateManager.getState() == StateManager.STATE_BOSSTWO){\n\t\t\t\t\n\t\t\t\t\tsetDestinationX(StateGame.player.getX());\n\t\t\t\t\t\n\t\t\t\t\tsetDestinationY(StateGame.player.getY());\n\t\t\t\t\t\n\t\t\t\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\t\t\t\treachedDestination = (true);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Check for collision with jelly\n\t\tint checkedJelly = (0);\n\t\twhile(checkedJelly < EntityJelly.JELLY.size() && EntityJelly.JELLY.get(checkedJelly) != null){\n\t\t\tif(EntityJelly.JELLY.get(checkedJelly).getDead() == false){\n\t\t\t\tif(getRectangle().intersects(EntityJelly.JELLY.get(checkedJelly).getRectangle())){\n\t\t\t\t\tsetHealth(getHealth() - 2);\n\t\t\t\t\tif(MathHelper.getRandom(1, 10) == 10){\n\t\t\t\t\tAnnouncer.addAnnouncement(\"-2\", 60, EntityJelly.JELLY.get(checkedJelly).getX(), EntityJelly.JELLY.get(checkedJelly).getY());\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tcheckedJelly++;\n\t\t}\n\t\t\n\t\t//If we're out of health, kill the entity\n\t\tif(getHealth() < 0){\n\t\t\tsetDead(true);\n\t\t}\n\t\t\n\t\tif(StateManager.getState() == StateManager.STATE_BOSSTWO){\n\t\t\tif(reachedDestination == true){\n\t\t\t\tif(getScared() == false){\n\t\t\t\tsetY(getY() + getSpeed());\n\t\t\t\t}else{\n\t\t\t\t\tsetY(getY() - getSpeed() * 3);\n\t\t\t\t\tsetX(getX() - getSpeed() * 3);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(getScared() == false){\n\t\t\t\tif(getX() < getDestinationX())\n\t\t\t\t\tsetX(getX() + getSpeed());\n\t\t\t\tif(getX() > getDestinationX())\n\t\t\t\t\tsetX(getX() - getSpeed());\n\t\t\t\tif(getY() < getDestinationY())\n\t\t\t\t\tsetY(getY() + getSpeed());\n\t\t\t\tif(getY() > getDestinationY())\n\t\t\t\t\tsetY(getY() - getSpeed());\n\t\t\t\t}else{\n\t\t\t\t\t\tsetY(getY() - getSpeed() * 3);\n\t\t\t\t\t\tsetX(getX() - getSpeed() * 3);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void spawn(boolean type)\n\t{\n\t\tif (type)\n\t\t{\n\t\t\triver[findEmpty()] = new Bear();\n\t\t}\n\t\telse\n\t\t{\n\t\t\triver[findEmpty()] = new Fish();\n\t\t}\n\t}", "public Heroes(int x, int y,int tamanioX, int tamanioY,String nombre, boolean spawned,boolean alive, int HP, int velocidad) {//inicio de el constructor por paramteros que recibe si esta vivo, la vida, velocidad\r\n\t\t\tsuper(x,y,tamanioX,tamanioY,nombre,spawned,alive,HP,velocidad);\r\n\t\r\n\t\t}", "void spawnItem(@NotNull Point point) {\n int anInt = r.nextInt(100) + 1;\n if (anInt <= 10)\n objectsInMap.add(new AmmoItem(point));\n else if (anInt <= 20)\n objectsInMap.add(new HealthItem(point));\n else if (anInt <= 30)\n objectsInMap.add(new ShieldItem(point));\n else if (anInt <= 40)\n objectsInMap.add(new StarItem(point));\n else if (anInt <= 45)\n objectsInMap.add(new LivesItem(point));\n }", "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 }", "protected void warp() {\n\t\tRandom r = new Random();\n\t\t\n\t\t// Get random index from coordinates list\n\t\tint nextPos = r.nextInt(this.coords.length);\n\t\t\n\t\t// Set new position for monster\n\t\tthis.setBounds(this.coords[nextPos].width, this.coords[nextPos].height, mWidth, mHeight);\n\t\t\n\t\tthis.setVisible(true);\n\t}", "private void spawnMediumEnemy(IEnemyService spawner, World world, GameData gameData) {\r\n if (spawner != null) {\r\n spawner.createMediumEnemy(world, gameData, new Position(randomIntRange(1600, 3200), gameData.getGroundHeight()));\r\n spawner.createMediumEnemy(world, gameData, new Position(randomIntRange(-600, -2000), gameData.getGroundHeight()));\r\n }\r\n }", "@Override\r\n public boolean dye() {\r\n if (getX() > 3100 || getX() < 10 || getY() < 10 || getY() > 3100) {\r\n return true;\r\n }\r\n// int pixel = mapRGB.getRGB((int) getX(), (int) getY());\r\n// int red = (pixel >> 16) & 0xff;\r\n// if(red==255){this.handler.getWaves().removeEnemy(); return true;}\r\n int k = collision(velX, velY, this.getX(), this.getY());\r\n if(k!=0) {\r\n this.handler.getWaves().removeEnemy(); \r\n return true;\r\n }\r\n else{\r\n zombie_x = getX(); \r\n zombie_y = getY();\r\n }\r\n //I proiettili hanno una portata limitata o se ha colpito il player o se è uscito dalla mappa o se è andato contro un muro\r\n if ((this.getHealth() == 0) || (handler.getPlayer().getBounds().contains(getX(), getY()))) {\r\n int n = (int) (Math.random() * 10);\r\n if(n>1) n=2;\r\n switch (n) {\r\n case 2:\r\n this.handler.addSprite(new StandardZombie(zombie_x, zombie_y, 3, 200, 25, handler.getPlayer(), this.handler, 30, 60, 60, 5, new Animation(Assets.zombie, 20), new Animation(Assets.zombieAttack, 35), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n case 0:\r\n this.handler.addSprite(new StandardZombie(zombie_x, zombie_y, 4, 70, 50, handler.getPlayer(), this.handler, 0, 60, 60, 20, new Animation(Assets.zombie2, 15), new Animation(Assets.zombie2Attack, 15), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n case 1:\r\n this.handler.addSprite(new SpittleZombie(zombie_x, zombie_y, 3, 500, 40, handler.getPlayer(), this.handler, 0, 60, 60, 45, new Animation(Assets.zombie3, 15), new Animation(Assets.zombie3Attack, 15), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n }\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "public Monster(String name,int monsterType,int health,int monstersWalkDistanceX,int monstersWalkDistanceY,int resourceReward,int monsterSize,int whichSide,int respawnTime)\n {\n this.name=name;\n this.monsterType=monsterType;\n this.health=health;\n this.monstersWalkDistanceX=monstersWalkDistanceX;\n this.monstersWalkDistanceY=monstersWalkDistanceY;\n this.resourceReward=resourceReward;\n this.monsterSize=monsterSize;\n this.whichSide=whichSide;\n this.maxHealth=health;\n this.targetable=true;\n this.visible=true;\n this.respawnTime=respawnTime;\n\n setDefaultMonsterCords();\n\n this.firstCross=pathDrawLots(2)+1;\n this.secondCross=pathDrawLots(2)+3;\n\n }", "public GiantWarrior(float x, float y, boolean enemy, int level) {\r\n\t\tsuper(x, y, (int) Data.GIANTWARRIOR_STATS[0], (int) Data.GIANTWARRIOR_STATS[1],\r\n\t\t\t\t(int) Data.GIANTWARRIOR_STATS[2], Data.GIANTWARRIOR_STATS[3],\r\n\t\t\t\t(int) (Data.GIANTWARRIOR_STATS[4] * Math.pow(1.1, level - 1)), enemy, Data.GIANTWARRIOR_ICON,\r\n\t\t\t\tData.GIANTWARRIOR_ATTACK_ICON);\r\n\t}", "public JumpManager(int x, int y, int width, int height) throws Exception {\n CANVAS_X = x;\n CANVAS_Y = y;\n DISP_WIDTH = width;\n DISP_HEIGHT = height;\n myCurrentLeftX = Grass.CYCLE * Grass.TILE_WIDTH;\n setViewWindow(0, 0, DISP_WIDTH, DISP_HEIGHT);\n // create the player:\n if (myCowboy == null) {\n myCowboy = new Cowboy(myCurrentLeftX + DISP_WIDTH / 2, DISP_HEIGHT\n - Cowboy.HEIGHT - 2);\n append(myCowboy);\n }\n // create the tumbleweeds to jump over:\n if (myLeftTumbleweeds == null) {\n myLeftTumbleweeds = new Tumbleweed[2];\n for (int i = 0; i < myLeftTumbleweeds.length; i++) {\n myLeftTumbleweeds[i] = new Tumbleweed(true);\n append(myLeftTumbleweeds[i]);\n }\n }\n if (myRightTumbleweeds == null) {\n myRightTumbleweeds = new Tumbleweed[2];\n for (int i = 0; i < myRightTumbleweeds.length; i++) {\n myRightTumbleweeds[i] = new Tumbleweed(false);\n append(myRightTumbleweeds[i]);\n }\n }\n // create the background object:\n if (myGrass == null) {\n myGrass = new Grass();\n append(myGrass);\n }\n }" ]
[ "0.7030021", "0.64933884", "0.64729744", "0.63086665", "0.63046324", "0.62079716", "0.6206218", "0.6185942", "0.6155939", "0.60935307", "0.5920187", "0.5908291", "0.59034795", "0.58785754", "0.58717304", "0.5857083", "0.58565557", "0.58249503", "0.57876074", "0.5785109", "0.5773794", "0.5764378", "0.5752694", "0.5752163", "0.57436246", "0.5717897", "0.57083076", "0.56862444", "0.568159", "0.5658166", "0.5656823", "0.56531274", "0.56431955", "0.5628661", "0.5624199", "0.5618916", "0.5618128", "0.5612784", "0.5610205", "0.56037277", "0.5588728", "0.5576892", "0.55725336", "0.55572754", "0.5556533", "0.55256927", "0.5520297", "0.5518589", "0.5509437", "0.5495334", "0.54933983", "0.5493102", "0.54902947", "0.5488936", "0.5485132", "0.54616845", "0.5453407", "0.54471713", "0.54438233", "0.54431844", "0.54397017", "0.54392", "0.5436165", "0.54351103", "0.5433557", "0.54324687", "0.5418754", "0.5417169", "0.54169273", "0.54161304", "0.5414289", "0.54039073", "0.54027", "0.5394976", "0.5394372", "0.5387615", "0.538751", "0.5380507", "0.53776395", "0.53769124", "0.5372032", "0.53623164", "0.5353764", "0.5352154", "0.5341936", "0.5338172", "0.533809", "0.5330603", "0.53258914", "0.53254735", "0.5319153", "0.5317419", "0.5312796", "0.53100306", "0.53083307", "0.5307117", "0.53058046", "0.5302489", "0.52996045", "0.5291328" ]
0.6168084
8
a method to spawn a wrench, an obstacle that increases health on collision.
@Spawns("wrench") public Entity spawnWrench(SpawnData data) { return entityBuilder() .from(data) .type(WRENCH) .viewWithBBox(texture("wrench.png", 40, 58)) .with(new CollidableComponent(true)) .with(new OffscreenCleanComponent()) .with(new LiftComponent().yAxisSpeedDuration(150, Duration.seconds(15))) .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Water_Hero(RefLinks refLink, float x, float y)\r\n {\r\n ///Apel al constructorului clasei de baza\r\n super(refLink, x,y, Character.DEFAULT_CREATURE_WIDTH, Character.DEFAULT_CREATURE_HEIGHT);\r\n\r\n ///Seteaza imaginea de start a eroului\r\n image = Assets.heroLeft;\r\n\r\n ///Stabilieste pozitia relativa si dimensiunea dreptunghiului de coliziune, starea implicita(normala)\r\n normalBounds.x = 16;\r\n normalBounds.y = 16;\r\n normalBounds.width = 16;\r\n normalBounds.height = 32;\r\n\r\n ///Stabilieste pozitia relativa si dimensiunea dreptunghiului de coliziune, starea de atac\r\n attackBounds.x = 10;\r\n attackBounds.y = 10;\r\n attackBounds.width = 38;\r\n attackBounds.height = 38;\r\n\r\n jumpingTimer = new Timer();\r\n\r\n lista_dinamic_element = new ArrayList<CollisionItem>();\r\n\r\n lista_static_element = new ArrayList<CollisionItem>();\r\n list_fire = new ArrayList<CollisionItem>();\r\n }", "public GameWon()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(550, 600, 1); \n addObject(b1,275,250);\n addObject(b2,275,380);\n }", "public void spawnObstacle(){\n\t\tif(this.seconds > this.nextSpawn && !this.gameOver){\n\t\t\tint pX = this.radom.nextInt(350);\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,0,30,pX,0));\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,pX+110,30,HEIGHT-pX-111,0));\n\t\t\tthis.goals.add(new Goal(WIDTH,pX,30,110,0xffffff));\n\t\t\tthis.nextSpawn = this.seconds + this.spawnRate;\n\t\t}\n\t}", "public void spawnWanderingSeeker(LogicEngine in_logicEngine)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/triangle.png\",(float)LogicEngine.SCREEN_WIDTH*Math.random(),LogicEngine.SCREEN_HEIGHT-10,0);\r\n\t\t\t\t\r\n\t\t//set animation frame\r\n\t\tship.i_animationFrame=1;\r\n\t\tship.i_animationFrameRow=0;\r\n\t\tship.i_animationFrameSizeWidth=16;\r\n\t\tship.i_animationFrameSizeHeight=16;\r\n\t\t\r\n\t\t//wander \t\r\n\t\tCustomBehaviourStep cb = new CustomBehaviourStep(new Wander(-2.5,2.5,20,0.1));\r\n\t\tship.stepHandlers.add( cb);\r\n\t\t\r\n\t\t//chase player if on medium or hard\r\n\t\tif(Difficulty.difficulty == DIFFICULTY.MEDIUM || \r\n\t\t\t\tDifficulty.difficulty == DIFFICULTY.HARD)\r\n\t\t{\t\r\n\t\t\tSeekNearestPlayerStep sps = new SeekNearestPlayerStep(100);\r\n\t\t\tship.stepHandlers.add(sps);\r\n\t\t}\r\n\t\r\n\t\tship.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-2)));\r\n\t\tship.collisionHandler = new DestroyIfEnemyCollision(ship, 10, true);\r\n\t\tship.v.setMaxForce(2);\r\n\t\tship.v.setMaxVel(2);\r\n\t\t\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t}", "public synchronized void addTheWarrior(Warrior w){\n Warrior obj=(Warrior)charactersOccupiedTheLocation[0];\n while(obj!=null && w.checkMobility() && obj.checkMobility() && obj.checkIsAlive()){\n try {\n wait(1000); //1000\n } catch (InterruptedException ex) {}\n obj=(Warrior)charactersOccupiedTheLocation[0];\n }\n charactersOccupiedTheLocation[0]=w;\n }", "public FightController(Character character, Room room) {\n super(character, room);\n cardRewardGiven = false;\n relicRewardGiven = false;\n goldRewardGiven = false;\n potRewardGiven = false;\n isGameOver = false;\n turn = 0;\n enemies = ((EnemyRoom)room).getEnemies();\n enemyController = new EnemyController(room,character);\n System.out.println( \"number of cards in draw pile : \" + character.getDeck().getCards().size() );\n piles = new PileCollection( new Pile(),character.getDeck().getClone() , new Pile( ) , new Pile());\n\n effectHandler = new EffectHandler( enemies,enemyController,turn,3,piles,character);\n\n BuffFactory bF = new BuffFactory();\n //character.addBuff(bF.createBuff(\"Metallicize\",5) );\n //character.getBuffs().getBuffs().get(0).setRemainingTurn(5);//character\n // piles.getHandPile().addCard(CardFactory.getCard(\"PommelStrike\"));\n // character.getBuffs().getBuffs().get(0).setX(5);\n\n start();\n\n }", "public void attack()\n {\n getWorld().addObject(new RifleBullet(player.getX(), player.getY(), 1, 6, true), getX(), getY()); \n }", "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 win()\r\n {\n Actor win;\r\n win=getOneObjectAtOffset(0,0,Goal.class);\r\n if (win !=null)\r\n {\r\n World myWorld=getWorld();\r\n Congrats cong=new Congrats();\r\n myWorld.addObject(cong,myWorld.getWidth()/2,myWorld.getHeight()/2); //(Greenfoot,2013) \r\n \r\n Greenfoot.stop();\r\n Greenfoot.playSound(\"finish.wav\"); //(Sound-Ideas,2014)\r\n \r\n }\r\n }", "private GameObject spawnBoss(LogicEngine in_logicEngine,LevelManager in_manager)\r\n\t{\n\t\tGameObject go = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/redcube.png\",in_logicEngine.SCREEN_WIDTH/2,LogicEngine.rect_Screen.getHeight()+50,0);\r\n\t\tboss = go;\r\n\t\t\r\n\t\tboss.i_animationFrameRow = 1;\r\n\t\tboss.i_animationFrame =0;\r\n\t\tboss.i_animationFrameSizeWidth =75;\r\n\t\tboss.i_animationFrameSizeHeight =93;\r\n\t\t\r\n\t\tboss.v.setMaxForce(1);\r\n\t\tboss.v.setMaxVel(5);\r\n\t\tboss.stepHandlers.add( new BounceOfScreenEdgesStep());\r\n\t\t\r\n\t\t\r\n\t\tboss_arrive.setAttribute(\"arrivedistance\", \"50\", null);\r\n\t\tboss.stepHandlers.add( new CustomBehaviourStep(boss_arrive));\r\n\t\tboss.isBoss = true;\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(boss, 150, 40, true,1);\r\n\t\t\r\n\t\tif(Difficulty.isMedium())\r\n\t\t\tc.f_numberOfHitpoints = 200;\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t\tc.f_numberOfHitpoints = 250;\r\n\t\t\r\n\t\tif(Difficulty.isMedium())\r\n\t\t\ti_bossBubbleEvery = 125;\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t\ti_bossBubbleEvery = 100;\r\n\t\t\r\n\t\t\r\n\t\tc.addHitpointBossBar(in_logicEngine);\r\n\t\tc.setExplosion(Utils.getBossExplosion(boss));\r\n\t\tboss.collisionHandler = c;\r\n\t\t\r\n\t\tboss.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t//initial velocity of first one \r\n\t\tboss.v.setVel(new Vector2d(0,-5));\r\n\t\t\r\n\t\tGameObject Tadpole1 = in_manager.spawnTadpole(in_logicEngine);\r\n\t\tGameObject Tadpole2 = in_manager.spawnTadpole(in_logicEngine);\r\n\t\t\r\n\t\tGameObject Bubble = null;\r\n\t\t\r\n\t\t\r\n\t\tBubble = spawnBossBubble(in_logicEngine, 0, 3);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tTadpole1.v.setVel(new Vector2d(-10,5));\r\n\t\tTadpole2.v.setVel(new Vector2d(10,5));\r\n\t\tBubble.v.setVel(new Vector2d(0,-5));\r\n\t\t\r\n\t\tLaunchShipsStep l1 = new LaunchShipsStep(Tadpole1 , 50, 5, 1, false);\r\n\t\tLaunchShipsStep l2 = new LaunchShipsStep(Tadpole2, 50, 5, 1, true);\r\n\t\tLaunchShipsStep l3 = new LaunchShipsStep(Bubble, i_bossBubbleEvery, 1, 1, true);\r\n\t\tl1.b_addToBullets = true;\r\n\t\tl2.b_addToBullets = true;\r\n\t\t\r\n\t\tboss.stepHandlers.add(l1);\r\n\t\tboss.stepHandlers.add(l2);\r\n\t\tboss.stepHandlers.add(l3);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\td_eye = new Drawable();\r\n\t\td_eye.i_animationFrameSizeHeight=8;\r\n\t\td_eye.i_animationFrameSizeWidth=8;\r\n\t\td_eye.i_animationFrameRow = 3;\r\n\t\td_eye.str_spritename = \"data/\"+GameRenderer.dpiFolder+\"/eye.png\";\r\n\t\t\r\n\t\tboss.visibleBuffs.add(d_eye);\r\n\t\t\r\n\t\treturn boss;\r\n\t}", "@Override\n protected void spawnInWorld(float x, float y, float xVel, float yVel)\n {\n PolygonShape hitbox = new PolygonShape();\n hitbox.setAsBox(3.0F, 1.0F, new Vector2(0, 0), 0);\n \n //Set up body definition - Defines the type of physics body that this is\n BodyDef bodyDef = new BodyDef();\n bodyDef.type = BodyDef.BodyType.DynamicBody;\n bodyDef.position.set(x, y);\n \n //Set up physics body - Defines the actual physics body\n this.physBody = this.world.getPhysWorld().createBody(bodyDef);\n this.physBody.setUserData(this); //Store this object into the body so that it isn't lost\n \n //Set up physics fixture - Defines physical properties\n FixtureDef fixtureDef = new FixtureDef();\n fixtureDef.shape = hitbox;\n fixtureDef.density = 100.0F; //About 1 g/cm^2 (2D), which is the density of water, which is roughly the density of humans.\n fixtureDef.friction = 0.1F; //friction with other objects\n fixtureDef.restitution = 0.1F; //Bouncyness\n \n //Set which collision type this object is\n fixtureDef.filter.categoryBits = COL_SEA_CREATURE;\n //Set which collision types this object collides with\n fixtureDef.filter.maskBits = COL_ALL ^ COL_SEA_PROJECTILE; //Collide with everything except sea creature projectiles\n \n this.physBody.createFixture(fixtureDef);\n \n //Set the linear damping\n this.physBody.setLinearDamping(5F);\n \n //Set the angular damping\n this.physBody.setAngularDamping(2.5F);\n \n //Apply impulse\n this.physBody.applyLinearImpulse(xVel, yVel, x, y, true);\n \n //Dispose of the hitbox shape, which is no longer needed\n hitbox.dispose();\n }", "public gameWorld()\n { \n // Create a new world with 600x600 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n addObject(new winSign(), 310, 300);\n addObject(new obscureDecorative(), 300, 400);\n addObject(new obscureDecorative(), 300, 240);\n \n for(int i = 1; i < 5; i++) {\n addObject(new catchArrow(i * 90), 125 * i, 100);\n }\n for (int i = 0; i < 12; i++) {\n addObject(new damageArrowCatch(), 50 * i + 25, 50); \n }\n \n \n //Spawning Interval\n\n if(timerInterval >= 10) {\n arrowNumber = Greenfoot.getRandomNumber(3);\n }\n if(arrowNumber == 0) {\n addObject(new upArrow(directionOfArrow[0], imageOfArrow[0]), 125, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 1) {\n addObject(new upArrow(directionOfArrow[1], imageOfArrow[1]), 125 * 2, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 2) {\n addObject(new upArrow(directionOfArrow[2], imageOfArrow[2]), 125 * 3, 590);\n arrowNumber = 5;\n }\n if( arrowNumber == 3) {\n addObject(new upArrow(directionOfArrow[3], imageOfArrow[3]), 125 * 4, 590);\n arrowNumber = 5;\n }\n \n \n\n \n }", "public void spawnEnemy(){\n\t\tint initTile = 0;\n\t\n\t\tfor(int i=0; i<screen.maps[screen.currentMap].path.getHeight(); i++){\n\t\t\tif(screen.maps[screen.currentMap].path.getCell(0, i).getTile().getProperties().containsKey(\"ground\") == true){\n\t\t\t\tinitTile = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\txCoor = 2;\n\t\tyCoor = (initTile)*64 + 2;\n\t\tbound = new Circle(xCoor+30, yCoor+30, 30);\n\t\tinGame = true;\n\t}", "public void makeHero()\r\n { \r\n maxHealth = 100;\r\n health = maxHealth;\r\n }", "private void wander(){\n\t\tmonster.moveRandom();\r\n\t\tsaveMove();\r\n\t}", "public GameObject spawnCarrier(LogicEngine in_logicEngine, float in_x , CARRIER_TYPE in_type)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/thrusterboss.png\",in_x,LogicEngine.SCREEN_HEIGHT+64,30);\r\n\t\t\r\n\t\t\r\n\t\t//set animation frame\r\n\t\tship.i_animationFrame=4;\r\n\t\tship.i_animationFrameRow=0;\r\n\t\tship.i_animationFrameSizeWidth=32;\r\n\t\tship.i_animationFrameSizeHeight=132;\r\n\t\t\r\n\t\tSimplePathfollowing followPathBehaviour = new SimplePathfollowing();\r\n\t\t//pause at the first waypoint\r\n\t\tfollowPathBehaviour.waitAtWaypoint(1, 50);\r\n\t\t\r\n\t\tfollowPathBehaviour.setInfluence(1);\r\n\t\tfollowPathBehaviour.setAttribute(\"arrivedistance\", \"50\", null);\r\n\t\t\r\n\t\tfollowPathBehaviour.waitAtWaypoint(1, 300);\r\n\t\t\r\n\t\t//go straight down then split\r\n\t\tship.v.addWaypoint(new Point2d(in_x, LogicEngine.SCREEN_HEIGHT/1.5));\r\n\t\tship.v.addWaypoint(new Point2d(in_x,-100));\r\n\t\t\r\n\t\tCustomBehaviourStep b = new CustomBehaviourStep(followPathBehaviour);\r\n\t\t\r\n\t\t//turret\r\n\t\t//turret\r\n\t\tDrawable turret = new Drawable();\r\n\t\tturret.i_animationFrame = 6;\r\n\t\tturret.i_animationFrameSizeWidth=16;\r\n\t\tturret.i_animationFrameSizeHeight=16;\r\n\t\tturret.str_spritename = \"data/\"+GameRenderer.dpiFolder+\"/gravitonlevel.png\";\r\n\t\tturret.f_forceRotation = 90;\r\n\t\tship.shotHandler = new TurretShot(turret,\"data/\"+GameRenderer.dpiFolder+\"/redbullets.png\",6,5.0f);\r\n\t\tship.visibleBuffs.add(turret);\r\n\t\t\r\n\t\tship.v.setMaxForce(1);\r\n\t\tship.v.setMaxVel(1);\r\n\t\t\r\n\t\tship.stepHandlers.add(b);\r\n\t\t\r\n\t\tHitpointShipCollision s;\r\n\t\tif(!Difficulty.isHard())\r\n\t\t\t s = new HitpointShipCollision(ship, 160, 32);\r\n\t\telse\r\n\t\t\t s = new HitpointShipCollision(ship, 125, 32);\r\n\t\t\t\r\n\t\ts.setExplosion(Utils.getBossExplosion(ship));\r\n\t\tship.collisionHandler = s; \r\n\t\r\n\t\t//TODO:launch ships handler for shooting\r\n\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_BOTH_SIDES)\r\n\t\t{\r\n\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(true), 50, 5, 5,true));\r\n\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(false), 50, 5, 5,false));\r\n\t\t}\r\n\t\telse\r\n\t\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_RIGHT_ONLY)\r\n\t\t\t{\r\n\t\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(true), 50, 5, 5,true));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_LEFT_ONLY)\r\n\t\t\t\t{\r\n\t\t\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(false), 50, 5, 5,false));\r\n\t\t\t\t}\r\n\t\t\t\t\t\t \r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t\r\n\t}", "public GameObject spawnBomber(LogicEngine in_logicEngine){\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bomber.png\",((float)LogicEngine.SCREEN_WIDTH)+50,LogicEngine.SCREEN_HEIGHT-50,0);\r\n\t\tship.i_animationFrameSizeHeight = 58;\r\n\t\tship.i_animationFrameSizeWidth = 58;\r\n\t\t\r\n\t\t//fly back and forth\r\n\t\tLoopWaypointsStep s = new LoopWaypointsStep();\r\n\t\ts.waypoints.add(new Point2d(-30,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\ts.waypoints.add(new Point2d(LogicEngine.SCREEN_WIDTH+50,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\t\r\n\t\tship.b_mirrorImageHorizontal = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(s);\r\n\t\tship.v.setMaxForce(5.0f);\r\n\t\tship.v.setMaxVel(5.0f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\r\n\r\n\t\t//tadpole bullets\r\n\t\tGameObject go_tadpole = this.spawnTadpole(in_logicEngine);\r\n\t\tgo_tadpole.stepHandlers.clear();\r\n\t\tFlyStraightStep fly = new FlyStraightStep(new Vector2d(0,-0.5f));\r\n\t\tfly.setIsAccelleration(true);\r\n\t\t\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t{\tgo_tadpole.v.setMaxVel(5);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\telse\r\n\t\t{\tgo_tadpole.v.setMaxVel(10);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\tgo_tadpole.stepHandlers.add(fly);\r\n\t\tgo_tadpole.v.setVel(new Vector2d(-2.5f,0f));\r\n\t\t\r\n\t\t\r\n\t\t//bounce on hard and medium\r\n\t\tif(Difficulty.isHard() || Difficulty.isMedium())\r\n\t\t{\r\n\t\t\tBounceOfScreenEdgesStep bounce = new BounceOfScreenEdgesStep();\r\n\t\t\tbounce.b_sidesOnly = true;\r\n\t\t\tgo_tadpole.stepHandlers.add(bounce);\r\n\t\t}\r\n\t\t\r\n\t\t//drop bombs\r\n\t\tLaunchShipsStep launch = new LaunchShipsStep(go_tadpole, 20, 5, 3, true);\r\n\t\tlaunch.b_addToBullets = true;\r\n\t\tlaunch.b_forceVelocityChangeBasedOnParentMirror = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(launch);\r\n\t\tship.rotateToV=true;\r\n\t\t\r\n\t\t//give it some hp\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 50, 50f);\r\n\t\tc.setSimpleExplosion();\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t\r\n\t}", "public Monster(String name,int monsterType,int health,int monstersWalkDistanceX,int monstersWalkDistanceY,int resourceReward,int monsterSize,int whichSide,int respawnTime)\n {\n this.name=name;\n this.monsterType=monsterType;\n this.health=health;\n this.monstersWalkDistanceX=monstersWalkDistanceX;\n this.monstersWalkDistanceY=monstersWalkDistanceY;\n this.resourceReward=resourceReward;\n this.monsterSize=monsterSize;\n this.whichSide=whichSide;\n this.maxHealth=health;\n this.targetable=true;\n this.visible=true;\n this.respawnTime=respawnTime;\n\n setDefaultMonsterCords();\n\n this.firstCross=pathDrawLots(2)+1;\n this.secondCross=pathDrawLots(2)+3;\n\n }", "public Charmander(World w)\n {\n //TODO (48): Add a third parameter of Fire to this super line\n super(700, 1);\n getImage().scale(150, 100);\n w.addObject( getHealthBar() , 300, w.getHeight() - 50 );\n }", "public static void main(String[] args) {\n Hero aventurier = new Hero(200, 100);\n Equipement epee = new Equipement(\"epee\", 0);\n Monsters sorciere = new Monsters(\"witch\", 180, 0);\n Monsters barbare = new Monsters(\"olaf\", 160, 0);//Degat et point attaque sont à 0 car ils prendront les valeurs du random\n\n\n System.out.println(\"Bienvenue dans le dongeon\");\n System.out.println(\"Vous avez \" + aventurier.getPointDeVie() + \" Point de vie, \" + aventurier.getFlasqueDeau() + \" flasques pour combatre vos ennemies et une \");\n\n // i=room ;si pointdevie > room-->room+1 sinon game over(pas besoin de creer une classe)\n int i = 1;\n do {\n\n if (aventurier.getPointDeVie() > 0) ;\n {\n System.out.println(\"Room\" + i);\n\n Monsters enemieActuel = barbare;\n//nbr aleatoire entre sorcier et monster\n Random random = new Random();\n int nbrAl = random.nextInt(2 );\n//si nbr=0 = sorcier sinon barbare\n if (nbrAl == 0) {\n enemieActuel = sorciere;\n //sinon barbare\n } else {\n enemieActuel = barbare;\n }\n\n\n //Si barbare faire le do while\n\n if (enemieActuel == barbare) {\n\n do { //Faire des degats aleatoire grace au random à l'aide de l'epee\n epee.setDegat((int) (5 + (Math.random() * 30)));//comme .set dega=0 on lui donne la valeur de math.random\n int degat = epee.getDegat(); //.get renvoi la valeur au int nommer degat\n barbare.setPointDeVie(barbare.getPointDeVie() - degat);//vie - degat\n System.out.println(\"Il reste au barbare \" + barbare.getPointDeVie());//nouvelle valeur de point de vie\n\n\n //idem avec l'aventurier\n barbare.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = barbare.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n // tant que les Pvie de l'aventurier >= 0 et idem barbare continuer le combat\n } while (aventurier.getPointDeVie() >= 0 && barbare.getPointDeVie() >= 0);\n //à la fin du combat si pvie de l'aventurier sont >0 et que i (room) egale 5 \"gagné\"\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n\n //Si juste pvie de l'aventurier > 0 --->room suivante\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n //on redonne les valeurs de depart pdeVie pour la nouvelle room\n aventurier.setPointDeVie(200);\n barbare.setPointDeVie(180);\n i+=1;\n }\n\n // sinon room = 6 pour envoyer le sout \"game over\"\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n\n\n\n }\n\n //IDEM avec sorciere\n else {\n do {\n\n\n aventurier.setFlasqueDeau((int) (5 + (Math.random() * 30)));\n int degat = aventurier.getFlasqueDeau();\n sorciere.setPointDeVie(sorciere.getPointDeVie() - degat);\n System.out.println(\"Il reste à la sorciere \" + sorciere.getPointDeVie());\n\n sorciere.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = sorciere.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n } while (aventurier.getPointDeVie() >= 0 && sorciere.getPointDeVie() >= 0);\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n aventurier.setPointDeVie(200);\n sorciere.setPointDeVie(160);\n i+=1;\n }\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n }\n } } while (i <= 5 && aventurier.getPointDeVie() > 0);\n\n\n }", "public void act()\r\n {\n \r\n if (Background.enNum == 0)\r\n {\r\n length = Background.length;\r\n width = Background.width;\r\n getWorld().addObject (new YouWon(), length / 2, width / 2);\r\n \r\n //long lastAdded2 = System.currentTimeMillis();\r\n //long curTime3 = System.currentTimeMillis();\r\n //long curTime3 = System.currentTimeMillis();\r\n //long seconds = curTime3 / 1000;\r\n //sleep = 3;\r\n //try {\r\n //TimeUnit.SECONDS.sleep(sleep);\r\n //} catch(InterruptedException ex) {\r\n //Thread.currentThread().interrupt();\r\n //}\r\n //Greenfoot.delay(3);\r\n //long curTime3 = System.currentTimeMillis();\r\n //long secs2 = curTime3 / 1000;\r\n //long curTime4;\r\n //long secs3;\r\n //do\r\n //{\r\n //getWorld().addObject (new YouWon(), length / 2, width / 2);\r\n //curTime4 = System.currentTimeMillis();\r\n //secs3 = curTime3 / 1000;\r\n //} while (curTime4 / 1000 < curTime3 / 1000 + 3);\r\n //if (System.currentTimeMillis()/1000 - 3 >= secs2)\r\n //{\r\n //do\r\n //{\r\n pause(3000);\r\n Actor YouWon;\r\n YouWon = getOneObjectAtOffset(0, 0, YouWon.class);\r\n World world;\r\n world = getWorld();\r\n world.removeObject(this);\r\n Background.xp += 50;\r\n Background.myGold += 100;\r\n if (Background.xp >= 50 && Background.xp < 100){\r\n Background.myLevel = 2;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 100 && Background.xp < 200){\r\n Background.myLevel = 3;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 200 && Background.xp < 400){\r\n Background.myLevel = 4;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 400 && Background.xp < 800){\r\n Background.myLevel = 5;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 800 && Background.xp < 1600){\r\n Background.myLevel = 6;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 1600 && Background.xp < 3200){\r\n Background.myLevel = 7;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 3200 && Background.xp < 6400){\r\n Background.myLevel = 8;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 6400 && Background.xp < 12800){\r\n Background.myLevel = 9;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 12800){\r\n Background.myLevel = 10;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n }\r\n //curTime3 = System.currentTimeMillis();\r\n //secs2 = curTime3 / 1000;\r\n //index2++;\r\n //Greenfoot.setWorld(new YouWon());\r\n //lastAdded2 = curTime3;\r\n //}\r\n //} while (index2 <= 0);\r\n }\r\n }", "public void spawnSateliteShip(LogicEngine in_logicEngine,float in_x)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/gravitonlevel.png\",in_x,LogicEngine.SCREEN_HEIGHT,1);\r\n\t\tship.i_animationFrameSizeWidth = 64;\r\n\t\tship.i_animationFrameSizeHeight = 32;\r\n\t\tship.i_animationFrame = 2;\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tship.v.setMaxForce(1.0f);\r\n\t\tship.v.setMaxVel(4.0f);\r\n\t\t\r\n\t\t\r\n\t\t//fly down\r\n\t\t//ship.stepHandlers.add( new FlyStraightStep(new Vector2d(0,-1f)));\r\n\t\t\r\n\t\tSimplePathfollowing followPathBehaviour = new SimplePathfollowing();\r\n\t\tfollowPathBehaviour.setInfluence(1);\r\n\t\tfollowPathBehaviour.setAttribute(\"arrivedistance\", \"10\", null);\r\n\t\t\r\n\t\t//add waypoints\r\n\t\tfor(int i=0 ; i< 20 ; i++)\r\n\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t//put in some edge ones too\r\n\t\t\tif(r.nextInt(6)%3==0)\r\n\t\t\t\tship.v.addWaypoint(new Point2d((int) LogicEngine.SCREEN_WIDTH * (i%2), LogicEngine.SCREEN_HEIGHT/1.5 + r.nextInt((int) LogicEngine.SCREEN_HEIGHT/5)));\r\n\t\t\telse\r\n\t\t\t\t//put in some random doublebacks etc\r\n\t\t\t\tship.v.addWaypoint(new Point2d(r.nextInt((int) LogicEngine.SCREEN_WIDTH), LogicEngine.SCREEN_HEIGHT/1.5 + r.nextInt((int) LogicEngine.SCREEN_HEIGHT/5)));\r\n\t\t}\r\n\t\tship.v.addWaypoint(new Point2d(LogicEngine.SCREEN_WIDTH/2, -100));\r\n\t\t\r\n\t\tif(Difficulty.isEasy())\r\n\t\t\tship.shotHandler = new BeamShot(50);\r\n\t\telse\r\n\t\tif(Difficulty.isMedium())\r\n\t\t\tship.shotHandler = new BeamShot(40);\r\n\t\telse\r\n\t\tif(Difficulty.isHard())\r\n\t\t\tship.shotHandler = new BeamShot(30);\r\n\t\t\r\n\t\tCustomBehaviourStep b = new CustomBehaviourStep(followPathBehaviour);\r\n\t\tship.stepHandlers.add(b);\r\n\t\t\r\n\t\t//destroy ships that get too close\r\n\t\tHitpointShipCollision hps = new HitpointShipCollision(ship, 10, 32);\r\n\t\thps.setSimpleExplosion();\r\n\t\t\r\n\t\tship.collisionHandler = hps; \r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\t\r\n\t\r\n\t}", "private void makeRobot(int lvl)\r\n {\r\n maxHealth = lvl*10;\r\n health = maxHealth;\r\n \r\n Equip tempWeapon = null;\r\n Equip tempArmor = null;\r\n if (type == SOLDIER)\r\n {\r\n tempWeapon = new Equip(\"rifle\", Equip.WEAPON, lvl*5);\r\n tempArmor = new Equip(\"leather armor\", Equip.ARMOR, lvl*2);\r\n }\r\n else if (type == ELF)\r\n {\r\n tempWeapon = new Equip(\"bow\", Equip.WEAPON, lvl*5);\r\n tempArmor = new Equip(\"magic armor\", Equip.ARMOR, lvl*2);\r\n }\r\n else if (type == KNIGHT)\r\n {\r\n tempWeapon = new Equip(\"sword\", Equip.WEAPON, lvl*5);\r\n tempArmor = new Equip(\"splendid shield\", Equip.ARMOR, lvl*2);\r\n }\r\n else if (type == MAGICIAN)\r\n {\r\n tempWeapon = new Equip(\"magic\", Equip.WEAPON, lvl*5);\r\n tempArmor = new Equip(\"magic armor\", Equip.ARMOR, lvl*2);\r\n }\r\n else\r\n {\r\n tempWeapon = new Equip(\"broom stick\", Equip.WEAPON, lvl*5);\r\n tempArmor = new Equip(\"straw\", Equip.ARMOR, lvl*2);\r\n }\r\n tempWeapon.changeOwner(this);\r\n tempArmor.changeOwner(this);\r\n tempWeapon.equipTo(this);\r\n tempArmor.equipTo(this);\r\n }", "public void makeRangedAttack(int goalx, int goaly, ParentWeapon weapon) {\n int startx = xposition;\n int starty = yposition;\n \n //Initialize algorithm variables\n int x0 = startx;\n int y0 = starty;\n int x1 = goalx;\n int y1 = goaly;\n \n //Initialize object to hold what we hit\n ParentGameObject object = null;\n \n //Create list to store points on line\n List<int[]> points = new ArrayList<>();\n \n //Line generation via Bresenham's complete line algorithm\n int dx = Math.abs(x1 - x0);\n int sx = x0 < x1 ? 1 : -1;\n int dy = -Math.abs(y1 - y0);\n int sy = y0 < y1 ? 1 : -1;\n int err = dx + dy;\n \n while (true){\n points.add(new int[]{x0,y0});\n if (x0 == x1 && y0 == y1){\n break;\n }\n int e2 = 2*err;\n if (e2 >= dy){\n err += dy;\n x0 += sx;\n }\n if (e2 <= dx){\n err += dx;\n y0 += sy;\n }\n }\n\n //Check each point in line for solid object\n for (int[] i : points){\n \n if (!((i[0] == x1 && i[1] == y1) || (i[0] == startx && i[1] == starty))){\n \n //Check if square isn't null\n if (gameboard.getTile(i[0], i[1]) != null){\n \n //Check if a solid object is occupying the square\n for (Object o : gameboard.getObjectsAtSquare(i[0], i[1])) {\n \n if (((ParentGameObject)o).isSolid == true) {\n\n object = (ParentGameObject) o;\n \n break;\n \n }\n \n }\n \n }\n \n }\n \n }\n\n //If we did not hit any object, exit\n if (object == null) {\n\n return;\n\n }\n\n //Perform contextual behavior based on object in square\n switch (object.getType()){\n\n case \"enemy\":\n\n ParentEntity entity = (ParentEntity)object;\n\n entity.takeDamage(this, weapon.getDamage(), weapon.getAccuracy(statDexterity));\n\n break;\n\n\n }\n \n }", "public void act()\n {\n if(isInWorld == true)\n {\n if(!WorldOne.isTimerOn() && getWorld().getClass() == WorldOne.class && WorldControl.subWave == 1)\n { \n getWorld().addObject(healthMessage, getX() - 30, getY() - 30);\n }\n getWorld().addObject(healthMessage, getX() - 30, getY() - 30);\n move();\n lastX = getX();\n lastY = getY();\n healthMessage.updatePosition(getX() - 30, getY() - 30);\n healthMessage.update(\"HP \" + getHealth(), Color.GREEN, font); \n checkKeys();\n incrementReloadDelayCount();\n //healthMessage.update(\"HP \" + getHealth(), Color.GREEN, font);\n if(!hasHealth())\n {\n removeSelfFromWorld(healthMessage);\n removeSelfFromWorld(this);\n isInWorld = false;\n isRocketAlive = false;\n Greenfoot.playSound(\"Explosion.wav\");\n }\n } \n\n }", "public void repairOnWrench(IRobot robot) {\n TiledMapTileLayer wrenchLayer = (TiledMapTileLayer) tiledMap.getLayers().get(\"Wrench\");\n if (wrenchLayer.getCell((int) robot.getPos().x, (int) robot.getPos().y) != null) {\n robot.heal();\n }\n }", "public void doAi(){\n\t\t\tif(MathHelper.getRandom(0, Game.FRAMERATE * 5) == 5){\n\t\t\t\tsetScared(true);\n\t\t\t}\n\t\t\n\t\t//Update rectangle\n\t\tsetRectangle(getX(), getY(), getTexture().getWidth(), getTexture().getHeight());\n\t\t\n\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\t\n\t\tif(rect.intersects(getRectangle())){\n\t\t\t\n\t\t\tif(StateManager.getState() == StateManager.STATE_BOSSTWO){\n\t\t\t\t\n\t\t\t\t\tsetDestinationX(StateGame.player.getX());\n\t\t\t\t\t\n\t\t\t\t\tsetDestinationY(StateGame.player.getY());\n\t\t\t\t\t\n\t\t\t\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\t\t\t\treachedDestination = (true);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Check for collision with jelly\n\t\tint checkedJelly = (0);\n\t\twhile(checkedJelly < EntityJelly.JELLY.size() && EntityJelly.JELLY.get(checkedJelly) != null){\n\t\t\tif(EntityJelly.JELLY.get(checkedJelly).getDead() == false){\n\t\t\t\tif(getRectangle().intersects(EntityJelly.JELLY.get(checkedJelly).getRectangle())){\n\t\t\t\t\tsetHealth(getHealth() - 2);\n\t\t\t\t\tif(MathHelper.getRandom(1, 10) == 10){\n\t\t\t\t\tAnnouncer.addAnnouncement(\"-2\", 60, EntityJelly.JELLY.get(checkedJelly).getX(), EntityJelly.JELLY.get(checkedJelly).getY());\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tcheckedJelly++;\n\t\t}\n\t\t\n\t\t//If we're out of health, kill the entity\n\t\tif(getHealth() < 0){\n\t\t\tsetDead(true);\n\t\t}\n\t\t\n\t\tif(StateManager.getState() == StateManager.STATE_BOSSTWO){\n\t\t\tif(reachedDestination == true){\n\t\t\t\tif(getScared() == false){\n\t\t\t\tsetY(getY() + getSpeed());\n\t\t\t\t}else{\n\t\t\t\t\tsetY(getY() - getSpeed() * 3);\n\t\t\t\t\tsetX(getX() - getSpeed() * 3);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(getScared() == false){\n\t\t\t\tif(getX() < getDestinationX())\n\t\t\t\t\tsetX(getX() + getSpeed());\n\t\t\t\tif(getX() > getDestinationX())\n\t\t\t\t\tsetX(getX() - getSpeed());\n\t\t\t\tif(getY() < getDestinationY())\n\t\t\t\t\tsetY(getY() + getSpeed());\n\t\t\t\tif(getY() > getDestinationY())\n\t\t\t\t\tsetY(getY() - getSpeed());\n\t\t\t\t}else{\n\t\t\t\t\t\tsetY(getY() - getSpeed() * 3);\n\t\t\t\t\t\tsetX(getX() - getSpeed() * 3);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void attack(){\n activity = CreatureActivity.ATTACK;\n createWeapon();\n endAttack = new CountDown(20); //100\n endAnimationAttack = new CountDown(100);\n }", "void mineWave( LogicEngine in_logicEngine,int in_numberOfMines, boolean b_isStaggered,boolean randomX)\r\n\t{\r\n\t\tint i_numberOfMines=in_numberOfMines;\r\n\t\tif(randomX)\r\n\t\t\ti_numberOfMines=1;\r\n\t\t\r\n\t\t\r\n\t\t//String in_spritename, double in_x, double in_y, boolean in_rotateToV,int in_shootEverySteps\r\n\t\tfor(int i=0 ; i< i_numberOfMines ; i++)\r\n\t\t{\r\n\t\t\tGameObject mine = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/mine.png\",((double)i+0.5)* (LogicEngine.SCREEN_WIDTH/i_numberOfMines+1),LogicEngine.SCREEN_HEIGHT+5,5);\r\n\t\t\t\r\n\t\t\t//to do a interleafed pattern\r\n\t\t\tif(b_isStaggered)\r\n\t\t\t\tmine.v.setX(mine.v.getX()+(LogicEngine.SCREEN_WIDTH/((i_numberOfMines+1)*2)));\r\n\t\t\telse\r\n\t\t\t\tif(randomX)\r\n\t\t\t\t\tmine.v.setX(LogicEngine.SCREEN_WIDTH * Math.random());\r\n\t\t\t\r\n\t\t\tmine.i_animationFrame=0;\r\n\t\t\tmine.i_animationFrameSizeWidth=16;\r\n\t\t\tmine.i_animationFrameSizeHeight=16;\r\n\t\t\t\r\n\r\n\t\t\tmine.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-2)));\r\n\t\t\t\r\n\t\t\tHitpointShipCollision c = new HitpointShipCollision(mine,3,10);\r\n\t\t\tc.setSimpleExplosion();\r\n\t\t\t\r\n\t\t\tmine.shotHandler = new ExplodeIfInRange(true);\r\n\t\t\t\r\n\t\t\tmine.collisionHandler =c; \r\n\t\t\tmine.allegiance = GameObject.ALLEGIANCES.LETHAL;\r\n\t\t\t\r\n\t\t\tin_logicEngine.objectsEnemies.add(mine);\r\n\t\t}\r\n\t}", "public synchronized void spawnWave(){\n if(arenaState != BattleState.getBattleState()) return;\n // If this object is not the level playing obsolete it.\n if(this != level) return;\n // If no waves left.\n if(isLastWave()){\n BattleState.getBattleState().win();\n return;\n }\n\n new TimedTask(Consts.TIME_WAVE_SPAWN_DELAY) {\n @Override\n public void performAction() {\n if(arenaState != BattleState.getBattleState()) return;\n\n // Start the spawn.\n try{\n for(String npc : waves.get(index)){\n float x, y = (float) ((Math.random() * (GameView.getScreenHeight() - mapTop - 60 * GameView.density())) + mapTop + 60 * GameView.density());\n if(Math.random() < 0.5){\n x = -100 * GameView.density();\n }else{\n x = 100 * GameView.density() + GameView.getScreenWidth();\n }\n switch(npc){\n case NameConsts.TROLL :\n new Troll(x, y);\n break;\n\n case NameConsts.GREEN_GOBLIN :\n new GreenGoblin(x, y);\n break;\n\n case NameConsts.MUMMY_ARCHER :\n new MummyArcher(x, y);\n break;\n }\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n\n setIndex(getIndex() + 1);\n autoWaveSpawn(getIndex());\n }\n };\n }", "void placeTower();", "public void addObstacle(Coord obstacleCoord);", "public SaboWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1);\n addObject(counter, 100, 380); //Add the scoreboard\n addObject(healthBar, 300, 370); //Add the health bar\n addObject(turret, getWidth()/2-5, getHeight()-turret.getImage().getWidth()); \n }", "public void addSpawnpointWeapon(Weapon w) {\n this.weaponSpawnpoint.addWeapon(w);\n }", "@SuppressWarnings(\"unused\")\n void spawn(Entity entity);", "public void doAction()\n {\n \n //Location of the player\n int cX = w.getPlayerX();\n int cY = w.getPlayerY();\n \n //Basic action:\n //Grab Gold if we can.\n if (w.hasGlitter(cX, cY))\n {\n w.doAction(World.A_GRAB);\n return;\n }\n \n //Basic action:\n //We are in a pit. Climb up.\n if (w.isInPit())\n {\n w.doAction(World.A_CLIMB);\n return;\n }\n //Test the environment\n /*if (w.hasBreeze(cX, cY))\n {\n System.out.println(\"I am in a Breeze\");\n }\n if (w.hasStench(cX, cY))\n {\n System.out.println(\"I am in a Stench\");\n }\n if (w.hasPit(cX, cY))\n {\n System.out.println(\"I am in a Pit\");\n }\n if (w.getDirection() == World.DIR_RIGHT)\n {\n System.out.println(\"I am facing Right\");\n }\n if (w.getDirection() == World.DIR_LEFT)\n {\n System.out.println(\"I am facing Left\");\n }\n if (w.getDirection() == World.DIR_UP)\n {\n System.out.println(\"I am facing Up\");\n }\n if (w.getDirection() == World.DIR_DOWN)\n {\n System.out.println(\"I am facing Down\");\n }\n */\n \n //decide next move\n if(w.hasStench(cX, cY)&&w.hasArrow())//Wumpus can be shot if located\n {\n if((w.hasStench(cX, cY+2))||(w.hasStench(cX-1, cY+1)&&w.isVisited(cX-1, cY))||(w.hasStench(cX+1, cY+1)&&w.isVisited(cX+1, cY)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n else if((w.hasStench(cX+2, cY))||(w.hasStench(cX+1, cY-1)&&w.isVisited(cX, cY-1))||(w.hasStench(cX+1, cY+1)&&w.isVisited(cX, cY+1)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n else if((w.hasStench(cX, cY-2))||(w.hasStench(cX-1, cY-1)&&w.isVisited(cX-1, cY))||(w.hasStench(cX+1, cY-1)&&w.isVisited(cX+1, cY)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_SHOOT);\n }\n else if((w.hasStench(cX-2, cY))||(w.hasStench(cX-1, cY+1)&&w.isVisited(cX, cY+1))||(w.hasStench(cX-1, cY-1)&&w.isVisited(cX, cY-1)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_SHOOT);\n }\n else if(cX==1&&cY==1) //First tile. Shoot North. If wumpus still alive, store its location as (2,1) to avoid it\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n if(w.hasStench(cX, cY))\n {\n wumpusLoc[0] = 2;\n wumpusLoc[1] = 1;\n }\n }\n else if(cX==1&&cY==4) //Condition for corner\n {\n if(w.isVisited(1, 3))\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n if(w.isVisited(2, 4))\n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_SHOOT);\n }\n \n }\n else if(cX==4&&cY==1) //Condition for corner\n {\n if(w.isVisited(3, 1))\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n if(w.isVisited(4, 2))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_SHOOT);\n }\n \n }\n else if(cX==4&&cY==4) //Condition for corner\n {\n if(w.isVisited(3, 4))\n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_SHOOT);\n }\n if(w.isVisited(4, 3))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_SHOOT);\n }\n \n }\n else if((cX==1)&&(w.isVisited(cX+1, cY-1))) //Condition for edge\n {\n \n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n else if((cX==4)&&(w.isVisited(cX-1, cY-1))) //Condition for edge\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n else if((cY==1)&&(w.isVisited(cX-1, cY+1))) //Condition for edge\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n else if((cY==4)&&(w.isVisited(cX-1, cY-1))) //Condition for edge\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n else //Can't locate wumpus, go back to safe location\n {\n turnTo((w.getDirection()+2)%4);\n w.doAction(World.A_MOVE);\n }\n }\n else // No stench. Explore \n {\n if(w.isValidPosition(cX, cY-1)&&!w.isVisited(cX, cY-1)&&isSafe(cX, cY-1)) \n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX+1, cY)&&!w.isVisited(cX+1, cY)&&isSafe(cX+1, cY))\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX-1, cY)&&!w.isVisited(cX-1, cY)&&isSafe(cX-1,cY))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_MOVE);\n }\n else\n {\n if(w.isValidPosition(cX, cY+1))\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX+1, cY))\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX-1, cY))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_MOVE);\n }\n }\n }\n \n }", "public GiantWarrior(float x, float y, boolean enemy, int level) {\r\n\t\tsuper(x, y, (int) Data.GIANTWARRIOR_STATS[0], (int) Data.GIANTWARRIOR_STATS[1],\r\n\t\t\t\t(int) Data.GIANTWARRIOR_STATS[2], Data.GIANTWARRIOR_STATS[3],\r\n\t\t\t\t(int) (Data.GIANTWARRIOR_STATS[4] * Math.pow(1.1, level - 1)), enemy, Data.GIANTWARRIOR_ICON,\r\n\t\t\t\tData.GIANTWARRIOR_ATTACK_ICON);\r\n\t}", "public void move() {\n\t\tsetHealth(getHealth() - 1);\n\t\t//status();\n\t\tint row = getPosition().getRow() ;\n\t\tint column = getPosition().getColumn();\n\t\tint randomInt = (int)((Math.random()*2) - 1);\n\t\t\n\t\tif(hunter == false && row < 33) {\n\t\t\tif(row == 32) {\n\t\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(row == 0) {\n\t\t\t\tgetPosition().setCoordinates(row + 1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 99) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column - 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 0) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column + 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t}\n\t\tif(hunter == false && row > 32) {\n\t\t\t//setHealth(100);\n\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\tsetPosition(getPosition()) ;\n\t\t}\n\t\telse {\n\t\t\tif(row < 65 && hunter == true) {\n\t\t\t\tgetPosition().setCoordinates(row + 1, column);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tgetPosition().setCoordinates(65, column);\n\t\t\t\tsetPosition(getPosition());\n\t\t\t\t//Check if there is a gazelle\n\t\t\t\tPair [][] range = {{Drawer.pairs[row+1][column-1],Drawer.pairs[row+1][column],\n\t\t\t\t\t\t\t Drawer.pairs[row+1][column+1]}, {\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column-1],\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column],Drawer.pairs[row+2][column+1]}};\n\t\t\t\t\n\t\t\t\tfor(Pair [] line: range) {\n\t\t\t\t\tfor(Pair prey: line) {\n\t\t\t\t\t\tif(prey.getAnimal() instanceof Gazelle ) {\n\t\t\t\t\t\t\tattack();\n\t\t\t\t\t\t\tprey.getAnimal().die();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public WallCollision(NinjaEntity player){\n this.player = player;\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}", "Player(int posX,int posY,int velX,int velY, int accX, int accY,int attack,int health, int numOfBomb, int sInterval){\n this.posX = posX;\n this.posY = posY;\n this.velX = velX;\n this.velY = velY;\n this.accX = accX;\n this.accY = accY;\n this.health = health;\n this.numOfBomb = numOfBomb;\n this.attack = attack;\n this.sInterval = sInterval;\n invincibleTime = 0;\n invincible = false;\n wid = 300/4;\n hei = 400/4;\n classOfObejct = 0;\n alive = true;\n }", "private void createObstacole()\n {\n //Create Obstacole\n Obstacole topObstacole = new Obstacole(\"top\");\n Obstacole botObstacole = new Obstacole(\"bottom\");\n Obstacole midObstacole = new Obstacole(\"mid\");\n //amount of space between obstacole\n int ObstacoleSpacing = 150;\n \n //get object image\n GreenfootImage image = botObstacole.getImage();\n \n //random number to vary\n int numOfObstacoles = Greenfoot.getRandomNumber(40) + 15;\n \n //counter increment to 50\n ObstacoleCounter++;\n if (ObstacoleCounter == 50)\n {\n if (getObjects(Obstacole.class).size() < numOfObstacoles)\n {\n addObject(botObstacole, getWidth(), getHeight() / 2 + image.getHeight() - Greenfoot.getRandomNumber(100) - 10);\n addObject(topObstacole, getWidth(), botObstacole.getY() - image.getHeight() - ObstacoleSpacing);\n addObject(midObstacole, getWidth(), botObstacole.getY() + image.getHeight() / 3 + ObstacoleSpacing);\n }\n ObstacoleCounter = 0;\n }\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n \n Player player = new Player();\n Point point0 = new Point();\n Point point1 = new Point();\n Point point2 = new Point();\n Point point3 = new Point();\n Point point4 = new Point();\n Danger danger0 = new Danger();\n Danger danger1 = new Danger();\n addObject(player, getWidth()/2, getHeight()/2);\n \n addObject(point0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point2,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point3,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point4,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n \n addObject(danger0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(danger1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n }", "public Cow(int _pos_x , int _pos_y)\n {\n pos_x = _pos_x;\n pos_y = _pos_y;\n availableProduct = false;\n hunger_countdown = 5;\n allowed_tiles = \"Grassland\";\n }", "private void doSummon(){\n AbstractPieceFactory apf = FactoryProducer.getFactory(tf.getActivePlayer().playerType());\n // check is null\n assert apf != null;\n // create a piece instance\n IPiece temp = apf.getPiece(PieceConstants.MINION, destination);\n // cast Ipiece to minions class\n newPiece = (Minion) temp;\n newPiece.healthProperty().addListener(new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n if (newValue.doubleValue() <= 0) {\n tf.removePiece(newPiece);\n tf.resetAbilityUsed();\n }\n if (oldValue.doubleValue() <= 0 && newValue.doubleValue() > 0) {\n tf.addPiece(newPiece);\n tf.resetAbilityUsed();\n }\n }\n });\n // set piece name\n newPiece.setPieceName(MinionName);\n // set piece health points\n startingHealth = newPiece.getHealth();\n // add piece to game\n tf.addPiece(newPiece);\n }", "public Square createWall() {Collect.Hit(\"BoardFactory.java\",\"createWall()\"); Collect.Hit(\"BoardFactory.java\",\"createWall()\", \"1976\");return new Wall(sprites.getWallSprite()) ; }", "@Override\n public void doAction() {\n String move = agent.getBestMove(currentPosition);\n execute(move);\n\n //Location of the player\n int cX = w.getPlayerX();\n int cY = w.getPlayerY();\n\n if (w.hasWumpus(cX, cY)) {\n System.out.println(\"Wampus is here\");\n w.doAction(World.A_SHOOT);\n } else if (w.hasGlitter(cX, cY)) {\n System.out.println(\"Agent won\");\n w.doAction(World.A_GRAB);\n } else if (w.hasPit(cX, cY)) {\n System.out.println(\"Fell in the pit\");\n }\n\n// //Basic action:\n// //Grab Gold if we can.\n// if (w.hasGlitter(cX, cY)) {\n// w.doAction(World.A_GRAB);\n// return;\n// }\n//\n// //Basic action:\n// //We are in a pit. Climb up.\n// if (w.isInPit()) {\n// w.doAction(World.A_CLIMB);\n// return;\n// }\n//\n// //Test the environment\n// if (w.hasBreeze(cX, cY)) {\n// System.out.println(\"I am in a Breeze\");\n// }\n// if (w.hasStench(cX, cY)) {\n// System.out.println(\"I am in a Stench\");\n// }\n// if (w.hasPit(cX, cY)) {\n// System.out.println(\"I am in a Pit\");\n// }\n// if (w.getDirection() == World.DIR_RIGHT) {\n// System.out.println(\"I am facing Right\");\n// }\n// if (w.getDirection() == World.DIR_LEFT) {\n// System.out.println(\"I am facing Left\");\n// }\n// if (w.getDirection() == World.DIR_UP) {\n// System.out.println(\"I am facing Up\");\n// }\n// if (w.getDirection() == World.DIR_DOWN) {\n// System.out.println(\"I am facing Down\");\n// }\n//\n// //decide next move\n// rnd = decideRandomMove();\n// if (rnd == 0) {\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 1) {\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 2) {\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 3) {\n// w.doAction(World.A_TURN_RIGHT);\n// w.doAction(World.A_MOVE);\n// }\n }", "private void createEnemyHelicopter()\n\t {\n\t \t\tRandNum = 0 + (int)(Math.random()*700);\n\t\t \t\tint xCoordinate = 1400;\n\t int yCoordinate = RandNum; \n\t eh = new Enemy(xCoordinate,yCoordinate);\n\t \n\t // Add created enemy to the list of enemies.\n\t EnemyList.add(eh);\n\t \n\t }", "@Override\r\n public boolean dye() {\r\n if (getX() > 3100 || getX() < 10 || getY() < 10 || getY() > 3100) {\r\n return true;\r\n }\r\n// int pixel = mapRGB.getRGB((int) getX(), (int) getY());\r\n// int red = (pixel >> 16) & 0xff;\r\n// if(red==255){this.handler.getWaves().removeEnemy(); return true;}\r\n int k = collision(velX, velY, this.getX(), this.getY());\r\n if(k!=0) {\r\n this.handler.getWaves().removeEnemy(); \r\n return true;\r\n }\r\n else{\r\n zombie_x = getX(); \r\n zombie_y = getY();\r\n }\r\n //I proiettili hanno una portata limitata o se ha colpito il player o se è uscito dalla mappa o se è andato contro un muro\r\n if ((this.getHealth() == 0) || (handler.getPlayer().getBounds().contains(getX(), getY()))) {\r\n int n = (int) (Math.random() * 10);\r\n if(n>1) n=2;\r\n switch (n) {\r\n case 2:\r\n this.handler.addSprite(new StandardZombie(zombie_x, zombie_y, 3, 200, 25, handler.getPlayer(), this.handler, 30, 60, 60, 5, new Animation(Assets.zombie, 20), new Animation(Assets.zombieAttack, 35), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n case 0:\r\n this.handler.addSprite(new StandardZombie(zombie_x, zombie_y, 4, 70, 50, handler.getPlayer(), this.handler, 0, 60, 60, 20, new Animation(Assets.zombie2, 15), new Animation(Assets.zombie2Attack, 15), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n case 1:\r\n this.handler.addSprite(new SpittleZombie(zombie_x, zombie_y, 3, 500, 40, handler.getPlayer(), this.handler, 0, 60, 60, 45, new Animation(Assets.zombie3, 15), new Animation(Assets.zombie3Attack, 15), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n }\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }", "@RequiredObject(\"whetstone\")\n\tpublic Response whet(Entity actor, @Carried Weapon weapon) throws ActionException {\n\t\t// Check can be whetted\n\t\tif(!weapon.descriptor().damage().type().isWhetWeapon()) throw ActionException.of(\"whet.invalid.weapon\");\n\t\tif(!weapon.isDamaged()) throw ActionException.of(\"whet.not.damaged\");\n\n\t\t// Create stamina modifier\n\t\t// TODO - tx can only be used once!\n\t\tfinal Transaction transaction = actor.model().values().transaction(EntityValue.STAMINA, 1, \"whet.exhausted\");\n\t\ttransaction.check();\n\n\t\t// Create repeating whet induction\n\t\tfinal Induction induction = () -> {\n\t\t\t// Consume stamina\n\t\t\ttransaction.check();\n\t\t\ttransaction.complete();\n\n\t\t\t// Stop when fully whetted\n\t\t\tweapon.repair(1);\n\t\t\tif(!weapon.isDamaged()) throw ActionException.of(\"whet.finished\");\n\n\t\t\treturn Response.EMPTY;\n\t\t};\n\n\t\t// Build response\n\t\tfinal Induction.Descriptor descriptor = new Induction.Descriptor.Builder()\n\t\t\t.period(duration)\n\t\t\t.flag(Induction.Flag.SPINNER)\n\t\t\t.flag(Induction.Flag.REPEATING)\n\t\t\t.build();\n\t\treturn Response.of(new Induction.Instance(descriptor, induction));\n\t}", "public void attack(int x, int y, int xx, int yy) {\n int result = ((MovablePiece)(controller.getBoard().getPiece(x, y))).attack(controller.getBoard().getPiece(xx,yy));\n int player;\n \n if(result < 4) {\n mc.playMusic(\"sounds\\\\Bomb.wav\");\n }\n \n if(result == 1) {\n controller.getPlayer(controller.getTurn()).getMyGraveyard().setPiece(controller.getBoard().getPiece(xx, yy));\n controller.getBoard().setPiece(controller.getBoard().getPiece(x, y), xx, yy);\n controller.getBoard().deletePiece(x, y);\n Cell[xx][yy].setIcon(new ImageIcon(\"pieces\\\\\" + this.getName()));\n } else if(result == 2) {\n controller.getPlayer(controller.getTurn()).getMyGraveyard().setPiece(controller.getBoard().getPiece(xx, yy));\n controller.getPlayer(prevTurn).getMyGraveyard().setPiece(controller.getBoard().getPiece(x, y));\n controller.getBoard().deletePiece(xx,yy);\n controller.getBoard().deletePiece(x, y);\n Cell[xx][yy].setIcon(null);\n Cell[xx][yy].setBackground(Color.white);\n } else if(result == 3){\n controller.getPlayer(prevTurn).getMyGraveyard().setPiece(controller.getBoard().getPiece(x, y));\n controller.getBoard().deletePiece(x, y);\n } else if(result == 5) {\n mc.playMusic(\"sounds\\\\Sorceress.wav\");\n try {\n Thread.sleep(4000);\n } catch (InterruptedException ex) {\n Logger.getLogger(Graphics.class.getName()).log(Level.SEVERE, null, ex);\n }\n piece = controller.getBoard().getTable()[xx][yy];\n if(piece.getLevel()< controller.getBoard().getPiece(x, y).getLevel() && piece.getLevel() != 0 ) {\n if(piece.getColour() == 'R') {\n piece.setColour('B');\n piece.setName(piece.getName().replace(\"R\", \"B\"));\n } else {\n piece.setColour('R');\n piece.setName(piece.getName().replace(\"B\", \"R\"));\n }\n piece.setIcon(piece.getName());\n }\n } else {\n /* NOTHING IS CHARGED */\n }\n Cell[x][y].setIcon(null);\n Cell[x][y].setBackground(Color.white);\n for(int i = 0; i < 12; i++) {\n RGrave[i].setToolTipText(controller.getPlayer(2).getMyGraveyard().getQuantity(i) + \"/\" + (new Collection('R')).getQuantity(i));\n BGrave[i].setToolTipText(controller.getPlayer(1).getMyGraveyard().getQuantity(i) + \"/\" + (new Collection('B')).getQuantity(i));\n }\n }", "public abstract boolean attack(Warrior w);", "public void boingg(Player player) {\n if (player.getCircle().getBoundsInParent().intersects(right.getBoundsInParent())) {\n\n if ((int) player.normalVelocityX == 0) {\n player.normalVelocityX = 4;\n } else {\n player.normalVelocityX = Math.abs(player.normalVelocityX) * springiness;\n }\n\n } else if (player.getCircle().getBoundsInParent().intersects(left.getBoundsInParent())) {\n if ((int) player.normalVelocityX == 0) {\n player.normalVelocityX = -4;\n } else {\n player.normalVelocityX = Math.abs(player.normalVelocityX) * -springiness;\n }\n } else {\n player.normalVelocityX *= springiness;\n }\n\n player.normalVelocityY *= -springiness;\n player.angularVelocity *= -springiness;\n \n rectangle.setFill(AssetManager.springSkin(false));\n\n }", "Wolf(int x, int y, Resources res) {\n super(x, y, res);\n touched = false;\n goingRight = true;\n wolfLeft = BitmapFactory.decodeResource(res, R.drawable.sheep_left);\n wolfRight = BitmapFactory.decodeResource(res, R.drawable.sheep_right);\n appearance = wolfRight;\n wolfWidth = wolfLeft.getWidth();\n wolfHeight = wolfRight.getHeight();\n }", "public MyWorld()\n { \n // Create a new world with 1600x1200 cells with a cell size of 1x1 pixels.\n super(1125, 1125, 1);\n //Adds the Cornucopia to the center of the Arena.\n int centerX = this.getWidth()/2;\n int centerY = this.getHeight()/2;\n this.addObject(new Cornucopia(), centerX, centerY);\n \n //The following adds the main character for the game.\n int CharacterX = 1125/2;\n int CharacterY = 770;\n this.addObject(new Character(), CharacterX, CharacterY);\n \n //The following code adds 6 \"Careers\" into the arena.\n int CareerX = 405;\n int CareerY = 328;\n this.addObject(new Careers(), CareerX, CareerY);\n this.addObject(new Careers(), CareerX+310, CareerY-5);\n this.addObject(new Careers(), CareerX+90, CareerY+430);\n this.addObject(new Careers(), CareerX+290, CareerY+405);\n this.addObject(new Careers(), CareerX+190, CareerY-60);\n \n //The following code add the remaining 17 Tributes to the arena.\n //Also, I cannot add like a normal person so there will only be twenty-three tributes. The Capitol goofed this year.\n int TribX = 660;\n int TribY = 288;\n this.addObject(new Tributes(), TribX, TribY);\n this.addObject(new Tributes(), TribX-200, TribY);\n this.addObject(new Tributes(), TribX-227, TribY+443);\n this.addObject(new Tributes(), TribX-280, TribY+400);\n this.addObject(new Tributes(), TribX-34, TribY+467);\n this.addObject(new Tributes(), TribX+86, TribY+397);\n this.addObject(new Tributes(), TribX-134, TribY-22);\n this.addObject(new Tributes(), TribX+103, TribY+82);\n this.addObject(new Tributes(), TribX+139, TribY+144);\n this.addObject(new Tributes(), TribX+150, TribY+210);\n this.addObject(new Tributes(), TribX+150, TribY+280);\n this.addObject(new Tributes(), TribX+120, TribY+342);\n this.addObject(new Tributes(), TribX-338, TribY+275);\n this.addObject(new Tributes(), TribX-319, TribY+343);\n this.addObject(new Tributes(), TribX-343, TribY+210);\n this.addObject(new Tributes(), TribX-330, TribY+150);\n this.addObject(new Tributes(), TribX-305, TribY+80);\n \n //The following code should add the forest onto the map.\n int ForX = this.getWidth()/2;\n int ForY = 900;\n this.addObject(new Forest(), ForX, ForY);\n \n //The following code should add the lake to the map.\n int LakX = 790;\n int LakY = 990;\n this.addObject(new Lake(), LakX, LakY);\n \n //The following should add the cave to the map.\n int CavX = 125;\n int CavY = 110;\n this.addObject(new Cave(), CavX, CavY);\n \n \n int actorCount = getObjects(Tributes.class).size();\n if(actorCount == 17) {\n int BeastX = 200;\n int BeastY = 200;\n this.addObject(new Beasts(), BeastX, BeastY);\n this.addObject(new Beasts(), BeastX+100, BeastY+100);\n }\n }", "public HealthyWorld()\n { \n // Create a new wolrd with 800x400 cells and a cell size of 1x1 pixels\n super(800, 400, 1);\n healthLevel = 10;\n time = 2000;\n showHealthLevel();\n showTime();\n // Create a kid in the middle of the screen\n Kid theKid = new Kid();\n this.addObject(theKid, 400, 350);\n }", "public void act() \n {\n \n move(1);\n \n Player2 player2 = new Player2();\n myWorld2 world = (myWorld2)getWorld();\n \n \n checkForDeath();\n }", "public Sword(Warrior owner) {\n\t\tsuper(owner.getX(), owner.getY(), owner.getX() + length, owner.getY());\n\t\tthis.owner= owner;\n\t\tangle= 0;\n\t}", "public void act() \n {\n World w = getWorld();\n int height = w.getHeight();\n \n setLocation(getX(),getY()+1);\n if (getY() <=0 || getY() >= height || getX() <= 0) // off the world\n {\n w.removeObject(this);\n return;\n }\n \n \n SaboWorld thisWorld = (SaboWorld) getWorld();\n Turret turret = thisWorld.getTurret();\n Actor turretActor = getOneIntersectingObject(Turret.class);\n Actor bullet = getOneIntersectingObject(Projectile.class);\n \n if (turretActor!=null && bullet==null) // hit the turret!\n {\n \n turret.bombed(); //Turret loses health\n explode();\n w.removeObject(this);\n } else if (turret==null && bullet!=null) //hit by a bullet!\n {\n explode();\n w.removeObject(this);\n }\n \n }", "public void act()\n {\n \n //move();\n //if(canSee(Worm.class))\n //{\n // eat(Worm.class);\n //}\n //else if( atWorldEdge() )\n //{\n // turn(15);\n //}\n\n }", "public void onLivingUpdate() {\n if (!this.onGround && this.motionY < 0.0D)\n this.motionY *= 0.6D;\n\n\n if (this.ticksExisted % 20 == 0 && this.getHealth() != this.getMaxHealth() && this.getHealth() >= 1)\n this.setHealth(this.getHealth() + 1);\n\n if (worldObj.isRemote) {\n if (this.isSitting())\n worldObj.spawnParticle(EnumParticleTypes.REDSTONE, posX, posY + 1.5, posZ, 0, 0, 0);\n }\n\n if (worldObj.isRemote) {\n MoWitchAndWizard.proxy.spawnParticles(\"air_normal\", this);\n }\n\n super.onLivingUpdate();\n }", "private void makeMonster(int lvl)\r\n {\r\n maxHealth = lvl*12;\r\n health = maxHealth;\r\n \r\n Equip tempWeapon = null;\r\n Equip tempArmor = null;\r\n if (type == GOLEM)\r\n {\r\n tempWeapon = new Equip(\"roll smash\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"rock body\", Equip.ARMOR, lvl);\r\n }\r\n else if (type == GHOST)\r\n {\r\n tempWeapon = new Equip(\"scythe\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"magic armor\", Equip.ARMOR, lvl);\r\n }\r\n else if (type == SLIME)\r\n {\r\n tempWeapon = new Equip(\"liquid attack\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"shock absorb\", Equip.ARMOR, lvl);\r\n }\r\n else\r\n {\r\n tempWeapon = new Equip(\"teeth\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"hardskin\", Equip.ARMOR, lvl);\r\n }\r\n tempWeapon.changeOwner(this);\r\n tempArmor.changeOwner(this);\r\n tempWeapon.equipTo(this);\r\n tempArmor.equipTo(this);\r\n }", "@Override\r\n\tpublic void spawn(Location location) {\n\t\t\r\n\t}", "public void addedToWorld (World w)\n {\n w.addObject (healthBar, this.getX(), this.getY()-60);\n world = (MyWorld) w;\n healthBar.update(health);\n }", "public Warrior(Point3D position, int speed) {\r\n super(\"img/Ants/warrior.png\", position, speed);\r\n currentBehaviour = WarriorBehaviour.PATROL;\r\n }", "private void startGame() {\n\t\tfor (int j = 0; j< this.game_.getSaveBaby().size();j++){\n\t\t\tBabyBunnies b = this.game_.getSaveBaby().get(j);\n this.object_batch.begin();\n this.object_batch.draw(img_baby,b.getPosition().y,b.getPosition().x,150,150);\n this.object_batch.end();\n\t\t\tthis.pos=b.getPosition();\n\t\t}\n\n/**\n * Apparition du loup et mv\n * et reset de position quand il va trop loin\n */\n\t\tif ((this.game_.getNbBunnies()%10) == 0 && this.game_.getNbBunnies()!= 0 ){\n\t\t\tthis.game_.hunt(this.pos);\n this.object_batch.begin();\n this.object_batch.draw(wolf,this.game_.getWolf().getPosition().y,this.game_.getWolf().getPosition().x,150,150);\n this.object_batch.end();\n\t\t\tthis.game_.getWolf().move(this.game_.getNbBunnies()/10);\n Gdx.app.log(\"wolf\",\"pos lapon \"+this.game_.getSaveBaby().get(0).getPosition());\n Gdx.app.log(\"wolf\",\"pos du loup \"+this.game_.getWolf().getPosition());\n\t\t}\n\t\tif (this.game_.getWolf().getPosition().y>=width || this.game_.getWolf().getPosition().y<0){\n\t\t\tthis.game_.getWolf().restPost();\n\t\t}\n\n/**\n * Check + mv accelerometre\n */\n\t\tif (this.isOnAccelerometer) {\n\t\t\tif (this.mvX < 0 ){\n this.mvX=height;\n\t\t\t}\n\t\t\tif (this.mvY < 0) {\n this.mvY = width;\n\t\t\t}\n\t\t\tif (this.mvX >height){\n this.mvX=0;\n\t\t\t}\n\t\t\tif (this.mvY> width){\n this.mvY = 0;\n\t\t\t}\n\n this.mvX +=-Gdx.input.getAccelerometerX()*1.50;\n this.mvY += Gdx.input.getAccelerometerY()*2.50;\n\t\t\tthis.game_.getBunnyHood().setPosition((int)(mvX),(int)(mvY));\n\t\t\tcollision();\n this.player_batch.begin();\n this.player_batch.draw(this.img_bunnyHood,this.game_.getBunnyHood().getPosition().y,this.game_.getBunnyHood().getPosition().x,200,200);\n this.player_batch.end();\n\n\t\t\tGdx.app.log(\"Score\",Integer.toString(this.game_.getNbBunnies()));\n\n\t\t}\n\t}", "public void stealStick(Warrior w){\n\t\tSystem.out.println(w.getName()+ \" has caught by Innocent Monster \"+ this.getName());\n\t\tWalkingStick ws = w.looseStick();\n\t\tStolenSticks.add(ws);\n\t}", "public JumpManager(int x, int y, int width, int height) throws Exception {\n CANVAS_X = x;\n CANVAS_Y = y;\n DISP_WIDTH = width;\n DISP_HEIGHT = height;\n myCurrentLeftX = Grass.CYCLE * Grass.TILE_WIDTH;\n setViewWindow(0, 0, DISP_WIDTH, DISP_HEIGHT);\n // create the player:\n if (myCowboy == null) {\n myCowboy = new Cowboy(myCurrentLeftX + DISP_WIDTH / 2, DISP_HEIGHT\n - Cowboy.HEIGHT - 2);\n append(myCowboy);\n }\n // create the tumbleweeds to jump over:\n if (myLeftTumbleweeds == null) {\n myLeftTumbleweeds = new Tumbleweed[2];\n for (int i = 0; i < myLeftTumbleweeds.length; i++) {\n myLeftTumbleweeds[i] = new Tumbleweed(true);\n append(myLeftTumbleweeds[i]);\n }\n }\n if (myRightTumbleweeds == null) {\n myRightTumbleweeds = new Tumbleweed[2];\n for (int i = 0; i < myRightTumbleweeds.length; i++) {\n myRightTumbleweeds[i] = new Tumbleweed(false);\n append(myRightTumbleweeds[i]);\n }\n }\n // create the background object:\n if (myGrass == null) {\n myGrass = new Grass();\n append(myGrass);\n }\n }", "public void thrust() {\n // Offset the angle since we drew the ship vertically\n float angle = heading - PI/2;\n // Polar to cartesian for force vector!\n PVector force = new PVector(cos(angle),sin(angle));\n force.mult(5); // original shiffman code =.5\n applyForce(force); \n // To draw booster\n thrust = true;\n }", "public void spawnCreature(){\n\t\tif(spawnType.equalsIgnoreCase(\"worm\")){\n\t\t\tRuntimeObjectFactory.getObjectFromPool(\"worm\"+spawnId);\n\t\t}else if(spawnType.equalsIgnoreCase(\"antorc\")){\n\t\t\tGdx.app.debug(TamerGame.LOG, this.getClass()\n\t\t\t\t\t.getSimpleName() + \" :: Ant entered\");\t\t\t\n\t\t\t//CHANGE SPAWNING IMPLEMENTATION\n\t\t\tAntOrc orc = new AntOrc();\n\t\t\torc.setPosition(getPosition());\n\t\t\torc.setWaypoint(waypoint);\n\t\t\tenvironment.addNewObject(orc);\n\t\t\tEventPool.addEvent(new tEvent(this,\"spawnCreature\",sleepTime,1));\n\t\t}\n\t\t\t\n\t}", "public void move()\n {\n daysSurvived+=1;\n\n energy -= energyLostPerDay;\n\n Random generator = new Random();\n\n //losowo okreslony ruch na podstawie genomu\n int turnIndex = generator.nextInt((int)Math.ceil(Genome.numberOfGenes));\n int turn = genome.getGenome().get(turnIndex);\n\n //wywolujemy metode obrotu - dodaje odpowiednio liczbe do aktualnego kierunku\n direction.turn(turn);\n\n //zmieniamy pozycje zwierzaka przez dodanie odpowiedniego wektora\n position = position.add(direction.move());\n //walidacja pozycji tak, by wychodzac za mape byc na mapie z drugiej strony\n position.validatePosition(map.getWidth(),map.getHeight());\n\n moveOnSimulation();\n\n //jesli po ruchu zwierzaczek nie ma juz energii na kolejny ruch\n if(energy < energyLostPerDay )\n {\n this.animalHungry = true;\n }\n }", "public Wand() {\n damage = 5;\n damageType = \"Magic\";\n }", "public EnemyShipBody(World world, Ship obj) {\n super(world, obj);\n\n float density = 0.1f, friction = 0.2f, restitution = 0.5f;\n int width = 200, height = 166;\n\n // Body\n createFixture(body, new float[]{\n 74,24, 96,8, 106,8, 125,24, 120,79, 100,86, 80,79\n }, width, height, density, friction, restitution, ENEMY_SHIP_BODY, (short) (USER_SHIP_BODY| USER_BULLET_BODY));\n\n // Right Wing\n createFixture(body, new float[]{\n 126,29, 152,37, 158,32, 176,63, 163,157, 147,150, 143,75, 118,78\n }, width, height, density, friction, restitution, ENEMY_SHIP_BODY, (short) (USER_SHIP_BODY| USER_BULLET_BODY));\n\n // Left Wing\n createFixture(body, new float[]{\n 74,29, 48,37, 41,32, 24,63, 37,157, 53,150, 57,75, 83, 78\n }, width, height, density, friction, restitution, ENEMY_SHIP_BODY, (short) (USER_SHIP_BODY| USER_BULLET_BODY));\n\n\n }", "public boolean deployWeapon(int x, int y, Player opponent, Map attacked_map, Map current_player_map, Player current_player, int method_choice) {\n Ship temp_ship = new Minesweeper();\n //Catches if current player is trying to use a bomb on an underwater map or space map, returns false for not successful\n if (current_player.player_weapons.contains(this) && (attacked_map.getName().equals(\"UnderwaterMap\") || attacked_map.getName().equals(\"SpaceMap\"))) {\n bombOutputs(method_choice, 1, attacked_map, temp_ship, x, y);\n return false;\n }\n\n //Checks if coordinate is in bounds\n if (x > 10 || x < 0 || y > 10 || y < 0) {\n bombOutputs(method_choice, 2, attacked_map, temp_ship, x, y);\n return false;\n }\n\n int is_occupied = attacked_map.defensiveGrid.checkCellStatus(x,y);\n\n //Checks if there is a ship at the attacked location: 0 = no ship, 1 = ship exists, 2 = ship exists and already hit\n if (is_occupied == 0) {\n //no ship: miss!\n bombOutputs(method_choice, 3, attacked_map, temp_ship, x, y);\n\n if (method_choice == 2 || method_choice == 3) {\n current_player_map.offensiveGrid.setCellStatus(1, x, y);\n }\n } else if (is_occupied == 1) {\n //ship there: first time attacking!\n Ship attacked_ship = new Minesweeper();\n\n for (int i = 0; i < attacked_map.existing_ships.size(); i++){\n Ship shipy = attacked_map.existing_ships.get(i);\n ArrayList<Coordinate> coordsList = attacked_map.ship_coordinates.get(shipy);\n for (Coordinate coordinate : coordsList) {\n if (coordinate.x == x && coordinate.y == y) {\n attacked_ship = shipy;\n break;\n }\n }\n }\n\n //Check if captain's quarters at location\n Coordinate capt_quart = attacked_map.captains_quarters.get(attacked_ship);\n if (capt_quart.x == x && capt_quart.y == y) {\n //Check for armoured captain's quarters\n if (attacked_ship instanceof ArmoredShip) {\n //Armoured!\n //Armoured captains quarters hasn't been hit before\n if (((ArmoredShip) attacked_ship).getHitCount() == 0) {\n //Prints out a miss - some sneaky captain's quarters here\n bombOutputs(method_choice, 4, attacked_map, attacked_ship, x, y);\n if (method_choice == 2 || method_choice == 3) {\n current_player_map.offensiveGrid.setCellStatus(1, x, y);\n }\n ((ArmoredShip) attacked_ship).updateHitCount();\n }\n //Armoured captains quarters has been hit before\n else if (((ArmoredShip) attacked_ship).getHitCount() == 1){\n //Destroys entire ship!\n bombOutputs(method_choice, 5, attacked_map, attacked_ship, x, y);\n bombOutputs(method_choice, 6, attacked_map, attacked_ship, x, y);\n\n attacked_map.sinkShip(attacked_ship);\n\n if (method_choice == 2 || method_choice == 3) {\n current_player.incrementShipSunkCount();\n current_player.hasSunkFirstShip();\n }\n\n attacked_map.ship_health.replace(attacked_ship, 0);\n ArrayList<Coordinate> coordsList = attacked_map.ship_coordinates.get(attacked_ship);\n for (Coordinate coordinate : coordsList) {\n if (method_choice == 2 || method_choice == 3) {\n current_player_map.offensiveGrid.setCellStatus(2, coordinate.x, coordinate.y);\n }\n attacked_map.defensiveGrid.setCellStatus(2, coordinate.x, coordinate.y);\n }\n ((ArmoredShip) attacked_ship).updateHitCount();\n }\n }\n //Hit a captain's quarters but not armoured\n else {\n //Destroy the ship!\n bombOutputs(method_choice, 7, attacked_map, attacked_ship, x, y);\n attacked_map.sinkShip(attacked_ship);\n if (method_choice == 2 || method_choice == 3) {\n current_player.incrementShipSunkCount();\n current_player.hasSunkFirstShip();\n }\n\n attacked_map.ship_health.replace(attacked_ship, 0);\n ArrayList<Coordinate> coordsList = attacked_map.ship_coordinates.get(attacked_ship);\n for (Coordinate coordinate : coordsList) {\n if (method_choice == 2 || method_choice == 3) {\n current_player_map.offensiveGrid.setCellStatus(2, coordinate.x, coordinate.y);\n }\n attacked_map.defensiveGrid.setCellStatus(2, coordinate.x, coordinate.y);\n }\n }\n }\n //Not a captain's quarters there\n else {\n //Attack and hit!\n int current_health = attacked_map.ship_health.get(attacked_ship);\n current_health -= 1;\n attacked_map.ship_health.replace(attacked_ship, current_health);\n\n bombOutputs(method_choice, 8, attacked_map, temp_ship, x, y);\n if (method_choice == 2 || method_choice == 3) {\n current_player_map.offensiveGrid.setCellStatus(2, x, y);\n }\n attacked_map.defensiveGrid.setCellStatus(2, x, y);\n }\n } else if (method_choice == 2 || method_choice == 3) {\n //Already attacked, already hit a ship!\n bombOutputs(method_choice, 9, attacked_map, temp_ship, x, y);\n }\n\n return true;\n }", "private GameObject spawnBossBubble(LogicEngine toRunIn, int i_level, int i_maxLevel)\r\n\t{\r\n\t\tfloat f_sizeMultiplier = 1 - ((float)i_level/(float)i_maxLevel);\r\n\t\t\r\n\t\tif(i_level == i_maxLevel)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t{\r\n\t\t\tGameObject go = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/redcube.png\",toRunIn.SCREEN_WIDTH/2,LogicEngine.rect_Screen.getHeight()+50,0);\r\n\t\t\tgo.i_animationFrameRow = 0;\r\n\t\t\tgo.i_animationFrame =1;\r\n\t\t\tgo.i_animationFrameSizeWidth =40;\r\n\t\t\tgo.i_animationFrameSizeHeight =37;\r\n\t\t\tgo.f_forceScaleX = 2f * f_sizeMultiplier;\r\n\t\t\tgo.f_forceScaleY = 2f * f_sizeMultiplier;\r\n\t\t\tgo.v.setMaxForce(1);\r\n\t\t\tgo.v.setMaxVel(5);\r\n\t\t\tgo.stepHandlers.add( new BounceOfScreenEdgesStep());\r\n\t\r\n\t\t\t\r\n\t\t\tgo.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\t//initial velocity of first one \r\n\t\t\tgo.v.setVel(new Vector2d(0,-5));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tgo.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//if is last one\r\n\t\t\tif(i_level == i_maxLevel - 1)\r\n\t\t\t{\r\n\t\t\t\tHitpointShipCollision collision = new HitpointShipCollision(go,1, 40.0 * f_sizeMultiplier);\r\n\t\t\t\tgo.collisionHandler = collision;\r\n\t\t\t\tcollision.setSimpleExplosion();\r\n\t\t\t\t\r\n\r\n\t\t\t\treturn go;\r\n\t\t\t}\r\n\t\t\telse //has children\r\n\t\t\t{\r\n\t\t\t\tSplitCollision collision = new SplitCollision(go,2, 15.0 * f_sizeMultiplier);\r\n\t\t\t\tcollision.setSimpleExplosion();\r\n\t\t\t\t\r\n\t\t\t\tgo.collisionHandler = collision;\r\n\t\t\t\t\r\n\t\t\t\t//add children\t\t\t\t\r\n\t\t\t\tfor(int i=0;i<4;i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tGameObject go2 = spawnBossBubble(toRunIn,i_level+1,i_maxLevel);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(i==0)\r\n\t\t\t\t\t\tgo2.v.setVel(new Vector2d(-5,-5));\r\n\t\t\t\t\tif(i==1)\r\n\t\t\t\t\t\tgo2.v.setVel(new Vector2d(5,-5));\r\n\t\t\t\t\tif(i==2)\r\n\t\t\t\t\t\tgo2.v.setVel(new Vector2d(-5,5));\r\n\t\t\t\t\tif(i==3)\r\n\t\t\t\t\t\tgo2.v.setVel(new Vector2d(5,5));\r\n\t\t\t\t\r\n\t\t\t\t\tcollision.splitObjects.add(go2);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn go;\t\t\r\n\t\t}\r\n\t}", "@Spawns(\"potHole\")\n public Entity spawnPotHole(SpawnData data) {\n return entityBuilder()\n .from(data)\n .type(POTHOLE)\n .viewWithBBox(texture(\"pothole.png\", 40, 58))\n .with(new CollidableComponent(true))\n .with(new OffscreenCleanComponent())\n .build();\n }", "WormCharacter(int inx, int iny, int inw, int inl, int sw, int sl){\n\t\tx = inx;\n\t\ty = iny;\n\t\twidth = inw;\n\t\tlength = inl;\n\t\tisVisible = true;\n\t\tscreenwidth = sw;\n\t\tscreenlength = sl;\n\t}", "@Override\n public void setup_level(GameController gameController) {\n\n super.setup_level(gameController);\n \n castle = new Castle (this, FINISH_BARREL_POSITION, gameController);\n \n {\n BoxShape bottom_sensor_shape = new BoxShape (250f,0.2f);\n Body ground = new StaticBody(this,bottom_sensor_shape);\n Sensor killer_sensor = new Sensor(ground, bottom_sensor_shape);\n ground.setPosition(new Vec2(170f,-7f));\n killer_sensor.addSensorListener(new Hero_killer_sensor(this));\n \n \n Shape left_wall_shape = new BoxShape(1, 20);\n StaticBody wall = new StaticBody(this, left_wall_shape);\n wall.setPosition(new Vec2(-3f, 20f));\n wall.addImage(new BodyImage(\"sprites/platforms/invisible_wall.png\"));\n }\n {\n \n \n get_platforms().add(new Platform(this, 8, new Vec2 (3f, -1f), \"TRUNK\"));\n get_platforms().add(new Platform(this, 5, new Vec2 (20f, 6f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(22f, 12f)));\n get_coins().add(new Coin(this, new Vec2(24f, 12f)));\n get_coins().add(new Coin(this, new Vec2(26f, 12f)));\n get_platforms().add(new Platform(this, 18, new Vec2 (42f, 6f), \"CLOUD\")); \n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(44f,7f), 4, \"TURTLE\", this));\n \n \n get_platforms().add(new Platform(this, 4, new Vec2 (96f, 6f), \"CLOUD\")); \n get_fire_rods().add(new Fire_rod(this, new Vec2 (90f, 18f)));\n \n get_platforms().add(new Platform(this, 4, new Vec2 (118f, 6f), \"CLOUD\"));\n get_fire_rods().add(new Fire_rod(this, new Vec2 (112f, 18f)));\n \n get_platforms().add(new Platform(this, 4, new Vec2 (136f, 2f), \"CLOUD\"));\n get_fire_rods().add(new Fire_rod(this, new Vec2 (138f, 12f)));\n \n get_platforms().add(new Platform(this, 4, new Vec2 (148f, 8f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(150f, 14f)));\n get_coins().add(new Coin(this, new Vec2(152f, 14f)));\n get_platforms().add(new Platform(this, 5, new Vec2 (164f, 8f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (179f, 4f)));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(167f,9f), 4, \"TURTLE\", this));\n \n get_platforms().add(new Platform(this, 5, new Vec2 (184f, 8f), \"CLOUD\"));\n get_dynamic_enemies().add(new Brown_enemy(new Vec2(187f, 9f), 4, \"BROWN\", this));\n \n get_platforms().add(new Platform(this, 3, new Vec2 (204, 8f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(206f, 14f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (214, 13f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (230f, 10.5f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (228, 13f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (244f, 10.5f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (242, 13f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(246f, 19f)));\n get_coins().add(new Coin(this, new Vec2(246f, 21f)));\n get_coins().add(new Coin(this, new Vec2(244f, 19f)));\n get_coins().add(new Coin(this, new Vec2(244f, 21f)));\n get_fire_rods().add(new Fire_rod(this, new Vec2 (258f, 10.5f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (256, 13f), \"CLOUD\"));\n \n get_platforms().add(new Platform(this, 3, new Vec2 (266, 18f), \"CLOUD\"));\n get_dynamic_enemies().add(new Brown_enemy(new Vec2(268f, 19.25f), 4, \"BROWN\", this));\n \n get_platforms().add(new Platform(this, 3, new Vec2 (276f, 5f), \"TRUNK\"));\n get_coins().add(new Coin(this, new Vec2(279f, 21f)));\n get_coins().add(new Coin(this, new Vec2(279f, 19f)));\n get_coins().add(new Coin(this, new Vec2(279f, 17f)));\n get_coins().add(new Coin(this, new Vec2(279f, 15f)));\n \n get_platforms().add(new Platform(this, 6, new Vec2 (292f, 4f), \"TRUNK\"));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(294f,6f), -4, \"TURTLE\", this));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(298f,6f), 4, \"TURTLE\", this));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (312f, 5f), \"TRUNK\"));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (322f, 8f), \"TRUNK\"));\n \n get_platforms().add(new Platform(this, 1, new Vec2 (333f, 11f), \"CLOUD\"));\n \n \n \n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (351f, 11.5f)));\n get_platforms().add(new Platform(this, 1, new Vec2 (343f, 15f), \"CLOUD\"));\n get_platforms().add(new Platform(this, 1, new Vec2 (351, 15f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (357f, 27.5f)));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (359, 15f), \"CLOUD\"));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (373, 6f), \"TRUNK\"));\n get_pipes().add(new Pipe(this, new Vec2(374.3f,11f) , true));\n get_platforms().add(new Platform(this, 3, new Vec2 (389, 12f), \"CLOUD\"));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(391f,14f), -4, \"TURTLE\", this));\n \n get_platforms().add(new Platform(this, 20, new Vec2 (399, 3f), \"GROUND\"));\n \n \n \n \n \n\n }\n \n this.start();\n\n }", "private void prepare()\n {\n /**build the outer wall actor\n * width of wall: 50\n */\n //top wall\n for(int top = 0; top < 59; top++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(25 + top * 50, 25);\n }\n //down wall\n for(int down = 0; down < 59; down++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(25 + down * 50, 675);\n }\n //left wall\n for(int left = 1; left < 13; left++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(25, 25 + left * 50);\n }\n //right wall\n for(int right = 1; right < 13; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2925, 25 + right * 50);\n }\n \n /**starting point of the cat */\n P1 p1 = new P1();\n addObject(p1, 133, 321);\n p1.setLocation(575, 125);\n \n //attach obsever to the cat\n HealthPointObserver hpObserver = new HealthPointObserver(p1);\n addObject(hpObserver, 800, 100);\n \n \n \n \n \n /**first page\n * x: 25 - 1025\n */\n //starting location\n for(int start = 0; start < 17; start++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(175 + start * 50, 175);\n }\n //page seperator\n for(int right = 1; right < 10; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1025, 25 + right * 50);\n }\n //jumpers\n Wall wall1 = new Wall();\n addObject(wall1, 32, 382);\n wall1.setLocation(175, 625);\n for(int jump = 0; jump < 2; jump++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(275, 575 + jump * 50);\n }\n for(int jump = 0; jump < 4; jump++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(375, 475 + jump * 50);\n }\n for(int jump = 0; jump < 4; jump++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(525, 475 + jump * 50);\n }\n //set thorn\n Thorn thorn1 = new Thorn();\n addObject(thorn1, 32, 382);\n thorn1.setLocation(625, 625);\n Thorn thorn2 = new Thorn();\n addObject(thorn2, 32, 382);\n thorn2.setLocation(775, 625);\n Thorn thorn3 = new Thorn();\n addObject(thorn3, 32, 382);\n thorn3.setLocation(825, 625);\n \n /**second page \n * x: 1025 - 1975\n */\n //steps for left-top area\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1225 + step * 50, 575);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1075 + step * 50, 475);\n }\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1225 + step * 50, 375);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1075 + step * 50, 275);\n }\n Wall step1 = new Wall();\n addObject(step1, 32, 382);\n step1.setLocation(1225, 175);\n Wall step2 = new Wall();\n addObject(step2, 32, 382);\n step2.setLocation(1775, 125);\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1875 + step * 50, 125);\n }\n //area seperator\n for(int right = 3; right < 13; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1325, 25 + right * 50);\n }\n for(int right = 0; right < 8; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1375 + right * 50, 175);\n }\n //steps for right-down area\n for(int step = 0; step < 4; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1575 + step * 50, 575);\n }\n for(int step = 0; step < 4; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1375 + step * 50, 475);\n }\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1825, step * 50 + 275);\n }\n for(int step = 0; step < 7; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1575 + step * 50, 375);\n }\n for(int step = 0; step < 5; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1775, step * 50 + 425);\n }\n //page seperator\n for(int right = 1; right < 11; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1975, 25 + right * 50);\n }\n //set thorn\n Thorn thorn4 = new Thorn();\n addObject(thorn4, 32, 382);\n thorn4.setLocation(1125, 225);\n Thorn thorn5 = new Thorn();\n addObject(thorn5, 32, 382);\n thorn5.setLocation(1275, 325);\n Thorn thorn6 = new Thorn();\n addObject(thorn6, 32, 382);\n thorn6.setLocation(1875, 325);\n Thorn thorn7 = new Thorn();\n addObject(thorn7, 32, 382);\n thorn7.setLocation(1825, 625);\n Thorn thorn8 = new Thorn();\n addObject(thorn8, 32, 382);\n thorn8.setLocation(1825, 225);\n \n /**third page \n * x: 1975 - 2925\n */\n for(int step = 0; step < 4; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2125 + step * 150, 625);\n }\n //jumper\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2025, step * 150 + 225);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2125, step * 150 + 175);\n }\n // Wall jump1 = new Wall();\n //addObject(jump1, 32, 382);\n //jump1.setLocation(2125, 525);\n for(int step = 0; step < 8; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2175, step * 50 + 175);\n }\n //hidden thorn\n Thorn thorn9 = new Thorn();\n addObject(thorn9, 32, 382);\n thorn9.setLocation(2225, 165);\n Wall jump2 = new Wall();\n addObject(jump2, 32, 382);\n jump2.setLocation(2275, 175);\n Wall jump3 = new Wall();\n addObject(jump3, 32, 382);\n jump3.setLocation(2225, 175);\n Wall jump4 = new Wall();\n addObject(jump4, 32, 382);\n jump4.setLocation(2325, 275);\n Wall jump5 = new Wall();\n addObject(jump5, 32, 382);\n jump5.setLocation(2525, 275);\n Wall jump6 = new Wall();\n addObject(jump6, 32, 382);\n jump6.setLocation(2225, 375);\n Wall jump7 = new Wall();\n addObject(jump7, 32, 382);\n jump7.setLocation(2275, 425);\n for(int step = 0; step < 6; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2425 + step * 50, 425);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2625 + step * 50, 375);\n }\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2725 + step * 50, 325);\n }\n Wall jump8 = new Wall();\n addObject(jump8, 32, 382);\n jump8.setLocation(2825, 275);\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2825 + step * 50, 125);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2675, step * 50 + 475);\n }\n //set thorn\n Thorn thorn10 = new Thorn();\n addObject(thorn10, 32, 382);\n thorn10.setLocation(2825, 175);\n Thorn thorn11 = new Thorn();\n addObject(thorn11, 32, 382);\n thorn11.setLocation(2825, 625);\n Thorn thorn12 = new Thorn();\n addObject(thorn12, 32, 382);\n thorn12.setLocation(2775, 275);\n Thorn thorn13 = new Thorn();\n addObject(thorn13, 32, 382);\n thorn13.setLocation(2675, 325);\n Thorn thorn14 = new Thorn();\n addObject(thorn14, 32, 382);\n thorn14.setLocation(2875, 425);\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2025, sharp * 150 + 275);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2125, sharp * 150 + 225);\n }\n //wheel-thorn\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2275 + sharp * 200, 275);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2325 + sharp * 200, 225);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2375 + sharp * 200, 275);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2325 + sharp * 200, 325);\n }\n //three-limit\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2275 + sharp * 150, 475);\n }\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2275 + sharp * 150, 575);\n }\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2225 + sharp * 150, 525);\n }\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2325 + sharp * 150, 525);\n }\n }", "public PickupWeaponBase(Vec2 position, WeaponBase weaponBarrel) {\n super(position, Vec2.ZERO, new Sprite(\"items/weaponBody\"));\n setSize(new Vec2(0.7, 0.7));\n setRenderLayer(RenderLayer.RenderLayerName.HIGH_BLOCKS);\n\n this.cli = weaponBarrel;\n\n collider = new CircleCollider(this, 30);\n collider.setTag(\"Item\");\n collider.addInteractionLayer(\"Walk\");\n\n }", "public Tower(String name, Image image, double minRange, double maxRange, double buildCost, double upgradeCost, double attack, int x, int y) {\n this.name = name;\n this.image = image;\n this.minRange = minRange;\n this.maxRange = maxRange;\n this.buildCost = buildCost;\n this.upgradeCost = upgradeCost;\n this.attack = attack;\n this.x = x;\n this.y = y;\n }", "public abstract boolean attack(Enemy w);", "public MineHard()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(16, 16, 32);\r\n addObject(new Person() , 1 , 14);\r\n addObject(new Rock() , 1 , 15);\r\n addObject(new Rock() , 8 , 15);\r\n addObject(new Rock() , 12 , 15);\r\n addObject(new Rock() , 5 , 14);\r\n addObject(new Rock() , 15 , 13);\r\n addObject(new Rock() , 9 , 13);\r\n addObject(new Rock() , 12 , 12);\r\n addObject(new Rock() , 10 , 11);\r\n addObject(new Rock() , 7 , 11);\r\n addObject(new Rock() , 2 , 11);\r\n addObject(new Rock() , 1 , 12);\r\n addObject(new Rock() , 15 , 10);\r\n addObject(new Rock() , 12 , 9);\r\n addObject(new Rock() , 4 , 9);\r\n addObject(new Rock() , 1 , 9);\r\n addObject(new Rock() , 11 , 8);\r\n addObject(new Rock() , 13 , 7);\r\n addObject(new Rock() , 10 , 7);\r\n addObject(new Rock() , 9 , 7);\r\n addObject(new Rock() , 8 , 7);\r\n addObject(new Rock() , 7 , 7);\r\n addObject(new Rock() , 2 , 6);\r\n addObject(new Rock() , 5 , 5);\r\n addObject(new Rock() , 12 , 5);\r\n addObject(new Rock() , 9 , 4);\r\n addObject(new Rock() , 13 , 2);\r\n addObject(new Rock() , 3 , 3);\r\n addObject(new Rock() , 4 , 2);\r\n addObject(new Rock() , 1 , 1);\r\n addObject(new Rock() , 9 , 1);\r\n addObject(new Rock() , 10 , 0);\r\n addObject(new Rock() , 0 , 0);\r\n addObject(new Rock() , 0 , 7);\r\n addObject(new Rock() , 5 , 0);\r\n addObject(new Rock() , 15 , 0);\r\n addObject(new Rock() , 15 , 8);\r\n \r\n addObject(new Goldbar() , 15 , 2);\r\n addObject(new Goldbar() , 12 , 8);\r\n addObject(new Goldbar() , 15 , 15);\r\n addObject(new Goldbar() , 3 , 2);\r\n addObject(new Goldbar() , 9 , 0);\r\n addObject(new Goldbar() , 2 , 9);\r\n \r\n addObject(new Zombie() , 13 , 13);\r\n addObject(new Zombie() , 12 , 6);\r\n addObject(new Zombie() , 6 , 0);\r\n addObject(new Zombie() , 1 , 4);\r\n addObject(new Zombie() , 7 , 9);\r\n addObject(new TryC() , 2 , 1);\r\n addObject(new MainMenu() , 12 , 1);\r\n }", "Wall(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\", \"2420\");}", "public void buildingEffect(LoopManiaWorld world) {\n\n List<BasicEnemy> enemies = world.getEnemies();\n\n for (BasicEnemy e : enemies) {\n // if the enemy is in radius and is in battle\n if (Math.pow((this.getX() - e.getX()), 2) + Math.pow((this.getY() - e.getY()), 2) < Math.pow(TOWER_RADIUS,\n 2) && e.isInBattle()) {\n int beforeHealth = e.getHealth();\n e.setHealth(beforeHealth - DAMAGE);\n }\n }\n }", "public void moveTowards(){\n \n \n \n if(!exploded){\n \n \n move(speed);\n \n if(isTouching(Enemy.class)){\n move(explosionRadius); \n \n inRange = (ArrayList) getObjectsInRange(explosionRadius + 25, Enemy.class);\n for(Enemy e : inRange){\n e.hit(damage);\n }\n \n //explode\n exploded = true;\n \n image = new GreenfootImage(\"50x50 aoe.png\");\n image.scale(explosionRadius*2, explosionRadius*2);\n setImage(image);\n //getWorld().removeObject(this);\n }\n else if (isAtEdge())\n {\n getWorld().removeObject(this);\n }\n else if ( radius < distance) {\n getWorld().removeObject(this); \n }\n }\n else{\n setImage(image);\n image.setTransparency(image.getTransparency() - 5);\n if(image.getTransparency() <= 0) getWorld().removeObject(this);\n }\n }", "@Override\n public void commandAddMonster(int id, String name, float x, float y, int gameLevel, int hp, int mp, int power,\n Direction direction, String imgRef)\n {\n }", "@Override\n\tpublic void makeShoeComfortable() {\n\t\t\n\t}", "protected void wander() {\n\t\tfor(int i=3;i>0;){\n\t\t\tfindChest();\n\t\t\tint num = ((int) (Math.random()*100)) % 4;\n\t\t\tswitch (num+1){\n\t\t\t\tcase 1 :\n\t\t\t\t\tif(!(character.xOfFighter-1==game.getXofplayer()&&character.yOfFighter==game.getYofplayer())\n\t\t\t\t\t\t\t&&game.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter-1,character.yOfFighter)){\n\t\t\t\t\t\tcharacter.xOfFighter = character.xOfFighter-1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\tif(!(character.xOfFighter==game.getXofplayer()&&character.yOfFighter-1==game.getYofplayer())&&\n\t\t\t\t\t\t\tgame.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter,character.yOfFighter-1)){\n\t\t\t\t\t\tcharacter.yOfFighter = character.yOfFighter-1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\tif(!(character.xOfFighter+1==game.getXofplayer()&&character.yOfFighter==game.getYofplayer())&&\n\t\t\t\t\t\t\tgame.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter+1,character.yOfFighter)){\n\t\t\t\t\t\tcharacter.xOfFighter = character.xOfFighter+1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\tif(!(character.xOfFighter==game.getXofplayer()&&character.yOfFighter+1==game.getYofplayer())&&\n\t\t\t\t\t\t\tgame.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter,character.yOfFighter+1)){\n\t\t\t\t\t\tcharacter.yOfFighter = character.yOfFighter+1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfindChest();\n\t}", "public void act(){\n if (alive) {\n x = x + vx * dt;\n vx = vx * (1. - daempfung); //Luftwiderstand, eventuell muss dass nur in der Spielerklasse implementiert\n //werden, damit die Pilze nicht abgebremst werden.\n if (bewegung == Bewegung.fallen) {\n y = y + vy * dt;\n vy = vy + g * dt;\n }\n }\n }", "public GameObject spawnBigBeamer(LogicEngine in_logicEngine) {\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bigbeamer.png\",((float)LogicEngine.SCREEN_WIDTH/2),LogicEngine.SCREEN_HEIGHT+64,0);\r\n\t\tship.i_animationFrameSizeHeight = 115;\r\n\t\tship.i_animationFrameSizeWidth = 115;\r\n\t\t\r\n\t\t\r\n\t\tship.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-1f)));\r\n\t\t\r\n\t\r\n\t\tship.v.setMaxForce(2.5f);\r\n\t\tship.v.setMaxVel(2.5f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tint i_shootEvery = 80;\r\n\t\t\r\n\t\tBeamShot b = new BeamShot(i_shootEvery);\r\n\t\t\r\n\t\tb.b_flare=false;\r\n\t\tb.f_offsetX=-40;\r\n\t\tb.f_offsetY=-30;\r\n\t\tb.i_delay = 40;\r\n\t\tb.i_beamWidth = 15;\r\n\t\t\r\n\t\tBeamShot b2 = new BeamShot(i_shootEvery);\r\n\t\tb2.b_flare=false;\r\n\t\tb2.f_offsetX=40;\r\n\t\tb2.f_offsetY=-30;\r\n\t\tb2.i_delay = 40+(i_shootEvery/2);\r\n\t\tb2.i_beamWidth = 15;\r\n\t\tb.nextBeam = b2;\r\n\t\t\r\n\t\tship.shootEverySteps=1;\r\n\t\tship.shotHandler = b;\r\n\t\t\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 100, 50f);\r\n\t\t\r\n\t\tif(!Difficulty.isHard())\r\n\t\t\tc.f_numberOfHitpoints = 200;\r\n\t\tif(!Difficulty.isMedium())\r\n\t\t\tc.f_numberOfHitpoints = 160;\r\n\t\t\r\n\t\tc.setExplosion(Utils.getBossExplosion(ship));\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t}", "public Hero(LogicController logicController, Vector2 vec){\n this.setWorld(logicController.getWorld());\n this.logicController=logicController;\n sprite = new Sprite();\n position=vec;\n booleanDefinition();\n resetCounters();\n this.bombs=new ArrayList<Bomb>();\n if(!logicController.getGame().getIsTest())\n heroAnimations();\n heroBody = new HeroBody(logicController, this,vec);\n if(!logicController.getGame().getIsTest()) {\n heroStandingTextureLoad();\n standRight.flip(true, false);\n sprite.setBounds(0, 0, 17*MyGame.PIXEL_TO_METER, 22*MyGame.PIXEL_TO_METER);\n }\n soundHurt= Gdx.audio.newSound(Gdx.files.internal(\"Sounds/hero_hurt.wav\"));\n soundDying= Gdx.audio.newSound(Gdx.files.internal(\"Sounds/hero_dying.wav\"));\n }", "public void spawn()\n\t{\n\t\tsynchronized(this)\n\t\t{\n\t\t\t// Set the x,y,z position of the L2Object spawn and update its _worldregion\n\t\t\tsetVisible(true);\n\t\t\tsetWorldRegion(WorldManager.getInstance().getRegion(getWorldPosition()));\n\n\t\t\t// Add the L2Object spawn in the _allobjects of L2World\n\t\t\tWorldManager.getInstance().storeObject(object);\n\n\t\t\t// Add the L2Object spawn to _visibleObjects and if necessary to _allplayers of its L2WorldRegion\n\t\t\tregion.addVisibleObject(object);\n\t\t}\n\n\t\t// this can synchronize on others instancies, so it's out of\n\t\t// synchronized, to avoid deadlocks\n\t\t// Add the L2Object spawn in the world as a visible object\n\t\tWorldManager.getInstance().addVisibleObject(object, region);\n\n\t\tobject.onSpawn();\n\t}", "Tower(Point location)\r\n\t{\r\n\t\tthis.location=location;\r\n\t}", "public void attackWall(Wall wall) {\n\t\twall.takeDamage(5);\n\t}", "private boolean buildEntity() {\r\n\t\t/****************** Tower Creation ******************/\r\n\t\tif (this.type.contains(\"tower\")) {\r\n\t\t\tif (this.type.equals(\"tower0\")) {\r\n\t\t\t\t// Basic starting tower\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 2;\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 0;\r\n\t\t\t\tthis.price = 110;\r\n\t\t\t\tthis.frames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower1\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 90;\r\n\t\t\t\tthis.attack = 30;\r\n\t\t\t\tthis.price = 50;\r\n\t\t\t\tthis.frames = 5;\r\n\t\t\t\tthis.weaponFrames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower2\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 160;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 210;\r\n\t\t\t\tthis.frames = 6;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower3\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 245;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 245;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames =1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower4\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 200;\r\n\t\t\t\tthis.attack = 3000;\r\n\t\t\t\tthis.price = 500;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower5\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.weaponFrames = 3;\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 90;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Enemy Creation ******************/\r\n\t\tif (this.type.contains(\"zombie\")) {\r\n\t\t\tif (this.type.equals(\"zombie0\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 150;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 75;\r\n\t\t\t\tthis.deathFrames = 9;\r\n\t\t\t\tthis.walkFrames = 9;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie1\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie2\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 250;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie3\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.speed = 25;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 8;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Object Creation ******************/\r\n\t\tif (this.type.contains(\"object\")) {\r\n\t\t\tif (this.type.equals(\"object0\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object1\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object2\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object3\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object4\")) {\r\n\t\t\t\t// Jail building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object5\")) {\r\n\t\t\t\t// Inn building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object6\")) {\r\n\t\t\t\t// Bar building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object7\")) {\r\n\t\t\t\t// Watchtower building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object8\")) {\r\n\t\t\t\t// Plus path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object9\")) {\r\n\t\t\t\t// NS Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object10\")) {\r\n\t\t\t\t// EW Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object11\")) {\r\n\t\t\t\t// Cobble Ground\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object12\")) {\r\n\t\t\t\t// Tombstone with dirt\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object13\")) {\r\n\t\t\t\t// Tombstone\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object14\")) {\r\n\t\t\t\t// Wood grave marker\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/****************** Out of Creation ******************/\r\n\t\t// Check if a type was created and return results\r\n\t\tif (this.base != null) {\r\n\t\t\t// Successful creation\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\t// Unsuccessful creation\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public void moveBoss() {\n\t\tdouble position = boss.getTranslateY();\n\t\tspeed = Math.random()*30;\n\t\tif(position > 600-70) {\n\t\t\tRandom r = new Random();\n\t\t\tboss.setTranslateY(-6);\n\t\t\tboss.setTranslateX(r.nextInt(900));\n\t\t}else {\n\t\tboss.setTranslateY(position + speed);\n\t\t}\n\t}", "public void spawnNew() {\n\t\tif (tier> 1) {\n\t\t\ttier--;\n\t\t\thealth = tier;\n\t\t\tdamage = tier;\n\t\t\tspeed = 5;\n\t\t\timg = getImage(updateImage(tier)); // converted getImage to protected b/c it wasn't accessible by Balloon class (child class)\n\t\t}\n\t\telse {\n\t\t\tisAlive = false;\n\t\t\tdeletePath();\t\t\t\n\t\t}\n\t}", "public Warlock() {\n name = \"\";\n className = \"\";\n currentHealth = 0;\n strength = 0;\n defense = 0;\n special = 0;\n points = 0;\n }" ]
[ "0.6672122", "0.6562249", "0.65263796", "0.64359903", "0.61508363", "0.6016361", "0.59572935", "0.5949367", "0.594104", "0.59379756", "0.5901852", "0.58880526", "0.58839256", "0.5861862", "0.586097", "0.5855328", "0.5855056", "0.58467907", "0.58339125", "0.58073056", "0.57979894", "0.57807624", "0.57684237", "0.57551914", "0.5751692", "0.57514673", "0.57472414", "0.57322884", "0.5723103", "0.57172567", "0.5704792", "0.56980443", "0.5693356", "0.56818724", "0.5678209", "0.5663518", "0.56526065", "0.5641239", "0.5631289", "0.5631024", "0.5629002", "0.5623875", "0.56229603", "0.5609749", "0.5604006", "0.56013894", "0.55853903", "0.5579737", "0.5578273", "0.5578159", "0.55723614", "0.5569233", "0.55639917", "0.5561907", "0.5559593", "0.5549359", "0.5535541", "0.5531026", "0.5515532", "0.5512401", "0.5511936", "0.55111575", "0.5495354", "0.54895586", "0.5484563", "0.54748195", "0.5469811", "0.5466785", "0.54530174", "0.5440531", "0.54385567", "0.5433825", "0.5428782", "0.54265314", "0.5422022", "0.54174274", "0.541696", "0.54112136", "0.54110885", "0.5410635", "0.540163", "0.54004705", "0.53980005", "0.53958595", "0.53948355", "0.53906643", "0.53902185", "0.5389541", "0.53876966", "0.5384943", "0.53826255", "0.53786784", "0.5375908", "0.5374475", "0.53720814", "0.53660804", "0.53653157", "0.5363399", "0.53623", "0.5357611" ]
0.6430911
4
a method to spawn a points orb, an obstacle that increases score on collision.
@Spawns("pointsorb") public Entity spawnPointsOrb(SpawnData data) { return entityBuilder() .from(data) .type(POINTSORB) .viewWithBBox(texture("pointorb.png", 40, 58)) .with(new CollidableComponent(true)) .with(new OffscreenCleanComponent()) .with(new LiftComponent().yAxisSpeedDuration(150, Duration.seconds(15))) .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void spawnObstacle(){\n\t\tif(this.seconds > this.nextSpawn && !this.gameOver){\n\t\t\tint pX = this.radom.nextInt(350);\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,0,30,pX,0));\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,pX+110,30,HEIGHT-pX-111,0));\n\t\t\tthis.goals.add(new Goal(WIDTH,pX,30,110,0xffffff));\n\t\t\tthis.nextSpawn = this.seconds + this.spawnRate;\n\t\t}\n\t}", "public void addObstacle(Coord obstacleCoord);", "void spawnItem(@NotNull Point point) {\n int anInt = r.nextInt(100) + 1;\n if (anInt <= 10)\n objectsInMap.add(new AmmoItem(point));\n else if (anInt <= 20)\n objectsInMap.add(new HealthItem(point));\n else if (anInt <= 30)\n objectsInMap.add(new ShieldItem(point));\n else if (anInt <= 40)\n objectsInMap.add(new StarItem(point));\n else if (anInt <= 45)\n objectsInMap.add(new LivesItem(point));\n }", "@Test\n public void testWithObstacle() {\n Grid g = new Grid(3, 3, 0, 0, 0, 0);\n Obstacle o = new Obstacle(1, 1);\n g.setObject(o, 1, 1);\n g.setObject(o, 1, 2);\n AStarStrategy strategy = new AStarStrategy();\n\n Location from = new Location(0, 0);\n Location to = new Location(2, 2);\n Path path = strategy.generatePath(g, from, to);\n assertNotNull(path);\n assertEquals(4, path.getMoves().size());\n assertEquals(Move.DOWN, path.getMoves().get(0).direction);\n assertEquals(Move.DOWN, path.getMoves().get(1).direction);\n assertEquals(Move.RIGHT, path.getMoves().get(2).direction);\n assertEquals(Move.RIGHT, path.getMoves().get(3).direction);\n }", "public Obstacle(int xPos,BufferedImage bi)\r\n {\r\n super(xPos,(int)(bi.getHeight()*2/3*(Math.random()*0.5+0.25)),bi);\r\n //super(x,y,width,height);\r\n }", "public Obstacle(int x, int y) {\n super(x, y);\n }", "private void addObjectTo(Obstacle obj, int l) {\r\n\t\tassert inBounds(obj) : \"Object is not in bounds\";\r\n\t\tif (l == LevelCreator.allTag) {\r\n\t\t\tsharedObjects.add(obj);\r\n\t\t\t//obj.activatePhysics(world);\r\n\t\t}\r\n\t\telse if (l == LevelCreator.lightTag) {\r\n\t\t\tlightObjects.add(obj);\r\n\t\t\t//obj.activatePhysics(world);\r\n\t\t}else if (l == LevelCreator.darkTag) {\r\n\t\t\tdarkObjects.add(obj);\r\n\t\t\t//obj.activatePhysics(world);\r\n\t\t}\r\n\t}", "private void createParticleOutsideOfBB(){\n\t\tint x = 0;\n\t\tint y = 0;\n\t\tint r = randInt.getRandInt(1, 4);\n\t\tif(movementType == 0){\n\t\t\tx = randInt.getRandInt(0,xMin);\n\t\t\ty = randInt.getRandInt(0,799);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tswitch (r) {\n\t\t\tcase 1: \n\t\t\t\tx = randInt.getRandInt(0,599);\n\t\t\t\ty = randInt.getRandInt(0,yMin);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tx = randInt.getRandInt(0,599);\n\t\t\t\ty = randInt.getRandInt(yMax,799);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tx = randInt.getRandInt(0,xMin);\n\t\t\t\ty = randInt.getRandInt(0,799);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tx = randInt.getRandInt(xMax,599);\n\t\t\t\ty = randInt.getRandInt(0,799);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tparticleCollection.add(new Particle(x,y,1,1,width,height,randInt.getRandInt(0,1),randInt.getRandInt(0,1),worldMatrix));\n\t}", "@Override \n public void collide(Ball ball, Collidable collidable) {\n super.collide(ball, collidable);\n Vect transferLoc = new Vect(this.getLocation().x()+0.5, this.getLocation().y()+0.5);\n Double theta = Math.random()*2*Math.PI;\n board.addBall(new Ball(transferLoc, new Vect(Constants.SPAWNER_SHOOT_VELOCITY*Math.cos(theta),Constants.SPAWNER_SHOOT_VELOCITY*Math.sin(theta) ), this.getName()+\"SpawnedBall\"+this.spawnCount, board.getGravity(), board.getFriction1(), board.getFriction2()));\n spawnCount += 1;\n this.trigger();\n }", "@Test\n public void testWithObstacle2() {\n Grid g = new Grid(3, 3, 0, 0, 0, 0);\n Obstacle o = new Obstacle(1, 1);\n g.setObject(o, 1, 0);\n g.setObject(o, 1, 1);\n AStarStrategy strategy = new AStarStrategy();\n\n Location from = new Location(0, 0);\n Location to = new Location(2, 2);\n Path path = strategy.generatePath(g, from, to);\n assertNotNull(path);\n assertEquals(4, path.getMoves().size());\n assertEquals(Move.RIGHT, path.getMoves().get(0).direction);\n assertEquals(Move.RIGHT, path.getMoves().get(1).direction);\n assertEquals(Move.DOWN, path.getMoves().get(2).direction);\n assertEquals(Move.DOWN, path.getMoves().get(3).direction);\n }", "void spawnEntityAt(String typeName, int x, int y);", "public void spawnEnemy(){\n\t\tint initTile = 0;\n\t\n\t\tfor(int i=0; i<screen.maps[screen.currentMap].path.getHeight(); i++){\n\t\t\tif(screen.maps[screen.currentMap].path.getCell(0, i).getTile().getProperties().containsKey(\"ground\") == true){\n\t\t\t\tinitTile = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\txCoor = 2;\n\t\tyCoor = (initTile)*64 + 2;\n\t\tbound = new Circle(xCoor+30, yCoor+30, 30);\n\t\tinGame = true;\n\t}", "public Point randomPoint() \t // creates a random point for gameOjbects to be placed into\r\n\t{\n\t\tint x = rand.nextInt(900);\r\n\t\tx = x + 50;\r\n\t\tint y = rand.nextInt(900);\r\n\t\ty = y + 50;\r\n\t\tPoint p = new Point(x, y);\r\n\t\treturn p;\r\n\t}", "public Obstacle(Location location) {\n super(location);\n }", "Ball create(int xpos, int ypos);", "@Override\n protected void spawnInWorld(float x, float y, float xVel, float yVel)\n {\n PolygonShape hitbox = new PolygonShape();\n hitbox.setAsBox(3.0F, 1.0F, new Vector2(0, 0), 0);\n \n //Set up body definition - Defines the type of physics body that this is\n BodyDef bodyDef = new BodyDef();\n bodyDef.type = BodyDef.BodyType.DynamicBody;\n bodyDef.position.set(x, y);\n \n //Set up physics body - Defines the actual physics body\n this.physBody = this.world.getPhysWorld().createBody(bodyDef);\n this.physBody.setUserData(this); //Store this object into the body so that it isn't lost\n \n //Set up physics fixture - Defines physical properties\n FixtureDef fixtureDef = new FixtureDef();\n fixtureDef.shape = hitbox;\n fixtureDef.density = 100.0F; //About 1 g/cm^2 (2D), which is the density of water, which is roughly the density of humans.\n fixtureDef.friction = 0.1F; //friction with other objects\n fixtureDef.restitution = 0.1F; //Bouncyness\n \n //Set which collision type this object is\n fixtureDef.filter.categoryBits = COL_SEA_CREATURE;\n //Set which collision types this object collides with\n fixtureDef.filter.maskBits = COL_ALL ^ COL_SEA_PROJECTILE; //Collide with everything except sea creature projectiles\n \n this.physBody.createFixture(fixtureDef);\n \n //Set the linear damping\n this.physBody.setLinearDamping(5F);\n \n //Set the angular damping\n this.physBody.setAngularDamping(2.5F);\n \n //Apply impulse\n this.physBody.applyLinearImpulse(xVel, yVel, x, y, true);\n \n //Dispose of the hitbox shape, which is no longer needed\n hitbox.dispose();\n }", "public void spawnSateliteShip(LogicEngine in_logicEngine,float in_x)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/gravitonlevel.png\",in_x,LogicEngine.SCREEN_HEIGHT,1);\r\n\t\tship.i_animationFrameSizeWidth = 64;\r\n\t\tship.i_animationFrameSizeHeight = 32;\r\n\t\tship.i_animationFrame = 2;\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tship.v.setMaxForce(1.0f);\r\n\t\tship.v.setMaxVel(4.0f);\r\n\t\t\r\n\t\t\r\n\t\t//fly down\r\n\t\t//ship.stepHandlers.add( new FlyStraightStep(new Vector2d(0,-1f)));\r\n\t\t\r\n\t\tSimplePathfollowing followPathBehaviour = new SimplePathfollowing();\r\n\t\tfollowPathBehaviour.setInfluence(1);\r\n\t\tfollowPathBehaviour.setAttribute(\"arrivedistance\", \"10\", null);\r\n\t\t\r\n\t\t//add waypoints\r\n\t\tfor(int i=0 ; i< 20 ; i++)\r\n\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t//put in some edge ones too\r\n\t\t\tif(r.nextInt(6)%3==0)\r\n\t\t\t\tship.v.addWaypoint(new Point2d((int) LogicEngine.SCREEN_WIDTH * (i%2), LogicEngine.SCREEN_HEIGHT/1.5 + r.nextInt((int) LogicEngine.SCREEN_HEIGHT/5)));\r\n\t\t\telse\r\n\t\t\t\t//put in some random doublebacks etc\r\n\t\t\t\tship.v.addWaypoint(new Point2d(r.nextInt((int) LogicEngine.SCREEN_WIDTH), LogicEngine.SCREEN_HEIGHT/1.5 + r.nextInt((int) LogicEngine.SCREEN_HEIGHT/5)));\r\n\t\t}\r\n\t\tship.v.addWaypoint(new Point2d(LogicEngine.SCREEN_WIDTH/2, -100));\r\n\t\t\r\n\t\tif(Difficulty.isEasy())\r\n\t\t\tship.shotHandler = new BeamShot(50);\r\n\t\telse\r\n\t\tif(Difficulty.isMedium())\r\n\t\t\tship.shotHandler = new BeamShot(40);\r\n\t\telse\r\n\t\tif(Difficulty.isHard())\r\n\t\t\tship.shotHandler = new BeamShot(30);\r\n\t\t\r\n\t\tCustomBehaviourStep b = new CustomBehaviourStep(followPathBehaviour);\r\n\t\tship.stepHandlers.add(b);\r\n\t\t\r\n\t\t//destroy ships that get too close\r\n\t\tHitpointShipCollision hps = new HitpointShipCollision(ship, 10, 32);\r\n\t\thps.setSimpleExplosion();\r\n\t\t\r\n\t\tship.collisionHandler = hps; \r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\t\r\n\t\r\n\t}", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n \n Player player = new Player();\n Point point0 = new Point();\n Point point1 = new Point();\n Point point2 = new Point();\n Point point3 = new Point();\n Point point4 = new Point();\n Danger danger0 = new Danger();\n Danger danger1 = new Danger();\n addObject(player, getWidth()/2, getHeight()/2);\n \n addObject(point0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point2,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point3,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point4,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n \n addObject(danger0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(danger1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n }", "private GameObject spawnBoss(LogicEngine in_logicEngine,LevelManager in_manager)\r\n\t{\n\t\tGameObject go = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/redcube.png\",in_logicEngine.SCREEN_WIDTH/2,LogicEngine.rect_Screen.getHeight()+50,0);\r\n\t\tboss = go;\r\n\t\t\r\n\t\tboss.i_animationFrameRow = 1;\r\n\t\tboss.i_animationFrame =0;\r\n\t\tboss.i_animationFrameSizeWidth =75;\r\n\t\tboss.i_animationFrameSizeHeight =93;\r\n\t\t\r\n\t\tboss.v.setMaxForce(1);\r\n\t\tboss.v.setMaxVel(5);\r\n\t\tboss.stepHandlers.add( new BounceOfScreenEdgesStep());\r\n\t\t\r\n\t\t\r\n\t\tboss_arrive.setAttribute(\"arrivedistance\", \"50\", null);\r\n\t\tboss.stepHandlers.add( new CustomBehaviourStep(boss_arrive));\r\n\t\tboss.isBoss = true;\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(boss, 150, 40, true,1);\r\n\t\t\r\n\t\tif(Difficulty.isMedium())\r\n\t\t\tc.f_numberOfHitpoints = 200;\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t\tc.f_numberOfHitpoints = 250;\r\n\t\t\r\n\t\tif(Difficulty.isMedium())\r\n\t\t\ti_bossBubbleEvery = 125;\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t\ti_bossBubbleEvery = 100;\r\n\t\t\r\n\t\t\r\n\t\tc.addHitpointBossBar(in_logicEngine);\r\n\t\tc.setExplosion(Utils.getBossExplosion(boss));\r\n\t\tboss.collisionHandler = c;\r\n\t\t\r\n\t\tboss.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t//initial velocity of first one \r\n\t\tboss.v.setVel(new Vector2d(0,-5));\r\n\t\t\r\n\t\tGameObject Tadpole1 = in_manager.spawnTadpole(in_logicEngine);\r\n\t\tGameObject Tadpole2 = in_manager.spawnTadpole(in_logicEngine);\r\n\t\t\r\n\t\tGameObject Bubble = null;\r\n\t\t\r\n\t\t\r\n\t\tBubble = spawnBossBubble(in_logicEngine, 0, 3);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tTadpole1.v.setVel(new Vector2d(-10,5));\r\n\t\tTadpole2.v.setVel(new Vector2d(10,5));\r\n\t\tBubble.v.setVel(new Vector2d(0,-5));\r\n\t\t\r\n\t\tLaunchShipsStep l1 = new LaunchShipsStep(Tadpole1 , 50, 5, 1, false);\r\n\t\tLaunchShipsStep l2 = new LaunchShipsStep(Tadpole2, 50, 5, 1, true);\r\n\t\tLaunchShipsStep l3 = new LaunchShipsStep(Bubble, i_bossBubbleEvery, 1, 1, true);\r\n\t\tl1.b_addToBullets = true;\r\n\t\tl2.b_addToBullets = true;\r\n\t\t\r\n\t\tboss.stepHandlers.add(l1);\r\n\t\tboss.stepHandlers.add(l2);\r\n\t\tboss.stepHandlers.add(l3);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\td_eye = new Drawable();\r\n\t\td_eye.i_animationFrameSizeHeight=8;\r\n\t\td_eye.i_animationFrameSizeWidth=8;\r\n\t\td_eye.i_animationFrameRow = 3;\r\n\t\td_eye.str_spritename = \"data/\"+GameRenderer.dpiFolder+\"/eye.png\";\r\n\t\t\r\n\t\tboss.visibleBuffs.add(d_eye);\r\n\t\t\r\n\t\treturn boss;\r\n\t}", "public void addSpawnPoint(float pX, float pY, float pZ,float defaultRot, boolean playerSpawn) {\n //this.testTerrain.setBlockArea( new Vector3Int(5,0,47), new Vector3Int(2,1,2), CubesTestAssets.BLOCK_WOOD);\n Geometry spawnBox = new Geometry(\"Spawn\",new Box(1,2,1));\n Material mat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\"); \n \n if(playerSpawn) {\n //If playerSpawn == true, set the global spawn point\n this.spawnPoint = new Node(\"Player Spawn Point\");\n this.spawnPoint.setUserData(\"Orientation\",defaultRot);\n mat.setColor(\"Color\", new ColorRGBA(0,0,1,0.5f));\n mat.getAdditionalRenderState().setBlendMode(BlendMode.Alpha);\n spawnBox.setMaterial(mat);\n spawnBox.setQueueBucket(Bucket.Transparent);\n this.spawnPoint.attachChild(spawnBox);\n rootNode.attachChild(this.spawnPoint);\n this.spawnPoint.setLocalTranslation((pX * this.blockScale) + (this.blockScale * 0.5f),(pY * this.blockScale) + this.blockScale,(pZ * this.blockScale) + (this.blockScale * 0.5f));\n this.spawnPointList.add(this.spawnPoint);\n } else {\n //If playerSpawn == false, add a mob spawn point\n Node spawn = new Node(\"Mob Spawn Point\");\n spawn.setUserData(\"Orientation\",defaultRot);\n mat.setColor(\"Color\", new ColorRGBA(0.5f,0.5f,0.5f,0.5f));\n mat.getAdditionalRenderState().setBlendMode(BlendMode.Alpha);\n spawnBox.setMaterial(mat);\n spawnBox.setQueueBucket(Bucket.Transparent);\n spawn.attachChild(spawnBox);\n rootNode.attachChild(spawn);\n spawn.setLocalTranslation((pX * this.blockScale) + (this.blockScale * 0.5f),(pY * this.blockScale) + this.blockScale,(pZ * this.blockScale) + (this.blockScale * 0.5f));\n this.spawnPointList.add(spawn);\n }\n \n }", "public void makeRangedAttack(int goalx, int goaly, ParentWeapon weapon) {\n int startx = xposition;\n int starty = yposition;\n \n //Initialize algorithm variables\n int x0 = startx;\n int y0 = starty;\n int x1 = goalx;\n int y1 = goaly;\n \n //Initialize object to hold what we hit\n ParentGameObject object = null;\n \n //Create list to store points on line\n List<int[]> points = new ArrayList<>();\n \n //Line generation via Bresenham's complete line algorithm\n int dx = Math.abs(x1 - x0);\n int sx = x0 < x1 ? 1 : -1;\n int dy = -Math.abs(y1 - y0);\n int sy = y0 < y1 ? 1 : -1;\n int err = dx + dy;\n \n while (true){\n points.add(new int[]{x0,y0});\n if (x0 == x1 && y0 == y1){\n break;\n }\n int e2 = 2*err;\n if (e2 >= dy){\n err += dy;\n x0 += sx;\n }\n if (e2 <= dx){\n err += dx;\n y0 += sy;\n }\n }\n\n //Check each point in line for solid object\n for (int[] i : points){\n \n if (!((i[0] == x1 && i[1] == y1) || (i[0] == startx && i[1] == starty))){\n \n //Check if square isn't null\n if (gameboard.getTile(i[0], i[1]) != null){\n \n //Check if a solid object is occupying the square\n for (Object o : gameboard.getObjectsAtSquare(i[0], i[1])) {\n \n if (((ParentGameObject)o).isSolid == true) {\n\n object = (ParentGameObject) o;\n \n break;\n \n }\n \n }\n \n }\n \n }\n \n }\n\n //If we did not hit any object, exit\n if (object == null) {\n\n return;\n\n }\n\n //Perform contextual behavior based on object in square\n switch (object.getType()){\n\n case \"enemy\":\n\n ParentEntity entity = (ParentEntity)object;\n\n entity.takeDamage(this, weapon.getDamage(), weapon.getAccuracy(statDexterity));\n\n break;\n\n\n }\n \n }", "@Override\r\n\tpublic void spawn(Location location) {\n\t\t\r\n\t}", "private void createShips() {\n //context,size, headLocation, bodyLocations\n Point point;\n Ship scout_One, scout_Two, cruiser, carrier, motherShip;\n if(player) {\n point = new Point(maxN - 1, 0); //row, cell\n scout_One = new Ship(1, point, maxN, \"Scout One\", player);\n ships.add(scout_One);\n point = new Point(maxN - 1, 1);\n scout_Two = new Ship(1, point, maxN, \"Scout Two\", player);\n ships.add(scout_Two);\n point = new Point(maxN - 2, 2);\n cruiser = new Ship(2, point, maxN, \"Cruiser\", player);\n ships.add(cruiser);\n point = new Point(maxN - 2, 3);\n carrier = new Ship(4, point, maxN, \"Carrier\", player);\n ships.add(carrier);\n point = new Point(maxN - 4, 5);\n motherShip = new Ship(12, point, maxN, \"MotherShip\", player);\n ships.add(motherShip);\n\n }else{\n Random rand = new Random();\n int rowM = maxN-3;\n int colM = maxN -2;\n int row = rand.nextInt(rowM);\n int col = rand.nextInt(colM);\n point = new Point(row, col);\n motherShip = new Ship(12, point, maxN, \"MotherShip\", player);\n updateOccupiedCells(motherShip.getBodyLocationPoints());\n ships.add(motherShip);\n\n rowM = maxN - 1;\n colM = maxN -1;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n carrier = new Ship(4, point, maxN, \"Carrier\", player);\n updateOccupiedCells(carrier.getBodyLocationPoints());\n ships.add(carrier);\n checkIfOccupiedForSetShip(carrier, row, col, rowM, colM);\n\n\n rowM = maxN - 1;\n colM = maxN;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n cruiser = new Ship(2, point, maxN, \"Cruiser\", player);\n updateOccupiedCells(cruiser.getBodyLocationPoints());\n ships.add(cruiser);\n checkIfOccupiedForSetShip(cruiser, row, col, rowM, colM);\n\n\n rowM = maxN;\n colM = maxN;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n scout_Two = new Ship(1, point, maxN, \"Scout_Two\", player);\n updateOccupiedCells(scout_Two.getBodyLocationPoints());\n ships.add(scout_Two);\n checkIfOccupiedForSetShip(scout_Two, row, col, rowM, colM);\n\n rowM = maxN;\n colM = maxN;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n scout_One = new Ship(1, point, maxN, \"Scout_One\", player);\n updateOccupiedCells(scout_One.getBodyLocationPoints());\n ships.add(scout_One);\n checkIfOccupiedForSetShip(scout_One, row, col, rowM, colM);\n\n\n\n\n }\n //Need an algorithm to set enemy ship locations at random without overlaps\n }", "public Field.Fieldelements placeShotComputer() {\r\n int sizeX = this.fieldUser.getSizeX();\r\n int sizeY = this.fieldUser.getSizeY();\r\n \r\n // probability that a field contains a ship (not in percent, 1000 is best)\r\n double[][] probability = new double[sizeX][sizeY];\r\n double sumProbability = 0;\r\n \r\n for (int posX = 0; posX < sizeX; posX++) {\r\n for (int posY = 0; posY < sizeY; posY++) {\r\n // set probability for each field to 1\r\n probability[sizeX][sizeY] = 1.;\r\n \r\n // check neighbouring fields for hits and set probability to 1000\r\n if (Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX, posY - 1) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX, posY + 1) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX - 1, posY) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX + 1, posY)) {\r\n probability[posX][posY] = 1000;\r\n }\r\n \r\n // 0 points if all fields above and below are SUNK or SHOT\r\n if ((Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX, posY - 1) || Field.Fieldelements.WATER == fieldUser.getFieldStatus(posX, posY - 1)) &&\r\n (Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX, posY + 1) || Field.Fieldelements.WATER == fieldUser.getFieldStatus(posX, posY + 1)) &&\r\n (Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX - 1, posY) || Field.Fieldelements.WATER == fieldUser.getFieldStatus(posX - 1, posY)) &&\r\n (Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX + 1, posY) || Field.Fieldelements.WATER == fieldUser.getFieldStatus(posX + 1, posY))\r\n ) {\r\n probability[posX][posY] = 0;\r\n }\r\n \r\n // 0 points if a neighbouring field is SUNK\r\n if (Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX - 1, posY - 1) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX - 1, posY) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX - 1, posY + 1) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX, posY - 1) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX, posY + 1) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX + 1, posY - 1) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX + 1, posY) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX + 1, posY + 1)\r\n ) {\r\n probability[posX][posY] = 0;\r\n }\r\n \r\n // 0 points if top right, top left, bottom right or bottom left is HIT\r\n if (Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX - 1, posY - 1) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX - 1, posY + 1) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX + 1, posY - 1) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX + 1, posY + 1)\r\n ) {\r\n probability[posX][posY] = 0;\r\n }\r\n \r\n // 0 points if a shot has already been placed\r\n if (Field.Fieldelements.WATER != fieldUser.getFieldStatus(posX, posY) &&\r\n Field.Fieldelements.SHIP != fieldUser.getFieldStatus(posX, posY)) {\r\n probability[posX][posY] = 0;\r\n }\r\n }\r\n }\r\n \r\n // calculate sum of all points\r\n // TODO check if probability must be smaller numbers\r\n for (int posX = 0; posX < sizeX; sizeX++) {\r\n for (int posY = 0; posY < sizeY; posY++) {\r\n sumProbability += probability[posX][posY];\r\n }\r\n }\r\n \r\n // random element\r\n Random random = new Random();\r\n sumProbability = random.nextInt((int) --sumProbability);\r\n sumProbability++; // must at least be 1\r\n int posY = -1;\r\n int posX = -1;\r\n while (posY < sizeY - 1 && sumProbability >= 0) {\r\n posY++;\r\n posX = -1;\r\n while (posX < sizeX && sumProbability >= 0) {\r\n posX++;\r\n sumProbability = sumProbability - probability[posX][posY];\r\n }\r\n }\r\n return fieldUser.shoot(posX, posY);\r\n }", "private void createObstacole()\n {\n //Create Obstacole\n Obstacole topObstacole = new Obstacole(\"top\");\n Obstacole botObstacole = new Obstacole(\"bottom\");\n Obstacole midObstacole = new Obstacole(\"mid\");\n //amount of space between obstacole\n int ObstacoleSpacing = 150;\n \n //get object image\n GreenfootImage image = botObstacole.getImage();\n \n //random number to vary\n int numOfObstacoles = Greenfoot.getRandomNumber(40) + 15;\n \n //counter increment to 50\n ObstacoleCounter++;\n if (ObstacoleCounter == 50)\n {\n if (getObjects(Obstacole.class).size() < numOfObstacoles)\n {\n addObject(botObstacole, getWidth(), getHeight() / 2 + image.getHeight() - Greenfoot.getRandomNumber(100) - 10);\n addObject(topObstacole, getWidth(), botObstacole.getY() - image.getHeight() - ObstacoleSpacing);\n addObject(midObstacole, getWidth(), botObstacole.getY() + image.getHeight() / 3 + ObstacoleSpacing);\n }\n ObstacoleCounter = 0;\n }\n }", "void obstaclesCallback(final GridCells msg){\n int num_obst = msg.getCells().size();\n me.obstacle_lock_.lock();\n try{\n me.obstacle_points_.clear();\n\n for (int i = 0; i < num_obst; i++) {\n PointStamped in=messageFactory.newFromType(PointStamped._TYPE);\n PointStamped result=messageFactory.newFromType(PointStamped._TYPE);\n in.setHeader(msg.getHeader());\n in.setPoint(msg.getCells().get(i));\n //ROS_DEBUG(\"obstacle at %f %f\",msg->cells[i].x,msg->cells[i].y);\n //TODO:Need Transform\n/* try {\n tf_->waitForTransform(global_frame_, robot_base_frame_, msg->header.stamp, ros::Duration(0.2));\n\n tf_->transformPoint(global_frame_, in, result);\n }\n catch (tf::TransformException ex){\n ROS_ERROR(\"%s\",ex.what());\n return;\n };*/\n\n me.obstacle_points_.add(new Vector2(result.getPoint().getX(),result.getPoint().getY()));\n }\n }finally {\n me.obstacle_lock_.unlock();\n }\n\n }", "public Robots(PApplet p) {\n\t\tbSpeed = 6;\n\t\tbSize = 1;\n\t\tparent = p;\n\t\tx = parent.random (bobWidth, parent.width/2 - bobWidth); // Bob starts in a random place on the screen\n\t\ty = parent.random (bobWidth,parent.width/2 - bobWidth); \n\t}", "private void genObstacle(Group root, String runwayId, Integer verticalOffset){\n String obstacleId = controller.getRunwayObstacle(runwayId);\n Integer obstacleHeight = controller.getPredefinedObstacleHeight(obstacleId);\n Integer obstacleWidth = controller.getPredefinedObstacleWidth(obstacleId);\n Integer obstacleLength = controller.getPredefinedObstacleLength(obstacleId);\n Integer distanceFromCenterline = controller.getDistanceFromCenterline(runwayId);\n Integer distanceFromThreshold = controller.getDistanceFromThreshold(runwayId) + controller.getObstacleOffset(runwayId);\n\n // Obstacle box fill\n Box obstacle = new Box(obstacleWidth, obstacleHeight, obstacleLength);\n PhongMaterial obstacleMaterial = new PhongMaterial(convertToJFXColour(OBSTACLE_FILL_COLOUR));\n obstacle.setMaterial(obstacleMaterial);\n //The position of the obstacle on the runway has to dependent on the distance from threshold and centerline\n Point runwayPos = controller.getRunwayPos(runwayId);\n obstacle.setTranslateX(runwayPos.x - distanceFromCenterline);\n obstacle.setTranslateZ(-runwayPos.y + distanceFromThreshold + obstacleWidth/2);\n obstacle.setTranslateY(-obstacleHeight/2-verticalOffset);\n obstacle.setDrawMode(DrawMode.FILL);\n\n // Obstacle box borders\n /*Box obstacleStroke = new Box(obstacleWidth, obstacleHeight, obstacleLength);\n PhongMaterial obstacleStrokeMaterial = new PhongMaterial(convertToJFXColour(Settings.OBSTACLE_STROKE_COLOUR));\n obstacleStroke.setMaterial(obstacleStrokeMaterial);\n obstacleStroke.setTranslateX(runwayPos.x - distanceFromCenterline);\n obstacleStroke.setTranslateZ(-runwayPos.y + distanceFromThreshold + obstacleWidth/2);\n obstacleStroke.setTranslateY(-obstacleHeight/2-verticalOffset);\n obstacleStroke.setDrawMode(DrawMode.LINE);*/\n\n// Box slopePlane = genSlope(root, runwayId, verticalOffset);\n\n Rotate rotate = new Rotate(controller.getBearing(runwayId), distanceFromCenterline, 0,-distanceFromThreshold - obstacleWidth/2, Rotate.Y_AXIS);\n obstacle.getTransforms().add(rotate);\n //obstacleStroke.getTransforms().add(rotate);\n// slopePlane.getTransforms().add(rotate);\n\n //root.getChildren().addAll(obstacle, obstacleStroke);\n// root.getChildren().addAll(obstacle, slopePlane);\n root.getChildren().add(obstacle);\n }", "@SuppressWarnings(\"unused\")\n void spawn(Entity entity);", "public GameWon()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(550, 600, 1); \n addObject(b1,275,250);\n addObject(b2,275,380);\n }", "private void addRandomAsteroid() {\n ThreadLocalRandom rng = ThreadLocalRandom.current();\n Point.Double newAsteroidLocation;\n //TODO: dont spawn on top of players\n Point.Double shipLocation = new Point2D.Double(0,0);\n double distanceX, distanceY;\n do { // Iterate until a point is found that is far enough away from the player.\n newAsteroidLocation = new Point.Double(rng.nextDouble(0.0, 800.0), rng.nextDouble(0.0, 800.0));\n distanceX = newAsteroidLocation.x - shipLocation.x;\n distanceY = newAsteroidLocation.y - shipLocation.y;\n } while (distanceX * distanceX + distanceY * distanceY < 50 * 50); // Pythagorean theorem for distance between two points.\n\n double randomChance = rng.nextDouble();\n Point.Double randomVelocity = new Point.Double(rng.nextDouble() * 6 - 3, rng.nextDouble() * 6 - 3);\n AsteroidSize randomSize;\n if (randomChance < 0.333) { // 33% chance of spawning a large asteroid.\n randomSize = AsteroidSize.LARGE;\n } else if (randomChance < 0.666) { // 33% chance of spawning a medium asteroid.\n randomSize = AsteroidSize.MEDIUM;\n } else { // And finally a 33% chance of spawning a small asteroid.\n randomSize = AsteroidSize.SMALL;\n }\n this.game.getAsteroids().add(new Asteroid(newAsteroidLocation, randomVelocity, randomSize));\n }", "@Override\n\tpublic void OnUse(Bob bob,float x, float y, float dist) {\n\t\tsuper.OnUse(bob,x, y,dist);\n\t\t\n\t\tif(flag)\n\t\t{\n\t\t\tif(!World.CurrentWorld.UpdateList.contains(this)) {\n\t\t\t\tisUpdating = true;\n\t\t\t\tWorld.CurrentWorld.UpdateList.add(update);\n\t\t\t}\n\t\t\t\n\t\t\tint X = (int)x/Terrain.CurrentTerrain.chunkWidth;\n\t\t\tint Y = (int)y/Terrain.CurrentTerrain.chunkHeight;\n\t\t\tint x2 = (int)x%Terrain.CurrentTerrain.chunkWidth;\n\t\t\tint y2 = (int)x%Terrain.CurrentTerrain.chunkWidth;\n\t\t\t\n\t\t\tif(parentinv.owner.firstUse()) {\n\t\t\t\tif(Terrain.CurrentTerrain.CreateBlock(parentinv.owner,(int)x,(int)y, InvObjID))\n\t\t\t\t\tBob.CurrentBob.inventory.AddToBag(name,-1,true);\n\t\t\t}\n\t\t//Terrain.CurrentTerrain.light.floodStack.add(new Vector3(x,y,0));\n\t\t\n\t\t\n\t\tflag=false;\n\t\t}\n\t}", "private static void spawn(Actor actor, ActorWorld world)\n {\n Random generator = new Random();\n int row = generator.nextInt(10);\n int col = generator.nextInt(10);\n Location loc = new Location(row, col);\n while(world.getGrid().get(loc) != null)\n {\n row = generator.nextInt(10);\n col = generator.nextInt(10);\n loc = new Location(row, col);\n }\n world.add(loc, actor);\n }", "public static void main(String[] args) {\n Hero aventurier = new Hero(200, 100);\n Equipement epee = new Equipement(\"epee\", 0);\n Monsters sorciere = new Monsters(\"witch\", 180, 0);\n Monsters barbare = new Monsters(\"olaf\", 160, 0);//Degat et point attaque sont à 0 car ils prendront les valeurs du random\n\n\n System.out.println(\"Bienvenue dans le dongeon\");\n System.out.println(\"Vous avez \" + aventurier.getPointDeVie() + \" Point de vie, \" + aventurier.getFlasqueDeau() + \" flasques pour combatre vos ennemies et une \");\n\n // i=room ;si pointdevie > room-->room+1 sinon game over(pas besoin de creer une classe)\n int i = 1;\n do {\n\n if (aventurier.getPointDeVie() > 0) ;\n {\n System.out.println(\"Room\" + i);\n\n Monsters enemieActuel = barbare;\n//nbr aleatoire entre sorcier et monster\n Random random = new Random();\n int nbrAl = random.nextInt(2 );\n//si nbr=0 = sorcier sinon barbare\n if (nbrAl == 0) {\n enemieActuel = sorciere;\n //sinon barbare\n } else {\n enemieActuel = barbare;\n }\n\n\n //Si barbare faire le do while\n\n if (enemieActuel == barbare) {\n\n do { //Faire des degats aleatoire grace au random à l'aide de l'epee\n epee.setDegat((int) (5 + (Math.random() * 30)));//comme .set dega=0 on lui donne la valeur de math.random\n int degat = epee.getDegat(); //.get renvoi la valeur au int nommer degat\n barbare.setPointDeVie(barbare.getPointDeVie() - degat);//vie - degat\n System.out.println(\"Il reste au barbare \" + barbare.getPointDeVie());//nouvelle valeur de point de vie\n\n\n //idem avec l'aventurier\n barbare.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = barbare.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n // tant que les Pvie de l'aventurier >= 0 et idem barbare continuer le combat\n } while (aventurier.getPointDeVie() >= 0 && barbare.getPointDeVie() >= 0);\n //à la fin du combat si pvie de l'aventurier sont >0 et que i (room) egale 5 \"gagné\"\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n\n //Si juste pvie de l'aventurier > 0 --->room suivante\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n //on redonne les valeurs de depart pdeVie pour la nouvelle room\n aventurier.setPointDeVie(200);\n barbare.setPointDeVie(180);\n i+=1;\n }\n\n // sinon room = 6 pour envoyer le sout \"game over\"\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n\n\n\n }\n\n //IDEM avec sorciere\n else {\n do {\n\n\n aventurier.setFlasqueDeau((int) (5 + (Math.random() * 30)));\n int degat = aventurier.getFlasqueDeau();\n sorciere.setPointDeVie(sorciere.getPointDeVie() - degat);\n System.out.println(\"Il reste à la sorciere \" + sorciere.getPointDeVie());\n\n sorciere.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = sorciere.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n } while (aventurier.getPointDeVie() >= 0 && sorciere.getPointDeVie() >= 0);\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n aventurier.setPointDeVie(200);\n sorciere.setPointDeVie(160);\n i+=1;\n }\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n }\n } } while (i <= 5 && aventurier.getPointDeVie() > 0);\n\n\n }", "public boolean canCoordinateBeSpawn(int par1, int par2)\n {\n return false;\n }", "@Override\n\tpublic void mouseClicked(MouseEvent e) \n\t{\n\t\tmouseSO.makeSolidObject(e.getX(), e.getY(), 5, 5);\n\t\t\n\t\t\tif(mouseRect.isCollidingWith(balloon1))\n\t\t\t{\n\t\t\t\tballoonY = 100;\n\t\t\t\tballoonX = (gen.nextInt(650)-75);\n\t\t\t\tif(randomColor.equals(Color.green))\n\t\t\t\t{\n\t\t\t\t\tscore++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tscore--;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(mouseRect.isCollidingWith(balloon2))\n\t\t\t\t{\n\t\t\t\tballoon2Y = 100;\n\t\t\t\tballoon2X = (gen.nextInt(650)-75);\n\t\t\t\tif(randomColor.equals(Color.red))\n\t\t\t\t{\n\t\t\t\t\tscore++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tscore--;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(mouseRect.isCollidingWith(balloon3))\n\t\t\t\t\t{\n\t\t\t\t\t\tballoon3Y = 100;\n\t\t\t\t\t\tballoon3X = (gen.nextInt(650)-75);\n\t\t\t\t\t\tif(randomColor.equals(Color.blue))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tscore++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tscore--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(mouseRect.isCollidingWith(balloon4))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tballoon4Y = 100;\n\t\t\t\t\t\t\tballoon4X = (gen.nextInt(650)-75);\n\t\t\t\t\t\t\tif(randomColor.equals(Color.yellow))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tscore++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tscore--;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(mouseRect.isCollidingWith(balloon5))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tballoon5Y = 100;\n\t\t\t\t\t\t\t\tballoon5X = (gen.nextInt(650)-75);\n\t\t\t\t\t\t\t\tif(randomColor.equals(Color.magenta))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tscore++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tscore--;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(mouseRect.isCollidingWith(balloon6))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tballoon6Y = 50;\n\t\t\t\t\t\t\t\t\tballoon6X = (gen.nextInt(650)-75);\n\t\t\t\t\t\t\t\t\tif(randomColor.equals(Color.green))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tscore++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tscore--;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(mouseRect.isCollidingWith(balloon7))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tballoon7Y = 50;\n\t\t\t\t\t\t\t\t\t\tballoon7X = (gen.nextInt(650)-75);\n\t\t\t\t\t\t\t\t\t\tif(randomColor.equals(Color.red))\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tscore++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tscore--;\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\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(mouseRect.isCollidingWith(balloon8))\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tballoon8Y = 50;\n\t\t\t\t\t\t\t\t\t\t\tballoon8X = (gen.nextInt(650)-75);\n\t\t\t\t\t\t\t\t\t\t\tif(randomColor.equals(Color.blue))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tscore++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tscore--;\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\telse\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif(mouseRect.isCollidingWith(balloon9))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tballoon9Y = 50;\n\t\t\t\t\t\t\t\t\t\t\t\tballoon9X = (gen.nextInt(650)-75);\n\t\t\t\t\t\t\t\t\t\t\t\tif(randomColor.equals(Color.yellow))\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tscore++;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tscore--;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif(mouseRect.isCollidingWith(balloon10))\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tballoon10Y = 50;\n\t\t\t\t\t\t\t\t\t\t\t\t\tballoon10X = (gen.nextInt(650)-75);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(randomColor.equals(Color.magenta))\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tscore++;\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\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tscore--;\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\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t}", "@Override\n \tpublic void update() {\n \t\tif (!constructing) {\n \t\t\t// not constructing means the pellet is still traveling through\n \t\t\t// space\n \n \t\t\t// move the pellet\n \t\t\tVector3f.add(pos, vel, pos);\n \n \t\t\t// if it's too old, kill it\n \t\t\tif (Main.timer.getTime() - birthday > 5) {\n \t\t\t\talive = false;\n \t\t\t} else {\n \t\t\t\t// if the pellet is not dead yet, see if it intersected anything\n \n \t\t\t\t// did it hit another pellet?\n \t\t\t\tPellet neighbor_pellet = queryOtherPellets();\n \n \t\t\t\t// did it hit a line or plane?\n \t\t\t\tVector3f closest_point = queryScaffoldGeometry();\n \n \t\t\t\tif (neighbor_pellet != null) {\n \t\t\t\t\talive = false;\n \n\t\t\t\t\tif (neighbor_pellet == current_cycle.lastElement()){\n\t\t\t\t\t\tSystem.out.println(\"shot at same pellet\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n \t\t\t\t\tif (!(neighbor_pellet instanceof PolygonPellet)) {\n \t\t\t\t\t\tMain.all_dead_pellets_in_world.add(neighbor_pellet);\n \t\t\t\t\t\tneighbor_pellet = new PolygonPellet(neighbor_pellet);\n \t\t\t\t\t\tMain.new_pellets_to_add_to_world.add(neighbor_pellet);\n \t\t\t\t\t}\n \n \t\t\t\t\t// if neighbor pellet's class is not PolygonPellet...\n \t\t\t\t\t// neighbor_pellet = new PolygonPellet(neighbor_pellet)\n \t\t\t\t\t// copy the position and stuff from the line/plane\n \t\t\t\t\t// pellet into the new polygon pellet\n \t\t\t\t\t// then go and add it to this cycle\n \t\t\t\t\t// hopefully it changes in the actual array of world\n \t\t\t\t\t// pellets\n \t\t\t\t\t// if not, remove that pellet from all world pelelts and\n \t\t\t\t\t// then add the new one to the end\n \n \t\t\t\t\tcurrent_cycle.add((PolygonPellet) neighbor_pellet);\n \t\t\t\t\tif (current_cycle.size() > 1) {\n \t\t\t\t\t\tmakeLine();\n \t\t\t\t\t}\n \n \t\t\t\t\tif (current_cycle.size() > 2\n \t\t\t\t\t\t\t&& current_cycle.get(0) == current_cycle\n \t\t\t\t\t\t\t\t\t.get(current_cycle.size() - 1)) {\n \t\t\t\t\t\tmakePolygon();\n \t\t\t\t\t} else {\n \t\t\t\t\t\tActionTracker.newPolygonPellet(this);\n \t\t\t\t\t}\n \n \t\t\t\t} else if (closest_point != null) {\n \t\t\t\t\tSystem.out.println(\"pellet stuck to some geometry\");\n \t\t\t\t\tconstructing = true;\n \n \t\t\t\t\tpos.set(closest_point);\n \n \t\t\t\t\tif (CONNECT_TO_PREVIOUS)\n \t\t\t\t\t\tcurrent_cycle.add(this);\n \n \t\t\t\t\tif (CONNECT_TO_PREVIOUS && current_cycle.size() > 1) {\n \t\t\t\t\t\tmakeLine();\n \t\t\t\t\t}\n \n \t\t\t\t\tif (current_cycle.size() > 2\n \t\t\t\t\t\t\t&& current_cycle.get(0) == current_cycle\n \t\t\t\t\t\t\t\t\t.get(current_cycle.size() - 1))\n \t\t\t\t\t\tmakePolygon();\n \t\t\t\t} else if (Main.draw_points) {\n \t\t\t\t\t// if it's not dead yet and also didn't hit a\n \t\t\t\t\t// neighboring\n \t\t\t\t\t// pellet, look for nearby points in model\n \t\t\t\t\tint neighbors = queryKdTree(pos.x, pos.y, pos.z, radius);\n \n \t\t\t\t\t// is it near some points?!\n \t\t\t\t\tif (neighbors > 0) {\n \t\t\t\t\t\tconstructing = true;\n \t\t\t\t\t\tsetInPlace();\n \n \t\t\t\t\t\tsnapToCenterOfPoints();\n \n \t\t\t\t\t\tif (CONNECT_TO_PREVIOUS)\n \t\t\t\t\t\t\tcurrent_cycle.add(this);\n \n \t\t\t\t\t\tif (CONNECT_TO_PREVIOUS && current_cycle.size() > 1) {\n \t\t\t\t\t\t\tmakeLine();\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t\tif (current_cycle.size() > 0)\n \t\t\t\t\tcurrent_cycle.get(0).setAsFirstInCycle();\n \n \t\t\t\tif (constructing == true) {\n \t\t\t\t\tActionTracker.newPolygonPellet(this);\n \t\t\t\t}\n \t\t\t}\n \t\t} else {\n \t\t\t// the pellet has stuck... here we just give it a nice growing\n \t\t\t// bubble animation\n \t\t\tif (radius < max_radius) {\n \t\t\t\tradius *= 1.1;\n \t\t\t}\n \t\t}\n \t}", "public abstract void makePlayer(Vector2 origin);", "public void spawn()\n\t{\n\t\tsynchronized(this)\n\t\t{\n\t\t\t// Set the x,y,z position of the L2Object spawn and update its _worldregion\n\t\t\tsetVisible(true);\n\t\t\tsetWorldRegion(WorldManager.getInstance().getRegion(getWorldPosition()));\n\n\t\t\t// Add the L2Object spawn in the _allobjects of L2World\n\t\t\tWorldManager.getInstance().storeObject(object);\n\n\t\t\t// Add the L2Object spawn to _visibleObjects and if necessary to _allplayers of its L2WorldRegion\n\t\t\tregion.addVisibleObject(object);\n\t\t}\n\n\t\t// this can synchronize on others instancies, so it's out of\n\t\t// synchronized, to avoid deadlocks\n\t\t// Add the L2Object spawn in the world as a visible object\n\t\tWorldManager.getInstance().addVisibleObject(object, region);\n\n\t\tobject.onSpawn();\n\t}", "public GridCell(int xPosition, int yPosition, char actor) // Based on the actor we are creating respective object.\n {\n\t xPos = xPosition;\n\t yPos = yPosition;\n\t if(actor == Constants.PATH)\n\t {\n\t\t a = new Actor();\n\t }\n\t if( actor == Constants.ROBOT)\n\t {\n\t\t a = new PlayerRobotManual();// creating PlayerRobotManual object.\n\t }\n\t if(actor == 'x' || actor == Constants.WALL)\n\t {\n\t\t a = new Wall();// wall object.\n\t }\n\t if(actor == 'b' || actor == Constants.BOMB)\n\t {\n\t\t a = new Bomb(); // Bomb objection.\n\t }\n\t if(actor == Constants.SMALL_CANDY ) \n\t {\n\t\t a = new Candy(Constants.SMALL_CANDY); // candy object of type small.\n\t }\n\t if(actor == Constants.SMALL_CANDY ) \n\t {\n\t\t a = new Candy(Constants.SMALL_CANDY);\n\t }\n\t if(actor == Constants.BIG_CANDY)\n\t {\n\t\t a = new Candy(Constants.BIG_CANDY);// candy object of type Big.\n\t }\n\t if(actor == Constants.DUMB_ENEMY)\n\t {\n\t\t a = new DumbEnemy(); // object of dumb enemy which moves in random direction.\n\t }\n\t if(actor == Constants.SENTINEL_ENEMY)\n\t {\n\t\t a = new SentinelEnemy();// THis will be at one fixed postion and will kill the robot if its in neighbour cell.\n\t }\n\t if(actor == Constants.WALKING_SENTINEL)\n\t {\n\t\t a = new WalkingSentinelEnemy();// object for walking sentinel enemy.\n\t }\n\t if(actor == Constants.PLAYER_CHASER)\n\t {\n\t\t a = new SmartEnemy();// object for player chaser enemy.\n\t }\n\t if(actor == Constants.CANDY_CHASER)\n\t {\n\t\t a = new WatcherEnemy();// object for candy chaser enemy.\n\t }\n\t if(actor == Constants.ROBOT_HOLDING_BOMB)\n\t {\n\t\t a = new PlayerRobotHoldingBomb();// object used to repersent the player holding bomb.\n\t }\n\t if(actor == Constants.FLYING_BOMB)\n\t {\n\t\t a = new FlyingBomb(); // Object used to represent the flying bomb.\n\t }\n\t if((int)actor >= 49 && (int)actor <=57)\n\t {\n\t\t a = new WarpZone(actor);\n\t }\n\t if(actor == 'i')\n\t {\n\t\t a = new InvisibleCloak();\n\t\t\t\t \n\t }\n\t}", "public GameObject spawnCarrier(LogicEngine in_logicEngine, float in_x , CARRIER_TYPE in_type)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/thrusterboss.png\",in_x,LogicEngine.SCREEN_HEIGHT+64,30);\r\n\t\t\r\n\t\t\r\n\t\t//set animation frame\r\n\t\tship.i_animationFrame=4;\r\n\t\tship.i_animationFrameRow=0;\r\n\t\tship.i_animationFrameSizeWidth=32;\r\n\t\tship.i_animationFrameSizeHeight=132;\r\n\t\t\r\n\t\tSimplePathfollowing followPathBehaviour = new SimplePathfollowing();\r\n\t\t//pause at the first waypoint\r\n\t\tfollowPathBehaviour.waitAtWaypoint(1, 50);\r\n\t\t\r\n\t\tfollowPathBehaviour.setInfluence(1);\r\n\t\tfollowPathBehaviour.setAttribute(\"arrivedistance\", \"50\", null);\r\n\t\t\r\n\t\tfollowPathBehaviour.waitAtWaypoint(1, 300);\r\n\t\t\r\n\t\t//go straight down then split\r\n\t\tship.v.addWaypoint(new Point2d(in_x, LogicEngine.SCREEN_HEIGHT/1.5));\r\n\t\tship.v.addWaypoint(new Point2d(in_x,-100));\r\n\t\t\r\n\t\tCustomBehaviourStep b = new CustomBehaviourStep(followPathBehaviour);\r\n\t\t\r\n\t\t//turret\r\n\t\t//turret\r\n\t\tDrawable turret = new Drawable();\r\n\t\tturret.i_animationFrame = 6;\r\n\t\tturret.i_animationFrameSizeWidth=16;\r\n\t\tturret.i_animationFrameSizeHeight=16;\r\n\t\tturret.str_spritename = \"data/\"+GameRenderer.dpiFolder+\"/gravitonlevel.png\";\r\n\t\tturret.f_forceRotation = 90;\r\n\t\tship.shotHandler = new TurretShot(turret,\"data/\"+GameRenderer.dpiFolder+\"/redbullets.png\",6,5.0f);\r\n\t\tship.visibleBuffs.add(turret);\r\n\t\t\r\n\t\tship.v.setMaxForce(1);\r\n\t\tship.v.setMaxVel(1);\r\n\t\t\r\n\t\tship.stepHandlers.add(b);\r\n\t\t\r\n\t\tHitpointShipCollision s;\r\n\t\tif(!Difficulty.isHard())\r\n\t\t\t s = new HitpointShipCollision(ship, 160, 32);\r\n\t\telse\r\n\t\t\t s = new HitpointShipCollision(ship, 125, 32);\r\n\t\t\t\r\n\t\ts.setExplosion(Utils.getBossExplosion(ship));\r\n\t\tship.collisionHandler = s; \r\n\t\r\n\t\t//TODO:launch ships handler for shooting\r\n\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_BOTH_SIDES)\r\n\t\t{\r\n\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(true), 50, 5, 5,true));\r\n\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(false), 50, 5, 5,false));\r\n\t\t}\r\n\t\telse\r\n\t\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_RIGHT_ONLY)\r\n\t\t\t{\r\n\t\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(true), 50, 5, 5,true));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_LEFT_ONLY)\r\n\t\t\t\t{\r\n\t\t\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(false), 50, 5, 5,false));\r\n\t\t\t\t}\r\n\t\t\t\t\t\t \r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t\r\n\t}", "public GameObject spawnBomber(LogicEngine in_logicEngine){\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bomber.png\",((float)LogicEngine.SCREEN_WIDTH)+50,LogicEngine.SCREEN_HEIGHT-50,0);\r\n\t\tship.i_animationFrameSizeHeight = 58;\r\n\t\tship.i_animationFrameSizeWidth = 58;\r\n\t\t\r\n\t\t//fly back and forth\r\n\t\tLoopWaypointsStep s = new LoopWaypointsStep();\r\n\t\ts.waypoints.add(new Point2d(-30,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\ts.waypoints.add(new Point2d(LogicEngine.SCREEN_WIDTH+50,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\t\r\n\t\tship.b_mirrorImageHorizontal = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(s);\r\n\t\tship.v.setMaxForce(5.0f);\r\n\t\tship.v.setMaxVel(5.0f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\r\n\r\n\t\t//tadpole bullets\r\n\t\tGameObject go_tadpole = this.spawnTadpole(in_logicEngine);\r\n\t\tgo_tadpole.stepHandlers.clear();\r\n\t\tFlyStraightStep fly = new FlyStraightStep(new Vector2d(0,-0.5f));\r\n\t\tfly.setIsAccelleration(true);\r\n\t\t\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t{\tgo_tadpole.v.setMaxVel(5);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\telse\r\n\t\t{\tgo_tadpole.v.setMaxVel(10);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\tgo_tadpole.stepHandlers.add(fly);\r\n\t\tgo_tadpole.v.setVel(new Vector2d(-2.5f,0f));\r\n\t\t\r\n\t\t\r\n\t\t//bounce on hard and medium\r\n\t\tif(Difficulty.isHard() || Difficulty.isMedium())\r\n\t\t{\r\n\t\t\tBounceOfScreenEdgesStep bounce = new BounceOfScreenEdgesStep();\r\n\t\t\tbounce.b_sidesOnly = true;\r\n\t\t\tgo_tadpole.stepHandlers.add(bounce);\r\n\t\t}\r\n\t\t\r\n\t\t//drop bombs\r\n\t\tLaunchShipsStep launch = new LaunchShipsStep(go_tadpole, 20, 5, 3, true);\r\n\t\tlaunch.b_addToBullets = true;\r\n\t\tlaunch.b_forceVelocityChangeBasedOnParentMirror = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(launch);\r\n\t\tship.rotateToV=true;\r\n\t\t\r\n\t\t//give it some hp\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 50, 50f);\r\n\t\tc.setSimpleExplosion();\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t\r\n\t}", "private boolean spawn(int x, int y) {\n\t\treturn false;\n\t}", "public gameWorld()\n { \n // Create a new world with 600x600 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n addObject(new winSign(), 310, 300);\n addObject(new obscureDecorative(), 300, 400);\n addObject(new obscureDecorative(), 300, 240);\n \n for(int i = 1; i < 5; i++) {\n addObject(new catchArrow(i * 90), 125 * i, 100);\n }\n for (int i = 0; i < 12; i++) {\n addObject(new damageArrowCatch(), 50 * i + 25, 50); \n }\n \n \n //Spawning Interval\n\n if(timerInterval >= 10) {\n arrowNumber = Greenfoot.getRandomNumber(3);\n }\n if(arrowNumber == 0) {\n addObject(new upArrow(directionOfArrow[0], imageOfArrow[0]), 125, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 1) {\n addObject(new upArrow(directionOfArrow[1], imageOfArrow[1]), 125 * 2, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 2) {\n addObject(new upArrow(directionOfArrow[2], imageOfArrow[2]), 125 * 3, 590);\n arrowNumber = 5;\n }\n if( arrowNumber == 3) {\n addObject(new upArrow(directionOfArrow[3], imageOfArrow[3]), 125 * 4, 590);\n arrowNumber = 5;\n }\n \n \n\n \n }", "public void shot(int xp,int yp,int x2,int y2){\n yp += 10;\n xp += 10;\n rp = 1;\n float atan = (float) Math.atan2(yp-y2, xp-x2);\n theta = (float) (Math.PI/2 - atan);\n this.xp = xp;\n this.yp = yp;\n active = true;\n ready = false;\n }", "protected void addObject(Obstacle obj) {\n\t\tassert inBounds(obj) : \"Object is not in bounds\";\n\t\tobjects.add(obj);\n\t\tobj.activatePhysics(world);\n\t}", "@Test\n public void testWithObstacle3() {\n Grid g = new Grid(4, 4, 0, 0, 0, 0);\n Obstacle o = new Obstacle(1, 1);\n g.setObject(o, 0, 3);\n g.setObject(o, 1, 1);\n g.setObject(o, 1, 2);\n g.setObject(o, 3, 0);\n g.setObject(o, 3, 1);\n AStarStrategy strategy = new AStarStrategy();\n\n Location from = new Location(0, 0);\n Location to = new Location(3, 3);\n Path path = strategy.generatePath(g, from, to);\n assertNotNull(path);\n assertEquals(6, path.getMoves().size());\n assertEquals(Move.DOWN, path.getMoves().get(0).direction);\n assertEquals(Move.DOWN, path.getMoves().get(1).direction);\n assertEquals(Move.RIGHT, path.getMoves().get(2).direction);\n assertEquals(Move.RIGHT, path.getMoves().get(3).direction);\n assertEquals(Move.RIGHT, path.getMoves().get(4).direction);\n assertEquals(Move.DOWN, path.getMoves().get(5).direction);\n }", "public void initSpawnPoints() {\n this.spawnPointList = new ArrayList<Node>();\n \n //Player spawn point location (5,0,47) In Ready Room\n this.addSpawnPoint(5.5f,0,47.5f,90, true);\n //Mob spawn point location (16,0,47) In Zone 2\n this.addSpawnPoint(16.5f, 0, 47.5f, 270, false); \n //Mob spawn point location (21,0,43)\n this.addSpawnPoint(21.5f, 0, 43.5f, 0,false);\n \n //Mob spawners in Zone 3\n this.addSpawnPoint(17.5f, 0, 37.5f, 90, false);\n this.addSpawnPoint(29.5f, 0, 37.5f, 90, false);\n this.addSpawnPoint(17.5f, 0, 29.5f, 270, false);\n \n //Mob spawners in Zone 4\n this.addSpawnPoint(12.5f, 0, 29.5f, 90, false);\n this.addSpawnPoint(6.5f, 0, 20.5f, 0, false);\n \n //Mob spawners in Zone 5\n this.addSpawnPoint(9.5f, 0, 6.5f, 0, false);\n this.addSpawnPoint(17.5f, 0, 6.5f, 0, false);\n this.addSpawnPoint(24.5f, 0, 8.5f, 270, false);\n this.addSpawnPoint(24.5f, 0, 11.5f, 270, false);\n this.addSpawnPoint(24.5f, 0, 14.5f, 270, false);\n }", "Player(int posX,int posY,int velX,int velY, int accX, int accY,int attack,int health, int numOfBomb, int sInterval){\n this.posX = posX;\n this.posY = posY;\n this.velX = velX;\n this.velY = velY;\n this.accX = accX;\n this.accY = accY;\n this.health = health;\n this.numOfBomb = numOfBomb;\n this.attack = attack;\n this.sInterval = sInterval;\n invincibleTime = 0;\n invincible = false;\n wid = 300/4;\n hei = 400/4;\n classOfObejct = 0;\n alive = true;\n }", "public void act() \n {\n // Add your action code here.\n if (Greenfoot.mouseClicked(this)){\n World myWorld = getWorld();\n List<Crab> crabs = myWorld.getObjects(Crab.class);\n for(Crab c : crabs){\n // int y = Greenfoot.getRandomNumber(560);\n // int x = Greenfoot.getRandomNumber(560);\n //c.setLocation(x,y);\n // myWorld.removeObjects(crabs);\n }\n \n /*\n Crab c = new Crab();\n int y = Greenfoot.getRandomNumber(560);\n int x = Greenfoot.getRandomNumber(560);\n myWorld.addObject(c, x, y);\n */\n \n }\n}", "private void generateRandomPosition() {\r\n int indexX, indexY;\r\n boolean collidesWithPlayers;\r\n playerState.position.x = Integer.MIN_VALUE; // While we trying...\r\n playerState.position.y = Integer.MIN_VALUE;\r\n final ExtensiveMovingObject testObject = new ExtensiveMovingObject( 0.0f, 0.0f, 0.0f, 0.0f, GeneralConsts.WORM_WIDTH, GeneralConsts.WORM_HEIGHT );\r\n int positionGenerationTrialFailureCounter = 0;\r\n do {\r\n do {\r\n indexX = 1 + (int) ( Math.random() * ( map.getWidth () - 1 ) );\r\n indexY = 1 + (int) ( Math.random() * ( map.getHeight() - 1 ) );\r\n if ( positionGenerationTrialFailureCounter++ == MAX_POSITION_GENERATION_TRIAL_FAILURE_COUNT )\r\n if ( map.getWall( indexX, indexY ) == Map.WALL_STONE )\r\n map.setWall( indexX, indexY, Map.WALL_BRICK ); // Not to empty: it can be under water!!\r\n } while( map.getWall( indexX, indexY ) == Map.WALL_STONE ); // Stone can't be cleared: it can be part of swimming pool boundaries. (But if there isn't other places where to start, we clear it!)\r\n testObject.position.x = ( indexX << GeneralConsts.WALL_WIDTH_SHIFT ) + GeneralConsts.WALL_WIDTH / 2;\r\n testObject.position.y = ( indexY << GeneralConsts.WALL_HEIGHT_SHIFT ) + GeneralConsts.WALL_HEIGHT / 2;\r\n collidesWithPlayers = false;\r\n for ( int playerIndex = 0; playerIndex < players.length && !collidesWithPlayers; playerIndex++ )\r\n if ( playerIndex != ownIndex && players[ playerIndex ] != null && testObject.hitsExtensiveObject( players[ playerIndex ].playerState ) )\r\n collidesWithPlayers = true;\r\n try {\r\n Thread.sleep( 0, 100 );\r\n }\r\n catch( InterruptedException ie ) {\r\n }\r\n } while ( collidesWithPlayers );\r\n playerState.position.x = testObject.position.x;\r\n playerState.position.y = testObject.position.y;\r\n map.clearMapForEnteringPlayer( indexX, indexY );\r\n }", "@Test\n public void testWithObstacle4() {\n Grid g = new Grid(4, 4, 0, 0, 0, 0);\n Obstacle o = new Obstacle(1, 1);\n g.setObject(o, 0, 3);\n g.setObject(o, 1, 1);\n g.setObject(o, 1, 2);\n g.setObject(o, 3, 0);\n g.setObject(o, 3, 1);\n AStarStrategy strategy = new AStarStrategy();\n\n Location to = new Location(0, 0);\n Location from = new Location(3, 3);\n Path path = strategy.generatePath(g, from, to);\n assertNotNull(path);\n assertEquals(6, path.getMoves().size());\n assertEquals(Move.UP, path.getMoves().get(0).direction);\n assertEquals(Move.LEFT, path.getMoves().get(1).direction);\n assertEquals(Move.LEFT, path.getMoves().get(2).direction);\n assertEquals(Move.LEFT, path.getMoves().get(3).direction);\n assertEquals(Move.UP, path.getMoves().get(4).direction);\n assertEquals(Move.UP, path.getMoves().get(5).direction);\n }", "Piece(int a, int b, int player)\n {\n x = a;\n y = b;\n this.player = player;\n }", "public abstract void collide(InteractiveObject obj);", "@Override\n\tpublic void spawn(Location loc) {\n\t\t\n\t}", "public Obstacle getConstructingObstacle();", "public void setConstructingObstacle(Obstacle obstacle);", "private void placeEnemyShips() {\n\t\tint s51 = (int) (Math.random() * 6); // mostly random numbers\n\t\tint s52 = (int) (Math.random() * 10);\n\t\tfor (int i = 0; i < 5; i++)\n\t\t\tpgrid[s51 + i][s52] = 1;\n\n\t\t// Places the ship of length 3\n\t\tint s31 = (int) (Math.random() * 10);\n\t\tint s32 = (int) (Math.random() * 8);\n\t\twhile (pgrid[s31][s32] == 1 || pgrid[s31][s32 + 1] == 1 // prevents\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// overlaps\n\t\t\t\t|| pgrid[s31][s32 + 2] == 1) {\n\t\t\ts31 = (int) (Math.random() * 10);\n\t\t\ts32 = (int) (Math.random() * 8);\n\t\t}\n\t\tpgrid[s31][s32] = 1;\n\t\tpgrid[s31][s32 + 1] = 1;\n\t\tpgrid[s31][s32 + 2] = 1;\n\n\t\t// Places the ship of length 1\n\t\tint s21 = (int) (Math.random() * 10);\n\t\tint s22 = (int) (Math.random() * 9);\n\t\twhile (pgrid[s21][s22] == 1 || pgrid[s21][s22 + 1] == 1) { // prevents\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// overlaps\n\t\t\ts21 = (int) (Math.random() * 10);\n\t\t\ts22 = (int) (Math.random() * 9);\n\t\t}\n\t\tpgrid[s21][s22] = 1;\n\t\tpgrid[s21][s22 + 1] = 1;\n\n\t}", "private void collide() {\n int collisionRange;\n \n if(isObstacle) {\n for(Thing thg: proximity) {\n if(\n thg.isObstacle\n &&\n !thg.equals(this)\n ) {\n collisionRange = (thg.size + this.size)/2;\n deltaA = this.distance(thg);\n \n if( \n Math.abs(deltaA[0]) <= collisionRange\n &&\n Math.abs(deltaA[1]) <= collisionRange\n ){\n if(deltaA[0] > deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == 1) {\n dA[0] = 0;\n }\n }\n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == -1) {\n dA[1] = 0;\n }\n }\n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n if(dA[0] != 0) {\n dA[1] = dA[0];\n }\n if(dA[1] != 0) {\n dA[0] = dA[1];\n }\n }\n }\n \n if(deltaA[0] < deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == -1) {\n dA[0] = 0;\n }\n } \n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == 1) {\n dA[1] = 0;\n }\n } \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = dA[0];\n }\n }\n \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = -dA[0];\n }\n }\n }\n }\n }\n }", "private void createPlayers(LogicEngine in_logicEngine)\r\n\t{\n\t\tfor(int i=0 ; i < 4 ;i++)\r\n\t\t{\r\n\t\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/tinyship.png\",(LogicEngine.rect_Screen.getWidth()/2) - (32*i) + 64,50,20);\r\n\t\t\tship.i_animationFrame=0;\r\n\t\t\tship.i_animationFrameSizeWidth=16;\r\n\t\t\tship.i_animationFrameSizeHeight=16;\r\n\t\t\tship.allegiance = GameObject.ALLEGIANCES.PLAYER;\r\n\t\t\tship.collisionHandler = new PlayerCollision(ship);\r\n\t\t\tship.stepHandlers.add(new PlayerStep(i,ship));\r\n\t\t\tship.shotHandler = new StraightLineShot(\"data/\"+GameRenderer.dpiFolder+\"/bullet.png\",7.0f,new Vector2d(0,9));\r\n\t\t\t\r\n\t\t\tship.stepHandlers.add(new AnimateRollStep());\r\n\t\t\t\t\r\n\t\t\tship.str_name = \"player\";\r\n\t\t\t\r\n\t\t\tship.c_Color = new Color(1.0f,1.0f,1.0f,1.0f);\r\n\t\t\t\r\n\t\t\tship.v.setMaxForce(3);\r\n\t\t\tship.v.setMaxVel(20.0);\r\n\t\t\tin_logicEngine.objectsPlayers.add(ship);\r\n\t\t\t\r\n\t\t\t//double firing speed on hell\r\n\t\t\tif(Difficulty.isHard())\r\n\t\t\t\tship.shootEverySteps = (int) (ship.shootEverySteps * 0.75); \r\n\t\t\t\r\n\t\t\t//for each advantage if it is enabled apply it\r\n\t\t\tfor(int j=Advantage.b_advantages.length-1 ;j>=0;j--)\r\n\t\t\t\tif(Advantage.b_advantages[j])\r\n\t\t\t\t\tAdvantage.applyAdvantageToShip(j,ship,i,in_logicEngine);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public Field(int w, int h, int numberPoney, int numberRounds) {\n this.height = h;\n this.width = w;\n ObjectsFactory objectsFactory = new ObjectsFactory();\n\n this.setPoney(new Poney[numberPoney]);\n this.setObstacle(new Obstacle[numberPoney]);\n if (numberPoney == 5) {\n this.getPoney()[0] = (PoneyAmeliore) objectsFactory.getObject(\"PoneyAmeliore\", colorMap[0], 0 * 110);\n this.getPoney()[1] = (PoneyIA) objectsFactory.getObject(\"PoneyIA\", colorMap[1], 1 * 110);\n this.getPoney()[2] = (PoneyAmeliore) objectsFactory.getObject(\"PoneyAmeliore\", colorMap[2], 2 * 110);\n this.getPoney()[3] = (PoneyIA) objectsFactory.getObject(\"PoneyIA\", colorMap[3], 3 * 110);\n this.getPoney()[4] = (PoneyIA) objectsFactory.getObject(\"PoneyIA\", colorMap[4], 4 * 110);\n }\n for (int i = 0; i < numberPoney; i++) {\n\n int choice = 1 + (int) (Math.random() * ((2 - 1) + 1));\n System.out.println(choice);\n if (choice == 1)\n this.getObstacle()[i] = (ObstacleDeplace) objectsFactory.getObject(\"ObstacleDeplace\", \"\", (i * 110) + 50);\n else\n this.getObstacle()[i] = (ObstacleStatique) objectsFactory.getObject(\"ObstacleStatique\", \"\", (i * 110) + 50);\n\n }\n this.numberPoney = numberPoney;\n this.numberObstacles = numberPoney;\n this.numberRounds = numberRounds;\n this.finished = false;\n setRank(new Vector());\n addNeighbour();\n }", "public void randomHit() throws LocationHitException{\r\n\t\t// Random ran = new Random();\r\n\t\tint x = randomX();\r\n\t\tint y = randomY();\r\n\r\n\t\tboolean newHit = false;\r\n\t\twhile (!newHit) {\r\n\t\t\tif (Player.userGrid[x][y] == 2) {\r\n\t\t\t\tx = ran.nextInt(9);\r\n\t\t\t\ty = ran.nextInt(11);\r\n\t\t\t} else\r\n\t\t\t\tnewHit = true;\r\n\t\t}\r\n\t\tint hitCoord[] = { x, y };\r\n\t\tsetCoords(hitCoord);\r\n\t\tString coordx = Integer.toString(x);\r\n\t\tString coordy = Integer.toString(y);\r\n\t\tif (Player.userGrid[x][y] == 1) {\r\n\t\t\t// change the grid value from 1 to 2 to signify hit\r\n\t\t\tPlayer.userGrid[x][y] = 2;\r\n\t\t\t\r\n\t\t\tif(!time1) {\r\n\t\t\t\ttimea=java.lang.System.currentTimeMillis();\r\n\t\t\t\ttime1=!time1;\r\n\t\t\t}else if(!time2) {\r\n\t\t\t\ttimeb=java.lang.System.currentTimeMillis();\r\n\t\t\t\t\ttime2=!time2;\r\n\t\t\t}else {\r\n\t\t\t\tdouble t=timeb-timea;\r\n\t\t\t\tif(t<3000) {\r\n\t\t\t\t\tsetScore(20);\r\n\t\t\t\t}\r\n\t\t\t\ttime1=false;\r\n\t\t\t\ttime2=false;\r\n\t\t\t\ttimea=0;\r\n\t\t\t\ttimeb=0;\r\n\t\t\t\t\r\n\t\t\t}//if time between consecutive hit is less than 3 seconds ,then bonus score\r\n\t\t\tsetScore(10);\r\n\t\t\tPlayer.coordinatesHit.add(coordx + \",\" + coordy);\r\n\t\t\tsetReply(\"It's a Hit!!!!!\");\r\n\r\n\t\t} else if (Player.userGrid[x][y] == 0) {\r\n\t\t\tPlayer.userGrid[x][y] = 3;\r\n\t\t\tsetScore(-1);\r\n\t\t\tsetReply(\"It's a miss!!!!!\");\r\n\t\t} else if (Player.userGrid[x][y] == 2 || Player.userGrid[x][y] == 3) {\r\n\t\t\tsetReply(\"The location has been hit earlier\");\r\n\t\t\t //throw new LocationHitException(\"The location has been hit earlier\");\r\n\t\t}\r\n\t}", "public GameObject spawnBigBeamer(LogicEngine in_logicEngine) {\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bigbeamer.png\",((float)LogicEngine.SCREEN_WIDTH/2),LogicEngine.SCREEN_HEIGHT+64,0);\r\n\t\tship.i_animationFrameSizeHeight = 115;\r\n\t\tship.i_animationFrameSizeWidth = 115;\r\n\t\t\r\n\t\t\r\n\t\tship.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-1f)));\r\n\t\t\r\n\t\r\n\t\tship.v.setMaxForce(2.5f);\r\n\t\tship.v.setMaxVel(2.5f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tint i_shootEvery = 80;\r\n\t\t\r\n\t\tBeamShot b = new BeamShot(i_shootEvery);\r\n\t\t\r\n\t\tb.b_flare=false;\r\n\t\tb.f_offsetX=-40;\r\n\t\tb.f_offsetY=-30;\r\n\t\tb.i_delay = 40;\r\n\t\tb.i_beamWidth = 15;\r\n\t\t\r\n\t\tBeamShot b2 = new BeamShot(i_shootEvery);\r\n\t\tb2.b_flare=false;\r\n\t\tb2.f_offsetX=40;\r\n\t\tb2.f_offsetY=-30;\r\n\t\tb2.i_delay = 40+(i_shootEvery/2);\r\n\t\tb2.i_beamWidth = 15;\r\n\t\tb.nextBeam = b2;\r\n\t\t\r\n\t\tship.shootEverySteps=1;\r\n\t\tship.shotHandler = b;\r\n\t\t\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 100, 50f);\r\n\t\t\r\n\t\tif(!Difficulty.isHard())\r\n\t\t\tc.f_numberOfHitpoints = 200;\r\n\t\tif(!Difficulty.isMedium())\r\n\t\t\tc.f_numberOfHitpoints = 160;\r\n\t\t\r\n\t\tc.setExplosion(Utils.getBossExplosion(ship));\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t}", "public Place(int x, int y){\n this.x=x;\n this.y=y;\n isFull=false;\n }", "public MobSpawner(Vector2D position, Game game)\n {\n super(position, new Vector2D(0,0), RADIUS);\n ships = new ArrayList<>();\n double maximumAngle = Math.toRadians(360/ENEMIES_CAN_SPAWN);\n for (double i = 0; i < Math.toRadians(360); i+= maximumAngle)\n {\n double randomAngle = Math.random() * maximumAngle;\n Vector2D newPos = Vector2D.polar(i + randomAngle, SPAWN_RADIUS).add(position);\n ships.add(new EnemyShip(new HlAiController(game, this), newPos));\n }\n }", "private void spawnBigEnemy(IEnemyService spawner, World world, GameData gameData) {\r\n if (spawner != null) {\r\n spawner.createBigEnemy(world, gameData, new Position(randomIntRange(1600, 3200), gameData.getGroundHeight()));\r\n spawner.createBigEnemy(world, gameData, new Position(randomIntRange(-600, -2000), gameData.getGroundHeight()));\r\n }\r\n }", "public Player(Point2D position, RvsB_World map) {\n\t\tsuper(position);\n\t\tsetHp(stats.getDEFAULT_MAX_HP());\n\t\tsetMaxHp(stats.getDEFAULT_MAX_HP());\n\t\tsetMap(map);\n\t\tsetPhysicalShape(new PhysicalRectangle((int) getPosition().x(), (int) getPosition().y(), stats.getWidth(),\n\t\t\t\tstats.getHeight()));\n\t\tsetLookingAt(Side.RIGHT);\n\t\tsetPush(new Point2D(0, 0));\n\t\tsetJump(100, 0.33);\n\n\t\tfor (int i = 0; i< INFECTION_STATE.length; i++) {\n\t\t\ttoraxs[i] = new RotationRectangle((int) getPosition().x(), (int) getPosition().y(),\n\t\t\t\t\tstats.getWidth(), stats.getHeight());\n\t\t\ttoraxs[i].setTexturePath(INFECTION_STATE[i]);\n//\t\t\tgetTorax().setPaint(Color.BLUE);\n//\t\t\tgetGraphicShapes().add(toraxs[i]);\n\t\t}\n\t\tsetTorax(toraxs[0]);\n\t\t// RotationRectangle legs = new RotationRectangle((int)\n\t\t// getPosition().x(), (int) getPosition().y(),\n\t\t// stats.getWidth(), stats.getHeight());\n\t\tfor (String path : LEG_SPRITES) {\n\t\t\tRotationRectangle legs = new RotationRectangle((int) getPosition().x(), (int) getPosition().y(),\n\t\t\t\t\tstats.getWidth(), stats.getHeight());\n\t\t\taddLegs(legs);\n\t\t\tlegs.setTexturePath(path);\n\t\t\tgetGraphicShapes().add(legs);\n\t\t}\n\t\t// addLegs(legs);\n\t\t// getGraphicShapes().add(legs);\n\t\t// getLegs().setPaint(Color.RED);\n\t\t// getGraphicShapes().get(stats.getBODY()).setPaint(Color.BLUE);\n\t\t// getGraphicShapes().add(null);\n\n\t\tsetScore(0);\n\t\t// setWeapon(new RocketLauncher(this));\n\t\tsetWeapon(new Knife(this));\n\t\tsetSpeed(new Point2D(0, 0));\n\t\tsetKillTracer(new Tracer(new Line_trace(getPosition(), getPosition().add(getSpeed()), this)));\n\n\t}", "public void updateOptimalCollisionArea();", "public Ponto(int x, int y){\n this.x = x;\n this.y = y;\n }", "public void PlaceRandomBoard(){\r\n\r\n\t\tString whichShip;\r\n\t\tString coordinate;\r\n\t\t\r\n\t\t\t// Display the random board and the random board menu \r\n\t\t// DISPLAY BOARDS!!!!!\r\n\t\tint whichInput=0;\r\n\t\tShip temp = new Ship();\r\n\t\tRandom generator = new Random();\r\n\t\tint randomIndex = generator.nextInt();\r\n\t\twhile (!this.myBoard.carrier.placed || !this.myBoard.battleship.placed\r\n\t\t\t\t|| !this.myBoard.cruiser.placed || !this.myBoard.submarine.placed\r\n\t\t\t\t|| !this.myBoard.patrolboat.placed) {\r\n\r\n\t\t\twhichInput++;\r\n\r\n\t\t\twhichShip = String.valueOf(whichInput);\r\n\t\t\t\r\n\t\t\tint direction=0;\r\n\r\n\t\t\tboolean placed = false;\r\n\t\t\twhile (!placed) {\r\n\t\t\t\trandomIndex = generator.nextInt(10);\r\n\t\t\t\tcoordinate = this.indexToLetter(randomIndex);\r\n\t\t\t\tcoordinate += String.valueOf(generator.nextInt(10)+1);\r\n\t\t\t\tdirection = generator.nextInt(4) + 1;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tswitch (Integer.parseInt(whichShip)) {\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\ttemp = new Carrier();\r\n\t\t\t\t\ttemp.name=\"Carrier\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\ttemp = new Battleship();\r\n\t\t\t\t\ttemp.name=\"Battleship\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\ttemp = new Cruiser();\r\n\t\t\t\t\ttemp.name=\"Cruiser\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\ttemp = new Submarine();\r\n\t\t\t\t\ttemp.name=\"Submarine\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\ttemp = new PatrolBoat();\r\n\t\t\t\t\ttemp.name=\"Patrol Boat\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} \r\n\t\t\t\t\r\n\t\t\t\tplaced = this.validateShipPlacement(temp, coordinate, direction);\r\n\r\n\t\t\t\tif (placed) {\r\n\t//\t\t\t\tSystem.out.println(\"Success\");\r\n\t\t\t\t\tthis.placeShip(temp, coordinate, direction);\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t//\t\t\t\tdisplay.scroll(\"Invalid coordinate, please enter another\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public Cow(int _pos_x , int _pos_y)\n {\n pos_x = _pos_x;\n pos_y = _pos_y;\n availableProduct = false;\n hunger_countdown = 5;\n allowed_tiles = \"Grassland\";\n }", "public void spawnRobots() {\n\t\tString robotName\t= \"\";\n\t\tPlayer newPlayer\t= null;\n\t\tint numberOfRobots \t= 0;\n\t\tint robotsPerPlayer = server.getRobotsPerPlayer();\n\t\tint numberOfPlayers = server.getPlayerCount();\n\t\tint robotsPerLevel\t= server.getRobotsPerLevel();\n\t\t\n\t\t// calculate how many robots that should be spawned\n\t\trobotsPerPlayer = robotsPerPlayer *\n\t\t\t\t\t\t (robotsPerLevel * \n\t\t\t\t\t\t currentLevel);\n\t\t\n\t\tnumberOfRobots \t= robotsPerPlayer *\n\t\t\t\t\t\t numberOfPlayers;\n\t\t\n\t\tfor(int i = 0; i < numberOfRobots; i++) {\n\t\t\trobotName \t\t\t= \"Robot\" + (i+1);\n\t\t\tnewPlayer = initPlayerToGameplane(robotName, \n\t\t\t\t\t\t\t\t \t\t\t PlayerType.Robot, \n\t\t\t\t\t\t\t\t \t\t\t 0, 0);\n\t\t\t\n\t\t\tHandleCommunication.broadcastToClient(null, \n\t\t\t\t\t\t\t\t\t\t\t\t server.getConnectedClientList(), \n\t\t\t\t\t\t\t\t\t\t\t\t SendSetting.AddPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t newPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t null);\n\t\t}\n\t}", "@Test\n void should_second_player_win_match_when_he_won_tie_break() {\n List<Integer> setPointOrderTab = Arrays.asList(1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 2); // 6-6 and 1-3 for secondPlayer\n\n //WHEN\n game.computePoint(setPointOrderTab, true);\n\n //THEN\n assertEquals(GameStatus.FINISHED, game.getGameStatus());\n assertTrue(secondPlayer.isWinner());\n }", "private void obsluga_bonusu()\n {\n if(bonusy_poziomu>0)\n {\n boolean numer= los.nextBoolean();\n if(numer){\n bon.add(new Bonus(w.getPolozenie_x(),w.getPolozenie_y(),getWidth(),getHeight()));\n bonusy_poziomu--;\n }\n }\n }", "public Point()\n {\n x = -100 + (int) (Math.random() * ((100 - (-100)) + 1)); \n y = -100 + (int) (Math.random() * ((100 - (-100)) + 1));\n //x = (int) (Math.random()); \n //y =(int) (Math.random());\n pointArr[0] = 1;\n pointArr[1] = x;\n pointArr[2] = y;\n //If the point is on the line, is it accepted? I counted it as accepted for now\n if(y >= 3*x){\n desiredOut = 1;\n }\n else\n {\n desiredOut = 0;\n }\n }", "public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }", "public void removeObstacle(Coord obstacleCoord);", "public void addPointForTeamB(View view) {\n teamB_score = teamB_score + 1;\n if (ADVANTAGE == 1) {\n advantageMode(teamA_score, teamB_score);\n } else\n checkScore(teamA_score, teamB_score);\n }", "public void placeMandatoryObjects()\r\n {\r\n Random rng = new Random();\r\n //Adds an endgame chest somewhere (NOT in spawn)\r\n Room tempRoom = getRoom(rng.nextInt(dungeonWidth - 1) +1, rng.nextInt(dungeonHeight - 1) +1);\r\n tempRoom.addObject(new RoomObject(\"Endgame Chest\", \"overflowing with coolness!\"));\r\n if (tempRoom.getMonster() != null)\r\n {\r\n tempRoom.removeMonster();\r\n }\r\n tempRoom.addMonster(new Monster(\"Pelo Den Stygge\", \"FINAL BOSS\", 220, 220, 12));\r\n //Adds a merchant to the spawn room\r\n getRoom(0,0).addObject(new RoomObject(\"Merchant\", \"like a nice fella with a lot of goods (type \\\"wares\\\" to see his goods)\"));\r\n }", "public void placeAtRandomSpot(ArrayList<GameObject> obstacles) {\n // Increase size of all obstacles so that cheese doesn't go too close to any obstacle\n for(GameObject obstacle : obstacles) {\n obstacle.setX(obstacle.getX() - Game.CHEESE_OBS_DIST);\n obstacle.setY(obstacle.getY() - Game.CHEESE_OBS_DIST);\n\n obstacle.setWidth(obstacle.getWidth() + (2*Game.CHEESE_OBS_DIST));\n obstacle.setHeight(obstacle.getHeight() + (2*Game.CHEESE_OBS_DIST));\n }\n\n double xPos, yPos;\n do {\n xPos = Game.SAFE_SPACE_WIDTH + (rand.nextInt(Game.BASE_WIDTH - Game.PLAYER_HEIGHT - (2*Game.SAFE_SPACE_WIDTH)));\n yPos = (rand.nextInt(Game.BASE_HEIGHT - Game.PLAYER_HEIGHT));\n placeAt(xPos, yPos);\n }\n while(collidesWithAny(obstacles));\n }", "public abstract void turnToLiving(int x, int y);", "public ObstacleSprite(int left, int top, int right, int bottom, OBSTACLE_SPEED obstacleSpeed, Game game)\n {\n super(left, top, right, bottom, game);\n speed = (int) Math.round(DEFAULT_OBSTACLE_SPEED * (obstacleSpeed.value / 2.0));\n wasTouched = false;\n\n if(obstacleSpriteImage == null)\n {\n Bitmap settingsBitmap = BitmapFactory.decodeResource(resources, R.drawable.missile);\n obstacleSpriteImage = new AndroidImage(settingsBitmap, AndroidGraphics.ImageFormat.ARGB4444);\n }\n\n if(obstacleExplosionImage == null)\n {\n Bitmap settingsBitmap = BitmapFactory.decodeResource(resources, R.drawable.explosion);\n obstacleExplosionImage = new AndroidImage(settingsBitmap, AndroidGraphics.ImageFormat.ARGB4444);\n }\n }", "private void transformPoints() {\r\n\r\n\t\t// angle between x-axis and the line between start and goal\r\n//\t\tthis.angle = inverse_tan (slope)\r\n\t\tthis.angle = (int) Math.toDegrees(Math.atan2(goal.getY()-robot.getY(), goal.getX()-robot.getX()));\r\n\r\n\t\t// deviation of start point's x-axis from (0,0)\r\n\t\tthis.deviation = this.robot;\r\n\r\n\t\tthis.robot = new Robot(GA_PathPlanning.Transform(robot, -deviation.x, -deviation.y));\r\n\t\tthis.robot = new Robot(Rotate(robot, -angle));\r\n\t\t \r\n\t\tthis.goal = GA_PathPlanning.Transform(goal, -deviation.x, -deviation.y);\r\n\t\tthis.goal = GA_PathPlanning.Rotate(goal, -angle);\r\n\t\t\r\n\t\tfor(int i=0;i<obstacles.length;i++)\r\n\t\t{\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Transform(obstacles[i], -deviation.x, -deviation.y));\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Rotate(obstacles[i], -angle));\r\n\t\t}\r\n\t\t// make start point as (0,0)\r\n\t\t// transform xy-axis to axis of the straight line between start and goal\r\n\t\t\r\n\t\t\r\n\t}", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "private void createNodes(Obstacle obs){\n\t\n\tfor(int i = 0; i < 10; i++){\n\t double angle = Math.PI * i / 5;\n\t double clearance = (CLEARANCE + 0.3F) / 2 + obs.getRadius();\n\t double x_pos = (obs.getX() + clearance * Math.cos(angle));\n\t if(x_pos > Position.ARENA_WIDTH() / -2 + Position.WALL_CLEARANCE() && x_pos < Position.ARENA_WIDTH() / 2 - Position.WALL_CLEARANCE())\n\t\taddNode(getNodes(), new AStarNode(x_pos, (obs.getY() + clearance * Math.sin(angle))));\n\t}\n }", "private final void generatePath(final Playfield playfield) {\n //neo will start at (0,0)\n // coordinates for the goal are random in range of 4-14\n int randomX = 4 + 10 * (int) Math.random();\n int randomY = 4 + 10 * (int) Math.random();\n this.goal = new Position(randomX, randomY);\n // goal =(randomX,randomY);\n // place pills\n playfield.addEntity(new Position(randomX, randomY / 2), new Pill(Color.RED));\n playfield.addEntity(new Position(0, randomY / 2), new Pill(Color.RED));\n playfield.addEntity(new Position(randomX / 2, randomY / 2), new Pill(Color.RED));\n playfield.addEntity(new Position(0, randomY / 2 + 1), new Pill(Color.RED));\n playfield.addEntity(new Position(randomX / 2, 0), new Pill(Color.RED));\n }", "public TestEnemy(Vector2 spawnPoint) {\n super(spawnPoint);\n this.health = MAX_HEALTH;\n this.speed = MAX_SPEED;\n this.damage = DAMAGE;\n this.moneyOnKill = MONEY_ON_KILL;\n this.bounds = new Circle(spawnPoint, RADIUS);\n this.ai = new RunnerAi(this);\n }", "@Test\n public void test2IsCreatable()throws Exception{\n\n Position pos = new Position(0,0);\n generateLevel.landOn(pos,BlockType.PATH.toString());\n NormalDefender nd = new NormalDefender(generateLevel.getZoneList().\n get(0).getPos(),generateLevel.getAttackersList());\n assertTrue(generateLevel.isCreatable(nd));\n }", "private void createPlayer() {\n Entity entity = engine.createEntity();\n B2dBodyComponent b2dbody = engine.createComponent(B2dBodyComponent.class);\n TransformComponent position = engine.createComponent(TransformComponent.class);\n TextureComponent texture = engine.createComponent(TextureComponent.class);\n PlayerComponent player = engine.createComponent(PlayerComponent.class);\n CollisionComponent colComp = engine.createComponent(CollisionComponent.class);\n TypeComponent type = engine.createComponent(TypeComponent.class);\n StateComponent stateCom = engine.createComponent(StateComponent.class);\n\n // create the data for the components and add them to the components\n b2dbody.body = bodyFactory.makeCirclePolyBody(10,10,1, BodyFactory.STONE, BodyType.DynamicBody,true);\n // set object position (x,y,z) z used to define draw order 0 first drawn\n position.position.set(10,10,0);\n texture.region = atlas.findRegion(\"player\");\n type.type = TypeComponent.PLAYER;\n stateCom.set(StateComponent.STATE_NORMAL);\n b2dbody.body.setUserData(entity);\n\n // add the components to the entity\n entity.add(b2dbody);\n entity.add(position);\n entity.add(texture);\n entity.add(player);\n entity.add(colComp);\n entity.add(type);\n entity.add(stateCom);\n\n // add the entity to the engine\n engine.addEntity(entity);\n }", "public void spawnWanderingSeeker(LogicEngine in_logicEngine)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/triangle.png\",(float)LogicEngine.SCREEN_WIDTH*Math.random(),LogicEngine.SCREEN_HEIGHT-10,0);\r\n\t\t\t\t\r\n\t\t//set animation frame\r\n\t\tship.i_animationFrame=1;\r\n\t\tship.i_animationFrameRow=0;\r\n\t\tship.i_animationFrameSizeWidth=16;\r\n\t\tship.i_animationFrameSizeHeight=16;\r\n\t\t\r\n\t\t//wander \t\r\n\t\tCustomBehaviourStep cb = new CustomBehaviourStep(new Wander(-2.5,2.5,20,0.1));\r\n\t\tship.stepHandlers.add( cb);\r\n\t\t\r\n\t\t//chase player if on medium or hard\r\n\t\tif(Difficulty.difficulty == DIFFICULTY.MEDIUM || \r\n\t\t\t\tDifficulty.difficulty == DIFFICULTY.HARD)\r\n\t\t{\t\r\n\t\t\tSeekNearestPlayerStep sps = new SeekNearestPlayerStep(100);\r\n\t\t\tship.stepHandlers.add(sps);\r\n\t\t}\r\n\t\r\n\t\tship.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-2)));\r\n\t\tship.collisionHandler = new DestroyIfEnemyCollision(ship, 10, true);\r\n\t\tship.v.setMaxForce(2);\r\n\t\tship.v.setMaxVel(2);\r\n\t\t\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t}", "private void spawnStuff(PlayScreen screen, float delta) {\n if (stageId!=3 && stageId!=5) {\n isCombatEnabled = true;\n int where;\n boolean spawnRight = true;\n float speed;\n\n\n //Alien Spawn\n if (System.currentTimeMillis() - lastASpawn >= SpawnATimer + extraTimer) {\n speed = (float)(Utils.doRandom(250,400));\n lastASpawn = System.currentTimeMillis();\n int count = 3;\n if (stageId==4) count = 1;\n for (int i = 0; i < count; i++) {\n if (stageId==4){\n speed = (float) (speed*0.75);\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - Alien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - Alien.width, y, Alien.width, Alien.height)))\n hits = true;\n }\n }\n screen.entities.add(new Alien(new Vector2(x, y), 1, screen.alienImages, speed, screen.player));\n }else{\n int x = 0 - Alien.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - Alien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + Alien.width*2 , y, Alien.width, Alien.height)))\n hits = true;\n }\n }\n screen.entities.add(new Alien(new Vector2(x, y), 1, screen.alienImages, speed, screen.player,false));\n }\n }\n }\n //AcidAlien Spawn\n if (System.currentTimeMillis() - lastBSpawn >= SpawnBTimer + extraTimer) {\n speed = 200;\n lastBSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - AcidAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - AcidAlien.width, y, AcidAlien.width, AcidAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new AcidAlien(new Vector2(x, y), screen.alien2Images, screen.acidImage, speed, screen.player));\n }else{\n int x = 0 - AcidAlien.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - AcidAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + AcidAlien.width*2, y, AcidAlien.width, AcidAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new AcidAlien(new Vector2(x, y), screen.alien2Images, screen.acidImage, speed, screen.player,false));\n }\n }\n //FastAlien Spawn\n if (System.currentTimeMillis() - lastCSpawn >= SpawnCTimer + extraTimer) {\n speed= Utils.doRandom(250,400);\n lastCSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - FastAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - FastAlien.width, y, FastAlien.width, FastAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new FastAlien(new Vector2(x, y), 1, screen.alien3Images,speed, screen.player));\n }else{\n int x = 0 - FastAlien.width;\n int y =0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - FastAlien.height);\n for (int h=0;h<collisions.size();h++){\n if (Collision.checkWalls(collisions.get(h),new Rectangle(x-FastAlien.width*2,y,FastAlien.width,FastAlien.height))) hits = true;\n }\n }\n screen.entities.add(new FastAlien(new Vector2(x, y), 1, screen.alien3Images, speed,screen.player,false));\n }\n\n }\n\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule ) {\n speed = 500;\n int x = 0;\n int y = 0;\n lastCapsuleSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n x = (int) screen.gameViewport.getWorldWidth();\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }else{\n x = 0 - BlueBulletItem.width;\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width *2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }\n\n int capsule = screen.random.nextInt(2);\n\n if (capsule == 0) {\n if (spawnRight) {\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages));\n }else{\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages,false));\n }\n } else if (capsule == 1) {\n if (spawnRight) {\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages));\n }else{\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages,false));\n }\n }\n\n }\n if (System.currentTimeMillis() - lastHealthSpawn >= SpawnTimerHealth) {\n speed = 500;\n lastHealthSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages));\n }else{\n int x = 0 - BlueBulletItem.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width*2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages,false));\n }\n }\n /*if (System.currentTimeMillis() - lastBombSpawn >= SpawnTimerBomb) {\n lastBombSpawn = System.currentTimeMillis();\n int x = (int) screen.gameViewport.getWorldWidth();\n int y =0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - PurpleCapsuleItem.height);\n for (int h=0;h<collisions.size();h++){\n if (Collision.checkWalls(collisions.get(h),new Rectangle(x,y,PurpleCapsuleItem.width,PurpleCapsuleItem.height))) hits = true;\n }\n }\n screen.items.add(new PurpleCapsuleItem(x, y, 500, screen.itemPurpleImages));\n }*/\n }else{\n if (stageId==3) {\n //SPACE STAGE\n ///SPAWN ENEMY SHIP:\n //TODO\n if (PlayScreen.entities.size() == 1) {\n isCombatEnabled = false;\n //no enemy spawned, so spawn:\n if (spawnIterator >= killCount) {\n //TODO END STAGE\n } else {\n System.out.println(\"SPAWNS SHIP\");\n spawnIterator++;\n screen.entities.add(new EnemyShipOne(new Vector2(0, 0), 100, screen.enemyShipOne, true, screen.player));\n\n }\n }\n //Items:\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule) {\n lastCapsuleSpawn = System.currentTimeMillis();\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new BlackBulletItem(x, y, 1000, screen.itemBlackImages));\n\n\n }\n }else{\n if (stageId == 5){\n isCombatEnabled = true;\n float speed;\n boolean spawnRight=true;\n int where=0;\n //TODO FINAL STAGE\n if (!isBossSpawned){\n //TODO\n screen.entities.add(new Boss(new Vector2(PlayScreen.gameViewport.getWorldWidth(),PlayScreen.gameViewport.getWorldHeight()/2 - Boss.height/2),screen.player));\n isBossSpawned=true;\n }\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule ) {\n speed = 500;\n int x = 0;\n int y = 0;\n lastCapsuleSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n x = (int) screen.gameViewport.getWorldWidth();\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }else{\n x = 0 - BlueBulletItem.width;\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width *2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }\n\n int capsule = screen.random.nextInt(2);\n\n if (capsule == 0) {\n if (spawnRight) {\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages));\n }else{\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages,false));\n }\n } else if (capsule == 1) {\n if (spawnRight) {\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages));\n }else{\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages,false));\n }\n }\n\n }\n if (System.currentTimeMillis() - lastHealthSpawn >= SpawnTimerHealth) {\n speed = 500;\n lastHealthSpawn = System.currentTimeMillis();\n if (stageId == 4) {\n speed = speed / 2;\n where = Utils.doRandom(0, 1);\n if (where < 50) {\n spawnRight = true;\n } else {\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages));\n } else {\n int x = 0 - BlueBulletItem.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width * 2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages, false));\n }\n }\n //TODO\n }\n }\n }\n\n //run .update(delta) on all objects\n for (int i=0; i<screen.entities.size();i++){\n screen.entities.get(i).update(delta);\n }\n\n for (int i=0; i<screen.items.size();i++){\n screen.items.get(i).update(delta);\n }\n\n //labels set:\n screen.labelHealth.setText(\"Health: \" + screen.player.health + \"/\" + screen.player.maxHealth);\n if (scoreBased) {\n screen.labelInfo.setText(\"Score: \" + screen.player.score + \"/\" + scoreGoal);\n }else{\n if (killCount>0){\n screen.labelInfo.setText(\"Score: \" + screen.player.score + \"/\" + killCount);\n }else{\n if (boss){\n screen.labelInfo.setText(\"Boss: \"+screen.player.score + \"/\" + Boss.bossHealth);\n }else{\n screen.labelInfo.setText(\"\");\n }\n\n }\n }\n if (this.stageId == 999) {\n screen.labelInfo.setText(\"Score: \" + screen.player.score);\n }\n\n\n }", "@Override\n\tpublic void act(float delta) {\n\t\tsuper.act(delta);\n\t\t\n\t\tif(PWM.instance().pointIsInObstacle(this.getX(), this.getY())){\n\t\t\tif(!PWM.instance().pointIsInObstacle(this.getX(), lastPos.y)){\n\t\t\t\tthis.setPosition(this.getX(), lastPos.y);\n\t\t\t}else if(!PWM.instance().pointIsInObstacle(lastPos.x, this.getY())){\n\t\t\t\tthis.setPosition(lastPos.x, this.getY());\n\t\t\t}else{\n\t\t\t\tthis.setPosition(lastPos.x, lastPos.y);\n\t\t\t}\n\t\t\t\n\t\t\tthis.lastPos.x = this.getX();\n\t\t\tthis.lastPos.y = this.getY();\n\t\t\t\n\t\t}\t\t\t\t\n\t\t\n\t\tmainCameraFollowHero();\n\t\t\n\t\t\n\t}", "private void addWaypoint(int a_x, int a_y)\n {\n if(!isObstacle(m_grid[a_x][a_y]) && m_waypoints.size() < m_maxNumWaypoints)\n {\n m_grid[a_x][a_y] = Map.WAYPOINT;\n m_waypoints.add(new Vector2d(a_x,a_y));\n frame.updateNumWaypoints(m_waypoints.size());\n }\n }", "@Override\r\n public Food createFood(List<Coordinate> obstacles) {\r\n Random random = new Random();\r\n double num = random.nextDouble();\r\n\r\n if (num <= MushroomPowerUp.rarity) {\r\n return new MushroomPowerUp(randomCoordinates(obstacles));\r\n }\r\n if (num <= DoubleScorePowerUp.rarity + MushroomPowerUp.rarity) {\r\n return new DoubleScorePowerUp(randomCoordinates(obstacles));\r\n }\r\n return new AppleFactory().createFood();\r\n }", "protected void makeAmove(Board b, Player p){\r\n\t\tthis.setMove(0);\t\t\r\n\t\tif (this.winnable(b) != 0)\r\n\t\t\tthis.setMove(this.winnable(b));\r\n\t\telse if (p.winnable(b) != 0)\r\n\t\t\tthis.setMove(p.winnable(b));\r\n\t\telse if (b.getTile(5) == ' ')\r\n\t\t\tthis.setMove(5);\r\n\t\telse{\r\n\t\t\tRandom tile = new Random();\r\n\t\t\tdo{\r\n\t\t\t\tthis.move = (tile.nextInt(9) + 1);\r\n\t\t\t\t// int 0-8 inclusive and adding 1 makes it 1-9 incl\r\n\t\t\t}while ((b.getTile(this.getMove())=='O') || \r\n\t\t\t\t\t(b.getTile(this.getMove())=='X'));\r\n\t\t\t// just checks to see if it's is a valid move\r\n\t\t\t// empty and within the bounds of 1-9\r\n\t\t}\r\n\t\tb.setTile(this.getMove(), this.getSymbol());\r\n\t\tSystem.out.println(\"Player \"+this.ID+\" (computer) chooses position \"+this.getMove());\r\n\t}", "private void setupEnemySpawnPoints() {\n float ring = ProtectConstants.VIEWPORT_WIDTH / 2 + (ProtectConstants.GAME_OBJECT_SIZE * 2);\n float angle = 18; // start angle\n for(int i = 1; i < ProtectConstants.COLUMNS + 1; i++){\n enemySpawnPoints.add(divideCircle(ring, angle));\n angle += 360 / ProtectConstants.COLUMNS;\n }\n enemySpawnPoints.shuffle();\n }", "public Bonus(Vector position, double angularSpeed, double radius,\n long lifePoints)\n {\n this.position = position;\n this.angularSpeed = angularSpeed;\n this.radius = radius;\n this.appearence = new BonusParticles(this.radius, Color.green);\n this.collider = new Collider(0.021, this.position, Tag.BONUS, this);\n GeneticRobots.addCollider(this.collider);\n this.currentAngle = 0;\n this.lifePoints = lifePoints;\n }", "public void act() \n {\n World myWorld = getWorld();\n \n Mapa mapa = (Mapa)myWorld;\n \n EnergiaMedicZ vidaMZ = mapa.getEnergiaMedicZ();\n \n EnergiaGuerriZ vidaGZ = mapa.getEnergiaGuerriZ();\n \n EnergiaConstrucZ vidaCZ = mapa.getEnergiaConstrucZ();\n \n GasZerg gasZ = mapa.getGasZerg();\n \n CristalZerg cristalZ = mapa.getCristalZerg();\n \n BunkerZerg bunkerZ = mapa.getBunkerZerg();\n \n Mina1 mina1 = mapa.getMina1();\n Mina2 mina2 = mapa.getMina2();\n Mina3 mina3 = mapa.getMina3();\n \n \n //movimiento del personaje\n if(Greenfoot.isKeyDown(\"b\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }\n }\n else if(Greenfoot.isKeyDown(\"z\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }}\n //encuentro con objeto\n \n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"s\"))\n {\n setLocation(getX(),getY()-1);\n }\n \n \n //probabilida de daño al enemigo\n \n if(isTouching(MedicTerran.class) && Greenfoot.getRandomNumber(100)==3)\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n if(isTouching(ConstructorTerran.class) && (Greenfoot.getRandomNumber(100)==3 ||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n if(isTouching(GuerreroTerran.class) && (Greenfoot.getRandomNumber(100)==3||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1||Greenfoot.getRandomNumber(100)==4||Greenfoot.getRandomNumber(100)==5))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n \n \n //encuentro con Bunker\n \n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"s\"))\n \n {\n setLocation(getX(),getY()-1);\n }\n \n //AccionesUnicas\n \n if(isTouching(YacimientoDeGas.class) && gasZ.gasZ < 100)\n {\n \n gasZ.addGasZ();\n \n }\n \n \n if(isTouching(Mina1.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina1.removemina1();\n \n }\n \n if(isTouching(Mina2.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina2.removemina2();\n \n }\n \n if(isTouching(Mina3.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina3.removemina3();\n \n }\n \n \n if(isTouching(DepositoZ.class) && gasZ.gasZ > 4 && bunkerZ.bunkerZ() < 400){\n \n gasZ.removeGasZ();\n bunkerZ.addbunkerZ();\n }\n \n if(isTouching(DepositoZ.class) && cristalZ.cristalZ() > 0 && bunkerZ.bunkerZ() < 400 ){\n \n cristalZ.removeCristalZ();\n bunkerZ.addbunkerZ();\n }\n \n //determinar si la vida llega a 0\n \n if( vidaCZ.vidaCZ <= 0 )\n {\n \n getWorld().removeObjects(getWorld().getObjects(EnergiaConstrucZ.class)); \n \n getWorld().removeObjects(getWorld().getObjects(ConstructorZerg.class));\n \n EnergiaZerg energiaZ = mapa.getEnergiaZerg(); \n \n energiaZ.removenergiaCZ();\n }\n \n if( mina1.mina1() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina1.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal1.class));\n \n }\n \n if( mina2.mina2() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina2.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal2.class));\n \n }\n \n if( mina3.mina3() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina3.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal3.class));\n \n }\n \n \n}", "public void spawnEntity(AEntityB_Existing entity){\r\n\t\tBuilderEntityExisting builder = new BuilderEntityExisting(entity.world.world);\r\n\t\tbuilder.loadedFromSavedNBT = true;\r\n\t\tbuilder.setPositionAndRotation(entity.position.x, entity.position.y, entity.position.z, (float) -entity.angles.y, (float) entity.angles.x);\r\n\t\tbuilder.entity = entity;\r\n\t\tworld.spawnEntity(builder);\r\n }", "public ObstacleSprite(int topPixelStart, OBSTACLE_SPEED obstacleSpeed, Game game)\n {\n this(((topPixelStart + (Configuration.GAME_WIDTH - Configuration.FIELD_WIDTH) / 2) - DEFAULT_OBSTACLE_WIDTH / 2),\n -DEFAULT_OBSTACLE_HEIGHT + 1, ((topPixelStart + (Configuration.GAME_WIDTH - Configuration.FIELD_WIDTH) / 2) + DEFAULT_OBSTACLE_WIDTH),\n 1, obstacleSpeed, game);\n }" ]
[ "0.7345858", "0.69188666", "0.59045786", "0.58690953", "0.58404905", "0.5830659", "0.5821822", "0.5807215", "0.5791738", "0.57635087", "0.57289886", "0.572638", "0.571498", "0.5695141", "0.56920034", "0.56872815", "0.56699365", "0.56600213", "0.5659227", "0.5646122", "0.5621604", "0.5601549", "0.5596443", "0.55957955", "0.558972", "0.5587133", "0.556544", "0.55513936", "0.55501366", "0.55445576", "0.55369043", "0.55282927", "0.55208963", "0.5519145", "0.5509307", "0.5496329", "0.5494766", "0.5484021", "0.5481887", "0.54802126", "0.5472146", "0.5469124", "0.5468268", "0.5460962", "0.5460712", "0.5455593", "0.5452142", "0.5449136", "0.5425517", "0.5416862", "0.5395247", "0.5389259", "0.5383577", "0.5379944", "0.5371286", "0.53517157", "0.53508687", "0.5349927", "0.5345132", "0.5339814", "0.5337173", "0.5326309", "0.53203356", "0.5318565", "0.5311036", "0.5310723", "0.5301655", "0.52990174", "0.52951586", "0.5288574", "0.5288444", "0.5281745", "0.5277336", "0.52764", "0.5274144", "0.5272456", "0.527146", "0.52690876", "0.52665466", "0.5254168", "0.5252243", "0.5249071", "0.52469295", "0.52453387", "0.52443373", "0.52442443", "0.52431846", "0.5243127", "0.5242082", "0.524045", "0.52385855", "0.5236663", "0.52347726", "0.52260315", "0.52259517", "0.52222997", "0.52199364", "0.52188927", "0.5217095", "0.5216848" ]
0.6274985
2
Get the stroke width
public float getStrokeWidth() { return strokeWidth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final DoubleProperty strokeWidthProperty() {\n return getStrokeAttributes().widthProperty();\n }", "public float getStrokeWidth() {\n return (float) this.getValue(STROKE_WIDTH_PROPERTY_KEY);\n }", "int getTextStrokeWidth();", "public float getStrokeWidth() { return getStroke()==null? 0 : getStroke().getWidth(); }", "public final native double getStrokeWidth() /*-{\n\t\tif (this.getStrokeWidth() != null) return this.getStrokeWidth();\n\t\telse return 0;\n\t}-*/;", "double width () {\n Text text = new Text(this.getText());\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }", "public float getLineWidth()\r\n\t{\r\n\t\treturn g.getPenWidth();\r\n\t}", "String getWidth();", "String getWidth();", "protected float getLineWidth(Graphics2D g2d) {\n float lineWidth = 1.0f;\n Stroke stroke = g2d.getStroke();\n if (stroke instanceof BasicStroke) {\n BasicStroke bs = (BasicStroke)stroke;\n lineWidth = bs.getLineWidth();\n }\n return lineWidth;\n }", "public int getThickness ()\r\n {\r\n return glyph.getBounds().height;\r\n }", "double width () {\n Text text = new Text(event.name);\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }", "public double getEdgeStrokeDestinationWidth() {\n return (_edgeStrokeDestinationWidth);\n }", "public double getLineWidth(\n )\n {return lineWidth;}", "public double getWidth();", "public double getWidth();", "@Override\n public double getLineWidth() {\n return graphicsEnvironmentImpl.getLineWidth(canvas);\n }", "double getWidth();", "double getWidth();", "public int getLineWidth ( ) {\r\n\t\treturn line_width;\r\n\t}", "Length getWidth();", "public int getLineWidth() {\n return (int) mPaintLine.getStrokeWidth();\n }", "public double getEdgeStrokeSourceWidth() {\n return (_edgeStrokeSourceWidth);\n }", "public abstract float getLineWidth();", "public int getLineWidth() {\r\n return LineWidth;\r\n }", "public double getNodeStrokeDestinationWidth() {\n return (_nodeStrokeDestinationWidth);\n }", "public final float getStrokeWidth() {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getStrokeWidth()\");\n return ((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getStrokeWidth();\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getStrokeWidth()\");\n return ((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getStrokeWidth();\n }\n }", "public String getWidth() {\n return width;\n }", "public int getLength ()\r\n {\r\n return glyph.getBounds().width;\r\n }", "public int getNowLineStrokeWidth() {\n return config.nowLineStrokeWidth;\n }", "public double getNodeStrokeSourceWidth() {\n return (_nodeStrokeSourceWidth);\n }", "private double getWidth() {\n\t\treturn width;\n\t}", "long getWidth();", "public double getWidth() {\n\t\t\treturn width.get();\n\t\t}", "public int grWidth() { return width; }", "public int getWidth () {\r\n\tcheckWidget();\r\n\tint [] args = {OS.Pt_ARG_WIDTH, 0, 0};\r\n\tOS.PtGetResources (handle, args.length / 3, args);\r\n\treturn args [1];\r\n}", "public double getWidth()\r\n {\r\n return width;\r\n }", "void setStrokeWidth(float strokeWidth) {\n/* 180 */ this.mStrokeWidth = strokeWidth;\n/* */ }", "public float getWidth();", "public double getWidth()\n {\n return width;\n }", "public double getWidth() {\r\n return width;\r\n }", "public double getWidth() {\n return width;\n }", "public double getWidth() {\n return width;\n }", "public double getWidth() {\n return width;\n }", "public double getWidth () {\n return width;\n }", "public Number getWidth() {\n\t\treturn getAttribute(WIDTH_TAG);\n\t}", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "public byte getWidth();", "public double getWidth() {\n\t\treturn width;\n\t}", "public double getWidth() {\n\t\treturn width;\n\t}", "public double getWidth() {\n\t\treturn width;\n\t}", "public double getWidth() {\r\n\t\treturn width;\r\n\t}", "public double getWidth() {\r\n\r\n\t\treturn w;\r\n\r\n\t}", "public int getWidth();", "public int getWidth();", "public int getWidth();", "public double getWidth() {\n\treturn width;\n }", "public java.lang.String getWidth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(WIDTH$20);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public SVGLength getWidth() {\n return width;\n }", "public final native double getWidth() /*-{\n return this.getWidth();\n }-*/;", "public double getWidth() {\n return getElement().getWidth();\n }", "protected int measureWidth(int measureSpec) {\n int specMode = MeasureSpec.getMode(measureSpec);\n int specSize = MeasureSpec.getSize(measureSpec);\n int result;\n if (specMode == MeasureSpec.EXACTLY) {\n result = specSize;\n } else {\n result = (int) (2 * radius) + getPaddingLeft() + getPaddingRight() + (int) (2 * strokeWidth);\n if (specMode == MeasureSpec.AT_MOST) {\n result = Math.min(result, specSize);\n }\n }\n return result;\n }", "protected int getOuterStrokeWidth(final ARXNode node, final int width) {\n int result = node.isChecked() ? width / 100 : 1;\n result = node.isChecked() ? result + 1 : result;\n return result >=1 ? result < 1 ? 1 : result : 1;\n }", "public int getGlyphWidth() {\n return glyphWidth;\n }", "public double getWidth() {\n\t\tdouble width = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / 4)));\n\t\treturn width;\n\t}", "public int getWidth() { return width; }", "public int getWidth() { return width; }", "public RecodedReal getLineWidth(){\n return ps == null ? null :ps.getWidthLegend();\n }", "@Override\n public int getWidth() {\n return graphicsEnvironmentImpl.getWidth(canvas);\n }", "int getWidth() {return width;}", "public int getWidth() {\r\n if ( fontMetrics != null && lbl != null ) {\r\n return fontMetrics.stringWidth(lbl) + 12; \r\n } else {\r\n return 10;\r\n }\r\n }", "final public double getWidth()\n\t{\n\t\treturn width;\n\t}", "public void setEdgeStrokeDestinationWidth(double value) {\n _edgeStrokeDestinationWidth = value;\n }", "public int getThickness() {\r\n return Thickness;\r\n }", "@Override\n public double getWidth() {\n return width;\n }", "public double getRectWidth() {\n double baseWidth = Hex.INNER_DIAMETER * hexWidth;\n double offset = Hex.INNER_RADIUS * (hexHeight - 1);\n return baseWidth + offset;\n }", "double getWidth() {\n return width;\n }", "public double getWidth() {\n return this.size * 2.0; \n }", "public int getWidth(){ return widthRadius; }", "public short getWidth() {\n\n\t\treturn getShort(ADACDictionary.X_DIMENSIONS);\n\t}", "public final native void setStrokeWidth(double width) /*-{\n\t\tthis.setStrokeWidth(width);\n\t}-*/;", "public double width() { return _width; }", "public String getwidth()\n\t{\n\t\treturn width.getText();\n\t}", "public int getWidth() {\n return (int) Math.round(width);\n }" ]
[ "0.82400686", "0.79998386", "0.7937927", "0.78024197", "0.7654828", "0.7486763", "0.7441163", "0.7414298", "0.7414298", "0.7362188", "0.72277844", "0.72262335", "0.71776706", "0.7173462", "0.7161058", "0.7161058", "0.7097175", "0.70876837", "0.70876837", "0.7042492", "0.7022169", "0.70215714", "0.6976274", "0.6949056", "0.68898255", "0.6874316", "0.6812662", "0.67742634", "0.67582864", "0.67488456", "0.6748451", "0.6746851", "0.6734624", "0.67293996", "0.6703502", "0.669147", "0.66873264", "0.66808486", "0.6672431", "0.6666422", "0.66546595", "0.6654128", "0.6654128", "0.6654128", "0.66422683", "0.663996", "0.6637452", "0.6637452", "0.6637452", "0.6637452", "0.6637452", "0.6637452", "0.6637452", "0.6637452", "0.6637452", "0.6637452", "0.6637452", "0.6637452", "0.6637452", "0.6637452", "0.6637452", "0.6637452", "0.6637452", "0.6612214", "0.66116226", "0.66116226", "0.66116226", "0.6610568", "0.6597991", "0.65949494", "0.65949494", "0.65949494", "0.65869343", "0.6561216", "0.6558539", "0.6547709", "0.65465504", "0.65364534", "0.65285563", "0.6521521", "0.6516052", "0.6501311", "0.6501311", "0.6500326", "0.65002406", "0.6488603", "0.6481755", "0.64764297", "0.6462039", "0.6454273", "0.64530873", "0.6440953", "0.64353305", "0.64330053", "0.643257", "0.6431443", "0.64224637", "0.6420061", "0.6412059", "0.64052296" ]
0.8235961
1
Set the stroke width
public void setStrokeWidth(Float strokeWidth) { this.strokeWidth = strokeWidth; stroke = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final native void setStrokeWidth(double width) /*-{\n\t\tthis.setStrokeWidth(width);\n\t}-*/;", "void setStrokeWidth(float strokeWidth) {\n/* 180 */ this.mStrokeWidth = strokeWidth;\n/* */ }", "public void setStrokeWidth(float aValue)\n{\n // Set line width\n if(getStroke()==null) setStroke(new RMStroke(RMColor.black, aValue));\n else getStroke().setWidth(aValue);\n}", "public void setStrokeWidth(float strokeWidth) {\n this.setValue(STROKE_WIDTH_PROPERTY_KEY, strokeWidth);\n }", "public void setLineWidth(int width)\n {\n if (width > 0)\n lineWidth = width;\n else \n lineWidth = 1;\n }", "@Override\n public void setLineWidth(double width) {\n graphicsEnvironmentImpl.setLineWidth(canvas, width);\n }", "public void setLineWidth(int width) {\n mPaintLine.setStrokeWidth(width);\n }", "public void setLineWidth(Integer width) {\n style.setBorderWidth(width);\n }", "public void setLineWidth(float width)\r\n\t{\r\n\t\t// not implemented\r\n\t\tg.setPenWidth((int) width);\r\n\t}", "public void setLineWidth(float lineWidth);", "public final DoubleProperty strokeWidthProperty() {\n return getStrokeAttributes().widthProperty();\n }", "public void setEdgeStrokeDestinationWidth(double value) {\n _edgeStrokeDestinationWidth = value;\n }", "private void setBorderWidth(int width) {\n this.borderWidth = width;\n Rectangle r = (Rectangle) this.getChildren().get(0);\n r.setStrokeWidth(width);\n }", "public void setLineWidth ( int width ) {\r\n\t\tline_width = width;\r\n\t}", "public void setWidth(double value) {\n this.width = value;\n }", "public final Pen changeWidth(float width) {\n Color resultColor = this.color;\n LineStyle style = LineStyleUtils.getLineStyle(stroke);\n BasicStroke resultStroke = LineStyleUtils.getStroke(style, width);\n return new Pen(resultStroke, resultColor);\n }", "protected void setLineWidth(int width) {\r\n\t\tif (primaryShape instanceof Shape) {\r\n\t\t\t((Shape) primaryShape).setLineWidth(width);\r\n\t\t}\r\n\t}", "public float getStrokeWidth() {\n\t\treturn strokeWidth;\n\t}", "public void setNormalOvalStrokeWidth(int width) {\n this.mNormalOvalStrokeWidth = width;\n }", "public abstract void setLineWidth(float lineWidth);", "public void setNodeStrokeDestinationWidth(double value) {\n _nodeStrokeDestinationWidth = value;\n }", "public void setEdgeStrokeSourceWidth(double value) {\n _edgeStrokeSourceWidth = value;\n }", "public void setWidth(Integer width) {\n this.width = width;\n control.draw();\n }", "public void setSelectOvalStrokeWidth(int width) {\n this.mSelectOvalStrokeWidth = width;\n }", "public void setWidth(double width) {\n this.width = width;\n }", "public void setStroke(Stroke stroke);", "@Override public Polyline setStrokeWidth(double strokeWidth)\n {\n return (Polyline)super.setStrokeWidth(strokeWidth);\n }", "public float getStrokeWidth() { return getStroke()==null? 0 : getStroke().getWidth(); }", "public void setWidth(double width) {\r\n this.width = width;\r\n }", "public void setWidth(double width) {\n this.width = width;\n }", "public void setWidth(int w){ widthRadius = w; }", "public void setArcwidth(double aw) {\n\t\t\tarcwidth.set(aw);\n\t\t}", "int getTextStrokeWidth();", "public void setStrokeStyle(STYLE style);", "public void setWitdh(int newValue)\n {\n width = newValue;\n }", "public void setWidth(double w)\n { this.widthDefault = w; }", "void setWidth(int width);", "void setWidth(int width);", "public void setThickness(float thickness){\n this.thickness = thickness;\n }", "public void setWidth(final String value)\n {\n width = value;\n }", "public void yBindWidth(String bind_name, ObservableValue<? extends Number> width, boolean stroke_included);", "public void setWidth(double width) {\n\t\tthis.width = width;\n\t}", "public void setWidth(double width) {\n\t\tthis.width = width;\n\t}", "public double getLineWidth(\n )\n {return lineWidth;}", "public void setWidth(Double width) {\n\t\tthis.width = width;\n\t}", "public float getStrokeWidth() {\n return (float) this.getValue(STROKE_WIDTH_PROPERTY_KEY);\n }", "public void setNodeStrokeSourceWidth(double value) {\n _nodeStrokeSourceWidth = value;\n }", "public void setGestureLineWidth(int width) {\n this.mGestureLineWidth = width;\n }", "public void setWidth(int w)\n {\n width = w;\n }", "public void setWidth(float width) {\n this.xRadius = width/2f;\n }", "public abstract void setStroke(BasicStroke stroke);", "double width () {\n Text text = new Text(this.getText());\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }", "public void setWidth(int w) {\n this.width = w;\n }", "public void setWidth(int width) {\n this.width = width;\n }", "public void setWidth(int w){\n \twidth = w;\n }", "@Override\n\tpublic void setWidth(float width) {\n\n\t}", "public void setWidth(int width)\n {\n this.width = width;\n }", "@Override\r\n public void setWidth(String width) {\n }", "public void setThickness(int thickness) {\n\t\tthis.thickness = thickness;\n\t\tint ht = thickness;\n\t\tht = ht - ht / 2 + 2;\n\t\tif (thickness % 2 != 0)\n\t\t\tht -= 1;\n\t\trectF = new RectF(ht, ht, getWidth() - ht, getHeight() - ht);\n\t\tinvalidate();\n\t}", "public final native void setWidth(double width) /*-{\n this.setWidth(width);\n }-*/;", "public void setWidth(String width) {\r\n this.width = width;\r\n }", "public void setWidth(int n){ // Setter method\n \n width = n; // set the class attribute (variable) radius equal to num\n }", "public void setCurrentStrokeValue(float value,int color) {\n currentStrokeValue = value;\n if(strokeWidthView != null) {\n strokeWidthView.setProgress((int) value,color);\n strokeWidthView.invalidate();\n }\n }", "public void setPenThickness(double index) {\n\t\tpenThickness = index;\n\t}", "double width () {\n Text text = new Text(event.name);\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }", "public int getLineWidth ( ) {\r\n\t\treturn line_width;\r\n\t}", "public int getLineWidth() {\r\n return LineWidth;\r\n }", "public void setWidth(int w) {\n this.W = w;\n }", "@Override\r\n\tpublic void setWidth(int width) {\n\t\t\r\n\t}", "public final Marking setLineWidth( int lineWidth )\n {\n put( LINE_WIDTH_KEY, lineWidth );\n return this;\n }", "@Override\n public double getLineWidth() {\n return graphicsEnvironmentImpl.getLineWidth(canvas);\n }", "@JSProperty(\"tickWidth\")\n void setTickWidth(double value);", "@Override\n @SimpleProperty()\n public void Width(int width) {\n if (width == LENGTH_PREFERRED) {\n width = LENGTH_FILL_PARENT;\n }\n super.Width(width);\n }", "public float getLineWidth()\r\n\t{\r\n\t\treturn g.getPenWidth();\r\n\t}", "public void setWidth(String string) {\r\n\t\t_width = string;\r\n\t}", "public void setHighlightLineWidth(float width) { this.mHighlightLineWidth = Utils.convertDpToPixel(width); }", "public void setStrokeColor(Color color);", "public void setWidth(int w) {\n\t\twidth = w;\n\t}", "void setBorder(Color color, int thickness);", "public void setThickness(String s)\n\t{\n\t\tthis.lineThickness = Integer.parseInt(s.substring(0, 1));\n\t}", "public void setWidth (int width) {\r\n\tcheckWidget();\r\n\tif ((style & SWT.SEPARATOR) == 0) return;\r\n\tif (width < 0) return;\r\n\tOS.PtSetResource (handle, OS.Pt_ARG_WIDTH, width, 0);\r\n\tif (control != null && !control.isDisposed ()) {\r\n\t\tcontrol.setBounds (getBounds ());\r\n\t}\r\n}", "public abstract float getLineWidth();", "public final native double getStrokeWidth() /*-{\n\t\tif (this.getStrokeWidth() != null) return this.getStrokeWidth();\n\t\telse return 0;\n\t}-*/;", "public void setWidth(int width) {\n\t\tw = width;\n\t}", "public void setTrackWidth(int width){\n this.mTrackWidth = Utils.dp2px(mContext, width);\n progressPaint.setStrokeWidth(width);\n updateTheTrack();\n refreshTheView();\n }", "public void setWidth(int width) {\n\t\tthis.width = width;\n\t}", "public int getNowLineStrokeWidth() {\n return config.nowLineStrokeWidth;\n }", "@JSProperty(\"gridLineWidth\")\n void setGridLineWidth(double value);", "private void setPenRadius() {\n\t}", "public Builder setWidth(int value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n onChanged();\n return this;\n }", "public void setWidth( int width )\n {\n int charWidth = ChatMenuAPI.getCharacterWidth( getCharacter( ) );\n length = width / charWidth;\n }", "public void setNodeBorderWidth(Float value) {\n nodeBorderWidth = value;\n }", "public void setBorderWidth(int borderWidth) {\n\n this.borderWidth = borderWidth;\n this.invalidate();\n }", "public void setWidth( int width ) {\n\t\t_width = width;\n\t}", "void setFitWidth(short width);", "public void setStroke(Stroke s)\r\n\t{\r\n\t\tif (s instanceof BasicStroke)\r\n\t\t{\r\n\t\t\tBasicStroke bs = (BasicStroke) s;\r\n\t\t\tthis.setLineWidth(bs.getLineWidth());\r\n\r\n\t\t\tif (bs.getDashArray() != null)\r\n\t\t\t{\r\n\t\t\t\tthis.setLineStyle(CanvasType.SHORT_DASHES);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tthis.setLineStyle(CanvasType.SOLID);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t// else\r\n\t\t// System.out.println(\"setStroke not a BasicStroke\");\r\n\t}", "public void setWidth(int width) {\n\tthis.width = width;\n\tcalculateWidthRatio();\n }", "public void setGlyphWidth(int glyphWidth) {\n this.glyphWidth = glyphWidth;\n }", "public void setWidth(int width) {\n this.width = width;\n this.rightEdge = RRConstants.getRightEdge(width);\n }", "public void setWidth(double w) {\n\t\t\twidth.set(clamp(w, WIDTH_MIN, WIDTH_MAX));\n\t\t}" ]
[ "0.8016689", "0.77625203", "0.7717954", "0.7546393", "0.75368077", "0.7332668", "0.7331719", "0.72970176", "0.7267388", "0.7251207", "0.72249335", "0.7201179", "0.7195389", "0.71073294", "0.70388377", "0.70125693", "0.7011427", "0.6983104", "0.68541753", "0.6839396", "0.6823116", "0.674201", "0.66863644", "0.6650451", "0.6645491", "0.6644652", "0.66021055", "0.65895927", "0.6583141", "0.65485555", "0.65389097", "0.65236706", "0.6514176", "0.6512508", "0.64808404", "0.64693236", "0.64200544", "0.64200544", "0.6401447", "0.6395409", "0.63726705", "0.63585883", "0.63585883", "0.63470316", "0.6346206", "0.6342804", "0.6333541", "0.6285204", "0.6282985", "0.6280345", "0.6279308", "0.6232335", "0.6230969", "0.61869526", "0.61760175", "0.6151872", "0.614906", "0.6129606", "0.6127303", "0.6113553", "0.61041754", "0.60915816", "0.6086858", "0.6076816", "0.60680556", "0.6044936", "0.60309744", "0.6026538", "0.6021935", "0.6005797", "0.5997982", "0.59752256", "0.5953253", "0.5939668", "0.5937976", "0.5931355", "0.5923", "0.59201026", "0.59030384", "0.5897217", "0.58964664", "0.5885332", "0.58700234", "0.58536726", "0.5849053", "0.5847212", "0.5845653", "0.5840759", "0.58366835", "0.5833802", "0.582726", "0.5826421", "0.5818724", "0.5816172", "0.58156955", "0.5815639", "0.5815403", "0.57903075", "0.5781715", "0.57763416" ]
0.74608564
5
Get the stroke created from the stroke width
public Stroke getStroke() { Stroke theStroke = stroke; if (theStroke == null) { theStroke = new BasicStroke(strokeWidth); stroke = theStroke; } return theStroke; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static BasicStroke getStroke(int width) {\n\t\tif (width < _strokes.length) {\n\t\t\tif (_strokes[width] == null) {\n\t\t\t\t_strokes[width] = new BasicStroke(width);\n\t\t\t}\n\n\t\t\treturn _strokes[width];\n\t\t} else {\n\t\t\treturn new BasicStroke(width);\n\t\t}\n\t}", "public float getStrokeWidth() { return getStroke()==null? 0 : getStroke().getWidth(); }", "public final DoubleProperty strokeWidthProperty() {\n return getStrokeAttributes().widthProperty();\n }", "public float getStrokeWidth() {\n\t\treturn strokeWidth;\n\t}", "int getTextStrokeWidth();", "public final native double getStrokeWidth() /*-{\n\t\tif (this.getStrokeWidth() != null) return this.getStrokeWidth();\n\t\telse return 0;\n\t}-*/;", "public Stroke<R> getStroke() {\n if (stroke == null) {\n stroke = factory.createStroke();\n }\n return stroke;\n }", "public RMStroke getStroke() { return _stroke; }", "public float getStrokeWidth() {\n return (float) this.getValue(STROKE_WIDTH_PROPERTY_KEY);\n }", "public static BasicStroke getStroke(LineStyle style, float width) {\n\n float[] dash;\n BasicStroke stroke;\n switch (style) {\n case dashed:\n dash = new float[]{width * DASH_LENGTH};\n stroke = new BasicStroke(width, BasicStroke.CAP_SQUARE,\n BasicStroke.JOIN_MITER, width, dash, 0);\n break;\n case dotted:\n dash = new float[]{width, 2 * width};\n stroke = new BasicStroke(width, BasicStroke.CAP_SQUARE,\n BasicStroke.JOIN_MITER, width, dash, 0);\n break;\n default:\n stroke = new BasicStroke(width);\n break;\n }\n return stroke;\n }", "public Stroke getStroke()\r\n\t{\r\n\t\treturn _g2.getStroke();\r\n\t}", "public static BasicStroke getStroke(float floatwidth) {\n\t\tint width = Math.round(floatwidth);\n\n\t\tif (width == floatwidth) {\n\t\t\treturn getStroke(width);\n\t\t} else {\n\t\t\treturn new BasicStroke(floatwidth);\n\t\t}\n\t}", "public DirectShapeRenderer stroke() {\n \t\treturn renderer.stroke();\n \t}", "public ColorSpace<?> getStrokeColorSpace(\n )\n {return strokeColorSpace;}", "public final native Colour getStroke() /*-{\n\t\treturn @net.edzard.kinetic.Colour::new(Ljava/lang/String;)(this.getStroke());\n\t}-*/;", "String getTextStrokeColorAsString();", "public double getEdgeStrokeDestinationWidth() {\n return (_edgeStrokeDestinationWidth);\n }", "public RMColor getStrokeColor() { return getStroke()==null? RMColor.black : getStroke().getColor(); }", "public int getStrokeColor() {\n return (int) this.getValue(STROKE_COLOR_PROPERTY_KEY);\n }", "public Stroke getInnerStroke() {\n return null;\n }", "public final float getStrokeWidth() {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getStrokeWidth()\");\n return ((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getStrokeWidth();\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getStrokeWidth()\");\n return ((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getStrokeWidth();\n }\n }", "public Color<?> getStrokeColor(\n )\n {return strokeColor;}", "public final Pen changeWidth(float width) {\n Color resultColor = this.color;\n LineStyle style = LineStyleUtils.getLineStyle(stroke);\n BasicStroke resultStroke = LineStyleUtils.getStroke(style, width);\n return new Pen(resultStroke, resultColor);\n }", "public double getLineWidth(\n )\n {return lineWidth;}", "public abstract float getLineWidth();", "protected float getLineWidth(Graphics2D g2d) {\n float lineWidth = 1.0f;\n Stroke stroke = g2d.getStroke();\n if (stroke instanceof BasicStroke) {\n BasicStroke bs = (BasicStroke)stroke;\n lineWidth = bs.getLineWidth();\n }\n return lineWidth;\n }", "public double getEdgeStrokeSourceWidth() {\n return (_edgeStrokeSourceWidth);\n }", "public int getNowLineStrokeWidth() {\n return config.nowLineStrokeWidth;\n }", "public void setStrokeWidth(float aValue)\n{\n // Set line width\n if(getStroke()==null) setStroke(new RMStroke(RMColor.black, aValue));\n else getStroke().setWidth(aValue);\n}", "void setStrokeWidth(float strokeWidth) {\n/* 180 */ this.mStrokeWidth = strokeWidth;\n/* */ }", "public double getNodeStrokeDestinationWidth() {\n return (_nodeStrokeDestinationWidth);\n }", "public final ObjectProperty<StrokeType> strokeTypeProperty() {\n return getStrokeAttributes().typeProperty();\n }", "public float getLineWidth()\r\n\t{\r\n\t\treturn g.getPenWidth();\r\n\t}", "String getWidth();", "String getWidth();", "public int getThickness ()\r\n {\r\n return glyph.getBounds().height;\r\n }", "public int getLineWidth() {\n return (int) mPaintLine.getStrokeWidth();\n }", "protected int getOuterStrokeWidth(final ARXNode node, final int width) {\n int result = node.isChecked() ? width / 100 : 1;\n result = node.isChecked() ? result + 1 : result;\n return result >=1 ? result < 1 ? 1 : result : 1;\n }", "public final org.xms.g.maps.model.PolygonOptions strokeWidth(float param0) {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).strokeWidth(param0)\");\n com.huawei.hms.maps.model.PolygonOptions hReturn = ((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).strokeWidth(param0);\n return ((hReturn) == null ? null : (new org.xms.g.maps.model.PolygonOptions(new org.xms.g.utils.XBox(null, hReturn))));\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).strokeWidth(param0)\");\n com.google.android.gms.maps.model.PolygonOptions gReturn = ((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).strokeWidth(param0);\n return ((gReturn) == null ? null : (new org.xms.g.maps.model.PolygonOptions(new org.xms.g.utils.XBox(gReturn, null))));\n }\n }", "public final int getStrokeColor() {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getStrokeColor()\");\n return ((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getStrokeColor();\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getStrokeColor()\");\n return ((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getStrokeColor();\n }\n }", "StrokeMatcher strokeMatcher() {\n return mStrokeMatcher;\n }", "public RecodedReal getLineWidth(){\n return ps == null ? null :ps.getWidthLegend();\n }", "public final native void setStrokeWidth(double width) /*-{\n\t\tthis.setStrokeWidth(width);\n\t}-*/;", "double width () {\n Text text = new Text(this.getText());\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }", "public final Stroke getOutlineStroke() {\n return outlineStroke;\n }", "public void setEdgeStrokeDestinationWidth(double value) {\n _edgeStrokeDestinationWidth = value;\n }", "@Override public Polyline setStrokeWidth(double strokeWidth)\n {\n return (Polyline)super.setStrokeWidth(strokeWidth);\n }", "@Override\n public double getLineWidth() {\n return graphicsEnvironmentImpl.getLineWidth(canvas);\n }", "public double getNodeStrokeSourceWidth() {\n return (_nodeStrokeSourceWidth);\n }", "public Stroke getStroke(Comparable key) {\n/* 95 */ ParamChecks.nullNotPermitted(key, \"key\");\n/* 96 */ return (Stroke)this.store.get(key);\n/* */ }", "public final LineStyle getStyle(){\n return LineStyleUtils.getLineStyle(stroke);\n }", "double width () {\n Text text = new Text(event.name);\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }", "@Override\n public Paint getInitialValue(Shape node) {\n return node.impl_cssGetStrokeInitialValue();\n }", "public int getLineWidth ( ) {\r\n\t\treturn line_width;\r\n\t}", "public int getThickness() {\r\n return Thickness;\r\n }", "Length getWidth();", "public void setStroke(Stroke stroke);", "protected Shape getTextShape(Graphics2D g2) {\n String txt = value > 999 ? \"1K\" : Objects.toString(value);\n AffineTransform at = txt.length() < 3 ? null : AffineTransform.getScaleInstance(.66, 1d);\n return new TextLayout(txt, g2.getFont(), g2.getFontRenderContext()).getOutline(at);\n }", "public int getLineWidth() {\r\n return LineWidth;\r\n }", "public void strokeShape(Shape shape);", "public Rectangle2D getBounds() {\n\t\t// FIXME: these bounds REALLY need to be cached. But it's\n\t\t// painful because of the public members.\n\t\tif (stroke == null) {\n\t\t\treturn shape.getBounds2D();\n\t\t} else if (stroke instanceof BasicStroke) {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// if all we want is the bounds, then we don't need to actually\n\t\t\t// stroke the shape. We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = shape.getBounds2D();\n\t\t\tint width = (int) ((BasicStroke) stroke).getLineWidth() + 2;\n\t\t\treturn new Rectangle2D.Double(rect.getX() - width, rect.getY()\n\t\t\t\t\t- width, rect.getWidth() + width + width, rect.getHeight()\n\t\t\t\t\t+ width + width);\n\t\t} else {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = stroke.createStrokedShape(shape).getBounds2D();\n\t\t\treturn new Rectangle2D.Double(rect.getX() - 1, rect.getY() - 1,\n\t\t\t\t\trect.getWidth() + 2, rect.getHeight() + 2);\n\t\t}\n\t}", "private synchronized void strokeStyle(Rule rule, InstanceWaypoint context){\t\n \t\t\n \t\t// retrieve stroke\n \t\tStroke stroke = null;\n \t\t\n \t\t//try the Symbolizers from the Rule\n \t\tint i = -1;\n \t\twhile(rule != null && stroke == null && i < rule.getSymbolizers().length){\n \t\t\ti++;\n \t\t\tif (rule.getSymbolizers()[i] instanceof LineSymbolizer){\n \t\t\t\tstroke = SLD.stroke((LineSymbolizer)rule.getSymbolizers()[i]);\t\t\t\t\n \t\t\t\t}\n \t\t\telse if (rule.getSymbolizers()[i] instanceof PolygonSymbolizer){\n \t\t\t\tstroke = SLD.stroke((PolygonSymbolizer)rule.getSymbolizers()[i]);\t\t\t\t\n \t\t\t\t}\n \t\t\telse if (rule.getSymbolizers()[i] instanceof PointSymbolizer){\n \t\t\t\tstroke = SLD.stroke((PointSymbolizer)rule.getSymbolizers()[i]);\t\t\t\t\n \t\t\t\t}\n \t\t\t}\n \t\t\n \t\n \t\t//if we have a stroke now\n \t\tif (stroke != null) {\n \t\t\t//XXX is there any Geotools stroke to AWT stroke lib/code somewhere?!\n \t\t\t//XXX have a look at the renderer code (StreamingRenderer)\n \t\t\t\n \t\t\t// stroke color\n \t\t\tColor sldColor = SLD.color(stroke);\n \t\t\tdouble opacity = SLD.opacity(stroke);\n \t\t\tif (Double.isNaN(opacity)) {\n \t\t\t\t// fall back to default opacity\n \t\t\t\topacity = StyleHelper.DEFAULT_FILL_OPACITY;\n \t\t\t}\n \t\t\tif (sldColor != null) {\n \t\t\t\tstyleStrokeColor = new Color(sldColor.getRed(), sldColor.getGreen(), \n \t\t\t\t\t\tsldColor.getBlue(), (int) (opacity * 255));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tstyleStrokeColor = super.getBorderColor(context);\n \t\t\t}\n \t\t\t\n \t\t\t// stroke width\n \t\t\tint strokeWidth = SLD.width(stroke);\n \t\t\tif (strokeWidth == SLD.NOTFOUND) {\n \t\t\t\t// fall back to default width\n \t\t\t\tstrokeWidth = StylePreferences.getDefaultWidth(); \n \t\t\t}\n \t\t\tstyleStroke = new BasicStroke(strokeWidth);\n \t\t}\n \t\telse {\n \t\t\tstyleStroke = null;\n \t\t\tstyleStrokeColor = null;\n \t\t}\n \t}", "public float getThickness(){\n return thickness;\n }", "public void setStrokeStyle(STYLE style);", "public double getWidth();", "public double getWidth();", "private ZigzagStroke() {}", "double getWidth();", "double getWidth();", "public final Stroke getGridStroke() {\n return gridStroke;\n }", "public double getAW() {\n\t\t\treturn arcwidth.get();\n\t\t}", "public final java.util.List<org.xms.g.maps.model.PatternItem> getStrokePattern() {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getStrokePattern()\");\n java.util.List hReturn = ((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getStrokePattern();\n return ((java.util.List) org.xms.g.utils.Utils.mapCollection(hReturn, new org.xms.g.utils.Function<com.huawei.hms.maps.model.PatternItem, org.xms.g.maps.model.PatternItem>() {\n\n public org.xms.g.maps.model.PatternItem apply(com.huawei.hms.maps.model.PatternItem param0) {\n return new org.xms.g.maps.model.PatternItem(new org.xms.g.utils.XBox(null, param0));\n }\n }));\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getStrokePattern()\");\n java.util.List gReturn = ((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getStrokePattern();\n return ((java.util.List) org.xms.g.utils.Utils.mapCollection(gReturn, new org.xms.g.utils.Function<com.google.android.gms.maps.model.PatternItem, org.xms.g.maps.model.PatternItem>() {\n\n public org.xms.g.maps.model.PatternItem apply(com.google.android.gms.maps.model.PatternItem param0) {\n return new org.xms.g.maps.model.PatternItem(new org.xms.g.utils.XBox(param0, null));\n }\n }));\n }\n }", "public int getOutlinePickWidth()\n {\n return this.outlinePickWidth;\n }", "public Path2D asAwtShape() {\n\t\t// creates the awt path\n\t\tPath2D.Double path = new Path2D.Double();\n\t\t\n\t\t// iterate on the path segments\n\t\tfor (Segment seg : this.segments) {\n\t\t\tseg.updatePath(path);\n\t\t}\n\t\t\n\t\t// returns the updated path\n\t\treturn path;\n\t}", "public java.lang.String getWidth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(WIDTH$20);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public IfcPositiveLengthMeasure getCasingThickness()\n\t{\n\t\treturn this.CasingThickness;\n\t}", "public abstract void setStroke(BasicStroke stroke);", "public int grWidth() { return width; }", "public String getWidthAttribute() {\n if (wrapWidth) {\n return VALUE_WRAP_CONTENT;\n } else if (fillWidth) {\n //return mRule.getFillParentValueName();\n return VALUE_MATCH_PARENT;\n } else {\n return AndroidDesignerUtils.pxToDpWithUnits(myArea, bounds.width);\n }\n }", "public static LineStyle getLineStyle(BasicStroke stroke) {\n LineStyle style = LineStyle.solid;\n if (stroke.getDashArray() != null) {\n if (stroke.getDashArray()[0]\n > stroke.getLineWidth()) {\n style = LineStyle.dashed;\n } else {\n style = LineStyle.solid;\n }\n }\n return style;\n }", "public void setStrokeWidth(Float strokeWidth) {\n\t\tthis.strokeWidth = strokeWidth;\n\t\tstroke = null;\n\t}", "@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineWidth() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineWidth());\n }", "public void setStrokeWidth(float strokeWidth) {\n this.setValue(STROKE_WIDTH_PROPERTY_KEY, strokeWidth);\n }", "public void strokeRectangle(int x, int y, int width, int height);", "public org.apache.xmlbeans.XmlString xgetWidth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(WIDTH$20);\n return target;\n }\n }", "public int getWidth(){ return widthRadius; }", "IOverlayStyle borderThickness(int thick);", "public double drawLength() { return drawLength; }", "public byte getWidth();", "long getWidth();", "public String getWidth() {\n return width;\n }", "private Line createSeparator(int length){\n\n Line sep = new Line();\n sep.setEndX(length);\n sep.setStroke(Color.DARKGRAY);\n return sep;\n\n }", "public void strokeRectangle(RectangleShape rectangle);", "private void applyStroke(Graphics2D graphic, Stroke stroke, Feature feature) {\n if (stroke == null) {\n return;\n }\n \n double scale = graphics.getTransform().getScaleX();\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"line join = \" + stroke.getLineJoin());\n }\n \n String joinType;\n \n if (stroke.getLineJoin() == null) {\n joinType = \"miter\";\n } else {\n joinType = (String) stroke.getLineJoin().getValue(feature);\n }\n \n if (joinType == null) {\n joinType = \"miter\";\n }\n \n int joinCode;\n \n if (joinLookup.containsKey(joinType)) {\n joinCode = ((Integer) joinLookup.get(joinType)).intValue();\n } else {\n joinCode = BasicStroke.JOIN_MITER;\n }\n \n String capType;\n \n if (stroke.getLineCap() != null) {\n capType = (String) stroke.getLineCap().getValue(feature);\n } else {\n capType = \"square\";\n }\n \n if (capType == null) {\n capType = \"square\";\n }\n \n int capCode;\n \n if (capLookup.containsKey(capType)) {\n capCode = ((Integer) capLookup.get(capType)).intValue();\n } else {\n capCode = BasicStroke.CAP_SQUARE;\n }\n \n float[] dashes = stroke.getDashArray();\n \n if (dashes != null) {\n for (int i = 0; i < dashes.length; i++) {\n dashes[i] = (float) Math.max(1, dashes[i] / (float) scale);\n }\n }\n \n Number value = (Number) stroke.getWidth().getValue(feature);\n float width = value.floatValue();\n value = (Number) stroke.getDashOffset().getValue(feature);\n \n float dashOffset = value.floatValue();\n value = (Number) stroke.getOpacity().getValue(feature);\n \n float opacity = value.floatValue();\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"width, dashoffset, opacity \" + width + \" \" + dashOffset + \" \" + opacity);\n }\n \n BasicStroke stroke2d;\n \n //TODO: It should not be necessary to divide each value by scale.\n if ((dashes != null) && (dashes.length > 0)) {\n if (width <= 1.0) {\n width = 0;\n }\n \n stroke2d = new BasicStroke(width / (float) scale, capCode, joinCode,\n (float) (Math.max(1, 10 / scale)), dashes, dashOffset / (float) scale);\n } else {\n if (width <= 1.0) {\n width = 0;\n }\n \n stroke2d = new BasicStroke(width / (float) scale, capCode, joinCode,\n (float) (Math.max(1, 10 / scale)));\n }\n \n graphic.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, opacity));\n \n if (!graphic.getStroke().equals(stroke2d)) {\n graphic.setStroke(stroke2d);\n }\n \n Color color = Color.decode((String) stroke.getColor().getValue(feature));\n \n if (!graphic.getColor().equals(color)) {\n graphic.setColor(color);\n }\n \n Graphic gr = stroke.getGraphicFill();\n \n if (gr != null) {\n setTexture(graphic, gr, feature);\n } else {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"no graphic fill set\");\n }\n }\n }", "private double getWidth() {\n\t\treturn width;\n\t}", "public float border() {\n\t\treturn borderThickness;\n\t}", "public void setNodeStrokeDestinationWidth(double value) {\n _nodeStrokeDestinationWidth = value;\n }", "public void setEdgeStrokeSourceWidth(double value) {\n _edgeStrokeSourceWidth = value;\n }", "private float getLineWidth(int zoomLevel) {\n if (zoomLevel > 14) {\n return 7.0f * BusesAreUs.dpiFactor();\n } else if (zoomLevel > 10) {\n return 5.0f * BusesAreUs.dpiFactor();\n } else {\n return 2.0f * BusesAreUs.dpiFactor();\n }\n }", "double getNewWidth();" ]
[ "0.7510826", "0.7476925", "0.74274296", "0.73528534", "0.7346122", "0.7137675", "0.70884514", "0.69964427", "0.697814", "0.69642", "0.6839997", "0.68218297", "0.67657614", "0.66877204", "0.6561595", "0.65538675", "0.6538081", "0.6409645", "0.64041877", "0.639882", "0.63686657", "0.636464", "0.63572997", "0.63312256", "0.62791276", "0.62139314", "0.6206395", "0.61487955", "0.61458683", "0.61081374", "0.60816485", "0.60783714", "0.60525024", "0.60424304", "0.60424304", "0.603667", "0.6017226", "0.601059", "0.5989284", "0.5980451", "0.59772867", "0.5964903", "0.594566", "0.5935656", "0.5896276", "0.5891465", "0.5846674", "0.5835991", "0.5824666", "0.580824", "0.57951033", "0.57781935", "0.57763684", "0.5705243", "0.57036483", "0.5682885", "0.5668029", "0.565326", "0.5640699", "0.5575885", "0.5572492", "0.5552923", "0.55498636", "0.55234176", "0.55210716", "0.55210716", "0.5520734", "0.5466886", "0.5466886", "0.5442832", "0.5403358", "0.5388997", "0.53772527", "0.53692794", "0.5354247", "0.5352932", "0.53482187", "0.53307956", "0.53298366", "0.53227705", "0.53167", "0.5287699", "0.5264828", "0.52545756", "0.5252958", "0.525218", "0.5250174", "0.52500266", "0.5244333", "0.5228365", "0.5214297", "0.5212171", "0.52107704", "0.52038604", "0.5197278", "0.51965386", "0.5191868", "0.5190991", "0.5186284", "0.5169435" ]
0.7272113
5
Initialize a new instance of the GhostService class. This class is initialized in spring configuration.
public GhostService(List<IDictionaryProvider> dictionaries, List<IGhostStrategy> strategies) { this.dictionaries = dictionaries; this.strategies = strategies; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Autowired\n public void setGreetingService(GreetingsServiceUsingSpring greetingsServiceUsingSpring) {\n this.greetingsServiceImplUsingSpring = greetingsServiceUsingSpring;\n }", "public AutowireService() {\n\t\tSystem.out.println(\"Default constructor used\");\n\t}", "private void initService() {\r\n\t}", "public GroovyShellService() {\n \t\tthis(6789);\n \t}", "public InitService() {\n super(\"InitService\");\n }", "private void initService() {\n\t\tavCommentService = new AvCommentService(getApplicationContext());\n\t}", "private AnagramService() {\n\t}", "@ServiceInit\n public void init() {\n }", "public static void init() {\n\n\t\tsnapshot = new SnapshotService();\n\t\tlog.info(\"App init...\");\n\t}", "public void init() {\n\t\tM_log.info(\"initialization...\");\n\t\t\n\t\t// register as an entity producer\n\t\tm_entityManager.registerEntityProducer(this, SakaiGCalendarServiceStaticVariables.REFERENCE_ROOT);\n\t\t\n\t\t// register functions\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW_ALL);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_EDIT);\n\t\t\n \t\t//Setup cache. This will create a cache using the default configuration used in the memory service.\n \t\tcache = memoryService.newCache(CACHE_NAME);\n\t}", "@PostConstruct\n public void init() {\n String[] commandPathPatterns = new String[]{\"classpath*:/commands/**\",\n \"classpath*:/crash/commands/**\"};\n\n // Patterns to use to look for configurations.\n String[] configPathPatterns = new String[]{\"classpath*:/crash/*\"};\n\n // Comma-separated list of commands to disable.\n String[] disabledCommands = new String[]{\"jpa*\", \"jdbc*\", \"jndi*\"};\n\n // Comma-separated list of plugins to disable. Certain plugins are disabled by default\n // based on the environment.\n String[] disabledPlugins = new String[0];\n\n FS commandFileSystem = createFileSystem(\n commandPathPatterns,\n disabledCommands);\n FS configurationFileSystem = createFileSystem(\n configPathPatterns, new String[0]);\n\n PluginDiscovery discovery = new BeanFactoryFilteringPluginDiscovery(\n this.resourceLoader.getClassLoader(), this.beanFactory,\n disabledPlugins);\n\n PluginContext context = new PluginContext(discovery,\n createPluginContextAttributes(), commandFileSystem,\n configurationFileSystem, this.resourceLoader.getClassLoader());\n\n context.refresh();\n start(context);\n }", "@Bean\n\t\tpublic FortuneService happyFortuneService() {\n\t\t\treturn new HappyFortuneService();\n\t\t}", "@Bean\n\tpublic FortuneService happyFortuneService() { \n\t\treturn new HappyFortuneService();\n\t}", "public VehmonService() {\n }", "public GhostManager(Map map) {\n int ghostNumber = map.get_ghostNumber();\n // Initialize members\n ghostList = new ArrayList<Ghost>();\n random = new Random();\n colors = new String[]{\"#fc7703\", \"#f003fc\",\"#03fcf4\",\"#65fc00\",\"#fca503\",\"#fba6ff\",\"#03fc98\",\"#187010\"};\n\n // Add ghosts to the list\n for(int i=0; i<ghostNumber; i++) {\n ghostList.add(ghostFactory(map));\n }\n }", "public GerritService() { super(TAG); }", "public void service_INIT(){\n }", "public SlackPresenter() {\n if (this.slackService == null) {\n this.slackService = new SlackService();\n }\n }", "protected void initSpring() {\n\t\tgetComponentInstantiationListeners().add(new SpringComponentInjector(this));\n\t}", "public void InitService() {\n\t\ttry {\r\n\t\t\tgetCommManager().register(this); \r\n\t\t} catch (CommunicationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static synchronized void init() {\n String registryClassName = System.getProperty(REGISTRY_CLASS_NAME,\n DefaultServiceRegistry.class.getName());\n String endpointProviderClassName = System.getProperty(ENDPOINT_PROVIDER_CLASS_NAME,\n DefaultEndpointProvider.class.getName());\n\n try {\n registry = getRegistry(registryClassName);\n endpointProvider = getEndpointProvider(endpointProviderClassName);\n transformers = new BaseTransformerRegistry();\n } catch (NullPointerException npe) {\n throw new RuntimeException(npe);\n }\n }", "public Service(){\n\t\t\n\t}", "public void init() throws ServletException {\n\t\tservice = new GoodInfoDao();\n\t}", "private ModuleServiceImpl(){\n\t\t//initialize local data.\n\t\tfactories = new ConcurrentHashMap<String, IModuleFactory>();\n\t\tstorages = new ConcurrentHashMap<String, IModuleStorage>();\n\t\tcache = new ConcurrentHashMap<String, Module>();\n\t\tmoduleListeners = new ConcurrentHashMap<String, IModuleListener>();\n\n\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\tLOGGER.debug(\"Created new ModuleServiceImplementation\");\n\t\t}\n\n\t\tConfigurationManager.INSTANCE.configure(this);\n\t}", "private ServiceGen() {\n }", "public ProductImagesServiceImpl() {\n\t}", "public EmailService() {\n }", "private ServiceGenerator() {\n }", "private ServiceGenerator() {\n }", "public AlbumService() {\n super();\n }", "protected Spring() {}", "public static GoogleanalyticsFactory init() {\n\t\ttry {\n\t\t\tGoogleanalyticsFactory theGoogleanalyticsFactory = (GoogleanalyticsFactory)EPackage.Registry.INSTANCE.getEFactory(GoogleanalyticsPackage.eNS_URI);\n\t\t\tif (theGoogleanalyticsFactory != null) {\n\t\t\t\treturn theGoogleanalyticsFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new GoogleanalyticsFactoryImpl();\n\t}", "@Override\n\tprotected void initAsService() {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"Initiating service...\");\n\t\t}\n\t\trunnerFuture = activityRunner.schedule(this::scanModulesHealth, 500, TimeUnit.MILLISECONDS);\n\t}", "private RecipleazBackendService() {\n }", "private RssFeedServiceImpl(){\n }", "@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\tdoBindService();\r\n\t\tinitImageLoaderConfig();\r\n\t}", "public HRServiceAppModuleImpl() {\n }", "public AmazonPushListenerService() {\n super(AmazonPushListenerService.class.getName());\n // Measure singleton\n if(MEASURE_ACTIVE) {\n getMeasureProcessing();\n }\n }", "public NotificationService() {\n super(\"NotificationService\");\n }", "ServiceRegistry() {\n mRegistrations = new TreeMap<String, ServiceFactory>();\n }", "@Init\r\n\tpublic void init() {\r\n\t\t// Component initialization code.\r\n\t\t// All properties are initialized and references are injected.\r\n\t\tif(emailConfiguration==null){\r\n\t\t\tloadConfiguration();\r\n\t\t}\r\n\t\t\r\n\t}", "private AuthService() {\n configureAccessTokens();\n configure();\n ConfigurationWatcher.registerListener(this, JOSSO_GATEWAY_CONFIGURATION.getAbsolutePath());\n ConfigurationWatcher.registerListener(this, FOUNDATION_CONFIGURATION.getAbsolutePath());\n log.debug(\"AuthService listening for changes to \" + JOSSO_GATEWAY_CONFIGURATION + \" and \" + FOUNDATION_CONFIGURATION);\n }", "private SpringApplicationContext() {}", "public static Gng init() {\n return new Gng();\n }", "@Autowired\n @Qualifier(\"setterInjectedGreetingService\") // necessary to wire bean to a specific controller\n public void setGreetingService(GreetingService greetingService) {\n this.greetingService = greetingService;\n }", "public AutoSenderService() {\r\n\t\tsuper();\r\n\t}", "public DirectProjectCPConfigServiceImpl() {\r\n // Empty\r\n }", "@Bean\r\n\tpublic ICoach swimCoach()\r\n\t{\r\n\t\treturn new SwimCoach(sadFortuneService());\t\t//CONSTRUCTOR DEPENDENCY \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//(call the sadFortuneService Class who implements the IFortuneService)\r\n\t}", "private GeneralServicesImpl() {\r\n\t}", "private ServiceGenerator() {\n }", "public ServiceFactoryImpl() {\n\t\tsuper();\n\t}", "Fog_Services createFog_Services();", "@Override\r\n public void init() throws Exception {\r\n context = SpringApplication.run(getClass(), savedArgs);\r\n context.getAutowireCapableBeanFactory().autowireBean(this);\r\n }", "public GCMIntentService() {\n super(\"GCMIntentService\");\n\n }", "@Test\r\n\tpublic void testServiceInstantiation()\r\n\t{\r\n\t\t// Spring should have injected a jbpmTemplate into the service\r\n\t\tassertNotNull(\"Error: Spring failed to instantiate jbpmService bean\", this.jbpmService);\r\n\r\n\t\t// Initially, shouldn't have any instances\r\n\t\tassertNull(this.jbpmService.getProcessInstance(1));\r\n\t}", "@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\tbinder = new CaroBinder();\r\n\t\tbinder.service = this;\t\t\r\n\t}", "public TestService(ServiceConfiguration config) {\n this.config = config;\n System.out.println(\"starting service...\");\n this.start();\n }", "@Inject\n public \n GameServiceImp(\n IRepositoryContext context,\n IGameProcessor processor,\n IGameEventListener listener,\n ILogger logger)\n {\n itsContext = context;\n itsProcessor = processor;\n itsListener = listener;\n itsLogger = logger;\n }", "private GoogleIntegration() {\n }", "public WallpaperService() {\n super(WallpaperService.class.getSimpleName());\n }", "private ServiceFactory() {}", "private void initService() {\n \tlog_d( \"initService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) return;\n // Initialize the BluetoothChatService to perform bluetooth connections\n if ( mBluetoothService == null ) {\n log_d( \"new BluetoothService\" );\n \t\tmBluetoothService = new BluetoothService( mContext );\n\t }\n\t\tif ( mBluetoothService != null ) {\n log_d( \"set Handler\" );\n \t\tmBluetoothService.setHandler( sendHandler );\n\t }\t\t\n }", "private void configGMetric() {\n try {\n ganglia = new GMetric(address, port, GANGLIA_MODE, ttl);\n } catch (IOException e) {\n log.error(\"Fail to connect to given ganglia server!\");\n }\n }", "public PushPluginConfigurationImpl() {\n }", "private Service() {}", "public GoogleanalyticsFactoryImpl() {\n\t\tsuper();\n\t}", "public Slf4jLogService() {\n this(System.getProperties());\n }", "public FrostDeployer() {\n\n }", "private ServiceLocator(){}", "public DigestListService() {\r\n parserRssService = new ParserRss();\r\n generalDao = new GeneralDao();\r\n }", "public RestService() {\r\n }", "private SearchServiceFactory() {}", "@Before\n public void init() throws Exception {\n TestObjectGraphSingleton.init();\n TestObjectGraphSingleton.getInstance().inject(this);\n\n mockWebServer.start();\n }", "public void initApiService() {\n apiService = ApiUtils.getAPIService();\n }", "public void initialize(ServiceProviderConfig config) {\r\n\t\tsetConfiguration(config);\r\n\t}", "public HGDClient() {\n \n \t}", "private PSStartServerFactory() {\n if(instance == null)\n instance = new PSStartServerFactory();\n }", "private void initParseService() {\n\t\tParse.initialize(this, \"ZmdQMR7FctP2XgMJN5lvj98Aj9IA2Bf8mJrny11n\", \"yVVh3GiearTRsRXZqgm2FG6xfWvcQPjINX6dGJNu\");\n\t\tPushService.setDefaultPushCallback(this, PushNotificationCallbackActivity.class);\n\t\tParseInstallation.getCurrentInstallation().saveInBackground();\n\t}", "public NotificationReceiverService() {\n }", "@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t\t\n\t\tApplicationContext applicationContext=new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\t\tmservice= (MemberService) applicationContext.getBean(\"memberservice\");\n\t\tbservice=(BookService) applicationContext.getBean(\"bookservice\");\n\t\toservice=(OrderService) applicationContext.getBean(\"orderservice\");\n\t\t\n\t}", "private void initService() {\n connection = new AppServiceConnection();\n Intent i = new Intent(this, AppService.class);\n boolean ret = bindService(i, connection, Context.BIND_AUTO_CREATE);\n Log.d(TAG, \"initService() bound with \" + ret);\n }", "public PessoaService(){\n\t\n\t\tApplicationContext context =SpringUtil.getContext();\n\t\tdb = context.getBean(PessoaRepository.class);\n\t\t\n\t}", "public ClientServiceImpl() {\r\n\t}", "public TestService() {}", "@Inject\n\tprivate DataManager() {\n\t\t// nothing to do\n\t}", "public AngularPageConfigurator()\n\t{\n\t\t//No config required\n\t}", "@FXML\n\tprivate void initialize() {\n\t\tgeneratorService = new GeneratorService();\n\t}", "private ServiceLocator() {\r\n\t\t\r\n\t}", "public static GFG getInstance() \n { \n if (instance == null) \n { \n // if instance is null, initialize \n instance = new GFG();\n } \n return instance; \n }", "@PostConstruct\n protected void init() {\n super.init();\n if (screeningService == null) {\n throw new PortalServiceConfigurationException(\"screeningService is not configured correctly.\");\n }\n if (enrollmentService == null) {\n throw new PortalServiceConfigurationException(\"enrollmentService is not configured correctly.\");\n }\n if (helpService == null) {\n throw new PortalServiceConfigurationException(\"helpService must be configured.\");\n }\n\n if (eventService == null) {\n throw new PortalServiceConfigurationException(\"eventService must be configured.\");\n }\n\n if (lookupService == null) {\n throw new PortalServiceConfigurationException(\"lookupService must be configured.\");\n }\n }", "public WeatherService() {\n }", "public JerseyConfig() {\n\t\tregister(StudentService.class);\n\t\tregister(PromotionService.class);\n\t\tregister(GroupService.class);\n\t\tregister(RoleService.class);\n\t\tregister(RightService.class);\n\t\tregister(AccountService.class);\n\t\tregister(TimesheetService.class);\n\t\tthis.configureSwagger();\n\t}", "@Override\n public void onCreate() {\n\n createApplicationFolders();\n\n m_logger = LogManager.getLogger();\n\n m_logger.verbose(\"in onCreate\");\n\n s_instance = this;\n\n if (BuildConfig.DEBUG) {\n ButterKnife.setDebug(true);\n m_logger.debug(\"Butter Knife initialized in debug mode.\");\n }\n\n initConfigurationFile();\n\n super.onCreate();\n }", "public Host()\n\t{\n\t}", "public AccommodationPledgeServiceImpl()\n {\n \t//Initialise the related Object stores\n \n }", "private SiteEditService() {\r\n \r\n }", "public InitService(String name) {\n super(\"InitService\");\n }", "public void initialization() {\n path = Paths.get(\"/home/ubuntu-2018/NetBeansProjects/WatchService Example\");\n try {\n watchService = FileSystems.getDefault().newWatchService();\n path.register(watchService, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY);\n } catch (IOException ioE) {\n System.out.println(\"Warning! Error message: \" + ioE);\n }\n }", "public SayHelloServiceImpl() \n { \n try \n {\n this.hostname = InetAddress.getLocalHost().getHostName();\n } \n catch (UnknownHostException e) \n {\n this.hostname = \"Localhost\";\n }\n }", "private RadiusServiceStarter() {\n }" ]
[ "0.6616985", "0.63381", "0.62520766", "0.6247728", "0.61119527", "0.6100348", "0.6022977", "0.5996852", "0.58691883", "0.58547795", "0.5847862", "0.582267", "0.58073086", "0.5805407", "0.5768527", "0.57552177", "0.57481563", "0.5733948", "0.57313436", "0.5730784", "0.5719527", "0.5713495", "0.5694944", "0.5689871", "0.56793255", "0.56481475", "0.56464183", "0.5644399", "0.5644399", "0.5621015", "0.5617085", "0.5614794", "0.56102633", "0.56091857", "0.56057596", "0.56010056", "0.5592025", "0.5590129", "0.5587551", "0.5581325", "0.556485", "0.5563796", "0.55620164", "0.5561507", "0.555048", "0.5550295", "0.5549598", "0.5543964", "0.5543131", "0.5528232", "0.5526246", "0.55242574", "0.55217975", "0.5521028", "0.5515157", "0.5512464", "0.5511654", "0.5500691", "0.5498854", "0.5498204", "0.5495776", "0.54880095", "0.54858476", "0.5480246", "0.5479359", "0.547868", "0.54701495", "0.5458484", "0.54522276", "0.54517394", "0.54485834", "0.5445505", "0.5445362", "0.5439164", "0.5435461", "0.54214174", "0.54189", "0.5411753", "0.5408759", "0.54006875", "0.53881156", "0.5373857", "0.5371891", "0.5367125", "0.5363545", "0.53630894", "0.5359276", "0.53553784", "0.5353468", "0.5352675", "0.5351904", "0.53517336", "0.53483933", "0.5343075", "0.53404456", "0.5338565", "0.53316057", "0.53289247", "0.532446", "0.53150773" ]
0.5390596
80
Find the proper dictionary for the specified language.
private IDictionaryProvider findDictionary(String lang) { IDictionaryProvider provider = null; int index = 0; boolean found = false; while (index < this.dictionaries.size() && !found) { IDictionaryProvider dict = this.dictionaries.get(index); if (dict.isDictionaryForLang(lang)) { provider = dict; found = true; } index++; } if (!found) { LOG.warn(String.format("Dictionary with lang %s not found!", lang)); } return provider; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Language findByName(String name);", "public void loadDictionary(String language) {\r\n\t\tif(this.language.equals(language) && dizionario != null ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tdizionario = new ArrayList<String>();\r\n\t\tthis.language = language; //Impostiamo la lingua uguale a quella passata da parametro\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFileReader fr = new FileReader(\"English.txt\");\r\n\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\t\tString word;\r\n\t\t\twhile ((word = br.readLine()) != null) {\r\n\t\t\t// Aggiungere parola alla struttura dati\r\n\t\t\t\tdizionario.add(word.toLowerCase());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tCollections.sort(dizionario);\r\n\t\t\tbr.close();\r\n\t\t\t} catch (IOException e){\r\n\t\t\tSystem.out.println(\"Errore nella lettura del file\");\r\n\t\t\t}\r\n\t}", "Language findById(String id);", "static WordList get(Language language) {\n return switch (language) {\n case ENGLISH -> readResource(\"bip39_english.txt\");\n };\n }", "Language getLanguage(LanguageID languageID, int version) throws LanguageNotFoundException;", "private Word askForWord(Language lastLanguage) throws LanguageException {\n Language language = askForLanguage();\r\n if(language == null || language.equals(lastLanguage)) {\r\n throw new LanguageException();\r\n }\r\n // Step 2 : Name of the word\r\n String name = askForLine(\"Name of the word : \");\r\n Word searchedWord = czech.searchWord(language, name);\r\n if(searchedWord != null) {\r\n System.out.println(\"Word \" + name + \" found !\");\r\n return searchedWord;\r\n }\r\n System.out.println(\"Word \" + name + \" not found.\");\r\n // Step 3 : Gender/Phonetic of the word\r\n String gender = askForLine(\"\\tGender of the word : \");\r\n String phonetic = askForLine(\"\\tPhonetic of the word : \");\r\n // Last step : Creation of the word\r\n Word word = new Word(language, name, gender, phonetic);\r\n int id = czech.getListWords(language).get(-1).getId() + 1;\r\n word.setId(id);\r\n czech.getListWords(language).put(-1, word);\r\n return word;\r\n }", "private Map<Integer, LanguageEntry> getLanguageEntries(Language lang) {\r\n\t\tMap<Integer,LanguageEntry> langDb = null;\r\n\t\tif(getDb().containsKey(lang)) {\r\n\t\t\t//If Database Contains the Language Return it\r\n\t\t\tlangDb = getDb().get(lang);\r\n\t\t}else {\r\n\t\t\t//Create a New Language to Database and Return it\r\n\t\t\tlangDb = new ConcurrentHashMap<Integer, LanguageEntry>();\r\n\t\t\tgetDb().put(lang, langDb);\r\n\t\t}\r\n\t\treturn langDb;\r\n\t}", "public static HashMap<String, String> getLangs() {\r\n\t\t// search for it\r\n\t\tHashMap<String, String> names = new HashMap<String, String>();\r\n\t\tnames.put(\"de\", \"Deutsch (integriert) - German (included)\");\r\n\r\n\t\t// load all files from this dir\r\n\t\tfor (File f : new File(YAamsCore.programPath, \"lang\").listFiles()) {\r\n\t\t\tif (f.isDirectory() && new File(f, \"info.xml\").canRead()) {\r\n\t\t\t\tHashMap<String, String> data = (HashMap<String, String>) FileHelper.loadXML(new File(f, \"info.xml\"));\r\n\t\t\t\tnames.put(f.getName(), data.get(\"title\"));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn names;\r\n\t}", "public LanguageDictionary readLanguageDictionary(File location) {\r\n\t\tif (this.mode == IoMode.LANGUAGE_DICTIONARY)\r\n\t\t\tthrow new IllegalStateException(\r\n\t\t\t\t\t\"Loop detected in LanguageDictionary Loading\");\r\n\r\n\t\tLanguageDictionary languageDict = (LanguageDictionary) this.readData(\r\n\t\t\t\tlocation, IoMode.LANGUAGE_DICTIONARY);\r\n\r\n\t\treturn languageDict;\r\n\t}", "public String getLanguageKey();", "Language findByCode(LanguageCode code);", "public PTDictionaryImpl(String lang) {\n language = lang;\n handle = ptInitLibrary0(lang);\n }", "Language findByMessageKeyAndLocale(String key, String locale);", "public boolean isInDictionary(String word, Language language) {\n if (isInDictionaryWithLabelAskQuery(word, language)) return true;\n else return isInDictionaryWithAltLabelAskQuery(word, language);\n }", "public String getValue(String language)\n {\n // Create the hashtable if not created during construction. This happens\n // when the object is created via de-serialization.\n if (mapping == null) createHashtable();\n\n // Lookup the value\n String value = null;\n if (language != null) value = (String) mapping.get(language);\n return (value == null) ? values[0] : value;\n }", "countrylanguage selectByPrimaryKey(countrylanguageKey key);", "public Language getExistingLanguage(int id) {\n\t\treturn languageRepository.findOne(id);\r\n\t}", "private String getTranslation(String language, String id)\n {\n Iterator<Translation> translations = mTranslationState.iterator();\n \n while (translations.hasNext()) {\n Translation translation = translations.next();\n \n if (translation.getLang().equals(language)) {\n Iterator<TranslationText> texts = translation.texts.iterator();\n \n while (texts.hasNext()) {\n TranslationText text = texts.next();\n \n if (text.getId().equals(id)) {\n text.setUsed(true);\n return text.getValue();\n }\n }\n }\n }\n \n return \"[Translation Not Available]\";\n }", "Language create(Language language);", "protected Language getLanguageByIdOrName(String languageIdOrName) {\n Optional<Language> language;\n if (languageIdOrName.matches(\"[0-9]+\")) {\n language = languageDao.getLanguageById(Integer.valueOf(languageIdOrName));\n } else {\n language = languageDao.getLanguageByName(languageIdOrName.toLowerCase());\n }\n if (!language.isPresent()) {\n throw new LanguageNotFoundException(languageIdOrName);\n }\n return language.get();\n }", "java.lang.String getLanguage();", "java.lang.String getLanguage();", "public void loadDictionary() {\r\n\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\t\tFileReader fr = new FileReader( \"rsc/English.txt\" );\r\n\t\t BufferedReader br = new BufferedReader(fr);\r\n\t \tString word ;\r\n\t \twhile (( word = br .readLine()) != null ) {\r\n\t\t// Aggiungere parola alla struttura dati\r\n\t \t\t\r\n\t \t\tthis.dictionary.add(word);\r\n\t \t\t\r\n\t\t}\r\n\t\tbr .close();\r\n\t\t} catch (IOException e ){\r\n\t\tSystem. out .println( \"Errore nella lettura del file\" );\r\n\t\t}\r\n\t\t\t\t\r\n\t\t\t\r\n\t try {\r\n\t\t\t\r\n\t\t\tFileReader fr = new FileReader( \"rsc/Italian.txt\" );\r\n\t\t BufferedReader br = new BufferedReader(fr);\r\n\t \tString word ;\r\n\t \twhile (( word = br .readLine()) != null ) {\r\n\t\t\t// Aggiungere parola alla struttura dati\r\n\t\t \t\t\r\n\t\t \t\tthis.dizionario.add(word);\r\n\t\t \t\t\r\n\t\t\t}\r\n\t\t\tbr .close();\r\n\t\t\t} catch (IOException e ){\r\n\t\t\tSystem. out .println( \"Errore nella lettura del file\" );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "private static ResourceBundle getBundle(String language) {\r\n\t\tResourceBundle bundle;\r\n\r\n\t\tLocale locale = new Locale(language);\r\n\t\tbundle = ResourceBundle.getBundle(filename, locale);\r\n\r\n\t\treturn bundle;\r\n\t}", "public static void main(String[] args) {\n String document = \"Ich programmiere gern in Java\";\n// String document = \"Me gusta programar en java\";\n String language = \"german\";\n DictionaryFactory dictionaryFactory = createFactoryByLanguage(language);\n Dictionary dict = dictionaryFactory.getDictionary();\n System.out.println(translateDocument(document, dict));\n }", "public Dict findByDictType(String dictType);", "public static void readDictionary()\r\n\t{\r\n\t\t//It trys to read over the file using try-catch in case of an Exception\r\n\t\ttry {\r\n\t\t\tFile file = new File(\"english.0\");\r\n\t\t\tScanner scan = new Scanner(file);\r\n\t\t\t//It reads over the file as long as there are words to read and we insert them into the given storage\r\n\t\t\twhile(scan.hasNext()) {\r\n\t\t\t\tdata.insert(scan.next());\r\n\t\t\t}\r\n\t\t\tscan.close(); \r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\t\t}\r\n\t}", "public AbstractLetterFactory decideLanguage(String lang){\n if(lang==\"ENG\"){\n Parameters.TARGET_CHROMOSOME = new char[]{'m', 'a', 'y', 'n', 'o', 'o', 't', 'h'};\n return new EnglishLetterFactory();\n\n }\n else if(lang==\"RUS\"){\n Parameters.TARGET_CHROMOSOME = new char[]{'м','а', 'ы', 'н', 'о', 'о', 'т', 'х'};\n return new RussianLetterFactory();\n }\n\n return new EnglishLetterFactory();\n\n }", "default boolean hasLanguage(@NotNull Language language) {\n return getLanguages().contains(language);\n }", "@Override\n protected synchronized int onLoadLanguage(String lang, String country, String variant) {\n final int isLanguageAvailable = onIsLanguageAvailable(lang, country, variant);\n\n if (isLanguageAvailable == TextToSpeech.LANG_NOT_SUPPORTED) {\n return isLanguageAvailable;\n }\n\n String loadCountry = country;\n if (isLanguageAvailable == TextToSpeech.LANG_AVAILABLE) {\n loadCountry = \"USA\";\n }\n\n // If we've already loaded the requested language, we can return early.\n if (mCurrentLanguage != null) {\n if (mCurrentLanguage[0].equals(lang) && mCurrentLanguage[1].equals(country)) {\n return isLanguageAvailable;\n }\n }\n\n Map<Character, Integer> newFrequenciesMap = null;\n try {\n InputStream file = getAssets().open(lang + \"-\" + loadCountry + \".freq\");\n newFrequenciesMap = buildFrequencyMap(file);\n file.close();\n } catch (IOException e) {\n Log.e(TAG, \"Error loading data for : \" + lang + \"-\" + country);\n }\n\n mFrequenciesMap = newFrequenciesMap;\n mCurrentLanguage = new String[] { lang, loadCountry, \"\"};\n\n return isLanguageAvailable;\n }", "String getLanguage();", "String getLanguage();", "String getLanguage();", "LanguageDescription getLanguageDescription(LanguageID languageID, int version)\n\t\t\tthrows LanguageNotFoundException;", "private boolean isInDictionaryWithLabelAskQuery(String word, Language language) {\n String queryString = \"ASK WHERE { ?c <http://www.w3.org/2000/01/rdf-schema#label> \\\"\" + word + \"\\\"@\" + language.toSparqlChar2() + \" . }\";\n //System.out.println(queryString);\n Query query = QueryFactory.create(queryString);\n QueryExecution queryExecution = QueryExecutionFactory.sparqlService(ENDPOINT_URL, query);\n boolean result = queryExecution.execAsk();\n return result;\n }", "public Properties loadLanguage(String lang) {\n\n\t\tthis.prop = new Properties();\n\t\t\n\t\tthis.currentLanguage = lang;\n\n\t\ttry {\n\t\t\t\n\t\t\tthis.input = new FileInputStream(this.rootPath + \"/_locales/lang_\" + lang + \".properties\");\n\n\t\t\t// load a properties file\n\t\t\tprop.load(this.input);\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t} \n\t\t\n\t\treturn prop;\n\t}", "public SpellChecker getSpellChecker(Locale locale) {\r\n SpellChecker spellChecker = null;\r\n if (resolvedLocales.get(locale) == null) {\r\n Collection<SpellDictionary> dictionaries = getHierarchyDictionaries(locale);\r\n this.logger.getLogger().info(\r\n \"Building SpellChecker for locale <\" + locale + \"> : found \" + dictionaries.size() + \" dictionaries\");\r\n if (dictionaries.size() > 0) {\r\n spellChecker = new SpellChecker();\r\n for (SpellDictionary dictionary : dictionaries) {\r\n spellChecker.addDictionary(dictionary);\r\n }\r\n spellCheckers.put(locale, spellChecker);\r\n }\r\n resolvedLocales.put(locale, true);\r\n\r\n } else {\r\n spellChecker = spellCheckers.get(locale);\r\n }\r\n return spellChecker;\r\n }", "String getLang();", "@RequestMapping(value = \"/{languageCode}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseBody\n public ApiResponse<SupportedLanguage> getOneLanguageByCode(@PathVariable String languageCode) {\n LOG.debug(\"REST request to get Language : {}\", languageCode);\n\n final ApiResponse <SupportedLanguage> apiResponse = new ApiResponse <SupportedLanguage>();\n\n SupportedLanguage language = null;\n\n try {\n language = supportedLanguageService.findOneLanguageByCode(languageCode);\n apiResponse.setData(language);\n\n } catch (Exception e) {\n throw new LucasRuntimeException(LucasRuntimeException.INTERNAL_ERROR, e);\n }\n\n return apiResponse;\n\n }", "public void setLanguage(String language) {\n this.standardPairs.put(Parameters.LANGUAGE, language);\n }", "private boolean isInDictionaryWithAltLabelAskQuery(String word, Language language) {\n String queryString = \"ASK WHERE { ?c <http://www.w3.org/2004/02/skos/core#altLabel> \\\"\" + word + \"\\\"@\" + language.toSparqlChar2() + \" . }\";\n //System.out.println(queryString);\n Query query = QueryFactory.create(queryString);\n QueryExecution queryExecution = QueryExecutionFactory.sparqlService(ENDPOINT_URL, query);\n boolean result = queryExecution.execAsk();\n return result;\n }", "private static void loadDictionaryConfig()\r\n\t{\r\n\t\tURL dictionaryConfigURL = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tBundle cfmlBundle = Platform.getBundle(CFMLPlugin.PLUGIN_ID);\r\n\t\t\tdictionaryConfigURL = org.eclipse.core.runtime.FileLocator.find(CFMLPlugin.getDefault().getBundle(),\r\n new Path(\"dictionary\"), null);\r\n\t\t\t\r\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\t\tfactory.setIgnoringComments(true);\r\n\t\t\tfactory.setIgnoringElementContentWhitespace(true);\r\n\t\t\tfactory.setCoalescing(true);\r\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t\t\t\r\n\t\t\tURL configurl = FileLocator.LocateURL(dictionaryConfigURL, \"dictionaryconfig.xml\");\r\n\t\t\t\t\t\t\r\n\t\t\tdictionaryConfig = builder.parse(configurl.getFile());\r\n\t\t\tif(dictionaryConfig == null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdictionaryConfig = builder.parse(\"jar:\"\r\n\t\t\t\t\t\t\t+ DictionaryManager.class.getClassLoader()\r\n\t\t\t\t\t\t\t\t\t.getResource(\"org.cfeclipse.cfml/dictionary/dictionaryconfig.xml\").getFile()\r\n\t\t\t\t\t\t\t\t\t.replace(\"dictionaryconfig.xml\", \"\"));\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tdictionaryConfig = builder.parse(\"jar:file:\" + DictionaryManager.class.getResource(\"/dictionaries.zip\").getFile()\r\n\t\t\t\t\t\t\t+ \"!/org.cfeclipse.cfml/dictionary/\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\t\t\te.printStackTrace(System.err);\r\n\t\t}\r\n\t}", "CLanguage getClanguage();", "public Object createLanguageSpecificVariant(String language)\n {\n LSData d = new LSData();\n d.language = language;\n return new ServiceDescriptionImpl(siCache, data, d);\n }", "public WordInfo searchWord(String word) {\n\t\tSystem.out.println(\"Dic:SearchWord: \"+word);\n\n\t\tDocument doc;\n\t\ttry {\n\t\t\tdoc = Jsoup.connect(\"https://dictionary.cambridge.org/dictionary/english-vietnamese/\" + word).get();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\tElements elements = doc.select(\".dpos-h.di-head.normal-entry\");\n\t\tif (elements.isEmpty()) {\n\t\t\tSystem.out.println(\" not found\");\n\t\t\treturn null;\n\t\t}\n\n\t\tWordInfo wordInfo = new WordInfo(word);\n\n\t\t// Word\n\t\telements = doc.select(\".tw-bw.dhw.dpos-h_hw.di-title\");\n\n\t\tif (elements.size() == 0) {\n\t\t\tSystem.out.println(\" word not found in doc!\");\n\t\t\treturn null;\n\t\t}\n\n\t\twordInfo.setWordDictionary(elements.get(0).html());\n\n\t\t// Type\n\t\telements = doc.select(\".pos.dpos\");\n\n\t\tif(elements.size() > 0) {\n\t\t\twordInfo.setType(WordInfo.getTypeShort(elements.get(0).html()));\n//\t\t\tif (wordInfo.getTypeShort().equals(\"\"))\n//\t\t\t\tSystem.out.println(\" typemis: \"+wordInfo.getType());\n\t\t}\n\n\t\t// Pronoun\n\t\telements = doc.select(\".ipa.dipa\");\n\n\t\tif (elements.size() > 0)\n\t\t\twordInfo.setAPI(\"/\"+elements.get(0).html()+\"/\");\n\n\t\t// Trans\n\t\telements = doc.select(\".trans.dtrans\");\n\n\t\tif (elements.size() > 0)\n\t\t\twordInfo.setTrans(elements.get(0).html());\n\n\t\tSystem.out.println(\" found\");\n\t\treturn wordInfo;\n\t}", "@DISPID(-2147413012)\n @PropGet\n java.lang.String language();", "private static ResourceBundle locateBundle(final String bundleName, final String lang) {\n \n /* Validate parameters. */\n if (bundleName == null || bundleName.equals(\"\")) { throw new IllegalArgumentException(\"bundleName must be a non-empty string.\"); }\n if (lang == null || lang.equals(\"\")) { throw new IllegalArgumentException(\"lang must be a non-empty string.\"); }\n \n /* Find fallback resource bundle. */\n ResourceBundle fallback;\n try {\n fallback = ResourceBundle.getBundle(bundleName, new Locale(\"bogus\"));\n } catch (MissingResourceException e) {\n fallback = null;\n }\n \n final Locale locale = new Locale(lang);\n ResourceBundle bundle = null;\n try {\n bundle = ResourceBundle.getBundle(bundleName, locale);\n } catch (MissingResourceException e) {\n /* No bundle was found, ignore and move on. */\n }\n \n if (bundle != fallback) { return bundle; }\n \n /* Check if the fallback is actually requested. */\n if (bundle != null && bundle == fallback && locale.getLanguage().equals(Locale.getDefault().getLanguage())) { return bundle; }\n \n /* No bundle found. */\n return null;\n }", "private Collection<SpellDictionary> getHierarchyDictionaries(Locale locale) {\r\n Collection<SpellDictionary> dictionaries = new ArrayList<SpellDictionary>();\r\n\r\n Locale currentLocale = locale;\r\n while (currentLocale != null) {\r\n dictionaries.addAll(getDictionaries(currentLocale));\r\n currentLocale = PropertiesFileUtils.getParentLocale(currentLocale);\r\n }\r\n\r\n // Add root dictionaries, if there is at least another locale dependent dictionary\r\n if (dictionaries.size() > 0) {\r\n dictionaries.addAll(getDictionaries(null));\r\n }\r\n return dictionaries;\r\n }", "private static Map<String, List<String>> loadCitiesByLanguage() {\n String resource = Config.get(\"generate.geography.foreign.birthplace.default_file\",\n \"geography/foreign_birthplace.json\");\n return loadCitiesByLanguage(resource);\n }", "private static int searchStandardDictionary(String word) {\n if (word.length() < 4) {\n return Arrays.binarySearch(STANDARD_DICTIONARY, 0, FOUR_LETTER_WORDS_OFFSET, word.toUpperCase(Locale.ENGLISH));\n } else {\n return Arrays.binarySearch(STANDARD_DICTIONARY, FOUR_LETTER_WORDS_OFFSET, STANDARD_DICTIONARY.length, word.toUpperCase(Locale.ENGLISH));\n }\n }", "public static ResourceBundle getProperties(String language) {\r\n\r\n\t\treturn properties.get(language);\r\n\t}", "private Language askForLanguage() {\r\n // Build a message\r\n String message = \"Which language ? \\n\";\r\n for (int i = 0; i < listLanguages.size(); i++) {\r\n message += \"\\t\" + i + \"\\\\ \" + listLanguages.get(i).getName() + \"\\n\";\r\n }\r\n // Ask for number and get the correct Language\r\n return listLanguages.get(new Integer(askForLine(message)));\r\n }", "public static Locale forLanguageTag(String langtag) {\n LanguageTag tag = null;\n while (true) {\n try {\n tag = LanguageTag.parse(langtag);\n break;\n } catch (InvalidLocaleIdentifierException e) {\n // remove the last subtag and try it again\n int idx = langtag.lastIndexOf('-');\n if (idx == -1) {\n // no more subtags\n break;\n }\n langtag = langtag.substring(0, idx);\n }\n }\n if (tag == null) {\n return Locale.ROOT;\n }\n\n Builder bldr = new Builder();\n\n bldr.setLanguage(tag.getLanguage()).setScript(tag.getScript())\n .setRegion(tag.getRegion()).setVariant(tag.getVariant());\n\n Set<Extension> exts = tag.getExtensions();\n if (exts != null) {\n Iterator<Extension> itr = exts.iterator();\n while (itr.hasNext()) {\n Extension e = itr.next();\n bldr.setExtension(e.getSingleton(), e.getValue());\n }\n }\n\n return bldr.create();\n }", "public void setLanguage(String language);", "Optional<Locale> getLanguage();", "private final void loadDictionary(String path, long startOffset, long length) {\n \tLog.e(TAG, \"loadDictionary: path=\" + path);\n mNativeDict = openNative(path, startOffset, length, TYPED_LETTER_MULTIPLIER,\n FULL_WORD_SCORE_MULTIPLIER, MAX_WORD_LENGTH, MAX_WORDS, MAX_PREDICTIONS);\n }", "List<Language> findAll();", "void addDicItem(String language, String key, String value)\n {\n DictionaryCache.addTranslation(language, key, value);\n }", "public void setLanguage(String language) {\n this.language = language;\n }", "public void setLanguage(String language) {\n this.language = language;\n }", "String getLangId();", "private File findConfigurationFile(String languageId, String fileName) throws UnsupportedEncodingException {\r\n\r\n String configFileName = \"\"; //$NON-NLS-1$\r\n if (languageId != null) {\r\n configFileName = fileName + \"_\" + languageId; //$NON-NLS-1$\r\n }\r\n\r\n File configFile = findConfigurationFile(configFileName + \".properties\"); //$NON-NLS-1$\r\n if (configFile == null) {\r\n configFile = findConfigurationFile(fileName + \".properties\"); //$NON-NLS-1$\r\n }\r\n\r\n return configFile;\r\n }", "public String getLanguage();", "public static void getListingTranslation(int listingId, String language){EtsyService.getService(\"/listings/\"+listingId+\"/translations/\"+language);}", "@Override\n\tpublic Langues find(int id) {\n\t\tLangues langue = new Langues();\n\t\tString query = \"SELECT * FROM langues WHERE ID = ? \";\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement statement = this.connect.prepareStatement(query);\n\t\t\tstatement.setInt(1, id);\n\t\t\tResultSet result = statement.executeQuery();\n\n\t\t\tif (result.first()) {\n\t\t\t\t\n\t\t\t\tlangue = new Langues(id, result.getString(\"Langue\"),result.getString(\"Iso6391\"));\n\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn langue;\n\t}", "private String getPhrase(String key) {\r\n if (\"pl\".equals(System.getProperty(\"user.language\")) && phrasesPL.containsKey(key)) {\r\n return phrasesPL.get(key);\r\n } else if (phrasesEN.containsKey(key)) {\r\n return phrasesEN.get(key);\r\n }\r\n return \"Translation not found!\";\r\n }", "Map<String,Object> getMasterData(String language)throws EOTException;", "public abstract AutoCompleteDictionary getDictionary(SearchCategory categoryToSearch);", "public void setLanguage(String language) {\r\n this.language = language;\r\n }", "public void createDictionary() \n {\n dictionary = new HashMap<String, Map<String, String>>();\n \n addTranslations(\n \"EN\", // Language code\n \"OK\", \"Ok\",\n \"UPDATE\", \"Update\",\n \"OPEN\", \"Open\",\n \"CLOSE\", \"Close\",\n \"CANCEL\", \"Cancel\",\n \"MESSAGES\", \"Messages\",\n \"NO_MESSAGES_TO_DISPLAY\", \"No messages to display\",\n \"EVALUATE\", \"Evaluate\",\n \"RUN\", \"Run\",\n \"RUN_AS_ACTIVITY\", \"Run Activity\",\n \"OPEN_SCRIPT\", \"Open script\",\n \"START_SERVER\", \"Start server\",\n \"STOP_SERVER\", \"Stop server\",\n \"SHOW_MESSAGES\", \"Messages\",\n \"UPDATE_APP_SCRIPTS\", \"Update\",\n \"THIS_WILL_OVERWRITE_ALL_APP_SCRIPTS\", \"This will overwrite all application scripts!\",\n \"ENTER_FILE_OR_URL\", \"Enter file or url:\",\n \"UPDATE_APP_SCRIPTS_DONE\", \"Update complete!\",\n \"UPDATE_APP_SCRIPTS_DONE_RESTART\", \"Restart the application to make changes take effect\",\n \"QUIT_APP\", \"Quit\",\n \"CLOSE\", \"Close\",\n \"BE_KIND\", \"Be kind\",\n \"BE_KIND_MESSAGE\", \"Be a kind person\"\n );\n }", "public static String getLocal(String value, String language){\n\t\tString localName = \"\";\n\t\tif (language.equals(LANGUAGES.DE)){\n\t\t\tlocalName = poiTypes_de.get(value);\n\t\t}else if (language.equals(LANGUAGES.EN)){\n\t\t\tlocalName = poiTypes_en.get(value);\n\t\t}\n\t\tif (localName == null){\n\t\t\tDebugger.println(\"Place.java - getLocal() has no '\" + language + \"' version for '\" + value + \"'\", 1);\n\t\t\treturn \"\";\n\t\t}\n\t\treturn localName;\n\t}", "public void updateLanguage(String lang) {\n\t\tmyLanguages.clear();\n\t\tString location = String.format(\"%s%s\", LANGUAGE_BASE, lang);\n\t\tResourceBundle rb = ResourceBundle.getBundle(location);\n\t\tfor (String key : rb.keySet()) {\n\t\t\tString[] input = rb.getString(key).split(\"\\\\|\");\n\t\t\tfor (String s : input) {\n\t\t\t\tmyLanguages.put(s.replace(\"\\\\\", \"\"), key);\n\t\t\t}\n\t\t}\n\t}", "Language findByTenantIdAndMessageKeyAndLocale(Long tenantId, String key, String locale);", "public String getTranslation(TranslationKey key, Language language) {\n if (key == null) return \"Null Key\";\n if (language == null) return \"Null Language\";\n\n for (TranslationHolder trans : getEntries()) {\n if (trans.getKey() != null && trans.getKey().equals(key)) return trans.getTranslation(language);\n }\n\n return \"Invalid Key\";\n }", "public DictionaryData lookup(String word) {\r\n\r\n return dictionaryMap.get(word.toUpperCase());\r\n }", "public static Map<String, Long> getTemplates(String endPoint, String language) {\n\t\tSystem.out.println(\" EP : \"+endPoint);\n\t\tSystem.out.println(\" language : \"+language);\n\t\tString response = null;\n\t\tMap<String, Long> templateMap = null;\n\t\tif(language == null || !language.isEmpty()) {\n\t\t\tlanguage = \"en\";\n\t\t}\n\t\tString urlParamStr = \"http://108.168.227.158/GetTemplates?endpoint=\"+endPoint+\"&language=\"+language;\n\t\ttry {\n\t\t\tWebResource webResource = getJerseyClient(urlParamStr);\n\t\t\tresponse = webResource.type(MediaType.APPLICATION_JSON).get(String.class);\n\t\t} catch (Exception e) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tWebResource webResource = getJerseyClient(urlParamStr);\n\t\t\tresponse = webResource.type(MediaType.APPLICATION_JSON).get(String.class);\n\t\t}\n\t\tList<TemplateTo> templateList = new ArrayList<TemplateTo>();\n\t\tif(response != null && !response.isEmpty()) {\n\n\t\t\tGson gson = new Gson();\n\t\t\tType templateResults = new TypeToken<Map<String, List<TemplateTo>>>(){}.getType();\n\t\t\t// Convert the data from the response JSON object\n\t\t\tMap<String, List<TemplateTo>> templateListMap = gson.fromJson(response, templateResults);\n\t\t\ttemplateList = templateListMap.get(\"templates\");\n\t\t\tif(templateListMap.get(\"templates\") != null && !templateListMap.get(\"templates\").isEmpty() ) {\n\t\t\t\ttemplateMap = new HashMap<String, Long>();\n\t\t\t\tfor (TemplateTo templateTo : templateList) {\n\t\t\t\t\ttemplateMap.put(templateTo.getDescription(), templateTo.getId());\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\tSystem.out.println(response);\n\t\treturn templateMap;\n\t}", "private void getDictionary(){\r\n // TODO: read Dictionary\r\n try{\r\n lstDictionary.clear();\r\n for(int i = 0; i < IConfig.LABEL_COUNT; i++){\r\n lstDictionary.add(new HashMap<>());\r\n DictionaryReader dictionaryReader = new DictionaryReader(lstDictionary.get(i), IConfig.DICTIONARY_URL[i]);\r\n dictionaryReader.read();\r\n }\r\n }catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }", "public WordDictionary() {\n\t\tthis.checker = new SpellChecker();\n\n\t\t\ttry {\n\t\t\t\tReader reader = new InputStreamReader(WordDictionary.class.getResourceAsStream(\"/english.txt\"));\n\t\t\t\tthis.checker.initialize(reader);\n\t\t\t} catch (Exception exception) {\n\t\t\t\tSystem.err.println(\"Wrong path to dictionary file\");\n\t\t\t\texception.printStackTrace();\n\t\t\t}\n\t}", "public static SyntaxDictionary getDictionaryByVersionAlt(String versionkey){\r\n\t\t\r\n\t\t\r\n\t\tif(dictionaryVersionCache.containsKey(versionkey)){\r\n\t\t\treturn (SyntaxDictionary)dictionaryVersionCache.get(versionkey);\r\n\t\t}\r\n\t\telse{\r\n\t\tSAXBuilder builder = new SAXBuilder();\r\n\t\tSyntaxDictionary dic = new SQLSyntaxDictionary();\r\n\t\tURL dictionaryConfigURL = null;\r\n\t\t\r\n\t\t\ttry {\r\n\t\t\t\tdictionaryConfigURL = new URL(\r\n\t\t\t\t\tCFMLPlugin.getDefault().getBundle().getEntry(\"/\"),\r\n\t\t\t\t\t\"dictionary/\"\r\n\t\t\t\t);\r\n\t\t\t\tURL configurl = FileLocator.LocateURL(dictionaryConfigURL, \"dictionaryconfig.xml\");\r\n\t\t\t\torg.jdom.Document document = builder.build(configurl);\r\n\t\t\t\t\r\n\t\t\t\tXPath x = XPath.newInstance(\"//dictionary[@id='CF_DICTIONARY']/version[@key=\\'\"+ versionkey +\"\\']/grammar[1]\");\r\n\t\t\t\t\r\n\t\t\t\tElement grammerElement = (Element)x.selectSingleNode(document);\r\n\t\t\t\tdic = new SQLSyntaxDictionary();\r\n\t\t\t\t((CFSyntaxDictionary)dic).loadDictionary(grammerElement.getAttributeValue(\"location\"));\r\n\t\t\t\tdictionaryVersionCache.put(versionkey, dic);\r\n\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (JDOMException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn (SyntaxDictionary)dictionaryVersionCache.get(versionkey);\r\n\t}", "public String getTranslation(String language_code, String key)\n {\n // Modified by Terry 20131127\n // Original:\n // return (DictionaryCache.getTranslationText(language_code,key));\n return (DictionaryCache.getTranslationText(getASPManager(),language_code,key));\n // Modified end\n }", "public static SymbolDocumentInfo symbolDocument(String fileName, UUID language) { throw Extensions.todo(); }", "boolean hasLanguage();", "public void setLanguage(String language) {\n _language = language;\n }", "public interface LanguageProvider {\n\tLanguageService study();\n}", "public void setLanguage(String lang) {\n\t\tthis.language = lang;\n\t}", "public static String getLanguage(String localeID) {\n/* 248 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "com.google.ads.googleads.v6.resources.LanguageConstantOrBuilder getLanguageConstantOrBuilder();", "void updateLang() {\n if (lang == null)\n lang = game.q;\n }", "public static ULocale forLanguageTag(String languageTag) {\n/* 1207 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public abstract AutoCompleteDictionary getDictionary(SearchCategory categoryToSearch,\n FilePropertyKey filePropertyKey);", "List<Label> findAllByLanguage(String language);", "@PermitAll\n @Override\n public List<Language> getLanguages(String lang) {\n Map params = new HashMap<String, Object>();\n if (lang != null) {\n params.put(CommonSqlProvider.PARAM_LANGUAGE_CODE, lang);\n }\n params.put(CommonSqlProvider.PARAM_ORDER_BY_PART, \"item_order\");\n return getRepository().getEntityList(Language.class, params);\n }", "public void setLanguage(String language)\n\t{\n\t\tthis.language = language;\n\t}", "public String getTitile(String language) {\n if (language.startsWith(\"e\")) {\n return enTitle;\n } else {\n return localTitle;\n }\n }", "com.google.protobuf.ByteString\n getLanguageBytes();", "public static void setLanguage(String lang){\n String propFileName = lang==null ? \"resources_en\" : lang.equals(\"tr\") ? \"resources_tr\" : \"resources_en\";\n initializeStaticObjects(ResourceBundle.getBundle(\"market.dental.resources.resultProp\", lang==null ? Locale.ENGLISH : lang.equals(\"tr\") ? new Locale(\"tr\") : Locale.ENGLISH));\n }", "@Override\n\tpublic List<Record> getRecordsByLanguage(Language language) {\n\t\tSession session=HibernateSessionFactory.getSession();\n\t\tTransaction tx=session.beginTransaction();\n\t\tList<Record> list=new ArrayList<Record>();\n\t\tRecordDAO recordDAO=new RecordDAO();\n\t\t\n\t\ttry{\n\t\t\tlist=recordDAO.getRecordsByLanguage(language);\n\t\t\ttx.commit();\n\t\t}catch(RuntimeException e){\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t\treturn list;\n\t}", "public interface DictionaryManager {\n List<Dictionary> getDictionaryByType(Integer type);\n}", "private JSONObject languageMenu(JSONObject base) {\n JSONObject lang = base.getJSONObject(\"language\");\n try {\n } catch (Exception e) {\n e.printStackTrace();\n }\n while (true) {\n String input = \"\";\n try {\n visual.renderSettings(lang, \"Language Settings\");\n visual.renderMessage(\"Write the option to change: \");\n input = visual.getInput();\n } catch (Exception e) {\n e.printStackTrace();\n }\n LanguageHandler langhan = LanguageHandler.getInstance();\n JSONObject opt = null;\n LanguageInfo info = null;\n switch (input) {\n case (\"name\"):\n opt = new JSONObject();\n opt.put(\"value\", lang.getString(\"name\"));\n opt.put(\"options\", new JSONArray(langhan.getLanguages()));\n try {\n visual.renderSettings(opt, \"Language\");\n String in = visual.getInput();\n if (langhan.getLanguages().contains(in)) {\n lang.put(\"name\", in);\n info = langhan.getLanguageInfo(in);\n lang.put(\"size\", info.getDimensions().get(0));\n lang.put(\"dictionary\", info.getDictionaries().get(0));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n case (\"size\"):\n opt = new JSONObject();\n info = langhan.getLanguageInfo(lang.getString(\"name\"));\n opt.put(\"value\", lang.getString(\"size\"));\n opt.put(\"options\", new JSONArray(info.getDimensions()));\n try {\n visual.renderSettings(opt, \"Size\");\n String in = visual.getInput();\n if (info.getDimensions().contains(in)) {\n lang.put(\"size\", in);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n case (\"dictionary\"):\n opt = new JSONObject();\n info = langhan.getLanguageInfo(lang.getString(\"name\"));\n opt.put(\"value\", lang.getString(\"dictionary\"));\n opt.put(\"options\", new JSONArray(info.getDictionaries()));\n try {\n visual.renderSettings(opt, \"Dictionary\");\n String in = visual.getInput();\n if (info.getDictionaries().contains(in)) {\n lang.put(\"dictionary\", in);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n case (\"back\"):\n return lang;\n }\n }\n }", "public void setLang(LANG language) {\n\t\tthis.language = language;\n\t}" ]
[ "0.6608259", "0.64457124", "0.6197881", "0.6132657", "0.6091442", "0.6002706", "0.59488934", "0.5946851", "0.5902508", "0.5856273", "0.5737882", "0.5735242", "0.57144344", "0.5712264", "0.5527696", "0.55081356", "0.54811126", "0.54648966", "0.5449584", "0.5419321", "0.54010916", "0.54010916", "0.53931725", "0.53678215", "0.5366352", "0.53575283", "0.5356892", "0.53405756", "0.5338683", "0.5328949", "0.5317729", "0.5317729", "0.5317729", "0.53128564", "0.53049845", "0.5283282", "0.52721465", "0.5269168", "0.52682525", "0.52621096", "0.5242671", "0.5226994", "0.5206542", "0.51860285", "0.51803166", "0.5177146", "0.51547366", "0.5139282", "0.5134579", "0.51280487", "0.5117106", "0.5050756", "0.50439185", "0.5036921", "0.50270075", "0.50204", "0.50183", "0.5014269", "0.5011727", "0.5011727", "0.5010464", "0.501028", "0.5003685", "0.49888885", "0.49830505", "0.49773696", "0.49773458", "0.49757874", "0.4967", "0.49642077", "0.49616653", "0.49593288", "0.4953521", "0.4952114", "0.494941", "0.49476933", "0.4946461", "0.4939133", "0.49157155", "0.49113166", "0.49112388", "0.49104708", "0.49081203", "0.4905782", "0.49025217", "0.49010122", "0.4898958", "0.48986897", "0.48952883", "0.48906657", "0.4887693", "0.48859063", "0.48851705", "0.48762015", "0.48720953", "0.48716292", "0.48613414", "0.4858844", "0.48578975", "0.48447174" ]
0.771297
0
Find the proper strategy for the specified level.
private IGhostStrategy findStrategy(Integer level) { IGhostStrategy strategy = null; int index = 0; boolean found = false; while (index < this.strategies.size() && !found) { IGhostStrategy dict = this.strategies.get(index); if (dict.isStrategyForLevel(level)) { strategy = dict; found = true; } index++; } if (!found) { LOG.warn(String.format("Strategy with level %s not found!", level)); } return strategy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static StrategyLevel getByName(String name) {\r\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n\t\t\tStrategyLevel result = VALUES_ARRAY[i];\r\n\t\t\tif (result.getName().equals(name)) {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public int getOperation (int levelChoosen)\n\t{\t\t\n\t\tif(levelChoosen == 0)\t//if easy mode\n\t\t{\n\t\t\tint operationNum = getRandomNum(1,100);\n\t\t\t\t\t\t\n\t\t\tif (operationNum <50)\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t}// end if\n\t\t\n\t\telse if (levelChoosen == 1)\t//if medium mode\n\t\t{\n\t\t\tint operationNum = getRandomNum(1,100);\n\t\t\t\n\t\t\tif (operationNum <40)\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse if (operationNum <80)\n\t\t\t{\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\telse if (operationNum<90)\n\t\t\t{\n\t\t\t\treturn 3;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn 4;\n\t\t\t}\n\t\t}// end else if\n\t\telse if (levelChoosen == 2 || levelChoosen == 3)\t//if hard or practise mode\n\t\t{\n\t\t\treturn getRandomNum(1,4);\n\t\t}// end else if\n\t\treturn 1;\n\t\t\n\t}", "public static StrategyLevel get(int value) {\r\n\t\tswitch (value) {\r\n\t\t\tcase LEVEL_NONE_VALUE: return LEVEL_NONE;\r\n\t\t\tcase LEVEL_PHASE_VALUE: return LEVEL_PHASE;\r\n\t\t\tcase LEVEL_STEP_VALUE: return LEVEL_STEP;\r\n\t\t\tcase LEVEL_ACTION_VALUE: return LEVEL_ACTION;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static StrategyLevel get(String literal) {\r\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n\t\t\tStrategyLevel result = VALUES_ARRAY[i];\r\n\t\t\tif (result.toString().equals(literal)) {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private StrategyType getStrategyType(String type) throws Exception {\n switch (type) {\n case \"greedy\":\n return StrategyType.GREEDY;\n case \"careful\":\n return StrategyType.CAREFUL;\n case \"tactical\":\n return StrategyType.TACTICAL;\n default:\n throw new Exception(\"Not supported type: \" + type);\n }\n }", "public static Level provideLevel(Class<? extends Level> cls) {\n switch (cls.getSimpleName()) {\n case \"LevelRandom\":\n return new LevelRandom(0, Level.Section.EIGHT.getY());\n case \"LevelOne\":\n return new LevelOne(1, Level.Section.EIGHT.getY());\n case \"LevelTwo\":\n return new LevelTwo(2, Level.Section.NINE.getY());\n case \"LevelThree\":\n return new LevelThree(3, Level.Section.SIX.getY());\n case \"LevelFour\":\n return new LevelFour(4, Level.Section.FOUR.getY());\n case \"LevelFive\":\n return new LevelFive(5, Level.Section.FOURTEEN.getY());\n case \"LevelSix\":\n return new LevelSix(6, Level.Section.THREE.getY());\n case \"LevelSeven\":\n return new LevelSeven(7, Level.Section.FOURTEEN.getY());\n case \"LevelEight\":\n return new LevelEight(8, Level.Section.SIX.getY());\n case \"LevelNine\":\n return new LevelNine(9, Level.Section.FOURTEEN.getY());\n default:\n return null;\n }\n }", "public int getExperienceForLevel(int level) {\r\n int points = 0;\r\n int output = 0;\r\n for (int lvl = 1; lvl <= level; lvl++) {\r\n points += Math.floor(lvl + 300.0 * Math.pow(2.0, lvl / 7.0));\r\n if (lvl >= level) {\r\n return output;\r\n }\r\n output = (int) Math.floor(points / 4);\r\n }\r\n return 0;\r\n }", "public static int getStrategyChoice() {\r\n\t\tint strategy = -1;\r\n\t\tgetStrategyScanner = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Choose the strategy of your opponent:\" +\r\n\t\t\t\t\"\\n\\t(\" + RANDOM + \") - Random player\" +\r\n\t\t\t\t\"\\n\\t(\" + DEFENSIVE + \") - Defensive player\" +\r\n\t\t\t\t\"\\n\\t(\" + SIDES + \") - To-the-Sides player player\");\r\n\t\twhile (strategy != RANDOM & strategy != DEFENSIVE\r\n\t\t\t\t& strategy != SIDES) {\r\n\t\t\tstrategy=getStrategyScanner.nextInt();\r\n\t\t}\r\n\t\treturn strategy;\r\n\t}", "ProbeLevel minimumLevel();", "public int checkLevel(int level, String requestTask) {\n\t\tint ret = 1;\n\t\tswitch(requestTask) {\n\t\tcase \"add\":\n\t\t\tif(level == 2)\n\t\t\t\tret = 1;\n\t\t\tbreak;\n\t\tcase \"delete\":\n\t\tcase \"modify\":\n\t\t\tif(level == 3)\n\t\t\t\tret = 1;\n\t\t}\n\t\treturn ret;\n\t}", "public void setLevel(String level) {\n this.level = level;\n }", "public void setLevel(String level) {\n this.level = level;\n }", "public CrawlerReportStrategy getStrategy(String inputURL, String strategyKey) {\n\n CrawlerReportStrategy strategy = null;\n\n if (\"S\".equals(strategyKey) && inputURL != null) {\n strategy = specificURLStrategy;\n ((SpecificURLStrategy) specificURLStrategy).setInputURL(inputURL);\n } else if (\"C\".equals(strategyKey)) {\n strategy = topComplexityCountStrategy;\n } else {\n strategy = allURLStrategy;\n }\n\n return strategy;\n }", "private int costToSupport(PlanGraphStep step, int currentLevel) {\n\t\t\n\t\tint cost = 0;\n\t\t\n\t\t/* make sure we can achieve step */\n\t\tif(step.getInitialLevel() != -1 && step.getInitialLevel() <= currentLevel) {\n\t\t\t\n\t\t\t/* cost of achieving a step is the max over the cost of achieving the preconditions */\n\t\t\tfor (PlanGraphLiteral precondition : step.getParentNodes()) {\n\t\t\t\tif (!isSupported(precondition, currentLevel - 1))\n\t\t\t\t\tcost = Math.max(cost, costToSupport(precondition, currentLevel - 1) + 1 );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tcost = Integer.MAX_VALUE;\n\t\t\n\t\treturn cost;\n\t}", "int getLevelAt(int pos) {\n return levels[pos];\n }", "protected static int calcMaxExpForLevel(int level){\n\t\tScriptEngineManager mgr = new ScriptEngineManager();\n\t ScriptEngine engine = mgr.getEngineByName(\"JavaScript\");\n\t String maxExpGeneratorString = RacesAndClasses.getPlugin()\n\t \t\t.getConfigManager().getGeneralConfig().getConfig_mapExpPerLevelCalculationString();\n\t \n\t maxExpGeneratorString = maxExpGeneratorString.replace(\"{level}\", String.valueOf(level));\n\t\t\n\t try{\n\t \tString parsedValue = (String) engine.eval(maxExpGeneratorString).toString();\t\n\t \tdouble doubleValue = Double.parseDouble(parsedValue);\n\t \tint intValue = (int) doubleValue;\n\t \t\n\t \treturn intValue;\n\t }catch(Exception exp){\n\t \treturn level * level * 1000;\n\t }\n\t \n\t}", "private int GetConversionLevelForTool( ItemStack stack, World world, int i, int j, int k )\r\n {\r\n \tif ( stack != null )\r\n \t{\r\n \tif ( stack.getItem() instanceof FCItemPickaxe )\r\n \t{\r\n \t\tint iToolLevel = ((FCItemTool)stack.getItem()).toolMaterial.getHarvestLevel();\r\n \t\t\r\n \t\tif ( iToolLevel >= GetEfficientToolLevel( world, i, j, k ) )\r\n \t\t{\r\n \t\t\treturn 2; \t\t\t\t\r\n \t\t}\r\n \t} \r\n \telse if ( stack.getItem() instanceof FCItemChisel )\r\n \t{\r\n \t\tint iToolLevel = ((FCItemTool)stack.getItem()).toolMaterial.getHarvestLevel();\r\n \t\t\r\n \t\tif ( iToolLevel >= GetEfficientToolLevel( world, i, j, k ) )\r\n \t\t{\r\n \t\tif ( iToolLevel >= GetUberToolLevel( world, i, j, k ) )\r\n \t\t{\r\n \t\t\treturn 3;\r\n \t\t}\r\n \t\t\r\n \t\t\treturn 1;\r\n \t\t}\r\n \t} \r\n \t}\r\n \t\r\n \treturn 0;\r\n }", "public static int getPrice(int level) {\n if (level >= Utility.PRICES.size()) {\n return Utility.PRICES.get(Utility.PRICES.size() - 1);\n }\n\n return Utility.PRICES.get(level);\n }", "public int level();", "public void setLevel(String level){\n\t\tthis.level = level;\n\t}", "int getLevel();", "int getLevel();", "int getLevel();", "int getLevel();", "int getLevel();", "double getLevel();", "double getLevel();", "public static LevelPackage calculateLevelPackage(int level){\n\t\tif(level < 1) return calculateLevelPackage(1);\n\t\t\n\t\treturn new LevelPackage(level, calcMaxExpForLevel(level));\n\t}", "abstract int getMaxLevel();", "public static Strategy getOptimalStrategy(StrategyPool sp)\r\n\t{\r\n\t\tStrategy optimalStrat = null;\r\n\t\tfor(int i = 0; i< sp.pool.size(); i++)\r\n\t\t{\r\n\t\t\tStrategy temp = sp.pool.get(i);\r\n\t\t\tif(temp.lostCount <= threshhold)\r\n\t\t\t{\r\n\t\t\t\toptimalStrat = temp;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn optimalStrat;\r\n\t}", "private static String encounter(int playerLevel){\r\n String encounterType;\r\n int number = 0;\r\n Random rand = new Random();\r\n if(playerLevel > 6){\r\n number = rand.nextInt(4);\r\n }else if(playerLevel > 4){\r\n number = rand.nextInt(3);\r\n }else{\r\n number = rand.nextInt(2);\r\n }\r\n switch(number){\r\n case 1:\r\n System.out.println(\"You found a Skeleton!\");\r\n encounterType = \"Skeleton\";\r\n break;\r\n case 2:\r\n System.out.println(\"You found a Devil!\");\r\n encounterType = \"Devil\";\r\n break;\r\n case 3:\r\n System.out.println(\"You have found Blue Moon City.\");\r\n encounterType = \"Blue Moon City\";\r\n break;\r\n default:\r\n System.out.println(\"You didn't find anything.\");\r\n encounterType = \"nothing\";\r\n break;\r\n }\r\n return encounterType; \r\n }", "public Player loadLevel(String level) {\n\t\tstopLevel();\n\t\tLevel temp = levels.get(level);\n\t\tif (temp == null) {\n\t\t\treturn null;\n\t\t}\n\t\tPlayer player = temp.load();\n\t\tcurrentObjective = temp.getObjective();\n\t\tlevelRunning = level;\n\t\treturn player;\n\t}", "public int getLevelByExperience(double exp) {\r\n int points = 0;\r\n int output;\r\n for (byte lvl = 1; lvl < 100; lvl++) {\r\n points += Math.floor(lvl + 300.0 * Math.pow(2.0, lvl / 7.0));\r\n output = (int) Math.floor(points / 4);\r\n if ((output - 1) >= exp) {\r\n return lvl;\r\n }\r\n }\r\n return 99;\r\n }", "private static List<Move> pathSolve(Level level){\n\t\tOptimisticMap optMap = new OptimisticMap(level);\n\t\t\n\t\tPoint dst = level.getExitPos();\n\t\t\n\t\t// Open nodes\n\t\tSortedMap<Integer, List<SolveNode>> nodes = new TreeMap<Integer, List<SolveNode>>();\n\t\t\n\t\t// Current costs to arrive to solve nodes\n\t\tint[][][] arrived = new int[level.getMapSize().x][level.getMapSize().y][Move.values().length];\n\t\tfor ( int x = 0 ; x < level.getMapSize().x ; x++ ){\n\t\t\tfor ( int y = 0 ; y < level.getMapSize().y ; y++ ){\n\t\t\t\tfor ( int d = 0 ; d < Move.values().length ; d++ ){\n\t\t\t\t\tarrived[x][y][d] = Integer.MAX_VALUE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Create initial nodes\n\t\t{\n\t\t\tPoint box = level.getBoxPos();\n\t\t\tPoint player = level.getPlayerPos();\n\t\t\tfor ( Move dir : Move.values()){\n\t\t\t\tPoint playerDst = dir.nextPosition(box);\n\t\t\t\tif ( level.isClearSafe(playerDst.x, playerDst.y)){\n\t\t\t\t\tList<Move> pathNoDesiredPlayerPosition = pathTo(level, player, box, playerDst);\n\t\t\t\t\tif ( pathNoDesiredPlayerPosition != null ){\n\t\t\t\t\t\tSolveNode node = new SolveNode();\n\t\t\t\t\t\tnode.moves = pathNoDesiredPlayerPosition;\n\t\t\t\t\t\tnode.box = (Point)box.clone();\n\t\t\t\t\t\tnode.playerDir = dir;\n\t\t\t\t\t\taddSolveNode(nodes, node, node.moves.size() + optMap.getValue(node.box.x, node.box.y));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\twhile ( nodes.isEmpty() == false ){\n\t\t\t// Get node to process\n\t\t\tSolveNode node = removeSolveNode(nodes);\n\t\t\tif ( node.box.equals(dst) ){\n\t\t\t\t// This is the best solution\n\t\t\t\treturn node.moves;\n\t\t\t}\n\t\t\t\n\t\t\t// Create new nodes trying to move the box in each direction\n\t\t\tfor ( Move dir : Move.values() ){\n\t\t\t\tSolveNode newNode = new SolveNode();\n\t\t\t\tnewNode.box = dir.nextPosition(node.box);\n\t\t\t\tnewNode.playerDir = dir.opposite();\n\t\t\t\t\n\t\t\t\t// First check if the box can be moved to that position (is clear)\n\t\t\t\tif ( level.isClearSafe(newNode.box.x, newNode.box.y) == false ){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Check if the player can move to the pushing position\n\t\t\t\tPoint player = node.playerDir.nextPosition(node.box);\n\t\t\t\tPoint playerDst = dir.opposite().nextPosition(node.box);\n\t\t\t\tList<Move> playerMoves = pathTo(level, player, node.box, playerDst);\n\t\t\t\tif ( playerMoves == null ){\n\t\t\t\t\t// The player can't move itself to the pushing position\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Check if the cost to arrive to the new node is less that the previous known\n\t\t\t\tif ( node.moves.size() + playerMoves.size() + 1 >= arrived[newNode.box.x][newNode.box.y][dir.index()] ){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\" + newNode.box.x + \" \" + newNode.box.y);\n\t\t\t\t\n\t\t\t\t// Add the new node to the open nodes\n\t\t\t\tnewNode.moves.addAll(node.moves);\n\t\t\t\tnewNode.moves.addAll(playerMoves);\n\t\t\t\tnewNode.moves.add(dir);\n\t\t\t\taddSolveNode(nodes, newNode, newNode.moves.size() + optMap.getValue(newNode.box.x, newNode.box.y));\n\t\t\t\tarrived[newNode.box.x][newNode.box.y][dir.index()] = newNode.moves.size();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// There is no solution\n\t\treturn null;\n\t}", "public void checkLevel(){\n if(score<50){\n level = 1;\n asteroidsMaxNumber = 5;\n }\n if(score>50 && level == 1){\n level = 2;\n asteroidsMaxNumber = 7;\n }\n if(score>100 && level == 2){\n level = 3;\n asteroidsMaxNumber = 10;\n }\n if(score>200 && level == 3){\n level = 4;\n asteroidsMaxNumber = 13;\n }\n if(score>350 && level == 4){\n level = 5;\n asteroidsMaxNumber = 15;\n }\n }", "public void setLevel(String level);", "public static Group getByLevel(int level) {\r\n\t\t\r\n\t\tif (groups == null || groups.size() == 0) \r\n\t\t\tbuildList();\r\n\t\t\r\n\t\tGroup group = null;\r\n\t\tIterator<Group> i = groups.iterator();\r\n\t\t\r\n\t\twhile (i.hasNext()) { \r\n\t\t\tgroup = i.next();\r\n\t\t\tif (group.level == level) \r\n\t\t\t\treturn group;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t\t\r\n\t}", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void loadPuzzle(String level) throws Exception\r\n\t{\r\n\t\tthis.level = level;\r\n\t\tString fileName = \"easyPuzzle.txt\";\r\n\t\tif(level.contentEquals(\"medium\"))\r\n\t\t\tfileName = \"mediumPuzzle.txt\";\r\n\t\telse if(level.contentEquals(\"hard\"))\r\n\t\t\tfileName = \"hardPuzzle.txt\";\r\n\t\t\r\n\t\tScanner input = new Scanner (new File(fileName));\r\n\t\t\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tint number = input.nextInt();\r\n\t\t\t\tif(number != 0)\r\n\t\t\t\t\tsolve(x, y, number);\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\tinput.close();\r\n\t\t\r\n\t}", "public double evaluateLevel(Level level)\n\t{\n\t\treturn 1.0;\n\t}", "public Level provideLevel(Class<? extends Level> cls, int levelNumber, double waterBoundary) {\n try {\n return cls.getConstructor(int.class, double.class).newInstance(levelNumber, waterBoundary);\n }\n catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) {\n e.printStackTrace();\n return null;\n }\n }", "public void setLevel(int level) {\n this.level = level;\n }", "public void setLevel(int level) {\n this.level = level;\n }", "private USER_LEVEL getUserLevel(String[] parameters) {\n if (parameters == null) {\n return USER_LEVEL.DEFAULT;\n }\n for (String param : parameters) {\n if (param.startsWith(USER_LEVEL_TAG)) {\n int start = USER_LEVEL_TAG.length();\n String type = param.substring(start);\n return TwitchUserLevel.getUserLevel(type);\n }\n }\n return USER_LEVEL.DEFAULT;\n }", "private int getLevel(String nextLine){\n\t\t Matcher matcher = plusminus.matcher(nextLine);\n\t\t if(matcher.find())\n\t\t \treturn matcher.start()+1;\n\t\telse return 0;\n\t\t\n\t}", "public String getSolution(String levelName) {\n Session session = null;\n\n try {\n session = factory.openSession();\n\n SokobanSolution sol = session.get(SokobanSolution.class, levelName);\n if (sol != null) {\n return sol.getSolution();\n }\n }\n catch (HibernateException ex) {\n System.out.println(ex.getMessage());\n }\n finally {\n if (session != null)\n session.close();\n }\n return null;\n }", "boolean supportsStrategy(String strategy);", "private void setLevel(){\n\t\tif(getD(y) <= T)\n\t\t\tlevel = \"lower\";\n\t\telse\n\t\t\tlevel = \"higher\";\n\t}", "int getGoalConfigLevelValue();", "public void loadLevel(int level) {\n if (level == 0) {\n return;\n }\n if (this.levels[level] == null) {\n this.elevatorLevelsUnlocked = Math.max(this.elevatorLevelsUnlocked,\n (int)((level-1)/5.0));\n \n this.levels[level] = new MineLevel.Builder(level).buildLevel(this);\n }\n Iterator<Gateway> gateways = this.levels[level-1].getGateways();\n Gateway nextGateway;\n while (gateways.hasNext()) {\n nextGateway = gateways.next();\n if (nextGateway.getDestinationGateway() == null) {\n nextGateway.setDestinationArea(this.levels[level]);\n nextGateway.setDestinationGateway(this.levels[level].getEntranceGateway());\n }\n }\n }", "public LevelInterface generateLevel (GamePlay playerMetrics);", "public abstract int levelRequired();", "public LockingStrategy getLockingStrategy(Lockable lockable, LockMode lockMode) {\n switch ( lockMode ) {\n case PESSIMISTIC_FORCE_INCREMENT:\n return new PessimisticForceIncrementLockingStrategy( lockable, lockMode );\n case PESSIMISTIC_WRITE:\n return new PessimisticWriteSelectLockingStrategy( lockable, lockMode );\n case PESSIMISTIC_READ:\n return new PessimisticReadSelectLockingStrategy( lockable, lockMode );\n case OPTIMISTIC:\n return new OptimisticLockingStrategy( lockable, lockMode );\n case OPTIMISTIC_FORCE_INCREMENT:\n return new OptimisticForceIncrementLockingStrategy( lockable, lockMode );\n default:\n return new SelectLockingStrategy( lockable, lockMode );\n }\n \t}", "public int getExpRequirement(int level, boolean isPromoted) {\r\n // TODO I have no idea what the exp table is above 25.\r\n if (level > 25 && !isPromoted) {\r\n return level * level * level * _expTable[1];\r\n }\r\n int index = level - 1;\r\n\r\n if (index < 0 || index > _expTable.length - 1) {\r\n _log.error(\"level index out of bounds: \" + level);\r\n return _expTable[_expTable.length - 1];\r\n }\r\n\r\n return _expTable[index];\r\n }", "private String runRecommendation(LeagueOfLegendsAccount account, String difficultyLevel) {\r\n if (difficultyLevel.equals(\"Beginner\")) {\r\n return championRecommendation(account, \"Beginner\");\r\n } else if (difficultyLevel.equals(\"Novice\")) {\r\n return championRecommendation(account, \"Novice\");\r\n } else if (difficultyLevel.equals(\"Advanced\")) {\r\n return championRecommendation(account, difficultyLevel);\r\n } else {\r\n return \"Not an existing classification of difficulty (Beginner, Novice, Advanced)\";\r\n }\r\n }", "public static double computeSqrtLevel(double selectivity, int level, SelectivityHolder holder) throws StandardException {\n if (level ==0) {\n selectivity *= holder.getSelectivity();\n return selectivity;\n }\n double incrementalSelectivity = 0.0d;\n incrementalSelectivity += holder.getSelectivity();\n for (int i =1;i<=level;i++)\n incrementalSelectivity=Math.sqrt(incrementalSelectivity);\n selectivity*=incrementalSelectivity;\n return selectivity;\n }", "public static int validate(int level) {\n if (validLevels.contains(level)) {\n return level;\n } else {\n throw new IllegalArgumentException(\"Invalid level\");\n }\n }", "private int getLevel() {\n return getStat(currentLevel);\n }", "GameLevel listLevelRanking(Integer levelId) throws LevelNotFoundException;", "Strategy createStrategy();", "private void getLevelByLevel(Node root, int level, ArrayList<LinkedList<Node>> arrL) {\n\t\tif(root == null) {\n\t\t\treturn;\n\t\t}\n\t\tLinkedList<Node> n = null;\n\t\tif(arrL.size() == level) {\n\t\t\t n = new LinkedList<>();\n\t\t\tn.add(root);\n\t\t\tarrL.add(n);\n\t\t} else {\n\t\t\tn = arrL.get(level);\n\t\t\tn.add(root);\n\t\t}\n\t\tgetLevelByLevel(root.left, level+1, arrL);\n\t\tgetLevelByLevel(root.right, level+1, arrL);\n\t\t\n\t}", "public int getStrategy() {\n\t\t \n\t\t return strategyInt;\n\t}", "StrategyType type();", "private Hit getLevelHit(final Ray r, final TestCounter c) {\n double minDist = Double.POSITIVE_INFINITY;\n Triangle curBest = null;\n for(final Triangle t : tri) {\n final double dist = t.hit(r, c);\n if(r.isValidDistance(dist) && dist < minDist) {\n minDist = dist;\n curBest = t;\n }\n }\n return new Hit(r, curBest, minDist, c);\n }", "public static String GetLevelTpye(int levelNum){\n\t\tif(levelNum==0){\n\t\t\treturn \"puzzle\";\n\t\t}\n\t\telse if(levelNum==1){\n\t\t\treturn \"lightning\";\n\t\t}\n\t\telse {\n\t\t\treturn \"release\";\n\t\t}\n\t}", "private void loadLevel(int level) throws SQLException, IOException {\n\t\tString levelText = LorannDAO.chooseLevel(level);\n\t\tthis.onTheLevel = new IElement[this.getWidth()][this.getHeight()];\n\t\tString[] levelArray = levelText.split(\"\\n\");\n\t\t\n\t\tfor(int y = 0; y < height; y++) {\n\t\t\tfor(int x = 0; x < width; x++) {\n\t\t\t\tswitch(levelArray[y].toCharArray()[x]) {\n\t\t\t\t\tcase '3':\n\t\t\t\t\t\tthis.setCharacterPosition(new Point(x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '5':\n\t\t\t\t\t\tthis.purses.add(new Purse(x, y, this));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '8':\n\t\t\t\t\t\tthis.energyBall = new CrystalEnergy(x,y,this);\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '9':\n\t\t\t\t\t\tthis.monsters.add(new Monster_2(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '6':\n\t\t\t\t\t\tthis.door = new Gate(x, y, this);\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '4':\n\t\t\t\t\t\tthis.monsters.add(new Monster_1(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tthis.monsters.add(new Monster_3(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tthis.monsters.add(new Monster_4(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault: \n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.getFromFileSymbol(levelArray[y].toCharArray()[x]));\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "int getLevelOfFunction();", "public void setLevel(int level){\n\t\tthis.level = level;\n\t}", "public static int getLevel(String username) {\n String query = \"SELECT `level` FROM \" + mysql_db + \".`login` WHERE `username` = ?\";\n try (Connection con = getConnection(); PreparedStatement pst = con.prepareStatement(query)) {\n pst.setString(1, username);\n ResultSet r = pst.executeQuery();\n if (r.next()) {\n return r.getInt(\"level\");\n }\n } catch (SQLException e) {\n logMessage(LOGLEVEL_IMPORTANT, \"SQL_ERROR in 'getLevel()': \" + e.getMessage());\n }\n return AccountType.GUEST; // Return 0, which is a guest and means it was not found; also returns this if not logged in\n }", "private Strategy getStrategyInstance() {\n if (strategyInstances.containsKey(strategy)) {\n return strategyInstances.get(strategy);\n } else {\n try {\n Strategy strategyInstance = strategy.getConstructor(Board.class).newInstance(board);\n strategyInstances.put(strategy, strategyInstance);\n return strategyInstance;\n } catch (Exception e) {\n System.err.println(\"Exception when intiating strategy with only board argument\");\n e.printStackTrace();\n return null;\n }\n }\n }", "public LevelSolutionData getLevelSolution(String levelId)\r\n\t{\r\n\t\tSession session = null;\r\n\t\tLevelSolutionData levelSolData=null;\r\n\t\tQuery query=null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tsession = factory.openSession();\r\n\t\t\tquery=session.createQuery(\"FROM LevelSolutionData as sol WHERE sol.levelId= :levelId\");\r\n\t\t\tquery.setParameter(\"levelId\", levelId);\r\n\t\t\tlevelSolData =(LevelSolutionData) query.getSingleResult();\r\n\t\t\t\t\t\t\t\r\n\t\t\tSystem.out.println(\"LevelSol From DB: \"+ levelSolData.toString());\r\n\t\t\treturn levelSolData;\r\n\t\t} \r\n\t\tcatch (HibernateException ex) \r\n\t\t{\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t} \r\n\t\tcatch (NoResultException e){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tfinally \r\n\t\t{\r\n\t\t\tif (session != null)\r\n\t\t\t\tsession.close();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Level getParentLevel(String dimension, String level) {\n\t\tList<Dimension> dimensions = this.Dim;\n\t\tfor (int j = 0; j < dimensions.size(); j++) { // for each dimension\n\t\t\tif (dimensions.get(j).hasSameName(dimension)) {\n\t\t\t\tArrayList<Hierarchy> current_hierachy = dimensions.get(j)\n\t\t\t\t\t\t.getHier();\n\t\t\t\tfor (int k = 0; k < current_hierachy.size(); k++) {// for each\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// hierarchy\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// dimension\n\t\t\t\t\tList<Level> current_lvls = current_hierachy.get(k).lvls;\n\t\t\t\t\tfor (int l = 0; l < current_lvls.size(); l++) {\n\t\t\t\t\t\tif (current_lvls.get(l).getName().equals(level)) {\n\t\t\t\t\t\t\tif (l < current_lvls.size() - 1)\n\t\t\t\t\t\t\t\treturn current_lvls.get(l + 1);\n\t\t\t\t\t\t\telse if (l + 1 < current_lvls.size())\n\t\t\t\t\t\t\t\treturn current_lvls.get(l + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "protected int getLevel(){\r\n return this.level;\r\n }", "public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }", "@Override\n public LevelType type(final float level, final float priceAsOfDate,\n final float rangePct) {\n \treturn SUPPORT;\n }", "public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}", "public static int getLevel()\n {\n return level;\n }", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "protected void setLevel(int level){\r\n this.level = level;\r\n }", "protected void setLevel(int level)\n {\n this.level = level;\n }", "void createNewLevel(int level);", "int fetchLevelOfStudent(Student student , Subject subject);", "int getOnLevel();", "@Override\r\n\tpublic boolean CheckPolicy(Level level , String key)\r\n\t{\r\n\t\t// Up\r\n\t\tif (key.equals(\"Up\"))\r\n\t\t{\r\n\t\t\t// There is a Wall\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY() - 1).get(level.get_characterX()).GetType() == \"Wall\")\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t// There is a Box and After that Wall\\Box\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY() - 1).get(level.get_characterX()).GetType() == \"Box\")\r\n\t\t\t{\r\n\t\t\t\tif(level.get_gameBoard().get(level.get_characterY() - 2).get(level.get_characterX()).GetType() == \"Wall\")\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\telse if(level.get_gameBoard().get(level.get_characterY() - 2).get(level.get_characterX()).GetType() == \"Box\")\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Down\r\n\t\telse if(key.equals(\"Down\"))\r\n\t\t{\r\n\t\t\t// There is a Wall\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY() + 1).get(level.get_characterX()).GetType() == \"Wall\")\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t// There is a Box and After that Wall\\Box\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY() + 1).get(level.get_characterX()).GetType() == \"Box\")\r\n\t\t\t{\r\n\t\t\t\tif(level.get_gameBoard().get(level.get_characterY() + 2).get(level.get_characterX()).GetType() == \"Wall\")\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\telse if(level.get_gameBoard().get(level.get_characterY() + 2).get(level.get_characterX()).GetType() == \"Box\")\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Left\r\n\t\telse if (key.equals(\"Left\"))\r\n\t\t{\r\n\t\t\t// There is a Wall\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() - 1).GetType() == \"Wall\")\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t// There is a Box and After that Wall\\Box\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() - 1).GetType() == \"Box\")\r\n\t\t\t{\r\n\t\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() - 2).GetType() == \"Wall\")\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\telse if(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() - 2).GetType() == \"Box\")\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Right\r\n\t\telse if(key.equals(\"Right\"))\r\n\t\t{\r\n\t\t\t// There is a Wall\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() + 1).GetType() == \"Wall\")\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t// There is a Box and After that Wall\\Box\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() + 1).GetType() == \"Box\")\r\n\t\t\t{\r\n\t\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() + 2).GetType() == \"Wall\")\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\telse if(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() + 2).GetType() == \"Box\")\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\telse\r\n\t\t\treturn false;\r\n\r\n\t\treturn true;\r\n\t}", "public double getLevel(SkillType name) { return levels.get(name); }", "private void computeStrategy(int player) {\n strategy = new MixedStrategy(nActs[player], 0d);\n double[] stratPayoffs = SolverUtils.computePureStrategyPayoffs(eGame, player, predictedOutcome, false);\n strategy.setBestResponse(stratPayoffs);\n }", "public BuildALevel(List<String> level) {\n this.level = level;\n this.map = new TreeMap<String, String>();\n // call the splitLevelDetails method\n splitLevelDetails();\n }", "public static long getTimeToLevel(final int skill, final int level, final int xpGainedPerHour) {\r\n\t\tif (xpGainedPerHour < 1) {\r\n\t\t\treturn 0L;\r\n\t\t}\r\n\t\treturn (long) (getExpToLevel(skill, level) * ONE_HOUR / xpGainedPerHour);\r\n\t}", "public static int getLevel() {\n return level;\n }", "public void setLevel(String value) {\n this.level = value;\n }", "int getMaxLevel();", "public int getLevel(){\n \t\treturn (strength + intelligence + stamina + Math.abs(charm) + Math.abs(cuteness))/5;\n \t}", "public void setLevel(int level) {\n filename = evaluate(getLat(), getLon(), level);\n }", "public int getLevel()\n {\n return level; \n }", "public static double getPercentToLevel(final int skill, final int level) {\r\n\t\tfinal DecimalFormat df = new DecimalFormat(\"##.##\");\r\n\t\tfinal int lvl = Skills.getRealLevel(skill);\r\n\t\tif (lvl == 99 && skill != Skills.DUNGEONEERING) {\r\n\t\t\treturn 0;\r\n\t\t} else if (lvl == 120 && skill == Skills.DUNGEONEERING) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tfinal double xpTotal = Skills.XP_TABLE[level] - Skills.XP_TABLE[lvl];\r\n\t\tif (xpTotal == 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tfinal double xpDone = Skills.getCurrentExp(skill) - Skills.XP_TABLE[lvl];\r\n\t\tfinal double progress = 100 * xpDone / xpTotal;\r\n\t\treturn Double.valueOf(df.format(progress));\r\n\t}" ]
[ "0.57052535", "0.5695291", "0.56694585", "0.5523692", "0.54850125", "0.5450693", "0.5352019", "0.52786136", "0.5227294", "0.5210452", "0.5148215", "0.5148215", "0.5137925", "0.51109225", "0.51046133", "0.5038261", "0.50172603", "0.5011405", "0.5007063", "0.499308", "0.49916756", "0.49916756", "0.49916756", "0.49916756", "0.49916756", "0.49590847", "0.49590847", "0.49560001", "0.49449107", "0.49381483", "0.4893846", "0.48897678", "0.48852795", "0.48847488", "0.48825565", "0.48809043", "0.48776343", "0.48765224", "0.48765224", "0.48765224", "0.48765224", "0.48765224", "0.48736635", "0.4866729", "0.4864866", "0.48443958", "0.48443958", "0.48170775", "0.48033914", "0.47872025", "0.47864446", "0.47803327", "0.47674718", "0.4749939", "0.47496945", "0.4733098", "0.47289413", "0.47230318", "0.47151563", "0.4712275", "0.47106084", "0.47083068", "0.4690958", "0.4682795", "0.46789783", "0.46725464", "0.46690452", "0.46639025", "0.46636304", "0.46589428", "0.46553266", "0.46370643", "0.46354818", "0.46348456", "0.4631951", "0.46264854", "0.46104103", "0.4608647", "0.46060708", "0.46015933", "0.4601329", "0.45974216", "0.45974216", "0.45906633", "0.45902106", "0.45899668", "0.45873564", "0.4578083", "0.45769328", "0.4573374", "0.457233", "0.45694318", "0.4569366", "0.455054", "0.45468926", "0.45465207", "0.4539714", "0.4538685", "0.45376295", "0.45375282" ]
0.8338499
0
Create the default header
public CDFHeader createDefaultCDFFileHeader(double mvaBase) { String header = " 99/99/99 LANL 100.0 9999 W 1 "; CDFHeader cHeader = new CDFHeader(header); cHeader.setMVABase(mvaBase); return cHeader; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Header createHeader();", "public JLabel buildDefaultHeader(){\n JLabel returnHeader = new JLabel();\n returnHeader.setHorizontalAlignment(SwingConstants.LEFT);\n returnHeader.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 48)); // Great font, makes it pop\n returnHeader.setForeground(Color.WHITE);\n returnHeader.setBackground(Color.BLACK);\n \n return returnHeader;\n }", "protected JTableHeader createDefaultTableHeader() {\r\n \treturn new JTableHeader(columnModel) {\r\n \t\t\r\n \t\tprivate static final long serialVersionUID = 1L;\r\n \t\t\r\n \t\tpublic String getToolTipText(MouseEvent e) {\r\n \t\t\tjava.awt.Point p = e.getPoint();\r\n \t\t\tint index = columnModel.getColumnIndexAtX(p.x);\r\n \t\t\tint realColumnIndex = convertColumnIndexToModel(index);\r\n \t\t\tif ((realColumnIndex >= 0) && (realColumnIndex < getModel().getColumnCount()))\r\n \t\t\t\treturn \"The column \" + getModel().getColumnName(realColumnIndex);\r\n \t\t\telse\r\n \t\t\t\treturn \"\";\r\n \t\t}\r\n \t};\r\n }", "private static Text createHeader() {\n StringBuilder stringBuilder = new StringBuilder();\n //noinspection HardCodedStringLiteral\n stringBuilder.append(\"Offset \");\n for (int i = 0; i < 16; i++) {\n stringBuilder.append(\" 0\");\n stringBuilder.append(Integer.toHexString(i));\n }\n stringBuilder.append(System.lineSeparator()).append(System.lineSeparator());\n Text result = new Text(stringBuilder.toString());\n //noinspection HardCodedStringLiteral\n result.getStyleClass().add(\"normal\");\n return result;\n }", "@Override\n\tprotected void createCompHeader() {\n\t\tString headerTxt = \"Add a New Pharmacy\";\n\t\tiDartImage icoImage = iDartImage.PHARMACYUSER;\n\t\tbuildCompHeader(headerTxt, icoImage);\n\t}", "private static UINode _createGlobalHeaders()\n {\n MarlinBean globalHeaders = new MarlinBean(FLOW_LAYOUT_NAME);\n\n //\n // add the client header\n //\n globalHeaders.addIndexedChild(\n ContextPoppingUINode.getUINode(NAVIGATION2_CHILD));\n\n //\n // create and add the default header\n //\n MarlinBean defaultHeader = new MarlinBean(GLOBAL_HEADER_NAME);\n\n defaultHeader.setAttributeValue(\n RENDERED_ATTR,\n new NotBoundValue(\n PdaHtmlLafUtils.createIsRenderedBoundValue(NAVIGATION2_CHILD)));\n\n globalHeaders.addIndexedChild(defaultHeader);\n\n return globalHeaders;\n }", "@Override\n\tprotected void createCompHeader() {\n\t\tString headerTxt = \"Cohorts Report\";\n\t\tiDartImage icoImage = iDartImage.PAVAS;\n\t\tbuildCompdHeader(headerTxt, icoImage);\n\t}", "public void createHeader() throws DocumentException\n {\n createHeader(100f, Element.ALIGN_LEFT);\n }", "protected JTableHeader createDefaultTableHeader() {\n return new JTableHeader(columnModel) {\n public String getToolTipText(MouseEvent e) {\n java.awt.Point p = e.getPoint();\n int index = columnModel.getColumnIndexAtX(p.x);\n int realIndex = columnModel.getColumn(index).getModelIndex();\n return columnToolTips[realIndex];\n }\n };\n }", "private void createHeaders(WritableSheet sheet)\r\n\t\t\tthrows WriteException {\n\t\taddHeader(sheet, 0, 0, reportProperties.getProperty(\"header1\"));\r\n\t\taddHeader(sheet, 1, 0, reportProperties.getProperty(\"header2\"));\r\n\t\taddHeader(sheet, 2, 0, reportProperties.getProperty(\"header3\"));\r\n\t\taddHeader(sheet, 3, 0, reportProperties.getProperty(\"header4\"));\r\n\t\t\r\n\r\n\t}", "private static String header() {\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }", "private HeaderUtil() {}", "@Override\n protected JTableHeader createDefaultTableHeader()\n {\n return new JTableHeader(columnModel)\n {\n /**\n * Serial version UID variable for the inner class.\n */\n public static final long serialVersionUID = 111222333444555601L;\n\n @Override\n public String getToolTipText(MouseEvent e)\n {\n int index = columnModel.getColumnIndexAtX( e.getPoint().x );\n int realIndex = columnModel.getColumn(index).getModelIndex();\n return columnNames[realIndex];\n }\n };\n }", "private void generateHeader() throws IOException {\r\n\t\tcharset = Charset.forName(encoding);\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\t//first line\r\n\t\tsb.append(\"HTTP/1.1 \");\r\n\t\tsb.append(statusCode);\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(statusText);\r\n\t\tsb.append(\"\\r\\n\");\r\n\t\t\r\n\t\t//second line\r\n\t\tsb.append(\"Content-type: \");\r\n\t\tsb.append(mimeType);\r\n\t\tif (mimeType.startsWith(\"text/\")) {\r\n\t\t\tsb.append(\" ;charset= \");\r\n\t\t\tsb.append(encoding);\r\n\t\t}\r\n\t\tsb.append(\"\\r\\n\");\r\n\t\t\r\n\t\t//third line\r\n\t\tif (contentLength > 0) {\r\n\t\t\tsb.append(\"Content-Length: \");\r\n\t\t\tsb.append(contentLength);\r\n\t\t\tsb.append(\"\\r\\n\");\r\n\t\t}\r\n\t\t\r\n\t\t//fourth line\r\n\t\tgetOutputCookies(sb);\r\n\t\tsb.append(\"\\r\\n\");\r\n\t\t\r\n\t\toutputStream.write(sb.toString().getBytes(Charset.forName(\"ISO_8859_1\")));\r\n\t\t\r\n\t\theaderGenerated = true;\r\n\t}", "public Header() {\n\t\tsuper(tag(Header.class)); \n\t}", "public DetailsFileHeaderTemplate() {\n\t\tsuper(ID_HEADER_LABEL, DESCRIPTION_HEADER_LABEL, OCCURRENCES_HEADER_LABEL);\n\t}", "@Override\n\tprotected String getHeaderTitle() {\n\t\treturn \"\";\n\t}", "@Override\r\n\tpublic String createHeader(String separator) {\n\t\treturn \"M1022C8\" + separator + \"M1022C7\" + separator + \"M1022C183\" + separator + \"M1022C31\" + separator + \"M1022C195\" + separator + \"M1022C32\"\r\n\t\t\t\t+ separator + \"M1022C210\" + separator + \"M1022C68\" + separator + \"M1022C67\" + separator + \"M1022C62\" + separator + \"M1022C61\" + separator\r\n\t\t\t\t+ \"M1022C213\" + separator + \"M1022C204\" + separator + \"M1022C62\" + separator + \"M1022C68\" + separator + \"M1022C61\" + separator + \"M1022C210\"\r\n\t\t\t\t+ separator + \"M1022C49\" + separator + \"M1022C67\" + separator + \"M1022C213\" + separator + \"M1022C49\";\r\n\t}", "private byte[] generateHeader() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(PROTOCOL_TAG);\n\t\tsb.append(' ');\n\t\tsb.append(statusCode);\n\t\tsb.append(' ');\n\t\tsb.append(statusText);\n\t\tsb.append(LINE_SEPARATOR);\n\t\tsb.append(CONTENT_TYPE_TAG);\n\t\tsb.append(' ');\n\t\t\n\t\tif (mimeType != null && mimeType.startsWith(MIME_TYPE_CHARSET_NEEDED)) {\n\t\t\tsb.append(mimeType);\n\t\t\tsb.append(MIME_TYPE_CHARSET_ADDON);\n\t\t\tsb.append(encoding);\n\t\t} else {\n\t\t\tsb.append(mimeType);\n\t\t}\n\t\tsb.append(LINE_SEPARATOR);\n\n\t\tif (contentLength != null) {\n\t\t\tsb.append(CONTENT_LENGTH_ADDON);\n\t\t\tsb.append(contentLength);\n\t\t\tsb.append(LINE_SEPARATOR);\n\t\t}\n\n\t\tfor (var cookie : outputCookies) {\n\t\t\tsb.append(cookieOutput(cookie));\n\t\t\tsb.append(LINE_SEPARATOR);\n\t\t}\n\t\tsb.append(LINE_SEPARATOR);\n\t\treturn sb.toString().getBytes(Charset.forName(DEFAULT_HEADER_CHARSET_NAME));\n\t}", "public abstract String header();", "public void createDisplayHeader()\r\n\t{\r\n\t\tboolean isEType;\r\n\t\tint currentK, lowestJValue, highestJValue;\r\n\r\n\t\t// redundant now\r\n\t\tisEType = getIsEType();\r\n\t\tcurrentK = getCurrentK();\r\n\t\tlowestJValue = getLowestJValue();\r\n\t\thighestJValue = getHighestJValue();\r\n\r\n\t\tString symmetry;\r\n\t\tString kOutput;\r\n\r\n\t\tif (isEType) {\r\n\t\t\tif (currentK >= 0) {\r\n\t\t\t\tkOutput = currentK + \"\";\r\n\t\t\t\tsymmetry = \"E1\";\r\n\t\t\t} else {\r\n\t\t\t\tkOutput = Math.abs(currentK) + \"\";\r\n\t\t\t\tsymmetry = \"E2\";\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tkOutput = Math.abs(currentK) + \"\";\r\n\t\t\tsymmetry = \"A\";\r\n\r\n\t\t\tif (currentK >= 0) {\r\n\t\t\t\tkOutput += \"+\";\r\n\t\t\t} else {\r\n\t\t\t\tkOutput += \"-\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString ls = System.lineSeparator();\r\n\t\tmainHeader = \"================================================================\"\r\n\t\t\t\t+ ls + \"Symmetry type:\\t\\t\\t\\t\\t\" + symmetry + ls\r\n\t\t\t\t+ \"The K of the lower energy is:\\t\\t\\t\" + kOutput + ls + \"The input \"\r\n\t\t\t\t+ INPUT_BRANCH_TYPE + \" branch was flipped:\\t\\t\\t\" + inputIsFlipped + ls\r\n\t\t\t\t+ \"The input \" + INPUT_BRANCH_TYPE + \" branch used a J range of:\\t\\t\"\r\n\t\t\t\t+ lowestJValue + \" to \" + highestJValue\r\n\t\t\t\t+ ls + ls + \"Results for these selections are...\" + ls;\r\n\r\n\t\tsetHeaderDisplayState(true);\r\n\t}", "private String createNewHeader(List<String> columns)\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n for (String column : columns)\r\n {\r\n sb.append(column);\r\n sb.append(SEPARATOR);\r\n }\r\n\r\n return sb.substring(0, sb.length() - 1);\r\n }", "protected void addDynamicHeaders() {\n }", "protected byte[] createHeader(AC35StreamMessage type, int sourceId) {\n byte[] header = super.createHeader(type);\n addFieldToByteArray(header, HEADER_SOURCE_ID, sourceId);\n return header;\n }", "private static MessageHeader createMetaHeader(byte[] meta) {\n\t\tObject[] iov;\n\t\tif(meta != null) {\n\t\t\tiov = new Object[2];\n\t\t\tiov[0] = meta;\n\t\t\tiov[1] = JALP_BREAK_STR;\n\t\t} else {\n\t\t\tiov = new Object[1];\n\t\t\tiov[0] = JALP_BREAK_STR;\n\t\t}\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\n\t\treturn mh;\n\t}", "String makeHeader() {\n StringBuilder ans = new StringBuilder(\" \"); // README shows two spaces at\n String sep=\"\"; //start with nothing to separate, then switch to | to separate\n for (int i = 0; i < toDisplay.getWidth(); i++) {\n ans.append(sep);\n ans.append(i);\n sep = \"|\";\n }\n ans.append(\"\\n\");\n return ans.toString();\n }", "private void initializeKnownHeaders() {\r\n needParceHeader = true;\r\n \r\n addMainHeader(\"city\", getPossibleHeaders(DataLoadPreferences.NH_CITY));\r\n addMainHeader(\"msc\", getPossibleHeaders(DataLoadPreferences.NH_MSC));\r\n addMainHeader(\"bsc\", getPossibleHeaders(DataLoadPreferences.NH_BSC));\r\n addMainIdentityHeader(\"site\", getPossibleHeaders(DataLoadPreferences.NH_SITE));\r\n addMainIdentityHeader(\"sector\", getPossibleHeaders(DataLoadPreferences.NH_SECTOR));\r\n addMainHeader(INeoConstants.PROPERTY_SECTOR_CI, getPossibleHeaders(DataLoadPreferences.NH_SECTOR_CI));\r\n addMainHeader(INeoConstants.PROPERTY_SECTOR_LAC, getPossibleHeaders(DataLoadPreferences.NH_SECTOR_LAC));\r\n addMainHeader(INeoConstants.PROPERTY_LAT_NAME, getPossibleHeaders(DataLoadPreferences.NH_LATITUDE));\r\n addMainHeader(INeoConstants.PROPERTY_LON_NAME, getPossibleHeaders(DataLoadPreferences.NH_LONGITUDE));\r\n // Stop statistics collection for properties we will not save to the sector\r\n addNonDataHeaders(1, mainHeaders);\r\n \r\n // force String types on some risky headers (sometimes these look like integers)\r\n useMapper(1, \"site\", new StringMapper());\r\n useMapper(1, \"sector\", new StringMapper());\r\n \r\n // Known headers that are sector data properties\r\n addKnownHeader(1, \"beamwidth\", getPossibleHeaders(DataLoadPreferences.NH_BEAMWIDTH), false);\r\n addKnownHeader(1, \"azimuth\", getPossibleHeaders(DataLoadPreferences.NH_AZIMUTH), false);\r\n }", "@Override\n\tpublic void addHeader(String name, String value) {\n\t}", "private void createHeader(int propertyCode) {\r\n switch (propertyCode) {\r\n case 0:\r\n _header = \"\";\r\n break;\r\n case 1:\r\n _header = \"#directed\";\r\n break;\r\n case 2:\r\n _header = \"#attributed\";\r\n break;\r\n case 3:\r\n _header = \"#weighted\";\r\n break;\r\n case 4:\r\n _header = \"#directed #attributed\";\r\n break;\r\n case 5:\r\n _header = \"#directed #weighted\";\r\n break;\r\n case 6:\r\n _header = \"#directed #attributed #weighted\";\r\n break;\r\n case 7:\r\n _header = \"#attributed #weighted\";\r\n break;\r\n }\r\n }", "private static MessageHeader createBreakHeader() {\n\n\t\tObject[] iov = new Object[1];\n\t\tiov[0] = JALP_BREAK_STR;\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\n\t\treturn mh;\n\t}", "private static MessageHeader createHeader(ConnectionHeader connectionHeader, File file) {\n\n\t\tObject[] iov = new Object[4];\n\t\tiov[0] = connectionHeader.getProtocolVersion();\n\t\tiov[1]= connectionHeader.getMessageType();\n\t\tiov[2] = connectionHeader.getDataLen();\n\t\tiov[3] = connectionHeader.getMetaLen();\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\t\tif(file != null) {\n\t\t\tmh.setFilePath(file.getAbsolutePath());\n\t\t}\n\n\t\treturn mh;\n\t}", "protected void initializeHeader() throws PiaRuntimeException, IOException{\n try{\n super.initializeHeader();\n if( firstLineOk && headersObj == null ){\n\t// someone just give us the first line\n\theadersObj = new Headers();\n }\n }catch(PiaRuntimeException e){\n throw e;\n }catch(IOException ioe){\n throw ioe;\n }\n }", "@Override\n public void addHeader(String arg0, String arg1) {\n\n }", "protected FileHeader buildDefaultFileHeader( License license, String projectName, String inceptionYear,\n String copyrightHolder, boolean addSvnKeyWords, String encoding )\n throws IOException\n {\n FileHeader result = new FileHeader();\n\n StringBuilder buffer = new StringBuilder();\n buffer.append( projectName );\n if ( addSvnKeyWords )\n {\n // add svn keyworks\n char ls = FileHeaderTransformer.LINE_SEPARATOR;\n buffer.append( ls );\n\n // breaks the keyword otherwise svn will update them here\n //TC-20100415 : do not generate thoses redundant keywords\n// buffer.append(ls).append(\"$\" + \"Author$\");\n// buffer.append(ls).append(\"$\" + \"LastChangedDate$\");\n// buffer.append(ls).append(\"$\" + \"LastChangedRevision$\");\n buffer.append( ls ).append( \"$\" + \"Id$\" );\n buffer.append( ls ).append( \"$\" + \"HeadURL$\" );\n\n }\n result.setDescription( buffer.toString() );\n if ( getLog().isDebugEnabled() )\n {\n getLog().debug( \"header description : \" + result.getDescription() );\n }\n\n String licenseContent = license.getHeaderContent( encoding );\n result.setLicense( licenseContent );\n\n Integer firstYear = Integer.valueOf( inceptionYear );\n result.setCopyrightFirstYear( firstYear );\n\n Calendar cal = Calendar.getInstance();\n cal.setTime( new Date() );\n Integer lastYear = cal.get( Calendar.YEAR );\n if ( firstYear < lastYear )\n {\n result.setCopyrightLastYear( lastYear );\n }\n result.setCopyrightHolder( copyrightHolder );\n return result;\n }", "public Header(String t) {\n this.title=t;\n }", "@Override\n\t\tpublic String getHeader(String name) {\n\t\t\treturn null;\n\t\t}", "protected String buildHeader(String documentType) {\n return (\"<?xml version=\\\"1.0\\\" ?>\" + \n \"\\n<!DOCTYPE \" + \n documentType + \n \" SYSTEM \\\"\" + \n ConocoInformation.MESSAGE_DTD + \n \"\\\">\\n\");\n }", "private HeaderBuilder createBasicHeaderMessage( int statusCode ) {\r\n\t\tHeaderBuilder builder = new HeaderBuilder();\r\n\t\treturn builder.buildHeaderBegin( statusCode, request.getHttpVersion() ).buildConnection( \"close\" );\r\n\t}", "private void writeHEADER() throws IOException {\n\t\tmeta.compute_checksum();\n\t\tmeta.write();\n\t\t\n\t\t// We could also generate a non-aldus metafile :\n\t\t// writeClipboardHeader(meta);\n\t\t\n\t\t// Generate the standard header common to all metafiles.\n\t\thead.write();\n\t}", "abstract public void header();", "protected String getPageHeader()\n {\n if (this.pageHeader == null) {\n String title = (this.privateLabel != null)? this.privateLabel.getPageTitle() : \"\";\n StringBuffer sb = new StringBuffer();\n sb.append(\"<center>\");\n sb.append(\"<span style='font-size:14pt;'><b>\" + title + \"</b></span>\");\n sb.append(\"<hr>\");\n sb.append(\"</center>\");\n this.pageHeader = sb.toString();\n }\n return this.pageHeader;\n }", "public abstract Builder headers(String... paramVarArgs);", "private Map<String, String> getDefaultAdditionalHeader() {\n Map<String, String> additionalHeader = new HashMap<>();\n additionalHeader.put(\"accept-encoding \", \"gzip, deflate, sdch\");\n additionalHeader.put(\"Referer\", referer);\n additionalHeader.put(\"Upgrade-Insecure-Requests\", \"1\");\n return additionalHeader;\n }", "@Override\n\tprotected FileHeader generateFileHeader(byte[] encryptedSessionKey) {\n\n\t\tFileHeader fh = new FileHeader();\n\t\tfh.setEncryptedSessionKey(encryptedSessionKey);\n\t\tfh.setVersion(1);\n\t\t\n\t\treturn fh;\n\t}", "private NetFlowHeader prepareHeader() throws IOException {\n NetFlowHeader internalHeader;\n int numBytesRead = 0;\n int lenRead = 0;\n WrappedByteBuf buf;\n byte[] headerArray;\n\n // Read header depending on stream version (different from flow version)\n if (streamVersion == 1) {\n // Version 1 has static header\n // TODO: verify header size for stream version 1\n lenRead = NetFlowHeader.S1_HEADER_SIZE - METADATA_LENGTH;\n internalHeader = new NetFlowHeader(streamVersion, byteOrder);\n } else {\n // Version 3 with dynamic header size\n headerArray = new byte[HEADER_OFFSET_LENGTH];\n numBytesRead = in.read(headerArray, 0, HEADER_OFFSET_LENGTH);\n if (numBytesRead != HEADER_OFFSET_LENGTH) {\n throw new UnsupportedOperationException(\"Short read while loading header offset\");\n }\n\n buf = WrappedByteBuf.init(headerArray, byteOrder);\n int headerSize = (int)buf.getUnsignedInt(0);\n if (headerSize <= 0) {\n throw new UnsupportedOperationException(\"Failed to load header of size \" + headerSize);\n }\n\n // Actual header length, determine how many bytes to read\n lenRead = headerSize - METADATA_LENGTH - HEADER_OFFSET_LENGTH;\n internalHeader = new NetFlowHeader(streamVersion, byteOrder, headerSize);\n }\n\n // allocate buffer for length to read\n headerArray = new byte[lenRead];\n numBytesRead = in.read(headerArray, 0, lenRead);\n if (numBytesRead != lenRead) {\n throw new UnsupportedOperationException(\"Short read while loading header data\");\n }\n // build buffer\n buf = WrappedByteBuf.init(headerArray, byteOrder);\n\n // resolve stream version (either 1 or 3)\n if (streamVersion == 1) {\n internalHeader.setFlowVersion((short)buf.getUnsignedShort(0));\n internalHeader.setStartCapture(buf.getUnsignedInt(2));\n internalHeader.setEndCapture(buf.getUnsignedInt(6));\n internalHeader.setHeaderFlags(buf.getUnsignedInt(10));\n internalHeader.setRotation(buf.getUnsignedInt(14));\n internalHeader.setNumFlows(buf.getUnsignedInt(18));\n internalHeader.setNumDropped(buf.getUnsignedInt(22));\n internalHeader.setNumMisordered(buf.getUnsignedInt(26));\n // Read hostname fixed bytes\n byte[] hostnameBytes = new byte[NetFlowHeader.S1_HEADER_HN_LEN];\n buf.getBytes(30, hostnameBytes, 0, hostnameBytes.length);\n internalHeader.setHostname(new String(hostnameBytes));\n // Read comments fixed bytes\n byte[] commentsBytes = new byte[NetFlowHeader.S1_HEADER_CMNT_LEN];\n buf.getBytes(30 + hostnameBytes.length, commentsBytes, 0, commentsBytes.length);\n internalHeader.setComments(new String(commentsBytes));\n\n // Dereference arrays\n hostnameBytes = null;\n commentsBytes = null;\n } else {\n // Resolve TLV (type-length value)\n // Set decode pointer to first tlv\n int dp = 0;\n int left = lenRead;\n // Smallest TLV is 2+2+0 (null TLV)\n // tlv_t - TLV type, tlv_l - TLV length, tlv_v - TLV value\n int tlv_t = 0;\n int tlv_l = 0;\n int tlv_v = 0;\n\n // Byte array for holding Strings\n byte[] pr;\n\n while (left >= 4) {\n // Parse type, store in host byte order\n tlv_t = buf.getUnsignedShort(dp);\n dp += 2;\n left -= 2;\n\n // Parse len, store in host byte order\n tlv_l = buf.getUnsignedShort(dp);\n dp += 2;\n left -= 2;\n\n // Parse val\n tlv_v = dp;\n\n // Point decode buffer at next tlv\n dp += tlv_l;\n left -= tlv_l;\n\n // TLV length check\n if (left < 0) {\n break;\n }\n\n switch(tlv_t) {\n // FT_TLV_VENDOR\n case 0x1:\n internalHeader.setVendor(buf.getUnsignedShort(tlv_v));\n break;\n // FT_TLV_EX_VER\n case 0x2:\n internalHeader.setFlowVersion((short) buf.getUnsignedShort(tlv_v));\n break;\n // FT_TLV_AGG_VER\n case 0x3:\n internalHeader.setAggVersion(buf.getUnsignedByte(tlv_v));\n break;\n // FT_TLV_AGG_METHOD\n case 0x4:\n internalHeader.setAggMethod(buf.getUnsignedByte(tlv_v));\n break;\n // FT_TLV_EXPORTER_IP\n case 0x5:\n internalHeader.setExporterIP(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_START\n case 0x6:\n internalHeader.setStartCapture(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_END\n case 0x7:\n internalHeader.setEndCapture(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_HEADER_FLAGS\n case 0x8:\n internalHeader.setHeaderFlags(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_ROT_SCHEDULE\n case 0x9:\n internalHeader.setRotation(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_COUNT\n case 0xA:\n internalHeader.setNumFlows(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_LOST\n case 0xB:\n internalHeader.setNumDropped(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_MISORDERED\n case 0xC:\n internalHeader.setNumMisordered(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_PKT_CORRUPT\n case 0xD:\n internalHeader.setNumCorrupt(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_SEQ_RESET\n case 0xE:\n internalHeader.setSeqReset(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_HOSTNAME\n case 0xF:\n pr = new byte[tlv_l];\n buf.getBytes(tlv_v, pr, 0, pr.length);\n // Expected null-terminated string\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n\n internalHeader.setHostname(new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_COMMENTS\n case 0x10:\n pr = new byte[tlv_l];\n buf.getBytes(tlv_v, pr, 0, pr.length);\n // Expected null-terminated string\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n internalHeader.setComments(new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_IF_NAME\n case 0x11:\n // uint32_t, uint16_t, string:\n // - IP address of device\n // - ifIndex of interface\n // - interface name\n long ip = buf.getUnsignedInt(tlv_v);\n int ifIndex = buf.getUnsignedShort(tlv_v + 4);\n pr = new byte[tlv_l - 4 - 2];\n buf.getBytes(tlv_v + 4 + 2, pr, 0, pr.length);\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n internalHeader.setInterfaceName(ip, ifIndex, new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_IF_ALIAS\n case 0x12:\n // uint32_t, uint16_t, uint16_t, string:\n // - IP address of device\n // - ifIndex count\n // - ifIndex of interface (count times)\n // - alias name\n long aliasIP = buf.getUnsignedInt(tlv_v);\n int aliasIfIndexCnt = buf.getUnsignedShort(tlv_v + 4);\n int aliasIfIndex = buf.getUnsignedShort(tlv_v + 4 + 2);\n pr = new byte[tlv_l - 4 - 2 - 2];\n buf.getBytes(tlv_v + 4 + 2 + 2, pr, 0, pr.length);\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n\n internalHeader.setInterfaceAlias(aliasIP, aliasIfIndexCnt, aliasIfIndex,\n new String(pr, 0, pr.length - 1));\n break;\n // Case 0x0\n default:\n break;\n }\n }\n buf = null;\n pr = null;\n }\n return internalHeader;\n }", "private static String headerSummary() {\r\n\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\usepackage{rotating}\\n\";\r\n output += \"\\\\usepackage{textcomp}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }", "void addHeader(String headerName, String headerValue);", "private HeaderBuilder createSimpleHeaderMessage( int statusCode, File document, boolean allowCache ) {\r\n\t\tHeaderBuilder builder = createBasicHeaderMessage( statusCode ).buildContentTypeAndLength( document );\r\n\t\tif ( allowCache && HttpdConf.CACHE_ENABLE )\r\n\t\t\tbuilder.buildLastModified( document.lastModified() ).buildCacheControl( \"public\" );\r\n\t\treturn builder;\r\n\r\n\t}", "private static byte[] createHeader() {\n Random r = new Random();\n\n byte[] output = new byte[12];\n\n // Create random message id\n short messageID = (short) r.nextInt(Short.MAX_VALUE + 1);\n\n // Create a buffer we can construct the header in.\n ByteBuffer buf = ByteBuffer.wrap(output);\n\n // Place the message into the buffer.\n buf.putShort(messageID);\n\n // Sets QR, OPCODE, AA, TC, RD, RA, and RCODE\n buf.put((byte)0x01);\n buf.put((byte)0x20);\n\n // QDCOUNT, we're making one request.\n buf.putShort((short) 1);\n\n // Rest are 0\n buf.putShort((short) 0);\n buf.putShort((short) 0);\n buf.putShort((short) 0);\n\n return output;\n }", "private HorizontalLayout getHeader() {\n HorizontalLayout header = new HorizontalLayout();\n header.setWidth(\"100%\");\n header.setHeight(\"100px\");\n // TODO move this into a separate HeaderView class\n header.addComponent(new Label(\"Patient Management System Team Green\"));\n return header;\n }", "private StringBuilder headerSetup(Meal meal) {\n StringBuilder mealHeader = new StringBuilder();\n\n mealHeader.append(meal.getDesc());\n mealHeader.append(\":\\n\");\n\n return mealHeader;\n }", "private void validatedHeader() {\n\t\tif(loginView != null){\n\t\t\tLabel greeting = new Label(T.get(\"LABEL_TOP_BAR_GREETING\") + T.get(\"LABEL_GUEST_USER\"));\n\t\t\tLanguageSelector languageSelector = new LanguageSelector(loginView);\n\t\t\tThemeSelector themeSelector = new ThemeSelector();\n\t\t\tbuildHeader(greeting ,null, languageSelector, themeSelector);\n\t\t}\n\t\telse if(registerView != null){\n\t\t\tLabel greeting = new Label(T.get(\"LABEL_TOP_BAR_GREETING\") + T.get(\"LABEL_GUEST_USER\"));\n\t\t\tLanguageSelector languageSelector = new LanguageSelector(registerView);\n\t\t\tThemeSelector themeSelector = new ThemeSelector();\n\t\t\tbuildHeader(greeting ,null, languageSelector, themeSelector);\n\t\t}\n\t\telse if(mainView != null){\n\t\t\tString username = UI.getCurrent().getSession().getAttribute(T.system(\"SESSION_NAME\")).toString();\n\t\t\tLabel greeting = new Label(T.get(\"LABEL_TOP_BAR_GREETING\") + username);\n\t\t\tLanguageSelector languageSelector = new LanguageSelector(mainView);\n\t\t\tThemeSelector themeSelector = new ThemeSelector();\n\t\t\tLogoutButton logout = new LogoutButton();\n\t\t\tbuildHeader(greeting ,logout, languageSelector, themeSelector);\n\t\t}\n\t\tsetStyleName(T.system(\"STYLE_VIEW_TOP_BAR\"));\n\t}", "private void insertHeader(StringBuilder sb) {\n String id = \"ID\";\n String name = \"Name\";\n String objects = \"Objects collected\";\n sb.append(id);\n insertSpacing(sb, id);\n sb.append(name);\n insertSpacing(sb, name);\n sb.append(objects);\n insertSpacing(sb, objects);\n sb.append(NEWLINE);\n sb.append(\"---------------------------------------------------------------\");\n sb.append(NEWLINE);\n }", "public void buildClassHeader() {\n\t\tString key;\n\t\tif (isInterface) {\n\t\t\tkey = \"doclet.Interface\";\n\t\t} else if (isEnum) {\n\t\t\tkey = \"doclet.Enum\";\n\t\t} else {\n\t\t\tkey = \"doclet.Class\";\n\t\t}\n\n\t\twriter.writeHeader(configuration.getText(key) + \" \" + classDoc.name());\n\t}", "private void initHeader(boolean newHeader) throws IOException {\n\n if (newHeader) writeHeader();\n /*\n if (rafShp.read() == -1) { \n //File is empty, write a new one (what else???)\n writeHeader();\n } \n */ \n readHeader();\n }", "public ContainerTag generateHeader(String title) {\n return TagCreator.main(attrs(\"#main.header\"), h1(title),\n h3(String.format(MESSAGE_TIME_GENERATED, formatter.format(Instant.now()))));\n }", "private void addHeader(Section catPart) throws BadElementException, IOException{\r\n PdfPTable header = new PdfPTable(1);\r\n PdfPCell c = new PdfPCell(Image.getInstance(\"res/brandogredninglogo.png\"));\r\n c.setBackgroundColor(COLOR_BLUE);\r\n //c.setBorderColor(BaseColor.RED);\r\n header.setHeaderRows(0);\r\n header.addCell(c);\r\n header.setWidthPercentage(100.0f);\r\n \r\n catPart.add(header);\r\n }", "private HeaderMsg getBasicHeader(ClusterIdCheck ignoreClusterId, EpochCheck ignoreEpoch) {\n return getHeaderMsg(requestCounter.incrementAndGet(), PriorityLevel.NORMAL, 1L,\n getUuidMsg(DEFAULT_UUID), getUuidMsg(DEFAULT_UUID), ignoreClusterId, ignoreEpoch);\n }", "public HashMap<String, String> getHeader() {\n HashMap<String, String> header = new HashMap<String, String>();\n//\t\theader.put(\"Content-Type\", pref.getString(\"application/json\", \"application/json\"));\n /*header.put(\"authId\", pref.getString(KEY_USER_ID, KEY_USER_ID));\n header.put(\"authToken\", pref.getString(KEY_AUTH_TOKEN, KEY_AUTH_TOKEN));*/\n\n\n header.put(\"authId\", pref.getString(KEY_USER_ID, \"1\"));\n header.put(\"authToken\", pref.getString(KEY_AUTH_TOKEN, \"s4nbp5FibJpfEY9q\"));\n\n return header;\n }", "public void createHeader() {\n\t\tHBox box = new HBox();\n\t\tButton printBtn = new Button(\"Print\");\n\t\tprintBtn.getStyleClass().addAll(\"btn\", \"btn-primary\");\n\t\tButton printAllBtn = new Button(\"Print allemaal\");\n\t\tprintAllBtn.getStyleClass().addAll(\"btn\", \"btn-primary\");\n\t\tButton cancelBtn = new Button(\"Annuleer\");\n\t\tcancelBtn.getStyleClass().addAll(\"btn\", \"btn-danger\");\n\t\tbox.getChildren().addAll(createTitle(), printBtn, printAllBtn, cancelBtn);\n\t\t\n\t\tprintBtn.setOnAction(e -> {\n\t\t\ttry {\n\t\t\t\tprintController.printSelected(debiteuren);\n\t\t\t} catch (Exception e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t\tSystem.out.println(\"Nothing selected mate\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tprintAllBtn.setOnAction(e -> {\n\t\t\ttry {\n\t\t\t\tprintController.printAll(debiteuren);\n\t\t\t} catch (Exception e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t\tSystem.out.println(\"Nothing selected mate\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tcancelBtn.setOnAction(e -> {\n\t\t\tprintController.cancel();\n\t\t});\n\t\t\n\t\tsetTop(box);\n\t}", "private void buildHeader(Layout parent) {\n\n }", "@Override\n public void setHeader(String arg0, String arg1) {\n\n }", "protected void updateHeader() {\n\t}", "protected AccountingLineTableCell createHeaderCellForField(AccountingLineViewField field) {\n AccountingLineTableCell headerCell = new AccountingLineTableCell();\n headerCell.setRendersAsHeader(true);\n headerCell.addRenderableElement(field.createHeaderLabel());\n return headerCell;\n }", "HttpClientRequest header(CharSequence name, CharSequence value);", "public String getMessageHeaderAsString(){\n String header;\n switch(messageType){\n case DELETE:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n case PUTCHUNK:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + replicationDegree + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n case ENH_AWOKE:\n header = messageType + \" \" + version + \" \" + senderId + Utils.CRLF + Utils.CRLF;\n break;\n case ENH_DELETED:\n header = messageType + \" \" + fileId + \" \" + senderId + Utils.CRLF + Utils.CRLF;\n break;\n case GETCHUNK:\n if(version.equals(Utils.ENHANCEMENT_RESTORE) || version.equals(Utils.ENHANCEMENT_ALL))\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + sender_access + \" \"+ Utils.CRLF + Utils.CRLF;\n else header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n default:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + Utils.CRLF + Utils.CRLF;\n }\n return header;\n }", "public String[] composeHeader() {\n\t\treturn null;\n\t}", "@Test\n\t\tpublic void testAddHeader() throws Exception{\n\t\t\temail.addHeader(this.goodHeaderName, this.goodHeaderValue);\n\t\t}", "public String getHeader() {\n\t\tString header = \"id\" + \",\" + \"chrId\" + \",\" + \"strand\" + \",\" + \"TSS\" + \",\" + \"PolyASite\"\n\t\t\t\t\t\t+ \",\" + \"5SSPos\" + \",\" + \"3SSPos\" + \",\" + \"intronLength\" + \",\" + \"terminalExonLength\"\n\t\t\t\t\t\t+ \",\" + \"BPS_3SS_distance\" + \",\" + \"PolyPyGCContent\" + \",\" + \"IntronGCContent\" + \",\" + \"terminalExonGCContent\"\n\t\t\t\t\t\t+ \",\" + \"5SS\" + \",\" + \"3SS\" + \",\" + \"BPS\"\n\t\t\t\t\t\t+ \",\" + \"5SSRank\" + \",\" + \"3SSRank\" + \",\" + \"BPSRank\"\n\t\t\t\t\t\t+ \",\" + \"5SSLevenshteinDistance\" + \",\" + \"3SSLevenshteinDistance\" + \",\" + \"BPSLevenshteinDistance\";\n\t\treturn header; \n\t}", "protected String createRecordHeader(WARCRecordInfo metaRecord)\n throws IllegalArgumentException {\n \tfinal StringBuilder sb =\n \t\tnew StringBuilder(2048/*A SWAG: TODO: Do analysis.*/);\n \tsb.append(WARC_ID).append(CRLF);\n sb.append(HEADER_KEY_TYPE).append(COLON_SPACE).append(metaRecord.getType()).\n append(CRLF);\n // Do not write a subject-uri if not one present.\n if (!StringUtils.isEmpty(metaRecord.getUrl())) {\n sb.append(HEADER_KEY_URI).append(COLON_SPACE).\n append(checkHeaderValue(metaRecord.getUrl())).append(CRLF);\n }\n sb.append(HEADER_KEY_DATE).append(COLON_SPACE).\n append(metaRecord.getCreate14DigitDate()).append(CRLF);\n if (metaRecord.getExtraHeaders() != null) {\n for (final Iterator<Element> i = metaRecord.getExtraHeaders().iterator(); i.hasNext();) {\n sb.append(i.next()).append(CRLF);\n }\n }\n\n sb.append(HEADER_KEY_ID).append(COLON_SPACE).append('<').\n append(metaRecord.getRecordId().toString()).append('>').append(CRLF);\n if (metaRecord.getContentLength() > 0) {\n sb.append(CONTENT_TYPE).append(COLON_SPACE).append(\n checkHeaderLineMimetypeParameter(metaRecord.getMimetype())).append(CRLF);\n }\n sb.append(CONTENT_LENGTH).append(COLON_SPACE).\n append(Long.toString(metaRecord.getContentLength())).append(CRLF);\n \t\n \treturn sb.toString();\n }", "private Header[] requestHeadMaker() {\n\t\tHeader[] header = {\n\t\t\t\tnew BasicHeader(\"User-Agent\", \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36\")\n\t\t\t\t//new BasicHeader(HttpHeaders.USER_AGENT, \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36\")\n\t\t\t, new BasicHeader(\"Accpet-Language\", \"ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7,ja;q=0.6\")\n\t\t\t, new BasicHeader(\"Accept-Charset\", \"application/x-www-form-urlencoded; charset=UTF-8\")\n\t\t\t, new BasicHeader(\"Origin\", \"https://developer.riotgames.com\")\n\t\t\t, //new BasicHeader(\"X-Riot-Token\", riotApiKey)\n\t\t};\n\t\treturn header;\n\t}", "public void generatePostHeader (\n HttpServletRequest request, HttpServletResponse response)\n throws IOException\n {\n request.getParameter(\"Blabbo\"); // Dummy read to send continue back to the client.\n BuildHtmlHeader(new PrintWriter (response.getOutputStream()), getTitle());\n }", "public static HashMap<String, String> generateHeader(String headerLine, HashMap<String, String> header) {\n String[] headerParts = headerLine.split(\":\", 2);\n /**\n * the first part of the split will be the header label and the second part of the string will be the\n * header body\n */\n String headerLabel = headerParts[0];\n String headerBody = headerParts[1];\n\n// LOGGER.info(\"header size before is : \" + header.size());\n// LOGGER.info(\"req generator header label -----> \" + headerLabel + \" ---> header body ---> \" + headerBody);\n\n //populating the header into the hashmap\n header.put(headerLabel, headerBody);\n// LOGGER.info(\"header size after is : \" + header.size());\n\n /**\n * returning the hashmap\n */\n return header;\n }", "private void outputHeader(){\n System.out.printf(\"\\n%9s%11s%7s%5s%7s%8s\\n\",\"Last Name\",\"First Name\",\"Gender\",\"Rate\",\"Tenure\",\"Salary\");\n pw.printf(\"\\n%9s%11s%7s%5s%7s%8s\\n\",\"Last Name\",\"First Name\",\"Gender\",\"Rate\",\"Tenure\",\"Salary\");\n }", "private void addHeader() {\n \n \t\t// StartNr; Namn; #Varv; Totaltid; Varv1; Varv2; Varv3; Start;\n \t\t// Varvning1; Varvning2; Mål\n \n \t\tsb.append(\"Plac; StartNr; Namn; #Varv; Totaltid; \");\n \t\tfor (int i = 0; i < maxNbrOfLaps; i++) {\n \t\t\tsb.append(\"Varv\");\n \t\t\tsb.append(i + 1 + \"; \");\n \t\t}\n \t\tsb.append(\"\\n\");\n \t}", "private void buildHeader(Label greeting, LogoutButton logout, LanguageSelector languageSelector, ThemeSelector themeSelector) {\n\n//\t\tAdd a style name for the greeting label\n\t\tgreeting.setStyleName(T.system(\"STYLE_LABEL_GREETING\"));\n\t\t\n//\t\tAdd components to the layout\n\t\taddComponent(greeting);\n\t\tif(logout != null){\n\t\t\taddComponent(logout);\n\t\t}\n\t\taddComponent(languageSelector);\n\t\taddComponent(themeSelector);\n\t\t\n\t\tsetIds(greeting, logout, languageSelector, themeSelector);\n\t}", "public DataSetHeader(){\r\n \t//this.elementStr = SerializationHelper.nullSerialization;\r\n }", "private static byte[] createHeader(int payloadLen, int psecret, int step, int studentID) {\n\t\tbyte[] header = new byte[ServerValuesHolder.HEADER_LENGTH];\n\t\tbyte[] payloadLen_b = new byte[4];\n\t\tbyte[] psecret_b = new byte[4];\n\t\tbyte[] step_b = new byte[2];\n\t\tbyte[] studentID_b = new byte[2];\n\t\t\n\t\t//convert to byte[]\n\t\tpayloadLen_b=ByteBuffer.allocate(4).putInt(payloadLen).array();\n\t\tpsecret_b=ByteBuffer.allocate(4).putInt(psecret).array();\n\t\tstep_b=ByteBuffer.allocate(4).putInt(step).array();\n\t\tstudentID_b=ByteBuffer.allocate(4).putInt(studentID).array();\n\t\t\n\t\t//copy to header\n\t\tSystem.arraycopy(payloadLen_b, 0, header, 0, 4);\n\t\tSystem.arraycopy(psecret_b, 0, header, 4, 4);\n\t\tSystem.arraycopy(step_b, 2, header, 8, 2);\n\t\tSystem.arraycopy(studentID_b, 2, header, 10, 2);\n\t\t\n\t\treturn header;\n\t}", "private void setupHeader(Message msg) throws MessagingException {\n }", "com.didiyun.base.v1.Header getHeader();", "private void addHeaderForSummary(Workbook p_workBook, Sheet p_sheet)\n {\n int col = 0;\n int row = SUMMARY_HEADER_ROW;\n Row summaryHeaderRow = getRow(p_sheet, row);\n\n Cell cell_A = getCell(summaryHeaderRow, col);\n cell_A.setCellValue(m_bundle.getString(\"lb_company\"));\n cell_A.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_B = getCell(summaryHeaderRow, col);\n cell_B.setCellValue(m_bundle.getString(\"lb_job_id\"));\n cell_B.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_C = getCell(summaryHeaderRow, col);\n cell_C.setCellValue(m_bundle.getString(\"lb_job_name\"));\n cell_C.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 30 * 256);\n col++;\n\n Cell cell_D = getCell(summaryHeaderRow, col);\n cell_D.setCellValue(m_bundle.getString(\"lb_language\"));\n cell_D.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_E = getCell(summaryHeaderRow, col);\n cell_E.setCellValue(m_bundle.getString(\"lb_workflow_state\"));\n cell_E.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_F = getCell(summaryHeaderRow, col);\n cell_F.setCellValue(m_bundle.getString(\"lb_mt_word_count\"));\n cell_F.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n if (usePerplexity)\n {\n Cell cell = getCell(summaryHeaderRow, col);\n cell.setCellValue(m_bundle.getString(\"lb_perplexity_wordcount\"));\n cell.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n }\n\n Cell cell_G = getCell(summaryHeaderRow, col);\n cell_G.setCellValue(m_bundle.getString(\"lb_total_word_count\"));\n cell_G.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_H = getCell(summaryHeaderRow, col);\n cell_H.setCellValue(m_bundle.getString(\"lb_average_edit_distance\"));\n cell_H.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 30 * 256);\n col++;\n\n Cell cell_I = getCell(summaryHeaderRow, col);\n cell_I.setCellValue(m_bundle.getString(\"lb_translation_error_rate\"));\n cell_I.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_J = getCell(summaryHeaderRow, col);\n cell_J.setCellValue(m_bundle.getString(\"lb_engine_name\"));\n cell_J.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n }", "public interface PrivacyHeader extends Header\n{\n\n /**\n * Name of PrivacyHeader\n */\n public final static String NAME = \"Privacy\";\n\n\n /**\n * Set Privacy header value\n * @param privacy -- privacy type to set.\n */\n public void setPrivacy(String privacy) throws ParseException;\n\n /**\n * Get Privacy header value\n * @return privacy token name\n */\n public String getPrivacy();\n\n\n}", "public T addHeader(String name,String value){\n if(TextUtils.isEmpty(name) || TextUtils.isEmpty(value)){\n throw new EasyNetException(\"header name or value is empty\");\n }\n if(headers == null){\n headers = new ArrayMap<>(5);\n }\n headers.put(name,value);\n return (T) this;\n }", "@Override\n\t\tprotected void writeStreamHeader() throws IOException {\n\t\t}", "private void rewriteRepHeader() {\r\n\t\t// assume that the value of headVersionNum has been \r\n\t\t// incremented before coming here\r\n\t\ttry {\r\n\t\t\t// 1. delete current header\r\n\t\t\tif (client==null) this.initAnnoteaClient();\r\n\t\t\tclient.delete(this.repHeaderLoc);\r\n\t\t\t// 2. post new header\r\n\t\t\tDescription header = new Description();\r\n\t\t\tURI[] headerURI = new URI[1];\r\n\t\t\theaderURI[0] = new URI(this.repositoryURI.toString() + \"#header\");\r\n\t\t\theader.setAnnotates(headerURI);\r\n\t\t\theader.setAuthor(this.repositoryAuthor);\r\n\t\t\theader.setCreated(this.reposityCreatedDate);\r\n\t\t\theader.setAnnotatedEntityDefinition(this.baseOntologyURI.toString());\r\n\t\t\theader.setBody(String.valueOf(this.headVersionNumber));\r\n\t\t\theader.setBodyType(\"text/html\");\r\n\t\t\theader.setAnnotationType(this.annotType);\r\n\t\t\t// 3. update new header location URL\r\n\t\t\trepHeaderLoc = client.post(header);\r\n\t\t\t// 4. update value in versionDescriptions array and update swoopModel' versionRepository\r\n\t\t\tthis.versionDescriptions[0] = header;\r\n\t\t\tswoopModel.updateVersionRepository(this.repositoryURI, versionDescriptions);\r\n\t\t}\r\n\t\tcatch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "public void addHeaders() {\n TableLayout tl = findViewById(R.id.table);\n TableRow tr = new TableRow(this);\n tr.setLayoutParams(getLayoutParams());\n if (!haverford) {\n tr.addView(getTextView(0, \"Leave Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n } else {\n tr.addView(getTextView(0, \"Leave Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n }\n tl.addView(tr, getTblLayoutParams());\n }", "HttpClientRequest addHeader(CharSequence name, CharSequence value);", "public String generateHeader(String httpMethod, String url, Map<String, String> requestParams) {\n StringBuilder base = new StringBuilder();\n String nonce = getNonce();\n String timestamp = getTimestamp();\n String baseSignatureString = generateSignatureBaseString(httpMethod, url, requestParams, nonce, timestamp);\n String signature = encryptUsingHmacSHA1(baseSignatureString);\n base.append(\"OAuth \");\n append(base, oauth_consumer_key, consumerKey);\n append(base, oauth_token, token);\n append(base, oauth_signature_method, signatureMethod);\n append(base, oauth_timestamp, timestamp);\n append(base, oauth_nonce, nonce);\n append(base, oauth_version, version);\n append(base, oauth_signature, signature);\n base.deleteCharAt(base.length() - 1);\n log.debug(\"header : \" + base.toString());\n return base.toString();\n }", "public Header(DOMelement element){\n\t\tsuper(tag(Header.class),element);\n\t}", "private String construct_http_header(int return_code, int file_type) {\n String s = \"HTTP/1.1 \";\n //you probably have seen these if you have been surfing the web a while\n switch (return_code) {\n case 200:\n s = s + \"200 OK\";\n break;\n case 400:\n s = s + \"400 Bad Request\";\n break;\n case 403:\n s = s + \"403 Forbidden\";\n break;\n case 404:\n s = s + \"404 Not Found\";\n break;\n case 500:\n s = s + \"500 Internal Server Error\";\n break;\n case 501:\n s = s + \"501 Not Implemented\";\n break;\n }\n\n s = s + \"\\r\\n\"; //other header fields,\n s = s + \"Connection: close\\r\\n\"; //we can't handle persistent connections\n s = s + \"Server: SimpleHTTPtutorial v0\\r\\n\"; //server name\n\n //Construct the right Content-Type for the header.\n //This is so the browser knows what to do with the\n //file, you may know the browser dosen't look on the file\n //extension, it is the servers job to let the browser know\n //what kind of file is being transmitted. You may have experienced\n //if the server is miss configured it may result in\n //pictures displayed as text!\n switch (file_type) {\n //plenty of types for you to fill in\n case 0:\n break;\n case 1:\n s = s + \"Content-Type: image/jpeg\\r\\n\";\n break;\n case 2:\n s = s + \"Content-Type: image/gif\\r\\n\";\n case 3:\n s = s + \"Content-Type: application/x-zip-compressed\\r\\n\";\n default:\n s = s + \"Content-Type: text/html\\r\\n\";\n break;\n }\n\n ////so on and so on......\n s = s + \"\\r\\n\"; //this marks the end of the httpheader\n //and the start of the body\n //ok return our newly created header!\n return s;\n }", "private void setUpHeader() {\n header = new JPanel();\n header.setLayout(new BorderLayout());\n header.setBackground(Color.darkGray);\n highscoreTitle = new JLabel();\n highscoreTitle.setText(\"Highscores:\");\n highscoreTitle.setForeground(Color.white);\n highscoreTitle.setHorizontalAlignment(JLabel.CENTER);\n highscoreTitle.setFont(new Font(\"Arial Black\", Font.BOLD, 24));\n header.add(highscoreTitle, BorderLayout.CENTER);\n setUpSortingBtn();\n\n rootPanel.add(header, BorderLayout.NORTH);\n }", "private static StyleBuilder getHeaderStyle(ExportData metaData){\n \n /*pour la police des entàtes de HARVESTING*/\n if(metaData.getTitle().equals(ITitle.HARVESTING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de SERVICING*/\n if(metaData.getTitle().equals(ITitle.SERVICING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de FERTILIZATION*/\n if(metaData.getTitle().equals(ITitle.FERTILIZATION)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de CONTROL_PHYTO*/\n if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }else{\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n }\n \n }", "public static void header(String s) {\n\t\t// header2.set(s);\n\t}", "public Header( String headerCode) {\n\t\tsuper(tag(Header.class), headerCode); \n\t}", "private synchronized void create_head(){\n\t\t// Take current time\n\t\thead_time = System.currentTimeMillis();\n\t\tdouble lcl_head_time = head_time/1000.0;\n\t\tString time = Double.toString(lcl_head_time);\n\t\t \n\t\theader.append(\"protocol: 1\\n\");\n\t\theader.append(\"experiment-id: \" + oml_exp_id + \"\\n\");\n\t\theader.append(\"start_time: \" + time + \"\\n\");\n\t\theader.append(\"sender-id: \" + oml_name + \"-sender\\n\");\n\t\theader.append(\"app-name: \" + oml_app_name + \"\\n\");\n\t}", "public String getCustomHeader() {\n return this.customHeader;\n }", "protected void BuildHtmlHeader(PrintWriter out, String title) throws IOException\n {\n out.println(\"<HTML>\");\n out.println(\"<head>\");\n out.println(\"<link rel=\\\"stylesheet\\\" href=\\\"/css/nny.css\\\" type=\\\"text/css\\\">\");\n out.println(\"<TITLE>\");\n out.println(title);\n out.println(\"</TITLE>\");\n out.println(\"<SCRIPT LANGUAGE=\\\"JavaScript\\\" SRC=\\\"/javascript/data_validation.js\\\"></SCRIPT>\");\n out.println(\"</head>\");\n /*\n if (navbarTemplate != null)\n {\n if (header_tp == null)\n {\n header_tp = new TemplateProcessor(template_path_ + navbarTemplate);\n }\n out.println(header_tp.process().toString());\n }*/\n out.flush();\n }", "private ConfigurationHTMLPrinter doHeaderRow() {\n println(\"<tr>\").incrementIndent();\n doHeaderCell(\"Name\");\n doHeaderCell(\"Default value\");\n doHeaderCell(\"Aliases\");\n doHeaderCell(\"Value type\");\n doHeaderCell(\"Description\");\n return decrementIndent().println(\"</tr>\");\n }", "private void initialiseHeader()\n\t{\n\t ListHead head = null;\n\n\t head = super.getListHead();\n\n\t //init only once\n\t if (head != null)\n\t {\n\t \treturn;\n\t }\n\n\t head = new ListHead();\n\n\t // render list head\n\t if (this.getItemRenderer() instanceof WListItemRenderer)\n\t {\n\t \t((WListItemRenderer)this.getItemRenderer()).renderListHead(head);\n\t }\n\t else\n\t {\n\t \tthrow new ApplicationException(\"Rendering of the ListHead is unsupported for \"\n\t \t\t\t+ this.getItemRenderer().getClass().getSimpleName());\n\t }\n\n\t //attach the listhead\n\t head.setParent(this);\n\n\t return;\n\t}", "static void headerFormat(FileWriter fw) throws IOException { \r\n\t\t//fw.append(\"\\n\");\r\n\t\tfw.append(\"levelId\");\r\n fw.append(',');\r\n fw.append(\"rideName\");\r\n fw.append(',');\r\n fw.append(\"ridestartEndLocation\");\r\n fw.append(',');\r\n fw.append(\"rideData\");\r\n fw.append('\\n');\r\n\t}" ]
[ "0.8243991", "0.7204428", "0.7105063", "0.6970554", "0.6967274", "0.6918539", "0.69178814", "0.6888702", "0.68295807", "0.6669469", "0.6667128", "0.6662648", "0.66493636", "0.6621347", "0.6614094", "0.6612208", "0.65998465", "0.65978026", "0.65826267", "0.6561412", "0.6528875", "0.64961606", "0.64642644", "0.64610213", "0.6453831", "0.6429903", "0.63606066", "0.63596237", "0.6339749", "0.63385564", "0.6325589", "0.63119197", "0.6311262", "0.62864465", "0.6246555", "0.6246263", "0.6216766", "0.6216627", "0.6215487", "0.6187638", "0.61673105", "0.6164937", "0.6160687", "0.61564285", "0.6144404", "0.61429065", "0.6129934", "0.6128804", "0.6121807", "0.612052", "0.61091125", "0.61024904", "0.60909086", "0.6088968", "0.60834247", "0.6077327", "0.6076291", "0.6068858", "0.60667866", "0.60416025", "0.60123044", "0.5991664", "0.59765875", "0.59568316", "0.59354526", "0.59338796", "0.59338737", "0.59325963", "0.59165", "0.5899578", "0.588217", "0.5880319", "0.58796155", "0.58789885", "0.5869706", "0.58676857", "0.5864048", "0.5859968", "0.58395123", "0.58305997", "0.5812216", "0.5811115", "0.5809226", "0.5794474", "0.5785881", "0.5784782", "0.57828784", "0.57720405", "0.576523", "0.57646257", "0.5764427", "0.57623357", "0.5761814", "0.5761761", "0.57562095", "0.574155", "0.5740958", "0.5739416", "0.57385576", "0.5728886" ]
0.7038836
3
Gets the fechaPago value for this PagareR.
public java.util.Calendar getFechaPago() { return fechaPago; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.util.Date getFecha() {\n return _partido.getFecha();\n }", "public java.lang.String getHoraDePago() {\n return horaDePago;\n }", "public LocalDate getFecha() {\n\t\treturn fecha;\n\t}", "public LocalDate getDato() {\n\t\treturn dato;\n\t}", "public String getFechaInicio(){\n\n\t\treturn campoInicio.getText();\n\n\t}", "public Fecha getFecha() {\r\n return fecha;\r\n }", "public java.util.Date getFechaRegistro() {\n\t\treturn this.fechaRegistro;\n\t}", "public Date getDataDeCadastro() {\n\t\treturn this.dataDeCadastro;\n\t}", "public java.time.LocalDate getFechaDeLaVisita() {\n return fechaDeLaVisita.get();\n }", "public java.util.Date getProformaDate () {\n\t\treturn proformaDate;\n\t}", "public Date obtenerPrimeraFecha() {\n String sql = \"SELECT proyind_periodo_inicio\"\n + \" FROM proy_indices\"\n + \" WHERE proyind_periodo_inicio IS NOT NULL\"\n + \" ORDER BY proyind_periodo_inicio ASC\"\n + \" LIMIT 1\";\n Query query = getEm().createNativeQuery(sql);\n List result = query.getResultList();\n return (Date) DAOUtils.obtenerSingleResult(result);\n }", "public Date getFecRegistro() {\n return fecRegistro;\n }", "@javax.jdo.annotations.Column(allowsNull = \"false\")\n\t@MemberOrder(sequence = \"3\")\n\tpublic Date getFechaInicio() {\n\t\treturn this.fechaInicio;\n\t}", "public Date getFechaconsulta() {\r\n return fechaconsulta;\r\n }", "public Fecha getFecha() {\n\t\treturn mFecha;\n\t}", "Date getFechaNacimiento();", "public Date getfPeticion() {\r\n return fPeticion;\r\n }", "public Fecha getFechaRetiro(){\n return this.fechaRetiro;\n }", "public String getFecha() {\n return Fecha;\n }", "public String getFechaInicio() {\n return fechaInicio;\n }", "public Date getFechaIniDate(){\n Date date=new Date(fechaInicio.getTime());\n return date;\n }", "@Override\n public DAttributeDatetime getAttFechaPago() { return moAttFechaPago; }", "public Date getFechaBajaHasta() {\r\n\t\treturn fechaBajaHasta;\r\n\t}", "public es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.RangoFechaPresentacionType getFechaPresentacion() {\r\n return fechaPresentacion;\r\n }", "public java.lang.String getFechadePago() {\n return fechadePago;\n }", "public Date getFechaCreacion() {\r\n return fechaCreacion;\r\n }", "public java.lang.String getFecpago() {\n return fecpago;\n }", "public String getFecha_Venta() {\n return fecha_Venta;\n }", "public Date getDataCreazione() {\n\t\treturn dataCreazione;\n\t}", "public Date getFechaBajaDesde() {\r\n\t\treturn fechaBajaDesde;\r\n\t}", "public String getFecha(){\r\n return fechaInicial.get(Calendar.DAY_OF_MONTH)+\"/\"+(fechaInicial.get(Calendar.MONTH)+1)+\"/\"+fechaInicial.get(Calendar.YEAR);\r\n }", "public Date getDateObject(){\n \n Date date = new Date(this.getAnio(), this.getMes(), this.getDia());\n return date;\n }", "public void setFechaPago(java.util.Calendar fechaPago) {\n this.fechaPago = fechaPago;\n }", "public Date getFechaNacimiento() {\r\n\t\treturn fechaNacimiento;\r\n\t}", "public Date getCadastro() {\n\n\t\treturn this.cadastro;\n\t}", "public Fecha getFechaIngreso(){\n return this.fechaIngreso;\n }", "public Date getNascimento() {\n return this.NASCIMENTO;\n }", "public java.util.Calendar getFecha()\r\n {\r\n return this.fecha;\r\n }", "public int getTipoPago() {\n return this.tipoPago;\n }", "public int getFaltaPagar() {\n\t\treturn this.contaPagar;\n\t}", "public int getDtRegistro() {\n return dtRegistro;\n }", "public Date getFechaHasta()\r\n/* 174: */ {\r\n/* 175:302 */ return this.fechaHasta;\r\n/* 176: */ }", "public Timestamp getFechaReserva() {\n return this.fechaReserva.get();\n }", "public String getFechaEvento() {\n return fechaEvento;\n }", "public java.lang.String getFechaDeRecibido() {\n return fechaDeRecibido;\n }", "public Date getDataInizio() {\n return (Date)this.getCampo(nomeDataIni).getValore();\n }", "public Date getCreacion() {\r\n return creacion;\r\n }", "public String getFecha() {\n Calendar calendario = new GregorianCalendar();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(calendario.getTime());\n }", "public LocalDate getDtNascimento() {\n\t\treturn dtNascimento;\n\t}", "public java.lang.String getMontoPagado() {\n return montoPagado;\n }", "public String getConsultaPaginada() {\r\n\t\treturn consultaPaginada;\r\n\t}", "@Override\n public java.util.Date getCreateDate() {\n return _partido.getCreateDate();\n }", "public Timestamp getFechaEntrega() {\n return this.fechaEntrega.get();\n }", "public Date getFechaDesde()\r\n/* 164: */ {\r\n/* 165:283 */ return this.fechaDesde;\r\n/* 166: */ }", "public String getFechaInicio(){\n return fechaInicio;\n }", "public Date getDate() {\n DateTimeField dateField = obtainField(FieldName.DATE);\n if (dateField == null)\n return null;\n\n return dateField.getDate();\n }", "public java.time.LocalDateTime getFechaCreacion() {\n return fechaCreacion.get();\n }", "public Timestamp getFechaInicio() {\n return fechaInicio;\n }", "public LocalDate GetFechaUltimoCambio() throws RemoteException;", "public Date getFechaAltaDesde() {\r\n\t\treturn fechaAltaDesde;\r\n\t}", "public Date getDateFinContrat() {\r\n return dateFinContrat;\r\n }", "public es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.IDFacturaExpedidaBCType getClavePaginacion() {\r\n return clavePaginacion;\r\n }", "public Date getFechaAltaHasta() {\r\n\t\treturn fechaAltaHasta;\r\n\t}", "public int getDtVencimento() {\n return dtVencimento;\n }", "public Date getDate()\n\t{\n\t\tif (m_nType == AT_DATE)\n\t\t\treturn (Date)m_oData;\n\t\telse\n\t\t\treturn null;\n\t}", "public Long getPagoContado() {\n return pagoContado;\n }", "public Date getFechaNacim() {\r\n return fechaNacim;\r\n }", "public LocalDate getNascimento() {\r\n\t\treturn nascimento;\r\n\t}", "public Date getDatumOpladen() {\n if (datumOpladen != null) {\n return (Date) datumOpladen.clone();\n }\n return null;\n }", "public Date getFechaNacimiento()\r\n/* 133: */ {\r\n/* 134:242 */ return this.fechaNacimiento;\r\n/* 135: */ }", "public LocalDate getDateDebut() {\n\t\treturn dateDebut;\n\n\t}", "public String getFechaNacimiento() {\n return fechaNacimiento;\n }", "public Date getDeldte() {\r\n return deldte;\r\n }", "public Date obtenerUltimaFecha() {\n String sql = \"SELECT proyind_periodo_fin\"\n + \" FROM proy_indices\"\n + \" WHERE proyind_periodo_fin IS NOT NULL\"\n + \" ORDER BY proyind_periodo_fin DESC\"\n + \" LIMIT 1\";\n Query query = getEm().createNativeQuery(sql);\n List result = query.getResultList();\n return (Date) DAOUtils.obtenerSingleResult(result);\n }", "public java.lang.String getFechaInicioUtilizacion() {\r\n return fechaInicioUtilizacion;\r\n }", "public Date getFechaFinDate(){\n Date date=new Date(fechaFin.getTime());\n return date;\n }", "public Date getDataPreventivo() {\n return dataPreventivo;\n }", "private Date getDataInizio() {\n return (Date)this.getCampo(DialogoStatistiche.nomeDataIni).getValore();\n }", "public int getDtVenda() {\n return dtVenda;\n }", "public LocalDate getDataArrivo() {\n\t\treturn dataArrivo;\n\t}", "public Date getDateDembauche () {\n return dateEmbauche.copie();\n }", "@Column(name = \"FECHA_VENCIMIENTO\")\n\t@Temporal(TemporalType.DATE)\n\tpublic Date getlFechaVencimiento() {\n\t\treturn lFechaVencimiento;\n\t}", "public String getAccessionDeaccessionToDate() {\n return accessionDeaccessionToDate;\n }", "public LocalDate getDate() {\n\t\treturn this.date;\n\t}", "public abstract java.lang.String getFecha_inicio();", "public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }", "public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }", "public Date getDateDembauche() {\r\n return dateEmbauche.copie();\r\n }", "@JsonProperty(\"dataCadastro\")\n\tpublic Date getDataCadastro() {\n\t\treturn dataCadastro;\n\t}", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:date\")\n public Calendar getDate() {\n return getProperty(DATE);\n }", "public String getFechaSistema() {\n Date date = new Date();\n DateFormat formato = new SimpleDateFormat(\"dd/MM/yyyy\");\n //Aplicamos el formato al objeto Date y el resultado se\n //lo pasamos a la variable String\n fechaSistema = formato.format(date);\n \n return fechaSistema;\n }", "public java.util.Date getFechaModificacion() {\n\t\treturn this.fechaModificacion;\n\t}", "public Date getTanggal() {\n return this.tanggal;\n }", "public final String obtenerFechaFormateada() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MMM/yyyy\");\n return fechaDeLaVisita.get().format(formatter);\n }", "public Date getFecModificacion() {\n return fecModificacion;\n }", "public Date getFechaAutorizacionGastoExpediente() {\r\n return fechaAutorizacionGastoExpediente;\r\n }", "public Date getDataCancellazione() {\n\t\treturn dataCancellazione;\n\t}", "public Timestamp getDeCriacao() {\n return dataDeCriacao;\n }", "public Date getCarprodate() {\n return carprodate;\n }", "public Date getCommencDate() {\n return commencDate;\n }" ]
[ "0.68067384", "0.67843366", "0.67315346", "0.65672976", "0.65482193", "0.6508816", "0.6467076", "0.6429949", "0.6420479", "0.64000815", "0.6397499", "0.6396588", "0.6374364", "0.6343495", "0.63307035", "0.62778205", "0.6251418", "0.6236263", "0.62357354", "0.6210047", "0.61797965", "0.6156629", "0.61520517", "0.6148693", "0.61455905", "0.6103007", "0.6087958", "0.6080102", "0.6060856", "0.60560447", "0.6044901", "0.6035593", "0.602016", "0.6009167", "0.5994683", "0.5972381", "0.5967337", "0.59530777", "0.5944058", "0.59326357", "0.591284", "0.58926255", "0.5889715", "0.5889354", "0.5886248", "0.58721966", "0.5867451", "0.5825052", "0.58134454", "0.58115774", "0.579813", "0.57946837", "0.57875633", "0.5785761", "0.57740366", "0.57706666", "0.57664526", "0.57627696", "0.57569987", "0.5728148", "0.5712898", "0.57111496", "0.5710762", "0.5708634", "0.5701142", "0.56690854", "0.5642426", "0.56381446", "0.5628635", "0.56218725", "0.56212056", "0.5618175", "0.5617569", "0.5615478", "0.5592743", "0.5592398", "0.5590391", "0.55763876", "0.5573239", "0.55711454", "0.55679876", "0.55598015", "0.55593646", "0.55539787", "0.5552679", "0.55418813", "0.55418813", "0.55296093", "0.55266696", "0.5517719", "0.5505268", "0.5500037", "0.5496143", "0.54920256", "0.54815775", "0.5472267", "0.54591143", "0.54587835", "0.54570174", "0.54459417" ]
0.7559738
0
Sets the fechaPago value for this PagareR.
public void setFechaPago(java.util.Calendar fechaPago) { this.fechaPago = fechaPago; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setFecha(java.util.Date fecha) {\n _partido.setFecha(fecha);\n }", "public void setFechaPresentacion(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.RangoFechaPresentacionType fechaPresentacion) {\r\n this.fechaPresentacion = fechaPresentacion;\r\n }", "public void setFecha(Fecha fecha) {\r\n this.fecha = fecha;\r\n }", "public void setFecha(LocalDate fecha) {\n\t\tthis.fecha = fecha;\n\t}", "public void setFechaInicio(final Date fechaInicio) {\n\t\tthis.fechaInicio = fechaInicio;\n\t}", "public void setFechaHasta(Date fechaHasta)\r\n/* 179: */ {\r\n/* 180:312 */ this.fechaHasta = fechaHasta;\r\n/* 181: */ }", "public void setFecha(java.util.Calendar fecha)\r\n {\r\n this.fecha = fecha;\r\n }", "public void setFecha(String fecha) {\r\n\t\tthis.fecha = fecha;\r\n\t}", "public void setFechaCheque(final Date fecha){\t}", "public void setFechaDesde(Date fechaDesde)\r\n/* 169: */ {\r\n/* 170:293 */ this.fechaDesde = fechaDesde;\r\n/* 171: */ }", "public void setFechaNacimiento(Date fechaNacimiento)\r\n/* 138: */ {\r\n/* 139:252 */ this.fechaNacimiento = fechaNacimiento;\r\n/* 140: */ }", "public void setFechaCreacion(Date fechaCreacion) {\r\n this.fechaCreacion = fechaCreacion;\r\n }", "public void setfPeticion(Date fPeticion) {\r\n this.fPeticion = fPeticion;\r\n }", "public void setFechaRegistro(java.util.Date fechaRegistro1) {\n\t\tthis.fechaRegistro = fechaRegistro1;\n\n\t}", "public void setFechaReserva(Timestamp fechaReserva) {\n this.fechaReserva.set(fechaReserva);\n }", "public void setFechaconsulta(Date fechaconsulta) {\r\n this.fechaconsulta = fechaconsulta;\r\n }", "public void setFecha_Venta(String fecha_Venta) {\n this.fecha_Venta = fecha_Venta;\n }", "public void setFechaCompra() {\n LocalDate fecha=LocalDate.now();\n this.fechaCompra = fecha;\n }", "public void setFechaInicio(Timestamp fechaInicio) {\n this.fechaInicio = fechaInicio;\n }", "public void setFechaInicio(String fechaInicio) {\n this.fechaInicio = fechaInicio;\n }", "public void setFecha(String Fecha) {\n this.Fecha = Fecha;\n }", "public void setFiNgaytao(Date fiNgaytao) {\n this.fiNgaytao = fiNgaytao;\n }", "public void setCreacion(Date creacion) {\r\n this.creacion = creacion;\r\n }", "public void setFechaEvento(String fechaEvento) {\n this.fechaEvento = fechaEvento;\n }", "public void setFechaBajaHasta(Date fechaBajaHasta) {\r\n\t\tthis.fechaBajaHasta = fechaBajaHasta;\r\n\t}", "@Test\n public void testSetFechaPago() {\n System.out.println(\"setFechaPago\");\n Date fechaPago = null;\n DetalleAhorro instance = new DetalleAhorro();\n instance.setFechaPago(fechaPago);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Override\n public void setCreateDate(java.util.Date createDate) {\n _partido.setCreateDate(createDate);\n }", "public void setProformaDate (java.util.Date proformaDate) {\n\t\tthis.proformaDate = proformaDate;\n\t}", "public Restauracion(Date fecha) {\r\n this.fecha = fecha;\r\n }", "public java.util.Calendar getFechaPago() {\n return fechaPago;\n }", "public void setFecRegistro(Date fecRegistro) {\n this.fecRegistro = fecRegistro;\n }", "@JsonDeserialize(using = CustomJsonDateDeserializer.class)\n public void setFiNgaytao(Date fiNgaytao) {\n this.fiNgaytao = fiNgaytao;\n }", "public void setFechaEntrega(Timestamp fechaEntrega) {\n this.fechaEntrega.setValue(fechaEntrega);\n }", "public void setHoraDePago(java.lang.String horaDePago) {\n this.horaDePago = horaDePago;\n }", "public void setValor(Date novoValor){\r\n\t\t\ttry {\r\n\t\t\t\tDateDocument doc = (DateDocument) getDocument();\r\n\t\t\t\tdoc.getDateFormat().parse(getText(0, doc.getLength()));\r\n\t\t\t\tsetText(doc.getDateFormat().format(novoValor));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public void setServiceDate(java.util.Date value);", "public void setFechaNacimiento(Date fechaNacimiento) {\r\n\t\tthis.fechaNacimiento = fechaNacimiento;\r\n\t}", "public void setDataCreazione(Date dataCreazione) {\n\t\tthis.dataCreazione = dataCreazione;\n\t}", "public final void setDate(LocalDate date) {\n dateProperty().set(date);\n }", "public void setFechaNacim(Date fechaNacim) {\r\n this.fechaNacim = fechaNacim;\r\n }", "@Test\n public void testSetFecha() {\n System.out.println(\"setFecha\");\n Date fecha = null;\n Reserva instance = new Reserva();\n instance.setFecha(fecha);\n \n }", "public void setFechaBajaDesde(Date fechaBajaDesde) {\r\n\t\tthis.fechaBajaDesde = fechaBajaDesde;\r\n\t}", "void setDadosDoacao(String date, String hora, String cpfDoador, String nomeDoador, String fator) {\n this.fator = fator;\n this.date = date;\n this.cpf = cpfDoador;\n this.nome = nomeDoador;\n this.hora = hora;\n }", "public void setTipoFecha(int tipoFecha)\n {\n tipFecha=tipoFecha;\n }", "@Test\n\tpublic void testSetFecha7(){\n\t\tPlataforma.closePlataforma();\n\t\t\n\t\tfile = new File(\"./data/plataforma\");\n\t\tfile.delete();\n\t\tPlataforma.openPlataforma();\n\t\tPlataforma.login(\"1\", \"contraseniaprofe\");\n\t\t\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(2));\n\t\tej1.responderEjercicio(nacho, array);\n\t\t\t\t\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(10);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(3);\n\t\tassertTrue(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}", "public void setDataArrivo(LocalDate dataArrivo) {\n\t\tthis.dataArrivo = dataArrivo;\n\t}", "public void setFechaAltaHasta(Date fechaAltaHasta) {\r\n\t\tthis.fechaAltaHasta = fechaAltaHasta;\r\n\t}", "public void setDate(Date date) {\n mDate = date;\n }", "@Override\n public void setModifiedDate(java.util.Date modifiedDate) {\n _partido.setModifiedDate(modifiedDate);\n }", "public void setPagamento(Set<Pagamento> aPagamento) {\n pagamento = aPagamento;\n }", "public void setDtRegistro(int dtRegistro) {\n this.dtRegistro = dtRegistro;\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}", "public void setFechaInclusion(Date fechaInclusion)\r\n/* 155: */ {\r\n/* 156:174 */ this.fechaInclusion = fechaInclusion;\r\n/* 157: */ }", "@Test\n public void testSetFechaFin() {\n System.out.println(\"setFechaFin\");\n Date fechaFin = null;\n Reserva instance = new Reserva();\n instance.setFechaFin(fechaFin);\n \n }", "public void setDate(Date date) {\r\n this.date = date;\r\n }", "public void setDate(String parName, Date parVal) throws HibException;", "public void SetDate(Date date);", "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}", "public void setDate() {\n this.date = new Date();\n }", "public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}", "public void setTipoPago(int tipoPago) {\n this.tipoPago = tipoPago;\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 }", "void setDate(Date data);", "public void setFechaAutorizacionGastoExpediente(Date fechaAutorizacionGastoExpediente) {\r\n this.fechaAutorizacionGastoExpediente = fechaAutorizacionGastoExpediente;\r\n }", "public void setValue(java.util.Date value) {\n this.value = value;\n }", "public void setFechaAltaDesde(Date fechaAltaDesde) {\r\n\t\tthis.fechaAltaDesde = fechaAltaDesde;\r\n\t}", "public void setDate(int dt) {\n date = dt;\n }", "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 setDate(final Date date) {\n this.date = date;\n }", "public void setFechaFacturado(java.util.Calendar param){\n \n this.localFechaFacturado=param;\n \n\n }", "public void setToDate(Date value) {\n setAttributeInternal(TODATE, value);\n }", "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 setStartDate(java.util.Date value);", "public void setDataConsegna(Date dataConsegna) {\n\t\t\tthis.dataConsegna = dataConsegna;\n\t\t}", "public void setFechaReg(java.util.Calendar fechaReg) {\n this.fechaReg = fechaReg;\n }", "public void setDate(Date date) {\n setDate(date, null);\n }", "public void setDataAffidamento(Optional<LocalDate> dataAffidamento) {\n\t\tthis.dataAffidamento = dataAffidamento;\n\t}", "public void setPAYMENT_DATE(Date PAYMENT_DATE) {\r\n this.PAYMENT_DATE = PAYMENT_DATE;\r\n }", "public void setPAYMENT_DATE(Date PAYMENT_DATE) {\r\n this.PAYMENT_DATE = PAYMENT_DATE;\r\n }", "public void setCarprodate(Date carprodate) {\n this.carprodate = carprodate;\n }", "public LocalDate getFecha() {\n\t\treturn fecha;\n\t}", "@Test\n\tpublic void testSetFecha2(){\n\t\tPlataforma.logout();\n\t\tPlataforma.login(Plataforma.alumnos.get(0).getNia(), Plataforma.alumnos.get(0).getPassword());\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(10);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(2);\n\t\tassertFalse(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}", "@Override\r\n public void onDateSet(DatePicker view, int year, int mes, int dia) {\r\n this.anyo=year;\r\n this.mes=mes+1;\r\n this.dia=dia;\r\n fecha.setText(this.dia+\"-\"+this.mes+\"-\"+this.anyo);\r\n }", "public void setDateFinContrat(Date dateFinContrat) {\r\n this.dateFinContrat = dateFinContrat;\r\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 }", "public void setMontoPagado(java.lang.String montoPagado) {\n this.montoPagado = montoPagado;\n }", "public void setTanggal(Date tanggal) {\n this.tanggal = tanggal;\n }", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }" ]
[ "0.7373862", "0.6792696", "0.6696403", "0.6690429", "0.6586207", "0.65581644", "0.6523238", "0.6350329", "0.62984186", "0.62856424", "0.6267698", "0.6175567", "0.6058702", "0.6046946", "0.6002295", "0.59645116", "0.5952611", "0.5929965", "0.58975613", "0.58781505", "0.58522266", "0.58378303", "0.58072346", "0.58010656", "0.5791182", "0.57633466", "0.572525", "0.57205904", "0.56913155", "0.56640375", "0.56196284", "0.55796987", "0.5561716", "0.5531414", "0.55230427", "0.55202276", "0.5515105", "0.5506529", "0.5467203", "0.54536456", "0.5450672", "0.54429436", "0.54376423", "0.54188", "0.5361178", "0.5349778", "0.53296083", "0.5319449", "0.53187996", "0.5318408", "0.5315663", "0.5302983", "0.52841836", "0.5268108", "0.52678263", "0.52640235", "0.5254099", "0.52454007", "0.52454007", "0.52454007", "0.5232463", "0.5232415", "0.52290565", "0.52271694", "0.52271694", "0.52271694", "0.52271694", "0.52271694", "0.52271694", "0.52271694", "0.52271694", "0.52271694", "0.52256507", "0.5225125", "0.5224307", "0.5201259", "0.52010185", "0.5195579", "0.5193163", "0.5191955", "0.5176673", "0.5140387", "0.5140387", "0.5140387", "0.51199067", "0.51187545", "0.51171947", "0.5112267", "0.5107742", "0.508731", "0.508731", "0.50836855", "0.5077283", "0.5074935", "0.50735587", "0.5071653", "0.5070825", "0.5064563", "0.5058731", "0.5049015" ]
0.7769928
0
Gets the tasaInteres value for this PagareR.
public java.math.BigDecimal getTasaInteres() { return tasaInteres; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getTipoInteres() {\r\n return tipoInteres;\r\n }", "@javax.jdo.annotations.Column(allowsNull = \"false\")\n\t@Title(sequence = \"2\")\n\t@MemberOrder(sequence = \"5\")\n\tpublic PuntoInteres getPuntoInteres() {\n\t\treturn this.puntoInteres;\n\t}", "public void setTasaInteres(java.math.BigDecimal tasaInteres) {\n this.tasaInteres = tasaInteres;\n }", "public static List<Sintoma> getSintomas() {\n return sintomas;\n }", "public int getAciertos() {\r\n return aciertos;\r\n }", "public int getTiempoEspera() {\n return tiempoEspera;\n }", "public ArrayList<Invitato> getAssegnamentiTavolo(){\n return AssegnamentiTavolo;\n }", "public int getAprovacoes() {\n\t\treturn this.aprovacoes;\n\t}", "public IRAT getIraT() {\n\t\treturn iraT;\n\t}", "public RangoImpuesto[] getImpuesto(){\n return this.impuesto;\n }", "public int getTramitacao(){\n\t\treturn this.tramitacao;\n\t}", "public int getIngresosPorVentas(){\n return this.ingresosPorVentas;\n }", "public int getIntentos() {\r\n return intentos;\r\n }", "public String getPartitaIva() {\n return partitaIva;\n }", "public Iterable<Arista> aristas() {\n Cola<Arista> mst = new Cola<Arista>();\n for (int v = 0; v < aristaHacia.length; v++) {\n Arista a = aristaHacia[v];\n if (a != null) {\n mst.entrarACola(a);\n }\n }\n return mst;\n }", "public int getQtdInteresses() {\n\t\treturn this.qtdInteresses;\n\t}", "public Integer getAnnoCorso() {\r\n return this.annoCorso;\r\n }", "public double getTipoInterés() {\n\t\treturn tipoInterés;\n\t}", "public final String[] getRiviAsteikko() {\r\n return riviAsteikko;\r\n }", "public int ardiveis() {\n\t\tint result = 0;\n\t\tfor (EstadoAmbiente[] linha : this.quadricula) {\n\t\t\tfor (EstadoAmbiente ea : linha) {\n\t\t\t\tif(ea == EstadoAmbiente.CASA || ea == EstadoAmbiente.TERRENO){\n\t\t\t\t\tresult++;\t\t\t\t \n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "public List<Integer> getTeritory() {\n return teritory;\n }", "public String getRutaEstilo() {\r\n\t\treturn rutaEstilo;\r\n\t}", "public int getEntradasVendidas() {\n\t\treturn entradasVendidas;\n\t}", "public int getAnnoIscrizione() {\n\t\treturn annoIscrizione;\n\t}", "public List<AreaInteres> listarAreaInteres() throws Exception{\r\n\t\treturn boAreaInt.listarAreaInteres();\r\n\t}", "public int getEmpatadas(){\n\t\treturn empatadas;\n\t}", "@ApiModelProperty(value = \"hace referencia si es compra de un cliente a los asientos comprados si es un producto nuevo a ofreser los asientos disponibles\")\n\n\n public Integer getAsietosTransporte() {\n return asietosTransporte;\n }", "public int getAnnoCorso() {\r\n return this.annoCorso;\r\n }", "public String getEtiquetas(){\n\t\tString s = \"\";\n\t\tfor(int x=0; x<livre; x++){\n\t\t\tif(x == MAX_ETIQUETAS-1 || x==livre-1)\n\t\t\t\ts = s+etiquetas[x];\n\t\t\telse\n\t\t\t\ts = s+etiquetas[x]+\" - \";\n\t\t}\n\t\treturn s;\n\t}", "public int getEgresosPorCompras(){\n return this.egresosPorCompras;\n }", "public Integer getCodTienda();", "public Iterator<IPessoa> getAtores();", "public List<Atividade> getAtividades() {\n return associacao.getAtividades();\n }", "public int getAantalArtikelen() {\n return aantalartikelen;\n }", "public String getTopegales() {\r\n\t\treturn topegales;\r\n\t}", "public int getHabitantes(){\n return habitantes;\n }", "public String getNombreTI() {\n return this.nombreTI;\n }", "public int getHoras() {\n return horas;\n }", "public int getTransportista(){\n return this.transportista;\n }", "public int getAtracciones(){\n return atracciones.size(); \n }", "private List<PreDocumentoEntrata> ricercaSinteticaPreDocumentoEntrata() {\n\t\tRicercaSinteticaPreDocumentoEntrataResponse resRSPD = ricercaSinteticaPreDocumentoEntrata(0);\t\t\n\t\tList<PreDocumentoEntrata> result = resRSPD.getPreDocumenti();\n\t\t\n\t\tfor(int i = 1; i < resRSPD.getTotalePagine(); i++) {\t\t\t\n\t\t\tresRSPD = ricercaSinteticaPreDocumentoEntrata(i);\n\t\t\tresult.addAll(resRSPD.getPreDocumenti());\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "public int[] getTour() {\n return hki.getIntTour();\n }", "public List<String> getTiposEmpleados() {\n List<String> tipos = new ArrayList<String>();\n tipos.add(TipoEmpleado.EmpleadoAsalarido.name());\n tipos.add(TipoEmpleado.EmpleadoBaseMasComision.name());\n tipos.add(TipoEmpleado.EmpleadoPorComision.name());\n tipos.add(TipoEmpleado.EmpleadoPorHora.name());\n\n return tipos;\n }", "public java.lang.String getInstrucciones() {\n return instrucciones;\n }", "public int[] getCarte() {\n\t\tint[] carte = new int[6];\n\t\tcarte[0] = numAGRICOLI;\n\t\tcarte[1] = numARIDI;\n\t\tcarte[2] = numFIUMI;\n\t\tcarte[3] = numFORESTE;\n\t\tcarte[4] = numMONTAGNE;\n\t\tcarte[5] = numPRATI;\n\t\treturn carte;\n\t}", "public float getInteresFijo() {\r\n\t\treturn interesFijo;\r\n\t}", "public int getCantidadAristas() {\n\t\treturn cantAristas;\n\t}", "public String getTiempo() {\r\n return tiempo;\r\n }", "public List<Talla> obtenTallas() throws Exception {\r\n IntAdmInventario inv = new FacAdmInventario();\r\n\r\n return inv.obtenListaTallas();\r\n }", "public int getTipusPartida() {\r\n\t\treturn tipus;\r\n\t}", "public String [ ] getNombresProteinas() {\n int cantidad = 0;\n \n for(int i = 0; i < this.ingredientes.size(); i++) {\n \n if(this.ingredientes.get(i) instanceof Proteina) {\n cantidad++;\n }\n }\n\n String arreglo[] = new String[cantidad];\n \n for(int i = 0; i < cantidad; i ++) {\n arreglo[i] = this.ingredientes.get(i).toString();\n }\n \n return arreglo;\n }", "public Integer getSeccion() {\r\n return seccion;\r\n }", "public java.lang.Object[] getRutaTesauroAsArray()\r\n {\r\n return (rutaTesauro == null) ? null : rutaTesauro.toArray();\r\n }", "public String getEstudiosTerminados() {\n return estudiosTerminados;\n }", "public Integer[] getExchangeIndicies() {\n return exchangeIndicies;\n }", "public String getInfoTitulos(){\r\n String infoTitulos = \"\";\r\n \r\n if(this.propriedadesDoJogador.size() > 0 || this.companhiasDoJogador.size() > 0){\r\n for(int i = 0; i < this.propriedadesDoJogador.size(); i++){\r\n infoTitulos += propriedadesDoJogador.get(i).getDescricao()+\"\\n\";\r\n }\r\n for(int i = 0; i < this.companhiasDoJogador.size(); i++){\r\n infoTitulos += companhiasDoJogador.get(i).getDescricao()+\"\\n\";\r\n }\r\n return infoTitulos;\r\n \r\n }else{\r\n return \"Você não possui títulos\";\r\n }\r\n }", "public String getTieteellinenNimi() {\n return this.tieteellinen_nimi;\n }", "public int getAisles ()\n {\n return (aisles);\n }", "public Profesor getProfesorAsig () {\n return ProfesorAsig;\n }", "public int getTipoPriori() {\r\n return tipoPriori;\r\n }", "public String getTranno() {\n return tranno;\n }", "public int getEts() {\n return ets;\n }", "@Override\r\n\tpublic List<Tramite_presentan_info_impacto> lista() {\n\t\treturn tramite.lista();\r\n\t}", "public int getECTS() {\n return ects;\n }", "Integer getIPos();", "public List getInterstates() {\r\n\t\t\treturn this.interstates;\r\n\t\t}", "public int getPantallaApunta() {\r\n return this.iPantallaApunta;\r\n }", "public String[] getAlergias() {\n return Alergias;\n }", "@Override\r\n\tpublic ArrayList<ArmazenaErroOuAviso> getErroOuAviso() {\r\n\t\treturn erroOuAviso;\r\n\t}", "public double peso() {\n double peso = 0.0;\n for (Arista a : aristas())\n peso += a.peso();\n return peso;\n }", "public int getDiasTrabajados() {\n return diasTrabajados;\n }", "public Number getFoliosintramo() {\n return (Number) getAttributeInternal(FOLIOSINTRAMO);\n }", "public List<ItemProduto> getItens() {\n\t\treturn itens;\n\t}", "public ArrayList<String> getAllTermini() \n\t{\n\t\t//return allTermini arraylist\n\t\treturn allTermini;\n\t}", "public Invima getInvima(){\n\t\treturn invima;\n\t}", "@JsonProperty(\"itens\")\n @NotNull\n public List<ItemAgrupamentoLpco> getItens() {\n return itens;\n }", "@ApiModelProperty(value = \"hace referencia si es compra de un cliente a los asientos comprados si es un producto nuevo a ofreser los asientos disponibles\")\n\n\n public Integer getAsietosEvento() {\n return asietosEvento;\n }", "public int getPais() {\n return pais;\n }", "public double getIngresos(){\n return this.ingresos;\n }", "public String getCorreoTI() {\n return this.correoTI;\n }", "public org.datacontract.schemas._2004._07.SNRM_AccesoDatos_Clases.RetornoActoInscrito[] getListaActosInscritos() {\n return listaActosInscritos;\n }", "public List<HorarioAtencionEntity> getHorariosAtencion ()\r\n {\r\n return this.horariosAtencion;\r\n }", "public ArtesanoEntity getArtesano( )\n\t{\n\t\treturn artesano;\n\t}", "protected ArrayList<Integer> GetTrains() {\n\t\treturn this.TrainsPresent;\n\t}", "public int getTamanio(){\r\n return tamanio;\r\n }", "public List<TipoIva> getList() {\n\t\tQuery q = em.createQuery(\"SELECT i FROM TipoIva i ORDER BY i.nombre\");\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<TipoIva> lista = q.getResultList();\n\t\tfor (TipoIva ti : lista) ti.getTramosTiposIva().size();\n\t\treturn lista;\n\t}", "@GET\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic Response getTipos() {\n\t\tRotondAndesTM tm = new RotondAndesTM(getPath());\n\t\tList<Tipo> Tipos;\n\t\ttry {\n\t\t\tTipos = tm.darTipos();\n\t\t} catch (Exception e) {\n\t\n\t\t\treturn Response.status(500).entity(doErrorMessage(e)).build();\n\t\t}\n\t\treturn Response.status(200).entity(Tipos).build();\n\t}", "public int getTilaa() {\r\n return maara - matkustajia;\r\n }", "public int getNiveauIA() {\n\t\treturn niveauIA;\r\n\t}", "public int getNumeroTareasPendientes(){\n return tareas.size();\n }", "public ArrayList<Tayte> getTaytteet() {\r\n\t\treturn this.taytteet;\r\n\t}", "public Integer getQtVoos()\n {\n return this.qtVoos;\n }", "public int getItens() {\n\t\treturn itens;\n\t}", "public int getAnio()\r\n {\r\n return this._anio;\r\n }", "public final String[] getAsteikko() {\r\n return asteikko;\r\n }", "public int getNumeroEstudio() { return this.numeroEstudio; }", "public com.bonsucesso.servipa.ws.TPrestacao[] getListPrestacao() {\n return listPrestacao;\n }", "public String getTema() {\n return this.tema;\n }", "public List<Termek> getAllTermek() {\r\n return Termeks;\r\n }", "public Integer getTrophies()\n\t{\n\t\treturn trophies;\n\t}" ]
[ "0.6044694", "0.59472024", "0.5855693", "0.58068633", "0.5732629", "0.55474645", "0.5511327", "0.54866916", "0.54810745", "0.54619", "0.54131454", "0.5412914", "0.54100317", "0.538751", "0.53198355", "0.5316282", "0.527773", "0.5253873", "0.5245103", "0.5240191", "0.52393204", "0.5222899", "0.52156544", "0.5178942", "0.5168484", "0.5163138", "0.51511055", "0.5149982", "0.51434153", "0.5115123", "0.5087591", "0.5084451", "0.50797105", "0.5074521", "0.50540745", "0.50533974", "0.50511706", "0.50461936", "0.50304466", "0.5026739", "0.50202054", "0.5017673", "0.49822566", "0.4982119", "0.49794802", "0.4979334", "0.497602", "0.4962744", "0.496072", "0.4956898", "0.4956298", "0.49392098", "0.4925381", "0.4911835", "0.4911532", "0.49033335", "0.4898434", "0.4898133", "0.48893774", "0.48887986", "0.48816472", "0.48801476", "0.4879718", "0.48576742", "0.48393282", "0.48302492", "0.4827498", "0.48266628", "0.48209703", "0.48179042", "0.48085842", "0.4805911", "0.4800461", "0.47944543", "0.47919154", "0.47819674", "0.47753638", "0.47708547", "0.47690967", "0.47688556", "0.47674972", "0.47560227", "0.47547996", "0.4750433", "0.4743879", "0.47398233", "0.47364396", "0.47305915", "0.47256342", "0.4724494", "0.4722979", "0.47227767", "0.47085142", "0.4701249", "0.4698534", "0.46940365", "0.46912426", "0.4674921", "0.4673051", "0.4671855" ]
0.7701981
0
Sets the tasaInteres value for this PagareR.
public void setTasaInteres(java.math.BigDecimal tasaInteres) { this.tasaInteres = tasaInteres; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAtores(Iterator<IPessoa> atores);", "public void setPuntoInteres(final PuntoInteres puntoInteres) {\n\t\tthis.puntoInteres = puntoInteres;\n\t}", "public java.math.BigDecimal getTasaInteres() {\n return tasaInteres;\n }", "public void setTipoInteres(double tipoInteres) {\r\n this.tipoInteres = tipoInteres;\r\n }", "public void setIteraciones(int iteraciones) {\r\n this.iteraciones = iteraciones;\r\n }", "@Setteri\n public void asetaLiite(Tiedosto liite){\n this.liite = liite;\n }", "public void setTentos (int tentos) {\n this.tentos = tentos;\n }", "public void setPuertas(int puerta) {\n\t\t\r\n\t}", "public void setIraT(IRAT iraT) {\n\t\tthis.iraT = iraT;\n\t}", "public void setTransportista(int transportista){\n this.transportista = transportista;\n }", "public void setTiempoEspera(int tiempoEspera) {\n this.tiempoEspera = tiempoEspera;\n }", "public void setNotifica(Set<Notifica> aNotifica) {\n notifica = aNotifica;\n }", "public void setHoras(int horas) {\n this.horas = horas;\n }", "public void setIteracion(int iteracion) {\n this.iteracion = iteracion;\n }", "public void setHoraIni(int horaIni) {\n this.horaIni = horaIni;\n }", "public void setSeguros(Set<Integer> seguros){\n\tthis.seguros.clear();\n\tfor(Integer i : seguros){\n\t this.seguros.add(i);\n\t}\n }", "public void setTesisatTur(TesisatTur tesisatTur) {\r\n\t\tthis.tesisatTur = tesisatTur;\r\n\t}", "public void setTipoAnexoSRI(String tipoAnexoSRI)\r\n/* 618: */ {\r\n/* 619:687 */ this.tipoAnexoSRI = tipoAnexoSRI;\r\n/* 620: */ }", "public void preencheSpinnerTemas(ArrayList temas){\n ArrayAdapter<Tema> spinnerArrayAdapter = new ArrayAdapter<Tema>(\n this, android.R.layout.simple_spinner_item, temas);\n temaAtividade.setAdapter(spinnerArrayAdapter);\n }", "public void setCodTienda(Integer codTienda);", "public void setTipusPartida(int tipus) {\r\n\t\tthis.tipus = tipus;\r\n\t}", "public void setAutorizacionAutoimpresorSRI(AutorizacionAutoimpresorSRI autorizacionAutoimpresorSRI)\r\n/* 125: */ {\r\n/* 126:150 */ this.autorizacionAutoimpresorSRI = autorizacionAutoimpresorSRI;\r\n/* 127: */ }", "public void setImpuesto(RangoImpuesto[] impuesto){\n this.impuesto = impuesto;\n }", "public void setAsistencias(final SortedSet<Asistencia> asistencias) {\n\t\tthis.asistencias = asistencias;\n\t}", "public void setProfesorAsig (Profesor val) {\n this.ProfesorAsig = val;\n }", "public void setSeccion(Integer seccion) {\r\n this.seccion = seccion;\r\n }", "public abstract void setTecnico_peticion(\n\t\tjava.util.Collection aTecnico_peticion);", "public void setPartitaIva(String partitaIva) {\n this.partitaIva = partitaIva;\n }", "public void setPagamento(Set<Pagamento> aPagamento) {\n pagamento = aPagamento;\n }", "@Setteri\n public void asetaTunniste(int tunniste)throws IllegalArgumentException{\n if(tunniste>0){\n this.tunniste = tunniste;\n }\n else\n throw new IllegalArgumentException();\n }", "public void setIngresosPorVentas(int ingresosPorVentas){\n this.ingresosPorVentas = ingresosPorVentas;\n }", "void setPosiblesTipos(String[] tipos);", "public void setVotes(int[] topIdeas) {\n\t\tif (voted)\n\t\t\tthrow new IllegalArgumentException(\"Can't set votes twice\");\n\t\tif (topIdeas == null)\n\t\t\treturn;\n\t\tif (topIdeas.length > NUM_RANKED)\n\t\t\tthrow new IllegalArgumentException(\"length of topIdeas must \"\n\t\t\t\t\t+ \"be <= \" + NUM_RANKED);\n\t\n\t\tfor (int i = 0; i < topIdeas.length; ++i)\n\t\t\tthis.topIdeas[i] = topIdeas[i];\n\t\t// Figure out if the student voted at all\n\t\tfor (int i = 0; i < this.topIdeas.length; ++i) {\n\t\t\tif (this.topIdeas[i] != 0) {\n\t\t\t\tvoted = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void setPesoA(int pesoA) \r\n\t\t{\r\n\t\t\tPesoA = pesoA;\r\n\t\t}", "public void setPots (int[] pots) {\r\n\t\t//TODO Ajouter les pots\r\n\t}", "@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 AzioneProgrammata(ArrayList<Attuatore> attuatori, String azione) {\n this.attuatori = attuatori;\n this.azione = azione;\n }", "public void setIndicadorImpreso(boolean indicadorImpreso)\r\n/* 175: */ {\r\n/* 176:190 */ this.indicadorImpreso = indicadorImpreso;\r\n/* 177: */ }", "public void setVictimas(List<Victima> listaVictimas) {\n\t\tif ( visorEscenario != null )\n\t\t\tvisorEscenario.setVictimas(listaVictimas);\n\t}", "public void setNilai(double a, double b, double c, double d, double e, double f, double g, double h, double i, double j) {\n nilai[0] = a;\n nilai[1] = b;\n nilai[2] = c;\n nilai[3] = d;\n nilai[4] = e;\n nilai[5] = f;\n nilai[6] = g;\n nilai[7] = h;\n nilai[8] = i;\n nilai[9] = j;\n }", "public final void setRiippumatonMuuttuja(final int muuttuja) {\r\n this.riippumatonMuuttuja = muuttuja;\r\n }", "public void setTaxiEnOptimo(AID t, Boolean b) {\n sigueEnOptimo.put(t,b);\n }", "public void setPrenotazione(Set<Prenotazione> aPrenotazione) {\n prenotazione = aPrenotazione;\n }", "public void setTareas(ArrayList<Tarea> tareas) {\n this.tareas = tareas;\n }", "public CompraResponse numeroParcelasAntecipaveis(Integer numeroParcelasAntecipaveis) {\n this.numeroParcelasAntecipaveis = numeroParcelasAntecipaveis;\n return this;\n }", "public peliculasAntiguas(Taquilla pelisAntiguas) {\n initComponents();\n this.taquilla=pelisAntiguas;\n mostrarPeliculasAntiguas();\n }", "public void setAnio(int anio){\r\n \r\n \r\n this.anio = anio;\r\n \r\n }", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public final void setActivity_Interview(ugs.proxies.Interview activity_interview)\n\t{\n\t\tsetActivity_Interview(getContext(), activity_interview);\n\t}", "@Test\n public void testSetInteres() {\n System.out.println(\"setInteres\");\n double interes = 0.0;\n DetalleAhorro instance = new DetalleAhorro();\n instance.setInteres(interes);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "void setPosiblesValores(int[] valores);", "public void setTiempo(String tiempo) {\r\n this.tiempo = tiempo;\r\n }", "public void setAnio(int anio)\r\n {\r\n this._anio = anio;\r\n this._has_anio = true;\r\n }", "public void setSites(Integer[] sites)\n {\n if (sites == null)\n {\n throw new IllegalArgumentException(\"sites must not be null\");\n }\n m_sites = sites;\n }", "@Override\n public void setJugadoresEsperando(int i) {\n lblNumeroJugadores.setText(Integer.toString(i));\n }", "public void setProdotti(ArrayList<ProdottoOrdineBean> prodotti) {\n\t\t\tthis.prodotti = prodotti;\n\t\t}", "public void setInvima(Invima invima){\n\t\tthis.invima = invima;\n\t}", "public final void setMascota(Mascota[] m){\n this.mascota=m;\n }", "public void setNumeroAnterior(int numeroAnterior)\r\n/* 205: */ {\r\n/* 206:214 */ this.numeroAnterior = numeroAnterior;\r\n/* 207: */ }", "public void setPais(int pais) {\n this.pais = pais;\n }", "public Tarta(int tipo) {\r\n\t\tthis.setTipo(tipo);\r\n\t}", "public void setAsignaturaAsig (Asignatura val) {\n this.asignaturaAsig = val;\n }", "private void setTipo() {\n if (getNumElementos() <= 0) {\n restartCelda();\n } else if (getNumElementos() > 1) { // Queda más de un elemento\n this.setTipoCelda(Juego.TVARIOS);\n } else { // Si queda solo un tipo de elemento, miramos si es un CR, edificio o un personaje\n if (this.contRecurso != null) {\n this.setTipoCelda(this.contRecurso.getTipo());\n } else if (this.edificio != null) {\n this.setTipoCelda(this.edificio.getTipo());\n } else if (!this.getPersonajes().isEmpty()) {\n this.setTipoCelda(this.getPersonajes().get(0).getTipo());\n }\n }\n }", "public void setTipoDocumento(int tipoDocumento);", "public void setHorario (List<HorarioAsig> val) {\n this.Horario = val;\n }", "public abstract void setearEstadosPropuests(String estado, String propuesta, String fechaCambio) throws ParseException;", "public void setVidas (int vidas)\r\n\t{\r\n\t\tthis.vidas= vidas;\r\n\t}", "@Override\r\n\tpublic void setIzena(String izena) {\n\t\tsuper.setIzena(izena);\r\n\t}", "public static void setInsta(boolean i) {\n insta = i;\n }", "public void setUtente(Utente aUtente) {\n utente = aUtente;\n }", "public ChainingMethods setTraccia(String traccia) {\n this.traccia = traccia;\n\n return this;\n }", "public AsignaturaSemestre (Asignatura Asig, Profesor Profe, List<HorarioAsig> hrrio) {\n asignaturaAsig = Asig ;\n ProfesorAsig = Profe;\n Horario = hrrio;\n }", "public void setCuerdas(int cuerdas){\n\tthis.cuerdas = cuerdas;\n }", "protected void uploadSottoPagine() {\n LinkedHashMap<String, LinkedHashMap<String, List<String>>> mappa;\n int numVoci = 0;\n\n for (String key : lista.getSottoPagine().keySet()) {\n mappa = lista.getSottoPagine().get(key);\n numVoci = lista.getMappaLista().getDimParagrafo(key);\n incipitSottopagina = elaboraIncipitSpecificoSottopagina(key);\n listaCorrelate = listaVociCorrelate();\n appContext.getBean(UploadSottoPagina.class, soggetto, key, mappa, typeDidascalia, numVoci, usaParagrafoSize, incipitSottopagina, usaNote, usaVociCorrelate, listaCorrelate);\n }// end of for cycle\n }", "public void setTieteellinenNimi(String tieteellinen_nimi) {\n this.tieteellinen_nimi = tieteellinen_nimi;\n \n }", "private void setSpnAlunosTurma(){\n ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, listaNomesUsuarios);\n spnAlunosTurma.setAdapter(arrayAdapter);\n spnAlunosTurma.setSelection(0);\n }", "public void setRois(Roi[] rois) {\n this.rois = rois;\n }", "public void setAtoms(IAtom[] atoms) {\n this.atoms = atoms;\n atomCount = atoms.length;\n notifyChanged();\n }", "public void setRutaEstilo(String rutaEstilo) {\r\n\t\tthis.rutaEstilo = rutaEstilo;\r\n\t}", "public void setStatoCorrente(Stato prossimo)\r\n\t{\r\n\t\tif(!(corrente==null))\r\n\t\t\tfor(int i=0;i<corrente.getTransazioniUscenti().size();i++)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Imposto NON attiva la \"+corrente.getTransazioniUscenti().get(i));\r\n\t\t\t\tcorrente.getTransazioniUscenti().get(i).setAttiva(false);\r\n\t\t\t}\r\n\t\t\r\n\t\t//System.out.println(\"Imposto lo stato corrente: \"+prossimo.toString());\r\n\t\tcorrente=prossimo;\r\n\t\tif(!(corrente==null))\r\n\t\t{\r\n\t\t\t//System.out.println(\"Attivo le transazioni \"+corrente.getTransazioniUscenti().size());\r\n\t\t\tfor(int i=0;i<corrente.getTransazioniUscenti().size();i++)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Imposto ATTIVA la \"+corrente.getTransazioniUscenti().get(i));\r\n\t\t\t\tcorrente.getTransazioniUscenti().get(i).setAttiva(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void setTipps(int[] t) {\r\n\t\t\ttipps = new ArrayList<Integer>();\r\n\t\t\tfor (int i = 0; i < t.length; i = i + 2) {\r\n\t\t\t\tif (t[i] == -1) {\r\n\t\t\t\t\ttipps.add(NICHT_GESETZT);\r\n\t\t\t\t\ttipps.add(NICHT_GESETZT);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (t[i] == t[i + 1]) {\r\n\t\t\t\t\t\ttipps.add(UNENTSCHIEDEN);\r\n\t\t\t\t\t\ttipps.add(UNENTSCHIEDEN);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (t[i] > t[i + 1]) {\r\n\t\t\t\t\ttipps.add(SIEG);\r\n\t\t\t\t\ttipps.add(NIEDERLAGE);\r\n\t\t\t\t}\r\n\t\t\t\tif (t[i] < t[i + 1]) {\r\n\t\t\t\t\ttipps.add(NIEDERLAGE);\r\n\t\t\t\t\ttipps.add(SIEG);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}", "public void inicializar() {\n\t\tarestas.forEach(aresta -> {\n\t\t\taresta.getOrigin().atribuirPesoInicial();\n\t\t\taresta.getTarget().atribuirPesoInicial();\n\t\t});\n\t}", "public void setIDEMPRESA(Integer idempresa) {\n\t\tthis.IDEMPRESA = idempresa;\n\t}", "public void setAnnoIscrizione(int annoIscrizione) {\n\t\tthis.annoIscrizione = annoIscrizione;\n\t}", "public void setAnio(int p) { this.anio = p; }", "public void setRobots(List<Robot> listaRobots) {\n\t\tif ( visorEscenario != null )\n\t\t\tvisorEscenario.setRobots(listaRobots);\n\t}", "public void setCitta(String aCitta) {\n citta = aCitta;\n }", "public void setCaixa(int caixa) {\n\t\tthis.caixa += caixa;\n\t}", "private void setTipo(int tipo) {\r\n\t\tthis.tipo = tipo;\r\n\t}", "public void setEi(Integer ei) {\n this.ei = ei;\n }", "private void setNums(double altura, double lado2, double lado3){\r\n \r\n this.altura = altura;\r\n this.lado2 = lado2;\r\n this.lado3 = lado3;\r\n \r\n \r\n }", "public void setPeso(int peso) {\r\n this.peso = peso;\r\n }", "private void setValoresDoAluno(String[] nomes, int[]notas, int[]conceitos)\n\t{\n\t\tif( nomes.length > 0 && notas.length > 0)\n\t\t{\n\t\t\tfor(int a=0; a < nomes.length || a < numMaxDeAluno; a++)\n\t\t\t{\n\t\t\t\tgradeNomes[a] = nomes[a];\n\t\t\t\tgradeNotas[a] = notas[a];\n\t\t\t\tgradeConceitos[a] = conceitos[a];\n\t\t\t}\n\t\t}\n\t}", "public void setHorariosAtencion (List<HorarioAtencionEntity> pHorariosAtencion)\r\n {\r\n this.horariosAtencion = pHorariosAtencion;\r\n }", "void setROIs(Object rois);", "public void setAI ( boolean ai ) {\n\t\ttry {\n\t\t\tinvoke ( \"setAI\" , new Class[] { boolean.class } , ai );\n\t\t} catch ( NoSuchMethodException e ) {\n\t\t\thandleOptional ( ).ifPresent ( handle -> EntityReflection.setAI ( handle , ai ) );\n\t\t}\n\t}", "@Override\n\tpublic void setTipo() {\n\t\ttipo = TipoPessoa.SUSPEITO;\n\t}", "public void setStany(Towar t) {\n\t\t\n\t}", "public void setFila(int fila) {\r\n\t\tthis.fila = fila;\r\n\t}", "public void setITALoc(int ITAIndex, int loc){\r\n\t\tif(ITAIndex < 0 || ITAIndex > Model.getITACount())\r\n\t\t\t;\r\n\t\telse\r\n\t\t\tthis.locVec[ITAIndex] = loc;\r\n\t}" ]
[ "0.59068274", "0.58659995", "0.54378396", "0.54329777", "0.5309871", "0.5307166", "0.5261447", "0.518481", "0.5138464", "0.5097734", "0.50588936", "0.5037045", "0.5018198", "0.49480674", "0.48436886", "0.48401108", "0.48362073", "0.4786971", "0.4786511", "0.47791085", "0.4776493", "0.4767009", "0.4764293", "0.47478607", "0.474324", "0.46813813", "0.46597433", "0.46432275", "0.4641466", "0.46208248", "0.4598759", "0.45984402", "0.45941922", "0.45882016", "0.4587798", "0.45858303", "0.45847523", "0.45708144", "0.4561835", "0.45251104", "0.4522524", "0.45210344", "0.45194963", "0.4512225", "0.45070687", "0.45016068", "0.44993004", "0.44905755", "0.4479817", "0.44755512", "0.4475148", "0.44732475", "0.446581", "0.44563502", "0.44491532", "0.44398955", "0.44380543", "0.4430781", "0.4429678", "0.44256637", "0.44240674", "0.4420098", "0.44070622", "0.44002774", "0.43989807", "0.43926206", "0.43756524", "0.43746144", "0.43685406", "0.43513182", "0.43488586", "0.433963", "0.43385902", "0.43379775", "0.43364635", "0.43363714", "0.43315536", "0.43312913", "0.43218967", "0.43210486", "0.4320021", "0.43151507", "0.43110293", "0.43099827", "0.4299167", "0.42970556", "0.4296563", "0.42951104", "0.42938572", "0.42914498", "0.42834067", "0.42813092", "0.42780948", "0.42760625", "0.427415", "0.4272862", "0.4268573", "0.4267348", "0.42622557", "0.42579043" ]
0.7037807
0
Return type metadata object
public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MetadataType getType();", "public MetadataType getType() {\n return type;\n }", "public MilanoTypeMetadata.TypeMetadata getMetadata()\n {\n if (typeMetadata == null) {\n return null;\n }\n\n return typeMetadata;\n }", "private Metadata getMetadata(RubyModule type) {\n for (RubyModule current = type; current != null; current = current.getSuperClass()) {\n Metadata metadata = (Metadata) current.getInternalVariable(\"metadata\");\n \n if (metadata != null) return metadata;\n }\n \n return null;\n }", "public Metadata getMetadata( MetadataType type )\n\t{\n\t\tfor( Metadata metadata: mMetadata )\n\t\t{\n\t\t\tif( metadata.getMetadataType() == type )\n\t\t\t{\n\t\t\t\treturn metadata;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "Metadata getMetaData();", "public List<TypeMetadata> getTypeMetadata() {\n return types;\n }", "@Override\n public Class<? extends Metadata> getMetadataType() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "public MetaData getMetaData();", "private Class<?> getType(final Object metadata, final ValueNode node) throws ParseException {\n if (node.type != null) {\n return readType(node);\n }\n Class type;\n if (metadata instanceof ReferenceSystemMetadata || metadata instanceof Period || metadata instanceof AbstractTimePosition || metadata instanceof Instant) {\n final Method getter = ReflectionUtilities.getGetterFromName(node.name, metadata.getClass());\n return getter.getReturnType();\n } else {\n type = standard.asTypeMap(metadata.getClass(), KeyNamePolicy.UML_IDENTIFIER, TypeValuePolicy.ELEMENT_TYPE).get(node.name);\n }\n final Class<?> special = specialized.get(type);\n if (special != null) {\n return special;\n }\n return type;\n }", "public Map<String, Variant<?>> GetMetadata();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public TypeSummary getTypeSummary() {\r\n return type;\r\n }", "String provideType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "public Type getType();", "@Override\n public String toString() {\n return metaObject.getType().toString();\n }", "public String metadataClass() {\n return this.metadataClass;\n }", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "abstract public Type getType();", "public String type();", "private String getType(){\r\n return type;\r\n }", "protected abstract String getType();", "Coding getType();", "@Override\n TypeInformation<T> getProducedType();", "type getType();", "TypeDefinition createTypeDefinition();", "abstract public String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract Type getType();", "protected static LibMetaData createLibMetaData(LibMetaData lmd) {\n MetaData metaData = new MetaData();\r\n metaData.add(\"IsThing\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(0), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Number\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(THING, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsItem\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Name\", \"Thing\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_ITEM), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(ITEM, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsBeing\",new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Creatures\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(340), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsMobile\",new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsBlocking\", new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"MoveCost\", new Integer(100), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"DeathDecoration\", \"blood pool\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_MOBILE), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(BEING, metaData);\r\n \r\n lmd = createEffectMetaData(lmd);\r\n lmd = createPoisonMetaData(lmd);\r\n lmd = createFoodMetaData(lmd);\r\n lmd = createScrollMetaData(lmd);\r\n lmd = createMissileMetaData(lmd);\r\n lmd = createRangedWeaponMetaData(lmd);\r\n lmd = createPotionMetaData(lmd);\r\n lmd = createWandMetaData(lmd);\r\n lmd = createRingMetaData(lmd);\r\n lmd = createCoinMetaData(lmd);\r\n lmd = createArmourMetaData(lmd);\r\n lmd = createWeaponMetaData(lmd);\r\n lmd = createSecretMetaData(lmd);\r\n lmd = createSpellBookMetaData(lmd);\r\n lmd = createChestMetaData(lmd);\r\n lmd = createDecorationMetaData(lmd);\r\n lmd = createSceneryMetaData(lmd);\r\n lmd = createPortalMetaData(lmd);\r\n lmd = createTrapMetaData(lmd);\r\n createMonsterMetaData(lmd);\r\n createPersonMetaData(lmd);\r\n return lmd;\r\n }", "String getTypeAsString();", "public gov.niem.niem.structures._2_0.MetadataType getMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.niem.niem.structures._2_0.MetadataType target = null;\n target = (gov.niem.niem.structures._2_0.MetadataType)get_store().find_element_user(METADATA$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "TypeRef getType();", "String getMetadataClassName();" ]
[ "0.7969707", "0.7373198", "0.7358018", "0.7090138", "0.67353225", "0.67259765", "0.66725683", "0.65644145", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6510972", "0.648206", "0.6352795", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.62937546", "0.6285329", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.627527", "0.6265675", "0.6235292", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6221452", "0.6209023", "0.6196509", "0.61801785", "0.6180045", "0.6168281", "0.61679584", "0.6166462", "0.6161522", "0.6146188", "0.6146188", "0.6146188", "0.6146188", "0.6146188", "0.6146188", "0.6146188", "0.6146188", "0.6141369", "0.6140734", "0.6133515", "0.61228573", "0.6116976", "0.6111749" ]
0.0
-1
return first EStructuralFeature that fits to the XML element name TODO: add error handling for ambiguous features
public EStructuralFeature getFeatureByXMLElementName(String namespace, String xmlElementName) { // try to find the EStructural feature locally // TODO: consider namespace EStructuralFeature result = xmlNameToEStructuralFeatureMap.get(xmlElementName); if (null == result) { Iterator<EStructuralFeature> allFeaturesIter = eClass.getEAllStructuralFeatures().iterator(); List<EStructuralFeature> results = new ArrayList<EStructuralFeature>(); while (allFeaturesIter.hasNext()) { EStructuralFeature feature = allFeaturesIter.next(); String xmlWrapperName = getRMFExtendedMetaData(feature).getXMLWrapperName(); // search by feature wrapper if (xmlWrapperName.equals(xmlElementName)) { if (isIdentifiedByFeatureWrapper(feature)) { results.add(feature); } else { // not found, continue with next feature } } else { // search by feature name String xmlName = getRMFExtendedMetaData(feature).getXMLName(); if (xmlName.equals(xmlElementName)) { if (isIdentifiedByFeature(feature)) { results.add(feature); } else { // not found, continue with next feature } } else { // search by type wrapper (assuming type is type of feature) String classifierWrapperXMLName = getRMFExtendedMetaData(feature.getEType()).getXMLWrapperName(); if (classifierWrapperXMLName.equals(xmlElementName)) { if (isIdentifiedByClassifierWrapper(feature)) { results.add(feature); } else { // not found, continue with next feature } } else { // search by type wrapper name (assuming type not type of feature) EClassifier classifier = getTypeByXMLWrapperName(namespace, xmlElementName); if (null != classifier) { if (feature.getEType().equals(classifier)) { if (isIdentifiedByClassifierWrapper(feature)) { results.add(feature); } else { // not found, continue with next feature } } else if (classifier instanceof EClass) { EClass eClass = (EClass) classifier; if (eClass.getEAllSuperTypes().contains(feature.getEType())) { if (isIdentifiedByClassifierWrapper(feature)) { results.add(feature); } else { // not found, continue with next feature } } else { // not found, continue with next feature } } else { // not found, continue with next feature } } else { // search by type name (assuming type not type of feature) classifier = getTypeByXMLName(namespace, xmlElementName); if (null != classifier) { if (feature.getEType().equals(classifier)) { if (isIdentifiedByClassifier(feature)) { results.add(feature); } else if (isNone(feature)) { results.add(feature); } else { // not found, continue with next feature } } else if (classifier instanceof EClass) { if (eClass.getEAllSuperTypes().contains(feature.getEType())) { if (isIdentifiedByClassifier(feature)) { results.add(feature); } else if (isNone(feature)) { results.add(feature); } else { // not found, continue with next feature } } else if (isNone(feature)) { results.add(feature); } else { // not found, continue with next feature } } else if (isNone(feature)) { results.add(feature); } else { // not found, continue with next feature } } else if (isNone(feature)) { results.add(feature); } else { // not found, continue with next feature } } // if (null != classifier && classifier instanceof EClass) } // if (classifierXMLName.equals(xmlElementName)) } // if (xmlName.equals(xmlElementName)) } // if (xmlWrapperName.equals(xmlElementName)) } // while // if there are multiple valid features, we prefer the feature that is many and is not NONE int size = results.size(); if (1 == size) { result = results.get(0); } else if (0 < size) { // rule 1 we like the features that are explicitly selected List<EStructuralFeature> identifiedFeatures = new ArrayList<EStructuralFeature>(); List<EStructuralFeature> noneFeatures = new ArrayList<EStructuralFeature>(); for (int i = 0; i < size; i++) { EStructuralFeature feature = results.get(i); if (isNone(feature)) { noneFeatures.add(feature); } else { identifiedFeatures.add(feature); } } if (identifiedFeatures.isEmpty()) { // there are none Features only results = noneFeatures; } else { results = identifiedFeatures; } result = results.get(0); // try to find a better features that is many for (EStructuralFeature feature : results) { if (feature.isMany()) { result = feature; break; } } } } // TODO: fall back to standard serialization? return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.pentaho.pms.cwm.pentaho.meta.core.CwmStructuralFeature getFeature();", "UMLStructuralFeature createUMLStructuralFeature();", "@Nullable JvmIdentifiableElement getFeature();", "private Object getFeature (EObject o, String feature) {\n\n if(o == null){\n System.out.println(\"Null object given\");\n }\n\n return o.eGet(o.eClass().getEStructuralFeature(feature));\n }", "Feature getFeature();", "Feature getFeature();", "public boolean getFeature(String featureId)\n throws SAXNotRecognizedException, SAXNotSupportedException\n {\n if ((FEATURE + \"validation\").equals(featureId))\n {\n return false;\n }\n \n // external entities (both types) are optionally included\n if ((FEATURE + \"external-general-entities\").equals(featureId))\n {\n return extGE;\n }\n if ((FEATURE + \"external-parameter-entities\").equals(featureId))\n {\n return extPE;\n }\n \n // element/attribute names are as written in document; no mangling\n if ((FEATURE + \"namespace-prefixes\").equals(featureId))\n {\n return xmlNames;\n }\n \n // report element/attribute namespaces?\n if ((FEATURE + \"namespaces\").equals(featureId))\n {\n return namespaces;\n }\n \n // all PEs and GEs are reported\n if ((FEATURE + \"lexical-handler/parameter-entities\").equals(featureId))\n {\n return true;\n }\n \n // default is true\n if ((FEATURE + \"string-interning\").equals(featureId))\n {\n return stringInterning;\n }\n \n // EXTENSIONS 1.1\n \n // always returns isSpecified info\n if ((FEATURE + \"use-attributes2\").equals(featureId))\n {\n return true;\n }\n \n // meaningful between startDocument/endDocument\n if ((FEATURE + \"is-standalone\").equals(featureId))\n {\n if (parser == null)\n {\n throw new SAXNotSupportedException(featureId);\n }\n return parser.isStandalone();\n }\n \n // optionally don't absolutize URIs in declarations\n if ((FEATURE + \"resolve-dtd-uris\").equals(featureId))\n {\n return resolveAll;\n }\n \n // optionally use resolver2 interface methods, if possible\n if ((FEATURE + \"use-entity-resolver2\").equals(featureId))\n {\n return useResolver2;\n }\n \n throw new SAXNotRecognizedException(featureId);\n }", "public DasFeature getNextFeature() {\n String feature = iXml.substring(iXml.indexOf(\"<FEATURE\", lastFeatureEndPosition + 9), iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9) + 10);\n lastFeatureEndPosition = iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9);\n DasFeature f = new DasFeature(feature);\n return f;\n }", "boolean containsTypedFeature(StructuralFeature typedFeature);", "public void setFeatureSerializationStructure(EStructuralFeature eStructuralFeature, int serializationStructure) {\n \n \t}", "String getFeature();", "String getFeature();", "private NamedFeature getUnigeneTestFeature(){\n BasicFeature testFeat = new BasicFeature(\"chr2\", 179908392, 179909870);\n testFeat.setName(\"hs.516555\");\n return testFeat;\n }", "org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);", "org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);", "public ComponentFeature getFeature(int index) {\r\n\t\tif (index >= features.length)\r\n\t\t\treturn null;\r\n\r\n\t\treturn features[index];\r\n\t}", "@Override\r\n\t\tpublic Object getFeature(String feature, String version)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public String getFeature() {\r\n return feature;\r\n }", "private Geometry findGeometry(final Feature feature, final String geomName) {\n Geometry geom = null;\n \n if (geomName == null) {\n geom = feature.getDefaultGeometry();\n } else {\n geom = (Geometry) feature.getAttribute(geomName);\n }\n \n return geom;\n }", "Feature createFeature();", "public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType xgetFeatureType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType target = null;\n target = (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType)get_store().find_element_user(FEATURETYPE$4, 0);\n return target;\n }\n }", "FeatureConcept createFeatureConcept();", "Collection<StructuralFeature> getTypedFeatures();", "boolean contains(SimpleFeature feature);", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "public Set<SimpleFeature> getFeatures(Name name) throws Exception {\n\t\tif (typeNameIndex.get(name)==null) throw new Exception(\"Type not found\");\n\t\treturn typeNameIndex.get(name);\n\t}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tFeature<T, ?> convertFeature(Feature<T,?> feature) {\n\t\tFeature<T, ?> convertedFeature = feature;\n\t\tif (feature.getFeatureType().equals(StringFeature.class) && !(feature instanceof StringFeature)) {\n\t\t\tconvertedFeature = new StringFeatureWrapper(feature);\n\t\t} else if (feature.getFeatureType().equals(BooleanFeature.class) && !(feature instanceof BooleanFeature)) {\n\t\t\tconvertedFeature = new BooleanFeatureWrapper(feature);\n\t\t} else if (feature.getFeatureType().equals(DoubleFeature.class) && !(feature instanceof DoubleFeature)) {\n\t\t\tconvertedFeature = new DoubleFeatureWrapper(feature);\n\t\t} else if (feature.getFeatureType().equals(IntegerFeature.class) && !(feature instanceof IntegerFeature)) {\n\t\t\tconvertedFeature = new IntegerFeatureWrapper(feature);\n\t\t} else {\n\t\t\tconvertedFeature = this.convertFeatureCustomType(feature);\n\t\t\tif (convertedFeature==null)\n\t\t\t\tconvertedFeature = feature;\n\t\t}\n\t\treturn convertedFeature;\n\t}", "boolean containsFeature(Feature feature);", "public ExteriorFeature() {\n this.exteriorFeature = \"Generic\";\n }", "public interface XMLStructure {\n\n /**\n * Indicates whether a specified feature is supported.\n *\n * @param feature the feature name (as an absolute URI)\n * @return <code>true</code> if the specified feature is supported,\n * <code>false</code> otherwise\n * @throws NullPointerException if <code>feature</code> is <code>null</code>\n */\n boolean isFeatureSupported(String feature);\n}", "public String feature() {\n return feature;\n }", "@Override\n \tpublic EStructuralFeature getAttribute(EClass eClass, String namespace, String name) {\n \t\treturn null;\n \t}", "@Override\n\tpublic String getFeatureName() {\n\t\treturn this.name();\n\t}", "PolicyEngineFeatureApi getFeatureProvider(String featureName);", "boolean isFeatureSupported(String feature);", "public SimpleFeature get(String featureID) {\n\t\treturn idIndex.get(featureID);\n\t}", "public FeatureDictionary(Element e) throws BoxerXMLException {\n\tif (!e.getTagName().equals(XML.FEATURES)) {\n\t throw new BoxerXMLException(\"FeatureDictionary can only be deserialized from an XML element named `\" + XML.FEATURES + \"'\");\n\t}\n\n\tfor(Node n = e.getFirstChild(); n!=null; n = n.getNextSibling()) {\n\t int type = n.getNodeType();\n\t //System.out.println(\"Node Name = \" + n.getNodeName()+ \t\t\t\t \", type=\" + type + \", val= \" + val);\n\t \n\t boolean found = false;\n\t if (type == Node.COMMENT_NODE) { // skip \n\t } else if (type == Node.TEXT_NODE) {\n\t\tString val = n.getNodeValue().trim();\n\t\tif (val.length()==0) { \t\t//skip\n\t\t} else {\n\t\t if (found) throw new BoxerXMLException(\"FeatureDictionary deserializer expects only one non-empty TEXT element in the XML element being parsed\");\n\t\t found = true;\n\t\t String[] tokens = val.split(\"\\\\s+\");\n\t\t if (ADD_DUMMY_COMPONENT && \n\t\t\t(tokens.length==0 || !tokens[0].equals(DUMMY_LABEL))) {\n\t\t\tthrow new BoxerXMLException(\"FeatureDictionary deserializer: ADD_DUMMY_COMPONENT flag is on, but the feature list in the XML element does not start with \" + DUMMY_LABEL);\n\t\t }\n\t\t id2label.setSize(tokens.length);\n\n\t\t for(int i=0; i<tokens.length; i++) {\n\t\t\tif (!IDValidation.validateFeatureName(tokens[i])) {\n\t\t\t throw new BoxerXMLException(\"Can't add feature with the name '\"+ tokens[i]+\"' to the feature dictionary, because this is not a legal name\");\n\t\t\t}\n\t\t\tid2label.set( i, tokens[i]);\n\t\t\tlabel2id.put( tokens[i], i);\n\t\t }\n\t\t}\n\t } else {\n\t\tthrow new IllegalArgumentException(\"FeatureDictionary deserializer: encountered unexpected node type \" + type);\n\t }\n\t}\n }", "public abstract Feature<T, ?> convertFeatureCustomType(Feature<T,?> feature);", "org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();", "org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();", "public DOMImplementation getDOMImplementation(String features)\n throws ClassNotFoundException,\n InstantiationException, IllegalAccessException, ClassCastException\n {\n\tint size = _sources.size();\n String name = null;\n for (int i = 0; i < size; i++) {\n DOMImplementationSource source =\n (DOMImplementationSource) _sources.get(i);\n\n DOMImplementation impl = source.getDOMImplementation(features);\n if (impl != null) {\n return impl;\n }\t \n }\n return null;\n }", "Feature loadFeature(Integer id);", "void addTypedFeature(StructuralFeature typedFeature);", "public boolean getFeature(String aFeatureId)\n\t\t\t\t\t throws SAXNotSupportedException,\n\t\t\t\t\t\t\t SAXNotRecognizedException {\n\t\treturn parserImpl.getFeature(aFeatureId);\n\t}", "int indexOfFeature(Feature feature);", "public AbstractMFeature2 getFeature() {\n return feature;\n }", "public Integer getFeature() {\n return feature;\n }", "FeatureId getFeatureId();", "Element getGenericElement();", "public org.pentaho.pms.cwm.pentaho.meta.expressions.CwmFeatureNode getFeatureNode();", "public interface IFeature\n{\n\tGeppettoFeature getType();\n}", "public interface RootFeature extends AbstractFeature {\n}", "public T caseAbstractFeature(AbstractFeature object) {\n\t\treturn null;\n\t}", "@Override\n public String getFeature() {\n return this.exteriorFeature;\n }", "public Object getUnderlyingObject() {\n return feature;\n }", "public boolean containsFeature(Feature f);", "iet.distributed.telemetry.Feature getFeature(int index);", "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 removeTypedFeature(StructuralFeature typedFeature);", "@SuppressWarnings(\"unchecked\")\r\n\tpublic <T extends ComponentFeature> T getFeature(Class<T> featureClass) {\r\n\t\tfor (final ComponentFeature f : features)\r\n\t\t\tif (f.getClass().isAssignableFrom(featureClass))\r\n\t\t\t\treturn (T) f;\r\n\r\n\t\treturn null;\r\n\t}", "UMLBehavioralFeature createUMLBehavioralFeature();", "public ElemFeature selectByPrimaryKey(Integer id) throws SQLException {\r\n\t\tElemFeature key = new ElemFeature();\r\n\t\tkey.setId(id);\r\n\t\tElemFeature record = (ElemFeature) getSqlMapClientTemplate()\r\n\t\t\t\t.queryForObject(\r\n\t\t\t\t\t\t\"cementerio_elem_feature.ibatorgenerated_selectByPrimaryKey\",\r\n\t\t\t\t\t\tkey);\r\n\t\treturn record;\r\n\t}", "public com.flexnet.opsembedded.webservices.SimpleQueryType getFeatureName() {\n return featureName;\n }", "public Element getOperationCustom(String _lookingfor) {\n Optional<Element> p = cCollection.stream()\n .filter(e -> ((NamedElement) e).getName().equals(_lookingfor))\n .findFirst();//.get();\n if (p.hashCode() != 0) {\n return p.get();\n }\n else {\n return null;\n }\n }", "public static interface AdditionalFeature {\n\n\t\tString getAdditionalFeature();\n\t}", "public java.util.List getFeature() \n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\n \t\tList list = instance.getFeature(this.refMofId());\n \t\tlist.addAll(super_getFeature());\n \t\t\n \t\treturn list; \t\t\n \t}\n \n \treturn super_getFeature();\n }", "public ExteriorFeature(String exteriorFeature) {\n this.exteriorFeature = exteriorFeature;\n }", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();", "java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();", "public interface Classifier extends GeneralizableElement, Namespace {\n /**\n * <p>\n * Adds a feature at the end of the ordered collection of the current object.\n * </p>\n *\n * @param feature\n * the feature to be added.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n */\n void addFeature(Feature feature);\n\n /**\n * <p>\n * Adds a feature at specified index of the ordered collection of the current object.\n * </p>\n *\n * @param index\n * index at which the specified element is to be added.\n * @param feature\n * the feature to be added.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n * @throws IndexOutOfBoundsException\n * if <code>index</code> is &lt; 0 or &gt; features.size.\n */\n void addFeature(int index, Feature feature);\n\n /**\n * <p>\n * Sets the feature at specified index of the ordered collection of the current object.\n * </p>\n *\n * @param index\n * index of feature to replace.\n * @param feature\n * the feature to be added.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n * @throws IndexOutOfBoundsException\n * if <code>index</code> is &lt; 0 or &gt;= features.size.\n */\n void setFeature(int index, Feature feature);\n\n /**\n * <p>\n * Removes (and fetches) the feature at specified index from the ordered collection of the current object.\n * </p>\n *\n * @param index\n * the index of the feature to be removed.\n * @throws IndexOutOfBoundsException\n * if <code>index</code> is &lt; 0 or &gt;= features.size.\n * @return the removed object of type <code>Feature</code>.\n */\n Feature removeFeature(int index);\n\n /**\n * <p>\n * Removes a feature from the ordered collection of the current object.\n * </p>\n *\n * @param feature\n * the feature to be removed.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removeFeature(Feature feature);\n\n /**\n * <p>\n * Removes all the objects of type \"feature\" from the ordered collection of the current object.\n * </p>\n */\n void clearFeatures();\n\n /**\n * <p>\n * Gets all the objects of type \"feature\" previously added to the ordered collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned list do not change the state of current object (i.e.\n * the returned list is a copy of the internal one of the current object). However, if an element contained in it is\n * modified, the state of the current object is modified accordingly (i.e. the internal and the returned lists share\n * references to the same objects).\n * </p>\n *\n * @return a <code>java.util.List</code> instance, containing all the objects of type <code>Feature</code> added\n * to the collection of current object.\n */\n List<Feature> getFeatures();\n\n /**\n * <p>\n * Checks if a feature is contained in the ordered collection of the current object.\n * </p>\n *\n * @param feature\n * the feature to be tested.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n * @return <code>true</code> if <code>feature</code> is contained in the collection of the current object.\n */\n boolean containsFeature(Feature feature);\n\n /**\n * <p>\n * Gets the index of the specified feature in the ordered collection of the current object, or -1 if such a\n * collection doesn't contain it.\n * </p>\n *\n * @param feature\n * the desired feature.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n * @return the index of the specified <code>Feature</code> in the ordered collection of the current object, or -1\n * if such a collection doesn't contain it.\n */\n int indexOfFeature(Feature feature);\n\n /**\n * <p>\n * Returns the number of objects of type \"feature\" previously added to the ordered collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>Feature</code> inserted in the ordered collection of the current\n * object.\n */\n int countFeatures();\n\n /**\n * <p>\n * Adds a typed feature to the collection of the current object.\n * </p>\n *\n * @param typedFeature\n * the typed feature to be added.\n * @throws IllegalArgumentException\n * if <code>typedFeature</code> is null.\n */\n void addTypedFeature(StructuralFeature typedFeature);\n\n /**\n * <p>\n * Removes a typed feature from the collection of the current object.\n * </p>\n *\n * @param typedFeature\n * the typed feature to be removed.\n * @throws IllegalArgumentException\n * if <code>typedFeature</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removeTypedFeature(StructuralFeature typedFeature);\n\n /**\n * <p>\n * Removes all the objects of type \"typed feature\" from the collection of the current object.\n * </p>\n */\n void clearTypedFeatures();\n\n /**\n * <p>\n * Gets all the objects of type \"typed feature\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type\n * <code>StructuralFeature</code> added to the collection of current object.\n */\n Collection<StructuralFeature> getTypedFeatures();\n\n /**\n * <p>\n * Checks if a typed feature is contained in the collection of the current object.\n * </p>\n *\n * @param typedFeature\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>typedFeature</code> is null.\n * @return <code>true</code> if <code>typedFeature</code> is contained in the collection of the current object.\n */\n boolean containsTypedFeature(StructuralFeature typedFeature);\n\n /**\n * <p>\n * Returns the number of objects of type \"typed feature\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>StructuralFeature</code> inserted in the collection of the\n * current object.\n */\n int countTypedFeatures();\n\n /**\n * <p>\n * Adds a typed parameter to the collection of the current object.\n * </p>\n *\n * @param typedParameter\n * the typed parameter to be added.\n * @throws IllegalArgumentException\n * if <code>typedParameter</code> is null.\n */\n void addTypedParameter(Parameter typedParameter);\n\n /**\n * <p>\n * Removes a typed parameter from the collection of the current object.\n * </p>\n *\n * @param typedParameter\n * the typed parameter to be removed.\n * @throws IllegalArgumentException\n * if <code>typedParameter</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal, i.e. its collection\n * contained the specified typed parameter.\n */\n boolean removeTypedParameter(Parameter typedParameter);\n\n /**\n * <p>\n * Removes all the objects of type \"typed parameter\" from the collection of the current object.\n * </p>\n */\n void clearTypedParameters();\n\n /**\n * <p>\n * Gets all the objects of type \"typed parameter\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type <code>Parameter</code>\n * added to the collection of current object.\n */\n Collection<Parameter> getTypedParameters();\n\n /**\n * <p>\n * Checks if a typed parameter is contained in the collection of the current object.\n * </p>\n *\n * @param typedParameter\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>typedParameter</code> is null.\n * @return <code>true</code> if <code>typedParameter</code> is contained in the collection of the current\n * object.\n */\n boolean containsTypedParameter(Parameter typedParameter);\n\n /**\n * <p>\n * Returns the number of objects of type \"typed parameter\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>Parameter</code> inserted in the collection of the current\n * object.\n */\n int countTypedParameters();\n\n /**\n * <p>\n * Adds a association to the collection of the current object.\n * </p>\n *\n * @param association\n * the association to be added.\n * @throws IllegalArgumentException\n * if <code>association</code> is null.\n */\n void addAssociation(AssociationEnd association);\n\n /**\n * <p>\n * Removes a association from the collection of the current object.\n * </p>\n *\n * @param association\n * the association to be removed.\n * @throws IllegalArgumentException\n * if <code>association</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removeAssociation(AssociationEnd association);\n\n /**\n * <p>\n * Removes all the objects of type \"association\" from the collection of the current object.\n * </p>\n */\n void clearAssociations();\n\n /**\n * <p>\n * Gets all the objects of type \"association\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type\n * <code>AssociationEnd</code> added to the collection of current object.\n */\n Collection<AssociationEnd> getAssociations();\n\n /**\n * <p>\n * Checks if a association is contained in the collection of the current object.\n * </p>\n *\n * @param association\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>association</code> is null.\n * @return <code>true</code> if <code>association</code> is contained in the collection of the current object.\n */\n boolean containsAssociation(AssociationEnd association);\n\n /**\n * <p>\n * Returns the number of objects of type \"association\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>AssociationEnd</code> inserted in the collection of the current\n * object.\n */\n int countAssociations();\n\n /**\n * <p>\n * Adds a specified end to the collection of the current object.\n * </p>\n *\n * @param specifiedEnd\n * the specified end to be added.\n * @throws IllegalArgumentException\n * if <code>specifiedEnd</code> is null.\n */\n void addSpecifiedEnd(AssociationEnd specifiedEnd);\n\n /**\n * <p>\n * Removes a specified end from the collection of the current object.\n * </p>\n *\n * @param specifiedEnd\n * the specified end to be removed.\n * @throws IllegalArgumentException\n * if <code>specifiedEnd</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removeSpecifiedEnd(AssociationEnd specifiedEnd);\n\n /**\n * <p>\n * Removes all the objects of type \"specified end\" from the collection of the current object.\n * </p>\n */\n void clearSpecifiedEnds();\n\n /**\n * <p>\n * Gets all the objects of type \"specified end\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type\n * <code>AssociationEnd</code> added to the collection of current object.\n */\n Collection<AssociationEnd> getSpecifiedEnds();\n\n /**\n * <p>\n * Checks if a specified end is contained in the collection of the current object.\n * </p>\n *\n * @param specifiedEnd\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>specifiedEnd</code> is null.\n * @return <code>true</code> if <code>specifiedEnd</code> is contained in the collection of the current object.\n */\n boolean containsSpecifiedEnd(AssociationEnd specifiedEnd);\n\n /**\n * <p>\n * Returns the number of objects of type \"specified end\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>AssociationEnd</code> inserted in the collection of the current\n * object.\n */\n int countSpecifiedEnds();\n\n /**\n * <p>\n * Adds a powertype range to the collection of the current object.\n * </p>\n *\n * @param powertypeRange\n * the powertype range to be added.\n * @throws IllegalArgumentException\n * if <code>powertypeRange</code> is null.\n */\n void addPowertypeRange(Generalization powertypeRange);\n\n /**\n * <p>\n * Removes a powertype range from the collection of the current object.\n * </p>\n *\n * @param powertypeRange\n * the powertype range to be removed.\n * @throws IllegalArgumentException\n * if <code>powertypeRange</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removePowertypeRange(Generalization powertypeRange);\n\n /**\n * <p>\n * Removes all the objects of type \"powertype range\" from the collection of the current object.\n * </p>\n */\n void clearPowertypeRanges();\n\n /**\n * <p>\n * Gets all the objects of type \"powertype range\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type\n * <code>Generalization</code> added to the collection of current object.\n */\n Collection<Generalization> getPowertypeRanges();\n\n /**\n * <p>\n * Checks if a powertype range is contained in the collection of the current object.\n * </p>\n *\n * @param powertypeRange\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>powertypeRange</code> is null.\n * @return <code>true</code> if <code>powertypeRange</code> is contained in the collection of the current\n * object.\n */\n boolean containsPowertypeRange(Generalization powertypeRange);\n\n /**\n * <p>\n * Returns the number of objects of type \"powertype range\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>Generalization</code> inserted in the collection of the current\n * object.\n */\n int countPowertypeRanges();\n\n /**\n * <p>\n * Adds a object flow state to the collection of the current object.\n * </p>\n *\n * @param objectFlowState\n * the object flow state to be added.\n * @throws IllegalArgumentException\n * if <code>objectFlowState</code> is null.\n */\n void addObjectFlowState(ObjectFlowState objectFlowState);\n\n /**\n * <p>\n * Removes a object flow state from the collection of the current object.\n * </p>\n *\n * @param objectFlowState\n * the object flow state to be removed.\n * @throws IllegalArgumentException\n * if <code>objectFlowState</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removeObjectFlowState(ObjectFlowState objectFlowState);\n\n /**\n * <p>\n * Removes all the objects of type \"object flow state\" from the collection of the current object.\n * </p>\n */\n void clearObjectFlowStates();\n\n /**\n * <p>\n * Gets all the objects of type \"object flow state\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type\n * <code>ObjectFlowState</code> added to the collection of current object.\n */\n Collection<ObjectFlowState> getObjectFlowStates();\n\n /**\n * <p>\n * Checks if a object flow state is contained in the collection of the current object.\n * </p>\n *\n * @param objectFlowState\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>objectFlowState</code> is null.\n * @return <code>true</code> if <code>objectFlowState</code> is contained in the collection of the current\n * object.\n */\n boolean containsObjectFlowState(ObjectFlowState objectFlowState);\n\n /**\n * <p>\n * Returns the number of objects of type \"object flow state\" previously added to the collection of the current\n * object.\n * </p>\n *\n * @return the quantity of objects of type <code>ObjectFlowState</code> inserted in the collection of the current\n * object.\n */\n int countObjectFlowStates();\n\n /**\n * <p>\n * Adds a instance to the collection of the current object.\n * </p>\n *\n * @param instance\n * the instance to be added.\n * @throws IllegalArgumentException\n * if <code>instance</code> is null.\n */\n void addInstance(Instance instance);\n\n /**\n * <p>\n * Removes a instance from the collection of the current object.\n * </p>\n *\n * @param instance\n * the instance to be removed.\n * @throws IllegalArgumentException\n * if <code>instance</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal, i.e. its collection\n * contained the specified instance.\n */\n boolean removeInstance(Instance instance);\n\n /**\n * <p>\n * Removes all the objects of type \"instance\" from the collection of the current object.\n * </p>\n */\n void clearInstances();\n\n /**\n * <p>\n * Gets all the objects of type \"instance\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type <code>Instance</code>\n * added to the collection of current object.\n */\n Collection<Instance> getInstances();\n\n /**\n * <p>\n * Checks if a instance is contained in the collection of the current object.\n * </p>\n *\n * @param instance\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>instance</code> is null.\n * @return <code>true</code> if <code>instance</code> is contained in the collection of the current object.\n */\n boolean containsInstance(Instance instance);\n\n /**\n * <p>\n * Returns the number of objects of type \"instance\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>Instance</code> inserted in the collection of the current object.\n */\n int countInstances();\n}", "public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType.Enum getFeatureType()\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(FEATURETYPE$4, 0);\n if (target == null)\n {\n return null;\n }\n return (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType.Enum)target.getEnumValue();\n }\n }", "private org.apache.uima.jcas.tcas.Annotation getFeatureStructureForS4Annotation(JCas cas, String annotationName) {\n try {\n org.apache.uima.jcas.tcas.Annotation annotation = (org.apache.uima.jcas.tcas.Annotation) Reflect.on(annotationName)\n .create(cas)\n .get();\n return annotation;\n } catch (ReflectException e) {\n final Throwable cause = e.getCause();\n// LOG.error(cause.toString(), e);\n\n //Expose real error if exception is InvocationTargetException because this exception is only a wrapper for the real one.\n if (cause instanceof InvocationTargetException) {\n// LOG.error(((InvocationTargetException) cause).getTargetException().toString(), cause);\n }\n return null;\n }\n }", "public FeatureProcessor getFeatureProcessor(String name) {\n\treturn (FeatureProcessor) featureProcessors.get(name);\n }", "TypeElement getTypeElement();", "private String getFeatureFieldName(FeatureImpl feature) {\n return feature.getShortName();\n }", "String getElem();", "@Override\n\tpublic String getFeature(Message message) {\n\t\treturn null;\n\t}", "public interface ProjectedFeature<T extends Feature> extends ProjectedObject<T> {\n\n /**\n * Get the id of the feature.\n *\n * @return FeatureId\n */\n FeatureId getFeatureId();\n\n /**\n * Get the original FeatureMapLayer from where the feature is from.\n *\n * @return FeatureMapLayer\n */\n @Override\n FeatureMapLayer getLayer();\n\n /**\n * Get the feature itself.\n *\n * @return Feature\n */\n @Override\n T getCandidate();\n\n}", "FeatureCall getFec();", "public Collection<String> getProvideFeature();", "public org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$6, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$6, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$14, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "void addFeature(Feature feature);", "public Class<? extends FormatFeature> getFormatReadFeatureType()\n/* */ {\n/* 415 */ return null;\n/* */ }", "iet.distributed.telemetry.FeatureOrBuilder getFeatureOrBuilder(\n int index);", "public FeatureElements getFeatureAccess() {\n\t\treturn pFeature;\n\t}", "private SimpleFeature findFeature( FeatureStore<SimpleFeatureType, SimpleFeature> store, String fid) throws SOProcessException {\n \n try {\n FidFilter filter = FILTER_FACTORY.createFidFilter(fid);\n \n FeatureCollection<SimpleFeatureType, SimpleFeature> featuresCollection = store.getFeatures(filter);\n FeatureIterator<SimpleFeature> iter = featuresCollection.features();\n \n assert iter.hasNext();\n \n SimpleFeature feature = iter.next();\n \n return feature;\n \n } catch (IOException e) {\n final String msg = e.getMessage();\n LOGGER.severe(msg);\n throw new SOProcessException(msg);\n }\n }", "FeatureType getType();", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }", "private void handleFeature(final Type type, TOP fs, String featName, String featValIn,\n boolean lenient) throws SAXParseException {\n final String featVal = (featName.equals(\"sofa\") && ((TypeImpl) type).isAnnotationBaseType())\n ? Integer.toString(this.sofaRefMap\n .get(((Sofa) fsTree.get(Integer.parseInt(featValIn)).fs).getSofaNum()))\n : featValIn;\n\n // handle v1.x sofanum values, remapping so that _InitialView always == 1\n // Bypassed in v3 of UIMA because sofa was already created with the right sofanum\n // if (featName.equals(CAS.FEATURE_BASE_NAME_SOFAID) && (fs instanceof Sofa)) {\n // Sofa sofa = (Sofa) fs;\n // int sofaNum = sofa.getSofaNum();\n // sofa._setIntValueNcNj(Sofa._FI_sofaNum, this.indexMap.get(sofaNum));\n //\n //// Type sofaType = ts.sofaType;\n //// final FeatureImpl sofaNumFeat = (FeatureImpl) sofaType\n //// .getFeatureByBaseName(CAS.FEATURE_BASE_NAME_SOFANUM);\n //// int sofaNum = cas.getFeatureValue(addr, sofaNumFeat.getCode());\n //// cas.setFeatureValue(addr, sofaNumFeat.getCode(), this.indexMap.get(sofaNum));\n // }\n\n String realFeatName = getRealFeatName(featName);\n\n final FeatureImpl feat = (FeatureImpl) type.getFeatureByBaseName(realFeatName);\n if (feat == null) { // feature does not exist in typesystem\n if (outOfTypeSystemData != null) {\n // Add to Out-Of-Typesystem data (APL)\n List<Pair<String, Object>> ootsAttrs = outOfTypeSystemData.extraFeatureValues\n .computeIfAbsent(fs, k -> new ArrayList<>());\n ootsAttrs.add(new Pair(featName, featVal));\n } else if (!lenient) {\n throw createException(XCASParsingException.UNKNOWN_FEATURE, featName);\n }\n } else {\n // feature is not null\n if (feat.getRangeImpl().isRefType) {\n // queue up a fixup action to be done\n // after the external ids get properly associated with\n // internal ones.\n\n fixupToDos.add(() -> finalizeRefValue(Integer.parseInt(featVal), fs, feat));\n } else { // is not a ref type.\n CASImpl.setFeatureValueFromStringNoDocAnnotUpdate(fs, feat, featVal);\n }\n\n }\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$14);\r\n return target;\r\n }\r\n }", "Feature findById(Long featureId);", "String getNameElement();", "public interface FeatureBuilder {\r\n\t\r\n\tpublic SimpleFeatureType getType() ;\r\n\r\n\tpublic SimpleFeature buildFeature(Geometry geometry);\r\n\r\n\tpublic SimpleFeatureCollection buildFeatureCollection(Collection<Geometry> geometryCollection);\r\n\t\r\n\tpublic SimpleFeatureBuilder createFeatureBuilder();\r\n\t\r\n\tpublic SimpleFeatureTypeBuilder createFeatureTypeBuilder(SimpleFeatureType sft, String typeName);\r\n\t\t\r\n}", "public DasFeature[] getAllFeatures() {\n Vector feats = new Vector();\n while (iXml.indexOf(\"<FEATURE\", lastFeatureEndPosition + 9) != -1) {\n String feature = iXml.substring(iXml.indexOf(\"<FEATURE\", lastFeatureEndPosition + 9), iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9) + 10);\n lastFeatureEndPosition = iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9);\n if (feature.indexOf(\"<NOTE>No features found for the segment</NOTE>\") < 0) {\n DasFeature f = new DasFeature(feature);\n feats.add(f);\n }\n }\n DasFeature[] features = new DasFeature[feats.size()];\n feats.toArray(features);\n return features;\n }" ]
[ "0.63993514", "0.6360719", "0.6360091", "0.63567144", "0.61915654", "0.61915654", "0.6064196", "0.6007852", "0.5939872", "0.57788897", "0.57134813", "0.57134813", "0.56486875", "0.56133693", "0.56133693", "0.5589924", "0.55885106", "0.5582123", "0.5581737", "0.5548676", "0.5490405", "0.5461646", "0.5446049", "0.5437246", "0.54188544", "0.54188544", "0.5417495", "0.53986883", "0.53942174", "0.53751266", "0.537342", "0.5370308", "0.53587604", "0.5351015", "0.5340097", "0.5330324", "0.53295887", "0.53198695", "0.53186345", "0.5295612", "0.5295612", "0.5288969", "0.5288826", "0.5233243", "0.52326465", "0.5232192", "0.5228076", "0.52038616", "0.52011436", "0.5146089", "0.5142216", "0.5141573", "0.5138043", "0.51372445", "0.5127691", "0.5115932", "0.51061505", "0.510184", "0.5101778", "0.50976735", "0.5096204", "0.5085475", "0.507451", "0.5055697", "0.5045542", "0.5039735", "0.5037658", "0.5019289", "0.5012863", "0.5012863", "0.5004077", "0.5004077", "0.50020576", "0.49924982", "0.4987089", "0.49783415", "0.49746588", "0.4970613", "0.49619725", "0.49464872", "0.49430725", "0.4940074", "0.49385402", "0.49278784", "0.49278784", "0.49262428", "0.4925226", "0.49181426", "0.49039203", "0.48802653", "0.48740464", "0.48705763", "0.48693657", "0.48693657", "0.48475304", "0.48431498", "0.48292845", "0.4823099", "0.48207614", "0.48110873" ]
0.78135836
0
TODO Autogenerated method stub
public void setFeatureSerializationStructure(EStructuralFeature eStructuralFeature, int serializationStructure) { }
{ "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 EStructuralFeature getAttribute(EClass eClass, String namespace, String name) { 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
D3 Class Constructor. The Constructor's Private permission ensures that the D3 Class cannot be instantiated other than through the getInstance() method.
private D3() { super(3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static D3 getInstance() {\n \n if(instance == null) {\n instance = new D3();\n }\n \n return instance;\n }", "public MultiShape3D()\n {\n this( (Geometry)null, (Appearance)null );\n }", "protected AbstractMatrix3D() {}", "public J3DAttribute () {}", "public ViewerPosition3D()\n {\n }", "public Object3D() {\n objectVectors = new ArrayList<>();\n linesToDraw = new ArrayList<>();\n }", "public Vertex3D() {\n this(0.0, 0.0, 0.0);\n }", "private Vector3D(int x, int y, int z) {\n this(x, y, z, null);\n }", "private Vect3() {\n\t\tthis(0.0,0.0,0.0);\n\t}", "public WB_Normal3d() {\r\n\t\tsuper();\r\n\t}", "public Vector3D(double x, double y, double z) {\r\n super(x, y, z);\r\n\t}", "public Vector3D() {\r\n\t\tthis(0.0);\r\n\t}", "public NetscapeV3Factory() {\r\n }", "ImageComponent3D() {}", "public CMLVector3() {\r\n }", "public D() {}", "public Vector3D() {\n zero();\n }", "public mapper3c() { super(); }", "public Point3D(double x,double y,double z)\n {\n _x=x;\n _y=y;\n _z=z;\n }", "Third()\n\t{\n\t\tsuper();\n\t\tSystem.out.println(\"Third level Constructor\");\n\t}", "public SmoothData3D(int nX, int nY){\n\tsuper(nX,nY);\n }", "private Singletion3() {}", "public Level3()\n {\n super();\n }", "public Constructor3DAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = Constructor3DPackage.eINSTANCE;\n\t\t}\n\t}", "private S3Utils() {\n throw new UnsupportedOperationException(\"This class cannot be instantiated\");\n }", "public Vertex3D(Vertex3D c) {\n this(c.x, c.y, c.z);\n }", "public CircleCADTool() {\r\n }", "public AbstractCube7Idx3D() {\n super(7, 8, 5 * 12, 5 * 5 * 6, 1);\n init();\n }", "private void createD3Example() {\n\n\t\tSystem.out.println(\"createD3Example\");\n\n\t\tboolean showPoints = true;\n\n\t\tint widthSVG = 1200;\n\t\tint heightSVG = 800;\n\n\t\td3 = browser.getD3();\n//\t\tSystem.out.println(\"D3 version \" + d3.version());\n\t\twebEngine = d3.getWebEngine();\n\n\t\t// apply CSS\n\t\tloadCssForThisClass();\n\n\t\tsvg = d3.select(\"svg\")\n\t\t\t\t.attr(\"width\", widthSVG)\n\t\t\t\t.attr(\"height\", heightSVG);\n\n\t\ttry {\n\n\t\t\tinjectStyleInSVG();\n\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\n\t\t// create initial d3 content\n\n\t\t// data that you want to plot, I\"ve used separate arrays for x and y values\n\t\tdouble[] xData = {5, 10, 25, 32, 40, 40, 15, 7};\n\t\tdouble[] yData = {3, 17, 4, 10, 6, -20, -20.0, 0};\n\n\t\t// size and margins for the chart\n\n\t\tdouble totalWidth = 550;\n\t\tdouble totalHeight = 550;\n\n\t\tdouble marginLeft = 60;\n\t\tdouble marginRight = 15;\n\n\t\tdouble marginTop = 20;\n\t\tdouble marginBottom = 60;\n\n\t\tdouble width = totalWidth - marginLeft - marginRight;\n\t\tdouble height = totalHeight - marginTop - marginBottom;\n\n\t\t// x and y scales, I've used linear here but there are other options\n\t\t// the scales translate data values to pixel values for you\n\t\tdouble xMin = 0;\n\t\tdouble xMax = 50;\n\t\tLinearScale x = d3.scale().linear() //\n\t\t .domain(new double[]{xMin, xMax}) // the range of the values to plot\n\t\t .range(new double[]{0, width}); // the pixel range of the x-axis\n\n\t\tdouble yMin = -25;\n\t\tdouble yMax = 25;\n\t\tLinearScale y = d3.scale().linear() //\n\t\t .domain(new double[]{yMin, yMax}) //\n\t\t .range(new double[]{height, 0});\n\n\t\t// the chart object, includes all margins\n\t\tSelection chart = d3.select(\"svg\") //\n\t\t\t.attr(\"width\", width + marginRight + marginLeft) //\n\t\t\t.attr(\"height\", height + marginTop + marginBottom) //\n\t\t\t.attr(\"class\", \"chart\");\n\n\t\t// the main object where the chart and axis will be drawn\n\t\tSelection main = chart.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(\" + marginLeft + \",\" + marginTop + \")\") //\n\t\t\t.attr(\"width\", width) //\n\t\t\t.attr(\"height\", height) //\n\t\t\t.attr(\"class\", \"main\");\n\n\t\t// draw the x axis\n\t\tAxis xAxis = d3.svg().axis().scale(x).orient(Orientation.BOTTOM);\n\n\t\t//xAxis.innerTickSize(10);\n\n\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,\" + height + \")\") //\n\t\t\t.attr(\"class\", \"main axis date\").call(xAxis);\n\n\t\t// draw the y axis\n\t\tAxis yAxis = d3.svg().axis() //\n\t\t\t.scale(y) //\n\t\t\t.orient(Orientation.LEFT);\n\t\t\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,0)\") //\n\t\t\t.attr(\"class\", \"main axis date\") //\n\t\t\t.call(yAxis);\n\n\t\t// draw the graph object\n\t\tSelection g = main.append(\"svg:g\");\n\n\t\tg.selectAll(\"scatter-dots\")\n\t\t .data(yData) // using the values in the ydata array\n\t\t .enter().append(\"svg:circle\") // create a new circle for each value\n\t\t .attr(\"cy\", new YAxisDatumFunction(webEngine, y, yData) ) // translate y value to a pixel\n\t\t .attr(\"cx\", new XAxisDatumFunction(webEngine, x, xData)) // translate x value\n\t\t .attr(\"r\", 5) // radius of circle\n\t\t .style(\"opacity\", 1.0); // opacity of circle\n\n\n\t\t// Line, the path generator\n\t\tLine line;\n\n\t\tInterpolationMode mode = InterpolationMode.LINEAR;\n\n\t\tline = d3.svg().line()\n\t\t\t\t.x(new XAxisDatumFunction(webEngine, x, xData))\n\t\t\t\t.y(new YAxisDatumFunction(webEngine, y, yData));\n\n\t\tSelection g2 = g.append(\"svg:g\")\n\t\t\t\t.classed(\"Pippo-line-group\", true);\n\n\t\tString cssClassName = \"Agodemar-Test-Line\";\n\t\tSelection pathLine = g2.append(\"path\").classed(cssClassName, true);\n\t\tpathLine\n\t\t\t.attr(\"fill\",\"none\")\n\t\t\t.attr(\"stroke\",\"red\")\n\t\t\t.attr(\"stroke-width\",\"5\")\n\t\t\t.attr(\"stroke-linecap\",\"square\") // \"butt\", \"round\", \"square\"\n\t\t\t.attr(\"stroke-dasharray\",\"15,10\");\n\n\t\tfinal Stack<Coords> points = new Stack<>();\n\n//\t\tdouble [] x = {50.0, 120.0, 400.0, 700};\n//\t\tdouble [] y = {100.0, 30.0, 20.0, 200};\n\n\t\tIntStream.range(0, xData.length)\n\t\t\t.forEach(i ->\n\t\t\t\t\tpoints.push(new Coords(webEngine, xData[i], yData[i]))\n\t\t\t\t\t);\n\n//\t\tSystem.out.println(\"points:\");\n//\t\tpoints.stream()\n//\t\t\t.forEach(p -> System.out.println(p.x()+\", \"+p.y()));\n\n\t\tmode = InterpolationMode.MONOTONE;\n\t\tline = line.interpolate(mode);\n\t\tSystem.out.println(\"Interpolation mode: \" + line.interpolate());\n\n\t\tdouble tension = 0.1;\n\t\tline = line.tension(tension);\n//\t\tSystem.out.println(\"tension: \" + line.tension());\n\n\t\tList<Coords> coordsList = new ArrayList<>(points);\n\n//\t\tSystem.out.println(\"coordsList:\");\n//\t\tcoordsList.stream()\n//\t\t\t.forEach(c -> System.out.println(c.x()+\", \"+c.y()));\n\n\t\tString coordinates = line.generate(coordsList);\n\n//\t\tSystem.out.println(\"coordinates: \" + coordinates);\n\n\t\tpathLine.attr(\"d\", coordinates);\n\n\t\tLabelFactory labelFactory = new LabelFactory();\n\t\t\n//\t\tSelection myText = labelFactory.createInParentSelection(svg);\n//\t\tmyText.text(\"Agodemar!!!\");\n\t\t\n\t\tSelection text = svg.append(\"text\") //\n\t\t\t\t.attr(\"x\", 20) // String.format(\"%d\", widthSVG/2))\n\t\t\t\t.attr(\"y\", 100) // String.format(\"%d\", heightSVG/2))\n\t\t\t\t.text(\"Hello World\");\t\t\n\t\t\n\t\tsvg.append(\"g\")\n\t\t\t.attr(\"class\", \"main\")\n\t\t\t.append(\"text\")\n\t\t\t.attr(\"x\", 20).attr(\"dx\", \"12em\")\n\t\t\t.attr(\"y\", 56).attr(\"dy\", \"2em\")\n\t\t\t.attr(\"font\",\"20px sans-serif\")\n\t\t\t.text(\"Agodemar!!!\");\n\n//\t\tsvg.append(\"g\")\n//\t\t\t.attr(\"class\", \"y\" + \" \" + \"axis\")\n//\t\t\t.call(yAxis).append(\"text\")\n//\t\t\t.attr(\"transform\", \"rotate(-90)\")\n//\t\t\t.attr(\"y\", 6).attr(\"dy\", \".71em\")\n//\t\t\t.style(\"text-anchor\", \"end\")\n//\t\t\t.text(\"Frequency\");\n\t\t\n\t\t\n//\t\t// make a paragraph <p> in the html\n//\t\td3.select(\"body\").append(\"p\").text(\"Agodemar :: Hi there!\");\n\n\t}", "public\n\tVector3()\n\t{\n\t\tdata = new double[3];\n\t\tdata[0] = 0;\n\t\tdata[1] = 0;\n\t\tdata[2] = 0;\n\t}", "private C3P0Helper() { }", "public DomainKnowledge() {\r\n\t\tthis.construct(3);\r\n\t}", "private Singleton()\n\t\t{\n\t\t}", "public Vector3D(double x, double y, double z) {\n this.xCoord = x;\n this.yCoord = y;\n this.zCoord = z;\n }", "private TagCacheManager(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "public Project3() {\n\t\tcreateComponent();\n\t\twireComponent();\n\t}", "public Vector3D(float x, float y, float z)\r\n\t{\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t\tthis.z = z;\r\n\t}", "protected DPlugin()\n\t{\n\t\t//Instantiate the DLogger object.\n\t\tlog \t\t = new DLogger();\n\t\t//Instantiate the DStorage object.\n\t\tstorageHandler = new DStorage();\n\t}", "public Vector3D(double x, double y, double z) {\n this.x = x;\n this.y = y;\n this.z = z;\n }", "private Instantiation(){}", "public Vec3D() {\n\t\tx = y = z = 0.0f;\n\t}", "public Vector3 () {\n }", "private DataManager() {\n }", "public KdTree() \r\n\t{\r\n\t}", "private Singleton() {\n\t}", "public ThreeVector() { \r\n\t\t//returns null for no arguments\r\n\t}", "private Singleton(){}", "public MultiShape3D( Geometry geometry )\n {\n this( geometry, (Appearance)null );\n }", "private Utility() {\n throw new IllegalAccessError();\n }", "public KdTree() {\n }", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "public Vertex3D(double x, double y, double z) {\n this.x = x;\n this.y = y;\n this.z = z;\n }", "public DoubleMatrixDataset() {\r\n }", "public Demo3() {}", "private DMarlinRenderingEngine() {\n }", "public DX(FX fx, C1595a3 a3Var) {\n super(a3Var);\n this.d = fx;\n }", "private SingletonObject() {\n\n\t}", "private CircleSampler() {\n\t}", "public Vec3(){\n\t\tthis(0,0,0);\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "public Point3(float x, float y, float z) {\r\n\t\tsuper(x, y);\r\n\t\tthis.z = z;\r\n\t}", "private MeshUtil() {}", "public KDTree()\n\t{\n\t}", "private Singleton() { }", "public Vector3(double x, double y, double z)\n\t{\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = z;\n\t}", "public DancingNode()\n {\n L=R=U=D=this;\n }", "private GuiUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private SingleObject()\r\n {\r\n }", "public BoundingBox3d() {\n reset();\n }", "public Pj3dObj Pj3dObj(String file)\r\n\t{\r\n \tPj3dObj obj = new Pj3dObj(this, file);\r\n\t\treturn obj;\r\n\t}", "public Life3D() {\n // Set up the user interface.\n myDisplay = Display.getDisplay(this);\n myCanvas = new CallbackCanvas(this);\n myCanvas.setCommandListener(this);\n myCanvas.addCommand(exitCommand);\n }", "public FloatVector3D(){}", "public Encrypt3DESSamples() {\n }", "public final void initialize()\n {\n x3dModel = new X3DObject().setProfile(\"Immersive\").setVersion(\"3.3\")\n .setHead(new headObject()\n .addComponent(new componentObject().setName(\"Navigation\").setLevel(3))\n .addUnit(new unitObject().setName(\"AngleUnitConversion\").setConversionFactor(1.0).setCategory(\"angle\"))\n .addUnit(new unitObject().setName(\"LengthUnitConversion\").setConversionFactor(1.0).setCategory(\"length\"))\n .addMeta(new metaObject().setName(\"title\").setContent(\"HelloWorldProgramOutput.x3d\"))\n .addMeta(new metaObject().setName(\"description\").setContent(\"Example HelloWorldProgram creates an X3D model using the X3D Java Scene Access Interface (SAI) Library\"))\n .addMeta(new metaObject().setName(\"reference\").setContent(\"http://www.web3d.org/specifications/java/X3DJSAIL.html\"))\n .addMeta(new metaObject().setName(\"generator\").setContent(\"HelloWorldProgramOutput.java\"))\n .addMeta(new metaObject().setName(\"created\").setContent(\"6 September 2016\"))\n .addMeta(new metaObject().setName(\"modified\").setContent(\"29 May 2017\"))\n .addMeta(new metaObject().setName(\"generator\").setContent(\"X3D Java Scene Access Interface Library (X3DJSAIL)\"))\n .addMeta(new metaObject().setName(\"generator\").setContent(\"http://www.web3d.org/specifications/java/examples/HelloWorldProgram.java\"))\n .addMeta(new metaObject().setName(\"generator\").setContent(\"Netbeans http://www.netbeans.org\"))\n .addMeta(new metaObject().setName(\"creator\").setContent(\"Don Brutzman\"))\n .addMeta(new metaObject().setName(\"reference\").setContent(\"https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgramOutput.x3d\"))\n .addMeta(new metaObject().setName(\"reference\").setContent(\"Console output, ClassicVRML encoding, VRML97 encoding and pretty-print documentation:\"))\n .addMeta(new metaObject().setName(\"reference\").setContent(\"HelloWorldProgramOutput.txt\"))\n .addMeta(new metaObject().setName(\"reference\").setContent(\"HelloWorldProgramOutput.x3dv\"))\n .addMeta(new metaObject().setName(\"reference\").setContent(\"HelloWorldProgramOutput.wrl\"))\n .addMeta(new metaObject().setName(\"reference\").setContent(\"HelloWorldProgramOutput.html\"))\n .addMeta(new metaObject().setName(\"X3dValidator\").setContent(\"https://savage.nps.edu/X3dValidator?url=http://www.web3d.org/specifications/java/examples/HelloWorldProgramOutput.x3d\"))\n .addMeta(new metaObject().setName(\"identifier\").setContent(\"http://www.web3d.org/specifications/java/examples/HelloWorldProgramOutput.x3d\"))\n .addMeta(new metaObject().setName(\"license\").setContent(\"../license.html\"))\n .addMeta(new metaObject().setName(\"SpecialTest\").setContent(\"tested sat: name value cannot contain embedded space character\"))\n .addComments(\" comment #1 \")\n .addComments(\" comment #2 \")\n .addComments(\" comment #3 \")\n .addComments(\" comment #4 \"))\n .setScene(new SceneObject()\n .addChild(new ViewpointGroupObject().setDescription(\"Available viewpoints\")\n .addChild(new ViewpointObject(\"DefaultView\").setDescription(\"Hello X3DJSAIL\"))\n .addChild(new ViewpointObject(\"TopDownView\").setDescription(\"top-down view from above\").setPosition(0.0f,100.0f,0.0f).setOrientation(1.0f,0.0f,0.0f,-1.570796f)))\n .addChild(new WorldInfoObject(\"WorldInfoDEF\").setTitle(\"HelloWorldProgram produced by X3D Java SAI Library (X3DJSAIL)\"))\n .addChild(new WorldInfoObject().setUSE(\"WorldInfoDEF\"))\n .addChild(new WorldInfoObject().setUSE(\"WorldInfoDEF\"))\n .addMetadata(new MetadataStringObject(\"scene.addChildMetadataObject\").setName(\"test\"))\n .addChild(new LayerSetObject(\"scene.addChildLayerSetObjectTest\"))\n .addChild(new TransformObject(\"LogoGeometryTransform\").setTranslation(0.0f,1.5f,0.0f)\n .addChild(new AnchorObject().setDescription(\"select for X3D Java SAI Library (X3DJSAIL) description\").setUrl(new MFStringObject(\"\\\"../X3DJSAIL.html\\\" \\\"http://www.web3d.org/specifications/java/X3DJSAIL.html\\\"\"))\n .addChild(new ShapeObject(\"BoxShape\")\n .setAppearance(new AppearanceObject()\n .setMaterial(new MaterialObject(\"GreenMaterial\").setDiffuseColor(0.0f,1.0f,1.0f).setTransparency(0.1f).setEmissiveColor(0.8f,0.0f,0.0f))\n .setTexture(new ImageTextureObject().setUrl(new MFStringObject(\"\\\"images/X3dJavaSceneAccessInterfaceSaiLibrary.png\\\" \\\"http://www.web3d.org/specifications/java/examples/images/X3dJavaSceneAccessInterfaceSaiLibrary.png\\\"\"))))\n .setGeometry(new BoxObject(\"test-NMTOKEN_regex.0123456789\").setCssClass(\"textured\")))))\n .addChild(new ShapeObject(\"LineShape\")\n .setAppearance(new AppearanceObject()\n .setMaterial(new MaterialObject().setEmissiveColor(0.6f,0.19607843f,0.8f)))\n .setGeometry(new IndexedLineSetObject().setCoordIndex(new int[] {0,1,2,3,4,0})\n .setCoord(new CoordinateObject().setPoint(new MFVec3fObject(new float[] {0.0f,1.5f,0.0f,2.0f,1.5f,0.0f,2.0f,1.5f,-2.0f,-2.0f,1.5f,-2.0f,-2.0f,1.5f,0.0f,0.0f,1.5f,0.0f})))))\n .addChild(new PositionInterpolatorObject(\"BoxPathAnimator\").setKey(new float[] {0.0f,0.125f,0.375f,0.625f,0.875f,1.0f}).setKeyValue(new MFVec3fObject(new float[] {0.0f,1.5f,0.0f,2.0f,1.5f,0.0f,2.0f,1.5f,-2.0f,-2.0f,1.5f,-2.0f,-2.0f,1.5f,0.0f,0.0f,1.5f,0.0f})))\n .addChild(new TimeSensorObject(\"OrbitClock\").setCycleInterval(8.0).setLoop(true))\n .addChild(new ROUTEObject().setFromNode(\"OrbitClock\").setFromField(\"fraction_changed\").setToNode(\"BoxPathAnimator\").setToField(\"set_fraction\"))\n .addChild(new ROUTEObject().setFromNode(\"BoxPathAnimator\").setFromField(\"value_changed\").setToNode(\"LogoGeometryTransform\").setToField(\"set_translation\"))\n .addChild(new TransformObject(\"TextTransform\").setTranslation(0.0f,-1.5f,0.0f)\n .addChild(new ShapeObject()\n .setAppearance(new AppearanceObject()\n .setMaterial(new MaterialObject().setUSE(\"GreenMaterial\")))\n .setGeometry(new TextObject().setString(new MFStringObject(\"\\\"X3D Java\\\" \\\"SAI Library\\\" \\\"X3DJSAIL\\\"\"))\n .setMetadata(new MetadataSetObject().setName(\"EscapedQuotationMarksMetadataSet\")\n .addValue(new MetadataStringObject().setName(\"escapedQuotesTest1\").setValue(new MFStringObject(\"\\\"escaped quotation marks example 1: He said, \\\\\\\"Immel did it!\\\\\\\"\\\"\")))\n .addValue(new MetadataStringObject().setName(\"escapedQuotesTest2\").setValue(new MFStringObject(\"\\\"escaped quotation marks example 2: He said, &quot;Immel did it!&quot;\\\"\"))))\n .setFontStyle(new FontStyleObject().setJustify(new MFStringObject(\"\\\"MIDDLE\\\" \\\"MIDDLE\\\"\")))\n .addComments(\" escaped quotation marks example 3: He said, \\\"Immel did it!\\\" \")\n .addComments(\" escaped quotation marks example 4: He said, &quot;Immel did it!&quot; \")))\n .addChild(new CollisionObject()\n .addComments(\" test containerField='proxy' \")\n .setProxy(new ShapeObject(\"ProxyShape\")\n .setGeometry(new TextObject().setString(new MFStringObject(\"\\\"One, Two, Three\\\" \\\"\\\" \\\"He said, \\\\\\\"Immel did it!\\\\\\\"\\\"\")))\n .addComments(\" alternative XML encoding: Text string='\\\"One, Two, Three\\\" \\\"\\\" \\\"He said, \\\\&quot;Immel did it!\\\\&quot;\\\"' \")\n .addComments(\" alternative Java source: .setString(new String [] {\\\"One, Two, Three\\\", \\\"\\\", \\\"He said, \\\\\\\"Immel did it!\\\\\\\"\\\"}) \")\n .addComments(\" reference: http://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/StringArrayEncodingExamplesIndex.html \")))\n .addComments(\" It's a beautiful world \")\n .addComments(\" ... for you! \")\n .addComments(\" https://en.wikipedia.org/wiki/Beautiful_World_(Devo_song) \"))\n .addComments(\" repeatedly spin 180 degrees as a readable special effect \")\n .addChild(new OrientationInterpolatorObject(\"SpinInterpolator\").setKey(new float[] {0.0f,0.5f,1.0f}).setKeyValue(new MFRotationObject(new float[] {0.0f,1.0f,0.0f,4.712389f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,1.5707964f})))\n .addChild(new TimeSensorObject(\"SpinClock\").setCycleInterval(5.0).setLoop(true))\n .addChild(new ROUTEObject().setFromNode(\"SpinClock\").setFromField(\"fraction_changed\").setToNode(\"SpinInterpolator\").setToField(\"set_fraction\"))\n .addChild(new ROUTEObject().setFromNode(\"SpinInterpolator\").setFromField(\"value_changed\").setToNode(\"TextTransform\").setToField(\"rotation\"))\n .addChild(new GroupObject(\"BackgroundGroup\")\n .addChild(new BackgroundObject(\"GradualBackground\"))\n .addChild(new ScriptObject(\"colorTypeConversionScript\").setSourceCode(\n\"<![CDATA[\" + \"\\n\" +\n\"\\n\" + \n\"\\n\" + \n\"ecmascript:\" + \"\\n\" + \n\"\\n\" + \n\"function colorInput (eventValue) // Example source code\" + \"\\n\" + \n\"{\" + \"\\n\" + \n\" colorsOutput = new MFColor(eventValue); // assigning value sends output event\" + \"\\n\" + \n\"// Browser.print('colorInput=' + eventValue + ', colorsOutput=' + colorsOutput + '\\\\n');\" + \"\\n\" + \n\"}\" + \"\\n\" + \"]]>\"\n)\n .addField(new fieldObject().setAccessType(\"inputOnly\").setName(\"colorInput\").setType(\"SFColor\"))\n .addField(new fieldObject().setAccessType(\"outputOnly\").setName(\"colorsOutput\").setType(\"MFColor\")))\n .addChild(new ColorInterpolatorObject(\"ColorAnimator\").setKey(new float[] {0.0f,0.5f,1.0f}).setKeyValue(new MFColorObject(new float[] {0.9411765f,1.0f,1.0f,0.29411766f,0.0f,0.50980395f,0.9411765f,1.0f,1.0f}))\n .addComments(\" AZURE to INDIGO and back again \"))\n .addChild(new TimeSensorObject(\"ColorClock\").setCycleInterval(60.0).setLoop(true))\n .addChild(new ROUTEObject().setFromNode(\"colorTypeConversionScript\").setFromField(\"colorsOutput\").setToNode(\"GradualBackground\").setToField(\"skyColor\"))\n .addChild(new ROUTEObject().setFromNode(\"ColorAnimator\").setFromField(\"value_changed\").setToNode(\"colorTypeConversionScript\").setToField(\"colorInput\"))\n .addChild(new ROUTEObject().setFromNode(\"ColorClock\").setFromField(\"fraction_changed\").setToNode(\"ColorAnimator\").setToField(\"set_fraction\")))\n .addChild(new ProtoDeclareObject().setName(\"ArtDeco01Material\").setAppinfo(\"tooltip: ArtDeco01 prototype is a Material node\")\n .setProtoInterface(new ProtoInterfaceObject()\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"description\").setType(\"SFString\").setValue(\"ArtDeco01 prototype is a Material node\").setAppinfo(\"tooltip for descriptionField\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"enabled\").setType(\"SFBool\").setValue(\"true\")))\n .setProtoBody(new ProtoBodyObject()\n .addComments(\" Initial node of ProtoBody determines prototype node type \")\n .addChild(new MaterialObject().setShininess(0.127273f).setAmbientIntensity(0.25f).setSpecularColor(0.276305f,0.11431f,0.139857f).setDiffuseColor(0.282435f,0.085159f,0.134462f))\n .addComments(\" [HelloWorldProgram diagnostic] should be connected to scene graph: ArtDeco01ProtoDeclare.getNodeType()=\\\"Material\\\" \")\n .addComments(\" presence of follow-on TouchSensor shows that additional nodes are allowed in ProtoBody after initial node, regardless of node types \")\n .addChild(new TouchSensorObject().setDescription(\"within ProtoBody\")\n .setIS(new ISObject()\n .addConnect(new connectObject().setNodeField(\"description\").setProtoField(\"description\"))\n .addConnect(new connectObject().setNodeField(\"enabled\").setProtoField(\"enabled\"))))))\n .addChild(new ExternProtoDeclareObject().setName(\"ArtDeco02Material\").setAppinfo(\"this is a different Material node\").setUrl(new MFStringObject(\"\\\"http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/ArtDecoPrototypesExcerpt.x3d#ArtDeco02\\\" \\\"http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/ArtDecoPrototypesExcerpt.x3dv#ArtDeco02\\\"\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"description\").setType(\"SFString\").setAppinfo(\"tooltip for descriptionField\"))\n .addComments(\" [HelloWorldProgram diagnostic] ArtDeco02ExternProtoDeclare.getNodeType()=\\\"ERROR_UNKNOWN_EXTERNPROTODECLARE_NODE_TYPE: ExternProtoDeclare name='ArtDeco02Material' type cannot be remotely accessed at run time, TODO X3DJSAIL needs to add further capability.\\\" \"))\n .addComments(\" Tested ArtDeco01ProtoInstance, ArtDeco02ProtoInstance for improper node type when ProtoInstance is added in wrong place \")\n .addChild(new ShapeObject(\"TestShape1\")\n .setAppearance(new AppearanceObject(\"TestAppearance1\")\n .setMaterial(new ProtoInstanceObject().setName(\"ArtDeco01\")\n .addFieldValue(new fieldValueObject().setName(\"description\").setValue(\"ArtDeco01 can substitute for a Material node\"))\n .addComments(\" [HelloWorldProgram diagnostic] ArtDeco01ProtoInstance.getNodeType()=\\\"ERROR_UNKNOWN_PROTOINSTANCE_NODE_TYPE: ProtoInstance name='ArtDeco01' has no corresponding ProtoDeclareObject or ExternProtoDeclareObject to provide type.\\\" \"))\n .addComments(\" ArtDeco01 Material prototype goes here... \"))\n .setGeometry(new SphereObject().setRadius(0.001f)))\n .addChild(new ShapeObject(\"TestShape2\")\n .setAppearance(new AppearanceObject(\"TestAppearance2\")\n .setMaterial(new ProtoInstanceObject().setName(\"ArtDeco02\")\n .addFieldValue(new fieldValueObject().setName(\"description\").setValue(\"ArtDeco02 can substitute for another Material node\"))\n .addComments(\" [HelloWorldProgram diagnostic] ArtDeco02ProtoInstance.getNodeType()=\\\"ERROR_UNKNOWN_PROTOINSTANCE_NODE_TYPE: ProtoInstance name='ArtDeco02' has no corresponding ProtoDeclareObject or ExternProtoDeclareObject to provide type.\\\" \"))\n .addComments(\" ArtDeco02 Material prototype goes here... \"))\n .setGeometry(new ConeObject().setBottomRadius(0.001f).setHeight(0.001f)))\n .addChild(new InlineObject(\"inlineSceneDef\").setUrl(new MFStringObject(\"\\\"someOtherScene.x3d\\\"\")))\n .addChild(new IMPORTObject().setImportedDEF(\"WorldInfoDEF\").setInlineDEF(\"inlineSceneDef\").setAS(\"WorldInfoDEF2\"))\n .addChild(new EXPORTObject().setLocalDEF(\"WorldInfoDEF\").setAS(\"WorldInfoDEF3\"))\n .addChild(new ProtoDeclareObject().setName(\"MaterialModulator\").setAppinfo(\"mimic a Material node and modulate fields as an animation effect\").setDocumentation(\"http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/MaterialModulatorIndex.html\")\n .setProtoInterface(new ProtoInterfaceObject()\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"enabled\").setType(\"SFBool\").setValue(\"true\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"diffuseColor\").setType(\"SFColor\").setValue(\"0 0 0\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"emissiveColor\").setType(\"SFColor\").setValue(\"0.05 0.05 0.5\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"specularColor\").setType(\"SFColor\").setValue(\"0 0 0\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"transparency\").setType(\"SFFloat\").setValue(\"0.0\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"shininess\").setType(\"SFFloat\").setValue(\"0.0\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"ambientIntensity\").setType(\"SFFloat\").setValue(\"0.0\")))\n .setProtoBody(new ProtoBodyObject()\n .addChild(new MaterialObject(\"MaterialNode\")\n .setIS(new ISObject()\n .addConnect(new connectObject().setNodeField(\"diffuseColor\").setProtoField(\"diffuseColor\"))\n .addConnect(new connectObject().setNodeField(\"emissiveColor\").setProtoField(\"emissiveColor\"))\n .addConnect(new connectObject().setNodeField(\"specularColor\").setProtoField(\"specularColor\"))\n .addConnect(new connectObject().setNodeField(\"transparency\").setProtoField(\"transparency\"))\n .addConnect(new connectObject().setNodeField(\"shininess\").setProtoField(\"shininess\"))\n .addConnect(new connectObject().setNodeField(\"ambientIntensity\").setProtoField(\"ambientIntensity\"))))\n .addComments(\" Only first node (the node type) is renderable, others are along for the ride \")\n .addChild(new ScriptObject(\"MaterialModulatorScript\").setSourceCode(\n\"<![CDATA[\" + \"\\n\" +\n\"\\n\" + \n\"\\n\" + \n\"ecmascript:\" + \"\\n\" + \n\"function initialize ()\" + \"\\n\" + \n\"{\" + \"\\n\" + \n\" newColor = diffuseColor; // start with correct color\" + \"\\n\" + \n\"}\" + \"\\n\" + \n\"function set_enabled (newValue)\" + \"\\n\" + \n\"{\" + \"\\n\" + \n\"\tenabled = newValue;\" + \"\\n\" + \n\"}\" + \"\\n\" + \n\"function clockTrigger (timeValue)\" + \"\\n\" + \n\"{\" + \"\\n\" + \n\" if (!enabled) return;\" + \"\\n\" + \n\" red = newColor.r;\" + \"\\n\" + \n\" green = newColor.g;\" + \"\\n\" + \n\" blue = newColor.b;\" + \"\\n\" + \n\" \" + \"\\n\" + \n\" // note different modulation rates for each color component, % is modulus operator\" + \"\\n\" + \n\" newColor = new SFColor ((red + 0.02) % 1, (green + 0.03) % 1, (blue + 0.04) % 1);\" + \"\\n\" + \n\"\tif (enabled)\" + \"\\n\" + \n\"\t{\" + \"\\n\" + \n\"\t\tBrowser.print ('diffuseColor=(' + red + ',' + green + ',' + blue + ') newColor=' + newColor.toString() + '\\\\n');\" + \"\\n\" + \n\"\t}\" + \"\\n\" + \n\"}\" + \"\\n\" + \"]]>\"\n)\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"enabled\").setType(\"SFBool\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"diffuseColor\").setType(\"SFColor\"))\n .addField(new fieldObject().setAccessType(\"outputOnly\").setName(\"newColor\").setType(\"SFColor\"))\n .addField(new fieldObject().setAccessType(\"inputOnly\").setName(\"clockTrigger\").setType(\"SFTime\"))\n .setIS(new ISObject()\n .addConnect(new connectObject().setNodeField(\"enabled\").setProtoField(\"enabled\"))\n .addConnect(new connectObject().setNodeField(\"diffuseColor\").setProtoField(\"diffuseColor\"))))))\n .addComments(\" Test success: declarative statement createDeclarativeShapeTests() \")\n .addChild(new GroupObject(\"DeclarativeGroupExample\")\n .addChild(new ShapeObject()\n .setMetadata(new MetadataStringObject(\"FindableMetadataStringTest\").setName(\"findThisNameValue\").setValue(new MFStringObject(\"\\\"test case\\\"\")))\n .setAppearance(new AppearanceObject(\"DeclarativeAppearanceExample\")\n .setMaterial(new ProtoInstanceObject(\"MyMaterialModulator\", \"MaterialModulator\").setDEF(\"MyMaterialModulator\").setName(\"MaterialModulator\"))\n .addComments(\" DeclarativeMaterialExample gets overridden by subsequently added MaterialModulator ProtoInstance \"))\n .setGeometry(new ConeObject().setBottomRadius(0.05f).setHeight(0.1f).setBottom(false)))\n .addComments(\" Test success: declarativeGroup.addChild() singleton pipeline method \"))\n .addComments(\" Test success: declarative statement addChild() \")\n .addComments(new String[] {\" Test success: x3dModel.findNodeByDEF(DeclarativeAppearanceExample) = <Appearance DEF='DeclarativeAppearanceExample'/> i.e.\",\n\"<Appearance DEF='DeclarativeAppearanceExample'>\",\n\" <ProtoInstance DEF='MyMaterialModulator' name='MaterialModulator' containerField='material'/>\",\n\" <!- - DeclarativeMaterialExample gets overridden by subsequently added MaterialModulator ProtoInstance - ->\",\n\"</Appearance> \"})\n .addComments(\" Test success: x3dModel.findElementByNameValue(findThisNameValue) = <MetadataString DEF='FindableMetadataStringTest' name='findThisNameValue' value='\\\"test case\\\"'/> \")\n .addComments(\" Test success: x3dModel.findElementByNameValue(\\\"ArtDeco01Material\\\", \\\"ProtoDeclare\\\") found \")\n .addComments(\" Test success: x3dModel.findElementByNameValue(\\\"MaterialModulator\\\", \\\"ProtoDeclare\\\") found \")\n .addComments(\" Test success: x3dModel.findElementByNameValue(\\\"MaterialModulator\\\", \\\"ProtoInstance\\\") found \")\n .addChild(new GroupObject(\"TestFieldObjectsGroup\")\n .addComments(\" testFieldObjects() results \")\n .addComments(\" SFBool default=true, true=true, false=false, negate()=true \")\n .addComments(\" MFBool default=, initial=true false true, negate()=false true false \")\n .addComments(\" SFFloat default=0.0, initial=1.0, setValue(2)=2.0, setValue(3.0f)=3.0, setValue(4.0)=4.0 \")\n .addComments(\" MFFloat default=, initial=1 2 3, append(5)=1 2 3 5, inserts(3,4)(0,0)=0 1 2 3 4 5, append(6)=0 1 2 3 4 5 6, size()=7 \")\n .addComments(\" ... get1Value[3]=3.0, remove[1]=0 2 3 4 5 6, set1Value(0,10)=10 2 3 4 5 6, multiply(2)=20 4 6 8 10 12, clear= \")\n .addComments(\" SFVec3f default=0 0 0, initial=1 2 3, setValue=4 5 6, multiply(2)=8 10 12, normalize()=0.45584232 0.5698029 0.68376344 \"))\n .addChild(new SoundObject()\n .setSource(new AudioClipObject().setUrl(new MFStringObject(\"\\\"chimes.wav\\\" \\\"http://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/chimes.wav\\\"\")))\n .addComments(\" Scene example fragment from http://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/default.x3d \"))\n .addChild(new SoundObject()\n .setSource(new MovieTextureObject().setUrl(new MFStringObject(\"\\\"mpgsys.mpg\\\" \\\"http://www.web3d.org/x3d/content/examples/ConformanceNist/Appearance/MovieTexture/mpgsys.mpg\\\"\")))\n .addComments(\" Scene example fragment from http://www.web3d.org/x3d/content/examples/ConformanceNist/Appearance/MovieTexture/mpeg1-systems.x3d \")\n .addComments(\" Expected containerField='source', allowed containerField values=\\\"texture\\\" \\\"source\\\" \\\"back\\\" \\\"bottom\\\" \\\"front\\\" \\\"left\\\" \\\"right\\\" \\\"top\\\" \\\"backTexture\\\" \\\"bottomTexture\\\" \\\"frontTexture\\\" \\\"leftTexture\\\" \\\"rightTexture\\\" \\\"topTexture\\\" \")));\n }", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "Point3D (double x, double y, double z) {\n this.x = x;\n this.y = y;\n this.z = z;\n }", "public Point3D(Point3D point) {\n\t this.x = point.x;\n\t this.y = point.y;\n\t this.z = point.z;\n }", "private StaticData() {\n\n }", "public XYScatterGrapher()\n {\n\n }", "public static void main(String[] args) {\n Demo3 d1 = new Demo3();\n\n\n }", "public DataFactoryImpl() {\n\t\tsuper();\n\t}", "public DataControlException() {\r\n }", "ClassD initClassD(ClassD iClassD)\n {\n iClassD.updateElementValue(\"ClassD\");\n return iClassD;\n }", "public Vector3 (double x, double y, double z) {\n set(x, y, z);\n }", "public DataAccessLayerException() {\n }", "public Data() {\n }", "public Data() {\n }", "public JsonDataset() {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"JsonDataset() - start\");\r\n\t\tlogger.trace(\"JsonDataset() - end\");\r\n\t}", "public Data() {\n \n }", "public Vector3(double x, double y, double z) {\n this.x = x; this.y = y; this.z = z;\n }", "public WB_Normal3d(final double x, final double y, final double z) {\r\n\t\tsuper(x, y, z);\r\n\t}", "public KdTree() \n\t {\n\t\t \n\t }", "public FileDicomBaseInner() {}", "public Vector3(double x, double y, double z) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = z;\n\t}", "public DoubleDocument () {\r\n\t}", "public MuscleSpatialHash3D(SpringlsCommon3D commons) {\r\n\t\tsuper(commons);\r\n\t}", "public Domain() {\n\n }", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "public TransformDesign() {\n tLayerPool = new TransformLayerPool();\n }" ]
[ "0.7846455", "0.6920632", "0.6694012", "0.66589844", "0.66341203", "0.65685266", "0.64433205", "0.63956696", "0.63625336", "0.6326003", "0.6296521", "0.61576974", "0.6121572", "0.6114887", "0.6109074", "0.61042255", "0.60913503", "0.60597724", "0.6047385", "0.6011866", "0.6010349", "0.59800166", "0.5979925", "0.59641266", "0.59564996", "0.5955508", "0.5936008", "0.5929452", "0.5918325", "0.58645326", "0.58609146", "0.5851133", "0.58510727", "0.5846042", "0.5828575", "0.58257157", "0.5815177", "0.58120215", "0.58083713", "0.5805861", "0.5776334", "0.57703614", "0.5749858", "0.57460463", "0.5729599", "0.57264453", "0.57250947", "0.57238775", "0.5696819", "0.56953293", "0.56748843", "0.567343", "0.5671351", "0.56709886", "0.5666691", "0.5666363", "0.5664427", "0.5661359", "0.5660151", "0.5654013", "0.564904", "0.5638812", "0.5631495", "0.56169176", "0.5616736", "0.5614519", "0.56002694", "0.55994993", "0.5597315", "0.559146", "0.55907947", "0.5584689", "0.5583687", "0.5582651", "0.55769897", "0.55658746", "0.5563157", "0.55536807", "0.5551276", "0.55511636", "0.5541971", "0.5534972", "0.5531716", "0.55311173", "0.5522843", "0.5517253", "0.5517253", "0.55059296", "0.55040884", "0.55038303", "0.5503185", "0.548609", "0.5483336", "0.5482772", "0.5478078", "0.5474371", "0.5472245", "0.5469472", "0.5467222", "0.5465858" ]
0.83322877
0
Guarantees that there is only ever a single D3 object instantiated in the program.
public static D3 getInstance() { if(instance == null) { instance = new D3(); } return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private D3() {\n super(3);\n }", "@Override\n\tpublic boolean is3D() {\n\t\treturn true;\n\t}", "public Object3D() {\n objectVectors = new ArrayList<>();\n linesToDraw = new ArrayList<>();\n }", "public boolean is3D() {\n return _is3D;\n }", "private void createD3Example() {\n\n\t\tSystem.out.println(\"createD3Example\");\n\n\t\tboolean showPoints = true;\n\n\t\tint widthSVG = 1200;\n\t\tint heightSVG = 800;\n\n\t\td3 = browser.getD3();\n//\t\tSystem.out.println(\"D3 version \" + d3.version());\n\t\twebEngine = d3.getWebEngine();\n\n\t\t// apply CSS\n\t\tloadCssForThisClass();\n\n\t\tsvg = d3.select(\"svg\")\n\t\t\t\t.attr(\"width\", widthSVG)\n\t\t\t\t.attr(\"height\", heightSVG);\n\n\t\ttry {\n\n\t\t\tinjectStyleInSVG();\n\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\n\t\t// create initial d3 content\n\n\t\t// data that you want to plot, I\"ve used separate arrays for x and y values\n\t\tdouble[] xData = {5, 10, 25, 32, 40, 40, 15, 7};\n\t\tdouble[] yData = {3, 17, 4, 10, 6, -20, -20.0, 0};\n\n\t\t// size and margins for the chart\n\n\t\tdouble totalWidth = 550;\n\t\tdouble totalHeight = 550;\n\n\t\tdouble marginLeft = 60;\n\t\tdouble marginRight = 15;\n\n\t\tdouble marginTop = 20;\n\t\tdouble marginBottom = 60;\n\n\t\tdouble width = totalWidth - marginLeft - marginRight;\n\t\tdouble height = totalHeight - marginTop - marginBottom;\n\n\t\t// x and y scales, I've used linear here but there are other options\n\t\t// the scales translate data values to pixel values for you\n\t\tdouble xMin = 0;\n\t\tdouble xMax = 50;\n\t\tLinearScale x = d3.scale().linear() //\n\t\t .domain(new double[]{xMin, xMax}) // the range of the values to plot\n\t\t .range(new double[]{0, width}); // the pixel range of the x-axis\n\n\t\tdouble yMin = -25;\n\t\tdouble yMax = 25;\n\t\tLinearScale y = d3.scale().linear() //\n\t\t .domain(new double[]{yMin, yMax}) //\n\t\t .range(new double[]{height, 0});\n\n\t\t// the chart object, includes all margins\n\t\tSelection chart = d3.select(\"svg\") //\n\t\t\t.attr(\"width\", width + marginRight + marginLeft) //\n\t\t\t.attr(\"height\", height + marginTop + marginBottom) //\n\t\t\t.attr(\"class\", \"chart\");\n\n\t\t// the main object where the chart and axis will be drawn\n\t\tSelection main = chart.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(\" + marginLeft + \",\" + marginTop + \")\") //\n\t\t\t.attr(\"width\", width) //\n\t\t\t.attr(\"height\", height) //\n\t\t\t.attr(\"class\", \"main\");\n\n\t\t// draw the x axis\n\t\tAxis xAxis = d3.svg().axis().scale(x).orient(Orientation.BOTTOM);\n\n\t\t//xAxis.innerTickSize(10);\n\n\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,\" + height + \")\") //\n\t\t\t.attr(\"class\", \"main axis date\").call(xAxis);\n\n\t\t// draw the y axis\n\t\tAxis yAxis = d3.svg().axis() //\n\t\t\t.scale(y) //\n\t\t\t.orient(Orientation.LEFT);\n\t\t\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,0)\") //\n\t\t\t.attr(\"class\", \"main axis date\") //\n\t\t\t.call(yAxis);\n\n\t\t// draw the graph object\n\t\tSelection g = main.append(\"svg:g\");\n\n\t\tg.selectAll(\"scatter-dots\")\n\t\t .data(yData) // using the values in the ydata array\n\t\t .enter().append(\"svg:circle\") // create a new circle for each value\n\t\t .attr(\"cy\", new YAxisDatumFunction(webEngine, y, yData) ) // translate y value to a pixel\n\t\t .attr(\"cx\", new XAxisDatumFunction(webEngine, x, xData)) // translate x value\n\t\t .attr(\"r\", 5) // radius of circle\n\t\t .style(\"opacity\", 1.0); // opacity of circle\n\n\n\t\t// Line, the path generator\n\t\tLine line;\n\n\t\tInterpolationMode mode = InterpolationMode.LINEAR;\n\n\t\tline = d3.svg().line()\n\t\t\t\t.x(new XAxisDatumFunction(webEngine, x, xData))\n\t\t\t\t.y(new YAxisDatumFunction(webEngine, y, yData));\n\n\t\tSelection g2 = g.append(\"svg:g\")\n\t\t\t\t.classed(\"Pippo-line-group\", true);\n\n\t\tString cssClassName = \"Agodemar-Test-Line\";\n\t\tSelection pathLine = g2.append(\"path\").classed(cssClassName, true);\n\t\tpathLine\n\t\t\t.attr(\"fill\",\"none\")\n\t\t\t.attr(\"stroke\",\"red\")\n\t\t\t.attr(\"stroke-width\",\"5\")\n\t\t\t.attr(\"stroke-linecap\",\"square\") // \"butt\", \"round\", \"square\"\n\t\t\t.attr(\"stroke-dasharray\",\"15,10\");\n\n\t\tfinal Stack<Coords> points = new Stack<>();\n\n//\t\tdouble [] x = {50.0, 120.0, 400.0, 700};\n//\t\tdouble [] y = {100.0, 30.0, 20.0, 200};\n\n\t\tIntStream.range(0, xData.length)\n\t\t\t.forEach(i ->\n\t\t\t\t\tpoints.push(new Coords(webEngine, xData[i], yData[i]))\n\t\t\t\t\t);\n\n//\t\tSystem.out.println(\"points:\");\n//\t\tpoints.stream()\n//\t\t\t.forEach(p -> System.out.println(p.x()+\", \"+p.y()));\n\n\t\tmode = InterpolationMode.MONOTONE;\n\t\tline = line.interpolate(mode);\n\t\tSystem.out.println(\"Interpolation mode: \" + line.interpolate());\n\n\t\tdouble tension = 0.1;\n\t\tline = line.tension(tension);\n//\t\tSystem.out.println(\"tension: \" + line.tension());\n\n\t\tList<Coords> coordsList = new ArrayList<>(points);\n\n//\t\tSystem.out.println(\"coordsList:\");\n//\t\tcoordsList.stream()\n//\t\t\t.forEach(c -> System.out.println(c.x()+\", \"+c.y()));\n\n\t\tString coordinates = line.generate(coordsList);\n\n//\t\tSystem.out.println(\"coordinates: \" + coordinates);\n\n\t\tpathLine.attr(\"d\", coordinates);\n\n\t\tLabelFactory labelFactory = new LabelFactory();\n\t\t\n//\t\tSelection myText = labelFactory.createInParentSelection(svg);\n//\t\tmyText.text(\"Agodemar!!!\");\n\t\t\n\t\tSelection text = svg.append(\"text\") //\n\t\t\t\t.attr(\"x\", 20) // String.format(\"%d\", widthSVG/2))\n\t\t\t\t.attr(\"y\", 100) // String.format(\"%d\", heightSVG/2))\n\t\t\t\t.text(\"Hello World\");\t\t\n\t\t\n\t\tsvg.append(\"g\")\n\t\t\t.attr(\"class\", \"main\")\n\t\t\t.append(\"text\")\n\t\t\t.attr(\"x\", 20).attr(\"dx\", \"12em\")\n\t\t\t.attr(\"y\", 56).attr(\"dy\", \"2em\")\n\t\t\t.attr(\"font\",\"20px sans-serif\")\n\t\t\t.text(\"Agodemar!!!\");\n\n//\t\tsvg.append(\"g\")\n//\t\t\t.attr(\"class\", \"y\" + \" \" + \"axis\")\n//\t\t\t.call(yAxis).append(\"text\")\n//\t\t\t.attr(\"transform\", \"rotate(-90)\")\n//\t\t\t.attr(\"y\", 6).attr(\"dy\", \".71em\")\n//\t\t\t.style(\"text-anchor\", \"end\")\n//\t\t\t.text(\"Frequency\");\n\t\t\n\t\t\n//\t\t// make a paragraph <p> in the html\n//\t\td3.select(\"body\").append(\"p\").text(\"Agodemar :: Hi there!\");\n\n\t}", "public boolean isFull3D()\r\n {\r\n return true;\r\n }", "@Test\n public void test42() throws Throwable {\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D((String) null);\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) categoryAxis3D0);\n combinedDomainCategoryPlot0.clearDomainAxes();\n }", "public MultiShape3D()\n {\n this( (Geometry)null, (Appearance)null );\n }", "public Maze3d() {\r\n\t\tthis.maze = null;\r\n\t\tthis.startPosition = null;\r\n\t\tthis.goalPosition = null;\r\n\t}", "public final void initialize()\n {\n x3dModel = new X3DObject().setProfile(\"Immersive\").setVersion(\"3.3\")\n .setHead(new headObject()\n .addComponent(new componentObject().setName(\"Navigation\").setLevel(3))\n .addUnit(new unitObject().setName(\"AngleUnitConversion\").setConversionFactor(1.0).setCategory(\"angle\"))\n .addUnit(new unitObject().setName(\"LengthUnitConversion\").setConversionFactor(1.0).setCategory(\"length\"))\n .addMeta(new metaObject().setName(\"title\").setContent(\"HelloWorldProgramOutput.x3d\"))\n .addMeta(new metaObject().setName(\"description\").setContent(\"Example HelloWorldProgram creates an X3D model using the X3D Java Scene Access Interface (SAI) Library\"))\n .addMeta(new metaObject().setName(\"reference\").setContent(\"http://www.web3d.org/specifications/java/X3DJSAIL.html\"))\n .addMeta(new metaObject().setName(\"generator\").setContent(\"HelloWorldProgramOutput.java\"))\n .addMeta(new metaObject().setName(\"created\").setContent(\"6 September 2016\"))\n .addMeta(new metaObject().setName(\"modified\").setContent(\"29 May 2017\"))\n .addMeta(new metaObject().setName(\"generator\").setContent(\"X3D Java Scene Access Interface Library (X3DJSAIL)\"))\n .addMeta(new metaObject().setName(\"generator\").setContent(\"http://www.web3d.org/specifications/java/examples/HelloWorldProgram.java\"))\n .addMeta(new metaObject().setName(\"generator\").setContent(\"Netbeans http://www.netbeans.org\"))\n .addMeta(new metaObject().setName(\"creator\").setContent(\"Don Brutzman\"))\n .addMeta(new metaObject().setName(\"reference\").setContent(\"https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgramOutput.x3d\"))\n .addMeta(new metaObject().setName(\"reference\").setContent(\"Console output, ClassicVRML encoding, VRML97 encoding and pretty-print documentation:\"))\n .addMeta(new metaObject().setName(\"reference\").setContent(\"HelloWorldProgramOutput.txt\"))\n .addMeta(new metaObject().setName(\"reference\").setContent(\"HelloWorldProgramOutput.x3dv\"))\n .addMeta(new metaObject().setName(\"reference\").setContent(\"HelloWorldProgramOutput.wrl\"))\n .addMeta(new metaObject().setName(\"reference\").setContent(\"HelloWorldProgramOutput.html\"))\n .addMeta(new metaObject().setName(\"X3dValidator\").setContent(\"https://savage.nps.edu/X3dValidator?url=http://www.web3d.org/specifications/java/examples/HelloWorldProgramOutput.x3d\"))\n .addMeta(new metaObject().setName(\"identifier\").setContent(\"http://www.web3d.org/specifications/java/examples/HelloWorldProgramOutput.x3d\"))\n .addMeta(new metaObject().setName(\"license\").setContent(\"../license.html\"))\n .addMeta(new metaObject().setName(\"SpecialTest\").setContent(\"tested sat: name value cannot contain embedded space character\"))\n .addComments(\" comment #1 \")\n .addComments(\" comment #2 \")\n .addComments(\" comment #3 \")\n .addComments(\" comment #4 \"))\n .setScene(new SceneObject()\n .addChild(new ViewpointGroupObject().setDescription(\"Available viewpoints\")\n .addChild(new ViewpointObject(\"DefaultView\").setDescription(\"Hello X3DJSAIL\"))\n .addChild(new ViewpointObject(\"TopDownView\").setDescription(\"top-down view from above\").setPosition(0.0f,100.0f,0.0f).setOrientation(1.0f,0.0f,0.0f,-1.570796f)))\n .addChild(new WorldInfoObject(\"WorldInfoDEF\").setTitle(\"HelloWorldProgram produced by X3D Java SAI Library (X3DJSAIL)\"))\n .addChild(new WorldInfoObject().setUSE(\"WorldInfoDEF\"))\n .addChild(new WorldInfoObject().setUSE(\"WorldInfoDEF\"))\n .addMetadata(new MetadataStringObject(\"scene.addChildMetadataObject\").setName(\"test\"))\n .addChild(new LayerSetObject(\"scene.addChildLayerSetObjectTest\"))\n .addChild(new TransformObject(\"LogoGeometryTransform\").setTranslation(0.0f,1.5f,0.0f)\n .addChild(new AnchorObject().setDescription(\"select for X3D Java SAI Library (X3DJSAIL) description\").setUrl(new MFStringObject(\"\\\"../X3DJSAIL.html\\\" \\\"http://www.web3d.org/specifications/java/X3DJSAIL.html\\\"\"))\n .addChild(new ShapeObject(\"BoxShape\")\n .setAppearance(new AppearanceObject()\n .setMaterial(new MaterialObject(\"GreenMaterial\").setDiffuseColor(0.0f,1.0f,1.0f).setTransparency(0.1f).setEmissiveColor(0.8f,0.0f,0.0f))\n .setTexture(new ImageTextureObject().setUrl(new MFStringObject(\"\\\"images/X3dJavaSceneAccessInterfaceSaiLibrary.png\\\" \\\"http://www.web3d.org/specifications/java/examples/images/X3dJavaSceneAccessInterfaceSaiLibrary.png\\\"\"))))\n .setGeometry(new BoxObject(\"test-NMTOKEN_regex.0123456789\").setCssClass(\"textured\")))))\n .addChild(new ShapeObject(\"LineShape\")\n .setAppearance(new AppearanceObject()\n .setMaterial(new MaterialObject().setEmissiveColor(0.6f,0.19607843f,0.8f)))\n .setGeometry(new IndexedLineSetObject().setCoordIndex(new int[] {0,1,2,3,4,0})\n .setCoord(new CoordinateObject().setPoint(new MFVec3fObject(new float[] {0.0f,1.5f,0.0f,2.0f,1.5f,0.0f,2.0f,1.5f,-2.0f,-2.0f,1.5f,-2.0f,-2.0f,1.5f,0.0f,0.0f,1.5f,0.0f})))))\n .addChild(new PositionInterpolatorObject(\"BoxPathAnimator\").setKey(new float[] {0.0f,0.125f,0.375f,0.625f,0.875f,1.0f}).setKeyValue(new MFVec3fObject(new float[] {0.0f,1.5f,0.0f,2.0f,1.5f,0.0f,2.0f,1.5f,-2.0f,-2.0f,1.5f,-2.0f,-2.0f,1.5f,0.0f,0.0f,1.5f,0.0f})))\n .addChild(new TimeSensorObject(\"OrbitClock\").setCycleInterval(8.0).setLoop(true))\n .addChild(new ROUTEObject().setFromNode(\"OrbitClock\").setFromField(\"fraction_changed\").setToNode(\"BoxPathAnimator\").setToField(\"set_fraction\"))\n .addChild(new ROUTEObject().setFromNode(\"BoxPathAnimator\").setFromField(\"value_changed\").setToNode(\"LogoGeometryTransform\").setToField(\"set_translation\"))\n .addChild(new TransformObject(\"TextTransform\").setTranslation(0.0f,-1.5f,0.0f)\n .addChild(new ShapeObject()\n .setAppearance(new AppearanceObject()\n .setMaterial(new MaterialObject().setUSE(\"GreenMaterial\")))\n .setGeometry(new TextObject().setString(new MFStringObject(\"\\\"X3D Java\\\" \\\"SAI Library\\\" \\\"X3DJSAIL\\\"\"))\n .setMetadata(new MetadataSetObject().setName(\"EscapedQuotationMarksMetadataSet\")\n .addValue(new MetadataStringObject().setName(\"escapedQuotesTest1\").setValue(new MFStringObject(\"\\\"escaped quotation marks example 1: He said, \\\\\\\"Immel did it!\\\\\\\"\\\"\")))\n .addValue(new MetadataStringObject().setName(\"escapedQuotesTest2\").setValue(new MFStringObject(\"\\\"escaped quotation marks example 2: He said, &quot;Immel did it!&quot;\\\"\"))))\n .setFontStyle(new FontStyleObject().setJustify(new MFStringObject(\"\\\"MIDDLE\\\" \\\"MIDDLE\\\"\")))\n .addComments(\" escaped quotation marks example 3: He said, \\\"Immel did it!\\\" \")\n .addComments(\" escaped quotation marks example 4: He said, &quot;Immel did it!&quot; \")))\n .addChild(new CollisionObject()\n .addComments(\" test containerField='proxy' \")\n .setProxy(new ShapeObject(\"ProxyShape\")\n .setGeometry(new TextObject().setString(new MFStringObject(\"\\\"One, Two, Three\\\" \\\"\\\" \\\"He said, \\\\\\\"Immel did it!\\\\\\\"\\\"\")))\n .addComments(\" alternative XML encoding: Text string='\\\"One, Two, Three\\\" \\\"\\\" \\\"He said, \\\\&quot;Immel did it!\\\\&quot;\\\"' \")\n .addComments(\" alternative Java source: .setString(new String [] {\\\"One, Two, Three\\\", \\\"\\\", \\\"He said, \\\\\\\"Immel did it!\\\\\\\"\\\"}) \")\n .addComments(\" reference: http://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/StringArrayEncodingExamplesIndex.html \")))\n .addComments(\" It's a beautiful world \")\n .addComments(\" ... for you! \")\n .addComments(\" https://en.wikipedia.org/wiki/Beautiful_World_(Devo_song) \"))\n .addComments(\" repeatedly spin 180 degrees as a readable special effect \")\n .addChild(new OrientationInterpolatorObject(\"SpinInterpolator\").setKey(new float[] {0.0f,0.5f,1.0f}).setKeyValue(new MFRotationObject(new float[] {0.0f,1.0f,0.0f,4.712389f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,1.5707964f})))\n .addChild(new TimeSensorObject(\"SpinClock\").setCycleInterval(5.0).setLoop(true))\n .addChild(new ROUTEObject().setFromNode(\"SpinClock\").setFromField(\"fraction_changed\").setToNode(\"SpinInterpolator\").setToField(\"set_fraction\"))\n .addChild(new ROUTEObject().setFromNode(\"SpinInterpolator\").setFromField(\"value_changed\").setToNode(\"TextTransform\").setToField(\"rotation\"))\n .addChild(new GroupObject(\"BackgroundGroup\")\n .addChild(new BackgroundObject(\"GradualBackground\"))\n .addChild(new ScriptObject(\"colorTypeConversionScript\").setSourceCode(\n\"<![CDATA[\" + \"\\n\" +\n\"\\n\" + \n\"\\n\" + \n\"ecmascript:\" + \"\\n\" + \n\"\\n\" + \n\"function colorInput (eventValue) // Example source code\" + \"\\n\" + \n\"{\" + \"\\n\" + \n\" colorsOutput = new MFColor(eventValue); // assigning value sends output event\" + \"\\n\" + \n\"// Browser.print('colorInput=' + eventValue + ', colorsOutput=' + colorsOutput + '\\\\n');\" + \"\\n\" + \n\"}\" + \"\\n\" + \"]]>\"\n)\n .addField(new fieldObject().setAccessType(\"inputOnly\").setName(\"colorInput\").setType(\"SFColor\"))\n .addField(new fieldObject().setAccessType(\"outputOnly\").setName(\"colorsOutput\").setType(\"MFColor\")))\n .addChild(new ColorInterpolatorObject(\"ColorAnimator\").setKey(new float[] {0.0f,0.5f,1.0f}).setKeyValue(new MFColorObject(new float[] {0.9411765f,1.0f,1.0f,0.29411766f,0.0f,0.50980395f,0.9411765f,1.0f,1.0f}))\n .addComments(\" AZURE to INDIGO and back again \"))\n .addChild(new TimeSensorObject(\"ColorClock\").setCycleInterval(60.0).setLoop(true))\n .addChild(new ROUTEObject().setFromNode(\"colorTypeConversionScript\").setFromField(\"colorsOutput\").setToNode(\"GradualBackground\").setToField(\"skyColor\"))\n .addChild(new ROUTEObject().setFromNode(\"ColorAnimator\").setFromField(\"value_changed\").setToNode(\"colorTypeConversionScript\").setToField(\"colorInput\"))\n .addChild(new ROUTEObject().setFromNode(\"ColorClock\").setFromField(\"fraction_changed\").setToNode(\"ColorAnimator\").setToField(\"set_fraction\")))\n .addChild(new ProtoDeclareObject().setName(\"ArtDeco01Material\").setAppinfo(\"tooltip: ArtDeco01 prototype is a Material node\")\n .setProtoInterface(new ProtoInterfaceObject()\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"description\").setType(\"SFString\").setValue(\"ArtDeco01 prototype is a Material node\").setAppinfo(\"tooltip for descriptionField\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"enabled\").setType(\"SFBool\").setValue(\"true\")))\n .setProtoBody(new ProtoBodyObject()\n .addComments(\" Initial node of ProtoBody determines prototype node type \")\n .addChild(new MaterialObject().setShininess(0.127273f).setAmbientIntensity(0.25f).setSpecularColor(0.276305f,0.11431f,0.139857f).setDiffuseColor(0.282435f,0.085159f,0.134462f))\n .addComments(\" [HelloWorldProgram diagnostic] should be connected to scene graph: ArtDeco01ProtoDeclare.getNodeType()=\\\"Material\\\" \")\n .addComments(\" presence of follow-on TouchSensor shows that additional nodes are allowed in ProtoBody after initial node, regardless of node types \")\n .addChild(new TouchSensorObject().setDescription(\"within ProtoBody\")\n .setIS(new ISObject()\n .addConnect(new connectObject().setNodeField(\"description\").setProtoField(\"description\"))\n .addConnect(new connectObject().setNodeField(\"enabled\").setProtoField(\"enabled\"))))))\n .addChild(new ExternProtoDeclareObject().setName(\"ArtDeco02Material\").setAppinfo(\"this is a different Material node\").setUrl(new MFStringObject(\"\\\"http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/ArtDecoPrototypesExcerpt.x3d#ArtDeco02\\\" \\\"http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/ArtDecoPrototypesExcerpt.x3dv#ArtDeco02\\\"\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"description\").setType(\"SFString\").setAppinfo(\"tooltip for descriptionField\"))\n .addComments(\" [HelloWorldProgram diagnostic] ArtDeco02ExternProtoDeclare.getNodeType()=\\\"ERROR_UNKNOWN_EXTERNPROTODECLARE_NODE_TYPE: ExternProtoDeclare name='ArtDeco02Material' type cannot be remotely accessed at run time, TODO X3DJSAIL needs to add further capability.\\\" \"))\n .addComments(\" Tested ArtDeco01ProtoInstance, ArtDeco02ProtoInstance for improper node type when ProtoInstance is added in wrong place \")\n .addChild(new ShapeObject(\"TestShape1\")\n .setAppearance(new AppearanceObject(\"TestAppearance1\")\n .setMaterial(new ProtoInstanceObject().setName(\"ArtDeco01\")\n .addFieldValue(new fieldValueObject().setName(\"description\").setValue(\"ArtDeco01 can substitute for a Material node\"))\n .addComments(\" [HelloWorldProgram diagnostic] ArtDeco01ProtoInstance.getNodeType()=\\\"ERROR_UNKNOWN_PROTOINSTANCE_NODE_TYPE: ProtoInstance name='ArtDeco01' has no corresponding ProtoDeclareObject or ExternProtoDeclareObject to provide type.\\\" \"))\n .addComments(\" ArtDeco01 Material prototype goes here... \"))\n .setGeometry(new SphereObject().setRadius(0.001f)))\n .addChild(new ShapeObject(\"TestShape2\")\n .setAppearance(new AppearanceObject(\"TestAppearance2\")\n .setMaterial(new ProtoInstanceObject().setName(\"ArtDeco02\")\n .addFieldValue(new fieldValueObject().setName(\"description\").setValue(\"ArtDeco02 can substitute for another Material node\"))\n .addComments(\" [HelloWorldProgram diagnostic] ArtDeco02ProtoInstance.getNodeType()=\\\"ERROR_UNKNOWN_PROTOINSTANCE_NODE_TYPE: ProtoInstance name='ArtDeco02' has no corresponding ProtoDeclareObject or ExternProtoDeclareObject to provide type.\\\" \"))\n .addComments(\" ArtDeco02 Material prototype goes here... \"))\n .setGeometry(new ConeObject().setBottomRadius(0.001f).setHeight(0.001f)))\n .addChild(new InlineObject(\"inlineSceneDef\").setUrl(new MFStringObject(\"\\\"someOtherScene.x3d\\\"\")))\n .addChild(new IMPORTObject().setImportedDEF(\"WorldInfoDEF\").setInlineDEF(\"inlineSceneDef\").setAS(\"WorldInfoDEF2\"))\n .addChild(new EXPORTObject().setLocalDEF(\"WorldInfoDEF\").setAS(\"WorldInfoDEF3\"))\n .addChild(new ProtoDeclareObject().setName(\"MaterialModulator\").setAppinfo(\"mimic a Material node and modulate fields as an animation effect\").setDocumentation(\"http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/MaterialModulatorIndex.html\")\n .setProtoInterface(new ProtoInterfaceObject()\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"enabled\").setType(\"SFBool\").setValue(\"true\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"diffuseColor\").setType(\"SFColor\").setValue(\"0 0 0\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"emissiveColor\").setType(\"SFColor\").setValue(\"0.05 0.05 0.5\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"specularColor\").setType(\"SFColor\").setValue(\"0 0 0\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"transparency\").setType(\"SFFloat\").setValue(\"0.0\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"shininess\").setType(\"SFFloat\").setValue(\"0.0\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"ambientIntensity\").setType(\"SFFloat\").setValue(\"0.0\")))\n .setProtoBody(new ProtoBodyObject()\n .addChild(new MaterialObject(\"MaterialNode\")\n .setIS(new ISObject()\n .addConnect(new connectObject().setNodeField(\"diffuseColor\").setProtoField(\"diffuseColor\"))\n .addConnect(new connectObject().setNodeField(\"emissiveColor\").setProtoField(\"emissiveColor\"))\n .addConnect(new connectObject().setNodeField(\"specularColor\").setProtoField(\"specularColor\"))\n .addConnect(new connectObject().setNodeField(\"transparency\").setProtoField(\"transparency\"))\n .addConnect(new connectObject().setNodeField(\"shininess\").setProtoField(\"shininess\"))\n .addConnect(new connectObject().setNodeField(\"ambientIntensity\").setProtoField(\"ambientIntensity\"))))\n .addComments(\" Only first node (the node type) is renderable, others are along for the ride \")\n .addChild(new ScriptObject(\"MaterialModulatorScript\").setSourceCode(\n\"<![CDATA[\" + \"\\n\" +\n\"\\n\" + \n\"\\n\" + \n\"ecmascript:\" + \"\\n\" + \n\"function initialize ()\" + \"\\n\" + \n\"{\" + \"\\n\" + \n\" newColor = diffuseColor; // start with correct color\" + \"\\n\" + \n\"}\" + \"\\n\" + \n\"function set_enabled (newValue)\" + \"\\n\" + \n\"{\" + \"\\n\" + \n\"\tenabled = newValue;\" + \"\\n\" + \n\"}\" + \"\\n\" + \n\"function clockTrigger (timeValue)\" + \"\\n\" + \n\"{\" + \"\\n\" + \n\" if (!enabled) return;\" + \"\\n\" + \n\" red = newColor.r;\" + \"\\n\" + \n\" green = newColor.g;\" + \"\\n\" + \n\" blue = newColor.b;\" + \"\\n\" + \n\" \" + \"\\n\" + \n\" // note different modulation rates for each color component, % is modulus operator\" + \"\\n\" + \n\" newColor = new SFColor ((red + 0.02) % 1, (green + 0.03) % 1, (blue + 0.04) % 1);\" + \"\\n\" + \n\"\tif (enabled)\" + \"\\n\" + \n\"\t{\" + \"\\n\" + \n\"\t\tBrowser.print ('diffuseColor=(' + red + ',' + green + ',' + blue + ') newColor=' + newColor.toString() + '\\\\n');\" + \"\\n\" + \n\"\t}\" + \"\\n\" + \n\"}\" + \"\\n\" + \"]]>\"\n)\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"enabled\").setType(\"SFBool\"))\n .addField(new fieldObject().setAccessType(\"inputOutput\").setName(\"diffuseColor\").setType(\"SFColor\"))\n .addField(new fieldObject().setAccessType(\"outputOnly\").setName(\"newColor\").setType(\"SFColor\"))\n .addField(new fieldObject().setAccessType(\"inputOnly\").setName(\"clockTrigger\").setType(\"SFTime\"))\n .setIS(new ISObject()\n .addConnect(new connectObject().setNodeField(\"enabled\").setProtoField(\"enabled\"))\n .addConnect(new connectObject().setNodeField(\"diffuseColor\").setProtoField(\"diffuseColor\"))))))\n .addComments(\" Test success: declarative statement createDeclarativeShapeTests() \")\n .addChild(new GroupObject(\"DeclarativeGroupExample\")\n .addChild(new ShapeObject()\n .setMetadata(new MetadataStringObject(\"FindableMetadataStringTest\").setName(\"findThisNameValue\").setValue(new MFStringObject(\"\\\"test case\\\"\")))\n .setAppearance(new AppearanceObject(\"DeclarativeAppearanceExample\")\n .setMaterial(new ProtoInstanceObject(\"MyMaterialModulator\", \"MaterialModulator\").setDEF(\"MyMaterialModulator\").setName(\"MaterialModulator\"))\n .addComments(\" DeclarativeMaterialExample gets overridden by subsequently added MaterialModulator ProtoInstance \"))\n .setGeometry(new ConeObject().setBottomRadius(0.05f).setHeight(0.1f).setBottom(false)))\n .addComments(\" Test success: declarativeGroup.addChild() singleton pipeline method \"))\n .addComments(\" Test success: declarative statement addChild() \")\n .addComments(new String[] {\" Test success: x3dModel.findNodeByDEF(DeclarativeAppearanceExample) = <Appearance DEF='DeclarativeAppearanceExample'/> i.e.\",\n\"<Appearance DEF='DeclarativeAppearanceExample'>\",\n\" <ProtoInstance DEF='MyMaterialModulator' name='MaterialModulator' containerField='material'/>\",\n\" <!- - DeclarativeMaterialExample gets overridden by subsequently added MaterialModulator ProtoInstance - ->\",\n\"</Appearance> \"})\n .addComments(\" Test success: x3dModel.findElementByNameValue(findThisNameValue) = <MetadataString DEF='FindableMetadataStringTest' name='findThisNameValue' value='\\\"test case\\\"'/> \")\n .addComments(\" Test success: x3dModel.findElementByNameValue(\\\"ArtDeco01Material\\\", \\\"ProtoDeclare\\\") found \")\n .addComments(\" Test success: x3dModel.findElementByNameValue(\\\"MaterialModulator\\\", \\\"ProtoDeclare\\\") found \")\n .addComments(\" Test success: x3dModel.findElementByNameValue(\\\"MaterialModulator\\\", \\\"ProtoInstance\\\") found \")\n .addChild(new GroupObject(\"TestFieldObjectsGroup\")\n .addComments(\" testFieldObjects() results \")\n .addComments(\" SFBool default=true, true=true, false=false, negate()=true \")\n .addComments(\" MFBool default=, initial=true false true, negate()=false true false \")\n .addComments(\" SFFloat default=0.0, initial=1.0, setValue(2)=2.0, setValue(3.0f)=3.0, setValue(4.0)=4.0 \")\n .addComments(\" MFFloat default=, initial=1 2 3, append(5)=1 2 3 5, inserts(3,4)(0,0)=0 1 2 3 4 5, append(6)=0 1 2 3 4 5 6, size()=7 \")\n .addComments(\" ... get1Value[3]=3.0, remove[1]=0 2 3 4 5 6, set1Value(0,10)=10 2 3 4 5 6, multiply(2)=20 4 6 8 10 12, clear= \")\n .addComments(\" SFVec3f default=0 0 0, initial=1 2 3, setValue=4 5 6, multiply(2)=8 10 12, normalize()=0.45584232 0.5698029 0.68376344 \"))\n .addChild(new SoundObject()\n .setSource(new AudioClipObject().setUrl(new MFStringObject(\"\\\"chimes.wav\\\" \\\"http://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/chimes.wav\\\"\")))\n .addComments(\" Scene example fragment from http://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/default.x3d \"))\n .addChild(new SoundObject()\n .setSource(new MovieTextureObject().setUrl(new MFStringObject(\"\\\"mpgsys.mpg\\\" \\\"http://www.web3d.org/x3d/content/examples/ConformanceNist/Appearance/MovieTexture/mpgsys.mpg\\\"\")))\n .addComments(\" Scene example fragment from http://www.web3d.org/x3d/content/examples/ConformanceNist/Appearance/MovieTexture/mpeg1-systems.x3d \")\n .addComments(\" Expected containerField='source', allowed containerField values=\\\"texture\\\" \\\"source\\\" \\\"back\\\" \\\"bottom\\\" \\\"front\\\" \\\"left\\\" \\\"right\\\" \\\"top\\\" \\\"backTexture\\\" \\\"bottomTexture\\\" \\\"frontTexture\\\" \\\"leftTexture\\\" \\\"rightTexture\\\" \\\"topTexture\\\" \")));\n }", "public static void main(String[] args) {\n Demo3 d1 = new Demo3();\n\n\n }", "public BoundingBox3d() {\n reset();\n }", "@Override\n\tpublic boolean isEuclidianView3D(EuclidianViewInterfaceCommon view) {\n\t\t// euclidianView3D might be null\n\t\treturn view != null && view == euclidianView3D;\n\t}", "public ViewerPosition3D()\n {\n }", "public boolean is3G() {\r\n return is3G;\r\n }", "public WB_Normal3d() {\r\n\t\tsuper();\r\n\t}", "private void createScene(Group globalRoot, Group root3D) {\n if(appView.getSelectedRunway().equals(\"\")){\n createGeneralScene(root3D);\n generateGeneralLegend(globalRoot);\n } else if(appView.getMenuPanel().isIsolateMode()){\n createIsolatedScene(globalRoot, root3D);\n generateSelectedLegend(globalRoot);\n } else {\n createSelectedScene(globalRoot, root3D);\n generateSelectedLegend(globalRoot);\n }\n }", "public boolean isSingleton() {\n\t\treturn false;\r\n\t}", "public static void main(String[] args) throws Exception {\n\n Singleton3 ins = Singleton3.getInstance();\n Constructor constructor = Singleton3.class.getDeclaredConstructor();\n constructor.setAccessible(true);\n Singleton3 ins1 = (Singleton3)constructor.newInstance();\n System.out.println(ins == ins1);\n }", "synchronized private void draw3DObjects(GL10 gl) {\n\t\tmeshRenderer_.draw(gl);\r\n\t}", "public boolean isSingleton()\n\t{\n\t\treturn true;\n\t}", "public boolean isSingleton() {\n\t\treturn false;\n\t}", "private MySingleton() {\r\n\t\tSystem.out.println(\"Only 1 object will be created\");\r\n\t}", "public boolean isSingleton () throws java.io.IOException, com.linar.jintegra.AutomationException;", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }", "public static SingleObject getInstance(){\n return instance;\n }", "private void checkSingleInstance() {\r\n\t\t//Erzeugt ein RandomAccessFile \"flag\"\r\n\t\tfinal File file = new File(\"flag\");\r\n\t\tRandomAccessFile randomAccessFile;\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\t//Ist es der Applikation nicht möglich, das erstellte File zu sperren, zeigt es an, dass bereits eines vorhanden ist.\r\n\t\t\t//Dementsprechend wird die Applikation beendet, da bereits eine Instanz geöffnet wurde.\r\n\t\t\trandomAccessFile = new RandomAccessFile(file, \"rw\");\r\n\t\t\tfinal FileLock fileLock = randomAccessFile.getChannel().tryLock();\r\n\r\n\t\t\tif (fileLock == null) {\r\n\t\t\t\tPlatform.exit();\r\n\t\t\t}\r\n\t\t} catch (Exception e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t}", "public static SingleObject getInstance(){\n\t\treturn instance;\n\t}", "private Singletion3() {}", "public Life3D() {\n // Set up the user interface.\n myDisplay = Display.getDisplay(this);\n myCanvas = new CallbackCanvas(this);\n myCanvas.setCommandListener(this);\n myCanvas.addCommand(exitCommand);\n }", "@Test\n public void test46() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double(2311.413146901308, 662.8367878068987, 2311.413146901308, Double.NaN);\n Point2D.Double point2D_Double0 = new Point2D.Double();\n Point2D.Double point2D_Double1 = (Point2D.Double)point2D_Double0.clone();\n double double0 = point2D_Double0.getX();\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D(\"\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) categoryAxis3D0);\n ValueAxis valueAxis0 = combinedDomainCategoryPlot0.getRangeAxisForDataset(372);\n ValueAxis valueAxis1 = combinedDomainCategoryPlot0.getRangeAxis(1189);\n CategoryAxis3D categoryAxis3D1 = (CategoryAxis3D)combinedDomainCategoryPlot0.getDomainAxis();\n }", "@Override\n public boolean isSingleton() {\n return false;\n }", "public Vec3D() {\n\t\tx = y = z = 0.0f;\n\t}", "public J3DAttribute () {}", "public Vector3D() {\n zero();\n }", "private TetrisMain() {\r\n //ensure uninstantiability\r\n }", "private SingletonDoubleCheck() {}", "public static boolean instantiated() {\n\treturn (coreNLP != null);\n }", "private void createIsolatedScene(Group globalRoot, Group root3D){\n String selectedRunway = appView.getSelectedRunway();\n Point pos = controller.getRunwayPos(selectedRunway);\n\n generateRunwayStrip(root3D, selectedRunway, runwayStripElevation);\n generateClearAndGraded(root3D, selectedRunway, clearAndGradedAreaElevation);\n generateRunway(root3D, selectedRunway, runwayElevation);\n genDisplacedThreshold(root3D, selectedRunway, runwayElevation);\n generateParameters(root3D, selectedRunway);\n genDisplacedThreshold(root3D,selectedRunway,runwayElevation);\n genRunwayName(root3D, selectedRunway, runwayElevation);\n genCenterline(root3D, selectedRunway, runwayElevation);\n genLandingDirection(root3D, selectedRunway, runwayElevation);\n generateLighting(root3D);\n pointCameraAt(new Point3D(pos.x,0, -pos.y),root3D);\n\n generateOverlay(globalRoot, root3D);\n }", "public void checkParticles4Destruction(){\n\t\t\tif(System.nanoTime() - creationTime > 3*Math.pow(10, 9)){\n\t\t\t\t\n\t\t\t\twhile(!particles.isEmpty()){\n\t\t\t\t\tParticle p = particles.poll();\n\t\t\t\t\tp.destroy(); \n\t\t\t\t}\n\t\t\t}\n\t}", "public void setup() {\n\t\t//size(0,0,PApplet.P3D);\n\t}", "private SingleObject()\r\n {\r\n }", "public MultiShape3D( Geometry geometry )\n {\n this( geometry, (Appearance)null );\n }", "@Override protected void onPreExecute() { g = new UndirectedGraph(10); }", "public static void initialize() {\n BroadphaseInterface aabbInterface = new DbvtBroadphase(); //Checks if objects could collide\n CollisionConfiguration collisionConfiguration = new DefaultCollisionConfiguration();\n CollisionDispatcher collisionDispatcher = new CollisionDispatcher(collisionConfiguration); //Handles collisions\n ConstraintSolver constraintSolver = new SequentialImpulseConstraintSolver();\n\n world = new DiscreteDynamicsWorld(collisionDispatcher, aabbInterface, constraintSolver, collisionConfiguration);\n world.setGravity(DataTypeHelper.stringToVector3f(PreferenceHelper.getValue(\"gravity\")));\n }", "public void setIs3D(boolean is3D) {\n _is3D = is3D;\n setDirty(true);\n }", "private SingleObject(){}", "public final boolean mo3603d() {\n return this.f1114d.mo3603d();\n }", "public Project3() {\n\t\tcreateComponent();\n\t\twireComponent();\n\t}", "public boolean isSingleUse() {\r\n return singleUse;\r\n }", "public Vertex3D() {\n this(0.0, 0.0, 0.0);\n }", "public\n\tVector3()\n\t{\n\t\tdata = new double[3];\n\t\tdata[0] = 0;\n\t\tdata[1] = 0;\n\t\tdata[2] = 0;\n\t}", "private void ensureScopeNotSet() {\n if (this.instance != null) {\n binder.addError(source, ErrorMessages.SINGLE_INSTANCE_AND_SCOPE);\n return;\n }\n\n if (this.scope != null) {\n binder.addError(source, ErrorMessages.SCOPE_ALREADY_SET);\n }\n }", "public final boolean isReferencedAtMostOnce() {\n return this.getReferences(false, true).size() == 0 && this.getReferences(true, false).size() <= 1;\r\n }", "@Override\n\tpublic void draw3() {\n\n\t}", "@Test\n public void test13() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) null);\n Layer layer0 = Layer.BACKGROUND;\n Collection collection0 = combinedDomainCategoryPlot0.getDomainMarkers(layer0);\n AxisLocation axisLocation0 = combinedDomainCategoryPlot0.getDomainAxisLocation();\n combinedDomainCategoryPlot0.setDomainAxis(1, (CategoryAxis) null);\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double((double) 1, (double) 1, (double) 1, 0.0);\n Rectangle2D.Float rectangle2D_Float0 = new Rectangle2D.Float();\n AxisChangeEvent axisChangeEvent0 = null;\n try {\n axisChangeEvent0 = new AxisChangeEvent((Axis) null);\n } catch(IllegalArgumentException e) {\n //\n // null source\n //\n assertThrownBy(\"java.util.EventObject\", e);\n }\n }", "@Test\n public void test46() throws Throwable {\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D();\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) categoryAxis3D0);\n SortOrder sortOrder0 = SortOrder.ASCENDING;\n combinedDomainCategoryPlot0.setColumnRenderingOrder(sortOrder0);\n List list0 = combinedDomainCategoryPlot0.getCategories();\n Line2D.Double line2D_Double0 = new Line2D.Double();\n double double0 = line2D_Double0.x2;\n RendererChangeEvent rendererChangeEvent0 = new RendererChangeEvent((Object) combinedDomainCategoryPlot0);\n combinedDomainCategoryPlot0.rendererChanged(rendererChangeEvent0);\n DeviationRenderer deviationRenderer0 = new DeviationRenderer(false, false);\n Paint paint0 = deviationRenderer0.getSeriesOutlinePaint(43);\n BasicStroke basicStroke0 = (BasicStroke)combinedDomainCategoryPlot0.getDomainGridlineStroke();\n CategoryMarker categoryMarker0 = null;\n try {\n categoryMarker0 = new CategoryMarker((Comparable) 0.0, (Paint) null, (Stroke) basicStroke0);\n } catch(IllegalArgumentException e) {\n //\n // Null 'paint' argument.\n //\n assertThrownBy(\"org.jfree.chart.plot.Marker\", e);\n }\n }", "public void setLoad(Vec3D p) { p_ = p; }", "private TetrisMain() {\r\n //prevents instantiation\r\n }", "public Constructor3DAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = Constructor3DPackage.eINSTANCE;\n\t\t}\n\t}", "private static void createSingletonObject() {\n\t\tSingleton s1 = Singleton.getInstance();\n\t\tSingleton s2 = Singleton.getInstance();\n\n\t\tprint(\"S1\", s1);\n\t\tprint(\"S2\", s2);\n\t}", "private void initInstance() {\n init$Instance(true);\n }", "@Override\r\n\tpublic boolean runningSimulationSetLinkedObject() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean runningSimulationSetLinkedObject() {\n\t\treturn false;\r\n\t}", "private EagerInitializedSingleton() {\n\t}", "private EagerInitializedSingleton() {\n\t}", "public static boolean hasInstance() {\n return instance != null;\n }", "@Test\n public void test81() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n CombinedDomainCategoryPlot combinedDomainCategoryPlot1 = new CombinedDomainCategoryPlot();\n combinedDomainCategoryPlot0.addChangeListener(combinedDomainCategoryPlot1);\n RectangleEdge rectangleEdge0 = combinedDomainCategoryPlot0.getRangeAxisEdge();\n JDBCCategoryDataset jDBCCategoryDataset0 = null;\n try {\n jDBCCategoryDataset0 = new JDBCCategoryDataset(\"\", \"Null 'seriesKey' argument.\", \"\", \"Null 'seriesKey' argument.\");\n } catch(ClassNotFoundException e) {\n }\n }", "public GeometricController(Item3D item){\r\n\t\tit = item;\r\n\t\t\r\n\t}", "public boolean isThreeOfAKind() {\n\t\treturn this.sameSet.size() == 1;\n\t}", "public Vector3D() {\r\n\t\tthis(0.0);\r\n\t}", "public Point3D getD() {\r\n return d;\r\n }", "static void useSingleton(){\n\t\tSingleton singleton = Singleton.getInstance();\n\t\tprint(\"singleton\", singleton);\n\t}", "synchronized void destroy() {\n destroyed = true;\n }", "@Test\n public void test21() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D();\n combinedDomainCategoryPlot0.setDomainAxis(0, (CategoryAxis) categoryAxis3D0);\n // Undeclared exception!\n try { \n combinedDomainCategoryPlot0.setRangeGridlineStroke((Stroke) null);\n } catch(IllegalArgumentException e) {\n //\n // Null 'stroke' argument.\n //\n assertThrownBy(\"org.jfree.chart.plot.CategoryPlot\", e);\n }\n }", "@Test\n public void test01() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n AxisLocation axisLocation0 = AxisLocation.TOP_OR_LEFT;\n categoryPlot0.setRangeAxisLocation(axisLocation0, true);\n Layer layer0 = Layer.BACKGROUND;\n Collection collection0 = categoryPlot0.getDomainMarkers(layer0);\n LineRenderer3D lineRenderer3D0 = new LineRenderer3D();\n lineRenderer3D0.setSeriesLinesVisible(597, true);\n lineRenderer3D0.setUseOutlinePaint(true);\n categoryPlot0.setRenderer(597, (CategoryItemRenderer) lineRenderer3D0, true);\n DatasetRenderingOrder datasetRenderingOrder0 = DatasetRenderingOrder.FORWARD;\n categoryPlot0.setDatasetRenderingOrder(datasetRenderingOrder0);\n Rectangle2D.Double rectangle2D_Double0 = (Rectangle2D.Double)Plot.DEFAULT_LEGEND_ITEM_BOX;\n double double0 = rectangle2D_Double0.getY();\n boolean boolean0 = categoryPlot0.isRangeGridlinesVisible();\n BasicStroke basicStroke0 = (BasicStroke)categoryPlot0.getRangeGridlineStroke();\n CategoryAxis[] categoryAxisArray0 = new CategoryAxis[0];\n categoryPlot0.setDomainAxes(categoryAxisArray0);\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo();\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n MultiplePiePlot multiplePiePlot0 = new MultiplePiePlot();\n JFreeChart jFreeChart0 = multiplePiePlot0.getPieChart();\n ChartPanel chartPanel0 = new ChartPanel(jFreeChart0);\n MenuElement[] menuElementArray0 = new MenuElement[2];\n JPopupMenu jPopupMenu0 = new JPopupMenu();\n menuElementArray0[0] = (MenuElement) jPopupMenu0;\n JFrame jFrame0 = null;\n try {\n jFrame0 = new JFrame();\n } catch(HeadlessException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"java.awt.GraphicsEnvironment\", e);\n }\n }", "boolean hasInstance();", "public static Physics getInstance(){\n return instance;\n }", "void createGraphForSingleLoad();", "private void createGeneralScene(Group root3D){\n generateRunways(root3D);\n for(String runwayId: controller.getRunways()){\n genRunwayName(root3D, runwayId, runwayElevation);\n }\n generateLighting(root3D);\n pointCameraAt(new Point3D(0,0,0),root3D);\n }", "public boolean isNotASingletonObject() {\n checkNotPolymorphicOrUnknown();\n if (object_labels == null) {\n return true;\n }\n for (ObjectLabel object_label : object_labels) {\n if (object_label.isSingleton()) {\n return false;\n }\n }\n return true;\n }", "public X3DObject getX3dModel()\n {\t \n\t return x3dModel;\n }", "public static boolean hasInstance()\n\t{\n \tif(wdba == null)\n \t\treturn false;\n \telse\n \t\treturn true;\n\t}", "void graph3() {\n\t\tconnect(\"0\", \"0\");\n\t\tconnect(\"2\", \"2\");\n\t\tconnect(\"2\", \"3\");\n\t\tconnect(\"3\", \"0\");\n\t}", "@DISPID(1611005964) //= 0x6006000c. The runtime will prefer the VTID if present\n @VTID(40)\n void newWith3DSupport(\n boolean o3DSupportCreated);", "public Point3D(Point3D point) {\n\t this.x = point.x;\n\t this.y = point.y;\n\t this.z = point.z;\n }", "private EagerlySinleton()\n\t{\n\t}", "public Object _duplicate() {\n throw new NO_IMPLEMENT(reason);\n }", "protected AbstractMatrix3D() {}", "public Scene() {}", "public boolean isSingle() {\r\n return idSet == null;\r\n }", "protected Vertex() {\n\t\tisInDepot = false;\n\t}", "@Test\n public void test43() throws Throwable {\n Point2D.Double point2D_Double0 = new Point2D.Double(2544.735178220915, 2544.735178220915);\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D(\"W6dcfYW#F6:9T;Bi?W\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) categoryAxis3D0);\n Font font0 = Axis.DEFAULT_AXIS_LABEL_FONT;\n combinedDomainCategoryPlot0.setNoDataMessageFont(font0);\n PlotOrientation plotOrientation0 = combinedDomainCategoryPlot0.getOrientation();\n Color color0 = (Color)combinedDomainCategoryPlot0.getRangeGridlinePaint();\n Point2D.Double point2D_Double1 = new Point2D.Double(0.0, 1215.36);\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double(1215.36, 87.128070112, 0.0, 0.0);\n rectangle2D_Double0.height = 2544.735178220915;\n Class<CategoryAxis3D> class0 = CategoryAxis3D.class;\n boolean boolean0 = SerialUtilities.isSerializable(class0);\n NumberAxis3D numberAxis3D0 = new NumberAxis3D();\n combinedDomainCategoryPlot0.setRangeAxis((ValueAxis) numberAxis3D0);\n StandardEntityCollection standardEntityCollection0 = new StandardEntityCollection();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n combinedDomainCategoryPlot0.zoomRangeAxes(1215.36, plotRenderingInfo0, (Point2D) point2D_Double0, true);\n }", "protected boolean invariant() {\n\t\treturn (commandStrings != null && commands != null);\n\t}", "public Point3D(double x,double y,double z)\n {\n _x=x;\n _y=y;\n _z=z;\n }", "Object3dContainer getParsedObject();", "private SingleObject(){\n }", "public Boolean requiresDuplicateDetection() {\n return this.requiresDuplicateDetection;\n }", "private Vect3() {\n\t\tthis(0.0,0.0,0.0);\n\t}", "public DomainKnowledge() {\r\n\t\tthis.construct(3);\r\n\t}" ]
[ "0.6122516", "0.58213824", "0.5704447", "0.55080324", "0.54847205", "0.5392681", "0.53693336", "0.53213096", "0.5306685", "0.518742", "0.51681525", "0.5134858", "0.4994152", "0.49499452", "0.49168777", "0.4915162", "0.49050373", "0.49030927", "0.4885865", "0.4858649", "0.48559126", "0.48227546", "0.4815127", "0.47977963", "0.47681135", "0.47631446", "0.475622", "0.47521266", "0.4751448", "0.47491696", "0.47413465", "0.47359475", "0.47166413", "0.47145712", "0.47118008", "0.46928975", "0.468422", "0.46759108", "0.46464458", "0.46394914", "0.46204707", "0.46174225", "0.46157402", "0.46091413", "0.45916373", "0.45880634", "0.45807174", "0.45677406", "0.45584837", "0.45483398", "0.45435858", "0.45432574", "0.4538284", "0.45357838", "0.45340702", "0.45255542", "0.45226166", "0.4521264", "0.4517858", "0.45168287", "0.45054162", "0.44931817", "0.4480306", "0.4480306", "0.4473629", "0.4473629", "0.44686788", "0.44626775", "0.44580263", "0.44549188", "0.44548196", "0.4446565", "0.44446757", "0.44419628", "0.4424919", "0.4423509", "0.44234633", "0.4420908", "0.4419782", "0.44190174", "0.4416013", "0.4412776", "0.44112906", "0.4411187", "0.44056132", "0.43848443", "0.43827072", "0.43784684", "0.43735442", "0.43728507", "0.4371296", "0.43704474", "0.4366411", "0.4365808", "0.43611598", "0.43578583", "0.4356182", "0.43459022", "0.43435052", "0.43428794" ]
0.6908356
0
Private constructor for singleton
private TbusRoadGraph() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Singleton()\n\t\t{\n\t\t}", "private Singleton(){}", "private Singleton() {\n\t}", "private Singleton() { }", "private SingletonObject() {\n\n\t}", "private Singleton(){\n }", "private SingletonSigar(){}", "private SingletonSample() {}", "private SparkeyServiceSingleton(){}", "private LazySingleton(){}", "private Instantiation(){}", "private J2_Singleton() {}", "private Singleton() {\n if (instance != null){\n throw new RuntimeException(\"Use getInstance() to create Singleton\");\n }\n }", "private LoggerSingleton() {\n\n }", "private SingletonEager(){\n \n }", "private InstanceUtil() {\n }", "private LazySingleton() {\n if (null != INSTANCE) {\n throw new InstantiationError(\"Instance creation not allowed\");\n }\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private SingletonDoubleCheck() {}", "private EagerInitializedSingleton() {\n\t}", "private EagerInitializedSingleton() {\n\t}", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "private EagerlySinleton()\n\t{\n\t}", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "private MApi() {}", "private MySingleton() {\r\n\t\tSystem.out.println(\"Only 1 object will be created\");\r\n\t}", "private SingleTon() {\n\t}", "private SingleObject()\r\n {\r\n }", "private InnerClassSingleton(){}", "public SingletonVerifier() {\n }", "private SingletonAR() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonAR\");\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "private SingletonClass() {\n x = 10;\n }", "private ObjectFactory() { }", "private TagCacheManager(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "private SingleObject(){}", "private EagerInitializationSingleton() {\n\t}", "private PropertySingleton(){}", "private LOCFacade() {\r\n\r\n\t}", "private Service() {}", "private Singleton()\r\n\t{\r\n\t\tSystem.out.println(\"1st instance of class Singleton created\");\r\n\t\tstr = \"Constructor init\";\r\n\t}", "private SingletonH() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonH\");\n }", "private StreamFactory()\n {\n /*\n * nothing to do\n */\n }", "private Utility() {\n\t}", "private ResourceFactory() {\r\n\t}", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "private Supervisor() {\r\n\t}", "Reproducible newInstance();", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "private SnapshotUtils() {\r\n\t}", "private SingleObject(){\n }", "private Settings() {}", "private Settings() { }", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private StaticData() {\n\n }", "public Instance() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Util() {\n }", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private SingletonSyncBlock() {}", "private Util() {\n }", "private Util() {\n }", "public SharedObject() {}", "private Rekenhulp()\n\t{\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private UtilsCache() {\n\t\tsuper();\n\t}", "private Singleton2A(){\n\t\tif(instance != null){\n\t\t\tthrow new RuntimeException(\"One instance already created cant create other\");\n\t\t}\t\t\n\t\tSystem.out.println(\"I am private constructor\");\n\t}", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "private SingletonLectorPropiedades() {\n\t}", "private PerksFactory() {\n\n\t}", "private ScriptInstanceManager() {\n\t\tsuper();\n\t}", "private FlowExecutorUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private Util() { }", "private Settings()\n {}", "private SingletonClass() {\n objects = new ArrayList<>();\n }", "private BusquedaMaker() {\n\t\tinit();\n\t}", "private Registry() {\n dbgLog.fine(\"Registry constructor is called\");\n }", "private SystemInfo() {\r\n // forbid object construction \r\n }", "private Marinator() {\n }", "private Marinator() {\n }", "private WolUtil() {\n }", "private HabitTrackerUtils() {\n // Required empty private constructor (to prevent instantiation).\n }", "private QcTestRunner()\n\t{\n\t\t// To prevent external instantiation of this class\n\t}", "private PermissionUtil() {\n throw new IllegalStateException(\"you can't instantiate PermissionUtil!\");\n }", "private HttpClient() {\n\t}", "private TSLManager() {\n\t\tsuper();\n\t}", "private Conf() {\n // empty hidden constructor\n }", "private LocatorFactory() {\n }", "private PluginAPI() {\r\n\t\tsuper();\r\n\t}", "private APIClient() {\n }", "private PrefUtils() {\n }", "private FixtureCache() {\n\t}", "private OspfConfigUtil() {\n\n }" ]
[ "0.8704474", "0.86345166", "0.8581089", "0.85058475", "0.84680855", "0.8190726", "0.8159366", "0.7990395", "0.79794216", "0.7952581", "0.78178513", "0.7797314", "0.76454735", "0.7630271", "0.76206493", "0.7554703", "0.7519292", "0.75150055", "0.7475945", "0.7475175", "0.7475175", "0.7463139", "0.74511266", "0.74351156", "0.7419453", "0.73910236", "0.73431677", "0.73392653", "0.72919625", "0.7228565", "0.7224708", "0.71631575", "0.71631575", "0.7163066", "0.7158106", "0.71431786", "0.71352035", "0.71351755", "0.7132699", "0.71228087", "0.71193427", "0.710777", "0.71054447", "0.71035576", "0.7093054", "0.7084496", "0.707907", "0.7078208", "0.70750326", "0.7061542", "0.70530534", "0.7051803", "0.7044202", "0.7042271", "0.7036945", "0.7028785", "0.7023638", "0.70201814", "0.70201814", "0.70201814", "0.70201814", "0.70201814", "0.7014557", "0.70133054", "0.69997954", "0.69948107", "0.69948107", "0.699232", "0.6988252", "0.6985372", "0.6985372", "0.6985372", "0.6985372", "0.698438", "0.6974362", "0.69560677", "0.6949895", "0.6947674", "0.6943857", "0.69405925", "0.6933326", "0.6933277", "0.6927575", "0.69264746", "0.69253707", "0.69224656", "0.6913547", "0.6913547", "0.69128275", "0.69014925", "0.6899474", "0.68950576", "0.68879855", "0.6881783", "0.6880747", "0.6869637", "0.6869153", "0.68666387", "0.686204", "0.68590486", "0.6845454" ]
0.0
-1
Parses the given document using a DOM structure
private DirectedGraph<String, SumoEdge> parseDocument(Document dom) { DirectedGraph<String, SumoEdge> newGraph = new DefaultDirectedWeightedGraph<String, SumoEdge>(SumoEdge.class); Element root = dom.getDocumentElement(); NodeList edges = root.getElementsByTagName("edge"); for (int i = 0; i < edges.getLength(); ++i) { Element edge = (Element) edges.item(i); // Skip internal edges if (edge.getAttribute("function").equals("internal")) { continue; } String id = edge.getAttribute("id"); double weight = 1.0; NodeList childs = edge.getElementsByTagName("lane"); if (childs.getLength() > 0) { Element lane = (Element) childs.item(0); weight = Double.parseDouble(lane.getAttribute("length")); } String from = edge.getAttribute("from"); String to = edge.getAttribute("to"); newGraph.addVertex(from); newGraph.addVertex(to); SumoEdge sumoEdge = new SumoEdge(id, weight); newGraph.addEdge(from, to, sumoEdge); idToEdge.put(id, sumoEdge); } return newGraph; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract XMLDocument parse(URL url);", "@Override\n protected Document parseAsDom(final Document input) {\n return input;\n }", "private void parseXMLDocument(final Document doc)\r\n {\r\n Node docRoot = doc.getDocumentElement();\r\n StringBuilder indent = new StringBuilder();\r\n\r\n fullXmlTree.append(\"<\" + docRoot.getNodeName() + \">\\n\");\r\n searchTreeFromBranch(docRoot, 0, indent);\r\n fullXmlTree.append(\"</\" + docRoot.getNodeName() + \">\\n\");\r\n\r\n if (getPrintFullTree())\r\n {\r\n printFullTree();\r\n }\r\n }", "@Override\n protected abstract Document parseAsDom(final T input) throws ConversionException;", "public static Document domParser(String s) {\n\t\ttry {\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder documentBuilder = factory.newDocumentBuilder();\n\t\t\tInputSource inputStream = new InputSource();\n\t\t\tinputStream.setCharacterStream(new StringReader(s));\n\t\t\treturn documentBuilder.parse(inputStream);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public Document parse(String xmlString) {\n \n Document document = null;\n try { \n //DOM parser instance\n DocumentBuilder builder = builderFactory.newDocumentBuilder();\n //parse an XML file into a DOM tree\n document = builder.parse( new InputSource( new StringReader( xmlString ) ) ); \n \n } catch (ParserConfigurationException ex) {\n Logger.getLogger(DOMParser.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SAXException ex) {\n Logger.getLogger(DOMParser.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(DOMParser.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n return document;\n }", "abstract public void data(Document document, Element rootElement);", "Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;", "private Document parseFile() throws IOException {\n\tString contents = instream_to_contents();\n\tDocument doc = Jsoup.parse(contents);\n\treturn doc;\n }", "private Document parse(String path) throws DocumentException, MalformedURLException {\n File file = new File(path);\r\n SAXReader saxReader = new SAXReader();\r\n return saxReader.read(file);\r\n }", "public static org.dom4j.Document convert( org.w3c.dom.Document dom) \r\n {\n org.dom4j.io.DOMReader reader = new org.dom4j.io.DOMReader();\r\n return reader.read(dom);\r\n }", "public void parse(XmlDocument document, Reader in) throws Exception {\n\t\tURL url = document.getURL();\n\t\tparse(document, url, null, in, null, null);\n\t}", "public Document parse (String filePath) {\n Document document = null;\n try {\n /* DOM parser instance */\n DocumentBuilder builder = builderFactory.newDocumentBuilder();\n /* parse an XML file into a DOM tree */\n document = builder.parse(filePath);\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return document;\n }", "private void parse(XmlDocument document, URL systemId, URL publicId,\n\t\t\tReader reader, InputStream stream, String encoding)\n\t\t\tthrows Exception {\n\t\tString pubString;\n\t\tString sysString;\n\n\t\tif (systemId != null) {\n\t\t\tsysString = systemId.toString();\n\t\t} else {\n\t\t\tsysString = \"\";\n\t\t}\n\n\t\tif (publicId != null) {\n\t\t\tpubString = publicId.toString();\n\t\t} else {\n\t\t\tpubString = \"\";\n\t\t}\n\n\t\t_document = document;\n\t\t_root = null;\n\t\t_parser = new XmlParser();\n\t\t_document._parser = _parser;\n\t\treset();\n\n\t\ttry {\n\t\t\t_parser.setHandler(new Handler());\n\n\t\t\tif (reader != null) {\n\t\t\t\t_parser.parse(sysString, pubString, reader);\n\t\t\t} else if (stream != null) {\n\t\t\t\t_parser.parse(sysString, pubString, stream, encoding);\n\t\t\t} else {\n\t\t\t\t_parser.parse(sysString, pubString, encoding);\n\t\t\t}\n\t\t} finally {\n\t\t\t/*\n\t\t\t * Who knows, maybe something was parsed at this point, so allow the\n\t\t\t * application to decide by setting everything up here.\n\t\t\t */\n\t\t\tdocument.setRoot(_root);\n\t\t}\n\t}", "private void parseDocument()\n {\n\tElement docEle = dom.getDocumentElement();\n\n\t// get a nodelist of <employee> elements\n\tNodeList nl = docEle.getElementsByTagName(\"path\");\n\tif (nl != null && nl.getLength() > 0)\n\t{\n\t for (int i = 0; i < nl.getLength(); i++)\n\t {// System.out.println(i);\n\n\t\t// get the employee element\n\t\tElement el = (Element) nl.item(i);\n\n\t\t// get the Employee object\n\t\tmakeRoom(el);\n\n\t }\n\n\t //Log.d(\"NUMROOMS\", \"numRooms = \" + numDetectedRooms + \" \" + \"numHallways = \" + numDetectedHallways);\n\t}\n\t// This will read in the numbers. This is possibly useful for giving the rooms their correct numbers.\n\t// Find all of the glyphs within the room using it's coordinates and the ID designated by roomsMap.\n\t// Organize their coordinates from left to right and translate the filename to what number they are.\n\t// These numbers from left to right are the room number.\n\n\t/*\n\t * NodeList glyphs = docEle.getElementsByTagName(\"use\"); if (nl != null && glyphs.getLength() > 0) { for (int i = 0; i < glyphs.getLength(); i++) {\n\t * \n\t * //get the employee element Element el = (Element) glyphs.item(i); //System.out.println(el.getAttribute(\"id\")); String x = el.getAttribute(\"x\"); String y = el.getAttribute(\"y\");\n\t * \n\t * //Create a new Employee with the value read from the xml nodes\n\t * \n\t * myGlyphs.add(new Point((int)Double.parseDouble(x), (int)(Double.parseDouble(y))));\n\t * \n\t * } }\n\t */\n\n\t//Log.d(Constants.TAG, \"XMLReader::parseDocument() Exiting!\");\n }", "void visitDocumentNode(DocumentNode node);", "public DOMParser() { ; }", "public void parse(){\n\n Integer childStart = this.findNewElement(0, this.document.length - 1);\n if(childStart == null){\n return;\n }\n\n this.root.removeData();\n this.copyTextToDocumentTree(this.root, 0, childStart - 1);\n\n DocumentSectionType childType = this.getType(childStart);\n\n do {\n Integer end = this.findNextSameLevelElement(childStart + 1, childType);\n //now we have boundaries of our new element, so let's grab it's index\n //we need appropriate matcher\n\n Matcher childMatcher = childType.getPattern().matcher(this.document[childStart]);\n childMatcher.find();\n DocumentTree child = new DocumentTree(childType, childMatcher.group(1), null);\n\n //now clear first line\n try{\n String group2 = childMatcher.group(2);\n this.document[childStart] = group2 != null ? group2 + \" \" : \"\";\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] = \"\";\n }\n try {\n this.document[childStart] += childMatcher.group(3);\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] += \"\";\n }\n //and copy it's text\n this.copyTextToDocumentTree(child, childStart, end - 1);\n root.addChild(child);\n //finally, parse it\n DocumentParser childParser = new DocumentParser(child, joinChapterWithChapterNames);\n childParser.parse();\n\n childStart = end;\n }while(childStart != this.document.length);\n\n if(this.root.getType() == DocumentSectionType.CHAPTER && this.joinChapterWithChapterNames){\n DocumentTree nameNode = (DocumentTree)this.root.getChildren().get(0);\n this.root.removeData();\n this.root.appendData(nameNode.getIndex());\n this.root.replaceChild(nameNode, nameNode.getChildren());\n }\n\n }", "public void parse(XmlDocument document, InputStream in) throws Exception {\n\t\tURL url = document.getURL();\n\t\tparse(document, url, null, null, in, null);\n\t}", "private Document getFragmentAsDocument(CharSequence value)\n/* */ {\n/* 75 */ Document fragment = Jsoup.parse(value.toString(), \"\", Parser.xmlParser());\n/* 76 */ Document document = Document.createShell(\"\");\n/* */ \n/* */ \n/* 79 */ Iterator<Element> nodes = fragment.children().iterator();\n/* 80 */ while (nodes.hasNext()) {\n/* 81 */ document.body().appendChild((Node)nodes.next());\n/* */ }\n/* */ \n/* 84 */ return document;\n/* */ }", "public static Document parse(InputStream in) throws ParserConfigurationException, SAXException, IOException {\n\t DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t DocumentBuilder db = dbf.newDocumentBuilder();\n\t \n\n\t return db.parse(in);\n\t }", "public void init() { \n\t\ttry { \n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder(); \n\t\t\tthis.document = builder.newDocument(); \n\t\t\tlogger.info(\"initilize the document success.\");\n\t\t} catch (ParserConfigurationException e) { \n\t\t\t\n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}", "public Document setUpDocumentToParse() throws ParserConfigurationException, SAXException, IOException{\n\t\tFile file = new File (dataFilePath);\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\tDocument document = documentBuilder.parse(file);\n\n\t\treturn document;\n\t}", "private void createDocument(){\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t//get an instance of builder\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\n\t\t//create an instance of DOM\n\t\tdom = db.newDocument();\n\n\t\t}catch(ParserConfigurationException pce) {\n\t\t\t//dump it\n\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\n\t\t\tSystem.exit(1);\n\t\t}\n }", "public Element generateElement(Document dom);", "private void createDocument() {\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\ttry {\r\n\t\t\t//get an instance of builder\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\r\n\t\t\t//create an instance of DOM\r\n\t\t\tdom = db.newDocument();\r\n\r\n\t\t\t}catch(ParserConfigurationException pce) {\r\n\t\t\t\t//dump it\r\n\t\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\r\n\t\t}", "void visit(Document document);", "public Duc2002Document getParsedDocument(Document document) throws Exception {\n\t\tDuc2002Document ducDoc=new Duc2002Document();\n\t\t// iterate through child elements of root\n\t\tElement root = document.getRootElement();\n\t\tfor ( Iterator i = root.elementIterator(); i.hasNext(); ) {\n\t\t\tElement element = (Element) i.next();\n\t\t\tString elementName=element.getQualifiedName();\n\t\t\tif(elementName.equals(\"DOCNO\"))\n\t\t\t\tducDoc.setDocNo(element.getStringValue());\n\t\t\telse if(elementName.equals(\"HEAD\"))\n\t\t\t\tducDoc.setTopic(element.getStringValue());\n\t\t\telse if(elementName.equals(\"TEXT\"))\n\t\t\t{\n\t\t\t\tducDoc.setText(element.getStringValue());\n\t\t\t\tString[] sentences = new String[element.elements().size()];\n\t\t\t\tint[] sentenceWordCounts = new int[element.elements().size()];\n\t\t\t\tint no=0;\n\t\t\t\tfor(Iterator j=element.elementIterator(); j.hasNext();) {\n\t\t\t\t\tElement sentence = (Element) j.next();\n\t\t\t\t\tsentences[no]=sentence.getStringValue();\n\t\t\t\t\tfor(Iterator k=sentence.attributeIterator(); k.hasNext(); ) {\n\t\t\t\t\t\tAttribute attribute=(Attribute) k.next();\n\t\t\t\t\t\tif(attribute.getQualifiedName().equals(\"wdcount\"))\n\t\t\t\t\t\t\tsentenceWordCounts[no]=Integer.parseInt(attribute.getStringValue());\n\t\t\t\t\t}\n\t\t\t\t\tno++;\n\t\t\t\t}\n\t\t\t\tducDoc.setSentences(sentences);\n\t\t\t\tducDoc.setSentenceWordCounts(sentenceWordCounts);\n\t\t\t}\n\t\t}\n\t\treturn ducDoc;\n\t}", "private static Document parseXML(InputStream stream) throws Exception {\n DocumentBuilderFactory objDocumentBuilderFactory = null;\n DocumentBuilder objDocumentBuilder = null;\n Document doc = null;\n try {\n objDocumentBuilderFactory = DocumentBuilderFactory.newInstance();\n objDocumentBuilder = objDocumentBuilderFactory.newDocumentBuilder();\n doc = objDocumentBuilder.parse(stream);\n } catch (Exception ex) {\n throw ex;\n }\n return doc;\n }", "public static synchronized Document parseToDocument(String xmlText) throws UMROException {\r\n xmlText = xmlText.substring(xmlText.indexOf('<'));\r\n Document document = null;\r\n try {\r\n DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();\r\n domFactory.setNamespaceAware(true);\r\n DocumentBuilder builder = domFactory.newDocumentBuilder();\r\n document = builder.parse(new InputSource(new StringReader(xmlText)));\r\n } catch (IOException ex) {\r\n throw new UMROException(\"IOException while parsing document: \" + ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new UMROException(\"ParserConfigurationException while parsing document: \" + ex);\r\n } catch (SAXException ex) {\r\n throw new UMROException(\"SAXException while parsing document: \" + ex);\r\n }\r\n return document;\r\n }", "public static void parseXML(String filename) {\n SAXBuilder builder = new SAXBuilder();\n \n //reading XML document\n Document xml = null;\n try {\n xml = builder.build(new File(filename));\n } catch (JDOMException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n //getting root element from XML document\n Element root = xml.getRootElement();\n if (root != null)\n {\n\t Element queryNode = root.getChild(\"query\");\n\t if (queryNode != null)\n\t {\n\t\t Element rcNode = queryNode.getChild(\"recentchanges\");\n\t\t \n\t\t List<Element> rcList = rcNode.getChildren();\n\t\t \n\t\t \n\t\t \n\t\t //Iterating over all childs in XML\n\t\t Iterator<Element> itr = rcList.iterator();\n\t\t while(itr.hasNext()){\n\t\t \tElement rc = itr.next();\n\t\t \tString user = rc.getAttributeValue(\"user\");\n\t\t \tString userId = rc.getAttributeValue(\"userid\");\n\t\t \tString pageId = rc.getAttributeValue(\"pageid\");\n\t\t \tString title = rc.getAttributeValue(\"title\");\n\t\t \tString timestamp = rc.getAttributeValue(\"timestamp\");\n\t\t \tString comments = rc.getAttributeValue(\"comment\");\n\t\t \tString type = rc.getAttributeValue(\"type\");\n\t\t \tString oldRevId = rc.getAttributeValue(\"old_revid\");\n\t\t \tString newRevId = rc.getAttributeValue(\"revid\");\n\t\t \tString recentChangeId = rc.getAttributeValue(\"rcid\");\n\t\t \t\n\t\t// \t //reading attribute from Element using JDOM\n\t\t// System.out.println(\"User: \" + user + \" | User_ID: \" + userId + \" | Page_ID: \" + pageId + \n\t\t// \t\t\" | Title: \" + title + \" | Timestamp: \" + timestamp + \" | Recent_Change_ID: \" + recentChangeId + \" | Old_Rev_ID: \" + oldRevId + \n\t\t// \t\t\" | New_Rev_ID: \" + newRevId + \" | Type: \" + type); \n\t\t \t\n\t\t \ttry {\n\t\t\t\t\t\tcluster.writeWikiResults(user, userId, timestamp, pageId, title, recentChangeId, oldRevId, newRevId, type);\n\t\t\t\t\t\t System.out.println(count++);\n\t\t\t\t\t} catch (ParseException 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 (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t }\n\t }\n } \n }", "protected static org.w3c.dom.Document setUpXML(String nodeName)\n throws ParserConfigurationException\n {\n //try\n //{\n DocumentBuilderFactory myFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder myDocBuilder = myFactory.newDocumentBuilder();\n DOMImplementation myDOMImpl = myDocBuilder.getDOMImplementation();\n // resultDocument = myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", \"PDFResult\", null);\n org.w3c.dom.Document resultDocument =\n myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", nodeName, null);\n return resultDocument;\n //}\n //catch (ParserConfigurationException e)\n //{\n // e.printStackTrace();\n // return null;\n //}\n\n }", "private static DocumentBuilder instantiateParser()\n throws IOException {\n\n DocumentBuilder parser = null;\n\n try {\n DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance();\n fac.setNamespaceAware( true );\n fac.setValidating( false );\n fac.setIgnoringElementContentWhitespace( false );\n parser = fac.newDocumentBuilder();\n return parser;\n } catch ( ParserConfigurationException e ) {\n throw new IOException( \"Unable to initialize DocumentBuilder: \" + e.getMessage() );\n }\n }", "public static Document convert(final net.simpleframework.lib.org.jsoup.nodes.Document in) {\n\t\treturn (new W3CDom().fromJsoup(in));\n\t}", "public void parseXML(String xmlString) {\n DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance(); \n Document document = null; \n try { \n //DOM parser instance \n DocumentBuilder builder = builderFactory.newDocumentBuilder(); \n \n //parse an XML file into a DOM tree, in this case, change the filepath to xml String \n document = builder.parse(new File(filePath));\n \n //get root element, which is <Airports>\n Element rootElement = document.getDocumentElement(); \n \n //traverse child elements. retrieve all the <Airport>\n NodeList nodes = rootElement.getChildNodes(); \n for (int i=0; i < nodes.getLength(); i++) \n { \n Node node = nodes.item(i); \n if (node.getNodeType() == Node.ELEMENT_NODE) { \n Element airport = (Element) node; \n \n //process child element \n String code = airport.getAttribute(\"Code\");\n String name = airport.getAttribute(\"Name\"); \n \n // child node of airport\n NodeList airportChildren = airport.getChildNodes();\n \n // value of longitude & latitude\n String longitude = airportChildren.item(1).getTextContent();\n String latitude = airportChildren.item(2).getTextContent();\n \n Location location = new Location(longitude, latitude);\n airportList.add(new Airport(code, name, location));\n } \n } \n \n // another approach to traverse all the listNode by tagName \n /*NodeList nodeList = rootElement.getElementsByTagName(\"book\"); \n if(nodeList != null) \n { \n for (int i = 0 ; i < nodeList.getLength(); i++) \n { \n Element element = (Element)nodeList.item(i); \n String id = element.getAttribute(\"id\"); \n } \n }*/\n // add the DOM object to the airportList\n } catch (ParserConfigurationException e) { \n e.printStackTrace(); \n } catch (SAXException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n } \n }", "void init(Document doc) {\n mDoc = doc;\n mDoc.getDocumentElement().normalize();\n load();\n }", "@Override\npublic\tvoid parseInput() {\n InputStream is = new ByteArrayInputStream(this.body.toString().getBytes());\n\t\t\n\t\t\n\t\ttry {\n\t\t\tthis.domIn = new XMLInputConversion(is);\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.rootXML = this.domIn.extractDOMContent();\n\t}", "public Document parse(File aFile)\n\t\t\t\t throws org.xml.sax.SAXException, java.io.IOException {\n\t\t/**\n\t\t * @todo Fix/implement this later\n\t\t */\n\t\tthrow new SAXException(\"Not supported\");\n\t}", "public static Document parse(String in) {\n try {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource(new StringReader(in));\n return db.parse(is);\n } catch (ParserConfigurationException | SAXException | IOException e) {\n throw new RuntimeException(e);\n }\n }", "public static Document parse(InputStream is) throws IOException\n {\n return parse(is, false);\n }", "private static ArrayList<Publication> getParserAuthor() {\n\t\n\t ArrayList<Publication> list= new ArrayList<Publication>(); \n //获取DOM解析器 \n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n DocumentBuilder builder; \n try { \n builder = factory.newDocumentBuilder(); \n Document doc; \n doc = builder.parse(new File(\"Myxml.xml\")); \n //得到一个element根元素,获得根节点 \n Element root = doc.getDocumentElement(); \n System.out.println(\"根元素:\"+root.getNodeName()); \n \n //子节点 \n NodeList personNodes = root.getElementsByTagName(\"publication\"); \n for(int i = 0; i<personNodes.getLength();i++){ \n Element personElement = (Element) personNodes.item(i); \n Publication publication = new Publication(); \n NodeList childNodes = personElement.getChildNodes(); \n //System.out.println(\"*****\"+childNodes.getLength()); \n \n for (int j = 0; j < childNodes.getLength(); j++) { \n if(childNodes.item(j).getNodeType()==Node.ELEMENT_NODE){ \n if(\"authors\".equals(childNodes.item(j).getNodeName())){ \n publication.setAuthors(childNodes.item(j).getFirstChild().getNodeValue()); \n }else if(\"id\".equals(childNodes.item(j).getNodeName())){ \n publication.setId(childNodes.item(j).getFirstChild().getNodeValue()); \n } \n } \n } \n list.add(publication); \n } \n for(Publication publication2 : list){ //为了查看数据是否正确,进行打印结果 \n System.out.println(publication2.toString()); \n } \n } catch (SAXException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n } catch (ParserConfigurationException e) { \n e.printStackTrace(); \n } \n return list;\n}", "public static final Document parse(final InputStream is) {\r\n final InputSource in = new InputSource(is);\r\n\r\n return parse(in);\r\n }", "public static Document createDocument( StringNode root )\r\n\t\tthrows ParserConfigurationException\r\n\t{\r\n \tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n Document doc = docBuilder.newDocument();\r\n String name = root.getName();\r\n Element element = doc.createElement( name );\r\n doc.appendChild( element );\r\n addElement( doc, element, root );\r\n return doc;\r\n\t}", "public void parseDocument(String XMLFilePath) {\n\t \n\t SAXParserFactory spf = SAXParserFactory.newInstance();\n\t try {\n\t\tSAXParser sp = spf.newSAXParser();\n\t\tsp.parse(XMLFilePath, this);\n\t }catch(SAXException se) {\n\t\tse.printStackTrace();\n\t }catch(ParserConfigurationException pce) {\n\t\tpce.printStackTrace();\n\t }catch (IOException ie) {\n\t\tie.printStackTrace();\n\t }\n\t}", "public static Document getDocument(InputSource in){\t\t\n\t\ttry {\n\t\t\tDocumentBuilderFactory docbuilderf = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docb = docbuilderf.newDocumentBuilder();\n\t\t\treturn docb.parse(in);\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Parseprobleem... Invalide bestand.\n\t\t\tthrow new RuntimeException(e);\n\t\t} catch (IOException e) {\n\t\t\t// TODO IOException, bestand bestaat niet of doet iets anders.\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// Configuratie zou moeten werken\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public static Document parse(InputStream is, boolean nsAware) throws IOException\n {\n try\n {\n DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n builderFactory.setFeature(\"http://apache.org/xml/features/disallow-doctype-decl\", true);\n builderFactory.setFeature(\"http://xml.org/sax/features/external-general-entities\",\n false);\n builderFactory.setFeature(\"http://xml.org/sax/features/external-parameter-entities\",\n false);\n builderFactory.setFeature(\n \"http://apache.org/xml/features/nonvalidating/load-external-dtd\", false);\n builderFactory.setXIncludeAware(false);\n builderFactory.setExpandEntityReferences(false);\n builderFactory.setNamespaceAware(nsAware);\n DocumentBuilder builder = builderFactory.newDocumentBuilder();\n return builder.parse(is);\n }\n catch (FactoryConfigurationError | ParserConfigurationException | SAXException e)\n {\n throw new IOException(e.getMessage(), e);\n }\n }", "public static Document parse(String filename) throws ParserException {\n\t\tif (filename == null) {\n\t\t\tthrow new ParserException();\n\t\t}\n\t\tFile file = new File(filename);\n\t\tif (!file.exists() || !file.isFile()) {\n\t\t\tthrow new ParserException();\n\t\t}\n\t\tFile subDir = file.getParentFile();\n\t\tif (!subDir.exists() || !subDir.isDirectory()) {\n\t\t\tthrow new ParserException();\n\t\t}\n\t\t// Document should be valid by here\n\t\tDocument doc = new Document();\n\t\tFieldNames field = FieldNames.TITLE;\n\t\tList<String> authors = new LinkedList<String>();\n\t\tString content = new String();\n\t\tboolean startContent = false;\n\n\t\tdoc.setField(FieldNames.FILEID, file.getName());\n\t\tdoc.setField(FieldNames.CATEGORY, subDir.getName());\n\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\t\tString line = reader.readLine();\n\n\t\t\twhile (line != null) {\n\t\t\t\tif (!line.isEmpty()) {\n\t\t\t\t\tswitch (field) {\n\t\t\t\t\tcase TITLE:\n\t\t\t\t\t\tdoc.setField(field, line);\n\t\t\t\t\t\tfield = FieldNames.AUTHOR;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase AUTHOR:\n\t\t\t\t\tcase AUTHORORG:\n\t\t\t\t\t\tif (line.startsWith(\"<AUTHOR>\") || !authors.isEmpty()) {\n\t\t\t\t\t\t\tString[] seg = null;\n\t\t\t\t\t\t\tString[] author = null;\n\n\t\t\t\t\t\t\tline = line.replace(\"<AUTHOR>\", \"\");\n\t\t\t\t\t\t\tseg = line.split(\",\");\n\t\t\t\t\t\t\tauthor = seg[0].split(\"and\");\n\t\t\t\t\t\t\tauthor[0] = author[0].replaceAll(\"BY|By|by\", \"\");\n\t\t\t\t\t\t\t// Refines author names\n\t\t\t\t\t\t\tfor (int i = 0; i < author.length; ++i) {\n\t\t\t\t\t\t\t\tauthor[i] = author[i].trim();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tauthor[author.length - 1] = author[author.length - 1]\n\t\t\t\t\t\t\t\t\t.replace(\"</AUTHOR>\", \"\").trim();\n\t\t\t\t\t\t\tauthors.addAll(Arrays.asList(author));\n\n\t\t\t\t\t\t\t// Saves author organization\n\t\t\t\t\t\t\tif (seg.length > 1) {\n\t\t\t\t\t\t\t\tdoc.setField(FieldNames.AUTHORORG, seg[1]\n\t\t\t\t\t\t\t\t\t\t.replace(\"</AUTHOR>\", \"\").trim());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (line.endsWith(\"</AUTHOR>\")) {\n\t\t\t\t\t\t\t\t// Saves author\n\t\t\t\t\t\t\t\tdoc.setField(FieldNames.AUTHOR, authors\n\t\t\t\t\t\t\t\t\t\t.toArray(new String[authors.size()]));\n\t\t\t\t\t\t\t\tfield = FieldNames.PLACE;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// This should be a PLACE\n\t\t\t\t\t\t\tfield = FieldNames.PLACE;\n\t\t\t\t\t\t}\n\t\t\t\t\tcase PLACE:\n\t\t\t\t\t\tif (!line.contains(\"-\")) {\n\t\t\t\t\t\t\tfield = FieldNames.CONTENT;\n\t\t\t\t\t\t\tstartContent = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString[] seg = line.split(\"-\");\n\t\t\t\t\t\t\tString[] meta = seg[0].split(\",\");\n\t\t\t\t\t\t\tif (seg.length != 0 && !seg[0].isEmpty()) {\n\n\t\t\t\t\t\t\t\tif (meta.length > 1) {\n\t\t\t\t\t\t\t\t\tdoc.setField(\n\t\t\t\t\t\t\t\t\t\t\tFieldNames.PLACE,\n\t\t\t\t\t\t\t\t\t\t\tseg[0].substring(0,\n\t\t\t\t\t\t\t\t\t\t\t\t\tseg[0].lastIndexOf(\",\"))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.trim());\n\t\t\t\t\t\t\t\t\tdoc.setField(FieldNames.NEWSDATE,\n\t\t\t\t\t\t\t\t\t\t\tmeta[meta.length - 1].trim());\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmeta[0] = meta[0].trim();\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tnew SimpleDateFormat(\"MMM d\",\n\t\t\t\t\t\t\t\t\t\t\t\tLocale.ENGLISH).parse(meta[0]);\n\t\t\t\t\t\t\t\t\t\t// This is a news date\n\t\t\t\t\t\t\t\t\t\tdoc.setField(FieldNames.NEWSDATE,\n\t\t\t\t\t\t\t\t\t\t\t\tmeta[0]);\n\t\t\t\t\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t\t\t\t\t// This is a place\n\t\t\t\t\t\t\t\t\t\tdoc.setField(FieldNames.PLACE, meta[0]);\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\tfield = FieldNames.CONTENT;\n\t\t\t\t\tcase CONTENT:\n\t\t\t\t\t\tif (!startContent) {\n\t\t\t\t\t\t\t// First line of content\n\t\t\t\t\t\t\tString[] cont = line.split(\"-\");\n\t\t\t\t\t\t\tif (cont.length > 1) {\n\t\t\t\t\t\t\t\tfor (int i = 1; i < cont.length; ++i) {\n\t\t\t\t\t\t\t\t\tcontent += cont[i];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstartContent = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontent += \" \" + line;\n\t\t\t\t\t\t}\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t}\n\t\t\tdoc.setField(FieldNames.CONTENT, content);\n\t\t\tdoc.setField(FieldNames.LENGTH, Integer.toString(content.trim().split(\"\\\\s+\").length));\n\t\t\treader.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new ParserException();\n\t\t}\n\n\t\treturn doc;\n\t}", "private void prepDocument() {\n if (body == null) {\n body = document.appendElement(\"body\");\n }\n\n body.attr(\"id\", \"readabilityBody\");\n\n Elements frames = document.getElementsByTag(\"frame\");\n if (frames.size() > 0) {\n LOG.error(\"Frames. Can't deal. Write code later to look at URLs and fetch\");\n impossible = true;\n return;\n }\n\n Elements stylesheets = document.getElementsByTag(\"style\");\n stylesheets.remove();\n stylesheets = document.select(\"link[rel='stylesheet']\");\n stylesheets.remove();\n\n /* Turn all double br's into p's */\n /*\n * Note, this is pretty costly as far as processing goes. Maybe optimize later.\n */\n handlePP();\n handleDoubleBr();\n fontsToSpans();\n }", "public final Node queryDOM(String query, Node root) throws SQLException,\n\t\t\tParserConfigurationException {\n\t\tfinal Connection con = getConnection();\n\t\tStatement stmt = null;\n\t\ttry {\n\t\t\tstmt = con.createStatement();\n\t\t\treturn DOMUtils.resultSet2NodeSet(stmt.executeQuery(query), root);\n\t\t} finally {\n\t\t\tif (stmt != null)\n\t\t\t\tstmt.close();\n\t\t\tif (con != null)\n\t\t\t\tcon.close();\n\t\t}\n\t}", "private void Obtengo_el_documento(String inputString) throws ParserConfigurationException, UnsupportedEncodingException, SAXException, IOException {\n DocumentBuilderFactory factory\n = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n\n //\n StringBuilder xmlStringBuilder = new StringBuilder();\n xmlStringBuilder.append(inputString);\n ByteArrayInputStream input = new ByteArrayInputStream(\n xmlStringBuilder.toString().getBytes(\"UTF-8\"));\n \n doc = builder.parse(input);\n \n }", "public Document readDocument();", "private static Document parseXmlFile(String in) {\n try {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource(new StringReader(in));\n return db.parse(is);\n } catch (ParserConfigurationException e) {\n throw new RuntimeException(e);\n } catch (SAXException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "XMLDocument load(XMLStreamReader reader) throws XMLStreamException, IllegalStateException;", "public void buildDocument( InputStream is ) {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = null;\n try {\n dBuilder = dbFactory.newDocumentBuilder();\n } catch ( ParserConfigurationException ex ) {\n Global.warning( \"Parser configuration exception: \" + ex.getMessage() );\n }\n try {\n doc = dBuilder.parse( is );\n } catch ( SAXException ex ) {\n Global.warning( \"SAX parser exception: \" + ex.getMessage() );\n } catch ( IOException ex ) {\n Global.warning( \"IO exception: \" + ex.getMessage() );\n }\n\n }", "public Document parse(String aUri)\n\t\t\t\t throws org.xml.sax.SAXException, java.io.IOException {\n\t\tparserImpl.parse(aUri);\n\n\t\treturn parserImpl.getDocument();\n\t}", "public Document parse(InputSource aXmlInstance)\n\t\t\t\t throws org.xml.sax.SAXException, java.io.IOException {\n\t\tif (aXmlInstance == null) {\n\t\t\tthrow new IllegalArgumentException(\"InputSource cannot be null\");\n\t\t}\n\n\t\tparserImpl.parse(aXmlInstance);\n\n\t\treturn parserImpl.getDocument();\n\t}", "public Document fromJsoup(final net.simpleframework.lib.org.jsoup.nodes.Document in) {\n\t\tValidate.notNull(in);\n\t\tDocumentBuilder builder;\n\t\ttry {\n\t\t\tbuilder = factory.newDocumentBuilder();\n\t\t\tfinal DOMImplementation impl = builder.getDOMImplementation();\n\t\t\tDocument out;\n\n\t\t\tout = builder.newDocument();\n\t\t\tfinal net.simpleframework.lib.org.jsoup.nodes.DocumentType doctype = in.documentType();\n\t\t\tif (doctype != null) {\n\t\t\t\tfinal org.w3c.dom.DocumentType documentType = impl.createDocumentType(doctype.name(),\n\t\t\t\t\t\tdoctype.publicId(), doctype.systemId());\n\t\t\t\tout.appendChild(documentType);\n\t\t\t}\n\t\t\tout.setXmlStandalone(true);\n\n\t\t\tconvert(in, out);\n\t\t\treturn out;\n\t\t} catch (final ParserConfigurationException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n\t}", "public Document parseFile(InputStream inputStream) {\r\n \r\n try {\r\n setDocument(docBuilder.parse(inputStream));\r\n }\r\n catch (SAXException e) {\r\n log.debug(\"Wrong XML file structure: \" + e.getMessage());\r\n return null;\r\n }\r\n catch (IOException e) {\r\n \te.printStackTrace();\r\n log.debug(\"Could not read source file: \" + e.getMessage());\r\n }\r\n log.debug(\"XML file parsed\");\r\n return getDocument();\r\n }", "public void parse(String systemId, DocumentFragment fragment) throws SAXException, IOException {\n parse(new InputSource(systemId), fragment);\n}", "private DOMs() {\n }", "public Document loadDomFromFile(String fileName){\n\t\tSAXReader reader = new SAXReader();\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tInputStream inputStream = new FileInputStream(fileName);\n\t\t\tdoc = reader.read(inputStream);\n\t\t} catch (DocumentException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn doc;\n\t}", "private void loadFromDoc(Document data) {\n if (total == null) { total = data; return; }\n\tNodeList tree = data.getDocumentElement().getChildNodes();\n\tfor (int i = 0; i < tree.getLength(); i++) {\n Node totroot = total.getDocumentElement();\n totroot.insertBefore(total.importNode(tree.item(i), true), null);\n }\n }", "void processElement(File documentPath) \n\t\t\tthrows XMLFormatException;", "public static void initXMLdoc() throws Exception {\n\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n DOMImplementation impl = builder.getDOMImplementation();\n\n\tdoc = impl.createDocument(null,null,null);\n }", "private void createDOMTree(){\n\t\t\tElement rootEle = dom.createElement(\"html\");\r\n\t\t\tdom.appendChild(rootEle);\r\n\t\t\t\r\n\t\t\t//\t\t\tcreates <head> and <title> tag\r\n\t\t\tElement headEle = dom.createElement(\"head\");\r\n\t\t\tElement titleEle = dom.createElement(\"title\");\r\n\t\t\t\r\n\t\t\t//\t\t\tset value to <title> tag\r\n\t\t\tText kuerzelText = dom.createTextNode(\"Auswertung\");\r\n\t\t\ttitleEle.appendChild(kuerzelText);\r\n\t\t\theadEle.appendChild(titleEle);\r\n\t\t\t\r\n\t\t\tElement linkEle = dom.createElement(\"link\");\r\n\t\t\tlinkEle.setAttribute(\"rel\", \"stylesheet\");\r\n\t\t\tlinkEle.setAttribute(\"type\", \"text/css\");\r\n\t\t\tlinkEle.setAttribute(\"href\", \"./format.css\");\r\n\t\t\theadEle.appendChild(linkEle);\r\n\t\t\t\r\n\t\t\trootEle.appendChild(headEle);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tElement bodyEle = dom.createElement(\"body\");\r\n\t\t\tElement divEle = dom.createElement(\"div\");\r\n\t\t\tdivEle.setAttribute(\"id\", \"cont\");\r\n\t\t\t\r\n\t\t\tVector<String> tmp = myData.get(0);\r\n\t\t\tElement h2Ele = dom.createElement(\"h2\");\r\n\t\t\tString h1Str = \"\";\r\n\t\t\tfor(Iterator i = tmp.iterator(); i.hasNext(); )\r\n\t\t\t{\r\n\t\t\t\th1Str = h1Str + (String)i.next() + \" \";\r\n\t\t\t}\r\n\t\t\tText aText = dom.createTextNode(h1Str);\r\n\t\t\th2Ele.appendChild(aText);\r\n\t\t\tdivEle.appendChild(h2Ele);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tElement tableEle = dom.createElement(\"table\");\r\n//\t\t\ttableEle.setAttribute(\"border\", \"1\");\r\n\t\t\t\r\n\t\t\ttmp = myData.get(0);\r\n\t\t\tElement trHeadEle = createTrHeadElement(tmp);\r\n\t\t\ttableEle.appendChild(trHeadEle);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tIterator it = myData.iterator();\r\n\t\t\twhile(it.hasNext()) {\r\n\t\t\t\ttmp = (Vector<String>)it.next();\r\n\t\t\t\tElement trEle = createTrElement(tmp);\r\n\t\t\t\ttableEle.appendChild(trEle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdivEle.appendChild(tableEle);\r\n\t\t\tbodyEle.appendChild(divEle);\r\n\t\t\trootEle.appendChild(bodyEle);\r\n\t\t\t\r\n\t\t}", "public SceneObject parse(XmlPullParser parser) throws XmlPullParserException, IOException {\n while (parser.getEventType() != XmlPullParser.START_TAG) {\n parser.next();\n if (parser.getEventType() == XmlPullParser.END_DOCUMENT)\n throw new XmlPullParserException(\"Unexpected END_DOCUMENT\");\n }\n\n SceneObject object = createSceneObject(parser);\n\n if (object == null)\n return null;\n\n float opacity = -1;\n boolean visible = object.isVisible();\n int renderingOrder = -1;\n\n // Parse attributes\n AttributeSet attributeSet = Xml.asAttributeSet(parser);\n for (XmlAttributeParser attributeParser : mAttributeParsers) {\n attributeParser.parse(mContext, object, attributeSet);\n }\n\n // TODO refactor\n for (int i = 0; i < attributeSet.getAttributeCount(); ++i) {\n\n switch (attributeSet.getAttributeName(i)) {\n\n case \"visible\":\n visible = attributeSet.getAttributeBooleanValue(i, visible);\n break;\n\n case \"opacity\":\n opacity = Float.parseFloat(parser.getAttributeValue(i));\n break;\n\n case \"renderingOrder\":\n renderingOrder = attributeSet.getAttributeIntValue(i, renderingOrder);\n break;\n }\n }\n\n // TODO refactor\n // Apply renderingOrder\n if (renderingOrder >= 0 && object.getRenderData() != null) {\n object.getRenderData().setRenderingOrder(renderingOrder);\n }\n\n // Parse children\n while (parser.next() != XmlPullParser.END_TAG) {\n\n if (parser.getEventType() == XmlPullParser.START_TAG) {\n SceneObject child = parse(parser);\n if (child != null) {\n object.addChildObject(child);\n }\n }\n }\n\n // TODO refactor\n /*\n * These are propagated to children so must be called after children are\n * added.\n */\n\n // Apply opacity\n if (opacity >= 0.0f) {\n object.setOpacity(opacity);\n }\n\n // Apply visible\n object.setVisible(visible);\n\n return object;\n }", "public static void nonRecursiveParserXML(NodeList rList, Document doc){\r\n\t try {\t\r\n\t System.out.println(\"===========================\");\r\n\t for (int temp1 = 0; temp1 < rList.getLength(); temp1++) {\r\n\t \t NodeList nList = doc.getElementsByTagName(\"mxCell\");\r\n\t System.out.println(\"++++++++++++++ mxCell +++++++++++++++++\");\r\n\t for (int temp = 0; temp < nList.getLength(); temp++) {// for each cell\r\n\t Node nNode = nList.item(temp); // a cell is called in as nNode\r\n\t System.out.println(\"\\nCurrent Element :\" + nNode.getNodeName());\r\n\t if (nNode.getNodeType() == Node.ELEMENT_NODE) {\r\n\t Element eElement = (Element) nNode;\r\n\t NamedNodeMap attList = eElement.getAttributes(); \r\n\t \r\n\t for(int ind = 0; ind < attList.getLength(); ind++){\r\n\t \t System.out.println(\"Attribute :\" + attList.item(ind));\r\n\t } \r\n\t NodeList subNodes = eElement.getElementsByTagName(\"mxGeometry\");\r\n\t System.out.println(\"\\t\\t------------ mxGeometry --------------\");\r\n\t for(int subInd = 0; subInd < subNodes.getLength(); subInd++){\r\n\t \t NamedNodeMap elemAtList = subNodes.item(subInd).getAttributes(); \r\n\t \r\n\t for(int ind2 = 0; ind2 < elemAtList.getLength(); ind2++){\r\n\t \t System.out.println(\"Attribute :\" + elemAtList.item(ind2));\r\n\t }\r\n\t }\r\n\t //System.out.println(\"First Name : \" + eElement.getElementsByTagName(\"mxGeometry\").item(0).getTextContent());\r\n\t }\r\n\t } \r\n\t }\r\n\t } catch (Exception e) {\r\n\t e.printStackTrace();\r\n\t }\r\n\t\t}", "private Document initialize() {\r\n Document doc = null;\r\n try {\r\n File file = new File(\"./evidence.xml\");\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = dbFactory.newDocumentBuilder();\r\n doc = docBuilder.parse(file);\r\n doc.getDocumentElement().normalize();\r\n } catch (ParserConfigurationException | IOException | SAXException e) {\r\n System.err.println(\"Parser failed parse file:\"+e.getMessage());\r\n }\r\n return doc;\r\n }", "public DocumentManipulator() {\n\t\ttry {\n\t\t\tthis.document = XMLUtils.buildDocument();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//-- Init Xpath\n\t\tinit();\n\t}", "@Override\n\tprotected List<Document> loadContent(String content) throws Exception {\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument document = \n\t\t\t\tdBuilder.parse(new InputSource(new StringReader(content)));\n\t\tdocument.getDocumentElement().normalize();\n\t\tList<Document> list = new LinkedList<>();\n\t\tlist.add(document);\n\t\treturn list;\n\t}", "void readXML(Element elem) throws XMLSyntaxError;", "public static Document loadXMLFrom(String xml) throws Exception {\n\t\tSource source = new StreamSource(new StringReader(xml));\n\t\tDOMResult result = new DOMResult();\n\t\tTransformerFactory.newInstance().newTransformer().transform(source, result);\n\t\treturn (Document) result.getNode();\n\t}", "private static Document parseXmlFile(String strXml) {\n // get the factory\n final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n try {\n // Using factory get an instance of document builder\n final DocumentBuilder db = dbf.newDocumentBuilder();\n final Document dom;\n File file;\n\n file = new File(strXml);\n if (!file.exists()) {\n strXml = \"data/\" + strXml;\n }\n\n // Parse using builder to get DOM representation of the XML file\n dom = db.parse(strXml);\n\n return dom;\n } catch (final Exception e) {\n Verbose.log(Level.SEVERE, e, \"Laoding Specifications\",\n e.getMessage());\n } // end try\n\n return null;\n }", "public void parseDocument(String fileLocation) {\n List<Object> objects = FileUtility.readObjectsFromFile(fileLocation);\n new File(FILE_DIRECTORY_NAME).mkdir();\n\n // TODO: Parellize the processing of html parsing for each html page\n\n objects.parallelStream().forEach((object) -> {\n HtmlPage htmlPage = (HtmlPage) object;\n String title = DocumentUtility.extractDocumentID(htmlPage.getURL());\n String parsedText = parseTitle(title) + NEWLINE + parseHtmlText(htmlPage);\n parsedHtmlPages.add(new ParsedHtmlPage(title, parsedText));\n });\n }", "protected void syncWithDocument(Node node) {\n/* 383 */ if (node.getNodeType() != 9)\n/* */ {\n/* 385 */ throw new XMLCRuntimeException(\"Node must be a document node\");\n/* */ }\n/* */ \n/* */ \n/* 389 */ Document doc = (Document)node;\n/* */ \n/* */ \n/* */ try {\n/* 393 */ Field[] fs = getClass().getDeclaredFields();\n/* */ \n/* 395 */ int substStart = \"$element_\".length();\n/* */ \n/* 397 */ for (int i = 0; i < fs.length; i++) {\n/* */ \n/* 399 */ Field f = fs[i];\n/* */ \n/* 401 */ if (f.getName().startsWith(\"$element_\")) {\n/* */ \n/* 403 */ String id = f.getName().substring(substStart);\n/* */ \n/* 405 */ Node idNode = doc.getElementById(id);\n/* */ \n/* 407 */ if (idNode == null) {\n/* */ \n/* 409 */ id = id.substring(0, 1).toLowerCase() + id.substring(1);\n/* */ \n/* 411 */ idNode = doc.getElementById(id);\n/* */ } \n/* */ \n/* */ \n/* 415 */ if (idNode != null) f.set(this, idNode);\n/* */ \n/* */ } \n/* */ } \n/* 419 */ } catch (Exception e) {\n/* */ \n/* 421 */ throw new XMLCRuntimeException(\"Error reflecting on element access fields\", e);\n/* */ } \n/* */ }", "@Override\n\tpublic Document parse(final CharSequence content) {\n\t\tfinal LagartoParser lagartoParser = new LagartoParser(config.parserConfig, content);\n\t\treturn parseWithLagarto(lagartoParser);\n\t}", "public IssuesList visitDocument() {\n list = new IssuesList();\n org.w3c.dom.Element element = document.getDocumentElement();\n if ((element != null) && element.getTagName().equals(\"issues\")) {\n visitElement_issues(element);\n }\n if ((element != null) && element.getTagName().equals(\"components\")) {\n visitElement_components(element);\n }\n if ((element != null) && element.getTagName().equals(\"component\")) {\n visitElement_component(element);\n }\n if ((element != null) && element.getTagName().equals(\"subcomponent\")) {\n visitElement_subcomponent(element);\n }\n if ((element != null) && element.getTagName().equals(\"statuses\")) {\n visitElement_statuses(element);\n }\n if ((element != null) && element.getTagName().equals(\"status\")) {\n visitElement_status(element);\n }\n if ((element != null) && element.getTagName().equals(\"platforms\")) {\n visitElement_platforms(element);\n }\n if ((element != null) && element.getTagName().equals(\"platform\")) {\n visitElement_platform(element);\n }\n if ((element != null) && element.getTagName().equals(\"operating-systems\")) {\n visitElement_operating_systems(element);\n }\n if ((element != null) && element.getTagName().equals(\"os\")) {\n visitElement_os(element);\n }\n if ((element != null) && element.getTagName().equals(\"versions\")) {\n visitElement_versions(element);\n }\n if ((element != null) && element.getTagName().equals(\"version\")) {\n visitElement_version(element);\n }\n if ((element != null) && element.getTagName().equals(\"priorities\")) {\n visitElement_priorities(element);\n }\n if ((element != null) && element.getTagName().equals(\"priority\")) {\n visitElement_priority(element);\n }\n if ((element != null) && element.getTagName().equals(\"issue-types\")) {\n visitElement_issue_types(element);\n }\n if ((element != null) && element.getTagName().equals(\"issue-type\")) {\n visitElement_issue_type(element);\n }\n if ((element != null) && element.getTagName().equals(\"persons\")) {\n visitElement_persons(element);\n }\n if ((element != null) && element.getTagName().equals(\"person\")) {\n visitElement_person(element);\n }\n if ((element != null) && element.getTagName().equals(\"resolutions\")) {\n visitElement_resolutions(element);\n }\n if ((element != null) && element.getTagName().equals(\"resolution\")) {\n visitElement_resolution(element);\n }\n if ((element != null) && element.getTagName().equals(\"issue\")) {\n visitElement_issue(element);\n }\n if ((element != null) && element.getTagName().equals(\"depends-on\")) {\n visitElement_depends_on(element);\n }\n if ((element != null) && element.getTagName().equals(\"comment\")) {\n visitElement_comment(element);\n }\n return list;\n }", "private static Document doDomFromString(String S,DocumentBuilder dBuilder)\n throws Exception{\n InputSource is = new InputSource(new StringReader(S));\n return dBuilder.parse(is);\n }", "protected void syncWithDocument(Node node) {\n/* 429 */ if (node.getNodeType() != 9)\n/* */ {\n/* 431 */ throw new XMLCRuntimeException(\"Node must be a document node\");\n/* */ }\n/* */ \n/* */ \n/* 435 */ Document doc = (Document)node;\n/* */ \n/* */ \n/* */ try {\n/* 439 */ Field[] fs = getClass().getDeclaredFields();\n/* */ \n/* 441 */ int substStart = \"$element_\".length();\n/* */ \n/* 443 */ for (int i = 0; i < fs.length; i++) {\n/* */ \n/* 445 */ Field f = fs[i];\n/* */ \n/* 447 */ if (f.getName().startsWith(\"$element_\")) {\n/* */ \n/* 449 */ String id = f.getName().substring(substStart);\n/* */ \n/* 451 */ Node idNode = doc.getElementById(id);\n/* */ \n/* 453 */ if (idNode == null) {\n/* */ \n/* 455 */ id = id.substring(0, 1).toLowerCase() + id.substring(1);\n/* */ \n/* 457 */ idNode = doc.getElementById(id);\n/* */ } \n/* */ \n/* */ \n/* 461 */ if (idNode != null) f.set(this, idNode);\n/* */ \n/* */ } \n/* */ } \n/* 465 */ } catch (Exception e) {\n/* */ \n/* 467 */ throw new XMLCRuntimeException(\"Error reflecting on element access fields\", e);\n/* */ } \n/* */ }", "protected void syncWithDocument(Node node) {\n/* 797 */ if (node.getNodeType() != 9)\n/* */ {\n/* 799 */ throw new XMLCRuntimeException(\"Node must be a document node\");\n/* */ }\n/* */ \n/* */ \n/* 803 */ Document doc = (Document)node;\n/* */ \n/* */ \n/* */ try {\n/* 807 */ Field[] fs = getClass().getDeclaredFields();\n/* */ \n/* 809 */ int substStart = \"$element_\".length();\n/* */ \n/* 811 */ for (int i = 0; i < fs.length; i++) {\n/* */ \n/* 813 */ Field f = fs[i];\n/* */ \n/* 815 */ if (f.getName().startsWith(\"$element_\")) {\n/* */ \n/* 817 */ String id = f.getName().substring(substStart);\n/* */ \n/* 819 */ Node idNode = doc.getElementById(id);\n/* */ \n/* 821 */ if (idNode == null) {\n/* */ \n/* 823 */ id = id.substring(0, 1).toLowerCase() + id.substring(1);\n/* */ \n/* 825 */ idNode = doc.getElementById(id);\n/* */ } \n/* */ \n/* */ \n/* 829 */ if (idNode != null) f.set(this, idNode);\n/* */ \n/* */ } \n/* */ } \n/* 833 */ } catch (Exception e) {\n/* */ \n/* 835 */ throw new XMLCRuntimeException(\"Error reflecting on element access fields\", e);\n/* */ } \n/* */ }", "@Override\n\tpublic Document loadDocument(String file) {\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tdbf.setNamespaceAware(true);\n\t\tDocumentBuilder db;\n\t\ttry {\n\t\t\tdb = dbf.newDocumentBuilder();\n\t\t\tDocument document = db.parse(new File(file));\n\t\t\treturn document;\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FactoryConfigurationError e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}", "@Override\n\tpublic void parseXML(Element root) throws Exception {\n\t\t\n\t}", "public static Document parseXML(String xmlContent) throws BaseException\r\n\t{\r\n\t\tDocument xmlDoc = null;\r\n\t\tif (!StringUtils.isEmpty(xmlContent))\r\n\t\t{\r\n\t\t\txmlDoc = parseXML(new ByteArrayInputStream(xmlContent.getBytes()));\r\n\t\t}\r\n\t\treturn xmlDoc;\r\n\t}", "Document toXml() throws ParserConfigurationException, TransformerException, IOException;", "public Document extract_dom_from_url(String url) throws UnknownHostException, IOException, InterruptedException{\n\t\t// handle case where http:// is not appended in the url\n\t\tif (!url.contains(\"http://\"))\n\t\t\turl = \"http://\" + url;\n\t\t\n\t\t// System.out.println(\"[Output from log4j] Extracting DOM Object from URL + \" + url);\n\t\tXPathEngineClientSocket client_socket = new XPathEngineClientSocket(url); \n\t\treturn client_socket.extract_dom_from_url(url);\n\t}", "public static Document parse(final File file) {\r\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder db;\r\n\t\tDocument dom = null;\r\n\t\ttry {\r\n\t\t\tdb = dbf.newDocumentBuilder();\r\n\t\t\tdom = db.parse(file);\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SAXException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn dom;\r\n\t}", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\tSystem.out.println(\"---解析文档开始----\");\n\t}", "public void parse()\n throws ClassNotFoundException, IllegalAccessException,\n\t InstantiationException, IOException, SAXException,\n\t ParserConfigurationException\n {\n\tSAXParser saxParser = SAXParserFactory.newInstance().newSAXParser();\n\txmlReader = saxParser.getXMLReader();\n\txmlReader.setContentHandler(this);\n\txmlReader.setEntityResolver(this);\n\txmlReader.setErrorHandler(this);\n\txmlReader.setDTDHandler(this);\n\txmlReader.parse(xmlSource);\n\t}", "public static Document getDocument(InputStream in){\t\t\n\t\ttry {\n\t\t\tDocumentBuilderFactory docbuilderf = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docb = docbuilderf.newDocumentBuilder();\n\t\t\treturn docb.parse(in);\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Parseprobleem... Invalide bestand.\n\t\t\tthrow new RuntimeException(e);\n\t\t} catch (IOException e) {\n\t\t\t// TODO IOException, bestand bestaat niet of doet iets anders.\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// Configuratie zou moeten werken\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }", "public void loadDocument() {\n\t\ttry {\n\t\t\tString defaultDirectory = Utils.lastVisitedDirectory;\n\t\t\tif (Utils.lastVisitedDocumentDirectory != null)\n\t\t\t\tdefaultDirectory = Utils.lastVisitedDocumentDirectory;\n\n\t\t\tJFileChooser fileChooser = new JFileChooser(defaultDirectory);\n\t\t\tint returnVal = fileChooser.showOpenDialog(new JFrame());\n\n\t\t\tif (returnVal != JFileChooser.APPROVE_OPTION) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tURL fileURL = fileChooser.getSelectedFile().toURL();\n\n\t\t\t((XsdTreeStructImpl) xsdTree).loadDocument(fileURL);\n\t\t\txsdTree.getMessageManager().sendMessage(\"XML document \" + fileURL + \" loaded.\", MessageManagerInt.simpleMessage);\n\t\t} catch (IOException urie) {\n\n\t\t} catch (SAXException saxe) {\n\n\t\t}\n\t\texampleLine = null;\n\t\t// updatePreview();\n\t}", "public static final Document parse(final InputSource input) {\r\n if (logB.isDebugEnabled()) {\r\n logB.debug(\"XmlFactory.parse : begin\");\r\n }\r\n\r\n Document document = null;\r\n\r\n try {\r\n input.setEncoding(ENCODING);\r\n document = getFactory().newDocumentBuilder().parse(input);\r\n } catch (final SAXException se) {\r\n logB.error(\"XmlFactory.parse : error\", se);\r\n } catch (final IOException ioe) {\r\n logB.error(\"XmlFactory.parse : error\", ioe);\r\n } catch (final ParserConfigurationException pce) {\r\n logB.error(\"XmlFactory.parse : error\", pce);\r\n }\r\n\r\n if (logB.isInfoEnabled()) {\r\n logB.info(\"XmlFactory.parse : exit : \" + document);\r\n }\r\n\r\n return document;\r\n }", "public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }", "public static DSSchemaIFace processDOM(Document aDoc) {\n\t\tDSSchemaDef schemaDef = new DSSchemaDef();\n\t\tNode schemaNode = DBUIUtils.findNode(aDoc, \"schema\");\n\t\tif (schemaNode == null) {\n\t\t\tSystem.out.println(\"*** Error DOM is missing its schema node!\");\n\t\t\tschemaDef = null;\n\t\t\treturn null;\n\t\t}\n\n\t\tNodeList tableList = schemaNode.getChildNodes();\n\t\tif (tableList != null) {\n\t\t\tfor (int i = 0; i < tableList.getLength(); i++) {\n\t\t\t\tNode tableNode = tableList.item(i);\n\t\t\t\tif (tableNode.getNodeType() != Node.TEXT_NODE) {\n\t\t\t\t\tString nodeName = tableNode.getNodeName();\n\t\t\t\t\tif (nodeName != null && nodeName.equals(\"table\")) {\n\t\t\t\t\t\tString name = DBUIUtils\n\t\t\t\t\t\t\t\t.findAttrValue(tableNode, \"name\");\n\t\t\t\t\t\tif (name != null && name.length() > 0) {\n\t\t\t\t\t\t\tDSTableDef tableDef = new DSTableDef(name);\n\t\t\t\t\t\t\tschemaDef.addTable(tableDef);\n\t\t\t\t\t\t\tNodeList fieldList = tableNode.getChildNodes();\n\t\t\t\t\t\t\tif (fieldList != null) {\n\t\t\t\t\t\t\t\tfor (int j = 0; j < fieldList.getLength(); j++) {\n\t\t\t\t\t\t\t\t\tNode field = fieldList.item(j);\n\t\t\t\t\t\t\t\t\tif (field != null\n\t\t\t\t\t\t\t\t\t\t\t&& field.getNodeType() != Node.TEXT_NODE) {\n\t\t\t\t\t\t\t\t\t\tString fldName = DBUIUtils\n\t\t\t\t\t\t\t\t\t\t\t\t.findAttrValue(field, \"name\");\n\t\t\t\t\t\t\t\t\t\tif (fldName == null\n\t\t\t\t\t\t\t\t\t\t\t\t|| fldName.length() == 0) {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t\t.println(\"*** Error field DOM node is missing its name!\");\n\t\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tString dataType = DBUIUtils\n\t\t\t\t\t\t\t\t\t\t\t\t.findAttrValue(field,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"dataType\");\n\t\t\t\t\t\t\t\t\t\tif (dataType == null\n\t\t\t\t\t\t\t\t\t\t\t\t|| dataType.length() == 0) {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t\t.println(\"*** Error field DOM node is missing its data type!\");\n\t\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t// handle missing value\n\t\t\t\t\t\t\t\t\t\tNode missingValueList = DBUIUtils\n\t\t\t\t\t\t\t\t\t\t\t\t.findNode(field,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMISSINGVALUELIST);\n\t\t\t\t\t\t\t\t\t\tVector missingValueCodeVector = new Vector();\n\t\t\t\t\t\t\t\t\t\t// System.out.println(\"before parsing missing value in schema parser\");\n\t\t\t\t\t\t\t\t\t\tif (missingValueList != null) {\n\t\t\t\t\t\t\t\t\t\t\t// System.out.println(\"after missingValue list is not null1\");\n\t\t\t\t\t\t\t\t\t\t\tNodeList missingValue = missingValueList\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getChildNodes();\n\t\t\t\t\t\t\t\t\t\t\t// System.out.println(\"after get missing value list kids2\");\n\t\t\t\t\t\t\t\t\t\t\tif (missingValue != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t// System.out.println(\"after missingvalue list is not null3\");\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int k = 0; k < missingValue\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLength(); k++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t// System.out.println(\"in missing value element4\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tNode missingcodeNode = missingValue\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.item(k);\n\t\t\t\t\t\t\t\t\t\t\t\t\tString missingCode = DBUIUtils\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.findNodeValue(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmissingcodeNode,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMISSINGVALUECODE);\n\t\t\t\t\t\t\t\t\t\t\t\t\t// System.out.println(\"the missing value code add to vector \"+missingCode);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmissingValueCodeVector\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(missingCode);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tString keyType = DBUIUtils\n\t\t\t\t\t\t\t\t\t\t\t\t.findAttrValue(field, \"keyType\");\n\t\t\t\t\t\t\t\t\t\tif (keyType != null) {\n\t\t\t\t\t\t\t\t\t\t\tif (keyType\n\t\t\t\t\t\t\t\t\t\t\t\t\t.equals(KEY_DESC[DSTableKeyIFace.PRIMARYKEY])) {\n\t\t\t\t\t\t\t\t\t\t\t\ttableDef.addPrimaryKey(fldName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdataType,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmissingValueCodeVector);\n\t\t\t\t\t\t\t\t\t\t\t} else if (keyType\n\t\t\t\t\t\t\t\t\t\t\t\t\t.equals(KEY_DESC[DSTableKeyIFace.SECONDARYKEY])) {\n\t\t\t\t\t\t\t\t\t\t\t\ttableDef.addSecondaryKey(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfldName, dataType,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmissingValueCodeVector);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\ttableDef.addField(fldName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdataType,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmissingValueCodeVector);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\ttableDef.addField(fldName,\n\t\t\t\t\t\t\t\t\t\t\t\t\tdataType,\n\t\t\t\t\t\t\t\t\t\t\t\t\tmissingValueCodeVector);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"*** Error table DOM node is missing its name!\");\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"*** Error chiuld of schema is not \\\"table\\\"!\");\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn schemaDef;\n\t}", "public Document getAsXMLDOM () {\r\n\r\n //code description\r\n\r\n return document;\r\n\r\n }", "public DocumentNode parse(Reader reader) throws IOException {\n DocumentRoot root = new DocumentRoot();\n ParserState state = provider.get(\"root\", root);\n int ch;\n while ((ch = reader.read()) != -1)\n state = state.accept((char) ch);\n return root;\n }", "public static Document getDoc(File inputFile) throws ParserConfigurationException, IOException\r\n {\r\n Document parsedDocument = null;\r\n DocumentBuilderFactory f = null;\r\n try\r\n {\r\n //System.out.println(\"Validazione XML abilitata: \" + enableValidationFromGui);\r\n //System.out.println(\"Esclusione Spazi Bianchi Elementi XML Abilitata: \" + enableIgnoringWhitespaceFromGui);\r\n File xmlFile = inputFile;\r\n f = DocumentBuilderFactory.newInstance();\r\n f.setValidating(enableValidationFromGui); \r\n f.setIgnoringElementContentWhitespace(enableIgnoringWhitespaceFromGui);\r\n DocumentBuilder b = f.newDocumentBuilder();\r\n ErrorHandler h = new xmlValidationErrorHandler();\r\n b.setErrorHandler(h);\r\n parsedDocument = (Document) b.parse(xmlFile);\r\n }\r\n catch (ParserConfigurationException | SAXException | IOException e)\r\n {\r\n System.out.println(e.toString()); \r\n }\r\n if(f.isValidating() && enableValidationFromGui)\r\n return parsedDocument;\r\n else\r\n return parsedDocument; \r\n }", "public void parseXML(String XML);", "Object getDocumentNode(Object contextNode);", "private void readDocument(Attributes attrs) {\n this.state = DOC_TEXT_STATE;\n }" ]
[ "0.6374253", "0.63171786", "0.61527276", "0.61522", "0.61503065", "0.6148357", "0.61308104", "0.6130594", "0.6108095", "0.607535", "0.6067763", "0.6064906", "0.60633516", "0.6034816", "0.6012628", "0.6004845", "0.5981378", "0.59655863", "0.5943167", "0.58797145", "0.5834257", "0.5832634", "0.5768112", "0.5741705", "0.5722149", "0.5706181", "0.5678162", "0.5666919", "0.564717", "0.56441855", "0.55950445", "0.55608267", "0.55534136", "0.5549063", "0.5537526", "0.55294865", "0.5525598", "0.55200696", "0.5518534", "0.55027807", "0.5498002", "0.5458558", "0.5453938", "0.54520977", "0.5427974", "0.5427573", "0.5424209", "0.5419599", "0.54191417", "0.5412902", "0.5399284", "0.5381302", "0.53697854", "0.5359587", "0.53141624", "0.5305221", "0.5304697", "0.5301995", "0.5301483", "0.5294012", "0.5271089", "0.52612084", "0.52542317", "0.5250376", "0.52456003", "0.5243279", "0.5241585", "0.523924", "0.5233708", "0.5231816", "0.52057785", "0.5196506", "0.51964897", "0.5194073", "0.5189899", "0.51812404", "0.5174862", "0.5166501", "0.5163199", "0.5161389", "0.5154293", "0.51513135", "0.51456994", "0.5142964", "0.51427", "0.51426786", "0.5141722", "0.5136205", "0.5135572", "0.51274025", "0.5123302", "0.512126", "0.5115472", "0.51039773", "0.5100248", "0.5083435", "0.50788194", "0.50761855", "0.50750613", "0.5067952" ]
0.57563657
23
Parses the given file and extracts a SUMO network graph
public synchronized void parse(File sumoNet) { if (graph != null) { // This singleton already parsed a file, error! System.err.println("Error, " + toString() + " already parsed a file, this singleton would become invalid! Aborting method and keeping a valid state!"); return; } init(); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); try { DocumentBuilder db = dbf.newDocumentBuilder(); Document dom = db.parse(sumoNet); graph = parseDocument(dom); algos = new TbusAlgorithms<String, SumoEdge>(graph); } catch (IOException | SAXException | ParserConfigurationException ex) { ex.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void readGraphFromFile();", "public void readNetworkFromFile() {\r\n\t\tFileReader fr = null;\r\n\t\t// open file with name given by filename\r\n\t\ttry {\r\n\t\t\ttry {\r\n\t\t\t\tfr = new FileReader (filename);\r\n\t\t\t\tScanner in = new Scanner (fr);\r\n\r\n\t\t\t\t// get number of vertices\r\n\t\t\t\tString line = in.nextLine();\r\n\t\t\t\tint numVertices = Integer.parseInt(line);\r\n\r\n\t\t\t\t// create new network with desired number of vertices\r\n\t\t\t\tnet = new Network (numVertices);\r\n\r\n\t\t\t\t// now add the edges\r\n\t\t\t\twhile (in.hasNextLine()) {\r\n\t\t\t\t\tline = in.nextLine();\r\n\t\t\t\t\tString [] tokens = line.split(\"[( )]+\");\r\n\t\t\t\t\t// this line corresponds to add vertices adjacent to vertex u\r\n\t\t\t\t\tint u = Integer.parseInt(tokens[0]);\r\n\t\t\t\t\t// get corresponding Vertex object\r\n\t\t\t\t\tVertex uu = net.getVertexByIndex(u);\r\n\t\t\t\t\tint i=1;\r\n\t\t\t\t\twhile (i<tokens.length) {\r\n\t\t\t\t\t\t// get label of vertex v adjacent to u\r\n\t\t\t\t\t\tint v = Integer.parseInt(tokens[i++]);\r\n\t\t\t\t\t\t// get corresponding Vertex object\r\n\t\t\t\t\t\tVertex vv = net.getVertexByIndex(v);\r\n\t\t\t\t\t\t// get capacity c of (uu,vv)\r\n\t\t\t\t\t\tint c = Integer.parseInt(tokens[i++]);\r\n\t\t\t\t\t\t// add edge (uu,vv) with capacity c to network \r\n\t\t\t\t\t\tnet.addEdge(uu, vv, c);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinally { \r\n\t\t\t\tif (fr!=null) fr.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.err.println(\"IO error:\");\r\n\t\t\tSystem.err.println(e);\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}", "public static GraphUndirected<NodeCppOSM, EdgeCppOSM> importOsmUndirected(final String filename) {\n \t\t// setting up\n \t\tGraphUndirected<NodeCppOSM, EdgeCppOSM> osmGraph = new GraphUndirected<>();\n \t\tFileReader fis = null;\n \t\tHashMap<Long, WayNodeOSM> osmNodes = new HashMap<>();\n \t\ttry {\n \t\t\t// create a StAX XML parser\n \t\t\tfis = new FileReader(filename);\n \t\t\tXMLInputFactory factory = XMLInputFactory.newInstance();\n \t\t\tXMLStreamReader parser = factory.createXMLStreamReader(fis);\n \t\t\t// go through all events\n \t\t\tfor (int event = parser.next(); \n \t\t\t\t\tevent != XMLStreamConstants.END_DOCUMENT;\n \t\t\t\t\tevent = parser.next()){\n \t\t\t\tif (event == XMLStreamConstants.START_ELEMENT) {\n \t\t\t\t\t//we are only interested in node|way elements\n \t\t\t\t\tif (parser.getLocalName().equals(\"node\")) {\n \t\t\t\t\t\t// get the node and store it\n \t\t\t\t\t\tWayNodeOSM node = processNode(parser);\n \t\t\t\t\t\tosmNodes.put(node.getID(), node);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tif (parser.getLocalName().equals(\"way\")) {\n \t\t\t\t\t\t\t// get the way and add it to the graph\n \t\t\t\t\t\t\t// this also creates all the included nodes\n \t\t\t\t\t\t\tOSMWay way = processWay(parser,osmNodes);\n \t\t\t\t\t\t\taddWay(osmGraph,osmNodes,way);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t// tear down the parser\n \t\t\tparser.close();\n \t\t\tparser = null;\n \t\t\tfactory = null;\n \t\t}\n \t\tcatch (IOException e){\n \t\t\tSystem.out.println(\"IOExcpetions\");\n \t\t\tSystem.exit(0);\n \t\t} catch (XMLStreamException e) {\n \t\t\tSystem.out.println(\"XMLStreamExcpetions\");\n \t\t\tSystem.exit(0);\n \t\t}\n \t\tif(fis!=null){\n \t\t\ttry {\n \t\t\t\tfis.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tSystem.exit(0);\n \t\t\t} \n \t\t}\n \t\t// reduce the number of nodes\n \t\treturn osmGraph;\n \t}", "public Graph loadFile(){\r\n String path = \"\";\r\n JFileChooser choix = new JFileChooser();\r\n choix.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only xml files\", \"xml\");\r\n choix.addChoosableFileFilter(filter);\r\n if (choix.showOpenDialog(null) == JFileChooser.APPROVE_OPTION){\r\n path = choix.getSelectedFile().getAbsolutePath();\r\n }\r\n Graph g = new Graph();\r\n boolean quit = false;\r\n int max = 0;\r\n try{\r\n BufferedReader br = new BufferedReader(new FileReader(path));\r\n do {\r\n String line = br.readLine();\r\n if (line.indexOf(\"<node\") != -1){\r\n String[] node_xml = line.split(\"\\\"\");\r\n Node node = new Node(Integer.parseInt(node_xml[1]),(int)Double.parseDouble(node_xml[3]),(int)Double.parseDouble(node_xml[5]),TypeNode.valueOf(node_xml[7]));\r\n max = Math.max(max, node.getId());\r\n if (node.getType() == TypeNode.INCENDIE){\r\n node.kindleFire((int)Double.parseDouble(node_xml[9]));\r\n }\r\n g.getListNodes().add(node);\r\n }\r\n if (line.indexOf(\"<edge\") != -1){\r\n String[] edge_xml = line.split(\"\\\"\");\r\n Edge edge = new Edge(findNode(g,Integer.parseInt(edge_xml[1])),findNode(g,Integer.parseInt(edge_xml[3])),TypeEdge.valueOf(edge_xml[5]));\r\n g.getListEdges().add(edge);\r\n }\r\n if (line.startsWith(\"</osm>\")){\r\n quit = true;\r\n } \r\n Node.setNb_node(max+1);\r\n } while (!quit);\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"File not found : \"+e.getMessage());\r\n } catch (IOException e) {\r\n System.out.println(\"Listening file error : \"+e.getMessage());\r\n }\r\n return g;\r\n }", "private static void readGraph() throws FileNotFoundException{ \n\n @SuppressWarnings(\"resource\")\n\tScanner scan = new Scanner (new FileReader(file)); \n scan.nextLine();\n\n while (scan.hasNextLine()){\n \n String ligne = scan.nextLine();\n\n if (ligne.equals(\"$\")){break;}\n\n \n String num1=ligne.substring(0,4);\n String num2=ligne.substring(4,ligne.length());\n\n Station st = new Station (num1,num2);\n //remplir les stations voisines ds le tableau Array\n ParisMetro.voisins[Integer.parseInt(st.getStationNum())]= st;\n //remplir les stations \n ParisMetro.stations.add(st);\n \n }\n \n\n while(scan.hasNextLine()){\n String temp = scan.nextLine();\n \n StringTokenizer st; \n\t\t st=new StringTokenizer(temp);\n\t\t \n\t\t int num =Integer.parseInt(st.nextToken());\n\t\t int voisinNum =Integer.parseInt(st.nextToken());\n\t\t int time=Integer.parseInt(st.nextToken());\n\t\t\n \n Chemin che = new Chemin (ParisMetro.voisins[num],ParisMetro.voisins[voisinNum],time);//create a new edge\n \n \n //ajout des chemins\n ParisMetro.chemins.add(che); \n //ajout des sorties stations voisines\n ParisMetro.voisins[num].addSortie(che);\n //ajout des sorties stations voisines\n ParisMetro.voisins[voisinNum].addArrivee(che);\n }\n \n }", "public static DSAGraph readFile(String filename)\n {\n DSAGraph graph = new DSAGraph();\n System.out.println(\"Reading file: \" + filename);\n try {\n File inFile = new File(filename);\n Scanner sc = new Scanner(inFile);\n sc.skip(\"#\"); //skips comment at beggining\n //sc.useDelimiter(\" \");\n\n while(sc.hasNextLine())\n {\n //sc.nextLine(); //currently always skipping the first line\n String command = sc.next();\n\n if(command.equals(\"Node\"))//case finds NODE\n {\n String label = sc.next();\n graph.addVertex(label);\n }\n else if(command.equals(\"Edge\")) //case finds EDGE\n {\n String l1 = sc.next();\n String l2 = sc.next();\n graph.addEdge(l1, l2);\n }\n // else if(command.equals(\"#\"))\n // {\n // System.out.println(\"Comment line\"); //may crash if there's a comment after the '#'\n // }\n\n }\n sc.close();\n } catch (Exception e) //file not found\n {\n throw new IllegalArgumentException(\"Unable to load object from file\" + e.getMessage());\n }\n\n return graph;\n\n\n }", "public static GraphDirected<NodeCppOSMDirected, EdgeCppOSMDirected> importOsmDirected(final String filename) {\n \t\t// setting up\n \t\tGraphDirected<NodeCppOSMDirected, EdgeCppOSMDirected> osmGraph = new GraphDirected<>();\n \t\tFileReader fis = null;\n \t\tHashMap<Long, WayNodeOSM> osmNodes = new HashMap<>();\n \t\ttry {\n \t\t\t// create a StAX XML parser\n \t\t\tfis = new FileReader(filename);\n \t\t\tXMLInputFactory factory = XMLInputFactory.newInstance();\n \t\t\tXMLStreamReader parser = factory.createXMLStreamReader(fis);\n \t\t\t// go through all events\n \t\t\tfor (int event = parser.next(); \n \t\t\t\t\tevent != XMLStreamConstants.END_DOCUMENT;\n \t\t\t\t\tevent = parser.next()){\n \t\t\t\tif (event == XMLStreamConstants.START_ELEMENT) {\n \t\t\t\t\t//we are only interested in node|way elements\n \t\t\t\t\tif (parser.getLocalName().equals(\"node\")) {\n \t\t\t\t\t\t// get the node and store it\n \t\t\t\t\t\tWayNodeOSM node = processNode(parser);\n \t\t\t\t\t\tosmNodes.put(node.getID(), node);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tif (parser.getLocalName().equals(\"way\")) {\n \t\t\t\t\t\t\t// get the way and add it to the graph\n \t\t\t\t\t\t\t// this also creates all the included nodes\n \t\t\t\t\t\t\tOSMWay way = processWay(parser,osmNodes);\n \t\t\t\t\t\t\taddWay(osmGraph,osmNodes,way);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t// tear down the parser\n \t\t\tparser.close();\n \t\t\tparser = null;\n \t\t\tfactory = null;\n \t\t}\n \t\tcatch (IOException e){\n \t\t\tSystem.out.println(\"IOExcpetions\");\n \t\t\tSystem.exit(0);\n \t\t} catch (XMLStreamException e) {\n \t\t\tSystem.out.println(\"XMLStreamExcpetions\");\n \t\t\tSystem.exit(0);\n \t\t}\n \t\tif(fis!=null){\n \t\t\ttry {\n \t\t\t\tfis.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tSystem.exit(0);\n \t\t\t} \n \t\t}\n \t\t// reduce the number of nodes\n \t\tsimplify(osmGraph);\n \t\treturn osmGraph;\n \t}", "void parseline(){\n\t\ttry {\n\t\tString currentLine;\n\t\tBufferedReader freader = new BufferedReader(new FileReader(\"C:\\\\wt2g_inlinks.txt\")); //default to dataset\n\t//\tBufferedReader freader = new BufferedReader(new FileReader(\"C:\\\\inlink.txt\")); // Use this for Graph \n\t\tSet<String> ar ;\n\t\t\twhile((currentLine= freader.readLine()) != null){ \n\t\t\t\tSet<String> in_data = new HashSet<>();\n\t\t\t\tStringTokenizer st = new StringTokenizer(currentLine,\" \");\n\t\t\t\tString node = st.nextToken();\n\t\t\t\tif(!inlinks.containsKey(node)){\n\t\t\t\t\tinlinks.put(node, null); // All the nodes are stored in inlinks Map\n\t\t\t\t}\n\t\t\t\t\twhile(st.hasMoreTokens()){\n\t\t\t\t\t\tString edge = st.nextToken();\n\t\t\t\t\t if(!inlinks.containsKey(edge)){\n\t\t\t\t\t \tinlinks.put(edge, null);\n\t\t\t\t\t } \n\t\t\t\t\t if(inlinks.get(node)!=null){\n\t\t\t\t\t \tSet B = inlinks.get(node);\n\t\t\t\t\t \tB.add(edge);\n\t\t\t\t\t \tinlinks.put(node, B);\n\t\t\t\t\t }\n\t\t\t\t\t else{\n\t\t\t\t\t in_data.add(edge);\n\t\t\t\t\t inlinks.put(node, in_data);\n\t\t\t\t\t }\t\t\t\t\t \n\t\t\t\t\t if(!(outlinks.containsKey(edge))){ //Creating the outlinks Map \n\t\t\t\t\t\t Set<String > nd = new HashSet<>();\n\t\t\t\t\t\t nd.add(node);\n\t\t\t\t\t outlinks.put(edge, nd);\n\t\t\t\t\t }\t\n\t\t\t\t\t else{\n\t\t\t\t\t\t ar = outlinks.get(edge);\n\t\t\t\t\t\t ar.add(node);\n\t\t\t\t\t\t outlinks.put(edge, ar);\n\t\t\t\t\t }\n\t\t\t\t\t}\n \t\t\t\t \n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t }\n\t\t\n\t\tSystem.out.println(\"Total Nodes : \" +inlinks.size());\n\t\t\n for(String str : inlinks.keySet()){\n \tSet s1 = inlinks.get(str);\n \tif(s1 != null)\n \tinlinks_count.put(str, s1.size());\n \telse\n \t\tsource++;\n }\n System.out.println(\"Total Source \" +source);\n \n for(String str : outlinks.keySet()){\n \tSet s1 = outlinks.get(str);\n \toutlinks_count.put(str, s1.size());\n }\n\t}", "public void createGraphFromFile() {\n\t\t//如果图未初始化\n\t\tif(graph==null)\n\t\t{\n\t\t\tFileGetter fileGetter= new FileGetter();\n\t\t\ttry(BufferedReader bufferedReader=new BufferedReader(new FileReader(fileGetter.readFileFromClasspath())))\n\t\t\t{\n\t\t\t\tString line = null;\n\t\t\t\twhile((line=bufferedReader.readLine())!=null)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t\t//create the graph from file\n\t\t\t\tgraph = new Graph();\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public IGraph<String,Double> read(String filename) throws FileNotFoundException, IOException {\n // Open the file\n Graph r = new Graph;\n INode n = r.nodeMaker(value);\n INode s = new Node;\n INode d = new Node;\n double w;\n\n\n\n BufferedReader br = new BufferedReader(new FileReader(filename));\n String st;\n char col;\n while ((st = br.readLine()) != null) {\n String[] var = s.split(\":\");\n s = (V) var[0];\n d = (V) var[1];\n w = (double) var[2];\n r.addNode(s);\n r.addNode(d);\n r.addEdge(s, d, w);\n\n }\n\n // Parse the lines. If a line does not have exactly 3 fields, ignore the line\n // For each line, add the nodes and edge\n //How many feilds and what is in each fields\n //After i have the right fields, need make nodes, weights, and add to graphs\n //...making nodes could be tricky... Could get multiple nodes with the same value\n\n // Return the graph instance\n return r;\n }", "public static Graph readGraphml(String fileName) throws IOException {\n\t\tBufferedReader inputFile = new BufferedReader(new FileReader(fileName));\n\t\tString line;\n\n\t\tline = inputFile.readLine();\n\t\t\t\t\n\t\tString[] parts = line.split(\"\\\"\");\n\t\tString graphName = parts[1];\n\t\tboolean directed = parts[3].equals(\"directed\");\n\t\tint numNodes = 0;\n\t\t\n\t\tline = inputFile.readLine(); //linha do \"key\" ignorada\n\n\t\tline = inputFile.readLine().trim();\t\t\n\t\twhile (!line.startsWith(\"<edge\")) {\n\t\t\tnumNodes ++;\n\t\t\tline = inputFile.readLine().trim();\n\t\t}\n\n\t\t//System.out.printf(\"Graph named %s, %sdirected, with %s nodes\\n\", graphName, directed?\"\":\"UN\", numNodes);\n\t\tGraph graph = new Graph(numNodes, GraphDataRepr.MIXED);\n\t\t\n\t\twhile (line.startsWith(\"<edge\")) {\n\t\t\tparts = line.split(\"\\\"\");\n\t\t\t\n\t\t\tint source = Integer.parseInt( parts[3].substring(1) );\n\t\t\tint target = Integer.parseInt( parts[5].substring(1) );\n\t\t\t\n\t\t\tline = inputFile.readLine();\n\t\t\t\n\t\t\tint startWeightIndex = line.indexOf('>') + 1; \n\t\t\tline = line.substring(startWeightIndex, line.indexOf('<', startWeightIndex));\n\t\t\t\n\t\t\tint capacity = Integer.parseInt(line);\n\t\t\t\n\t\t\t//System.out.printf(\"Aresta: (%s,%s) %s\\n\", source, target, capacity);\n\t\t\t\n\t\t\tif (directed) {\n\t\t\t\tgraph.addDirectedEdge(source, target, capacity);\n\t\t\t} else {\n\t\t\t\tgraph.addUndirectedEdge(source, target, capacity);\n\t\t\t}\n\t\t\t\n\t\t\tline = inputFile.readLine().trim();\n\t\t}\n\t\t\n\t\tinputFile.close();\n\t\treturn graph;\n\t}", "private static void parseEdges(File fileNameWithPath) throws Exception{\n\n\t\ttry {\n\n BufferedReader in = new BufferedReader(new FileReader(fileNameWithPath));\n\n\t\t /*\n\t\t * Read the first five lines from file as follows\n\t\t *\n\t\t * NAME: berlin52\n\t\t * COMMENT: 52 locations in Berlin (Groetschel)\n\t\t * DIMENSION: 52\n\t\t * EDGE_WEIGHT_TYPE: EUC_2D\n\t\t * OPTIMAL_COST: 7542\n\t\t * NODE_COORD_SECTION\n\t\t */ \n\t\t for (int i=0;i<6;i++){\n \tString str = in.readLine().trim();\n\t\t\tString[] strArray = str.split(\":\\\\s+\");\n\t\t\tif (strArray[0].equals(\"NAME\")) {\n\t\t\t\tProject.name = strArray[1]; \n\t\t\t} else if (strArray[0].equals(\"DIMENSION\")) {\n\t\t\t\tProject.dimension = new Integer(Integer.parseInt(strArray[1]));\n\t\t\t} else if (strArray[0].equals(\"OPTIMAL_COST\")) {\n\t\t\t\tProject.optimalCost = new Double(Double.parseDouble(strArray[1])); \n\t\t\t} else if (strArray[0].equals(\"EDGE_WEIGHT_TYPE\")) {\n\t\t\t\tProject.edgeWeightType = strArray[1]; }\n\t\t }\n\n\t\t if ( dimension == -1 ){\n\t\t\t throw new Exception(\"ERROR:Failed to read the file contents correctly from \"+fileNameWithPath.getPath());\n\t\t }\n\n\t\t /* read each vertex and its coordinates */\n\t\t Integer[] vertices = new Integer[Project.dimension];\n\t\t Double[] xCord = new Double[Project.dimension];\n\t\t Double[] yCord = new Double[Project.dimension];\n\t\t int vertexCount = 0;\n\n\t\t String str;\n while ((str = in.readLine().trim()) != null) {\n\t\t\tif (str.equals(\"EOF\"))\n\t\t\t\tbreak;\n\n\t\t \tString[] ar=str.split(\"\\\\s+\");\n\n\t\t\tvertices[vertexCount] =new Integer(Integer.parseInt(ar[0]));\n\t\t\txCord[vertexCount] =new Double(Double.parseDouble(ar[1]));\n\t\t\tyCord[vertexCount] =new Double(Double.parseDouble(ar[2]));\n\n\t\t\tvertexCount++;\n\t\t}\n\n in.close();\n\n\t\t/* \n\t\t * Generate the cost matrix between each pair of vertices\n\t\t * as a java HashMap<Integer,HashMap<Integer,Double>>\n\t\t*/\n\t\tfor (int i=0;i<Project.dimension;i++) {\n\t\t\tint vi = vertices[i].intValue();\n\t\t\tfor (int j=i+1;j<Project.dimension;j++) {\n\n\t\t\t\tint vj = vertices[j].intValue();\n\t\t\t\tdouble cost_ij = 0;\n\t\t\t\tif ( vi != vj)\n\t\t\t\t{\n\n\t\t\t\t\tif (Project.edgeWeightType.equals(\"GEO\")){\n\t\t\t\t\t\tint deg;\n\t\t\t\t\t\tdouble min;\n\t\n\t \t\t\t\t\tdeg = (int)(xCord[i].doubleValue());\n\t \t\t\t\t\tmin = xCord[i]- deg; \n\t \t\t\t\t\tdouble latitude_i = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdeg = (int)(yCord[i].doubleValue());\n\t \t\t\t\t\tmin = yCord[i]- deg; \n\t \t\t\t\t\tdouble longitude_i = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdeg = (int)(xCord[j].doubleValue());\n\t \t\t\t\t\tmin = xCord[j]- deg; \n\t \t\t\t\t\tdouble latitude_j = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdeg = (int)(yCord[j].doubleValue());\n\t \t\t\t\t\tmin = yCord[j]- deg; \n\t \t\t\t\t\tdouble longitude_j = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdouble q1 = Math.cos( longitude_i - longitude_j ); \n\t \t\t\t\t\tdouble q2 = Math.cos( latitude_i - latitude_j ); \n\t \t\t\t\t\tdouble q3 = Math.cos( latitude_i + latitude_j ); \n\n\t \t\t\t\t\tcost_ij = Math.floor( earthRadius * Math.acos( 0.5*((1.0+q1)*q2 - (1.0-q1)*q3) ) + 1.0);\n\n\t\t\t\t\t} else if (Project.edgeWeightType.equals(\"EUC_2D\")){\n\t\t\t\t\t\tdouble xd = xCord[i]-xCord[j];\n\t\t\t\t\t\tdouble yd = yCord[i]-yCord[j];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//cost_ij = new Double(Math.sqrt( (xd*xd) + (yd*yd))).intValue();\n\t\t\t\t\t\tcost_ij = Math.round(Math.sqrt( (xd*xd) + (yd*yd)));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Exception(\"ERROR:EDGE_WEIGHT_TYPE of GEO and EUC_WD are implemented , not implemented \"+Project.edgeWeightType);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\n\t\t \t\tif (!sourceGTree.containsKey(vi)){\n\t\t \t\t\tsourceGTree.put(vi,new HashMap<Integer,Double>());\n\t\t \t\t}\n\n\t\t \t\tif (!sourceGTree.containsKey(vj)){\n\t\t \t\t\tsourceGTree.put(vj,new HashMap<Integer,Double>());\n\t\t \t\t}\n\n\t\t \t\tsourceGTree.get(vi).put(vj,cost_ij);\n\t\t \t\tsourceGTree.get(vj).put(vi,cost_ij);\n\n\t\t\t}\n\t\t}\n\n } catch (IOException e) {\n System.out.println(\"ERROR: Failed reading file \" + fileNameWithPath.getPath());\n\t\t throw e;\n }\n\n\t}", "private void parseFile(String fileName) {\n Set<String> inputs = new HashSet<String>();\n Set<String> outputs = new HashSet<String>();\n double[] qos = new double[4];\n\n Properties p = new Properties(inputs, outputs, qos);\n\n try {\n Scanner scan = new Scanner(new File(fileName));\n while(scan.hasNext()) {\n\t\t\t\tString name = scan.next();\n\t\t\t\tString inputBlock = scan.next();\n\t\t\t\tString outputBlock = scan.next();\n\n\t\t\t\tqos[TIME] = scan.nextDouble();\n\t\t\t\tqos[COST] = scan.nextDouble();\n\t\t\t\tqos[AVAILABILITY] = scan.nextDouble()/100;\n\t\t\t\tqos[RELIABILITY] = scan.nextDouble()/100;\n\t\t\t\t// Throw the other two away;\n\t\t\t\tscan.nextDouble();\n\t\t\t\tscan.nextDouble();\n\n\t\t\t\tfor (String s :inputBlock.split(\",\"))\n\t\t\t\t\tinputs.add(s);\n\t\t\t\tfor (String s :outputBlock.split(\",\"))\n\t\t\t\toutputs.add(s);\n\n p = new Properties(inputs, outputs, qos);\n\n ServiceNode ws = new ServiceNode(name, p);\n serviceMap.put(name, ws);\n inputs = new HashSet<String>();\n outputs = new HashSet<String>();\n qos = new double[4];\n }\n scan.close();\n }\n catch(IOException ioe) {\n System.out.println(\"File parsing failed...\");\n }\n\t\tnumServices = serviceMap.size();\n }", "Graph<V,E> load(String filename);", "private void readGraphsFromFiles() {\n\n\n \t\ttry {\t\n\t\t\t// where to find SN files\n\t\t\tString fileName = \"./networks/SN_20000\";\n\t\t\tint numberSNs = 5;\n\t\t\t\n\t\t\t// TODO CHANGE! IT IS JUST FOR TESTING. OUT OF MEMORY\n\t\t\tfileNamesGraphs = new String[numberSNs];\n\t\t\tfileNamesGraphs [0]= fileName + \"_0.001.dgs\";\n\t\t\tfileNamesGraphs [1]= fileName + \"_0.002.dgs\";\n\t\t\tfileNamesGraphs [2]= fileName + \"_0.003.dgs\";\n\t\t\tfileNamesGraphs [3]= fileName + \"_0.004.dgs\";\n\t\t\tfileNamesGraphs [4]= fileName + \"_0.005.dgs\";\n\t\t\t//files [5]= fileName + \"_0.001.dgs\";\n\t\t\t//files [6]= fileName + \"_0.001.dgs\";\n\t\t\t//files [7]= fileName + \"_0.001.dgs\";\n\t\t\t//files [8]= fileName + \"_0.001.dgs\";\n\t\t\t//files [9]= fileName + \"_0.001.dgs\";\n\n\t long time1 = System.currentTimeMillis( );\n\n\t\t\t// first create a list of Graphs\n\t\t\tthis.graphsFromFiles = new ArrayList<Graph>();\t\n\t\t\t\n\t\t\tfor (int i = 0; i < numberSNs; i++) {\n\t\t\t\tGraph graphFromFile;\n\t\t\t\tgraphFromFile = new SingleGraph(\"SN\" + i);\n\t\t\t\tthis.graphsFromFiles.add(graphFromFile);\n\t\t\t}\n\t\t\n\t\t\tFileSourceDGS fileSource = new FileSourceDGS();\n\t\t\t\t\t\n\t\t\tfor (int i = 0; i < numberSNs; i++) {\n\t\t\t\tfileSource.addSink(this.graphsFromFiles.get(i));\t\t\t\t\n\t\t\t\tfileSource.readAll(fileNamesGraphs[i]);\n\t\t\t\tfileSource.removeSink(this.graphsFromFiles.get(i));\t\t\t\n\t\t\t}\t\t\n\t\t\t\n\t\t\tlong time2 = System.currentTimeMillis( );\n\t\t\tSystem.out.println(\"readGraphsFromFiles: \" + (double)(time2 - time1)/1000 \n\t\t\t\t\t+ \"s for reading the SN files\");\n\t \n\t\t\t\n\t\t} catch (IOException e) {\n\t\t \tSystem.out.println(\"Error when reading SN files\");\n\t\t}\n\t\t\t\t\t\n\t}", "private void parseDump(String dumpName) throws IOException {\n dump.createParserFile(dumpName);\n System.out.println(\"Processing the file: \" + dumpName);\n Source source = new Source();\n source.setNodeInfo(parseNodeInfo());\n String code = source.getNodeInfo().getCode();\n Map response = dump.parseNext();\n while (response != null) {\n source.addNewPath(response);\n response = dump.parseNext();\n }\n if(source.isRoutesEmpty())\n System.err.println(\"Node \" + code + \" has no routes, discarded from the graph\");\n else\n graph.put(code,source);\n }", "public void printGraph(File file) throws OrccException {\r\n \t\ttry {\r\n \t\t\tOutputStream out = new FileOutputStream(file);\r\n \t\t\tDOTExporter<State, UniqueEdge> exporter = new DOTExporter<State, UniqueEdge>(\r\n \t\t\t\t\tnew StringNameProvider<State>(), null,\r\n \t\t\t\t\tnew StringEdgeNameProvider<UniqueEdge>());\r\n \t\t\texporter.export(new OutputStreamWriter(out), getGraph());\r\n \t\t} catch (IOException e) {\r\n \t\t\tthrow new OrccException(\"I/O error\", e);\r\n \t\t}\r\n \t}", "public void readFromTxtFile(String filename){\n try{\n File graphFile = new File(filename); \n Scanner myReader = new Scanner(graphFile); \n parseFile(myReader);\n myReader.close();\n } \n catch(FileNotFoundException e){\n System.out.println(\"ERROR: DGraphEdges, readFromTxtFile: file not found.\");\n e.printStackTrace();\n } \n }", "public static void exportRouteGraph() {\n try {\n var nodeRouteNr = new ArrayList<Integer>();\n var links = new ArrayList<Pair<Integer, Integer>>();\n\n int[] idx = {0};\n Files.lines(Path.of(Omnibus.class.getResource(\"segments.txt\").getFile())).forEach(line -> {\n String[] parts = line.split(\",\");\n int routeNr = Integer.parseInt(parts[0]) - 1;\n nodeRouteNr.add(routeNr);\n if (parts.length > 5) {\n String[] connections = parts[5].split(\";\");\n for (String c : connections)\n links.add(new Pair(idx[0], Integer.parseInt(c)));\n }\n ++idx[0];\n });\n\n\n File f = Paths.get(\"route-graph.graphml\").toFile();\n var out = new PrintStream(f);\n out.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n out.println(\"<graphml xmlns=\\\"http://graphml.graphdrawing.org/xmlns\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xsi:schemaLocation=\\\"http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd\\\">\");\n out.println(\"<key attr.name=\\\"r\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"r\\\"/>\");\n out.println(\"<key attr.name=\\\"g\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"g\\\"/>\");\n out.println(\"<key attr.name=\\\"b\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"b\\\"/>\");\n out.println(\"<graph id=\\\"G\\\" edgedefault=\\\"directed\\\">\");\n for (int n = 0; n < nodeRouteNr.size(); ++n) {\n out.println(\"<node id=\\\"n\" + n + \"\\\">\");\n out.println(\"<data key=\\\"r\\\">\" + (COLOR[nodeRouteNr.get(n)]>>16) + \"</data>\");\n out.println(\"<data key=\\\"g\\\">\" + ((COLOR[nodeRouteNr.get(n)]>>8)&0xff) + \"</data>\");\n out.println(\"<data key=\\\"b\\\">\" + (COLOR[nodeRouteNr.get(n)]&0xff) + \"</data>\");\n out.println(\"</node>\");\n }\n int e = 0;\n for (var link : links)\n out.println(\"<edge id=\\\"e\" + (e++) + \"\\\" source=\\\"n\" + link.p + \"\\\" target=\\\"n\" + link.q + \"\\\"/>\");\n out.println(\"</graph>\");\n out.println(\"</graphml>\");\n out.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public CSGraph(String fileName) {\n hashTable = new CSHashing();\n words = readWords(fileName);\n\n// createGraph(); // Minimal lösning\n\n createHashTable(); // Frivillig bra lösning\n createGraphWithHashTable(); // Frivillig bra lösning\n\n// shortestPaths(); // Metod som endast används till textfilen utan par.\n\n readPairs(\"files/5757Pairs\");\n }", "static public Graph readNamedGraph(String file, boolean list_graph) {\n\t\tGraph G;\n\t\ttry {\n\t\t\tScanner S = new Scanner(new File(file));\n\t\t\tint n = S.nextInt();\n\t\t\tG = list_graph ? new ListGraph(n) : new MatrixGraph(n);\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tG.addName(i, S.next());\n\n\t\t\twhile (S.hasNext()) {\n\t\t\t\tString u = S.next();\n\t\t\t\tString v = S.next();\n\t\t\t\tDouble w = S.nextDouble();\n\n\t\t\t\tG.setWeight(u, v, w);\n\t\t\t}\n\t\t\tS.close();\n\t\t\treturn G;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.out);\n\t\t}\n\n\t\treturn null;\n\t}", "static public Graph readGraph(String file, boolean list_graph) {\n\t\tGraph G;\n\t\ttry {\n\t\t\tScanner S = new Scanner(new File(file));\n\t\t\tint n = S.nextInt();\n\t\t\tG = list_graph ? new ListGraph(n) : new MatrixGraph(n);\n\n\t\t\twhile (S.hasNext()) {\n\t\t\t\tint u = S.nextInt();\n\t\t\t\tint v = S.nextInt();\n\t\t\t\tDouble w = S.nextDouble();\n\t\t\t\tG.setWeight(u, v, w);\n\t\t\t}\n\t\t\tS.close();\n\t\t\treturn G;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.out);\n\t\t}\n\n\t\treturn null;\n\t}", "private static Graph fileToGraph(String fileName) throws IOException {\n Graph graph = new Graph();\n // line counter to help keep track of the first line in the array\n // we will add those characters to a arrayList of characters\n int lineCounter = 0;\n ArrayList<Character> nodeArray = new ArrayList<>();\n\n // check if its a existing file\n if (new File(fileName).isFile()) {\n Scanner scanner = new Scanner(new File(fileName));\n // loop over each line in the file\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] stringNums = line.trim().split(\"\\\\s+\");\n // System.out.println(Arrays.toString(stringNums));\n if (lineCounter == 0) {\n for (int i = 0; i < stringNums.length; i++) {\n // add the character to the array list\n nodeArray.add(stringNums[i].charAt(0));\n // add the character to the graph\n // creating a key based on the character\n // and creating a node with the name of that same character\n graph.addNode(stringNums[i].charAt(0));\n }\n } else {\n // the first index is always going to be a character\n Character nodeName = stringNums[0].charAt(0);\n // we will get the node based on what character we are at\n Node currentNode = graph.getNode(nodeName);\n // loop over the array\n for (int i = 1; i < stringNums.length; i++) {\n // convert to an int\n int weight = Integer.parseInt(stringNums[i]);\n // create node by getting\n Node destination = graph.getNode(nodeArray.get(i - 1));\n // connect the destination node and weight to current node that we are at\n if (weight != 0) {\n currentNode.addEdge(destination, weight);\n }\n }\n }\n lineCounter++;\n }\n }\n return graph;\n }", "public Graph createGraph() {\n String fileName;\n// fileName =\"./428333.edges\";\n String line;\n Graph g = new Graph();\n// List<String> vertexNames = new ArrayList<>();\n// try\n// {\n// BufferedReader in=new BufferedReader(new FileReader(fileName));\n// line=in.readLine();\n// while (line!=null) {\n////\t\t\t\tSystem.out.println(line);\n// String src = line.split(\" \")[0];\n// String dst = line.split(\" \")[1];\n//// vertexNames.add(src);\n//// vertexNames.add(dst);\n//// System.out.println(src+\" \"+dst);\n// g.addEdge(src, dst, 1);\n// line=in.readLine();\n// }\n// in.close();\n// } catch (Exception e) {\n//\t\t\te.printStackTrace();\n// }\n\n fileName=\"./788813.edges\";\n// List<String> vertexNames = new ArrayList<>();\n try\n {\n BufferedReader in=new BufferedReader(new FileReader(fileName));\n line=in.readLine();\n while (line!=null) {\n//\t\t\t\tSystem.out.println(line);\n String src = line.split(\" \")[0];\n String dst = line.split(\" \")[1];\n g.addEdge(src, dst, 1);\n line=in.readLine();\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n// Graph g = new Graph(new String[]{\"v0\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\", \"v7\", \"v8\"});\n// // Add the required edges.\n// g.addEdge(\"v0\", \"v1\", 4); g.addEdge(\"v0\", \"v7\", 8);\n// g.addEdge(\"v1\", \"v2\", 8); g.addEdge(\"v1\", \"v7\", 11); g.addEdge(\"v2\", \"v1\", 8);\n// g.addEdge(\"v2\", \"v8\", 2); g.addEdge(\"v2\", \"v5\", 4); g.addEdge(\"v2\", \"v3\", 7);\n// g.addEdge(\"v3\", \"v2\", 7); g.addEdge(\"v3\", \"v5\", 14); g.addEdge(\"v3\", \"v4\", 9);\n// g.addEdge(\"v4\", \"v3\", 9); g.addEdge(\"v4\", \"v5\", 10);\n// g.addEdge(\"v5\", \"v4\", 10); g.addEdge(\"v5\", \"v3\", 9); g.addEdge(\"v5\", \"v2\", 4);\n// g.addEdge(\"v5\", \"v6\", 2);\n// g.addEdge(\"v6\", \"v7\", 1); g.addEdge(\"v6\", \"v8\", 6); g.addEdge(\"v6\", \"v5\", 2);\n// g.addEdge(\"v7\", \"v0\", 8); g.addEdge(\"v7\", \"v8\", 7); g.addEdge(\"v7\", \"v1\", 11);\n// g.addEdge(\"v7\", \"v6\", 1);\n// g.addEdge(\"v8\", \"v2\", 2); g.addEdge(\"v8\", \"v7\", 7); g.addEdge(\"v8\", \"v6\", 6);\n\n//\n return g;\n }", "public static FA parseFromFile(String path) throws Exception {\n\t\ttry {\n\t\t\tSet<State> states = new HashSet<>();\n\t\t\tSet<Character> alphabet = new HashSet<>();\n\t\t\tSet<Triple<State,Character,State>> transitions = new HashSet<>();\n\t\t\tString departureStName = null;\n\t\t\tString arrivalStName = null;\n\t\t\tSet<String> finalStsNames = new HashSet<>();\n\t\t\tString initialStName = \"\";\n\t\t\tState initialState = null;\n\t\t\tScanner firstScanner = new Scanner(new File(\"tp1/Automatas/\"+path+\".dot\"));\n\t\t\twhile(firstScanner.hasNextLine()) {\n\t\t\t\tString line = firstScanner.nextLine().replaceAll(\"\\\\s+\",\"\");\n\t\t\t\tif (line.contains(\"[shape=doublecircle]\")) {\n\t\t\t\t\tString newLine = line.replace('[', '/');\n\t\t\t\t\tString[] res = newLine.split(\"/\");\n\t\t\t\t\tfinalStsNames.add(res[0]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfirstScanner.close();\n\t\t\tScanner secondScanner = new Scanner(new File(\"tp1/Automatas/\"+path+\".dot\"));\n\t\t\twhile(secondScanner.hasNextLine()) {\n\t\t\t\tString line = secondScanner.nextLine().replaceAll(\"\\\\s+\",\"\");\n\t\t\t\tif (line.contains(\"inic->\")) {\n\t\t\t\t\tString[] res = line.split(\"->\");\n\t\t\t\t\tinitialStName = res[1].substring(0, res[1].length()-1);\n\t\t\t\t\tif (finalStsNames.contains(initialStName))\n\t\t\t\t\t\tinitialState = new State(initialStName, true, true);\n\t\t\t\t\telse\n\t\t\t\t\t\tinitialState = new State(initialStName, true, false);\n\t\t\t\t\tstates.add(initialState);\n\t\t\t\t}\n\t\t\t\telse if (line.contains(\"->\")) {\n\t\t\t\t\tString newLine = line.replaceAll(\"[->=]\",\"/\");\n\t\t\t\t\tnewLine = newLine.replace('[','/').replace('\"','/');\n\t\t\t\t\tString[] res = newLine.split(\"/\");\n\t\t\t\t\tdepartureStName = res[0];\n\t\t\t\t\tarrivalStName = res[2];\n\t\t\t\t\tCharacter symbol = res[5].charAt(0);\n\t\t\t\t\tState departureState;\n\t\t\t\t\tState arrivalState;\n\t\t\t\t\tif (departureStName.equals(initialStName)) {\n\t\t\t\t\t\tdepartureState = initialState;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif (finalStsNames.contains(departureStName))\n\t\t\t\t\t\t\tdepartureState = new State(departureStName, false, true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdepartureState = new State(departureStName, false, false);\n\t\t\t\t\t\tstates.add(departureState);\n\t\t\t\t\t}\n\t\t\t\t\tif (arrivalStName.equals(initialStName)) {\n\t\t\t\t\t\tarrivalState = initialState;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif (finalStsNames.contains(arrivalStName))\n\t\t\t\t\t\t\tarrivalState = new State(arrivalStName, false, true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tarrivalState = new State(arrivalStName, false, false);\n\t\t\t\t\t\tstates.add(arrivalState);\n\t\t\t\t\t}\n\t\t\t\t\talphabet.add(symbol);\n\t\t\t\t\ttransitions.add(new Triple<>(departureState,symbol,arrivalState));\n\t\t\t\t}\n\t\t\t}\n\t\t\tsecondScanner.close();\n\t\t\tif (alphabet.contains(Lambda))\n\t\t\t\treturn new NFALambda(states, alphabet, transitions);\n\t\t\telse {\n\t\t\t\tfor (Triple<State,Character,State> t1 : transitions) {\n\t\t\t\t\tfor (Triple<State,Character,State> t2 : transitions) {\n\t\t\t\t\t\tif (t1.first().equals(t2.first()) && t1.second().equals(t2.second()) && !t1.third().equals(t2.third())) {\n\t\t\t\t\t\t\treturn new NFA(states, alphabet, transitions);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn new DFA(states, alphabet, transitions);\n\t\t\t}\n\t\t}\n\t\tcatch(FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public void readIn() throws FileNotFoundException{\n\t\tScanner sc;\n\t\tif (species.equals(\"Human\")){\n\t\t\tsc= new Scanner(PhenoGeneNetwork.class.getResourceAsStream(\"/GenePhenoEdgeList\"));\t\n\t\t}\t\t\n\t\telse{\n\t\t\tsc= new Scanner(PhenoGeneNetwork.class.getResourceAsStream(\"/GenePhenoEdgeListMouse\"));\t\n\t\t}\n\t\tnodeNameMap = new HashMap<String, CyNode>();\n\t\tproteinNameMap = new HashMap<String, CyNode>();\n\t\tphenotypeNameMap = new HashMap<String, CyNode>();\n\t\twhile (sc.hasNextLine()){\n\t\t\tString line = sc.nextLine();\n\t\t\tString [] nodes = line.split(\"\\t\");\n\t\t\tCyNode node1 = null;\n\t\t\tCyNode node2 = null;\n\t\t\t// for Node1\n\t\t\tif (nodeNameMap.containsKey(nodes[0])){\n\t\t\t\t\n\t\t\t\tnode1 = (CyNode) nodeNameMap.get(nodes[0]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tnode1 = network.addNode();\n\t\t\t\tCyRow attributes = network.getRow(node1);\n\t\t\t\tattributes.set(\"name\", nodes[0]);\n\t\t\t\tnodeNameMap.put(nodes[0], node1);\n\t\t\t\tphenotypeNameMap.put(nodes[0], node1);\t\t\t\t\n\t\t\t}\n\t\t\tif (nodeNameMap.containsKey(nodes[1])){\n\t\t\t\t\n\t\t\t\tnode2 = (CyNode) nodeNameMap.get(nodes[1]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tnode2 = network.addNode();\n\t\t\t\tCyRow attributes = network.getRow(node2);\n\t\t\t\tattributes.set(\"name\", nodes[1]);\n\t\t\t\tnodeNameMap.put(nodes[1], node2);\n\t\t\t\tproteinNameMap.put(nodes[1], node2);\n\t\t\t}\n\t\t\tif (!network.containsEdge(node1, node2)){\n\t\t\t\t\n\t\t\t\tCyEdge myEdge =network.addEdge(node1, node2, true);\n\t\t\t\tnetwork.getRow(myEdge).set(\"interaction\", \"phenotype\");\n\t\t\t\tnetwork.getRow(myEdge).set(\"name\", nodes[0]+ \" (phenotype) \" +nodes[1]);\n\t\t\t}\n\t\t\t\n\n\n\t\t}\n\n\t\tsc.close();\n\n\t}", "public static Network loadNetwork(String filename)\n throws IOException,\n InvalidNetworkException {\n Network network = new Network();\n BufferedReader bufferedReader = new BufferedReader(\n new FileReader(filename)\n );\n String currentLine = bufferedReader.readLine();\n List<String> intersectionsWithTrafficLights = new ArrayList<>();\n int currentLineNumber = 1;\n int numIntersections = 0;\n int numRoutes = 0;\n\n while (currentLine != null) {\n if (currentLine.startsWith(\";\")) {\n currentLine = bufferedReader.readLine();\n continue;\n }\n\n switch(currentLineNumber) {\n case 1:\n numIntersections = Integer.parseInt(currentLine);\n break;\n case 2:\n numRoutes = Integer.parseInt(currentLine);\n break;\n case 3:\n network.setYellowTime(Integer.parseInt(currentLine));\n break;\n case 4:\n parseIntersections(\n numIntersections,\n intersectionsWithTrafficLights,\n currentLine,\n network,\n bufferedReader\n );\n break;\n case 5:\n parseRoutesAndSensors(\n numRoutes,\n currentLine,\n network,\n bufferedReader\n );\n\n // Create traffic lights\n for (int i = 0; i < intersectionsWithTrafficLights.size(); i++) {\n String[] intersectionValues =\n intersectionsWithTrafficLights\n .get(i)\n .split(\":\");\n List<String> intersectionOrder = new ArrayList<>();\n for (String originIntersection: intersectionValues[2]\n .split(\",\")) {\n intersectionOrder.add(originIntersection);\n }\n try {\n network.addLights(intersectionValues[0],\n Integer.parseInt(intersectionValues[1]),\n intersectionOrder);\n } catch (IntersectionNotFoundException\n | InvalidOrderException e) {\n e.printStackTrace();\n }\n }\n\n break;\n }\n\n currentLineNumber++;\n currentLine = bufferedReader.readLine();\n }\n\n bufferedReader.close();\n return network;\n }", "public void readGraph(String filename)\n {\n Scanner fileIn = null;\n int vertex1, vertex2;\n\n try {\n fileIn = new Scanner (new FileReader(filename));\n numVertices = fileIn.nextInt();\n clearGraph();\n vertex1 = fileIn.nextInt();\n while (vertex1 != -1) {\n vertex2 = fileIn.nextInt();\n addEdge(vertex1, vertex2);\n vertex1 = fileIn.nextInt();\n }\n fileIn.close();\n } catch (IOException ioe)\n {\n System.out.println (ioe.getMessage());\n System.exit(0);\n }\n }", "private void parse() throws IOException {\r\n\t\tClassLoader cl = getClass().getClassLoader();\r\n\t\tFile file = new File(cl.getResource(\"./OBOfiles/go.obo\").getFile());\r\n\t\tFile file2 = new File(cl.getResource(\"./OBOfiles/go.obo\").getFile());\r\n\t FileReader fr = new FileReader(file);\r\n\t FileReader fr2 = new FileReader(file2);\r\n\t\tin=new BufferedReader(fr);\r\n\t\tin2=new BufferedReader(fr2);\r\n\t\tString line;\r\n\t\twhile((line=next(0))!=null) {\r\n\t\t\tif(line.equals(\"[Term]\")) parseTerm();\r\n\t\t}\r\n\t\tin.close();\r\n\t\tfr.close();\r\n\t\t\r\n\t\t//terms.printTerms();\r\n\t\tbuffer=null;\r\n\t\twhile((line=next(1))!=null) {\r\n\t\t\tif(line.equals(\"[Term]\")) createEdges();\r\n\t\t}\r\n\t\tin2.close();\r\n\t\tfr2.close();\r\n\t\tLOGGER.info(\"Finished Building DAGs!\");\r\n\t\t\r\n\t}", "public void loadNetwork(File data)\n throws FileNotFoundException {\n\n int numRoads = 0;\n\n // Read in from file fileName\n Scanner input = new Scanner(new FileInputStream(data));\n while (input.hasNext()) {\n\n // Parse the line in to <end1> <end2> <road-distance> <road-name>\n String[] tokens = input.nextLine().split(\" \");\n String fromName = tokens[0];\n String toName = tokens[1];\n double roadDistance = Double.parseDouble(tokens[2]);\n String roadName = tokens[3];\n\n boolean roadAdded = addRoad(fromName, toName, roadDistance, roadName);\n if (roadAdded) {\n numRoads += 2;\n }\n }\n\n System.out.println(\"Network Loaded!\");\n System.out.println(\"Loaded \" + numRoads + \" roads\");\n System.out.println(\"Loaded \" + vertices.size() + \" endpoints\");\n }", "public void readFile(File file) {\n\ttry (BufferedReader br = new BufferedReader(new FileReader(file)))\n\t{\n\n\t\tString sCurrentLine;\n\t\tString [] lineElements;\n\t\t\n\t\t// read the headlines\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\tnumVertices = Integer.parseInt(lineElements[1]);\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\tnumPaths = Integer.parseInt(lineElements[1]);\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\ttmax = Double.parseDouble(lineElements[1]);\n\t\t\n//\t\tSystem.out.println(numVertices + \", \" + numPaths + \", \" + tmax);\n\n\t\t/* read benefits1 */\n\t\tint index = 0;\n\t\twhile ((sCurrentLine = br.readLine()) != null) {\n//\t\t\t\tSystem.out.println(sCurrentLine);\n\t\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\t\tdouble x = Double.parseDouble(lineElements[0]);\n\t\t\tdouble y = Double.parseDouble(lineElements[1]);\n\t\t\tList<Double> scores = new ArrayList<Double>();\n\t\t\tfor (int i = 2; i < lineElements.length; i++) {\n\t\t\t\tdouble score = Double.parseDouble(lineElements[i]);\n\t\t\t\tscores.add(new Double(score));\n\t\t\t}\n\t\t\tPOI POI = new POI(index, x, y, scores);\n\t\t\t//POI.printMe();\n\t\t\t\n\t\t\tvertices.add(POI);\n\t\t\tindex ++;\n\t\t}\n\t\t\n\t\t// create the arcs and the graph\n\t\tfor (int i = 0; i < vertices.size(); i++) {\n\t\t\tfor (int j = 0; j < vertices.size(); j++) {\n\t\t\t\tArc arc = new Arc(vertices.get(i), vertices.get(j));\n\t\t\t\tarcs.add(arc);\n\t\t\t\tgraph.put(new Tuple2<POI, POI>(vertices.get(i), vertices.get(j)), arc);\n\t\t\t}\n\t\t}\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n}", "public void loadGraph2(String path) throws FileNotFoundException, IOException {\n\n\t\ttry (BufferedReader br = new BufferedReader(\n\n\t\t\t\tnew InputStreamReader(new FileInputStream(path), StandardCharsets.UTF_8), 1024 * 1024)) {\n\n\t\t\tString line;\n\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tif (line == null) // end of file\n\t\t\t\t\tbreak;\n\n\n\t\t\t\tint a = 0;\n\t\t\t\tint left = -1;\n\t\t\t\tint right = -1;\n\n\t\t\t\tfor (int pos = 0; pos < line.length(); pos++) {\n\t\t\t\t\tchar c = line.charAt(pos);\n\t\t\t\t\tif (c == ' ' || c == '\\t') {\n\t\t\t\t\t\tif (left == -1)\n\t\t\t\t\t\t\tleft = a;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tright = a;\n\n\t\t\t\t\t\ta = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tSystem.out.println(\"Erreur format ligne \");\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t}\n\t\t\t\t\ta = 10 * a + c - '0';\n\t\t\t\t}\n\t\t\t\tright = a;\n\t\t\n\t\t\t\t// s'assurer qu'on a toujours de la place dans le tableau\n\t\t\t\tif (adjVertices.length <= left || adjVertices.length <= right) {\n\t\t\t\t\tensureCapacity(Math.max(left, right) + 1);\n\t\t\t\t}\n\n\t\t\t\tif (adjVertices[left] == null) {\n\t\t\t\t\tadjVertices[left] = new Sommet(left);\n\t\t\t\t}\n\n\t\t\t\tif (adjVertices[right] == null) {\n\t\t\t\t\tadjVertices[right] = new Sommet(right);\n\t\t\t\t}\n\n\t\t\t\tif (adjVertices[left].listeAdjacence.contains(adjVertices[right])) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tadjVertices[left].listeAdjacence.add(adjVertices[right]);\n\t\t\t\t\tadjVertices[right].listeAdjacence.add(adjVertices[left]);\n\t\t\t\t\tnombreArrete++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < adjVertices.length; i++) {\n\t\t\tif (adjVertices[i] == null)\n\t\t\t\tnombreTrous++;\n\t\t}\n\t\tnumberOfNode = adjVertices.length - nombreTrous;\n\t\tSystem.out.println(\"-----------------------------------------------------------------\");\n\t\tSystem.out.println(\"Loading graph done !\");\n\t\tSystem.out.println(\"-----------------------------------------------------------------\");\n\n\t\tSystem.out.println(\"nombreTrous \" + nombreTrous);\n\t\tSystem.out.println(\"numberOfNode \" + numberOfNode);\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void readData(String fileName) {\n\t\ttry {\n\t\t\tFile file = new File(fileName);;\n\t\t\tif( !file.isFile() ) {\n\t\t\t\tSystem.out.println(\"ERRO\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\tBufferedReader buffer = new BufferedReader( new FileReader(file) );\n\t\t\t/* Reconhece o valor do numero de vertices */\n\t\t\tString line = buffer.readLine();\n\t\t\tStringTokenizer token = new StringTokenizer(line, \" \");\n\t\t\tthis.num_nodes = Integer.parseInt( token.nextToken() );\n\t\t\tthis.nodesWeigths = new int[this.num_nodes];\n\t\t\t\n\t\t\t/* Le valores dos pesos dos vertices */\n\t\t\tfor(int i=0; i<this.num_nodes; i++) { // Percorre todas a linhas onde seta valorado os pesos dos vertices\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se existe a linha a ser lida\n\t\t\t\t\tbreak;\n\t\t\t\ttoken = new StringTokenizer(line, \" \");\n\t\t\t\tthis.nodesWeigths[i] = Integer.parseInt( token.nextToken() ); // Adiciona o peso de vertice a posicao do arranjo correspondente ao vertice\n\t\t\t}\n\t\t\t\n\t\t\t/* Mapeia em um array de lista todas as arestas */\n\t\t\tthis.edges = new LinkedList[this.num_nodes];\n\t\t\tint cont = 0; // Contador com o total de arestas identificadas\n\t\t\t\n\t\t\t/* Percorre todas as linhas */\n\t\t\tfor(int row=0, col; row<this.num_nodes; row++) {\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se ha a nova linha no arquivo\n\t\t\t\t\tbreak;\n\t\t\t\tthis.edges[row] = new LinkedList<Integer>(); // Aloca nova lista no arranjo, representado a linha o novo vertice mapeado\n\t\t\t\tcol = 0;\n\t\t\t\ttoken = new StringTokenizer(line, \" \"); // Divide a linha pelos espacos em branco\n\t\t\t\t\n\t\t\t\t/* Percorre todas as colunas */\n\t\t\t\twhile( token.hasMoreTokens() ) { // Enquanto ouver mais colunas na linha\n\t\t\t\t\tif( token.nextToken().equals(\"1\") ) { // Na matriz binaria, onde possui 1, e onde ha arestas\n//\t\t\t\t\t\tif( row != col ) { // Ignora-se os lacos\n\t\t\t\t\t\t\t//System.out.println(cont + \" = \" + (row+1) + \" - \" + (col+1) );\n\t\t\t\t\t\t\tthis.edges[row].add(col); // Adiciona no arranjo de listas a aresta\n\t\t\t\t\t\t\tcont++; // Incrementa-se o total de arestas encontradas\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcol++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tthis.num_edges = cont; // Atribui o total de arestas encontradas\n\n\t\t\tif(true) {\n//\t\t\t\tfor(int i=0; i<this.num_nodes; i++) {\n//\t\t\t\t\tSystem.out.print(this.nodesWeigths[i] + \"\\n\");\n//\t\t\t\t}\n\t\t\t\tSystem.out.print(\"num edges = \" + cont + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tbuffer.close(); // Fecha o buffer\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Graph load(String filename) throws IOException\n {\n return load(filename, new SparseGraph(), null);\n }", "public static void main(String[] argv) throws Exception {\n // This code should work without modification once your reader code is working\n IGraphReader r = new DiGraphReader();\n IGraph<String,Double> g = r.read(\"graphfile.cs2\");\n IEdge<String,Double>[] edges = g.getEdgeSet();\n for(int i=0; i<edges.length; i++) {\n System.out.println(edges[i].getSource().getValue()+\" -> \"+edges[i].getDestination().getValue()+\" w: \"+edges[i].getWeight());\n }\n }", "void readQueryGraph(boolean isProtein, File file, int queryID) throws IOException {\n if(isProtein) {\n FileReader fileReader = new FileReader(file.getPath());\n BufferedReader br = new BufferedReader(fileReader);\n String line = null;\n int lineread = -1;\n boolean edgesEncountered = false;\n while ((line = br.readLine()) != null) {\n lineread++;\n if (lineread == 0)\n continue;\n String lineData[] = line.split(\" \");\n if (lineData.length == 2) {\n if (!edgesEncountered) {\n int id = Integer.parseInt(lineData[0]);\n String label = lineData[1];\n vertexClass vc = new vertexClass();\n vc.id1 = id;\n vc.label = label;\n vc.isProtein = true;\n queryGraphNodes.put(id, vc);\n\n } else {\n int id1 = Integer.parseInt(lineData[0]);\n int id2 = Integer.parseInt(lineData[1]);\n queryGraphNodes.get(id1).edges.put(id2, -1);\n }\n } else {\n edgesEncountered = true;\n }\n\n }\n\n }\n else {\n FileReader fileReader = new FileReader(file);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line = null;\n boolean reachedDest = false;\n while ((line = bufferedReader.readLine()) != null) {\n String[] lineData = line.split(\" \");\n if (lineData[0].equals(\"t\")) {\n // new graph\n if (Integer.parseInt(lineData[2]) == queryID) {\n reachedDest = true;\n nodesHuman = new HashMap<>();\n }\n else\n reachedDest = false;\n\n } else if (lineData[0].equals(\"v\")) {\n if (reachedDest) {\n // vertex in the graph\n int id1 = Integer.parseInt(lineData[1]);\n HashMap<String, Object> insertData = new HashMap<>();\n insertData.put(\"id\", id1);\n //insertData.put(\"graphID\", id);\n int count = 0;\n vertexClass vc = new vertexClass();\n for (int i = 2; i < lineData.length; i++) {\n vc.labels.add(Integer.parseInt(lineData[i]));\n\n }\n vc.id1 = id1;\n queryGraphNodes.put(id1, vc);\n }\n } else if (lineData[0].equals(\"e\")) {\n // edge in the graph\n if (reachedDest) {\n int id1 = Integer.parseInt(lineData[1]);\n int id2 = Integer.parseInt(lineData[2]);\n int label = Integer.parseInt(lineData[3]);\n queryGraphNodes.get(id1).edges.put(id2, label);\n }\n\n }\n }\n }\n }", "public static Graph<Integer,String> fromFile (String fileName) {\n\t\t\r\n\t\tGraph<Integer,String> g = new SparseGraph<Integer,String>();\r\n\t\tFileReader file = null;\r\n\t\ttry {\r\n\t\t\tfile = new FileReader(fileName);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.print(\"File not found: \" + fileName +\"\\n\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tScanner scan = new Scanner(file);\r\n\r\n\t\twhile (scan.hasNext()){\r\n\t\t\tInteger a = scan.nextInt();\r\n\t\t\tInteger b = scan.nextInt();\r\n\t\t\tg.addEdge(\"e:\"+a+\"-\"+b, a, b);\r\n\t\t}\r\n\t\t\r\n\t\treturn g;\r\n\t}", "public static void loadGraph_File(String filename) {\n // Graph aus Datei laden\n Application.graph = null;\n double time_graph = System.currentTimeMillis();\n filename = filename + \".DAT\";\n Application.println(\"============================================================\");\n Application.println(\"Fetching Data from \" + filename + \" and building graph\");\n try {\n FileInputStream fis = new FileInputStream(filename);\n ObjectInputStream obj_in = new ObjectInputStream(fis);\n Object obj = obj_in.readObject();\n if (obj instanceof NavGraph) {\n Application.graph = (NavGraph) obj;\n } else {\n throw new Exception(\"Saved Data != NavGraph\");\n }\n obj_in.close();\n fis.close();\n time_graph = (System.currentTimeMillis() - time_graph) / 1000;\n double time_init = System.currentTimeMillis();\n Application.println(\"Init Graph\");\n graph.initGraph();\n time_init = (System.currentTimeMillis() - time_init) / 1000;\n Application.println(\"Init Graph took \" + time_init + \" Secs\");\n Application.println(\"Fetching Data and building graph took: \" + time_graph + \"sec\");\n Application.println(\"============================================================\");\n } catch (Exception e) {\n Application.println(\"Error: \" + e.toString());\n }\n }", "@Override\n public boolean load(String file) {\n try {\n BufferedReader br = new BufferedReader(new FileReader(file));\n StringBuilder jsonString = new StringBuilder();\n String line = null;\n line = br.readLine();\n while (line != null) {\n jsonString.append(line);\n line = br.readLine();\n }\n br.close();\n /*\n Create a builder for the specific JSON format\n */\n GsonBuilder gsonBuilder = new GsonBuilder();\n JsonDeserializer<DWGraph_DS> deserializer = new JsonDeserializer<DWGraph_DS>() {\n @Override\n public DWGraph_DS deserialize(JsonElement json, Type type, JsonDeserializationContext context) throws JsonParseException {\n JsonObject jsonObject = json.getAsJsonObject();\n DWGraph_DS graph = new DWGraph_DS();\n JsonArray Nodes = jsonObject.getAsJsonArray(\"Nodes\");\n JsonArray Edges = jsonObject.getAsJsonArray(\"Edges\");\n Iterator<JsonElement> iterNodes = Nodes.iterator();\n while (iterNodes.hasNext()) {\n JsonElement node = iterNodes.next();\n\n graph.addNode(new DWGraph_DS.Node(node.getAsJsonObject().get(\"id\").getAsInt()));\n\n String coordinates[] = node.getAsJsonObject().get(\"pos\").getAsString().split(\",\");\n double coordinatesAsDouble[] = {0, 0, 0};\n for (int i = 0; i < 3; i++) {\n coordinatesAsDouble[i] = Double.parseDouble(coordinates[i]);\n }\n DWGraph_DS.Position pos = new DWGraph_DS.Position(coordinatesAsDouble[0], coordinatesAsDouble[1], coordinatesAsDouble[2]);\n graph.getNode(node.getAsJsonObject().get(\"id\").getAsInt()).setLocation(pos);\n }\n Iterator<JsonElement> iterEdges = Edges.iterator();\n int src, dest;\n double w;\n while (iterEdges.hasNext()) {\n JsonElement edge = iterEdges.next();\n src = edge.getAsJsonObject().get(\"src\").getAsInt();\n dest = edge.getAsJsonObject().get(\"dest\").getAsInt();\n w = edge.getAsJsonObject().get(\"w\").getAsDouble();\n graph.connect(src, dest, w);\n }\n return graph;\n }\n };\n gsonBuilder.registerTypeAdapter(DWGraph_DS.class, deserializer);\n Gson graphGson = gsonBuilder.create();\n G = graphGson.fromJson(jsonString.toString(), DWGraph_DS.class);\n return true;\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found!\");\n e.printStackTrace();\n return false;\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }", "@Override\n public boolean load(String file) {\n try {\n FileInputStream streamIn = new FileInputStream(file);\n ObjectInputStream objectinputstream = new ObjectInputStream(streamIn);\n WGraph_Algo readCase = (WGraph_Algo) objectinputstream.readObject();\n this.ga=null;//initialize the graph\n this.ga=readCase.ga;//take the graph from readCase to this.ga\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return false;\n }", "public static void main( String [ ] args )\n {\n Graph g = new Graph( );\n try\n {\n \t//String filePath = System.getProperty(\"user.dir\") + \"/\"+ args[0];\n \t\t\t\t\n FileReader fin = new FileReader( args[0]);\n Scanner graphFile = new Scanner( fin );\n\n // Read the edges and insert\n String line;\n while( graphFile.hasNextLine( ) )\n {\n line = graphFile.nextLine( );\n StringTokenizer st = new StringTokenizer( line );\n\n try\n {\n if( st.countTokens( ) != 3 )\n {\n System.err.println( \"Skipping ill-formatted line \" + line );\n continue;\n }\n String source = st.nextToken( );\n String dest = st.nextToken( );\n double\tdistance = Double.parseDouble(st.nextToken());\n g.addEdge( source, dest,distance );\n g.addEdge( dest, source,distance );\n }\n catch( NumberFormatException e )\n { System.err.println( \"Skipping ill-formatted line \" + line ); }\n }\n }\n catch( IOException e )\n { System.err.println( e ); }\n\n // System.out.println( \"File read...\" );\n // System.out.println( g.vertexMap.size( ) + \" vertices\" );\n\n Scanner in = new Scanner( System.in );\n while( processRequest( in, g ) )\n ;\n }", "static Graph readGraph(Scanner in) {\n String s;\n s = in.next();\n if (s.charAt(0) == '#') {\n s = in.nextLine();\n\n }\n int n = in.nextInt(); // number of vertices in the graph\n int m = in.nextInt(); // number of edges in the graph\n\n // create a graph instance\n Graph g = new Graph(n);\n\n\n for (int i = 1; i <= n; i++) {\n g.V[i].duration = in.nextInt();\n }\n\n for (int i = 0; i < m; i++) // Loop to read all the edges\n {\n int u = in.nextInt();\n int v = in.nextInt();\n\n g.addEdge(u, v);\n }\n in.close();\n return g;\n }", "public void transfertopurge(File file) {\n DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = null;\n String selfNodeID = null;\n try {\n documentBuilder = builderFactory.newDocumentBuilder();\n Document doc = documentBuilder.parse(file);\n doc.getDocumentElement().normalize();\n String rootElement = doc.getDocumentElement().getNodeName();\n String layerIDS = doc.getDocumentElement().getAttribute(\"LayerID\");\n int layerID = Integer.parseInt(layerIDS);\n NodeList nodeList1 = doc.getElementsByTagName(\"DATA\");\n for (int i = 0; i < nodeList1.getLength(); i++) {\n Node node = nodeList1.item(i);\n\n if (node.getNodeType() == node.ELEMENT_NODE) {\n Element element = (Element) node;\n String index = node.getAttributes().getNamedItem(\"INDEX\").getNodeValue();\n\n //Get value of all sub-Elements\n String key = element.getElementsByTagName(\"KEY\").item(0).getTextContent();\n String hashid = String.valueOf(element.getElementsByTagName(\"NEXTHOP\").item(0).getTextContent());\n if (!(hashid.equals(\"RootNode\"))) {\n ObjReturn obj3 = utility.search_entry(key,layerID);\n transfer(key, obj3);\n utility.delete_entry(layerID, key);\n\n }\n }\n }\n\n\n } catch (ParserConfigurationException | IOException e) {\n\n } catch (org.xml.sax.SAXException e) {\n e.printStackTrace();\n }\n }", "public String parse(File file);", "public static void parseForNewGraph( InputStream is, Graph g ) {\n CGXParser parser = new CGXParser( is );\n parser._topLevelGraph = g;\n parser.setKeepIDs( true );\n parser.setOffset( offsetZero );\n parser.setMakeList( false );\n parser.setPreserveGraph( false );\n\n parser.parseCGXMLCG( g );\n \n }", "@Override\n\tpublic boolean load(String file) {\n\t\ttry {\n GsonBuilder builder=new GsonBuilder();\n builder.registerTypeAdapter(DWGraph_DS.class,new DWG_JsonDeserializer());\n Gson gson=builder.create();\n\n FileReader reader=new FileReader(file);\n directed_weighted_graph dwg=gson.fromJson(reader,DWGraph_DS.class);\n this.init(dwg);\n }\n catch (FileNotFoundException e){\n e.printStackTrace();\n return false;\n }\n return true;\n }", "private static Node[][] parseFile(File sudFile) {\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(sudFile))) {\r\n\r\n\t\t\tString currentLine;\r\n\t\t\tString firstLine;\r\n\r\n\t\t\t// Grab the dimensions of the maze and create the array.\r\n\t\t\tfirstLine = br.readLine();\r\n\t\t\tdimensions = Integer.parseInt(firstLine.substring(0, 1));\r\n\t\t\tsubGrids = Integer.parseInt(firstLine.substring(2, 3));\r\n\t\t\tpuzzle = new Node[dimensions][dimensions];\r\n\r\n\t\t\t// Note: Removed domain set present in the N-Queens problem\r\n\t\t\t// Because of how basic the domain of a sudoku problem is\r\n\t\t\t// (1-dimensions) and because checking such values fits so perfectly\r\n\t\t\t// in a for loop.\r\n\t\t\t// for (int i = 1; i <= dimensions; i++) {\r\n\t\t\t// domain.add(i);\r\n\t\t\t// }\r\n\r\n\t\t\tint r = 0;\r\n\t\t\tNode temp;\r\n\t\t\twhile ((currentLine = br.readLine()) != null) {\r\n\t\t\t\tfor (int c = 0; c < dimensions; c++) {\r\n\t\t\t\t\tif (currentLine.charAt(c) == '-') {\r\n\t\t\t\t\t\t// let's replace the dashes with zeroes for comparison's\r\n\t\t\t\t\t\t// sake, and for variable typing's sake\r\n\t\t\t\t\t\ttemp = new Node(0, new HashSet<Integer>(), r, c);\r\n\t\t\t\t\t\tpuzzle[r][c] = temp;\r\n\t\t\t\t\t\t// Keep track of these \"unsolved\" nodes\r\n\t\t\t\t\t\tconstrainedNodes.add(temp);\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttemp = new Node(Character.getNumericValue(currentLine.charAt(c)), new HashSet<Integer>(), r, c);\r\n\t\t\t\t\t\tpuzzle[r][c] = temp;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tr++; // next row for next pass through loop\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tprintArray(puzzle);\r\n\r\n\t\treturn puzzle;\r\n\r\n\t}", "public void readGraph(File gmlFile) throws IOException,\n\t\t\tParserConfigurationException, SAXException, GraphIOException {\n\t\tthis.copy(GraphIOUtils.readFromGraphML2(gmlFile));\n\t}", "public void readInput(String fileName){\n\n BufferedReader reader;\n try {\n reader = new BufferedReader(new FileReader(fileName));\n String line = reader.readLine(); //read first line\n int numLine =1; //keep track the number of line\n while (line != null) {\n String[] tokens = line.trim().split(\"\\\\s+\"); //split line into token\n if(numLine==1){ //for the first line\n intersection = Integer.parseInt(tokens[0]); //set the number of intersection\n roadways = Integer.parseInt(tokens[1]); // set the number of roadways\n coor = new Coordinates[intersection];\n g = new Graph(intersection);//create a graph\n line = reader.readLine();\n numLine++;\n }\n else if(numLine>1&&numLine<intersection+2){ //for all intersection\n while(numLine>1&&numLine<intersection+2){\n tokens = line.trim().split(\"\\\\s+\");\n coor[Integer.parseInt(tokens[0])] = new Coordinates(Integer.parseInt(tokens[1]),Integer.parseInt(tokens[2])); //add into coor array to keep track the coor of intersection\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine ==intersection+2){ //skip the space line\n line = reader.readLine();\n numLine++;\n while(numLine<roadways+intersection+3){ // for all the roadways, only include the number of roadways mention in the first line\n tokens = line.trim().split(\"\\\\s+\");\n int fst = Integer.parseInt(tokens[0]);\n int snd = Integer.parseInt(tokens[1]);\n g.addEgde(fst,snd,coor[fst].distTo(coor[snd]));\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine >= roadways+intersection+3)\n break;\n }\n reader.close();\n } catch (FileNotFoundException e){\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void loadNodes(String nodeFile) throws Exception {\r\n \tBufferedReader br = new BufferedReader( new FileReader(nodeFile) );\r\n while(true) {\r\n String line = br.readLine();\r\n if(line == null)\r\n \tbreak;\r\n Scanner sr = new Scanner(line);\r\n if(!sr.hasNextLine())\r\n \tbreak;\r\n sr.useDelimiter(\"\\\\t\");\r\n int id = sr.nextInt(); // node id\r\n double weight = 1.0;\r\n String description = sr.next(); // description\r\n mNodes.add( new Node(id, weight, description) );\r\n }\r\n br.close();\r\n System.out.println(\"Loading graph nodes completed. Number of nodes:\" + getNodeCnt() );\r\n // initialize empty neighbor sets for each node\r\n for (int i = 0; i < getNodeCnt(); i++) {\r\n \tSet<Integer> outEdges = new HashSet<Integer> ();\r\n\t\t\tSet<Integer> inEdges = new HashSet<Integer> ();\r\n\t\t\tmOutEdges.add( outEdges );\r\n\t\t\tmInEdges.add( inEdges );\r\n\t\t}\r\n \r\n }", "private void readXGMML() throws JAXBException, IOException {\n \n \t\ttry {\n \t\t\tnodeAttributes = Cytoscape.getNodeAttributes();\n \t\t\tedgeAttributes = Cytoscape.getEdgeAttributes();\n \t\t\tnetworkCyAttributes = Cytoscape.getNetworkAttributes();\n \n \t\t\t// Use JAXB-generated methods to create data structure\n \t\t\tfinal JAXBContext jaxbContext = JAXBContext.newInstance(\n \t\t\t\t\tXGMML_PACKAGE, this.getClass().getClassLoader());\n \t\t\t// Unmarshall the XGMML file\n \t\t\tfinal Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();\n \n \t\t\t/*\n \t\t\t * Read the file and map the entire XML document into data\n \t\t\t * structure.\n \t\t\t */\n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(-1);\n \t\t\t\ttaskMonitor.setStatus(\"Reading XGMML data...\");\n \t\t\t}\n \t\t\t\n \t\t\tnetwork = (Graph) unmarshaller.unmarshal(networkStream);\n \t\t\t// Report Status Value\n \t\t\tif (taskMonitor != null) {\n \t\t\t\t//taskMonitor.setPercentCompleted(50);\n \t\t\t\ttaskMonitor.setStatus(\"XGMML file is valid. Next, create network...\");\n \t\t\t}\n \t\t\tnetworkName = network.getLabel();\n \n \t\t\trootNodes = new ArrayList();\n \n \t\t\t// Split the list into two: node and edge list\n \t\t\tnodes = new ArrayList();\n \t\t\tedges = new ArrayList();\n \t\t\tfinal Iterator it = network.getNodeOrEdge().iterator();\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tfinal Object curObj = it.next();\n \t\t\t\tif (curObj.getClass() == cytoscape.generated2.impl.NodeImpl.class) {\n \t\t\t\t\tnodes.add(curObj);\n \t\t\t\t} else {\n \t\t\t\t\tedges.add(curObj);\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t// Build the network\n \t\t\tcreateGraph();\n \n \t\t\t// It's not generally a good idea to catch OutOfMemoryErrors, but\n \t\t\t// in this case, where we know the culprit (a file that is too\n \t\t\t// large),\n \t\t\t// we can at least try to degrade gracefully.\n \t\t} catch (OutOfMemoryError oe) {\n \t\t\tnetwork = null;\n \t\t\tedges = null;\n \t\t\tnodes = null;\n \t\t\tnodeIDMap = null;\n \t\t\tnodeMap = null;\n \t\t\tSystem.gc();\n \t\t\tthrow new XGMMLException(\n \t\t\t\t\t\"Out of memory error caught! The network being loaded is too large for the current memory allocation. Use the -Xmx flag for the java virtual machine to increase the amount of memory available, e.g. java -Xmx1G cytoscape.jar -p plugins ....\");\n \t\t}\n \t}", "public MaxFlow(final String filename) {\r\n\t\tthis.nodes = new ArrayList<>();\r\n\t\tArrayList<String> nodeNames = new ArrayList<>();\r\n Pattern pattern = Pattern.compile(\"[^->\\\"\\\\[\\\\s]+\");\r\n Matcher matcher;\r\n\r\n\t\ttry{\r\n\t\t\tFileReader fr = new FileReader(filename);\r\n\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\r\n\t\t\tString currentLine = br.readLine();\r\n\t\t\tboolean finished = false;\r\n\t\t\t//create nodes and edges\r\n\r\n\t\t\twhile(!finished) {\r\n if(currentLine.matches(\".* -> .*\")) {\r\n matcher = pattern.matcher(currentLine);\r\n matcher.find();\r\n String start = matcher.group();\r\n matcher.find();\r\n String end = matcher.group();\r\n int maxFlow = Integer.parseInt(currentLine.substring(currentLine.indexOf(\"\\\"\") + 1, currentLine.indexOf(\"]\") - 1));\r\n\r\n if (!nodeNames.contains(start) && !nodeNames.contains(end)) {\r\n Node startNode = new Node(start, 0);\r\n Node endNode = new Node(end, 0);\r\n Edge connection = new Edge(startNode, endNode, maxFlow, 0);\r\n\r\n startNode.addEdge(connection);\r\n nodeNames.add(start);\r\n nodes.add(startNode);\r\n nodeNames.add(end);\r\n nodes.add(endNode);\r\n } else if (!nodeNames.contains(start) && nodeNames.contains(end)) {\r\n Node startNode = new Node(start, 0);\r\n Node endNode = findNode(end);\r\n Edge connection = new Edge(startNode, endNode, maxFlow, 0);\r\n\r\n startNode.addEdge(connection);\r\n nodeNames.add(start);\r\n nodes.add(startNode);\r\n } else if (nodeNames.contains(start) && !nodeNames.contains(end)) {\r\n Node startNode = findNode(start);\r\n Node endNode = new Node(end, 0);\r\n Edge connection = new Edge(startNode, endNode, maxFlow, 0);\r\n\r\n startNode.addEdge(connection);\r\n nodeNames.add(end);\r\n nodes.add(endNode);\r\n } else {\r\n Node startNode = findNode(start);\r\n Node endNode = findNode(end);\r\n Edge connection = new Edge(startNode, endNode, maxFlow, 0);\r\n startNode.addEdge(connection);\r\n }\r\n }\r\n currentLine = br.readLine();\r\n if (currentLine == null)\r\n finished = true;\r\n\r\n }\r\n this.pathfinder = new Navigation(nodes);\r\n\r\n\t\t} catch (IOException e){e.printStackTrace();}\r\n\t}", "public static void main(String[] args) {\r\n if (args.length!=1) {\r\n System.err.println(\"usage: java -cp <classpath> graph.packing.SSNode <graphfilename>\");\r\n System.exit(-1);\r\n }\r\n long start = System.currentTimeMillis();\r\n try {\r\n Graph g = DataMgr.readGraphFromFile2(args[0]);\r\n setup(g);\r\n selfstabilize();\r\n // count black nodes\r\n int active = 0;\r\n for (int i=0; i<g.getNumNodes(); i++) {\r\n SSNode ssni = _ssnodes[i];\r\n if (ssni._pv==0) active++;\r\n }\r\n long dur = System.currentTimeMillis()-start;\r\n System.out.println(\"total active nodes=\"+active+\" in \"+dur+\" msecs\");\r\n }\r\n catch (Exception e) {\r\n e.printStackTrace();\r\n System.exit(-1);\r\n }\r\n }", "public void readNetworkFile(String networkFilename)\n\t\tthrows IOException, NumberFormatException {\n\t\tif(DEBUG) System.out.println(\"reading network file from:\"+networkFilename);\n\t\tBufferedReader br = new BufferedReader(new FileReader(networkFilename));\n\t\tString line;\n\t\t// on the first line is the number of following lines that describe vertices\n\t\tint numVariables = -1;\n\t\tif((line = br.readLine()) != null){\n\t\t\tnumVariables = Integer.valueOf(line);\n\t\t}else{\n\t\t\tbr.close();\n\t\t\tthrow new IOException();\n\t\t}\n\t\tif(numVariables<0) {\n\t\t\tbr.close();\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\tfor(int i = 0;i<numVariables;i++){\n\t\t\tif((line = br.readLine()) != null){\n\t\t\t\tString[] tokenized = line.split(\" \");\n\t\t\t\tString variableName = tokenized[0];\n\t\t\t\ttokenized = tokenized[1].split(\",\");//values\n//\t\t\t\tSystem.out.printf(\"var:%s values:\",variableName);\n//\t\t\t\tfor(int q = 0; q < tokenized.length; q++) {\n//\t\t\t\t\tSystem.out.printf(\"%s \", tokenized[q]);\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n\t\t\t\tFactor.addVariable(variableName, new ArrayList<String>(Arrays.asList(tokenized)));\n\t\t\t}else{\n\t\t\t\tbr.close();\n\t\t\t\tthrow new IOException(\"inconsistent network file.\");\n\t\t\t}\n\t\t}\n\t\tbr.close();\n\t}", "Collection<MeterRead> parseSimpleNem12(File simpleNem12File) throws SimpleNemParserException;", "public void decode(Reader inputStream, DomGraph graph, NodeLabels labels)\r\n throws IOException, ParserException, MalformedDomgraphException {\r\n // set up XML parser\r\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder db;\r\n Document doc;\r\n \r\n try {\r\n db = dbf.newDocumentBuilder();\r\n\r\n // Parse the input file to get a Document object\r\n doc = db.parse(new InputSource(inputStream));\r\n } catch (Exception e) {\r\n throw new ParserException(e);\r\n }\r\n \r\n \r\n graph.clear();\r\n labels.clear();\r\n \r\n Element gxl = doc.getDocumentElement(); // First gxl element\r\n\r\n NodeList graph_list = gxl.getChildNodes();\r\n if (graph_list.getLength() == 0) {\r\n return;\r\n }\r\n\r\n for (int graph_index = 0; graph_index < graph_list.getLength(); graph_index++) {\r\n Node graph_node = graph_list.item(graph_index);\r\n if (graph_node.getNodeName().equals(\"graph\")) {\r\n // the \"graph\" element in the XML file\r\n Element graph_elem = (Element) graph_node;\r\n \r\n /*\r\n // set graph id\r\n String graphId = getAttribute(graph_elem, \"id\");\r\n if( graphId != null )\r\n graph.setName(graphId);\r\n */\r\n \r\n NodeList list = graph_elem.getChildNodes();\r\n\r\n // Loop over all nodes\r\n for (int i = 0; i < list.getLength(); i++) {\r\n Node node = list.item(i); // a \"node\" or \"edge\" element\r\n String id = getAttribute(node, \"id\");\r\n String edgeOrNode = node.getNodeName();\r\n String type = getType(node);\r\n Map<String,String> attrs = getStringAttributes(node);\r\n\r\n // TODO: check for unique ID\r\n \r\n if( edgeOrNode.equals(\"node\") ) {\r\n NodeData data;\r\n \r\n if( type.equals(\"hole\") ) {\r\n data = new NodeData(NodeType.UNLABELLED);\r\n } else {\r\n data = new NodeData(NodeType.LABELLED);\r\n labels.addLabel(id, attrs.get(\"label\"));\r\n }\r\n\r\n graph.addNode(id, data);\r\n\r\n /*\r\n // add popup menu\r\n NodeList children = node.getChildNodes();\r\n for (int j = 0; j < children.getLength(); j++) {\r\n Node popupNode = children.item(j); \r\n if( popupNode.getNodeName().equals(\"popup\") ) {\r\n data.addMenuItem(getAttribute(popupNode, \"id\"),\r\n getAttribute(popupNode, \"label\"));\r\n }\r\n }\r\n */\r\n\r\n }\r\n }\r\n \r\n // Loop over all edges\r\n for (int i = 0; i < list.getLength(); i++) {\r\n Node node = list.item(i); // a \"node\" or \"edge\" element\r\n //String id = getAttribute(node, \"id\");\r\n String edgeOrNode = node.getNodeName();\r\n String type = getType(node);\r\n //Map<String,String> attrs = getStringAttributes(node);\r\n \r\n \r\n if( edgeOrNode.equals(\"edge\")) {\r\n EdgeData data;\r\n \r\n if( type.equals(\"solid\")) {\r\n data = new EdgeData(EdgeType.TREE);\r\n } else {\r\n data = new EdgeData(EdgeType.DOMINANCE);\r\n }\r\n \r\n /*\r\n // add popup menu\r\n NodeList children = node.getChildNodes();\r\n for (int j = 0; j < children.getLength(); j++) {\r\n Node popupNode = children.item(j); \r\n if( popupNode.getNodeName().equals(\"popup\") ) {\r\n data.addMenuItem(getAttribute(popupNode, \"id\"),\r\n getAttribute(popupNode, \"label\"));\r\n }\r\n }\r\n */\r\n\r\n String src = getAttribute(node, \"from\");\r\n String tgt = getAttribute(node, \"to\");\r\n \r\n if( (src != null) && (tgt != null)) {\r\n graph.addEdge(src, tgt, data);\r\n }\r\n \r\n }\r\n }\r\n }\r\n } // end of document loop\r\n \r\n // graph.computeAdjacency();\r\n }", "public static void main(String args[]){\n FileInputStream textFile = null;\n Graph graph = new Graph();\n try {\n textFile = new FileInputStream(\"/Users/DoMinhHai/Documents/12_Cousera/Algorithm2/src/week1/edges.txt\");\n Scanner inFile = new Scanner (textFile);\n System.out.println(\"File data.txt has been opened.\");\n String oneLine = inFile.nextLine();\n String first_line[] = oneLine.split(\" \");\n Integer numberOfVerticles = Integer.parseInt(first_line[0]);\n Integer numberOfEdges = Integer.parseInt(first_line[1]);\n\n for(int i=0; i< numberOfEdges; i++) {\n String line = inFile.nextLine();\n String ed[] = line.split(\" \");\n Integer v1 = Integer.parseInt(ed[0]);\n Integer v2 = Integer.parseInt(ed[1]);\n Integer distance = Integer.parseInt(ed[2]);\n Edge e = new Edge(v1, v2, distance);\n graph.addEdge(e);\n }\n System.out.println(graph.verticles.size() + \"--\" + numberOfVerticles);\n System.out.println(graph.edges.size() + \"--\" + numberOfEdges);\n\n MST(graph);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n //FileInputStream textFile = new FileInputStream (\"/Users/DoMinhHai/Documents/12_Cousera/Algorithm2/src/week1/test2.txt\");\n }", "private void readNodes() throws FileNotFoundException{\n\t\tScanner sc = new Scanner(new File(\"Resources\\\\ListOfNodes.csv\"));\n\t\tsc.nextLine(); //Skip first line of headers\n\t\twhile(sc.hasNext()) { \n\t\t\tCSVdata = sc.nextLine().split(\",\"); // Add contents of each row to String[]\n\t\t\tnodes.add(new GraphNode<String>(CSVdata[0], CSVdata[1])); // Add new node to object list\n\t\t}\n\t\tsc.close();\n\t}", "private void loadNeighbours(String file){\n\t\tString neighbour = null;\n\t\ttry{\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tScanner sc = new Scanner(br);\n\t\t\t\n\t\t\twhile(sc.hasNextLine()){\n\t\t\t\tString planetName = sc.nextLine();\n\t\t\t\tneighbour = sc.nextLine();\n\t\n\t\t\t\twhile(!(neighbour.equals(\"#\"))){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tString split [] = neighbour.split(\",\");\n\t\t\t\t\t\tasignNeighbours(split, planetName);\n\t\t\t\t\t\t\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\tSystem.out.println(\"Data can't be loaded\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t\tneighbour = sc.nextLine();\n\t\t\t\t}\n\t\t\t}\n\t\t\tsc.close();\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"File not found: SpaceProgramNeghbours.txt\");\n\t\t}\n\t}", "public void readEdges(){\n for ( j= 0;j<edgesNum;j++){\n lineElements = lines.get(j+2).split(\" \");\n // System.out.println(lineElements[0]+\" \"+lineElements[1]);\n int start = Integer.parseInt(lineElements[0])-1;\n int end = Integer.parseInt(lineElements[1])-1;\n vertices.get(start).addAdj(vertices.get(end));\n vertices.get(end).addAdj(vertices.get(start));\n }\n\n // Read the edges for AI agents\n\n for ( j= 0;j<edgesNum;j++){\n lineElements = lines.get(j+2).split(\" \");\n // System.out.println(lineElements[0]+\" \"+lineElements[1]);\n int start = Integer.parseInt(lineElements[0]);\n int end = Integer.parseInt(lineElements[1]);\n allSCountries.get(start).adj.add(end);\n allSCountries.get(end).adj.add(start);\n }\n }", "public static Model loadGraph(String filename) throws FileNotFoundException, IOException {\r\n\t\tFileInputStream stream;\t\t\t//A stream from the file\r\n\t\tModel returnValue;\r\n\t\t\r\n\t\tSystem.out.print(\"Loading \\\"\" + filename + \"\\\"...\");\r\n\t\tstream = new FileInputStream(filename);\r\n\t\treturnValue = ModelFactory.createDefaultModel();\r\n\t\treturnValue.read(stream,null);\r\n\t\tstream.close();\r\n\t\tSystem.out.println(\" Done.\");\r\n\t\r\n\t\treturn returnValue;\r\n\t}", "public void parseFile() {\n File file = new File(inputFile);\n try {\n Scanner scan = new Scanner(file);\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n line = line.replaceAll(\"\\\\s+\", \" \").trim();\n\n if (line.isEmpty()) {\n continue;\n }\n // System.out.println(line);\n String cmd = line.split(\" \")[0];\n String lineWithoutCmd = line.replaceFirst(cmd, \"\").trim();\n // System.out.println(lineWithoutCmd);\n\n // The fields following each command\n String[] fields;\n\n switch (cmd) {\n case (\"add\"):\n fields = lineWithoutCmd.split(\"<SEP>\");\n fields[0] = fields[0].trim();\n fields[1] = fields[1].trim();\n fields[2] = fields[2].trim();\n add(fields);\n break;\n case (\"delete\"):\n\n fields = split(lineWithoutCmd);\n delete(fields[0], fields[1]);\n break;\n case (\"print\"):\n if (lineWithoutCmd.equals(\"ratings\")) {\n printRatings();\n break;\n }\n fields = split(lineWithoutCmd);\n\n print(fields[0], fields[1]);\n\n break;\n case (\"list\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n list(fields[0], fields[1]);\n break;\n case (\"similar\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n similar(fields[0], fields[1]);\n break;\n default:\n break;\n }\n\n }\n\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws Exception {\n\t\tSystem.out.print(\"Enter a file name: \");\n\t\tScanner fileName = new Scanner(System.in);\n\t\tjava.io.File file = new java.io.File(fileName.nextLine());\n\n\t\t// Test if file exists\n\t\tif (!file.exists()) {\n\t\t\tSystem.out.println(\"The file \\\"\" + file + \"\\\" does not exist.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\t// Crate a Scanner for the file\n\t\tScanner input = new Scanner(file);\n\t\tint NUMBER_OF_VERTICES = input.nextInt();\n\n\t\t// Create a list of AbstractGraph.Edge objects\n\t\tArrayList<AbstractGraph.Edge> edgeList = new ArrayList<>();\n\n\t\t// Create an array of vertices\n\t\tString[] vertices = new String[NUMBER_OF_VERTICES];\n\n\t\t// Read data from file\n\t\tinput.nextLine();\n\t\tfor (int j = 0; j < NUMBER_OF_VERTICES; j++) {\n\t\t\tString s = input.nextLine();\n\t\t\tString[] line = s.split(\"[\\\\s+]\");\n\t\t\tString u = line[0];\n\t\t\tvertices[j] = u; // Add vertex\n\n\t\t\t// Add edges for vertex u\n\t\t\tfor (int i = 1; i < line.length; i++) {\n\t\t\t\tedgeList.add(new AbstractGraph.Edge(Integer.parseInt(u), \n\t\t\t\t\tInteger.parseInt(line[i])));\n\t\t\t}\t\n\t\t}\n\n\t\t// Crate a graph\n\t\tGraph<String> graph = new UnweightedGraph<>(\n\t\t\tArrays.asList(vertices), edgeList);\n\n\t\t// Display the number of vertices\n\t\tSystem.out.println(\"The number of vertices is \" + graph.getSize());\n\n\t\t// Display edges\n\t\tfor (int u = 0; u < NUMBER_OF_VERTICES; u++) {\n\t\t\tSystem.out.print(\"Vertex \" + graph.getVertex(u) + \":\");\n\t\t\tfor (Integer e : graph.getNeighbors(u))\n\t\t\t\tSystem.out.print(\" (\" + u + \", \" + e + \")\");\n\t\t\tSystem.out.println();\n\t\t}\t\t\n\n\t\t// Obtain an instance tree of AbstractGraph.Tree\n\t\tAbstractGraph.Tree tree = graph.dfs(0);\n\n\t\t// Test if graph is connected and print results\n\t\tSystem.out.println(\"The graph is \" +\n\t\t(tree.getNumberOfVerticesFound() != graph.getSize() ? \n\t\t\t\"not \" : \"\") + \"connected\");\n\n\t\t// Close the file\n\t\tinput.close();\n\t}", "public Graph(String filename) {\n \tvertices = new HashSet<String>();\n \tedges = new HashMap<String, Integer>();\n \tneighbors = new HashMap<String, Set<String>>();\n \ttry {\n \t\tJSONParser parser = new JSONParser();\n \t\tJSONObject jsonObject = (JSONObject)parser.parse(new FileReader(filename));\n \t\tJSONArray vertices = (JSONArray)jsonObject.get(\"vertices\");\n \t\tfor (Object v : vertices) {\n \t\t\tthis.vertices.add((String) v);\n \t\t\tneighbors.put((String)v, new HashSet<String>());\n \t\t}\n \t\tJSONArray edges = (JSONArray)jsonObject.get(\"edges\");\n \t\tfor (Object e : edges) {\n \t\t\tint weight = Integer.parseInt((String)((JSONObject)e).get(\"weight\"));\n \t\t\tString v1 = (String)((JSONObject)e).get(\"v1\");\n \t\t\tString v2 = (String)((JSONObject)e).get(\"v2\");\n \t\t\tthis.edges.put(v1 + \" \" + v2, weight);\n \t\t\tthis.edges.put(v2 + \" \" + v1, weight);\n \t\t\tneighbors.get(v1).add(v2);\n \t\t\tneighbors.get(v2).add(v1);\n \t\t}\n \t}\n \tcatch (Exception exception) {}\n }", "public void createGraphFromFile(String newDataFileName) throws IOException {\n\n File inFile = new File(newDataFileName); /* XML */\n\n Scanner sc = new Scanner(inFile);\n String line = sc.nextLine();/*Pass the first line */\n\n /* Until Start of the Edges */\n while (line.compareTo(\" <Edges>\") != 0) {\n /* Take the next line */\n line = sc.nextLine();\n }\n\n /* Take the next line */\n line = sc.nextLine();\n\n /* Until End of the Edges */\n while (line.compareTo(\" </Edges>\") != 0) {\n\n /* Add element in the Linked List */\n insert(loadEdgesFromString(line));\n\n /* Take the next line */\n line = sc.nextLine();\n }\n\n /* Close the file */\n sc.close();\n }", "public Graph load(String filename, Graph g) throws IOException\n {\n return load(filename, g, null);\n }", "public void parse(String filename);", "public static void main(String[] args){\n String testFiles = \"D:\\\\self\\\\algorithms\\\\assignment specification\\\\wordnet\\\\\";\n String digraphFile = \"digraph4.txt\";\n\t In inputFile = new In(testFiles+digraphFile);\n\t Digraph D = new Digraph(inputFile);\n\t \n\t SAP testAgent = new SAP(D);\n\t System.out.println(testAgent.D.toString());\n }", "public static Graph readGraph(String path) throws IOException {\r\n\t\tFileReader arq = null;\r\n\t\tBufferedReader lerArq = null;\r\n\t\tGraph grafo = null;\r\n\t\ttry {\r\n\t\t\tarq = new FileReader(path);\r\n\t\t\tlerArq = new BufferedReader(arq);\r\n\r\n\t\t\tString linha = lerArq.readLine(); // 1a linha\r\n\t\t\tint numeroDeVertices = Integer.parseInt(linha);\r\n\r\n\t\t\tgrafo = new Graph(numeroDeVertices);\r\n\r\n\t\t\tlinha = lerArq.readLine(); // 2a ate ultima linha\r\n\t\t\twhile (linha != null && !linha.isEmpty()) {\r\n\t\t\t\tgrafo.addAresta(new Aresta(linha.split(\" \")));\r\n\t\t\t\tlinha = lerArq.readLine();\r\n\t\t\t}\r\n\r\n\t\t\tassociaGraphAresta(grafo);\r\n\t\t\tcriaListaDeVertices(grafo);\r\n\t\t\tresetStatusVertex(grafo);\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.printf(\"Conteudo do arquivo invalido: %s - %s\\n\", path, e.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (arq != null) {\r\n\t\t\t\tarq.close();\r\n\t\t\t}\r\n\t\t\tif (lerArq != null) {\r\n\t\t\t\tlerArq.close();\r\n\t\t\t}\r\n\t\t}\r\n//\t\tshowGraph(grafo);\r\n\t\treturn grafo;\r\n\t}", "public void parse(String fileName) throws Exception;", "public void readInFile(String filename) {\r\n String lineOfData = new String (\"\");\r\n boolean done = false;\r\n //set up the BufferedReader\r\n BufferedReader fin = null;\r\n\ttry {\r\n fin = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));\r\n lineOfData = fin.readLine();\r\n\t}\r\n catch(Exception c) {\r\n System.out.println(\"ERROR: Input read failed!\");\r\n }\r\n\r\n //read in additional strings until the file is empty\r\n while (done != true){\r\n String temp[] = lineOfData.split(\" \");\r\n graph.add(new Edge(temp[0], temp[1], Integer.parseInt(temp[2]))); //add current string to graph\r\n try {\r\n lineOfData = fin.readLine();\r\n if (lineOfData == null){\r\n done = true;\r\n }\r\n }\r\n catch(IOException ioe){\r\n System.out.println(\"ERROR: Input read failed!\");\r\n }\r\n }\r\n }", "public void parseFile(String fileName) {\n Matrix m = new Matrix(); \n imp.doPaint(m);\n System.out.println(fileName + \", format is PNG.\");\n }", "public void Parse()\n {\n String prepend = \"urn:cerner:mid:core.personnel:c232:\";\n try{\n\n BufferedReader br = new BufferedReader(new FileReader(new File(path)));\n\n String line;\n\n while ((line = br.readLine()) != null)\n {\n line = line.trim();\n String[] lines = line.split(\",\");\n for (String entry : lines)\n {\n entry = entry.trim();\n entry = entry.replace(prepend, replace);\n System.out.println(entry+\",\");\n }\n\n }\n \n br.close();\n }catch(IOException IO)\n {\n System.out.println(IO.getStackTrace());\n } \n \n }", "public void readFile(String file) throws FileNotFoundException {\n\t\tsc = new Scanner(new File(file));\n\t\tString firstLine = sc.nextLine();\n\t\tString [] breakFirstLine = firstLine.split(\" \");\n\t\tvillages = Integer.parseInt(breakFirstLine[0]);\n\t\tlines = Integer.parseInt(breakFirstLine[1]);\n\t\tSystem.out.println(\"villages: \" + villages + \"\\nlines: \" + lines);\n\t\tString line = \"\"; // current line\n\t\twhile(sc.hasNextLine()) { \n\t\t\tline = sc.nextLine();\n\t\t\tSystem.out.println(line);\n\t\t\tString[] breaks = line.split(\" \");\n\t\t\tString city1 = breaks[0];\n\t\t\tString city2 = breaks[1];\n\t\t\tString col = breaks[2];\n\t\t\tcolor = color(col);\n\t\t\tString route = breaks[3];\n\t\t\ttransit = transit(route);\n\t\t\tVillage a = new Village(city1);\n\t\t\tVillage b = new Village(city2);\n\t\t\t\n\t\t\tEdge e = new Edge(a, b, transit, color);\n\t\t\ta.addEdge(e);\n\t\t\tb.addEdge(e);\n\t\t\tg.addEdge(e);\n\t\t\t\n\t\t\tvertices.add(a);\n\t\t\tlast_transit = transit;\n\t\t\tlast_color = color;\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n AdjListGraph adjListGraph = null;\r\n AdjMatrixGraph adjMatGraph = null;\r\n AdjMatrixMoreEfficientGraph adjEffGraph = null;\r\n \r\n // Create object for input sequence according to the file name\r\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n System.out.print(\"Enter input filename: \");\r\n String filename = br.readLine();\r\n \r\n // Inserting data to each graph, pay attention to different path representation for ubuntu and windows\r\n In inputFile = new In(\"data/\" + filename);\r\n adjListGraph = new AdjListGraph(inputFile);\r\n inputFile = new In(\"data/\" + filename);\r\n adjMatGraph = new AdjMatrixGraph(inputFile);\r\n inputFile = new In(\"data/\" + filename);\r\n adjEffGraph = new AdjMatrixMoreEfficientGraph(inputFile);\r\n \r\n /*\r\n * Step 2\r\n * get the size of graph of each representation\r\n * AdjListGraph.java: adj\r\n * AdjMatrixGraph.java: adj\r\n\t\t * Please use adjListGraph.sizeOfGraph() to get the memory usage of the graph with list implementation. \r\n\t\t * Please use adjMatGraph.sizeOfGraph() to get the memory usage of the graph with matrix implementation. \r\n */\r\n \r\n // Output every required data from all versions\r\n System.out.format(\"1. Number of vertices = %d \\n\", adjListGraph.V());\r\n System.out.format(\"2. Number of edges = %d \\n\", adjListGraph.E());\r\n System.out.format(\"3. Output of the graph using adjacency list:\\n\");\r\n //adjListGraph.printGraph();\r\n System.out.format(\"4. Adjacency list\\n (a) Memory needed to record edges = %d\\n\", adjListGraph.E() * Size.INTEGER);\r\n System.out.format(\" (b) Total amount of memory used = %d\\n\", adjListGraph.sizeOfGraph());\r\n System.out.format(\" (c) Efficiency = %f\\n\", 100.0 * adjListGraph.E() * Size.INTEGER / adjListGraph.sizeOfGraph());\r\n System.out.format(\"5. Output of the graph using matrix:\\n\");\r\n //adjMatGraph.printGraph();\r\n System.out.format(\"6. Adjacency matrix\\n (a) Memory needed to record edges = %d\\n\", adjMatGraph.E() * Size.BOOLEAN);\r\n System.out.format(\" (b) Total amount of memory used = %d\\n\", adjMatGraph.sizeOfGraph());\r\n System.out.format(\" (c) Efficiency = %f\\n\", 100.0 * adjMatGraph.E() * Size.BOOLEAN / adjMatGraph.sizeOfGraph());\r\n //adjEffGraph.printGraph();\r\n System.out.format(\"Additional task: Efficient Adjacency matrix\\n (a) Memory needed to record edges = %d\\n\", adjEffGraph.E() * Size.BOOLEAN);\r\n System.out.format(\" (b) Total amount of memory used = %d\\n\", adjEffGraph.sizeOfGraph());\r\n System.out.format(\" (c) Efficiency = %f\\n\", 100.0 * adjEffGraph.E() * Size.BOOLEAN / adjEffGraph.sizeOfGraph());\r\n }", "public NetworkGraph(String flightInfoPath) throws FileNotFoundException {\r\n\t\tString pattern = \",\";\r\n\t\tString line = \"\";\r\n\r\n\t\tallFlightData = new ArrayList<Flight>();\r\n\t\tairportNames = new ArrayList<String>();\r\n\t\tallAirports = new ArrayList<Airport>();\r\n\t\ttry {\r\n\t\t\tFileReader flight = new FileReader(flightInfoPath);\r\n\t\t\tScanner readFlightData = new Scanner(flight);\r\n\t\t\treadFlightData.nextLine();\r\n\t\t\twhile (readFlightData.hasNextLine()) {\r\n\t\t\t\tline = readFlightData.nextLine();\r\n\t\t\t\tString[] values = line.split(pattern);\r\n\t\t\t\t\tif(airportNames.contains(values[0])){\r\n\t\t\t\t\t\tint index = airportNames.indexOf(values[0]);\r\n\t\t\t\t\t\tif(airportNames.contains(values[1])){\r\n\t\t\t\t\t\t\tint destinationIndex = airportNames.indexOf(values[1]);\r\n\t\t\t\t\t\t\tallAirports.get(destinationIndex).setPrevious(allAirports.get(index));\r\n\t\t\t\t\t\t\tflights = new Flight(allAirports.get(destinationIndex), values[2], Integer.parseInt(values[3]), Integer.parseInt(values[4]), Integer.parseInt(values[5]), Integer.parseInt(values[6]), Double.parseDouble(values[7]));\r\n\t\t\t\t\t\t\tallAirports.get(index).addFilght(flights);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\tairportDestination = new Airport(values[1]);\r\n\t\t\t\t\t\tairportDestination.setPrevious(allAirports.get(index));\r\n\t\t\t\t\t\tflights = new Flight(airportDestination, values[2], Integer.parseInt(values[3]), Integer.parseInt(values[4]), Integer.parseInt(values[5]), Integer.parseInt(values[6]), Double.parseDouble(values[7]));\r\n\t\t\t\t\t\tallAirports.get(index).addFilght(flights);\r\n\t\t\t\t\t\tallAirports.add(airportDestination);\r\n\t\t\t\t\t\tairportNames.add(values[1]);\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\tairportOrigin = new Airport(values[0]);\r\n\t\t\t\t\t\tif(airportNames.contains(values[1])){\r\n\t\t\t\t\t\t\tint index = airportNames.indexOf(values[1]);\r\n\t\t\t\t\t\t\tallAirports.get(index).setPrevious(airportOrigin);\r\n\t\t\t\t\t\t\tflights = new Flight(allAirports.get(index), values[2], Integer.parseInt(values[3]), Integer.parseInt(values[4]), Integer.parseInt(values[5]), Integer.parseInt(values[6]), Double.parseDouble(values[7]));\r\n\t\t\t\t\t\t\tairportOrigin.addFilght(flights);\r\n\t\t\t\t\t\t\tallAirports.add(airportOrigin);\r\n\t\t\t\t\t\t\tairportNames.add(values[0]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tairportNames.add(values[0]);\r\n\t\t\t\t\t\t\tairportNames.add(values[1]);\r\n\t\t\t\t\t\t\tairportOrigin = new Airport(values[0]);\r\n\t\t\t\t\t\t\tairportDestination = new Airport(values[1]);\r\n\t\t\t\t\t\t\tflights = new Flight(airportDestination, values[2], Integer.parseInt(values[3]), Integer.parseInt(values[4]), Integer.parseInt(values[5]), Integer.parseInt(values[6]), Double.parseDouble(values[7]));\r\n\t\t\t\t\t\t\tairportOrigin.addFilght(flights);\r\n\t\t\t\t\t\t\tairportDestination.setPrevious(airportOrigin);\r\n\t\t\t\t\t\t\tallAirports.add(airportOrigin);\r\n\t\t\t\t\t\t\tallAirports.add(airportDestination);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treadFlightData.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public ProcessingTarget buildGraph(){\n \t\tgetTibbrGraph();\n \n \t\t//Init a project - and therefore a workspace\n \t\tProjectController pc = Lookup.getDefault().lookup(ProjectController.class);\n \t\tpc.newProject();\n \t\tWorkspace workspace = pc.getCurrentWorkspace();\n \n \t\t//Get a graph model - it exists because we have a workspace\n \t\tGraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();\n \t\tAttributeModel attributeModel = Lookup.getDefault().lookup(AttributeController.class).getModel();\n \t\tImportController importController = Lookup.getDefault().lookup(ImportController.class);\n \n \t\t//Import file \n \t\tContainer container;\n \t\ttry {\n \t\t\tFile f = new File(this.filename);\n \t\t\tcontainer = importController.importFile(f);\n \t\t\tcontainer.getLoader().setEdgeDefault(EdgeDefault.DIRECTED); //Force DIRECTED\n \t\t container.setAllowAutoNode(false); //Don't create missing nodes\n \t\t} catch (Exception ex) {\n \t\t\tex.printStackTrace();\n \t\t\treturn null;\n \t\t}\n \n \t\t//Append imported data to GraphAPI\n \t\timportController.process(container, new DefaultProcessor(), workspace);\n \n \t\t//See if graph is well imported\n \t\t//DirectedGraph graph = graphModel.getDirectedGraph();\n \t\t//---------------------------\n \n \t\t//Layout for 1 minute\n \t\tAutoLayout autoLayout = new AutoLayout(5, TimeUnit.SECONDS);\n \t\tautoLayout.setGraphModel(graphModel);\n \t\t//YifanHuLayout firstLayout = new YifanHuLayout(null, new StepDisplacement(1f));\n \t\tForceAtlasLayout secondLayout = new ForceAtlasLayout(null);\n \t\tAutoLayout.DynamicProperty adjustBySizeProperty = AutoLayout.createDynamicProperty(\"forceAtlas.adjustSizes.name\", Boolean.TRUE, 0.1f);//True after 10% of layout time\n \t\tAutoLayout.DynamicProperty repulsionProperty = AutoLayout.createDynamicProperty(\"forceAtlas.repulsionStrength.name\", new Double(10000.), 0f);//500 for the complete period\n \t\t//autoLayout.addLayout( firstLayout, 0.5f );\n \t\tautoLayout.addLayout(secondLayout, 1f, new AutoLayout.DynamicProperty[]{adjustBySizeProperty, repulsionProperty});\n \t\tautoLayout.execute();\n \n \n \n \n \n \t\t//Rank color by Degree\n \t\tRankingController rankingController = Lookup.getDefault().lookup(RankingController.class);\n\t\tRanking<?> degreeRanking = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, Ranking.DEGREE_RANKING);\n\t\tAbstractColorTransformer<?> colorTransformer = (AbstractColorTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.RENDERABLE_COLOR);\n \n \t\tcolorTransformer.setColors(new Color[]{new Color(0xFEF0D9), new Color(0xB30000)});\n \t\trankingController.transform(degreeRanking,colorTransformer);\n \n \t\t//Get Centrality\n \t\tGraphDistance distance = new GraphDistance();\n \t\tdistance.setDirected(true);\n \t\tdistance.execute(graphModel, attributeModel);\n \n \t\t//Rank size by centrality\n \t\tAttributeColumn centralityColumn = attributeModel.getNodeTable().getColumn(GraphDistance.BETWEENNESS);\n\t\tRanking<?> centralityRanking = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, centralityColumn.getId());\n\t\tAbstractSizeTransformer<?> sizeTransformer = (AbstractSizeTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.RENDERABLE_SIZE);\n \t\tsizeTransformer.setMinSize(3);\n \t\tsizeTransformer.setMaxSize(20);\n \t\trankingController.transform(centralityRanking,sizeTransformer);\n \n \t\t//Rank label size - set a multiplier size\n\t\tRanking<?> centralityRanking2 = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, centralityColumn.getId());\n\t\tAbstractSizeTransformer<?> labelSizeTransformer = (AbstractSizeTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.LABEL_SIZE);\n \t\tlabelSizeTransformer.setMinSize(1);\n \t\tlabelSizeTransformer.setMaxSize(3);\n \t\trankingController.transform(centralityRanking2,labelSizeTransformer);\n \n \t\tfloat[] positions = {0f,0.33f,0.66f,1f};\n \t\tcolorTransformer.setColorPositions(positions);\n \t\tColor[] colors = new Color[]{new Color(0x0000FF), new Color(0xFFFFFF),new Color(0x00FF00),new Color(0xFF0000)};\n \t\tcolorTransformer.setColors(colors);\n \n \t\t\n \t\t//---------------------------------\n \t\t//Preview configuration\n \t\tPreviewController previewController = Lookup.getDefault().lookup(PreviewController.class);\n \t\tPreviewModel previewModel = previewController.getModel();\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.DIRECTED, Boolean.TRUE);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.BACKGROUND_COLOR, Color.BLACK);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.SHOW_NODE_LABELS, Boolean.TRUE);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.NODE_LABEL_COLOR, new DependantOriginalColor(Color.YELLOW));\n \t\t\n \t\t\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_CURVED, Boolean.TRUE);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_OPACITY, 100);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_RADIUS, 1f);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_THICKNESS,0.2f);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.ARROW_SIZE,0.2f);\n \n \t\tpreviewController.refreshPreview();\n \n \t\t//----------------------------\n \n \t\t//New Processing target, get the PApplet\n \t\tProcessingTarget target = (ProcessingTarget) previewController.getRenderTarget(RenderTarget.PROCESSING_TARGET);\n \t\t\n \t\tPApplet applet = target.getApplet();\n \t\tapplet.init();\n \n \t\t// Add .1 second delay to fix stability issue - per Gephi forums\n try {\n \t\t\t\tThread.sleep(100);\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \n \t\t\n \t\t//Refresh the preview and reset the zoom\n \t\tpreviewController.render(target);\n \t\ttarget.refresh();\n \t\ttarget.resetZoom();\n \t\ttarget.zoomMinus();\n \t\ttarget.zoomMinus();\n \t\t\n \t\treturn target;\n \t\t\n \n \t}", "public static void main(String[] args) {\n if (args.length < 3){\n System.out.println(\"please run the program using params as \\\"filename fromCity toCity\\\"\");\n return;\n }\n\n CityGraph<City> graph = CityGraph.newInstance();\n\n String fileName = args[0];\n String line = null;\n try {\n FileReader fileReader = new FileReader(\"./\" + fileName);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n while ((line = bufferedReader.readLine()) != null) {\n String[] arr = line.split(\",\");\n graph.addEdge(new City(arr[0].trim()), new City(arr[1].trim()));\n }\n\n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n if (graph.isConnected(new City(args[1]), new City(args[2]))){\n System.out.println(\"yes\");\n }else {\n System.out.println(\"no\");\n }\n\n\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void parseMapData(String filename){\n\t\ttry{\n\t\t\tXMLInputFactory inputFactory = XMLInputFactory.newInstance();\n\t\t\tInputStream in = new FileInputStream(filename);\n\t\t\tXMLEventReader eventReader = inputFactory.createXMLEventReader(in);\n\t\t\t\n\t\t\t//Read through the .osm file\n\t\t\twhile(eventReader.hasNext()){\n\n\t\t\t\tXMLEvent event = eventReader.nextEvent();\n\t\t\t\t\n\t\t\t\t//At start of a new tag\n\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\tStartElement startElement = event.asStartElement();\n\t\t\t\t\t\n\t\t\t\t\t//If we have bounds tag\n\t\t\t\t\tif(startElement.getName().getLocalPart() == (BOUNDS)){\n\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Found bounds tag\");\n\t\t\t\t\t\tfloat maxlon = 0,minlat = 0;\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all bounds attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(MINLAT)) minlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MINLON)) minlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLAT)) maxlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLON)) maxlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Calculate scaling values for lon and lat to screen coordinates\n\t\t\t\t\t\tfloat latDiff = maxlat-minlat;\n\t\t\t\t\t\tfloat lonDiff = maxlon-minlon;\n\t\t\t\t\t\tscaleLonX = Frame.SIM_WINDOW_LENGTH / lonDiff;\n\t\t\t\t\t\tscaleLatY = -Frame.SIM_WINDOW_LENGTH / latDiff;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a node tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (NODE)){\n\t\t\t\t\t\tString id = \"\";\n\t\t\t\t\t\tfloat lon = 0, lat = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(ID)) id = attribute.getValue();\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LON)) lon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LAT)) lat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tNode node = new Node(Math.round(scaleLonX*(lon-minlon)),Math.round(scaleLatY*(lat-maxlat)));\n\t\t\t\t\t\t\n\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Check if node has any tags\n\t\t\t\t\t\twhile(true){\n\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\t\t\t\t\t\t\t//Does this node have any tags?\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tattributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Go through all tag attributes\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//K\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(K)){\n\t\t\t\t\t\t\t\t\t\t\t//SHOP\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(SHOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added shop\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SHOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.SHOP_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t//V\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(V)){\n\t\t\t\t\t\t\t\t\t\t\t//CROSSING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(CROSSING)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CROSSING\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CROSSING);\n\t\t\t\t\t\t\t\t\t\t\t\tnonTargetNodes.add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY ENTRANCE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY_ENTRANCE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added SUBWAY_ENTRANCE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SUBWAY_ENTRANCE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BUS_STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STATION);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STOP\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().equals(BUS_STOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STOP\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//RESTAURANT\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(RESTAURANT)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added RESTAURANT\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(RESTAURANT);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.RESTAURANT_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CAFE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CAFE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CAFE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CAFE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.CAFE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//TOILETS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(TOILETS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added Toilet\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(TOILETS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.TOILET_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WASTE BIN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WASTEBIN)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added WASTE BIN\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(WASTEBIN);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.WASTE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//FAST FOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(FAST_FOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added FAST_FOOD\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(FAST_FOOD);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.FASTFOOD_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//DOCTORS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(DOCTORS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added DOCTORS\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(DOCTORS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//HOSPITAL\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(HOSPITAL)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added HOSPITAL\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(HOSPITAL);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PHARMACY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PHARMACY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added PHARMACY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(PHARMACY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LIBRARY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LIBRARY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added LIBRARY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(LIBRARY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.STUDY.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BANK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BANK)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//ATM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(ATM)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(node.getXPos() >= 0 && node.getXPos() < Frame.SIM_WINDOW_LENGTH && \n\t\t\t\t\t\t\t\t\t\t\t\t node.getYPos() >= 0 && node.getYPos() < Frame.SIM_WINDOW_LENGTH)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(STATION);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t//END NODE\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (NODE)){\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}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tnodeMap.put(id, node); //Put our node into the node map\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a way tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (WAY)){\n\t\t\t\t\t\tLinkedList<Node> nodes = new LinkedList<Node>();\n\t\t\t\t\t\tMapObject mapObject = null;\n\t\t\t\t\t\tboolean ignore = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node references for way\n\t\t\t\t\t\twhile(true){\n\t\t\t\t\t\t\t//Is event a start element?\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\n\t\t\t\t\t\t\t\t//A new node has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (ND)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the single attribute the node reference\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(REF)) nodes.add(nodeMap.get(attribute.getValue()));\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//A tag has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the attribute the tag references\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t//Value\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(V)) {\n\t\t\t\t\t\t\t\t\t\t\t//FOOTWAY\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(FOOTWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(FOOTWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PEDESTRIAN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PEDESTRIAN)){\n\t\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\t\tif(mapObject instanceof Area){\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t//WAY\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(PEDESTRIAN_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PARK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PARK)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PARK_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PARK_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WOOD_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WOOD_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STEPS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STEPS)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(STEPS_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SERVICE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SERVICE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(SERVICE_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(SERVICE_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(SERVICE_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CYCLE WAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CYCLEWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(CYCLEWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(CYCLEWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(CYCLEWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PLATFORM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PLATFORM)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_PLATFORM_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_PLATFORM_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_PLATFORM_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//NARROW GAUGE (RAILWAY)\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(NARROW_GAUGE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//EDUCATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(EDUCATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setTag(EDUCATION);\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\t//Key\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().getLocalPart() == (K)){\n\t\t\t\t\t\t\t\t\t\t\t//BUILDING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(BUILDING)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Building();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(BUILDING_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BUILDING_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tignore = false;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATERWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATERWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(WATERWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AREA)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BARRIER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BARRIER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BARRIER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(BARRIER_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AMENITY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AMENITY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LANDUSE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LANDUSE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//MAN MADE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(MAN_MADE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = 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}\n\t\t\t\t\t\t\t//Is event an end element?\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//At the end of a Way element? (add way and onwards to next tag)\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (WAY)){\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}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject == null && !ignore){\n\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject != null && !ignore) {\n\t\t\t\t\t\t\tmapObject.addNodes(nodes);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Calculate collision and add to collection\n\t\t\t\t\t\t\tif(mapObject instanceof Building){\n\t\t\t\t\t\t\t\t((Building)mapObject).checkTargetsInside(targets);\n\t\t\t\t\t\t\t\tbuildings.add((Building)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Area){\n\t\t\t\t\t\t\t\tareas.add((Area)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Way){\n\t\t\t\t\t\t\t\tways.add((Way)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapObject.calculateCollision(collisionMatrix);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tprogress += 5;\n\t\t\tsetProgress(progress);\n\t\t\tcheckTargetsReachable();\n\t\t\tsetProgress(97);\n\t\t\treadIcons();\n\t\t\tsetProgress(98);\n\t\t\tsetTargetCosts();\n\t\t\tsetProgress(99);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (XMLStreamException e) {\n \t \te.printStackTrace();\n\t\t}\n\t}", "void visit(PetriNetFileName name);", "public Collection<FastqSequence> parse(File file)throws IOException{\n\t\tCollection<FastqSequence> rtrn=new ArrayList<FastqSequence>();\n\t\tString nextLine;\n while ((nextLine = reader.readLine()) != null && (nextLine.trim().length() > 0)) {\n \tif(nextLine.startsWith(\"@\")){\n \t\tString firstLine=nextLine;\n \t\tString secondLine=reader.readLine();\n \t\tString thirdLine=reader.readLine();\n \t\tString fourthLine=reader.readLine();\n \t\t\n \t\tFastqSequence seq=new FastqSequence(firstLine, secondLine,thirdLine, fourthLine);\n \t\t\t\n \t\trtrn.add(seq);\n \t}\n \t\n \t\n }\n return rtrn;\n\t}", "public static void readfile(String FILENAME) {\n\t\tString[] parts = null;\n\t\t// Initialising s as 9100 since the cardinality for a src is 9060\n\t\tint s = 2500;\n\t\t// Choosing m\n\t\tint m = 500000000;\n\t\tArrayList<ArrayList<Integer>> UniversalHashList = new ArrayList<ArrayList<Integer>>();\n\t\tArrayList<ArrayList<Integer>> XsrcMasterList = new ArrayList<ArrayList<Integer>>();\n\t\tList masterDstList = new ArrayList<ArrayList<String>>();\n\t\tString[] BitArray = new String[m];\n\t\tPrintStream out = null;\n\t\ttry {\n\t\t\tout = new PrintStream(new FileOutputStream(\"output_virbitmap.csv\"));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString src = null;\n\t\tHashMap<String, List> srcDstMap = new HashMap<String, List>();\n\t\tArrayList<Integer> R = new ArrayList<Integer>();\n\t\tR = genRandomArray(s);\n\t\t// initializing bit array\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tBitArray[i] = \"False\";\n\t\t}\n\t\t// reading input file and writing to HashMap<src,dstlist>\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(FILENAME))) {\n\n\t\t\tString sCurrentLine;\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\tparts = sCurrentLine.trim().split(\"\\\\s+\");\n\t\t\t\tsrc = parts[0];\n\t\t\t\tString dst = parts[1];\n\t\t\t\tif (!srcDstMap.containsKey(src)) {\n\t\t\t\t\tArrayList<String> dstList = new ArrayList<String>();\n\t\t\t\t\tdstList.add(dst);\n\t\t\t\t\tsrcDstMap.put(src, dstList);\n\t\t\t\t\t// hashing(B,convertIPAddress(tokens[0]));\n\t\t\t\t} else\n\t\t\t\t\tsrcDstMap.get(src).add(dst);\n\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfor (int i = 0; i < srcDstMap.size(); i++) {\n\t\t\tArrayList<Integer> masterHashList = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> XsrcList = new ArrayList<Integer>();\n\t\t\tUniversalHashList.add(masterHashList);\n\t\t\tXsrcMasterList.add(XsrcList);\n\t\t\t// System.out.println(\"XsrcmasterList\" + XsrcList);\n\n\t\t}\n\t\tIterator srcDstMapIt = srcDstMap.entrySet().iterator();\n\t\tfor (int i = 0; i < srcDstMap.size(); i++) {\n\t\t\tArrayList<Integer> XsrcList = XsrcMasterList.get(i);\n\t\t\tArrayList<Integer> masterHashList = UniversalHashList.get(i);\n\t\t\twhile (srcDstMapIt.hasNext()) {\n\t\t\t\tMap.Entry pair = (Map.Entry) srcDstMapIt.next();\n\t\t\t\tsrc = pair.getKey().toString();\n\t\t\t\tList dstList = (List) pair.getValue();\n\t\t\t\tmasterDstList.add(dstList);\n\t\t\t\tIterator dstListIt = dstList.iterator();\n\t\t\t\twhile (dstListIt.hasNext()) {\n\t\t\t\t\tint hashedSrc = masterHashSetGen(src, dstListIt.next().toString(), s, R);\n\t\t\t\t\t// String[] partsGeneratedStuff =\n\t\t\t\t\t// generatedStuff.trim().split(\":\");\n\t\t\t\t\t// String generatedIndex = partsGeneratedStuff[0];\n\t\t\t\t\t// String hashedSrc = partsGeneratedStuff[1];\n\t\t\t\t\tmasterHashList.add(hashedSrc % BitArray.length);\n\t\t\t\t\t// System.out.println(masterHashList);\n\t\t\t\t\tXsrcList.add(hashedSrc);\n\t\t\t\t\t// System.out.println(XsrcList);\n\t\t\t\t\tBitArray[Math.abs(hashedSrc % (BitArray.length))] = \"True\";\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tdouble bitMapCount = BitMapCount(BitArray, BitArray.length, s);\n\t\t// System.out.println(\"bitMapCount\"+bitMapCount);\n\n\t\tint XsrcIndexperDst = 0;\n\t\tIterator srcDstMapItrecons = srcDstMap.entrySet().iterator();\n\t\twhile (srcDstMapItrecons.hasNext()) {\n\t\t\tdouble XsrcRatio;\n\t\t\tMap.Entry pair = (Map.Entry) srcDstMapItrecons.next();\n\t\t\tsrc = pair.getKey().toString();\n\t\t\t// System.out.println(\"src\" + src);\n\t\t\tList dstList = (List) pair.getValue();\n\t\t\tmasterDstList.add(dstList);\n\t\t\tIterator dstListIt = dstList.iterator();\n\t\t\tString[] srcArray = new String[s];\n\t\t\tdouble count = 0;\n\t\t\t\twhile(dstListIt.hasNext()) {\n\t\t\t\t\tXsrcIndexperDst = XsrcIndexperDst(XsrcMasterList, masterDstList, s, BitArray, src,dstListIt.next().toString(), R) % m;\n\t\t\t\t\t// System.out.println(\"Value\"+BitArray[XsrcIndexperDst]);\n\t\t\t\t\tif (BitArray[XsrcIndexperDst] == \"True\") {\n\t\t\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\t}\n\t\t\t//System.out.println(\"count per source\" + count + \",\" + (s - count));\n\t\t\tXsrcRatio = -s * Math.log((s-count)/s);\n\t\t\tdouble estimatedSpread = -bitMapCount + XsrcRatio;\n\t\t\tif(estimatedSpread<=0)\n\t\t\t{\n\t\t\t\testimatedSpread=0;\n\t\t\t}\n\t\t\tout.println(dstList.size() + \",\" + estimatedSpread);\n\t\t}\n\n\t}", "public static void createTopology()\r\n\t{\r\n\t\tSystem.out.println(\"==============STARTING TO CREATE TOPOLOGY=================\");\r\n\t\tint row = 0, col = 0;\r\n\t\ttry {\r\n\t\t\tscan = new Scanner(System.in);\r\n\t\t\tSystem.out.println(\"\\nPlease enter the file name <name.txt>\");\r\n\t\t\tString s_t_r = scan.nextLine();\r\n\t\t\tFile inFile = new File(s_t_r); // Connecting to the input file\r\n\t\t\t\r\n\t\t\tScanner in = new Scanner(inFile);\r\n\t\t\tString lines[] = in.nextLine().trim().split(\"\\\\s+\"); // line count estimation\r\n\t\t\tin.close(); // Closing the input file\r\n\t\t\t\r\n\t\t\trouters = lines.length;\r\n\t\t\tgraph = new int[routers][routers]; // declaring the adjacency matrix\r\n\t\t\t\r\n\t\t\tin = new Scanner(inFile); // scanner for each line in the input file\r\n\t\t\tint lineCount = 0;\r\n\t\t\twhile (in.hasNextLine()) // Checking the size of the matrix input\r\n\t\t\t{\r\n\t\t\t\tString currentLine[] = in.nextLine().trim().split(\"\\\\s+\"); // read each line\r\n\t\t\t\tfor (int i = 0; i < currentLine.length; i++) {\r\n\t\t\t\t\tgraph[lineCount][i] = Integer.parseInt(currentLine[i]);\r\n\t\t\t\t}\r\n\t\t\t\tlineCount++;\r\n\t\t\t}\r\n\t\t} catch (Exception e) { // Catching exception for error in reading the file\r\n\t\t\tSystem.out.println(\"Error in reading the file\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nReview the original topology \");\r\n\t\tfor (row = 0; row < routers; row++) {\r\n\t\t\tfor (col = 0; col < routers; col++)\r\n\t\t\t\tSystem.out.print(graph[row][col] + \"\\t\"); // Printing the topology that is created\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "@Test\n public void testGetGraph_File_STRICT() throws Exception {\n System.out.println(\"getGraph with a well formed file in parameter and \"\n + \"with the strict building method\");\n\n String filePath = \"testfiles/WellFormedFileJUnit.txt\";\n Graph graph = factory.getGraph(new File(filePath), GraphBuildingMethod.STRICT);\n\n Graph expResult = new Graph();\n Node barbara = new Node(\"barbara\");\n Node carol = new Node(\"carol\");\n Node elizabeth = new Node(\"elizabeth\");\n Node anna = new Node(\"anna\");\n\n Link friend1 = new Link(\"friend\", barbara, carol);\n friend1.addAttribute(\"since\", \"1999\");\n barbara.addLink(friend1);\n carol.addLink(friend1);\n Link friend2 = new Link(\"friend\", barbara, elizabeth);\n friend2.addAttribute(\"since\", \"1999\");\n List<String> values2 = new ArrayList<>();\n values2.add(\"books\");\n values2.add(\"movies\");\n values2.add(\"tweets\");\n friend2.addAttribute(\"share\", values2);\n barbara.addLink(friend2);\n elizabeth.addLink(friend2);\n Link friend3 = new Link(\"friend\", barbara, anna);\n friend3.addAttribute(\"since\", \"2011\");\n barbara.addLink(friend3);\n anna.addLink(friend3);\n\n expResult.addNode(barbara);\n expResult.addNode(elizabeth);\n expResult.addNode(carol);\n expResult.addNode(anna);\n\n System.out.println(\"*************************\");\n System.out.println(expResult);\n System.out.println(\"--------------------------\");\n System.out.println(graph);\n System.out.println(\"***************************\");\n\n assertEquals(expResult, graph);\n }", "public static void convertToWebgraphUndirected() {\n\t\tObjectArrayList<File> list = Utilities.getUndirectedGraphList(LoadMethods.ASCII);\n\t\tUtilities.outputLine(\"Converting \" + list.size() + \" undirected graphs...\", 1);\n\n\t\tint k = 0;\n\t\tfor (File f : list) {\n\t\t\t\n\t\t\tgraph.Undir g = Undir.load(f.getPath(), GraphTypes.ADJLIST, LoadMethods.ASCII);\n\t\t\tString output = \"Undirected/\" + f.getName();\n\n\t\t\tif (output.lastIndexOf('.') >= 0) {\n\t\t\t\toutput = output.substring(0, output.lastIndexOf('.'));\n\t\t\t}\n\t\t\tUtilities.output(++k + \" - \" + f.getPath(), 1);\n\t\t\tg.exportAsWebgraph(output);\n\t\t\tUtilities.outputLine(\" => \" + Utilities.webGraphPath + output, 1);\n\t\t}\n\t}", "public static int loadCCNVD(String filePath) throws IOException {\r\n\t\tint edgesCount = 0;\r\n\t\tgraph = new Graph(allVertices.size());\r\n\t\tBufferedReader bufferedReader = new BufferedReader(new FileReader(filePath));\r\n\t\tString line = bufferedReader.readLine();\r\n\t\twhile ((line = bufferedReader.readLine()) != null) {\r\n\t\t\tString[] details = line.split(\" \");\r\n\t\t\tif (allVertices.containsKey((Integer.parseInt(details[1])))&&allVertices.containsKey(Integer.parseInt(details[2]))) {\r\n\t\t\t\tedgesCount++;\r\n\t\t\t\t//\t\t\t\tSystem.out.println(allVertices.get(details[1]).getVertexIndex()+\"--\"+allVertices.get(details[2]).getVertexIndex()+\" \"+details[3]);\r\n\t\t\t\tgraph.adj[allVertices.get(Integer.parseInt(details[1])).getVertexIndex()]\r\n\t\t\t\t\t\t[allVertices.get(Integer.parseInt(details[2])).getVertexIndex()] = Integer.parseInt(details[3]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbufferedReader.close();\r\n\t\tSystem.out.println(\"Graph size: \" + edgesCount + \" edges.\");\r\n\t\treturn edgesCount;\r\n\t}", "public void readCategoryFile(File file) {\n\ttry (BufferedReader br = new BufferedReader(new FileReader(file)))\n\t{\n\t\tString sCurrentLine;\n\t\tString [] lineElements;\n\t\t\n\t\tint row = 0;\n\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t//System.out.println(sCurrentLine);\n\t\t\t\n\t\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\t\t//System.out.println(lineElements.length);\n\t\t\tfor (int column = 0; column < lineElements.length; column++) {\t\t\n\t\t\t\t//System.out.println(column);\n\t\t\t\tint category = Integer.parseInt(lineElements[column]);\n\t\t\t\t//System.out.println(vertices.size());\n\t\t\t\tPOI v1 = vertices.get(row);\n\t\t\t\tPOI v2 = vertices.get(column);\n\t\t\t\t\n\t\t\t\tArc arc = getArc(v1, v2);\n\t\t\t\tif (!distMtx) {\n\t\t\t\t\tdouble distance = v1.distanceTo(v2);\n\t\t\t\t\tif (data == Dataset.VERBEECK) {\n\t\t\t\t\t\tdistance = distance / 5.0;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tdistance = distance / 10.0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tarc.setLength(distance);\n\t\t\t\t}\n\t\t\t\tarc.setCategory(category);\n\t\t\t\tif (distConstraint) {\n\t\t\t\t\tarc.setSpeedTable(allOneSpeedTable);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tarc.setSpeedTable(speedTables.get(category));\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\trow ++;\n\t\t}\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n}", "private HashMap<ASTNode, NodeInfo> parseFile(String file) {\n ASTParser parser = ASTParser.newParser(AST.JLS3);\n parser.setSource(file.toCharArray());\n parser.setKind(ASTParser.K_COMPILATION_UNIT);\n final CompilationUnit cu = (CompilationUnit) parser.createAST(null);\n ASTStatsCollector astStatsCollector = new ASTStatsCollector(cu);\n cu.accept(astStatsCollector);\n\n\n return astStatsCollector.nodeSubNodeMap;\n }", "private void deserialize(String file_name) {\n\t\t// Reading the object from a file\n\t\ttry {\n\t\t\tFileInputStream file = new FileInputStream(file_name);\n\t\t\tObjectInputStream in = new ObjectInputStream(file);\n\t\t\t// Method for deserialization of object\n\t\t\tthis.GA = (graph) in.readObject();\n\n\t\t\tin.close();\n\t\t\tfile.close();\n\n\t\t\tSystem.out.println(\"Object has been deserialized\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException is caught,object didnt uploaded\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.err.println(\"ClassNotFoundException is caught,object didnt uploaded\");\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n File file = new File(args[0]);\r\n //FileOutputStream f = new FileOutputStream(\"prat_dfs_data2.txt\");\r\n //System.setOut(new PrintStream(f));\r\n BufferedReader reader = new BufferedReader(new FileReader(file));\r\n String line;\r\n line = reader.readLine();\r\n int nodecount = 0;\r\n HashMap <String , Integer> nodeMap = new HashMap <String , Integer>(); \r\n while ((line = reader.readLine()) != null ) {\r\n String data[] = line.split(\",(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\r\n if (!nodeMap.containsKey(data[0].replaceAll(\"^\\\"|\\\"$\", \"\"))){\r\n nodeMap.put(data[0].replaceAll(\"^\\\"|\\\"$\", \"\"), nodecount);\r\n nodecount++;\r\n }\r\n }\r\n reader.close();\r\n Vertex adjList[] = new Vertex[nodecount];\r\n Vertex sortVer[] = new Vertex[nodecount];\r\n for(int it = 0; it < nodecount; it++){\r\n adjList[it] = new Vertex(it);\r\n }\r\n nodeMap.forEach((k, v) -> adjList[v].val = k);\r\n File file2 = new File(args[1]);\r\n BufferedReader reader2 = new BufferedReader(new FileReader(file2));\r\n line = reader2.readLine();\r\n while ((line = reader2.readLine()) !=null) {\r\n String data[] = line.split(\",(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\r\n String source = data[0].replaceAll(\"^\\\"|\\\"$\", \"\");\r\n String target = data[1].replaceAll(\"^\\\"|\\\"$\", \"\");\r\n\r\n int weight = Integer.parseInt(data[2]);\r\n Vertex current = adjList[nodeMap.get(source)];\r\n Vertex newbie = new Vertex(nodeMap.get(target));\r\n current.countN++;\r\n current.co_occur += weight;\r\n if (adjList[nodeMap.get(source)].next == null){\r\n current.next = newbie;\r\n newbie.prev = current;\r\n }\r\n else{\r\n current.next.prev = newbie;\r\n newbie.next = current.next;\r\n current.next = newbie;\r\n newbie.prev = current;\r\n }\r\n Vertex current1 = adjList[nodeMap.get(target)];\r\n Vertex newbie1 = new Vertex(nodeMap.get(source));\r\n current1.co_occur += weight;\r\n current1.countN++;\r\n if (current1.next == null){\r\n current1.next = newbie1;\r\n newbie1.prev = current1;\r\n }\r\n else{\r\n current1.next.prev = newbie1;\r\n newbie1.next = current1.next;\r\n current1.next = newbie1;\r\n newbie1.prev = current1;\r\n }\r\n }\r\n reader2.close();\r\n \r\n for(int it = 0; it < nodecount; it++){\r\n sortVer[it] = new Vertex(adjList[it].id);\r\n sortVer[it].val = adjList[it].val;\r\n sortVer[it].co_occur = adjList[it].co_occur;\r\n }\r\n if (args[2].equals(\"average\")){\r\n double countdeg = 0;\r\n for(int it = 0; it<nodecount; it++){\r\n countdeg+= (double) adjList[it].countN;\r\n }\r\n countdeg = countdeg / (double) (nodecount);\r\n System.out.printf(\"%.2f\", countdeg);\r\n System.out.println();\r\n //long toc= System.nanoTime();\r\n //System.out.println((toc- startTime)/1000000000.0);\r\n }\r\n \r\n if(args[2].equals(\"rank\")){\r\n Graph.mergesort(sortVer, 0, nodecount-1);\r\n // long toc= System.nanoTime();\r\n // System.out.println((toc- startTime)/1000000000.0);\r\n System.out.print(sortVer[0].val);\r\n for(int kk=1; kk<nodecount; kk++){\r\n System.out.print(\",\" + sortVer[kk].val.toString());\r\n }\r\n System.out.println();\r\n }\r\n if(args[2].equals(\"independent_storylines_dfs\")){\r\n boolean visited[] = new boolean[nodecount];\r\n int ind = 0;\r\n ArrayList<ArrayList<Vertex>> comps = new ArrayList<ArrayList<Vertex>>();\r\n for(int it1 = 0; it1<nodecount; it1++){\r\n visited[it1] = false;\r\n }\r\n for(int it1 = 0; it1<nodecount; it1++){\r\n if (visited[it1] == false){\r\n ArrayList<Vertex> temp = new ArrayList<Vertex>();\r\n Graph.dfs(it1, visited, ind, adjList, temp);\r\n ind++;\r\n Graph.mergesort2(temp, 0, temp.size()-1);\r\n comps.add(temp);\r\n }\r\n }\r\n Graph.mergesort3(comps, 0, comps.size()-1);\r\n // long toc= System.nanoTime();\r\n // System.out.println((toc- startTime)/1000000000.0);\r\n for(int a1 = 0; a1 < ind; a1++){\r\n System.out.print(comps.get(a1).get(0).val);\r\n for(int j1 = 1; j1<comps.get(a1).size(); j1++){\r\n System.out.print(\",\" + comps.get(a1).get(j1).val);\r\n }\r\n System.out.println();\r\n }\r\n }\r\n }", "@SuppressWarnings(\"resource\")//I ADDED\n\tpublic static CensusData parse(String filename) {\n\t\tCensusData result = new CensusData();\n\t\t\n try {\n BufferedReader fileIn = new BufferedReader(new FileReader(filename));\n \n // Skip the first line of the file\n // After that each line has 7 comma-separated numbers (see constants above)\n // We want to skip the first 4, the 5th is the population (an int)\n // and the 6th and 7th are latitude and longitude (floats)\n // If the population is 0, then the line has latitude and longitude of +.,-.\n // which cannot be parsed as floats, so that's a special case\n // (we could fix this, but noisy data is a fact of life, more fun\n // to process the real data as provided by the government)\n \n String oneLine = fileIn.readLine(); // skip the first line\n\n // read each subsequent line and add relevant data to a big array\n while ((oneLine = fileIn.readLine()) != null) {\n String[] tokens = oneLine.split(\",\");\n if(tokens.length != TOKENS_PER_LINE)\n \tthrow new NumberFormatException();\n int population = Integer.parseInt(tokens[POPULATION_INDEX]);\n if(population != 0)\n \tresult.add(population,\n \t\t\t Float.parseFloat(tokens[LATITUDE_INDEX]),\n \t\t Float.parseFloat(tokens[LONGITUDE_INDEX]));\n }\n\n fileIn.close();\n } catch(IOException ioe) {\n System.err.println(\"Error opening/reading/writing input or output file.\");\n System.exit(1);\n } catch(NumberFormatException nfe) {\n System.err.println(nfe.toString());\n System.err.println(\"Error in file format\");\n System.exit(1);\n }\n return result;\n\t}", "public Graph load(String filename, Graph g, NumberEdgeValue nev) throws IOException\n {\n Reader reader = new FileReader(filename);\n Graph graph = load(reader, g, nev);\n reader.close();\n return graph;\n }", "public AdjacencyLists(String filename)\n {\n readGraph(filename);\n }", "public Graph load(String filename, NumberEdgeValue nev) throws IOException\n {\n return load(filename, new SparseGraph(), nev);\n }", "public Mesh load(String filename)\r\n\t{\r\n\t\tMesh mesh = new Mesh(); mesh.addFileMetaData(filename);\r\n \r\n\t\t//Open file and read in vertices/faces\r\n\t\tScanner sc;\r\n\t\tString line;\r\n\t\t\r\n\t\ttry{\r\n\t\t\tBufferedReader ins = new BufferedReader(new FileReader(filename));\r\n\t\t\tins.readLine(); //ID; always \"nff\"\r\n\t\t\tins.readLine(); //Version\r\n\t\t\t\r\n\t\t\t//We need to move through the header to find the start of the first object\r\n\t\t\t//This will be the first line that contains text that does not start with\r\n\t\t\t//\"viewpos\" or \"viewdir\" (optional features) or \"//\" (comment)\r\n\t\t\twhile(true){\r\n\t\t\t\tline = ins.readLine();\r\n\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\t\r\n\t\t\t\tif(sc.hasNext() == true){\r\n\t\t\t\t\tString token = sc.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif((\"viewpos\".equalsIgnoreCase(token) == false) && \r\n\t\t\t\t\t\t\t(\"viewdir\".equalsIgnoreCase(token) == false) &&\r\n\t\t\t\t\t\t\t(\"//\".equals(token.substring(0, 2)) == false)){\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\tsc.close();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsc.close();\r\n\t\t\t\r\n\t\t\t//The rest of the file is filled up with objects\r\n\t\t\twhile(true){\r\n\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\tString name = sc.next();\r\n\t\t\t\tsc.close();\r\n\t\t\t\t\r\n\t\t\t\tsc = new Scanner(ins.readLine());\r\n\r\n\t\t\t\tVector<Point> vertices = new Vector<Point>();\r\n\t\t\t\tVector<Face> faces = new Vector<Face>();\r\n\t\t\t\t\r\n\t\t\t\tint vertexCount = sc.nextInt();\r\n\t\t\t\t\r\n\t\t\t\t//We have vertexCount lines next with 3 floats per line\r\n\t\t\t\twhile(vertexCount > 0){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(sc.hasNextFloat() == false){\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tfloat x = sc.nextFloat();\r\n\t\t\t\t\t\tfloat y = sc.nextFloat();\r\n\t\t\t\t\t\tfloat z = sc.nextFloat();\r\n\t\t\t\t\t\tvertices.add(new Point(x, y, z));\r\n\t\t\t\t\t\tvertexCount--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsc.close();\r\n\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\tint polygonCount = sc.nextInt();\r\n\t\t\t\t\r\n\t\t\t\t//We have polygonCount lines defining the faces\r\n\t\t\t\t//The first int on each line gives the number of\r\n\t\t\t\t//vertices making up that particular face\r\n\t\t\t\t//Then the indexes of those vertices are listed\r\n\t\t\t\twhile(polygonCount > 0){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(sc.hasNextInt() == false){\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tvertexCount = sc.nextInt();\r\n\t\t\t\t\t\tArrayList<Integer> al = new ArrayList<Integer>();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\twhile(vertexCount > 0){\r\n\t\t\t\t\t\t\tal.add(sc.nextInt());\r\n\t\t\t\t\t\t\tvertexCount--;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfaces.add(new Face(al));\r\n\t\t\t\t\t\tpolygonCount--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tmesh.addData(vertices, faces, -1, name);\r\n\t\t\t\t\r\n\t\t\t\t//The last thing we need to do is read up to and including\r\n\t\t\t\t//the next object's name or until we reach the end of the file\r\n\t\t\t\t\r\n\t\t\t\twhile((line = ins.readLine()) != null){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//The next non-blank line that doesn't start with \"//\" is the start of the next object\r\n\t\t\t\t\tif((sc.hasNext() == true) && (sc.next().substring(0, 2).equals(\"//\") == false)){\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\tsc.close();\r\n\t\t\t\tif(line == null){ //EOF\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null; \r\n\t\t}\r\n\t\t\r\n\t\tmesh.initialize();\r\n \r\n\t\treturn mesh;\r\n\t}", "private static ArrayList<Node> getNodes(File path)\n {\n //log the event happining\n Start.log(\"Getting Nodes\");\n ArrayList<Node> tempNodes = new ArrayList<Node>();\n ArrayList<String> file = getFile(path);\n for (int i =0; i < file.size();i++)\n {\n //use scanner to pharse the string into the relivant bits for getting the node data\n Scanner parse = new Scanner(file.get(i));\n tempNodes.add(new Node(parse.nextInt(),CPType.valueOf(parse.next())));\n }\n return tempNodes;\n }", "public void readMaze() throws FileNotFoundException, IOException {\r\n\r\n String line = null; // initialising the value of the line to null\r\n System.out.println(\"Provide name of the file\");// asking user to input the name of the maze file in question\r\n String fileName = input.next();\r\n FileReader fileReader = new FileReader(fileName+\".txt\");\r\n BufferedReader bufferedReader = new BufferedReader(fileReader);\r\n while ((line = bufferedReader.readLine()) != null) {\r\n String[] locations = line.split(\" \");\r\n graph.addTwoWayVertex(locations[0], locations[1]);// making pairwise connection between two vertices\r\n }\r\n bufferedReader.close(); // BufferedReader must be closed after reading the file is implemented.\r\n }", "public static Graph<String, String> buildGraph(String fileName) throws MalformedDataException {\n\t\tSet<String> characters = new HashSet<String>();\n\t\tMap<String, List<String>> books = new HashMap<String, List<String>>();\n\t\tMarvelParser.parseData(fileName, characters, books);\n\t\t\n\t\tGraph<String, String> graph = new Graph<String, String>(fileName);\n\t\t\n\t\t// {{Inv: Each character so far has been added to the graph}}\n\t\tfor (String c : characters) {\n\t\t\tgraph.addNode(c);\n\t\t}\n\t\t\n\t\t// {{Inv: Each book in books so far has been gone through and edges have been added to\n\t\t// each character in them}}\n\t\tfor (String book : books.keySet()) {\n\t\t\t// {{Inv: Each character so far has added an edge with every character in the book}}\n\t\t\tfor (String c1 : books.get(book)) {\n\t\t\t\t// {{Inv: Each character so far has become the child of c1}}\n\t\t\t\tfor (String c2 : books.get(book)) {\n\t\t\t\t\tif (!c1.equals(c2)) {\n\t\t\t\t\t\tgraph.addEdge(c1, c2, book);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn graph;\n\t}", "public SparseDataset parse(File file) throws FileNotFoundException, IOException, ParseException {\n String name = file.getPath();\n return parse(name, new FileInputStream(file));\n }", "public static void main(String[] args) throws IOException, ParseException {\n System.out.println(\"Generating Motif files for colored network with neighbours\");\n String mmfile = \"/data/rwanda_anon/CDR/me2u.ANON-new.all.txt\";\n // specify date to avoid changing too much\n int nfile = 6;\n String fileDates[][] = new String[2][nfile];\n fileDates[0] = new String[]{\"0701\", \"0702\", \"0703\", \"0704\", \"0705\", \"0706\"};\n fileDates[1] = new String[]{\"0707\", \"0708\", \"0709\", \"0710\", \"0711\", \"0712\"};\n\n boolean first_half = Integer.parseInt(args[0]) == 0701;\n // set the end date and which set of data to read\n String endDate = \"0707\";\n int set_to_read_phone = 0;\n if(!first_half){\n endDate = \"0801\";\n set_to_read_phone = 1;\n }\n\n String phonefile[][] = new String[2][nfile];\n for(int i = 0; i < nfile; i++){\n phonefile[0][i] = \"/data/rwanda_anon/CDR/\" + fileDates[0][i] + \"-Call.pai.sordate.txt\";\n phonefile[1][i] = \"/data/rwanda_anon/CDR/\" + fileDates[1][i] + \"-Call.pai.sordate.txt\";\n }\n\n // specify file header to output\n String outputHeader0 = \"/data/rwanda_anon/richardli/MotifwithNeighbour/6mBasic_\" + endDate;\n String outputHeader = \"/data/rwanda_anon/richardli/MotifwithNeighbour/6m\" + endDate;\n String outputHeaderYes = \"/data/rwanda_anon/richardli/MotifwithNeighbour/6mYes_\" + endDate;\n String outputHeaderNo = \"/data/rwanda_anon/richardli/MotifwithNeighbour/6mNo_\" + endDate;\n\n // parse start and end time\n SimpleDateFormat format = new SimpleDateFormat(\"yyMMdd|HH:mm:ss\");\n long t1 = format.parse(fileDates[set_to_read_phone][0] + \"01|00:00:00\").getTime();\n long t2 = format.parse(endDate + \"01|00:00:00\").getTime();\n\n // set calendar\n Calendar cal = Calendar.getInstance();\n cal.setTime(format.parse(fileDates[set_to_read_phone][0] + \"01|00:00:00\"));\n\n // count number of days\n int period = ((int) ((t2 - t1) / 1000 / (3600) / 24));\n System.out.printf(\"%d days in the period\\n\", period);\n\n\n // initialize mm file reader outside the loop\n NodeSample6m fullData = new NodeSample6m();\n String outputbasics = outputHeader0 + \".txt\";\n String output = outputHeader + \".txt\";\n String outputYes = outputHeaderYes + \".txt\";\n String outputNo = outputHeaderNo + \".txt\";\n\n /**\n * put sender information into dictionary\n *\n * ------------------ | phoneStart| ------------ | phoneEnd | ----------------- | MMEnd |\n * Y = -1 Y = -1 Y = 1\n * label = 1 label = 1 label = 0\n *\n * First Pass: (streamMM)\n * ---------------- Check MM status ----------------- | ------ Check Signup -------- |\n * Second Pass: (checkOutlier)\n * |---- Remove outliers ---- |\n * Second Pass: (streamPhone)\n * |---- Gather Graph ------- |\n * count motif_test\n *\n **/\n // define phoneEnd as the time when we consider as future MM sign-up\n // define MMEnd as the max time in the future we are looking at\n\n // set phone start date to be current calendar date, and move forward a period\n// System.out.println( format.format(cal.getTime()) );\n String phoneStart = format.format(cal.getTime()).substring(0, 6);\n\n // set phone end date as current calendar date, and move forward a priod\n cal.add(Calendar.DATE, period);\n String phoneEnd = format.format(cal.getTime()).substring(0, 6);\n\n // set MM end date as current calendar date\n cal.add(Calendar.DATE, period);\n String MMEnd = format.format(cal.getTime()).substring(0, 6);\n System.out.print(\"Checking status of sign-up from \" + phoneEnd + \" to \" + MMEnd + \"\\n\");\n\n // reset calendar to previous period again\n cal.add(Calendar.DATE, period * (-1));\n\n // read MM file and update full data\n fullData.streamMM(mmfile, Integer.MAX_VALUE, phoneStart, phoneEnd, MMEnd);\n System.out.print(\"Checking status of sign-up done\\n\");\n\n // set parameter, hard threshold and independent sampling\n int hardThre = 50;\n boolean indep = false;\n\n // check outlier // TODO: check if this time span is right\n fullData.checkOutlier(phonefile[set_to_read_phone], Integer.MAX_VALUE, phoneStart, phoneEnd, 1000, 0.9, hardThre, indep);\n // stream phone data // TODO: check if this time span is right\n fullData.streamPhone(phonefile[set_to_read_phone], Integer.MAX_VALUE, phoneStart, phoneEnd, hardThre);\n\n // get all data without sampling\n fullData.sampleNode(Integer.MAX_VALUE, Integer.MAX_VALUE, indep);\n System.out.println(\"Sample of nodes in the sample now: \" + fullData.sample.size());\n\n\n for (int j : fullData.allMotif.nodes.keySet()) {\n fullData.allMotif.nodes.get(j).organize();\n }\n\n // count motifs for each node themselves\n // without sample, output all nodes\n System.out.println(\"Start counting motif for each node\");\n int tempCount = 0;\n for (int j : fullData.dict.values()) {\n if (fullData.allMotif.nodes.get(j) == null) {\n continue;\n }\n fullData.allMotif.nodes.get(j).motifCount_wlabel(fullData.allMotif);\n tempCount++;\n if (tempCount % 10000 == 0) System.out.printf(\"-\");\n }\n System.out.println(\"Start counting neighbour motif for each node with label\");\n tempCount = 0;\n for (int j : fullData.dict.values()) {\n if (fullData.allMotif.nodes.get(j) == null) {\n continue;\n }\n fullData.allMotif.nodes.get(j).motifCount_neighbour(fullData.allMotif);\n tempCount++;\n if (tempCount % 10000 == 0) System.out.printf(\"-\");\n }\n\n System.out.println(\"Start changing motif back to final version\");\n tempCount = 0;\n for(int j : fullData.dict.values()){\n if (fullData.allMotif.nodes.get(j) == null) {\n continue;\n }\n MotifOrder.changeOrder2(fullData.allMotif.nodes.get(j).motif);\n MotifOrder.changeOrderDouble2(fullData.allMotif.nodes.get(j).motif_from_no);\n MotifOrder.changeOrderDouble2(fullData.allMotif.nodes.get(j).motif_from_yes);\n tempCount++;\n if (tempCount % 10000 == 0) System.out.printf(\"-\");\n }\n\n\n // output to file (simple summary stats)\n BufferedWriter sc0 = new BufferedWriter(new FileWriter(outputbasics));\n for (int j : fullData.dict.values()) {\n if (fullData.allMotif.nodes.get(j) == null) {\n continue;\n }\n fullData.allMotif.nodes.get(j).printTo(sc0, 120, 2, true);\n }\n sc0.close();\n\n // output to file\n BufferedWriter sc = new BufferedWriter(new FileWriter(output));\n for (int j : fullData.dict.values()) {\n if (fullData.allMotif.nodes.get(j) == null) {\n continue;\n }\n fullData.allMotif.nodes.get(j).printTo(sc, 120, -1, true);\n }\n sc.close();\n\n // output to file\n BufferedWriter sc1 = new BufferedWriter(new FileWriter(outputYes));\n for (int j : fullData.dict.values()) {\n if (fullData.allMotif.nodes.get(j) == null) {\n continue;\n }\n fullData.allMotif.nodes.get(j).printTo(sc1, 120, 1, true);\n }\n sc1.close();\n\n // output to file\n BufferedWriter sc2 = new BufferedWriter(new FileWriter(outputNo));\n for (int j : fullData.dict.values()) {\n if (fullData.allMotif.nodes.get(j) == null) {\n continue;\n }\n fullData.allMotif.nodes.get(j).printTo(sc2, 120, 0, true);\n }\n sc2.close();\n }" ]
[ "0.6791679", "0.6709344", "0.6420502", "0.6108754", "0.60434407", "0.6014806", "0.5986952", "0.5925556", "0.5910009", "0.5872034", "0.58646554", "0.5811803", "0.57842034", "0.574893", "0.5736357", "0.5713111", "0.5645981", "0.56365377", "0.5618102", "0.5613011", "0.55900043", "0.55701953", "0.5549169", "0.55456185", "0.5527657", "0.552469", "0.5524325", "0.5519509", "0.55146617", "0.5487799", "0.5473241", "0.5471986", "0.54443336", "0.53949064", "0.53706497", "0.5355662", "0.5343533", "0.53392226", "0.5335985", "0.53355", "0.5317404", "0.5315679", "0.53144544", "0.5309774", "0.5308296", "0.53040004", "0.52934813", "0.52932334", "0.5290754", "0.52810526", "0.5276847", "0.52607983", "0.5238933", "0.5236695", "0.5229768", "0.52249074", "0.52185273", "0.51995134", "0.51907676", "0.5187854", "0.5179207", "0.5162078", "0.51616704", "0.51584923", "0.51366544", "0.5133276", "0.51265085", "0.51245016", "0.5123612", "0.51181793", "0.5118112", "0.5111311", "0.51005733", "0.5080182", "0.5068274", "0.5059714", "0.5048915", "0.50465125", "0.50063664", "0.50043386", "0.50035", "0.49995396", "0.49943805", "0.4993046", "0.49913335", "0.49775833", "0.4977309", "0.49743918", "0.49703717", "0.49693006", "0.4965028", "0.49598438", "0.49581915", "0.49523517", "0.49403554", "0.49393478", "0.4925087", "0.4920705", "0.49167", "0.49137017" ]
0.63355464
3
Return the graph's edge identified by id
private SumoEdge getEdge(String id) { return idToEdge.get(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "E getEdge(int id);", "public Edge returnEdgeById(Id id){\n\t\tif(id.indice >= listOfEdges.size()) return null;\n\t\tEdge e = listOfEdges.elementAt(id.indice);\n\t\tif(e == null) return null;\n\t\tId eid = e.getId();\n\t\tif(eid.indice != id.indice || eid.unique != id.unique) return null; \n\t\treturn e;\n\t}", "public Edge findEdgeById(int id) throws SQLException {\n\t\treturn rDb.findEdgeById(id);\n\t}", "public static Edge getEdgeFromID(int id){\n\t\tfor(Edge x : edgeList)\n\t\t{\n\t\t\tif(x.getID() == id)\n\t\t\t{\n\t\t\t\treturn x;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "String getIdEdge();", "Edge getEdge();", "public Edge(int id) {\r\n\t\tsuper();\r\n\t\tthis.id = id;\r\n\t}", "public int getID(){\n\t\treturn this.EDGE_ID;\n\t}", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge getEdge(int index);", "public Edge<E, V> getUnderlyingEdge();", "public edge_data getEdge(int nodeKey) {\n return this.neighborEdges.get(nodeKey);\n }", "public edge_data edgeOfFruit(int fruit_id){\n Fruit f = getFruitbyID(fruit_id);\n Iterator<node_data> nodesIter = this.Graph.getV().iterator();\n\n while(nodesIter.hasNext()){\n node_data node = nodesIter.next();\n Iterator<edge_data> edges = Graph.getE(node.getKey()).iterator();\n\n while(edges.hasNext()){\n edge_data e = edges.next();\n\n node_data src_node = Graph.getNode(e.getSrc());\n node_data dst_node = Graph.getNode(e.getDest());\n\n double sum = (src_node.getLocation().x() + dst_node.getLocation().x());\n\n double sideA = f.getLocation().distance2D(dst_node.getLocation());\n double sideB = src_node.getLocation().distance2D( f.getLocation());\n\n double sumSides = sideA + sideB;\n double totalDistance = src_node.getLocation().distance2D(dst_node.getLocation());\n\n if (Math.abs(sumSides - totalDistance) <= 0.00001){\n return e;\n }\n\n }\n }\n System.out.println(\"Problem with getting the edge for fruits\");\n return null;\n }", "public Edge edgeAt( int index ) {\r\n return (Edge)edges.elementAt(index);\r\n }", "public Collection<Edge> getE(int node_id) {\n\tCollection<Edge> list=new ArrayList<Edge>();\n\t\n\tif(getNodes().containsKey(node_id))\n\t{\n\t\tNode n=(Node) getNodes().get(node_id);\n\t\tlist.addAll(n.getEdgesOf().values());\n\t}\n\treturn list;\n}", "public Edge getEdge(Integer idVertex1, Integer idVertex2) throws Exception {\r\n\t\treturn matrix.getEdges(idVertex1, idVertex2);\r\n\t}", "public Edge<V> getEdge(V source, V target);", "@Override\n public Collection<edge_data> getE(int node_id) {\n return ((NodeData) this.nodes.get(node_id)).getNeighborEdges().values();\n }", "@Override\r\n public Collection<edge_data> getE(int node_id) {\r\n return this.neighbors.get(node_id).values(); //o(k)\r\n }", "@Override\n public E getEdgeIfExists(int pintSourceVertexID, int pintDestinationVertexID) {\n V vertexFrom = getVertex(pintSourceVertexID);\n V vertexTo = getVertex(pintDestinationVertexID);\n for(TimeFrame tf : darrGlobalAdjList.get(pintSourceVertexID).keySet()) {\n for (E e : darrGlobalAdjList.get(pintSourceVertexID).get(tf)) { \n if (e.getOtherEndPoint(vertexFrom).equals(vertexTo)) {\n return e;\n }\n } \n }\n return null;\n }", "public int find(int id) {\n\t\tGraphAdjListRep280 holder = G;\t// Holder for the graph so we do not need to alter the actual Graph's curso position\n\n\t\tholder.goIndex(id);\t// Move the vertex cursor to the vertex located in location id\n\t\tholder.eGoFirst(G.item());\t// Move the edge cursor to the first edge attached to vertex id\n\t\twhile (holder.eItemExists()) {\t// While the item exist\n\t\t\tholder.goVertex(holder.eItemAdjacentVertex());\t// Move the vertex to the vertex adjacent to the current vertex\n\t\t\tholder.eGoFirst(holder.item());\t// Move edge cursor to the first edge of the vertex cursor\n\t\t}\n\n\t\treturn holder.itemIndex();\t// Result\n\t}", "@Override\n public edge_data getEdge(int src, int dest) {\n if (!nodes.containsKey(src)) return null;\n node_data sourceNode = nodes.get(src);\n return ((NodeData) sourceNode).getEdge(dest);\n }", "public IEdge<?> getEdge() {\n\t\treturn this.edge;\n\t}", "public double getEdgeLength(String id) {\n\t\treturn idToEdge.get(id).getWeight();\n\t}", "@Override\n\tpublic Collection<edge_data> getE(int node_id) {\n\t\t// TODO Auto-generated method stub\n\t\treturn Edges.get(node_id).values();\n\t}", "public uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge getEdge(int index) {\n return edge_.get(index);\n }", "public SimpleEdge getEdge() {\n return edge;\n }", "protected Edge getEdge() {\r\n\t\treturn (Edge)getModel();\r\n\t}", "public NetworkNode getNetworkNode(Integer id);", "@Override\n\tpublic edge_data getEdge(int src, int dest) {\n\t\tif(Nodes.containsKey(src) && Nodes.containsKey(dest) && Edges.get(src).containsKey(dest)) {\n\t\t\treturn Edges.get(src).get(dest);\n\t\t}\n\t\treturn null;\n\t}", "public Edge getEdge(int source, int dest) {\r\n Edge target =\r\n new Edge(source, dest, Double.POSITIVE_INFINITY);\r\n for (Edge edge : edges[source]) {\r\n if (edge.equals(target))\r\n return edge; // Desired edge found, return it.\r\n }\r\n return target; // Desired edge not found.\r\n }", "public uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge getEdge(int index) {\n if (edgeBuilder_ == null) {\n return edge_.get(index);\n } else {\n return edgeBuilder_.getMessage(index);\n }\n }", "public int getEdge(int v1, int v2) {\n\n\t\treturn edges[v1][v2];\n\t}", "public Edge(String graphId, String id, short direction) throws DisJException {\n\t this(graphId, id, direction, null, null);\n\t}", "public Edge getEdge(Node k){\n for(int i = 0; i<edges.size(); i++){\n Edge edge = edges.get(i);\n if(edge.end() == k){\n return edge;\n }\n }\n return null;\n }", "VertexType getOtherVertexFromEdge( EdgeType r, VertexType oneVertex );", "private IEdge<E> getEdge(int src, int dest){\n\t\tassert src > 0 || src < graph.numberOfNodes();\n\t\tassert dest > 0 || dest < graph.numberOfNodes();\n\n\t\tIterator<IEdge<E>> edgesIterator = graph.edgeIterator();\n\t\twhile(edgesIterator.hasNext()){\n\t\t\tIEdge<E> edge = edgesIterator.next();\n\t\t\tif(edge.getSource() == src && edge.getDestination() == dest){\n\t\t\t\treturn edge;\n\t\t\t}\n\t\t\t}\n\t\treturn null;\n\t\t}", "public edge_type getEdge(int from, int to) {\n assert (from < nodeVector.size())\n && (from >= 0)\n && nodeVector.get(from).getIndex() != invalid_node_index :\n \"<SparseGraph::GetEdge>: invalid 'from' index\";\n\n assert (to < nodeVector.size())\n && (to >= 0)\n && nodeVector.get(to).getIndex() != invalid_node_index :\n \"<SparseGraph::GetEdge>: invalid 'to' index\";\n\n ListIterator<edge_type> it = edgeListVector.get(from).listIterator();\n while (it.hasNext()) {\n edge_type curEdge = it.next();\n if (curEdge.getTo() == to) {\n return curEdge;\n }\n }\n\n assert false : \"<SparseGraph::GetEdge>: edge does not exist\";\n return null;\n }", "private mxCell getEdge(Microtuble m){\n\t\tmxCell edge = null;\n\t\tfor (mxCell cell : graph.getEdgeToCellMap().values()){\n\t\t\tMicrotuble mt = (Microtuble) cell.getValue();\n\t\t\tif (mt.equals(m)){\n\t\t\t\tedge = cell;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn edge;\n\t}", "static String makeEdge(String id,\n String source,\n String target,\n String relationship,\n int causal) {\n return format(EDGE_FMT, id, source, target, relationship, causal);\n }", "LabeledEdge getLabeledEdge();", "public HitVertex getVertex(String id) {\n\t\treturn hitVertices.get(id);\n\t}", "<O> E getEdge(Function<E, O> map, O value);", "public E getParentEdge(V vertex);", "public void deleteEdge(int id) throws SQLException {\n\t\tEdge edge = rDb.findEdgeById(id);\n\t\trDb.deleteEdge(edge);\n\t}", "public double getEdge()\n {\n return this.edge;\n }", "private Node findNode(Graph g, int id){\r\n for(Node n : g.getListNodes()){\r\n if (n.getId() == id){\r\n return n;\r\n }\r\n }\r\n return null;\r\n }", "public BufferedImage getEdge() {\n\t\treturn edge;\n\t}", "private Edge getKernelEdge(Edge edge){\n\t\tif (edge.getGraph() != null && (edge.getGraph().isLhs() || edge.getGraph().isRhs())) {\n\t\t\tRule rule = edge.getGraph().getRule();\n\t\t\treturn rule.getMultiMappings().getOrigin(edge);\n\t\t}\n\t\treturn null;\n\t}", "String getEdgesAtNewLocation(Integer pointId, Double lat, Double lng);", "void addEdge(int x, int y);", "@SuppressWarnings({\"rawtypes\", \"unchecked\", \"PMD.AvoidInstantiatingObjectsInLoops\"})\n\tpublic void fireGraphEdgeChangeEvent(ET edge, int id)\n\t{\n\t\tGraphChangeListener[] listeners =\n\t\t\t\tlistenerList.getListeners(GraphChangeListener.class);\n\t\t/*\n\t\t * This list is decremented from the end of the list to the beginning in\n\t\t * order to maintain consistent operation with how Java AWT and Swing\n\t\t * listeners are notified of Events (they are in reverse order to how\n\t\t * they were added to the Event-owning object).\n\t\t */\n\t\tEdgeChangeEvent<N, ET> ccEvent = null;\n\t\tfor (int i = listeners.length - 1; i >= 0; i--)\n\t\t{\n\t\t\t// Lazily create event\n\t\t\tif (ccEvent == null)\n\t\t\t{\n\t\t\t\tccEvent = new EdgeChangeEvent<N, ET>(source, edge, id);\n\t\t\t}\n\t\t\tswitch (ccEvent.getID())\n\t\t\t{\n\t\t\t\tcase EdgeChangeEvent.EDGE_ADDED:\n\t\t\t\t\tlisteners[i].edgeAdded(ccEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tcase EdgeChangeEvent.EDGE_REMOVED:\n\t\t\t\t\tlisteners[i].edgeRemoved(ccEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdgeOrBuilder getEdgeOrBuilder(\n int index) {\n return edge_.get(index);\n }", "private static String getEdgeLabel(FunctionDeclarationKind kind, int operandId) {\n switch (kind) {\n case AND:\n case OR:\n case NOT:\n case IFF:\n case XOR:\n return \"\";\n default:\n return Integer.toString(operandId);\n }\n }", "public Edge(Integer id, Vertex source, Vertex destination, double distance, double traffic) {\n this.id = id;\n this.source = source;\n this.destination = destination;\n this.distance = distance;\n this.traffic = traffic;\n }", "public void addEdge(Character sourceId, Character destinationId) {\n Node sourceNode = getNode(sourceId);\n Node destinationNode = getNode(destinationId);\n sourceNode.adjacent.add(destinationNode);\n }", "public Map<String, String> getEdge() {\n\t\tif (edge == null) {\n\t\t\tsetEdge(new HashMap<String, String>());\n\t\t}\n\t\treturn edge;\n\t}", "String getEdges();", "private CommunicationLink getNodeById(Integer id)\n {\n if (allNodes.size() == 0)\n {\n return null;\n }\n try\n {\n return allNodes.get(id);\n } catch (Exception e)\n {\n return null;\n }\n }", "public abstract String edgeToStringWithTraceId(int nodeSrc, int nodeDst, int traceId, Set<String> relations);", "public int getValue(int edgeId)\n {\n return _storage.getEdgeValue(edgeId, BordersGraphStorage.Property.TYPE);\n }", "public uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdgeOrBuilder getEdgeOrBuilder(\n int index) {\n if (edgeBuilder_ == null) {\n return edge_.get(index); } else {\n return edgeBuilder_.getMessageOrBuilder(index);\n }\n }", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdgeOrBuilder getEdgeOrBuilder(\n int index);", "public interface Edge\n extends Comparable\n{\n Vertex getV0 ();\n Vertex getV1 ();\n Object getWeight ();\n boolean isDirected ();\n Vertex getMate (Vertex vertex);\n}", "public boolean hasEdge(String id1, String id2)\n\t{\n\t\treturn nodes.containsKey(id1) && getNode(id1).hasEdge(id2);\n\t}", "Optional<ServiceEdge> getEdge(T dependant, T dependency);", "public Edge getAnyEdge()\n {\n for (GraphElement element : elements) {\n if(element instanceof Edge) {\n return (Edge) element;\n }\n }\n return null;\n }", "public void addEdge(Integer id, UNode n1, UNode n2, String edge)\r\n {\r\n UEdge e = new UEdge(id, n1, n2, edge);\r\n n1.addOutEdge(e);\r\n n2.addInEdge(e);\r\n uEdges.put (id, e);\r\n }", "protected EdgeFigure getEdgeFigure() {\r\n\t\treturn (EdgeFigure)getFigure();\r\n\t}", "protected String getAdjacentFactoryID( String id ){\n return id;\n }", "int getReverseEdgeKey();", "public Event getEvent(String id) {\n for (Event e : eventMap.keySet()) {\n if (e.getEventId().equals(id)) {\n return e;\n }\n }\n return null;\n }", "private void toggleEdge(int ID) {\n String forwardId = ID + \"f\";\n String backwardId = ID + \"b\";\n Edge forward = mGraph.getEdge(forwardId);\n Edge backward = mGraph.getEdge(backwardId);\n\n // Toggle forward edge visibility\n if (forward.hasAttribute(\"ui.hide\")) {\n forward.removeAttribute(\"ui.hide\");\n } else {\n forward.addAttribute(\"ui.hide\");\n }\n\n // Toggle backward edge visibility\n if (backward.hasAttribute(\"ui.hide\")) {\n backward.removeAttribute(\"ui.hide\");\n } else {\n backward.addAttribute(\"ui.hide\");\n }\n }", "public Edge getEdge(Node u,Node v) throws GraphException\n\t{\n\t\tif (u.getName() >= nodeList.length || v.getName() >= nodeList.length \n\t\t\t\t|| nodeList[u.getName()] == null || nodeList[v.getName()] == null|| \n\t\t\t\tadjMatrix[u.getName()][v.getName()] == null)\n\t\t\tthrow new GraphException(\"Edge not found.\");\n\t\t\n\t\treturn adjMatrix[u.getName()][v.getName()];\n\t}", "public int get_edge(int from, int to){\n int temp=0;\n try{\n temp=adj_matrix[from][to];\n }\n catch(ArrayIndexOutOfBoundsException index){ // If invalid index\n System.out.println(\" Invalid Vertex!\");\n }\n return temp;\n }", "public Vertex findVertById(int id) throws SQLException {\n\t\treturn rDb.findVertById(id);\n\t}", "public int getReferenceCHFirstEdgeId() {\r\n return referenceCHFirstEdgeId;\r\n }", "protected abstract Graph fetchGraph() throws IdNotFoundException;", "void add(Edge edge);", "public abstract String getEdgeSymbol(int vertexIndex, int otherVertexIndex);", "public String getGraphId() {\n return graphId;\n }", "public Edge getEdgeReference(Node sourceNode) {\r\n\t\t\t\r\n\t\tEdge edgeReference = null;\r\n\t\tfor (Edge to: edges)\r\n\t\t{\r\n\t\t\tif (to.getDestinationNode().getLabel().equals(sourceNode.getLabel()))\r\n\t\t\t{\r\n\t\t\t\tedgeReference = to;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn edgeReference;\r\n\t}", "public HashMap<String, Edge> getEdgeList () {return edgeList;}", "Edge createEdge(Vertex src, Vertex tgt, boolean directed);", "public static GraphEdge createGraphEdgeForEdge() {\n GraphEdge graphEdge = new GraphEdge();\n\n for (int i = 0; i < 2; i++) {\n GraphNode childNode = new GraphNode();\n childNode.setPosition(AccuracyTestHelper.createPoint(20 * i, 10));\n childNode.setSize(AccuracyTestHelper.createDimension(40, 12));\n graphEdge.addContained(childNode);\n }\n graphEdge.addWaypoint(AccuracyTestHelper.createDiagramInterchangePoint(100, 100));\n graphEdge.addWaypoint(AccuracyTestHelper.createDiagramInterchangePoint(250, 200));\n\n // create a Relationship\n Relationship relationship = new IncludeImpl();\n\n // set stereotype\n Stereotype stereotype = new StereotypeImpl();\n\n // create a semantic model\n Uml1SemanticModelBridge semanticModel = new Uml1SemanticModelBridge();\n semanticModel.setElement(relationship);\n\n graphEdge.setSemanticModel(semanticModel);\n\n return graphEdge;\n }", "NodeId getNodeId();", "public int getReferenceCHSecondEdgeId() {\r\n return referenceCHSecondEdgeId;\r\n }", "public List<IEdge> getAllEdges();", "public Path getPath(int id){\n if(id < 0 || id >= mazes.size()) throw new IncorrectMazeIDException();\n if(paths.containsKey(id)) return paths.get(id);\n MazeService mazeService = new MazeService(getMaze(id));\n Path path = new Path(mazeService.getPath());\n paths.put(id, path);\n return path;\n }", "public static int getEdgeNumber(Graph grafo) {\r\n\t\treturn grafo.getEdgeNumber();\r\n\t}", "public interface GraphEdge extends org.omg.uml.diagraminterchange.GraphElement {\n /**\n * Returns the value of attribute waypoints.\n * @return Value of waypoints attribute.\n */\n public java.util.List getWaypoints();\n /**\n * Returns the value of reference anchor.\n * @return Value of reference anchor.\n */\n public java.util.List getAnchor();\n}", "boolean addEdge(E edge);", "private Edge(String graphId, String id, short direction, Node start, Node end)\n\t\t\tthrows DisJException {\n\t\tthis(graphId, id, true, direction, IConstants.MSGFLOW_FIFO_TYPE, IConstants.MSGDELAY_LOCAL_FIXED,\n\t\t\t\tIConstants.MSGDELAY_SEED_DEFAULT, start, end);\n\t}", "public String descriptor() {\n\t\treturn \"edge\";\n\t}", "public abstract GraphEdge<N, E> getFirstEdge(N n1, N n2);", "public DriverEvent getEvent(long id)\n\t{\n\t\tDriverEvent event = new DriverEvent();\n\t\tevent.setEventID(id);\n\t\t\n\t\tIterator<DriverEvent> iterate = getEventIterator();\n\t\twhile (iterate.hasNext())\n\t\t{\n\t\t\tDriverEvent tempEvent = iterate.next();\n\t\t\tif (tempEvent.getEventID() == id)\n\t\t\t\tevent = tempEvent;\n\t\t}\n\t\t\n\t\treturn event;\n\t}", "List<IEdge> getAllEdges();", "public NodeId getId() {\n return id;\n }", "public Object getElement(int id) {\n AVLNode current = root;\n \n while(current != null) {\n if(current.getId() == id) {\n return current.getElement();\n } else if(current.getId() > id) {\n current = current.getLeft();\n } else {\n current = current.getRight();\n }\n }\n \n return null;\n }", "@Override\n default LG getGraph(final GradoopId graphID) {\n // filter vertices and edges based on given graph id\n DataSet<G> graphHead = getGraphHeads()\n .filter(new BySameId<>(graphID));\n DataSet<V> vertices = getVertices()\n .filter(new InGraph<>(graphID));\n DataSet<E> edges = getEdges()\n .filter(new InGraph<>(graphID));\n\n return getGraphFactory().fromDataSets(graphHead, vertices, edges);\n }", "public Enumeration directedEdges();" ]
[ "0.89516747", "0.8063501", "0.7969178", "0.79496896", "0.78203416", "0.7214637", "0.6910155", "0.6844999", "0.6774317", "0.67344594", "0.6699118", "0.6648172", "0.6626591", "0.6574302", "0.65427125", "0.6497243", "0.6460381", "0.6416579", "0.6341889", "0.62772197", "0.62679505", "0.6250975", "0.62243783", "0.62172973", "0.6192248", "0.6182268", "0.61636525", "0.61523104", "0.6150887", "0.61200964", "0.6103749", "0.60932446", "0.6068948", "0.6065143", "0.606329", "0.6047863", "0.6024292", "0.6011337", "0.59830856", "0.5960971", "0.5958066", "0.59465104", "0.5945178", "0.5929357", "0.59122103", "0.58620405", "0.58544844", "0.58439994", "0.58286077", "0.5827497", "0.5821806", "0.58148795", "0.58115214", "0.5798382", "0.57762706", "0.57521546", "0.57435805", "0.5734907", "0.5728411", "0.57273585", "0.5727153", "0.5723952", "0.5721988", "0.5661253", "0.5657633", "0.5656568", "0.56487375", "0.5647039", "0.56446785", "0.5635453", "0.56294286", "0.5609406", "0.55996233", "0.55941415", "0.5590298", "0.55858177", "0.557913", "0.55778843", "0.55534816", "0.5547215", "0.5511532", "0.5505606", "0.54907733", "0.54763985", "0.54691887", "0.54670304", "0.5465689", "0.5455149", "0.54483676", "0.5448194", "0.5443836", "0.54426074", "0.54405814", "0.54381037", "0.54295355", "0.54289305", "0.54267174", "0.5423692", "0.5421361", "0.5419957" ]
0.86851525
1
Return the graph's edge length identified by edgeid
public double getEdgeLength(String id) { return idToEdge.get(id).getWeight(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getEdgeCount();", "@Override\n public int edgeSize() {\n return this.numOfEdges;\n }", "public long getEdgeCount() { return edgeCount; }", "int getNumberOfEdges();", "@Override\n\tpublic int edgeSize() {\n\t\treturn numOfEdges;\n\t}", "public int getNumberOfEdges();", "public long getEdgesArrayLength() {\n\t\treturn edgesLength;\n\t}", "public int getEdgeCount() {\n return edge_.size();\n }", "public int getEdgeCount() {\n if (edgeBuilder_ == null) {\n return edge_.size();\n } else {\n return edgeBuilder_.getCount();\n }\n }", "public int numEdges();", "public int getEdgeCount()\n\t{\n\t\treturn edgeCount;\n\t}", "public int edgeCount() {\n\treturn edgeList.size();\n }", "public int getNumEdges();", "public int edgeNum() {\r\n return edges.size();\r\n }", "public int getEdgeExtent(int edge) throws EdgeOutOfRangeException {\n switch (edge) {\n case DataDirector.COLUMN_EDGE:\n return columnCount;\n case DataDirector.ROW_EDGE:\n return rowCount;\n default:\n return pageCount;\n }\n }", "String getIdEdge();", "private long nodesLength(Edge[] E) {\n\t\tlong nodesLength = 0;\n\t\tfor (Edge e:E ) {\n\t\t\tif (e.getTo() > nodesLength) nodesLength = e.getTo();\n\t\t\tif (e.getFrom() > nodesLength) nodesLength = e.getFrom();\n\t\t}\n\t\tnodesLength++;\t\n\t\treturn nodesLength;\t\t\n\t}", "public int size()\n {\n return numEdges;\n }", "public int getEdgeCount(){\r\n HashSet<FlowGraphNode> visited = new HashSet<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n queue.add(start);\r\n visited.add(start);\r\n int counter = 0;\r\n while(!queue.isEmpty()){\r\n FlowGraphNode node = queue.pop();\r\n counter += node.outDeg();\r\n for(FlowGraphNode child : node.to){\r\n if(visited.add(child)){\r\n queue.add(child);\r\n }\r\n }\r\n }\r\n return counter;\r\n }", "public int getEdgeCount() \n {\n return 3;\n }", "public int numEdges() {\r\n\t\treturn edges;\r\n\t}", "public int getNumEdges() {\n\t\treturn edges.size();\n\t}", "public int getNumEdges(){\n return numEdges;\n }", "public int getID(){\n\t\treturn this.EDGE_ID;\n\t}", "@Override\n\tpublic int graphSize() {\n\t\treturn edges.size();\n\t}", "public int numEdges()\r\n {\r\n\tint s = 0;\r\n\tfor (final EdgeTypeHolder eth : ethMap.values())\r\n\t s += eth.numEdges();\r\n\treturn s;\r\n }", "public int getNumEdges() {\n return num_edges;\n }", "public int numEdges() {\n int tot = 0;\n\n ListIterator<EdgeList> curEdge = edgeListVector.listIterator();\n while (curEdge.hasNext()) {\n tot += curEdge.next().size();\n }\n\n return tot;\n }", "public int getLayerCount(int edge) throws EdgeOutOfRangeException\n {\n if (edge==DataDirector.PAGE_EDGE)\n return 0;\n else\n return 1;\n }", "public void setEdgeLen(double len) {\n fEdgeLen = len;\n }", "public int getNumEdges()\n\t{\n\t\t//TODO: Implement this method in WEEK 3\n\t\treturn numEdges;\n\t}", "public int getEdgeSixe() {\n\t\treturn graph.edgeSet().size();\r\n\t}", "int numEdges() {\n\t\treturn num_edges;\n\t}", "private int numEdges()\r\n\t{\r\n\t return eSet.size();\r\n\t}", "E getEdge(int id);", "@Override\n public int edgeCount() {\n int count = 0;\n\n for(MyNode n : graphNodes.values()){\n count += n.inDegree();\n }\n\n return count;\n }", "double getEdgeWeight();", "public int getNumEdges() {\n\t\treturn this.actualTotalEdges;\n\t}", "@Override\n\tpublic long numEdges() {\n\t\treturn numEdges;\n\t}", "public int getEdges() {\n return edgesNumber;\n }", "private int size() {\n assert _vertices.size() == _edges.size();\n return _edges.size();\n }", "private SumoEdge getEdge(String id) {\n\t\treturn idToEdge.get(id);\n\t}", "public int getValue(int edgeId)\n {\n return _storage.getEdgeValue(edgeId, BordersGraphStorage.Property.TYPE);\n }", "public int getEdgeCount(boolean biDirectional) {\n int count=0;\n for(T v: map.keySet()) {\n count += map.get(v).size();\n }\n\n if(biDirectional) count = count/2;\n\n return count;\n }", "public int getLength()\n\t{\n\t\tDNode tem=first;\n\t\tint length=0;\n\t\twhile(tem.nextDNode!=null)\n\t\t{\n\t\t\tlength=length+1;\n\t\t\ttem=tem.nextDNode;\n\t\t}\n\t\tif(first!=null)\n\t\t\tlength=length+1;\n\t\treturn length;\n\t}", "protected int getGraphWidth() {\r\n\t\treturn pv.graphWidth;\r\n\t\t/*\r\n\t\t * if (canPaintGraph()) return getWidth()-leftEdge-rightEdge; else\r\n\t\t * return 0;\r\n\t\t */\r\n\t}", "private static int getNumTotalEdges(){\r\n\t\t//return getMutMap().keySet().size();\r\n\t\treturn numCols+1;\r\n\t}", "public int getOriginalEdgeCount() {\r\n return originalEdgeCount;\r\n }", "public int getLength() {\n return this.sideLength;\n }", "public int numEdges(String edgeTypeName)\r\n {\r\n\tfinal EdgeTypeHolder eth = ethMap.get(edgeTypeName);\r\n\treturn (eth == null) ? 0 : eth.numEdges();\r\n }", "int getNumberOfVertexes();", "int getWidth(Long id) throws RemoteException;", "public double getAverageEdgeLength() {\n\t\tdouble x = this.maxX - this.minX;\n\t\tdouble y = this.maxY - this.minY;\n\t\tdouble z = this.maxZ - this.minZ;\n\t\treturn (x + y + z) / 3.0D;\n\t}", "public int getRiversAlongEdges() {\n return riversAlongEdges;\n }", "public double getEdgeCapacity() {\r\n\t\treturn this.capacity;\r\n\t}", "public int eventIdToCapacity(String id){\n Event e = getEvent(id);\n return e.getCapacity();\n }", "public double getEdge()\n {\n return this.edge;\n }", "public int getVertexSize() {\n\t\treturn graph.vertexSet().size();\r\n\t}", "public int getPathLength();", "Edge getEdge();", "public static int size_nodeid() {\n return (8 / 8);\n }", "public double getEdgeStrokeDestinationWidth() {\n return (_edgeStrokeDestinationWidth);\n }", "public int getRoadLength() {\n \t\treturn roadLength;\n \t}", "public int localEdgeNum() {\r\n return localEdgeCount;\r\n }", "public int getMemberDepth(int edge, int layer, int slice) throws EdgeOutOfRangeException, LayerOutOfRangeException, SliceOutOfRangeException\n {\n return 1;\n }", "int getWayLength();", "private static int numEdges(Graph g) {\n\tint sum = 0;\n\t\n\tfor(int i =0;i<g.vertices;i++)\n\t{\n\t LinkedList<Integer> temp = null;\n\t if(g.adjacencyList[i]!=null) {\n\t\ttemp = g.adjacencyList[i];\n\t\tfor(int tmp:temp) {\n\t\t sum++;\n\t\t}\n\t\t\n\t }\n\t}\n\treturn sum/2;\n }", "@Override\n public double getEdgeWeight() {\n return edgeWeight;\n }", "String getEdges();", "public int capacity(Edge e) {\n\t\tif(mcg!=null)\n\t\t{\n\t\t\treturn mcg.capacity(e);\n\t\t}\n\t\treturn 0;\n\t}", "public int getLength() {\n return mySize.getLength();\n }", "BigInteger getLength();", "public Double getEdgeWeight(Edge p_edge) {\n\t\tint id = p_edge.hashCode();\n\t\treturn weights.get(id);\n\t}", "public Integer getLength(Menu row){\r\n \treturn row.getIdmenu().length();\r\n }", "protected int getGraphHeight() {\r\n\t\treturn pv.graphHeight;\r\n\t\t/*\r\n\t\t * if (canPaintGraph()) return\r\n\t\t * (getHeight()-topEdge-bottomEdge)/channelCount; else return 0;\r\n\t\t */\r\n\t}", "public int getVertexCount();", "public int getFlowSize()\n\t{\n\t\tint result = 0;\n\t\t\n\t\tfor(Edge e : this.source.getOutgoingEdges())\n\t\t{\n\t\t\tresult += e.getFlow();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "int getPointLength();", "public static int getEdgeNumber(Graph grafo) {\r\n\t\treturn grafo.getEdgeNumber();\r\n\t}", "public double getSideLength() {\n\t\treturn this.sideLength;\n\t}", "public Edge findEdgeById(int id) throws SQLException {\n\t\treturn rDb.findEdgeById(id);\n\t}", "public double culcHeightOfTriangle(TriangleEdges edges) {\r\n\t\tdouble area = 0,height = 0;\r\n\t\tarea = 0.5*((edges.leftEdge.x-edges.rightEdge.x)*(edges.leftEdge.y - edges.rightEdge.y)-(edges.leftEdge.x-edges.bottomEdge.x)*(edges.leftEdge.y-edges.bottomEdge.y));\r\n\t\theight = (2*area) /(edges.leftEdge.x-edges.rightEdge.x);\r\n\t\treturn height;\r\n\t}", "@DisplayName(\"Get the number of edges that contains the graph and test if it is correct\")\n @Test\n public void testGetNumEdges() {\n Assertions.assertEquals(8, graph.getNumberEdges());\n }", "public java.lang.Integer getEdgeType() {\n return edgeType;\n }", "public Edge<E, V> getUnderlyingEdge();", "public int getRightEdge() {\n return rightEdge;\n }", "public Integer getPathLength() {\n return pathLength;\n }", "int sizeOf(int node){\n\t\tint counter =1;\r\n\t\tfor (int i=0;i<idNode.length;i++){ //Count all node with the same parent\r\n\t\t\tif (idNode[i]==node){\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn counter;\r\n\t}", "int getHeight(Long id) throws RemoteException;", "public int getWeight(){\n\t\treturn this.edgeWeight;\n\t}", "public void addSize(double edgeSize)\r\n\t{\r\n\t\tsize= size + edgeSize;\r\n\t}", "public static int size_receiverNodeID() {\n return (8 / 8);\n }", "int getTileHeight(Long id) throws RemoteException;", "public int getDGILength() throws TLVEncodingException {\r\n\t\tint length;\r\n\t\tint i = 1;\r\n\r\n\t\tif (buffer[cursor] == (byte) 0xFF) {\r\n\t\t\ti = 2;\r\n\t\t\tcursor++;\r\n\t\t}\r\n\r\n\t\tif (cursor + i > limit)\r\n\t\t\tthrow new TLVEncodingException(\"Invalid DGI length field\");\r\n\r\n\t\tlength = 0;\r\n\t\tfor (; i > 0; i--) {\r\n\t\t\tlength = (length << 8) | (buffer[cursor++] & 0xFF);\r\n\t\t}\r\n\r\n\t\treturn length;\r\n\t}", "public double getEdgeStrokeSourceWidth() {\n return (_edgeStrokeSourceWidth);\n }", "int getTileWidth(Long id) throws RemoteException;", "public int getLength()\n\t{\n\t\treturn (int) length;\n\t}", "private int nonDirectionalEdgesNumber() {\n return selectedNonDirectionalEdges.size();\n }", "public double getArea() {\n\t\treturn 6.0 * this.edgelen * this.edgelen;\n\t}", "int getReverseEdgeKey();" ]
[ "0.70121104", "0.69274795", "0.68896335", "0.68885833", "0.6837138", "0.6813402", "0.6797417", "0.67105496", "0.6658409", "0.65353876", "0.65351385", "0.6480917", "0.64326096", "0.64319736", "0.62898326", "0.624007", "0.6230236", "0.62014586", "0.6197182", "0.6144374", "0.61385334", "0.61357933", "0.6072667", "0.6039908", "0.60337913", "0.6031634", "0.6018949", "0.6015651", "0.60121024", "0.6008934", "0.6005658", "0.600026", "0.5999209", "0.5987493", "0.5982003", "0.5975024", "0.59741706", "0.59674513", "0.5913575", "0.591018", "0.5883069", "0.5811045", "0.5758674", "0.57506853", "0.57263213", "0.57261276", "0.5704843", "0.5701185", "0.5687162", "0.566326", "0.5603131", "0.55832785", "0.5542684", "0.55014884", "0.55005413", "0.5490971", "0.548686", "0.54676014", "0.54649097", "0.54584897", "0.54345876", "0.5399669", "0.5363953", "0.53569764", "0.53558433", "0.53474134", "0.533494", "0.5321193", "0.5318374", "0.53062814", "0.5305903", "0.52990973", "0.5284009", "0.52835566", "0.52765435", "0.527427", "0.52670795", "0.52661175", "0.52610224", "0.52594405", "0.52514714", "0.52409846", "0.52344716", "0.52199966", "0.5219868", "0.5210601", "0.52074194", "0.5205726", "0.52026904", "0.51994216", "0.51984555", "0.51941305", "0.51877093", "0.51790667", "0.51787966", "0.51777714", "0.51705325", "0.5141829", "0.5135198", "0.513225" ]
0.8451713
0
Return a set of outgoing edges from the current edges endvertex
public synchronized Set<String> getNextEdges(String currentEdge) { if (currentEdge == null) { return new HashSet<String>(); } SumoEdge currentSumoEdge = getEdge(currentEdge); if (currentSumoEdge == null) { return new HashSet<String>(); } String currentEdgeEnd = graph.getEdgeTarget(currentSumoEdge); Set<SumoEdge> edges = graph.outgoingEdgesOf(currentEdgeEnd); Set<String> edgeIds = new HashSet<String>(); for (SumoEdge edge: edges) { edgeIds.add(edge.getId()); } return edgeIds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<Edge> getDownwardOutgoingNeighborEdges() {\n\t\t\tif(_bumpOnUpwardPass) {\n\t\t\t\tSystem.err.println(\"calling downward pass neighbor method on upward pass!\");\n\t\t\t}\n//\t\t\tif(_outgoingEdges.size() == 0) { // only compute if we have to\n\t\t\t\tSet<Edge> outgoingEdges = new HashSet<Edge>();\n\t\t\t\tIterator<Edge> it = _neighborEdges.keySet().iterator();\n\t\t\t\twhile(it.hasNext()) {\n\t\t\t\t\tEdge e = it.next();\n\t\t\t\t\tVertex v = e.getOtherVertex(this);\n\t\t\t\t\tif(this._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops i am unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(v._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops neighbor unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(this._orderID < v._orderID) {\n\t\t\t\t\t\toutgoingEdges.add(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_outgoingEdges = outgoingEdges;\n//\t\t\t}\n//\t\t\treturn _outgoingEdges;\n\t\t\t\tSystem.out.println(this.toString()+\"'s outgoing edges:\\n\"+ outgoingEdges);\n\t\t\t\treturn outgoingEdges;\n\t\t}", "Set<Edge> getUpwardOutgoingNeighborEdges() {\n\t\t\tif(!_bumpOnUpwardPass) {\n\t\t\t\tSystem.err.println(\"calling upward pass neighbor method on downward pass!\");\n\t\t\t}\n//\t\t\tif(_outgoingEdges.size() == 0) { // only compute if we have to\n\t\t\t\tSet<Edge> outgoingEdges = new HashSet<Edge>();\n\t\t\t\tIterator<Edge> it = _neighborEdges.keySet().iterator();\n\t\t\t\twhile(it.hasNext()) {\n\t\t\t\t\tEdge e = it.next();\n\t\t\t\t\tVertex v = e.getOtherVertex(this);\n\t\t\t\t\tif(this._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops i am unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(v._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops neighbor unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(this._orderID > v._orderID) {\n\t\t\t\t\t\toutgoingEdges.add(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_outgoingEdges = outgoingEdges;\n//\t\t\t}\n//\t\t\treturn outgoingEdges;\n\t\t\t\tSystem.out.println(this.toString()+\"'s outgoing edges:\\n\"+ outgoingEdges);\n\t\t\t\treturn outgoingEdges;\n\t\t}", "Map<Node, Edge> getOutEdges() {\n return outEdges;\n }", "public Set<E> getEdges(V tail);", "public Set<JmiAssocEdge> getAllOutgoingAssocEdges(JmiClassVertex vertex)\n {\n return getClassAttributes(vertex).allOutgoingAssocEdges;\n }", "int[] getOutEdges(int... nodes);", "public abstract List<? extends DiGraphEdge<N, E>> getOutEdges(N nodeValue);", "Set<Edge> getIncomingNeighborEdges(boolean onUpwardPass) {\n//\t\t\tif(_outgoingEdges.size() == 0) { // only compute if we have to\n\t\t\t\tSet<Edge> outgoingEdges = new HashSet<Edge>();\n\t\t\t\tIterator<Edge> it = _neighborEdges.keySet().iterator();\n\t\t\t\twhile(it.hasNext()) {\n\t\t\t\t\tEdge e = it.next();\n\t\t\t\t\tVertex v = e.getOtherVertex(this);\n\t\t\t\t\tif(this._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops i am unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(v._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops neighbor unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(this._orderID < v._orderID) {\n\t\t\t\t\t\toutgoingEdges.add(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_outgoingEdges = outgoingEdges;\n//\t\t\t}\n//\t\t\treturn _outgoingEdges;\n\t\t\t\treturn outgoingEdges;\n\t\t}", "public Set<JmiAssocEdge> getInheritedOutgoingAssocEdges(\n JmiClassVertex vertex)\n {\n return getClassAttributes(vertex).inheritedOutgoingAssocEdges;\n }", "public Set<E> getEdges();", "public Set<E> getEdges(V tail, V head);", "Collection<? extends IREdge<? extends IRBasicBlock>> getOutgoingEdges(\n IRBasicBlock block);", "String getEdges();", "@Override\n\tpublic List<Path> getOutEdges(Location src) {\n\t\treturn \tpaths.get(locations.indexOf(src));\n\t}", "public Iterable<Edge> edges() {\r\n\t\treturn mst;\r\n\t}", "public Collection getNonEscapingEdgeTargets() {\n if (addedEdges == null) return Collections.EMPTY_SET;\n return new FlattenedCollection(addedEdges.values());\n }", "@Override\r\n\tpublic PointInterface[] edgeEndPoints() {\n\t\treturn p;\r\n\t}", "public Iterable<Edge> edges() {\r\n Bag<Edge> list = new Bag<Edge>();\r\n for (int v = 0; v < V; v++) {\r\n for (Edge e : adj(v)) {\r\n list.add(e);\r\n }\r\n }\r\n return list;\r\n }", "Collection<E> edges();", "Set<CyEdge> getExternalEdgeList();", "public SortedSet<WIpLink> getOutgoingIpLinks () { return n.getOutgoingLinks(getNet().getIpLayer().getNe()).stream().map(ee->new WIpLink(ee)).filter(e->!e.isVirtualLink()).collect(Collectors.toCollection(TreeSet::new)); }", "public Vector<Edge> getEdges(){\n\t\treturn this.listOfEdges;\n\t}", "public Enumeration directedEdges();", "public Set<Eventable> getAllEdges() {\n\t\treturn sfg.edgeSet();\n\t}", "ArrayList<Edge> getEdges(ArrayList<ArrayList<Vertex>> v) {\n ArrayList<Edge> all = new ArrayList<Edge>();\n for (ArrayList<Vertex> verts : v) {\n for (Vertex vt : verts) {\n for (Edge ed : vt.outEdges) {\n all.add(ed);\n }\n }\n }\n return all;\n }", "public Set<StateVertex> getOutgoingStates(StateVertex stateVertix) {\n\t\tfinal Set<StateVertex> result = new HashSet<StateVertex>();\n\n\t\tfor (Eventable c : getOutgoingClickables(stateVertix)) {\n\t\t\tresult.add(sfg.getEdgeTarget(c));\n\t\t}\n\n\t\treturn result;\n\t}", "public ArrayList<GraphEdge> getEdges() {\n return selectedEdges;\n }", "public Set<Edge<V>> edgeSet();", "public DSALinkedList<DSAGraphEdge<E>> getAdjacentEdges()\n {\n return edgeList;\n }", "public Enumeration edges();", "public HashSet<Edge> getEdges() {\n\t\treturn edges;\n\t}", "public Iterable<DirectedEdge> edges() {\n ArrayList<DirectedEdge> list = new ArrayList<DirectedEdge>();\n for (int v = 0; v < V; v++) {\n for (DirectedEdge e : adj(v)) {\n list.add(e);\n }\n }\n return list;\n }", "public ArrayList<Integer> getOutNeighbors (int nodeId) {\r\n\t\tArrayList<Integer> outNeighbors = new ArrayList<Integer>();\r\n\t\t// the set of outgoing edge ids\r\n\t\tSet<Integer> edgeSet = mOutEdges.get(nodeId);\r\n\t\tfor(Integer edgeId: edgeSet) {\r\n\t\t\toutNeighbors.add( getEdge(edgeId).getToId() );\r\n\t\t}\r\n\t\treturn outNeighbors;\r\n\t}", "public Set<Eventable> getOutgoingClickables(StateVertex stateVertix) {\n\t\treturn sfg.outgoingEdgesOf(stateVertix);\n\t}", "public SortedSet<WLightpathUnregenerated> getOutgoingLigtpaths () { return n.getOutgoingRoutes(getNet().getWdmLayer().getNe()).stream().map(ee->new WLightpathUnregenerated(ee)).collect(Collectors.toCollection(TreeSet::new)); }", "public Enumeration undirectedEdges();", "protected Collection<E> getSelectedEdges(VisualizationServer<V, E> visualizationServer) {\n LayoutModel<V> layoutModel = visualizationServer.getVisualizationModel().getLayoutModel();\n RenderContext<V, E> renderContext = visualizationServer.getRenderContext();\n return visualizationServer\n .getSelectedEdges()\n .stream()\n .filter(\n e -> {\n // don't highlight edge if either incident vertex is not drawn\n V u = layoutModel.getGraph().getEdgeSource(e);\n V v = layoutModel.getGraph().getEdgeTarget(e);\n Predicate<V> vertexIncludePredicate = renderContext.getVertexIncludePredicate();\n Predicate<E> edgeIncludePredicate = renderContext.getEdgeIncludePredicate();\n return edgeIncludePredicate.test(e)\n && vertexIncludePredicate.test(u)\n && vertexIncludePredicate.test(v);\n })\n .collect(Collectors.toList());\n }", "public abstract Set<? extends EE> edgesOf(VV vertex);", "InternalRoad getOutEgde(){\r\n\t\tSet out = this.getOutEdges();\r\n\t\tIterator iter = out.iterator();\r\n\t\treturn (InternalRoad)iter.next();\r\n\t}", "public abstract List<? extends GraphEdge<N, E>> getEdges();", "public List<IEdge> getAllEdges();", "public ArrayList<Node> getNeighbors(){\n ArrayList<Node> result = new ArrayList<Node>();\n for(Edge edge: edges){\n result.add(edge.end());\n }\n return result;\n }", "public Collection<LazyRelationship2> getEdges() {\n long relCount=0;\n ArrayList l = new ArrayList();\n \n for(Path e : getActiveTraverser()){\n for(Path p : getFlushTraverser(e.endNode())){\n if((relCount++%NEO_CACHE_LIMIT)==0){\n l.add(p.lastRelationship());\n clearNeoCache();\n }\n }\n }\n return l; \n }", "public Edge[] getEdges() {\n\t\treturn edges;\n\t}", "public synchronized Set<String> getIncomingEdges(String currentEdge) {\n\t\tif (currentEdge == null) {\n\t\t\treturn new HashSet<String>();\n\t\t}\n\t\t\n\t\tSumoEdge currentSumoEdge = getEdge(currentEdge);\n\t\tif (currentSumoEdge == null) {\n\t\t\treturn new HashSet<String>();\n\t\t}\n\t\t\n\t\tString currentEdgeEnd = graph.getEdgeTarget(currentSumoEdge);\n\t\tSet<SumoEdge> edges = graph.incomingEdgesOf(currentEdgeEnd);\n\t\t\n\t\tSet<String> edgeIds = new HashSet<String>();\n\t\tfor (SumoEdge edge: edges) {\n\t\t\tedgeIds.add(edge.getId());\n\t\t}\n\t\t\n\t\treturn edgeIds;\n\t}", "List<IEdge> getAllEdges();", "public Vertex getEnd()\n\t{\n\t\treturn end.copy();\n\t}", "public SortedSet<WFiber> getOutgoingFibers () { return n.getOutgoingLinks(getNet().getWdmLayer().getNe()).stream().map(ee->new WFiber(ee)).collect(Collectors.toCollection(TreeSet::new)); }", "private Collection<Edge> getEdges()\r\n\t{\r\n\t return eSet;\r\n\t}", "public Iterator<Edge> getEdgeIter() {\n\t\treturn edges.iterator();\n\t}", "public static ArrayList<Edge> getAllEdges(){\n\t\treturn edgeList;\n\t}", "public ArrayList<DrawableGraphEdge> getEdges() {\r\n\t\treturn new ArrayList<DrawableGraphEdge>(edges);\r\n\t}", "public Set getNonEscapingEdges() {\n if (addedEdges == null) return Collections.EMPTY_SET;\n return addedEdges.entrySet();\n }", "public Set<Edge<V>> getEdges(V vertex);", "List<CyEdge> getInternalEdgeList();", "default Iterator<E> edgeIterator() {\n return getEdges().iterator();\n }", "Map<Node, Edge> getInEdges() {\n return inEdges;\n }", "public DEdge[] getEdges(){\n return listOfEdges;\n }", "private ArrayList<Edge>getFullyConnectedGraph(){\n\t\tArrayList<Edge> edges = new ArrayList<>();\n\t\tfor(int i=0;i<nodes.size();i++){\n\t\t\tfor(int j=i+1;j<nodes.size();j++){\n\t\t\t\tEdge edge = new Edge(nodes.get(i), nodes.get(j),Utils.distance(nodes.get(i), nodes.get(j)));\n\t\t\t\tedges.add(edge);\n\t\t\t}\n\t\t}\n\t\treturn edges;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<Node<A>> neighbours(){\n\t\t\n\t\tArrayList<Node<A>> output = new ArrayList<Node<A>>();\n\t\t\n\t\tif (g == null) return output;\n\t\t\n\t\tfor (Object o: g.getEdges()){\n\n\t\t\t\n\t\t\tif (((Edge<?>)o).getTo().equals(this)) {\n\t\t\t\t\n\t\t\t\tif (!output.contains(((Edge<?>)o).getFrom()))\n\t\t\t\t\t\toutput.add((Node<A>) ((Edge<?>)o).getFrom());\n\t\t\t\t\n\t\t\t}\n\n\t\t} \n\t\treturn output;\n\t\t\n\t}", "public abstract ArrayList<Pair<Vector2, Vector2>> getEdges();", "public List<NavArc> listOutgoing() {\r\n List<NavArc> result = new ArrayList<>(outgoing);\r\n return result;\r\n }", "public Set<Pair<V,V>> neighbourEdgesOf(V vertex);", "public Edge[] getEdges()\r\n {\r\n if(edges == null)\r\n\t{\r\n\t edges = new Edge[numEdges()];\r\n\t int i = 0;\r\n\t for (final EdgeTypeHolder eth : ethMap.values())\r\n\t\tfor (final Edge e : eth.getEdges())\r\n\t\t edges[i++] = e;\r\n\t}\r\n return edges.clone();\r\n }", "public Collection getAccessPathEdgeTargets() {\n if (accessPathEdges == null) return Collections.EMPTY_SET;\n return new FlattenedCollection(accessPathEdges.values());\n }", "public int[] getEdgeIndicesArray() {\n \t\tginy_edges.trimToSize();\n \t\treturn giny_edges.elements();\n \t}", "public ArrayList< Edge > incidentEdges( ) {\n return incidentEdges;\n }", "public List<EdgeType> getEdges()\n {\n return edges;\n }", "@Override\r\n\tpublic Iterable<EntityGraphEdge> getEdges()\r\n\t{\n\t\treturn null;\r\n\t}", "public Collection<Edge> edges() {\n Collection<Collection<Edge>> copyOfEdges = new ArrayList<Collection<Edge>>();\n //values = myGraph.values(); OLD\n //create a copy of all the edges in the map to restrict any reference\n //to interals of this class\n copyOfEdges.addAll(myGraph.values());\n Collection<Edge> allValues = new ArrayList<Edge>();\n Iterator<Collection<Edge>> eachColl = copyOfEdges.iterator();\n while(eachColl.hasNext()){\n allValues.addAll(eachColl.next());\n }\n\n return allValues;\n }", "private Set<Edge> reachableDAG(Vertex start, Vertex obstacle) {\n \tHashSet<Edge> result = new HashSet<Edge>();\n \tVector<Vertex> currentVertexes = new Vector<Vertex>();\n \tint lastResultNumber = 0;\n \tcurrentVertexes.add(start);\n \t\n \tdo {\n \t\t//System.out.println(\"size of currentVertexes:\" + currentVertexes.size());\n \t\t\n \t\tVector<Vertex> newVertexes = new Vector<Vertex>();\n \t\tlastResultNumber = result.size();\n \t\t\n \t\tfor (Vertex v : currentVertexes) {\n \t\t\t//System.out.println(\"layerID:\" + v.layerID + \"\\tlabel:\" + v.label);\n \t\t\taddIncomingEdges(v, obstacle, result, newVertexes);\n \t\t\taddOutgoingEdges(v, obstacle, result, newVertexes);\n \t\t}\n \t\t\n \t\t//System.out.println(\"size of newVertexes:\" + newVertexes.size());\n \t\t\n \t\tcurrentVertexes = newVertexes;\t\n \t\t//System.out.println(\"lastResultNumber:\" + lastResultNumber);\n \t\t//System.out.println(\"result.size():\" + result.size());\n \t} while (lastResultNumber != result.size());\n \t\n\t\treturn result;\n }", "@Override\n\tpublic synchronized Set<PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode>> getEdges() {\n\t\tSet<PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode>> edges = new HashSet<PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode>>();\n\t\tedges.addAll(this.arcs);\n\t\treturn edges;\n\t}", "public String getEdges(){\n double Lx = super.getCentre().x - (this.length / 2);\r\n double Rx = super.getCentre().x + (this.length / 2);\r\n double Dy = super.getCentre().y - (this.width / 2);\r\n double Uy = super.getCentre().y + (this.width / 2);\r\n Point UL = new Point(Lx, Uy);\r\n Point UR = new Point(Rx, Uy);\r\n Point DL = new Point(Lx, Dy);\r\n Point DR = new Point(Rx, Dy);\r\n Point[] Edges = {DL, UL, UR, DR};\r\n this.edge = Edges;\r\n return Arrays.toString(Edges);\r\n }", "@Override\n public Collection<? extends IEdge> getEdges() {\n\n return new LinkedList<>(Collections.unmodifiableCollection(this.edgeMap\n .values()));\n }", "public List<Edge> findAllEdge() throws SQLException {\n\t\treturn rDb.findAllEdges();\n\t}", "@Test\r\n public void testOutboundEdges() {\r\n System.out.println(\"outboundEdges\");\r\n MyDigraph instance = new MyDigraph();\r\n\r\n Object v1Element = 1;\r\n Object v2Element = 2;\r\n Object v3Element = 3;\r\n\r\n Vertex v1 = instance.insertVertex(v1Element);\r\n Vertex v2 = instance.insertVertex(v2Element);\r\n Vertex v3 = instance.insertVertex(v3Element);\r\n\r\n Object edgeElement = \"A\";\r\n Edge e1 = instance.insertEdge(v1, v2, edgeElement);\r\n Edge e2 = instance.insertEdge(v1, v3, edgeElement);\r\n Edge e3 = instance.insertEdge(v2, v3, edgeElement);\r\n\r\n Collection e1OutboundEdges = instance.outboundEdges(v2);\r\n Collection e2OutboundEdges = instance.outboundEdges(v3);\r\n Collection e3OutboundEdges = instance.outboundEdges(v3);\r\n\r\n boolean e1Result = e1OutboundEdges.contains(e1);\r\n boolean e2Result = e2OutboundEdges.contains(e2);\r\n boolean e3Result = e3OutboundEdges.contains(e3);\r\n\r\n Object expectedResult = true;\r\n assertEquals(expectedResult, e1Result);\r\n assertEquals(expectedResult, e2Result);\r\n assertEquals(expectedResult, e3Result);\r\n }", "private void addOutgoingEdges(Vertex v, Vertex obstacle, Set<Edge> result, Vector<Vertex> newVertexes) {\n \tif (v.getLayerID() == layers.size() - 1)\n \t\treturn;\n \t\n \t// Fetch the edges from the layer of v\n \tint edgeLayerID = v.getLayerID();\n \tVector<Edge> es = edges.get(edgeLayerID);\n \t\n \tfor (Edge e : es) {\n \t\tif (e.getHead().equals(v.getLabel())) {\n \t\t\t// The tail vertex is at the layer below\n \t\t\tVertex tmp = new Vertex(edgeLayerID + 1, e.getTail());\n \t\t\t// Add the edge to result\n \t\t\tresult.add(e);\n \t\t\t// If the outgoing edge does not go to obstacle, add its tail\n \t\t\tif (!tmp.theSameAs(obstacle)) {\n \t\t\t\tnewVertexes.add(tmp);\n \t\t\t\t//System.out.println(\"TEMP is added: layerID:\" + tmp.layerID + \"\\tlabel:\" + tmp.label);\n \t\t\t}\n \t\t}\n \t}\n }", "public Iterator<LayoutEdge> edgeIterator() {\n\treturn edgeList.iterator();\n }", "public SortedSet<WServiceChain> getOutgoingServiceChains () { return n.getAssociatedRoutes(getNet().getIpLayer().getNe()).stream().map(ee->new WServiceChain(ee)).filter(sc->sc.getA().equals(this)).collect(Collectors.toCollection(TreeSet::new)); }", "public ArrayList<Edge> getEdgeList() {\n return edgeList;\n }", "public ArrayList<Edge> getListEdges(){\r\n return listEdges;\r\n }", "public void removeEdge(int start, int end);", "@Override\n\tpublic Set<ET> getAdjacentEdges(N node)\n\t{\n\t\t// implicitly returns null if gn is not in the nodeEdgeMap\n\t\tSet<ET> adjacentEdges = nodeEdgeMap.get(node);\n\t\treturn adjacentEdges == null ? null : new HashSet<ET>(adjacentEdges);\n\t}", "public Edge[] getEdges(EdgeType et)\r\n {\r\n\treturn getEdges(et.getName());\r\n }", "public ArrayList<Vertex> initEnd() {\r\n\t\tArrayList<Vertex> endPoints = new ArrayList<>();\r\n\t\tendPoints.add(new Vertex(11, 20));\r\n\t\tendPoints.add(new Vertex(8, 22));\r\n\t\tendPoints.add(new Vertex(8, 20));\r\n\t\tendPoints.add(new Vertex(15, 2));\r\n\t\tendPoints.add(new Vertex(19, 13));\r\n\t\tendPoints.add(new Vertex(15, 21));\r\n\t\tendPoints.add(new Vertex(12, 21));\r\n\t\tendPoints.add(new Vertex(11, 21));\r\n\t\tendPoints.add(new Vertex(20, 2));\r\n\t\tendPoints.add(new Vertex(17, 2));\r\n\t\tendPoints.add(new Vertex(16, 14));\r\n\t\tendPoints.add(new Vertex(15, 14));\r\n\t\treturn endPoints;\r\n\t}", "private int numEdges()\r\n\t{\r\n\t return eSet.size();\r\n\t}", "public abstract List<AbstractRelationshipTemplate> getOutgoingRelations();", "public int getEndVertex() {\n\t\treturn endVertex;\n\t}", "public Set<List<List<String>>> getEdges()\n\t\t{\n\t\t\treturn m_hyperedges;\n\t\t}", "@Override\n\tpublic List<ET> getEdgeList()\n\t{\n\t\treturn new ArrayList<ET>(edgeList);\n\t}", "int[] getEdgesIncidentTo(int... nodes);", "public ArrayList<NonDirectionalEdge> getNonDirectionalEdges() {\n return selectedNonDirectionalEdges;\n }", "@Override\n\tpublic List<Edge> getAllEdges() {\n\n\t\tList<Edge> res = new ArrayList<Edge>();\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\t\t\tString getAllEdges = \"SELECT node_from, node_to, distance FROM routefinder.relations\";\n\t\t\tresultSet = null;\n\t\t\tpstmt = conn.prepareStatement(getAllEdges);\n\t\t\tresultSet = pstmt.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tEdge edge = new Edge();\n\t\t\t\tedge.setNode1(Database.getNodeFromId(resultSet.getInt(\"node_from\")));\n\t\t\t\tedge.setNode2(Database.getNodeFromId(resultSet.getInt(\"node_to\")));\n\t\t\t\tedge.setDist(resultSet.getDouble(\"distance\"));\n\t\t\t\tres.add(edge);\n\t\t\t}\n\n\t\t\treturn res;\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcConnect.resultClose(resultSet, pstmt);\n\t\t}\n\n\t\treturn null;\n\t}", "public Enumeration outIncidentEdges(Position vp) throws InvalidPositionException;", "public Vertex<V>[] getEndpoints() { return endpoints; }", "java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge> \n getEdgeList();", "public HashMap<String, Edge> getEdgeList () {return edgeList;}", "Iterable<Vertex> computePath(Vertex start, Vertex end) throws GraphException;", "@Override\n\tpublic ArrayList<Edge<Object>> getPath(String startNode, String endNode) {\n\t\treturn null;\n\t}", "private List<Graph.Edge> getEdge(PathMap map) {\n // record the visited coordinates\n List<Coordinate> visited = new ArrayList<>();\n // get all coordinates from the map\n List<Coordinate> allCoordinates = map.getCoordinates();\n // for record all generated edges\n List<Graph.Edge> edges = new ArrayList<>();\n\n\n while (visited.size() <= allCoordinates.size() - 1) {\n for (Coordinate temp : allCoordinates) {\n\n if (visited.contains(temp)) {\n continue;\n }\n visited.add(temp);\n List<Coordinate> neighbors = map.neighbours(temp);\n for (Coordinate tempNeighbour : neighbors) {\n edges.add(new Graph.Edge(temp, tempNeighbour, tempNeighbour.getTerrainCost()));\n }\n }\n }\n // trim impassable coordinates\n List<Graph.Edge> fEdges = new ArrayList<>();\n for (Graph.Edge dd : edges) {\n if (dd.startNode.getImpassable() || dd.endNode.getImpassable()) {\n continue;\n }\n fEdges.add(dd);\n }\n return fEdges;\n }" ]
[ "0.7224194", "0.7100124", "0.70326304", "0.7024098", "0.69912815", "0.69554645", "0.6848508", "0.6721847", "0.6706235", "0.66815025", "0.66146183", "0.65958077", "0.6513949", "0.64692205", "0.64645183", "0.6458584", "0.64325523", "0.64242685", "0.6419781", "0.6405094", "0.6400992", "0.63789636", "0.6364826", "0.63585645", "0.6355526", "0.63431156", "0.6318926", "0.6316815", "0.63159055", "0.63107425", "0.62970334", "0.62941045", "0.6282529", "0.6273215", "0.62718916", "0.62700087", "0.6267201", "0.62524354", "0.62372935", "0.6227756", "0.6209604", "0.6197335", "0.616508", "0.61633664", "0.6160624", "0.6150179", "0.6142309", "0.6140433", "0.612285", "0.61194193", "0.6113489", "0.6106986", "0.61062175", "0.61045325", "0.610376", "0.60767925", "0.60666347", "0.60598224", "0.6041352", "0.6039777", "0.60295254", "0.6020764", "0.6018495", "0.5992715", "0.5971313", "0.5959562", "0.59156126", "0.5910189", "0.5901256", "0.58917713", "0.58730316", "0.5869251", "0.5866473", "0.5855052", "0.58355623", "0.5833589", "0.58269626", "0.5786916", "0.5783024", "0.5781324", "0.57725567", "0.5770875", "0.57705766", "0.5769591", "0.5767861", "0.57487327", "0.57258683", "0.57238173", "0.5703036", "0.5699015", "0.5698748", "0.5676549", "0.56723136", "0.5659191", "0.5654529", "0.56543046", "0.5649276", "0.56402075", "0.5633761", "0.56295073" ]
0.6400746
21
Return a set of incoming edges to the current edges endvertex
public synchronized Set<String> getIncomingEdges(String currentEdge) { if (currentEdge == null) { return new HashSet<String>(); } SumoEdge currentSumoEdge = getEdge(currentEdge); if (currentSumoEdge == null) { return new HashSet<String>(); } String currentEdgeEnd = graph.getEdgeTarget(currentSumoEdge); Set<SumoEdge> edges = graph.incomingEdgesOf(currentEdgeEnd); Set<String> edgeIds = new HashSet<String>(); for (SumoEdge edge: edges) { edgeIds.add(edge.getId()); } return edgeIds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<E> getEdges(V tail);", "public Set<E> getEdges();", "Set<Edge> getIncomingNeighborEdges(boolean onUpwardPass) {\n//\t\t\tif(_outgoingEdges.size() == 0) { // only compute if we have to\n\t\t\t\tSet<Edge> outgoingEdges = new HashSet<Edge>();\n\t\t\t\tIterator<Edge> it = _neighborEdges.keySet().iterator();\n\t\t\t\twhile(it.hasNext()) {\n\t\t\t\t\tEdge e = it.next();\n\t\t\t\t\tVertex v = e.getOtherVertex(this);\n\t\t\t\t\tif(this._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops i am unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(v._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops neighbor unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(this._orderID < v._orderID) {\n\t\t\t\t\t\toutgoingEdges.add(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_outgoingEdges = outgoingEdges;\n//\t\t\t}\n//\t\t\treturn _outgoingEdges;\n\t\t\t\treturn outgoingEdges;\n\t\t}", "public abstract Set<? extends EE> edgesOf(VV vertex);", "public Set<E> getEdges(V tail, V head);", "Collection<E> edges();", "public Set<Eventable> getAllEdges() {\n\t\treturn sfg.edgeSet();\n\t}", "Set<CyEdge> getExternalEdgeList();", "public synchronized Set<String> getNextEdges(String currentEdge) {\n\t\tif (currentEdge == null) {\n\t\t\treturn new HashSet<String>();\n\t\t}\n\t\t\n\t\tSumoEdge currentSumoEdge = getEdge(currentEdge);\n\t\tif (currentSumoEdge == null) {\n\t\t\treturn new HashSet<String>();\n\t\t}\n\t\t\n\t\tString currentEdgeEnd = graph.getEdgeTarget(currentSumoEdge);\n\t\tSet<SumoEdge> edges = graph.outgoingEdgesOf(currentEdgeEnd);\n\t\t\n\t\tSet<String> edgeIds = new HashSet<String>();\n\t\tfor (SumoEdge edge: edges) {\n\t\t\tedgeIds.add(edge.getId());\n\t\t}\n\t\t\n\t\treturn edgeIds;\n\t}", "public Iterable<Edge> edges() {\r\n\t\treturn mst;\r\n\t}", "public Set<Edge<V>> edgeSet();", "default Iterator<E> edgeIterator() {\n return getEdges().iterator();\n }", "public Iterable<Edge> edges() {\r\n Bag<Edge> list = new Bag<Edge>();\r\n for (int v = 0; v < V; v++) {\r\n for (Edge e : adj(v)) {\r\n list.add(e);\r\n }\r\n }\r\n return list;\r\n }", "Map<Node, Edge> getInEdges() {\n return inEdges;\n }", "String getEdges();", "public ArrayList< Edge > incidentEdges( ) {\n return incidentEdges;\n }", "public Iterator<Edge> getEdgeIter() {\n\t\treturn edges.iterator();\n\t}", "Set<Edge> getUpwardOutgoingNeighborEdges() {\n\t\t\tif(!_bumpOnUpwardPass) {\n\t\t\t\tSystem.err.println(\"calling upward pass neighbor method on downward pass!\");\n\t\t\t}\n//\t\t\tif(_outgoingEdges.size() == 0) { // only compute if we have to\n\t\t\t\tSet<Edge> outgoingEdges = new HashSet<Edge>();\n\t\t\t\tIterator<Edge> it = _neighborEdges.keySet().iterator();\n\t\t\t\twhile(it.hasNext()) {\n\t\t\t\t\tEdge e = it.next();\n\t\t\t\t\tVertex v = e.getOtherVertex(this);\n\t\t\t\t\tif(this._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops i am unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(v._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops neighbor unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(this._orderID > v._orderID) {\n\t\t\t\t\t\toutgoingEdges.add(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_outgoingEdges = outgoingEdges;\n//\t\t\t}\n//\t\t\treturn outgoingEdges;\n\t\t\t\tSystem.out.println(this.toString()+\"'s outgoing edges:\\n\"+ outgoingEdges);\n\t\t\t\treturn outgoingEdges;\n\t\t}", "public Enumeration edges();", "public Set<Edge<V>> getEdges(V vertex);", "public Set<Pair<V,V>> neighbourEdgesOf(V vertex);", "int[] getOutEdges(int... nodes);", "public HashSet<Edge> getEdges() {\n\t\treturn edges;\n\t}", "Set<Edge> getDownwardOutgoingNeighborEdges() {\n\t\t\tif(_bumpOnUpwardPass) {\n\t\t\t\tSystem.err.println(\"calling downward pass neighbor method on upward pass!\");\n\t\t\t}\n//\t\t\tif(_outgoingEdges.size() == 0) { // only compute if we have to\n\t\t\t\tSet<Edge> outgoingEdges = new HashSet<Edge>();\n\t\t\t\tIterator<Edge> it = _neighborEdges.keySet().iterator();\n\t\t\t\twhile(it.hasNext()) {\n\t\t\t\t\tEdge e = it.next();\n\t\t\t\t\tVertex v = e.getOtherVertex(this);\n\t\t\t\t\tif(this._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops i am unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(v._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops neighbor unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(this._orderID < v._orderID) {\n\t\t\t\t\t\toutgoingEdges.add(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_outgoingEdges = outgoingEdges;\n//\t\t\t}\n//\t\t\treturn _outgoingEdges;\n\t\t\t\tSystem.out.println(this.toString()+\"'s outgoing edges:\\n\"+ outgoingEdges);\n\t\t\t\treturn outgoingEdges;\n\t\t}", "protected Collection<E> getSelectedEdges(VisualizationServer<V, E> visualizationServer) {\n LayoutModel<V> layoutModel = visualizationServer.getVisualizationModel().getLayoutModel();\n RenderContext<V, E> renderContext = visualizationServer.getRenderContext();\n return visualizationServer\n .getSelectedEdges()\n .stream()\n .filter(\n e -> {\n // don't highlight edge if either incident vertex is not drawn\n V u = layoutModel.getGraph().getEdgeSource(e);\n V v = layoutModel.getGraph().getEdgeTarget(e);\n Predicate<V> vertexIncludePredicate = renderContext.getVertexIncludePredicate();\n Predicate<E> edgeIncludePredicate = renderContext.getEdgeIncludePredicate();\n return edgeIncludePredicate.test(e)\n && vertexIncludePredicate.test(u)\n && vertexIncludePredicate.test(v);\n })\n .collect(Collectors.toList());\n }", "@Override\r\n\tpublic PointInterface[] edgeEndPoints() {\n\t\treturn p;\r\n\t}", "public ArrayList<GraphEdge> getEdges() {\n return selectedEdges;\n }", "public Vector<Edge> getEdges(){\n\t\treturn this.listOfEdges;\n\t}", "Map<Node, Edge> getOutEdges() {\n return outEdges;\n }", "public Set<JmiAssocEdge> getAllOutgoingAssocEdges(JmiClassVertex vertex)\n {\n return getClassAttributes(vertex).allOutgoingAssocEdges;\n }", "public Set getNonEscapingEdges() {\n if (addedEdges == null) return Collections.EMPTY_SET;\n return addedEdges.entrySet();\n }", "public Set<JmiAssocEdge> getInheritedOutgoingAssocEdges(\n JmiClassVertex vertex)\n {\n return getClassAttributes(vertex).inheritedOutgoingAssocEdges;\n }", "private Collection<Edge> getEdges()\r\n\t{\r\n\t return eSet;\r\n\t}", "public abstract List<? extends GraphEdge<N, E>> getEdges();", "public List<IEdge> getAllEdges();", "public Iterable<DirectedEdge> edges() {\n ArrayList<DirectedEdge> list = new ArrayList<DirectedEdge>();\n for (int v = 0; v < V; v++) {\n for (DirectedEdge e : adj(v)) {\n list.add(e);\n }\n }\n return list;\n }", "public Set<JmiAssocEdge> getAllIncomingAssocEdges(JmiClassVertex vertex)\n {\n return getClassAttributes(vertex).allIncomingAssocEdges;\n }", "public ArrayList<Node> getNeighbors(){\n ArrayList<Node> result = new ArrayList<Node>();\n for(Edge edge: edges){\n result.add(edge.end());\n }\n return result;\n }", "public DSALinkedList<DSAGraphEdge<E>> getAdjacentEdges()\n {\n return edgeList;\n }", "int[] getEdgesIncidentTo(int... nodes);", "List<IEdge> getAllEdges();", "ArrayList<Edge> getEdges(ArrayList<ArrayList<Vertex>> v) {\n ArrayList<Edge> all = new ArrayList<Edge>();\n for (ArrayList<Vertex> verts : v) {\n for (Vertex vt : verts) {\n for (Edge ed : vt.outEdges) {\n all.add(ed);\n }\n }\n }\n return all;\n }", "public int[] getEdgeIndicesArray() {\n \t\tginy_edges.trimToSize();\n \t\treturn giny_edges.elements();\n \t}", "public Enumeration directedEdges();", "public static ArrayList<Edge> getAllEdges(){\n\t\treturn edgeList;\n\t}", "public Edge[] getEdges() {\n\t\treturn edges;\n\t}", "public void setVertices(){\n\t\tvertices = new ArrayList<V>();\n\t\tfor (E e : edges){\n\t\t\tV v1 = e.getOrigin();\n\t\t\tV v2 = e.getDestination();\n\t\t\tif (!vertices.contains(v1))\n\t\t\t\tvertices.add(v1);\n\t\t\tif (!vertices.contains(v2))\n\t\t\t\tvertices.add(v2);\n\t\t}\n\t}", "public abstract ArrayList<Pair<Vector2, Vector2>> getEdges();", "private ArrayList<Edge>getFullyConnectedGraph(){\n\t\tArrayList<Edge> edges = new ArrayList<>();\n\t\tfor(int i=0;i<nodes.size();i++){\n\t\t\tfor(int j=i+1;j<nodes.size();j++){\n\t\t\t\tEdge edge = new Edge(nodes.get(i), nodes.get(j),Utils.distance(nodes.get(i), nodes.get(j)));\n\t\t\t\tedges.add(edge);\n\t\t\t}\n\t\t}\n\t\treturn edges;\n\t}", "private Set<Edge> reachableDAG(Vertex start, Vertex obstacle) {\n \tHashSet<Edge> result = new HashSet<Edge>();\n \tVector<Vertex> currentVertexes = new Vector<Vertex>();\n \tint lastResultNumber = 0;\n \tcurrentVertexes.add(start);\n \t\n \tdo {\n \t\t//System.out.println(\"size of currentVertexes:\" + currentVertexes.size());\n \t\t\n \t\tVector<Vertex> newVertexes = new Vector<Vertex>();\n \t\tlastResultNumber = result.size();\n \t\t\n \t\tfor (Vertex v : currentVertexes) {\n \t\t\t//System.out.println(\"layerID:\" + v.layerID + \"\\tlabel:\" + v.label);\n \t\t\taddIncomingEdges(v, obstacle, result, newVertexes);\n \t\t\taddOutgoingEdges(v, obstacle, result, newVertexes);\n \t\t}\n \t\t\n \t\t//System.out.println(\"size of newVertexes:\" + newVertexes.size());\n \t\t\n \t\tcurrentVertexes = newVertexes;\t\n \t\t//System.out.println(\"lastResultNumber:\" + lastResultNumber);\n \t\t//System.out.println(\"result.size():\" + result.size());\n \t} while (lastResultNumber != result.size());\n \t\n\t\treturn result;\n }", "public Collection getNonEscapingEdgeTargets() {\n if (addedEdges == null) return Collections.EMPTY_SET;\n return new FlattenedCollection(addedEdges.values());\n }", "public Iterator<LayoutEdge> edgeIterator() {\n\treturn edgeList.iterator();\n }", "public Iterator<Edge> edgeIterator(int source){\n return edges[source].iterator();\n }", "public Set<JmiAssocEdge> getInheritedIncomingAssocEdges(\n JmiClassVertex vertex)\n {\n return getClassAttributes(vertex).inheritedIncomingAssocEdges;\n }", "public Enumeration undirectedEdges();", "public Edge[] getEdges()\r\n {\r\n if(edges == null)\r\n\t{\r\n\t edges = new Edge[numEdges()];\r\n\t int i = 0;\r\n\t for (final EdgeTypeHolder eth : ethMap.values())\r\n\t\tfor (final Edge e : eth.getEdges())\r\n\t\t edges[i++] = e;\r\n\t}\r\n return edges.clone();\r\n }", "public DEdge[] getEdges(){\n return listOfEdges;\n }", "int[] getInEdges(int... nodes);", "@Override\n\tpublic List<Path> getOutEdges(Location src) {\n\t\treturn \tpaths.get(locations.indexOf(src));\n\t}", "public Collection<Edge> edges() {\n Collection<Collection<Edge>> copyOfEdges = new ArrayList<Collection<Edge>>();\n //values = myGraph.values(); OLD\n //create a copy of all the edges in the map to restrict any reference\n //to interals of this class\n copyOfEdges.addAll(myGraph.values());\n Collection<Edge> allValues = new ArrayList<Edge>();\n Iterator<Collection<Edge>> eachColl = copyOfEdges.iterator();\n while(eachColl.hasNext()){\n allValues.addAll(eachColl.next());\n }\n\n return allValues;\n }", "Iterable<Vertex> computePathToGraph(Loc start, Vertex end) throws GraphException;", "public ArrayList<DrawableGraphEdge> getEdges() {\r\n\t\treturn new ArrayList<DrawableGraphEdge>(edges);\r\n\t}", "private int numEdges()\r\n\t{\r\n\t return eSet.size();\r\n\t}", "public ArrayList< Vertex > adjacentVertices( ) {\n return adjacentVertices;\n }", "public Collection<LazyRelationship2> getEdges() {\n long relCount=0;\n ArrayList l = new ArrayList();\n \n for(Path e : getActiveTraverser()){\n for(Path p : getFlushTraverser(e.endNode())){\n if((relCount++%NEO_CACHE_LIMIT)==0){\n l.add(p.lastRelationship());\n clearNeoCache();\n }\n }\n }\n return l; \n }", "Iterable<Vertex> computePath(Vertex start, Vertex end) throws GraphException;", "public ArrayList<Integer> getOutNeighbors (int nodeId) {\r\n\t\tArrayList<Integer> outNeighbors = new ArrayList<Integer>();\r\n\t\t// the set of outgoing edge ids\r\n\t\tSet<Integer> edgeSet = mOutEdges.get(nodeId);\r\n\t\tfor(Integer edgeId: edgeSet) {\r\n\t\t\toutNeighbors.add( getEdge(edgeId).getToId() );\r\n\t\t}\r\n\t\treturn outNeighbors;\r\n\t}", "public abstract List<? extends DiGraphEdge<N, E>> getOutEdges(N nodeValue);", "@Override\r\n\tpublic Iterable<EntityGraphEdge> getEdges()\r\n\t{\n\t\treturn null;\r\n\t}", "Collection<? extends IREdge<? extends IRBasicBlock>> getIncomingEdges(\n IRBasicBlock block);", "public Set getNonEscapingEdgeFields() {\n if (addedEdges == null) return Collections.EMPTY_SET;\n return addedEdges.keySet();\n }", "public List<EdgeType> getEdges()\n {\n return edges;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<Node<A>> neighbours(){\n\t\t\n\t\tArrayList<Node<A>> output = new ArrayList<Node<A>>();\n\t\t\n\t\tif (g == null) return output;\n\t\t\n\t\tfor (Object o: g.getEdges()){\n\n\t\t\t\n\t\t\tif (((Edge<?>)o).getTo().equals(this)) {\n\t\t\t\t\n\t\t\t\tif (!output.contains(((Edge<?>)o).getFrom()))\n\t\t\t\t\t\toutput.add((Node<A>) ((Edge<?>)o).getFrom());\n\t\t\t\t\n\t\t\t}\n\n\t\t} \n\t\treturn output;\n\t\t\n\t}", "@Override\n\tpublic synchronized Set<PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode>> getEdges() {\n\t\tSet<PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode>> edges = new HashSet<PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode>>();\n\t\tedges.addAll(this.arcs);\n\t\treturn edges;\n\t}", "public Set<V> getNeighbours(V vertex);", "public abstract List<? extends DiGraphEdge<N, E>> getInEdges(N nodeValue);", "List<CyEdge> getInternalEdgeList();", "public Collection< EDataT > edgeData();", "public static Seq<Integer> incomingBackEdges(Block b) {\n return seq(b.getPreds())\n .zipWithIndex()\n .filter(pred -> Dominance.dominates(b, (Block) pred.v1.getBlock()))\n .map(pred -> (int) (long) pred.v2);\n }", "Collection<? extends IREdge<? extends IRBasicBlock>> getOutgoingEdges(\n IRBasicBlock block);", "@Override\n public Collection<? extends IEdge> getEdges() {\n\n return new LinkedList<>(Collections.unmodifiableCollection(this.edgeMap\n .values()));\n }", "public Set<List<List<String>>> getEdges()\n\t\t{\n\t\t\treturn m_hyperedges;\n\t\t}", "public ArrayList<Edge> getListEdges(){\r\n return listEdges;\r\n }", "public ArrayList<Edge> getEdgeList() {\n return edgeList;\n }", "private List<routerNode> getPathVertexList(routerNode beginNode, routerNode endNode) {\r\n\t\tTransformer<routerLink, Integer> wtTransformer; // transformer for getting edge weight\r\n\t\twtTransformer = new Transformer<routerLink, Integer>() {\r\n public Integer transform(routerLink link) {\r\n return link.getWeight();\r\n \t}\r\n };\t\t\r\n\r\n\t\t\r\n\t\tList<routerNode> vlist;\r\n\t\tDijkstraShortestPath<routerNode, routerLink> DSPath = \r\n\t \t new DijkstraShortestPath<routerNode, routerLink>(gGraph, wtTransformer);\r\n \t// get the shortest path in the form of edge list \r\n List<routerLink> elist = DSPath.getPath(beginNode, endNode);\r\n\t\t\r\n \t\t// get the node list form the shortest path\r\n\t Iterator<routerLink> ebIter = elist.iterator();\r\n\t vlist = new ArrayList<routerNode>(elist.size() + 1);\r\n \tvlist.add(0, beginNode);\r\n\t for(int i=0; i<elist.size(); i++){\r\n\t\t routerLink aLink = ebIter.next();\r\n\t \t \t// get the nodes corresponding to the edge\r\n \t\tPair<routerNode> endpoints = gGraph.getEndpoints(aLink);\r\n\t routerNode V1 = endpoints.getFirst();\r\n\t routerNode V2 = endpoints.getSecond();\r\n\t \tif(vlist.get(i) == V1)\r\n\t \t vlist.add(i+1, V2);\r\n\t else\r\n\t \tvlist.add(i+1, V1);\r\n\t }\r\n\t return vlist;\r\n\t}", "public Edge[] getEdges(EdgeType et)\r\n {\r\n\treturn getEdges(et.getName());\r\n }", "private Set<Edge> basicEdges() {\n Set<Edge> set = new LinkedHashSet<>();\n set.add(new Edge(0, 1, 8, false));\n set.add(new Edge(0, 2, 7, false));\n set.add(new Edge(0, 3, 1, false));\n set.add(new Edge(1, 3, 9, false));\n set.add(new Edge(1, 5, 6, false));\n set.add(new Edge(2, 4, 2, false));\n set.add(new Edge(3, 5, 3, false));\n set.add(new Edge(3, 6, 4, false));\n set.add(new Edge(4, 5, 10, false));\n set.add(new Edge(4, 6, 5, false));\n return set;\n }", "java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge> \n getEdgeList();", "public Vertex getEnd()\n\t{\n\t\treturn end.copy();\n\t}", "public Vertex<V>[] getEndpoints() { return endpoints; }", "public List<Edge> getEdgesForward(Node sourceNode) {\r\n\r\n\t\tList<Edge> edgeReferences = new LinkedList<>();\r\n\r\n\t\tfor (Edge to : edges) {\r\n\t\t\tif (to.getSourceNode().getLabel().equals(sourceNode.getLabel())) {\r\n\t\t\t\tedgeReferences.add(to);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn edgeReferences;\r\n\t}", "@Override\n\tpublic List<ET> getEdgeList()\n\t{\n\t\treturn new ArrayList<ET>(edgeList);\n\t}", "public Set<StateVertex> getOutgoingStates(StateVertex stateVertix) {\n\t\tfinal Set<StateVertex> result = new HashSet<StateVertex>();\n\n\t\tfor (Eventable c : getOutgoingClickables(stateVertix)) {\n\t\t\tresult.add(sfg.getEdgeTarget(c));\n\t\t}\n\n\t\treturn result;\n\t}", "@Override\n public Set<Vertex> getVertices() {\n Set<Vertex> vertices = new HashSet<Vertex>();\n vertices.add(sourceVertex);\n vertices.add(targetVertex);\n return vertices;\n }", "public ArrayList<Integer> getInNeighbors (int nodeId) {\r\n\t\tArrayList<Integer> inNeighbors = new ArrayList<Integer>();\r\n\t\t// the set of incoming edge ids\r\n\t\tSet<Integer> edgeSet = mInEdges.get(nodeId);\r\n\t\tfor(Integer edgeId: edgeSet) {\r\n\t\t\tinNeighbors.add( getEdge(edgeId).getFromId() );\r\n\t\t}\r\n\t\treturn inNeighbors;\r\n\t}", "private static void makeEdgesSet() {\n edges = new Edge[e];\r\n int k = 0;\r\n for (int i = 0; i < n; i++) {\r\n for (int j = 0; j < i; j++) {\r\n if (g[i][j] != 0)\r\n edges[k++] = new Edge(j, i, g[i][j]);\r\n }\r\n }\r\n }", "public HashMap<String, Edge> getEdgeList () {return edgeList;}", "public List<Edge> findAllEdge() throws SQLException {\n\t\treturn rDb.findAllEdges();\n\t}", "@Override\n\tpublic Set<ET> getAdjacentEdges(N node)\n\t{\n\t\t// implicitly returns null if gn is not in the nodeEdgeMap\n\t\tSet<ET> adjacentEdges = nodeEdgeMap.get(node);\n\t\treturn adjacentEdges == null ? null : new HashSet<ET>(adjacentEdges);\n\t}", "public void addEdge(int start, int end);" ]
[ "0.717689", "0.6960203", "0.6936875", "0.6910347", "0.67389184", "0.6712212", "0.6647585", "0.66469264", "0.66223234", "0.6621184", "0.66075927", "0.659368", "0.6585609", "0.65276957", "0.6519466", "0.6506993", "0.6496469", "0.64595854", "0.64557946", "0.64517033", "0.6450931", "0.64457625", "0.64283955", "0.64186925", "0.641673", "0.6412528", "0.64016753", "0.64003354", "0.639641", "0.63888854", "0.6388055", "0.63704413", "0.63654625", "0.63198864", "0.6315856", "0.6311077", "0.6307776", "0.6302677", "0.6302248", "0.63001245", "0.62892187", "0.6281574", "0.62665564", "0.626383", "0.6261572", "0.6259912", "0.6243568", "0.6193266", "0.6191031", "0.6181493", "0.61560464", "0.61400896", "0.6133409", "0.6102084", "0.60928", "0.60887915", "0.60814387", "0.60659707", "0.606261", "0.605369", "0.6047527", "0.6044154", "0.60254383", "0.6024972", "0.60206646", "0.5996818", "0.59959537", "0.5994261", "0.59767437", "0.59449464", "0.5936744", "0.5935902", "0.5934494", "0.5920532", "0.5913523", "0.5902553", "0.5901015", "0.58957195", "0.5883914", "0.58744794", "0.58621895", "0.5853877", "0.5848556", "0.58372843", "0.58369523", "0.58309036", "0.58146304", "0.5805852", "0.5805433", "0.57961833", "0.579411", "0.5779174", "0.5776318", "0.5769889", "0.57657397", "0.5763806", "0.57564914", "0.57496", "0.5747198", "0.57348377" ]
0.73494256
0
Get the length of the shortest path between two edges
public synchronized double getDistance(String from, String to) { return (new DijkstraShortestPath<String, SumoEdge>(graph, from, to)).getPathLength(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int shortestPathDistance(String vertLabel1, String vertLabel2);", "public void shortestPathsNodes() {\n for (int sourceNode = 0; sourceNode < wordGraph.V(); sourceNode++) {\n BreadthFirstDirectedPaths bfs = new BreadthFirstDirectedPaths(wordGraph, sourceNode);\n\n for (int goalNode = 0; goalNode < wordGraph.V(); goalNode++) {\n Iterable<Integer> shortestPath = bfs.pathTo(goalNode);\n int pathLength = -1;\n if (shortestPath != null) {\n for (int edge : shortestPath) {\n pathLength++;\n }\n }\n if (pathLength != -1) {\n }\n System.out.println(pathLength);\n }\n }\n }", "public int shortestPathLength(int[][] graph) {\n Queue<MyPath> q = new LinkedList<>();\n Set<String> visited = new HashSet<>();\n\n for (int i = 0; i < graph.length; i++) {\n MyPath path = new MyPath(i, (1 << i));\n visited.add(path.convertToString());\n q.offer(path);\n }\n\n int length = 0;\n while (!q.isEmpty()) {\n int size = q.size();\n while (size-- > 0) {\n MyPath next = q.poll();\n int curr = next.curr;\n int currPath = next.nodes;\n // Assume we have two nodes -> n = 2\n // 1 << 2 -> 100\n // 100 - 1 -> 011 which means both nodes are visited\n if (currPath == (1 << graph.length) - 1) {\n return length;\n }\n for (int neighbors : graph[curr]) {\n MyPath newPath = new MyPath(neighbors, currPath | (1 << neighbors));\n String pathString = newPath.convertToString();\n if (visited.add(pathString)) {\n q.offer(newPath);\n }\n }\n }\n length++;\n }\n\n return -1;\n }", "Integer distance(PathFindingNode a, PathFindingNode b);", "public int pathLength(V from, V to) {\n\n if (from.equals(null) || to.equals(null)){\n throw new IllegalArgumentException();\n }\n\n HashMap <V, Integer> distances = new HashMap<>();\n if (!hasPath(from, to)){\n return Integer.MAX_VALUE;\n }\n\n if (from.equals(to)){\n return 0;\n }\n\n distances.put(from, 0);\n\n Queue<V> queue = new LinkedList<>();\n queue.add(from);\n\n while (!queue.isEmpty()){\n\n V curr_ver = queue.poll();\n ArrayList<V> neighbors = graph.get(curr_ver);\n int i = 0;\n V neighbor;\n int current_dist = distances.get(curr_ver);\n\n while (i < neighbors.size()){\n\n neighbor = neighbors.get(i);\n\n if (distances.containsKey(neighbor)){\n i++;\n continue;\n }\n\n if(neighbor.equals(to)){\n return distances.get(curr_ver) + 1;\n }\n\n i++;\n distances.put(neighbor, current_dist+ 1);\n queue.add(neighbor);\n\n }\n\n }\n\n return Integer.MAX_VALUE;\n\n }", "public static int shortestDistance( ElementGraph graph, FlowElement lhs, FlowElement rhs )\n {\n return DijkstraShortestPath.findPathBetween( directed( graph ), lhs, rhs ).size();\n }", "public String findDistanceOfPath(String[] vertices) {\r\n String source = vertices[0];\r\n int distance = 0;\r\n for (int i = 1; i < vertices.length; i++) {\r\n String target = vertices[i];\r\n Map<String, Integer> edgeMap = adj.get(source);\r\n if (edgeMap != null && edgeMap.containsKey(target)) {\r\n distance += edgeMap.get(target);\r\n } else {\r\n return \"NO SUCH ROUTE\";\r\n }\r\n source = target;\r\n }\r\n return String.valueOf(distance);\r\n }", "public double shortestPathDist(int src, int dest);", "public int getShortestPathLatency(Node a, Node b) {\n HashMap<String,Integer> pathWeight = getShortestPath(a,b);\n\n if(pathWeight!=null && pathWeight.size()==1) {\n return pathWeight.entrySet().iterator().next().getValue();\n }\n return 0;\n }", "@Test\n public void testShortestDistance() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 3);\n Edge<Vertex> e3 = new Edge<>(v1, v3, 2);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n\n List<Vertex> expectedPath = new ArrayList<>();\n expectedPath.add(v1);\n expectedPath.add(v3);\n assertEquals(expectedPath, g.shortestPath(v1, v3));\n\n assertEquals(6, g.edgeLengthSum());\n }", "public Integer lengthOfTheShortestRoute(MultiDirectionalNode startNode,\n\t\t\tMultiDirectionalNode endNode) {\n\t\treturn null;\n\t}", "int getPathCost(Coordinate end) {\n if (!graph.containsKey(end)) {\n // test use display point\n // System.err.printf(\"Graph doesn't contain end vertex \\\"%s\\\"\\n\", end);\n return Integer.MAX_VALUE;\n }\n int weight = Integer.MAX_VALUE;\n for (Coordinate key : graph.keySet()) {\n if (key.equals(end)) {\n weight = graph.get(key).dist;\n }\n }\n return weight;\n }", "public int getShortestDistance(T vertex1, T vertex2){\n DijkstraShortestPath p = new DijkstraShortestPath(vertex1, vertex2);\n return p.getMinDistance();\n }", "public int getPathLength();", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\r\n for (Integer vTmp : v) {\r\n if (vTmp < 0 || vTmp >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n }\r\n for (Integer wTmp : w) {\r\n if (wTmp < 0 || wTmp >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n }\r\n BreadthFirstDirectedPaths bfdp1 = new BreadthFirstDirectedPaths(G, v);\r\n BreadthFirstDirectedPaths bfdp2 = new BreadthFirstDirectedPaths(G, w);\r\n int shortestDist = Integer.MAX_VALUE;\r\n for (int i = 0; i < G.V(); i++) {\r\n if (bfdp1.hasPathTo(i) && bfdp2.hasPathTo(i)) {\r\n shortestDist = (shortestDist <= bfdp1.distTo(i) + bfdp2.distTo(i)) ? shortestDist: bfdp1.distTo(i) + bfdp2.distTo(i);\r\n }\r\n }\r\n return (shortestDist == Integer.MAX_VALUE) ? -1 : shortestDist;\r\n }", "public void findShortestPath(String startName, String endName) {\n checkValidEndpoint(startName);\n checkValidEndpoint(endName);\n\n Vertex<String> start = vertices.get(startName);\n Vertex<String> end = vertices.get(endName);\n\n double totalDist; // totalDist must be update below\n\n Map<Vertex<String>, Double> distance = new HashMap<>();\n Map<Vertex<String>, Vertex<String>> previous = new HashMap<>();\n Set<Vertex<String>> explored = new HashSet<>();\n PriorityQueue<VertexDistancePair> pq = new PriorityQueue<>();\n\n\n\n addPQ(distance, start, pq, previous);\n\n\n\n dijkstraHelper(pq, end, explored, distance, previous);\n\n\n\n\n\n\n totalDist = distance.get(end);\n List<Edge<String>> path = getPath(end, start);\n printPath(path, totalDist);\n }", "ShortestPath(UndirectedWeightedGraph graph, String startNodeId, String endNodeId) throws NotFoundNodeException {\r\n\t\t\r\n\t\tif (!graph.containsNode(startNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, startNodeId);\r\n\t\t}\t\t\r\n\t\tif (!graph.containsNode(endNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, endNodeId);\r\n\t\t}\t\r\n\r\n\t\tsrc = startNodeId;\r\n\t\tdst = endNodeId;\r\n\t\t\r\n\t\tif (endNodeId.equals(startNodeId)) {\r\n\t\t\tlength = 0;\r\n\t\t\tnumOfPath = 1;\r\n\t\t\tArrayList<String> path = new ArrayList<String>();\r\n\t\t\tpath.add(startNodeId);\r\n\t\t\tpathList.add(path);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// create a HashMap of updated distance from the starting node to every node\r\n\t\t\t// initially it is 0, inf, inf, inf, ...\r\n\t\t\tHashMap<String, Double> distance = new HashMap<String, Double>();\t\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif (nodeId.equals(startNodeId)) {\r\n\t\t\t\t\t// the starting node will always have 0 distance from itself\r\n\t\t\t\t\tdistance.put(nodeId, 0.0);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// the others have initial distance is infinity\r\n\t\t\t\t\tdistance.put(nodeId, Double.MAX_VALUE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// a HashMap of preceding node of each node\r\n\t\t\tHashMap<String, HashSet<String>> precedence = new HashMap<String, HashSet<String>>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif ( nodeId.equals(startNodeId) ) {\r\n\t\t\t\t\tprecedence.put(nodeId, null);\t// the start node will have no preceding node\r\n\t\t\t\t}\r\n\t\t\t\telse { \r\n\t\t\t\t\tprecedence.put(nodeId, new HashSet<String>());\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\tSet<String> unvisitedNode = new HashSet<String>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tunvisitedNode.add(nodeId);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdouble minUnvisitedLength;\r\n\t\t\tString minUnvisitedNode;\r\n\t\t\t// run loop while not all node is visited\r\n\t\t\twhile ( unvisitedNode.size() != 0 ) {\r\n\t\t\t\t// find the unvisited node with minimum current distance in distance list\r\n\t\t\t\tminUnvisitedLength = Double.MAX_VALUE;\r\n\t\t\t\tminUnvisitedNode = \"\";\r\n\t\t\t\tfor (String nodeId : unvisitedNode) {\r\n\t\t\t\t\tif (distance.get(nodeId) < minUnvisitedLength) {\r\n\t\t\t\t\t\tminUnvisitedNode = nodeId;\r\n\t\t\t\t\t\tminUnvisitedLength = distance.get(nodeId); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// if there are no node that can be visited from the unvisitedNode, break the loop \r\n\t\t\t\tif (minUnvisitedLength == Double.MAX_VALUE) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// remove the node from unvisitedNode\r\n\t\t\t\tunvisitedNode.remove(minUnvisitedNode);\r\n\t\t\t\t\r\n\t\t\t\t// update the distance of its neighbors\r\n\t\t\t\tfor (Node neighborNode : graph.getNodeList().get(minUnvisitedNode).getNeighbors().keySet()) {\r\n\t\t\t\t\tdouble distanceFromTheMinNode = distance.get(minUnvisitedNode) + graph.getNodeList().get(minUnvisitedNode).getNeighbors().get(neighborNode).getWeight();\r\n\t\t\t\t\t// if the distance of the neighbor can be shorter from the current node, change \r\n\t\t\t\t\t// its details in distance and precedence\r\n\t\t\t\t\tif ( distanceFromTheMinNode < distance.get(neighborNode.getId()) ) {\r\n\t\t\t\t\t\tdistance.replace(neighborNode.getId(), distanceFromTheMinNode);\r\n\t\t\t\t\t\t// renew the precedence of the neighbor node\r\n\t\t\t\t\t\tprecedence.put(neighborNode.getId(), new HashSet<String>());\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (distanceFromTheMinNode == distance.get(neighborNode.getId())) {\r\n\t\t\t\t\t\t// unlike dijkstra's algorithm, multiple path should be update into the precedence\r\n\t\t\t\t\t\t// if from another node the distance is the same, add it to the precedence\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// if the current node in the process is the end node, we can stop the while loop here\r\n\t\t\t\tif (minUnvisitedNode == endNodeId) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (distance.get(endNodeId) == Double.MAX_VALUE) {\r\n\t\t\t\t// in case there is no shortest path between the 2 nodes\r\n\t\t\t\tlength = 0;\r\n\t\t\t\tnumOfPath = 0;\r\n\t\t\t\tpathList = null;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// other wise we have these information\r\n\t\t\t\tlength = distance.get(endNodeId);\r\n\t\t\t\t//numOfPath = this.getNumPath(precedence, startNodeId, endNodeId);\r\n\t\t\t\tpathList = this.findPathList(precedence, startNodeId, endNodeId);\r\n\t\t\t\tnumOfPath = pathList.size();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\t// END ELSE\t\t\r\n\t}", "public int getNumberOfPaths(){ \r\n HashMap<FlowGraphNode, Integer> number = new HashMap<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n HashMap<FlowGraphNode, Integer> label = new HashMap<>();\r\n \r\n label.put(start,1);\r\n queue.add(start);\r\n do{\r\n FlowGraphNode node = queue.pop();\r\n for(FlowGraphNode child : node.to){\r\n int count = number.getOrDefault(child, child.inDeg()) -1;\r\n if(count == 0){\r\n queue.add(child);\r\n number.remove(child);\r\n //label\r\n int sum = 0;\r\n for(FlowGraphNode anc : child.from){\r\n sum += label.get(anc);\r\n }\r\n label.put(child,sum);\r\n }else{\r\n number.put(child, count);\r\n }\r\n }\r\n }while(!queue.isEmpty());\r\n \r\n if(!number.isEmpty()){\r\n //there has to be a loop in the graph\r\n return -1;\r\n }\r\n \r\n return label.get(end);\r\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n if (v == null || w == null) throw new IllegalArgumentException();\n for (Integer x : v) {\n if (x == null) throw new IllegalArgumentException();\n }\n for (Integer x : w) {\n if (x == null) throw new IllegalArgumentException();\n }\n BreadthFirstDirectedPaths path1 = new BreadthFirstDirectedPaths(wordGraph, v);\n BreadthFirstDirectedPaths path2 = new BreadthFirstDirectedPaths(wordGraph, w);\n int len = -1;\n for (int i = 0; i < wordGraph.V(); i++) {\n if (path1.hasPathTo(i) && path2.hasPathTo(i)) {\n if (len == -1) {\n len = path1.distTo(i) + path2.distTo(i);\n }\n if (path1.distTo(i) + path2.distTo(i) < len) {\n len = path1.distTo(i) + path2.distTo(i);\n }\n }\n }\n return len;\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w){\n if(v == null || w == null)\n throw new NullPointerException(\"null arguments\");\n shortestPath(v,w);\n return minPath;\n }", "@Test\n public void testShortestDistance2() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 1);\n Edge<Vertex> e3 = new Edge<>(v1, v3, 3);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n\n List<Vertex> expectedPath = new ArrayList<>();\n expectedPath.add(v1);\n expectedPath.add(v2);\n expectedPath.add(v3);\n\n assertTrue(g.edge(e1));\n assertTrue(g.vertex(v1));\n\n v1.updateName(\"test\");\n assertEquals(\"test\", v1.name());\n\n assertEquals(expectedPath, g.shortestPath(v1, v3));\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n if (!isValid(v, w)) {\n throw new IndexOutOfBoundsException();\n }\n\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n\n int shortestPath = -1;\n Deque<Integer> ancestors = new ArrayDeque<>();\n\n for (int i = 0; i < this.digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n ancestors.push(i);\n }\n }\n\n for (Integer integer : ancestors) {\n int path = bfsV.distTo(integer) + bfsW.distTo(integer);\n if (shortestPath == -1 || path < shortestPath) {\n shortestPath = path;\n }\n }\n return shortestPath;\n }", "public double getAverageShortestPathLengthJUNG()\r\n\t{\n\t\tTransformer<Entity, Double> distanceTransformer = DistanceStatistics\r\n\t\t\t\t.averageDistances(undirectedGraph);\r\n\t\t// logger.info(\"Average distances: \" + distances);\r\n\t\tdouble distanceSum = 0.0;\r\n\t\tfor (Entity e : undirectedGraph.getVertices()) {\r\n\t\t\tdistanceSum += distanceTransformer.transform(e);\r\n\t\t}\r\n\t\treturn distanceSum / getNumberOfNodes();\r\n\t}", "public int length(int v, int w){\n shortestPath(v,w);\n return minPath;\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n if (v == null || w == null) {\n throw new NullPointerException();\n }\n BreadthFirstDirectedPaths bfdpv = new BreadthFirstDirectedPaths(g, v);\n BreadthFirstDirectedPaths bfdpw = new BreadthFirstDirectedPaths(g, w);\n int anc = -1;\n int minLen = Integer.MAX_VALUE;\n for (int x = 0; x < g.V(); x++) {\n if (bfdpv.hasPathTo(x) && bfdpw.hasPathTo(x)) {\n int len = bfdpv.distTo(x) + bfdpw.distTo(x);\n if (len < minLen) {\n minLen = len;\n anc = x;\n }\n }\n }\n if (anc == -1) minLen = -1;\n return minLen;\n }", "int getShortestDistance(V vertex);", "@Test\n public void testDiameter() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n Vertex v4 = new Vertex(4, \"D\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 2);\n Edge<Vertex> e3 = new Edge<>(v1, v3, 4);\n Edge<Vertex> e4 = new Edge<>(v2, v4, 5);\n Edge<Vertex> e5 = new Edge<>(v3, v4, 6);\n\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addVertex(v4);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n g.addEdge(e4);\n g.addEdge(e5);\n\n List<Vertex> shortestPath = g.shortestPath(v1, v3);\n\n assertEquals(3, g.pathLength(shortestPath));\n assertEquals(6, g.diameter());\n }", "int getEdgeCount();", "public double avePathLength();", "public int length(int v, int w) {\r\n if (v < 0 || w < 0 || v >= G.V() || w >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n BreadthFirstDirectedPaths bfdp1 = new BreadthFirstDirectedPaths(G, v);\r\n BreadthFirstDirectedPaths bfdp2 = new BreadthFirstDirectedPaths(G, w);\r\n int shortestDist = Integer.MAX_VALUE;\r\n for (int i = 0; i < G.V(); i++) {\r\n if (bfdp1.hasPathTo(i) && bfdp2.hasPathTo(i)) {\r\n shortestDist = (shortestDist <= bfdp1.distTo(i) + bfdp2.distTo(i)) ? shortestDist : bfdp1.distTo(i) + bfdp2.distTo(i);\r\n }\r\n }\r\n return (shortestDist == Integer.MAX_VALUE) ? -1: shortestDist;\r\n }", "private HashMap<String, Integer> getShortestPathBetweenDifferentNodes(Node start, Node end) {\n HashMap<Node, Node> parentChildMap = new HashMap<>();\n parentChildMap.put(start, null);\n\n // Shortest path between nodes\n HashMap<Node, Integer> shortestPathMap = new HashMap<>();\n\n for (Node node : getNodes()) {\n if (node == start)\n shortestPathMap.put(start, 0);\n else shortestPathMap.put(node, Integer.MAX_VALUE);\n }\n\n for (Edge edge : start.getEdges()) {\n shortestPathMap.put(edge.getDestination(), edge.getWeight());\n parentChildMap.put(edge.getDestination(), start);\n }\n\n while (true) {\n Node currentNode = closestUnvisitedNeighbour(shortestPathMap);\n\n if (currentNode == null) {\n return null;\n }\n\n // Save path to nearest unvisited node\n if (currentNode == end) {\n Node child = end;\n String path = end.getName();\n while (true) {\n Node parent = parentChildMap.get(child);\n if (parent == null) {\n break;\n }\n\n // Create path using previous(parent) and current(child) node\n path = parent.getName() + \"\" + path;\n child = parent;\n }\n HashMap<String,Integer> hm= new HashMap<>();\n hm.put(path, shortestPathMap.get(end));\n return hm;\n }\n currentNode.visit();\n\n // Go trough edges and find nearest\n for (Edge edge : currentNode.getEdges()) {\n if (edge.getDestination().isVisited())\n continue;\n\n if (shortestPathMap.get(currentNode) + edge.getWeight() < shortestPathMap.get(edge.getDestination())) {\n shortestPathMap.put(edge.getDestination(), shortestPathMap.get(currentNode) + edge.getWeight());\n parentChildMap.put(edge.getDestination(), currentNode);\n }\n }\n }\n }", "private long nodesLength(Edge[] E) {\n\t\tlong nodesLength = 0;\n\t\tfor (Edge e:E ) {\n\t\t\tif (e.getTo() > nodesLength) nodesLength = e.getTo();\n\t\t\tif (e.getFrom() > nodesLength) nodesLength = e.getFrom();\n\t\t}\n\t\tnodesLength++;\t\n\t\treturn nodesLength;\t\t\n\t}", "public double length() {\n if (first.p == null) return 0;\n double distance = 0.0;\n Node n = first;\n Node n2 = first.next;\n while (!n.next.equals(first)) {\n distance += n.p.distanceTo(n2.p);\n n = n.next;\n n2 = n2.next;\n }\n distance += n.p.distanceTo(n2.p);\n return distance;\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n BreadthFirstDirectedPaths bfdV = new BreadthFirstDirectedPaths(G, v);\n BreadthFirstDirectedPaths bfdW = new BreadthFirstDirectedPaths(G, w);\n int distance = Integer.MAX_VALUE;\n int commonAncestor = -1;\n for (int i = 0; i < G.V(); i++) {\n if (bfdV.hasPathTo(i) && bfdW.hasPathTo(i)) {\n int local = bfdV.distTo(i) + bfdW.distTo(i);\n if (local < distance) {\n distance = local;\n commonAncestor = i;\n }\n }\n }\n if (commonAncestor == -1) return commonAncestor;\n else return bfdV.distTo(commonAncestor) + bfdW.distTo(commonAncestor);\n }", "public int distance(String nounA, String nounB)\n {\n if (nounA == null || nounB == null) throw new NullPointerException();\n if (!(isNoun(nounA) && isNoun(nounB))) throw new IllegalArgumentException();\n return shortestPath.length(synsetHash.get(nounA), synsetHash.get(nounB));\n }", "public int length(int v, int w) {\n BreadthFirstDirectedPaths path1 = new BreadthFirstDirectedPaths(wordGraph, v);\n BreadthFirstDirectedPaths path2 = new BreadthFirstDirectedPaths(wordGraph, w);\n int len = -1;\n for (int i = 0; i < wordGraph.V(); i++) {\n if (path1.hasPathTo(i) && path2.hasPathTo(i)) {\n if (len == -1) {\n len = path1.distTo(i) + path2.distTo(i);\n }\n if (path1.distTo(i) + path2.distTo(i) < len) {\n len = path1.distTo(i) + path2.distTo(i);\n }\n }\n }\n return len;\n }", "public static int p413ComputeShortestPathNumber(Vertex start, Vertex end){\n\t Queue<Vertex> queue=new LinkedList<Vertex>();\n\t Map<Vertex, Status> statusMap=new HashMap<Vertex, Status>();\n\t Map<Vertex, Integer> levelMap=new HashMap<Vertex, Integer>();\n\t List<List<Vertex>> allLevelList=new LinkedList<List<Vertex>>();\n\t \n\t queue.offer(start);\n\t statusMap.put(start, Status.Queued);\n\t levelMap.put(start, 0);\n\t \n\t Vertex vertex;\n\t int lastLevel=-1;\n\t List<Vertex> levelList = null;\n\t\twhile ((vertex = queue.poll()) != null) {\n\t\t\tint currentLevel = levelMap.get(vertex);\n\n\t\t\tif (currentLevel != lastLevel) {\n\t\t\t\tlastLevel = currentLevel;\n\t\t\t\tlevelList = new LinkedList<Vertex>();\n\n\t\t\t\tallLevelList.add(levelList);\n\t\t\t}\n\n\t\t\tlevelList.add(vertex);\n\n\t\t\tif (vertex.equals(end)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tSet<Vertex> adjacentVertexes = vertex.getAdjacentVertexes();\n\t\t\tfor (Iterator iterator = adjacentVertexes.iterator(); iterator.hasNext();) {\n\t\t\t\tVertex adjacent = (Vertex) iterator.next();\n\n\t\t\t\tif (statusMap.get(adjacent) == null) {\n\t\t\t\t\tqueue.offer(adjacent);\n\t\t\t\t\tstatusMap.put(adjacent, Status.Queued);\n\t\t\t\t\tlevelMap.put(adjacent, currentLevel + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t \n\t int max=Integer.MIN_VALUE;\n\t List<Vertex> targetList=new LinkedList<Vertex>();\n\t targetList.add(end);\n\t for(int index=lastLevel-1;index>0;index--){\n\t\t List<Vertex> lastLevelList = allLevelList.get(index);\n\t\t List<Vertex> tmpList=new LinkedList<Vertex>();\n\n\t\t int count=0;\n\t\t for (Iterator iterator = lastLevelList.iterator(); iterator.hasNext();) {\n\t\t\t\tVertex lastLevelVertex = (Vertex) iterator.next();\n\t\t\t\tfor (Iterator iterator2 = targetList.iterator(); iterator2.hasNext();) {\n\t\t\t\t\tVertex vertex2 = (Vertex) iterator2.next();\n\t\t\t\t\tif(lastLevelVertex.getAdjacentVertexes().contains(vertex2)){\n\t\t\t\t\t count++;\n\t\t\t\t\t tmpList.add(lastLevelVertex);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t }\n\t\t \n\t\t targetList=tmpList;\n\t\t \n\t\t if(count>max){\n\t\t \tmax=count;\n\t\t }\n\t }\n\t \n\t return max;\n\t}", "private double[] computeShortestPathLengths(Entity pStartNode,\r\n\t\t\tdouble pShortestPathLengthSum, double pMaxPathLength,\r\n\t\t\tSet<Entity> pWasSource)\r\n\t{\r\n\r\n\t\tint pStartNodeMaxPathLength = 0;\r\n\r\n\t\t// a set of nodes that have already been expanded -> algorithm should\r\n\t\t// expand nodes monotonically and not go back\r\n\t\tSet<Entity> alreadyExpanded = new HashSet<Entity>();\r\n\r\n\t\t// a queue holding the newly discovered nodes with their and their\r\n\t\t// distance to the start node\r\n\t\tList<Entity[]> queue = new ArrayList<Entity[]>();\r\n\r\n\t\t// initialize queue with start node\r\n\t\tEntity[] innerList = new Entity[2];\r\n\t\tinnerList[0] = pStartNode; // the node\r\n\t\tinnerList[1] = new Entity(\"0\"); // the distance to the start node\r\n\t\tqueue.add(innerList);\r\n\r\n\t\t// while the queue is not empty\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\t// remove first element from queue\r\n\t\t\tEntity[] queueElement = queue.get(0);\r\n\t\t\tEntity currentNode = queueElement[0];\r\n\t\t\tEntity distance = queueElement[1];\r\n\t\t\tqueue.remove(0);\r\n\r\n\t\t\t// if the node was not already expanded\r\n\t\t\tif (!alreadyExpanded.contains(currentNode)) {\r\n\r\n\t\t\t\t// the node gets expanded now\r\n\t\t\t\talreadyExpanded.add(currentNode);\r\n\r\n\t\t\t\t// if the node was a source node in a previous run, we already\r\n\t\t\t\t// have added this path\r\n\t\t\t\tif (!pWasSource.contains(currentNode)) {\r\n\t\t\t\t\t// add the distance of this node to shortestPathLengthSum\r\n\t\t\t\t\t// check if maxPathLength must be updated\r\n\t\t\t\t\tint tmpDistance = new Integer(distance.getFirstLexeme());\r\n\t\t\t\t\tpShortestPathLengthSum += tmpDistance;\r\n\t\t\t\t\tif (tmpDistance > pMaxPathLength) {\r\n\t\t\t\t\t\tpMaxPathLength = tmpDistance;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// even if the node was a source node in a previous run there\r\n\t\t\t\t// can be a path to\r\n\t\t\t\t// other nodes over this node, so go on:\r\n\r\n\t\t\t\t// get the neighbors of the queue element\r\n\t\t\t\tSet<Entity> neighbors = getNeighbors(currentNode);\r\n\r\n\t\t\t\t// iterate over all neighbors\r\n\t\t\t\tfor (Entity neighbor : neighbors) {\r\n\t\t\t\t\t// if the node was not already expanded\r\n\t\t\t\t\tif (!alreadyExpanded.contains(neighbor)) {\r\n\t\t\t\t\t\t// add the node to the queue, increase node distance by\r\n\t\t\t\t\t\t// one\r\n\t\t\t\t\t\tEntity[] tmpList = new Entity[2];\r\n\t\t\t\t\t\ttmpList[0] = neighbor;\r\n\t\t\t\t\t\tInteger tmpDistance = new Integer(\r\n\t\t\t\t\t\t\t\tdistance.getFirstLexeme()) + 1;\r\n\t\t\t\t\t\ttmpList[1] = new Entity(tmpDistance.toString());\r\n\t\t\t\t\t\tqueue.add(tmpList);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tpStartNodeMaxPathLength = new Integer(distance.getFirstLexeme());\r\n\t\t}\r\n\t\teccentricityMap.put(pStartNode, pStartNodeMaxPathLength);\r\n\r\n\t\tdouble returnArray[] = { pShortestPathLengthSum, pMaxPathLength };\r\n\t\treturn returnArray;\r\n\t}", "@Override\n public Double calculateShortestPathFromSource(String from, String to) {\n Node source = graph.getNodeByName(from);\n Node destination = graph.getNodeByName(to);\n source.setDistance(0d);\n Set<Node> settledNodes = new HashSet<>();\n PriorityQueue<Node> unsettledNodes = new PriorityQueue<>(Comparator.comparing(Node::getDistance));\n unsettledNodes.add(source);\n while (unsettledNodes.size() != 0) {\n Node currentNode = unsettledNodes.poll();\n for (Map.Entry<Node, Double> adjacencyPair : currentNode.getAdjacentNodes().entrySet()) {\n Node adjacentNode = adjacencyPair.getKey();\n Double distance = adjacencyPair.getValue();\n if (!settledNodes.contains(adjacentNode)) {\n calculateMinimumDistance(adjacentNode, distance, currentNode);\n unsettledNodes.add(adjacentNode);\n }\n }\n settledNodes.add(currentNode);\n }\n return destination.getDistance() == Double.MAX_VALUE ? -9999d : destination.getDistance();\n }", "@Override\r\n\tpublic int getDistance(E src, E dst) {\r\n\t\treturn graphForWarshall.getDistance(src, dst);\r\n\t}", "@Override\n\tpublic double shortestPathDist(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn Double.parseDouble(dwg.getNode(dest).getInfo());\n\t}", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n int min = Integer.MAX_VALUE;\n for (int i = 0; i < digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i) && bfsV.distTo(i) + bfsW.distTo(i) < min) {\n min = bfsV.distTo(i) + bfsW.distTo(i);\n }\n }\n return min == Integer.MAX_VALUE ? -1 : min;\n }", "public static double dist (Vertex a, Vertex b){\n return Math.sqrt((b.y-a.y)*(b.y-a.y) + (b.x-a.x)*(b.x-a.x));\n }", "public double getEdgeStrokeDestinationWidth() {\n return (_edgeStrokeDestinationWidth);\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n\n validateIterableVertices(v);\n validateIterableVertices(w);\n // use bfs to find the path and the shortest distance from v to every vertices in the graph\n // use two arrays, one record the last vertex, edgeTo[]. Another record the distance, distTo[].\n BreadthFirstDirectedPaths bfs1 = new BreadthFirstDirectedPaths(dg, v);\n BreadthFirstDirectedPaths bfs2 = new BreadthFirstDirectedPaths(dg, w);\n\n int ancestor = ancestor(v, w);\n\n if (ancestor == -1) {\n return -1;\n } else {\n return bfs1.distTo(ancestor) + bfs2.distTo(ancestor);\n }\n\n }", "@Override\n public double shortestPathDist(int src, int dest) {\n if(shortestPath(src,dest)==null) return -1;\n double sum=0;\n return shortestPath(src,dest).get(shortestPath(src,dest).size()-1).getTag();\n }", "public int getEdgeCount(){\r\n HashSet<FlowGraphNode> visited = new HashSet<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n queue.add(start);\r\n visited.add(start);\r\n int counter = 0;\r\n while(!queue.isEmpty()){\r\n FlowGraphNode node = queue.pop();\r\n counter += node.outDeg();\r\n for(FlowGraphNode child : node.to){\r\n if(visited.add(child)){\r\n queue.add(child);\r\n }\r\n }\r\n }\r\n return counter;\r\n }", "public static int shortestDistance(Graph graph, Vertex a, Vertex b) {\n Set<List<Vertex>> listSetVertex=breadthFirstSearch(graph);\n int distance=graph.getVertices().size();\n for(List<Vertex> lv: listSetVertex){\n int aindex=lv.indexOf(a);\n int bindex=lv.indexOf(b);\n if(aindex>=0&&bindex>=0){\n distance=distance>Math.abs(aindex-bindex)?Math.abs(aindex-bindex):distance;\n }\n }\n return distance==graph.getVertices().size()?-1:distance;\n }", "public double getLength() {\n\t\treturn getDistance( p1, p2 );\n\t}", "@Override\n public List dijkstrasShortestPath(T start, T end) {\n Vertex<T> origin = new Vertex<>(start);\n Vertex<T> destination = new Vertex<>(end);\n List<Vertex<T>> path;\n\n settledNodes = new HashSet<>();\n unSettledNodes = new HashSet<>();\n distancesBetweenNodes = new HashMap<>();\n predecessors = new HashMap<>();\n\n distancesBetweenNodes.put(origin,0);\n unSettledNodes.add(origin);\n\n while(unSettledNodes.size() > 0){\n Vertex<T> minimumWeightedVertex = getMinimum(unSettledNodes);\n settledNodes.add(minimumWeightedVertex);\n unSettledNodes.remove(minimumWeightedVertex);\n findMinimumDistance(minimumWeightedVertex);\n }\n path = getPath(destination);\n return path;\n\n }", "public int calculateLineLength() {\n\t\tdouble x1 = pointOne.getxCoordinate();\n\t\tdouble y1 = pointOne.getyCoordinate();\n\n\t\t// storing pointTwo coordinates in x2 and y2\n\t\tdouble x2 = pointTwo.getxCoordinate();\n\t\tdouble y2 = pointTwo.getyCoordinate();\n\n\t\t// computing length\n\t\tint length = (int) Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n\t\treturn length;\n\t}", "public int length(int v, int w) {\n BreadthFirstDirectedPaths bfdpv = new BreadthFirstDirectedPaths(g, v);\n BreadthFirstDirectedPaths bfdpw = new BreadthFirstDirectedPaths(g, w);\n int anc = -1;\n int minLen = Integer.MAX_VALUE;\n for (int x = 0; x < g.V(); x++) {\n if (bfdpv.hasPathTo(x) && bfdpw.hasPathTo(x)) {\n int len = bfdpv.distTo(x) + bfdpw.distTo(x);\n if (len < minLen) {\n minLen = len;\n anc = x;\n }\n }\n }\n if (anc == -1) minLen = -1;\n return minLen;\n }", "int dijkstras(Node src, Node last) {\n\t\tPriorityQueue<Node> pq = new PriorityQueue<>((a, b) -> (a.getPrev().getDistance()) - (b.getPrev().getDistance()));\n\t\tsrc.getPrev().setDistance(0);\n\t\tlast.setFinished(true);\n\t\tpq.add(src);\n\t\tint count = 0;\n\t\t\n\t\twhile (!pq.isEmpty()) {\n\t\t\tNode n = pq.poll();\n\t\t\tcount++;\n\t\t\tif (n.isFinished()) return count;\n\t\t\tfor (Edge edge = n.getEdge(); edge != null; edge = edge.getNextEdge()) {\n\t\t\t\t\n\t\t\t\t//Checks to see if a path is shorter than the current one\n\t\t\t\tif (edge.getTo().getPrev().getDistance() > n.getPrev().getDistance() + edge.getWeight()) {\n\t\t\t\t\tedge.getTo().getPrev().setDistance(n.getPrev().getDistance() + edge.getWeight());\n\t\t\t\t\tedge.getTo().getPrev().setLast(n);\n\t\t\t\t\tpq.add(edge.getTo());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "public double getDistance(Node start, Node end) {\n\tstartX = start.getX();\n\tstartY = start.getY();\n\tendX = end.getX();\n\tendY = end.getY();\n\n int Xsquared = (startX - endX) * (startX - endX);\n\tint Ysquared = (startY - endY) * (startY - endY);\n\n\treturn Math.sqrt(Xsquared + Ysquared);\n\t\n }", "@Override\r\n\tpublic int getNumberOfSymmetricLinks()\r\n\t{\r\n\t\tCollection<Entity> vertices = directedGraph.getVertices();\r\n\t\tint symLinksSum = 0;\r\n\r\n\t\t// this can be done still more efficiently if i put the nodes in a list\r\n\t\t// and remove from the\r\n\t\t// list current node as well as its children after each loop\r\n\t\t// int progress = 0;\r\n\t\t// int max = vertices.size();\r\n\r\n\t\tfor (Entity source : vertices) {\r\n\t\t\t// ApiUtilities.printProgressInfo(progress, max, 100,\r\n\t\t\t// ApiUtilities.ProgressInfoMode.TEXT, \"Counting symmetric links\");\r\n\t\t\tfor (Entity target : getChildren(source)) {\r\n\t\t\t\t// progress++;\r\n\r\n\t\t\t\tif (isSymmetricLink(source, target)) {\r\n\t\t\t\t\tsymLinksSum++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn symLinksSum / 2;\r\n\t}", "private void computeShortestPath(){\n T current = start;\n boolean atEnd = false;\n while (!unvisited.isEmpty()&& !atEnd){\n int currentIndex = vertexIndex(current);\n LinkedList<T> neighbors = getUnvisitedNeighbors(current); // getting unvisited neighbors\n \n //what is this doing here???\n if (neighbors.isEmpty()){\n \n }\n \n // looping through to find distances from start to neighbors\n for (T neighbor : neighbors){ \n int neighborIndex = vertexIndex(neighbor); \n int d = distances[currentIndex] + getEdgeWeight(current, neighbor);\n \n if (d < distances[neighborIndex]){ // if this distance is less than previous distance\n distances[neighborIndex] = d;\n closestPredecessor[neighborIndex] = current; // now closest predecessor is current\n }\n }\n \n if (current.equals(end)){\n atEnd = true;\n }\n else{\n // finding unvisited node that is closest to start node\n T min = getMinUnvisited();\n if (min != null){\n unvisited.remove(min); // remove minimum neighbor from unvisited\n visited.add(min); // add minimum neighbor to visited\n current = min;\n }\n }\n }\n computePath();\n totalDistance = distances[vertexIndex(end)];\n }", "public double getEdgeLength(String id) {\n\t\treturn idToEdge.get(id).getWeight();\n\t}", "public int getEdgeWeight(String a, String b) {\n\t\tInteger weight = edges.get(a + \" \" + b);\n\t\treturn weight == null ? -1 : weight;\n\t}", "private HashMap<String, Integer> getShortestPath(Node start, Node end){\n if(start.equals(end)) {\n return getShortestPath(start);\n }\n return getShortestPathBetweenDifferentNodes(start,end);\n }", "public double length() {\n\t\treturn startPoint.distance(endPoint);\n\t}", "double estimatedDistanceToGoal(Vertex s, Vertex goal);", "public int length(int v, int w){\n\t BreadthFirstDirectedPaths BFSv =new BreadthFirstDirectedPaths(D,v);\n\t BreadthFirstDirectedPaths BFSw =new BreadthFirstDirectedPaths(D,w);\n\t \n\t int distance = Integer.MAX_VALUE;\n\t \n\t for (int vertex = 0 ; vertex < D.V();vertex++)\n\t\t if ((BFSv.hasPathTo(vertex))\n\t\t\t\t &&(BFSw.hasPathTo(vertex))\n\t\t\t\t &&(BFSv.distTo(vertex)+BFSw.distTo(vertex))<distance)\n\t\t {\n\t\t\t distance = BFSv.distTo(vertex)+BFSw.distTo(vertex);\n\t\t }\n\t if (distance != Integer.MAX_VALUE)\n\t\t return distance;\n\t else\n\t\t return -1;\n }", "int getWayLength();", "public double distance() {\n \tif (dist == -1) {\n \t\tdist = distance(vertex1, vertex2);\n \t}\n \n \treturn dist;\n }", "private int shortestDistance(Vertex dest) {\n Integer d = distance.get(dest);\n if (d==null)\n return Integer.MAX_VALUE;\n return d;\n }", "public int getPathCost(List<String> path) {\n\t\tif (path.size() == 1 || path.size() == 0)\n\t\t\treturn 0;\n\t\tint cost = 0;\n\t\tfor (int i = 1; i < path.size(); i++) {\n\t\t\tInteger weight = edges.get(path.get(i) + \" \" + path.get(i - 1));\n\t\t\tif (weight == null)\n\t\t\t\treturn -1;\n\t\t\tcost += weight;\n\t\t}\n\t\treturn cost;\n\t}", "@Override\r\n\tpublic double getAverageShortestPathLength()\r\n\t{\r\n\r\n\t\tif (averageShortestPathLength < 0) { // has not been initialized\r\n\t\t\tlogger.debug(\"Calling setGraphParameters\");\r\n\t\t\tsetGraphParameters();\r\n\t\t\t// logger.info(\"Sum = \" + (averageShortestPathLength *\r\n\t\t\t// (getNumberOfNodes() * (getNumberOfNodes()-1) / 2)));\r\n\t\t}\r\n\r\n\t\treturn averageShortestPathLength;\r\n\t}", "@Test\n public void sourceEqualsTarget() {\n graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(0, 2).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(1, 2).setDistance(1).set(speedEnc, 10, 10);\n assertPath(calcPath(0, 0, 0, 1), 0.3, 3, 300, nodes(0, 1, 2, 0));\n assertPath(calcPath(0, 0, 1, 0), 0.3, 3, 300, nodes(0, 2, 1, 0));\n // without restrictions the weight should be zero\n assertPath(calcPath(0, 0, ANY_EDGE, ANY_EDGE), 0, 0, 0, nodes(0));\n // in some cases no path is possible\n assertNotFound(calcPath(0, 0, 1, 1));\n assertNotFound(calcPath(0, 0, 5, 1));\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n\t\tif (v == null || w == null)\n\t\t\tthrow new IllegalArgumentException();\n\t\tBreadthFirstDirectedPaths bfsv = new BreadthFirstDirectedPaths(G, v);\n\t\tBreadthFirstDirectedPaths bfsw = new BreadthFirstDirectedPaths(G, w);\n\t\tint dv, dw, dsap = INFINITY;\n\t\tfor(int vertex = 0; vertex < G.V(); vertex++) {\n\t\t\tdv = bfsv.distTo(vertex);\n\t\t\tdw = bfsw.distTo(vertex);\n\t\t\tif (dv != INFINITY && dw != INFINITY && (dv + dw < dsap)) {\n\t\t\t\tdsap = dv + dw;\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn (dsap == INFINITY) ? -1 : dsap;\n\t}", "@Test\n void testShortestPathDist(){\n weighted_graph g = new WGraph_DS();\n for(int i = 1; i <= 7; i++){\n g.addNode(i);\n }\n g.connect(1,2,20);\n g.connect(1,5,15);\n g.connect(2,3,20);\n g.connect(5,6,15);\n g.connect(3,4,20);\n g.connect(6,4,15);\n g.connect(1,7,2);\n g.connect(7,4,50);\n weighted_graph_algorithms ga = new WGraph_Algo();\n ga.init(g);\n assertTrue(Double.compare(45,ga.shortestPathDist(1,4)) == 0);\n assertEquals(0,ga.shortestPathDist(1,1));\n assertEquals(-1,ga.shortestPathDist(1,200));\n }", "int getNumberOfEdges();", "public int length(int v, int w) {\n if (!isValid(v, w)) {\n throw new IndexOutOfBoundsException();\n }\n\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n\n int shortestPath = -1;\n Deque<Integer> ancestors = new ArrayDeque<>();\n\n for (int i = 0; i < this.digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n ancestors.push(i);\n }\n }\n\n for (Integer integer : ancestors) {\n int path = bfsV.distTo(integer) + bfsW.distTo(integer);\n if (shortestPath == -1 || path < shortestPath) {\n shortestPath = path;\n }\n }\n return shortestPath;\n }", "public int length(int v, int w) {\n BreadthFirstDirectedPaths bfdV = new BreadthFirstDirectedPaths(G, v);\n BreadthFirstDirectedPaths bfdW = new BreadthFirstDirectedPaths(G, w);\n int distance = Integer.MAX_VALUE;\n int commonAncestor = -1;\n for (int i = 0; i < G.V(); i++) {\n if (bfdV.hasPathTo(i) && bfdW.hasPathTo(i)) {\n int local = bfdV.distTo(i) + bfdW.distTo(i);\n if (local < distance) {\n distance = local;\n commonAncestor = i;\n }\n }\n }\n if (commonAncestor == -1) return commonAncestor;\n else return bfdV.distTo(commonAncestor) + bfdW.distTo(commonAncestor);\n }", "@Override\n\tpublic double shortestPathDist(int src, int dest) {\n\t\tif(src== dest ) return 0;\n\t\tif(this.GA.getNode(src)==null || this.GA.getNode(dest)==null) throw new RuntimeException(\"Wrong input,Missing nodes.\");\n\t\tsetNodes();\n\t\tnode_data temp = this.GA.getNode(src);\n\t\ttemp.setWeight(0);\n\t\tSTPRec(temp, this.GA.getNode(dest));\n\t\tdouble ans = this.GA.getNode(dest).getWeight();\n\t\treturn ans;\n\t}", "void shortestPaths( Set<Integer> nodes );", "private String getShortestPath(final Pair<Long, Long> src, final Pair<Long, Long> dst,\n final String passCode, final boolean first) {\n final var queue = new LinkedList<Node>();\n final var seen = new HashSet<Node>();\n //start from source\n final var srcNode = new Node( src, \"\" );\n queue.add( srcNode );\n seen.add( srcNode );\n\n int max = 0;\n while ( !queue.isEmpty() ) {\n final var curr = queue.remove();\n if ( curr.pos.equals( dst ) ) {\n if ( first ) {\n //shortest path\n return curr.path;\n } else {\n //store path length\n max = curr.path.length();\n //stop this path\n }\n } else {\n for ( final var neighbour : getNeighbours( curr, passCode ) ) {\n //unseen neighbour\n if ( seen.add( neighbour ) ) {\n //add to the queue\n queue.add( neighbour );\n }\n }\n }\n }\n\n return itoa( max );\n }", "public int numEdges();", "private static void computePaths(Vertex source) {\n source.minDistance = 0;\n // retrieves with log(n) time\n PriorityQueue<Vertex> vertexPriorityQueue = new PriorityQueue<>();\n\n //BFS traversal\n vertexPriorityQueue.add(source);\n\n // O((v + e) * log(v))\n while (!vertexPriorityQueue.isEmpty()) {\n // this poll always returns the shortest distance vertex at log(v) time\n Vertex vertex = vertexPriorityQueue.poll();\n\n //visit each edge exiting vertex (adjacencies)\n for (Edge edgeInVertex : vertex.adjacencies) {\n // calculate new distance between edgeInVertex and target\n Vertex targetVertex = edgeInVertex.target;\n double edgeWeightForThisVertex = edgeInVertex.weight;\n double distanceThruVertex = vertex.minDistance + edgeWeightForThisVertex;\n if (distanceThruVertex < targetVertex.minDistance) {\n // modify the targetVertex with new calculated minDistance and previous vertex\n // by removing the old vertex and add new vertex with updates\n vertexPriorityQueue.remove(targetVertex);\n targetVertex.minDistance = distanceThruVertex;\n // update previous with the shortest distance vertex\n targetVertex.previous = vertex;\n vertexPriorityQueue.add(targetVertex);// adding takes log(v) time because needs to heapify\n }\n }\n }\n }", "private void calculateShortestDistances (GraphStructure graph,int startVertex,int destinationVertex) {\r\n\t\t//traverseRecursively(graph, startVertex);\r\n\t\tif(pathList.contains(destinationVertex)) {\r\n\t\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\t\tint numberOfVertices=graph.getNumberOfVertices();\r\n\t\t\tSet<Integer> spanningTreeSet = new HashSet<Integer>();\r\n\t\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\t\tdistanceArray[startVertex]=0;\r\n\t\t\tadjacencyList = graph.getAdjacencyList();\r\n\t\t\tList<Edge> list;\r\n\t\t\tlist = graph.getAdjacencyList()[startVertex];\r\n\t\t\tif(startVertex==destinationVertex) {\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tfor(Edge value : list) {\r\n\t\t\t\t\tif(! isVisited[value.getVertex()]) {\r\n\t\t\t\t\t\tint sumOfWeightAndSourceVertexDistanceValue = distanceArray[startVertex] + value.getWeight();\r\n\t\t\t\t\t\tint distanceValueOfDestinationVertex = distanceArray[value.getVertex()];\r\n\t\t\t\t\t\tif( sumOfWeightAndSourceVertexDistanceValue < distanceValueOfDestinationVertex ) {\r\n\t\t\t\t\t\t\tdistanceArray[value.getVertex()] = sumOfWeightAndSourceVertexDistanceValue;\r\n\t\t\t\t\t\t\tshortestPathList.add(value.getVertex());\r\n\t\t\t\t\t\t\tcalculateShortestDistances(graph,value.getVertex(), distanceValueOfDestinationVertex);\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t} \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*for(Integer value : spanningTreeSet) {\r\n\t\t\t\tSystem.out.print(value+\" \");\r\n\t\t\t}*/\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No route is present between given vertices !\");\r\n\t\t}\r\n\t}", "public int getNeighbourDistance(Vertex v1, Vertex v2){\n for(Edge edge: edges){\n if(v1 == edge.getSource() && v2 == edge.getDestination())\n return edge.getWeight();\n if(v1 == edge.getDestination() && v2 == edge.getSource())\n return edge.getWeight();\n }\n return -1;\n }", "public static String shortestPath(Vertice v1, Vertice v2) {\r\n\t\tArrayList<Float> menorCaminho = new ArrayList<Float>();\r\n\t\tmenorCaminho = menorCaminho(v1, v2, menorCaminho);\r\n\r\n\t\tif (!menorCaminho.isEmpty()) {\r\n\t\t\tString retorno = \"\";\r\n\t\t\tfor (int i = 1; i < menorCaminho.size(); i++) {\r\n\t\t\t\tretorno += menorCaminho.get(i) + \" \";\r\n\t\t\t}\r\n\t\t\treturn retorno;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "public int shortestPath(Village startVillage, Village targetVillage) {\n// setting the initial point 's minimum distance to zera\n startVillage.setMinDistance(0);\n// accourting to bellman ford if there are n number of dots then n-1 iterations to be done to find the minimum distances of every dot from one initial dot\n int length = this.villageList.size();\n// looping n-1 times\n for (int i = 0; i < length - 1; i++) {\n// looping through all the roads and mark the minimum distances of all the possible points\n for (Road road : roadList) {\n\n\n// if the road is a main road then skip the path\n if (road.getWeight() == 900)\n continue; //why 900 ? : just a random hightest number as a minimum distance and same 900 is used as a mix number\n Village v = road.getStartVertex();\n Village u = road.getTargetVertex();\n// if the newly went path is less than the path it used to be the update the min distance of the reached vertex\n int newLengtha = v.getMinDistance() + road.getWeight();\n if (newLengtha < u.getMinDistance()) {\n u.setMinDistance(newLengtha);\n u.setPreviousVertex(v);\n }\n int newLengthb = u.getMinDistance() + road.getWeight();\n if (newLengthb < v.getMinDistance()) {\n v.setMinDistance(newLengthb);\n v.setPreviousVertex(v);\n }\n }\n }\n// finally return the minimum distance\n return targetVillage.getMinDistance();\n }", "private Path findShortestPath(Address start, Address destination) throws Exception{\n HashMap<Intersection, Segment> pi = dijkstra(start);\n Segment seg = pi.get(destination);\n if(seg == null){\n throw new Exception();\n }\n LinkedList<Segment> newPathComposition = new LinkedList<>();\n Path newPath = new Path(start, destination, newPathComposition);\n newPathComposition.add(seg);\n while (!seg.getOrigin().equals(start)) {\n Intersection s = seg.getOrigin();\n seg = pi.get(s);\n if(seg == null){\n throw new Exception();\n }\n newPathComposition.add(seg);\n }\n Collections.reverse(newPathComposition);\n newPath.setSegmentsOfPath(newPathComposition);\n return newPath;\n }", "public static int diameter(Graph graph) {\n Set<List<Vertex>> listSetVertex=breadthFirstSearch(graph);\n int distance=0;\n for(List<Vertex> lv: listSetVertex){\n for(Vertex va:lv){\n for(Vertex vb:lv){\n if(va.equals(vb)){\n continue;\n }\n int shortDistance=shortestDistance(graph, va, vb);\n distance=distance<shortDistance?shortDistance:distance;\n }\n }\n\n }\n return distance; // this should be changed\n }", "public Double getPathLenght (List<Long> path){\n \n Double res = 0.0;\n \n // thread save reading \n synchronized (vertexes){ \n for(int i=0; i<path.size()-1; i++){\n\n Map<Long,Edge> edges =vertexes.get(path.get(i)).allEdges();\n\n Edge edge = edges.get(path.get(i+1));\n\n if(edge != null){\n res += edge.getWeight();\n }else{\n return null;\n }\n\n }\n }\n \n return res;\n }", "public double length(){\n return end.distance(getStart());\n }", "public double distance(Area start, Area end, boolean force) {\n List<EntityID> pathGraph = a_star.getShortestGraphPath(start, end, force);\n if (pathGraph.isEmpty())\n return Double.MAX_VALUE;\n double distance = 0;\n for (int i = 0; i < pathGraph.size() - 1; i++) {\n int j = i + 1;\n EntityID nodeID1 = pathGraph.get(i);\n EntityID nodeID2 = pathGraph.get(j);\n Node node1 = graph.getNode(nodeID1);\n Node node2 = graph.getNode(nodeID2);\n distance += Util.distance(node1.getPosition(), node2.getPosition());\n }\n return distance;\n }", "public static void computePaths(Vertex source){\n\t\tsource.minDistance=0;\n\t\t//visit each vertex u, always visiting vertex with smallest minDistance first\n\t\tPriorityQueue<Vertex> vertexQueue=new PriorityQueue<Vertex>();\n\t\tvertexQueue.add(source);\n\t\twhile(!vertexQueue.isEmpty()){\n\t\t\tVertex u = vertexQueue.poll();\n\t\t\tSystem.out.println(\"For: \"+u);\n\t\t\tfor (Edge e: u.adjacencies){\n\t\t\t\tVertex v = e.target;\n\t\t\t\tSystem.out.println(\"Checking: \"+u+\" -> \"+v);\n\t\t\t\tdouble weight=e.weight;\n\t\t\t\t//relax the edge (u,v)\n\t\t\t\tdouble distanceThroughU=u.minDistance+weight;\n\t\t\t\tif(distanceThroughU<v.minDistance){\n\t\t\t\t\tSystem.out.println(\"Updating minDistance to \"+distanceThroughU);\n\t\t\t\t\tv.minDistance=distanceThroughU;\n\t\t\t\t\tv.previous=u;\n\t\t\t\t\t//move the vertex v to the top of the queue\n\t\t\t\t\tvertexQueue.remove(v);\n\t\t\t\t\tvertexQueue.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int length(int v, int w) {\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n int min = Integer.MAX_VALUE;\n for (int i = 0; i < digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i) && bfsV.distTo(i) + bfsW.distTo(i) < min) {\n min = bfsV.distTo(i) + bfsW.distTo(i);\n }\n }\n return min == Integer.MAX_VALUE ? -1 : min;\n }", "public int getPathWeight(String path) {\n List<Character> list = path.chars().mapToObj(l -> (char) l).collect(Collectors.toList());\n if(list.size()==2) {\n // If we have only two nodes on our path - return existing edge weight\n return getWeight(getNode(list.get(0).toString()), getNode(list.get(1).toString()));\n } else {\n // If we have more than two nodes on our path\n int w = 0;\n for(int i=0; i<list.size()-1; i++) {\n int localWeight = getWeight(getNode(list.get(i).toString()), getNode(list.get(i + 1).toString()));\n // Handle case of non existing connection\n if(localWeight == 0) {\n logger.warn(\"NO SUCH TRACE: \" + list.get(i).toString() + \"-\" + list.get(i + 1).toString());\n return 0;\n }\n w = w + getWeight(getNode(list.get(i).toString()), getNode(list.get(i + 1).toString()));\n }\n return w;\n }\n\n }", "public int minDistanceDP(String s1, String s2){\n\t\tint [][] dp = new int [s1.length()+1][s2.length()+1];\n\t\tfor(int i = 0 ; i <= s1.length(); i ++){\n\t\t\tfor(int j = 0; j <= s2.length(); j++){\n\t\t\t\tif (s1.charAt(i) == s2.charAt(j)){\n\t\t\t\t\tdp[i][j] = 1 + dp[i-1][j-1];\n\t\t\t\t}else{\n\t\t\t\t\tdp[i][j] = Math.max(dp[i-1][j], dp[i][j-1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn s1.length() + s2.length() - 2*dp[s1.length()][s2.length()];\n\t}", "public double getLength()\n {\n return Math.sqrt( Math.pow((x2-x1),2.0) + Math.pow((y2-y1),2.0) );\n }", "public static <G extends BaseWeightedGraph<V,E,W>,V,E extends WeightedEdge<V,W>, W extends Number & Comparable<W>> List<E> findShortestPathInt(G graph, V source, V sink){\r\n\t\t// check graph contains source and sink\r\n\t\tSet<V> vertecies = graph.getVertices();\r\n\t\tif( !(vertecies.contains(source) && vertecies.contains(sink)) ){\r\n\t\t\tthrow new IllegalArgumentException(\"BaseGraph must contain both source and sink\");\r\n\t\t}\r\n\t\t\r\n\t\tPriorityQueue<WeightedPathChain<V,E,W,Integer>> pq = new PriorityQueue<WeightedPathChain<V,E,W,Integer>>(); \r\n\t\tHashSet<V> checked = new HashSet<V>();\r\n\t\tHashMap<V,WeightedPathChain<V,E,W,Integer>> map = new HashMap<V,WeightedPathChain<V,E,W,Integer>>();\r\n\t\taddOrUpdate(map,pq,source,Integer.valueOf(0));\r\n\t\twhile(!pq.isEmpty()&&!sink.equals(pq.peek().vertex)){\r\n\t\t\tWeightedPathChain<V,E,W,Integer> current = pq.poll(); // poll lowest level vertex\r\n\t\t\tchecked.add(current.vertex); // add vertex to checked set\r\n\t\t\tfor (E edge :graph.getOutgoingEdges(current.vertex)){\t// for each outgoing edge \r\n\t\t\t\tif(!checked.contains(edge.getOpposingVertex(current.vertex))){\t\t// if opposing vertex has not been checked \r\n\t\t\t\t\taddOrUpdate(map,\r\n\t\t\t\t\t\t\t\tpq,\r\n\t\t\t\t\t\t\t\tedge.getOpposingVertex(current.vertex),\r\n\t\t\t\t\t\t\t\tInteger.valueOf(map.get(current.vertex).val+edge.getWeight().intValue() ) ,\r\n\t\t\t\t\t\t\t\tedge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tArrayList<V> path = new ArrayList<V>(); // vertex path \r\n\t\tArrayList<E> edgePath = new ArrayList<E>(); // edge path\r\n\t\tboolean run = true; \r\n\t\tif(!pq.isEmpty()&&pq.peek().vertex.equals(sink)) { // \r\n\t\t\tWeightedPathChain<V,E,W,Integer> vv = pq.poll();\r\n\t\t\tpath.add(vv.vertex);\r\n\t\t\tedgePath.add(vv.edge);\r\n\t\t\twhile(run) {\r\n\t\t\t\tvv = map.get(vv.edge.getOpposingVertex(vv.vertex));\r\n\t\t\t\tif(vv.vertex.equals(source)) {\r\n\t\t\t\t\trun=false;\r\n\t\t\t\t\tpath.add(vv.vertex);\r\n\t\t\t\t}\r\n\t\t\t\telse {\t\r\n\t\t\t\t\tedgePath.add(vv.edge);\r\n\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return path;\r\n\t\t\r\n\t\tCollections.reverse(edgePath);\r\n\t\treturn edgePath;\r\n\t}", "private double oneWayDistance(Shape other, Vector3D direction) {\n // for every vertex in this shape,\n // would it intersect the other shape if moved in direction dir?\n // if so, at what distance? Find the min.\n\n Vector3D d = direction.normalize();\n double[] v = this.getTransformedVertices();\n double tmin = -1;\n\n for (int i = 0; i < v.length; i += 3) {\n Vector3D vertex = new Vector3D(v[i], v[i + 1], v[i + 2]);\n double t = other.rayIntersect(vertex, d, false, null, null);\n tmin = Util.Math.minIfValid(t, tmin);\n }\n\n return tmin;\n }", "public int calculateDistance(String route) {\r\n if(route.length() < 2)\r\n throw new IllegalArgumentException(\"route is too short\");\r\n \r\n // find first vertex\r\n Vertex currentVertex = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == route.charAt(0)) {\r\n currentVertex = v;\r\n break;\r\n }\r\n }\r\n if(currentVertex == null) {\r\n throw new IllegalArgumentException(\"Vertex \" + route.charAt(0) + \" not found\");\r\n }\r\n \r\n int totalDistance = 0;\r\n for(int i = 1; i < route.length(); ++i) {\r\n char nextVertexName = route.charAt(i);\r\n Edge travelledEdge = currentVertex.getJoiningEdgeByName(nextVertexName);\r\n \r\n // check edge between vertices exists, and if not throw exception\r\n if(travelledEdge == null) {\r\n throw new IllegalArgumentException(\"Vertex \" + route.charAt(i) + \" not found\");\r\n }\r\n \r\n // travel edge to next vertex\r\n totalDistance += travelledEdge.getDistance();\r\n currentVertex = travelledEdge.getOppositeVertex(currentVertex);\r\n }\r\n \r\n return totalDistance;\r\n }", "public int getNumberOfEdges();", "private static double getDistance(final WayNodeOSM a, final WayNodeOSM b) {\n \t\tdouble latA = a.getLatitude()/180*Math.PI;\n \t\tdouble latB = b.getLatitude()/180*Math.PI;\n \t\tdouble lonDif = (b.getLongitude() - a.getLongitude())/180*Math.PI;\n \t\treturn (Math.acos((Math.sin(latA) * Math.sin(latB)) + (Math.cos(latA) * Math.cos(latB) * Math.cos(lonDif))) * 6367500);\n \t}", "public int getShortestPathLatency(Node node) {\n HashMap<String, Integer> pathWeight = getShortestPath(node);\n if(pathWeight!=null && pathWeight.size()==1) {\n return pathWeight.entrySet().iterator().next().getValue();\n }\n return 0;\n }", "Edge(Node from,Node to, int length){\n this.source=from;\n this.destination=to;\n this.weight=length;\n }", "public int length(int v, int w) {\n\n if (v < 0 || v >= dg.V() || w < 0 || w >= dg.V())\n throw new IllegalArgumentException(\"vertex is not between 0 and \" + (dg.V() - 1));\n\n// ancestor(v,w);\n\n // use bfs to find the path and the shortest distance from v to every vertices in the graph\n // use two arrays, one record the last vertex, edgeTo[]. Another record the distance, distTo[].\n BreadthFirstDirectedPaths bfs1 = new BreadthFirstDirectedPaths(dg, v);\n BreadthFirstDirectedPaths bfs2 = new BreadthFirstDirectedPaths(dg, w);\n\n int ancestor = ancestor(v, w);\n\n if (ancestor == -1) {\n return -1;\n } else {\n return bfs1.distTo(ancestor) + bfs2.distTo(ancestor);\n }\n\n }" ]
[ "0.72807735", "0.71882457", "0.6976161", "0.6873071", "0.6848002", "0.6751357", "0.6705223", "0.67011863", "0.66636837", "0.6661253", "0.6633257", "0.65221334", "0.63976425", "0.6312366", "0.6294262", "0.62928694", "0.6250491", "0.6197933", "0.6128361", "0.6109752", "0.60921955", "0.60920686", "0.6085842", "0.6079189", "0.6072079", "0.6063978", "0.60306704", "0.60226923", "0.60086095", "0.5988317", "0.5986336", "0.59822524", "0.5959619", "0.5955601", "0.5947169", "0.5933844", "0.59328806", "0.5918452", "0.5914607", "0.5885674", "0.588389", "0.5868059", "0.58463156", "0.5845405", "0.5832484", "0.5825676", "0.5824695", "0.58219606", "0.5811522", "0.58067065", "0.58035725", "0.5797493", "0.57953143", "0.57949686", "0.57923305", "0.5779582", "0.57795185", "0.5773339", "0.5768878", "0.57678604", "0.57601714", "0.57484645", "0.5740749", "0.57379365", "0.5735783", "0.57342905", "0.5713354", "0.57117224", "0.5707517", "0.5705337", "0.56818223", "0.5677546", "0.56719923", "0.5670495", "0.56569505", "0.56546164", "0.56528056", "0.5649442", "0.56461054", "0.56437033", "0.56384844", "0.5636361", "0.56350225", "0.563496", "0.5622392", "0.56178284", "0.5617245", "0.5613968", "0.5608998", "0.56036294", "0.5602247", "0.5600867", "0.5597881", "0.5595", "0.5580938", "0.5579945", "0.5567396", "0.5566739", "0.5566371", "0.55648106" ]
0.67033833
7
Get a list of all routes with maximum distance distance (excluding first and last edge), starting from edge from
public synchronized List<List<String> > getRoutesStartingFrom(String from, double distance) { return algos.getRoutesWithinDisctance(getEdge(from), distance); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer numberOfDifferentRoutes(MultiDirectionalNode startNode,\n\t\t\tMultiDirectionalNode endNode, Integer maxDistance) {\n\t\treturn null;\n\t}", "@Override\n public ArrayList<GraphEdge> getRoute(GraphNode a, GraphNode b) {\n \tHashMap<GraphNode, Double> distances = new HashMap<GraphNode, Double>();\n \tHashMap<GraphNode, GraphEdge> predecessor = new HashMap<GraphNode, GraphEdge>();\n \tHashSet<GraphNode> visited = new HashSet<GraphNode>();\n \t\n \tArrayList<GraphEdge> result = new ArrayList<GraphEdge>();\n\t\n \t//Initialize distances, predecessor, and visited\n \tfor(GraphNode g : drivableNodes) {\n \t distances.put(g, Double.MAX_VALUE);\n \t predecessor.put(g, null);\n \t}\n \t\n \tint remaining = drivableNodes.size();\n \t\n \t//Put starting node\n \tdistances.put(a, 0.0);\n \t//predecessor.put(a, null);\n \t\n \t//Main loop\n \twhile(remaining > 0) {\n \t GraphNode closest = null;\n \t double minDist = Double.MAX_VALUE;\n\n \t for(GraphNode n : distances.keySet()) {\n \t\tdouble dist = distances.get(n);\n \t\tif(!visited.contains(n) &&\n \t\t\tdist != Double.MAX_VALUE &&\n \t\t\t(minDist == Double.MAX_VALUE || dist < minDist)) {\n \t\t closest = n;\n \t\t minDist = dist;\n \t\t}\n \t }\n \t \n \t if(closest == null)\n \t\treturn null;\n \t \n \t if(closest.equals(b))\n \t\tbreak;\n \t \n \t visited.add(closest);\n \t \n \t for(GraphEdge edge : closest.getEdges()) {\n \t\tGraphNode adjacent = edge.getOtherNode(closest);\n \t\tif(adjacent != null && !visited.contains(adjacent)) {\n \t\t //Map distance value for the other Node\n \t\t double otherDist = distances.get(adjacent);\n \t\t //Weight of edge from closest node to adjacent node\n \t\t double weight = edge.getWeight();\n \t\t String way = edge.getWay();\n \t\t \n \t\t if(otherDist == Double.MAX_VALUE ||\n \t\t\t weight + minDist < otherDist) {\n \t\t\tdistances.put(adjacent, weight + minDist);\n \t\t\t\n \t\t\t//Make new edge in correct order\n \t\t\tGraphEdge corrected = new GraphEdge(closest, adjacent, weight, way);\n \t\t\t\n \t\t\tpredecessor.put(adjacent, corrected);\n \t\t }\n \t\t}\n \t }\n\n \t remaining--;\n \t}\n \t\n \t//Backtrack to build route\n \tif(distances.get(b) == Double.MAX_VALUE) {\n \t return null;\n \t} else {\n \t //buildPath(predecessor, a, b, result);\n \t //Non recursive version\n \t Stack<GraphEdge> stack = new Stack<GraphEdge>(); \n \t while(!b.equals(a)) {\n \t\tGraphEdge edge = predecessor.get(b);\n \t\t\n \t\t//Make sure vertices are in correct order\n \t\tGraphNode start = edge.getOtherNode(b);\n \t\t//double weight = edge.getWeight();\n \t\t//GraphEdge corrected = new GraphEdge(start, b, weight);\n \t\t\n \t\tstack.push(edge);\n \t\tb = start;\n \t }\n \t \n \t while(!stack.isEmpty()) {\n \t\tGraphEdge edge = stack.pop();\n \t\tresult.add(edge);\n \t }\n \t}\n \t\n\treturn result;\n }", "public String calculateDiffRoutes(String start, String end, int maxDistance){\r\n AtomicInteger count = new AtomicInteger();\r\n int total = 0;\r\n Deque<Map.Entry<String, Integer>> queue = new LinkedList<>();\r\n diffRoutes(start, end, maxDistance, queue, count, total);\r\n return String.valueOf(count);\r\n }", "private int findAllRoutesBetweenTowns(Town origin, \n\t\t\tTown destination, int weight, \n\t\t\tint maxDistance) {\n\t\tint routes = 0;\n\t\tif (this.routingTable.containsKey(origin) && \n\t\t\t\tthis.routingTable.containsKey(\n\t\t\t\t\t\tdestination)) {\n\n\t\t\tEdge edge = this.routingTable.get(origin);\n\t\t\twhile (edge != null) {\n\t\t\t\tweight += edge.weight;\n\t\t\t\tif (weight <= maxDistance) {\n\t\t\t\t\tif (edge.destination.equals(\n\t\t\t\t\t\t\tdestination)) {\n\t\t\t\t\t\troutes++;\n\t\t\t\t\t\troutes += \n\t\t\t\t\t\t\tfindAllRoutesBetweenTowns(\n\t\t\t\t\t\t\t\tedge.destination, \n\t\t\t\t\t\t\t\tdestination, weight, \n\t\t\t\t\t\t\t\tmaxDistance);\n\t\t\t\t\t\tedge = edge.next;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\troutes += \n\t\t\t\t\t\t\tfindAllRoutesBetweenTowns(\n\t\t\t\t\t\t\t\tedge.destination, \n\t\t\t\t\t\t\t\tdestination, weight, \n\t\t\t\t\t\t\t\tmaxDistance);\n\t\t\t\t\t\tweight -= edge.weight;\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t\tweight -= edge.weight;\n\n\t\t\t\tedge = edge.next;\n\t\t\t}\n\t\t} else {\n\t\t\tnoRouteException();\n\n\t\t}\n\t\treturn routes;\n\n\t}", "public double getMaxSourceDistance();", "@Override\n public PossibleRoutesList getAllPossibleRoutes(int tripRequestID, int maximumMatches) throws NoResultsFoundException {\n TripRequest requestToMatch = getTripRequest(tripRequestID);\n Predicate<PossibleRoute> timeMatchPredicate = possibleRoute -> {\n if (requestToMatch.isTimeOfArrival()) {\n return possibleRoute.getArrivalTime().equals(requestToMatch.getRequestTime());\n } else {\n return possibleRoute.getDepartureTime().equals(requestToMatch.getRequestTime());\n }\n };\n Predicate<PossibleRoute> continuousRidePredicate = possibleRoute ->\n !requestToMatch.isContinuous() || possibleRoute.isContinuous();\n\n PossibleRoutesList possibleRoutes = getTripOffersGraph()\n .getAllPossibleRoutes(\n requestToMatch.getSourceStop(),\n requestToMatch.getDestinationStop(),\n requestToMatch.getRequestTime())\n .stream()\n .filter(timeMatchPredicate)\n .filter(continuousRidePredicate)\n .limit(maximumMatches)\n .collect(Collectors.toCollection(PossibleRoutesList::new));\n\n if (possibleRoutes.isEmpty()) {\n throw new NoResultsFoundException();\n } else {\n return possibleRoutes;\n }\n\n }", "public Map<String, Integer> findPossibilities(char startName, char finishName, int maxDistance) {\r\n Map<String, Integer> routes = new TreeMap<>();\r\n \r\n // get vertex identified by startName\r\n Vertex startVertex = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == startName) {\r\n startVertex = v;\r\n break;\r\n }\r\n }\r\n if(startVertex == null) {\r\n throw new IllegalArgumentException(\"Vertex \" + startName + \" is not in graph\");\r\n }\r\n \r\n // get vertex identified by finishName\r\n Vertex finishVertex = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == finishName) {\r\n finishVertex = v;\r\n break;\r\n }\r\n }\r\n if(finishVertex == null) {\r\n throw new IllegalArgumentException(\"Vertex \" + finishName + \" is not in graph\");\r\n }\r\n \r\n // search which will do DFS and alter routes whenever it finds a route\r\n search(routes, startVertex, finishVertex, maxDistance, Character.toString(startName), 0);\r\n \r\n /*for(Edge e : startVertex.getIncidentEdges()) {\r\n if(e.getDistance() <= maxDistance)\r\n search(routes, e.getOppositeVertex(startVertex), finishVertex, maxDistance, Character.toString(startName) + e.getOppositeVertex(startVertex).getName(), e.getDistance());\r\n }*/\r\n \r\n return routes;\r\n }", "private List<BoardPos> filterShorter(List<BoardPos> route) {\n int maxDepth = route.isEmpty() ? 0 : route.get(route.size() - 1).routeLen();\n Iterator<BoardPos> it = route.iterator();\n\n while (it.hasNext()) {\n BoardPos pos = it.next();\n if (pos.routeLen() != maxDepth)\n it.remove();\n }\n\n return route;\n }", "Execution getFarthestDistance();", "private List<Graph.Edge> getEdge(PathMap map) {\n // record the visited coordinates\n List<Coordinate> visited = new ArrayList<>();\n // get all coordinates from the map\n List<Coordinate> allCoordinates = map.getCoordinates();\n // for record all generated edges\n List<Graph.Edge> edges = new ArrayList<>();\n\n\n while (visited.size() <= allCoordinates.size() - 1) {\n for (Coordinate temp : allCoordinates) {\n\n if (visited.contains(temp)) {\n continue;\n }\n visited.add(temp);\n List<Coordinate> neighbors = map.neighbours(temp);\n for (Coordinate tempNeighbour : neighbors) {\n edges.add(new Graph.Edge(temp, tempNeighbour, tempNeighbour.getTerrainCost()));\n }\n }\n }\n // trim impassable coordinates\n List<Graph.Edge> fEdges = new ArrayList<>();\n for (Graph.Edge dd : edges) {\n if (dd.startNode.getImpassable() || dd.endNode.getImpassable()) {\n continue;\n }\n fEdges.add(dd);\n }\n return fEdges;\n }", "@Override\n\tpublic List<Edge> getAllMapEdges() {\n\n\t\tList<Edge> res = new ArrayList<Edge>();\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\t\t\tString getAllEdges = \"SELECT node_from, node_to, distance FROM routefinder.maprelations\";\n\t\t\tresultSet = null;\n\t\t\tpstmt = conn.prepareStatement(getAllEdges);\n\t\t\tresultSet = pstmt.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tEdge edge = new Edge();\n\t\t\t\tedge.setNode1(Database.getNodeFromId(resultSet.getInt(\"node_from\")));\n\t\t\t\tedge.setNode2(Database.getNodeFromId(resultSet.getInt(\"node_to\")));\n\t\t\t\tedge.setDist(resultSet.getDouble(\"distance\"));\n\t\t\t\tres.add(edge);\n\t\t\t}\n\t\t\treturn res;\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcConnect.resultClose(resultSet, pstmt);\n\t\t}\n\n\t\treturn null;\n\t}", "public double getMaximumDistance() {\n double l = 0;\n int stop = getDistanceEnd();\n\n calculateDistances();\n\n for (int i = 0; i < stop; i++) {\n l = Math.max(l, distances[i]);\n }\n\n return l;\n }", "private static int RouteAnalysis(int maxDistance, int finalDestination, ArrayList<Integer> gasStations) {\n\n int numStops = 0;\n int max = maxDistance;\n\n /*\n If the distance between the last gas station and the destination is greater than the maximum\n distance that the car can travel, the trip is considered to be impossible along this route and/or\n in this car. \n */\n if (finalDestination - gasStations.get(gasStations.size() - 1) > maxDistance) {\n return -1;\n }\n\n /*\n This process checks to see if there are any consecutive gas stations that are separated by a distance\n greater than the maximum distance that the car can travel on a single fill-up. If such a gap\n is found, the trip is considered to be impossible. \n */\n int x = 0;\n while (x + 1 < gasStations.size()) {\n if (gasStations.get(x + 1) - gasStations.get(x) > max) {\n return -1;\n }\n x++;\n }\n\n /*\n By this point, the trip is assumed to be possible. With this process the car will stop at the gas station\n before the gas station whose distance from the car's current location is greater than the car can travel\n on a single fill-up. \n */\n for (int i = 0; i < gasStations.size(); i++) {\n\n if (gasStations.get(i) > maxDistance) {\n /*\n Since all of the input data is relative to the car's starting position, the maximum distance\n that the car can travel is updated by adding to it the number of miles that the car has already\n traveled. For instance, if the car travels from mile 0 to a gas station located at mile 290, and\n the maximum distance that the car can travel is 400 miles, then from mile 290 the car can travel\n to mile 690. \n */\n maxDistance += gasStations.get(i - 1);\n numStops++;\n }\n\n }\n\n /*\n This last process essentially checks to see if the distance between the last gas station where the driver stopped\n and the final destination is greater than the maximum distance the car can travel. If it is, then the driver should\n stop at the last gas station on the route to fill up before proceeding to the final destination. \n */\n if (finalDestination - maxDistance > max) {\n maxDistance += gasStations.get(gasStations.size() - 1);\n numStops++;\n }\n\n return numStops;\n\n }", "public Collection<LazyRelationship2> getEdges() {\n long relCount=0;\n ArrayList l = new ArrayList();\n \n for(Path e : getActiveTraverser()){\n for(Path p : getFlushTraverser(e.endNode())){\n if((relCount++%NEO_CACHE_LIMIT)==0){\n l.add(p.lastRelationship());\n clearNeoCache();\n }\n }\n }\n return l; \n }", "public int maxDistance(int[][] grid) {\n boolean[][] visited = new boolean[grid.length][grid[0].length]; // mark which cells have been already been visited\n Queue<int[]> queue = new LinkedList<>();\n\n //put 1 cells into queue to start with and mark then visited\n for (int i = 0; i < grid.length; i++) {\n for (int j = 0; j < grid[0].length; j++) {\n if (grid[i][j] == 1) {\n queue.add(new int[]{i,j});\n visited[i][j] = true; //mark cell as visited\n }\n }\n }\n\n int distance = -1;\n int[][] directions = {{-1,0}, {0,1}, {1,0}, {0,-1}}; //all possible 4 directions\n while (!queue.isEmpty()) {\n int size = queue.size(); //since this is BFS we need to traverse level by level\n\n while (size > 0) { //iterate only till nodes in current level\n int[] pair = queue.poll();\n\n for (int[] direction : directions) { // check in all possible directions\n int x = pair[0] + direction[0];\n int y = pair[1] + direction[1];\n\n //if target cell is with in bounds and is not visited, add it to queue\n if (x >= 0 && x < grid.length && y >= 0 && y < grid[0].length && !visited[x][y]) {\n queue.add(new int[]{x,y});\n visited[x][y] = true;\n }\n }\n size--;\n }\n distance++; //increment the size only after level traversal is complete\n }\n\n //this is required because distance can be zero. This is possible if grid contains all 1's and all 1's are\n //consider level 1 as we are starting with them. So, need to return -1\n return distance == 0 ? -1 : distance;\n }", "@Override\n\tpublic List<Edge> getAllEdges() {\n\n\t\tList<Edge> res = new ArrayList<Edge>();\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\t\t\tString getAllEdges = \"SELECT node_from, node_to, distance FROM routefinder.relations\";\n\t\t\tresultSet = null;\n\t\t\tpstmt = conn.prepareStatement(getAllEdges);\n\t\t\tresultSet = pstmt.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tEdge edge = new Edge();\n\t\t\t\tedge.setNode1(Database.getNodeFromId(resultSet.getInt(\"node_from\")));\n\t\t\t\tedge.setNode2(Database.getNodeFromId(resultSet.getInt(\"node_to\")));\n\t\t\t\tedge.setDist(resultSet.getDouble(\"distance\"));\n\t\t\t\tres.add(edge);\n\t\t\t}\n\n\t\t\treturn res;\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcConnect.resultClose(resultSet, pstmt);\n\t\t}\n\n\t\treturn null;\n\t}", "@RequestMapping(value = \"/max_weight_dag\", method = RequestMethod.GET)\r\n @ResponseBody\r\n public DirectedGraph getMaxWeightDAG() {\n UndirectedGraph graph = new UndirectedGraph(5);\r\n graph.addEdge(0, 1, 10.0);\r\n graph.addEdge(1, 2, 11.0);\r\n graph.addEdge(2, 3, 13.0);\r\n graph.addEdge(3, 4, 14.0);\r\n graph.addEdge(4, 0, 15.0);\r\n return graph;\r\n }", "public final int getMaxLinkDistance() {\n\t\tint r = 0;\n\t\tlockMe(this);\n\t\tr = maxLinkDistance;\n\t\tunlockMe(this);\n\t\treturn r;\n\t}", "public Observable<Stop> getEndPoints() {\n return loadRoutesData()\n .flatMap(availableRoutes ->\n Observable.from(availableRoutes.routes()))\n .flatMap(route -> Observable.from(route.segments()).last())\n .map(segment -> segment.stops().get(segment.stops().size() - 1));\n\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n mNodes = sc.nextInt();\n mEdges = sc.nextInt();\n \n mDistances = new int[mNodes+1][mNodes+1];\n \n for (int i =1; i <= mNodes; i++)\n {\n \n for (int j =1; j <=mNodes;j++)\n {\n mDistances[i][j] = Integer.MAX_VALUE;\n \n }\n }\n \n for (int i =1; i <= mNodes; i++)\n {\n mDistances[i][i] =0;\n }\n \n for (int i = 0 ; i < mEdges; i++)\n {\n int from = sc.nextInt();\n int to = sc.nextInt();\n \n mDistances[from][to] = sc.nextInt();\n \n \n }\n \n \n //FW\n \n for (int k = 1; k <= mNodes; k++)\n {\n \n for (int i = 1; i <= mNodes; i++)\n {\n \n for (int j = 1; j <= mNodes; j++)\n {\n \n if (mDistances[i][k]!= Integer.MAX_VALUE && mDistances[k][j] != Integer.MAX_VALUE )\n {\n if (mDistances[i][j] > mDistances[i][k] + mDistances[k][j])\n {\n \n mDistances[i][j] = mDistances[i][k] + mDistances[k][j];\n }\n \n }\n \n }\n }\n \n }\n \n mQueries = sc.nextInt();\n \n for (int i =0; i < mQueries; i++)\n {\n int dist = mDistances[sc.nextInt()][sc.nextInt()];\n \n if (dist == Integer.MAX_VALUE)\n {\n dist = -1;\n }\n \n System.out.println(dist);\n \n }\n \n \n \n \n \n \n \n \n \n }", "List findByDistance(Double latitude, Double longitude, int maxDistance, int maxResults);", "public void setMax(){\n for (int i = 0; i < Nodes.size(); i++){\n this.MinDistance.add(Double.MAX_VALUE);\n }\n }", "private int best_Broadcasting_Router(int[][] matrx)\n\t{\n\t\tint best_router = -1;\n\t\tint min = INFINITE_DIST;\n\t\tint[] min_dist = new int[matrx.length];\n\t\tint[] forward_min_dist_table = new int[matrx.length];\n\t\tint[] prev_node = new int[matrx.length];\n\t\t\n\t\tfor(int s=0; s<matrx.length; s++)\n\t\t{\n\t\t\t//Compute shortest path for every node\n\t\t\tforward_min_dist_table = shrtst_Path_Dijkstra_Algo(matrx, s, forward_min_dist_table, prev_node);\n\t\t\t\n\t\t\t//only include reachable nodes for total\n\t\t\tfor(int i=0; i<forward_min_dist_table.length; i++)\n\t\t\t{\n\t\t\t\tif(forward_min_dist_table[i] != INFINITE_DIST)\n\t\t\t\t\tmin_dist[s] += forward_min_dist_table[i];\n\t\t\t}\n\t\t}\n\t\t//min_dist array contains min distance from every node to every other node\n\t\tfor(int n=0; n<min_dist.length; n++)\n\t\t{\n\t\t\tSystem.out.println(\"Total cost of router \"+ (n+1) +\" to other nodes is: \"+ min_dist[n]);\n\t\t\tif(min_dist[n] < min && min_dist[n] != 0)\n\t\t\t{\n\t\t\t\tmin = min_dist[n];\n\t\t\t\tbest_router = n;\n\t\t\t}\n\t\t}\n\t\treturn (best_router + 1);\n\t}", "public static ArrayList<Route> getFeasibleRoutes(\r\n\t\t\tint i, \r\n\t\t\tint j, \r\n\t\t\tint[] hList,\r\n\t\t\tNode[] nodes,\r\n\t\t\tRoute[][][][] routes,\r\n\t\t\tdouble[][] distances,\r\n\t\t\tdouble alpha\r\n\t\t\t){\n\t\t\t\tArrayList<Route> feasibleRoutes = new ArrayList<Route>();\r\n\t\t\t\tif (nodes[i].isHub && nodes[j].isHub) {\r\n\t\t\t\t\tif (routes[i][i][j][j] == null)\r\n\t\t\t\t\t\troutes[i][i][j][j] = new Route(nodes[i], nodes[i], nodes[j], nodes[j],\r\n\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\tfeasibleRoutes.add(routes[i][i][j][j]);\r\n\t\t\t\t} else if (nodes[i].isHub) {\r\n\t\t\t\t\tfor (Integer n : hList) {\r\n\t\t\t\t\t\tif (routes[i][i][n][j] == null)\r\n\t\t\t\t\t\t\troutes[i][i][n][j] = new Route(nodes[i], nodes[i], nodes[n], nodes[j],\r\n\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\tfeasibleRoutes.add(routes[i][i][n][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (nodes[j].isHub) {\r\n\t\t\t\t\tfor (Integer n : hList) {\r\n\t\t\t\t\t\tif (routes[i][n][j][j] == null)\r\n\t\t\t\t\t\t\troutes[i][n][j][j] = new Route(nodes[i], nodes[n], nodes[j], nodes[j],\r\n\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\tfeasibleRoutes.add(routes[i][n][j][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfor (int u = 0; u < hList.length; u++) {\r\n\t\t\t\t\t\tfor (int v = u; v < hList.length; v++) {\r\n\t\t\t\t\t\t\tif (routes[i][hList[u]][hList[v]][j] == null\r\n\t\t\t\t\t\t\t\t\t&& routes[i][hList[v]][hList[u]][j] == null) {\r\n\t\t\t\t\t\t\t\tRoute r1 = new Route(nodes[i], nodes[hList[u]], nodes[hList[v]], nodes[j],\r\n\t\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\t\t\tRoute r2 = new Route(nodes[i], nodes[hList[v]], nodes[hList[u]], nodes[j],\r\n\t\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\t\t\tif (r1.expCost <= r2.expCost) {\r\n\t\t\t\t\t\t\t\t\troutes[r1.i.ID][r1.k.ID][r1.m.ID][r1.j.ID] = r1;\r\n\t\t\t\t\t\t\t\t\tfeasibleRoutes.add(r1);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\troutes[r2.i.ID][r2.k.ID][r2.m.ID][r2.j.ID] = r2;\r\n\t\t\t\t\t\t\t\t\tfeasibleRoutes.add(r2);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else if (routes[i][hList[u]][hList[v]][j] != null) {\r\n\t\t\t\t\t\t\t\tfeasibleRoutes.add(routes[i][hList[u]][hList[v]][j]);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfeasibleRoutes.add(routes[i][hList[v]][hList[u]][j]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn feasibleRoutes;\r\n\t}", "public List<String> getShortestRoute(String start, String end) {\n\t\tif (!vertices.contains(start)) return null;\n\t\tMap<String, Vertex> verticesWithDistance = new HashMap<String, Vertex>();\n\t\tVertex starting = new Vertex(start, 0);\n\t\tverticesWithDistance.put(start, starting);\n\t\tstarting.route.add(starting.name);\n\t\tfor (String v : vertices) {\n\t\t\tif (!v.equals(start))\n\t\t\t\tverticesWithDistance.put(v, new Vertex(v, -1));\n\t\t}\n\t\treturn searchByDijkstra(starting, end , verticesWithDistance);\n\t}", "public double getFurthermostDistance(){\n\t\t\tdouble distance;\n\t\t\tdouble distanceMax = 0.0;\n\t\t\tPoint centroid = centroid();\n\t\t\tfor(Point p : clusterPointsList){\n\t\t\t\tdistance = p.dist(centroid);\t\t\t\n\t\t\t\tif(distance > distanceMax){\n\t\t\t\t\tdistanceMax = distance;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn distanceMax;\n\t\t}", "public ArrayList<ArrayList<ModuleElement>> getAllShortestRoutes(Biochip grid, ModuleElement dest){\n\t\tArrayList<ArrayList<ModuleElement>> route_list = new ArrayList<ArrayList<ModuleElement>>(); \n\t\tArrayList<ModuleElement> crt_route = new ArrayList<ModuleElement>();\n\t\tdouble crt_value = grid.getCell(dest.x, dest.y).value; \n\t\tcrt_route.add(dest);\n\t\troute_list.add(crt_route);\n\t\t//this.printGrid(grid);\n\t\t//System.out.println(grid.getCell(dest.x, dest.y).value); \n\t\t//System.out.println(\"Get sh_route for dest = \" + dest.x + dest.y + \"crt_value=\" + crt_value); \n\n\t\twhile(crt_value>0){\n\t\t\tArrayList<ArrayList<ModuleElement>> new_route_list = new ArrayList<ArrayList<ModuleElement>>(); \n\t\t\tcrt_value --; \n\t\t\tfor (int k=0; k<route_list.size();k++){\n\t\t\t\t//System.out.println(\"k=\" + k); \n\t\t\t\tcrt_route = route_list.get(k); \n\t\t\t\tint i = crt_route.get(crt_route.size()-1).x;\n\t\t\t\tint j = crt_route.get(crt_route.size()-1).y;\n\t\t\t\t// neighbors\n\t\t\t\tif (j+1<grid.width){\n\t\t\t\t\tCell right_n = grid.getCell(i, j+1);\n\t\t\t\t\tArrayList<ModuleElement> r_route = this.createNewRoute(grid, crt_route, right_n, crt_value); \n\t\t\t\t\tif (r_route!=null) new_route_list.add(r_route); \t\n\t\t\t\t}\n\t\t\t\tif (j-1>=0) {\n\t\t\t\t\tCell left_n = grid.getCell(i, j-1);\n\t\t\t\t\tArrayList<ModuleElement> l_route = this.createNewRoute(grid, crt_route, left_n, crt_value); \n\t\t\t\t\tif (l_route!=null) new_route_list.add(l_route); \n\t\t\t\t} \n\t\t\t\tif (i-1>=0) {\n\t\t\t\t\tCell up_n = grid.getCell(i-1, j);\n\t\t\t\t\tArrayList<ModuleElement> u_route = this.createNewRoute(grid, crt_route, up_n, crt_value); \n\t\t\t\t\tif (u_route!=null) new_route_list.add(u_route); \n\t\t\t\t} \n\t\t\t\tif (i+1<grid.height) {\n\t\t\t\t\tCell down_n = grid.getCell(i+1, j);\n\t\t\t\t\tArrayList<ModuleElement> d_route = this.createNewRoute(grid, crt_route, down_n, crt_value); \n\t\t\t\t\tif (d_route!=null) new_route_list.add(d_route); \t\n\t\t\t\t} \n\t\t\t\t//System.out.println(\"new_route_list = \" + new_route_list); \n\t\t\t}\n\t\t\troute_list = new_route_list; \n\t\t}\n\t\t\n\t\treturn route_list; \n\t}", "private ArrayList<Edge>getFullyConnectedGraph(){\n\t\tArrayList<Edge> edges = new ArrayList<>();\n\t\tfor(int i=0;i<nodes.size();i++){\n\t\t\tfor(int j=i+1;j<nodes.size();j++){\n\t\t\t\tEdge edge = new Edge(nodes.get(i), nodes.get(j),Utils.distance(nodes.get(i), nodes.get(j)));\n\t\t\t\tedges.add(edge);\n\t\t\t}\n\t\t}\n\t\treturn edges;\n\t}", "List<ConnectingFlights> getPossibleRoutes(int loc_start_id, int loc_end_id);", "public void dfs(int startV,int end, double maxCost, double maxHops,LinkedList<Edge>[] routes,double cost,double distance,double hops,int totRoutes,LinkedList<Edge>edges) {\n marked[startV] = true;\n if(startV == end){\n Routes newRo = new Routes(hops,cost,distance, edges);\n finRoutes.add(newRo);\n return; \n }\n\n if(hops<maxHops){\n for (Edge w : adj(startV)) {\n //System.out.println(w.toString());\n //if(startV==w.other(w.either()))\n int e = w.other(w.either());\n int v =w.either();\n int next;\n\n if(startV == e)\n next=v;\n else next =e;\n if(!marked[next]) {\n double nc = cost + w.cost();\n if(nc<=maxCost){\n hops++;\n //routes[totRoutes].add(w);\n edges.add(w);\n //distance+=w.distance();\n double nd = distance+w.distance();\n //dfs(next,end,maxCost,maxHops,routes,cost,distance,hops,totRoutes,edges);\n dfs(next,end,maxCost,maxHops,routes,nc,nd,hops,totRoutes,edges);\n \n marked[next]=false;\n hops--;\n //if(routes[totRoutes].size()>0)\n // routes[totRoutes].remove(routes[totRoutes].size()-1);\n if(edges.size()>0)\n edges.remove(edges.size()-1);\n }\n //edgeTo[w.either()] = startV;\n //dfs( startV);\n \n }\n }\n }\n \n }", "private static int getLongestPath(ArrayList<ArrayList<Integer>> graph, int N) {\n int startNode = 1;\n int edgeVertex = 0;\n\n boolean[] visited = new boolean[N + 1];\n\n LinkedList<Integer> queue = new LinkedList<>();\n\n queue.add(startNode);\n visited[startNode] = true;\n\n while (!queue.isEmpty()) {\n int u = queue.poll();\n\n for (int v : graph.get(u)) {\n if (!visited[v]) {\n queue.add(v);\n visited[v]=true;\n edgeVertex = v;\n }\n }\n }\n\n\n //Doing BFS from one of the edgeVertex\n\n queue.clear();\n Arrays.fill(visited, false);\n\n int length = 0;\n\n queue.add(edgeVertex);\n queue.add(-1);\n visited[edgeVertex] = true;\n\n while (queue.size() > 1) {\n int u = queue.poll();\n\n if (u == -1) {\n queue.add(-1);\n length++;\n\n } else {\n for (int v : graph.get(u)) {\n if (!visited[v]) {\n queue.add(v);\n visited[v] = true;\n }\n }\n }\n }\n\n return length;\n }", "private void calculate() {\n\t\tList<Edge> path = new ArrayList<>();\n\t\tPriorityQueue<Vert> qv = new PriorityQueue<>();\n\t\tverts[s].dist = 0;\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tif (e.w==0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist < L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t} else if (verts[t].dist == L) {\n\t\t\tok = true;\n\t\t\tfor (int i=0; i<m; i++) {\n\t\t\t\tif (edges[i].w == 0) {\n\t\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t// replace 0 with 1, adding to za list\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (edges[i].w == 0) {\n\t\t\t\tza[i] = true;\n\t\t\t\tedges[i].w = 1;\n\t\t\t} else {\n\t\t\t\tza[i] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// looking for shortest path from s to t with 0\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tif (i != s) {\n\t\t\t\tverts[i].dist = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tqv.clear();\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist > L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t}\n\t\tVert v = verts[t];\n\t\twhile (v.dist > 0) {\n\t\t\tlong minDist = MAX_DIST;\n\t\t\tVert vMin = null;\n\t\t\tEdge eMin = null;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(v.idx)];\n\t\t\t\tif (vo.dist+e.w < minDist) {\n\t\t\t\t\tvMin = vo;\n\t\t\t\t\teMin = e;\n\t\t\t\t\tminDist = vMin.dist+e.w;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tv = vMin;\t\n\t\t\tpath.add(eMin);\n\t\t}\n\t\tCollections.reverse(path);\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (za[i]) {\n\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tlong totLen=0;\n\t\tboolean wFixed = false;\n\t\tfor (Edge e : path) {\n\t\t\ttotLen += (za[e.idx] ? 1 : e.w);\n\t\t}\n\t\tfor (Edge e : path) {\n\t\t\tif (za[e.idx]) {\n\t\t\t\tif (!wFixed) {\n\t\t\t\t\te.w = L - totLen + 1;\n\t\t\t\t\twFixed = true;\n\t\t\t\t} else {\n\t\t\t\t\te.w = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tok = true;\n\t}", "ArrayList<Edge> getAdjacencies();", "private void findBestPath(){\n\t\t// The method will try to find the best path for every starting point and will use the minimum\n\t\tfor(int start = 0; start < this.getDimension(); start++){\n\t\t\tfindBestPath(start);\t\n\t\t}\t\n\t}", "public int[] djekstra(Router root, Router destination){\n //if router and destination same\n if (root.getID() == destination.getID()){\n int[] result = new int[2];\n result[0] = root.getID();\n result[1] = 0;\n hops.add(0);\n return result;\n }\n\n //Storing shortest path currently known\n int[] shortestPath = new int[size];\n //Storing the weights of the current router's connection to neighbors\n int[] currentNeighborConnectionWeight = new int[size];\n\n //First set all of the positions to 9999 (pseudo infinity)\n for (int i = 0; i < shortestPath.length;i++){\n shortestPath[i] = 9999;\n }\n\n // Set the distance to itself as 0, mark as visited\n shortestPath[root.getID()-1] = 0;\n root.visit();\n\n //For each connection the root has, set the shortestPath available to the weight to the neighbor\n for (Connection c : root.getConnections()){\n shortestPath[c.getDestination().getID()-1] = c.getWeight();\n }\n\n //Find the smallest router to start the algorithm\n //ID of smallest router, start the value with the first available option\n int smallestRouterID = 0;\n int smallestRouterWeight = 9999;\n //Router used for iterating\n Router current = null;\n //Storing path length\n int totalPathLength = 0;\n\n\n //Find the shortest available path link to start with\n for (int k = 0; k < shortestPath.length; k++){\n if ((shortestPath[k] < smallestRouterWeight) && (shortestPath[k] != 0)){\n // Check to see if dead end\n if (routers.get(k).getConnections().size() > 1){\n // id is pos+1\n smallestRouterID = k + 1;\n smallestRouterWeight = shortestPath[k];\n } else if (routers.get(k).getID() == destination.getID()){ //edge case\n // id is pos+1\n smallestRouterID = k + 1;\n smallestRouterWeight = shortestPath[k];\n }\n }\n }\n // add its weight\n totalPathLength += smallestRouterWeight;\n\n //This is where we start our first step\n current = getRouter(smallestRouterID);\n hops.add(current.getID());\n current.visit();\n //System.out.println(\"First step--> Router:\" + smallestRouterID + \" Weight to router from root:\" + smallestRouterWeight);\n //Now we loop\n Router firstRouter = current;\n boolean done = false;\n while (done == false){\n //Break case 1, we found the router\n if (current.getID() == destination.getID()){\n // check if root has available connections\n\n // set current to root and store totalPathLength to new variable && store hops in new array ArrayList\n // compare totals and store the one that's lower ++ hops list too\n // could we recursively call djekstra?\n done = true;\n // System.out.println(\"Router found\");\n break;\n }\n\n //Break case 2, all of the connections have been visited already\n boolean destinationAvailable = hasAvailableConnections(current);\n if (destinationAvailable == false){\n if(hasAvailableConnections(root)){\n current = root;\n hops.clear();\n totalPathLength= 0;\n } else {\n done = true;\n // System.out.println(\"v-- No more routers available\");\n break;\n }\n }\n\n //set all to 9999 to assume we cant see\n for (int a = 0; a < currentNeighborConnectionWeight.length; a++){\n currentNeighborConnectionWeight[a] = 9999;\n }\n\n //Recalculate for new path lengths\n for (Connection c : current.getConnections()){\n //Only calculate path for routers that havent been visited\n if (c.getDestination().getVisit() == false){\n currentNeighborConnectionWeight[c.getDestination().getID()-1] = c.getWeight();\n }\n }\n\n //Find the next step to take\n //Find the shortest available path link to start with\n smallestRouterID = 0;\n smallestRouterWeight = 9999;\n for (int b = 0; b < currentNeighborConnectionWeight.length; b++){\n if ((currentNeighborConnectionWeight[b] < smallestRouterWeight)){\n // id is pos+1\n smallestRouterID = b + 1;\n smallestRouterWeight = currentNeighborConnectionWeight[b];\n }\n }\n\n // add its weight\n totalPathLength += smallestRouterWeight;\n current = getRouter(smallestRouterID);\n hops.add(current.getID());\n current.visit();\n // System.out.println(\"Next shortest path--> Router: \" + current.getID() + \" Length from root:\" + totalPathLength);\n\n\n } // <--------------------------------------------------------------------------------End of while loop\n\n // returns <lasthop, pathcost>\n int[] result = new int[2];\n //Check and see if the path length is smaller then the original\n if (totalPathLength <= shortestPath[destination.getID()-1]){\n //System.out.println(\"Case new \" + firstRouter.getID());\n shortestPath[destination.getID()-1] = totalPathLength;\n result[0] = firstRouter.getID();\n result[1] = shortestPath[destination.getID()-1];\n } else {\n //root was shorter\n //System.out.println(\"Case old \" + root.getID());\n result[0] = root.getID();\n result[1] = shortestPath[destination.getID()-1];\n }\n // System.out.println(\"Next hop:\" + current.getID() + \" Total Distance:\" + shortestPath[destination.getID()-1]);\n\n //reset the visited list\n for (Router r: routers){\n r.unvisit();\n }\n return result;\n }", "private int[] calculateCoverage(Route rt, Point edge){\n\n \tint[] latLonMinMax = new int[4];\n \t\n // figure out the bounding box of the route\n latLonMinMax[0] = rt.getStart().getLatitude();\n latLonMinMax[1] = latLonMinMax[0];\n latLonMinMax[2] = rt.getStart().getLongitude();\n latLonMinMax[3] = latLonMinMax[2];\n \n for(GeoSegment gs : rt.getGeoSegments()){\n \tint temp = gs.getP2().getLatitude();\n \tlatLonMinMax[0] = latLonMinMax[0] > temp ? temp : latLonMinMax[0];\n \tlatLonMinMax[1] = latLonMinMax[1] < temp ? temp : latLonMinMax[1];\n \t\n \ttemp = gs.getP2().getLongitude();\n \tlatLonMinMax[2] = latLonMinMax[2] > temp ? temp : latLonMinMax[2];\n \tlatLonMinMax[3] = latLonMinMax[3] < temp ? temp : latLonMinMax[3];\n }\n \n \n // now use aspect ratio of the window to get bounds of the display\n int diffLat = latLonMinMax[1] - latLonMinMax[0];\n int diffLon = latLonMinMax[3] - latLonMinMax[2];\n \n // the longest aspect will be a larger ratio\n double horzAsp = diffLon / edge.getX();\n double vertAsp = diffLat / edge.getY();\n \n double expandLat = 0.0;\n double expandLon = 0.0;\n if(horzAsp > vertAsp){\n \tdouble factor = horzAsp/vertAsp;\n \t// calculate the expansion of the short dimension\n \texpandLat = ((diffLat * factor - diffLat) / 2.0);\n \texpandLat += ((diffLat * factor) / 20.0); // 20.0 for 5%\n \t// long dimension\n \texpandLon = diffLon / 20.0;\n }else{\n\t double factor = vertAsp/horzAsp;\n\t \t// calculate the expansion of the short dimension\n\t \texpandLon = ((diffLon * factor - diffLon) / 2);\n \texpandLon += ((diffLon * factor) / 20.0);\n \t// long dimension\n \texpandLat = diffLat / 20.0;\n }\n \n latLonMinMax[0] -= ( ((int)expandLat) != 0 ? ((int)expandLat) : 2);\n latLonMinMax[1] += ( ((int)expandLat) != 0 ? ((int)expandLat) : 2);\n latLonMinMax[2] -= ( ((int)expandLon) != 0 ? ((int)expandLon) : 2);\n latLonMinMax[3] += ( ((int)expandLon) != 0 ? ((int)expandLon) : 2);\n \n \treturn latLonMinMax;\n }", "private List<StopEdge> getPossibleDestinations(Stop stop, long timeAtStop, Route route, String tripId, LocalDate departureDate, long departureTime, List<StopTime> stopTimesOfTrip, Set<Stop> found, Map<String, Long> bestArrivalTime) {\n List<StopEdge> edges = new TiraArrayList<>();\n\n long departureTimeMillis = calculateTime(departureDate, departureTime);\n //If the public transport service departs from the stop before current time, that service cannot be used for the route -> return empty list\n if (departureTimeMillis < timeAtStop) {\n return Collections.emptyList();\n }\n\n for (StopTime stopTime : stopTimesOfTrip) {\n Stop destinationStop = stops.get(stopTime.getStopId());\n if (destinationStop == null) {\n //This should happen only if the GTFS feed is malformed\n return Collections.emptyList();\n }\n\n //Don't add new edge if a better route to the destination was already found\n long arrivalTimeMillis = calculateTime(departureDate, stopTime.getArrivalTime());\n if (arrivalTimeMillis > bestArrivalTime.getOrDefault(destinationStop.getId(), Long.MAX_VALUE)) {\n continue;\n }\n\n if (arrivalTimeMillis > departureTimeMillis) {\n //If the trip would pass through any of already found stops, return empty list as it would be slower to reach the final destination using this route than the route that was used for reaching the previously found route\n if (found.contains(destinationStop)) {\n return Collections.emptyList();\n }\n\n bestArrivalTime.put(destinationStop.getId(), arrivalTimeMillis);\n edges.add(new StopEdge(route.getName(), tripId, route.getMode(), stop, destinationStop, arrivalTimeMillis, departureTimeMillis));\n }\n }\n\n return edges;\n }", "public static PriorityQueue<Route> getFeasibleRoutes2(\r\n\t\t\tint i, \r\n\t\t\tint j, \r\n\t\t\tint[] hList,\r\n\t\t\tNode[] nodes,\r\n\t\t\tRoute[][][][] routes,\r\n\t\t\tdouble[][] distances,\r\n\t\t\tdouble alpha\r\n\t\t\t){\n\t\tPriorityQueue<Route> feasibleRoutes = new PriorityQueue<Route>();\r\n\t\t\t\tif (nodes[i].isHub && nodes[j].isHub) {\r\n\t\t\t\t\tif (routes[i][i][j][j] == null)\r\n\t\t\t\t\t\troutes[i][i][j][j] = new Route(nodes[i], nodes[i], nodes[j], nodes[j],\r\n\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\tfeasibleRoutes.add(routes[i][i][j][j]);\r\n\t\t\t\t} else if (nodes[i].isHub) {\r\n\t\t\t\t\tfor (Integer n : hList) {\r\n\t\t\t\t\t\tif (routes[i][i][n][j] == null)\r\n\t\t\t\t\t\t\troutes[i][i][n][j] = new Route(nodes[i], nodes[i], nodes[n], nodes[j],\r\n\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\tfeasibleRoutes.add(routes[i][i][n][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (nodes[j].isHub) {\r\n\t\t\t\t\tfor (Integer n : hList) {\r\n\t\t\t\t\t\tif (routes[i][n][j][j] == null)\r\n\t\t\t\t\t\t\troutes[i][n][j][j] = new Route(nodes[i], nodes[n], nodes[j], nodes[j],\r\n\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\tfeasibleRoutes.add(routes[i][n][j][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfor (int u = 0; u < hList.length; u++) {\r\n\t\t\t\t\t\tfor (int v = u; v < hList.length; v++) {\r\n\t\t\t\t\t\t\tif (routes[i][hList[u]][hList[v]][j] == null\r\n\t\t\t\t\t\t\t\t\t&& routes[i][hList[v]][hList[u]][j] == null) {\r\n\t\t\t\t\t\t\t\tRoute r1 = new Route(nodes[i], nodes[hList[u]], nodes[hList[v]], nodes[j],\r\n\t\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\t\t\tRoute r2 = new Route(nodes[i], nodes[hList[v]],nodes[hList[u]], nodes[j],\r\n\t\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\t\t\tif (r1.expCost <= r2.expCost) {\r\n\t\t\t\t\t\t\t\t\troutes[r1.i.ID][r1.k.ID][r1.m.ID][r1.j.ID] = r1;\r\n\t\t\t\t\t\t\t\t\tfeasibleRoutes.add(r1);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\troutes[r2.i.ID][r2.k.ID][r2.m.ID][r2.j.ID] = r2;\r\n\t\t\t\t\t\t\t\t\tfeasibleRoutes.add(r2);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else if (routes[i][hList[u]][hList[v]][j] != null) {\r\n\t\t\t\t\t\t\t\tfeasibleRoutes.add(routes[i][hList[u]][hList[v]][j]);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfeasibleRoutes.add(routes[i][hList[v]][hList[u]][j]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn feasibleRoutes;\r\n\t}", "public java.util.List<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>> getRoute()\r\n {\r\n List<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>> roads_map = new ArrayList<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>>();\r\n java.util.AbstractMap.SimpleImmutableEntry<Street,Stop> entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(null, null);\r\n\r\n for (Street s : streets_map)\r\n {\r\n if (s.getStops().isEmpty() == false)\r\n {\r\n for (int i = 0; i < s.getStops().size(); i++)\r\n {\r\n entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(s,s.getStops().get(i));\r\n }\r\n\r\n }\r\n else\r\n {\r\n entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(s,null);\r\n }\r\n\r\n roads_map.add(entry);\r\n\r\n }\r\n\r\n return roads_map;\r\n\r\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n public List<Edge<T>> viterbiPath() {\n final int numNodes = nodeList.size();\n double[] d_v = new double[numNodes];\n Arrays.fill(d_v, annihilator());\n d_v[ROOT_ID] = identity();\n Edge[] p_v = new Edge[numNodes]; \n \n // Forward pass\n for (int v = ROOT_ID+1; v < numNodes; ++v) {\n List<Edge<T>> edgeList = nodeList.get(v).backwardStar();\n for (Edge<T> edge : edgeList) {\n int u = edge.start().id();\n double bestCost = d_v[v];\n double transitionCost = score(d_v[u], edge.weight());\n if (compare(bestCost, transitionCost) == transitionCost) {\n // Do an update to the best cost\n d_v[v] = transitionCost;\n p_v[v] = edge;\n }\n }\n }\n \n // Backout the solution\n List<Edge<T>> bestPath = new LinkedList<Edge<T>>();\n Edge<T> bestEdge = p_v[numNodes-1];\n bestEdge = p_v[bestEdge.start().id()]; // Skip the goal node\n while(bestEdge.start().id() != ROOT_ID) {\n bestPath.add(0, bestEdge); // O(c) pre-pend\n bestEdge = p_v[bestEdge.start().id()];\n }\n\n return bestPath;\n }", "private List<Edge<Stop>> getWalkingEdgesFromStop(long timeAtStop, Stop stop, Set<Stop> found) {\n //Calculate a list of geohashes around the stop\n List<Geohash> nearbyGeohashes = Geohash.getSurroundingGeohashes(\n BigDecimal.valueOf(stop.getLocation().getLatitude()),\n BigDecimal.valueOf(stop.getLocation().getLongitude()), STOP_INDEX_GEOHASH_LEVEL);\n\n return nearbyGeohashes.stream()\n //Get all stops inside the geohashes\n .flatMap(geohash -> stopByGeohashIndex.getItems(geohash).stream())\n //Filter stops that have been already found\n .filter(stopFromIndex -> !found.contains(stopFromIndex))\n //Filter stops that are too far\n .filter(stopFromIndex -> stopFromIndex.getLocation().distanceTo(stop.getLocation()) <= MAX_WALKING_DISTANCE_IN_METERS\n && !stopFromIndex.getId().equals(stop.getId()))\n .map(walkableStop -> new StopEdge(null, //No public transport route used when walking -> route = null, trip = null\n null,\n TransportMode.WALK,\n stop,\n walkableStop,\n //Calculate walking time\n timeAtStop + 1 + Math.round(walkableStop.getLocation().distanceTo(stop.getLocation()) / AVERAGE_WALKING_SPEED_MS),\n timeAtStop))\n .collect(Collectors.toCollection(() -> new TiraArrayList<>()));\n }", "public List<Integer> getRoute(int start, int destination, Map<Transport, Integer> tickets) {\n\n List<Node<Integer>> nodes = graph.getNodes();\n //Initialisation\n Map<Node<Integer>, Double> unvisitedNodes = new HashMap<Node<Integer>, Double>();\n Map<Node<Integer>, Double> distances = new HashMap<Node<Integer>, Double>();\n Map<Node<Integer>, Node<Integer>> previousNodes = new HashMap<Node<Integer>, Node<Integer>>();\n Node<Integer> currentNode = graph.getNode(start);\n\n for (Node<Integer> node : nodes) {\n if (!currentNode.getIndex().equals(node.getIndex())) {\n distances.put(node, Double.POSITIVE_INFINITY);\n } else {\n distances.put(node, 0.0);\n }\n Integer location = node.getIndex();\n try {\n unvisitedNodes.put(node, (1/pageRank.getPageRank(location)));\n } catch (Exception e) {\n System.err.println(e);\n }\n previousNodes.put(node, null);\n }\n //Search through the graph\n while (unvisitedNodes.size() > 0) {\n Node<Integer> m = minDistance(distances, unvisitedNodes);\n if (m == null) break;\n currentNode = m;\n if (currentNode.getIndex().equals(destination)) break;\n unvisitedNodes.remove(currentNode);\n\n step(graph, distances, unvisitedNodes, currentNode, previousNodes, tickets);\n }\n\n //Move backwards finding the shortest route\n List<Integer> route = new ArrayList<Integer>();\n while (previousNodes.get(currentNode) != null) {\n route.add(0, currentNode.getIndex());\n currentNode = previousNodes.get(currentNode);\n }\n route.add(0, currentNode.getIndex());\n return route;\n }", "public static List<Integer> findMaxPath(TreeNode root) {\n List<Integer> maxSumPath = new ArrayList<>();\n List<Integer> onePath = new ArrayList<>();\n int[] maxSumArray = new int[1];\n maxSumArray[0] = 0;\n\n recursiveHelperMaxSum(root, 0, onePath, maxSumPath, maxSumArray);\n // System.out.println(maxSumPath);\n return maxSumPath;\n }", "public ShortestPathMatrix<V,E> allPairsShortestPaths();", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:36:07.082 -0500\", hash_original_method = \"71B2FD618F41F3F10AED78DDC584C5B5\", hash_generated_method = \"D5C1464D9CBFFD7FDEF25798ABF91481\")\n \npublic static RouteInfo selectBestRoute(Collection<RouteInfo> routes, InetAddress dest) {\n if ((routes == null) || (dest == null)) return null;\n\n RouteInfo bestRoute = null;\n // pick a longest prefix match under same address type\n for (RouteInfo route : routes) {\n if (NetworkUtils.addressTypeMatches(route.mDestination.getAddress(), dest)) {\n if ((bestRoute != null) &&\n (bestRoute.mDestination.getNetworkPrefixLength() >=\n route.mDestination.getNetworkPrefixLength())) {\n continue;\n }\n if (route.matches(dest)) bestRoute = route;\n }\n }\n return bestRoute;\n }", "@Override\r\n\tpublic List<Node<T>> getLongestPathFromRootToAnyLeaf() {\r\n\t\tList<Node<T>> camino = new LinkedList<Node<T>>();// La lista que se\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// retornara\r\n\t\tint prof = 1;// La profundidad actual\r\n\t\tNode<T> ret = null;// El nodo mas profundo\r\n\t\tret = LongestPathRec(raiz, prof, ret);// Metodo\r\n\t\t\t\t\t\t\t\t\t\t\t\t// auxiliar que\r\n\t\t\t\t\t\t\t\t\t\t\t\t// busca el nodo\r\n\t\t\t\t\t\t\t\t\t\t\t\t// mas profundo\r\n\t\treturn completaCamino(ret, camino);// Metodo auxiliar que crea el camino\r\n\t\t\t\t\t\t\t\t\t\t\t// hacia el nodo mas profundo\r\n\t}", "public OSMWay handle(Rule rule, OSMCoordinate cood) {\n double range = Double.parseDouble(Mapper.getInstance().getConfiguration().get(\"default:range\", \"25\"));\n if(rule.getConfiguration().has(\"range\"))\n range = Double.parseDouble(rule.getConfiguration().get(\"range\")); \n \n \n // OSM-Map laden\n //OSMMap map = api.getMapByRadius(cood, range);\n \n OSMMap map = new OSMMap();\n try\n { \n map = OSMParser.getOSMMap(cood, range);\n }\n catch (ParserConfigurationException | SAXException | IOException ex)\n {\n System.out.println(ex);\n }\n \n \n \n // Die Wege abfragen\n List<OSMWay> ways = map.getWays();\n \n /*for(OSMWay way : ways)\n System.out.println(way);*/\n \n // Die Wege nacheinander durchgehen, dabei direkt den höchstwertigen Weg speichern\n double max_value = 0;\n OSMWay max_way = null;\n \n for(OSMWay way : ways) {\n \n // Liste mit den Tags des Weges erstellen\n // Zunächst die normal eingetragenen Tags abrufen\n Map<String, String> wayTags = way.getTags();\n \n // Anschließend die Tags innerhalb dieses Weges suchen\n //Map<String, String> wayInnerTags = way.getInnerTags(map); \n \n // Und diese in eine gemeinsame Liste mit den gewichteten Tags einfügen\n Map<String, Tag> tags = new HashMap();\n \n Set<String> wayTagsKeys = wayTags.keySet();\n for(String key : wayTagsKeys) {\n if(rule.hasTagWithKey(key)) {\n Tag current = rule.getTagWithKey(key);\n tags.put(current.getHash(), current);\n } \n }\n \n /*wayTagsKeys = wayInnerTags.keySet();\n for(String key : wayTagsKeys) {\n if(rule.hasTagWithKey(key)) {\n Tag current = rule.getTagWithKey(key);\n tags.put(current.getHash(), current);\n } \n }*/\n \n // Get Max Key weight\n double keyMaxWeight = 0;\n Set<String> tagKeys = tags.keySet();\n for(String key : tagKeys) {\n if(tags.get(key).getWeight() > keyMaxWeight)\n keyMaxWeight = tags.get(key).getWeight();\n }\n \n // distance muss in metern sein\n double distance = way.shortestDistanceTo(cood);\n \n // Gewichtungsfaktor berechnen\n double wayWeight = getWayWeight(range, distance);\n \n // Finale Wertung errechnen\n double value = keyMaxWeight * wayWeight;\n \n System.out.println(\"distance: \" + distance + \"\\nweight: \" + wayWeight + \"\\nvalue: \" + value + \"\\n\");\n \n // Direkt als besten weg setzen wenn ers ist\n if(value > max_value) {\n max_value = value;\n max_way = way;\n }\n }\n \n return max_way;\n }", "public static List<String> journeyPlanner(Graph g, String start, String end, int maxStops, boolean exact) {\n\t\tAlgorithmGraph ag = new AlgorithmGraph(g);\n\t\treturn ag.getAllRoutes(start, end, maxStops, exact);\n\t}", "public static List<MoveType> bestDirections(Point start, Point end) {\n List<MoveType> bestDirections = new ArrayList<>();\n int x = end.x - start.x;\n int y = end.y - start.y;\n if (Math.abs(y) > Math.abs(x)){\n if (y > 0) {\n bestDirections.add(MoveType.DOWN);\n } else if (y < 0){\n bestDirections.add(MoveType.UP);\n }\n if (x > 0) {\n bestDirections.add(MoveType.RIGHT);\n } else if (x < 0){\n bestDirections.add(MoveType.LEFT);\n }\n } else if(Math.abs(y) < Math.abs(x)) {\n if (x > 0) {\n bestDirections.add(MoveType.RIGHT);\n } else if (x < 0){\n bestDirections.add(MoveType.LEFT);\n }\n if (y > 0) {\n bestDirections.add(MoveType.DOWN);\n } else if (y < 0){\n bestDirections.add(MoveType.UP);\n }\n }\n return bestDirections;\n }", "public static List<MethodGraph> getAllMethodGraphs(int maxV, int maxE) {\n while (generateGraphModel() != null) {}\n return models.stream().map(model -> model.getMethodGraphs())\n .flatMap(mgraphs -> mgraphs.stream())\n .filter(mgraph -> mgraph.getVertexSet().size() < maxV)\n .filter(mgraph -> mgraph.getEdgeSet().size() < maxE)\n .collect(Collectors.toList());\n }", "private int getDistanceEnd() {\n int lastPoint = getNumPoints() - 1;\n return getDistanceIndex(lastPoint) + lastPoint;\n }", "public SortedSet<WLightpathUnregenerated> getOutgoingLigtpaths () { return n.getOutgoingRoutes(getNet().getWdmLayer().getNe()).stream().map(ee->new WLightpathUnregenerated(ee)).collect(Collectors.toCollection(TreeSet::new)); }", "public static Vertex breathFirstSearch(Graph g, Vertex root) {\n\n for (Vertex v : g) {\n v.seen = false;\n v.parent = null;\n v.distance = Integer.MAX_VALUE;\n }\n\n Queue<Vertex> queue = new LinkedList<Vertex>();\n root.seen = true;\n root.distance = 0;\n queue.add(root);\n Vertex maxDistNode = null;\n while (!queue.isEmpty()) {\n Vertex current = queue.remove();\n\n for (Edge e : current.Adj) {\n Vertex other = e.otherEnd(current);\n if (!other.seen) {\n other.seen = true;\n other.distance = current.distance + 1;\n other.parent = current;\n queue.add(other);\n }\n }\n maxDistNode = current;\n }\n return maxDistNode;\n }", "public List<BoardPos> longestAvailableMoves(int minDepth, boolean color) {\n List<BoardPos> result = new ArrayList<>();\n\n for (int i = 0; i < board.side(); i++)\n for (int j = 0; j < board.side(); j++)\n if (!board.get(i, j).isEmpty() &&\n board.get(i, j).color() == color) {\n List<BoardPos> _legalPos = getMoves(new BoardPos(i, j));\n // some moves are available from the current position...\n if (!_legalPos.isEmpty()) {\n // ...with routes longer then the last longest...\n if (_legalPos.get(0).routeLen() > minDepth) {\n // contains positions with routes shorter than new\n // longest, so clear it\n result.clear();\n // update last longest route length\n minDepth = _legalPos.get(0).routeLen();\n }\n // ...and equal to the last longest\n if (_legalPos.get(0).routeLen() == minDepth)\n result.add(new BoardPos(i, j));\n }\n }\n\n return result;\n }", "@Override\n\tpublic int height() {\n\t\tif (this.valCount == 0) { // if empty leaf\n\t\t\treturn 0;\n\t\t}\n\t\tint max = 1; \n\t\tfor (int i = 0; i < childCount; ++i) { // finds longest route among children\n\t\t\tmax = Math.max(max, children[i].height() + 1);\n\t\t}\n\t\treturn max;\n\t}", "Set<McastRoute> getRoutes();", "public PolytopeTriangle findClosest(){\n\t\t//OPTIMIZATION MOVE THIS TO THE ADD FUNCTION AND HAVE IT BE THE RETURN VALUE\n\t\tfloat maxDist = faces.get(0).getDistance();\n\t\tint index = 0;\n\t\tfor(int curIndex = 1; curIndex < faces.size(); curIndex++){\n\t\t\tfloat distance = faces.get(curIndex).getDistance();\n\t\t\tif(distance < maxDist){\n\t\t\t\tindex = curIndex;\n\t\t\t\tmaxDist = distance;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn faces.get(index);\n\t}", "public List<Tile> getRoute() {\n List<Tile> currentRoute = new ArrayList<Tile>();\n for (int i = 0; i < route.size(); i++) {\n currentRoute.add(route.get(i));\n }\n return currentRoute;\n }", "public ArrayList<Node> getBusNodes(ArrayList<Node> initialList, LatLng startLocation, LatLng EndLocation){\n ArrayList<String> matchingBusRoutes = nodeMinimisation.findMatchingBusRoutes(initialList);\n for(String route:matchingBusRoutes){\n System.out.println(\"Route is: \"+route);\n }\n // get further bus routes if needed\n //nodeMinimisation.furtherBusRouteMatches(initialList);\n // gets stop list from route\n ArrayList<Node> busStopList = nodeMinimisation.getStopList(initialList,startLocation,EndLocation);\n\n //ArrayList<Node> reducedStopList = nodeMinimisation.ReduceNodes(busStopList,startLocation, EndLocation);\n\n // returns the minimised list\n\n return busStopList;\n }", "public interface AllPairsShortestPathAlgo\n{\n long[][]getDistances(Graph g);\n}", "private void search(final Map<String, Integer> routes, Vertex current, Vertex finishVertex, int maxDistance, String currentRoute, int currentDistance) {\r\n if(current == finishVertex) {\r\n routes.put(currentRoute, currentDistance);\r\n }\r\n for(Edge e : current.getIncidentEdges()) {\r\n if(e.getDistance() + currentDistance <= maxDistance)\r\n search(routes, e.getOppositeVertex(current), finishVertex, maxDistance, currentRoute + e.getOppositeVertex(current).getName(), e.getDistance() + currentDistance);\r\n }\r\n }", "public int numRoutesWithin(Town origin, Town dest, \n\t\t\tint maxDistance) {\n\t\treturn findAllRoutesBetweenTowns(origin, dest,\n\t\t\t\t0, maxDistance);\n\t}", "public List<Node> getShortestPathToDestination(Node destination) {\n List<Node> path = new ArrayList<Node>();\n\n\n\n for (Node node = destination; node != null; node = node.previous){\n Log.i(\"bbb\", \"get path \"+node._waypointName);\n path.add(node);\n }\n\n // reverse path to get correct order\n Collections.reverse(path);\n return path;\n }", "private List<Double> getDistanceFromTopOBottomLayersToBottomEdge(int nominalCoverBottom) {\n List<Double> distanceFromCentreOfEachLayer = getDistanceFromCentreOfEachLayerToEdge(bottomDiameters, additionalBottomDiameters, bottomVerticalSpacings, nominalCoverBottom);\n List<Integer> maxDiameters = getMaxDiametersForEachLayer(bottomDiameters, additionalBottomDiameters);\n\n return IntStream\n .range(0, distanceFromCentreOfEachLayer.size())\n .mapToObj(i -> distanceFromCentreOfEachLayer.get(i) + 0.5 * maxDiameters.get(i))\n .collect(Collectors.toList());\n }", "public int findMinDistanceToFarthestNode(int vertices, int[][] edges) {\n Map<Integer, List<Integer>> adjacencyList = buildAdjacencyList(edges);\n\n // Create array to hold distance from specific node to other node\n int[] distanceToNode = new int[vertices];\n\n // First BFS from random node to find furthest node from it\n int firstFurthestNode = bfs(1, adjacencyList, distanceToNode);\n\n // Second BFS from the furthest node above to find the furthest node from it\n int secondFurthestNode = bfs(firstFurthestNode, adjacencyList, distanceToNode);\n\n // Find max distance (diameter) from the array above, populated after second bfs\n int graphDiameter = findGraphDiameter(distanceToNode);\n\n // Find max distance to furthest node\n if (graphDiameter % 2 == 0)\n return graphDiameter / 2;\n else\n return graphDiameter / 2 + 1;\n }", "private void findPath2(List<Coordinate> path) {\n List<Integer> cost = new ArrayList<>(); // store the total cost of each path\n // store all possible sequences of way points\n ArrayList<List<Coordinate>> allSorts = new ArrayList<>();\n int[] index = new int[waypointCells.size()];\n for (int i = 0; i < index.length; i++) {// generate the index reference list\n index[i] = i;\n }\n permutation(index, 0, index.length - 1);\n for (Coordinate o1 : originCells) {\n for (Coordinate d1 : destCells) {\n for (int[] ints1 : allOrderSorts) {\n List<Coordinate> temp = getOneSort(ints1, waypointCells);\n temp.add(0, o1);\n temp.add(d1);\n int tempCost = 0;\n for (int i = 0; i < temp.size() - 1; i++) {\n Graph graph = new Graph(getEdge(map));\n Coordinate start = temp.get(i);\n graph.dijkstra(start);\n Coordinate end = temp.get(i + 1);\n graph.printPath(end);\n tempCost = tempCost + graph.getPathCost(end);\n if (graph.getPathCost(end) == Integer.MAX_VALUE) {\n tempCost = Integer.MAX_VALUE;\n break;\n }\n }\n cost.add(tempCost);\n allSorts.add(temp);\n }\n }\n }\n System.out.println(\"All sorts now have <\" + allSorts.size() + \"> items.\");\n List<Coordinate> best = allSorts.get(getMinIndex(cost));\n generatePath(best, path);\n setSuccess(path);\n }", "int maxPathSum(int tri[][], int m, int n)\n {\n // loop for bottom-up calculation\n //i是row,j是column\n for (int i = m - 1; i >= 0; i--)\n {\n for (int j = 0; j <= i; j++)\n {\n // for each element, check both\n // elements just below the number\n // and below right to the number\n // add the maximum of them to it\n if (tri[i + 1][j] > tri[i + 1][j + 1])\n tri[i][j] += tri[i+1][j];\n else\n tri[i][j] += tri[i + 1][j + 1];\n }\n }\n\n // return the top element\n // which stores the maximum sum\n return tri[0][0];\n }", "public ArrayList<Location> getRoute(Location start, Location end) throws LocationNotFound{\n ArrayList<Location> route = new ArrayList<>();\n Location currentLoc = end;\n route.add(end);\n while (!currentLoc.equals(start)) {\n Location parentLoc = currentLoc.getParentLoc();\n route.add(parentLoc);\n currentLoc = parentLoc;\n }\n Collections.reverse(route);\n return route;\n }", "private static int numBusesToDestination(int[][] routes, int S, int T) {\n if (routes == null || routes.length == 0) {\n return 0;\n }\n\n if (S == T) {\n return 0;\n }\n\n // map a stop to routes\n // 1 -> 0, stop 1 belongs to route 0\n // 7 -> 0, 1 stop 7 belongs to route 0 and 1\n Map<Integer, List<Integer>> graph = new HashMap<>();\n for (int i = 0; i < routes.length; i++) {\n for (int stop: routes[i]) {\n if (!graph.containsKey(stop)) {\n graph.put(stop, new ArrayList<>());\n }\n graph.get(stop).add(i); // stop, routeid\n }\n }\n\n Queue<Integer> queue = new LinkedList<>(); // bus stop\n Set<Integer> visited = new HashSet<>(); // visited routes\n\n queue.offer(S);\n\n int level = 1;\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n\n for (int i = 0; i < size; i++) {\n int cur = queue.poll(); // current stop\n\n // get all routes available from the current stop\n for (int routeId: graph.get(cur)) {\n if (!visited.contains(routeId)) {\n visited.add(routeId);\n\n // get all stops from this route\n for (int stop: routes[routeId]) {\n if (stop == T) {\n return level;\n }\n queue.offer(stop);\n }\n }\n }\n }\n level++;\n }\n\n return -1;\n }", "public int getMaxTrapDestinations() {\n return maxTrapDestinations;\n }", "private PathCostFlow findCheapestPath(int start, int end, double max_flow) throws Exception {\n if (getNode(start) == null || getNode(end) == null\n || !getNode(start).isSource() || getNode(end).isSource()) {\n throw new IllegalArgumentException(\"start must be the index of a source and end must be the index of a sink\");\n }\n double amount = Math.min(Math.min(getNode(start).getResidualCapacity(),\n getNode(end).getResidualCapacity()), max_flow);\n\n boolean[] visited = new boolean[n];\n int[] parent = new int[n];\n for (int i = 0; i < n; i++) {\n parent[i] = -1;\n }\n double[] cost = new double[n];\n for (int i = 0; i < n; i++) {\n cost[i] = Integer.MAX_VALUE;\n }\n cost[start] = 0;\n\n PriorityQueue<IndexCostTuple> queue = new PriorityQueue<IndexCostTuple>();\n queue.add(new IndexCostTuple(start, 0));\n\n while (!queue.isEmpty()) {\n IndexCostTuple current = queue.poll();\n\n // we found the target node\n if (current.getIndex() == end) {\n ArrayList<Integer> path = new ArrayList<Integer>();\n path.add(new Integer(end));\n while (path.get(path.size() - 1) != start) {\n path.add(parent[path.get(path.size() - 1)]);\n }\n Collections.reverse(path);\n if ((path.get(0) != start) || (path.get(path.size() - 1) != end)) {\n throw new Exception(\"I fucked up coding Dijkstra's\");\n }\n return new PathCostFlow(path, cost[end], amount);\n }\n\n // iterate through all possible neighbors of the current node\n for (int i = 0; i < n; i++) {\n SingleEdge e = matrix[current.getIndex()][i];\n if ((!visited[i]) && (e != null)\n && (current.getCost() + e.getCost(amount) < cost[i])) {\n cost[i] = current.getCost() + e.getCost(amount);\n parent[i] = current.getIndex();\n\n // update the entry for this node in the queue\n IndexCostTuple newCost = new IndexCostTuple(i, cost[i]);\n queue.remove(newCost);\n queue.add(newCost);\n }\n }\n visited[current.getIndex()] = true;\n }\n\n return null; //the target node was unreachable\n }", "Execution getClosestDistance();", "private List<Edge<Stop>> getPublicTransportEdgesFromStop(long timeAtStop, Stop stop, Set<Stop> found) {\n GregorianCalendar gregorianCalendar = new GregorianCalendar(timeZone);\n gregorianCalendar.setTimeInMillis(timeAtStop);\n\n LocalDate date = LocalDate.of(gregorianCalendar.get(java.util.Calendar.YEAR), gregorianCalendar.get(java.util.Calendar.MONTH) + 1, gregorianCalendar.get(java.util.Calendar.DAY_OF_MONTH));\n\n List<StopTime> stopTimes = stopTimesByStopIdIndex.getItems(stop.getId());\n return stopTimes.stream().flatMap(stopTime -> {\n ServiceDates serviceDatesForStopTime = serviceDates.get(trips.get(stopTime.getTripId()).getServiceId());\n\n LocalDate estimatedDepartureDate = date.minus(Math.round(stopTime.getArrivalTime() / 86400f), ChronoUnit.DAYS);\n\n List<StopEdge> edges = new TiraArrayList<>();\n\n //Optimization: list of best arrival times (to ignore routes that would arrive to these stops later than the previously found best route)\n //This optimization is not optimal but should decrease the amount of possible returned edges\n Map<String, Long> bestArrivalTime = new TiraHashMap<>();\n\n /**\n * Check possible departure dates that are: yesterday, today and the day after today\n */\n for (int i = -1; i <= 1; i++) {\n LocalDate departureDate = estimatedDepartureDate.plus(i, ChronoUnit.DAYS);\n\n if (serviceDatesForStopTime.runsOn(departureDate)) {\n edges.addAll(\n getPossibleDestinations(stop,\n timeAtStop,\n routes.get(trips.get(stopTime.getTripId()).getRouteId()),\n stopTime.getTripId(),\n departureDate,\n stopTime.getArrivalTime(),\n stopTimesByTripIdIndex.getItems(stopTime.getTripId()),\n found,\n bestArrivalTime));\n }\n }\n\n return edges.stream();\n }).collect(Collectors.toCollection(() -> new TiraArrayList<>()));\n }", "public void computeAllPaths(String source)\r\n {\r\n Vertex sourceVertex = network_topology.get(source);\r\n Vertex u,v;\r\n double distuv;\r\n\r\n Queue<Vertex> vertexQueue = new PriorityQueue<Vertex>();\r\n \r\n \r\n // Switch between methods and decide what to do\r\n if(routing_method.equals(\"SHP\"))\r\n {\r\n // SHP, weight of each edge is 1\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + 1;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n else if (routing_method.equals(\"SDP\"))\r\n {\r\n // SDP, weight of each edge is it's propagation delay\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + u.adjacentVertices.get(key).propDelay;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n } \r\n }\r\n }\r\n else if (routing_method.equals(\"LLP\"))\r\n {\r\n // LLP, weight each edge is activeCircuits/AvailableCircuits\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = Math.max(u.minDistance,u.adjacentGet(key).load());\r\n //System.out.println(u.adjacentGet(key).load());\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n }\r\n }\r\n }", "public SortedSet<WLightpathUnregenerated> getInOutOrTraversingLigtpaths () { return n.getAssociatedRoutes(getNet().getWdmLayer().getNe()).stream().map(ee->new WLightpathUnregenerated(ee)).collect(Collectors.toCollection(TreeSet::new)); }", "@Override\n\tpublic List<Path> getShortestRoute(Location src, Location dest, String edgePropertyName) {\n\t\t//array to keep track of visited vertexes\n\t\tboolean[] visited = new boolean[locations.size()];\n\t\t//array to store weights\n\t\tdouble[] weight = new double[locations.size()];\n\t\t//array to store predecessors\n\t\tLocation[] pre = new Location[locations.size()];\n\t\t//creates priority queue\n\t\tPriorityQueue<LocWeight> pq = new PriorityQueue<LocWeight>();\n\t\t// initializes every vertex misted mark to false\n\t\tfor (int i = 0; i < visited.length; i++)\n\t\t\tvisited[i] = false;\n\t\t// initializes every vertex's total weight to infinity\n\t\tfor (int i = 0; i < weight.length; i++)\n\t\t\tweight[i] = Double.POSITIVE_INFINITY;\n\t\t// initializes every vertex's predecessor to null\n\t\tfor (int i = 0; i < pre.length; i++)\n\t\t\tpre[i] = null;\n\t\t//sets start vertex's total weight to 0\n\t\tweight[locations.indexOf(src)] = 0;\n\t\t//insert start vertex in priroty queue\n\t\tpq.add(new LocWeight(src, 0.0));\n\t\t\n\t\tString[] edgeNames = getEdgePropertyNames();\n\t\tint indexProp = 0;\n\t\tfor (int i = 0; i < edgeNames.length; i++) {\n\t\t\tif (edgeNames[i].equalsIgnoreCase(edgePropertyName))\n\t\t\t\tindexProp = i;\n\t\t}\n\t\twhile (!pq.isEmpty()) {\n\t\t\tLocWeight c = pq.remove();\n\t\t\t//set C's visited mark to true\n\t\t\tvisited[locations.indexOf(c)] = true;\n\n\t\t\tList<Location> neighbors = getNeighbors(c.getLocation());\n\t\t\t//for each unvisited successor adjacent to C\n\t\t\tfor (int i = 0; i < neighbors.size(); i++) {\n\t\t\t\tif (visited[locations.indexOf(neighbors.get(i))] == false) {\n\t\t\t\t\t//change successor's total weight to equal C's weight + edge weight from C to successor\n\t\t\t\t\tweight[locations.indexOf(neighbors.get(i))] = c.getWeight() + getEdgeIfExists(c.getLocation(), neighbors.get(i)).getProperties().get(indexProp);\n\t\t\t\t\tpre[locations.indexOf(neighbors.get(i))] = c.getLocation();\n\t\t\t\t\tLocWeight succ = new LocWeight(neighbors.get(i), weight[locations.indexOf(neighbors.get(i))]);\n\t\t\t\t\t//if successor is already in pq, update its total weight\n\t\t\t\t\tif (pq.contains(succ)) {\n\t\t\t\t\t\tpq.remove(succ);\n\t\t\t\t\t}\n\t\t\t\t\t//if not already there, add\n\t\t\t\t\tpq.add(succ);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\n\n\t\t}\n\t\t\n\t\tArrayList<Path> path = new ArrayList<Path>();\n\t\t//find predecessor of each vertex and construct shortest path then return it\n\t\tLocation curr1 = dest;\n\t\twhile (pre[locations.indexOf(curr1)] != null) {\n\t\t\tpath.add(getEdgeIfExists(pre[locations.indexOf(curr1)], curr1));\n\t\t\tcurr1 = pre[locations.indexOf(curr1)];\n\t\t}\n\t\t//to show path from the start\n\t\tfor (int i = path.size() - 1; i >= 0; i--)\n\t\t\tpath.add(path.remove(i));\n\n\n\t\treturn path;\n\t}", "public List<Long> getPath(Long start, Long finish){\n \n \n List<Long> res = new ArrayList<>();\n // auxiliary list\n List<DeixtraObj> serving = new ArrayList<>();\n// nearest vertexes map \n Map<Long,DeixtraObj> optimMap = new HashMap<>();\n// thread save reading \n synchronized (vertexes){ \n // preparation\n for (Map.Entry<Long, Vertex> entry : vertexes.entrySet()) {\n Vertex userVertex = entry.getValue();\n // If it`s start vertex weight = 0 and the nereast vertex is itself \n if(userVertex.getID().equals(start)){\n serving.add(new DeixtraObj(start, 0.0, start));\n }else{\n // For other vertex weight = infinity and the nereast vertex is unknown \n serving.add(new DeixtraObj(userVertex.getID(), Double.MAX_VALUE, null));\n }\n\n } \n // why auxiliary is not empty \n while(serving.size()>0 ){\n // sort auxiliary by weight \n Collections.sort(serving);\n\n \n // remove shortes fom auxiliary and put in to answer \n DeixtraObj minObj = serving.remove(0);\n optimMap.put(minObj.getID(), minObj);\n\n Vertex minVertex = vertexes.get(minObj.getID());\n\n // get all edges from nearest \n for (Map.Entry<Long, Edge> entry : minVertex.allEdges().entrySet()) {\n Long dest = entry.getKey();\n Double wieght = entry.getValue().getWeight();\n // by all remain vertexes \n for(DeixtraObj dx : serving){\n if(dx.getID().equals(dest)){\n // if in checking vertex weight more then nearest vertex weight plus path to cheking \n // then change in checking weight and nearest\n if( (minObj.getWeight()+wieght) < dx.getWeight()){\n dx.setNearest(minVertex.getID());\n dx.setWeight((minObj.getWeight()+wieght));\n }\n }\n }\n }\n\n }\n }\n \n // create output list\n res.add(finish);\n Long point = finish;\n while(!point.equals(start)){\n \n point = ((DeixtraObj)optimMap.get(point)).getNearest();\n res.add(point);\n }\n \n Collections.reverse(res);\n \n \n return res;\n \n }", "public static ArrayList<GraphNode> getPathWithPredicate(GraphNode startNode, Predicate<GraphNode> predicate, int maxLength) {\n ArrayList<GraphNode> path = new ArrayList<>();\n Comparator<GraphNode> nodeComparator = new GraphNodePositionComparator(getPositionOf(startNode));\n HashSet<GraphNode> alreadyFound = new HashSet<>();\n\n Predicate<GraphNode> predicateAndNotAlreadyFound = predicate.and(graphNode -> !alreadyFound.contains(graphNode));\n\n GraphNode currentNode = startNode;\n\n for (int i = 0; i < maxLength; i++) {\n path.add(currentNode);\n alreadyFound.add(currentNode);\n\n GraphNode maxNode = getMaxWithPredicate(\n currentNode.neighbors,\n nodeComparator,\n predicateAndNotAlreadyFound\n );\n\n if (maxNode == null) {\n break;\n }\n currentNode = maxNode;\n }\n\n return path;\n }", "protected abstract Deque<Vertex<AtomicReference>> getVehicleRoute(int entry, int exit);", "double getRouteCost(Graph g){\n double totalCost = 0;\n double matrixWeights[][] = g.getMatrixOfWeights(); //get the matrix of weights from the class Graph\n for(int i=0;i<cityIndex.size()-1;i++){\n //the cost is calculated by computing the route from one index to the next since the representation is\n // a permutation\n totalCost = totalCost + matrixWeights[cityIndex.get(i)][cityIndex.get(i+1)];\n }\n totalCost = totalCost+matrixWeights[cityIndex.get(cityIndex.size()-1)][cityIndex.get(0)]; //To Return back from the\n // last to the first city\n return totalCost;\n }", "public ArrayList getRoutes(){\r\n ArrayList routeDataList = new ArrayList();\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id, route_long_name from routes\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n while (getData.moveToNext()){\r\n routeDataList.add(getData.getString(1));\r\n }\r\n\r\n getData.close();\r\n\r\n return routeDataList;\r\n }", "private List<Pair<Integer, Integer>> getBestPath(Pair<Integer, Integer> curLocation, Pair<Integer, Integer> dest) {\n\t\tList<Pair<Integer, Integer>> path = new LinkedList<Pair<Integer, Integer>>();\n\t\t\n\t\t\n\t\tNode current = new Node(curLocation.getX(), curLocation.getY(), getHitProbability(curLocation.getX(), curLocation.getY()));\n\t\tNode target = new Node(dest.getX(), dest.getY(), getHitProbability(dest.getX(), dest.getY()));\n\t\tList<Node> openSet = new ArrayList<>();\n List<Node> closedSet = new ArrayList<>();\n \n \n while (true) {\n openSet.remove(current);\n List<Node> adjacent = getAdjacentNodes(current, closedSet, target);\n\n // Find the adjacent node with the lowest heuristic cost.\n for (Node neighbor : adjacent) {\n \tboolean inOpenset = false;\n \tList<Node> openSetCopy = new ArrayList<>(openSet);\n \tfor (Node node : openSetCopy) {\n \t\tif (neighbor.equals(node)) {\n \t\t\tinOpenset = true;\n \t\t\tif (neighbor.getAccumulatedCost() < node.getAccumulatedCost()) {\n \t\t\t\topenSet.remove(node);\n \t\t\t\topenSet.add(neighbor);\n \t\t\t}\n \t\t}\n \t}\n \t\n \tif (!inOpenset) {\n \t\topenSet.add(neighbor);\n \t}\n }\n\n // Exit search if done.\n if (openSet.isEmpty()) {\n System.out.printf(\"Target (%d, %d) is unreachable from position (%d, %d).\\n\",\n target.getX(), target.getY(), curLocation.getX(), curLocation.getY());\n return null;\n } else if (/*isAdjacent(current, target)*/ current.equals(target)) {\n break;\n }\n\n // This node has been explored now.\n closedSet.add(current);\n\n // Find the next open node with the lowest cost.\n Node next = openSet.get(0);\n for (Node node : openSet) {\n if (node.getCost(target) < next.getCost(target)) {\n next = node;\n }\n }\n// System.out.println(\"Moving to node: \" + current);\n current = next;\n }\n \n // Rebuild the path using the node parents\n path.add(new Pair<Integer, Integer>(curLocation.getX(), curLocation.getY()));\n while(current.getParent() != null) {\n \tcurrent = current.getParent();\n \tpath.add(0, new Pair<Integer, Integer>(current.getX(), current.getY()));\n }\n \n if (path.size() > 1) {\n \tpath.remove(0);\n }\n \n\t\treturn path;\n\t}", "@Override\r\n public Collection<OptimizedItinerary> getBestItineraryByTime(String origin, Collection<RouteNode> routes) throws OptimizedItineraryStrategyException {\r\n log.info(String.format(\"** Getting best itineraries (based on time) from %s, using Dijkstra algorithm. **\", origin));\r\n \r\n if (!isOriginPresent(routes, origin))\r\n \tthrow new OptimizedItineraryStrategyException(String.format(\"Origin city: %s is not present.\", origin));\r\n \t\r\n Set<String> allDestinations = getDestinations(routes, origin);\r\n HipsterDirectedGraph<String,Long> graph = doGraphWithTimes(routes);\r\n \r\n // call Dijkstra for the same origen and all the destinations ...\r\n Collection<OptimizedItinerary> results = allDestinations.stream()\r\n .map(destination -> doDijkstra(graph, origin, destination))\r\n .collect(Collectors.toList());\r\n \r\n return results;\r\n }", "public void findBestRoute(Node src, Node dst) {\r\n\t\tArrayList<Node> route = new ArrayList<>();\r\n\t\tNode curr = src;\r\n\t\twhile (!curr.getName().equals(dst.getName())) {\r\n\t\t\tcurr = curr.getForwardingTable().get(dst);\r\n\t\t\troute.add(curr);\r\n\t\t}\r\n\r\n\t\tSystem.out.print(\"Best route so far is: \");\r\n\t\tfor (Node node : route) {\r\n\t\t\tSystem.out.print(node.getName() + \" \");\r\n\t\t}\r\n\t}", "IList<Edge> getWalls(ArrayList<ArrayList<Vertex>> v, ArrayList<Edge> all) {\n IList<Edge> finalEdges = new Empty<Edge>();\n for (Edge e : all) {\n boolean valid = true;\n for (ArrayList<Vertex> l : v) {\n for (Vertex vt : l) {\n for (Edge e2 : vt.outEdges) {\n if (e.equals(e2) || (e.to == e2.from && e.from == e2.to)) {\n valid = false;\n }\n }\n }\n }\n if (valid) {\n finalEdges = finalEdges.add(e);\n }\n }\n return finalEdges;\n }", "public abstract ArrayList<Pair<Vector2, Vector2>> getEdges();", "@Override\r\n\tpublic Graph getGrph() {\n\t\tList<Routes> routeList = storeRouteRepos();\r\n\t\tGraph.Edge[] GRAPH = new Graph.Edge[routeList.size()];\r\n\t\tRoutes route = new Routes();\r\n\r\n\t\tfor (int i = 0; i <= routeList.size() - 1; i++) {\r\n\t\t\troute = routeList.get(i);\r\n\t\t\tif ((route.getPlanetOrigin() != null) && (route.getPlanetDestination() != null)) {\r\n\t\t\t\tGRAPH[i] = new Graph.Edge(route.getPlanetOrigin(), route.getPlanetDestination(), route.getDistance());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tGraph g = new Graph(GRAPH);\r\n\t\t// g.dijkstra(START);\r\n\t\treturn g;\r\n\r\n\t}", "private List<Double> getDistanceFromTopOfTopLayersToTopEdge(int nominalCoverTop) {\n List<Double> distanceFromCentreOfEachLayer = getDistanceFromCentreOfEachLayerToEdge(topDiameters, additionalTopDiameters, topVerticalSpacings, nominalCoverTop);\n List<Integer> maxDiameters = getMaxDiametersForEachLayer(topDiameters, additionalTopDiameters);\n\n return IntStream\n .range(0, distanceFromCentreOfEachLayer.size())\n .mapToObj(i -> distanceFromCentreOfEachLayer.get(i) - 0.5 * maxDiameters.get(i))\n .collect(Collectors.toList());\n }", "List<Route> getAllRoute();", "public double getAlgBestPathDistance()\n\t{\n\t\treturn algBestPathDistance;\n\t}", "ComparableEdge[] fillEdgeArray(int maxWeight) {\n Map<String, ComparableEdge> edgeMap = new HashMap<String, ComparableEdge>();\n\n // process all vertex combinations so that we get the complete set\n // the edge hash that we constructed narrows the candidates for each\n // label pattern saving us from checking all possible edges.\n\n // for each vertex:\n // look up the hashKey for each possible 'missing bit' pattern\n // examine all matching candidates 'other vertices'\n // create a ComparableEdge for each vertex at distance <= maxWeight\n // add the ComparableEdges to the edgeList\n //\n // after processing all vertices:\n // copy the edgeList to an Array and sort the Array.\n // the Array is ready to drive the Kruskal Algorithm.\n //\n\n for (int i = 0; i < vertices.length; i++) {\n HammingVertex v = vertices[i];\n if (v == null) continue; // should not happen\n\n log.debug(\" **** vertex \" + i);\n System.err.println(\" **** vertex \" + i);\n\n // all users of the array MUST use exactly the same algorithm lookup sequence\n int missingBitsVertexMapsIndex = 0;\n\n // check all 'missing 2 bit' combinations for this vertex\n for (int j = 0; j < (labelSize - 1); j++) {\n for (int k = (j + 1); k < labelSize; k++) {\n int missingBitsKey = v.labelWithoutMissingBitsAsInt(j, k);\n\n Map missingBitsVertexMap = missingBitsVertexMaps[missingBitsVertexMapsIndex];\n\n List<Integer> l = (List<Integer>) missingBitsVertexMap.get(missingBitsKey);\n addQualifedEdgesFromVertexList(v, l, edgeMap, 2);\n\n // next missing bit hashMap in sequence\n missingBitsVertexMapsIndex++;\n }\n }\n }\n\n //ComparableEdge[] e = (ComparableEdge[])edgeList.toArray();\n Collection<ComparableEdge> edgeSet = edgeMap.values();\n int numEdges = edgeSet.size();\n ComparableEdge[] e = new ComparableEdge[numEdges];\n int i = 0;\n for (ComparableEdge edge : edgeSet) {\n e[i] = edge;\n i++;\n }\n Arrays.sort(e);\n\n if (isP())\n log.debug(\" --- there are \" + e.length + \" sorted edges.\");\n return e;\n }", "public void createEdges() {\n \tfor(String key : ways.keySet()) {\n \t Way way = ways.get(key);\n \t if(way.canDrive()) {\n \t\tArrayList<String> refs = way.getRefs();\n \t\t\t\n \t\tif(refs.size() > 0) {\n \t\t GPSNode prev = (GPSNode) this.getNode(refs.get(0));\n \t\t drivableNodes.add(prev);\n \t\t \n \t\t GPSNode curr = null;\n \t\t for(int i = 1; i <refs.size(); i++) {\n \t\t\tcurr = (GPSNode) this.getNode(refs.get(i));\n \t\t\tif(curr == null || prev == null)\n \t\t\t continue;\n \t\t\telse {\n \t\t\t double distance = calcDistance(curr.getLatitude(), curr.getLongitude(),\n \t\t\t\t prev.getLatitude(), prev.getLongitude());\n\n \t\t\t GraphEdge edge = new GraphEdge(prev, curr, distance, way.id);\n \t\t\t prev.addEdge(edge);\n \t\t\t curr.addEdge(edge);\n \t\t\t \n \t\t\t drivableNodes.add(curr);\n \t\t\t prev = curr;\n \t\t\t}\n \t\t }\t\n \t\t}\n \t }\n \t}\n }", "public void setMaxSourceDistance(double distance);", "public static void neighborGroupsGetMaximumSetGen(\n com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {\n manager\n .neighborGroups()\n .getByResourceGroupWithResponse(\"example-rg\", \"example-neighborGroup\", com.azure.core.util.Context.NONE);\n }", "public Collection<Route> getRoutes() {\n Iterator<KeyValuePair<Route>> it =\n routeTable.getKeyValuePairsForKeysStartingWith(\"\").iterator();\n\n List<Route> routes = new LinkedList<>();\n\n while (it.hasNext()) {\n KeyValuePair<Route> entry = it.next();\n routes.add(entry.getValue());\n }\n\n return routes;\n }", "public double getMaxDistance()\n\t{\n\t // Make sure it went some distance\n\t\tif(xPosList.size() > 0)\n\t\t{\n\t\t\treturn this.xPosList.get(xPosList.size() - 1);\n\t\t}\n\n\t\treturn 0;\n\t}", "public static List<CallGraph> getAllCallGraphs(int maxV, int maxE) {\n while (generateGraphModel() != null) {}\n return models.stream().map(model -> model.getCallGraph())\n .filter(cgraph -> cgraph.getVertexSet().size() < maxV)\n .filter(cgraph -> cgraph.getEdgeSet().size() < maxE)\n .collect(Collectors.toList());\n }", "int getPathCost(Coordinate end) {\n if (!graph.containsKey(end)) {\n // test use display point\n // System.err.printf(\"Graph doesn't contain end vertex \\\"%s\\\"\\n\", end);\n return Integer.MAX_VALUE;\n }\n int weight = Integer.MAX_VALUE;\n for (Coordinate key : graph.keySet()) {\n if (key.equals(end)) {\n weight = graph.get(key).dist;\n }\n }\n return weight;\n }", "private int[] getLimitingDistancesArray(int distances[]) {\n int limitingDistances[] = new int[distances.length];\n int lowestDistance = distances[distances.length - 1];\n for (int i = distances.length - 1; i >= 0; i--) {\n if (lowestDistance > distances[i]) {\n lowestDistance = distances[i];\n }\n limitingDistances[i] = lowestDistance;\n }\n\n return limitingDistances;\n }", "private Node closestUnvisitedNeighbour(HashMap <Node, Integer > shortestPathMap){\n int shortestDistance = Integer.MAX_VALUE;\n Node closestReachableNode = null;\n for (Node node : getNodes()) {\n if (node.isVisited())\n continue;\n\n int currentDistance = shortestPathMap.get(node);\n if (currentDistance == Integer.MAX_VALUE)\n continue;\n\n if (currentDistance < shortestDistance) {\n shortestDistance = currentDistance;\n closestReachableNode = node;\n }\n }\n return closestReachableNode;\n }", "public List<Edge> getEfficientEdges(List<Point> vertices) {\n\n /**\n * placeholder for storing the answer\n */\n List<Edge> ans = new ArrayList<>();\n \n /**\n * initialized as the the maximum value of double to easily \n * overwrite it when comparing for the first time \n */\n double ansEdgeSum = Double.MAX_VALUE;\n\n /**\n * gather all possible tessellation combinations\n */\n List<List<Edge>> temp = getAllTessellations(vertices);\n \n /**\n * iterate through the list and compare each value\n */\n for (List<Edge> curr : temp) {\n\n double currSum = this.edgeSum(curr);\n \n /**\n * if the current sum is smaller than the saved answer\n * then overwrite the ans and ansEdgeSum with the new best answer\n */\n if (ansEdgeSum > currSum) {\n ansEdgeSum = currSum;\n ans = curr;\n }\n }\n\n return ans;\n }" ]
[ "0.61925", "0.61367065", "0.60082287", "0.595784", "0.5870375", "0.583996", "0.5701634", "0.5683471", "0.5681368", "0.5680015", "0.56717557", "0.5634836", "0.55917394", "0.55410993", "0.5529148", "0.5448407", "0.5430438", "0.54240954", "0.5420922", "0.541664", "0.5415372", "0.5407671", "0.5385302", "0.53841835", "0.5375279", "0.53697324", "0.53497756", "0.53378963", "0.5335406", "0.53182733", "0.53009176", "0.5290127", "0.5258851", "0.52419174", "0.5237133", "0.52225375", "0.5176375", "0.5174585", "0.5161574", "0.51539993", "0.5152866", "0.5132943", "0.5107909", "0.5106945", "0.50929576", "0.5090525", "0.5078435", "0.50729984", "0.50612766", "0.50573254", "0.5027846", "0.5023284", "0.50190794", "0.5001583", "0.49970794", "0.49805012", "0.4965887", "0.49598026", "0.49587604", "0.4951292", "0.4950986", "0.49419755", "0.49388838", "0.49377242", "0.49368668", "0.493583", "0.49187076", "0.48969558", "0.4893834", "0.48885232", "0.48831788", "0.4878612", "0.48763105", "0.4867851", "0.48630217", "0.48628405", "0.48579833", "0.4843584", "0.48435155", "0.4842875", "0.4836993", "0.48324776", "0.48298135", "0.4829419", "0.4822986", "0.482269", "0.48156425", "0.4812547", "0.48089367", "0.48068026", "0.48042282", "0.48030177", "0.47890106", "0.47855613", "0.47823548", "0.47806817", "0.4770435", "0.47695112", "0.47586894", "0.47540691", "0.47532806" ]
0.0
-1
Get a list of all routes with maximum distance distance (excluding first and last edge), ending at edge to
public synchronized List<List<String> > getRoutesLeadingTo(String to, double distance) { return algos.getRevertedRoutesWithinDisctance(getEdge(to), distance); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer numberOfDifferentRoutes(MultiDirectionalNode startNode,\n\t\t\tMultiDirectionalNode endNode, Integer maxDistance) {\n\t\treturn null;\n\t}", "private int findAllRoutesBetweenTowns(Town origin, \n\t\t\tTown destination, int weight, \n\t\t\tint maxDistance) {\n\t\tint routes = 0;\n\t\tif (this.routingTable.containsKey(origin) && \n\t\t\t\tthis.routingTable.containsKey(\n\t\t\t\t\t\tdestination)) {\n\n\t\t\tEdge edge = this.routingTable.get(origin);\n\t\t\twhile (edge != null) {\n\t\t\t\tweight += edge.weight;\n\t\t\t\tif (weight <= maxDistance) {\n\t\t\t\t\tif (edge.destination.equals(\n\t\t\t\t\t\t\tdestination)) {\n\t\t\t\t\t\troutes++;\n\t\t\t\t\t\troutes += \n\t\t\t\t\t\t\tfindAllRoutesBetweenTowns(\n\t\t\t\t\t\t\t\tedge.destination, \n\t\t\t\t\t\t\t\tdestination, weight, \n\t\t\t\t\t\t\t\tmaxDistance);\n\t\t\t\t\t\tedge = edge.next;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\troutes += \n\t\t\t\t\t\t\tfindAllRoutesBetweenTowns(\n\t\t\t\t\t\t\t\tedge.destination, \n\t\t\t\t\t\t\t\tdestination, weight, \n\t\t\t\t\t\t\t\tmaxDistance);\n\t\t\t\t\t\tweight -= edge.weight;\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t\tweight -= edge.weight;\n\n\t\t\t\tedge = edge.next;\n\t\t\t}\n\t\t} else {\n\t\t\tnoRouteException();\n\n\t\t}\n\t\treturn routes;\n\n\t}", "public String calculateDiffRoutes(String start, String end, int maxDistance){\r\n AtomicInteger count = new AtomicInteger();\r\n int total = 0;\r\n Deque<Map.Entry<String, Integer>> queue = new LinkedList<>();\r\n diffRoutes(start, end, maxDistance, queue, count, total);\r\n return String.valueOf(count);\r\n }", "@Override\n public ArrayList<GraphEdge> getRoute(GraphNode a, GraphNode b) {\n \tHashMap<GraphNode, Double> distances = new HashMap<GraphNode, Double>();\n \tHashMap<GraphNode, GraphEdge> predecessor = new HashMap<GraphNode, GraphEdge>();\n \tHashSet<GraphNode> visited = new HashSet<GraphNode>();\n \t\n \tArrayList<GraphEdge> result = new ArrayList<GraphEdge>();\n\t\n \t//Initialize distances, predecessor, and visited\n \tfor(GraphNode g : drivableNodes) {\n \t distances.put(g, Double.MAX_VALUE);\n \t predecessor.put(g, null);\n \t}\n \t\n \tint remaining = drivableNodes.size();\n \t\n \t//Put starting node\n \tdistances.put(a, 0.0);\n \t//predecessor.put(a, null);\n \t\n \t//Main loop\n \twhile(remaining > 0) {\n \t GraphNode closest = null;\n \t double minDist = Double.MAX_VALUE;\n\n \t for(GraphNode n : distances.keySet()) {\n \t\tdouble dist = distances.get(n);\n \t\tif(!visited.contains(n) &&\n \t\t\tdist != Double.MAX_VALUE &&\n \t\t\t(minDist == Double.MAX_VALUE || dist < minDist)) {\n \t\t closest = n;\n \t\t minDist = dist;\n \t\t}\n \t }\n \t \n \t if(closest == null)\n \t\treturn null;\n \t \n \t if(closest.equals(b))\n \t\tbreak;\n \t \n \t visited.add(closest);\n \t \n \t for(GraphEdge edge : closest.getEdges()) {\n \t\tGraphNode adjacent = edge.getOtherNode(closest);\n \t\tif(adjacent != null && !visited.contains(adjacent)) {\n \t\t //Map distance value for the other Node\n \t\t double otherDist = distances.get(adjacent);\n \t\t //Weight of edge from closest node to adjacent node\n \t\t double weight = edge.getWeight();\n \t\t String way = edge.getWay();\n \t\t \n \t\t if(otherDist == Double.MAX_VALUE ||\n \t\t\t weight + minDist < otherDist) {\n \t\t\tdistances.put(adjacent, weight + minDist);\n \t\t\t\n \t\t\t//Make new edge in correct order\n \t\t\tGraphEdge corrected = new GraphEdge(closest, adjacent, weight, way);\n \t\t\t\n \t\t\tpredecessor.put(adjacent, corrected);\n \t\t }\n \t\t}\n \t }\n\n \t remaining--;\n \t}\n \t\n \t//Backtrack to build route\n \tif(distances.get(b) == Double.MAX_VALUE) {\n \t return null;\n \t} else {\n \t //buildPath(predecessor, a, b, result);\n \t //Non recursive version\n \t Stack<GraphEdge> stack = new Stack<GraphEdge>(); \n \t while(!b.equals(a)) {\n \t\tGraphEdge edge = predecessor.get(b);\n \t\t\n \t\t//Make sure vertices are in correct order\n \t\tGraphNode start = edge.getOtherNode(b);\n \t\t//double weight = edge.getWeight();\n \t\t//GraphEdge corrected = new GraphEdge(start, b, weight);\n \t\t\n \t\tstack.push(edge);\n \t\tb = start;\n \t }\n \t \n \t while(!stack.isEmpty()) {\n \t\tGraphEdge edge = stack.pop();\n \t\tresult.add(edge);\n \t }\n \t}\n \t\n\treturn result;\n }", "@Override\n public PossibleRoutesList getAllPossibleRoutes(int tripRequestID, int maximumMatches) throws NoResultsFoundException {\n TripRequest requestToMatch = getTripRequest(tripRequestID);\n Predicate<PossibleRoute> timeMatchPredicate = possibleRoute -> {\n if (requestToMatch.isTimeOfArrival()) {\n return possibleRoute.getArrivalTime().equals(requestToMatch.getRequestTime());\n } else {\n return possibleRoute.getDepartureTime().equals(requestToMatch.getRequestTime());\n }\n };\n Predicate<PossibleRoute> continuousRidePredicate = possibleRoute ->\n !requestToMatch.isContinuous() || possibleRoute.isContinuous();\n\n PossibleRoutesList possibleRoutes = getTripOffersGraph()\n .getAllPossibleRoutes(\n requestToMatch.getSourceStop(),\n requestToMatch.getDestinationStop(),\n requestToMatch.getRequestTime())\n .stream()\n .filter(timeMatchPredicate)\n .filter(continuousRidePredicate)\n .limit(maximumMatches)\n .collect(Collectors.toCollection(PossibleRoutesList::new));\n\n if (possibleRoutes.isEmpty()) {\n throw new NoResultsFoundException();\n } else {\n return possibleRoutes;\n }\n\n }", "public double getMaxSourceDistance();", "private List<BoardPos> filterShorter(List<BoardPos> route) {\n int maxDepth = route.isEmpty() ? 0 : route.get(route.size() - 1).routeLen();\n Iterator<BoardPos> it = route.iterator();\n\n while (it.hasNext()) {\n BoardPos pos = it.next();\n if (pos.routeLen() != maxDepth)\n it.remove();\n }\n\n return route;\n }", "public Map<String, Integer> findPossibilities(char startName, char finishName, int maxDistance) {\r\n Map<String, Integer> routes = new TreeMap<>();\r\n \r\n // get vertex identified by startName\r\n Vertex startVertex = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == startName) {\r\n startVertex = v;\r\n break;\r\n }\r\n }\r\n if(startVertex == null) {\r\n throw new IllegalArgumentException(\"Vertex \" + startName + \" is not in graph\");\r\n }\r\n \r\n // get vertex identified by finishName\r\n Vertex finishVertex = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == finishName) {\r\n finishVertex = v;\r\n break;\r\n }\r\n }\r\n if(finishVertex == null) {\r\n throw new IllegalArgumentException(\"Vertex \" + finishName + \" is not in graph\");\r\n }\r\n \r\n // search which will do DFS and alter routes whenever it finds a route\r\n search(routes, startVertex, finishVertex, maxDistance, Character.toString(startName), 0);\r\n \r\n /*for(Edge e : startVertex.getIncidentEdges()) {\r\n if(e.getDistance() <= maxDistance)\r\n search(routes, e.getOppositeVertex(startVertex), finishVertex, maxDistance, Character.toString(startName) + e.getOppositeVertex(startVertex).getName(), e.getDistance());\r\n }*/\r\n \r\n return routes;\r\n }", "private static int RouteAnalysis(int maxDistance, int finalDestination, ArrayList<Integer> gasStations) {\n\n int numStops = 0;\n int max = maxDistance;\n\n /*\n If the distance between the last gas station and the destination is greater than the maximum\n distance that the car can travel, the trip is considered to be impossible along this route and/or\n in this car. \n */\n if (finalDestination - gasStations.get(gasStations.size() - 1) > maxDistance) {\n return -1;\n }\n\n /*\n This process checks to see if there are any consecutive gas stations that are separated by a distance\n greater than the maximum distance that the car can travel on a single fill-up. If such a gap\n is found, the trip is considered to be impossible. \n */\n int x = 0;\n while (x + 1 < gasStations.size()) {\n if (gasStations.get(x + 1) - gasStations.get(x) > max) {\n return -1;\n }\n x++;\n }\n\n /*\n By this point, the trip is assumed to be possible. With this process the car will stop at the gas station\n before the gas station whose distance from the car's current location is greater than the car can travel\n on a single fill-up. \n */\n for (int i = 0; i < gasStations.size(); i++) {\n\n if (gasStations.get(i) > maxDistance) {\n /*\n Since all of the input data is relative to the car's starting position, the maximum distance\n that the car can travel is updated by adding to it the number of miles that the car has already\n traveled. For instance, if the car travels from mile 0 to a gas station located at mile 290, and\n the maximum distance that the car can travel is 400 miles, then from mile 290 the car can travel\n to mile 690. \n */\n maxDistance += gasStations.get(i - 1);\n numStops++;\n }\n\n }\n\n /*\n This last process essentially checks to see if the distance between the last gas station where the driver stopped\n and the final destination is greater than the maximum distance the car can travel. If it is, then the driver should\n stop at the last gas station on the route to fill up before proceeding to the final destination. \n */\n if (finalDestination - maxDistance > max) {\n maxDistance += gasStations.get(gasStations.size() - 1);\n numStops++;\n }\n\n return numStops;\n\n }", "public double getMaximumDistance() {\n double l = 0;\n int stop = getDistanceEnd();\n\n calculateDistances();\n\n for (int i = 0; i < stop; i++) {\n l = Math.max(l, distances[i]);\n }\n\n return l;\n }", "public Observable<Stop> getEndPoints() {\n return loadRoutesData()\n .flatMap(availableRoutes ->\n Observable.from(availableRoutes.routes()))\n .flatMap(route -> Observable.from(route.segments()).last())\n .map(segment -> segment.stops().get(segment.stops().size() - 1));\n\n }", "Execution getFarthestDistance();", "@Override\n\tpublic List<Edge> getAllMapEdges() {\n\n\t\tList<Edge> res = new ArrayList<Edge>();\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\t\t\tString getAllEdges = \"SELECT node_from, node_to, distance FROM routefinder.maprelations\";\n\t\t\tresultSet = null;\n\t\t\tpstmt = conn.prepareStatement(getAllEdges);\n\t\t\tresultSet = pstmt.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tEdge edge = new Edge();\n\t\t\t\tedge.setNode1(Database.getNodeFromId(resultSet.getInt(\"node_from\")));\n\t\t\t\tedge.setNode2(Database.getNodeFromId(resultSet.getInt(\"node_to\")));\n\t\t\t\tedge.setDist(resultSet.getDouble(\"distance\"));\n\t\t\t\tres.add(edge);\n\t\t\t}\n\t\t\treturn res;\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcConnect.resultClose(resultSet, pstmt);\n\t\t}\n\n\t\treturn null;\n\t}", "public Collection<LazyRelationship2> getEdges() {\n long relCount=0;\n ArrayList l = new ArrayList();\n \n for(Path e : getActiveTraverser()){\n for(Path p : getFlushTraverser(e.endNode())){\n if((relCount++%NEO_CACHE_LIMIT)==0){\n l.add(p.lastRelationship());\n clearNeoCache();\n }\n }\n }\n return l; \n }", "public static ArrayList<Route> getFeasibleRoutes(\r\n\t\t\tint i, \r\n\t\t\tint j, \r\n\t\t\tint[] hList,\r\n\t\t\tNode[] nodes,\r\n\t\t\tRoute[][][][] routes,\r\n\t\t\tdouble[][] distances,\r\n\t\t\tdouble alpha\r\n\t\t\t){\n\t\t\t\tArrayList<Route> feasibleRoutes = new ArrayList<Route>();\r\n\t\t\t\tif (nodes[i].isHub && nodes[j].isHub) {\r\n\t\t\t\t\tif (routes[i][i][j][j] == null)\r\n\t\t\t\t\t\troutes[i][i][j][j] = new Route(nodes[i], nodes[i], nodes[j], nodes[j],\r\n\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\tfeasibleRoutes.add(routes[i][i][j][j]);\r\n\t\t\t\t} else if (nodes[i].isHub) {\r\n\t\t\t\t\tfor (Integer n : hList) {\r\n\t\t\t\t\t\tif (routes[i][i][n][j] == null)\r\n\t\t\t\t\t\t\troutes[i][i][n][j] = new Route(nodes[i], nodes[i], nodes[n], nodes[j],\r\n\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\tfeasibleRoutes.add(routes[i][i][n][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (nodes[j].isHub) {\r\n\t\t\t\t\tfor (Integer n : hList) {\r\n\t\t\t\t\t\tif (routes[i][n][j][j] == null)\r\n\t\t\t\t\t\t\troutes[i][n][j][j] = new Route(nodes[i], nodes[n], nodes[j], nodes[j],\r\n\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\tfeasibleRoutes.add(routes[i][n][j][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfor (int u = 0; u < hList.length; u++) {\r\n\t\t\t\t\t\tfor (int v = u; v < hList.length; v++) {\r\n\t\t\t\t\t\t\tif (routes[i][hList[u]][hList[v]][j] == null\r\n\t\t\t\t\t\t\t\t\t&& routes[i][hList[v]][hList[u]][j] == null) {\r\n\t\t\t\t\t\t\t\tRoute r1 = new Route(nodes[i], nodes[hList[u]], nodes[hList[v]], nodes[j],\r\n\t\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\t\t\tRoute r2 = new Route(nodes[i], nodes[hList[v]], nodes[hList[u]], nodes[j],\r\n\t\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\t\t\tif (r1.expCost <= r2.expCost) {\r\n\t\t\t\t\t\t\t\t\troutes[r1.i.ID][r1.k.ID][r1.m.ID][r1.j.ID] = r1;\r\n\t\t\t\t\t\t\t\t\tfeasibleRoutes.add(r1);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\troutes[r2.i.ID][r2.k.ID][r2.m.ID][r2.j.ID] = r2;\r\n\t\t\t\t\t\t\t\t\tfeasibleRoutes.add(r2);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else if (routes[i][hList[u]][hList[v]][j] != null) {\r\n\t\t\t\t\t\t\t\tfeasibleRoutes.add(routes[i][hList[u]][hList[v]][j]);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfeasibleRoutes.add(routes[i][hList[v]][hList[u]][j]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn feasibleRoutes;\r\n\t}", "private List<Graph.Edge> getEdge(PathMap map) {\n // record the visited coordinates\n List<Coordinate> visited = new ArrayList<>();\n // get all coordinates from the map\n List<Coordinate> allCoordinates = map.getCoordinates();\n // for record all generated edges\n List<Graph.Edge> edges = new ArrayList<>();\n\n\n while (visited.size() <= allCoordinates.size() - 1) {\n for (Coordinate temp : allCoordinates) {\n\n if (visited.contains(temp)) {\n continue;\n }\n visited.add(temp);\n List<Coordinate> neighbors = map.neighbours(temp);\n for (Coordinate tempNeighbour : neighbors) {\n edges.add(new Graph.Edge(temp, tempNeighbour, tempNeighbour.getTerrainCost()));\n }\n }\n }\n // trim impassable coordinates\n List<Graph.Edge> fEdges = new ArrayList<>();\n for (Graph.Edge dd : edges) {\n if (dd.startNode.getImpassable() || dd.endNode.getImpassable()) {\n continue;\n }\n fEdges.add(dd);\n }\n return fEdges;\n }", "public int maxDistance(int[][] grid) {\n boolean[][] visited = new boolean[grid.length][grid[0].length]; // mark which cells have been already been visited\n Queue<int[]> queue = new LinkedList<>();\n\n //put 1 cells into queue to start with and mark then visited\n for (int i = 0; i < grid.length; i++) {\n for (int j = 0; j < grid[0].length; j++) {\n if (grid[i][j] == 1) {\n queue.add(new int[]{i,j});\n visited[i][j] = true; //mark cell as visited\n }\n }\n }\n\n int distance = -1;\n int[][] directions = {{-1,0}, {0,1}, {1,0}, {0,-1}}; //all possible 4 directions\n while (!queue.isEmpty()) {\n int size = queue.size(); //since this is BFS we need to traverse level by level\n\n while (size > 0) { //iterate only till nodes in current level\n int[] pair = queue.poll();\n\n for (int[] direction : directions) { // check in all possible directions\n int x = pair[0] + direction[0];\n int y = pair[1] + direction[1];\n\n //if target cell is with in bounds and is not visited, add it to queue\n if (x >= 0 && x < grid.length && y >= 0 && y < grid[0].length && !visited[x][y]) {\n queue.add(new int[]{x,y});\n visited[x][y] = true;\n }\n }\n size--;\n }\n distance++; //increment the size only after level traversal is complete\n }\n\n //this is required because distance can be zero. This is possible if grid contains all 1's and all 1's are\n //consider level 1 as we are starting with them. So, need to return -1\n return distance == 0 ? -1 : distance;\n }", "List findByDistance(Double latitude, Double longitude, int maxDistance, int maxResults);", "List<ConnectingFlights> getPossibleRoutes(int loc_start_id, int loc_end_id);", "public void setMax(){\n for (int i = 0; i < Nodes.size(); i++){\n this.MinDistance.add(Double.MAX_VALUE);\n }\n }", "public double getFurthermostDistance(){\n\t\t\tdouble distance;\n\t\t\tdouble distanceMax = 0.0;\n\t\t\tPoint centroid = centroid();\n\t\t\tfor(Point p : clusterPointsList){\n\t\t\t\tdistance = p.dist(centroid);\t\t\t\n\t\t\t\tif(distance > distanceMax){\n\t\t\t\t\tdistanceMax = distance;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn distanceMax;\n\t\t}", "public ArrayList<ArrayList<ModuleElement>> getAllShortestRoutes(Biochip grid, ModuleElement dest){\n\t\tArrayList<ArrayList<ModuleElement>> route_list = new ArrayList<ArrayList<ModuleElement>>(); \n\t\tArrayList<ModuleElement> crt_route = new ArrayList<ModuleElement>();\n\t\tdouble crt_value = grid.getCell(dest.x, dest.y).value; \n\t\tcrt_route.add(dest);\n\t\troute_list.add(crt_route);\n\t\t//this.printGrid(grid);\n\t\t//System.out.println(grid.getCell(dest.x, dest.y).value); \n\t\t//System.out.println(\"Get sh_route for dest = \" + dest.x + dest.y + \"crt_value=\" + crt_value); \n\n\t\twhile(crt_value>0){\n\t\t\tArrayList<ArrayList<ModuleElement>> new_route_list = new ArrayList<ArrayList<ModuleElement>>(); \n\t\t\tcrt_value --; \n\t\t\tfor (int k=0; k<route_list.size();k++){\n\t\t\t\t//System.out.println(\"k=\" + k); \n\t\t\t\tcrt_route = route_list.get(k); \n\t\t\t\tint i = crt_route.get(crt_route.size()-1).x;\n\t\t\t\tint j = crt_route.get(crt_route.size()-1).y;\n\t\t\t\t// neighbors\n\t\t\t\tif (j+1<grid.width){\n\t\t\t\t\tCell right_n = grid.getCell(i, j+1);\n\t\t\t\t\tArrayList<ModuleElement> r_route = this.createNewRoute(grid, crt_route, right_n, crt_value); \n\t\t\t\t\tif (r_route!=null) new_route_list.add(r_route); \t\n\t\t\t\t}\n\t\t\t\tif (j-1>=0) {\n\t\t\t\t\tCell left_n = grid.getCell(i, j-1);\n\t\t\t\t\tArrayList<ModuleElement> l_route = this.createNewRoute(grid, crt_route, left_n, crt_value); \n\t\t\t\t\tif (l_route!=null) new_route_list.add(l_route); \n\t\t\t\t} \n\t\t\t\tif (i-1>=0) {\n\t\t\t\t\tCell up_n = grid.getCell(i-1, j);\n\t\t\t\t\tArrayList<ModuleElement> u_route = this.createNewRoute(grid, crt_route, up_n, crt_value); \n\t\t\t\t\tif (u_route!=null) new_route_list.add(u_route); \n\t\t\t\t} \n\t\t\t\tif (i+1<grid.height) {\n\t\t\t\t\tCell down_n = grid.getCell(i+1, j);\n\t\t\t\t\tArrayList<ModuleElement> d_route = this.createNewRoute(grid, crt_route, down_n, crt_value); \n\t\t\t\t\tif (d_route!=null) new_route_list.add(d_route); \t\n\t\t\t\t} \n\t\t\t\t//System.out.println(\"new_route_list = \" + new_route_list); \n\t\t\t}\n\t\t\troute_list = new_route_list; \n\t\t}\n\t\t\n\t\treturn route_list; \n\t}", "public final int getMaxLinkDistance() {\n\t\tint r = 0;\n\t\tlockMe(this);\n\t\tr = maxLinkDistance;\n\t\tunlockMe(this);\n\t\treturn r;\n\t}", "@RequestMapping(value = \"/max_weight_dag\", method = RequestMethod.GET)\r\n @ResponseBody\r\n public DirectedGraph getMaxWeightDAG() {\n UndirectedGraph graph = new UndirectedGraph(5);\r\n graph.addEdge(0, 1, 10.0);\r\n graph.addEdge(1, 2, 11.0);\r\n graph.addEdge(2, 3, 13.0);\r\n graph.addEdge(3, 4, 14.0);\r\n graph.addEdge(4, 0, 15.0);\r\n return graph;\r\n }", "public List<String> getShortestRoute(String start, String end) {\n\t\tif (!vertices.contains(start)) return null;\n\t\tMap<String, Vertex> verticesWithDistance = new HashMap<String, Vertex>();\n\t\tVertex starting = new Vertex(start, 0);\n\t\tverticesWithDistance.put(start, starting);\n\t\tstarting.route.add(starting.name);\n\t\tfor (String v : vertices) {\n\t\t\tif (!v.equals(start))\n\t\t\t\tverticesWithDistance.put(v, new Vertex(v, -1));\n\t\t}\n\t\treturn searchByDijkstra(starting, end , verticesWithDistance);\n\t}", "public static PriorityQueue<Route> getFeasibleRoutes2(\r\n\t\t\tint i, \r\n\t\t\tint j, \r\n\t\t\tint[] hList,\r\n\t\t\tNode[] nodes,\r\n\t\t\tRoute[][][][] routes,\r\n\t\t\tdouble[][] distances,\r\n\t\t\tdouble alpha\r\n\t\t\t){\n\t\tPriorityQueue<Route> feasibleRoutes = new PriorityQueue<Route>();\r\n\t\t\t\tif (nodes[i].isHub && nodes[j].isHub) {\r\n\t\t\t\t\tif (routes[i][i][j][j] == null)\r\n\t\t\t\t\t\troutes[i][i][j][j] = new Route(nodes[i], nodes[i], nodes[j], nodes[j],\r\n\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\tfeasibleRoutes.add(routes[i][i][j][j]);\r\n\t\t\t\t} else if (nodes[i].isHub) {\r\n\t\t\t\t\tfor (Integer n : hList) {\r\n\t\t\t\t\t\tif (routes[i][i][n][j] == null)\r\n\t\t\t\t\t\t\troutes[i][i][n][j] = new Route(nodes[i], nodes[i], nodes[n], nodes[j],\r\n\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\tfeasibleRoutes.add(routes[i][i][n][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (nodes[j].isHub) {\r\n\t\t\t\t\tfor (Integer n : hList) {\r\n\t\t\t\t\t\tif (routes[i][n][j][j] == null)\r\n\t\t\t\t\t\t\troutes[i][n][j][j] = new Route(nodes[i], nodes[n], nodes[j], nodes[j],\r\n\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\tfeasibleRoutes.add(routes[i][n][j][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfor (int u = 0; u < hList.length; u++) {\r\n\t\t\t\t\t\tfor (int v = u; v < hList.length; v++) {\r\n\t\t\t\t\t\t\tif (routes[i][hList[u]][hList[v]][j] == null\r\n\t\t\t\t\t\t\t\t\t&& routes[i][hList[v]][hList[u]][j] == null) {\r\n\t\t\t\t\t\t\t\tRoute r1 = new Route(nodes[i], nodes[hList[u]], nodes[hList[v]], nodes[j],\r\n\t\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\t\t\tRoute r2 = new Route(nodes[i], nodes[hList[v]],nodes[hList[u]], nodes[j],\r\n\t\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\t\t\tif (r1.expCost <= r2.expCost) {\r\n\t\t\t\t\t\t\t\t\troutes[r1.i.ID][r1.k.ID][r1.m.ID][r1.j.ID] = r1;\r\n\t\t\t\t\t\t\t\t\tfeasibleRoutes.add(r1);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\troutes[r2.i.ID][r2.k.ID][r2.m.ID][r2.j.ID] = r2;\r\n\t\t\t\t\t\t\t\t\tfeasibleRoutes.add(r2);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else if (routes[i][hList[u]][hList[v]][j] != null) {\r\n\t\t\t\t\t\t\t\tfeasibleRoutes.add(routes[i][hList[u]][hList[v]][j]);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfeasibleRoutes.add(routes[i][hList[v]][hList[u]][j]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn feasibleRoutes;\r\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n mNodes = sc.nextInt();\n mEdges = sc.nextInt();\n \n mDistances = new int[mNodes+1][mNodes+1];\n \n for (int i =1; i <= mNodes; i++)\n {\n \n for (int j =1; j <=mNodes;j++)\n {\n mDistances[i][j] = Integer.MAX_VALUE;\n \n }\n }\n \n for (int i =1; i <= mNodes; i++)\n {\n mDistances[i][i] =0;\n }\n \n for (int i = 0 ; i < mEdges; i++)\n {\n int from = sc.nextInt();\n int to = sc.nextInt();\n \n mDistances[from][to] = sc.nextInt();\n \n \n }\n \n \n //FW\n \n for (int k = 1; k <= mNodes; k++)\n {\n \n for (int i = 1; i <= mNodes; i++)\n {\n \n for (int j = 1; j <= mNodes; j++)\n {\n \n if (mDistances[i][k]!= Integer.MAX_VALUE && mDistances[k][j] != Integer.MAX_VALUE )\n {\n if (mDistances[i][j] > mDistances[i][k] + mDistances[k][j])\n {\n \n mDistances[i][j] = mDistances[i][k] + mDistances[k][j];\n }\n \n }\n \n }\n }\n \n }\n \n mQueries = sc.nextInt();\n \n for (int i =0; i < mQueries; i++)\n {\n int dist = mDistances[sc.nextInt()][sc.nextInt()];\n \n if (dist == Integer.MAX_VALUE)\n {\n dist = -1;\n }\n \n System.out.println(dist);\n \n }\n \n \n \n \n \n \n \n \n \n }", "@Override\n\tpublic List<Edge> getAllEdges() {\n\n\t\tList<Edge> res = new ArrayList<Edge>();\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\t\t\tString getAllEdges = \"SELECT node_from, node_to, distance FROM routefinder.relations\";\n\t\t\tresultSet = null;\n\t\t\tpstmt = conn.prepareStatement(getAllEdges);\n\t\t\tresultSet = pstmt.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tEdge edge = new Edge();\n\t\t\t\tedge.setNode1(Database.getNodeFromId(resultSet.getInt(\"node_from\")));\n\t\t\t\tedge.setNode2(Database.getNodeFromId(resultSet.getInt(\"node_to\")));\n\t\t\t\tedge.setDist(resultSet.getDouble(\"distance\"));\n\t\t\t\tres.add(edge);\n\t\t\t}\n\n\t\t\treturn res;\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcConnect.resultClose(resultSet, pstmt);\n\t\t}\n\n\t\treturn null;\n\t}", "private int best_Broadcasting_Router(int[][] matrx)\n\t{\n\t\tint best_router = -1;\n\t\tint min = INFINITE_DIST;\n\t\tint[] min_dist = new int[matrx.length];\n\t\tint[] forward_min_dist_table = new int[matrx.length];\n\t\tint[] prev_node = new int[matrx.length];\n\t\t\n\t\tfor(int s=0; s<matrx.length; s++)\n\t\t{\n\t\t\t//Compute shortest path for every node\n\t\t\tforward_min_dist_table = shrtst_Path_Dijkstra_Algo(matrx, s, forward_min_dist_table, prev_node);\n\t\t\t\n\t\t\t//only include reachable nodes for total\n\t\t\tfor(int i=0; i<forward_min_dist_table.length; i++)\n\t\t\t{\n\t\t\t\tif(forward_min_dist_table[i] != INFINITE_DIST)\n\t\t\t\t\tmin_dist[s] += forward_min_dist_table[i];\n\t\t\t}\n\t\t}\n\t\t//min_dist array contains min distance from every node to every other node\n\t\tfor(int n=0; n<min_dist.length; n++)\n\t\t{\n\t\t\tSystem.out.println(\"Total cost of router \"+ (n+1) +\" to other nodes is: \"+ min_dist[n]);\n\t\t\tif(min_dist[n] < min && min_dist[n] != 0)\n\t\t\t{\n\t\t\t\tmin = min_dist[n];\n\t\t\t\tbest_router = n;\n\t\t\t}\n\t\t}\n\t\treturn (best_router + 1);\n\t}", "public void dfs(int startV,int end, double maxCost, double maxHops,LinkedList<Edge>[] routes,double cost,double distance,double hops,int totRoutes,LinkedList<Edge>edges) {\n marked[startV] = true;\n if(startV == end){\n Routes newRo = new Routes(hops,cost,distance, edges);\n finRoutes.add(newRo);\n return; \n }\n\n if(hops<maxHops){\n for (Edge w : adj(startV)) {\n //System.out.println(w.toString());\n //if(startV==w.other(w.either()))\n int e = w.other(w.either());\n int v =w.either();\n int next;\n\n if(startV == e)\n next=v;\n else next =e;\n if(!marked[next]) {\n double nc = cost + w.cost();\n if(nc<=maxCost){\n hops++;\n //routes[totRoutes].add(w);\n edges.add(w);\n //distance+=w.distance();\n double nd = distance+w.distance();\n //dfs(next,end,maxCost,maxHops,routes,cost,distance,hops,totRoutes,edges);\n dfs(next,end,maxCost,maxHops,routes,nc,nd,hops,totRoutes,edges);\n \n marked[next]=false;\n hops--;\n //if(routes[totRoutes].size()>0)\n // routes[totRoutes].remove(routes[totRoutes].size()-1);\n if(edges.size()>0)\n edges.remove(edges.size()-1);\n }\n //edgeTo[w.either()] = startV;\n //dfs( startV);\n \n }\n }\n }\n \n }", "public SortedSet<WLightpathUnregenerated> getOutgoingLigtpaths () { return n.getOutgoingRoutes(getNet().getWdmLayer().getNe()).stream().map(ee->new WLightpathUnregenerated(ee)).collect(Collectors.toCollection(TreeSet::new)); }", "public int[] djekstra(Router root, Router destination){\n //if router and destination same\n if (root.getID() == destination.getID()){\n int[] result = new int[2];\n result[0] = root.getID();\n result[1] = 0;\n hops.add(0);\n return result;\n }\n\n //Storing shortest path currently known\n int[] shortestPath = new int[size];\n //Storing the weights of the current router's connection to neighbors\n int[] currentNeighborConnectionWeight = new int[size];\n\n //First set all of the positions to 9999 (pseudo infinity)\n for (int i = 0; i < shortestPath.length;i++){\n shortestPath[i] = 9999;\n }\n\n // Set the distance to itself as 0, mark as visited\n shortestPath[root.getID()-1] = 0;\n root.visit();\n\n //For each connection the root has, set the shortestPath available to the weight to the neighbor\n for (Connection c : root.getConnections()){\n shortestPath[c.getDestination().getID()-1] = c.getWeight();\n }\n\n //Find the smallest router to start the algorithm\n //ID of smallest router, start the value with the first available option\n int smallestRouterID = 0;\n int smallestRouterWeight = 9999;\n //Router used for iterating\n Router current = null;\n //Storing path length\n int totalPathLength = 0;\n\n\n //Find the shortest available path link to start with\n for (int k = 0; k < shortestPath.length; k++){\n if ((shortestPath[k] < smallestRouterWeight) && (shortestPath[k] != 0)){\n // Check to see if dead end\n if (routers.get(k).getConnections().size() > 1){\n // id is pos+1\n smallestRouterID = k + 1;\n smallestRouterWeight = shortestPath[k];\n } else if (routers.get(k).getID() == destination.getID()){ //edge case\n // id is pos+1\n smallestRouterID = k + 1;\n smallestRouterWeight = shortestPath[k];\n }\n }\n }\n // add its weight\n totalPathLength += smallestRouterWeight;\n\n //This is where we start our first step\n current = getRouter(smallestRouterID);\n hops.add(current.getID());\n current.visit();\n //System.out.println(\"First step--> Router:\" + smallestRouterID + \" Weight to router from root:\" + smallestRouterWeight);\n //Now we loop\n Router firstRouter = current;\n boolean done = false;\n while (done == false){\n //Break case 1, we found the router\n if (current.getID() == destination.getID()){\n // check if root has available connections\n\n // set current to root and store totalPathLength to new variable && store hops in new array ArrayList\n // compare totals and store the one that's lower ++ hops list too\n // could we recursively call djekstra?\n done = true;\n // System.out.println(\"Router found\");\n break;\n }\n\n //Break case 2, all of the connections have been visited already\n boolean destinationAvailable = hasAvailableConnections(current);\n if (destinationAvailable == false){\n if(hasAvailableConnections(root)){\n current = root;\n hops.clear();\n totalPathLength= 0;\n } else {\n done = true;\n // System.out.println(\"v-- No more routers available\");\n break;\n }\n }\n\n //set all to 9999 to assume we cant see\n for (int a = 0; a < currentNeighborConnectionWeight.length; a++){\n currentNeighborConnectionWeight[a] = 9999;\n }\n\n //Recalculate for new path lengths\n for (Connection c : current.getConnections()){\n //Only calculate path for routers that havent been visited\n if (c.getDestination().getVisit() == false){\n currentNeighborConnectionWeight[c.getDestination().getID()-1] = c.getWeight();\n }\n }\n\n //Find the next step to take\n //Find the shortest available path link to start with\n smallestRouterID = 0;\n smallestRouterWeight = 9999;\n for (int b = 0; b < currentNeighborConnectionWeight.length; b++){\n if ((currentNeighborConnectionWeight[b] < smallestRouterWeight)){\n // id is pos+1\n smallestRouterID = b + 1;\n smallestRouterWeight = currentNeighborConnectionWeight[b];\n }\n }\n\n // add its weight\n totalPathLength += smallestRouterWeight;\n current = getRouter(smallestRouterID);\n hops.add(current.getID());\n current.visit();\n // System.out.println(\"Next shortest path--> Router: \" + current.getID() + \" Length from root:\" + totalPathLength);\n\n\n } // <--------------------------------------------------------------------------------End of while loop\n\n // returns <lasthop, pathcost>\n int[] result = new int[2];\n //Check and see if the path length is smaller then the original\n if (totalPathLength <= shortestPath[destination.getID()-1]){\n //System.out.println(\"Case new \" + firstRouter.getID());\n shortestPath[destination.getID()-1] = totalPathLength;\n result[0] = firstRouter.getID();\n result[1] = shortestPath[destination.getID()-1];\n } else {\n //root was shorter\n //System.out.println(\"Case old \" + root.getID());\n result[0] = root.getID();\n result[1] = shortestPath[destination.getID()-1];\n }\n // System.out.println(\"Next hop:\" + current.getID() + \" Total Distance:\" + shortestPath[destination.getID()-1]);\n\n //reset the visited list\n for (Router r: routers){\n r.unvisit();\n }\n return result;\n }", "private static int getLongestPath(ArrayList<ArrayList<Integer>> graph, int N) {\n int startNode = 1;\n int edgeVertex = 0;\n\n boolean[] visited = new boolean[N + 1];\n\n LinkedList<Integer> queue = new LinkedList<>();\n\n queue.add(startNode);\n visited[startNode] = true;\n\n while (!queue.isEmpty()) {\n int u = queue.poll();\n\n for (int v : graph.get(u)) {\n if (!visited[v]) {\n queue.add(v);\n visited[v]=true;\n edgeVertex = v;\n }\n }\n }\n\n\n //Doing BFS from one of the edgeVertex\n\n queue.clear();\n Arrays.fill(visited, false);\n\n int length = 0;\n\n queue.add(edgeVertex);\n queue.add(-1);\n visited[edgeVertex] = true;\n\n while (queue.size() > 1) {\n int u = queue.poll();\n\n if (u == -1) {\n queue.add(-1);\n length++;\n\n } else {\n for (int v : graph.get(u)) {\n if (!visited[v]) {\n queue.add(v);\n visited[v] = true;\n }\n }\n }\n }\n\n return length;\n }", "@Override\r\n\tpublic List<Node<T>> getLongestPathFromRootToAnyLeaf() {\r\n\t\tList<Node<T>> camino = new LinkedList<Node<T>>();// La lista que se\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// retornara\r\n\t\tint prof = 1;// La profundidad actual\r\n\t\tNode<T> ret = null;// El nodo mas profundo\r\n\t\tret = LongestPathRec(raiz, prof, ret);// Metodo\r\n\t\t\t\t\t\t\t\t\t\t\t\t// auxiliar que\r\n\t\t\t\t\t\t\t\t\t\t\t\t// busca el nodo\r\n\t\t\t\t\t\t\t\t\t\t\t\t// mas profundo\r\n\t\treturn completaCamino(ret, camino);// Metodo auxiliar que crea el camino\r\n\t\t\t\t\t\t\t\t\t\t\t// hacia el nodo mas profundo\r\n\t}", "public java.util.List<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>> getRoute()\r\n {\r\n List<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>> roads_map = new ArrayList<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>>();\r\n java.util.AbstractMap.SimpleImmutableEntry<Street,Stop> entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(null, null);\r\n\r\n for (Street s : streets_map)\r\n {\r\n if (s.getStops().isEmpty() == false)\r\n {\r\n for (int i = 0; i < s.getStops().size(); i++)\r\n {\r\n entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(s,s.getStops().get(i));\r\n }\r\n\r\n }\r\n else\r\n {\r\n entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(s,null);\r\n }\r\n\r\n roads_map.add(entry);\r\n\r\n }\r\n\r\n return roads_map;\r\n\r\n }", "private List<Edge<Stop>> getWalkingEdgesFromStop(long timeAtStop, Stop stop, Set<Stop> found) {\n //Calculate a list of geohashes around the stop\n List<Geohash> nearbyGeohashes = Geohash.getSurroundingGeohashes(\n BigDecimal.valueOf(stop.getLocation().getLatitude()),\n BigDecimal.valueOf(stop.getLocation().getLongitude()), STOP_INDEX_GEOHASH_LEVEL);\n\n return nearbyGeohashes.stream()\n //Get all stops inside the geohashes\n .flatMap(geohash -> stopByGeohashIndex.getItems(geohash).stream())\n //Filter stops that have been already found\n .filter(stopFromIndex -> !found.contains(stopFromIndex))\n //Filter stops that are too far\n .filter(stopFromIndex -> stopFromIndex.getLocation().distanceTo(stop.getLocation()) <= MAX_WALKING_DISTANCE_IN_METERS\n && !stopFromIndex.getId().equals(stop.getId()))\n .map(walkableStop -> new StopEdge(null, //No public transport route used when walking -> route = null, trip = null\n null,\n TransportMode.WALK,\n stop,\n walkableStop,\n //Calculate walking time\n timeAtStop + 1 + Math.round(walkableStop.getLocation().distanceTo(stop.getLocation()) / AVERAGE_WALKING_SPEED_MS),\n timeAtStop))\n .collect(Collectors.toCollection(() -> new TiraArrayList<>()));\n }", "private List<StopEdge> getPossibleDestinations(Stop stop, long timeAtStop, Route route, String tripId, LocalDate departureDate, long departureTime, List<StopTime> stopTimesOfTrip, Set<Stop> found, Map<String, Long> bestArrivalTime) {\n List<StopEdge> edges = new TiraArrayList<>();\n\n long departureTimeMillis = calculateTime(departureDate, departureTime);\n //If the public transport service departs from the stop before current time, that service cannot be used for the route -> return empty list\n if (departureTimeMillis < timeAtStop) {\n return Collections.emptyList();\n }\n\n for (StopTime stopTime : stopTimesOfTrip) {\n Stop destinationStop = stops.get(stopTime.getStopId());\n if (destinationStop == null) {\n //This should happen only if the GTFS feed is malformed\n return Collections.emptyList();\n }\n\n //Don't add new edge if a better route to the destination was already found\n long arrivalTimeMillis = calculateTime(departureDate, stopTime.getArrivalTime());\n if (arrivalTimeMillis > bestArrivalTime.getOrDefault(destinationStop.getId(), Long.MAX_VALUE)) {\n continue;\n }\n\n if (arrivalTimeMillis > departureTimeMillis) {\n //If the trip would pass through any of already found stops, return empty list as it would be slower to reach the final destination using this route than the route that was used for reaching the previously found route\n if (found.contains(destinationStop)) {\n return Collections.emptyList();\n }\n\n bestArrivalTime.put(destinationStop.getId(), arrivalTimeMillis);\n edges.add(new StopEdge(route.getName(), tripId, route.getMode(), stop, destinationStop, arrivalTimeMillis, departureTimeMillis));\n }\n }\n\n return edges;\n }", "private void findBestPath(){\n\t\t// The method will try to find the best path for every starting point and will use the minimum\n\t\tfor(int start = 0; start < this.getDimension(); start++){\n\t\t\tfindBestPath(start);\t\n\t\t}\t\n\t}", "public static List<String> journeyPlanner(Graph g, String start, String end, int maxStops, boolean exact) {\n\t\tAlgorithmGraph ag = new AlgorithmGraph(g);\n\t\treturn ag.getAllRoutes(start, end, maxStops, exact);\n\t}", "private void calculate() {\n\t\tList<Edge> path = new ArrayList<>();\n\t\tPriorityQueue<Vert> qv = new PriorityQueue<>();\n\t\tverts[s].dist = 0;\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tif (e.w==0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist < L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t} else if (verts[t].dist == L) {\n\t\t\tok = true;\n\t\t\tfor (int i=0; i<m; i++) {\n\t\t\t\tif (edges[i].w == 0) {\n\t\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t// replace 0 with 1, adding to za list\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (edges[i].w == 0) {\n\t\t\t\tza[i] = true;\n\t\t\t\tedges[i].w = 1;\n\t\t\t} else {\n\t\t\t\tza[i] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// looking for shortest path from s to t with 0\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tif (i != s) {\n\t\t\t\tverts[i].dist = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tqv.clear();\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist > L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t}\n\t\tVert v = verts[t];\n\t\twhile (v.dist > 0) {\n\t\t\tlong minDist = MAX_DIST;\n\t\t\tVert vMin = null;\n\t\t\tEdge eMin = null;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(v.idx)];\n\t\t\t\tif (vo.dist+e.w < minDist) {\n\t\t\t\t\tvMin = vo;\n\t\t\t\t\teMin = e;\n\t\t\t\t\tminDist = vMin.dist+e.w;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tv = vMin;\t\n\t\t\tpath.add(eMin);\n\t\t}\n\t\tCollections.reverse(path);\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (za[i]) {\n\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tlong totLen=0;\n\t\tboolean wFixed = false;\n\t\tfor (Edge e : path) {\n\t\t\ttotLen += (za[e.idx] ? 1 : e.w);\n\t\t}\n\t\tfor (Edge e : path) {\n\t\t\tif (za[e.idx]) {\n\t\t\t\tif (!wFixed) {\n\t\t\t\t\te.w = L - totLen + 1;\n\t\t\t\t\twFixed = true;\n\t\t\t\t} else {\n\t\t\t\t\te.w = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tok = true;\n\t}", "private ArrayList<Edge>getFullyConnectedGraph(){\n\t\tArrayList<Edge> edges = new ArrayList<>();\n\t\tfor(int i=0;i<nodes.size();i++){\n\t\t\tfor(int j=i+1;j<nodes.size();j++){\n\t\t\t\tEdge edge = new Edge(nodes.get(i), nodes.get(j),Utils.distance(nodes.get(i), nodes.get(j)));\n\t\t\t\tedges.add(edge);\n\t\t\t}\n\t\t}\n\t\treturn edges;\n\t}", "public ShortestPathMatrix<V,E> allPairsShortestPaths();", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n public List<Edge<T>> viterbiPath() {\n final int numNodes = nodeList.size();\n double[] d_v = new double[numNodes];\n Arrays.fill(d_v, annihilator());\n d_v[ROOT_ID] = identity();\n Edge[] p_v = new Edge[numNodes]; \n \n // Forward pass\n for (int v = ROOT_ID+1; v < numNodes; ++v) {\n List<Edge<T>> edgeList = nodeList.get(v).backwardStar();\n for (Edge<T> edge : edgeList) {\n int u = edge.start().id();\n double bestCost = d_v[v];\n double transitionCost = score(d_v[u], edge.weight());\n if (compare(bestCost, transitionCost) == transitionCost) {\n // Do an update to the best cost\n d_v[v] = transitionCost;\n p_v[v] = edge;\n }\n }\n }\n \n // Backout the solution\n List<Edge<T>> bestPath = new LinkedList<Edge<T>>();\n Edge<T> bestEdge = p_v[numNodes-1];\n bestEdge = p_v[bestEdge.start().id()]; // Skip the goal node\n while(bestEdge.start().id() != ROOT_ID) {\n bestPath.add(0, bestEdge); // O(c) pre-pend\n bestEdge = p_v[bestEdge.start().id()];\n }\n\n return bestPath;\n }", "public List<Integer> getRoute(int start, int destination, Map<Transport, Integer> tickets) {\n\n List<Node<Integer>> nodes = graph.getNodes();\n //Initialisation\n Map<Node<Integer>, Double> unvisitedNodes = new HashMap<Node<Integer>, Double>();\n Map<Node<Integer>, Double> distances = new HashMap<Node<Integer>, Double>();\n Map<Node<Integer>, Node<Integer>> previousNodes = new HashMap<Node<Integer>, Node<Integer>>();\n Node<Integer> currentNode = graph.getNode(start);\n\n for (Node<Integer> node : nodes) {\n if (!currentNode.getIndex().equals(node.getIndex())) {\n distances.put(node, Double.POSITIVE_INFINITY);\n } else {\n distances.put(node, 0.0);\n }\n Integer location = node.getIndex();\n try {\n unvisitedNodes.put(node, (1/pageRank.getPageRank(location)));\n } catch (Exception e) {\n System.err.println(e);\n }\n previousNodes.put(node, null);\n }\n //Search through the graph\n while (unvisitedNodes.size() > 0) {\n Node<Integer> m = minDistance(distances, unvisitedNodes);\n if (m == null) break;\n currentNode = m;\n if (currentNode.getIndex().equals(destination)) break;\n unvisitedNodes.remove(currentNode);\n\n step(graph, distances, unvisitedNodes, currentNode, previousNodes, tickets);\n }\n\n //Move backwards finding the shortest route\n List<Integer> route = new ArrayList<Integer>();\n while (previousNodes.get(currentNode) != null) {\n route.add(0, currentNode.getIndex());\n currentNode = previousNodes.get(currentNode);\n }\n route.add(0, currentNode.getIndex());\n return route;\n }", "public static List<Integer> findMaxPath(TreeNode root) {\n List<Integer> maxSumPath = new ArrayList<>();\n List<Integer> onePath = new ArrayList<>();\n int[] maxSumArray = new int[1];\n maxSumArray[0] = 0;\n\n recursiveHelperMaxSum(root, 0, onePath, maxSumPath, maxSumArray);\n // System.out.println(maxSumPath);\n return maxSumPath;\n }", "@Override\n\tpublic int height() {\n\t\tif (this.valCount == 0) { // if empty leaf\n\t\t\treturn 0;\n\t\t}\n\t\tint max = 1; \n\t\tfor (int i = 0; i < childCount; ++i) { // finds longest route among children\n\t\t\tmax = Math.max(max, children[i].height() + 1);\n\t\t}\n\t\treturn max;\n\t}", "Set<McastRoute> getRoutes();", "public int numRoutesWithin(Town origin, Town dest, \n\t\t\tint maxDistance) {\n\t\treturn findAllRoutesBetweenTowns(origin, dest,\n\t\t\t\t0, maxDistance);\n\t}", "private int getDistanceEnd() {\n int lastPoint = getNumPoints() - 1;\n return getDistanceIndex(lastPoint) + lastPoint;\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:36:07.082 -0500\", hash_original_method = \"71B2FD618F41F3F10AED78DDC584C5B5\", hash_generated_method = \"D5C1464D9CBFFD7FDEF25798ABF91481\")\n \npublic static RouteInfo selectBestRoute(Collection<RouteInfo> routes, InetAddress dest) {\n if ((routes == null) || (dest == null)) return null;\n\n RouteInfo bestRoute = null;\n // pick a longest prefix match under same address type\n for (RouteInfo route : routes) {\n if (NetworkUtils.addressTypeMatches(route.mDestination.getAddress(), dest)) {\n if ((bestRoute != null) &&\n (bestRoute.mDestination.getNetworkPrefixLength() >=\n route.mDestination.getNetworkPrefixLength())) {\n continue;\n }\n if (route.matches(dest)) bestRoute = route;\n }\n }\n return bestRoute;\n }", "public OSMWay handle(Rule rule, OSMCoordinate cood) {\n double range = Double.parseDouble(Mapper.getInstance().getConfiguration().get(\"default:range\", \"25\"));\n if(rule.getConfiguration().has(\"range\"))\n range = Double.parseDouble(rule.getConfiguration().get(\"range\")); \n \n \n // OSM-Map laden\n //OSMMap map = api.getMapByRadius(cood, range);\n \n OSMMap map = new OSMMap();\n try\n { \n map = OSMParser.getOSMMap(cood, range);\n }\n catch (ParserConfigurationException | SAXException | IOException ex)\n {\n System.out.println(ex);\n }\n \n \n \n // Die Wege abfragen\n List<OSMWay> ways = map.getWays();\n \n /*for(OSMWay way : ways)\n System.out.println(way);*/\n \n // Die Wege nacheinander durchgehen, dabei direkt den höchstwertigen Weg speichern\n double max_value = 0;\n OSMWay max_way = null;\n \n for(OSMWay way : ways) {\n \n // Liste mit den Tags des Weges erstellen\n // Zunächst die normal eingetragenen Tags abrufen\n Map<String, String> wayTags = way.getTags();\n \n // Anschließend die Tags innerhalb dieses Weges suchen\n //Map<String, String> wayInnerTags = way.getInnerTags(map); \n \n // Und diese in eine gemeinsame Liste mit den gewichteten Tags einfügen\n Map<String, Tag> tags = new HashMap();\n \n Set<String> wayTagsKeys = wayTags.keySet();\n for(String key : wayTagsKeys) {\n if(rule.hasTagWithKey(key)) {\n Tag current = rule.getTagWithKey(key);\n tags.put(current.getHash(), current);\n } \n }\n \n /*wayTagsKeys = wayInnerTags.keySet();\n for(String key : wayTagsKeys) {\n if(rule.hasTagWithKey(key)) {\n Tag current = rule.getTagWithKey(key);\n tags.put(current.getHash(), current);\n } \n }*/\n \n // Get Max Key weight\n double keyMaxWeight = 0;\n Set<String> tagKeys = tags.keySet();\n for(String key : tagKeys) {\n if(tags.get(key).getWeight() > keyMaxWeight)\n keyMaxWeight = tags.get(key).getWeight();\n }\n \n // distance muss in metern sein\n double distance = way.shortestDistanceTo(cood);\n \n // Gewichtungsfaktor berechnen\n double wayWeight = getWayWeight(range, distance);\n \n // Finale Wertung errechnen\n double value = keyMaxWeight * wayWeight;\n \n System.out.println(\"distance: \" + distance + \"\\nweight: \" + wayWeight + \"\\nvalue: \" + value + \"\\n\");\n \n // Direkt als besten weg setzen wenn ers ist\n if(value > max_value) {\n max_value = value;\n max_way = way;\n }\n }\n \n return max_way;\n }", "private static int numBusesToDestination(int[][] routes, int S, int T) {\n if (routes == null || routes.length == 0) {\n return 0;\n }\n\n if (S == T) {\n return 0;\n }\n\n // map a stop to routes\n // 1 -> 0, stop 1 belongs to route 0\n // 7 -> 0, 1 stop 7 belongs to route 0 and 1\n Map<Integer, List<Integer>> graph = new HashMap<>();\n for (int i = 0; i < routes.length; i++) {\n for (int stop: routes[i]) {\n if (!graph.containsKey(stop)) {\n graph.put(stop, new ArrayList<>());\n }\n graph.get(stop).add(i); // stop, routeid\n }\n }\n\n Queue<Integer> queue = new LinkedList<>(); // bus stop\n Set<Integer> visited = new HashSet<>(); // visited routes\n\n queue.offer(S);\n\n int level = 1;\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n\n for (int i = 0; i < size; i++) {\n int cur = queue.poll(); // current stop\n\n // get all routes available from the current stop\n for (int routeId: graph.get(cur)) {\n if (!visited.contains(routeId)) {\n visited.add(routeId);\n\n // get all stops from this route\n for (int stop: routes[routeId]) {\n if (stop == T) {\n return level;\n }\n queue.offer(stop);\n }\n }\n }\n }\n level++;\n }\n\n return -1;\n }", "private void search(final Map<String, Integer> routes, Vertex current, Vertex finishVertex, int maxDistance, String currentRoute, int currentDistance) {\r\n if(current == finishVertex) {\r\n routes.put(currentRoute, currentDistance);\r\n }\r\n for(Edge e : current.getIncidentEdges()) {\r\n if(e.getDistance() + currentDistance <= maxDistance)\r\n search(routes, e.getOppositeVertex(current), finishVertex, maxDistance, currentRoute + e.getOppositeVertex(current).getName(), e.getDistance() + currentDistance);\r\n }\r\n }", "public static List<MoveType> bestDirections(Point start, Point end) {\n List<MoveType> bestDirections = new ArrayList<>();\n int x = end.x - start.x;\n int y = end.y - start.y;\n if (Math.abs(y) > Math.abs(x)){\n if (y > 0) {\n bestDirections.add(MoveType.DOWN);\n } else if (y < 0){\n bestDirections.add(MoveType.UP);\n }\n if (x > 0) {\n bestDirections.add(MoveType.RIGHT);\n } else if (x < 0){\n bestDirections.add(MoveType.LEFT);\n }\n } else if(Math.abs(y) < Math.abs(x)) {\n if (x > 0) {\n bestDirections.add(MoveType.RIGHT);\n } else if (x < 0){\n bestDirections.add(MoveType.LEFT);\n }\n if (y > 0) {\n bestDirections.add(MoveType.DOWN);\n } else if (y < 0){\n bestDirections.add(MoveType.UP);\n }\n }\n return bestDirections;\n }", "public SortedSet<WLightpathUnregenerated> getInOutOrTraversingLigtpaths () { return n.getAssociatedRoutes(getNet().getWdmLayer().getNe()).stream().map(ee->new WLightpathUnregenerated(ee)).collect(Collectors.toCollection(TreeSet::new)); }", "public static Vertex breathFirstSearch(Graph g, Vertex root) {\n\n for (Vertex v : g) {\n v.seen = false;\n v.parent = null;\n v.distance = Integer.MAX_VALUE;\n }\n\n Queue<Vertex> queue = new LinkedList<Vertex>();\n root.seen = true;\n root.distance = 0;\n queue.add(root);\n Vertex maxDistNode = null;\n while (!queue.isEmpty()) {\n Vertex current = queue.remove();\n\n for (Edge e : current.Adj) {\n Vertex other = e.otherEnd(current);\n if (!other.seen) {\n other.seen = true;\n other.distance = current.distance + 1;\n other.parent = current;\n queue.add(other);\n }\n }\n maxDistNode = current;\n }\n return maxDistNode;\n }", "private int[] calculateCoverage(Route rt, Point edge){\n\n \tint[] latLonMinMax = new int[4];\n \t\n // figure out the bounding box of the route\n latLonMinMax[0] = rt.getStart().getLatitude();\n latLonMinMax[1] = latLonMinMax[0];\n latLonMinMax[2] = rt.getStart().getLongitude();\n latLonMinMax[3] = latLonMinMax[2];\n \n for(GeoSegment gs : rt.getGeoSegments()){\n \tint temp = gs.getP2().getLatitude();\n \tlatLonMinMax[0] = latLonMinMax[0] > temp ? temp : latLonMinMax[0];\n \tlatLonMinMax[1] = latLonMinMax[1] < temp ? temp : latLonMinMax[1];\n \t\n \ttemp = gs.getP2().getLongitude();\n \tlatLonMinMax[2] = latLonMinMax[2] > temp ? temp : latLonMinMax[2];\n \tlatLonMinMax[3] = latLonMinMax[3] < temp ? temp : latLonMinMax[3];\n }\n \n \n // now use aspect ratio of the window to get bounds of the display\n int diffLat = latLonMinMax[1] - latLonMinMax[0];\n int diffLon = latLonMinMax[3] - latLonMinMax[2];\n \n // the longest aspect will be a larger ratio\n double horzAsp = diffLon / edge.getX();\n double vertAsp = diffLat / edge.getY();\n \n double expandLat = 0.0;\n double expandLon = 0.0;\n if(horzAsp > vertAsp){\n \tdouble factor = horzAsp/vertAsp;\n \t// calculate the expansion of the short dimension\n \texpandLat = ((diffLat * factor - diffLat) / 2.0);\n \texpandLat += ((diffLat * factor) / 20.0); // 20.0 for 5%\n \t// long dimension\n \texpandLon = diffLon / 20.0;\n }else{\n\t double factor = vertAsp/horzAsp;\n\t \t// calculate the expansion of the short dimension\n\t \texpandLon = ((diffLon * factor - diffLon) / 2);\n \texpandLon += ((diffLon * factor) / 20.0);\n \t// long dimension\n \texpandLat = diffLat / 20.0;\n }\n \n latLonMinMax[0] -= ( ((int)expandLat) != 0 ? ((int)expandLat) : 2);\n latLonMinMax[1] += ( ((int)expandLat) != 0 ? ((int)expandLat) : 2);\n latLonMinMax[2] -= ( ((int)expandLon) != 0 ? ((int)expandLon) : 2);\n latLonMinMax[3] += ( ((int)expandLon) != 0 ? ((int)expandLon) : 2);\n \n \treturn latLonMinMax;\n }", "public ArrayList<Node> getBusNodes(ArrayList<Node> initialList, LatLng startLocation, LatLng EndLocation){\n ArrayList<String> matchingBusRoutes = nodeMinimisation.findMatchingBusRoutes(initialList);\n for(String route:matchingBusRoutes){\n System.out.println(\"Route is: \"+route);\n }\n // get further bus routes if needed\n //nodeMinimisation.furtherBusRouteMatches(initialList);\n // gets stop list from route\n ArrayList<Node> busStopList = nodeMinimisation.getStopList(initialList,startLocation,EndLocation);\n\n //ArrayList<Node> reducedStopList = nodeMinimisation.ReduceNodes(busStopList,startLocation, EndLocation);\n\n // returns the minimised list\n\n return busStopList;\n }", "public List<BoardPos> longestAvailableMoves(int minDepth, boolean color) {\n List<BoardPos> result = new ArrayList<>();\n\n for (int i = 0; i < board.side(); i++)\n for (int j = 0; j < board.side(); j++)\n if (!board.get(i, j).isEmpty() &&\n board.get(i, j).color() == color) {\n List<BoardPos> _legalPos = getMoves(new BoardPos(i, j));\n // some moves are available from the current position...\n if (!_legalPos.isEmpty()) {\n // ...with routes longer then the last longest...\n if (_legalPos.get(0).routeLen() > minDepth) {\n // contains positions with routes shorter than new\n // longest, so clear it\n result.clear();\n // update last longest route length\n minDepth = _legalPos.get(0).routeLen();\n }\n // ...and equal to the last longest\n if (_legalPos.get(0).routeLen() == minDepth)\n result.add(new BoardPos(i, j));\n }\n }\n\n return result;\n }", "ArrayList<Edge> getAdjacencies();", "public static List<MethodGraph> getAllMethodGraphs(int maxV, int maxE) {\n while (generateGraphModel() != null) {}\n return models.stream().map(model -> model.getMethodGraphs())\n .flatMap(mgraphs -> mgraphs.stream())\n .filter(mgraph -> mgraph.getVertexSet().size() < maxV)\n .filter(mgraph -> mgraph.getEdgeSet().size() < maxE)\n .collect(Collectors.toList());\n }", "public ArrayList<Location> getRoute(Location start, Location end) throws LocationNotFound{\n ArrayList<Location> route = new ArrayList<>();\n Location currentLoc = end;\n route.add(end);\n while (!currentLoc.equals(start)) {\n Location parentLoc = currentLoc.getParentLoc();\n route.add(parentLoc);\n currentLoc = parentLoc;\n }\n Collections.reverse(route);\n return route;\n }", "public List<Tile> getRoute() {\n List<Tile> currentRoute = new ArrayList<Tile>();\n for (int i = 0; i < route.size(); i++) {\n currentRoute.add(route.get(i));\n }\n return currentRoute;\n }", "public static ArrayList<GraphNode> getPathWithPredicate(GraphNode startNode, Predicate<GraphNode> predicate, int maxLength) {\n ArrayList<GraphNode> path = new ArrayList<>();\n Comparator<GraphNode> nodeComparator = new GraphNodePositionComparator(getPositionOf(startNode));\n HashSet<GraphNode> alreadyFound = new HashSet<>();\n\n Predicate<GraphNode> predicateAndNotAlreadyFound = predicate.and(graphNode -> !alreadyFound.contains(graphNode));\n\n GraphNode currentNode = startNode;\n\n for (int i = 0; i < maxLength; i++) {\n path.add(currentNode);\n alreadyFound.add(currentNode);\n\n GraphNode maxNode = getMaxWithPredicate(\n currentNode.neighbors,\n nodeComparator,\n predicateAndNotAlreadyFound\n );\n\n if (maxNode == null) {\n break;\n }\n currentNode = maxNode;\n }\n\n return path;\n }", "public int getMaxTrapDestinations() {\n return maxTrapDestinations;\n }", "private void findPath2(List<Coordinate> path) {\n List<Integer> cost = new ArrayList<>(); // store the total cost of each path\n // store all possible sequences of way points\n ArrayList<List<Coordinate>> allSorts = new ArrayList<>();\n int[] index = new int[waypointCells.size()];\n for (int i = 0; i < index.length; i++) {// generate the index reference list\n index[i] = i;\n }\n permutation(index, 0, index.length - 1);\n for (Coordinate o1 : originCells) {\n for (Coordinate d1 : destCells) {\n for (int[] ints1 : allOrderSorts) {\n List<Coordinate> temp = getOneSort(ints1, waypointCells);\n temp.add(0, o1);\n temp.add(d1);\n int tempCost = 0;\n for (int i = 0; i < temp.size() - 1; i++) {\n Graph graph = new Graph(getEdge(map));\n Coordinate start = temp.get(i);\n graph.dijkstra(start);\n Coordinate end = temp.get(i + 1);\n graph.printPath(end);\n tempCost = tempCost + graph.getPathCost(end);\n if (graph.getPathCost(end) == Integer.MAX_VALUE) {\n tempCost = Integer.MAX_VALUE;\n break;\n }\n }\n cost.add(tempCost);\n allSorts.add(temp);\n }\n }\n }\n System.out.println(\"All sorts now have <\" + allSorts.size() + \"> items.\");\n List<Coordinate> best = allSorts.get(getMinIndex(cost));\n generatePath(best, path);\n setSuccess(path);\n }", "int maxPathSum(int tri[][], int m, int n)\n {\n // loop for bottom-up calculation\n //i是row,j是column\n for (int i = m - 1; i >= 0; i--)\n {\n for (int j = 0; j <= i; j++)\n {\n // for each element, check both\n // elements just below the number\n // and below right to the number\n // add the maximum of them to it\n if (tri[i + 1][j] > tri[i + 1][j + 1])\n tri[i][j] += tri[i+1][j];\n else\n tri[i][j] += tri[i + 1][j + 1];\n }\n }\n\n // return the top element\n // which stores the maximum sum\n return tri[0][0];\n }", "public List<Node> getShortestPathToDestination(Node destination) {\n List<Node> path = new ArrayList<Node>();\n\n\n\n for (Node node = destination; node != null; node = node.previous){\n Log.i(\"bbb\", \"get path \"+node._waypointName);\n path.add(node);\n }\n\n // reverse path to get correct order\n Collections.reverse(path);\n return path;\n }", "private List<Pair<Integer, Integer>> getBestPath(Pair<Integer, Integer> curLocation, Pair<Integer, Integer> dest) {\n\t\tList<Pair<Integer, Integer>> path = new LinkedList<Pair<Integer, Integer>>();\n\t\t\n\t\t\n\t\tNode current = new Node(curLocation.getX(), curLocation.getY(), getHitProbability(curLocation.getX(), curLocation.getY()));\n\t\tNode target = new Node(dest.getX(), dest.getY(), getHitProbability(dest.getX(), dest.getY()));\n\t\tList<Node> openSet = new ArrayList<>();\n List<Node> closedSet = new ArrayList<>();\n \n \n while (true) {\n openSet.remove(current);\n List<Node> adjacent = getAdjacentNodes(current, closedSet, target);\n\n // Find the adjacent node with the lowest heuristic cost.\n for (Node neighbor : adjacent) {\n \tboolean inOpenset = false;\n \tList<Node> openSetCopy = new ArrayList<>(openSet);\n \tfor (Node node : openSetCopy) {\n \t\tif (neighbor.equals(node)) {\n \t\t\tinOpenset = true;\n \t\t\tif (neighbor.getAccumulatedCost() < node.getAccumulatedCost()) {\n \t\t\t\topenSet.remove(node);\n \t\t\t\topenSet.add(neighbor);\n \t\t\t}\n \t\t}\n \t}\n \t\n \tif (!inOpenset) {\n \t\topenSet.add(neighbor);\n \t}\n }\n\n // Exit search if done.\n if (openSet.isEmpty()) {\n System.out.printf(\"Target (%d, %d) is unreachable from position (%d, %d).\\n\",\n target.getX(), target.getY(), curLocation.getX(), curLocation.getY());\n return null;\n } else if (/*isAdjacent(current, target)*/ current.equals(target)) {\n break;\n }\n\n // This node has been explored now.\n closedSet.add(current);\n\n // Find the next open node with the lowest cost.\n Node next = openSet.get(0);\n for (Node node : openSet) {\n if (node.getCost(target) < next.getCost(target)) {\n next = node;\n }\n }\n// System.out.println(\"Moving to node: \" + current);\n current = next;\n }\n \n // Rebuild the path using the node parents\n path.add(new Pair<Integer, Integer>(curLocation.getX(), curLocation.getY()));\n while(current.getParent() != null) {\n \tcurrent = current.getParent();\n \tpath.add(0, new Pair<Integer, Integer>(current.getX(), current.getY()));\n }\n \n if (path.size() > 1) {\n \tpath.remove(0);\n }\n \n\t\treturn path;\n\t}", "public Collection<Route> getRoutes() {\n Iterator<KeyValuePair<Route>> it =\n routeTable.getKeyValuePairsForKeysStartingWith(\"\").iterator();\n\n List<Route> routes = new LinkedList<>();\n\n while (it.hasNext()) {\n KeyValuePair<Route> entry = it.next();\n routes.add(entry.getValue());\n }\n\n return routes;\n }", "List<Route> getAllRoute();", "public PolytopeTriangle findClosest(){\n\t\t//OPTIMIZATION MOVE THIS TO THE ADD FUNCTION AND HAVE IT BE THE RETURN VALUE\n\t\tfloat maxDist = faces.get(0).getDistance();\n\t\tint index = 0;\n\t\tfor(int curIndex = 1; curIndex < faces.size(); curIndex++){\n\t\t\tfloat distance = faces.get(curIndex).getDistance();\n\t\t\tif(distance < maxDist){\n\t\t\t\tindex = curIndex;\n\t\t\t\tmaxDist = distance;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn faces.get(index);\n\t}", "public interface AllPairsShortestPathAlgo\n{\n long[][]getDistances(Graph g);\n}", "private List<Edge<Stop>> getPublicTransportEdgesFromStop(long timeAtStop, Stop stop, Set<Stop> found) {\n GregorianCalendar gregorianCalendar = new GregorianCalendar(timeZone);\n gregorianCalendar.setTimeInMillis(timeAtStop);\n\n LocalDate date = LocalDate.of(gregorianCalendar.get(java.util.Calendar.YEAR), gregorianCalendar.get(java.util.Calendar.MONTH) + 1, gregorianCalendar.get(java.util.Calendar.DAY_OF_MONTH));\n\n List<StopTime> stopTimes = stopTimesByStopIdIndex.getItems(stop.getId());\n return stopTimes.stream().flatMap(stopTime -> {\n ServiceDates serviceDatesForStopTime = serviceDates.get(trips.get(stopTime.getTripId()).getServiceId());\n\n LocalDate estimatedDepartureDate = date.minus(Math.round(stopTime.getArrivalTime() / 86400f), ChronoUnit.DAYS);\n\n List<StopEdge> edges = new TiraArrayList<>();\n\n //Optimization: list of best arrival times (to ignore routes that would arrive to these stops later than the previously found best route)\n //This optimization is not optimal but should decrease the amount of possible returned edges\n Map<String, Long> bestArrivalTime = new TiraHashMap<>();\n\n /**\n * Check possible departure dates that are: yesterday, today and the day after today\n */\n for (int i = -1; i <= 1; i++) {\n LocalDate departureDate = estimatedDepartureDate.plus(i, ChronoUnit.DAYS);\n\n if (serviceDatesForStopTime.runsOn(departureDate)) {\n edges.addAll(\n getPossibleDestinations(stop,\n timeAtStop,\n routes.get(trips.get(stopTime.getTripId()).getRouteId()),\n stopTime.getTripId(),\n departureDate,\n stopTime.getArrivalTime(),\n stopTimesByTripIdIndex.getItems(stopTime.getTripId()),\n found,\n bestArrivalTime));\n }\n }\n\n return edges.stream();\n }).collect(Collectors.toCollection(() -> new TiraArrayList<>()));\n }", "private List<Double> getDistanceFromTopOBottomLayersToBottomEdge(int nominalCoverBottom) {\n List<Double> distanceFromCentreOfEachLayer = getDistanceFromCentreOfEachLayerToEdge(bottomDiameters, additionalBottomDiameters, bottomVerticalSpacings, nominalCoverBottom);\n List<Integer> maxDiameters = getMaxDiametersForEachLayer(bottomDiameters, additionalBottomDiameters);\n\n return IntStream\n .range(0, distanceFromCentreOfEachLayer.size())\n .mapToObj(i -> distanceFromCentreOfEachLayer.get(i) + 0.5 * maxDiameters.get(i))\n .collect(Collectors.toList());\n }", "@Override\r\n\tpublic Graph getGrph() {\n\t\tList<Routes> routeList = storeRouteRepos();\r\n\t\tGraph.Edge[] GRAPH = new Graph.Edge[routeList.size()];\r\n\t\tRoutes route = new Routes();\r\n\r\n\t\tfor (int i = 0; i <= routeList.size() - 1; i++) {\r\n\t\t\troute = routeList.get(i);\r\n\t\t\tif ((route.getPlanetOrigin() != null) && (route.getPlanetDestination() != null)) {\r\n\t\t\t\tGRAPH[i] = new Graph.Edge(route.getPlanetOrigin(), route.getPlanetDestination(), route.getDistance());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tGraph g = new Graph(GRAPH);\r\n\t\t// g.dijkstra(START);\r\n\t\treturn g;\r\n\r\n\t}", "double getRouteCost(Graph g){\n double totalCost = 0;\n double matrixWeights[][] = g.getMatrixOfWeights(); //get the matrix of weights from the class Graph\n for(int i=0;i<cityIndex.size()-1;i++){\n //the cost is calculated by computing the route from one index to the next since the representation is\n // a permutation\n totalCost = totalCost + matrixWeights[cityIndex.get(i)][cityIndex.get(i+1)];\n }\n totalCost = totalCost+matrixWeights[cityIndex.get(cityIndex.size()-1)][cityIndex.get(0)]; //To Return back from the\n // last to the first city\n return totalCost;\n }", "@Override\r\n public Collection<OptimizedItinerary> getBestItineraryByTime(String origin, Collection<RouteNode> routes) throws OptimizedItineraryStrategyException {\r\n log.info(String.format(\"** Getting best itineraries (based on time) from %s, using Dijkstra algorithm. **\", origin));\r\n \r\n if (!isOriginPresent(routes, origin))\r\n \tthrow new OptimizedItineraryStrategyException(String.format(\"Origin city: %s is not present.\", origin));\r\n \t\r\n Set<String> allDestinations = getDestinations(routes, origin);\r\n HipsterDirectedGraph<String,Long> graph = doGraphWithTimes(routes);\r\n \r\n // call Dijkstra for the same origen and all the destinations ...\r\n Collection<OptimizedItinerary> results = allDestinations.stream()\r\n .map(destination -> doDijkstra(graph, origin, destination))\r\n .collect(Collectors.toList());\r\n \r\n return results;\r\n }", "public Path getShortestPath() {\n\t\tNodeRecord startRecord = new NodeRecord(start, null, 0.0f, (float) heuristic.estimate(start), Category.OPEN);\n\n\t\t// Initialize the open list\n\t\tPathFindingList open = new PathFindingList();\n\t\topen.addRecordByEstimatedTotalCost(startRecord);\n\t\trecords.set(Integer.parseInt(startRecord.node.id), startRecord);\n\t\tNodeRecord current = null;\n\t\t\n\t\t// Iterate through processing each node\n\t\twhile (!open.isEmpty()) {\n\t\t\t// Find smallest element in the open list using estimatedTotalCost\n\t\t\tcurrent = open.getSmallestNodeRecordByEstimatedTotalCost();\n\n\t\t\t// If its the goal node, terminate\n\t\t\tif (current.node.equals(end)) break;\n\n\t\t\t// Otherwise get its outgoing connections\n\t\t\tArrayList<DefaultWeightedEdge> connections = g.getConnections(current.node);\n\t\t\t\n\t\t\t// Loop through each connection\n\t\t\tfor (DefaultWeightedEdge connection : connections) {\n\t\t\t\t// Get the cost and other information for end node\n\t\t\t Vertex endNode = g.graph.getEdgeTarget(connection);\n\t\t\t int endNodeRecordIndex = Integer.parseInt(endNode.id);\n NodeRecord endNodeRecord = records.get(endNodeRecordIndex); // this is potentially null but we handle it\n\t\t\t\tdouble newEndNodeCost = current.costSoFar + g.graph.getEdgeWeight(connection);\n\t\t\t\tdouble endNodeHeuristic = 0;\n\t\t\t\t\n\t\t\t\t// if node is closed we may have to skip, or remove it from closed list\t\n\t\t\t\tif( endNodeRecord != null && endNodeRecord.category == Category.CLOSED ){ \n\t\t\t\t\t// Find the record corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If we didn't find a shorter route, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Otherwise remove it from closed list\n\t\t\t\t\trecords.get(endNodeRecordIndex).category = Category.OPEN;\n\n\t\t\t\t\t// Use node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Skip if node is open and we've not found a better route\n\t\t\t\t} else if( endNodeRecord != null && endNodeRecord.category == Category.OPEN ){ \n\t\t\t\t\t// Here we find the record in the open list corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If our route isn't better, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Use the node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Otherwise we know we've got an unvisited node, so make a new record\n\t\t\t\t} else { // if endNodeRecord.category == Category.UNVISITED\n\t\t\t\t endNodeRecord = new NodeRecord();\n\t\t\t\t\tendNodeRecord.node = endNode;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\n\t\t\t\t\t// Need to calculate heuristic since this is new\n\t\t\t\t\tendNodeHeuristic = heuristic.estimate(endNode);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// We're here if we need to update the node\n\t\t\t\t// update the cost, estimate, and connection\n\t\t\t\tendNodeRecord.costSoFar = newEndNodeCost;\n\t\t\t\tendNodeRecord.edge = connection;\n\t\t\t\tendNodeRecord.estimatedTotalCost = newEndNodeCost + endNodeHeuristic;\n\n\t\t\t\t// Add it to the open list\n\t\t\t\tif ( endNodeRecord.category != Category.OPEN ) {\n\t\t\t\t\topen.addRecordByEstimatedTotalCost(endNodeRecord);\n\t\t\t\t\tendNodeRecord.category = Category.OPEN;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t// We’ve finished looking at the connections for\n\t\t\t// the current node, so add it to the closed list\n\t\t\t// and remove it from the open list\n\t\t\topen.removeRecord(current);\n\t\t\tcurrent.category = Category.CLOSED;\n\t\t\trecords.set(Integer.parseInt(current.node.id), current);\n\t\t}\n\t\t\n\t\t// We’re here if we’ve either found the goal, or\n\t\t// if we’ve no more nodes to search, find which.\n\t\tif (!current.node.equals(end)) {\n\t\t\t// Ran out of nodes without finding the goal, no solution\n\t\t\treturn null;\n\t\t} else {\n\t\t // Compile the list of connections in the path\n\t\t\tArrayList<DefaultWeightedEdge> path = new ArrayList<>();\n\n\t\t\twhile (!current.node.equals(start)) {\n\t\t\t\tpath.add(current.edge);\n\t\t\t\t// Set current (NodeRecord) to is source.\n\t\t\t\tcurrent = records.get( Integer.parseInt(g.graph.getEdgeSource(current.edge).id) );\n\t\t\t}\n\n\t\t\t// Reverse the path, and return it\n\t\t\tCollections.reverse(path);\n\t\t\treturn new Path(g, path);\n\t\t}\n\n\t}", "private PathCostFlow findCheapestPath(int start, int end, double max_flow) throws Exception {\n if (getNode(start) == null || getNode(end) == null\n || !getNode(start).isSource() || getNode(end).isSource()) {\n throw new IllegalArgumentException(\"start must be the index of a source and end must be the index of a sink\");\n }\n double amount = Math.min(Math.min(getNode(start).getResidualCapacity(),\n getNode(end).getResidualCapacity()), max_flow);\n\n boolean[] visited = new boolean[n];\n int[] parent = new int[n];\n for (int i = 0; i < n; i++) {\n parent[i] = -1;\n }\n double[] cost = new double[n];\n for (int i = 0; i < n; i++) {\n cost[i] = Integer.MAX_VALUE;\n }\n cost[start] = 0;\n\n PriorityQueue<IndexCostTuple> queue = new PriorityQueue<IndexCostTuple>();\n queue.add(new IndexCostTuple(start, 0));\n\n while (!queue.isEmpty()) {\n IndexCostTuple current = queue.poll();\n\n // we found the target node\n if (current.getIndex() == end) {\n ArrayList<Integer> path = new ArrayList<Integer>();\n path.add(new Integer(end));\n while (path.get(path.size() - 1) != start) {\n path.add(parent[path.get(path.size() - 1)]);\n }\n Collections.reverse(path);\n if ((path.get(0) != start) || (path.get(path.size() - 1) != end)) {\n throw new Exception(\"I fucked up coding Dijkstra's\");\n }\n return new PathCostFlow(path, cost[end], amount);\n }\n\n // iterate through all possible neighbors of the current node\n for (int i = 0; i < n; i++) {\n SingleEdge e = matrix[current.getIndex()][i];\n if ((!visited[i]) && (e != null)\n && (current.getCost() + e.getCost(amount) < cost[i])) {\n cost[i] = current.getCost() + e.getCost(amount);\n parent[i] = current.getIndex();\n\n // update the entry for this node in the queue\n IndexCostTuple newCost = new IndexCostTuple(i, cost[i]);\n queue.remove(newCost);\n queue.add(newCost);\n }\n }\n visited[current.getIndex()] = true;\n }\n\n return null; //the target node was unreachable\n }", "public List < Block > getLastTwoTargetBlocks ( Set < Material > transparent , int maxDistance ) {\n\t\treturn invokeSafe ( \"getLastTwoTargetBlocks\" ,\n\t\t\t\t\t\t\tnew Class[] { Set.class , int.class } , transparent , maxDistance );\n\t}", "Execution getClosestDistance();", "protected abstract Deque<Vertex<AtomicReference>> getVehicleRoute(int entry, int exit);", "private ArrayList<Node> getPathBetweenNodes(Node s, Node t, int distance){\n\t\tArrayList<Node> path = new ArrayList<Node>();\n\t\tpath.add(0,t);\n\t\tSet<Node> nodes = distanceFromS.keySet();\n\t\tfor (int i = distance -1 ; i > 0; i --) {\n\t\t\tfor (Node n: nodes) {\n\t\t\t\tif (path.get(0).getNeighbors().contains(n) && distanceFromS.get(n) == i) {\n\t\t\t\t\tpath.add(0, n);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpath.add(0,s);\n\t\treturn path;\n\t}", "int getPathCost(Coordinate end) {\n if (!graph.containsKey(end)) {\n // test use display point\n // System.err.printf(\"Graph doesn't contain end vertex \\\"%s\\\"\\n\", end);\n return Integer.MAX_VALUE;\n }\n int weight = Integer.MAX_VALUE;\n for (Coordinate key : graph.keySet()) {\n if (key.equals(end)) {\n weight = graph.get(key).dist;\n }\n }\n return weight;\n }", "public void setMaxSourceDistance(double distance);", "public void findBestRoute(Node src, Node dst) {\r\n\t\tArrayList<Node> route = new ArrayList<>();\r\n\t\tNode curr = src;\r\n\t\twhile (!curr.getName().equals(dst.getName())) {\r\n\t\t\tcurr = curr.getForwardingTable().get(dst);\r\n\t\t\troute.add(curr);\r\n\t\t}\r\n\r\n\t\tSystem.out.print(\"Best route so far is: \");\r\n\t\tfor (Node node : route) {\r\n\t\t\tSystem.out.print(node.getName() + \" \");\r\n\t\t}\r\n\t}", "IList<Edge> getWalls(ArrayList<ArrayList<Vertex>> v, ArrayList<Edge> all) {\n IList<Edge> finalEdges = new Empty<Edge>();\n for (Edge e : all) {\n boolean valid = true;\n for (ArrayList<Vertex> l : v) {\n for (Vertex vt : l) {\n for (Edge e2 : vt.outEdges) {\n if (e.equals(e2) || (e.to == e2.from && e.from == e2.to)) {\n valid = false;\n }\n }\n }\n }\n if (valid) {\n finalEdges = finalEdges.add(e);\n }\n }\n return finalEdges;\n }", "@JsonIgnore public Collection<Distance> getFlightDistanceDistances() {\n final Object current = myData.get(\"flightDistance\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Distance>) current;\n }\n return Arrays.asList((Distance) current);\n }", "public double getAlgBestPathDistance()\n\t{\n\t\treturn algBestPathDistance;\n\t}", "public double getMaxDistance()\n\t{\n\t // Make sure it went some distance\n\t\tif(xPosList.size() > 0)\n\t\t{\n\t\t\treturn this.xPosList.get(xPosList.size() - 1);\n\t\t}\n\n\t\treturn 0;\n\t}", "public List<Long> getPath(Long start, Long finish){\n \n \n List<Long> res = new ArrayList<>();\n // auxiliary list\n List<DeixtraObj> serving = new ArrayList<>();\n// nearest vertexes map \n Map<Long,DeixtraObj> optimMap = new HashMap<>();\n// thread save reading \n synchronized (vertexes){ \n // preparation\n for (Map.Entry<Long, Vertex> entry : vertexes.entrySet()) {\n Vertex userVertex = entry.getValue();\n // If it`s start vertex weight = 0 and the nereast vertex is itself \n if(userVertex.getID().equals(start)){\n serving.add(new DeixtraObj(start, 0.0, start));\n }else{\n // For other vertex weight = infinity and the nereast vertex is unknown \n serving.add(new DeixtraObj(userVertex.getID(), Double.MAX_VALUE, null));\n }\n\n } \n // why auxiliary is not empty \n while(serving.size()>0 ){\n // sort auxiliary by weight \n Collections.sort(serving);\n\n \n // remove shortes fom auxiliary and put in to answer \n DeixtraObj minObj = serving.remove(0);\n optimMap.put(minObj.getID(), minObj);\n\n Vertex minVertex = vertexes.get(minObj.getID());\n\n // get all edges from nearest \n for (Map.Entry<Long, Edge> entry : minVertex.allEdges().entrySet()) {\n Long dest = entry.getKey();\n Double wieght = entry.getValue().getWeight();\n // by all remain vertexes \n for(DeixtraObj dx : serving){\n if(dx.getID().equals(dest)){\n // if in checking vertex weight more then nearest vertex weight plus path to cheking \n // then change in checking weight and nearest\n if( (minObj.getWeight()+wieght) < dx.getWeight()){\n dx.setNearest(minVertex.getID());\n dx.setWeight((minObj.getWeight()+wieght));\n }\n }\n }\n }\n\n }\n }\n \n // create output list\n res.add(finish);\n Long point = finish;\n while(!point.equals(start)){\n \n point = ((DeixtraObj)optimMap.get(point)).getNearest();\n res.add(point);\n }\n \n Collections.reverse(res);\n \n \n return res;\n \n }", "public void computeAllPaths(String source)\r\n {\r\n Vertex sourceVertex = network_topology.get(source);\r\n Vertex u,v;\r\n double distuv;\r\n\r\n Queue<Vertex> vertexQueue = new PriorityQueue<Vertex>();\r\n \r\n \r\n // Switch between methods and decide what to do\r\n if(routing_method.equals(\"SHP\"))\r\n {\r\n // SHP, weight of each edge is 1\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + 1;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n else if (routing_method.equals(\"SDP\"))\r\n {\r\n // SDP, weight of each edge is it's propagation delay\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + u.adjacentVertices.get(key).propDelay;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n } \r\n }\r\n }\r\n else if (routing_method.equals(\"LLP\"))\r\n {\r\n // LLP, weight each edge is activeCircuits/AvailableCircuits\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = Math.max(u.minDistance,u.adjacentGet(key).load());\r\n //System.out.println(u.adjacentGet(key).load());\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n }\r\n }\r\n }", "public ArrayList getRoutes(){\r\n ArrayList routeDataList = new ArrayList();\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id, route_long_name from routes\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n while (getData.moveToNext()){\r\n routeDataList.add(getData.getString(1));\r\n }\r\n\r\n getData.close();\r\n\r\n return routeDataList;\r\n }", "public void calculateSkiRoute() {\n\t\tfor(int i=0; i<rowSize; i++) {\n\t\t\tfor(int j=0; j<colSize; j++) {\n\t\t\t\tif(isSkiRouteInBound(i, j+1) && (skiMap[i][j] > skiMap[i][j+1])) {\n\t\t\t\t\tif(newSkiRoute != null)\n\t\t\t\t\t\tnewSkiRoute = null;\n\t\t\t\t\t\n\t\t\t\t\tnewSkiRoute = new SkiRoute(skiMap[i][j]);\n\t\t\t\t\tnewSkiRoute.addRoute(skiMap[i][j+1]);\n\t\t\t\t\tcalculateNextPossibleSkiRoute(i, j+1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(isSkiRouteInBound(i, j-1) && (skiMap[i][j] > skiMap[i][j-1])) {\n\t\t\t\t\tif(newSkiRoute != null)\n\t\t\t\t\t\tnewSkiRoute = null;\n\t\t\t\t\t\n\t\t\t\t\tnewSkiRoute = new SkiRoute(skiMap[i][j]);\n\t\t\t\t\tnewSkiRoute.addRoute(skiMap[i][j-1]);\n\t\t\t\t\tcalculateNextPossibleSkiRoute(i, j-1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(isSkiRouteInBound(i+1, j) && (skiMap[i][j] > skiMap[i+1][j])) {\n\t\t\t\t\tif(newSkiRoute != null)\n\t\t\t\t\t\tnewSkiRoute = null;\n\t\t\t\t\t\n\t\t\t\t\tnewSkiRoute = new SkiRoute(skiMap[i][j]);\n\t\t\t\t\tnewSkiRoute.addRoute(skiMap[i+1][j]);\n\t\t\t\t\tcalculateNextPossibleSkiRoute(i+1, j);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(isSkiRouteInBound(i-1, j) && (skiMap[i][j] > skiMap[i-1][j])) {\n\t\t\t\t\tif(newSkiRoute != null)\n\t\t\t\t\t\tnewSkiRoute = null;\n\t\t\t\t\t\n\t\t\t\t\tnewSkiRoute = new SkiRoute(skiMap[i][j]);\n\t\t\t\t\tnewSkiRoute.addRoute(skiMap[i-1][j]);\n\t\t\t\t\tcalculateNextPossibleSkiRoute(i-1, j);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private int[] getLimitingDistancesArray(int distances[]) {\n int limitingDistances[] = new int[distances.length];\n int lowestDistance = distances[distances.length - 1];\n for (int i = distances.length - 1; i >= 0; i--) {\n if (lowestDistance > distances[i]) {\n lowestDistance = distances[i];\n }\n limitingDistances[i] = lowestDistance;\n }\n\n return limitingDistances;\n }", "public static void neighborGroupsGetMaximumSetGen(\n com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {\n manager\n .neighborGroups()\n .getByResourceGroupWithResponse(\"example-rg\", \"example-neighborGroup\", com.azure.core.util.Context.NONE);\n }", "public double calcDistBetweenStops(){\n List<Location> locs = destinations.getLocationList();\r\n double totalDist = 0;\r\n for (int i = 0; i < (locs.size() - 1); i++){\r\n double distance = locs.get(i).DistanceTo(locs.get(i+1));\r\n totalDist += distance;\r\n }\r\n return totalDist;\r\n }", "@Override\n\tpublic List<Path> getShortestRoute(Location src, Location dest, String edgePropertyName) {\n\t\t//array to keep track of visited vertexes\n\t\tboolean[] visited = new boolean[locations.size()];\n\t\t//array to store weights\n\t\tdouble[] weight = new double[locations.size()];\n\t\t//array to store predecessors\n\t\tLocation[] pre = new Location[locations.size()];\n\t\t//creates priority queue\n\t\tPriorityQueue<LocWeight> pq = new PriorityQueue<LocWeight>();\n\t\t// initializes every vertex misted mark to false\n\t\tfor (int i = 0; i < visited.length; i++)\n\t\t\tvisited[i] = false;\n\t\t// initializes every vertex's total weight to infinity\n\t\tfor (int i = 0; i < weight.length; i++)\n\t\t\tweight[i] = Double.POSITIVE_INFINITY;\n\t\t// initializes every vertex's predecessor to null\n\t\tfor (int i = 0; i < pre.length; i++)\n\t\t\tpre[i] = null;\n\t\t//sets start vertex's total weight to 0\n\t\tweight[locations.indexOf(src)] = 0;\n\t\t//insert start vertex in priroty queue\n\t\tpq.add(new LocWeight(src, 0.0));\n\t\t\n\t\tString[] edgeNames = getEdgePropertyNames();\n\t\tint indexProp = 0;\n\t\tfor (int i = 0; i < edgeNames.length; i++) {\n\t\t\tif (edgeNames[i].equalsIgnoreCase(edgePropertyName))\n\t\t\t\tindexProp = i;\n\t\t}\n\t\twhile (!pq.isEmpty()) {\n\t\t\tLocWeight c = pq.remove();\n\t\t\t//set C's visited mark to true\n\t\t\tvisited[locations.indexOf(c)] = true;\n\n\t\t\tList<Location> neighbors = getNeighbors(c.getLocation());\n\t\t\t//for each unvisited successor adjacent to C\n\t\t\tfor (int i = 0; i < neighbors.size(); i++) {\n\t\t\t\tif (visited[locations.indexOf(neighbors.get(i))] == false) {\n\t\t\t\t\t//change successor's total weight to equal C's weight + edge weight from C to successor\n\t\t\t\t\tweight[locations.indexOf(neighbors.get(i))] = c.getWeight() + getEdgeIfExists(c.getLocation(), neighbors.get(i)).getProperties().get(indexProp);\n\t\t\t\t\tpre[locations.indexOf(neighbors.get(i))] = c.getLocation();\n\t\t\t\t\tLocWeight succ = new LocWeight(neighbors.get(i), weight[locations.indexOf(neighbors.get(i))]);\n\t\t\t\t\t//if successor is already in pq, update its total weight\n\t\t\t\t\tif (pq.contains(succ)) {\n\t\t\t\t\t\tpq.remove(succ);\n\t\t\t\t\t}\n\t\t\t\t\t//if not already there, add\n\t\t\t\t\tpq.add(succ);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\n\n\t\t}\n\t\t\n\t\tArrayList<Path> path = new ArrayList<Path>();\n\t\t//find predecessor of each vertex and construct shortest path then return it\n\t\tLocation curr1 = dest;\n\t\twhile (pre[locations.indexOf(curr1)] != null) {\n\t\t\tpath.add(getEdgeIfExists(pre[locations.indexOf(curr1)], curr1));\n\t\t\tcurr1 = pre[locations.indexOf(curr1)];\n\t\t}\n\t\t//to show path from the start\n\t\tfor (int i = path.size() - 1; i >= 0; i--)\n\t\t\tpath.add(path.remove(i));\n\n\n\t\treturn path;\n\t}", "public void createEdges() {\n \tfor(String key : ways.keySet()) {\n \t Way way = ways.get(key);\n \t if(way.canDrive()) {\n \t\tArrayList<String> refs = way.getRefs();\n \t\t\t\n \t\tif(refs.size() > 0) {\n \t\t GPSNode prev = (GPSNode) this.getNode(refs.get(0));\n \t\t drivableNodes.add(prev);\n \t\t \n \t\t GPSNode curr = null;\n \t\t for(int i = 1; i <refs.size(); i++) {\n \t\t\tcurr = (GPSNode) this.getNode(refs.get(i));\n \t\t\tif(curr == null || prev == null)\n \t\t\t continue;\n \t\t\telse {\n \t\t\t double distance = calcDistance(curr.getLatitude(), curr.getLongitude(),\n \t\t\t\t prev.getLatitude(), prev.getLongitude());\n\n \t\t\t GraphEdge edge = new GraphEdge(prev, curr, distance, way.id);\n \t\t\t prev.addEdge(edge);\n \t\t\t curr.addEdge(edge);\n \t\t\t \n \t\t\t drivableNodes.add(curr);\n \t\t\t prev = curr;\n \t\t\t}\n \t\t }\t\n \t\t}\n \t }\n \t}\n }" ]
[ "0.6279589", "0.6114015", "0.603606", "0.6030561", "0.598017", "0.5838516", "0.58247215", "0.5802442", "0.5748742", "0.56668127", "0.5592828", "0.5592077", "0.5515925", "0.5510713", "0.5490588", "0.548", "0.5464922", "0.54327065", "0.5423492", "0.5386253", "0.5373584", "0.5367144", "0.53659695", "0.53501105", "0.53456867", "0.53265357", "0.5313772", "0.52981234", "0.5263089", "0.52614594", "0.5260614", "0.522743", "0.5220514", "0.5212945", "0.5211511", "0.52107424", "0.5202812", "0.5201467", "0.51920325", "0.5178232", "0.51437336", "0.5138451", "0.51350766", "0.51133347", "0.5105576", "0.5096564", "0.508634", "0.50848824", "0.50799453", "0.507711", "0.50661176", "0.50511557", "0.50493133", "0.5041093", "0.50394607", "0.50352615", "0.5024826", "0.5019381", "0.50099987", "0.5005518", "0.49969533", "0.4989029", "0.49786523", "0.4957486", "0.4938058", "0.49378592", "0.49254364", "0.4916267", "0.49038738", "0.49015072", "0.48919505", "0.48910424", "0.48884165", "0.48823744", "0.48810655", "0.4869838", "0.48321703", "0.483121", "0.48294535", "0.48217866", "0.48125508", "0.48112476", "0.48060817", "0.48040307", "0.48028713", "0.4789382", "0.4788479", "0.47879666", "0.47839677", "0.477996", "0.47769368", "0.47757894", "0.4773547", "0.4766915", "0.47658032", "0.47619072", "0.47512338", "0.4749692", "0.47321925", "0.47189805" ]
0.4748327
98
/ Solution: if the first column is '0', greedily flip this row if the column has more '0' than '1', greedily flip this column O(nm),O(1)
public int matrixScore(int[][] A) { int n = A.length, m = A[0].length, ans = 0; for (int i = 0; i < n; ++i) { if (A[i][0] == 0) { flipRow(A, i); } } for (int j = 1; j < m; ++j) { int cnt = 0; for (int i = 0; i < n; ++i) { cnt += A[i][j]; } if (cnt * 2 < n) { flipCol(A, j); } } for (int i = 0; i < n; ++i) { int cur = 0; for (int j = 0; j < m; ++j) { cur = (cur << 1) + A[i][j]; } ans += cur; } return ans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void flipHorizontalAxis(int[][] matrix) {\n for(int i = matrix.length - 1; i >= matrix.length/2; i-- ){\n for(int j = 0; j < matrix[i].length; j++){\n int temp = matrix[i][j];\n matrix[i][j] = matrix[(matrix.length - 1) - i][j];\n matrix[(matrix.length - 1) - i][j] = temp;\n }\n }\n}", "public static void switchRow(boolean[] row, int x){\n\t\tfor(int i = -1; i < 2; i++){\r\n\t \tif(x+i >= 0 && x+i < row.length)\r\n\t \t\trow[x+i] = !row[x+i]; \r\n\t }\r\n\t}", "protected AbstractMatrix3D vColumnFlip() {\n\tif (columns>0) {\n\t\tcolumnZero += (columns-1)*columnStride;\n\t\tcolumnStride = -columnStride;\n\t\tthis.isNoView = false;\n\t}\n\treturn this;\n}", "private static Character flip(Character c){\n return c == '0'?'1':'0';\n }", "public void flip(int bitIndex);", "public void flipVertical() {\n\t\t\tthis.data = flipGridVertical(data);\n\t\t\tcomputeHashes();\n\t\t}", "public void flipHorizontal() {\n\t\t\tfor(int row = 0; row < TILE_DIM; row++) {\n\t\t\t\tString tmp = \"\";\n\t\t\t\tfor(int col = TILE_DIM-1; col >= 0; col--) {\n\t\t\t\t\ttmp += this.data[row].charAt(col);\n\t\t\t\t}\n\t\t\t\tthis.data[row] = tmp;\n\t\t\t}\n\t\t\tcomputeHashes();\n\t\t}", "public PImage flipVH(PImage img)\n {\n PImage flipped = createImage(img.width,img.height,RGB);\n flipped.loadPixels();\n for(int i = 0; i < img.width; i++)\n {\n for(int j = 0; j < img.height; j++)\n {\n int loc = i + j * flipped.width;\n int locFlipped = (img.width-i-1) + (img.height-j-1) * flipped.width;\n if(img.pixels[loc] == color(0,0,0))\n {\n flipped.pixels[locFlipped] = color(0,0,0);\n }\n else\n {\n flipped.pixels[locFlipped] = color(255,255,255);\n }\n }\n }\n flipped.updatePixels();\n return flipped;\n }", "public static void flipHorizontalAxis(int[][] matrix){\n\n int beginIndex = 0;\n int endIndex = (matrix.length - 1);\n int[] begin = matrix[beginIndex];\n int[] end = matrix[endIndex];\n int[] temp;\n\n\n while(endIndex > beginIndex){\n //swap the arrays with a temp variable\n temp = Arrays.copyOf(begin, begin.length);\n begin = Arrays.copyOf(end, end.length);\n end = Arrays.copyOf(temp, temp.length);\n\n //update the new arrays in the matrix\n matrix[beginIndex] = begin;\n matrix[endIndex] = end;\n\n //update the new indexes\n beginIndex++;\n endIndex--;\n\n //move begin and end to the next set to be swapped\n begin = matrix[beginIndex];\n end = matrix[endIndex];\n }\n\n }", "public void flipOverY(){\n int len = tileChars.length;\r\n \r\n // swap columns\r\n for (int i = 0; i < len; i++)\r\n {\r\n for (int j = 0; j < len / 2; j++)\r\n {\r\n char temp = tileChars[i][j];\r\n tileChars[i][j] = tileChars[i][len - j - 1];\r\n tileChars[i][len - j - 1] = temp;\r\n }\r\n }\r\n \r\n boolean temp = this.matchFound[1];\r\n this.matchFound[1] = this.matchFound[3];\r\n this.matchFound[3] = temp;\r\n \r\n this.recalculateEdges(); //fix edges\r\n }", "public void flipBoard() {\r\n\t\tfor (int i = 0; i < this.SIZE/2; i++) {\r\n\t\t\tfor (int j = 0; j < this.SIZE; j++) {\r\n\t\t\t\tswap(j, this.SIZE - 1 - i, j, i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void flip() {\n _flipped = !_flipped;\n }", "public void flipHidden()\n {\n for(int i=0;i<7;i++)\n {\n if(tableauVisible[i].isEmpty() && !tableauHidden[i].isEmpty())\n tableauVisible[i].forcePush(tableauHidden[i].pop());\n } \n }", "public void flipV() {\r\n int tmp, sym;\r\n for (int col = 0; col < pixels.length; ++col) {\r\n for (int row = 0; row < pixels[col].length / 2; ++row) {\r\n // find the column index of the vertically symmetric pixel\r\n sym = pixels[col].length - 1 - row;\r\n // swap the pixel value between the two\r\n tmp = pixels[col][row];\r\n pixels[col][row] = pixels[col][sym];\r\n pixels[col][sym] = tmp;\r\n }\r\n }\r\n this.pix2img();\r\n }", "public void flipH() {\r\n int tmp, sym;\r\n for (int row = 0; row < pixels.length; ++row) {\r\n for (int col = 0; col < pixels[row].length / 2; ++col) {\r\n // find the column index of the horizontally symmetric pixel\r\n sym = pixels[row].length - 1 - col;\r\n // swap the pixel value between the two\r\n tmp = pixels[row][col];\r\n pixels[row][col] = pixels[row][sym];\r\n pixels[row][sym] = tmp;\r\n }\r\n }\r\n this.pix2img();\r\n }", "public void invert() {\n \n float[] result = new float[16];\n System.arraycopy(IDENTITY, 0, result, 0, 16);\n \n for(int i = 0; i < 4; i++){\n int i4 = i*4;\n \n // make sure[i,i] is != 0\n \n for(int j = 0; matrix[i4+i] == 0 && j < 4; j++){\n if(j != i && matrix[j*4+i] != 0){\n transform(i, 1, j, matrix, result);\n }\n }\n \n // ensure tailing 0s\n \n for(int j = 0; j < i; j++){\n if(matrix[i4+j] != 0){\n transform(i, -matrix[i4+j]/matrix[j*4+j], j, matrix, result);\n }\n }\n\n if(matrix[i4+i] == 0){\n throw new IllegalArgumentException(\"Not invertable\");\n }\n\n // dump(\"row \"+i+\" leading zeros\", matrix, result);\n }\n \n for(int i = 3; i >= 0; i--){\n int i4 = i*4;\n if(matrix[i4+i] != 1){\n float f = matrix[i4+i];\n matrix[i4+i] = 1;\n for(int j = 0; j < 4; j++){\n result[i4+j] /= f;\n if(j > i){\n matrix[i4+j] /= f;\n }\n }\n }\n\n// dump(\"row \"+i+\" leading 1\", matrix, result);\n \n for(int j = i+1; j < 4; j++){\n if(matrix[i*4+j] != 0){\n transform(i, -matrix[i*4+j], j, matrix, result);\n }\n }\n\n// dump(\"row \"+i+\" tailing 0\", matrix, result);\n\n }\n\n matrix = result;\n }", "public void flip() {\r\n \tif (flip != 0) {\r\n \t\tflipValue = -1;\r\n \t\tflipReposition = frameWidth;\r\n \t} else {\r\n \t\tflipValue = 1;\r\n \t\tflipReposition = 0;\r\n \t}\r\n }", "public static int[][] flipBoard(final int[][] board) {\n final int numRows = board.length;\n final int numCols = board[0].length;\n\n final int[][] flippedBoard = cloneBoard(board);\n\n for (int r = 0; r < numRows; r++) {\n for (int c = 0; c < numCols; c++) {\n flippedBoard[r][c] *= -1;\n }\n }\n return flippedBoard;\n }", "public static int flipBits(int a) {\n if(~a == 0)\n return Integer.SIZE;\n int maxlen=0, currlen=0, prevlen=0;\n\n while(a != 0) {\n if((a&1) == 1) {\n currlen++;\n } else if((a&1) == 0) {\n prevlen = (a&2) == 0 ? 0 : currlen;\n currlen=0;\n }\n maxlen = Math.max(currlen + prevlen + 1, maxlen);\n a >>>= 1;\n }\n return maxlen;\n }", "public void flip_it(int i){\n // flip the coins i and i + 1\n int ni = (i+1)%board.length; // if (i+1 == board.length) ni = 0;\n\n int tmp = board[i];\n\n board[i] = board[ni];\n board[ni] = tmp;\n }", "static public int[][] flipAndInvertImage(int[][] A) {\n for(int i =0;i<A.length;i++){\n processARow(A[i]);\n }\n return A;\n }", "public static void inverseTransform() {\r\n \tint start = BinaryStdIn.readInt();\r\n \tString str = BinaryStdIn.readString();;\r\n \tchar[] lastCol = str.toCharArray();\r\n \tint[] count = new int[256];\r\n \tfor (char c : lastCol) {\r\n \t\tcount[c]++;\r\n \t}\r\n \tfor (int i = 1; i < count.length; i++) {\r\n \t\tcount[i] += count[i - 1];\r\n \t}\r\n \tint[] next = new int[lastCol.length];\r\n \tchar[] firstCol = new char[lastCol.length];\r\n \tfor (int i = lastCol.length - 1; i >= 0; i--) {\r\n \t\tint index = --count[lastCol[i]];\r\n \t\tfirstCol[index] = lastCol[i];\r\n \t\tnext[index] = i;\r\n \t}\r\n \tint sum = 0;\r\n \twhile (sum < lastCol.length) {\r\n \t\tBinaryStdOut.write(firstCol[start]);\r\n \t\tstart = next[start];\r\n \t\tsum++;\r\n \t}\r\n \tBinaryStdOut.close();\r\n }", "protected AbstractMatrix3D vRowFlip() {\n\tif (rows>0) {\n\t\trowZero += (rows-1)*rowStride;\n\t\trowStride = -rowStride;\n\t\tthis.isNoView = false;\n\t}\n\treturn this;\n}", "public static void sort01(int[] arr){\n int j = 0 ;\r\n for( int i = 0 ; i < arr.length ; i++){\r\n \r\n if( arr[i] == 1){\r\n continue;\r\n }\r\n \r\n else{\r\n swap( arr , i , j);\r\n j++;\r\n }\r\n }\r\n \r\n }", "private static String[] flipGridVertical(String[] grid) {\n\t\tString[] tmp = new String[grid.length];\n\t\tfor(int row = 0; row < grid.length; row++) {\n\t\t\ttmp[grid.length - (row+1)] = grid[row];\n\t\t}\n\t\treturn tmp;\n\t}", "public int[] flip() {\n if (used.size() == total)\n return new int[] {};\n\n int index = new Random().nextInt(total);\n while (used.contains(index))\n index = ++index % total;\n used.add(index);\n\n return new int[] {index / cols, index % cols};\n }", "public void flipOverX(){\n int len = tileChars.length;\r\n \r\n // swap rows\r\n for (int i = 0; i < len / 2; i++)\r\n {\r\n for (int j = 0; j < len; j++)\r\n {\r\n // swap `tileChars[i][j]` with `tileChars[len-i-1][j]`\r\n char temp = tileChars[i][j];\r\n tileChars[i][j] = tileChars[len-i-1][j];\r\n tileChars[len-i-1][j] = temp;\r\n }\r\n }\r\n \r\n boolean temp = this.matchFound[0];\r\n this.matchFound[0] = this.matchFound[2];\r\n this.matchFound[2] = temp;\r\n \r\n this.recalculateEdges(); //fix edges\r\n }", "public void flip(int x, int y){\n\t\tPiece temp = grid[x][y];\n\t\tint tempRepeats; //used to work out how many times in a diagonal to go\n\t\ttry{\n\t\t\t//UP\n\t\t\tfor (int i = 0;i < y; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x][y-i-1] == null || grid[x][y-i-1] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x][y-i-1] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x][y-(j+1)] = grid[x][y-(j+1)].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//DOWN\n\t\t\tfor (int i = 0;i < grid.length - y - 1; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x][y+i+1] == null || grid[x][y+i+1] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x][y+i+1] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x][y+(j+1)] = grid[x][y+(j+1)].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//LEFT\n\t\t\tfor (int i = 0;i < x; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x-(i+1)][y] == null || grid[x-(i+1)][y] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x-(i+1)][y] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x-(j+1)][y] = grid[x-(j+1)][y].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//RIGHT\n\t\t\tfor (int i = 0;i < grid.length - x - 1; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x+(i+1)][y] == null || grid[x+(i+1)][y] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x+(i+1)][y] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x+(j+1)][y] = grid[x+(j+1)][y].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Top left\n\t\t\tif(x < y){\n\t\t\t\ttempRepeats = x;\n\t\t\t} else {\n\t\t\t\ttempRepeats = y;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x-(i+1)][y-(i+1)] == null || grid[x-(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x-(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x-(j+1)][y-(j+1)] = grid[x-(j+1)][y-(j+1)].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//top right\n\t\t\t\n\t\t\tif(grid.length - x < y){\n\t\t\t\ttempRepeats = grid.length - x - 1;\n\t\t\t} else {\n\t\t\t\ttempRepeats = y - 1;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x+(i+1)][y-(i+1)] == null || grid[x+(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x+(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x+(j+1)][y-(j+1)] = grid[x+(j+1)][y-(j+1)].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\n\t\t\t//down Right\n\t\t\tif(grid.length - x < grid.length - y){\n\t\t\t\ttempRepeats = grid.length - x - 1;\n\t\t\t} else {\n\t\t\t\ttempRepeats = grid.length - y - 1;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x+(i+1)][y+(i+1)] == null || grid[x+(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x+(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x+(j+1)][y+(j+1)] = grid[x+(j+1)][y+(j+1)].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//down Left\n\t\t\tif(x < grid.length - y){\n\t\t\t\ttempRepeats = x;\n\t\t\t} else {\n\t\t\t\ttempRepeats = grid.length - y - 1;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x-(i+1)][y+(i+1)] == null || grid[x-(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x-(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x-(j+1)][y+(j+1)] = grid[x-(j+1)][y+(j+1)].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\tcatch(Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\tfinally {\n\n\t\t}\n\t}", "public void flipIndexes() {\n int temp = index1;\n index1 = index2;\n index2 = temp;\n }", "public int flip(int i, int j){\n int oldScore = 0;\n int newScore = 0;\n int current = lattice[i][j].getValue();\n if(current*lattice[(i-1+n)%n][j].getValue() < 0)\n newScore+=2;\n else oldScore+=2; //up\n if(current*lattice[(i+1)%n][j].getValue() < 0)\n newScore+=2;\n else oldScore+=2; //down\n if(current*lattice[i][(j-1+n)%n].getValue() < 0)\n newScore+=2;\n else oldScore+=2; //left\n if(current*lattice[i][(j+1)%n].getValue() < 0)\n newScore+=2;\n else oldScore+=2; //right\n //Perform flip\n lattice[i][j].flip();\n //Update score\n score -= oldScore;\n score += newScore;\n //Change nums negative and positives\n if(lattice[i][j].getValue() < 0){\n numNegatives++;\n }else{\n numNegatives--;\n }\n //Return score\n return score;\n }", "public void flip(){\n Matrix mirrorMatrix = new Matrix();\n mirrorMatrix.preScale(-1, 1);\n Bitmap turnMap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), mirrorMatrix, false);\n turnMap.setDensity(DisplayMetrics.DENSITY_DEFAULT);\n bitmap = new BitmapDrawable(turnMap).getBitmap();\n }", "private void flipArray(T[] array) {\n int point1 = 0,point2 = array.length - 1;\r\n while (point1 < point2) {\r\n T t = array[point1];\r\n array[point1] = array[point2];\r\n array[point2] = t;\r\n point1++;\r\n point2--;\r\n }\r\n }", "public abstract void toggleSortOrder(int column);", "private static void changeFirstRowAndColumn(int[][] matrix,MatrixSize matrixSize){\n for(int i=1;i<matrixSize.numberOfRows;i++){\n for(int j=1;j<matrixSize.numberOfColumns;j++) {\n if(matrix[i][j]==0){\n matrix[i][0]=0;\n matrix[0][j]=0;\n }\n }\n }\n }", "public static int flipBit(int value, int bitIndex) {\n\n// value = value ^ (1<<(bitIndex-1));\n\n return value ^ (1<<(bitIndex-1)); // put your implementation here\n }", "public static void main(String[] args) {\n\r\n\t\tint arr[]= {0,0,4,0,0,1,2};\r\n\t\tfor(int i=0;i<arr.length;i++) {\r\n\t\tfor(int j=i;j<arr.length;j++) {\r\n\t\t\t\r\n\t\t\tif(arr[i]==0 && arr[j]!=0) {\r\n\t\t\t\t\r\n\t\t\t\tint temp=arr[j];\r\n\t\t\t\tarr[j]=arr[i];\r\n\t\t\t\tarr[i]=temp;\r\n\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\tfor(int k=0;k<arr.length;k++)\r\n\t\t\tSystem.out.println(arr[k]);\r\n\t}", "public void compactDown() {\n\t// Iteramos a través del tablero partiendo de la primera fila\n\t// y última columna. Si esta contiene un 0 y la fila anterior\n\t// de la misma columna es distinta de 0, el valor se intercambia.\n\t// El proceso se repite hasta que todas las posiciones susceptibles\n\t// al cambio se hayan comprobado.\n\tfor (int i = 0; i < board.length; i++) {\n\t for (int j = board.length - 1; j > 0; j--) {\n\t\tif (board[j][i] == EMPTY && board[j - 1][i] != EMPTY) {\n\t\t board[j][i] = board[j - 1][i];\n\t\t board[j - 1][i] = EMPTY;\n\t\t compactDown();\n\t\t}\n\t }\n\t}\n }", "private boolean rowSwap(int pr, int pc)\n\t{\n\t\tif(A[pr][pc] == 0) //if pivot is 0\n\t\t{\n\t\t\tfor(int i = pr+1; i < rows; i++) //for everything underneath pivot\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif(A[i][pc] != 0) //if non-0 underneath pivot\n\t\t\t\t{\n\t\t\t\t\t//find max in row ie half-pivot\n\t\t\t\t\tint maxI = i;\n\t\t\t\t\tfor(int p = i+1; p < rows; p++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(A[p][pc] > A[i][pc])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmaxI = p;\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//swap rows\t\n\t\t\t\t\t\n\t\t\t\t\tdouble[] temp = A[pr];\n\t\t\t\t\tA[pr] = A[maxI];\n\t\t\t\t\tA[maxI] = temp;\n\t\n\t\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t//else { return false; } //whole col is 0's\n\t\t\t}\n\t\t\treturn false; //whole col is 0's\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "private boolean checkColoumnForQuadPair(int j1) {\n for(int i=0;i<4;i++)\r\n {\r\n if(Kmap[i][j1]==0 || Kmap[i][j1]==-1)\r\n return false;\r\n }\r\n for(int i=0;i<4;i++)\r\n {\r\n Kmap[i][j1]=-1;\r\n }\r\n return true; \r\n }", "public static int[][][] flipVertically(int[][][] source) {\n\n\t\tint[][][] verticalTemp = source;\n\t\tint[][][] vertical = new int[source.length][source[0].length][3]; \n\t\tint rows = (vertical.length) - 1; \n\n\t\t// Using one loop to swift the content\n\t\tfor (int i = 0; i < (rows + 1); i++) { \n\t\t\tvertical[i] = verticalTemp[rows - i];\n\t\t}\n\t\treturn vertical;\n\t}", "public void flip(){\n this.faceDown = !this.faceDown;\n }", "private void flipColors(Node h) {\n h.color = !h.color;\n h.left.color = !h.left.color;\n h.right.color = !h.right.color;\n }", "private static void sortArrayZeroOneTwo(int[] arr) {\n// sortArrayZeroOneTwo(new int[]{2, 0, 2, 1, 1, 0});\n int length = arr.length;\n int low = 0, mid = 0, high = length - 1;\n while (mid <= high) {\n if (arr[mid] == 0) {\n int temp = arr[low];\n arr[low] = arr[mid];\n arr[mid] = temp;\n low += 1;\n mid += 1;\n } else if (arr[mid] == 2) {\n int temp = arr[high];\n arr[high] = arr[mid];\n arr[mid] = temp;\n high--;\n } else if (arr[mid] == 1) {\n mid += 1;\n }\n }\n System.out.println(Arrays.toString(arr));\n }", "public void flip() {\n float tx = x1;\n float ty = y1;\n x1 = x2;\n y1 = y2;\n x2 = tx;\n y2 = ty;\n nx = -nx;\n ny = -ny;\n }", "private boolean isFlipped(){\n switch(this.orientation){\n case \"0\": case\"1\": case\"2\": case\"3\": return false;\n case \"4\": case\"5\": case\"6\": case\"7\": return true;\n default: return false;\n }\n }", "public void flipper(int bit)\n\t{\n\t\tif (binaryCode[bit])\n\t\t{\n\t\t\t//if value is true, it becomes false\n\t\t\tbinaryCode[bit]=false;\n\n\t\t} else {\n\t\t\t\n\t\t\t//if value is false, it becomes true\n\t\t\tbinaryCode[bit]=true;\n\t\t}\n\t}", "public void moveZeroes(int[] nums) {\n for(int i=0; i<nums.length-1; i++) {\n if(nums[i] == 0) {\n int j=i+1;\n while(j < nums.length) {\n if(nums[j] != 0) {\n break;\n }\n j++;\n }\n //switch\n if(j < nums.length) {\n nums[i] = nums[j];\n nums[j] = 0;\n \n }\n }\n }\n }", "public void flip(int[] arr, int index) {\n moves.add(index);\n int temp;\n for (int i = 0; i < index/2; i ++) {\n temp = arr[i];\n arr[i] = arr[index - 1 - i];\n arr[index - 1 - i] = temp;\n }\n }", "public static void makeRowsCols0(int [][]input) {\n\t\tint previ=-1,prevj=-1;\n\t\tfor(int i=0;i<input.length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<input[0].length;j++)\n\t\t\t{\n\t\t\t\tif(input[i][j]==0)\n\t\t\t\t{\t\n\t\t\t\t\tif(i!=previ&&j!=prevj)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int k=0;k<input.length;k++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinput[k][j]=0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(int k=0;k<input[0].length;k++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinput[i][k]=0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tprevi=i;\n\t\t\t\t\t\tprevj=j;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void segregate0and1(int arr[], int size)\n {\n int left = 0;\n int right = size - 1;\n while(left < right){\n while(arr[left] !=1 && left< right){\n left ++;\n }\n while(arr[right] !=0 && left < right){\n right --;\n }\n if(left != right){\n int tmp = arr[left];\n arr[left] = arr[right];\n arr[right] = tmp;\n left ++;\n right -- ;\n }\n }\n }", "private long top_mask(int col) {\r\n return (long)1 << height - 1 << col*(height+1);\r\n }", "public Squarelotron inverseDiagonalFlip(int ring);", "public void setZeroes1(int[][] matrix) {\n boolean col00 = false;\n\n int row, col;\n int rows = matrix.length;\n int cols = matrix[0].length;\n for (row = 0; row < rows; ++row) {\n for (col = 0; col < cols; ++col) {\n if (matrix[row][col] == 0) {\n if (col != 0) {\n matrix[0][col] = 0;\n matrix[row][0] = 0;\n } else {\n col00 = true;\n }\n }\n }\n }\n for (row = rows - 1; row >= 0; --row) {\n for (col = 1; col < cols; ++col) {\n if (matrix[row][0] == 0 || matrix[0][col] == 0) {\n matrix[row][col] = 0;\n }\n }\n }\n if (col00) {\n for (row = rows - 1; row >= 0; --row) {\n matrix[row][0] = 0;\n }\n }\n }", "@Override\n\tpublic Squarelotron sideFlip(String side) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//the following check for each input and then flip accordingly\n\t\t//top flips the top two rows\n\t\tif(side == \"top\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[0][i];\n\t\t\t\tnewSquarelotron[0][i] = newSquarelotron[1][i];\n\t\t\t\tnewSquarelotron[1][i]=number;\n\t\t\t}\n\n\t\t}\n\t\t//bottom flips the bottom two rows\n\t\telse if(side == \"bottom\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[size-1][i];\n\t\t\t\tnewSquarelotron[size-1][i] = newSquarelotron[size-2][i];\n\t\t\t\tnewSquarelotron[size-2][i]=number;\n\t\t\t}\t\n\n\t\t}\n\t\t//left flips the left two rows\n\t\telse if(side == \"left\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][0]\t;\n\t\t\t\tnewSquarelotron[i][0] = newSquarelotron[i][1];\n\t\t\t\tnewSquarelotron[i][1]=number;\n\t\t\t}\n\n\t\t}\n\t\t//right flips the right two rows\n\t\telse if(side == \"right\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][size-1];\n\t\t\t\tnewSquarelotron[i][size-1] = newSquarelotron[i][size-2];\n\t\t\t\tnewSquarelotron[i][size-2]=number;\n\t\t\t}\t\n\n\t\t}\n\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "public Piece flip(){\n if(this == BLACK){\n return WHITE;\n }\n else{\n return BLACK;\n }\n }", "private void swapCol(int col1, int col2) {\r\n List<Integer> columnTmp = new ArrayList<Integer>();\r\n for (int row = 0; row < 9; row++)\r\n columnTmp.add(solution[row][col1]);\r\n for(int row = 0; row<9; row++)\r\n solution[row][col1] = solution[row][col2];\r\n for(int row = 0; row<9; row++)\r\n solution[row][col2] = columnTmp.get(row);\r\n }", "private static void BFSinfect(char[][] grid, int row, int column) {\n int rowLength = grid.length;\n int colLength = grid[0].length;\n Deque<Integer> stack = new LinkedList<>();\n stack.addLast(row * colLength + column);\n while (!stack.isEmpty()) {\n int value = stack.pollFirst();\n row = value / colLength;\n column = value % colLength;\n char val = grid[row][column];\n if (val == '1') {\n grid[row][column] = '0';\n if (row + 1 < rowLength) {\n stack.addLast((row + 1) * colLength + column);\n }\n if (column + 1 < colLength) {\n stack.addLast(row * colLength + column + 1);\n }\n if (row - 1 >= 0) {\n stack.addLast((row - 1) * colLength + column);\n }\n if (column - 1 >= 0) {\n stack.addLast(row * colLength + column - 1);\n }\n }\n }\n }", "private void checkVertical() {\n\n for(int i = 0; i < 2; i++){ // winning column can be either 0-1-2-(3) or (0)-1-2-3\n for (int j = 0; j < stateArray[3].length; j++) {\n\n if (check3Vertical(i, j)) {\n maskResultArray[stateArray[i][j]] = 1;\n maskArray[i][j] = 1;\n maskArray[i+1][j] = 1;\n maskArray[i+2][j] = 1;\n }\n\n }\n }\n\n }", "public void compactRight() {\n\t// Iteramos a través del tablero partiendo de la primera fila\n\t// y última columna. Si esta contiene un 0 y la columna anterior\n\t// de la misma fila es distinta de 0, el valor se intercambia.\n\t// El proceso se repite hasta que todas las posiciones susceptibles\n\t// al cambio se hayan comprobado.\n\n\tfor (int i = 0; i < board.length; i++) {\n\t for (int j = board.length - 1; j > 0; j--) {\n\t\tif (board[i][j] == EMPTY && board[i][j - 1] != EMPTY) {\n\t\t board[i][j] = board[i][j - 1];\n\t\t board[i][j - 1] = EMPTY;\n\t\t compactRight();\n\t\t}\n\t }\n\t}\n }", "public void swapColumns( int c1, int c2 ) {\n\tfor (int r = 0; r < this.size(); r++){\n\t Object c1Val = matrix[r][c1];\n\t matrix[r][c1] = matrix[r][c2];\n\t matrix[r][c2] = c1Val;\n\t}\n }", "private List<Cell> cellsToFlipInDirection( Board board,\n int row, int col, Color color, Direction dir) {\n List<Cell> cells_to_flip = new ArrayList<Cell>();\n Cell next = board.getNeighboringCell(row, col, dir);\n //no disks to flip in this direction\n if (next == null || !next.hasDisk() ||\n next.getDisk().getColor() == color) {\n return cells_to_flip;\n //might be disks to flip in this direction\n } else {\n while (next.getDisk().getColor() != color) {\n cells_to_flip.add(next);\n int curr_row = next.getLocation().getRow();\n int curr_col = next.getLocation().getCol();\n next = board.getNeighboringCell(curr_row, curr_col, dir);\n //flip in this direction\n if (next != null && next.hasDisk()\n && next.getDisk().getColor() == color) {\n break;\n //don't flip in this direction\n } else if (next == null || !next.hasDisk()) {\n cells_to_flip.clear();\n break;\n }\n }\n return cells_to_flip;\n }\n }", "void markRowAndColumnZero(int[][] matrix) {\n HashSet<Integer> rows = new HashSet<Integer>();\n HashSet<Integer> columns = new HashSet<Integer>();\n for(int i=0; i< matrix.length;i++) {\n for(int j =0; j < matrix[0].length; j++) {\n if(matrix[i][j] == 0) {\n rows.add(i);\n columns.add(j);\n }\n }\n }\n Iterator<Integer> rowsIterator = rows.iterator();\n while(rowsIterator.hasNext()) {\n int rowToBeSetToZero = rowsIterator.next();\n for(int i=0;i< matrix[0].length;i++) {\n matrix[rowToBeSetToZero][0] = 0;\n }\n }\n\n Iterator<Integer> columnsIterator = columns.iterator();\n while(columnsIterator.hasNext()) {\n int columnToBeSetToZero = columnsIterator.next();\n for(int i=0;i< matrix[0].length;i++) {\n matrix[i][columnToBeSetToZero] = 0;\n }\n }\n\n return;\n\n\n }", "private static void setMatrixOnes(int[][] matrix) {\n\n\t\tint row = matrix.length;\n\t\tint col = matrix[0].length;\n\n\t\tboolean rowFlag = false;\n\t\tboolean colFlag = false;\n\n\t\tfor (int i = 0; i < row; i++) {\n\t\t\tfor (int j = 0; j < col; j++) {\n\n\t\t\t\t/* next two if conditions take special care for first row and first column */\n\n\t\t\t\t/* Scan the first row and set a variable rowFlag to indicate whether we need to set all 1s in first row or not. */\n\t\t\t\tif (i == 0 && matrix[i][j] == 1) {\t/* if any values in first row is 1, set rowFlag true */\n\t\t\t\t\trowFlag = true;\n\t\t\t\t}\n\n\t\t\t\t/* Scan the first column and set a variable colFlag to indicate whether we need to set all 1s in first column or not. */\n\t\t\t\tif (j == 0 && matrix[i][j] == 1) {\t/* if any values in first col is 1, set colFlag true */\n\t\t\t\t\tcolFlag = true;\n\t\t\t\t}\n\n\t\t\t\t/* Use first row and first column as the auxiliary arrays row[] and col[] respectively,\n\t\t\t\t * consider the matrix as sub matrix starting from second row and second column\n\t\t\t\t * */\n\t\t\t\tif (matrix[i][j] == 1) {\n\t\t\t\t\tmatrix[0][j] = 1;\n\t\t\t\t\tmatrix[i][0] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Modify the given input matrix using the first row and first column of this matrix itself */\n\t\tfor (int i = 1; i < row; i++) {\n\t\t\tfor (int j = 1; j < col; j++) {\n\t\t\t\tif (matrix[0][j] == 1 || matrix[i][0] == 1) {\n\t\t\t\t\tmatrix[i][j] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* modify first row if there was any 1 */\n\t\tif (rowFlag) {\n\t\t\tfor (int j = 0; j < col; j++) {\n\t\t\t\tmatrix[0][j] = 1;\n\t\t\t}\n\t\t}\n\n\t\t/* modify first col if there was any 1 */\n\t\tif (colFlag) {\n\t\t\tfor (int i = 0; i < row; i++) {\n\t\t\t\tmatrix[i][0] = 1;\n\t\t\t}\n\t\t}\n\n\t\tprintTheMatrix(matrix);\n\t}", "static void update(int[][] matrix){\n\t\tboolean rowFlag = false;\n\t\tboolean colFlag = false;\n\t\tint n = matrix.length;\n int m = matrix[0].length;\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n if(i==0 && matrix[i][j]==0){\n rowFlag =true;\n }\n if(j==0 && matrix[i][j]==0){\n colFlag = true;\n }\n if(matrix[i][j]==0){\n matrix[0][j] = 0;\n matrix[i][0] = 0;\n }\n }\n }\n for(int i=1;i<n;i++){\n for(int j=1;j<m;j++){\n if(matrix[i][0]==0||matrix[0][j]==0){\n matrix[i][j]=0;\n }\n }\n }\n if(rowFlag){\n for(int i=0;i<m;i++){\n matrix[0][i] =0 ;\n }\n }\n if(colFlag){\n for(int j=0;j<n;j++){\n matrix[j][0] = 0;\n }\n }\n\n\t}", "public static void betterApproach(int matrix[][]){\n\t\t\n\t\tint m = matrix.length;\n\t\tint n = matrix[0].length;\n\t\tboolean auxR[] = new boolean[m];\n\t\tboolean auxC[] = new boolean[n];\n\t\t\n\t\tfor(int i = 0;i<m;i++){\n\t\t\tauxR[i] = false;\n\t\t}\n\t\t\n\t\tfor(int j = 0;j<n;j++){\n\t\t\tauxC[j] = false;\n\t\t}\n\t\t\n\t\tfor(int i = 0;i<m;i++){\n\t\t\tfor(int j = 0;j<n;j++){\n\t\t\t\tif(matrix[i][j] == 0){\n\t\t\t\t\tauxR[i] = true;\n\t\t\t\t\tauxC[j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0;i<m;i++){\n\t\t\tfor(int j = 0;j<n;j++){\n\t\t\t\tif(auxR[i] == true || auxC[j] == true){\n\t\t\t\t\tmatrix[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void flip(int i) {\n int start = 0;\n while(start < i){\n int temp = toSort[start].val;\n toSort[start].val = toSort[i].val;\n toSort[i].val = temp;\n start++;\n i--;\n sorting.add(paintIntegers.deepCopy(toSort));\n }\n }", "public void moveZeroes2(int[] nums) {\n int zeroCount = 0;\n int lastZeroIndex = 0;\n for(int i = 0; i < nums.length; i++) {\n if( nums[i] != 0 && zeroCount > 0) {\n nums[lastZeroIndex++] = nums[i];\n nums[i] = 0; //lazy swap, just making it 0\n zeroCount--;\n }\n if( nums[i] == 0 ) {\n if(zeroCount == 0)\n lastZeroIndex = i;\n zeroCount++;\n }\n }\n }", "public void decrementColumn() {\n setRowAndColumn(row, Math.max(column - 1, 0));\n }", "private void flip()\r\n\t{\r\n\t\tif(heading == Direction.WEST)\r\n\t\t{\r\n\t\t\tsetDirection(Direction.EAST);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsetDirection(Direction.WEST);\r\n\t\t}\r\n\t}", "private static void reverse(int[] row, int lo, int hi) {\n while (lo < hi) {\n swap(row, lo, hi);\n lo++;\n hi--;\n }\n }", "public static ArrayList<Boolean> flipABit(ArrayList<Boolean> data) {\n Random random = new Random();\n int bitToChange = random.nextInt(data.size());\n data.set(bitToChange, !data.get(bitToChange));\n return data;\n }", "private static int[][] rotateMartix(int[][] matrix) {\n for(int i=0;i<matrix.length;i++) {\n for(int j=i;j< matrix.length;j++) {\n int tmp=matrix[i][j];\n matrix[i][j]=matrix[j][i];\n matrix[j][i]=tmp;\n }\n }\n //swap columns\n for(int i=0;i<matrix.length;i++){\n int low = 0;\n int high = matrix.length-1;\n\n while(low < high)\n {\n int temp = matrix[i][low];\n matrix[i][low] = matrix[i][high];\n matrix[i][high] = temp;\n\n low++;\n high--;\n }\n }\n return matrix;\n }", "public Squarelotron sideFlip(String side);", "public void reverseEdge(int[][] mat) {\n\t\tint row = mat.length;\n\t\tfor(int i = 0; i < row; i++) {\n\t\t\tfor(int j = i; j < row; j ++) {\n\t\t\t\tif(i != j) {\n\t\t\t\t\tint temp = mat[i][j];\n\t\t\t\t\tmat[i][j] = mat[j][i];\n\t\t\t\t\tmat[j][i] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testReverseRow(){\n ROW.getReverseRow(ROW.getIndex());\n }", "public void flipBit(int k) {\n if (this.inBitRange(k)) {\n int i = k / 8;\n int j = k % 8;\n int b = this.data.get(i);\n int c = 1 << (7 - j);\n b = b ^ c;\n byte d = (byte) b;\n this.data.set(i, d);\n }\n }", "public static void bestApproach(int matrix[][]){\n\t\t\n\t\tint m = matrix.length;\n\t\tint n = matrix[0].length;\n\t\t\n\t\t//Taking two variables for storing status of first row and column\n\t\tboolean firstRow = false;\n\t\tboolean firstColumn = false;\n\t\t\n\t\t//any element except for first row and first column is zero\n\t\tfor(int i = 0;i<m;i++){\n\t\t\tfor(int j = 0;j<n;j++){\n\t\t\t\tif(matrix[i][j] == 0){\n\t\t\t\t\tif(i == 0) firstRow == true;\n\t\t\t\t\tif(j == 0) firstColumn == true;\n\t\t\t\t\t//Making first row and first column as zero\n\t\t\t\t\tmatrix[i][0] = 0;\n\t\t\t\t\tmatrix[0][j] = 0;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//any element except for first row and first column is zero\n\t\tfor(int i = 1;i<m;i++){\n\t\t\t\n\t\t\tfor(int j = 1;j<n;j++){\n\t\t\t\t//based on first row and first column making the entire column and row as zero\n\t\t\t\tif(matrix[0][j] == 0 || matrix[i][0] == 0){\n\t\t\t\t\t//Making first row and first column as zero\n\t\t\t\t\tmatrix[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Making every column value to 0 in first row\n\t\tif(firstRow){\n\t\t\t\n\t\t\tfor(int j = 0;j <n;j++){\n\t\t\t\tmatrix[0][j] = 0;\n\t\t\t}\n\t\t}\n\t\t//Making every row value to 0 in first column\n\t\tif(firstColumn){\n\t\t\t\n\t\t\tfor(int i = 0;i <m;i++){\n\t\t\t\tmatrix[i][0] = 0;\n\t\t\t}\n\t\t}\n\t}", "public Squarelotron leftRightFlip(int ring);", "public static void inverseTransform() {\n int[] count = new int[R + 1]; // used for count/cumulates for decoding\n @SuppressWarnings(\"unchecked\")\n Queue<Integer>[] fifoIndices = new Queue[R];\n for (int r = 0; r < R; r++) {\n fifoIndices[r] = new Queue<Integer>();\n }\n String binaryInputString = \"\";\n int length; // length of input\n int first;\n // Get input binary stream\n first = BinaryStdIn.readInt();\n while (!BinaryStdIn.isEmpty()) {\n binaryInputString = BinaryStdIn.readString();\n // binaryInputChar = BinaryStdIn.readChar();\n // binaryInputString = binaryInputString.append(binaryInputChar);\n // count[binaryInputChar + 1]++; // update counts\n // fifoIndices[binaryInputChar].enqueue(counter++); // array of FIFOs of indices of binaryInputChar in input binary stream\n }\n length = binaryInputString.length();\n for (int i = 0; i < length; i++) {\n count[binaryInputString.charAt(i) + 1]++;\n // store indices for each character as they appear in FIFO order\n fifoIndices[binaryInputString.charAt(i)].enqueue(i);\n }\n \n // update cumulates\n for (int r = 0; r < R; r++) {\n count[r + 1] += count[r];\n }\n \n // sorted first column\n char[] tAux = new char[length];\n \n // move items from string into first column array in sorted order\n for (int i = 0; i < length; i++) {\n tAux[count[binaryInputString.charAt(i)]++] = binaryInputString.charAt(i);\n }\n \n // store corresponding index for relative order\n // i < j --> next[i] < next[j]\n int[] next = new int[length];\n for (int i = 0; i < length; i++) {\n next[i] = fifoIndices[tAux[i]].dequeue();\n }\n \n for (int i = 0; i < length; i++) {\n BinaryStdOut.write(tAux[first]);\n first = next[first];\n }\n BinaryStdOut.flush();\n }", "public void flip() {\r\n\t\tObject[] bak = path.toArray(new Direction[path.size()]);\r\n\t\tpath.clear();\r\n\t\tfor (int i = bak.length-1; i >= 0; i--) {\r\n\t\t\tpath.push((Direction) bak[i]);\r\n\t\t}\r\n\t}", "public void nullifyMatrixEfficient(int[][] mat) {\r\n boolean hasRow=false, hasCol=false;\r\n //checking first row and colmun about having any zero so later we can nullify it\r\n for (int i=0;i<mat[0].length;i++ ) {\r\n if(mat[0][i] == 0) {\r\n hasRow = true;\r\n break;\r\n }\r\n }\r\n for (int i=0;i<mat.length;i++ ) {\r\n if(mat[i][0] == 0) {\r\n hasCol = true;\r\n break;\r\n }\r\n }\r\n //checking zeros existance and marking their coresponding first row and col to zero\r\n for (int i=0;i<mat.length ;i++ ) {\r\n for (int j=0; j<mat[0].length;j++ ) {\r\n if(mat[i][j] == 0) {\r\n mat[0][j] = 0;\r\n mat[i][0] = 0;\r\n }\r\n }\r\n }\r\n //nullify all columns with first element is zero\r\n for(int i=0; i<mat[0].length; i++) {\r\n if(mat[0][i] == 0)\r\n helperNullifyColumn(mat, i);\r\n }\r\n \r\n //nullify all rows with first element is zero\r\n for(int i=0; i<mat.length; i++) {\r\n if(mat[i][0] == 0)\r\n helperNullifyRow(mat, i);\r\n }\r\n printMat(mat);\r\n }", "public static void sort2D(int[][] arr){\n boolean check = true;\n int temp =0;\n while(check){\n check = false;\n int i =0;\n for(int j =0; j<arr[i].length; j++){\n if(j==arr[i].length-1){\n if(i==arr.length-1) break;\n int nextRow=i+1;\n if(arr[i][j]>arr[nextRow][0]){\n temp=arr[i][j];\n arr[i][j]=arr[nextRow][0];\n arr[nextRow][0]=temp;\n check=true;\n }\n i++;\n j=-1;\n\n }else if(arr[i][j]>arr[i][j+1]){\n temp=arr[i][j];\n arr[i][j]=arr[i][j+1];\n arr[i][j+1]=temp;\n check =true;\n }\n }\n\n\n }\n }", "private void flipnav(int[] nav) {\r\n\r\n // first word is always the satellite id in ASCII\r\n // check on which type:\r\n\r\n if (nav[0] == AREAnav.GVAR) {\r\n\r\n McIDASUtil.flip(nav,2,126);\r\n McIDASUtil.flip(nav,129,254);\r\n McIDASUtil.flip(nav,257,382);\r\n McIDASUtil.flip(nav,385,510);\r\n McIDASUtil.flip(nav,513,638);\r\n }\r\n\r\n else if (nav[0] == AREAnav.DMSP) {\r\n McIDASUtil.flip(nav,1,43);\r\n McIDASUtil.flip(nav,45,51);\r\n }\r\n\r\n else if (nav[0] == AREAnav.POES) {\r\n McIDASUtil.flip(nav,1,119);\r\n }\r\n\r\n else {\r\n McIDASUtil.flip(nav,1,nav.length-1);\r\n }\r\n\r\n return;\r\n }", "private void swapRow(int row1, int row2){\r\n\t\tfor(int j=0; j<KolEff; j++){\r\n\t\t\tdouble temp = this.Elmt[row1][j];\r\n\t\t\tthis.Elmt[row1][j] = this.Elmt[row2][j];\r\n\t\t\tthis.Elmt[row2][j] = temp;\r\n\t\t}\r\n\t}", "public byte[][] shiftRows(byte[][] state, boolean inverse) {\n\n byte[][] shiftedState = new byte[4][4];\n\n for(int i = 0; i < state.length; i++) {\n byte[] row = state[i];\n byte[] shiftedRow = new byte[4];\n\n for(int j = 0; j < row.length; j++) {\n if(inverse) shiftedRow[j] = row[(4+j-i)%4];\n else shiftedRow[j] = row[(j+i)%4];\n }\n\n shiftedState[i] = shiftedRow;\n }\n\n return shiftedState;\n }", "public void hreflect() {\n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n int h= 0;\n int k= rows-1;\n //invariant: rows 0..h-1 and k+1.. have been inverted\n while (h < k) {\n // Swap row h with row k\n // invariant: pixels 0..c-1 of rows h and k have been swapped\n for (int c= 0; c != cols; c= c+1) {\n currentIm.swapPixels(h, c, k, c);\n }\n \n h= h+1; k= k-1;\n }\n }", "static int toggleBit(int n){\n return n & (n-1);\n }", "private static void leftRotateByOne(int[] array) {\n int tmp = array[0];\n for (int i = 0; i < array.length - 1; i++) {\n array[i] = array[i + 1];\n }\n array[array.length - 1] = tmp;\n }", "public static int[] exe1(int[] arr){ // Solution O(n) in time and constant in Memory\n int nzeros=0;\n\n for (int i=0; i<arr.length; i++) {\n arr[i-nzeros] = arr[i];\n if (arr[i] == 0) {\n nzeros++;\n }\n }\n for (int i=arr.length-1; i>arr.length-nzeros-1; i--) {\n arr[i] = 0;\n }\n\n return arr;\n }", "public void flipBattleCard() {\n flipCards(WarGameConstants.NUMBER_CARDS_TO_BATTLE);\n }", "private void markRowsAndCols(int row){\n if(row < 0)\n return;\n\n markedRows[row] = true;\n for (int j = 0; j < cols; j++)\n if(j != chosenInRow[row] && source[row][j] == 0) {\n markedCols[j] = true;\n markRowsAndCols(chosenInCol[j]);\n }\n }", "private static void changeValuesTTT(int[][] ttt, int i, int j) {\n\t\tfor (int k = 0; k<ttt[i].length;k++){\n\t\t\tttt[i][k]=ttt[i][k]==0?0:-1;\n\t\t\t\n\t\t\t}\n\t\t\n\n\t\tfor (int l = 0; l<ttt.length;l++){\n\t\t\tttt[l][j]=ttt[l][j]==0?0:-1;\n\t\t\t\n\t\t}\n\t}", "public void compactUp() {\n\t// Iteramos a través del tablero partiendo de la primera fila\n\t// y primera columna. Si esta contiene un 0 y la fila posterior\n\t// de la misma columna es distinta de 0, el valor se intercambia.\n\t// El proceso se repite hasta que todas las posiciones susceptibles\n\t// al cambio se hayan comprobado.\n\tfor (int i = 0; i < board.length; i++) {\n\t for (int j = 0; j < board.length - 1; j++) {\n\t\tif (board[j][i] == EMPTY && board[j + 1][i] != EMPTY) {\n\t\t board[j][i] = board[j + 1][i];\n\t\t board[j + 1][i] = EMPTY;\n\t\t compactUp();\n\t\t}\n\t }\n\t}\n }", "public static BufferedImage flipVertically(BufferedImage image) {\n BufferedImage trimImage = new BufferedImage(image.getWidth(), image.getHeight(), image.getType());\n Graphics2D graphics = trimImage.createGraphics();\n graphics.drawImage(image, 0, image.getHeight(), image.getWidth(), -image.getHeight(), null);\n graphics.dispose();\n\n return trimImage;\n }", "private void swapSign() {\n isPositive = !isPositive;\n }", "public static void flipHorizontal (BufferedImage bi)\n {\n imageList.add(deepCopy(bi)); // add the image to the undo list\n int xSize = bi.getWidth();\n int ySize = bi.getHeight();\n\n // Temp image, to store pixels as we reverse everything\n BufferedImage newBi = new BufferedImage (xSize, ySize, 3); \n\n for (int i = 0; i < xSize; i++)\n {\n for (int j = 0; j< ySize; j++)\n {\n int rgb = bi.getRGB(i,j);\n newBi.setRGB(xSize-i-1,j,rgb); //flip the pixels\n }\n }\n for (int i = 0; i < xSize; i++)\n {\n for (int j = 0; j< ySize; j++)\n {\n bi.setRGB(i,j,newBi.getRGB(i,j)); // set each pixel of the original image \n }\n }\n redoList.add(deepCopy(bi)); // add the new image to the redo list\n }", "static Bitmap flip(Bitmap bitmap, boolean horizontal, boolean vertical) {\n Matrix matrix = new Matrix();\n matrix.preScale(horizontal ? -1 : 1, vertical ? -1 : 1);\n return Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true);\n }", "public static void flipVertical (BufferedImage bi)\n {\n imageList.add(deepCopy(bi)); // add the image to the undo list\n int xSize = bi.getWidth();\n int ySize = bi.getHeight();\n\n // Temp image, to store pixels as we reverse everything\n BufferedImage newBi = new BufferedImage (xSize, ySize, 3); \n\n for (int i = 0; i < xSize; i++)\n {\n for (int j = 0; j< ySize; j++)\n {\n int rgb = bi.getRGB(i,j);\n newBi.setRGB(i,ySize-j-1, rgb); //flip the pixels\n }\n }\n for (int i = 0; i < xSize; i++)\n {\n for (int j = 0; j< ySize; j++)\n {\n bi.setRGB(i,j,newBi.getRGB(i,j)); // set each pixel of the original image \n }\n }\n redoList.add(deepCopy(bi)); // add the new image to the redo list\n }", "public boolean up() {\r\n if( row <= 0 ) return false;\r\n --row;\r\n return true;\r\n }", "public void moveZeroes(int[] nums) {\n int current = 0, last = 0;\n int temp = 0;\n while(current < nums.length){\n if(nums[current] != 0){\n if(nums[last] != 0){\n last++;\n }\n else{\n if(current != last){\n nums[last] = nums[current];\n nums[current] = 0;\n last++;\n }\n }\n }\n current++;\n }\n}" ]
[ "0.647789", "0.6352299", "0.59590435", "0.57964814", "0.57899904", "0.5764012", "0.57376856", "0.571299", "0.56783164", "0.56380177", "0.5605398", "0.55970883", "0.55695975", "0.55663896", "0.5553781", "0.55515444", "0.5537898", "0.55287534", "0.55097234", "0.549607", "0.5451391", "0.54501206", "0.5443244", "0.54265934", "0.5418804", "0.54120874", "0.5402126", "0.53982604", "0.5362814", "0.5348997", "0.5340908", "0.5318367", "0.5315859", "0.53031886", "0.5275244", "0.5240212", "0.5236251", "0.522658", "0.52239484", "0.52208984", "0.5219527", "0.5203808", "0.5177968", "0.5172855", "0.51642096", "0.5151961", "0.51504904", "0.5136688", "0.5133388", "0.5124902", "0.5108597", "0.5100999", "0.50988287", "0.5084351", "0.50714886", "0.5068016", "0.5066494", "0.5051843", "0.5039548", "0.5038522", "0.5025973", "0.5024465", "0.50208217", "0.5015896", "0.5003428", "0.5000474", "0.5000224", "0.49818045", "0.49671102", "0.49628243", "0.49533224", "0.4950576", "0.49199566", "0.49153998", "0.49142268", "0.48983535", "0.48901626", "0.48832098", "0.48803434", "0.48780754", "0.48763764", "0.4874075", "0.48734444", "0.48651135", "0.48630318", "0.4862556", "0.48603004", "0.48569152", "0.48534796", "0.4849797", "0.48471576", "0.48398665", "0.48374206", "0.48328194", "0.4827696", "0.48268726", "0.48268056", "0.48199448", "0.4810714", "0.48044124" ]
0.5208715
41
Check if device policy has disabled the camera.
public static Camera openCamera(Activity activity, int cameraId) throws Exception { if (!activity.isFinishing()) { DevicePolicyManager dpm = (DevicePolicyManager) activity.getSystemService( Context.DEVICE_POLICY_SERVICE); if (dpm.getCameraDisabled(null) == true) { throw new Exception(); } for (int i = 0; i < OPEN_RETRY_COUNT; i++) { try { return CameraHolder.instance().open(cameraId); } catch (Exception e) { if (i == 0) { try { //wait some time, and try another time //Camera device may be using by VT or atv. Thread.sleep(1000); } catch (InterruptedException ie) { } continue; } else { // In eng build, we throw the exception so that test tool // can detect it and report it if ("eng".equals(Build.TYPE)) { if (BuildConfig.DEBUG) Log.i(TAG, "Open Camera fail", e); throw e; //QA will always consider JE as bug, so.. //throw new RuntimeException("openCamera failed", e); } else { throw e; } } } } //just for build pass } throw new Exception(new RuntimeException("Should never get here")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean getCameraDisabled(ComponentName who, int userHandle, boolean parent) {\n if (!mHasFeature) {\n return false;\n }\n\n final CallerIdentity caller = getCallerIdentity(who);\n Preconditions.checkCallAuthorization(hasFullCrossUsersPermission(caller, userHandle));\n\n if (parent) {\n Preconditions.checkCallAuthorization(\n isProfileOwnerOfOrganizationOwnedDevice(caller.getUserId()));\n }\n\n synchronized (getLockObject()) {\n if (who != null) {\n ActiveAdmin admin = getActiveAdminUncheckedLocked(who, userHandle, parent);\n return (admin != null) && admin.disableCamera;\n }\n // First, see if DO has set it. If so, it's device-wide.\n final ActiveAdmin deviceOwner = getDeviceOwnerAdminLocked();\n if (deviceOwner != null && deviceOwner.disableCamera) {\n return true;\n }\n final int affectedUserId = parent ? getProfileParentId(userHandle) : userHandle;\n // Return the strictest policy across all participating admins.\n List<ActiveAdmin> admins = getActiveAdminsForAffectedUserLocked(affectedUserId);\n // Determine whether or not the device camera is disabled for any active admins.\n for (ActiveAdmin admin : admins) {\n if (admin.disableCamera) {\n return true;\n }\n }\n return false;\n }\n }", "private boolean checkCameraHardware(Context context) {\n if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)){\n // this device has a camera\n return true;\n } else {\n // no camera on this device\n return false;\n }\n }", "private boolean checkCameraHardware(Context context) {\n if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)){\n // this device has a camera\n return true;\n } else {\n // no camera on this device\n return false;\n }\n }", "private boolean checkCameraHardware(Context context) {\n if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)){\n // this device has a camera\n return true;\n } else {\n // no camera on this device\n return false;\n }\n }", "private boolean checkCameraHardware(Context context) {\n if (context.getPackageManager().hasSystemFeature(\n PackageManager.FEATURE_CAMERA)) {\n // this device has a camera\n return true;\n } else {\n // no camera on this device\n return false;\n }\n }", "private boolean checkCameraHardware(Context context) {\n if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)) {\n // this device has a camera\n return true;\n } else {\n // no camera on this device\n return false;\n }\n }", "private boolean checkCameraHardware(Context context) {\n if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)) {\n // this device has a camera\n return true;\n } else {\n // no camera on this device\n return false;\n }\n }", "private boolean checkCameraHardware(Context context) {\n // this device has a camera\n // no camera on this device\n return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA);\n }", "private static void throwIfCameraDisabled(Activity activity)\n\t\t\tthrows CameraDisabledException {\n\t\tDevicePolicyManager dpm = (DevicePolicyManager) activity\n\t\t\t\t.getSystemService(Context.DEVICE_POLICY_SERVICE);\n\t\tif (dpm.getCameraDisabled(null)) {\n\t\t\tthrow new CameraDisabledException();\n\t\t}\n\t}", "private boolean hasCamera(){\n return getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY);\n }", "private boolean checkCameraHardware(Context context) {\n\t if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)){\n\t // this device has a camera\n\t Log.d(TAG, \"this device has a camera\");\n\t return true;\n\t } else {\n\t // no camera on this device\n\t Log.d(TAG, \"no camera on this device\");\n\t return false;\n\t }\n\t}", "public boolean CheckingPermissionIsEnabledOrNot()\n {\n int CameraPermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), CAMERA);\n int WriteStoragePermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), WRITE_EXTERNAL_STORAGE);\n int ReadStoragePermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), READ_EXTERNAL_STORAGE);\n\n return CameraPermissionResult == PackageManager.PERMISSION_GRANTED &&\n WriteStoragePermissionResult == PackageManager.PERMISSION_GRANTED &&\n ReadStoragePermissionResult == PackageManager.PERMISSION_GRANTED;\n }", "public boolean checkCameraHardware(Context context) {\n if(context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)) {\n return true;\n }\n else {\n return false;\n }\n }", "private boolean hasCamera(){\n\n return getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY); // provjera da li postji bilo koja kamera\n }", "boolean hasCaptureProbabilities();", "private boolean checkCameraHardware(Context context) {\r\n if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)){\r\n return true; // Tiene camara\r\n } else {\r\n return false;// No tiene camara\r\n }\r\n }", "@Override\n public boolean getScreenCaptureDisabled(ComponentName who, int userHandle, boolean parent) {\n if (!mHasFeature) {\n return false;\n }\n final CallerIdentity caller = getCallerIdentity(who);\n Preconditions.checkCallAuthorization(hasFullCrossUsersPermission(caller, userHandle));\n\n if (parent) {\n Preconditions.checkCallAuthorization(\n isProfileOwnerOfOrganizationOwnedDevice(getCallerIdentity().getUserId()));\n }\n return !mPolicyCache.isScreenCaptureAllowed(userHandle);\n }", "private boolean isDeviceSupportCamera() {\n if (getApplicationContext().getPackageManager().hasSystemFeature(\n PackageManager.FEATURE_CAMERA)) {\n // this device has a camera\n return true;\n } else {\n // no camera on this device\n return false;\n }\n }", "public boolean videoCaptureEnabled();", "private boolean isDeviceSupportCamera(){\n\t\tif(getApplicationContext().getPackageManager().hasSystemFeature(\n\t\t\t\tPackageManager.FEATURE_CAMERA)){\n\t\t\t//This device has a camera\n\t\t\treturn true;\n\t\t}else{\n\t\t\t//No camera on this device\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean isDeviceSupportCamera() {\n // this device has a camera\n// no camera on this device\n return getActivity().getApplicationContext().getPackageManager().hasSystemFeature(\n PackageManager.FEATURE_CAMERA);\n }", "public /* synthetic */ Boolean lambda$isFaceDisabled$0$KeyguardUpdateMonitor(DevicePolicyManager devicePolicyManager, int i) {\n return Boolean.valueOf(!(devicePolicyManager == null || (devicePolicyManager.getKeyguardDisabledFeatures(null, i) & 128) == 0) || isSimPinSecure());\n }", "boolean isCameraBurstPref();", "public boolean isCameraAvailable() {\n PackageManager pm = getPackageManager();\n return pm.hasSystemFeature(PackageManager.FEATURE_CAMERA);\n }", "private boolean isFingerprintDisabled(int i) {\n DevicePolicyManager devicePolicyManager = (DevicePolicyManager) this.mContext.getSystemService(\"device_policy\");\n return !(devicePolicyManager == null || (devicePolicyManager.getKeyguardDisabledFeatures(null, i) & 32) == 0) || isSimPinSecure();\n }", "public boolean needsCameraPermission() {\n try {\n if (!Arrays.asList(getCurrentActivity().getPackageManager().getPackageInfo(getReactApplicationContext().getPackageName(), 4096).requestedPermissions).contains(\"android.permission.CAMERA\") || ContextCompat.checkSelfPermission(getCurrentActivity(), \"android.permission.CAMERA\") == 0) {\n return false;\n }\n return true;\n } catch (PackageManager.NameNotFoundException unused) {\n return true;\n }\n }", "public void checkPermissionsCamera() {\n PackageManager packageManager = EditProfile.this.getPackageManager();\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n //Checking the permissions for using the camera.\n if (checkSelfPermission(Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.CAMERA},\n MY_PERMISSIONS_REQUEST_CAMERA);\n } else if (packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY) == false) {\n Toast.makeText(EditProfile.this, \"This device does not have a camera.\", Toast.LENGTH_LONG)\n .show();\n return;\n }\n }\n }", "private boolean hasCamera(Context context) {\n return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA);\n }", "boolean hasEnabled();", "public boolean getEnabled () {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\treturn (OS.PtWidgetFlags (topHandle) & OS.Pt_BLOCKED) == 0;\r\n}", "public static boolean isCameraAllowed(FragmentActivity act) {\n //Getting the permission status\n int result = ContextCompat.checkSelfPermission(act, Manifest.permission.CAMERA);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "public boolean verifyPaymentPlanDisabled() {\n\t\treturn !divPaymentPlan.isEnabled();\n\t}", "public static boolean isDisabled() {\r\n return disabled;\r\n }", "public boolean hideCameraForced() {\n return false;\n }", "private boolean isDeviceProvisionedInSettingsDb() {\n return Settings.Global.getInt(this.mContext.getContentResolver(), \"device_provisioned\", 0) != 0;\n }", "@Override\n public void setCameraDisabled(ComponentName who, boolean disabled, boolean parent) {\n if (!mHasFeature) {\n return;\n }\n Objects.requireNonNull(who, \"ComponentName is null\");\n\n final CallerIdentity caller = getCallerIdentity(who);\n if (parent) {\n Preconditions.checkCallAuthorization(isProfileOwnerOfOrganizationOwnedDevice(caller));\n }\n checkCanExecuteOrThrowUnsafe(DevicePolicyManager.OPERATION_SET_CAMERA_DISABLED);\n\n final int userHandle = caller.getUserId();\n synchronized (getLockObject()) {\n ActiveAdmin ap = getActiveAdminForCallerLocked(who,\n DeviceAdminInfo.USES_POLICY_DISABLE_CAMERA, parent);\n if (ap.disableCamera != disabled) {\n ap.disableCamera = disabled;\n saveSettingsLocked(userHandle);\n }\n }\n // Tell the user manager that the restrictions have changed.\n pushUserRestrictions(userHandle);\n\n final int affectedUserId = parent ? getProfileParentId(userHandle) : userHandle;\n if (SecurityLog.isLoggingEnabled()) {\n SecurityLog.writeEvent(SecurityLog.TAG_CAMERA_POLICY_SET,\n who.getPackageName(), userHandle, affectedUserId, disabled ? 1 : 0);\n }\n DevicePolicyEventLogger\n .createEvent(DevicePolicyEnums.SET_CAMERA_DISABLED)\n .setAdmin(caller.getComponentName())\n .setBoolean(disabled)\n .setStrings(parent ? CALLED_FROM_PARENT : NOT_CALLED_FROM_PARENT)\n .write();\n }", "public boolean hasCamera() {\n return mCamera != null;\n }", "public boolean hideCamera() {\n return false;\n }", "public boolean hideCamera() {\n return false;\n }", "void onCameraPermissionNotAvailable() {\n super.stopPlayback();\n\n //Stop eye tracking.\n stopEyeTracking();\n\n //start light sensor because eye tracking is not running we don't need light sensor now\n mLightIntensityManager.stopLightMonitoring();\n\n mUserAwarenessListener.onErrorOccurred(Errors.CAMERA_PERMISSION_NOT_AVAILABLE);\n }", "public int cameraOff() {\r\n System.out.println(\"hw- desligarCamera\");\r\n return serialPort.enviaDados(\"!111F*\"); //camera OFF\r\n }", "public boolean isScreenLocked() {\n return mKeyguardManager.inKeyguardRestrictedInputMode();\n }", "private boolean _checkIfCameraHasFlash(){\n\n\t\t// Checks to see if the device has a camera flash (flash light)\n\t\tboolean hasFlash = _main.getApplicationContext()\n\t\t\t\t.getPackageManager()\n\t\t\t\t.hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH);\n\n\t\treturn hasFlash;\n\t}", "@java.lang.Override\n public boolean hasDeviceSettings() {\n return deviceSettings_ != null;\n }", "public boolean hideSetting() {\n return isImageCaptureIntent();\n }", "public boolean verifyChangePayorDisabled() {\n\t\treturn !btnChangePayor.isEnabled();\n\t}", "public boolean isDisabled() {\n final FacesContext facesContext = getFacesContext();\n final TobagoConfig tobagoConfig = TobagoConfig.getInstance(facesContext);\n final Boolean disabled = (Boolean) getStateHelper().eval(AbstractUICommand.PropertyKeys.disabled);\n if (disabled == null) {\n SupportsDisabled parent =\n ComponentUtils.findAncestor(getCurrentComponent(facesContext), SupportsDisabled.class);\n if (parent != null && parent.isDisabled()) {\n return true;\n }\n }\n return disabled != null && disabled\n || tobagoConfig.getSecurityAnnotation() == SecurityAnnotation.disable && !isAllowed();\n }", "public void disablecameraLights(){\n \tcamLights.set(true);\n }", "boolean hasDevice();", "public boolean needEnableExposureAdjustment() {\n boolean z = true;\n if (CustomUtil.getInstance().getBoolean(CustomFields.DEF_CAMERA_ENABLE_COMPENSATION_OTHER_THAN_AUTO, true)) {\n return true;\n }\n if (this.mSceneMode != SceneMode.AUTO || Keys.isLowlightOn(this.mAppController.getSettingsManager())) {\n z = false;\n }\n return z;\n }", "private boolean mayRequestStoragePermission() {\r\n\r\n if(Build.VERSION.SDK_INT < Build.VERSION_CODES.M)\r\n return true;\r\n\r\n if((checkSelfPermission(WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) &&\r\n (checkSelfPermission(CAMERA) == PackageManager.PERMISSION_GRANTED))\r\n return true;\r\n\r\n if((shouldShowRequestPermissionRationale(WRITE_EXTERNAL_STORAGE)) || (shouldShowRequestPermissionRationale(CAMERA))){\r\n Snackbar.make(mRlView, \"Los permisos son necesarios para poder usar la aplicación\",\r\n Snackbar.LENGTH_INDEFINITE).setAction(android.R.string.ok, new View.OnClickListener() {\r\n @TargetApi(Build.VERSION_CODES.M)\r\n @Override\r\n public void onClick(View v) {\r\n requestPermissions(new String[]{WRITE_EXTERNAL_STORAGE, CAMERA}, MY_PERMISSIONS);\r\n }\r\n });\r\n }else{\r\n requestPermissions(new String[]{WRITE_EXTERNAL_STORAGE, CAMERA}, MY_PERMISSIONS);\r\n }\r\n\r\n return false;\r\n }", "public boolean needEnableExposureAdjustment() {\n if (CustomUtil.getInstance().getBoolean(CustomFields.DEF_CAMERA_ENABLE_COMPENSATION_OTHER_THAN_AUTO, true)) {\n return true;\n }\n return false;\n }", "protected boolean isAdvertisementDisabled(LocalDevice device) {\n/* 353 */ DiscoveryOptions options = getUpnpService().getRegistry().getDiscoveryOptions(device.getIdentity().getUdn());\n/* 354 */ return (options != null && !options.isAdvertised());\n/* */ }", "public boolean isDisabled()\n {\n return disabled;\n }", "private void checkEnabled() {\n }", "public final boolean isDisabled()\n {\n return myDisabledProperty.get();\n }", "public boolean isVideoStabilizationEnabled() {\n return Keys.isVideoStabilizationEnabled(this.mAppController.getSettingsManager());\n }", "final boolean isRobotBlocked() {\n return mIsBlocked;\n }", "public final boolean isDisabled() {\n return isAttributeDefined(\"disabled\");\n }", "public boolean isOverPaymentAllowed() {\n\t\treturn false;\n\t}", "public boolean canFunction()\n\t{\n\t\treturn this.enabled;\n\t}", "public boolean isNotifyEstimatedSlamCameraEnabled() {\n return mNotifyEstimatedSlamCamera;\n }", "private boolean hasFlash() {\n return getApplicationContext().getPackageManager()\n .hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH);\n }", "private void disableSensor() {\n if (DEBUG) Log.w(TAG, \"<<< Sensor \" + getEmulatorFriendlyName() + \" is disabled.\");\n mEnabledByEmulator = false;\n mValue = \"Disabled by emulator\";\n\n Message msg = Message.obtain();\n msg.what = SENSOR_STATE_CHANGED;\n msg.obj = MonitoredSensor.this;\n notifyUiHandlers(msg);\n }", "public boolean isEnabled() {\r\n\t\treturn sensor.isEnabled();\r\n\t}", "public boolean isDisabled() {\n return disabled;\n }", "protected boolean isActive() {\n return cameraInstance != null;\n }", "public boolean verifyNoInactives() {\n\t\treturn !btnInactives.isEnabled();\n\n\t}", "boolean hasNetworkPolicyConfig();", "public static boolean hasCamera(Context context) {\n return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA);\n }", "@Override\n public void setScreenCaptureDisabled(ComponentName who, boolean disabled, boolean parent) {\n if (!mHasFeature) {\n return;\n }\n Objects.requireNonNull(who, \"ComponentName is null\");\n\n final CallerIdentity caller = getCallerIdentity(who);\n if (parent) {\n Preconditions.checkCallAuthorization(isProfileOwnerOfOrganizationOwnedDevice(caller));\n }\n\n synchronized (getLockObject()) {\n ActiveAdmin ap = getParentOfAdminIfRequired(getProfileOwnerOrDeviceOwnerLocked(caller),\n parent);\n if (ap.disableScreenCapture != disabled) {\n ap.disableScreenCapture = disabled;\n saveSettingsLocked(caller.getUserId());\n pushScreenCapturePolicy(caller.getUserId());\n }\n }\n DevicePolicyEventLogger\n .createEvent(DevicePolicyEnums.SET_SCREEN_CAPTURE_DISABLED)\n .setAdmin(caller.getComponentName())\n .setBoolean(disabled)\n .write();\n }", "static boolean isDisabled(Context context) {\n return polling ||\n !ConfigureActivity.getBooleanSetting(context, ConfigureActivity.POLLING_ENABLED);\n }", "public boolean isStorageDeviceProtected() { throw new RuntimeException(\"Stub!\"); }", "public boolean canRequestPower();", "private void checkRuntimePermisson(boolean flag) {\n try {\n int hasRecordAudioPermission = 0;\n int hasWriteExternalStoragePermission = 0;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {\n hasWriteExternalStoragePermission = getActivity().checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n hasRecordAudioPermission = getActivity().checkSelfPermission(Manifest.permission.RECORD_AUDIO);\n if (hasWriteExternalStoragePermission != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CODE_ASK_PERMISSIONS_STORAGE);\n return;\n } else if (hasRecordAudioPermission != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.RECORD_AUDIO},\n REQUEST_CODE_ASK_PERMISSIONS_RECORD_AUDIO);\n return;\n }\n }\n if (flag) {\n intializeRecorder();\n }\n } catch (Exception e) {\n logException(e, \"MicManualFragment_checkRuntimePermisson()\");\n }\n\n }", "public boolean videoEnabled();", "public boolean isAnyAudioPolicyRegistered() {\n return !registeredAudioPolicies.isEmpty();\n }", "@OnPermissionDenied(Manifest.permission.CAMERA)\n void onCameraDenied() {\n mToastor.getSingletonToast(R.string.deny_camera_please_open).show();\n }", "boolean disableMonitoring();", "private boolean checkPermission() {\n\n if ((ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) &&\n (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) &&\n (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) &&\n (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED)\n\n ) {\n\n // Permission is not granted\n return false;\n\n }\n return true;\n }", "public boolean isIsDisabled() {\r\n return isDisabled;\r\n }", "public boolean isCameraPermissionGranted() {\n return PermissionUtils.isPermissionGranted(mContext, android.Manifest.permission.CAMERA);\n }", "private boolean checkCameraPermission() {\n if (ActivityCompat.checkSelfPermission(parentActivity, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(parentActivity, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(parentActivity, new String[]{Manifest.permission.CAMERA, Manifest.permission.WRITE_EXTERNAL_STORAGE}, 200);\n return false;\n }\n return true;\n }", "static boolean m61447d(Context context) {\n try {\n if (System.getInt(context.getContentResolver(), \"airplane_mode_on\", 0) != 0) {\n return true;\n }\n return false;\n } catch (NullPointerException unused) {\n return false;\n }\n }", "public boolean isDisabled() {\n\t\treturn !enabled;\n\t}", "boolean ignoresPermission();", "public boolean isControllable() {\n return stats.isControllable();\n }", "public boolean isDisabled() {\n\t\treturn disabled;\n\t}", "private boolean isSmartModeEnabled()\n {\n try\n {\n return Integer.parseInt((String) _smartModeComboBox.getSelectedItem()) > 0;\n }\n catch (NumberFormatException neverOccurs)\n {\n return false;\n }\n }", "private boolean checkDeviceResourcePermissions() {\n // Check if the user agrees to access the microphone\n boolean hasMicrophonePermission = checkPermissions(\n Manifest.permission.RECORD_AUDIO,\n REQUEST_MICROPHONE);\n boolean hasWriteExternalStorage = checkPermissions(\n Manifest.permission.WRITE_EXTERNAL_STORAGE,\n REQUEST_EXTERNAL_PERMISSION);\n\n if (hasMicrophonePermission && hasWriteExternalStorage) {\n return true;\n } else {\n return false;\n }\n }", "public static boolean hasCamera(final Context context) {\n final PackageManager pm = context.getPackageManager();\n return pm != null && pm.hasSystemFeature(PackageManager.FEATURE_CAMERA);\n }", "public boolean isSuppressed();", "private boolean checkDeviceSettings()\n {\n List<String> listPermissionNeeded= new ArrayList<>();\n boolean ret = true;\n for(String perm : permission)\n {\n if(ContextCompat.checkSelfPermission(this,perm)!= PackageManager.PERMISSION_GRANTED)\n listPermissionNeeded.add(perm);\n }\n if(!listPermissionNeeded.isEmpty())\n {\n ActivityCompat.requestPermissions(this,listPermissionNeeded.toArray(new String[listPermissionNeeded.size()]),REQUEST_PERMISSION);\n ret = false;\n }\n\n return ret;\n }", "final public boolean isEnabled() {\n return enabledType!=ENABLED_NONE;\n }", "public boolean isProhibited() {\n return getFlow().isProhibited();\n }", "public abstract boolean isDisable(Project project);", "public boolean getIsLimited() {\r\n return !(this.accessLimitations != null && this.accessLimitations.contains(\"UNL\"));\r\n }", "public boolean videoDisplayEnabled();", "public boolean isMonitoringDisabled() {\r\n\t\treturn monitoringDisabled;\r\n\t}", "@RequiresApi(api = Build.VERSION_CODES.M)\n private boolean arePermissionsEnabled(){\n for(String permission : mPermissions){\n if(checkSelfPermission(permission) != PackageManager.PERMISSION_GRANTED)\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean isEnableMetricsCapture() {\n\t\treturn false;\n\t}" ]
[ "0.64469564", "0.64364177", "0.64364177", "0.64364177", "0.63834065", "0.63797176", "0.63797176", "0.6364088", "0.6345708", "0.6339514", "0.63014257", "0.6272355", "0.62499946", "0.62349313", "0.6214402", "0.62139493", "0.6136075", "0.6089529", "0.6063355", "0.6060992", "0.60419536", "0.6020438", "0.5965345", "0.59532845", "0.5952317", "0.5950928", "0.59475505", "0.58298415", "0.5799709", "0.5772959", "0.57448506", "0.5743683", "0.5743535", "0.57391185", "0.5733921", "0.57110274", "0.5702477", "0.5699209", "0.5699209", "0.56896657", "0.5662626", "0.5650261", "0.56385034", "0.5636061", "0.55974007", "0.5596685", "0.5594916", "0.5588757", "0.5574591", "0.55744034", "0.55608666", "0.55586237", "0.5539548", "0.55395365", "0.5534064", "0.55213803", "0.55179983", "0.55159676", "0.54942304", "0.54847205", "0.54640126", "0.54625165", "0.54530704", "0.545097", "0.5450644", "0.54497087", "0.54468787", "0.5442296", "0.5442091", "0.544036", "0.542757", "0.5424131", "0.5422516", "0.5408272", "0.5405132", "0.5404696", "0.53900564", "0.5384449", "0.5379576", "0.5379459", "0.53762037", "0.5374068", "0.53704965", "0.53662074", "0.5357158", "0.5351767", "0.5342852", "0.5339415", "0.533802", "0.5336895", "0.5334976", "0.5329542", "0.5327937", "0.53236336", "0.53086907", "0.5306518", "0.5297064", "0.52869016", "0.52866006", "0.5278359", "0.5259409" ]
0.0
-1
See android.hardware.Camera.setDisplayOrientation for documentation.
public static int getDisplayOrientation(int degrees, int cameraId) { CameraInfo info = new CameraInfo(); Camera.getCameraInfo(cameraId, info); int result; if (info.facing == CameraInfo.CAMERA_FACING_FRONT) { result = (info.orientation + degrees) % 360; result = (360 - result) % 360; // compensate the mirror } else { // back-facing result = (info.orientation - degrees + 360) % 360; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setCameraDisplayOrientation(Activity activity, int cameraId, Camera camera){\n Camera.CameraInfo info = new Camera.CameraInfo();\n Camera.getCameraInfo(cameraId, info);\n int degrees = getDisplayRotation(activity);\n Log.i(\"Test\", \"rotation:-->\" + degrees);\n int result;\n if(info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT){\n result = (info.orientation + degrees) % 360;\n result = (360 - result) % 360; //compensate the mirror\n }else{\n result = (info.orientation - degrees + 360) % 360;\n }\n camera.setDisplayOrientation(result);\n }", "public static void setCameraDisplayOrientation(Activity activity, int cameraId, android.hardware.Camera camera) {\n Camera.CameraInfo info = new Camera.CameraInfo();\n Camera.getCameraInfo(cameraId, info);\n int rotation = activity.getWindowManager().getDefaultDisplay().getRotation();\n int degrees = 0;\n switch (rotation) {\n case Surface.ROTATION_0: degrees = 0; break;\n case Surface.ROTATION_90: degrees = 90; break;\n case Surface.ROTATION_180: degrees = 180; break;\n case Surface.ROTATION_270: degrees = 270; break;\n }\n\n int result;\n if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) {\n result = (info.orientation + degrees) % 360;\n result = (360 - result) % 360; // compensate the mirror\n } else { // back-facing\n result = (info.orientation - degrees + 360) % 360;\n }\n camera.setDisplayOrientation(result);\n }", "@Override // com.master.cameralibrary.CameraViewImpl\n public void setDisplayOrientation(int i) {\n if (this.mDisplayOrientation != i) {\n this.mDisplayOrientation = i;\n if (isCameraOpened()) {\n this.mCameraParameters.setRotation(calcCameraRotation(i));\n this.mCamera.setParameters(this.mCameraParameters);\n boolean z = this.mShowingPreview && Build.VERSION.SDK_INT < 14;\n if (z) {\n this.mCamera.stopPreview();\n }\n this.mCamera.setDisplayOrientation(calcDisplayOrientation(i));\n if (z) {\n this.mCamera.startPreview();\n }\n }\n }\n }", "public int setCameraImageDisplayOrientation(Activity activity,\n int cameraId, android.hardware.Camera camera) {\n android.hardware.Camera.CameraInfo info =\n new android.hardware.Camera.CameraInfo();\n android.hardware.Camera.getCameraInfo(cameraId, info);\n int rotation = activity.getWindowManager().getDefaultDisplay()\n .getRotation();\n int screenOrientation = getResources().getConfiguration().orientation;\n if (screenOrientation == Configuration.ORIENTATION_LANDSCAPE) {\n isPortrait = false;\n } else if (screenOrientation == Configuration.ORIENTATION_PORTRAIT) {\n isPortrait = true;\n } else {\n isPortrait = true;\n }\n\n int degrees = 0;\n switch (rotation) {\n case Surface.ROTATION_0:\n degrees = 0;\n break;\n case Surface.ROTATION_90:\n degrees = 90;\n break;\n case Surface.ROTATION_180:\n degrees = 180;\n break;\n case Surface.ROTATION_270:\n degrees = 270;\n break;\n }\n\n int result;\n if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) {\n result = (info.orientation + degrees) % 360;\n result = (360 - result) % 360; // compensate the mirror\n } else { // back-facing\n result = (info.orientation - degrees + 360) % 360;\n }\n camera.setDisplayOrientation(result);\n\n return result;\n }", "public int setCameraDisplayOrientationByCameraSelected() {\n int result = 0;\n if (isBackCameraSelected) {\n result = setCameraImageDisplayOrientation(mCameraActivity, backCamera, mCamera);\n } else {\n if (hasFrontCamera) {\n result = setCameraImageDisplayOrientation(mCameraActivity, frontCamera, mCamera);\n }\n }\n return result;\n }", "public void surfaceCreated(SurfaceHolder holder) {\n camera.setDisplayOrientation(90);\n\n }", "@Override\n public void setDisplayOrientation(int degrees) {\n if (MyDebug.LOG)\n Log.d(TAG, \"setDisplayOrientation not supported by this API\");\n throw new RuntimeException(); // throw as RuntimeException, as this is a programming error\n }", "@Override\n public int getCameraOrientation() {\n return characteristics_sensor_orientation;\n }", "public void surfaceCreated(SurfaceHolder holder) {\n\t \n camera = Camera.open();\n Camera.Parameters p = camera.getParameters();\n p.set(\"orientation\", \"landscape\");\n }", "public static int getDisplayOrientation(int degrees, int cameraId) {\n\t\tCamera.CameraInfo info = new Camera.CameraInfo();\n\t\tCamera.getCameraInfo(cameraId, info);\n\t\tint result;\n\t\tif (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) {\n\t\t\tresult = (info.orientation + degrees) % 360;\n\t\t\tresult = (360 - result) % 360; // compensate the mirror\n\t\t} else { // back-facing\n\t\t\tresult = (info.orientation - degrees + 360) % 360;\n\t\t}\n\t\treturn result;\n\t}", "@Override\n public void surfaceCreated(SurfaceHolder holder)\n {\n try\n {\n if (mCamera != null)\n {\n mCamera.setPreviewDisplay(holder);\n mCamera.setDisplayOrientation(90);\n }\n }\n catch (IOException e)\n {\n Log.e(\"ProfileCamera\", \"Error setting up preview display\", e);\n }\n }", "private void changeCalculatePreviewOrientation() {\n\n if (mHolder.getSurface() == null) {\n // preview surface does not exist\n Log.d(TAG, \"Preview surface does not exist\");\n return;\n }\n\n // stop preview before making changes\n stopCamera();\n\n int orientation = calculatePreviewOrientation(mCameraInfo, mDisplayOrientation);\n mCamera.setDisplayOrientation(orientation);\n\n startCamera();\n }", "public abstract void setRequestedOrientation(int requestedOrientation);", "void initFromCameraParameters(OpenCamera camera) {\n Camera.Parameters parameters = camera.getCamera().getParameters();\n WindowManager manager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n Display display = manager.getDefaultDisplay();\n\n int displayRotation = display.getRotation();\n int cwRotationFromNaturalToDisplay;\n switch (displayRotation) {\n case Surface.ROTATION_0:\n cwRotationFromNaturalToDisplay = 0;\n break;\n case Surface.ROTATION_90:\n cwRotationFromNaturalToDisplay = 90;\n break;\n case Surface.ROTATION_180:\n cwRotationFromNaturalToDisplay = 180;\n break;\n case Surface.ROTATION_270:\n cwRotationFromNaturalToDisplay = 270;\n break;\n default:\n // Have seen this return incorrect values like -90\n if (displayRotation % 90 == 0) {\n cwRotationFromNaturalToDisplay = (360 + displayRotation) % 360;\n } else {\n throw new IllegalArgumentException(\"Bad rotation: \" + displayRotation);\n }\n }\n Log.i(TAG, \"Display at: \" + cwRotationFromNaturalToDisplay);\n\n int cwRotationFromNaturalToCamera = camera.getOrientation();\n Log.i(TAG, \"Camera at: \" + cwRotationFromNaturalToCamera);\n\n // Still not 100% sure about this. But acts like we need to flip this:\n if (camera.getFacing() == CameraFacing.FRONT) {\n cwRotationFromNaturalToCamera = (360 - cwRotationFromNaturalToCamera) % 360;\n Log.i(TAG, \"Front camera overriden to: \" + cwRotationFromNaturalToCamera);\n }\n\n /*\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n String overrideRotationString;\n if (camera.getFacing() == CameraFacing.FRONT) {\n overrideRotationString = prefs.getString(PreferencesActivity.KEY_FORCE_CAMERA_ORIENTATION_FRONT, null);\n } else {\n overrideRotationString = prefs.getString(PreferencesActivity.KEY_FORCE_CAMERA_ORIENTATION, null);\n }\n if (overrideRotationString != null && !\"-\".equals(overrideRotationString)) {\n Log.i(TAG, \"Overriding camera manually to \" + overrideRotationString);\n cwRotationFromNaturalToCamera = Integer.parseInt(overrideRotationString);\n }\n */\n\n cwRotationFromDisplayToCamera =\n (360 + cwRotationFromNaturalToCamera - cwRotationFromNaturalToDisplay) % 360;\n Log.i(TAG, \"Final display orientation: \" + cwRotationFromDisplayToCamera);\n if (camera.getFacing() == CameraFacing.FRONT) {\n Log.i(TAG, \"Compensating rotation for front camera\");\n cwNeededRotation = (360 - cwRotationFromDisplayToCamera) % 360;\n } else {\n cwNeededRotation = cwRotationFromDisplayToCamera;\n }\n Log.i(TAG, \"Clockwise rotation from display to camera: \" + cwNeededRotation);\n\n Point theScreenResolution = new Point();\n display.getSize(theScreenResolution);\n screenResolution = theScreenResolution;\n Log.i(TAG, \"Screen resolution in current orientation: \" + screenResolution);\n cameraResolution = CameraConfigurationUtils.findBestPreviewSizeValue(parameters, screenResolution);\n Log.i(TAG, \"Camera resolution: \" + cameraResolution);\n bestPreviewSize = CameraConfigurationUtils.findBestPreviewSizeValue(parameters, screenResolution);\n Log.i(TAG, \"Best available preview size: \" + bestPreviewSize);\n\n boolean isScreenPortrait = screenResolution.x < screenResolution.y;\n boolean isPreviewSizePortrait = bestPreviewSize.x < bestPreviewSize.y;\n\n if (isScreenPortrait == isPreviewSizePortrait) {\n previewSizeOnScreen = bestPreviewSize;\n } else {\n previewSizeOnScreen = new Point(bestPreviewSize.y, bestPreviewSize.x);\n }\n Log.i(TAG, \"Preview size on screen: \" + previewSizeOnScreen);\n }", "public void onSetOrientation() {\n }", "private void flipOrientation() {\n try {\n if (Settings.System.getInt(getContentResolver(), Settings.System.USER_ROTATION) == Surface.ROTATION_0) {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_180);\n } else if (Settings.System.getInt(getContentResolver(), Settings.System.USER_ROTATION) == Surface.ROTATION_90) {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_270);\n } else if (Settings.System.getInt(getContentResolver(), Settings.System.USER_ROTATION) == Surface.ROTATION_180) {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_0);\n } else {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_90);\n }\n } catch (Settings.SettingNotFoundException e) {\n Log.e(TAG, e.getMessage());\n }\n }", "public void setOrientation(Direction orientation);", "void setOrientation(int orientation) {\n }", "public int getCameraSensorRotation();", "private int calcDisplayOrientation(int screenOrientationDegrees) {\n if (mCameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) {\n return (360 - (mCameraInfo.orientation + screenOrientationDegrees) % 360) % 360;\n } else { // back-facing\n return (mCameraInfo.orientation - screenOrientationDegrees + 360) % 360;\n }\n }", "public int getOrientation(){ return mOrientation; }", "@Override\n\tpublic void setOrientation(float orientation) {\n\t\t\n\t}", "public void setOrientation(int orientation){\n //save orientation of phone\n mOrientation = orientation;\n }", "public String getOrientation() {\n\n if(getResources().getDisplayMetrics().widthPixels > \n getResources().getDisplayMetrics().heightPixels) { \n return \"LANDSCAPE\";\n } else {\n return \"PORTRAIT\";\n } \n \n }", "protected void updatePreviewDisplayRotation(Size previewSize, TextureView textureView) {\n int rotationDegrees = 0;\n MCameraActivity activity = mCameraActivity;\n int displayRotation = activity.getWindowManager().getDefaultDisplay().getRotation();\n Configuration config = activity.getResources().getConfiguration();\n // Get UI display rotation\n switch (displayRotation) {\n case Surface.ROTATION_0:\n rotationDegrees = 0;\n break;\n case Surface.ROTATION_90:\n rotationDegrees = 90;\n break;\n case Surface.ROTATION_180:\n rotationDegrees = 180;\n break;\n case Surface.ROTATION_270:\n rotationDegrees = 270;\n break;\n }\n // Get device natural orientation\n int deviceOrientation = Configuration.ORIENTATION_PORTRAIT;\n if ((rotationDegrees % 180 == 0 &&\n config.orientation == Configuration.ORIENTATION_LANDSCAPE) ||\n ((rotationDegrees % 180 != 0 &&\n config.orientation == Configuration.ORIENTATION_PORTRAIT))) {\n deviceOrientation = Configuration.ORIENTATION_LANDSCAPE;\n }\n // Rotate the buffer dimensions if device orientation is portrait.\n int effectiveWidth = previewSize.getWidth();\n int effectiveHeight = previewSize.getHeight();\n if (deviceOrientation == Configuration.ORIENTATION_PORTRAIT) {\n effectiveWidth = previewSize.getHeight();\n effectiveHeight = previewSize.getWidth();\n }\n // Find and center view rect and buffer rect\n Matrix transformMatrix = textureView.getTransform(null);\n int viewWidth = textureView.getWidth();\n int viewHeight = textureView.getHeight();\n RectF viewRect = new RectF(0, 0, viewWidth, viewHeight);\n RectF bufRect = new RectF(0, 0, effectiveWidth, effectiveHeight);\n float centerX = viewRect.centerX();\n float centerY = viewRect.centerY();\n bufRect.offset(centerX - bufRect.centerX(), centerY - bufRect.centerY());\n // Undo ScaleToFit.FILL done by the surface\n transformMatrix.setRectToRect(viewRect, bufRect, Matrix.ScaleToFit.FILL);\n // Rotate buffer contents to proper orientation\n transformMatrix.postRotate((360 - rotationDegrees) % 360, centerX, centerY);\n if ((rotationDegrees % 180) == 90) {\n int temp = effectiveWidth;\n effectiveWidth = effectiveHeight;\n effectiveHeight = temp;\n }\n // Scale to fit view, cropping the longest dimension\n float scale =\n Math.max(viewWidth / (float) effectiveWidth, viewHeight / (float) effectiveHeight);\n transformMatrix.postScale(scale, scale, centerX, centerY);\n Handler handler = new Handler(Looper.getMainLooper());\n class TransformUpdater implements Runnable {\n TextureView mView;\n Matrix mTransformMatrix;\n\n TransformUpdater(TextureView view, Matrix matrix) {\n mView = view;\n mTransformMatrix = matrix;\n }\n\n @Override\n public void run() {\n mView.setTransform(mTransformMatrix);\n }\n }\n handler.post(new TransformUpdater(textureView, transformMatrix));\n }", "public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n try {\n if (previewRunning)\n camera.stopPreview();\n\n Display display = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefaultDisplay();\n\n switch (display.getRotation()) {\n case Surface.ROTATION_0:\n camera.setDisplayOrientation(90);\n break;\n case Surface.ROTATION_90:\n camera.setDisplayOrientation(0);\n break;\n case Surface.ROTATION_180:\n camera.setDisplayOrientation(270);\n break;\n case Surface.ROTATION_270:\n camera.setDisplayOrientation(180);\n break;\n }\n\n camera.setPreviewDisplay(holder);\n camera.startPreview();\n previewRunning = true;\n } catch (Exception ignored) {\n }\n }", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n setContentView(R.layout.activity_main);\n if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) {\n CamB.setRotation(0);\n\n } else if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {\n CamB.setRotation(90);\n }\n }", "public void setSensorOrientation(int n) {\n this.mSensorOrientation = n;\n if (this.mSensorOrientation == 2) {\n this.findViewById(2131689617).setVisibility(0);\n this.findViewById(2131689618).setVisibility(8);\n this.findViewById(2131689615).setRotation(0.0f);\n } else {\n this.findViewById(2131689617).setVisibility(8);\n this.findViewById(2131689618).setVisibility(0);\n this.findViewById(2131689615).setRotation(-90.0f);\n }\n this.invalidate();\n super.updateContentDescription();\n }", "public void onOrientationChanged(int orientation);", "@Override\n public void onActivityCreated(Activity arg0, Bundle arg1) {\n arg0.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n }", "public void setOrientation(Orientation orientation)\n {\n this.orientation = orientation;\n }", "static int correctOrientation(final Context context, final CameraCharacteristics characteristics) {\n final Integer lensFacing = characteristics.get(CameraCharacteristics.LENS_FACING);\n final boolean isFrontFacing = lensFacing != null && lensFacing == CameraCharacteristics.LENS_FACING_FRONT;\n TermuxApiLogger.info((isFrontFacing ? \"Using\" : \"Not using\") + \" a front facing camera.\");\n\n Integer sensorOrientation = characteristics.get(CameraCharacteristics.SENSOR_ORIENTATION);\n if (sensorOrientation != null) {\n TermuxApiLogger.info(String.format(\"Sensor orientation: %s degrees\", sensorOrientation));\n } else {\n TermuxApiLogger.info(\"CameraCharacteristics didn't contain SENSOR_ORIENTATION. Assuming 0 degrees.\");\n sensorOrientation = 0;\n }\n\n int deviceOrientation;\n final int deviceRotation =\n ((WindowManager) context.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getRotation();\n switch (deviceRotation) {\n case Surface.ROTATION_0:\n deviceOrientation = 0;\n break;\n case Surface.ROTATION_90:\n deviceOrientation = 90;\n break;\n case Surface.ROTATION_180:\n deviceOrientation = 180;\n break;\n case Surface.ROTATION_270:\n deviceOrientation = 270;\n break;\n default:\n TermuxApiLogger.info(\n String.format(\"Default display has unknown rotation %d. Assuming 0 degrees.\", deviceRotation));\n deviceOrientation = 0;\n }\n TermuxApiLogger.info(String.format(\"Device orientation: %d degrees\", deviceOrientation));\n\n int jpegOrientation;\n if (isFrontFacing) {\n jpegOrientation = sensorOrientation + deviceOrientation;\n } else {\n jpegOrientation = sensorOrientation - deviceOrientation;\n }\n // Add an extra 360 because (-90 % 360) == -90 and Android won't accept a negative rotation.\n jpegOrientation = (jpegOrientation + 360) % 360;\n TermuxApiLogger.info(String.format(\"Returning JPEG orientation of %d degrees\", jpegOrientation));\n return jpegOrientation;\n }", "private void determineOrientation(float[] rotationMatrix) {\n\t\t\t float[] orientationValues = new float[3];\n\t\t SensorManager.getOrientation(rotationMatrix, orientationValues);\n\t\t double azimuth = Math.toDegrees(orientationValues[0]);\n\t\t double pitch = Math.toDegrees(orientationValues[1]);\n\t\t double roll = Math.toDegrees(orientationValues[2]);\n\t\t if (pitch <= 10)\n\t\t { \n\t\t if (Math.abs(roll) >= 170)\n\t\t {\n\t\t onFaceDown();\n\t\t }\n\t\t else if (Math.abs(roll) <= 10)\n\t\t {\n\t\t onFaceUp();\n\t\t }\n\t\t }\n\t\t\t\n\t\t}", "public void surfaceCreated(SurfaceHolder holder) {\n try {\n mCamera.setPreviewDisplay(mImageCapture.mSurfaceHolder);\n setCameraDisplayOrientationByCameraSelected();\n } catch (IOException e) {\n Log.d(TAG, \"Error setting camera preview: \" + e.getMessage());\n }\n }", "public void surfaceCreated(SurfaceHolder holder) {\n\t\tthis.camera = Camera.open();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tcamera.setDisplayOrientation(90);\r\n\t\t\tcamera.setPreviewDisplay(holder);\r\n\t\t} catch (IOException e) {\r\n\t\t\tcamera.release();\r\n\t\t\tcamera = null;\r\n\t\t\tToast.makeText(this.getContext(), \"Error \"+e.toString(), Toast.LENGTH_LONG).show();\r\n\t\t}\r\n\t\t\t\t\t\t\r\n\t}", "public void configureCamera(){\n try{\n camera = Camera.open(findBackFacingCamera());\n } catch (Exception e){}\n\n if(camera != null) {\n cameraView = new CameraView(this.getApplicationContext(), camera);\n FrameLayout camera_view = (FrameLayout)findViewById(R.id.CameraView);\n camera_view.addView(cameraView);\n }\n }", "@Override\n public void setOrientation(Orientation orientation) {\n this.orientation = orientation;\n }", "private void setCamera() {\n\t\tCamera.CameraInfo cameraInfo = new Camera.CameraInfo();\n\t\tint cameraCount = Camera.getNumberOfCameras();\n\t\tLog.i(TAG, \"count = \" + cameraCount);\n\t\tLog.i(TAG, \"isBack = \" + isBack);\n\t\tint id = 0;\n\n\t\tfor (int camIdx = 0; camIdx < cameraCount; camIdx++) {\n\t\t\tCamera.getCameraInfo(camIdx, cameraInfo);\n\t\t\tLog.i(TAG, \"cameraInfoFacing = \" + cameraInfo.facing);\n\t\t\tif (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_BACK\n\t\t\t\t\t&& isBack) {\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} else if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT\n\t\t\t\t\t&& !isBack){\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (mCamera != null) {\n\t\t\tCamera.Parameters cameraParameters = mCamera.getParameters();\n\t\t\tDisplay display = getActivity().getWindowManager().getDefaultDisplay();\n\t\t\tPoint size = new Point();\n\t\t\tdisplay.getSize(size);\n\t\t\tint screenWidth = size.x;\n\t\t\tint width = Integer.MAX_VALUE;\n\t\t\tint height = 0;\n\t\t\tLog.i(TAG, \"SCREENWIDTH: \" + screenWidth);\n\t\t\tList<Camera.Size> sizes = cameraParameters.getSupportedPreviewSizes();\n\t\t\tfor (Camera.Size cSize : sizes) {\n\t\t\t\tif (cSize.width >= screenWidth && cSize.width <= width) {\n\t\t\t\t\twidth = cSize.width;\n\t\t\t\t\theight = cSize.height;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tLog.i(TAG, \"Width: \" + width + \" HEIGHT: \" + height);\n\n\t\t\tif (mPreview != null) {\n\t\t\t\tmPreview.switchCamera(mCamera, id, width, height);\n\t\t\t} else {\n\t\t\t\tmPreview = new CameraPreview(getActivity(), mCamera, id, width, height);\n\t\t\t\tFrameLayout preview = (FrameLayout) view\n\t\t\t\t\t\t.findViewById(R.id.camera_preview);\n\t\t\t\tpreview.addView(mPreview);\n\t\t\t}\n\t\t\tmCamera.startPreview();\n\t\t}\n\t}", "public Orientation getOrientation(){return this.orientation;}", "@VisibleForTesting\n public void setDisplayRotation(DisplayRotation displayRotation) {\n this.mDisplayRotation = displayRotation;\n }", "@Override\n\tpublic void setOrientation(Quat4d orientation) {\n\t\t\n\t}", "default void onOrientationChange(int orientation) { }", "public void setDeviceRotation(int rotation);", "private void setupCamera(final int camera) {\n try {\n // mPreview = new CamPreview(this, camera, CamPreview.LayoutMode.NoBlank);// .FitToParent);\n } catch (Exception e) {\n Toast.makeText(this, R.string.cannot_connect_to_camera, Toast.LENGTH_LONG).show();\n finish();\n return;\n }\n\n RelativeLayout.LayoutParams previewLayoutParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n Display display = getWindowManager().getDefaultDisplay();\n DisplayMetrics outMetrics = new DisplayMetrics();\n display.getMetrics(outMetrics);\n\n int width = outMetrics.widthPixels;\n int height = outMetrics.heightPixels;\n\n previewLayoutParams.height = width;\n previewLayoutParams.width = width;\n\n // Un-comment below line to specify the position.\n // mPreview.setCenterPosition(width / 2, height / 2);\n\n // previewParent.addView(mPreview, 0, previewLayoutParams);\n\n\n }", "@Override\n public Camera setupCamera() {\n mCamera = Camera.open(Camera.CameraInfo.CAMERA_FACING_BACK);\n try {\n Camera.Parameters parameters = mCamera.getParameters();\n parameters.setPreviewSize(mWidth, mHeight);\n parameters.setPreviewFormat(mFormat);\n mCamera.setDisplayOrientation(90);\n for (Camera.Size size : parameters.getSupportedPreviewSizes()) {\n Log.d(TAG, \"SIZE:\" + size.width + \"x\" + size.height);\n }\n for (Integer format : parameters.getSupportedPreviewFormats()) {\n Log.d(TAG, \"FORMAT:\" + format);\n }\n\n List<int[]> fps = parameters.getSupportedPreviewFpsRange();\n for (int[] count : fps) {\n Log.d(TAG, \"T:\");\n for (int data : count) {\n Log.d(TAG, \"V=\" + data);\n }\n }\n mCamera.setParameters(parameters);\n } catch (Exception e) {\n e.printStackTrace();\n }\n if (mCamera != null) {\n mWidth = mCamera.getParameters().getPreviewSize().width;\n mHeight = mCamera.getParameters().getPreviewSize().height;\n }\n return mCamera;\n }", "public void setOrientation(int orientation)\n\t{\n\t\tthis.orientation = orientation;\n\t}", "private void startOrientationSensor() {\n SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n Sensor orientationSensor = sensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);\n sensorManager.registerListener(this, orientationSensor, SensorManager.SENSOR_DELAY_UI);\n }", "public int getOrientation()\n {\n return m_orientation;\n }", "@Override\r\n\tpublic void surfaceCreated(SurfaceHolder holder) \r\n\t{\n\t\t if (mCamera != null)\r\n\t\t {\r\n\t\t\t Parameters params = mCamera.getParameters();\r\n\t mCamera.setParameters(params);\r\n\t Log.i(\"Surface\", \"Created\");\r\n\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\t Toast.makeText(getApplicationContext(), \"Camera not available!\",\r\n\t Toast.LENGTH_LONG).show();\r\n\r\n\t finish();\r\n\t }\r\n\t}", "public void setNewOrientation(int value) {\n this.newOrientation = value;\n }", "public int getOrientation()\n\t{\n\t\treturn orientation;\n\t}", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n }", "public final void setOrientation(Orientation value) {\n orientationProperty().set(value);\n }", "@BinderThread\n public synchronized void setDeviceOrientation(float[] matrix, float deviceRoll) {\n System.arraycopy(matrix, 0, deviceOrientationMatrix, 0, deviceOrientationMatrix.length);\n this.deviceRoll = -deviceRoll;\n updatePitchMatrix();\n }", "public void setVideoDisplayRotate90() {\n float ratio = (float)panel_height/panel_width;\n RelativeLayout.LayoutParams params = null;\n int videoHeight = panel_height;\n int videoWidth = panel_height * panel_height / panel_width;\n Log.i(TAG, \"--- setVideoDisplayRotate90--- mScreenResolutionWidth:\" + panel_width + \" screenHeight:\"\n + panel_height + \" ratio:\" + ratio + \" videoWidth:\" + videoWidth);\n params = new RelativeLayout.LayoutParams(videoWidth , videoHeight);\n video_ly.setLayoutParams(params);\n }", "private void startOrientationSensor() {\n orientationValues = new float[3];\n SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n Sensor orientationSensor = sensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);\n sensorManager.registerListener(this, orientationSensor, SensorManager.SENSOR_DELAY_UI);\n }", "public IOrientation getOrientation();", "@Override\n public void onSensorChanged(SensorEvent event) {\n mOrientation = event.values[0];\n }", "@Override\n protected Camera getCamera() {\n return Camera.createForPositionAndAngles(new ThreeDoubleVector(31.0, 7.0, 5.5), 0.0, 0.7);\n\n // Camera for orientation curve interpolation presentation\n// return Camera.createForPositionAndAngles(new ThreeDoubleVector(54.5, 10.0, 2.5), -0.5, 0.3);\n }", "public void updateOrientationAngles() {\n SensorManager.getRotationMatrix(rotationMatrix, null,\n accelerometerReading, magnetometerReading);\n\n // \"mRotationMatrix\" now has up-to-date information.\n\n float[] angles = SensorManager.getOrientation(rotationMatrix, orientationAngles);\n azimuth = (float) Math.toDegrees(angles[0]);\n // \"mOrientationAngles\" now has up-to-date information.\n TextView az = findViewById(R.id.az);\n rotateDriver(azimuth);\n\n az.setText(Float.toString(azimuth));\n }", "public abstract double getOrientation();", "void onOrientationChanged(float azimuth, float pitch, float roll);", "private void mLockScreenRotation()\n {\n switch (this.getResources().getConfiguration().orientation)\n {\n case Configuration.ORIENTATION_PORTRAIT:\n this.setRequestedOrientation(\n \t\tActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n break;\n case Configuration.ORIENTATION_LANDSCAPE:\n this.setRequestedOrientation(\n \t\tActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n break;\n }\n }", "protected void setOrientation(int n) {\n if (this.mStateMachine.isRecording()) {\n super.setOrientation(n, this.mRecordingOrientation);\n } else {\n super.setOrientation(n);\n }\n if (this.isHeadUpDesplayReady()) {\n if (this.mSettingDialogStack != null) {\n this.mSettingDialogStack.setUiOrientation(n);\n }\n this.mSceneIndicatorIcon.setRotation(RotationUtil.getAngle(this.getOrientationForUiNotRotateInRecording()));\n this.mConditionIndicatorIcon.setRotation(RotationUtil.getAngle(this.getOrientationForUiNotRotateInRecording()));\n this.mSceneIndicatorText.setAnimation(null);\n this.mSceneIndicatorText.setVisibility(4);\n if (this.mAutoReview != null) {\n this.mAutoReview.setOrientation(n);\n }\n if (this.mFocusRectangles != null) {\n this.mFocusRectangles.setOrientation(n);\n }\n if (this.mSelfTimerCountDownView != null) {\n this.mSelfTimerCountDownView.setSensorOrientation(n);\n }\n }\n }", "public boolean getOrientationChanged(){ return mOrientationChange; }", "public void surfaceCreated(SurfaceHolder holder) {\n Log.i(TAG, \"surface created\");\n if (mCamera != null) {\n final Camera.Parameters params = mCamera.getParameters();\n final List<Camera.Size> sizes = params.getSupportedPreviewSizes();\n final int screenWidth = ((View) getParent()).getWidth();\n int minDiff = Integer.MAX_VALUE;\n Camera.Size bestSize = null;\n\n /*\n * Impostazione dimensione frame a seconda delle dimensioni ottimali e dell'orientamento\n */\n if (getResources().getConfiguration().orientation\n == Configuration.ORIENTATION_LANDSCAPE) {\n for (Camera.Size size : sizes) {\n final int diff = Math.abs(size.width - screenWidth);\n if (diff < minDiff) {\n minDiff = diff;\n bestSize = size;\n }\n }\n } else {\n mCamera.setDisplayOrientation(90);\n for (Camera.Size size : sizes) {\n final int diff = Math.abs(size.height - screenWidth);\n if (Math.abs(size.height - screenWidth) < minDiff) {\n minDiff = diff;\n bestSize = size;\n }\n }\n }\n\n final int previewWidth = bestSize.width;\n final int previewHeight = bestSize.height;\n mHeight = previewHeight;\n mWidth = previewWidth;\n\n ViewGroup.LayoutParams layoutParams = getLayoutParams();\n layoutParams.height = previewHeight;\n layoutParams.width = previewWidth;\n setLayoutParams(layoutParams);\n\n // FORMATO PREVIEW\n params.setPreviewFormat(ImageFormat.NV21);\n params.setPreviewSize(previewWidth, previewHeight);\n params.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO);\n\n mCamera.setParameters(params);\n\n //buffer di uscita\n int size = previewWidth * previewHeight *\n ImageFormat.getBitsPerPixel(params.getPreviewFormat()) / 8;\n setupCallback(size);\n\n // Esecuzione preview\n try {\n mCamera.setPreviewDisplay(holder);\n mCamera.startPreview();\n Log.i(TAG, \"preview started\");\n } catch (IOException e) {\n Log.e(TAG, \"Error setting camera preview: \" + e.getMessage());\n }\n\n }\n }", "public interface OrientationListener {\n\t \n /**\n * On orientation changed.\n *\n * @param azimuth the azimuth\n * @param pitch the pitch\n * @param roll the roll\n */\n public void onOrientationChanged(float azimuth, \n float pitch, float roll);\n \n /**\n * Top side of the phone is up\n * The phone is standing on its bottom side.\n */\n public void onTopUp();\n \n /**\n * Bottom side of the phone is up\n * The phone is standing on its top side.\n */\n public void onBottomUp();\n \n /**\n * Right side of the phone is up\n * The phone is standing on its left side.\n */\n public void onRightUp();\n \n /**\n * Left side of the phone is up\n * The phone is standing on its right side.\n */\n public void onLeftUp();\n \n /**\n * screen down.\n */\n public void onFlipped();\n}", "public int getNewOrientation() {\n return newOrientation;\n }", "void initializeCamera() {\n camera_linear = (LinearLayout) findViewById(R.id.camera_linear);\n //The preview frame is overlayed on the layout which shows the camera view.\n preview = (FrameLayout) findViewById(R.id.camera_preview);\n //Get an instance of the phone's camera.\n mCamera = cameraRecorder.getCameraInstance();\n //Find content fort the camera preview frame using the instance of the camera initialized.\n mPreview = new CameraPreview(getApplicationContext(), mCamera);\n //Apply the camera previes content from the camera to the preview frame itself.\n preview.addView(mPreview);\n }", "private int getOrientation() {\n return getContext().getResources().getConfiguration().orientation;\n }", "public int getDeviceRotation();", "public void surfaceCreated(SurfaceHolder holder) {\n \t// Open camera \n\t\tCameraActivity.mCamera = Camera.open(); \n\t\tCameraActivity.mCamera.setDisplayOrientation(90);\n\t\t\n // The Surface has been created, now tell the camera where to draw the preview.\n try {\n\t\t\tCameraActivity.mCamera.setPreviewDisplay(holder);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n CameraActivity.mCamera.startPreview();\n }", "public void changeBannerOrientation(){\n\t\tremoveBannerView();\n\t\tshouldChangeBannerOrientation = false;\n\t\t\n\t\t// create a new view\n\t\tbannerView = new AdView(this);\n\t\tbannerView.setAdUnitId(ADMOB_BANNER_ID);\n\t\tbannerView.setAdSize(AdSize.SMART_BANNER);\n\t\tbannerView.setAdListener(new AdListener(){\n\t\t\t@Override\n\t\t\tpublic void onAdLoaded(){\n\t\t\t\tif(displayBannerAds){\n\t\t\t\t\tbannerView.setVisibility(View.GONE);\n\t\t\t\t\tbannerView.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tbannerView.setVisibility(View.GONE);\n\t\t\t}\n\t\t});\n\n\t\tloadBannerAd();\n\t\t// add the new view\n\t\trunOnUiThread(new Runnable(){\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tlayout.addView(bannerView, adParams);\n\t\t\t}\n\t\t});\n\t}", "public ImageOrientation getOrientation()\n\t{\n\t\treturn ImageOrientation.None;\n\t}", "public String orientation()\n {\n int height = cat.getWidth();\n int width = cat.getHeight();\n\n if (height >= width)\n {\n return \"landscape\";\n }\n else \n {\n return \"portrait\";\n\n }\n }", "@Override\n public void setKeepsOrientation(boolean value) {\n this.keepsOrientation = value;\n }", "@Override\n public void onOpened(CameraDevice camera) {\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\n public void onOpened(CameraDevice camera) {\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\t setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\t}", "void unlockOrientation() {\n if (!mOrientationLocked) {\n return;\n }\n\n mOrientationLocked = false;\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);\n }", "@Override // com.master.cameralibrary.CameraViewImpl\n public int getFacing() {\n return this.mFacing;\n }", "public void onLayoutOrientationChanged(boolean isLandscape);", "@Override\n public void onPrepared(OrionVideoView view) {\n Toast.makeText(DirectorsCut.this, \"Initial orientation\",\n Toast.LENGTH_SHORT).show();\n setYaw(180.0f);\n\n // Start playback when the player has initialized itself and buffered\n // enough video frames.\n mOrionVideoView.start();\n }", "@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\r\n\tpublic void onOrientationChanged(float azimuth, float pitch, float roll) {\n\r\n\t}", "public void setOrientation(Orientation orientation) {\n\t\tsuper.setOrientation(orientation);\n\t}", "String getPreviewRotationPref();", "public void chooseCamera() {\n if (cameraFront) {\n int cameraId = findBackFacingCamera();\n if (cameraId >= 0) {\n //open the backFacingCamera\n //set a picture callback\n //refresh the preview\n\n mCamera = Camera.open(cameraId);\n setRotation(mCamera, mCamera.getParameters(), cameraId);\n // mCamera.setDisplayOrientation(90);\n mPicture = getPictureCallback();\n mPreview.refreshCamera(mCamera);\n }\n } else {\n int cameraId = findFrontFacingCamera();\n if (cameraId >= 0) {\n //open the backFacingCamera\n //set a picture callback\n //refresh the preview\n mCamera = Camera.open(cameraId);\n setRotation(mCamera, mCamera.getParameters(), cameraId);\n // mCamera.setDisplayOrientation(90);\n mPicture = getPictureCallback();\n mPreview.refreshCamera(mCamera);\n }\n }\n }", "@Override\r\n\tpublic void onOrientationChanged(float[] aValues, float[] mValues) {\n\t\trefreshDisplay(calculateOrientation(aValues, mValues));\r\n\t}", "private int getOrientation(int rotation) {\n // Sensor orientation is 90 for most devices, or 270 for some devices (eg. Nexus 5X)\n // We have to take that into account and rotate JPEG properly.\n // For devices with orientation of 90, we simply return our mapping from ORIENTATIONS.\n // For devices with orientation of 270, we need to rotate the JPEG 180 degrees.\n if (isFrontFacing && INVERSE_ORIENTATIONS.get(rotation) == 180) {\n return (ORIENTATIONS.get(rotation) + mSensorOrientation + 90) % 360;\n } else {\n return (ORIENTATIONS.get(rotation) + mSensorOrientation + 270) % 360;\n }\n\n }", "private void setupCamera(int width, int height) {\n CameraManager cameraManager = (CameraManager) getSystemService(CAMERA_SERVICE);\n try {\n if (cameraManager == null) return;\n for (String cameraId : cameraManager.getCameraIdList()) {\n CameraCharacteristics cc = cameraManager.getCameraCharacteristics(cameraId);\n if (cc.get(CameraCharacteristics.LENS_FACING) == CameraCharacteristics.LENS_FACING_BACK) {\n continue;\n }\n mCameraId = cameraId;\n\n int deviceOrientation = getWindowManager().getDefaultDisplay().getRotation();\n mTotalRotation = CameraUtils.calculateTotalRotation(cc, deviceOrientation);\n StreamConfigurationMap map = cc.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n\n int finalWidth = width;\n int finalHeight = height;\n boolean swapDimensions = mTotalRotation == 90 || mTotalRotation == 270;\n if (swapDimensions) {\n finalHeight = width;\n finalWidth = height;\n }\n mPreviewSize = CameraUtils.chooseOptimalSize(map.getOutputSizes(SurfaceTexture.class), finalWidth, finalHeight);\n mVideoSize = CameraUtils.chooseOptimalSize(map.getOutputSizes(MediaRecorder.class), finalWidth, finalHeight);\n return;\n }\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\tLog.e(TAG,\"Surface Created\");\n\t\tcamera = Camera.open();\n\t}", "public void onCamera();", "@Override\n public void setOrientation(float x, float y, float z) {\n String degreeString = getString(R.string.motion_orientation_degree);\n /*orientationX.setText(String.format(degreeString, x));\n orientationY.setText(String.format(degreeString, y));\n orientationZ.setText(String.format(degreeString, z));\n*/\n if (gdxAdapter != null) {\n gdxAdapter.setOrientation(x, y, z);\n }\n }", "public void setOrientation(int orientation) {\n\t\tm_nOrientation = orientation;\n\t}", "private void openCamera() {\n CameraManager manager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);\n try {\n String mCameraId = manager.getCameraIdList()[0];\n CameraCharacteristics characteristics = manager.getCameraCharacteristics(mCameraId);\n StreamConfigurationMap map = characteristics.\n get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n assert map != null;\n mImageDimension = map.getOutputSizes(SurfaceTexture.class)[0];\n // Add permission for camera and let user grant the permission\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) !=\n PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE) !=\n PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(CameraActivity.this, new\n String[]{Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CAMERA_PERMISSION);\n }\n manager.openCamera(mCameraId, mStateCallback, null);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "public void setOnOrientationChange(boolean changed){\n //orientation change flag\n mOrientationChange = changed;\n }", "boolean getLandscape();", "public void rotateToFaceCamera(final SXRTransform transform) {\n //see http://stackoverflow.com/questions/5782658/extracting-yaw-from-a-quaternion\n final SXRTransform t = getMainCameraRig().getHeadTransform();\n final Quaternionf q = new Quaternionf(0, t.getRotationY(), 0, t.getRotationW()).normalize();\n\n transform.rotateWithPivot(q.w, q.x, q.y, q.z, 0, 0, 0);\n }" ]
[ "0.79842746", "0.76209486", "0.75406736", "0.7332183", "0.72712755", "0.725057", "0.7118824", "0.6991478", "0.6989965", "0.67435676", "0.66941833", "0.66052866", "0.64949757", "0.64702046", "0.64620626", "0.64120847", "0.63590103", "0.63537836", "0.6303849", "0.62771225", "0.62702566", "0.6236413", "0.6209619", "0.619119", "0.61754835", "0.61049914", "0.6081483", "0.6073584", "0.60404664", "0.6016743", "0.6002635", "0.5992033", "0.5991124", "0.59868306", "0.59862113", "0.5965755", "0.59605664", "0.5886317", "0.5850186", "0.5838486", "0.5821832", "0.5812088", "0.5810942", "0.58011174", "0.5759425", "0.57549226", "0.5754539", "0.5741731", "0.57231975", "0.5695968", "0.5690896", "0.5671285", "0.56637216", "0.5663116", "0.5656035", "0.5650804", "0.5645591", "0.56250674", "0.5624844", "0.5620943", "0.5619427", "0.5609524", "0.5583348", "0.55833167", "0.55782694", "0.5576403", "0.5573345", "0.55732244", "0.55713415", "0.55693704", "0.5568799", "0.55660766", "0.55650324", "0.55541086", "0.5549946", "0.5528932", "0.55242425", "0.55242425", "0.55184", "0.5515957", "0.55131876", "0.54991895", "0.5498895", "0.5492702", "0.5492702", "0.5479628", "0.5477562", "0.5474307", "0.54697293", "0.54605705", "0.5452157", "0.54493046", "0.5438386", "0.543777", "0.54314494", "0.5421183", "0.5414138", "0.54092175", "0.5407133", "0.5406677" ]
0.67983484
9