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 |
|---|---|---|---|---|---|---|
Called when the state of the player has changed. | public void onPlayerStateChanged(@NonNull SessionPlayer player,
@PlayerState int playerState) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setState(Player player) {\n\t\tstate = player;\n\t\tstateChanged();\n\t}",
"@Override\n public boolean handlePlayerStatusUpdate(PlayerState playerState) {\n return true;\n }",
"void playerPositionChanged(Player player);",
"public void setPlayerState(PlayerState playerState) {\n this.playerState = playerState;\n }",
"public void stateChanged(ChangeEvent e) {\n\t\tupdatePits();\n\t\tSystem.out.println(\"Player 0 score: \" + model.getMancalas()[0]);\n\t\tSystem.out.println(\"Player 1 score: \" + model.getMancalas()[1]);\n\t\tleftScore.setText( Integer.toString(model.getMancalas()[1]));\n\t\trightScore.setText( Integer.toString(model.getMancalas()[0]));\n\t\tSystem.out.println(\"It is now player: \" + model.getPlayer() + \"'s turn\");\n\t\t\n\t}",
"private void updateState() {\n switch (game.getGameState()) {\n case GAME:\n gamePlay();\n break;\n case ONE:\n lostTurnByOne();\n break;\n case READY:\n readyToPlay();\n break;\n case START:\n startGame();\n break;\n case TURN:\n startTurn();\n break;\n case FINISH:\n finishGame();\n break;\n }\n }",
"protected abstract void onPlayerStateChanged(MediaPlayerState playerState);",
"public void setPlayerState(boolean state)\n\t{\n\t\tthis.blnPlayerState = state;\n\t\t\n\t}",
"void notifyPlayerChanged(PlayerNumber newPlayer);",
"@Override\n\tpublic void playerStarted() {\n mPlaying = true;\n\t\tmStateManager.setState(PlayerState.PLAYING);\n\t}",
"public void playerStateChanged(WSLPlayerEvent event);",
"void updateState() {\n String[] players = client.getPlayers();\n System.out.println(Arrays.toString(players));\n\n if(oldPlayerNum != players.length){\n oldPlayerNum = players.length;\n updateComboBox();\n }\n\n playersListModel.clear();\n\n for (int i = 0; i < players.length; i++) {\n playersListModel.add(i, players[i]);\n }\n\n // SECOND check if player holding the ball / update GUI accordingly\n String[] playerBall = client.whoIsBall();\n boolean serverSideBall = Integer.parseInt(playerBall[1]) == client.getId();\n\n if (client.hasBall != serverSideBall) { // If the server says something different\n client.hasBall = serverSideBall;\n ballState(serverSideBall, playerBall[0]);\n }\n // THIRD if you are holding the ball update gui so that ball is throwable\n\n }",
"void stateChanged( final GameState oldState, final GameState newState );",
"public void changeStatus()\n {\n if(this.isActivate == false)\n {\n this.isActivate = true;\n switchSound.play();\n //this.dungeon.updateSwitches(true); \n }\n else{\n this.isActivate = false;\n switchSound.play(1.75, 0, 1.5, 0, 1);\n //this.dungeon.updateSwitches(false); \n }\n notifyObservers();\n\n }",
"public void setPlayState(PlayerState state) { isPaused = !state.playing; }",
"public void updatePlayerLocation() {requires new property on gamestate object\n //\n }",
"public void setState(PlayerState state) {\n this.state = state;\n }",
"public void update() {\r\n gameObjects.update(playState);\r\n }",
"abstract void updatePlayer();",
"public void stateChanged(ChangeEvent evt){player.seek(slider.getValue());}",
"protected void stateChanged() {\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}",
"public void changeTurnOfPlayer(PlayerState player)\n {\n if(player.getColorOfPlayer() == Color.BLACK)\n {\n this.turnOfPlayer = playerWhite;\n }\n else\n {\n this.turnOfPlayer = playerBlack;\n }\n }",
"public static void changePlayer() {\n\t\tvariableReset();\n\t\tif (curPlayer == 1)\n\t\t\tcurPlayer = player2;\n\t\telse\n\t\t\tcurPlayer = player1;\n\t}",
"PlayerState getPlayerState() {\n return playerState;\n }",
"@Override\n public void playerAttributeChange() {\n\n Logger.info(\"HUD Presenter: playerAttributeChange\");\n view.setLives(String.valueOf(player.getLives()));\n view.setMoney(String.valueOf(player.getMoney()));\n setWaveCount();\n }",
"public void enterPlayerView(){\n\t\tplayerSeen=true;\r\n\t\tplayerMapped=true;\r\n\t}",
"void updatePlayer(Player player);",
"private void changeCurrentPlayer() {\n switch (currentPlayer) {\n case 0: currentPlayer = 1;\n return;\n default: currentPlayer = 0;\n return;\n }\n }",
"@Override\n\tpublic void stateChanged() {\n\t\t\n\t}",
"@Override\n\tpublic void currentPlayerChanged(Player player) {\n\t\tcurrentPlayerLabel.setText(player.name());\n\t}",
"public void updateInformation() {\r\n onFirstCycle = false;\r\n lastLocation = player.getLocation();\r\n preparedAppearance = false;\r\n }",
"public void updatePlayer(Player player) {\n\t\t// update the flag GO TO JAIL in Player class\n\t}",
"protected void updateGameState() {\n }",
"public void setActivePlayer()\n {\n activePlayer = !activePlayer;\n }",
"public void changeTurn()\r\n {\r\n isPlayersTurn = !isPlayersTurn;\r\n }",
"public void updateState(boolean isPlaying) {\r\n\t if (remoteControlClient != null) {\r\n\t if (isPlaying) {\r\n\t remoteControlClient\r\n\t .setPlaybackState(RemoteControlClient.PLAYSTATE_PLAYING);\r\n\t } else { \r\n\t remoteControlClient\r\n\t .setPlaybackState(RemoteControlClient.PLAYSTATE_PAUSED);\r\n\t } \r\n\t } \r\n\t }",
"public void playerLost()\r\n {\r\n \r\n }",
"public void setPlaying() {\n\t\tstate = State.INGAME;\n\t}",
"public void updatePlayerPanel()\n {\n playerInfoPanel.updateLabel();\n }",
"public void update(Player player) {\n\t\t\n\t}",
"private void updatePlayerMovingStatus(){\n // get player's moving status\n if(keyPressed.contains(KeyCode.LEFT)){\n player.setFacing(Direction.LEFT);\n player.setIsMoving(true);\n } else if(keyPressed.contains(KeyCode.RIGHT)){\n player.setFacing(Direction.RIGHT);\n player.setIsMoving(true);\n } else if(keyPressed.contains(KeyCode.UP)){\n player.setFacing(Direction.UP);\n player.setIsMoving(true);\n } else if(keyPressed.contains(KeyCode.DOWN)){\n player.setFacing(Direction.DOWN);\n player.setIsMoving(true);\n } else {\n player.setIsMoving(false);\n }\n }",
"@Override\n public void gameStateChanged()\n {\n update();\n \n // check for \"game over\" or \"game won\"\n if ( game.getState() == GameState.LOST )\n {\n JOptionPane.showMessageDialog(\n this, \n game.getLoseMessage(), \"Game over!\",\n JOptionPane.INFORMATION_MESSAGE);\n game.createNewGame();\n }\n else if ( game.getState() == GameState.WON )\n {\n JOptionPane.showMessageDialog(\n this, \n game.getWinMessage(), \"Well Done!\",\n JOptionPane.INFORMATION_MESSAGE);\n game.createNewGame();\n }\n else if (game.messageForPlayer())\n {\n JOptionPane.showMessageDialog(\n this, \n game.getPlayerMessage(), \"Important Information\",\n JOptionPane.INFORMATION_MESSAGE); \n }\n }",
"@Override\n public void landedOn(Player player) {}",
"@Override\n protected void sendUpdatedStateTo(GamePlayer p) {\n PigGameState copy = new PigGameState(pgs);\n p.sendInfo(copy);\n }",
"public void processPlayerStateChange(String player, PlayerState state, int game) {\n Player p = tournamentService.findPlayer(player);\n if (p == null)\n return;\n p.setState(state);\n if (state.isPlaying()) {\n command.sendCommand(\"observe {0}\", game);\n } else {\n command.sendCommand(\"unobserve {0}\", player);\n }\n }",
"public void updateState();",
"@Override\n\tpublic void update(){\n\t\tif(right && !left)\n\t\t{\n\t\t\tif(player1.getX() < cm.getGameStateManager().getWidth() - player1.getBounds().getWidth())\n\t\t\t\tplayer1.setX(player1.getX()+8);\n\t\t}\n\t\tif(!right && left)\n\t\t{\n\t\t\tif(player1.getX() > 0)\n\t\t\t\tplayer1.setX(player1.getX()-8);\n\t\t}\n\t\t\n\t\tcheckBarrelBounds();\n\t\ttry{\n\t\t\tcheckPlayerCollision();\t\t\n\t\t\trefreshData();\n\t\t}catch(IOException e){\n\t\t\tSystem.err.println(\"no connection with server\");\n\t\t}\n\t\tplayer1.update();\n\t\tplayer2.update();\n\t\tplayerIndication.update();\n\t}",
"void doUpdate() {\n\t\tdrawPlayer(backBufferContext, context);\n\t\tcheckForInteractions();\n\t}",
"void playerMove(State state);",
"@Override\n\tpublic void updatePlayer(Joueur joueur) {\n\t\t\n\t}",
"public void update(){\n\t\tupdatePlayerPosition();\n\t\thandleCollisions();\n\t}",
"@Override\r\n\tpublic void mediaStateChanged(MediaPlayer mediaPlayer, int newState)\r\n\t{\n\r\n\t}",
"public void attackOrQuit(){\n gameState = GameState.ATTACKORQUIT;\n notifyObservers();\n }",
"private void gameOver() {\n System.out.println(\"GAME OVER!!\");\n\n reset();\n mGameOver = true;\n mChangeObserver.gameOver();\n }",
"public void switchPlayer() {\n \tisWhitesTurn = !isWhitesTurn;\n }",
"@Override\r\n\tpublic void stateChanged(ChangeEvent e) {\n\t\tif(e.getSource() == this.progress){\r\n\t\t\tint value = this.progress.getValue();\r\n\t\t\tif(value == 0 && this.left_button >0){\r\n\t\t\t\tthis.time.stop();\r\n\t\t\t\tthis.is_over = true;\r\n\t\t\t\t//锟斤拷示锟斤拷戏锟斤拷锟斤拷\r\n\t\t\t\tObject[] options = {\"yes\",\" no \"}; \r\n\t\t\t\tint response=JOptionPane.showOptionDialog(this, \"Play again?\", \"Game over!\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);\r\n\t\t\t\tif(0 == response){\r\n\t\t\t\t\tthis.init();\t\t\t\t//锟斤拷锟斤拷锟斤拷戏\r\n\t\t\t\t}else if(1 == response){\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t\tthis.init();\t\t\t\t\t//锟斤拷锟斤拷锟斤拷戏\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void onPlaybackStateChanged(@Nullable PlaybackState state) {\n }",
"@Override\r\n\tpublic void update() {\n\t\tListIterator<Player> it = players.listIterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tit.next().update();\r\n\t\t}\r\n\t\t// Logica del juego, etc\r\n\t\tcontrolMenu();\r\n\t}",
"@Override\n\t public void actionPerformed(ActionEvent e) {\n\t\t isPlayerDead();\n\t\t isGameRunning();\n\n\t updatePlayer();\n\t updateCentipede();\n\t updateMissiles();\n\t\t updateMushrooms();\n\t updateSpider();\n\n\t checkCollisions();\n\t repaint();\n\t }",
"void onPlaybackStateChange(@PlaybackState int oldState, @PlaybackState int newState);",
"public PlayerState getPlayerState() {\r\n return playerState;\r\n }",
"@EventHandler\n public void OnPlayerInteractEvent(PlayerInteractEvent e)\n {\n this.setLastSeen(e.getPlayer());\n }",
"public void changePlayerTurn()\n {\n if (player_turn == RED)\n player_turn = BLACK;\n else\n player_turn = RED;\n }",
"@Override\n public void onPlayerStateChanged(boolean playWhenReady, int playbackState) {\n if ((playbackState == Player.STATE_READY) && playWhenReady) {\n mStateBuilder.setState(PlaybackStateCompat.STATE_PLAYING,\n mExoPlayer.getCurrentPosition(), 1f);\n } else if ((playbackState == Player.STATE_READY)) {\n mStateBuilder.setState(PlaybackStateCompat.STATE_PAUSED,\n mExoPlayer.getCurrentPosition(), 1f);\n }\n mMediaSession.setPlaybackState(mStateBuilder.build());\n }",
"@Override\n\tpublic void onLifeStateChanged(State prevState, State newState)\n\t{\n\t\tif (newState == State.DEAD)\n\t\t{\n\t\t\tplayer.onPlayerEntityDead();\n\t\t}\n\t}",
"public void changeState() {\n if (!isDead) {\n Bitmap temp = getBitmap();\n setBitmap(stateBitmap);\n stateBitmap = temp;\n }\n }",
"private void pause() { player.pause();}",
"public void announceWinner(){\n gameState = GameState.HASWINNER;\n notifyObservers();\n }",
"@Override\n public void changed(ChangeEvent event, Actor actor) {\n // If player press setting's button, it change to settings screen\n game.goSettingsScreen();\n }",
"@Override\r\n\tpublic void updateGameFinished() {\n\t\t\r\n\t}",
"public abstract void stateChanged(STATE state);",
"private void setGameStatus() {\n this.gameStatus = false;\n }",
"@Override\n public void updatePlayer() {\n\n // If the service has disconnected, the SSMusicService is restarted.\n if (!serviceBound) {\n setUpAudioService(); // Sets up the SSMusicService.\n }\n\n else {\n\n // If the currentTimer is between 0 - TIMEOUT_VALUE, it indicates that a song is\n // currently being prepared for playback. Signals the SSPlayerFragment to display the\n // progress indicator if currently active.\n if ((currentTimer > 0) && (currentTimer <= TIMEOUT_VALUE)) {\n stopSongPrepare(false);\n }\n\n // The SSPlayerFragment is updated of the current song status and max song duration via\n // SSMusicService & SSMusicEngine.\n musicService.updatePlayer();\n }\n }",
"public boolean getPlayerState()\n\t{\n\t\treturn blnPlayerState;\n\t\t\n\t}",
"public void switchPlayer() {\r\n\t\tif (player == player1) {\r\n\t\t\tplayer = player2;\r\n\t\t} else {\r\n\t\t\tplayer = player1;\r\n\t\t}\r\n\t}",
"private void updateSharedState()\r\n {\r\n // TODO update the shared state\r\n // e.g.: sharedState.setTurnHolder(gameModel.getTurnHolder());\r\n }",
"@Override\n protected void sendUpdatedStateTo(GamePlayer p) {\n //makes sure player exists\n if(p == null){\n return;\n }\n // if there is no state to send, ignore\n if(state == null){\n return;\n }\n //creates a copy of the official state and sends it to the desired player\n StrategoGameState stateForPlayer = new StrategoGameState(state);\n p.sendInfo((stateForPlayer));\n }",
"public void onTurnOver() {}",
"public void notifyTurn()\n {\n playerObserver.onTurnStart();\n }",
"public void resetPlayerPassed() {\n d_PlayerPassed = false;\n }",
"public void beginGame() {\r\n data.gameState = 3;\r\n data.gameStartFlag = true;\r\n setChanged();\r\n notifyObservers(data);\r\n data.gameStartFlag = false; //Set the gameStart flag to false so the relevant update lines aren't ever run a second time\r\n }",
"abstract public void updateState();",
"public void switchPlayer(){\n // Menukar giliran player dalam bermain\n Player temp = this.currentPlayer;\n this.currentPlayer = this.oppositePlayer;\n this.oppositePlayer = temp;\n }",
"public void setCurrentPlayer(Player P){\n this.currentPlayer = P;\n }",
"public void update() {\n\t\tif (this.currentLoginState == LoginState.READY_TO_ACCEPT) {\n\t\t\tthis.tryAcceptPlayer();\n\t\t}\n\n\t\tif (this.connectionTimer++ == 600) {\n\t\t\tthis.closeConnection(\"Took too long to log in\");\n\t\t}\n\t}",
"public void reborn() {\r\n if ( playerState != null ) // We have to clear ropes connected to this player first (but not at the first time)!\r\n for ( int playerIndex = 0; playerIndex< players.length; playerIndex++ )\r\n if ( playerIndex != ownIndex && players[ playerIndex ] != null ) {\r\n final PlayerState playerState = players[ playerIndex ].playerState;\r\n if ( playerState.rope != null && playerState.rope.hasEndPoint && playerState.rope.endPointMovingObject == this.playerState )\r\n playerState.rope = null;\r\n }\r\n // Then we regenerate the state of player.\r\n final PlayerState newPlayerState = new PlayerState( WORM_MASS, WORM_SHAPE_RESISTANCE_RATE, WORM_CAPACITY );\r\n if ( playerState!= null ) {\r\n newPlayerState.wormColorIndex = playerState.wormColorIndex;\r\n newPlayerState.name = playerState.name;\r\n newPlayerState.killCounter = playerState.killCounter;\r\n newPlayerState.deathCounter = playerState.deathCounter;\r\n }\r\n playerState = newPlayerState;\r\n for ( int weaponIndex = 0; weaponIndex < weapons.length; weaponIndex++ )\r\n weapons[ weaponIndex ].reloadNow();\r\n try {\r\n selectWeapon( 0 );\r\n }\r\n catch ( RemoteException re ) {\r\n Logging.logError( re );\r\n }\r\n generateRandomPosition();\r\n informationsForDrawing.playerStates[ ownIndex ] = playerState;\r\n }",
"@Override\n\tpublic void onPlayerTurnListener() {\n\n\t}",
"public Player updatePlayer(Player player);",
"public void changeTurn(){\r\n model.setCheckPiece(null);\r\n model.swapPlayers();\r\n }",
"public void exchangeActivePlayer() {\r\n\t\tif (activePlayer.equals(\"black\")) {\r\n\t\t\tdisablePlayer(\"black\");\r\n\t\t\tenablePlayer(\"white\");\r\n\t\t\tt.setText(\"white turn\");\r\n\t\t} else {\r\n\t\t\tdisablePlayer(\"white\");\r\n\t\t\tenablePlayer(\"black\");\r\n\t\t\tt.setText(\"black turn\");\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void update() {\n\n\t\ttimer++;\n\t\tupdatePlayer();\n\t\tupdateScreen();\n\t\tupdateLives();\n\n\t}",
"@Override\n\tpublic void setPlayer(Player player) {\n\n\t}",
"public void update() {\n\t\t//Indicate that data is fetched\n\t\tactivity.showProgressBar();\n\t\n\t\tPlayer currentPlayer = dc.getCurrentPlayer();\n\t\tactivity.updatePlayerInformation(\n\t\t\t\tcurrentPlayer.getName(),\n\t\t\t\tgetGlobalRanking(),\n\t\t\t\tcurrentPlayer.getGlobalScore(),\n\t\t\t\tcurrentPlayer.getPlayedGames(),\n\t\t\t\tcurrentPlayer.getWonGames(),\n\t\t\t\tcurrentPlayer.getLostGames(),\n\t\t\t\tcurrentPlayer.getDrawGames());\n\n\t\tactivity.hideProgressBar();\n\t}",
"@Override\n\tpublic void startGame(){\n\t\tsuper.currentPlayer = 1;\n\t}",
"public void update(){\r\n\t\tupdateTurnLabel();\r\n\t\tupdateCanvas();\r\n\t}",
"@Override\n public void updateState(Perception p) {\n \n //TODO: Complete Method\n }",
"public void playerWon()\r\n {\r\n \r\n }",
"@Override\n\tpublic void pause() \n\t{\n\t\tif (state_Game==GAME_READY) \n\t\t{\n\t\t\tstate_Game=GAME_PAUSED;\n\t\t}\n\t}",
"public void changeActivePlayer() {\n\t\tif(this.getActivePlayer().equals(this.getPlayer1())) {\n\t\t\tthis.setActivePlayer(this.getPlayer2());\n\t\t} else {\n\t\t\tthis.setActivePlayer(this.getPlayer1());\n\t\t}\n\t}",
"public void setAsPlayer(){\n\t\tthis.isPlayer = true;\n\t}"
] | [
"0.7429936",
"0.72485846",
"0.7170157",
"0.7111477",
"0.70230585",
"0.70051736",
"0.6925114",
"0.69205385",
"0.690255",
"0.6899995",
"0.68870944",
"0.6759454",
"0.67337507",
"0.6728192",
"0.6692786",
"0.6683969",
"0.66264796",
"0.6621127",
"0.66180694",
"0.6599656",
"0.6593071",
"0.6592935",
"0.6577794",
"0.65521425",
"0.6545055",
"0.6522269",
"0.65188897",
"0.64904785",
"0.6484477",
"0.6451539",
"0.6434073",
"0.64127886",
"0.640684",
"0.6401786",
"0.63998073",
"0.6389131",
"0.6375563",
"0.63619494",
"0.6347951",
"0.6311577",
"0.6308181",
"0.6295908",
"0.62851274",
"0.62829685",
"0.62805617",
"0.6275923",
"0.62758934",
"0.6274122",
"0.62738943",
"0.62632483",
"0.62557274",
"0.6237123",
"0.62365973",
"0.6225641",
"0.62247175",
"0.6216346",
"0.62020856",
"0.61985165",
"0.6189611",
"0.61885625",
"0.61812913",
"0.6169658",
"0.61679876",
"0.6165523",
"0.6163371",
"0.6159831",
"0.6154628",
"0.61523366",
"0.6151135",
"0.61481",
"0.6146732",
"0.6142944",
"0.61425626",
"0.61380506",
"0.6137396",
"0.6135026",
"0.6134274",
"0.6131954",
"0.61311626",
"0.6129997",
"0.6124642",
"0.6119947",
"0.61166996",
"0.6107523",
"0.610336",
"0.61032957",
"0.61018246",
"0.6100637",
"0.60948884",
"0.60848737",
"0.60815346",
"0.6080581",
"0.6080094",
"0.607476",
"0.60730636",
"0.6065595",
"0.6056639",
"0.6046295",
"0.60410047",
"0.6040399"
] | 0.72139704 | 2 |
Called when a buffering events for a media item happened. | public void onBufferingStateChanged(@NonNull SessionPlayer player,
@Nullable MediaItem item, @BuffState int buffState) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void buffering(MediaPlayer arg0, float arg1)\r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\t}",
"@Override\n\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\n\t}",
"@Override\n public void onBufferingUpdate(MediaPlayer mp, int percent) {\n }",
"@Override\n public void onBufferingUpdate(MediaPlayer mp, int percent) {\n }",
"@Override\n\tpublic void onPrepared(MediaPlayer mp) {\n\t\tthis.mMediaPlayer.seekTo((int) (this.mOffsetInto * 100));\n\t\tthis.subject.notifyDoneBuffering();\n\t\tLog.e(\"AUDIO\", \"I'm done buffering and ready to play!\");\n\t}",
"@Override\n public void onBuffering(int percent) {\n }",
"protected void onQueued() {}",
"@Override\n public boolean onInfo(MediaPlayer mp, int what, int extra) {\n\n Log.v(\"FreshAir\", \"onInfo (\" + what + \" - \" + extra + \")\");\n\n switch (what) {\n case 701: //MediaPlayer.MEDIA_INFO_BUFFERING_START:\n text_info.setText(\"Buffering ...\");\n progress_main.setVisibility(View.VISIBLE);\n isPlaying = true; // ie you cant re set the data sourse without\n // stoping first\n break;\n\n case 702: //MediaPlayer.MEDIA_INFO_BUFFERING_END:\n text_info.setText(\"Playing ...\");\n progress_main.setVisibility(View.INVISIBLE);\n isPlaying = true;\n\n default:\n break;\n }\n\n return true; // return true to stop the OS calling 'onError'\n }",
"@Override\r\n\t\tpublic void onBufferingUpdate(MediaPlayer arg0, int percent) {\n\t\t\t((TextView) mainLayout.findViewById(R.id.btn_buffering)).setText(\"Buffering \" + percent + \"%\");\r\n\t\t}",
"public void BufferUpdates()\n {\n //Clear the dispatch list and start buffering changed entities.\n DispatchList.clear();\n bBufferingUpdates = true;\n }",
"public void onMediaPrepared() {\n Assertions.checkNotNull(this.mediaPreparer);\n Assertions.checkNotNull(this.mediaPreparer.mediaPeriods);\n Assertions.checkNotNull(this.mediaPreparer.timeline);\n int periodCount = this.mediaPreparer.mediaPeriods.length;\n int rendererCount = this.rendererCapabilities.length;\n this.trackSelectionsByPeriodAndRenderer = (List[][]) Array.newInstance(List.class, periodCount, rendererCount);\n this.immutableTrackSelectionsByPeriodAndRenderer = (List[][]) Array.newInstance(List.class, periodCount, rendererCount);\n for (int i = 0; i < periodCount; i++) {\n for (int j = 0; j < rendererCount; j++) {\n this.trackSelectionsByPeriodAndRenderer[i][j] = new ArrayList();\n this.immutableTrackSelectionsByPeriodAndRenderer[i][j] = Collections.unmodifiableList(this.trackSelectionsByPeriodAndRenderer[i][j]);\n }\n }\n this.trackGroupArrays = new TrackGroupArray[periodCount];\n this.mappedTrackInfos = new MappingTrackSelector.MappedTrackInfo[periodCount];\n for (int i2 = 0; i2 < periodCount; i2++) {\n this.trackGroupArrays[i2] = this.mediaPreparer.mediaPeriods[i2].getTrackGroups();\n this.trackSelector.onSelectionActivated(runTrackSelection(i2).info);\n this.mappedTrackInfos[i2] = (MappingTrackSelector.MappedTrackInfo) Assertions.checkNotNull(this.trackSelector.getCurrentMappedTrackInfo());\n }\n setPreparedWithMedia();\n ((Handler) Assertions.checkNotNull(this.callbackHandler)).post(new DownloadHelper$$Lambda$2(this));\n }",
"@Override\n public void onBufferReceived(byte[] buffer) {\n }",
"private void onPrepared(MediaPlayer mp) {\n for (AudioEventListener handler : eventHandlerList) {\n handler.onPrepared(mp);\n }\n }",
"@Override\r\n\tpublic void mediaSubItemAdded(MediaPlayer mediaPlayer, libvlc_media_t subItem)\r\n\t{\n\r\n\t}",
"@Override\r\n\tpublic void subItemPlayed(MediaPlayer mediaPlayer, int subItemIndex)\r\n\t{\n\r\n\t}",
"public void bufferedAmountChange() {\n // Webrtc.org fires the bufferedAmountChange event from a different\n // thread (B) while locking the native send call on the current\n // thread (A). This leads to a deadlock if we try to lock this\n // instance from (B). So, this... pleasant workaround prevents\n // deadlocking the send call.\n CompletableFuture.runAsync(() -> {\n synchronized (this) {\n final long bufferedAmount = this.dc.bufferedAmount();\n // Unpause once low water mark has been reached\n if (bufferedAmount <= this.lowWaterMark && !this.readyFuture.isDone()) {\n log.debug(this.dc.label() + \" resumed (buffered=\" + bufferedAmount + \")\");\n this.readyFuture.complete(null);\n }\n }\n });\n }",
"@Override\r\n\tpublic void subItemFinished(MediaPlayer mediaPlayer, int subItemIndex)\r\n\t{\n\r\n\t}",
"public void bufferingState(){\n\t\twhile ( buffer.isBufferUnderRun() ){\n\t\t\t/** Do not leave the while loop with nothing, it will increase the CPU usage 25% */\n\t\t\ttry {Thread.sleep(1);\n\t\t\t} catch (InterruptedException ex) {}\n\t\t} \n\t}",
"@Override\r\n\t\t\t\t\tpublic void addItemEventOccurred(AddItemEvent event) {\n\r\n\t\t\t\t\t}",
"@Override\r\n\tpublic void endOfSubItems(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}",
"private void frameProcessed(){\n if(DEBUG) Log.d(TAG, \"Frame Processed\");\n synchronized (mWaitFrame) {\n mWaitFrame.notifyAll();\n }\n }",
"@Override\r\n\tpublic void mediaStateChanged(MediaPlayer mediaPlayer, int newState)\r\n\t{\n\r\n\t}",
"public void itemStateChanged(ItemEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t}",
"@Subscribe(threadMode = ThreadMode.MAIN,sticky = true)\n public void onMessage(BundlesReloadedEvent event){\n Log.d(LogTAG, \"received BundlesReloadedEvent\");\n Log.d(LogTAG,String.format(\"Bundles: %d\",plansFileManager.getBundles().size()));\n arrayAdapter.notifyDataSetChanged();\n }",
"@Override\r\n\tpublic void itemStateChanged(ItemEvent arg0) {\n\r\n\t}",
"void onBusEvent(Event event);",
"@Override\n\tpublic void processItemInformation(ProcessItemInformationObjectEvent e, String message) {\n\t\t\n\t}",
"@Override\n\tpublic void itemStateChanged(ItemEvent arg0) {\n\n\t}",
"@Override\n\tpublic void itemStateChanged(ItemEvent arg0) {\n\n\t}",
"@Override\n public void onPrepared(MediaPlayer mp) {\n Log.d(TAG, \"onPrepared: GOTTING CALLED\");\n playMedia();\n }",
"@Override\r\n public void handleMediaEvent(MediaEvent event) {\r\n if(running){\r\n try {\r\n Media media = event.getSource();\r\n String pluginName = media.getPluginName();\r\n Map<String,Object> location = SharedLocationService.getLocation(media.getPluginLocationId());\r\n switch(event.getEventType()){\r\n case PLAYER_PLAY:\r\n Map<String,Object> playerData = media.getNowPlayingData();\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"action\",event.getEventType().toString().toLowerCase());\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"type\",((MediaPlugin.ItemType)playerData.get(\"ItemType\")).toString().toLowerCase());\r\n if ((MediaPlugin.ItemType)playerData.get(\"ItemType\") == MediaPlugin.ItemType.AUDIO) {\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"title\",(String)playerData.get(MediaPlugin.ItemDetails.TITLE.toString()));\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"title artist\",(String)playerData.get(MediaPlugin.ItemDetails.TITLE_ARTIST.toString()));\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"album\",(String)playerData.get(MediaPlugin.ItemDetails.ALBUM.toString()));\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"album artist\",(String)playerData.get(MediaPlugin.ItemDetails.ALBUM_ARTIST.toString()));\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"duration\",playerData.get(MediaPlugin.ItemDetails.DURATION.toString()).toString());\r\n } else {\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"title\",(String)playerData.get(MediaPlugin.ItemDetails.TITLE.toString()));\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"duration\",playerData.get(MediaPlugin.ItemDetails.DURATION.toString()).toString());\r\n }\r\n break;\r\n case PLAYER_PAUSE:\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"action\",event.getEventType().toString().toLowerCase());\r\n break;\r\n case PLAYER_STOP:\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"action\",event.getEventType().toString().toLowerCase());\r\n break;\r\n }\r\n } catch (Exception ex) {\r\n LOG.error(\"Could not publish to broker: {}\", ex.getMessage(), ex);\r\n }\r\n }\r\n }",
"private void play() {\n MediaQueueItem item = mQueue.get(0);\n if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PENDING\n || item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) {\n mCurItemId = item.getItemId();\n if (mCallback != null) {\n if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PENDING) {\n mCallback.onNewItem(item.getUri());\n }\n mCallback.onStart();\n }\n item.setState(MediaItemStatus.PLAYBACK_STATE_PLAYING);\n }\n }",
"@Override\n public void dataReceived(PlayingInfoModel result) {\n }",
"public synchronized void magicalItemCaptureCallBack(int noOfMagicalItems) {\n\t\tif (currentActivity == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tcurrentActivity.updateGameMagicalItemInfo(noOfMagicalItems);\n\t}",
"@Override\n public void onPrepared(MediaPlayer mediaPlayer) {\n\n }",
"@Override\r\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\t\t\t\tLog.d(this.getClass().getName(), \"percent: \" + percent);\n\t\t\t\tprogressBar.setSecondaryProgress(percent);\n\t\t\t}",
"public void itemStateChanged(ItemEvent e) {\n\t\t\t\t}",
"@Override\r\n\tpublic void mediaChanged(MediaPlayer arg0, libvlc_media_t arg1, String arg2)\r\n\t{\n\t\t\r\n\t}",
"@Subscribe\n public void onEvent(MediaChangedEvent event) {\n isSyncingData = true;\n\n //TODO: updating and adding or removing.\n mUsersLikedMediaFragment.addOrRemoveMediaContent(event.getMedia());\n mUsersRecentMediaFragment.updateMediaContent(event.getMedia());\n }",
"@Override\n public void onFrameAvailable(int cameraId) {\n }",
"@Override\n public void onFrameAvailable(int cameraId) {\n }",
"public void process(WatchedEvent event) {\n\t\t\n\t}",
"@Override\n public void onNext(T item) {\n limiter.limit(item, completeAction);\n }",
"void mo23488a(Handler handler, MediaSourceEventListener mediaSourceEventListener);",
"@Override\n public void handleMessage(Message msg) {\n if (isPlaying() || mMediaplayerHandler.hasMessages(TRACK_ENDED)) {\n return;\n }\n // save the queue again, because it might have changed\n // since the user exited the music app (because of\n // party-shuffle or because the play-position changed)\n }",
"@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\n\n\t\t\n\t}",
"@Override\n public void onPrepared(MediaPlayer mp) {\n Log.d(TAG, \"onPrepared() called\");\n mMediaPlayer.start();\n\n // Notify listeners that a new track has started.\n PreferenceManager.getDefaultSharedPreferences(getApplicationContext())\n .edit()\n .putString(MainActivity.PREF_CURRENT_ALBUM, playListItem.getAlbumName())\n .putString(MainActivity.PREF_CURRENT_ARTIST_NAME, playListItem.getArtistName())\n .putString(MainActivity.PREF_CURRENT_ARTIST_SPOTIFY_ID, playListItem.getArtistId())\n .putString(MainActivity.PREF_CURRENT_TRACK_NAME, playListItem.getTrackName())\n .putString(MainActivity.PREF_CURRENT_TRACK_SPOTIFY_ID, playListItem.getTrackId())\n .putString(MainActivity.PREF_CURRENT_TRACK_URL, playListItem.getTrackUri())\n .putBoolean(MainActivity.PREF_IS_PLAYING, true)\n .commit();\n\n Intent intent = new Intent(TRACK_START_BROADCAST_FILTER);\n intent.putExtra(SpotifyStreamerActivity.KEY_CURRENT_TRACK, playListItem);\n LocalBroadcastManager.getInstance(StreamerMediaService.this).sendBroadcast(intent);\n }",
"public interface BeamBufferListener\n\n{\n \n /**\n * handle new beam when it arrives\n */\n \n public void handleBeamBuffer(ByteBuffer beamBuf);\n\n}",
"@Override\r\n\tpublic void mediaMetaChanged(MediaPlayer mediaPlayer, int metaType)\r\n\t{\n\r\n\t}",
"@Override\n public void onInputBufferAvailable(@NonNull MediaCodec codec, int index) {\n\n synchronized (mAvailableInputs) {\n mAvailableInputs.add(index);\n mAvailableInputs.notifyAll();\n }\n }",
"@Override\n public void postEvent(Event event)\n {\n normalQueue.offer(event);\n }",
"public void onVideoStarted () {}",
"@Override\r\n\t\tpublic void onVideoPlayBufferingUpdate(int percent) {\n\r\n\t\t}",
"@Override\n\tpublic void receiveFrameData(Camera camera, int avChannel, Bitmap bmp) {\n\t}",
"@Override\r\n\tpublic void mediaParsedChanged(MediaPlayer mediaPlayer, int newStatus)\r\n\t{\n\r\n\t}",
"private void videoCBItemStateChanged(java.awt.event.ItemEvent evt) {\n for(AudioVisualMaterial currentVideo : video){ //iterates through video array\n currentMaterial = currentVideo; //passes local variable into class variable\n if(videoCB.getSelectedItem() == currentMaterial.getTitle()){ //if comboBox selection matches a video's title\n videoText.setText(currentMaterial.displayInfo()); //display that video's info in TextArea\n videoImage.setIcon(currentMaterial.getCoverImage()); //display that video's image\n currentMaterial.setupSoundClip(); //set up sound clip\n currentMaterial.playSoundClip(); //play that video's soundClip\n }\n if(videoCB.getSelectedItem() != currentMaterial.getTitle()){ //if combobox selection does not match a video's title\n currentMaterial.setupSoundClip(); //set up sound clip\n //currentMaterial.stopSoundClip(); //stop sound clip\n }\n if(videoCB.getSelectedItem() == SelectVideo.getTitle()){ //if combobox selection matches default title\n videoText.setText(\"\"); //clear text\n }\n }\n }",
"public void handle(QueueItem<T>[] events, SyncProducer producer, Encoder<T> encoder) throws Exception;",
"protected void mo5609b() {\n if (getVideoView() != null) {\n getVideoView().getEventBus().m5031b(this.f5896c, this.f5895b, this.f5897d);\n }\n super.mo5609b();\n }",
"@Override\n\tpublic void onReceive(Context context, Intent intent) {\n\t\tAppWidgetManager appWidgetManger = AppWidgetManager.getInstance(context); \n\t\tint[] appIds = appWidgetManger.getAppWidgetIds(new ComponentName(context, PlayWidget.class));\n\t\tlistitem = intent.getIntExtra(\"current_music\", 0);\n\t\tLog.d(TAG,\"listitem : \"+listitem);\n\t\tString action = intent.getAction();\n\t\tif(action.equals(PLAY_STATUE)){\n\t\t\tintent.getBooleanExtra(\"isplay\", false);\n\n\t\t\tonUpdate(context,appWidgetManger,appIds);\n\t\t}\n\t\tif(action.equals(COLLECTION_VIEW_ACTION)) {\n\t\t\tint item = intent.getIntExtra(\"widget_item\", 0);\n\t\t\tLog.d(TAG,\"listitem : \"+item);\n\t\t}\n\t\tif(action.equals(UPDATE_ACTION)){\n//\t\t\tlistitem = intent.getIntExtra(\"current_music\", 0);\n\t\t\tonUpdate(context,appWidgetManger,appIds);\n\t\t}\n\t\t\n\t\tsuper.onReceive(context, intent);\n\t}",
"public void itemStateChanged(ItemEvent e) {\n toggleBeep();\n }",
"public void callbackForGatheredMediainformation(MediaFile mediaFile) {\n }",
"void mo23491a(MediaSourceEventListener mediaSourceEventListener);",
"public void onQueue();",
"public interface OnMediaPlayingListener {\n /**\n * duration for the media file\n * @param duration milliseconds\n */\n void onStart(int duration);\n\n void onComplete();\n\n /**\n * media play progress\n * @param currentPosition milliseconds\n */\n void onProgress(int currentPosition);\n}",
"@Override\n public void addMedia(AudioMedia media) {\n streamSpec.getAudioMedias().add(media);\n for (StreamListener streamListener : streamListeners) {\n streamListener.queueChanged();\n }\n }",
"@Override\n\tpublic void playerPCMFeedBuffer(boolean b, int i, int i2) {}",
"private void handleCaptureBurstInProgress(CaptureResult result) {\n if (MyDebug.LOG)\n Log.d(TAG, \"handleCaptureBurstInProgress\");\n\n handleRawCaptureResult(result);\n }",
"@Override\r\n public void onEvent(FlowableEvent event) {\n }",
"@Override\n public void onVideoStarted() {\n }",
"public void onPrepare() {\n\t\t\tif (mPlayStauts) {\n\t\t\t\tif (mHandler.hasMessages(MESSAGE_PLAY)) {\n\t\t\t\t\tmHandler.removeMessages(MESSAGE_PLAY);\n\t\t\t\t}\n\t\t\t\tmHandler.sendEmptyMessageDelayed(MESSAGE_PLAY, DELAY_TIME);\n\t\t\t}\n\t\t\tmHandler.sendEmptyMessageDelayed(MESSAGE_ONMEASURE,\n\t\t\t\t\tDELAY_REQUEST_TOTALPAGE);\n\t\t\tsetIsFileNotSupport(false);\n\t\t}",
"@Override\n public void onPrepared(MediaPlayer mp) {\n playMedia();\n }",
"@EventHandler(priority = EventPriority.LOW)\n\tpublic void onBlockBreak(BlockBreakEvent event) {\n\t\tif (event.getPlayer() == null || event.getPlayer().getGameMode() == GameMode.CREATIVE) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Events for broken custom blocks.\n\t\tBlock block = ((SpoutCraftBlock) event.getBlock()).getBlockType();\n\t\tif (block instanceof GenericCustomBlock) {\n\t\t\tthis.plugin.getHandlerManager().triggerHandlers(\"BlockBreak\", ((GenericCustomBlock) block).getCustomId(), event);\n\t\t}\n\n\t\t// Events for the item held while breaking a block.\n\t\tSpoutItemStack stack = new SpoutItemStack(event.getPlayer().getItemInHand());\n\t\tif (stack.getMaterial() instanceof GenericCustomItem) {\n\t\t\tthis.plugin.getHandlerManager().triggerHandlers(\"HoldBlockBreak\", ((GenericCustomItem) stack.getMaterial()).getCustomId(), event);\n\t\t}\n\t}",
"@Override\r\n\tpublic void messageReceived(Object obj) {\n\t\t\r\n\t}",
"@Override\r\n\t\tpublic void onPrepared(MediaPlayer arg0) {\n\t\t\tupdateLayoutListener(1);\t\r\n\t\t}",
"protected void consume(MonitorItem monItem) {\n BackgroundStatus bgStat= monItem.getStatus();\n for(PushItem item= getNextItem(bgStat); (item!=null); item= getNextItem(bgStat) ) {\n TitleFlasher.flashTitle(\"!! New Image !!\");\n CatalogPanel.setDefaultSearchMethod(CatalogRequest.Method.POLYGON);\n AllPlots.getInstance().getActionReporter().setMonitorItem(monItem);\n String fileName;\n switch (item.pushType) {\n case WEB_PLOT_REQUEST:\n WebPlotRequest wpr= WebPlotRequest.parse(item.data);\n String id;\n if (wpr.getPlotId()!=null) {\n id= wpr.getPlotId();\n }\n else {\n id=IMAGE_CMD_PLOT_ID+idCnt;\n idCnt++;\n wpr.setPlotId(id);\n }\n prepareRequest(wpr);\n break;\n case REGION_FILE_NAME:\n fileName= item.data;\n DS9RegionLoadDialog.loadRegFile(fileName,null,monItem);\n break;\n case TABLE_FILE_NAME:\n fileName= item.data;\n loadTable(fileName,monItem);\n //\n break;\n case FITS_COMMAND_EXT:\n PlotCmdExtension ext= parsePlotCmdExtension(item.data);\n List<PlotCmdExtension> list= AllPlots.getInstance().getExtensionList(null);\n list.add(ext);\n for(MiniPlotWidget mpw : AllPlots.getInstance().getAll()) {\n if (mpw.getPlotView()!=null) {\n mpw.recomputeUserExtensionOptions();\n }\n }\n\n break;\n }\n }\n }",
"@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tif (mResPlaybill == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tswitch (msg.what) {\n\t\t\tcase 1:\n\t\t\t\tif (mResPlaybill.mExtPlayList.size() > 0) {\n\t\t\t\t\tif (mPlayId == mPlayTotal) {\n\n\t\t\t\t\t\t// --当处于插入播放时,播放完成,此时需要结束,则不再继续添加播放任务\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Message msg1=new Message();\n\t\t\t\t\t\t * msg1.what=ConstData.DisplayMsgType\n\t\t\t\t\t\t * .MSG_DISPLAY_FINISH; msg1.obj=AdvImageView.this;\n\t\t\t\t\t\t * sendMessageToManager(msg1);\n\t\t\t\t\t\t */\n\t\t\t\t\t\tgetDisplayManager().onViewFinish(AdvImageView.this);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (mPlayId == mPlayTotal) {\n\n\t\t\t\t\t// --判断是否退出\n\t\t\t\t\tif (getDisplayManager().onViewFinish(AdvImageView.this)) {\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 (mPlayTotal == 1) {\n\t\t\t\t\t\tmPlayId = 0;\n\t\t\t\t\t\t// setChange();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tmPlayId = 0;\n\t\t\t\t}\n\t\t\t\tloadImage();\n\t\t\t\tsetChange();\n\t\t\t\tmPlayId++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"public void queueEvent(Runnable r) {\n renderqueue.add(r);\n }",
"void onNext(T item);",
"protected void onMediaControllerConnected() {\n }",
"@Override\r\n\tpublic void pausableChanged(MediaPlayer mediaPlayer, int newSeekable)\r\n\t{\n\r\n\t}",
"public void onLooperPrepared() {\n super.onLooperPrepared();\n FrameConsumer.this.f41223d = new Handler(getLooper(), FrameConsumer.this);\n if (!FrameConsumer.this.f41225f) {\n FrameConsumer.this.m57235e();\n }\n }",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tmediaManager.onActivityResult(requestCode, resultCode, data);\n\t}",
"@Override\n \tpublic void onReceive(Context context, Intent intent)\n \t{\n \tMediaInfoArtist = intent.getStringExtra(\"artist\");\n \tMediaInfoAlbum = intent.getStringExtra(\"album\");\n \tMediaInfoTrack = intent.getStringExtra(\"track\");\n \tMediaInfoNeedsUpdate = true;\n \tLog.d(\"OLV Music\",\"Artist: \"+MediaInfoArtist+\", Album: \"+MediaInfoAlbum+\" and Track: \"+MediaInfoTrack);\n \t}",
"public abstract void onMedInfoLoaded(Medication med);",
"void threadUpdateReceived(FeedItem feedItem);",
"@Override\n public void onReceive(Context context, Intent intent) {\n String message = intent.getStringExtra(\"message\");\n Log.d(\"receiver\", \"Got message: \" + message);\n switch (message){\n case \"prev\":\n currPic -= 1;\n if (currPic < 0)\n currPic = picsList.size()-1;\n displayPicture(picsList.get(currPic).getID());\n break;\n case \"next\":\n currPic += 1;\n if (currPic > picsList.size()-1)\n currPic = 0;\n displayPicture(picsList.get(currPic).getID());\n break;\n case \"zoomIn\":\n x = pictures.getScaleX();\n y = pictures.getScaleY();\n if ( x != X_MAX_VALUE && y != Y_MAX_VALUE) {\n pictures.setScaleX(x + 1);\n pictures.setScaleY(y + 1);\n }\n break;\n case \"zoomOut\":\n x = pictures.getScaleX();\n y = pictures.getScaleY();\n if ( x != X_MIN_VALUE && y != Y_MIN_VALUE) {\n pictures.setScaleX(x - 1);\n pictures.setScaleY(y - 1);\n }\n break;\n }\n\n }",
"@EventHandler\r\n\tpublic void onBreak(PlayerItemBreakEvent e) {\r\n\t\tString itemName = getItemName(e.getBrokenItem());\r\n\t\t\r\n\t\tBukkit.broadcastMessage(ChatColor.YELLOW + e.getPlayer().getDisplayName() + \r\n\t\t\t\t\t \t\tChatColor.GRAY + \" broke their \" +\r\n\t\t\t\t\t\t\tChatColor.AQUA + itemName);\r\n\t\tBukkit.broadcastMessage(ChatColor.GRAY + \"\" + ChatColor.ITALIC + \"How unfortunate.\");\r\n\t\t\r\n\t}",
"@Override\n public void onEventReceived(Event event) {\n super.onEventReceived(event);\n\n switch (event.getRawEventType())\n {\n case Track:\n trackManager.manageTrackEvent(event);\n break;\n case TentativeTracking:\n manageTentativeTrackingEvent(event);\n break;\n case Tracking:\n manageTrackingEvent(event);\n break;\n }\n }",
"@Override\n public void onDrainComplete()\n {\n }",
"void onPrepared(AudioPlayerIterface mp);",
"@Override\n public void onNewItem(int faceId, Face item)\n {\n Log.d(APP_LOG_TAG, \"face detected\");\n }",
"public void handleBeamBuffer(ByteBuffer beamBuf);",
"protected void onBegin() {}",
"@Override\n public void onDataChanged(DataEventBuffer dataEvents) {\n // Not used\n }",
"public void onFrameDrop() {}",
"@Override\n\tpublic void onMessageReceived(Message m) {\n\t\thandle.addMessage(m);\n\t\trefreshMessages();\n\t}",
"public void messageReceived() {\n\tTrackedMessage.accumulateMap(TrackedMessage.unmapType(\n\t\tTrackedMessage.messagesRecieved, this.getClass()), this\n\t\t.getMessageType(), 1);\n\tTrackedMessage.accumulateMap(TrackedMessage.unmapType(\n\t\tTrackedMessage.bytesRecieved, this.getClass()), this\n\t\t.getMessageType(), TrackedMessage.objectSize(this));\n }"
] | [
"0.666088",
"0.6106956",
"0.6037958",
"0.6000378",
"0.6000378",
"0.5947926",
"0.581423",
"0.57915974",
"0.5722922",
"0.5721165",
"0.5506244",
"0.5450203",
"0.5437469",
"0.5357342",
"0.53063357",
"0.53062963",
"0.5302351",
"0.5276712",
"0.52589697",
"0.5244759",
"0.52307117",
"0.5215584",
"0.5213837",
"0.5199734",
"0.5195417",
"0.5193081",
"0.51902515",
"0.5181544",
"0.5166138",
"0.5164942",
"0.5164942",
"0.51502186",
"0.51448685",
"0.51331747",
"0.5129781",
"0.51161104",
"0.5106974",
"0.5086279",
"0.50854164",
"0.5065286",
"0.5052627",
"0.5037919",
"0.5032987",
"0.5032987",
"0.50179875",
"0.50117713",
"0.5011098",
"0.50092345",
"0.5006888",
"0.4999012",
"0.4998266",
"0.49865392",
"0.4978736",
"0.49724606",
"0.49677303",
"0.4963406",
"0.49423382",
"0.49403667",
"0.49380326",
"0.49346408",
"0.49276826",
"0.4923964",
"0.4908869",
"0.49086535",
"0.49057668",
"0.49055445",
"0.4904006",
"0.489717",
"0.489591",
"0.48943105",
"0.4891141",
"0.4883638",
"0.4873888",
"0.48738405",
"0.48729482",
"0.4872269",
"0.487207",
"0.48627284",
"0.4859765",
"0.4841926",
"0.4830236",
"0.48276976",
"0.48221114",
"0.48191017",
"0.48154297",
"0.4811224",
"0.4801619",
"0.47937074",
"0.47926748",
"0.4791041",
"0.4776524",
"0.47726977",
"0.47594383",
"0.4757852",
"0.4756377",
"0.47549233",
"0.47545388",
"0.47515082",
"0.47493282",
"0.47479537"
] | 0.69327784 | 0 |
Called when the playback speed has changed. | public void onPlaybackSpeedChanged(@NonNull SessionPlayer player,
float playbackSpeed) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setPlaybackSpeed(float speed);",
"void OnSpeedChanges(float speed);",
"void changeUpdateSpeed();",
"private void setSpeed() {\n double cVel = cAccel*0.1;\n speed += round(mpsToMph(cVel), 2);\n speedOutput.setText(String.valueOf(speed));\n }",
"private void changeSpeed() {\n\t\tint t = ((JSlider)components.get(\"speedSlider\")).getValue();\n\t\tsim.setRunSpeed(t);\n\t}",
"public void setCurrentSpeed (double speed);",
"double getPlaybackSpeed();",
"public void setSpeed(float val) {speed = val;}",
"@Override\n public void onPrepared(MediaPlayer mediaPlayer) {\n mediaPlayer.setPlaybackSpeed(1.0f);\n }",
"@Override\n public void onPrepared(MediaPlayer mediaPlayer) {\n mediaPlayer.setPlaybackSpeed(1.0f);\n }",
"@Override\n public void onPrepared(MediaPlayer mediaPlayer) {\n mediaPlayer.setPlaybackSpeed(1.0f);\n }",
"public void updateSpeed() {\n\t\t// should work b/c of integer arithmetic\n\t\tif(isTwoPlayer)\n\t\t\treturn;\n\t\t//System.out.println(\"speed up factor: \" + speedUpFactor);\n\t\t//System.out.println(\"numlinescleared/6: \" + numLinesCleared/6);\n\t\tif (speedUpFactor != numLinesCleared/6) {\n\t\t\t// speed by 10% every lines cleared, needs to be checked\n\t\t\tspeedUpFactor = numLinesCleared/6;\n\t\t\tif(!(defaultSpeed - 30*speedUpFactor <= 0))\n\t\t\t\tdefaultSpeed = defaultSpeed - 30*speedUpFactor;\n\t\t\tlevel = speedUpFactor;\n\t\t}\n\t\t//System.out.println(\"default speed: \" + defaultSpeed);\n\t}",
"public void changeSpeed(int speed);",
"@Override\n\tpublic void setSpeed(float speed) {\n\t\t\n\t}",
"void changeSpeed(int speed) {\n\n this.speed = speed;\n }",
"public void setSpeed(int newSpeed)\n {\n speed = newSpeed;\n }",
"public void setSpeed(int hz) {\n this.interval = 1000000000L / hz;\n if (!stopped.get()) {\n this.stop(); \n this.start();\n }\n }",
"public void setSpeed(int newSpeed){\n\t\tmyVaisseau=Isep.getListeVaisseau();\n\t\tspeed=newSpeed;\t\t\n\t}",
"public void setSpeed(int newSpeed)\n\t{\n\t\tspeed = newSpeed;\n\t}",
"public void setSpeed(float speed) {\n this.speed = speed;\n }",
"public void setSpeed(float speed) {\n this.speed = speed;\n }",
"@Override\n\tpublic void setSpeed(double speed) {\n\n\t}",
"public void setSpeed(double speed) {\n \tthis.speed = speed;\n }",
"@Override\n\tpublic void onLocationChanged(Location location) {\n\t\tsuper.onLocationChanged(location);\n\n\t\tif (status.isStarted() && status.isPause() == false) {\n\t\t\ttxt_current_speed.setText(CommonUtility.formatSpeed(location\n\t\t\t\t\t.getSpeed()));\n\t\t\ttxt_high_speed.setText(CommonUtility.formatSpeed(myTrack.maxSpeed));\n\t\t\ttxt_average_speed.setText(CommonUtility\n\t\t\t\t\t.formatSpeed(myTrack.averageSpeed) + \" km/h\");\n\t\t\ttxt_total_distance.setText(CommonUtility\n\t\t\t\t\t.formatDistance(myTrack.distance));\n\t\t\tchart.setSpeed(location.getSpeed());\n\t\t}\n\t}",
"public void setSpeed(float speed_)\n\t{\n\t\tthis.speed=speed_;\n\t}",
"public void setSpeed(double speed)\r\n {\r\n this.speed = speed;\r\n }",
"public void setSpeed() {\n //assigns the speed based on the shuffleboard with a default value of zero\n double tempSpeed = setpoint.getDouble(0.0);\n\n //runs the proportional control system based on the aquired speed\n controlRotator.proportionalSpeedSetter(tempSpeed);\n }",
"public void setSpeed() {\r\n\t\tint delay = 0;\r\n\t\tint value = h.getS(\"speed\").getValue();\r\n\t\t\r\n\t\tif(value == 0) {\r\n\t\t\ttimer.stop();\r\n\t\t} else if(value >= 1 && value < 50) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (1) == delay (5000). value (50) == delay (25)\r\n\t\t\tdelay = (int)(a1 * (Math.pow(25/5000.0000, value / 49.0000)));\r\n\t\t} else if(value >= 50 && value <= 100) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (50) == delay(25). value (100) == delay (1)\r\n\t\t\tdelay = (int)(a2 * (Math.pow(1/25.0000, value/50.0000)));\r\n\t\t}\r\n\t\ttimer.setDelay(delay);\r\n\t}",
"public void setSpeed(int value) {\n this.speed = value;\n }",
"public void doubleSpeed()\r\n {\r\n \tthis.speed= speed-125;\r\n \tgrafico.setVelocidad(speed);\r\n }",
"@Override\r\n\tpublic void speed() {\n\t}",
"public void currentSpeed(double currentSpeed)\n\t{\n\t\tspeed = currentSpeed;\n\t\t\n\t}",
"public void setSpeed(double speed) {\n this.speed = speed;\n }",
"public void setSpeed(double speed) {\n this.speed = speed;\n }",
"public void updateSpeed(double speed, double multiplier) {\n \tif (speed != 0) {\n \t\tspeed *= multiplier;\n \t} else if (multiplier == 1) {\n \t\tspeed = multiplier;\n \t}\n \tanimation.setRate(speed);\n }",
"public void setSpeed(double multiplier);",
"public <T extends Number> void setSpeedPerFrame(T speed){\r\n\t\tif(speed.doubleValue() <= 0){\r\n\t\t\tthis.speed = 1;\r\n\t\t\tSystem.err.println(\"Negative Speed, resulting to a speed of 1!\");\r\n\t\t}else{\r\n\t\t\tthis.speed = speed.doubleValue();\r\n\t\t}\r\n\t}",
"public void setSpeed(int newTicksMultiplier) {\r\n this.ticksMultiplier = newTicksMultiplier;\r\n }",
"public void setSpeed() {\r\n\t\tthis.currSpeed = this.maxSpeed * this.myStrategy.setEffort(this.distRun);\r\n\t}",
"public void refreshMovementSpeed(){\n\t\tif(orientation==ORIENTATION.RIGHT) moveRight();\n\t\telse if(orientation==ORIENTATION.LEFT) moveLeft();\n\t\telse if(orientation==ORIENTATION.UP) moveUp();\n\t\telse if(orientation==ORIENTATION.DOWN) moveDown();\n\t}",
"@Override\n @Deprecated // Deprecated so developer does not accidentally use\n public void setSpeed(int speed) {\n }",
"private void updateSpeed(CLocation location) {\n float nCurrentSpeed = 0;\n\n if (location != null) {\n nCurrentSpeed = location.getSpeed();\n }\n\n Formatter fmt = new Formatter(new StringBuilder());\n fmt.format(Locale.US, \"%5.1f\", nCurrentSpeed);\n String strCurrentSpeed = fmt.toString();\n strCurrentSpeed = strCurrentSpeed.replace(' ', '0');\n double speed = Double.parseDouble(strCurrentSpeed);\n speed = speed * 1.60934;\n String strUnits = \"miles/hour\";\n int count = (int) speed;\n String s = String.valueOf(count);\n speedTextView.setText(\"Train Speed : \" + s + \" Km/h\");\n }",
"public void setSpeed(float speed) {\n this.speed = (int) speed * 13;\n }",
"public void setSpeed(int s){\r\n\t\tspeed = s;\r\n\t}",
"public void setSpeed(double speed) {\r\n\t\tthis.speed = speed;\r\n\t\tthis.period = (int) (1000 / speed);\r\n\t}",
"public void setSpeed(final double speed) {\n m_X.set(ControlMode.PercentOutput, speed); \n }",
"void setSpeed(RobotSpeedValue newSpeed);",
"public void setSpeed(int speed) {\n this.speed = speed;\n }",
"public void setSpeed(int value) {\n speed = value;\n if (speed < 40) {\n speedIter = speed == 0 ? 0 : speed / 4 + 1;\n speedWait = (44 - speed) * 3;\n fieldDispRate = 20;\n listDispRate = 20;\n } else if (speed < 100) {\n speedIter = speed * 2 - 70;\n fieldDispRate = (speed - 40) * speed / 50;\n speedWait = 1;\n listDispRate = 1000;\n } else {\n speedIter = 10000;\n fieldDispRate = 2000;\n speedWait = 1;\n listDispRate = 4000;\n }\n }",
"@Override\n\tprotected void sampleRateChanged()\n\t{\n\t\ttimeStepSize = 1/sampleRate();\n\t}",
"@Override\n\tprotected void sampleRateChanged()\n\t{\n\t\ttimeStepSize = 1/sampleRate();\n\t}",
"public void increaseSpeed() {\r\n\tupdateTimer.setDelay((int)Math.floor(updateTimer.getDelay()*0.95));\r\n\t\t}",
"public void setFrameRate(float aValue) { setInterval(Math.round(1000/aValue)); }",
"public abstract void setSecondsPerUpdate(float secs);",
"private void updateSpeed(CLocation location) {\n try {\n\n i = i + 1;\n Log.i(\"111\", \"====updateSpeed=====i===\" + i);\n // Log.i(\"111\",\"====location=====getLongitude===\"+location.getLongitude());\n // Log.i(\"111\",\"====location=====getLatitude===\"+location.getLatitude());\n\n\n float nCurrentSpeed = 0;\n\n if (location != null) {\n location.setUseMetricunits(true);\n nCurrentSpeed = location.getSpeed();\n }\n\n Formatter fmt = new Formatter(new StringBuilder());\n fmt.format(Locale.US, \"%5.1f\", nCurrentSpeed);\n String strCurrentSpeed = fmt.toString();\n strCurrentSpeed = strCurrentSpeed.replace(' ', '0');\n\n String strUnits = \"miles/hour\";\n\n\n strLog = strLog +\n \"\\n--------------\\n \" +\n strCurrentSpeed + \" \" + strUnits +\n \"\\n--------------\\n \";\n\n tvData.append(\"\\n Speed2 = \" + strCurrentSpeed + \" \" + strUnits);\n\n /* float speed = Float.parseFloat(strCurrentSpeed);\n if(speed<100)\n mGaugeView.setTargetValue(speed);\n else\n {\n tvLog.setText(\"out of speed\"+strLog);\n }*/\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void setFPS() {\n fpsLabel.setText(Integer.toString((int)speedSlider.getValue()) + \" FPS\");\n timeline.setRate(speedSlider.getValue());\n }",
"@Override\n public void setSpeed(double speed, int rpm, int measurementsType) {\n speedText.setText(String.format(\"%.1f\", speed));\n if (measurementsType == ThunderBoardPreferences.UNIT_METRIC) {\n speedUnitsText.setText(getString(R.string.motion_meters_per_second));\n } else {\n speedUnitsText.setText(getString(R.string.motion_feet_per_second));\n }\n rpmText.setText(String.valueOf(rpm));\n }",
"@Override\n public void timeChanged(MediaPlayer mp, long l) {\n }",
"public abstract void setSpeed(int sp);",
"public void update() {\n if (System.currentTimeMillis() >= currSampleTimeInMillis + sampleDuration) {\n lastSampleTimeInMillis = currSampleTimeInMillis;\n lastPositionInTicks = currPositionInTicks;\n currSampleTimeInMillis = System.currentTimeMillis();\n currPositionInTicks = motor.getCurrentPosition();\n }\n }",
"public void setWalkSpeed ( float value ) throws IllegalArgumentException {\n\t\texecute ( handle -> handle.setWalkSpeed ( value ) );\n\t}",
"public void setSpeed(final int speed) {\n mSpeed = speed;\n }",
"@Override\n public void onLocationChanged(Location location) {\n currentSpeed = location.getSpeed();\n //locationText.setText(String.valueOf(latitude)+ \" \" +String.valueOf(longitude)+ \" \" +String.valueOf(speed));\n //isGPSReady = true;\n }",
"@Override\n\tpublic void increaseSpeed() {\n\t\tSystem.out.println(\"increaseSpeed\");\n\t\t\n\t}",
"public void setSpeed( Vector2 sp ) { speed = sp; }",
"public static void updateDisplaySpeed()\n {\n double oneSecond = 1000;\n //speed.setText( Double.toString(((main.Game.worldTime.getDelay())/oneSecond)) + \" (sec./Day)\" );\n }",
"public void setSpeed(int speed) {\n this.movementSpeed = speed;\n }",
"public void setSpeed(int speed) {\n thread.setSpeed(speed);\n }",
"public double getCurrentSpeed();",
"public void setSpeed(long speed) {\n\t\tmSpeed = speed;\n\t}",
"public void setNewSpeed(float simSpeed) {\n synchronized (settings){\n settings.setSimSpeed(simSpeed);\n\n if(settings.getSimSpeed() > 1000){\n settings.setSimSpeed(1000f);\n System.out.println(\"The simulation only supports a simSpeed between 0.001 and 1000!\");\n System.out.println(\"The simulation speed was set to 1000\");\n }\n if(settings.getSimSpeed() < 0){\n settings.setSimSpeed(0.001f);\n System.out.println(\"The simulation only supports a simSpeed between 0.001 and 1000!\");\n System.out.println(\"The simulation speed was set to 0.001\");\n }\n }\n }",
"private void speedStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_speedStateChanged\n\n int speedvalue = speed.getValue();//gets the value of the speed slider from the control panel\n roboLogic.speed(speedvalue); // calls the speed method of the RobotLogic class\n\n\n }",
"public void stateChanged(ChangeEvent e) {\n\t\t\t\tplane.setSpeed(jsThrottle.getValue());\n\t\t\t}",
"public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}",
"public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}",
"public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean b)\n {\n speed = progress;\n speedLabel.setText(speed + \"\");\n if(serviceIntent != null)\n serviceIntent.putExtra(\"Speed\", speed+\"\");\n\n //TODO: Notify the service\n if(crashDetectionService != null)\n {\n crashDetectionService.setSpeed(speed);\n }\n }",
"@Override\n public void onBufferingUpdate(MediaPlayer mp, int percent) {\n }",
"@Override\n public void onBufferingUpdate(MediaPlayer mp, int percent) {\n }",
"public void setSpeed(double speed) {\r\n this.speed = Math.min(1.0, Math.max(speed, 0));\r\n }",
"public void stateChanged(ChangeEvent e)\n {\n simulation.setSpeed(speedSlider.getValue());\n }",
"@Generated\n @Selector(\"setAnimationSpeed:\")\n public native void setAnimationSpeed(@NFloat double value);",
"public void increaseSpeed() {\n\t\t\n\t\tif(this.getSpeed() < this.getMaximumSpeed()) {\n\t\t\tthis.setSpeed(this.getSpeed() + 5);\n\t\t\tSystem.out.println(\"increase speed by 5 \\n\");\n\t\t}else {\n\t\t\tSystem.out.println(\"You already reach at the max speed \" + this.getMaximumSpeed() +\"\\n\");\n\t\t}\n\n\t}",
"public void currentSpeed()\n\t{\n\t\tif(speed == 0)\n\t\t{\n\t\t\tSystem.out.println(\"The bike is in rest\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"The bike is in motion\");\n\t\t\t\n\t\t}\n\t}",
"public void setSpeed(int wpm);",
"public void setSpeed(float n)\n\t{\n\t\tthis.speed = n;\n\t}",
"public void setSpeed(float speed) {\n\t\tif (speed > 1) {\n\t\t\tthrow new IllegalArgumentException(\"speed should be less than 1\");\n\t\t}\n\t\tthis.speed = speed;\n\t}",
"public void setFrequency(float speed) { \n \tmouseJointDef.frequencyHz = speed; \n }",
"public void setSpeed(float speed) {\n this.movementComposer.setSpeed(speed);\n }",
"public void setAddSpeed(float addSpeed)\n {\n this.addSpeed = addSpeed;\n setChanged();\n notifyObservers();\n }",
"public void setSpeed() {\n\t\tthis.ySpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t\tthis.xSpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t}",
"public void setFlySpeed ( float value ) throws IllegalArgumentException {\n\t\texecute ( handle -> handle.setFlySpeed ( value ) );\n\t}",
"protected void speedRefresh() {\r\n\t\t\ttStartTime = System.currentTimeMillis();\r\n\t\t\ttDownloaded = 0;\r\n\t\t}",
"private void updateSpeed(CLocation location) {\n double nCurrentSpeed = 0;\n if (location != null) {\n\n nCurrentSpeed = location.getSpeed();\n Log.d(\"Location speed\", nCurrentSpeed+\"\");\n\n }\n\n Formatter fmt = new Formatter(new StringBuilder());\n fmt.format(Locale.UK, \"%5.1f\", nCurrentSpeed);\n String strCurrentSpeed = fmt.toString();\n strCurrentSpeed = strCurrentSpeed.replace(\" \", \"0\");\n\n\n txt.setText(strCurrentSpeed + \" km/h\");\n\n\n }",
"public double getSpeedPerFrame(){\r\n\t\treturn speed;\r\n\t}",
"public void setYSpeed(int speed){\n ySpeed = speed;\n }",
"public void setSpeed() {\n if (this.equals(null)) {\n this.speedValue=-5;\n }\n }",
"public static void setLastSpeed(float speed) {\n\t\tfloat fakeSpeed = speed;\n\t\tLog.i(TAG, \"SafeSpeed.setLastSpeed()\");\n\t\t\n\t\tif (fakeSpeed < 0)\n\t\t{\n\t\t\tspeedText.setText(\"-.-\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnCurrentSpeed = (float)(fakeSpeed * 2.2369);\n\t\t\tString s = String.format(locale, \"%.1f\", nCurrentSpeed);\n\t\t\tspeedText.setText(s);\n\t\t}\n\t}",
"public static void changeSpeed(int speed) {\n AtlantisConfig.GAME_SPEED = speed;\n getBwapi().setGameSpeed(AtlantisConfig.GAME_SPEED);\n }",
"@Override\n\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\t}"
] | [
"0.786224",
"0.73906785",
"0.7311904",
"0.7285549",
"0.72686464",
"0.70549506",
"0.6983816",
"0.6965656",
"0.6934903",
"0.6932943",
"0.6932173",
"0.6858842",
"0.68533593",
"0.6806432",
"0.67501855",
"0.6738251",
"0.6715811",
"0.6687112",
"0.66740686",
"0.66610396",
"0.66610396",
"0.66564465",
"0.6650224",
"0.66462666",
"0.664527",
"0.66348606",
"0.6567304",
"0.65413433",
"0.6530721",
"0.6527692",
"0.6526039",
"0.65222305",
"0.65115696",
"0.65115696",
"0.6510051",
"0.64854133",
"0.6464113",
"0.64617616",
"0.64279217",
"0.6401977",
"0.6391087",
"0.6384328",
"0.6376522",
"0.6364856",
"0.6358701",
"0.6353166",
"0.633661",
"0.63353986",
"0.6308764",
"0.6305768",
"0.6305768",
"0.6262821",
"0.625777",
"0.6245612",
"0.62422407",
"0.6238367",
"0.6220363",
"0.6214238",
"0.6207243",
"0.6203509",
"0.6193147",
"0.61896086",
"0.6187984",
"0.6186929",
"0.61834687",
"0.6181648",
"0.617511",
"0.6169562",
"0.61667687",
"0.61587995",
"0.61510015",
"0.613315",
"0.6131704",
"0.612849",
"0.612849",
"0.612849",
"0.6126969",
"0.6089941",
"0.6089941",
"0.6088248",
"0.6087471",
"0.6077808",
"0.6071181",
"0.60638887",
"0.6043463",
"0.604319",
"0.6040507",
"0.60400885",
"0.6038139",
"0.60371816",
"0.6033809",
"0.60328484",
"0.60236585",
"0.6020459",
"0.60154194",
"0.6012867",
"0.6002802",
"0.60001904",
"0.5999444",
"0.5996401"
] | 0.7935926 | 0 |
Called when a playlist metadata is changed. | public void onPlaylistMetadataChanged(@NonNull SessionPlayer player,
@Nullable MediaMetadata metadata) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onUpdatedPlaylist() {\n setCurrentTrack();\n //this was implemented so this device could have a view of the playlist\n }",
"@Override\n\tpublic void playlistChanged(MPDStatus mpdStatus, int oldPlaylistVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void playlistChanged(MPDStatus mpdStatus, int oldPlaylistVersion) {\n\t\ttry {\n\t\t\tupdateTrackInfo();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void onMetadataChanged(@Nullable MediaMetadata metadata) {\n }",
"@Override\n public void onPlaylistChanged() {\n for (final MusicStateListener listener : mMusicStateListener) {\n if (listener != null) {\n listener.onPlaylistChanged();\n }\n }\n }",
"public void playlistChanged(ValueChangeEvent e) {\n\t\tselectedPlaylist = e.getNewValue().toString();\n\t\tlogger.info(\"PlayerBean:playlistChanged(): event - selected playlist: \" + selectedPlaylist);\n\t\tpassivePlaylist = playlistMng.getPlaylist(selectedPlaylist);\n\t}",
"@Override\r\n\tpublic void mediaMetaChanged(MediaPlayer mediaPlayer, int metaType)\r\n\t{\n\r\n\t}",
"@Override\n public void onMetaChanged() {\n for (final MusicStateListener listener : mMusicStateListener) {\n if (listener != null) {\n listener.onMetaChanged();\n }\n }\n }",
"@Override\n\tprotected void runPlaylistUpdate() {\n\t\treturn;\n\t}",
"public interface OnPlaylistPreparedListener {\n void OnPlaylistPrepared (ArrayList<Object> autoGeneratedPlaylistMetaDataHashMap, ArrayList<PlaylistMetaData> userGeneratedPlaylistMetaDataHashMap);\n}",
"@Override\n public void onPlayListEdited(PlayList playList) {\n }",
"protected void repositoryMetadataChanged() {\n }",
"@Override\r\n\tpublic void titleChanged(MediaPlayer mediaPlayer, int newTitle)\r\n\t{\n\r\n\t}",
"@Override\r\n\tpublic void mediaParsedChanged(MediaPlayer mediaPlayer, int newStatus)\r\n\t{\n\r\n\t}",
"@Override\r\n\tpublic void mediaChanged(MediaPlayer arg0, libvlc_media_t arg1, String arg2)\r\n\t{\n\t\t\r\n\t}",
"@Override\r\n public void getNextSongAndPlaySuccess(SyncListenerSongInfo syncListenerSongInfo) {\n }",
"@Override\r\n\tpublic void lengthChanged(MediaPlayer mediaPlayer, long newLength)\r\n\t{\n\r\n\t}",
"@Override\r\n\tpublic void pausableChanged(MediaPlayer mediaPlayer, int newSeekable)\r\n\t{\n\r\n\t}",
"public void setPlaylist(Playlist playlist) {\n // store playlist and the mode that we are now having\n data.put(Variable.TEMP_PLAYLIST, playlist);\n // store the mode and the playlist in the data as well\n data.put(Variable.MODE, Mode.ProvidedPlaylist);\n data.put(Variable.ITEM, playlist.getName());\n }",
"private void refreshMetadata(String url) {\n Log.d(LOG_TAG, \"refreshMetadata()\");\n\n final IcyStreamMeta streamMeta = new IcyStreamMeta();\n\n //Set the url\n try {\n\n streamMeta.setStreamUrl(new URL(url));\n } catch (MalformedURLException e) {\n Log.w(LOG_TAG, \"Malformed URL: \" + url);\n return;\n }\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n\n retrieveTimer = new Timer();\n retrieveTimer.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n String songTitle = \"\";\n try {\n //Refresh metadata\n streamMeta.refreshMeta();\n songTitle = new String(streamMeta.getStreamTitle().getBytes(\"ISO-8859-1\"), \"UTF-8\");\n } catch (IOException e) {\n Log.d(LOG_TAG, \"No song title info!\");\n return;\n }\n\n //Send song title to RadioPlayer Fragment\n if (songTitle.length() > 4) {\n Log.d(LOG_TAG, \"Current song: \" + songTitle);\n sendAlert(RadioPlayerFragment.SEND_TITLE, songTitle);\n }\n }\n }, 0, 1000);\n\n }\n }).start();\n\n }",
"@Override\n public void onTrackChange(final RadioStream.TrackInfo trackInfo) {\n }",
"public void onAudioInfoChanged(PlaybackInfo info) {\n }",
"public void updateUI(Playlist playlist) {\n\n this.playlistTitleTextView.setText(playlist.getName());\n this.playlistDescriptionTextView.setText(playlist.getDescription());\n\n ArrayList<String> imageURIs = playlist.getImageURIs();\n\n int currIndex = 0;\n for (String uri : imageURIs) {\n ImageView currImageView = imageViews[currIndex];\n int resourceID = currImageView.getResources().getIdentifier(uri, null, currImageView.getContext().getPackageName());\n currImageView.setImageResource(resourceID);\n currIndex++;\n }\n }",
"void changeMusic(AudioTrack newSong);",
"public void updateTrackDetails() {\n if (mTracks != null && !mTracks.isEmpty()) {\n Track track = mTracks.get(mPlayingIndex);\n if (track != null) {\n mArtistName.setText(track.getArtistName());\n mAlbumName.setText(track.getAlbumName());\n Picasso.with(getActivity()).load(track.getThumbnailImageUrl())\n .into(mAlbumArtWork);\n mTrackName.setText(track.getTrackName());\n mTrackDuration.setText(Utilities.getFormatedTime(30000));\n mNowPlaying = \"#NowPlaying \" + track.getTrackUrl();\n if (mShareActionProvider != null) {\n mShareActionProvider.setShareIntent(createShareNowPlayingIntent());\n }\n }\n }\n }",
"@Override\r\n\tpublic void seekableChanged(MediaPlayer mediaPlayer, int newSeekable)\r\n\t{\n\r\n\t}",
"public void updateMetadata(String Artiste, String Titre, String Show) {\r\n\t if (remoteControlClient != null) {\r\n\t android.media.RemoteControlClient.MetadataEditor editor = remoteControlClient.editMetadata(false);\r\n\t \r\n\t editor.putString(MediaMetadataRetriever.METADATA_KEY_ALBUMARTIST, Artiste);\r\n\t editor.putString(MediaMetadataRetriever.METADATA_KEY_TITLE, Titre);\r\n\t editor.putString(MediaMetadataRetriever.METADATA_KEY_ALBUM, Show);\r\n\t editor.apply();\r\n\t } \r\n\t }",
"@Override\r\n\tpublic void mediaDurationChanged(MediaPlayer mediaPlayer, long newDuration)\r\n\t{\n\r\n\t}",
"@Nullable\n public abstract MediaMetadata getPlaylistMetadata();",
"public void changePlaylistDetails(String token, String playlistId, String newName, Boolean _public, Boolean collaborative) {\n\n PlaylistDetailsPayload playlistDetailsPayload = new PlaylistDetailsPayload(newName, _public, collaborative, null, null);\n\n Call changeDetailsCall = oudApi.changePlaylistDetails(token, playlistId, playlistDetailsPayload);\n\n addCall(changeDetailsCall).enqueue(new FailureSuccessHandledCallback(this) {\n @Override\n public void onResponse(Call call, Response response) {\n super.onResponse(call, response);\n if (!response.isSuccessful()) {\n Log.e(TAG, \"onResponse: \" + response.code());\n return;\n }\n }\n });\n }",
"void fireMetadataAvailable(TorrentId torrentId, Torrent torrent);",
"private void notifyChange(final String what) {\n\t\tif (DEBUG)\n\t\t\tLog.d(TAG, \"notifyChange: what = \" + what);\n\n\t\tIntent i = new Intent(what);\n\t\ti.putExtra(\"id\", getAudioId());\n\t\ti.putExtra(\"track\", getTrackName());\n\t\ti.putExtra(\"artist\", getArtistName());\n\t\ti.putExtra(\"album\", getAlbumName());\n\t\ti.putExtra(\"playing\", isPlaying());\n\t\ti.putExtra(\"isfavorite\", isFavorite());\n\t\tsendStickyBroadcast(i);\n\n\t\t// Update the lockscreen controls\n\t\tupdateRemoteControlClient(what);\n\n\t\tif (what.equals(EVENT_POSITION_CHANGED)) {\n\t\t\treturn;\n\t\t} else if (what.equals(EVENT_META_CHANGED)) {\n\t\t\t// Increase the play count for favorite songs.\n\t\t\tif (!mFavoritesCache.isFavoriteSong(getAudioId(), getTrackHost())) {\n\t\t\t\tmFavoritesCache.addSong(getAudioId(), getTrackHost(),\n\t\t\t\t\t\tgetTrackName(), getAlbumName(), getArtistName());\n\t\t\t}\n\t\t\t// Add the track to the recently played list.\n\t\t\tmRecentsCache.addAlbum(getAlbumId(), getTrackHost(),\n\t\t\t\t\tgetAlbumName(), getArtistName(),\n\t\t\t\t\tMusicUtils.getSongCountForAlbum(this, getAlbumId()),\n\t\t\t\t\tMusicUtils.getReleaseDateForAlbum(this, getAlbumId()));\n\t\t} else if (what.equals(EVENT_QUEUE_CHANGED)) {\n\t\t\tif (isPlaying()) {\n\t\t\t\tsetNextTrack();\n\t\t\t}\n\t\t}\n\n\t\tif (what.equals(EVENT_PLAYSTATE_CHANGED)) {\n\t\t\tmNotificationHelper.updatePlayState(isPlaying());\n\t\t}\n\n\t\t// Share this notification directly with our widgets\n\t\tmAppWidgetSmall.notifyChange(this, what);\n\t\tmAppWidgetLarge.notifyChange(this, what);\n\t\tmAppWidgetLargeAlternate.notifyChange(this, what);\n\t\tmRecentWidgetProvider.notifyChange(this, what);\n\t}",
"public interface MpdPlaylistAdapterIF {\n MpdSongAdapterIF getCurrentSong();\n\n int getPlaylistSize();\n\n MpdSongAdapterIF getSongInfo(int songPosition);\n\n void play(int songPos);\n\n void setListener(MpdPlaylistListenerIF playlistListenerIF);\n\n List<MpdSongAdapterIF> search(String query);\n\n void play(MpdSongAdapterIF mpdSongAdapterIF);\n\n interface MpdPlaylistListenerIF {\n void playlistUpdated(int newLength);\n }\n}",
"@Override\n protected void songPropertyChange(SongSession session, PropertyChangeEvent evt) {\n if (SongSession.PROP_PLAYING.equals(evt.getPropertyName())) {\n SwingExecutor.instance().execute(\n new PlayingUpdater(session, evt.getNewValue()));\n } else if (SongSession.PROP_TEMPOFACTOR.equals(evt.getPropertyName())) {\n SwingExecutor.instance().execute(\n new TempoUpdater(evt.getNewValue()));\n }\n\n }",
"@Override\r\n\tpublic void subItemPlayed(MediaPlayer mediaPlayer, int subItemIndex)\r\n\t{\n\r\n\t}",
"@Override\n public void timeChanged(MediaPlayer mp, long l) {\n }",
"private void updateStationMetadataView(Station station) {\n if (isAdded()) {\n mStationMetadataView.setText(station.getMetadata());\n mStationDataSheetMetadata.setText(station.getMetadata());\n }\n }",
"void onPlaybackStateChange(@PlaybackState int oldState, @PlaybackState int newState);",
"@Override\n public void updateSongValue() {\n\n if (!MusicManager.isPlaying())\n {\n if (newFragAuto !=null)\n {\n newFragAuto.setPlaying(MusicManager.isPlaying());\n }\n playNewSong();\n } else\n {\n MusicManager.pause();\n Log.e(\"UpdateSongVal\", \"AlreadyPlaying\");\n }\n// newFragAuto.updateValues(MusicManager.isPlaying());\n\n }",
"public void setPlaylistName(String name)\n\t{\n\t\tplaylistName = name;\n\t}",
"@Override\n public void onSeekComplete(MediaPlayer mp) {\n }",
"@Override\n public void onSeekComplete(MediaPlayer mp) {\n }",
"public void updateValues() {\n\t\tThread thread = new Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tdo {\n\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (!mp3player.isPaused() && !mp3player.isStopped()) {\n\t\t\t\t\t\t\t\tcurrTime = System.currentTimeMillis() / 1000;\n\t\t\t\t\t\t\t\tcurrentDuration.setText(secToMin((long) (currTime - startTime + playedTime)));\n\t\t\t\t\t\t\t\tupdateSongProgress(currTime - startTime + playedTime);\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\ttry {\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} while (!playlist.isEmpty());\n\t\t\t}\n\t\t});\n\t\tthread.start();\n\n\t}",
"public interface YouTubePlaylistReceiver\n{\n void onPlaylistReceived(List<YouTubePlaylist> youTubePlaylistList);\n\n void onPlaylistNotFound(String playlistId, int errorCode);\n\n void onPlaylistVideoReceived(List<YouTubeVideo> youTubeVideos);\n}",
"@Override\n public void dataReceived(PlayingInfoModel result) {\n }",
"@Override\n public void onSeekComplete(MediaPlayer player) {\n \n }",
"@Override\r\n\tpublic void mediaSubItemAdded(MediaPlayer mediaPlayer, libvlc_media_t subItem)\r\n\t{\n\r\n\t}",
"@Override\r\n\tpublic void subItemFinished(MediaPlayer mediaPlayer, int subItemIndex)\r\n\t{\n\r\n\t}",
"@Override\r\n\tpublic void mediaStateChanged(MediaPlayer mediaPlayer, int newState)\r\n\t{\n\r\n\t}",
"private static void fireListChanged(Object tag)\n {\n // if (DEBUG.Enabled) Log.info(\"fireListChanged: \" + Util.tags(tag));\n \n // if (disableEvents)\n // return;\n // for (MetadataListListener mdl : listeners) {\n // try {\n // mdl.listChanged();\n // } catch (Throwable t) {\n // Log.warn(\"listener update: \" + Util.tags(mdl), t);\n // }\n // }\n }",
"public String updatePlaylist(Playlist playlist) {\n\t\t\n\t\ttry{\n\t\t\t// Create session variable and getting attribute of currentPlaylistID\n\t\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\n\t\t\t\n\t\t\t// Call updatePlaylist method in the PlaylistBusinessInterface, passing the playlist and retrieved attribute of currentPlaylistID\n\t\t\tservice.updatePlaylist(playlist, (int) session.getAttribute(\"currentPlaylistID\"));\n\t\t\t\n\t\t\t// Send user to PlaylistPage\n\t\t\treturn \"PlaylistPage.xhtml\";\n\t\t}\n\t\t// Catch exceptions and send to ErrorPage\n\t\tcatch(Exception e) {\n\t\t\treturn \"ErrorPage.xhtml\";\n\t\t}\n\t}",
"@Override\n\tpublic void streamingServiceListUpdate() {\n\t\t\n\t}",
"@Override\n\tpublic void positionChanged(ModelPositionChangeEvent event) {\n\t\tIPosition position = event.getNewPosition();\n\t\tif(position instanceof SmilAudioPosition) {\t\t\t\n\t\t\tTimeContainer parentContainer = \n\t\t\t\t((SmilAudioPosition)position).getSmilAudioMediaObject().getParentContainer();\n\t\t\tif(parentContainer == lastTimeContainer) return;\n\t\t\tlastTimeContainer = parentContainer;\n\t\t}\t\t\n\t\tsuper.positionChanged(event);\n\t}",
"public void setSavedSongs(Playlist p)\n\t{\n\t\tsavedSongs = p;\n\t}",
"public void addMetadataModificationListener(MetadataModificationListener l){\n modificationListeners.add(l);\n }",
"@Subscribe\n public void onEvent(MediaChangedEvent event) {\n isSyncingData = true;\n\n //TODO: updating and adding or removing.\n mUsersLikedMediaFragment.addOrRemoveMediaContent(event.getMedia());\n mUsersRecentMediaFragment.updateMediaContent(event.getMedia());\n }",
"void onDownloadsChanged();",
"void onDownloadsChanged();",
"public void addSongToPlayList(String playListTitle, String description, String songDirectory) {\n if (!playListPanels.containsKey(playListTitle)) {//if this playlist doesn't exist.\n createPlayList(playListTitle, description);//creating new one\n }\n try {//adding song to playlist\n MP3Info currentSong = new MP3Info(songDirectory);//creating mp3 info file\n AlbumPanel songAlbum = albumPanels.get(currentSong.getAlbum());//getting song's album\n for (SongPanel songPanel : songAlbum.getSongPanels()) {\n if (songPanel.getMp3Info().getTitle().equals(currentSong.getTitle())) {//if we found that song\n playListPanels.get(playListTitle).getPlayListSongs().add(songPanel);//adding to given playlist\n playListPanels.get(playListTitle).updateImage();//updating playlist image\n break;\n }\n }\n } catch (IOException | NoSuchFieldException e) {\n JOptionPane.showMessageDialog(null, \"Error reading mp3 file\", \"An Error Occurred\", JOptionPane.ERROR_MESSAGE);\n }\n }",
"private void populatePlayList()\r\n {\r\n \tCursor songs = playlist.getSongs();\r\n \tcurAdapter = new SimpleCursorAdapter(this, R.layout.song_item, songs, new String[]{Library.KEY_ROWID}, new int[] {R.id.SongText});\r\n \tcurAdapter.setViewBinder(songViewBinder);\r\n \tsetListAdapter(curAdapter);\r\n }",
"@Override\n public void updateNotification(String songUrl, Boolean notiOn, Bitmap albumImage, String artist, String track) {\n\n // A new notification player is only displayed if the device is running on Android API level\n // 21 (LOLLIPOP) or higher.\n if (serviceBound && notiOn && (api_level >= 21)) {\n musicService.initializeMediaSession(songUrl, albumImage, artist, track);\n }\n }",
"protected void audioDataChanged() {\r\n\t\tpv.update();\r\n\t\trepaint(); // is asynchronous\r\n\t}",
"private void setListener() {\n\n mManagerPlay.setmOnSuccessPlayer(new ManagerPlay.OnSuccessPlayer() {\n @Override\n public void onSuccess(Tracks tracks) {\n\n mTxtNameMediaPlayer.setText(checkLimitText(tracks.getTitle(), 15));\n mTxtArtistMediaPlayer.setText(checkLimitText(tracks.getArtist(), 20));\n mManagerPlay.setIsPause(false);\n mImgPause.setImageResource(R.drawable.ic_pause);\n\n if(mManagerPlay.isRepeat()) {\n mImgRepeat.setImageResource(R.drawable.icon_repeat_selected);\n\n } else {\n mImgRepeat.setImageResource(R.drawable.ic_repeat);\n }\n\n if (tracks.getArtwork_url() != null) {\n ImageLoader.getInstance().displayImage(tracks.getArtwork_url(), mImgMediaPlayer);\n }\n }\n });\n\n mViewPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n\n }\n\n @Override\n public void onPageSelected(int position) {\n mTabBar.clickTab(position);\n }\n\n @Override\n public void onPageScrollStateChanged(int state) {\n\n }\n });\n\n mTabBar.setOnClickTabBar(new TabBar.OnClickTabBar() {\n @Override\n public void onClick(int position) {\n mViewPager.setCurrentItem(position);\n }\n });\n }",
"@Test\n public void testChangeMetadata() {\n metaDataProcessor.editMetaData(1, \"color\", \"red\");\n assertTrue(CommandController.getInstance().getCommandQ().poll() instanceof EditUserMetaCommand);\n }",
"@Override\r\n\tpublic void onSeekComplete(MediaPlayer mp) {\n\t\tLog.v(LOGTAG, \"onSeekComplete Called\");\r\n\t}",
"@Override\n\tpublic void settingsChanged(AbstractSettings settings) {\n\t}",
"protected void updateCurrentMedia(final AudioMedia media) {\n if (frameIterator == SilentMediaReader.getInstance()) {\n metadataManager.setMetadata(new SongMetadata(\"silence...\", null, null));\n } else {\n SongMetadata songMetadata = media.getSongMetadata();\n metadataManager.setMetadata(songMetadata);\n }\n }",
"@Override\n public void eventsChanged() {\n }",
"public static void saveSongInNewPlaylist()\n {\n int playlistNumber = (PlaylistXmlFile.getNumberOfPlaylist()+1);\n Artist artist = new Artist (\"Unknown Artist\",1);\n Song song = new Song (JSoundsMainWindowViewController.songName,artist,1,0,findGender(songName));\n PlaylistXmlFile.savePlaylistSongsInDataBase(song,playlistNumber);\n }",
"interface OnPlaybackStateChangeListener {\n /**\n * Called when the state of the player or the playback state of the video changes.\n *\n * @param oldState the old state of the player or the playback of the video\n * @param newState the new state of the player or the playback of the video\n * @see PlaybackState\n */\n void onPlaybackStateChange(@PlaybackState int oldState, @PlaybackState int newState);\n }",
"@Override\n public void onSuccess(StorageMetadata storageMetadata) {\n }",
"@Override\n public void onSuccess(StorageMetadata storageMetadata) {\n }",
"public void onLoadPlaylistFromDialogSelected(List<Track> tracks);",
"@Override\n protected void songSessionChanged(SongSession oldSession, SongSession newSession) {\n logger.log(Level.FINER, \"songSessionChanged(oldSession={0}, newSession={1})\", new Object[]{oldSession, newSession});\n activeSongSession = newSession;\n if (newSession != null) {\n setEnabledOnComponentAndChildren(this, true);\n SwingExecutor.instance().execute(\n new PlayingUpdater(newSession, newSession.isPlaying()));\n logger.log(Level.FINER, \"songSessionChanged(tempo of {0} is {1})\", new Object[]{newSession, newSession.getTempoFactor()});\n SwingExecutor.instance().execute(\n new TempoUpdater(newSession.getTempoFactor()));\n } else {\n conductorPanel.sessionStopped();\n setEnabledOnComponentAndChildren(this, false);\n }\n\n }",
"@Override\n public void onSuccess(StorageMetadata storageMetadata) {\n }",
"public void setMetadata(String metadataKey, MetadataValue newMetadataValue) {\n/* 787 */ this.server.getEntityMetadata().setMetadata(this, metadataKey, newMetadataValue);\n/* */ }",
"@Override\r\n\t\tpublic void onPrepared(MediaPlayer arg0) {\n\t\t\tupdateLayoutListener(1);\t\r\n\t\t}",
"@Override\n\tpublic void receive( Metadata metadata )\n\t{\n\t\tif( metadata.isReset() )\n\t\t{\n\t\t\treset();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmMetadata.add( metadata );\n\t\t\tprocessMetadata( metadata );\n\t\t}\n\t\t\n\t\tmUpdated = true;\n\t}",
"public void onMetadataChanged(android.hardware.radio.RadioMetadata r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.hardware.radio.RadioTuner.Callback.onMetadataChanged(android.hardware.radio.RadioMetadata):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.radio.RadioTuner.Callback.onMetadataChanged(android.hardware.radio.RadioMetadata):void\");\n }",
"private void updateRemoteControlClient(final String what) {\n\t\tif (what.equals(EVENT_META_CHANGED) || what.equals(EVENT_QUEUE_CHANGED)) {\n\t\t\tRemoteControlClient.MetadataEditor ed = mRemoteControlClient\n\t\t\t\t\t.editMetadata(true);\n\t\t\ted.putString(MediaMetadataRetriever.METADATA_KEY_TITLE,\n\t\t\t\t\tgetTrackName());\n\t\t\ted.putString(MediaMetadataRetriever.METADATA_KEY_ARTIST,\n\t\t\t\t\tgetArtistName());\n\t\t\ted.putString(MediaMetadataRetriever.METADATA_KEY_ALBUM,\n\t\t\t\t\tgetAlbumName());\n\t\t\ted.putLong(MediaMetadataRetriever.METADATA_KEY_DURATION, duration());\n\t\t\tBitmap b = getAlbumArt();\n\t\t\tif (b != null) {\n\t\t\t\t// RemoteControlClient wants to recycle the bitmaps thrown at\n\t\t\t\t// it, so we need\n\t\t\t\t// to make sure not to hand out our cache copy\n\t\t\t\tBitmap.Config config = b.getConfig();\n\t\t\t\tif (config == null) {\n\t\t\t\t\tconfig = Bitmap.Config.ARGB_8888;\n\t\t\t\t}\n\t\t\t\tb = b.copy(config, false);\n\t\t\t\ted.putBitmap(MetadataEditor.BITMAP_KEY_ARTWORK, b);\n\t\t\t}\n\t\t\ted.apply();\n\t\t}\n\t\tif (what.equals(EVENT_PLAYSTATE_CHANGED) || what.equals(EVENT_POSITION_CHANGED)\n\t\t\t\t|| what.equals(EVENT_META_CHANGED) || what.equals(EVENT_QUEUE_CHANGED)) {\n\t\t\tint playState = isPlaying() ? RemoteControlClient.PLAYSTATE_PLAYING\n\t\t\t\t\t: RemoteControlClient.PLAYSTATE_PAUSED;\n\t\t\tif (CommonUtils.hasJellyBeanMR2()) {\n\t\t\t\tmRemoteControlClient.setPlaybackState(playState, position(),\n\t\t\t\t\t\t1.0f);\n\t\t\t} else {\n\t\t\t\tmRemoteControlClient.setPlaybackState(playState);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void onPrepared(MediaPlayer mp) {\n Log.d(TAG, \"onPrepared() called\");\n mMediaPlayer.start();\n\n // Notify listeners that a new track has started.\n PreferenceManager.getDefaultSharedPreferences(getApplicationContext())\n .edit()\n .putString(MainActivity.PREF_CURRENT_ALBUM, playListItem.getAlbumName())\n .putString(MainActivity.PREF_CURRENT_ARTIST_NAME, playListItem.getArtistName())\n .putString(MainActivity.PREF_CURRENT_ARTIST_SPOTIFY_ID, playListItem.getArtistId())\n .putString(MainActivity.PREF_CURRENT_TRACK_NAME, playListItem.getTrackName())\n .putString(MainActivity.PREF_CURRENT_TRACK_SPOTIFY_ID, playListItem.getTrackId())\n .putString(MainActivity.PREF_CURRENT_TRACK_URL, playListItem.getTrackUri())\n .putBoolean(MainActivity.PREF_IS_PLAYING, true)\n .commit();\n\n Intent intent = new Intent(TRACK_START_BROADCAST_FILTER);\n intent.putExtra(SpotifyStreamerActivity.KEY_CURRENT_TRACK, playListItem);\n LocalBroadcastManager.getInstance(StreamerMediaService.this).sendBroadcast(intent);\n }",
"public void setOnInfoListener(IMediaPlayer.OnInfoListener l) {\n mOnInfoListener = l;\n }",
"public void addPlaylist(Playlist playlist){\n this.playlists.put(playlist.getName(), playlist);\r\n playlist.getSongs().forEach((title, song) -> {\r\n this.home.addSong((Song) song);\r\n\r\n });\r\n }",
"@Override\n public void onMetadataAvailable(Metadata metadata) {\n if (metadata instanceof ImageMetadata) {\n this.imageListener.onImageAvailable(((ImageMetadata)metadata).getImage());\n }\n }",
"protected void setMetadata(AbstractMetadata metadata) {\n\t\tthis.metadata = metadata;\n\t}",
"interface NowPlayingListener\n{\n\tpublic void nowPlayingSongSet(NowPlayingEvent ev);\n\tpublic void nowPlayingSongCleared(NowPlayingEvent ev);\n}",
"@Override\n public void musicPlayerInfo(WifiP2pInfo info) {\n\n }",
"public interface OnPlayStateChangeListener {\n\n void onPlayStateChange(int playState);\n}",
"@Override\n public void folderChanged(IProject project, ResourceFolder folder, int eventType) {\n }",
"@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n mSongPosition = (mSongPosition + 1) % mSongs.size();\n updateCurrentSong();\n }",
"public void setMetadata ( String metadataKey , MetadataValue newMetadataValue ) {\n\t\texecute ( handle -> handle.setMetadata ( metadataKey , newMetadataValue ) );\n\t}",
"void onMetaData(\n long sessionId,\n MetaDataStatus status,\n DirectBuffer buffer,\n int offset,\n int length);",
"public void setMetaData(MetaData newMetaData);",
"TimelineMeta update(TimelineMeta meta);",
"@FXML\n private void moveSongToPlaylist(ActionEvent event) {\n bllfacade.addSongToPlaylist(selectedPlaylistId, selectedSongId);\n bllfacade.reloadPlaylists();\n init();\n }",
"@EventHandler\n public void OnPlayerMoveEvent(PlayerMoveEvent e)\n {\n this.setLastSeen(e.getPlayer());\n }",
"@Override\n\tpublic void nowPlaying() {\n\t}",
"@Override\n public void viewPagerNotifyDataSetChanged() {\n if (mediaDetails!=null){\n mediaDetails.notifyDataSetChanged();\n }\n }",
"@Override\n protected void onDataChanged() {\n }",
"public void setMetadata(MediaMetadataCompat param1) {\n }"
] | [
"0.7856435",
"0.73470247",
"0.73080474",
"0.6991165",
"0.69441086",
"0.6739886",
"0.6690285",
"0.6540491",
"0.6525728",
"0.65104747",
"0.6280766",
"0.62440014",
"0.6131095",
"0.61265427",
"0.59107685",
"0.5908805",
"0.5866956",
"0.586418",
"0.585486",
"0.58095217",
"0.5758498",
"0.5756015",
"0.5740414",
"0.571614",
"0.5713106",
"0.569297",
"0.56924975",
"0.56851566",
"0.5676922",
"0.56421596",
"0.55673796",
"0.5545093",
"0.54989225",
"0.5480847",
"0.5469211",
"0.5456737",
"0.5449954",
"0.54345715",
"0.54078984",
"0.5397414",
"0.53965956",
"0.53965956",
"0.5384454",
"0.53842103",
"0.53756326",
"0.53545314",
"0.5352026",
"0.5325054",
"0.53189826",
"0.5283585",
"0.5278237",
"0.52657723",
"0.52542996",
"0.52520216",
"0.5234809",
"0.5230025",
"0.5217748",
"0.5217748",
"0.5206915",
"0.52068967",
"0.5195733",
"0.5191251",
"0.5169653",
"0.5168228",
"0.51603484",
"0.5153584",
"0.51484674",
"0.5138245",
"0.5136893",
"0.5136177",
"0.5134678",
"0.5134678",
"0.5132628",
"0.51281977",
"0.5123351",
"0.51200944",
"0.51160747",
"0.5111653",
"0.51090825",
"0.50953424",
"0.50950915",
"0.5088832",
"0.5079591",
"0.50702584",
"0.50666535",
"0.50619715",
"0.50592244",
"0.50591844",
"0.5056842",
"0.5050959",
"0.50413424",
"0.50401795",
"0.5031351",
"0.50259376",
"0.50257033",
"0.50216126",
"0.5013614",
"0.5011954",
"0.5010599",
"0.5004081"
] | 0.8163815 | 0 |
Called when the player's current audio attributes are changed. | public void onAudioAttributesChanged(@NonNull SessionPlayer player,
@Nullable AudioAttributesCompat attributes) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void playerAttributeChange() {\n\n Logger.info(\"HUD Presenter: playerAttributeChange\");\n view.setLives(String.valueOf(player.getLives()));\n view.setMoney(String.valueOf(player.getMoney()));\n setWaveCount();\n }",
"public void onAudioInfoChanged(PlaybackInfo info) {\n }",
"public void setAudioDescriptor( AudioDescriptor audioDescriptor );",
"protected void audioDataChanged() {\r\n\t\tpv.update();\r\n\t\trepaint(); // is asynchronous\r\n\t}",
"public void updateVolume(){\r\n if(currentLoop0) backgroundMusicLoop0.gainControl.setValue(Window.musicVolume);\r\n else backgroundMusicLoop1.gainControl.setValue(Window.musicVolume);\r\n }",
"void onAudioLevel(float level);",
"@Override\r\n\tpublic void lengthChanged(MediaPlayer mediaPlayer, long newLength)\r\n\t{\n\r\n\t}",
"@Override\r\n\tpublic void pausableChanged(MediaPlayer mediaPlayer, int newSeekable)\r\n\t{\n\r\n\t}",
"void changeMusic(AudioTrack newSong);",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\t\t\t\tmediaPlayer.setVolume(arg1, arg1);\n\t\t\t}",
"public void updateVolume() {\n\t\tMixer.Info[] mixerInfos = AudioSystem.getMixerInfo();\n\n\t\tfor (Mixer.Info mixerInfo : mixerInfos) {\n\t\t\tMixer mixer = AudioSystem.getMixer(mixerInfo);\n\t\t\tLine.Info[] lineInfos = mixer.getTargetLineInfo();\n\n\t\t\tfor (Line.Info lineInfo : lineInfos) {\n\t\t\t\ttry {\n\t\t\t\t\tLine line = mixer.getLine(lineInfo);\n\t\t\t\t\tline.open();\n\t\t\t\t\tif (line.isControlSupported(FloatControl.Type.VOLUME)) {\n\t\t\t\t\t\tFloatControl volumeControl = (FloatControl) line.getControl(FloatControl.Type.VOLUME);\n\t\t\t\t\t\tvolumeControl.setValue((float) volume);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void onAudioManagerChangedState() {\n setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);\n }",
"@Override\n\t\t\tpublic void onAudioFocusChange(int arg0) {\n\t\t\t}",
"@Override\r\n\tpublic void mediaMetaChanged(MediaPlayer mediaPlayer, int metaType)\r\n\t{\n\r\n\t}",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tfloat set = (float) progress/100;\n\t\t\t\tLog.v(\"set\", set+\"\");\n\t\t\t\tmMediaPlayer[0].setVolume(set,set);\n\t\t\t}",
"public void volumeAdjust(double delta)\n {\n if(AudioDetector.getInstance().isNoAudio())\n {\n return;\n }\n\n musicPlayer.setVolume(musicPlayer.getVolume() + delta);\n Log.add(\"[MUSIC]\\tVolume adjusted by: \" + delta);\n }",
"@Override\n public void onMetaChanged() {\n for (final MusicStateListener listener : mMusicStateListener) {\n if (listener != null) {\n listener.onMetaChanged();\n }\n }\n }",
"@Override\r\n\tpublic void mediaDurationChanged(MediaPlayer mediaPlayer, long newDuration)\r\n\t{\n\r\n\t}",
"void onPrepared(AudioPlayerIterface mp);",
"protected void updateCurrentMedia(final AudioMedia media) {\n if (frameIterator == SilentMediaReader.getInstance()) {\n metadataManager.setMetadata(new SongMetadata(\"silence...\", null, null));\n } else {\n SongMetadata songMetadata = media.getSongMetadata();\n metadataManager.setMetadata(songMetadata);\n }\n }",
"public void setAudioPlayer(AudioPlayer player) {\n\taudioPlayer = player;\n externalAudioPlayer = true;\n }",
"@Override\r\n\tpublic void seekableChanged(MediaPlayer mediaPlayer, int newSeekable)\r\n\t{\n\r\n\t}",
"private void updateMediaChangeFromSlider(int progress) {\n\t\tplayer.setMediaReachChange(progress / 10);\n\t}",
"@Override\r\n public void updateMixer() {\n playerPosition = mixer.getGlobalCoordinates();\r\n playerOrientation = mixer.getGlobalOrientation();\r\n }",
"@Override\n public void onAudioFocusChange(int focusChange) {\n if (focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT) {\n if (player.isPlaying()) {\n player.pause();\n state = PlaybackStateCompat.STATE_PAUSED;\n }\n // The AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK case means that our app is allowed to continue playing\n // sound but at a lower volume.\n } else if (focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK) {\n // Lost focus for a short time, but it's ok to keep playing\n // at an attenuated level\n if (player.isPlaying()) player.setVolume(0.1f, 0.1f);\n } else if (focusChange == AudioManager.AUDIOFOCUS_GAIN) {\n // The AUDIOFOCUS_GAIN case means we have regained focus resume playback\n if (player == null) initMusicPlayer();\n else if (!player.isPlaying()) {\n player.start();\n state = PlaybackStateCompat.STATE_PLAYING;\n }\n // The AUDIOFOCUS_LOSS case means we've lost audio focus\n // Lost focus for an unbounded amount of time: stop playback and release media player\n } else if (focusChange == AudioManager.AUDIOFOCUS_LOSS) {\n if (player.isPlaying()) player.stop();\n player.release();\n player = null;\n }\n }",
"public void updatePreferences(float musicVol, boolean musicEnabled, float soundVol, boolean soundEnabled) {\n if (musicEnabled) { this.musicVol = musicVol; }\r\n else { this.musicVol = 0; }\r\n if (soundEnabled) { this.soundFxVol = soundVol; }\r\n else { soundFxVol = 0; }\r\n }",
"private void hookWazeRequestAudioFocus(final ClassLoader classLoader) {\n findAndHookMethod(WAZE_SOUNDMANAGER_CLASS_NAME, classLoader, WAZE_AFTER_AUDIO_PLAYS_METHOD, new AudioAware_XC_MethodHook() {\n \t@Override\n protected void beforeHookedMethod(MethodHookParam param) throws Throwable {\n \t\tAudioManager audioManager = this.getAudioManager(param);\n\n \tdebug(\"[START] beforeHookedMethod of \" + param.method.getName());\n \t\tif (null != audioManager) {\n \t\t\tpreviousStreamVolume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC);\n \tint maxStreamVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);\n \taudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, maxStreamVolume, generateSetStreamVolumeFlags());\n \tdebug(\"Updated audio to maximum (\" + maxStreamVolume + \")\");\n }\n \tdebug(\"[END] beforeHookedMethod of \" + param.method.getName());\n }\n });\n }",
"@Override\r\n\tpublic void mediaParsedChanged(MediaPlayer mediaPlayer, int newStatus)\r\n\t{\n\r\n\t}",
"@Override\r\n\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\r\n\t\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\td(\"gain bar progress changed to \" + progress);\r\n\t\t\t\t\talterGain(progress);\r\n\t\t\t\t}",
"public void attributeChanged(Component component, String attr, String newValue, String oldValue);",
"private void audioCBItemStateChanged(java.awt.event.ItemEvent evt) {\n for(AudioVisualMaterial currentAudio : audio){ //iterates through audio array\n currentMaterial = currentAudio; //passes local variable into class variable\n if(audioCB.getSelectedItem() == currentMaterial.getAuthor()){ //if comboBox selection matches an audio material's author\n audioText.setText(currentMaterial.displayInfo()); //display that audio's info in TextArea\n audioImage.setIcon(currentMaterial.getCoverImage()); //display that audio's image\n currentMaterial.setupSoundClip(); //set up sound clip\n currentMaterial.playSoundClip(); //play that audio's soundClip\n }\n if(audioCB.getSelectedItem() != currentMaterial.getAuthor()){ //if comboBox selection does not match an audio material's author\n currentMaterial.setupSoundClip(); //set up sound clip\n //currentMaterial.stopSoundClip(); //stop sound clip\n }\n if(audioCB.getSelectedItem() == SelectAudio.getAuthor()){ //if comboBox selection matches default author\n audioText.setText(\"\"); //clear text\n }\n }\n }",
"private void hookWazeReleaseAudioFocus(final ClassLoader classLoader) {\n findAndHookMethod(WAZE_SOUNDMANAGER_CLASS_NAME, classLoader, WAZE_BEFORE_AUDIO_PLAYS_METHOD, new AudioAware_XC_MethodHook() {\n @Override\n protected void afterHookedMethod(MethodHookParam param) throws Throwable { \t\n \t\tAudioManager mgr = this.getAudioManager(param);\n \tdebug(\"[START] afterHookedMethod of \" + param.method.getName());\n \t\tif (null != mgr) {\n \t\t\tint previousStreamVolume = getPreviousStreamVolume();\n \t\t\tmgr.setStreamVolume(AudioManager.STREAM_MUSIC, previousStreamVolume, generateSetStreamVolumeFlags());\n \tdebug(\"Updated audio to \" + previousStreamVolume);\n }\n \tdebug(\"[END] afterHookedMethod of \" + param.method.getName());\n }\n });\n }",
"public void onUpdatedPlaylist() {\n setCurrentTrack();\n //this was implemented so this device could have a view of the playlist\n }",
"public static void adjustVolume() {\n\t\tfor (BufferedSound sound : sounds.values()) {\n\t\t\tif(sound != null) {\n\t\t\t\tsound.adjustVolume();\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void mediaStateChanged(MediaPlayer mediaPlayer, int newState)\r\n\t{\n\r\n\t}",
"public abstract void updateMixer();",
"public abstract SoundPlayer setVolume(int volume);",
"protected void setAnyAudio() {\n anyAudio = false;\n for (final Datum d : this.datumList) {\n if (d instanceof Cell) {\n final Cell c = (Cell)d;\n if (c.hasAudio()) {\n anyAudio = true;\n return;\n }\n }\n }\n }",
"void updateAudioRoute() {\n if (mode != -1) {\n updateAudioRoute(mode, false);\n }\n }",
"@Override\n public void updateSongValue() {\n\n if (!MusicManager.isPlaying())\n {\n if (newFragAuto !=null)\n {\n newFragAuto.setPlaying(MusicManager.isPlaying());\n }\n playNewSong();\n } else\n {\n MusicManager.pause();\n Log.e(\"UpdateSongVal\", \"AlreadyPlaying\");\n }\n// newFragAuto.updateValues(MusicManager.isPlaying());\n\n }",
"@Override\r\n\tpublic void setAudioFormat(AudioFormat format) {\r\n\r\n\t}",
"@Override\n public void timeChanged(MediaPlayer mp, long l) {\n }",
"private void musicClicked() {\n MatchScreen.setMusicVolume(MatchScreen.getMusicVolume() == 0 ? 0.5f : 0);\n setSoundButtonColor(MatchScreen.getMusicVolume() == 0, music);\n }",
"@Override\n\tpublic void volumeChanged(MPDStatus mpdStatus, int oldVolume) {\n\t\t\n\t}",
"public void updateInformation() {\r\n onFirstCycle = false;\r\n lastLocation = player.getLocation();\r\n preparedAppearance = false;\r\n }",
"void setValueMixerSound(int value);",
"@Override\n public void onAudioFocusChange(int focusState) {\n switch (focusState) {\n case AudioManager.AUDIOFOCUS_GAIN:\n // resume playback\n if (mediaPlayer == null) initMediaPlayer();\n else if (!mediaPlayer.isPlaying()) mediaPlayer.start();\n mediaPlayer.setVolume(1.0f, 1.0f);\n break;\n case AudioManager.AUDIOFOCUS_LOSS:\n // Lost focus for an unbounded amount of time: stop playback and release media player\n if (mediaPlayer.isPlaying()) mediaPlayer.stop();\n mediaPlayer.release();\n mediaPlayer = null;\n break;\n case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT:\n // Lost focus for a short time, but we have to stop\n // playback. We don't release the media player because playback\n // is likely to resume\n if (mediaPlayer.isPlaying()) mediaPlayer.pause();\n break;\n case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK:\n // Lost focus for a short time, but it's ok to keep playing\n // at an attenuated level\n if (mediaPlayer.isPlaying()) mediaPlayer.setVolume(0.1f, 0.1f);\n break;\n }\n }",
"@Override\n public void onBufferingUpdate(MediaPlayer mp, int percent) {\n }",
"@Override\n public void onBufferingUpdate(MediaPlayer mp, int percent) {\n }",
"public void stateChanged(ChangeEvent evt){player.seek(slider.getValue());}",
"@Override\n\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\t}",
"@Override\r\n\tpublic void mediaChanged(MediaPlayer arg0, libvlc_media_t arg1, String arg2)\r\n\t{\n\t\t\r\n\t}",
"@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n Vec3d relativepos = Vec3d.substraction(sourcePosition, playerPosition);\r\n\r\n //Calculate and set the new volume\r\n source.setVolume(getVolumeFromDistance(relativepos.length(), source.getCurrentAudio().getBaseVolume()));\r\n }",
"@Override\n public void onAudioFocusChange(int focusChange) {\n switch (focusChange) {\n case AudioManager.AUDIOFOCUS_GAIN:\n // resume playback\n// if (mMediaPlayer == null) initMediaPlayer(mTracksList.get(mTrackPos));\n// if (mMediaPlayer == null) startCurrentTrack(mTrackPos, true);\n// else if (!mMediaPlayer.isPlaying()) mMediaPlayer.start();\n mMediaPlayer.setVolume(1.0f, 1.0f);\n break;\n case AudioManager.AUDIOFOCUS_LOSS:\n // Lost focus for an unbounded amount of time: stop playback and release media player\n if (mMediaPlayer.isPlaying()) mMediaPlayer.stop();\n mMediaPlayer.release();\n mMediaPlayer = null;\n break;\n case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT:\n // Lost focus for a short time, but we have to stop\n // playback. We don't release the media player because playback\n // is likely to resume\n if (mMediaPlayer.isPlaying()) mMediaPlayer.pause();\n break;\n case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK:\n // Lost focus for a short time, but it's ok to keep playing\n // at an attenuated level\n if (mMediaPlayer.isPlaying()) mMediaPlayer.setVolume(0.1f, 0.1f);\n break;\n }\n }",
"@Override\n public void onSeekComplete() {\n if (info.playing) {\n player.start();\n player.setOnSeekCompletionListener(null);\n } else {\n Log.w(TAG, \"Audio stopping while waiting for loop to re-start\");\n }\n }",
"public void UpdateSounds(mobj_t listener);",
"@Override\n public boolean onInfo(MediaPlayer mp, int what, int extra) {\n return false;\n }",
"@Override\n public boolean onInfo(MediaPlayer mp, int what, int extra) {\n return false;\n }",
"public void setAudioFormat(AudioFormat audioFormat) {\n this.mAudioFormat = audioFormat;\n }",
"private void changeAudioMode(Context context, String senderNumber, String message, AudioManager audioManager) {\n // Retrieves a map of extended data from the intent.\n switch (audioManager.getRingerMode()) {\n case AudioManager.RINGER_MODE_SILENT:\n //audioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n //raiseVolume(audioManager);\n audioManager.setStreamVolume(AudioManager.STREAM_RING, audioManager.getStreamMaxVolume(AudioManager.STREAM_RING), 0);\n break;\n case AudioManager.RINGER_MODE_NORMAL:\n //audioManager.setStreamVolume(AudioManager.STREAM_VOICE_CALL, audioManager.getStreamMaxVolume(AudioManager.STREAM_VOICE_CALL),0);\n audioManager.setStreamVolume(AudioManager.STREAM_RING, audioManager.getStreamMaxVolume(AudioManager.STREAM_RING), 0);\n break;\n case AudioManager.RINGER_MODE_VIBRATE:\n audioManager.setStreamVolume(AudioManager.STREAM_RING, audioManager.getStreamMaxVolume(AudioManager.STREAM_RING), 0);\n break;\n }\n }",
"private void audioManipulatorResetMediaPlayer() {\n\t\tcontroller.audioManipulatorResetMediaPlayer();\n\t}",
"@Override\r\n public void updateMixer() {\n playerPosition = mixer.getGlobalCoordinates();\r\n }",
"@Override\n public void onTrackChange(final RadioStream.TrackInfo trackInfo) {\n }",
"public void setVibrationOn() {\n\n }",
"@Override\n\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\n\t}",
"@Override\n\tpublic void attributeChanged(TGAttribute attribute, Object oldValue,\n\t\t\tObject newValue) {\n gLogger.log(TGLogger.TGLevel.Debug, \"Attribute is changed\");\n\t}",
"public interface IAudioMediaPlayerListener {\n void onLoadAudioDone(int duration);\n void onLoadAudioError();\n void onLoadAudioBuffering(int percent);\n}",
"@Override\n public boolean onInfo(MediaPlayer mp, int what, int extra) {\n\n Log.v(\"FreshAir\", \"onInfo (\" + what + \" - \" + extra + \")\");\n\n switch (what) {\n case 701: //MediaPlayer.MEDIA_INFO_BUFFERING_START:\n text_info.setText(\"Buffering ...\");\n progress_main.setVisibility(View.VISIBLE);\n isPlaying = true; // ie you cant re set the data sourse without\n // stoping first\n break;\n\n case 702: //MediaPlayer.MEDIA_INFO_BUFFERING_END:\n text_info.setText(\"Playing ...\");\n progress_main.setVisibility(View.INVISIBLE);\n isPlaying = true;\n\n default:\n break;\n }\n\n return true; // return true to stop the OS calling 'onError'\n }",
"@Override\n public void soundSourceDegreesUpdate(int selectedItem) {\n \n }",
"@Override\n\tpublic boolean onInfo(MediaPlayer mp, int what, int extra) {\n\t\treturn false;\n\t}",
"@Override\n public void musicPlayerDetails(WifiP2pDevice device) {\n\n }",
"public void update() {\n\t\tfor(String key : actives.keys()) {\n\t\t\tActiveSound snd = actives.get(key);\n\t\t\tsnd.lifespan++;\n\t\t\tif (snd.lifespan > timeLimit) {\n\t\t\t\tcollection.add(key);\n\t\t\t\tsnd.sound.setLooping(snd.id,false); // Will eventually garbage collect\n\t\t\t\tsnd.sound.setVolume(snd.id, 0.0f); \n\t\t\t}\n\t\t}\n\t\tfor(String key : collection) {\n\t\t\tactives.remove(key);\n\t\t}\n\t\tcollection.clear();\n\t\tcurrent = 0;\n\t}",
"public void amplitudeUpdate(AudioHandler handler, float amplitude) {\r\n slrAmplitude.setValue((int) (amplitude * slrAmplitude.getMaximum()));\r\n }",
"public void updateWaveCounter() {\n currentWaveText.setText(\"Current Wave: \" + game.getWaveManager().getCurrentWave());\n }",
"private void setAudioProfilModem() {\n int ringerMode = mAudioManager.getRingerModeInternal();\n ContentResolver mResolver = mContext.getContentResolver();\n Vibrator vibrator = (Vibrator) mContext\n .getSystemService(Context.VIBRATOR_SERVICE);\n boolean hasVibrator = vibrator == null ? false : vibrator.hasVibrator();\n if (AudioManager.RINGER_MODE_SILENT == ringerMode) {\n if (hasVibrator) {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 0);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_VIBRATE);\n /* @} */\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_RINGER,\n AudioManager.VIBRATE_SETTING_ON);\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_NOTIFICATION,\n AudioManager.VIBRATE_SETTING_ON);\n } else {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 1);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);\n /* @} */\n }\n } else if (AudioManager.RINGER_MODE_VIBRATE == ringerMode) {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 1);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_OUTDOOR);\n /* @} */\n }else if (AudioManager.RINGER_MODE_OUTDOOR == ringerMode) {//add by wanglei for outdoor mode\n Settings.System.putInt(mResolver,Settings.System.SOUND_EFFECTS_ENABLED, 1);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);\n }else {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 0);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_SILENT);\n /* @} */\n if (hasVibrator) {\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_RINGER,\n AudioManager.VIBRATE_SETTING_OFF);\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_NOTIFICATION,\n AudioManager.VIBRATE_SETTING_OFF);\n }\n }\n }",
"@Override\n\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\t\tswitch (arg0.getId()) {\n\t\tcase R.id.sb_light:\n\t\t\tSystem.putInt(context.getContentResolver(),\n\t\t\t\t\tSystem.SCREEN_BRIGHTNESS, \n\t\t\t\t\targ1);\n\t\t\tbreak;\n\t\t//设置音量\n\t\tcase R.id.sb_sound:\n\t\t\tif(arg1 != system_sound){\n\t\t\t\taudio.setStreamVolume(AudioManager.STREAM_SYSTEM, arg1, AudioManager.FLAG_PLAY_SOUND);\n\t\t\t\tsystem_sound = arg1;\n\t\t\t}\n\t\t\tFyLog.d(TAG, \"the sound is: \" + arg1);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}",
"public void setPlaybackGainDb(float level);",
"private void initialMusic(){\n\n }",
"@Override\n public void onSeekComplete(MediaPlayer mp) {\n }",
"@Override\n public void onSeekComplete(MediaPlayer mp) {\n }",
"public void setSound(Boolean sound_on){\n this.sound_on = sound_on;\n }",
"public void increseVolume() {\n\t\tvolume++;\n\t\tSystem.out.println(\"MobilePhone当前音量为:\"+volume);\n\t}",
"public void getAudiofocusAndPlay() {\n am = (AudioManager) this.getBaseContext().getSystemService(Context.AUDIO_SERVICE);\n\n //request audio focus\n int result = am.requestAudioFocus(afChangeListener, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN);\n if (result == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {\n PlayerActivity playerActivity = new PlayerActivity();\n myMediaPlayer.start();\n playerActivity.changeSeekbar();\n }\n }",
"@Override\n\t\t\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\t\t\t\tLog.d(this.getClass().getName(), \"percent: \" + percent);\n\t\t\t\tprogressBar.setSecondaryProgress(percent);\n\t\t\t}",
"public static void updateMusic()\r\n\t{\r\n\t\tif ( Settings.isMusicOn() && !musicPlaying() )\r\n\t\t\tstartMusic();\r\n\t\telse if ( !Settings.isMusicOn() && musicPlaying() )\r\n\t\t\tstopMusic();\r\n\t}",
"public synchronized void setAudioFormat(AudioFormat format) {\n currentFormat = format;\n }",
"protected abstract void onPlayerStateChanged(MediaPlayerState playerState);",
"public void setAmplitude(float amplitude) {\n/* 79 */ this.amplitude = amplitude;\n/* */ }",
"@Override\r\n\t\tpublic void onPrepared(MediaPlayer arg0) {\n\t\t\tupdateLayoutListener(1);\t\r\n\t\t}",
"@Override\n public void onStartedRecording(Transaction transaction) {\n setState(State.LISTENING);\n startAudioLevelPoll();\n }",
"private void soundClicked() {\n Sounds.setVolume(Sounds.getVolume() == 0 ? 1 : 0);\n setSoundButtonColor(Sounds.getVolume() == 0, sound);\n }",
"public void setMusicOn(boolean on){\r\n\t\tmusicOn = on;\r\n\t}",
"@Override\n public void onSeekComplete(MediaPlayer player) {\n \n }",
"void setAudioSliderPosition(double audio_position){\n audioSliderPosition.setValue(audio_position);\n }",
"@Override\n\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\t\tseekBarProgress.setSecondaryProgress(percent);\n\t}",
"@Override\n \tpublic void onUpdateVolume(double arg0) {\n \t}",
"public void setAmplitude(float amplitude)\n\t{\n\t\tif (this.modulePlayer != null) {\n\t\t\tthis.modulePlayer.setAmplitude(amplitude);\n\t\t}\n\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n pitch1Change = progress;\n pitchSeek1Value.setText(String.valueOf(pitch1Change));\n }",
"@FXML\n public void fireAudioRenderingEvent() {\n emulator.fireAudioRenderingEvent(audioRenderingCheck.isSelected());\n }",
"@Override\r\n\tpublic void onPrepared(MediaPlayer arg0) {\n\t\tint dur = vid.getDuration();\r\n\t\tduration.setText(dur);\r\n\t}"
] | [
"0.6776539",
"0.67192477",
"0.64023817",
"0.61671776",
"0.6035597",
"0.6031076",
"0.5995818",
"0.5953829",
"0.5941276",
"0.5900224",
"0.5878608",
"0.58620816",
"0.58419394",
"0.58277035",
"0.5807148",
"0.57974756",
"0.57675576",
"0.5726215",
"0.5695208",
"0.56936824",
"0.569122",
"0.5636987",
"0.56369364",
"0.5634011",
"0.56143475",
"0.5596308",
"0.55874044",
"0.55857235",
"0.5545886",
"0.5537711",
"0.553595",
"0.55293477",
"0.5525299",
"0.5517582",
"0.5515203",
"0.55053633",
"0.55010563",
"0.54965013",
"0.54940206",
"0.5471218",
"0.547052",
"0.5468368",
"0.54649144",
"0.5464845",
"0.54566",
"0.5450307",
"0.5445572",
"0.5434408",
"0.5434408",
"0.54206455",
"0.5417823",
"0.5415376",
"0.5414679",
"0.5413196",
"0.54046166",
"0.5401109",
"0.5397973",
"0.5397973",
"0.53883976",
"0.53883433",
"0.5383505",
"0.53765464",
"0.5376124",
"0.5375009",
"0.5373083",
"0.5364201",
"0.53631634",
"0.53424424",
"0.53299737",
"0.53025913",
"0.52983046",
"0.5291431",
"0.5290398",
"0.52845347",
"0.527726",
"0.5276804",
"0.5275581",
"0.5271594",
"0.5260696",
"0.5260696",
"0.52568316",
"0.5252213",
"0.5243419",
"0.52427816",
"0.52390766",
"0.5233441",
"0.5233094",
"0.5228752",
"0.52239037",
"0.52235866",
"0.52226454",
"0.5216512",
"0.5210567",
"0.520736",
"0.52066857",
"0.52045494",
"0.52039427",
"0.5201035",
"0.5198692",
"0.5197095"
] | 0.77333194 | 0 |
Called when the player's subtitle track has new subtitle data available. | public void onSubtitleData(@NonNull SessionPlayer player, @NonNull MediaItem item,
@NonNull TrackInfo track, @NonNull SubtitleData data) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean isNewSubtitleDataAvailable();",
"@Override\n\t\t\t\tpublic void onPrepared(MediaPlayer mediaPlayer) {\n\t\t\t\t\tmediaPlayer.setPlaybackSpeed(1.0f);\n\t\t\t\t\tmVideoView.addTimedTextSource(subtitle_path);\n\t\t\t\t\tmVideoView.setTimedTextShown(true);\n\t\t\t\t\tmVideoView.setVideoLayout(VideoView.VIDEO_LAYOUT_STRETCH, 0);\n\n\t\t\t\t}",
"@Override\n\tpublic void setSubtitle(CharSequence subtitle) {\n\t\t\n\t}",
"public void setSubtitle(String subtitle) {\n\t\tthis.subtitle = subtitle;\n\t}",
"public void setSubtitle(String subtitle) {\n\t\tthis.subtitle = subtitle;\n\t}",
"@Override\r\n\tpublic void subItemFinished(MediaPlayer mediaPlayer, int subItemIndex)\r\n\t{\n\r\n\t}",
"public abstract void decode(SubtitleInputBuffer subtitleInputBuffer);",
"private void updateSubtitle() {\n String subtitle = getString(R.string.subtitle_new_chore);\n ChoreLab choreLab = ChoreLab.get(getActivity());\n int choreCount = choreLab.getChores().size();\n if(choreCount == 0) {\n mSubtitleVisible = true;\n } else {\n mSubtitleVisible = false;\n }\n\n if (!mSubtitleVisible) {\n subtitle = null;\n }\n\n AppCompatActivity activity = (AppCompatActivity) getActivity();\n activity.getSupportActionBar().setSubtitle(subtitle);\n }",
"public String getSubtitle() {\r\n return subtitle;\r\n }",
"@Override\n\t\t\tprotected Result doInBackground () throws Exception {\n\t\t\t\tfinal Map<SubtitleFile, SubtitleFormat> subtitles = serviceProvider.getSubtitleProvider().loadSubtitles(model.getSubtitle());\n\t\t\t\tif (subtitles.isEmpty()) {\n\t\t\t\t\treturn Result.NO_SUBTITLES;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// TODO parameterize strategy\n\t\t\t\t\n\t\t\t\t// TODO set custom dictionaries and locale\n\t\t\t\tfinal SessionParameters parameters = new SessionParameters();\n\t\t\t\tparameters.setLocale(model.getLocale());\n\t\t\t\t\n\t\t\t\t// Actually correct subtitles\n\t\t\t\tserviceProvider.getSessionManager().addSessionListener(model.getStrategy());\n\t\t\t\tserviceProvider.getSessionManager().startSession(parameters);\n\t\t\t\tfor (final SubtitleFile subtitleFile : subtitles.keySet()) {\n\t\t\t\t\tfor (final Subtitle subtitle : subtitleFile) {\n\t\t\t\t\t\tmodel.getStrategy().correct(subtitle);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tserviceProvider.getSessionManager().stopSession();\n\t\t\t\tserviceProvider.getSessionManager().removeSessionListener(model.getStrategy());\n\t\t\t\t\n\t\t\t\t// Save subtitles\n\t\t\t\tfor (final Entry<SubtitleFile, SubtitleFormat> entry : subtitles.entrySet()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tPath target = entry.getKey().getFile();\n\t\t\t\t\t\tif (!model.isOverwrite()) {\n\t\t\t\t\t\t\ttarget = target.getParent().resolve(IOUtils.getFilename(target)\n\t\t\t\t\t\t\t\t\t\t\t+ IOUtils.FILE_EXTENSION_SEPARATOR + serviceProvider.getTranslator().get(KEYS.misc().fileExtension())\n\t\t\t\t\t\t\t\t\t\t\t+ IOUtils.FILE_EXTENSION_SEPARATOR + IOUtils.getFileExtension(target));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tentry.getValue().getWriter().writeFile(entry.getKey(), target);\n\t\t\t\t\t} catch (final IOException e) {\n\t\t\t\t\t\tSwingUtils.showMessageDialog(null, serviceProvider.getTranslator(),\n\t\t\t\t\t\t\t\tnew StandardDialog(TranslationKeys.KEYS.console().app().subtitleWriteError(), entry.getKey().getFile(), e.getMessage()),\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE, 50);\n\t\t\t\t\t\tLG.warning(\"Exception while writing file \" + entry.getKey().getFile() + \": \" + ExceptionUtils.display(e));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn Result.FINISHED;\n\t\t\t}",
"@Override\r\n\tpublic void mediaSubItemAdded(MediaPlayer mediaPlayer, libvlc_media_t subItem)\r\n\t{\n\r\n\t}",
"public void setSubtitle(String subtitle) {\n m_subTitle.setText(subtitle);\n }",
"@Test\n\tpublic void testGetSubtitlesTimeS2() {\n\t\ttry {\n\t\t\tSubtitleSeq seq = SubtitleSeqFactory.getSubtitleSeq();\n\t\t\tseq.addSubtitle(new SubtitleSt(new TimeSt(\"00\", \"00\", \"35\", \"536\"), new TimeSt(\"00\", \"00\", \"37\", \"746\"), \"[whistling]\"));\n\n\t\t\tassertNull(\"Method getSubtitle(Time) not working correctly\", seq.getSubtitle(new TimeSt(\"00\", \"00\", \"30\", \"536\")));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public String getSubtitle() {\n return subtitle;\n }",
"@Override\n public void subscribe() {\n registerLocalObserver();\n\n loadVideos();\n }",
"@Override\r\n\tpublic void subItemPlayed(MediaPlayer mediaPlayer, int subItemIndex)\r\n\t{\n\r\n\t}",
"public void changeSubtitle (final Path newSubtitle) {\n\t\tsetModelProperty(SUBTITLE_PROPERTY, newSubtitle);\n\t}",
"public interface TTSListener{\n public void onTTSCompleted();\n\n}",
"public void setSubtitle(String subtitle) {\r\n this.subtitle = subtitle == null ? null : subtitle.trim();\r\n }",
"public void setSubtitle(String subtitle) {\n this.subtitle = subtitle == null ? null : subtitle.trim();\n }",
"@Override\n\tpublic SubTitleInfo leechSub()\n\t{\n\t\ttry\n\t\t{\n\t\t\tlog.debug(String.format(\"SubLeecher %s - Start - File='%s' ; Language='%s'\", SITE_NAME, this.tvShowInfo.getInputVideoFileName(), this.subLanguage));\n\t\t\t\n\t\t\tString episode = TvShowInfoHelper.getShortNameTypeX(this.tvShowInfo);\n\t\t\tString serie = this.tvShowInfo.getSerie();\n\n\t\t\t// ********************************************\n\t\t\t// 1 - Search Page\n\t\t\t\n\t\t\t// Connect to search page & search the episode\n\t\t\tString searchUrl = TVSUBTITLES_URL + \"/search.php?q=\" + URLEncoder.encode(serie, \"UTF-8\");\n\t\t\tlog.debug(String.format(\"Search for serie '%s' at URL '%s' ...\", serie, searchUrl));\n\t\t\t\n\t\t\tDocument docSearch = Jsoup.connect(searchUrl)\n\t\t\t\t\t.timeout(QUERY_TIME_OUT)\n\t\t\t\t\t.get();\n\t\t\t\n\t\t\t// Iterative through search results\n\t\t\tElement aSerieMatch = null;\n\t\t\tfor (Element aSerie : docSearch.select(\"div[class=left_articles] > ul > li a\"))\n\t\t\t{\n\t\t\t\tString aText = aSerie.text(); \n\t\t\t\tString aSerieCleaned = TvShowInfoHelper.removeYearsFromSerieName(aText);\n\t\t\t\t\n\t\t\t\t// Check if the result text : \n\t\t\t\t// - starts with the desired serie name\n\t\t\t\t// OR\n\t\t\t\t// - ends with the desired serie name\n\t\t\t\t// => select the first one matching only\n\t\t\t\tif (SubLeecherHelper.looseMatchStartsWith(aSerieCleaned, this.tvShowInfo.getSerie(), true)\n\t\t\t\t\t\t|| SubLeecherHelper.looseMatchEndsWith(aSerieCleaned, this.tvShowInfo.getSerie(), true))\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tlog.debug(String.format(\"> Matching result found : '%s'\", aText));\n\t\t\t\t\taSerieMatch = aSerie;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlog.debug(String.format(\"> Non matching result : '%s'\", aText));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (aSerieMatch == null) {\n\t\t\t\t// No episode found => end\n\t\t\t\tlog.debug(\"> No match in result !\");\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// Get the season URL from serie link (add season number at the end of URL)\n\t\t\tString serieUrl = TVSUBTITLES_URL + aSerieMatch.attr(\"href\");\n\t\t\tString seasonsUrl = getSeriePageUrlWithSeason(serieUrl, tvShowInfo.getSeason());\n\t\t\t\t\t\t\n\t\t\t// ********************************************\n\t\t\t// 2 - Season Page\n\t\t\t\t\t\t\n\t\t\t// Connect to season page\n\t\t\tlog.debug(String.format(\"Search for episode '%s' at URL '%s' ...\", episode, seasonsUrl));\n\t\t\tDocument docSeason = Jsoup.connect(seasonsUrl)\n\t\t\t\t\t.timeout(QUERY_TIME_OUT)\n\t\t\t\t\t.header(\"Referer\", serieUrl)\n\t\t\t\t\t.get();\t\n\n\t\t\t// Browse lines in episodes table\n\t\t\tElements trEpisodeList = docSeason.select(\"table[id=table5] tr\");\n\t\t\tString episodeListUrl = null;\n\t\t\tboolean isHeader = true;\n\t\t\tfor (Element trEpisode : trEpisodeList)\n\t\t\t{\n\t\t\t\tif (isHeader) {\n\t\t\t\t\t// Skip header row\n\t\t\t\t\tisHeader = false;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tElement tdEpisode = trEpisode.select(\"td\").first();\n\t\t\t\tif (tdEpisode == null) {\n\t\t\t\t\t// No TD in row => next line\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tElement aEpisode = trEpisode.select(\"a\").first();\n\t\t\t\tif (aEpisode == null) {\n\t\t\t\t\t// No link in row => next line\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Try to analyse the episode title to extract info. Ex : 8x03\n\t\t\t\tString tdEpisodeText = tdEpisode.text();\n\t\t\t\tTvShowInfo tdEpisodeInfo = TvShowInfoHelper.populateTvShowInfoFromFreeText(this.tvShowInfo.getSerie() + \" \" + tdEpisodeText, true);\n\t\t\t\t\n\t\t\t\t// Check if the result text : \n\t\t\t\t// - has the season search \n\t\t\t\t// - has at least one episode search \n\t\t\t\t// => select the first one matching only\n\t\t\t\tif (tdEpisodeInfo != null\n\t\t\t\t\t\t&& tdEpisodeInfo.getSeason() == this.tvShowInfo.getSeason()\n\t\t\t\t\t\t&& TvShowInfoHelper.testIfOneEpisodeMatches(this.tvShowInfo.getEpisodes(), tdEpisodeInfo.getEpisodes()))\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tlog.debug(String.format(\"> Matching result found : '%s'\", tdEpisodeText));\n\t\t\t\t\tepisodeListUrl = TVSUBTITLES_URL + \"/\" + aEpisode.attr(\"href\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlog.debug(String.format(\"> Non matching result : '%s'\", tdEpisodeText));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (episodeListUrl == null) {\n\t\t\t\tlog.debug(\"> No matching result\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\t// ********************************************\n\t\t\t// 3 - Episode List Page\n\t\t\t\n\t\t\t// Connect to episode List page\n\t\t\tlog.debug(String.format(\"Search for subtitles for episode '%s' at URL '%s' ...\", episode, episodeListUrl));\n\t\t\tDocument docEpisode = Jsoup.connect(episodeListUrl)\n\t\t\t\t\t.timeout(QUERY_TIME_OUT)\n\t\t\t\t\t.header(\"Referer\", seasonsUrl)\n\t\t\t\t\t.get();\t\n\t\n\t\t\t// Browse subtitle links in subtitles table\n\t\t\tElement divSubtitleList = docEpisode.select(\"div[class=left_articles]\").first();\n\t\t\tElements aSubtitleList = divSubtitleList.select(\"a[href^=/subtitle-]\");\n\t\t\tList<SubSearchResult> subSearchResults = new ArrayList<SubSearchResult>();\t\t\t\n\t\t\tfor (Element aSubtitle : aSubtitleList)\n\t\t\t{\n\t\t\t\t// Get the flag image (corresponding to the language) \n\t\t\t\tElement imgFlag = aSubtitle.select(\"img[src^=images/flags/]\").first();\n\t\t\t\t\n\t\t\t\t// Check if the image has the right language image\n\t\t\t\t// example : src=images/flags/fr.gif\n\t\t\t\tif (imgFlag == null ||\n\t\t\t\t\t\t!imgFlag.attr(\"src\").toLowerCase().startsWith(\"images/flags/\" + this.subLanguage.toLowerCase().substring(0,2))) {\n\t\t\t\t\t// Language mismatch => next line\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\n\t\t\t\t\n\t\t\t\t// Get the subtitle URL\n\t\t\t\tString subtitleUrl = TVSUBTITLES_URL + aSubtitle.attr(\"href\");\n\t\t\t\t\n\t\t\t\t// Get the episode Release (OPTIONAL)\n\t\t\t\tElement pRelease = aSubtitle.select(\"p[title=release]\").first();\n\t\t\t\tString episodeRelease = \"\";\n\t\t\t\tif (pRelease != null) {\n\t\t\t\t\tepisodeRelease = TvShowInfoHelper.cleanReleaseGroupNamingPart(pRelease.text());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Get the number of downloads (OPTIONAL)\n\t\t\t\tElement pDownloads = aSubtitle.select(\"p[title=downloaded]\").first();\n\t\t\t\tint episodeNbDownload = 0;\n\t\t\t\tif (pDownloads != null) {\n\t\t\t\t\tepisodeNbDownload = Integer.parseInt(pDownloads.text());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsubSearchResults.add(new SubSearchResult(subtitleUrl, this.subLanguage, episodeNbDownload, episodeRelease));\n\t\t\t}\n\t\t\t\n\t\t\t// Evaluate the matching score and sort the subtitle results !\n\t\t\tList<SubSearchResult> scoredSubs = SubLeecherHelper.evaluateScoreAndSort(\n\t\t\t\t\tsubSearchResults, \n\t\t\t\t\tthis.tvShowInfo.getCleanedReleaseGroup(), \n\t\t\t\t\tthis.releaseGroupMatchRequired);\n\t\t\t\n\t\t\tif (scoredSubs == null || scoredSubs.size() == 0) {\n\t\t\t\tlog.debug(\"> No matching result\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\tfor (SubSearchResult scoredSub : scoredSubs)\n\t\t\t{\n\t\t\t\t// ********************************************\n\t\t\t\t// 3 - Subtitle Page\n\t\t\t\t\n\t\t\t\t// Connect to subtitle page\n\t\t\t\tString subtitleUrl = scoredSub.getUrl();\t\t\t\t\n\t\t\t\tlog.debug(String.format(\"Go to subtitle page at URL '%s'\", subtitleUrl));\n\t\t\t\tDocument docSubtitle = Jsoup.connect(subtitleUrl)\n\t\t\t\t\t\t.timeout(QUERY_TIME_OUT)\n\t\t\t\t\t\t.header(\"Referer\", episodeListUrl)\n\t\t\t\t\t\t.get();\n\t\t\t\t\n\t\t\t\tElement aDownload = docSubtitle.select(\"a[href^=download-\").first();\n\t\t\t\tif (aDownload == null) {\n\t\t\t\t\t// No download link\n\t\t\t\t\tlog.debug(\"> Download not available : no download link found in page\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Get the download redirect URL\n\t\t\t\tString downloadRedirectUrl = TVSUBTITLES_URL + \"/\" + aDownload.attr(\"href\");\n\t\t\t\t\n\t\t\t\t// ********************************************\n\t\t\t\t// 4 - Download Redirect Page\n\t\t\t\t\n\t\t\t\tlog.debug(String.format(\"Go to download redirect page at URL '%s' ...\", downloadRedirectUrl));\n\t\t\t\tResponse response = Jsoup.connect(downloadRedirectUrl)\n\t\t\t\t\t\t.timeout(QUERY_TIME_OUT)\n\t\t\t\t\t\t.followRedirects(false)\n\t\t\t\t\t\t.execute();\n\n\t\t\t\tString redirectLocation = response.header(\"Location\");\n\t\t\t\tif (redirectLocation == null) {\n\t\t\t\t\t// No download link\n\t\t\t\t\tlog.debug(\"> Download not available : no download redirect location\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Convert redirection location to URL (escape space char to %20)\n\t\t\t\tString downloadUrl = FileHelper.encodeUnsafeUrl(TVSUBTITLES_URL + \"/\" + redirectLocation);\t\n\t\t\t\t\n\t\t\t\t// ********************************************\n\t\t\t\t// 5 - Download Page\n\t\t\t\t\n\t\t\t\t// Connection to download page\n\t\t\t\tlog.debug(String.format(\"Try to download subtitle at URL '%s' ...\", downloadUrl));\n\n\t\t\t\tbyte[] bytes = null;\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tbytes = Jsoup.connect(downloadUrl)\n\t\t\t\t\t\t\t.timeout(QUERY_TIME_OUT)\n\t\t\t\t\t\t\t.header(\"Referer\", subtitleUrl)\n\t\t\t\t\t\t\t.ignoreContentType(true)\n\t\t\t\t\t\t\t.execute()\n\t\t\t\t\t\t\t.bodyAsBytes();\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch (IllegalCharsetNameException ex) {\n\t\t\t\t\t// Charset not detect : try to force download with charset UTF-8\n\t\t\t\t\tlog.debug(String.format(\"> Charset not detect : try to force download with charset '%s' ...\", ALT_DOWNLOAD_CHARSET));\n\t\t\t\t\tURL url = new URL(downloadUrl);\n\t\t\t\t\tURLConnection connection = url.openConnection();\n\t\t\t\t\tconnection.setRequestProperty(\"Referer\", subtitleUrl);\t\t\t\t\n\t\t\t\t\tInputStream stream = connection.getInputStream();\n\t\t\t\t\tbytes = IOUtils.toByteArray(stream);\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t// Save zipped subtitle file to working folder\n\t\t\t\tString zippedSubFileName = TvShowInfoHelper.prepareZippedSubtitleFileName(this.tvShowInfo, this.subLanguage);\t\t\t\t\n\t\t\t\tString zippedSubPath = this.workingFolderPath + \"/\" + zippedSubFileName;\n\t\t\t\tFileOutputStream fos = new FileOutputStream(zippedSubPath);\n\t\t\t\tfos.write(bytes);\n\t\t\t\tfos.close();\n\t\t\t\tlog.debug(String.format(\"> Zipped subtitle downloaded to path '%s'\", zippedSubPath));\n\t\t\t\t\n\t\t\t\t// Unzip the first subtitle file in ZIP \n\t\t\t\tString subFileName = FileHelper.unZipWorkingFirstSubFile(\n\t\t\t\t\t\tthis.workingFolderPath, \n\t\t\t\t\t\tzippedSubFileName, \n\t\t\t\t\t\tTvShowInfoHelper.prepareBaseOutputFileName(this.tvShowInfo, this.subLanguage));\n\t\t\t\t\n\t\t\t\tif (subFileName == null) {\n\t\t\t\t\t// No download link\n\t\t\t\t\tlog.debug(\"> No subtitle found in ZIP file\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Add ZIP file name to return value for post-processor\n\t\t\t\tList<String> extraFileNames = new ArrayList<String>();\n\t\t\t\textraFileNames.add(zippedSubFileName);\n\t\t\t\t\n\t\t\t\tlog.info(String.format(\"> SubLeecher %s - Subtitle found : Video File='%s' ; Language='%s' ; Subtitle File='%s'\", \n\t\t\t\t\t\tSITE_NAME,\n\t\t\t\t\t\tthis.tvShowInfo.getInputVideoFileName(), \n\t\t\t\t\t\tthis.subLanguage, \n\t\t\t\t\t\tsubFileName));\n\t\t\t\treturn new SubTitleInfo(subFileName, this.subLanguage, extraFileNames);\n\t\t\t}\n\n\t\t\t// No subtitle found => end\n\t\t\tlog.debug(\"No subtitle downloaded\");\n\t\t\treturn null;\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tlog.error(\"Error while trying to sub-leech files with \" + SITE_NAME, e);\n return null;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tlog.debug(String.format(\"SubLeecher %s - End - File='%s' ; Language='%s'\", SITE_NAME, this.tvShowInfo.getInputVideoFileName(), this.subLanguage));\n\t\t}\n\t}",
"@Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider,\n YouTubePlayer youTubePlayer, boolean b) {\n youTubePlayer.cueVideo(dataModel.getYoutube_id());\n }",
"@Override\n\t\tpublic void onPlaying() {\n\t\t\tif (max_length != 0){\n\t\t\t\tnew CountDownTimer(max_length, 1000) {\n\n\t\t\t\t @Override\n\t\t\t\t\tpublic void onTick(long millisUntilFinished) {\n\t\t\t\t \n\t\t\t\t }\n\t\t\n\t\t\t\t @Override\n\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t\tbatteryAsync.cancel(false);\n\t\t\t\t\t\t// We give back the results as a String\n\t\t\t\t\t\tJSONObject temp = new JSONObject(batteryLog);\n\t\t\t\t\t\tString batteryResults = temp.toString();\n\t\t\t\t\t\tIntent returnIntent = new Intent();\n\t\t\t\t\t\treturnIntent.putExtra(\"batteryLog\", batteryResults);\n\t\t\t\t\t\tYoutubePlayerActivity.this.setResult(RESULT_OK,\n\t\t\t\t\t\t\t\treturnIntent);// tells previous activity the\n\t\t\t\t\t\t\t\t\t\t\t\t// test was completed correctly\n\t\t\t\t\t\tContext context = getApplicationContext();\n\t\t\t\t\t\tCharSequence text = \"Max video length reached\";\n\t\t\t\t\t\tint duration = Toast.LENGTH_LONG;\n\t\t\t\t\t\tToast.makeText(context, text, duration).show();\n\t\t\t\t\t\tfinish();\n\t\t\t\t }\n\t\t\t\t}.start();\n\t\t\t}\n\t\t}",
"public void setSubtitle(@Nullable String subtitle) {\n this.subtitle = subtitle;\n }",
"public void updateTrackDetails() {\n if (mTracks != null && !mTracks.isEmpty()) {\n Track track = mTracks.get(mPlayingIndex);\n if (track != null) {\n mArtistName.setText(track.getArtistName());\n mAlbumName.setText(track.getAlbumName());\n Picasso.with(getActivity()).load(track.getThumbnailImageUrl())\n .into(mAlbumArtWork);\n mTrackName.setText(track.getTrackName());\n mTrackDuration.setText(Utilities.getFormatedTime(30000));\n mNowPlaying = \"#NowPlaying \" + track.getTrackUrl();\n if (mShareActionProvider != null) {\n mShareActionProvider.setShareIntent(createShareNowPlayingIntent());\n }\n }\n }\n }",
"public void onUpdatedPlaylist() {\n setCurrentTrack();\n //this was implemented so this device could have a view of the playlist\n }",
"public String getSubtitle();",
"@Override\n\tpublic void setSubtitle(int resId) {\n\t\t\n\t}",
"@Override\r\n\tpublic void titleChanged(MediaPlayer mediaPlayer, int newTitle)\r\n\t{\n\r\n\t}",
"@Override\n public void initTTSPlayer() {\n Log.e(\"test_TTS\", \"initTTSPlayer\");\n }",
"@Override\n public void initTTSPlayer() {\n Log.e(\"test_TTS\", \"initTTSPlayer\");\n }",
"@Override\n public void resumeTTS() {\n Log.e(\"test_TTS\", \"resumeTTS\");\n }",
"@Override\n public void resumeTTS() {\n Log.e(\"test_TTS\", \"resumeTTS\");\n }",
"@Test\n\tpublic void testGetSubtitlesTimeS1() {\n\t\ttry {\n\t\t\tSubtitleSeq seq = SubtitleSeqFactory.getSubtitleSeq();\n\t\t\tseq.addSubtitle(new SubtitleSt(new TimeSt(\"00\", \"00\", \"35\", \"536\"), new TimeSt(\"00\", \"00\", \"37\", \"746\"), \"[whistling]\"));\n\t\t\tseq.addSubtitle(new SubtitleSt(new TimeSt(\"00\", \"01\", \"03\", \"188\"), new TimeSt(\"00\", \"01\", \"05\", \"732\"), \"[Winnie the Pooh theme song]\"));\n\t\t\tseq.addSubtitle(new SubtitleSt(new TimeSt(\"00\", \"01\", \"13\", \"407\"), new TimeSt(\"00\", \"01\", \"16\", \"326\"), \"[male narrator] This could be\\nthe room of any small boy.\"));\n\t\t\tseq.addSubtitle(new SubtitleSt(new TimeSt(\"00\", \"01\", \"16\", \"577\"), new TimeSt(\"00\", \"01\", \"18\", \"954\"), \"But, in fact, it's not.\"));\n\t\t\tseq.addSubtitle(new SubtitleSt(new TimeSt(\"00\", \"01\", \"19\", \"079\"), new TimeSt(\"00\", \"01\", \"24\", \"459\"), \"It is the room of one young boy\\nin particular named Christopher Robin.\"));\n\t\t\tseq.addSubtitle(new SubtitleSt(new TimeSt(\"00\", \"01\", \"24\", \"585\"), new TimeSt(\"00\", \"01\", \"27\", \"713\"), \"Now, Christopher Robin\\nhas a very active imagination,\"));\n\t\t\tseq.addSubtitle(new SubtitleSt(new TimeSt(\"00\", \"01\", \"27\", \"838\"), new TimeSt(\"00\", \"01\", \"31\", \"425\"), \"not to mention the uncanny ability\\nto collect things.\"));\n\t\t\tseq.addSubtitle(new SubtitleSt(new TimeSt(\"00\", \"01\", \"31\", \"550\"), new TimeSt(\"00\", \"01\", \"35\", \"053\"), \"Big things. Small things. Sticky things.\"));\n\t\t\tseq.addSubtitle(new SubtitleSt(new TimeSt(\"00\", \"01\", \"35\", \"179\"), new TimeSt(\"00\", \"01\", \"38\", \"974\"), \"But his favourite things\\nare his stuffed animals.\"));\n\t\t\tseq.addSubtitle(new SubtitleSt(new TimeSt(\"00\", \"01\", \"39\", \"308\"), new TimeSt(\"00\", \"01\", \"41\", \"602\"), \"Ah! There they are now.\"));\n\n\t\t\tSubtitleSt expected = new SubtitleSt(new TimeSt(\"00\", \"01\", \"24\", \"585\"), new TimeSt(\"00\", \"01\", \"27\", \"713\"), \"Now, Christopher Robin\\nhas a very active imagination,\");\n\t\t\t\n\t\t\tassertTrue(\"Method getSubtitle(Time) not working correctly\", areEqual(expected, seq.getSubtitle(new TimeSt(\"00\", \"01\", \"25\", \"500\"))));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n public void getNextSongAndPlaySuccess(SyncListenerSongInfo syncListenerSongInfo) {\n }",
"public abstract Subtitle createSubtitle();",
"@Override\n public void releaseTTSPlayer() {\n Log.e(\"test_TTS\", \"releaseTTSPlayer\");\n }",
"@Override\n public void releaseTTSPlayer() {\n Log.e(\"test_TTS\", \"releaseTTSPlayer\");\n }",
"@Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider,\n YouTubePlayer youTubePlayer, boolean b) {\n youTubePlayer.cueVideo(finalUrl);\n }",
"@Override\r\n\t\tpublic void onVideoPlayComplete() {\n\t\t\tLog.d(TAG, \"onVideoPlayComplete===========\");\r\n\t\t\tLog.d(TAG, \"mPlayBeginTime is \" + mPlayBeginTime.getText().toString() + \"===\" + \"mPlayEndTime is :\" + mPlayEndTime.getText().toString());\r\n\r\n\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_SEEKBAR_OP);\r\n\t\t\tsendPlayEventBroadCast(mCurrIndex, COMPLETE);\r\n\t\t}",
"@Override\n public void onTrackChange(final RadioStream.TrackInfo trackInfo) {\n }",
"@Override\n public void dataReceived(PlayingInfoModel result) {\n }",
"@Test\n\tpublic void testGetSubtitlesTimeS3() {\n\t\ttry {\n\t\t\tSubtitleSeq seq = SubtitleSeqFactory.getSubtitleSeq();\n\t\t\tseq.addSubtitle(new SubtitleSt(new TimeSt(\"00\", \"01\", \"31\", \"550\"), new TimeSt(\"00\", \"01\", \"35\", \"053\"), \"Big things. Small things. Sticky things.\"));\n\t\t\tseq.addSubtitle(new SubtitleSt(new TimeSt(\"00\", \"01\", \"35\", \"179\"), new TimeSt(\"00\", \"01\", \"38\", \"974\"), \"But his favourite things\\nare his stuffed animals.\"));\n\t\t\tseq.addSubtitle(new SubtitleSt(new TimeSt(\"00\", \"01\", \"39\", \"308\"), new TimeSt(\"00\", \"01\", \"41\", \"602\"), \"Ah! There they are now.\"));\n\n\t\t\tassertNull(\"Method getSubtitle(Time) not working correctly\", seq.getSubtitle(new TimeSt(\"00\", \"01\", \"42\", \"602\")));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public synchronized void resetSubtitleTextPairs() {\r\n subtitleTextPairs = null;\r\n }",
"protected void addTracks(List<NetSubtitle> subtitles) {\n lSubsWithTranslations.get(0).addAll(subtitles);\n }",
"@Override\r\n public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer player, boolean wasRestored) {\r\n player.setPlayerStateChangeListener(playerStateChangeListener);\r\n player.setPlaybackEventListener(playbackEventListener);\r\n/** Start buffering **/\r\n if (!wasRestored) {\r\n player.cueVideo(VIDEO_ID);\r\n }\r\n }",
"public void addSubtitle(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), SUBTITLE, value);\r\n\t}",
"@Override\r\n\t\tpublic void onVideoPlayInfoNotify(int infoCode) {\n\t\t\tUtils.printLog(TAG, \"onVideoPlayInfoNotify infoCode=\"+infoCode);\r\n\t\t\tif(infoCode == CommonConst.GET_DATA_TIMEOUT){ //WJ\r\n\t\t\t\tmVideoPlayerHander.removeMessages(DISMISS_DIALOG_FOR_TIMEOUT);\r\n\t\t\t\tmVideoPlayerHander.sendEmptyMessageDelayed(DISMISS_DIALOG_FOR_TIMEOUT, 30000);\r\n\t\t\t Log.d(TAG,\"send time out message 30s later\");\r\n\t\t\t}\r\n\t\t\tif (infoCode == CommonConst.media_player_buffering) {\r\n\t\t\t\tmVideoPlayerHander.sendEmptyMessage(SHOW_WAIT_DIALOG);\r\n\t\t\t\tmVideoPlayerHander.removeMessages(DISMISS_DIALOG_FOR_TIMEOUT);\r\n\t\t\t\tmVideoPlayerHander.sendEmptyMessageDelayed(DISMISS_DIALOG_FOR_TIMEOUT, 30000);\r\n\t\t\t Log.d(TAG,\"send time out message 30s later\");\r\n\t\t\t} else if (infoCode == CommonConst.media_player_buffered) {\r\n\t\t\t\tmVideoPlayerHander.removeMessages(DISMISS_DIALOG_FOR_TIMEOUT);\r\n\t\t\t\tLog.d(TAG,\"remove time out message 30s later\");\r\n\t\t\t\tmVideoPlayerHander.sendEmptyMessage(DISSMISS_WAIT_DIALOG);\r\n\r\n\t\t\t} else if (infoCode == CommonConst.media_player_subtitle_update) {\r\n\t\t\t\tString subtitle = mVideoContrl.getCurrentSubtitleText();\r\n\t\t\t\tUtils.printLog(TAG, \"setsubtiteltext = \" + subtitle);\r\n\t\t\t\tmSubtitleTextView.setText(subtitle);\r\n\t\t\t} else if (infoCode == CommonConst.media_player_subtitle_null) {\r\n\t\t\t\tmSubtitleTextView.setText(\"\");\r\n\r\n\t\t\t} else if(infoCode == ErrorConsts.media_player_getsubtitleinfo_mtk){\r\n//\t\t\t\tint subnum = mVideoContrl.getSubtitleNms();\r\n\t\t\t\tLog.d(TAG,\"now get mtk subtitle info get\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\telse if (infoCode == CommonConst.media_player_startplayer_firstframe) {\r\n\t\t\t\tmSurfaceView.setBackgroundColor(getResources().getColor(R.color.transparent_background));\r\n\t\t\t\tif(clienttype.contains(\"CN\")||clienttype.contains(\"HK\")){\r\n\t\t\t//\tif (splitArrayStrings.length<2 || splitArrayStrings[1] == null || splitArrayStrings[1].equals(\"CN\") || splitArrayStrings[1].equals(\"HK\")) // now\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// is\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CN\r\n\t\t\t\t\tLog.d(TAG, \"now is CN method======\");\r\n\r\n\t\t\t\t\tsetTVToFullScreen(); // add here for 小窗口播放问�?20151027\r\n\t\t\t\t\t// setCNScreenMode();\r\n\t\t\t\t\t// refreshPicMode();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tLog.d(TAG, \"now is EM method======\");\r\n\t\t\t\t\tsetTVToFullScreen(); // add here for 小窗口播放问�?20151027\r\n\t\t\t\t\t// setEMScreenMode();\r\n\t\t\t\t\t// refreshPicMode();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (mVideoContrl != null && mVideoContrl.isMediaPlayerPrepared() && mTvmanager != null) {\r\n\t\t\t\t\tint dolbyvision = mVideoContrl.isDolbyVision(mTvmanager);\r\n\t\t\t\t\tint isdts = mVideoContrl.isDTS();\r\n\t\t\t\t\tLog.d(TAG, \"-------------dolby=\"+dolbyvision); //for video\r\n\t\t\t\t\tLog.d(TAG, \"-------------isdts=\"+isdts); //for audio\r\n\t\t\t\t\tif(dolbyvision == CommonConst.VIDEO_DOBBY_VISION){//2 dobbyvision\r\n\t\t\t\t\t\tUtils.printLog(TAG, \"Current audio is dobby vision\");\r\n\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_DOLBY_PLUS_IMAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (isdts == CommonConst.STREAM_DOLBY) {//1 --audio AC3 //open here for 938 96947\r\n\t\t\t\t\t\tUtils.printLog(TAG, \"Current audio is DOLBY\");\r\n\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_DOLBY_IMAGE);\r\n\t\t\t\t\t}else if (isdts == CommonConst.STREAM_DOLBY_PLUS) {//2 audio_EAC3\r\n\t\t\t\t\t\tUtils.printLog(TAG, \"Current audio is DOLBY_plus\");\r\n\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_DOLBY_IMAGE);\r\n\t\t\t\t\t}else if (isdts == CommonConst.STREAM_DTS) {//3\r\n\t\t\t\t\t\tUtils.printLog(TAG, \"Current audio is DTS\");\r\n\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_DTS_IMAGE);\r\n\t\t\t\t\t}else if (isdts == CommonConst.STREAM_DTSHD_MASTER_AUDIO) {//4\r\n\t\t\t\t\t\t\tUtils.printLog(TAG, \"Current audio is DTS_MASTER_AUDIO)\");\r\n\t\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_DTSHD_MASTER_AUDIO_IMAGE);\r\n\t\t\t\t\t}else if (isdts == CommonConst.STREAM_DTS_EXPRESS) {//5\r\n\t\t\t\t\t\t\tUtils.printLog(TAG, \"Current audio is DTS_EXPRESS\");\r\n\t\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_DTS_EXPRESS_IMAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t}\r\n\t\t\t\tplayStatus = PLAYING;\r\n\t\t\t\tdmrSetPlayStatus(playStatus);\r\n\t\t\t\tsendPlayEventBroadCast(mCurrIndex,playStatus);\r\n\r\n\t\t\t}else if(infoCode == CommonConst.unknown_video_format){\t\r\n\t\t\t\tmMediaHanler.sendEmptyMessage(infoCode);\t\r\n\t\t\t}else if(infoCode == CommonConst.unknown_audio_format){\r\n\t\t\t\tmMediaHanler.sendEmptyMessage(infoCode);\r\n\t\t\t}else {\r\n\t\t\t\tif (infoCode == CommonConst.media_player_not_seekable) {\r\n\t\t\t\t\tmIsSeeking = false;\r\n\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(DISSMISS_WAIT_DIALOG);\r\n\t\t\t\t}\r\n\t\t\t\tmMediaHanler.removeMessages(infoCode);\r\n\t\t\t\tmMediaHanler.sendEmptyMessageDelayed(infoCode, 500);\r\n\t\t\t} \r\n\t\t}",
"protected String subtitle () { return null; }",
"private void initVideoView(Context context) {\n IjkMediaPlayer.loadLibrariesOnce(null);\n IjkMediaPlayer.native_profileBegin(\"libijkplayer.so\");\n\n mAppContext = context.getApplicationContext();\n mActivity = (Activity) context;\n if (mActivity != null) {\n this.mBrightness = mActivity.getWindow().getAttributes().screenBrightness;\n }\n this.mAudioManager = (AudioManager) mAppContext.getSystemService(Context.AUDIO_SERVICE);\n this.mVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);\n if (mMediaController != null) {\n mMediaController.setVideoView(this);\n }\n screenWidthPixels = getScreenWidth(context);\n\n setRender(mCurrentRender);\n\n mVideoWidth = 0;\n mVideoHeight = 0;\n // REMOVED: getHolder().addCallback(mSHCallback);\n // REMOVED: getHolder().setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);\n setFocusable(true);\n setFocusableInTouchMode(true);\n requestFocus();\n // REMOVED: mPendingSubtitleTracks = new Vector<Pair<InputStream, MediaFormat>>();\n setCurrentState(STATE_IDLE);\n mTargetState = STATE_IDLE;\n\n subtitleDisplay = new TextView(context);\n subtitleDisplay.setTextSize(16);\n subtitleDisplay.setShadowLayer(3, 5, 5, getResources().getColor(R.color.black));\n subtitleDisplay.setGravity(Gravity.CENTER);\n subtitleDisplay.setTextColor(getResources().getColor(R.color.white));\n// subtitleDisplay.setBackgroundResource(R.color.red);\n LayoutParams layoutParams_txt = new LayoutParams(\n LayoutParams.MATCH_PARENT,\n LayoutParams.WRAP_CONTENT,\n Gravity.BOTTOM);\n addView(subtitleDisplay, layoutParams_txt);\n }",
"@Override\n public String getSubtitle() {\n return null;\n }",
"@Override\r\n\tpublic void endOfSubItems(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}",
"public com.google.protobuf.ByteString\n getSubtitleRefBytes() {\n java.lang.Object ref = subtitleRef_;\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 subtitleRef_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public void onInitializationSuccess(Provider provider, YouTubePlayer player, boolean wasRestored) {\n player.setPlayerStateChangeListener(playerStateChangeListener);\n player.setPlaybackEventListener(playbackEventListener);\n/** Start buffering **/\n if (!wasRestored) {\n player.cueVideo(VIDEO_ID);\n }\n }",
"public void setSubtitle(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), SUBTITLE, value);\r\n\t}",
"public void addSubtitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), SUBTITLE, value);\r\n\t}",
"public com.google.protobuf.ByteString\n getSubtitleRefBytes() {\n java.lang.Object ref = subtitleRef_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subtitleRef_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void releaseOutputBuffer(SubtitleOutputBuffer subtitleOutputBuffer) {\n subtitleOutputBuffer.clear();\n this.availableOutputBuffers.add(subtitleOutputBuffer);\n }",
"public java.lang.String getSubtitleRef() {\n java.lang.Object ref = subtitleRef_;\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 subtitleRef_ = s;\n return s;\n }\n }",
"@Override\n\tpublic CharSequence getSubtitle() {\n\t\treturn null;\n\t}",
"protected void audioDataChanged() {\r\n\t\tpv.update();\r\n\t\trepaint(); // is asynchronous\r\n\t}",
"public void onTick(long millisUntilFinished) {\n\n t1.speak(String.valueOf(millisUntilFinished/1000),TextToSpeech.QUEUE_ADD, null);\n while(t1.isSpeaking());\n }",
"@Override\n public void updatePlayer() {\n\n // If the service has disconnected, the SSMusicService is restarted.\n if (!serviceBound) {\n setUpAudioService(); // Sets up the SSMusicService.\n }\n\n else {\n\n // If the currentTimer is between 0 - TIMEOUT_VALUE, it indicates that a song is\n // currently being prepared for playback. Signals the SSPlayerFragment to display the\n // progress indicator if currently active.\n if ((currentTimer > 0) && (currentTimer <= TIMEOUT_VALUE)) {\n stopSongPrepare(false);\n }\n\n // The SSPlayerFragment is updated of the current song status and max song duration via\n // SSMusicService & SSMusicEngine.\n musicService.updatePlayer();\n }\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void onLoadLiveTV(String result) {\n\n\t\t\t\t\t\t\t\t}",
"private void setStatus(CharSequence subTitle) {\n getSupportActionBar().setSubtitle(subTitle);\n //textViewStatus.setText(subTitle);\n }",
"@Override\n public void pauseTTS() {\n Log.e(\"test_TTS\", \"pauseTTS\");\n }",
"@Override\n public void pauseTTS() {\n Log.e(\"test_TTS\", \"pauseTTS\");\n }",
"public void onTick(long millisUntilFinished) {\n\n t1.speak(String.valueOf(millisUntilFinished/1000),TextToSpeech.QUEUE_ADD, null);\n while(t1.isSpeaking());\n }",
"public void onTick(long millisUntilFinished) {\n\n t1.speak(String.valueOf(millisUntilFinished/1000),TextToSpeech.QUEUE_ADD, null);\n while(t1.isSpeaking());\n }",
"private void updateNewsTicker() {\n createExchangeLabel();\n }",
"@Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider,\n YouTubePlayer youTubePlayer, boolean b) {\n youTubePlayer.loadVideo(videoId);\n }",
"@Override\n\tpublic void nowPlaying() {\n\t}",
"public java.lang.String getSubtitleRef() {\n java.lang.Object ref = subtitleRef_;\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 subtitleRef_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public static void addSubtitle(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, SUBTITLE, value);\r\n\t}",
"@Override\n public void onSeekComplete(MediaPlayer player) {\n \n }",
"public void onTick(long millisUntilFinished) {\n\n t1.speak(String.valueOf(millisUntilFinished/1000),TextToSpeech.QUEUE_ADD, null);\n while(t1.isSpeaking());\n }",
"@Override\r\n\tpublic void onPrepared(MediaPlayer arg0) {\n\t\tint dur = vid.getDuration();\r\n\t\tduration.setText(dur);\r\n\t}",
"@Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer youTubePlayer, boolean b) {\n youTubePlayer.loadVideos(videoIdList);\n }",
"@Override\r\n\t\tpublic void onPrepared(MediaPlayer arg0) {\n\t\t\tupdateLayoutListener(1);\t\r\n\t\t}",
"@Override\n public void onSeekComplete() {\n if (info.playing) {\n player.start();\n player.setOnSeekCompletionListener(null);\n } else {\n Log.w(TAG, \"Audio stopping while waiting for loop to re-start\");\n }\n }",
"@Override\n public void onSeekComplete(MediaPlayer mp) {\n }",
"@Override\n public void onSeekComplete(MediaPlayer mp) {\n }",
"public static void addSubtitle( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, SUBTITLE, value);\r\n\t}",
"public void onAudioInfoChanged(PlaybackInfo info) {\n }",
"public void dataReceived(String s) {\n dataParsed(TwitchJSONParser.streamJSONtoArrayList(s));\n }",
"@Override\n\tpublic void onInitializationSuccess(Provider provider, YouTubePlayer player,\n\t\t\tboolean wasRestored) {\n\t\tplayer.setPlayerStateChangeListener(playerStateChangeListener);\n\t\tplayer.setPlaybackEventListener(playbackEventListener);\n\n\t\t/** Start buffering **/\n\t\tif (!wasRestored) {\n\t\t\tplayer.cueVideo(\"sjOfxnlGAF4\");\n\t\t}\n\t}",
"@Override\n public void playEnd() {\n }",
"public void removeAllSubtitle() {\r\n\t\tBase.removeAll(this.model, this.getResource(), SUBTITLE);\r\n\t}",
"private void notifyTtsCompleted()\n {\n //if(resources.getTtsCallbackUrl().compareTo())\n RequestDispatcher dispatcher = new RequestDispatcher(this);\n dispatcher.execute(resources.getTtsCallbackUrl(), \"\", \"\", \"true\");\n Intent i = new Intent(\"ttsCompleted-event\");\n LocalBroadcastManager.getInstance(myContext).sendBroadcast(i);\n }",
"public void handleTickReceived() {\n if (this.mVisible) {\n updateIndication();\n }\n }",
"@Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer player, boolean wasRestored) {\n player.setPlayerStateChangeListener(playerStateChangeListener);\n player.setPlaybackEventListener(playbackEventListener);\n /** Start buffering **/\n if (!wasRestored) {\n player.loadVideo(videoKEY);\n }\n }",
"public void onTick(long millisUntilFinished) {\n\n t1.speak(String.valueOf(millisUntilFinished/1000),TextToSpeech.QUEUE_ADD, null);\n while(t1.isSpeaking());\n }",
"@Override\r\n public void onAllTracksEnded() {\r\n }",
"@Override\n public void onTracksChanged(TrackGroupArray trackGroups, TrackSelectionArray trackSelections) {\n txtName.setText(\"Playing: \" + getVideoName()[exoPlayerInstance.getCurrentWindowIndex()].toUpperCase());\n }",
"void subscribe(Player player);",
"@Override\n public void onVideoEnd() {\n super.onVideoEnd();\n }",
"@Test\n\tpublic void testLoad1() {\n\t\ttry {\n\t\t\tSubtitleSeq seq = SubtitleSeqFactory.loadSubtitleSeq(\"src/sample1Load.srt\");\n\t\t\t\n\t\t\t\n\t\t\tLinkedList<Subtitle> expected = new LinkedList<Subtitle>();\n\t\t\texpected.insert(new SubtitleSt(new TimeSt(\"00\", \"02\", \"17\", \"040\"), new TimeSt(\"00\", \"02\", \"18\", \"724\"), \"Monsieur Rom...\"));\n\t\t\texpected.insert(new SubtitleSt(new TimeSt(\"00\", \"02\", \"25\", \"120\"), new TimeSt(\"00\", \"02\", \"26\", \"531\"), \"Opar.\"));\n\t\t\texpected.insert(new SubtitleSt(new TimeSt(\"00\", \"02\", \"27\", \"520\"), new TimeSt(\"00\", \"02\", \"29\", \"409\"), \"INHALES DEEPLY\"));\n\t\t\texpected.insert(new SubtitleSt(new TimeSt(\"00\", \"02\", \"29\", \"480\"), new TimeSt(\"00\", \"02\", \"31\", \"721\"), \"We found it.\"));\n\t\t\texpected.insert(new SubtitleSt(new TimeSt(\"00\", \"02\", \"40\", \"160\"), new TimeSt(\"00\", \"02\", \"41\", \"446\"), \"Captain Moulle?\"));\n\t\t\texpected.insert(new SubtitleSt(new TimeSt(\"00\", \"02\", \"46\", \"200\"), new TimeSt(\"00\", \"02\", \"48\", \"089\"), \"Form your lines.\"));\n\t\t\texpected.insert(new SubtitleSt(new TimeSt(\"00\", \"02\", \"48\", \"480\"), new TimeSt(\"00\", \"02\", \"49\", \"527\"), \"(GUNS COCKING)\"));\n\t\t\texpected.insert(new SubtitleSt(new TimeSt(\"00\", \"02\", \"55\", \"800\"), new TimeSt(\"00\", \"02\", \"57\", \"609\"), \"Maxims ready, sir!\"));\n\t\t\t\n\t\t\t\n\t\t\tassertNotNull(\"Method load(String) does not load a correct file\", seq);\n\t\t\tassertTrue(\"Method load(String) not working correctly\", areEqual(expected, seq.getSubtitles()));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public boolean getHasSubtitles() {\n return hasSubtitles_;\n }",
"@Override\n\t\t\tpublic void onSeekComplete(MediaPlayer mp) {\n\t\t\t\tif (!mp.isPlaying()) {\n\t\t\t\t\t//playMedia(true);\n\t\t\t\t\tSystem.out.println(\"inside the setOnSeekCompleteListener\");\n\t\t\t\t\tplayMedia(false);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"inside------ the setOnSeekCompleteListener\");\n\t\t\t\ttimeElapsed.setText(countTime(videoviewer.getCurrentPosition()));\n\t\t\t}",
"public void onNewPosData(JsArray<Timeseries> data) {\n }"
] | [
"0.7054216",
"0.63260686",
"0.624437",
"0.59987885",
"0.59987885",
"0.59076405",
"0.5893872",
"0.589204",
"0.5803937",
"0.57913065",
"0.579125",
"0.57886356",
"0.5773416",
"0.57549274",
"0.57410896",
"0.569054",
"0.5663025",
"0.56610394",
"0.55863386",
"0.55645245",
"0.55442774",
"0.55394006",
"0.5524342",
"0.55188155",
"0.5514659",
"0.54942834",
"0.5488226",
"0.54827464",
"0.54304016",
"0.54254806",
"0.54254806",
"0.5409312",
"0.5409312",
"0.5403673",
"0.5403419",
"0.53990835",
"0.53929543",
"0.53929543",
"0.5389569",
"0.5388174",
"0.53825235",
"0.53504604",
"0.53429914",
"0.53213185",
"0.53060246",
"0.5301905",
"0.52916074",
"0.5281597",
"0.52799076",
"0.52733195",
"0.52634025",
"0.52588564",
"0.52525884",
"0.5213037",
"0.52",
"0.5197581",
"0.51740676",
"0.51677036",
"0.51610017",
"0.5153859",
"0.51491386",
"0.51359344",
"0.51339155",
"0.5121567",
"0.5116317",
"0.5114887",
"0.5114887",
"0.5108367",
"0.5098419",
"0.5090929",
"0.5086492",
"0.50849485",
"0.5079576",
"0.50685525",
"0.5068364",
"0.50496686",
"0.5040597",
"0.5036522",
"0.5030755",
"0.50306904",
"0.50277567",
"0.50277567",
"0.50227684",
"0.5018112",
"0.50086087",
"0.50067747",
"0.4998724",
"0.49837875",
"0.49800077",
"0.49660036",
"0.4962109",
"0.49601626",
"0.4948655",
"0.49461934",
"0.49419168",
"0.49412197",
"0.49381024",
"0.49362907",
"0.4934045",
"0.49296588"
] | 0.7240892 | 0 |
Called when a track is selected. | public void onTrackSelected(@NonNull SessionPlayer player, @NonNull TrackInfo trackInfo) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onTrackItemSelected(int position, List<USpotifyObject> tracks);",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n ((CallbackToActivity)getActivity()).onItemSelected(mTopTracks, position);\n\n }",
"@Override\r\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\ttrackState = trackStateSelect.getSelectedItem()\r\n\t\t\t\t\t\t\t\t.toString().trim();\r\n\t\t\t\t\t}",
"public void onLoadPlaylistFromDialogSelected(List<Track> tracks);",
"@Override\n public void onClick(View view) {\n if (mTracks == null) {\n return;\n }\n int position = getAdapterPosition();\n if (position >= 0 && position < mTracks.size()) {\n long id = mTracks.get(position).getId();\n mSharedTracksListener.onSharedTrackClicked(id);\n }\n }",
"protected final void onSelect(CommandSender sender) {\n setInteracting(sender);\n onSelect();\n }",
"public void onEventSelected(int position);",
"public void onIndividualSelected(Individual individual) {\n\t\t\n\t}",
"@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }",
"private void setCurrentTrack() {\n runOnUiThread(new Runnable() {\n public void run() {\n setText(controller.getCurrentTrack());\n }\n });\n\t}",
"protected void onSelectedItemChanged() {\n if (selectedItem == null) {\n anchorLabel();\n getInputWidget().setText(\"\");\n } else {\n String playerName = ((Player)selectedItem).getName();\n getInputWidget().setText(playerName);\n floatLabel();\n }\n\n if (itemChooserListener != null) itemChooserListener.onSelectionChanged(this, selectedItem);\n }",
"void onItemSelected(Bundle args);",
"protected void onSelect() {\n\n }",
"@Override\n\tpublic void onChecked(MusicEntity musicEntity, int selectedNum) {\n\t\thadSelectedMusic.add(musicEntity);\n\t}",
"public void onPageSelected(int pageSelected) {\n\t\t\t}",
"@Override\n public void onTrackChange(final RadioStream.TrackInfo trackInfo) {\n }",
"@Override\n\tpublic void eventSelectTracker() {\n\t\t\n\t}",
"public void setActionTrackSelected(GralUserAction action){ actionSelectTrack = action; }",
"public interface SongSelectedListener {\n void onSongSelected(int position);\n}",
"@Override\n public void onItemSelected(OurPlace place) {\n\n Log.i(LOG_TAG, \"YES!\");\n }",
"public Track getTrackSelected(){ return _wdgImpl == null ? null : ((GraphicImplAccess)_wdgImpl).trackSelected; }",
"public interface SharedTracksListener {\n void onSharedTrackClicked(long id);\n }",
"public void widgetSelected(SelectionEvent arg0) {\n\t\t\t}",
"@Override\r\n\tpublic void itemSelectedAtIndexPath(IndexPath path) {\n\r\n\t}",
"@Override\r\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\n\t\t\t}",
"@Override\n\t\tpublic void onPageSelected(int arg0)\n\t\t{\n\t\t\t\n\t\t}",
"@Override\n\tpublic void OnTitleSelected(int index) {\n\t\tif()\n\t}",
"public void onSelectionChanged();",
"@Subscribe\r\n\tpublic void onSelectBMDAnalysisResults(BMDAnalysisDataSelectedEvent event)\r\n\t{\r\n\t\tgetView().updateSelectionLabel(event.GetPayload().getName());\r\n\t}",
"public void onItemSelected(String summary, String poster);",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\teventHandler.invoke(new HarvestSelectedEvent());\n\t\t}",
"@Override\n public void onPageSelected(int arg0) {\n }",
"public void onComidaSelected(int comidaId);",
"public void onShowMushroomSelectionDialogSelected(Context context);",
"@Override\n public void selectedSamplesChanged()\n {\n final List<ModelItem> items = model.getItems();\n final List<String> names = new ArrayList<>(items.size());\n final List<String> times = new ArrayList<>(items.size());\n final double[] values = new double[items.size()];\n int i=0;\n for (ModelItem item : items)\n {\n names.add(item.getResolvedDisplayName());\n final Optional<PlotDataItem<Instant>> sample = item.getSelectedSample();\n if (sample.isPresent())\n {\n times.add(TimestampFormats.MILLI_FORMAT.format(sample.get().getPosition()));\n values[i++] = sample.get().getValue();\n }\n else\n {\n times.add(\"-\");\n values[i++] = Double.NaN;\n }\n }\n final VType value = VTable.of(\n List.of(String.class, String.class, double.class),\n List.of(\"Trace\", \"Timestamp\", \"Value\"),\n List.of(names, times, ArrayDouble.of(values)));\n model_widget.propSelectionValue().setValue(value);\n }",
"public void selectionChanged(Selection selecton) {\r\n }",
"@Override\n\tpublic void onPageSelected(int arg0) {\n\n\t}",
"@Override\n\tpublic void onPageSelected(int arg0) {\n\n\t}",
"protected void onSelectionPerformed(boolean success) {\n }",
"@Override\r\n\t public void onPause() {\n\t \tsuper.onPause();\r\n\t \t StaticStore.LogPrinter('e',\"onPause() ListSelection\");\r\n\t \t StaticStore.midlet.onPauseCalled();\r\n\t }",
"@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }",
"public void songPicked(View view) {\n int position = Integer.parseInt(view.getTag().toString());\n Intent mainIntent = new Intent(this, MainActivity.class);\n mainIntent.putExtra(\"song\", songList.get(position).getFile());\n startActivity(mainIntent);\n }",
"@Override\n protected void onSelected(Category category) {\n setSelectedCategory(category);\n messageUtil.infoEntity(\"status_selected_ok\", getPart().getCategory());\n }",
"public interface OnLoadMenuItemOptionSelectedListener {\n\n\t/**\n\t * Invoked on the Play Now option was selected.\n\t * @param track to play now.\n\t */\n\tpublic void onLoadMenuTop10Selected(List<Track> topTenMediaItems);\n\t\n\t/**\n\t * Invoked on the Play Next option was selected.\n\t * @param track to play next.\n\t */\n\tpublic void onLoadMenuRadioSelected();\n\t\n\t/**\n\t * Invoked on the Add To Queue option was selected.\n\t * @param track to add the queue.\n\t */\n\tpublic void onLoadMenuMyPlaylistSelected();\n\t\n\t/**\n\t * Invoked on the Show Details option was selected.\n\t * @param track to show its details.\n\t */\n\tpublic void onLoadMenuMyFavoritesSelected();\n\t\n\t/**\n\t * Invoked on the Show Details option was selected.\n\t * @param track to show its details.\n\t */\n\tpublic void onLoadPlaylistFromDialogSelected(List<Track> tracks);\n\n}",
"void onScoreSelected(String value);",
"@Subscribe\r\n\tpublic void onSelectCategoryAnalysis(CategoryAnalysisDataSelectedEvent event)\r\n\t{\r\n\t\tgetView().updateSelectionLabel(event.GetPayload().getName());\r\n\t}",
"@Override\n\tpublic void onPageSelected(int arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onPageSelected(int arg0) {\n\t\t\n\t}",
"void onSelectProject();",
"@Override\n public void onIndicatorSelected(int index) {\n setSelect(index);\n }",
"void onItemSelected();",
"void onItemSelected();",
"@Override\n public void onContactSelected(Contact selected, int rowId)\n {\n contactIndex = rowId;\n selectedContact = selected;\n\n // Visa detaljvyn när en rad i listan klickas\n showDetails();\n }",
"@Override\r\n\tpublic void objectSelectListener(SelectEvent event) {\n\t\t\r\n\t}",
"public void onItemSelected(MovieModel movieModel);",
"public void onClickPlayer() {\n carIcon.setOpacity(1);\n playerIcon.setOpacity(1);\n playerList.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> {\n displayUserInfo(newValue);\n });\n MAIN_MENU_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n }",
"public void selectedChanged(SelectEvent e) {\n\t\t\t\tm_Report.getStatusBar().repaint();\r\n\t\t\t}",
"@Override\n public void onListFragmentInteraction(SongsListContent.SongsListItem item) {\n Log.d(\"DBP\", \"Method to select song not implemented\");\n }",
"@Override\n\tpublic void optionSelected(AbstractPlayer arg0, AbstractMonster arg1, int arg2) {\n\t\t\n\t}",
"public void onItemSelected(int id);",
"public interface Callback {\n /**\n * Show top tracks when an item has been selected.\n */\n void onTrackItemSelected(int position, List<USpotifyObject> tracks);\n }",
"@Override\n\t\tpublic void onPageSelected(int arg0) {\n\t\t\tswitch (arg0) {\n\t\t\tcase 0:\n\t\t\t\tbasicButton.setChecked(true);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tuploadButton.setChecked(true);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"@Override\n public void onItemSelected(AdapterView<?> parent,\n View view, int position, long id) {\n mEqualizer.usePreset((short) position);\n// get the number of frequency bands for this equalizer engine\n short numberFrequencyBands = mEqualizer.getNumberOfBands();\n// get the lower gain setting for this equalizer band\n final short lowerEqualizerBandLevel = mEqualizer.getBandLevelRange()[0];\n\n// set seekBar indicators according to selected preset\n for (short i = 0; i < numberFrequencyBands; i++) {\n short equalizerBandIndex = i;\n SeekBar seekBar = (SeekBar) findViewById(equalizerBandIndex);\n// get current gain setting for this equalizer band\n// set the progress indicator of this seekBar to indicate the current gain value\n seekBar.setProgress(mEqualizer\n .getBandLevel(equalizerBandIndex) - lowerEqualizerBandLevel);\n }\n }",
"public void onItemSelected(Uri movieUri);",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.d(PlayerActivity.TAG,\"Item \" + position + \" Clicked\");\n\n if (mIsBound) {\n this.mPlayerService.playSelectedTrack(position);\n }\n }",
"@Override\r\n\tpublic void onPageSelected(int arg0) {\n\r\n\t}",
"@Subscribe\r\n\tpublic void onSelectPathwayFilter(PathwayFilterSelectedEvent event)\r\n\t{\r\n\t\tgetView().updateSelectionLabel(event.GetPayload().getName());\r\n\t}",
"public void onItemSelected(String id);",
"public void onItemSelected(String id);",
"public void onItemSelected(String id);",
"public void onItemSelected(String id);",
"public void onItemSelected(String id);",
"void onFloppyDriveTrackChanged(int trackNumber, FloppyDriveSide trackSide);",
"@Override\n public void onTaskSelected(String taskId) {\n }",
"public void onItemSelected(Long id);",
"public void selectVenue() {\n\t\t\r\n\t}",
"public void bindSelectionTracker(final SelectionTracker<Uri> tracker) {\n checkArgument(tracker != null);\n mIsSelectedTest = new Predicate<Uri>() {\n @Override\n public boolean test(Uri key) {\n return tracker.isSelected(key);\n }\n };\n }",
"void setTrack(String track) {\r\n this.track = track;\r\n }",
"public interface OnFragmentInteractionListener {\n void onTrackClicked(Track track);\n }",
"@Override\n public void onSelected(\n @NonNull List<Uri> uriList, @NonNull List<String> pathList) {\n Log.e(\"onSelected\", \"onSelected: pathList=\" + pathList);\n }",
"void switchTrack( final Context context, final int soundIdToSwitchTo, final OnCompletionPlayNextListener playNextListener);",
"@Override\n public void onTracksChanged(TrackGroupArray trackGroups, TrackSelectionArray trackSelections) {\n txtName.setText(\"Playing: \" + getVideoName()[exoPlayerInstance.getCurrentWindowIndex()].toUpperCase());\n }",
"public void onLoadMenuMyPlaylistSelected();",
"@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}",
"@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}",
"public void onItemSelected(String studentSelected);",
"@Override\n public void select(TaskView selectedCard) {\n if(selectedTask != null) {\n selectedTask.deselectCard();\n }\n selectedTask = selectedCard;\n selectedTask.selectCard();\n }",
"public void widgetSelected(SelectionEvent e)\n\t\t\t{\n\t\t\t\tif (ptDataSourceFormComposite.getDataSourceInstances() == null)\n\t\t\t\t\treturn;\n\t\t\t\tfor (int i = 0; i < ptDataSourceFormComposite.getDataSourceInstances().size(); i++)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tDataSource datasource = ptDataSourceFormComposite.getDataSourceInstances().get(i);\n\t\t\t\t\t\tElement altrans = datasource.subSegmentTranslate(getXliffEditorWindow().getTransUnits().get(getIOldSegmentPosition()),\n\t\t\t\t\t\t\t\txliffDocument, sourceLanguage, targetLanguage, null);\n\t\t\t\t\t\tif (altrans != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString text = \"\";\n\t\t\t\t\t\t\tVector<PhraseTranslateResult> elements = getPhrases(getIOldSegmentPosition());\n\t\t\t\t\t\t\tfor (int j = 0; j < elements.size(); j++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttext = text + elements.get(j).getSourcePhrase() + \" : \" + elements.get(j).getTargetPhrase() + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstatusDisplayWindow.setText(text);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e2)\n\t\t\t\t\t{\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tshowAltTrans(getIOldSegmentPosition(), 0, 0);\n\t\t\t}",
"@Override\n\tpublic void widgetSelected(SelectionEvent arg0) {\n\n\t}",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Log.e(\"song_url\",songs.get(i).getSong());\n mCallBack.songselected(songs, i);\n }",
"void onAgentSelected(int agentPosition);",
"public void onItemSelected(int position);",
"public void onSelect(QueryInfo queryInfo, Hub<QueryInfo> hub) {\n }",
"@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\n\tpublic void onLandmarkSelected(Marker landmark) {\n\t}",
"@Override\n\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}",
"public void onClick(View arg0) {\n\t\tif (!checkSelected())\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSharedPreferences settings = getSharedPreferences(Constants.SETTINGS, 0);\n\t\t\tEditor e = settings.edit();\n\t\t\te.putInt(Constants.CHAPTER, getSelectedSetting());\n\t\t\te.commit();\n\t\t\tfinish();\n\t\t}\n\t\t\n\t}"
] | [
"0.72985244",
"0.6443697",
"0.6237725",
"0.6233524",
"0.62134707",
"0.60466266",
"0.5985592",
"0.59772825",
"0.5959073",
"0.59441483",
"0.594202",
"0.58718395",
"0.5867056",
"0.5848429",
"0.58434445",
"0.58191514",
"0.5815926",
"0.5811788",
"0.57876253",
"0.5760918",
"0.57576996",
"0.5755643",
"0.5752337",
"0.57267773",
"0.5726083",
"0.57249063",
"0.5711964",
"0.5711272",
"0.5709693",
"0.5705448",
"0.5700896",
"0.5693286",
"0.5691787",
"0.56748164",
"0.56732965",
"0.56507146",
"0.56426555",
"0.5624704",
"0.5624704",
"0.56200606",
"0.56155914",
"0.56139296",
"0.56139296",
"0.5609376",
"0.56064963",
"0.5599669",
"0.5597248",
"0.5596668",
"0.55949783",
"0.5572629",
"0.5572629",
"0.55707926",
"0.5568909",
"0.5566155",
"0.5566155",
"0.5566022",
"0.55626035",
"0.5553996",
"0.55502486",
"0.5544233",
"0.55301887",
"0.55262554",
"0.5520015",
"0.5517626",
"0.5516782",
"0.55096626",
"0.5509644",
"0.55040324",
"0.54999787",
"0.54996306",
"0.5491271",
"0.5491271",
"0.5491271",
"0.5491271",
"0.5491271",
"0.5473918",
"0.5457029",
"0.5451341",
"0.54470414",
"0.54449296",
"0.54323304",
"0.5419882",
"0.541744",
"0.5416318",
"0.54133743",
"0.5407961",
"0.54068065",
"0.54068065",
"0.5400157",
"0.53903466",
"0.53889906",
"0.53874874",
"0.53867865",
"0.53819174",
"0.53770185",
"0.53764224",
"0.5374554",
"0.5365938",
"0.5364405",
"0.536372"
] | 0.75719094 | 0 |
Constructor that uses the current system clock as the completion time. | public PlayerResult(int resultCode, @Nullable MediaItem item) {
this(resultCode, item, SystemClock.elapsedRealtime());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Time() {\n this(System.currentTimeMillis());\n }",
"protected void setupTime() {\n this.start = System.currentTimeMillis();\n }",
"public Coursetime() {\n\t}",
"public GameTimer()\n \t{\n \t\tsuper();\n \t\tt = new Task();\n \t\tscheduleAtFixedRate( t, 0, 1000 );\n \t\tstartTime = System.currentTimeMillis();\n \t}",
"public Time() {\r\n\t\tsecond = (System.currentTimeMillis() / 1000) % 60;\r\n\t\tminute = (System.currentTimeMillis() / 1000) / 60 % 60;\r\n\t\thour = ((System.currentTimeMillis() / 1000) / 3600) % 24;\r\n\t}",
"public FreeTime() {}",
"public TimeUnit() {\n localTime = LocalDateTime.now();\n }",
"@Override\n\tpublic long getCurrentTime() {\n\t\treturn 0;\n\t}",
"public static void init() \r\n {\r\n currentTime = getTime(); \r\n lastTime = getTime(); \r\n }",
"public Timer()\n {\n // initialise instance variables\n startTime = 0;\n bonusTime = 0;\n }",
"public Timer() {\n\t\tthis.start = 0L;\n\t\tthis.end = 0L;\n\t}",
"public Timestamp(long uptime) {\n sysUpTime = uptime ;\n crtime = System.currentTimeMillis() ;\n }",
"public Clock() {\r\n this.hour = 0;\r\n this.minute = 0;\r\n }",
"public Tick() {\n\t\tthis.start = System.currentTimeMillis();\n\t\tthis.last = start;\n\t}",
"@DISPID(8)\r\n\t// = 0x8. The runtime will prefer the VTID if present\r\n\t@VTID(12)\r\n\tjava.util.Date completionDateTime();",
"public void startTime() {\n\t\tthis.clock.start();\n\t}",
"public Date getCompleteTime() {\n return completeTime;\n }",
"private long CurrentTime(){\n return (TotalRunTime + System.nanoTime() - StartTime)/1000000;\n }",
"@Override\n protected void initialize() {\n startT = Timer.getFPGATimestamp();\n }",
"public Clock(long time) {\n /* Set the timeout period */\n timeoutPeriod = time;\n }",
"protected void initialize() {\n \t\n \tstart_time = System.currentTimeMillis();\n \t\n \tgoal = start_time + duration;\n }",
"public double getTime() {\n\t\treturn this.completedTime;\n\t}",
"protected Time() {\n\t}",
"public ClockLabel() {\r\n\t\tsuper(\"\"\r\n\t\t\t\t+ new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\")\r\n\t\t\t\t\t\t.format(new Date()), SwingConstants.RIGHT);\r\n\t\tTimer t = new Timer(1000, this);\r\n\t\tt.start();\r\n\t}",
"public GameTime() {\n\t\tthis.total = 0;\n\t\tthis.hour = 0;\n\t}",
"@Override\r\n\tpublic int requiredTime() {\n\t\treturn 0;\r\n\t}",
"public int getCompletionTime() {\n return this.completeTime;\n }",
"public void setStartTime() {\r\n startTime = System.currentTimeMillis();\r\n }",
"Timer(int tempTotalTime) {\n totalTime = tempTotalTime;\n }",
"protected long getCurrentTime() {\n return System.currentTimeMillis();\n }",
"@Override\n\tpublic long getTime() {\n\t\treturn System.nanoTime() - startTime;\n\t}",
"private TimeUtil() {}",
"public Time(){\r\n Seconds = 0; \r\n }",
"public static void calTime() {\n time = new Date().getTime() - start;\n }",
"public void setCompleteTime(Date completeTime) {\n this.completeTime = completeTime;\n }",
"public Clock()\n {\n hour = 11;\n min = 28;\n sec = 12;\n }",
"public Timestamp() {\n crtime = System.currentTimeMillis() ;\n }",
"public TimedTask(String task) {\n this.task = task;\n timeStart = System.currentTimeMillis();\n }",
"@Override\n\tpublic RunTime runTime()\n\t{\n\t\tCalendar now = Calendar.getInstance();\n\t\tRunTimeImpl rv = new RunTimeImpl(now.get(Calendar.HOUR_OF_DAY), now.get(Calendar.MINUTE));\n\n\t\treturn rv;\n\t}",
"protected long deadlineSeconds() {\n return DEFAULT_TASK_SECONDS;\n }",
"public long startTime();",
"public TimeTravel() {\r\n\t\t}",
"private void startTiming() {\n m_startTime = Calendar.getInstance().getTimeInMillis();\n }",
"public void setFinishTime() {\r\n\t\t\tthis.finishTime = RNG.MAXINT;\r\n\t\t}",
"public void CompleteTask() {\n\t\tCompletionDate = new Date();\n\t}",
"public TimedEvent() {\n this(DEFAULT_LABEL + nextTaskID, DEFAULT_DATE, DEFAULT_TIME); // assigning default values\n }",
"public float getCurrentTime () {\n\t\treturn timer;\n\t}",
"public TimeBlock() {\n name = \"To be assigned\";\n startingTime = \"00:00\";\n endingTime = \"00:00\";\n duration = 0;\n }",
"public AbsTime() throws Time.Ex_TimeNotAvailable\n {\n itsValue = timeNow();\n }",
"@Override\n\tpublic double timeToInitialize() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int getStartTime() {\n\t\treturn 0;\n\t}",
"@Override\n public long getTimeNeeded() {\n return timeNeeded;\n }",
"@Override\n\tpublic Long updateStartTime() {\n\t\treturn null;\n\t}",
"private Time(int end) {\r\n\t\tcurrentTime = 0;\r\n\t\tendOfTime = end;\r\n\t\tobservers = new ArrayList<TimeObserver>();\r\n\t}",
"public org.ros.message.Time getCurrentTime() {\n return time.getCurrentTime();\n }",
"public Time (long elapseTime) {\r\n\t\tsetTime(elapseTime);\r\n\t}",
"@SuppressWarnings(\"deprecation\")\n private void initTime() {\n //Time time = new Time(System.currentTimeMillis());\n time = new Date().getTime();\n }",
"public void updateTime() {\n\t\tthis.currentTime = System.currentTimeMillis();\n\t}",
"private long getSystemTime() {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported() ? (bean.getCurrentThreadCpuTime() - bean.getCurrentThreadUserTime()) : 0L;\n }",
"long getStartTime();",
"public void setcurrent_time() {\n\t\tthis.current_time = LocalTime.now();\n\t}",
"public double getStartTime();",
"public long startTimeNanos();",
"public void setCPUTime() {\r\n\t\t\tthis.CPUTime = 0;\r\n\t\t}",
"Instant getStart();",
"public static long now() {\n return System.nanoTime();\n }",
"@java.lang.Override\n public long getTime() {\n return time_;\n }",
"public long getCurrentSystemTime() {\n return getSystemTime() - startSystemTimeNano;\n }",
"public long getStartTime();",
"public long getStartTime();",
"public Timestamp(long uptime, long when) {\n sysUpTime = uptime ;\n crtime = when ;\n }",
"public void toNow() {\r\n double now = currentSimulationTime();\r\n double passed_time = now - lastTime - suspendetTime;\r\n\r\n if (MathTools.less(0, passed_time)) {\r\n if (currentStep != null) {\r\n\r\n // get the demand of the first job\r\n double demand = running_processes.get(currentStep);\r\n demand -= passed_time;\r\n SuspendableFCFSResource.this.remainingDemand -= passed_time;\r\n \r\n // avoid trouble caused by rounding issues\r\n demand = MathTools.equalsDouble(demand, 0) ? 0.0 : demand;\r\n\r\n assert demand >= 0 : \"Remaining demand (\" + demand + \") smaller than zero! at simulation time: \"\r\n + now;\r\n\r\n running_processes.put(currentStep, demand);\r\n }\r\n }\r\n lastTime = now;\r\n suspendetTime = 0;\r\n }",
"@Override\n public long getTime() {\n return time;\n }",
"public static float getCurrentTime(){\n return (float)(System.currentTimeMillis()-t0)/1000.0f;\r\n }",
"public TaskCurrent() {\n\t}",
"private long now() {\n\treturn System.currentTimeMillis();\n }",
"int getStartTime();",
"int getStartTime();",
"int getStartTime();",
"public void setCompletionTime(double aTime)\n\t{\n\t\tif(aTime<0) //invalid\n\t\t\tthis.completionTime = 0.0;\n\t\telse \n\t\t\tthis.completionTime=aTime;\n\t}",
"public void startTiming() {\n elapsedTime = 0;\n startTime = System.currentTimeMillis();\n }",
"public StopWatch() {\n }",
"public TimerDisplay()\n {\n timeElapsed = 0;\n }",
"public Timer() {}",
"private long timeNow()\n {\n // The value of 3506716800000000L is the BAT as at midnight on\n // 1-Jan-1970, which is the base of the time that the system\n // gives us. It has to be adjusted for leap seconds though.\n return (System.currentTimeMillis() * 1000L) + DUTC.get() * 1000000L + 3506716800000000L;\n }",
"public WorkTimeEvent() {\r\n super();\r\n }",
"public final synchronized void resetTime() {\n this.last = System.nanoTime();\n }",
"public abstract double calculateStartTime();",
"@Override\n\tpublic long currentTimeMillis() {\n\t\treturn this.currentTime;\n\t}",
"public long getStartSystemTime() {\r\n return startSystemTime;\r\n }",
"public static void setTime(){\n\t\tCalendar cal = Calendar.getInstance();\n\t\tif (!JsonUtils.RUNNING_LOCALLY){\n\t\t\tcal.set(Calendar.HOUR_OF_DAY, cal.get(Calendar.HOUR_OF_DAY) - 4); //account for UTC offset because of lambda\n\t\t}\n\t\tCURRENT_TIME = formatTime(cal.getTime().toString());\n\t}",
"public void setStartTime (long x)\r\n {\r\n startTime = x;\r\n }",
"public double getFinishTime(){return finishTime;}",
"protected double getStartTime() {\n\t\treturn startTime;\n\t}",
"public static long CLOCK() {\n return java.lang.System.currentTimeMillis();\n }",
"public ClockTime(Date d) {\n super(Property.CLOCKTIME_PROPERTY);\n calValue = Calendar.getInstance();\n calValue.setTimeInMillis(d.getTime());\n normalize();\n }",
"private void startTime() {\n Task<Void> task = new Task<Void>() {\n @Override\n protected Void call() throws Exception {\n while (player.getCurrentTime().lessThanOrEqualTo(player.getStopTime()) && player.getStatus() != Status.PAUSED) {\n if (player.getStatus() == Status.STOPPED) {\n eventBus.emit(new CurrentTimeEvent(0, Duration.ZERO));\n cancel();\n }\n // Convert the current time to a percentage\n double timePercentage = player.getCurrentTime().toSeconds() / player.getStopTime().toSeconds();\n // Get the current time as a Duration\n Duration timeDuration = player.getCurrentTime();\n eventBus.emit(new CurrentTimeEvent(timePercentage, timeDuration));\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n cancel();\n }\n }\n return null;\n }\n };\n\n timeThread = new Thread(task);\n timeThread.setDaemon(true);\n timeThread.start();\n }",
"private long getUserTime() {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported() ? bean.getCurrentThreadUserTime() : 0L;\n }",
"static final long getStartTimeMillis()\n {\n long startTime;\n if ((startTime = ExitMain.vmStartTime) == 0L) /* hack */\n {\n startTime = VMSystem.currentTimeMillis();\n ExitMain.vmStartTime = startTime;\n }\n return startTime;\n }",
"public ClockTime(Calendar d) {\n super(Property.CLOCKTIME_PROPERTY);\n calValue = Calendar.getInstance();\n calValue.setTimeInMillis(d.getTimeInMillis());\n normalize();\n }",
"public void startTime() {\n if (!isRunning) {\n timer = new Timer();\n clock = new Clock();\n timer.scheduleAtFixedRate(clock,0,1000);\n isRunning = true;\n }\n }"
] | [
"0.65982366",
"0.6431649",
"0.63910395",
"0.63374263",
"0.6274299",
"0.6165515",
"0.60549086",
"0.6027532",
"0.60154957",
"0.599971",
"0.59704924",
"0.59023005",
"0.5890202",
"0.5880994",
"0.58615875",
"0.5837772",
"0.5835622",
"0.58322096",
"0.57766825",
"0.5774436",
"0.5771356",
"0.5769566",
"0.57694995",
"0.5764389",
"0.57326645",
"0.57311183",
"0.5729365",
"0.5726362",
"0.57200307",
"0.5718383",
"0.5712642",
"0.57045454",
"0.5690232",
"0.5689103",
"0.5680055",
"0.5674884",
"0.5674774",
"0.5659801",
"0.5655303",
"0.5641021",
"0.5635305",
"0.563102",
"0.5626809",
"0.5622808",
"0.561897",
"0.5605787",
"0.5595522",
"0.55869627",
"0.55658066",
"0.5554873",
"0.55462235",
"0.5534608",
"0.5506667",
"0.55065197",
"0.55051315",
"0.5499796",
"0.54872054",
"0.54743737",
"0.5470464",
"0.5465065",
"0.5458339",
"0.5457058",
"0.5456696",
"0.5456662",
"0.54367393",
"0.54334617",
"0.54312783",
"0.54215866",
"0.5408396",
"0.5408396",
"0.54010606",
"0.539856",
"0.5390481",
"0.5382283",
"0.5374922",
"0.5374785",
"0.5374553",
"0.5374553",
"0.5374553",
"0.5372689",
"0.53632426",
"0.5358856",
"0.5358112",
"0.5357399",
"0.5355434",
"0.5354419",
"0.534387",
"0.5341772",
"0.53361315",
"0.5333894",
"0.5329262",
"0.5326749",
"0.5325639",
"0.53211737",
"0.53186923",
"0.53185093",
"0.5318283",
"0.53126085",
"0.53119135",
"0.53055567",
"0.530321"
] | 0.0 | -1 |
Note: resultCode is intentionally not annotated for subclass to return extra error codes. | private PlayerResult(int resultCode, @Nullable MediaItem item, long completionTime) {
mResultCode = resultCode;
mItem = item;
mCompletionTime = completionTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getResult() {return resultCode;}",
"public int getResultCode() {\n return resultCode;\n }",
"public int getResultCode() {\n return resultCode_;\n }",
"public int getResultCode() {\n return resultCode_;\n }",
"public int getResultCode() {\n return resultCode_;\n }",
"public int getResultCode() {\n return resultCode_;\n }",
"public String getResultCode() {\n return resultCode;\n }",
"public int getResultCode() {\n return resultCode_;\n }",
"public int getResultCode() {\n return resultCode_;\n }",
"public int getResultCode() {\n return resultCode_;\n }",
"public int getResultCode() {\n return resultCode_;\n }",
"public String getResultCode() {\r\n\t\treturn resultCode;\r\n\t}",
"public void setResultCode(String resultCode) {\r\n\t\tthis.resultCode = resultCode;\r\n\t}",
"@Test\n public void resultCodeTest() {\n assertEquals(\"000\", authResponse.getResultCode());\n }",
"protocol.Result.ResultCode getResultCode();",
"public int getResultCode();",
"public void setResultCode(int value) {\n this.resultCode = value;\n }",
"int getReturnCode();",
"int getReturnCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"@Override\n\t\t\t\t\tpublic void onFailure(Integer result, String resultMsg) {\n\t\t\t\t\t\thandleErrorCode(result, resultMsg);\n\t\t\t\t\t}",
"int getErrorCode();",
"public void setResult(int resultCode) {\n synchronized (this) {\n mResultCode = resultCode;\n mResultData = null;\n }\n }",
"public void setResultCode(String resultCode) {\n this.resultCode = resultCode == null ? null : resultCode.trim();\n }",
"protected abstract void setErrorCode();",
"abstract Integer getStatusCode();",
"public Builder setResultCode(int value) {\n \n resultCode_ = value;\n onChanged();\n return this;\n }",
"public Builder setResultCode(int value) {\n \n resultCode_ = value;\n onChanged();\n return this;\n }",
"public Builder setResultCode(int value) {\n \n resultCode_ = value;\n onChanged();\n return this;\n }",
"public Builder setResultCode(int value) {\n \n resultCode_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void resultActivityCall(int requestCode, int resultCode, Intent data) {\n\n\t}",
"public protocol.Msg.ReadTableMsg.ReadImportantTableRsp.ResultCode getResultCode() {\n return resultCode_;\n }",
"public native int getErrorCode() /*-{\n\t\treturn this.target.error.code;\n\t}-*/;",
"boolean hasResultCode();",
"boolean hasResultCode();",
"public String getErrorCode();",
"@Override\n public void onResponceError(final ErrorCode errorCode) {\n }",
"public int getErrorCode() {\n return this.errorCode;\n }",
"int getErrcode();",
"@Override\n\t\t\t\t\t\tpublic void gotResult(int code, String arg1, Set<String> arg2) {\n\t\t\t\t\t\t\tSystem.out.println(\"code\"+code);\n\t\t\t\t\t\t\tLog.i(\"注册极光结果放回\", String.valueOf(code));\n\t//\t\t\t\t\t\tToast.makeText(RegisterAcountActivity.this, code, 0).show();\n\t\t\t\t\t\t}",
"public protocol.Result.ResultCode getResultCode() {\n protocol.Result.ResultCode result = protocol.Result.ResultCode.valueOf(resultCode_);\n return result == null ? protocol.Result.ResultCode.SUCCESS : result;\n }",
"public void setResult(int resultCode, Intent data) {\n this.mResultCode = resultCode;\n this.mResultData = data;\n }",
"public protocol.Msg.ReadTableMsg.ReadImportantTableRsp.ResultCode getResultCode() {\n return resultCode_;\n }",
"public abstract int statusCode();",
"public protocol.Result.ResultCode getResultCode() {\n protocol.Result.ResultCode result = protocol.Result.ResultCode.valueOf(resultCode_);\n return result == null ? protocol.Result.ResultCode.SUCCESS : result;\n }",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t\n\t}",
"public int getErrorCode() {\n return errorCode;\n }",
"@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}",
"@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}",
"@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}",
"public interface ResultCode {\r\n\r\n\t/**\r\n\t * The categories of result codes\r\n\t */\r\n\tpublic enum Category {\r\n\t\t/**\r\n\t\t * General result codes - should be used only by very general and not\r\n\t\t * use-case specific results\r\n\t\t */\r\n\t\tVALIDATION(1),\r\n\t\t/** Category for parsing related results */\r\n\t\tMAIL(2),\r\n\t\t/** Category for DNS lookup related results */\r\n\t\tDNS(3),\r\n\t\t/** Category for SMTP negotiation results */\r\n\t\tSMTP(4);\r\n\r\n\t\t/** Category code */\r\n\t\tprivate int code = -1;\r\n\r\n\t\t/**\r\n\t\t * Private contructor\r\n\t\t * \r\n\t\t * @param code\r\n\t\t * The category code\r\n\t\t */\r\n\t\tCategory(int code) {\r\n\t\t\tthis.code = code;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Returns the category code\r\n\t\t * \r\n\t\t * @return The category code\r\n\t\t */\r\n\t\tpublic int getCode() {\r\n\t\t\treturn code;\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * The type of the Result code;\r\n\t */\r\n\tpublic enum Type {\r\n\t\tLOGICAL, TECHNICAL\r\n\t}\r\n\r\n\t/**\r\n\t * <p>\r\n\t * Returns the result code.\r\n\t * </p>\r\n\t * <p>\r\n\t * <b>Note:</b> The code has to be unique in the result code category and the ordinal of the enumeration should\r\n\t * <i>not</i> be used. When somebody shuffles the enumeration the ordinal of a result code will change!\r\n\t * </p>\r\n\t * \r\n\t * @return The code\r\n\t */\r\n\tpublic int getCode();\r\n\r\n\t/**\r\n\t * Returns the category of a result code\r\n\t * \r\n\t * @return The category of a result code\r\n\t */\r\n\tpublic Category getCategory();\r\n\r\n\t/**\r\n\t * Returns the identifier of the result code. It will be three digits long\r\n\t * (one digits of the category and two of the code)\r\n\t * \r\n\t * @return An identifier\r\n\t */\r\n\tpublic String getIdentifier();\r\n\r\n\t/**\r\n\t * The name (enumeration) of the result code\r\n\t * \r\n\t * @return The name\r\n\t */\r\n\tpublic String name();\r\n\r\n\t/**\r\n\t * The type of the result code\r\n\t * \r\n\t * @return The type\r\n\t */\r\n\tpublic Type getType();\r\n}",
"void finish(String result, int resultCode);",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent intent) {\n// switch (resultCode) { //resultCode为回传的标记,我在第二个Activity中回传的是RESULT_OK\n// case Activity.RESULT_OK:\n// Bundle b=intent.getExtras(); //data为第二个Activity中回传的Intent\n// barCode = b.getString(\"code\");//str即为回传的值\n// mCallbackContext.success(barCode);\n// break;\n// default:\n// break;\n// }\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n }",
"public void onActivityResult(int requestCode, int resultCode, Intent data) {\n }",
"public abstract void onSuccess(String code);",
"@Override\n protected void checkResult(int pResult) throws ACBrException {\n switch (pResult) {\n case -1: {\n String lMessage;\n final int LEN = 1024;\n ByteBuffer buffer = ByteBuffer.allocate(LEN);\n int ret = ACBrAACInterop.INSTANCE.AAC_GetUltimoErro(getHandle(), buffer, LEN);\n\n lMessage = fromUTF8(buffer, ret);\n throw new ACBrException(lMessage);\n }\n case -2: {\n throw new ACBrException(\"ACBr AAC não inicializado.\");\n }\n }\n }",
"public int getErrorCode() {\n return errorCode_;\n }",
"public int getErrorCode()\n\t{\n\t\treturn errorCode;\n\t}",
"@Override\n protected void handleErrorResponseCode(int code, String message) {\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (requestCode) {\n default:\n break;\n }\n\n }",
"public int statusCode(){\n return code;\n }",
"public void errorFromNative(int errCode) {\n //stop pushing stream\n stopPush();\n if (liveStateChangeListener != null && activity != null) {\n String msg = \"\";\n switch (errCode) {\n case ERROR_VIDEO_ENCODER_OPEN:\n msg = activity.getString(R.string.error_video_encoder);\n break;\n case ERROR_VIDEO_ENCODER_ENCODE:\n msg = activity.getString(R.string.error_video_encode);\n break;\n case ERROR_AUDIO_ENCODER_OPEN:\n msg = activity.getString(R.string.error_audio_encoder);\n break;\n case ERROR_AUDIO_ENCODER_ENCODE:\n msg = activity.getString(R.string.error_audio_encode);\n break;\n case ERROR_RTMP_CONNECT_SERVER:\n msg = activity.getString(R.string.error_rtmp_connect);\n break;\n case ERROR_RTMP_CONNECT_STREAM:\n msg = activity.getString(R.string.error_rtmp_connect_strem);\n break;\n case ERROR_RTMP_SEND_PACKET:\n msg = activity.getString(R.string.error_rtmp_send_packet);\n break;\n default:\n break;\n }\n liveStateChangeListener.onError(msg);\n }\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"public int getErrorCode() {\r\n\t\treturn errorCode;\r\n\t}",
"@Override\r\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n\t\t// TODO - fill in here\r\n\r\n\r\n\r\n\t}",
"@Override\n public void onActivityResult(int requestCode, int responseCode,\n android.content.Intent data) {\n super.onActivityResult(requestCode, responseCode, data);\n if (loginType.equals(TYPE_FACEBOOK)) {\n // For Facebook\n FaceBookManager.onActivityResult(requestCode, responseCode, data);\n } else {\n if (loginType.equals(TYPE_GOOGLEPLUS)) {\n googlePlusManager.onActivityResult(requestCode, data);\n }\n }\n }",
"public Builder setResultCode(protocol.Result.ResultCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n resultCode_ = value.getNumber();\n onChanged();\n return this;\n }",
"public String getReturnCode()\r\n\t{\r\n\t\treturn returnCode;\r\n\t}",
"public int getErrorCode() {\n return errorCode_;\n }",
"private void handleErrInSuccess(int errCode) {\n\t\t// Consider process with error here (display message...)\n\t\t// switch (errCode) {\n\t\t// case Constants.ErrorCode.ERR_INCORRECT_ID:\n\t\t// case Constants.ErrorCode.ERR_INCORRECT_PWD:\n\t\t// case Constants.ErrorCode.ERR_INCORRECT_TOKEN:\n\t\t// case Constants.ErrorCode.ERR_INCORRECT_DIGI_ID:\n\t\t// case Constants.ErrorCode.ERR_INCORRECT_PARAM:\n\t\t// case Constants.ErrorCode.ERR_NO_DATA:\n\t\t// break;\n\t\t// default:\n\t\t// break;\n\t\t// }\n\t\t// Response error to caller\n\t\tErrorMessage errMsg = new ErrorMessage();\n\t\terrMsg.setResultCode(errCode);\n\t\terrMsg.setMessage(\"\");\n\t\t_responseHandler.onError(errMsg);\n\t}",
"com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType getCode();",
"public abstract R createFailedResult(Status status);",
"public abstract void OnError(int code);",
"public getCode_result(getCode_result other) {\n if (other.isSetSuccess()) {\n this.success = other.success;\n }\n }",
"public int getErrorCode() {\n\t\treturn errorCode;\n\t}",
"public int getErrorCode() {\n return parameter.getErrCode();\n }",
"@Override\n\tpublic void onFailure(int result) {\n\n\t}",
"public int getReturnCode() {\n return returnCode_;\n }",
"public int getReturnCode() {\n return returnCode_;\n }",
"public int getStatusCode() {\n return code;\n }",
"public int getErrorCode() {\r\n\t\treturn ERROR_CODE;\r\n\t}",
"@Override\n protected void onReceiveResult(int resultCode, Bundle resultData) {\n switch (resultCode) {\n case 1:\n Log.d(TAG,\"yay running\");\n break;\n case 0:\n Log.d(TAG,\"yay finish\");\n break;\n case -1:\n Log.d(TAG,\"yay error\");\n break;\n }\n }",
"public String getErrorCode() {\r\n return errorCode;\r\n }",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\ttry\n\t\t{\n\t\t\tif ( requestCode == Constants.REQUEST_CODE_COMMON &&\n\t\t\t\t\tresultCode == RESULT_OK )\n\t\t\t{\n\t\t\t\tsetResult(RESULT_OK);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t\t\n\t\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t}\n\t\tcatch( Exception ex )\n\t\t{\n\t\t\twriteLog( ex.getMessage());\n\t\t}\n\t}",
"public int getErrcode() {\n return errcode_;\n }",
"public void onActivityResult(int requestCode, int resultCode, Intent data) {\n this.mCallBackManager.onActivityResult(requestCode, resultCode, data);\n super.onActivityResult(requestCode, resultCode, data);\n }",
"@Override\n public void OnActivityResultReceived(int requestCode, int resultCode, Intent data) {\n\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(resultCode!= Activity.RESULT_OK){\n return;\n }\n\n }",
"@Override\n\t\t\tpublic void onError(int httpcode) {\n\t\t\t\t\n\t\t\t}",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();"
] | [
"0.79930174",
"0.78556114",
"0.7728505",
"0.7728505",
"0.7728505",
"0.7728505",
"0.76342636",
"0.7578073",
"0.7578073",
"0.7578073",
"0.7578073",
"0.74086356",
"0.7157159",
"0.6787997",
"0.67867625",
"0.6771283",
"0.6751086",
"0.6732409",
"0.6732409",
"0.66606486",
"0.66606486",
"0.66606486",
"0.66606486",
"0.66606486",
"0.66074175",
"0.6581785",
"0.65731734",
"0.6526608",
"0.6484291",
"0.64793944",
"0.6450997",
"0.6450997",
"0.6450997",
"0.6450997",
"0.6439833",
"0.6406545",
"0.63990045",
"0.63853705",
"0.63853705",
"0.63672054",
"0.6363805",
"0.634909",
"0.63279873",
"0.6303471",
"0.62966555",
"0.62865967",
"0.6259357",
"0.6250413",
"0.6241931",
"0.62124616",
"0.6206769",
"0.62014645",
"0.62014645",
"0.62014645",
"0.61956203",
"0.61888057",
"0.61874115",
"0.61874115",
"0.6178696",
"0.61656314",
"0.6164839",
"0.61647666",
"0.61633754",
"0.6163347",
"0.6161105",
"0.6155017",
"0.61508876",
"0.61239076",
"0.6116409",
"0.61131334",
"0.6109568",
"0.6106167",
"0.6087494",
"0.6085722",
"0.6081852",
"0.607554",
"0.6074528",
"0.6064578",
"0.6061741",
"0.60400856",
"0.6026756",
"0.60247844",
"0.601778",
"0.60144806",
"0.6008843",
"0.6008843",
"0.5997283",
"0.59886223",
"0.59772974",
"0.5972661",
"0.59555",
"0.59525937",
"0.5944027",
"0.59352857",
"0.59197444",
"0.5916231",
"0.5915291",
"0.5915291",
"0.5914717",
"0.5914717",
"0.59137464"
] | 0.0 | -1 |
the following line will keep this app alive for 1000 seconds, waiting for events to occur and responding to them (printing incoming messages to console). | public void run() {
try {
Thread.sleep(1000000);
} catch (InterruptedException ie) {
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void run() {\n try {\n Thread.sleep(2000);\n }\n catch (InterruptedException ex) { }\n // system is still running, so force an exit\n System.exit(0);\n }",
"private static void exKeepingAppAliveOne() {\n\n Observable.interval(1, TimeUnit.SECONDS)\n .subscribe(System.out::println);\n\n Take.sleep(Long.MAX_VALUE); //Calls Thread.sleep(long milli)\n\n /* OUTPUT :\n\n */\n }",
"public static void idle(){\n Logger.getGlobal().log(Level.INFO,\" Waiting....\");\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\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\t//System.out.println(\"welcome\");\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic void run() {\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tsleep(3000);\r\n\t\t\t\tSystem.out.println(\"자동저장\");\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"void keepAlive();",
"public static void main(String[] args) throws InterruptedException {\n listen();\n }",
"public void sleep(){\n\n System.out.println(\"ZZZZZZZZZ bubble bubble bubble\");\n }",
"static void waitServerResponse(){\n try {\n Thread.sleep(5000);\n }catch(InterruptedException e){\n System.out.println(\"The application close due to an error.\");\n System.exit(-1);\n }\n }",
"public void startApp() {\n try {\n System.out.println(\" \");\n Thread.sleep(200);\n System.out.println(\" ▓█████▄ ▄▄▄ ██▀███ ▄▄▄█████▓\");\n Thread.sleep(220);\n System.out.println(\" ▒██▀ ██▌▒████▄ ▓██ ▒ ██▒▓ ██▒ ▓▒\");\n Thread.sleep(210);\n System.out.println(\" ░██ █▌▒██ ▀█▄ ▓██ ░▄█ ▒▒ ▓██░ ▒░\");\n Thread.sleep(200);\n System.out.println(\" ░▓█▄ ▌░██▄▄▄▄██ ▒██▀▀█▄ ░ ▓██▓ ░\");\n Thread.sleep(190);\n System.out.println(\" ░▒████▓ ▓█ ▓██▒░██▓ ▒██▒ ▒██▒ ░\");\n Thread.sleep(180);\n System.out.println(\" ▒▒▓ ▒ ▒▒ ▓▒█░░ ▒▓ ░▒▓░ ▒ ░░\");\n Thread.sleep(170);\n System.out.println(\" ░ ▒ ▒ ▒ ▒▒ ░ ░▒ ░ ▒░ ░\");\n Thread.sleep(160);\n System.out.println(\" ░ ░ ░ ░ ▒ ░░ ░ ░\");\n Thread.sleep(150);\n System.out.println(\" ░ ░ ░ ░\");\n Thread.sleep(150);\n System.out.println(\" ░\");\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n mainMenu();\n }\n mainMenu();\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 }",
"@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t}catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void run()\n\t{\n\t\trunning = true;\n\t\tSystem.out.println(\"Server started on port \" + port);\n\t}",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlisten();\n\t\t\t\t}",
"@Override\n\tpublic void run() {\n\t\twhile(true){\n\t\t\tSystem.out.println(\"a\");\n\t\t\ttry {\n\t\t\t\tThread.sleep(50);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@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}",
"@Override\n public void run() {\n start(10, 500);\n }",
"@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tString[] notify_cmd={\"msg\",user,\"启动中\"};\n\t\t\t\t\t\t\t\tdisplayText(\"启动中\");\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tRuntime.getRuntime().exec(notify_cmd);\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\t\tString mssage_in=\"appium msg\";\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\twhile(true){\n\t\t\t\t\t\t\t\t\t\tif((mssage_in=br.readLine())!=null){\n\t\t\t\t\t\t\t\t\t\t\tMyFrame.displayText(mssage_in);\n\t\t\t\t\t\t\t\t\t\t\tpw.println(mssage_in);\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} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"private void sendKeepAlive() {\n\t\tlong now = new java.util.Date().getTime() / 1000;\n\t\tif (now - lastKeepAlive > properties.getInt(\"keepAliveInterval\")) {\n\t\t\tfsmTeacher.handleAction(\"tap%\" + properties.get(\"keepAliveX\") + \"#\" + properties.get(\"keepAliveY\"));\n\t\t\tlastKeepAlive = now;\n\t\t\tSystem.out.println(\"Kept alive.\");\n\t\t}\n\t}",
"public void run(){\n\t\tinputStreamReader = new InputStreamReader(System.in);\r\n\t\tin = new BufferedReader( inputStreamReader );\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\" + Application.APPLICATION_VENDOR + \" \" + Application.APPLICATION_NAME + \" \" + Application.VERSION_MAJOR + \".\" + Application.VERSION_MINOR + \".\" + Application.VERSION_REVISION + \" (http://ThreatFactor.com)\");\r\n\t\t//System.out.println(\"We are here to help, just go to http://ThreatFactor.com/\");\r\n\t\t\r\n\t\tif( application.getNetworkManager().sslEnabled() )\r\n\t\t{\r\n\t\t\tif( application.getNetworkManager().getServerPort() != 443 )\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Web server running on: https://127.0.0.1:\" + application.getNetworkManager().getServerPort());\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Web server running on: https://127.0.0.1\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif( application.getNetworkManager().getServerPort() != 80 )\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Web server running on: http://127.0.0.1:\" + application.getNetworkManager().getServerPort());\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Web server running on: http://127.0.0.1\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Interactive console, type help for list of commands\");\r\n\t\t\r\n\t\tcontinueExecuting = true;\r\n\t\twhile( continueExecuting ){\r\n\r\n\t\t\tSystem.out.print(\"> \");\r\n\r\n\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\tString text = in.readLine();\r\n\t\t\t\t\r\n\t\t\t\tif( continueExecuting && text != null ){\r\n\t\t\t\t\tcontinueExecuting = runCommand( text.trim() );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(AsynchronousCloseException e){\r\n\t\t\t\t//Do nothing, this was likely thrown because the read-line command was interrupted during the shutdown operation\r\n\t\t\t\tcontinueExecuting = false;\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\t//Catch the exception and move on, the console listener must not be allowed to exit\r\n\t\t\t\tSystem.err.println(\"Operation Failed: \" + e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t\t\t//Stop listening. Otherwise, an exception loop may occur. \r\n\t\t\t\tcontinueExecuting = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void run() {\n String name = currentThread().getName();\n System.out.println(ANSI_BLUE + \"Hello from \" + name + \".\");\n\n // Let the main thread exit and continue outputting to console.\n if (currentThread().getName().equals(\"main\")) {\n return;\n }\n\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n System.out.println(ANSI_BLUE + name + \" was prematurely woken up.\");\n return; // Sine it doesn't make sense to output the next message if it's already woken up.\n }\n\n // Not guaranteed to run after three seconds since another thread might wake this thread up,\n // and because the timing is operating system / JVM dependant.\n System.out.println(ANSI_BLUE + \"Three seconds have passed and \" + name + \" is awake.\");\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 }",
"default void stayAlive() {\n\t\tSystem.out.println(\"Stayin alive\");\n\t}",
"public static void main(String[] args) throws Exception{\n\n\n System.out.println(\"Cybertek\");\n\n sleep1();\n\n System.out.println(\"Hello\");\n }",
"public void run() {\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(750);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t}\r\n\t\t\t// use the repain method to print the info coming from the server on the screen\r\n\t\t\trepaint();\r\n\t\t}\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 }",
"public void run() {\n running = true;\n System.out.println(\"Server started on port: \" + port);\n manageClients();\n receive();\n startConsole();\n }",
"public void eventLoop() {\n while (looping) {\n try {\n int c = Util.keyPress(String.format(format, num_threads, time, timeout, print_details, print_incrementers));\n switch (c) {\n case '1':\n startBenchmark();\n break;\n case '2':\n printView();\n break;\n case '4':\n changeFieldAcrossCluster(NUM_THREADS, Util.readIntFromStdin(\"Number of incrementer threads: \"));\n break;\n case '6':\n changeFieldAcrossCluster(TIME, Util.readIntFromStdin(\"Time (secs): \"));\n break;\n case 'd':\n changeFieldAcrossCluster(PRINT_DETAILS, !print_details);\n break;\n case 'i':\n changeFieldAcrossCluster(PRINT_INVOKERS, !print_incrementers);\n break;\n case 't':\n changeFieldAcrossCluster(TIMEOUT, Util.readIntFromStdin(\"incr timeout (ms): \"));\n break;\n case 'v':\n System.out.printf(\"Version: %s, Java version: %s\\n\", Version.printVersion(),\n System.getProperty(\"java.vm.version\", \"n/a\"));\n break;\n case 'x':\n case -1:\n looping = false;\n break;\n case 'X':\n try {\n RequestOptions options = new RequestOptions(ResponseMode.GET_NONE, 0)\n .flags(Message.Flag.OOB, Message.Flag.DONT_BUNDLE, Message.Flag.NO_FC);\n disp.callRemoteMethods(null, new MethodCall(QUIT_ALL), options);\n break;\n } catch (Throwable t) {\n System.err.println(\"Calling quitAll() failed: \" + t);\n }\n break;\n default:\n break;\n }\n } catch (Throwable t) {\n t.printStackTrace();\n }\n }\n stop();\n }",
"public void run()\r\n {\n \tm_Handler.sendEmptyMessage(JMSG_TIMER);\r\n }",
"private void sleep() {\n\t\tSystem.out.println(\"Ape sleeping\");\n\t}",
"void sleep ();",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"大家都到了,那我们开始开会吧\");\n\t\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 void run()\n {\n try\n {\n java.lang.Object sync = new java.lang.Object();\n synchronized (sync)\n {\n sync.wait();\n }\n }\n catch (Exception e)\n {\n fatalError(\"Application \" + appTitle + \" terminated\", e);\n }\n }",
"private AppTimer() {\n\t\tstart();\n\t}",
"@Override\n public void sleep() {\n System.out.println(\"Zzz...\");\n }",
"public void run() {\n\t\t// System.out.println(\"ReplyLogListener running\");\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tchimeraRead();\n\t\t\t} catch (IOException e) {\n\t\t\t\tlogger.info(\"UCSF Chimera has exited: \"+e.getMessage());\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"@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 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}",
"private void runEventLoop() {\n /*\n This is not very good style, but I will catch any exception, to log and display the message!\n */\n\t\tfor (; ; ) {\n\t\t\ttry {\n\t\t\t\twhile (!shell.isDisposed()) {\n\t\t\t\t\tif (!display.readAndDispatch()) {\n\t\t\t\t\t\tdisplay.sleep();\n\t\t\t\t\t\tif (isClosing)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Throwable e) {\n\t\t\t\tlogCritical(\"runEventLoop (Unforseen Exception)\", e);\n\t\t\t}\n\t\t\tif (isClosing)\n\t\t\t\tbreak;\n\t\t}\n\t\t/* Dispose display */\n\t\tdisplay.dispose();\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 }",
"public void run() {\r\n\t\ttry {\r\n\t\t\tListenForHandshakes();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"void sleep();",
"void sleep();",
"@Override\n\tpublic void run() {\n\t\tString pingPeriodSeconds = this.getString(R.string.ping_period_seconds);\n\t\tlong time = Long.valueOf(pingPeriodSeconds).longValue() * 1000;\n\n//\t\tString msg = this.getString(R.string.ping_message);\n\t\t\n\t\twhile (true) {\n\n//\t\t\tChat.sendMessage(this, msg, this.to, this.from);\n\t \n\t\t\ttry {\n\t\t\t\tThread.sleep(time);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// Assume interruption means end of app.\n\t\t\t\treturn;\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\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() {\n\t\trun(null, CommunicationDefaults.CONSOLE_PORT);\n\t}",
"@Override\n public void run() {\n try {\n // Sleeping\n Thread.sleep(2800);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n\n startMainActivity();\n }",
"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}",
"@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 foreverSystem() {\r\n\t\tcurrentStatus = true;\r\n\t\twhile(currentStatus) {\r\n\t\t\treceiveAndEcho();\r\n\t\t}\t\r\n\t\t\r\n\t\t// Closing up sockets\r\n\t sendSocket.close();\r\n\t receiveSocket.close();\r\n\t System.exit(1);\r\n\t}",
"@Override\n\tpublic void run() {\n\t\twhile(true){\n\t\t\t\n\t\t}\n\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\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}",
"void runAppInBackground(int seconds);",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTimeUnit.SECONDS.sleep(10);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"public void run() {\n ui.showWelcomeMessage();\n runUntilExit();\n }",
"@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 run() {\n\t\t\t\ttry {\n\t\t\t\t\tsleep(5000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tfinally{ finish(); }\n\t\t\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 }",
"public void run ()\r\n\t{\r\n\t\twhile(true)\r\n\t\t{\r\n\t\t\tif(activeSessions.size() == 0)\r\n\t\t\t{\r\n\t\t\t\ttry \r\n\t\t\t\t{\r\n\t\t\t\t\tthis.sleep(20);\r\n\t\t\t\t} catch (InterruptedException e) \r\n\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\telse\r\n\t\t\t{\r\n\t\t\t\tfor(int i = 0; i < activeSessions.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tupdateActiveSession(activeSessions.get(i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\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}",
"private static void exKeepingAppAliveTwo() {\n\n Observable.interval(1, TimeUnit.SECONDS)\n .take(3)\n .blockingSubscribe(System.out::println);\n\n\n\n /* OUTPUT :\n 0\n 1\n 2\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() {\t\r\n\ttry {\r\n\t System.out.println(\"Creating input pipe\");\r\n\t // create the input pipe\r\n\t pipeIn = pipeSvc.createInputPipe(pipeAdv,this);\r\n\t} \r\n\tcatch (Exception e) {\r\n\t System.out.println(\"Error creating input pipe.\");\r\n\t return;\r\n\t}\r\n\tif (pipeIn == null) {\r\n\t System.out.println(\"Error: cannot open InputPipe\");\r\n\t System.exit(-1);\r\n\t}\r\n\tSystem.out.println(\"Listener waiting for messages...\");\r\n\ttry {\r\n\t Thread.sleep(Integer.MAX_VALUE);\r\n\t} catch (Exception e) {\r\n\t System.out.println(\"Program interrupted\");\r\n\t}\r\n }",
"void sleep()\r\n\t{\r\n\t\t\r\n\t}",
"@Override\n @SuppressWarnings(\"CallToPrintStackTrace\")\n public void simpleInitApp() {\n \n\n try {\n System.out.println(\"Using port \" + port);\n // create the server by opening a port\n server = Network.createServer(port);\n server.start(); // start the server, so it starts using the port\n } catch (IOException ex) {\n ex.printStackTrace();\n destroy();\n this.stop();\n }\n System.out.println(\"Server started\");\n // create a separat thread for sending \"heartbeats\" every now and then\n new Thread(new NetWrite()).start();\n server.addMessageListener(new ServerListener(), ChangeVelocityMessage.class);\n // add a listener that reacts on incoming network packets\n \n }",
"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 clientRunning() {\n\t\twhile (this.running) {\n\t\t\tString userInputString = textUI.getString(\"Please input (or type 'help'):\");\n\t\t\tthis.processUserInput(userInputString);\n\t\t}\n\t}",
"public static void main(String[] args) throws Exception {\n System.out.println(\"The chat server is running.\");\n ServerSocket listener = new ServerSocket(PORT);\n try {\n while (true) {\n new Handler(listener.accept()).start();\n }\n } finally {\n listener.close();\n }\n }",
"@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 System.out.println(\"2\");\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public void run() {\n\t\tSystem.out.println(\"我要一个教练\");\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"教练来了\"+Thread.currentThread().getName());\n\t\t\n\t\t\n\t}",
"public void run() {\n\t\t\t\ttry {Thread.sleep(1000000000);} catch (InterruptedException ie) {}\n\t\t\t}",
"public static void main(String[] args) {\n\n try (ServerSocket ss = new ServerSocket(PORT)) {\n System.out.println(\"chat.Server is started...\");\n System.out.println(\"Server address: \" + getCurrentIP() + \":\" + PORT);\n\n while (true) {\n Socket socket = ss.accept();\n new Handler(socket).start();\n }\n\n } catch (IOException e) {\n System.out.println(\"chat.Server error.\");\n }\n }",
"public void run() {\n\t\t\tJuego.reStart();\n\n\t\t}",
"public void startListening();",
"@Override\n public void run() {\n\n while (true){\n\n try {\n String serverOutput = fromServer.readLine(); // Attempt to read from the server\n if (serverOutput != null && !serverOutput.trim().equals(\"\\n\") && !serverOutput.trim().equals(\"\")){\n //System.out.println(\"[server] \" + serverOutput); // If we have something that's not nonsense, print it\n Text output = new Text(\"[server] \"+ serverOutput);\n feed.getChildren().add(output);\n }\n sleep(200); // Wait .2 seconds to print something again\n } catch (InterruptedException e){\n e.printStackTrace();\n } catch (IOException e){\n }\n catch (NullPointerException e){\n }\n }\n }",
"@Override\n public void run(){\n try {\n sleep(3000);\n node.scream();\n node.kill();\n node.setState(Status.RED);\n\n }\n catch(Exception e){\n System.out.println(e);\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 {\n try\n {\n while (true)\n {\n \n }\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"@Override\n public void run() {\n int time = 59;\n while (time >= -1) {\n try {\n Message message = new Message();\n message.what = AppConfig.CHECKCODE;\n message.obj = time;\n handler.sendMessage(message);\n Thread.sleep(1000);\n time--;\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }",
"public void start() {\n setClosedLoopControl(true);\n }",
"@Override\n public void run() {\n System.out.println(\"hello\");\n loadunsendmessage();\n if(tmr==0){\n handler.postDelayed(this, 10000);\n }\n }",
"public static void main(String[] args) {\n new ServerControl().start();\n new UserMonitor().start();\n boolean listening = true;\n //listen for connection attempt and handle it accordingly\n try (ServerSocket socket = new ServerSocket(4044)) {\n while (listening) {\n new AwaitCommand(Singleton.addToList(socket.accept())).start();\n System.out.println(\"Connection started...\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(bLinked &&!isExit()){\r\n\t\t\t\tLog.d(\"123\", \"set heart beat threadid:\"+Thread.currentThread().getId());\r\n\t\t\t\tjni.talkSetHeartBeat();\r\n\t\t\t\tif(jni.talkGetRegisterState()!=1 ){\r\n\t\t\t\t\tLog.e(\"123\", \"心跳停止了\");\r\n\t\t\t\t\tbLinked = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tbLinked = true;\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(interval*1000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!bLinked){\r\n\t\t\t\thandler.sendEmptyMessage(MSG_NOT_LINK);\r\n\t\t\t}\r\n\t\t\theartThread = null;\r\n\t\t\tsuper.run();\r\n\t\t}",
"public static void waitForAI(){\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void run() {\n if (timerValidFlag)\n gSeconds++;\n Message message = new Message();\n message.what = 1;\n handler.sendMessage(message);\n }",
"@Override\n public void run() {\n UpnpService upnpService = new UpnpServiceImpl(listener);\n\n // Send a search message to all devices and services, they should respond soon\n upnpService.getControlPoint().search(new STAllHeader());\n\n // Let's wait 10 seconds for them to respond\n// System.out.println(\"Waiting 10 seconds before shutting down...\");\n try {\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Release all resources and advertise BYEBYE to other UPnP devices\n// System.out.println(\"Stopping Cling...\");\n upnpService.shutdown();\n\n\n }",
"@Override\n\t public void run()\n\t {\n\t // running is initialized as true and stays that way until shutdown method is called from main thread\n\t \t\t// running is volatile to ensure that the change made to running by calling shutdown() on the main thread\n\t \t\t// is read synchronized and the change is passed to background thread where run() is executed\n\t \t\twhile (running)\n\t {\n\t System.out.println (\"Hello\");\n\t \n\t try\n\t {\n\t Thread.sleep(300);\n\t }\n\t catch (InterruptedException e)\n\t {\n\t e.printStackTrace();\n\t }\n\t }\n\t }",
"protected void pause() {\n sleep(300);\n }",
"private void sleep() {\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t\n\t\t\t while ( !bFinished ) {\n\t\t\t \ttry {\n\t\t\t\t\t\t\tThread.sleep(200);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t }\n\t\t\t System.exit(0);\n\t\t\t\t}",
"public void pauseApp() {\n theIsRunning = false;\n }",
"public void listen() {\n DeviceManager cpuUsage = new CPUUsageManager();\n cpuUsage.printStatus();\n \n }",
"public static void main(String[] args) {\n\n Timer timer = new Timer();\n final TimerTask task = new TimerTask() {\n\n @Override\n public void run() {\n System.out.println(\"=====\" + System.currentTimeMillis());\n try {\n TimeUnit.SECONDS.sleep(10);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n };\n timer.schedule(task, 1000, 1000);\n }",
"public void pauseApp()\r\n\t{\n\t}",
"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 }",
"public void pauseApp() {\n midletPaused = true;\n }"
] | [
"0.65249306",
"0.64934516",
"0.64629924",
"0.6398073",
"0.6391203",
"0.61238164",
"0.60911274",
"0.60479176",
"0.6029828",
"0.6013383",
"0.6007699",
"0.59542847",
"0.59251094",
"0.5912493",
"0.5906055",
"0.589378",
"0.58778846",
"0.5872115",
"0.58678544",
"0.58655614",
"0.5856827",
"0.5846002",
"0.5826732",
"0.5818769",
"0.581791",
"0.58041877",
"0.5796457",
"0.57929593",
"0.57856333",
"0.57809263",
"0.576774",
"0.5759951",
"0.5754929",
"0.57517064",
"0.5743731",
"0.57294834",
"0.5709227",
"0.5705163",
"0.5699317",
"0.5697277",
"0.56967986",
"0.5692259",
"0.56922567",
"0.56922567",
"0.5691788",
"0.56735253",
"0.5671005",
"0.56674373",
"0.56654006",
"0.5664659",
"0.5659354",
"0.5646604",
"0.56448615",
"0.56302714",
"0.56245124",
"0.5616592",
"0.56137574",
"0.55937034",
"0.5582937",
"0.5577624",
"0.5576969",
"0.55761445",
"0.557213",
"0.55697125",
"0.55650616",
"0.55645525",
"0.5563655",
"0.5563617",
"0.5562761",
"0.5560053",
"0.5557025",
"0.55545574",
"0.5553726",
"0.55419576",
"0.5529768",
"0.5511274",
"0.5508973",
"0.5502815",
"0.5502465",
"0.5501673",
"0.54939926",
"0.54833376",
"0.54766446",
"0.5474846",
"0.54746306",
"0.54735",
"0.5466849",
"0.5462965",
"0.5457422",
"0.54551995",
"0.54525304",
"0.5450622",
"0.5447723",
"0.5444879",
"0.5442055",
"0.5440143",
"0.5438996",
"0.54346347",
"0.543221",
"0.5422752"
] | 0.5439528 | 96 |
DAO method to get the users details from the database. | List<User> getUsers(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic List<User> getallUserDetail() {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\t// select all from table user\n\t\tString sql = \"SELECT * FROM user\";\n\t\tList<User> listuser = jdbcTemplate.query(sql, new RowMapper<User>() {\n\n\t\t\t@Override\n\t\t\tpublic User mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\tUser user = new User();\n\t\t\t\t// set parameters\n\t\t\t\tuser.setUserid(rs.getLong(\"user_id\"));\n\t\t\t\tuser.setEmailid(rs.getString(\"emailid\"));\n\t\t\t\tuser.setAppversion(rs.getString(\"appversion\"));\n\t\t\t\tuser.setGcmregistartionkey(rs.getString(\"gcmregistartionkey\"));\n\t\t\t\tuser.setMobileno(rs.getString(\"mobileno\"));\n\t\t\t\tuser.setUuid(rs.getString(\"uuid\"));\n\t\t\t\tuser.setUsername(rs.getString(\"username\"));\n\t\t\t\tuser.setCreateddate(rs.getDate(\"createddate\"));\n\t\t\t\treturn user;\n\t\t\t}\n\n\t\t});\n\n\t\treturn listuser;\n\n\t}",
"UserDao getUserDao();",
"UserInfoDao getUserInfoDao();",
"@Override\r\n\tpublic User getAllUser() {\n\t\tList<User> list=null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT * FROM USER\";\r\n\t\t\treturn qr.query(sql, new BeanHandler<User>(User.class));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"List<BlogUser> getUsers() throws DAOException;",
"@Override\n\tpublic List<User> list() \n\t{\n\t\treturn userDAO.list();\n\t}",
"@Override\n public User getUser(String userId){\n return userDAO.getUser(userId);\n }",
"public List<User> getAllUsers(){\n myUsers = loginDAO.getAllUsers();\n return myUsers;\n }",
"@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.queryUser();\n\t}",
"public ArrayList<User> list() {\n\t\tUserDao ua=new UserDao();\n\t\treturn ua.list();\n\t\t//System.out.println(\"haii\");\n\t\t \n\t}",
"private UserDao() {\n\t\tusersList = new HashMap<String, User>();\n\t\tusersDetails = JsonFilehandling.read();\n\t\tfor (JSONObject obj : usersDetails) {\n\t\t\tusersList.put(obj.get(\"id\").toString(), new User(obj.get(\"id\").toString(),obj.get(\"name\").toString(), obj.get(\"profession\").toString()));\n\t\t}\n\t}",
"@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.getList();\n\t}",
"public interface UserDAO \r\n{\r\n\t/**\r\n\t * Insert a new user into the table.\r\n\t * @param user\r\n\t */\r\n public void insert(User user);\r\n \r\n /**\r\n\t * Update an existing user into the table.\r\n\t * @param user\r\n\t */\r\n public void update(User user);\r\n \r\n /**\r\n\t * Update a user's current budget duration id.\r\n\t * @param user\r\n\t */\r\n public void updateDuration(User user);\r\n \r\n /**\r\n * Remove a user from the user table.\r\n * @param username\r\n */\r\n public void delete(String username);\r\n \r\n /**\r\n * Get a user corresponding to a username.\r\n * Easiest way to get a user.\r\n * @param userId\r\n * @return User\r\n */\r\n public User get(String username);\r\n \r\n /**\r\n * Get an user corresponding to a user's email.\r\n * @param email\r\n * @return User\r\n */\r\n public User getUserByEmail(String email);\r\n \r\n /**\r\n * Returns a list of all users in the user table.\r\n * @return List<User>\r\n */\r\n public List<User> list();\r\n \r\n /**\r\n * Returns a list of all users corresponding to a\r\n * username. This should only return one user.\r\n * @param currentUsername\r\n * @return List<User>\r\n */\r\n\tpublic List<User> list(String currentUsername);\r\n\t\r\n /**\r\n * Returns a list of all users with usernames like\r\n * the given string.\r\n * @param search\r\n * @return List<User>\r\n */\r\n\tpublic List<User> listSearch(String search);\r\n}",
"@Override\n\tpublic List<Object> getAllUsers() {\n\t\tList<Object> usersList = new ArrayList<Object>();\n\t\tList<TestUser> users = dao.getAll();\n\t\tSystem.out.println(dao.exists(5));\n\t\tfor(TestUser user : users){\n\t\t\tMap<String,Object> m = new HashMap<String,Object>();\n\t\t\tm.put(\"id\", user.getId());\n\t\t\tm.put(\"name\", user.getUsername());\n\t\t\tm.put(\"pwd\", user.getPassword());\n\t\t\tJSONObject j = new JSONObject(m);\n\t\t\tusersList.add(j);\n\t\t}\n\t\treturn usersList;\n\t}",
"@Override\n\tpublic Collection<Users> read() {\n\t\treturn userDAO.readAll();\n\t}",
"List<User> getAll() throws SQLException;",
"List<User> findAll() throws UserDaoException;",
"public List getAllUsers();",
"public List<Users> getUserList(){\n\t\tList<Users> users = (List<Users>) this.userDao.findAll();\n\t\treturn users;\n\t}",
"@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, Object> reqs) {\n\t\treturn joaSimpleDao.retrieve(\"tp_users\", reqs);\n\t}",
"@Override\n public String getUserPersonalInfo(String user_id)\n {\n String returnVal = null; \n Connection conn = null;\n Statement stmt = null;\n try \n {\n db_controller.setClass();\n conn = db_controller.getConnection();\n stmt = conn.createStatement();\n String sql;\n \n sql = \"SELECT information from user_personal_information where user_id = '\" + user_id + \"'\";\n \n ResultSet rs = stmt.executeQuery(sql);\n \n \n while(rs.next())\n {\n returnVal = rs.getString(\"information\");\n }\n \n stmt.close();\n conn.close();\n \n } \n catch (SQLException ex) { ex.printStackTrace(); return null;} \n catch (ClassNotFoundException ex) { ex.printStackTrace(); return null;} \n return returnVal;\n }",
"public List<YuserVO> getAllUsers() {\n\t\tList<YuserVO> list = null;\n\t\t\ttry {\n\t\t\t\tlist = userDao.getAllUsers();\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\tSystem.out.println(\"get users failed ..................................\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\treturn list;\n\t}",
"public interface UserDAO {\n\n List getUsers();\n\n User getUser(Integer id);\n\n User getUser(String UserName, String PassWord);\n\n void addUser(User user);\n\n void updateUser(User user);\n\n String deleteUser(Integer id);\n\n}",
"public List listUsers() {\n Session session = HibernateSessionFactory.getSessionFactory().openSession();\n Transaction tx = null;\n List users = null;\n try {\n tx = session.beginTransaction();\n users = session.createQuery(\"FROM User\").list();\n for (Iterator iterator = users.iterator(); iterator.hasNext(); ) {\n User user = (User) iterator.next();\n System.out.print(\"id: \" + user.getId());\n System.out.print(\" Username: \" + user.getUsername());\n System.out.print(\" Password: \" + user.getPassword());\n System.out.println(\" Email: \" + user.getEmail());\n }\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null) tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n return users;\n }",
"public List<User> searchUser() {\n String idUserQuery = (id == null) ? \"'%'\" : Integer.toString(id);\n String firstNameQuery = (\"\".equals(firstName) || \" \".equals(firstName)) ? \"'%'\" : \"'%\" + firstName + \"%'\";\n String lastNameQuery = (\"\".equals(lastName) || \" \".equals(lastName)) ? \"'%'\" : \"'%\" + lastName + \"%'\";\n String emailQuery = (\"\".equals(email) || \" \".equals(email)) ? \"'%'\" : \"'%\" + email + \"%'\";\n String idCityQuery = Integer.toString(idCity);\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n Statement stmt = conn.createStatement();\n String query = \"select * from users where id_user like \" + idUserQuery;\n query += \" and first_name like \" + firstNameQuery;\n query += \" and last_name like \" + lastNameQuery;\n query += \" and email like \" + emailQuery;\n query += \" and id_city=\" + idCityQuery;\n ResultSet rs = stmt.executeQuery(query);\n allUsers = new ArrayList<User>();\n while (rs.next()) {\n User user = new User();\n user.setId(rs.getInt(\"id_user\"));\n user.setFirstName(rs.getString(\"first_name\"));\n user.setLastName(rs.getString(\"last_name\"));\n user.setPhoneNumber(rs.getString(\"phone_number\"));\n user.setEmail(rs.getString(\"email\"));\n user.setAddress(rs.getString(\"address\"));\n user.setIdCity(rs.getInt(\"id_city\"));\n allUsers.add(user);\n renderUserTable = true;\n }\n if (allUsers.size() == 0) {\n FacesContext context = FacesContext.getCurrentInstance();\n context.getExternalContext().getFlash().setKeepMessages(true);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"User not found\", null);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }\n } catch (SQLException ex) {\n Logger.getLogger(UserController.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n clear();\n try {\n conn.close();\n } catch (Exception e) {\n /* ignored */ }\n }\n return null;\n }",
"public HashMap<String, String> getUserDetails() {\n HashMap<String, String> user = new HashMap<String, String>();\n String selectQuery = \"SELECT * FROM \" + TABLE_USER;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n // Mover a la primera de fila\n cursor.moveToFirst();\n if (cursor.getCount() > 0) {\n user.put(\"name\", cursor.getString(1));\n user.put(\"email\", cursor.getString(2));\n user.put(\"uid\", cursor.getString(3));\n user.put(\"created_at\", cursor.getString(4));\n }\n cursor.close();\n db.close();\n // Devolver el usuario\n Log.d(TAG, \"Fetching user from Sqlite: \" + user.toString());\n\n return user;\n }",
"@Override\n\tprotected UserDAO getDao() {\n\t\treturn userDAO;\n\t}",
"public List<User> allUserRecords() {\n\t\tSystem.out.println(\"Calling getAllUserRecords() Method To Fetch Users Record\");\t\n\t\tList<User> userList = userDAO.listUser();\n\t\treturn userList;\n\t}",
"@Override\n public User getUser(String given_username) \n {\n User tempUser = null;\n Connection conn = null;\n Statement stmt = null;\n try \n {\n db_controller.setClass();\n conn = db_controller.getConnection();\n stmt = conn.createStatement();\n String sql;\n \n sql = \"SELECT * FROM users where username = '\" + given_username + \"'\";\n ResultSet rs = stmt.executeQuery(sql);\n \n while(rs.next())\n {\n int id = rs.getInt(\"user_id\");\n String firstname = rs.getString(\"firstname\");\n String lastname = rs.getString(\"lastname\");\n String username = rs.getString(\"username\");\n String password = rs.getString(\"password\");\n String city = rs.getString(\"city\");\n String number = rs.getString(\"number\");\n\n tempUser = new User(id,firstname,lastname,username,password,city,number);\n System.out.println(\"Here-1\");\n }\n rs.close();\n stmt.close();\n conn.close();\n System.out.println(\"Here\");\n if(tempUser == null) System.out.println(\"true\");\n } \n catch (SQLException ex) {ex.printStackTrace(); return null;} \n catch (ClassNotFoundException ex) {ex.printStackTrace(); return null; }\n return tempUser;\n }",
"@Override\n\tpublic List<UserWithoutPassword> getUserList() {\n\t\treturn userDao.findAll();\n\t}",
"public List<BlogUser> getAllUsers() throws DAOException;",
"public HashMap<String, String> getUserDetails() {\n HashMap<String, String> user = new HashMap<String, String>();\n String selectQuery = \"SELECT * FROM \" + TABLE_USER;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n // Move to first row\n cursor.moveToFirst();\n if (cursor.getCount() > 0) {\n user.put(\"name\", cursor.getString(1));\n user.put(\"email\", cursor.getString(2));\n user.put(\"uid\", cursor.getString(3));\n user.put(\"created_at\", cursor.getString(4));\n user.put(\"address\", cursor.getString(5));\n user.put(\"number\", cursor.getString(6));\n\n }\n cursor.close();\n db.close();\n // return user\n Log.d(TAG, \"Fetching user from Sqlite: \" + user.toString());\n\n return user;\n }",
"@Override\n\tpublic List<User> findUser() {\n\t\treturn userdao.findUser();\n\t}",
"@Override\r\n\tpublic List<User> getUsers() {\n\t\tList<User> userlist=dao.getUsers();\r\n\t\treturn userlist;\r\n\t}",
"public List<TestUser> getAllUsers(){\n\t\tSystem.out.println(\"getting list of users..\");\n\t\tList<TestUser> user=new ArrayList<TestUser>();\n\t\tuserRepositary.findAll().forEach(user::add);\n\t\t//System.out.println(\"data: \"+userRepositary.FindById(\"ff80818163731aea0163731b190c0000\"));\n\t\treturn user;\n\t}",
"public List<User> getAllUsers(){\n return userRepository.findAll();\n }",
"public interface UserDAO extends AbstractDAO<User> {\n\n /**\n * This method checks the availability of the <i>login</i> and <i>password</i> in the <i>users</i> database table.\n *\n * @param login - entered <i>login</i> filed of the user.\n * @param password - entered <i>password</i> field of the user.\n * @param connection - the current connection to a database. Transmitted from the service module to provide transactions.\n * @return - boolean value of the condition:\n * returns \"true\" if the incoming data correspond to the record of the database table;\n * returns \"false\" if the incoming data do not correspond to the record of the database table.\n */\n boolean isAuthorized(String login, String password, Connection connection) throws DAOException;\n\n /**\n * This method reads data from <i>users</i> database table, creates and returns User object according to the entered login.\n *\n * @param login - entered <i>login</i>.\n * @param connection - the current connection to a database. Transmitted from the service module to provide transactions.\n * @return - User object.\n */\n User getByLogin(String login, Connection connection) throws DAOException;\n\n /**\n * This method check the uniqueness of the user.\n *\n * @param login - entered <i>login</i>.\n * @param connection - the current connection to a database. Transmitted from the service module to provide transactions.\n * @return - boolean value of the condition:\n * returns \"false\" if the incoming data correspond to the record of the database table;\n * returns \"true\" if the incoming data do not correspond to the record of the database table.\n * @throws DAOException\n */\n boolean checkUniqueUser(String login, Connection connection) throws DAOException;\n\n /**\n * This method reads and returns information from a record (row) of a database table.\n *\n * @param id - id number of the record (row) in the database table..\n * @param connection - the current connection to a database. Transmitted from the service module to provide transactions.\n * @return - an entity from a database table according to the incoming id number.\n */\n User getById(String id, Connection connection) throws DAOException;\n\n /**\n * This method updates an existing record (row) in a database table.\n *\n * @param user - the current entity of user which will be updated.\n * @param connection - the current connection to a database. Transmitted from the service module to provide transactions.\n */\n void update(User user, Connection connection) throws DAOException;\n\n /**\n * This method creates entity of User class from data received from ResultSet.\n *\n * @param resultSet - a database result \"row\" with required values.\n * @param user - the entity of User with \"null\" value for setting corresponding values.\n * @return - created user with fields.\n * @throws SQLException\n */\n User createUser(ResultSet resultSet, User user) throws SQLException;\n}",
"@Override\n public Users getUsers() throws UserException {\n Users users = new Users();\n log.debug(\"getUsers\");\n User user = null;\n ResultSet result;\n Connection conn = null;\n PreparedStatement stm = null;\n try {\n conn = provider.getConnection();\n\n stm = conn.prepareStatement(GET_ALL_USERS);\n result = stm.executeQuery();\n\n while (result.next()) {\n user = buildUserFromResult(result);\n log.debug(\"User found {}\", user);\n users.add((DataUser) user);\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n throw new UserException(e.getMessage());\n\n } finally {\n try {\n stm.close();\n conn.close();\n } catch (Exception e) {\n\n e.printStackTrace();\n }\n }\n return users;\n }",
"@Override\n\tpublic List<User> getAll() {\n\t\treturn userDao.getAll();\n\t}",
"@GetMapping(\"/users\")\n @PreAuthorize(\"hasRole('Admin')\")\n public SuccessResponse<List<UserResponse>> getUsers() {\n if(!connectionService.isReachable()) {\n String exceptionMessage = \"Cannot connect to database.\";\n System.out.println(exceptionMessage);\n throw new DatabaseException(exceptionMessage);\n }\n\n final var users = userService\n .findAllUsers()\n .stream()\n .map(UserResponse::fromUser)\n .collect(Collectors.toList());\n return new SuccessResponse<>(users);\n }",
"@Override\n\tpublic List<Users> getAll() {\n\t\treturn usersDAO.getAll();\n\t}",
"public static ObservableList<User> getUsers() throws SQLException {\n db.init();\n String q1 = \"{call [sp_retrieveUsers]}\";\n ObservableList<User> userList = FXCollections.observableArrayList();\n ResultSet rs = null;\n try {\n rs = db.callableStatementRs(q1);\n } catch (SQLException ex) {\n System.out.println(\"An error occured: \" + ex);\n }\n\n if (rs != null) {\n try {\n while (rs.next()) {\n User user = new User();\n user.setUserId(Integer.toString(rs.getInt(\"user_id\")));\n user.setFirstName(rs.getString(\"first_name\"));\n user.setLastName(rs.getString(\"last_name\"));\n user.setEmail(rs.getString(\"email\"));\n user.setUsername(rs.getString(\"username\"));\n user.setCrewId(Integer.toString(rs.getInt(\"crewId\")));\n\n userList.add(user);\n }\n } catch (SQLException ex) {\n System.out.println(\"An exception occured: \" + ex);\n log.error(ex.toString());\n }\n }\n return userList;\n }",
"public static ArrayList<User> selectUsers() {\n \n ArrayList<User> users = new ArrayList<>();\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n String query = \"SELECT * FROM users \";\n \n try {\n ps = connection.prepareStatement(query);\n rs = ps.executeQuery();\n ResultSetMetaData mD = rs.getMetaData();\n int colCount = mD.getColumnCount();\n User user = null;\n \n for (int i = 0; i < colCount; i++) {\n if (rs.next()) {\n user = new User();\n user.setUserID(rs.getInt(\"userID\"));\n user.setFirstName(rs.getString(\"firstName\"));\n user.setLastName(rs.getString(\"lastName\"));\n user.setEmail(rs.getString(\"email\"));\n user.setAddr1(rs.getString(\"addr1\"));\n user.setAddr2(rs.getString(\"addr2\"));\n user.setCity(rs.getString(\"city\"));\n user.setStateRegion(rs.getString(\"state\"));\n user.setZipcode(rs.getInt(\"zip\"));\n user.setCountry(rs.getString(\"country\"));\n user.setRoleName(rs.getString(\"roleName\"));\n System.out.println(user.getFirstName());\n users.add(user);\n }\n }\n return users;\n } catch (SQLException e) {\n System.out.println(e);\n return null;\n } finally {\n DBUtil.closeResultSet(rs);\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }",
"public List<UserData> list() {\n\t\treturn userDAO.list();\r\n\t}",
"@GET\n\t@Path(\"/allUsers\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Map<String, List<User>> getUser() throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tMap<String, List<User>> user = userDao.getUser();\n\t\t\n\t\treturn user; \n\t}",
"@Override\n public List<User> findAll() throws DaoException {\n log.info(\"Get all users\");\n return userDao.findAll();\n }",
"Collection<User> getUsers() throws DataAccessException;",
"List<User> findAll() throws DataAccessException;",
"@Override\r\n\tpublic List<User> getAllUser() {\n\t\tList<User> listStudents = new ArrayList<User>();\r\n\t\tlistStudents = userReposotory.findAll();\r\n\t\treturn listStudents;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<User> getAllUsers() throws ToDoListDAOException{\r\n\t\tSession session = factory.openSession();\r\n\t\t\r\n\t\tList<User> allUsers = new ArrayList<User>();\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tsession.beginTransaction();\r\n\t\t\tallUsers = session.createQuery(\"from User\").list();\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t}\r\n\t\tcatch (HibernateException e)\r\n\t\t{\r\n\t\t\tsession.getTransaction().rollback();\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tif(session != null) \r\n\t\t\t{ \r\n\t\t\t\tsession.close(); \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn allUsers;\r\n\t}",
"@Override\r\n\tpublic List listAllUser() {\n\t\treturn userDAO.getUserinfoList();\r\n\t}",
"@Override\r\n\tpublic List<User> findAll() throws Exception {\n\t\tList<User> list=userMapper.findAll();\r\n\t\tif(null!=list){\r\n\t\t\treturn list;\r\n\t\t}else{\r\n\t\t\tthrow new Exception(\"信息表为空\");\r\n\t\t}\r\n\t\t\r\n\t}",
"List<User> getAllUsers();",
"List<User> getAllUsers();",
"public interface UserDAO {\n// 查询所有用户\n public List<User> queryAll();\n// 修改用户的状态\n public void update(User user);\n// 添加一个用户\n public void save(User user);\n// 查看一周的活跃量\n public Integer queryAc(Integer num);\n// 查看用户分布\n public List<CityFB> queryCity();\n\n}",
"public List<User> getAllUsers();",
"@RequestMapping(\"/retrieveUsersDetails\")\n\tpublic ResponseEntity<Object> retrieveById(){\n\t\treturn loginService.retrieveUsersDetails();\n\t}",
"public List<Users> getAllUsers() {\r\n\t\t// return usDao.findAll();\r\n\t\treturn usDao.getAllUsers();\r\n\t}",
"User get(int userId) throws UserNotFoundException, SQLException;",
"public interface UserDAO {\n\n /**\n * Gets all users.\n *\n * @return List of all users.\n */\n List<User> getAll();\n\n /**\n * Gets a user by its id.\n *\n * @param id Id of the user to find.\n * @return User object corresponding to given id.\n */\n User getUserById(int id);\n\n /**\n * Gets a user by its UUID.\n *\n * @param uuid UUID of the user to find.\n * @return User object corresponding to given UUID.\n */\n User getUserByUUID(String uuid);\n\n /**\n * Gets a user by its username.\n *\n * @param username The user's username.\n * @return User object corresponding to given username.\n */\n User getUserByUsername(String username);\n\n /**\n * Gets user by its username.\n *\n * @param username Username of the user to find.\n * @return User object corresponding to given username.\n */\n List<User> searchUsersByUsername(String username);\n\n /**\n * Gets the list of users, the given user is following.\n *\n * @param user User whose 'following' to get.\n * @return List of users, following list of given user.\n */\n List<User> getFollowingForUser(User user);\n\n /**\n * Gets the list of users, the given user is being followed by.\n *\n * @param user User whose 'followers' to get.\n * @return List of users, followers list of given user.\n */\n List<User> getFollowersForUser(User user);\n\n /**\n * Follows a user.\n *\n * @param user User object, who is following someone.\n * @param userToFollow User object, which user to follow.\n */\n void followUser(User user, User userToFollow);\n\n /**\n * Unfollows a user.\n *\n * @param user User object, who will unfollow someone.\n * @param userToUnfollow User object of which user to unfollow.\n */\n void unfollowUser(User user, User userToUnfollow);\n\n /**\n * Registers/adds a user.\n *\n * @param user User object to add.\n */\n void addUser(User user);\n\n /**\n * Edits the information of a user.\n *\n * @param user User object to edit.\n */\n User editUser(User user);\n\n /**\n * Removes/deletes a user.\n *\n * @param user User object to remove\n */\n void removeUser(User user);\n\n /**\n * Checks username and password combination for correctness.\n *\n * @param username\n * @param password\n * @return Instance of user if username and password combination is correct, else null object.\n */\n User login(String username, String password);\n\n User register(User user);\n\n}",
"@RequestMapping(\"/getAllUsersFromDb\")//get\r\n\tpublic ModelAndView getAllUsersFromDb() {\r\n\t\tList<User> userList = serviceImpl.getAllUsers();\r\n//\t\tModelAndView mav = new ModelAndView(\"viewAllUsers\");// /WEB-INF/views/viewAllUsers.jsp\r\n\t\tModelAndView mav = new ModelAndView();\r\n\t\tmav.setViewName(\"viewAllUsers\");// /WEB-INF/views/viewAllUsers.jsp\r\n\t\tmav.addObject(\"allUsers\", userList);\r\n\t\treturn mav; // WEB-INF/views/viewAllUsers.jsp\r\n\t}",
"@Override\n\tpublic List<UserManageEntity> getUserInfo(Map<String, Object> param) {\n\t\treturn userManageDao.getUserInfo(param);\n\t}",
"@Override\n\tpublic List<User> getAllUser() {\n\t\tList<User> users = dao.searchAllUser();\n\t\treturn users;\n\t}",
"public interface UserDAO {\n\n /**\n * Gets all users from the database.\n */\n List<User> getAll() throws SQLException;\n\n /**\n * Gets a single user from the database by id.\n * @param userId of the user.\n * @return the specified user.\n * @throws UserNotFoundException error.\n */\n User get(int userId) throws UserNotFoundException, SQLException;\n\n /**\n * Gets a single user from the database by username.\n * @param username of the user.\n * @return the specified user.\n * @throws UserNotFoundException error.\n */\n User get(String username) throws UserNotFoundException, SQLException;\n\n /**\n * Adds a new user to the database.\n * @param user to add.\n */\n void add(User user) throws SQLException;\n\n /**\n * Checks if a username already exists in the database.\n * @param username to check.\n * @return true is the username does not already exist.\n */\n boolean isUniqueUsername(String username) throws SQLException;\n\n /**\n * Removes a user from the database.\n * @param user to remove.\n */\n void remove(User user) throws SQLException;\n\n /**\n * Updates a users information in the database.\n * @param user to updateCountries.\n */\n void update(User user) throws SQLException;\n\n /**\n * Checks a users credentials.\n * @param username username.\n * @param password password.\n * @return True if user is valid.\n * @throws SQLException thrown on sql error.\n * @throws UserNotFoundException thrown when the user is not found.\n */\n Boolean checkCredentials(String username, String password) throws\n SQLException, UserNotFoundException;\n\n}",
"@Override\r\n\tpublic List findAll() {\n\t\treturn usermaindao.findAll();\r\n\t}",
"@Override\n public List<User> selectAllUsers() {\n\n List<User> userList = new ArrayList<>();\n\n try (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) {\n\n String sql = \"SELECT * FROM ers_users\";\n\n PreparedStatement ps = connection.prepareStatement(sql);\n\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n userList.add(\n new User(\n rs.getInt(1)\n , rs.getString(2)\n , rs.getString(3)\n , rs.getString(4)\n , rs.getString(5)\n , rs.getString(6)\n , rs.getInt(7)\n )\n );\n }\n }\n\n catch (SQLException e) {\n\n e.printStackTrace();\n }\n\n return userList;\n }",
"@Transactional\r\n\tpublic List<User> getUserList() {\r\n\t\tString hql = \"from User\";\r\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\r\n\t\t\r\n\t\treturn query.list();\r\n\t}",
"public List<User> getAllUsers() throws ClassNotFoundException, SQLException {\n\t\tConnection con = DBConnection.getConnection();\r\n\t\tList<User> userList = new ArrayList<>();\r\n\t\tList list = new ArrayList<>();\r\n\t\tUser user = null;\r\n\t\tCourse course =new Course(); \r\n\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\"SELECT user_table.user_id,user_table.name,user_table.age,user_table.gender,user_table.contact_number,user_course.course_code,course.name FROM user_table JOIN user_course ON user_table.user_id=user_course.user_id join course on user_course.vendor_id=course.user_id\");\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\t \r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tuser = new User();\r\n user.setId(rs.getInt(1));\r\n\t\t\t\tuser.setName(rs.getString(2));\r\n\t\t\t\tuser.setAge(rs.getInt(3));\r\n\t\t\t\tuser.setGender(rs.getString(4));\r\n\t\t\t\tuser.setContactNumber(rs.getInt(5));\r\n\t\t\t\tuser.setCid(rs.getInt(6));\r\n\t\t\t user.setCname( rs.getString(7));\r\n\t\t\t\tuserList.add(user);\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t \r\n\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n \r\n\t\treturn userList;\r\n\r\n\t}",
"protected void getUserList() {\n\t\tmyDatabaseHandler db = new myDatabaseHandler();\n\t\tStatement statement = db.getStatement();\n\t\t// db.createUserTable(statement);\n\t\tuserList = new ArrayList();\n\t\tsearchedUserList = new ArrayList();\n\t\tsearchedUserList = db.getUserList(statement);\n\t\tuserList = db.getUserList(statement);\n\t\tusers.removeAllElements();\n\t\tfor (User u : userList) {\n\t\t\tusers.addElement(u.getName());\n\t\t}\n\t}",
"public List<User> fetchAll()\n {\n String query = \"SELECT * FROM user\";\n RowMapper<User> userRowMapper = new BeanPropertyRowMapper<>(User.class); // a collection type that holds the results of the query\n List<User> userList; // list of users that will be returned\n try\n {\n userList = template.query(query, userRowMapper); // call the database and assign the results to the userList\n } catch (EmptyResultDataAccessException e)\n {\n userList = new ArrayList<>(); // return an empty arrayList\n }\n return userList;\n }",
"public List<User> queryAllUsers() {\n \tList<User> userList = new ArrayList<>();\n\tUser user;\n String sql = \"SELECT * FROM users\";\n\ttry {\t\n this.statement = connection.prepareStatement(sql);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n\t\tuser = new User();\n user.setUserName(this.resultSet.getString(\"user_name\"));\n user.setHashedPassword(this.resultSet.getString(\"hashed_password\"));\n\t\tuser.setEmail(this.resultSet.getString(\"email\"));\n user.setHashedAnswer(this.resultSet.getString(\"hashed_answer\"));\n user.setIsActivated(this.resultSet.getInt(\"is_activated\"));\n user.setPublicKey(this.resultSet.getString(\"pubkey\"));\n\t\tuserList.add(user);\n }\t\n this.statement.close();\n\t} \n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return userList;\n }",
"User getUserInformation(Long user_id);",
"public interface UserDao {\n\n /**\n * Creating new User.\n * \n * @param user\n * user\n * \n * @throws NullPointerException\n * if user null\n * \n */\n void create(User user);\n\n /**\n * Updating a user.\n * \n * @param user\n * user\n * \n * @throws NullPointerException\n * if user null\n * @throws IllegalArgumentException\n * if DB hasn't this user.\n * \n */\n void update(User user);\n\n /**\n * Removing user.\n * \n * @param user\n * user\n * \n * @throws NullPointerException\n * if user null\n * @throws IllegalArgumentException\n * if DB hasn't this user.\n * \n */\n void remove(User user);\n\n /**\n * Removing user by id.\n * \n * @param id\n * id of user\n * \n * @throws NullPointerException\n * if user null\n * @throws IllegalArgumentException\n * if DB hasn't this user.\n * \n */\n void remove(Long id);\n\n /**\n * Finding all users.\n * \n * @return users.\n */\n List<User> findAll();\n\n /**\n * finding user by login.\n * \n * @param login\n * login\n * @return user\n */\n User findByLogin(String login);\n\n /**\n * Finding user by Е-mail\n * \n * @param email\n * Е-mail\n * @return user\n */\n User findByEmail(String email);\n\n /**\n * Is exist user with this login.\n * \n * @param login\n * login of user\n * @return {@code true} if exist\n */\n boolean isUserByLogin(String login);\n\n /**\n * Is exist user with this e-mail.\n * \n * @param email\n * e-nail of user\n * @return {@code true} if exist\n */\n public boolean isUserByEmail(String email);\n\n /**\n * Find user by id.\n * \n * @param id\n * id of user\n * @return user\n */\n public User findById(Long id);\n\n}",
"public List<User> list() {\n\t\treturn userDao.list();\n\t}",
"public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }",
"public List<user> getAllUser() {\n // array of columns to fetch\n String[] columns = {\n COLUMN_USER_ID,\n COLUMN_USER_EMAIL,\n COLUMN_USER_NAME,\n COLUMN_USER_PASSWORD\n };\n // sorting orders\n String sortOrder =\n COLUMN_USER_NAME + \" ASC\";\n List<user> userList = new ArrayList<user>();\n\n SQLiteDatabase db = this.getReadableDatabase();\n\n // query the user table\n /**\n * Here query function is used to fetch records from user table this function works like we use sql query.\n * SQL query equivalent to this query function is\n * SELECT user_id,user_name,user_email,user_password FROM user ORDER BY user_name;\n */\n Cursor cursor = db.query(TABLE_NAME, //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 user user = new user();\n user.setId(Integer.parseInt(cursor.getString(cursor.getColumnIndex(COLUMN_USER_ID))));\n user.setName(cursor.getString(cursor.getColumnIndex(COLUMN_USER_NAME)));\n user.setEmail(cursor.getString(cursor.getColumnIndex(COLUMN_USER_EMAIL)));\n user.setPassword(cursor.getString(cursor.getColumnIndex(COLUMN_USER_PASSWORD)));\n // Adding user record to list\n userList.add(user);\n } while (cursor.moveToNext());\n }\n cursor.close();\n db.close();\n\n // return user list\n return userList;\n }",
"public List<TbUser> getAllUsers() {\n return userRepository.findAll();\n }",
"@Override\r\n\tpublic Object getList() {\n\t\treturn userDao.getList();\r\n\t}",
"public interface UserInfoDao {\n public UserinfoId getUserById(int id);\n public UserinfoId getUserByName(String name);\n public UserinfoId addUser(UserinfoId user);\n public List<UserinfoId> getAllUsers();\n}",
"public interface UserDao {\n\n\n /**\n * 根据用户名密码查询用户\n * @param userName\n * @param password\n * @return\n */\n User findUser(String userName,String password);\n\n /**\n * 查询用户\n * @param id\n * @return\n */\n User findUserById(Long id);\n\n /**\n * 批量查询用户信息\n */\n Collection<User> findUserByIds(Collection<Long> ids);\n\n List<User> findUsers(Collection<Long> ids);\n\n /**\n * 分页查询用户信息\n * @param page\n * @param size\n * @return\n */\n\n List<User> listUsers(int page,int size);\n\n /**\n * 保存用户并返回主键\n * @param user\n * @return\n */\n Long saveUserReturnKey(User user);\n\n /**\n * 保存用户\n * @param user\n * @return\n */\n int saveUser(User user);\n\n /**\n * 更新用户\n * @param user\n */\n int updateUser(User user);\n\n /**\n * 删除用户\n * @param id\n */\n int deleteUserById(Long id);\n}",
"public static List<UserDetails> getUser(String userName){\n\t\t\n\t\tArrayList<UserDetails> useDT = new ArrayList<>();\n\t\tString un = userName;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t//connecting to DB\n\t\t\tc = DatabaseConnection.getConnection();\n\t\t\tstmt = c.createStatement();\n\t\t\tString sqlQuery = \"select * from user where userName = '\"+un+\"'\";\n\t\t\trsR = stmt.executeQuery(sqlQuery);\n\t\t\t\n\t\t\tif(rsR.next()) {\n\t\t\t\t\n\t\t\t\t//assigning values from database to variables\n\t\t\t\tint id = rsR.getInt(1);\n\t\t\t\tString name = rsR.getString(2); \n\t\t\t\tString email = rsR.getString(3);\n\t\t\t\tString address = rsR.getString(4);\n\t\t\t\tString phone = rsR.getString(5); \n\t\t\t\tString username = rsR.getString(6); \n\t\t\t\tString password = rsR.getString(7);\n\t\t\t\t\t\n\t\t\t\tUserDetails getUser = new UserDetails(id,name,email,address,phone,username,password);\n\t\t\t\tuseDT.add(getUser);\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn useDT;\n\t\t\n\t}",
"User get(String username) throws UserNotFoundException, SQLException;",
"public List<User> loadAllUserDetails()throws Exception;",
"@Override\n\tpublic List<User> getAllUser() {\n\t\treturn uDao.getAllUser();\n\t}",
"public Users findAll() {\n\tthis.createConnection();\n try {\n Connection con = this.getCon();\n PreparedStatement stmnt = con.prepareStatement(this.getAllQuery());\n ResultSet rs = stmnt.executeQuery();\n return get(rs);\n } catch (SQLException e) {\n System.out.println(\"SQL Exception\" + e.getErrorCode() + e.getMessage());\n e.getStackTrace();\n return new Users();\n }\n }",
"public ArrayList<IndividualUser> listAllUsers() {\n try {\n PreparedStatement s = sql.prepareStatement(\"SELECT id, userName, firstName, lastName FROM Users \");\n s.execute();\n ResultSet results = s.getResultSet();\n ArrayList<IndividualUser> users = new ArrayList<>();\n if (!results.isBeforeFirst()) {\n results.close();\n s.close();\n return users;\n }\n\n while (!results.isLast()) {\n results.next();\n IndividualUser u = new IndividualUser(results.getInt(1), results.getString(2), results.getString(3), results.getString(4));\n\n users.add(u);\n\n }\n\n results.close();\n s.close();\n\n return users;\n } catch (SQLException e) {\n sqlException(e);\n return null;\n }\n }",
"@Override\n public List<User> findAll() {\n try {\n return runner.query(con.getThreadConnection(),\"select * from user\",new BeanListHandler<User>(User.class));\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }",
"public Dao<User, Integer> getUserDao() throws SQLException {\n\t\tif (userDao == null) {\n\t\t\tuserDao = getDao(User.class);\n\t\t}\n\t\treturn userDao;\n\t}",
"@Override\n public List<User> findAll() {\n return dao.findAll();\n }",
"@Override\n\tpublic List<Map<String, Object>> getUserList() {\n\t\tList<Map<String, Object>> list = new ArrayList<Map<String,Object>>();\n\t\tString sql = \"select * from tp_users where userType = 2\";\n\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\tlist = joaSimpleDao.queryForList(sql, map);\n\t\treturn list;\n\t}",
"List<User> fetchAllUSers();",
"@Override\n public List<User> getAllUsers() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n List<User> hiberusers =\n session.createQuery(\"From User\").list();\n tx.commit();\n session.close();\n return hiberusers;\n }",
"UserModel retrieveUserModel(String username, String password);",
"public List<User> getAllUser() {\n // array of columns to fetch\n String[] columns = {\n COLUMN_USER_ID,\n COLUMN_USER_NAME,\n COLUMN_USER_EMAIL,\n COLUMN_USER_IMAGE,\n COLUMN_USER_PASSWORD\n };\n // sorting orders\n String sortOrder =\n COLUMN_USER_NAME + \" ASC\";\n List<User> userList = new ArrayList<User>();\n \n // query the user table\n /**\n * Here query function is used to fetch records from user table this function works like we use sql query.\n * SQL query equivalent to this query function is\n * SELECT user_id,user_name,user_email,user_password FROM user ORDER BY user_name;\n */\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.query(\n TABLE_USER, //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 User user = new User();\n user.setId(Integer.parseInt(cursor.getString(cursor.getColumnIndex(COLUMN_USER_ID))));\n user.setName(cursor.getString(cursor.getColumnIndex(COLUMN_USER_NAME)));\n user.setEmail(cursor.getString(cursor.getColumnIndex(COLUMN_USER_EMAIL)));\n byte[] imgByte = cursor.getBlob(3);\n user.setImage(BitmapFactory.decodeByteArray(imgByte, 0, imgByte.length));\n user.setPassword(cursor.getString(cursor.getColumnIndex(COLUMN_USER_PASSWORD)));\n // Adding user record to list\n userList.add(user);\n } while (cursor.moveToNext());\n }\n cursor.close();\n db.close();\n\n // return user list\n return userList;\n }",
"public interface UserDao extends BaseDao<User, Long> {\n\n User findByJaccountUid(String jaccountUid);\n\n User findByJaccountId(String jaccountId);\n\n User findByJaccountChinesename(String jaccountChinesename);\n\n User findByUsername(String username);\n\n User findById(Long id);\n\n List<User> findByRole(User.Role role);\n\n}",
"@Override\n\tpublic List<User> findAllUser() {\n\t\treturn userDao.findAllUser();\n\t}",
"private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }",
"User getById(String id, Connection connection) throws DAOException;",
"public interface UserDao {\n List<User> selectUsers();\n List<User> selectUserslistPage(Map<String,Object> map);\n\n User selectUserByName(Map<String,Object> map);\n}",
"@Override\n\tpublic ArrayList<UsersBean> getUsersList() throws AirlineException {\n\t\t\n\t\tUsersBean usersBean = null;\n\t\tArrayList<UsersBean> usersList = new ArrayList<>();\n\t\t\n\t\tString qry = \"select * from USERS\";\n\t\t\n\t\ttry(PreparedStatement stmt = connect.prepareStatement(qry);\n\t\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\t){\n\t\t\t\twhile(rs.next()){\n\t\t\t\tString userName = rs.getString(1);\n\t\t\t\tString password = rs.getString(2);\n\t\t\t\tString role = rs.getString(3);\n\t\t\t\t\n\t\t\t\tusersBean = new UsersBean(userName, password, role);\n\t\t\t\tusersList.add(usersBean);\n\t\t\t\t}\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tthrow new AirlineException(\"Probelm in getting the movie details!!!\",e);\n\t\t\t\t}\n\t\t\treturn usersList;\n\t\t}",
"UserInfo getUserById(Integer user_id);"
] | [
"0.7656418",
"0.73434097",
"0.73323387",
"0.7252548",
"0.72472394",
"0.72378135",
"0.7193965",
"0.71376324",
"0.7131865",
"0.7125404",
"0.7105457",
"0.7052558",
"0.70398384",
"0.70383346",
"0.701186",
"0.7011267",
"0.6988908",
"0.69694096",
"0.6965324",
"0.69465476",
"0.6944624",
"0.6925877",
"0.69250387",
"0.6918359",
"0.69007283",
"0.6894979",
"0.6892458",
"0.68864334",
"0.68836826",
"0.68787205",
"0.68719655",
"0.6863925",
"0.6861312",
"0.6854808",
"0.6846136",
"0.6832651",
"0.68239623",
"0.68203795",
"0.68133175",
"0.681027",
"0.6800662",
"0.67996305",
"0.6794395",
"0.67899466",
"0.67838943",
"0.6775795",
"0.6774941",
"0.6767983",
"0.6759804",
"0.67591876",
"0.6757014",
"0.67559063",
"0.6752337",
"0.6752337",
"0.67421514",
"0.6735694",
"0.6732163",
"0.67301387",
"0.67285377",
"0.67269325",
"0.672307",
"0.6723009",
"0.6711927",
"0.671145",
"0.6709898",
"0.67048395",
"0.67038184",
"0.6703618",
"0.6702375",
"0.6701047",
"0.6696495",
"0.6696277",
"0.66931367",
"0.66888964",
"0.66888124",
"0.6685811",
"0.66814417",
"0.667879",
"0.66781676",
"0.6670481",
"0.66660583",
"0.6664936",
"0.666363",
"0.6657105",
"0.6655615",
"0.66407436",
"0.6638778",
"0.6632108",
"0.6631571",
"0.66303676",
"0.6630332",
"0.6623013",
"0.6622914",
"0.6622134",
"0.6619041",
"0.66178066",
"0.6616469",
"0.6616262",
"0.6614",
"0.6611147",
"0.66107875"
] | 0.0 | -1 |
DAO method to save the expense record to the database. | boolean saveExpense(Expenses exp); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer save(Expence expence, User user)\r\n/* 51: */ {\r\n/* 52: 48 */ Integer id = (Integer)this.expenceDao.save(expence);\r\n/* 53: 49 */ expence.setId(id);\r\n/* 54: 50 */ ExpenceFlow expenceFlow = new ExpenceFlow();\r\n/* 55: 51 */ expenceFlow.setGxsj(new Date());\r\n/* 56: 52 */ expenceFlow.setExpence(expence);\r\n/* 57: 53 */ expenceFlow.setUser(user);\r\n/* 58: 54 */ expenceFlow.setOptContent(\"新增\");\r\n/* 59: 55 */ expenceFlow.setYwlc(Integer.valueOf(1));\r\n/* 60: 56 */ this.expenceFlowDao.save(expenceFlow);\r\n/* 61: 57 */ return id;\r\n/* 62: */ }",
"public long addExpenseDetail(DBExpensesModel exp) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_TYPE, exp.type);\n values.put(KEY_AMOUNT, exp.amount);\n values.put(KEY_PLACE, exp.place);\n values.put(KEY_NOTE, exp.note);\n values.put(KEY_CHEQUE, exp.cheque);\n values.put(KEY_DATE, exp.date);\n long insert = db.insert(TABLE_EXPENSE, null, values);\n return insert;\n }",
"public void addExpense(Expense exp) {\n ContentValues values = new ContentValues();\n SQLiteDatabase db = getWritableDatabase();\n\n values.put(COLUMN_NAME, exp.get_name());\n values.put(COLUMN_DATE, exp.get_date());\n db.insert(TABLE_EXPENSES, null, values);\n db.close();\n }",
"public void save(PosPrice posPrice) throws DataAccessException {\n super.save(posPrice);\n }",
"public void saveOrUpdate(PosPrice posPrice) throws DataAccessException{\n super.saveOrUpdate(posPrice);\n }",
"public double addExpenseTransaction(ExpenseEntity expenseEntity);",
"private void saveToDb() {\r\n ContentValues values = new ContentValues();\r\n values.put(DbAdapter.KEY_DATE, mTime);\r\n if (mPayeeText != null && mPayeeText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_PAYEE, mPayeeText.getText().toString());\r\n if (mAmountText != null && mAmountText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_AMOUNT, mAmountText.getText().toString());\r\n if (mCategoryText != null && mCategoryText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_CATEGORY, mCategoryText.getText().toString());\r\n if (mMemoText != null && mMemoText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_MEMO, mMemoText.getText().toString());\r\n if (mTagText != null && mTagText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_TAG, mTagText.getText().toString());\r\n\r\n \tif (Utils.validate(values)) {\r\n \t\tmDbHelper.open();\r\n \t\tif (mRowId == null) {\r\n \t\t\tlong id = mDbHelper.create(values);\r\n \t\t\tif (id > 0) {\r\n \t\t\t\tmRowId = id;\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tmDbHelper.update(mRowId, values);\r\n \t\t}\r\n \t\tmDbHelper.close();\r\n \t}\r\n\t}",
"public void save() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.save(this);\r\n\t}",
"public void persistToDatabase(Stock stock, int id) throws ParseException {\n\n\n // Creating the config instance & passing the hibernate config file.\n Configuration config = new Configuration();\n config.configure(\"hibernate.cfg.xml\");\n\n // Session object to start the db transaction.\n Session s = config.buildSessionFactory().openSession();\n\n // Transaction object to begin the db transaction.\n Transaction t = s.beginTransaction();\n\n Stock_infoDAO stock_infoDAO = new Stock_infoDAO();\n stock_infoDAO.setId(id);\n stock_infoDAO.setSymbol(stock.getSymbol());\n BigDecimal price = new BigDecimal(stock.getPrice());\n stock_infoDAO.setPrice(price);\n\n String inDate= stock.getTime();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\n Timestamp ts = new Timestamp(((java.util.Date)dateFormat.parse(inDate)).getTime());\n stock_infoDAO.setTime(ts);\n\n\n // Saving the stockinfo object to the db.\n s.persist(stock_infoDAO);\n\n // Committing the transaction in the db.\n t.commit();\n\n System.out.println(\"\\n===================\\n\");\n\n\n // Closing the session object.\n s.close();\n }",
"EmployeeDetail save(EmployeeDetail detail) throws DBException;",
"public void addNewExpense(Expense expense) {\n SQLiteDatabase db = this.getWritableDatabase();\n \n ContentValues values = new ContentValues();\n values.put(COLUMN_EXPENSE_AMOUNT, expense.getAmount());\n values.put(COLUMN_EXPENSE_CURRENCY, expense.getCurrency());\n values.put(COLUMN_EXPENSE_CATEGORY, expense.getCategory());\n values.put(COLUMN_EXPENSE_WALLET, expense.getWalletTitle());\n values.put(COLUMN_EXPENSE_WALLET_ID, expense.getWalletId());\n values.put(COLUMN_EXPENSE_NOTE, expense.getNote());\n values.put(COLUMN_EXPENSE_EXPENSE_DATE, expense.getExpenseDate());\n\n // Inserting Row\n db.insert(EXPENSE_TABLE, null, values);\n db.close();\n }",
"@RequestMapping(value = \"/insertOne\", method = RequestMethod.POST)\n\t public ResponseEntity<RestResponse> insertOne(@RequestBody Expense expense) {\n System.out.println(\"*** Amount : \"+expense.getAmount());\n\t\treturn new ResponseEntity<RestResponse>(expenseService.insertOne(expense), HttpStatus.OK);\n\t\t}",
"@Dao\npublic interface ExpenseDao {\n\n @Query(\"SELECT * FROM expenses\")\n List<Expense> getExpenses();\n\n @Query(\"SELECT * FROM expenses WHERE id = :expenseId\")\n Expense getExpense(long expenseId);\n\n\n @Insert()\n long addExpense(Expense expense);\n\n @Update()\n void updateExpense(Expense expense);\n\n @Delete()\n void deleteExpense(Expense expense);\n\n @Insert()\n void addTwoExpenses(List<Expense> expenses);\n\n\n}",
"public Notification editExpense(HttpServletRequest request, String expenseId) {\n ExpenseDAO expenseDAO = new ExpenseDAO();\n TagDAO tagDAO = new TagDAO();\n Expense expense;\n Notification notification = new Notification();\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n Date expenseDate = new Date();\n BigDecimal amount;\n\n try {\n expenseDate = simpleDateFormat.parse(request.getParameter(\"expenseDate\"));\n } catch (ParseException e) {\n log.error(\"[\" + className + \"] editEmployee: Error in parsing expenseDate\");\n }\n\n HashSet<String> uniqueStringList = new HashSet<String>();\n HashSet<Tag> tagSet = new HashSet<Tag>();\n String tagStringList = request.getParameter(\"tagString\");\n tagStringList = tagStringList.replace(\" \", \"\");\n\n if (tagStringList != null) {\n String[] tagStringTokenizeList = tagStringList.split(\",\");\n\n for (String tagName : tagStringTokenizeList) {\n uniqueStringList.add(tagName);\n }\n\n for (String tagName : uniqueStringList) {\n Tag tag = tagDAO.getByDisplayName(tagName);\n\n if (tag == null) {\n Tag createTag = new Tag();\n createTag.setName(tagName);\n createTag.setDisplayName(tagName);\n tagDAO.create(createTag);\n tag = tagDAO.getByDisplayName(tagName);\n }\n\n tagSet.add(tag);\n }\n }\n\n amount = new BigDecimal(request.getParameter(\"amount\"));\n\n expense = expenseDAO.getById(expenseId);\n expense.setDate(expenseDate);\n expense.setDescription(request.getParameter(\"description\"));\n expense.setAmount(amount);\n expense.setTags(tagSet);\n\n try {\n expenseDAO.update(expense);\n notification.setNotificationType(NotificationType.SUCCESS);\n notification.setMessage(\"Expense data updated successfully.\");\n log.info(\"[\" + className + \"] editExpense: created Expense\");\n } catch (Exception e) {\n notification.setNotificationType(NotificationType.DANGER);\n notification.setMessage(\"Something went wrong with updating expense. Please try again.\");\n log.error(\"[\" + className + \"] editExpense: failed updating expense\");\n }\n\n return notification;\n }",
"@Override\n\tpublic int saveEmployee() {\n\t\tEmployeeDao dao= new EmployeeDao();\n\t\tint result=dao.saveEmployee(new Employee(101349, \"Deevanshu\", 50000));\n\t\treturn result;\n\t}",
"public void savePosPay(PosPay posPay) throws DataAccessException;",
"public void update(Expence expence)\r\n/* 169: */ {\r\n/* 170:174 */ this.expenceDao.update(expence);\r\n/* 171: */ }",
"protected void saveEarningHistory(EarningHistory earningHistory){\n }",
"public void updateExpense(Expense expense, int expenseId) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_EXPENSE_AMOUNT, expense.getAmount());\n values.put(COLUMN_EXPENSE_CURRENCY, expense.getCurrency());\n values.put(COLUMN_EXPENSE_CATEGORY, expense.getCategory());\n values.put(COLUMN_EXPENSE_WALLET, expense.getWalletTitle());\n values.put(COLUMN_EXPENSE_WALLET_ID, expense.getWalletId());\n values.put(COLUMN_EXPENSE_NOTE, expense.getNote());\n values.put(COLUMN_EXPENSE_EXPENSE_DATE, expense.getExpenseDate());\n\n // Inserting Row\n db.update(EXPENSE_TABLE, values, COLUMN_EXPENSE_ID+\" = \"+expenseId, null);\n db.close();\n }",
"public void createNewExpense(View view) {\n EditText newExpenseNameInput = (EditText) findViewById(R.id.newExpenseName);\n EditText newDateInput = (EditText) findViewById(R.id.addExpenseDateEditText);\n Spinner newWhoPaidSpinner = (Spinner) findViewById(R.id.addExpensePayerSpinner);\n\n String newExpenseName = newExpenseNameInput.getText().toString();\n Long newAmount = totalDebt;\n Date newDate = null;\n try {\n newDate = new SimpleDateFormat(\"dd/MM/yyyy\").parse(newDateInput.getText().toString());\n } catch (ParseException e) {\n e.printStackTrace();\n }\n String newWhoPaid = newWhoPaidSpinner.getSelectedItem().toString();\n List<String> newPayees = new ArrayList<String>();\n\n int payeeListItemHoldersSize = payeeListItemHolders.size();\n List<Long> newOwedAmounts = new ArrayList<Long>();\n\n for (int i = 0; i < payeeListItemHoldersSize; i++) {\n if (payeeListItemHolders.get(i).getCheckBox().isChecked()) {\n newPayees.add(payeeListItemHolders.get(i).getCheckBox().getText().toString());\n newOwedAmounts.add(payeeListItemHolders.get(i).getDebt());\n }\n }\n\n Expense newExpense = new Expense(newExpenseName, newAmount, newDate, newWhoPaid, newPayees, newOwedAmounts, group);\n\n try {\n newExpense.save();\n } catch (com.parse.ParseException e) {\n e.printStackTrace();\n }\n\n // finish activity\n Intent intent = setUpBackIntent();\n setResult(RESULT_OK, intent);\n finish();\n }",
"public void saveOrUpdatePosPay(PosPay posPay) throws DataAccessException;",
"void save(Employee employee);",
"public void save() throws DfException {\n\t\tobject.save();\n\t}",
"private void saveExpositionInDB(String badgeID, int expoSiteId, int expoMonth, int expoYear,\n Date expoDateBegin, Date expoDateEnd, String expoValue)\n throws SQLException {\n\n // do not process exposition is its value is 'M'.\n if(expoValue.equalsIgnoreCase(\"M\")){\n Logger.log(\"Skipped exposition because value is 'M'. (\"+badgeID+\",\"+expoMonth+\",\"+expoValue+\")\",Logger.ERROR_LEVEL_INFO);\n }\n else{\n try{\n // check if value is an integer, otherwise, skip\n Integer.parseInt(expoValue);\n\n // find badgePersonId exposed to this exposition\n psGetPersonIds.setString(1,badgeID);\n psGetPersonIds.setInt(2,expoSiteId);\n psGetPersonIds.setString(3,expoYear+\"\");\n psGetPersonIds.setString(4,expoYear+\"\");\n psGetPersonIds.setTimestamp(5,new Timestamp(expoDateBegin.getTime()));\n psGetPersonIds.setTimestamp(6,new Timestamp(expoDateEnd.getTime()));\n psGetPersonIds.setTimestamp(7,new Timestamp(expoDateBegin.getTime()));\n psGetPersonIds.setTimestamp(8,new Timestamp(expoDateEnd.getTime()));\n ResultSet rs = psGetPersonIds.executeQuery();\n\n // convert to site-id to site-name\n String expoSite = \"\";\n if(expoSiteId==1) expoSite = \"DOEL\";\n else if(expoSiteId==2) expoSite = \"TIHANGE\";\n else if(expoSiteId==3) expoSite = \"IRE\";\n else if(expoSiteId==4) expoSite = \"OTHER\";\n\n // at least one badge found, so add the expoValue to table Items.\n int personCount = 0, personid;\n while(rs.next()){\n // get personid belonging to the found badge\n personid = rs.getInt(\"BadgePersonId\");\n\n // create 3 items to be stored\n itemVOs = new Vector();\n\n // expoValue\n itemType = PREFIX+\"ITEM_TYPE_DOSIMETRY_\"+expoSite+\"_GLOBAL_MONTH\"+expoMonth;\n itemVO = new ItemVO(new Integer(IdentifierFactory.getInstance().getTemporaryNewIdentifier()),itemType,expoValue,new Date(),null);\n itemVOs.add(itemVO);\n\n // badgeID\n itemType = PREFIX+\"ITEM_TYPE_DOSIMETRY_BADGEID_\"+expoSite;\n itemVO = new ItemVO(new Integer(IdentifierFactory.getInstance().getTemporaryNewIdentifier()),itemType,badgeID,new Date(),null);\n itemVOs.add(itemVO);\n\n // expoYear\n itemType = PREFIX+\"ITEM_TYPE_DOSIMETRY_REGISTRATIONYEAR\";\n itemVO = new ItemVO(new Integer(IdentifierFactory.getInstance().getTemporaryNewIdentifier()),itemType,expoYear+\"\",new Date(),null);\n itemVOs.add(itemVO);\n\n storeTransaction(personid,itemVOs,expoSite,expoYear);\n personCount++;\n }\n\n rs.close();\n psGetPersonIds.close();\n // rs empty, no badge found\n if(personCount == 0){\n Logger.log(\"No Badges with BadgeId (\"+badgeID+\") for site (\"+expoSite+\",\"+expoSiteId+\") found in year (\"+expoYear+\").\",Logger.ERROR_LEVEL_INFO);\n }\n }\n // expoValue is no integer\n catch(NumberFormatException e){\n Logger.log(\"Exposition value is no Integer. (\"+badgeID+\",\"+expoMonth+\",\"+expoValue+\")\",Logger.ERROR_LEVEL_ERROR);\n if(Debug.enabled) Debug.println(\"ERROR : Exposition value is no Integer. (\"+badgeID+\",\"+expoMonth+\",\"+expoValue+\")\");\n }\n }\n }",
"@Override\n\tpublic void save(EmpType entity) {\n\t\t\n\t}",
"@Override\r\n public void save(BuyTicketModel value) {\n String sql = \"insert into buyticket values(?,?,?,?,?,?,?,?,?,?,?,?) \";\r\n \r\n try {\r\n PreparedStatement pstm = database.getCon().prepareStatement(sql);\r\n pstm.setString(1, value.getSlno());\r\n pstm.setString(2, value.getCustomername());\r\n pstm.setString(10,value.getContact());\r\n pstm.setString(3, value.getDestination());\r\n pstm.setString(4, value.getTime());\r\n pstm.setString(5, value.getFare());\r\n pstm.setString(6, value.getComment());\r\n pstm.setString(7, value.getDate());\r\n pstm.setString(8, value.getPayment());\r\n pstm.setString(9, value.getSeat());\r\n pstm.setString(11, value.getType());\r\n pstm.setString(12, value.getBusname());\r\n \r\n \r\n pstm.executeUpdate();\r\n pstm.close();\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(BuyTicketImpl.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n }",
"public void save();",
"public void save();",
"public void save();",
"public void save();",
"public void save(ZpEvaluateDegreeVersionEntity entity) {\n\t\tdao.save(entity);\n\t}",
"@Override\r\n\tpublic Employee save(Employee emp) {\n\t\t return empdao.save(emp);\r\n\t}",
"public void save() throws EntityPersistenceException {\n\n }",
"@Override\r\n\tpublic void save(Connection connection, Salary salary) throws SQLException {\n\r\n\t}",
"public void save(HrJBorrowcontract entity);",
"@Override\n\tpublic void save(Employee employee) {\n\t\temployeeDao.save(employee);\n\t\t\n\t}",
"public void salvar() throws Exception {\t\r\n\t\t\t\t\r\n\t\tDate date = new Date();\r\n\t\tString url = evento.getUrl();\r\n\t\tevento.setNmStatus(EventoService.getStatus(url));\r\n\t\tevento.setDataHora(date);\r\n\t\teventoRepository.save(evento); // COLOCAMOS NO BANCO\r\n\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Cadastro inserido\"));\r\n\t\tif (!modoEdicao)\r\n\t\t\teventos.add(evento); // COLOCAMOS NA LISTA\r\n\t\tevento = new Evento();\r\n\t\tmodoEdicao = false;\r\n\t}",
"void save(E entity);",
"@Override\r\n\tpublic void saveEmployee(Employee employee) {\n\t\t\r\n\t}",
"protected void saveRecord() throws DAOException {\r\n\t\t// Prepara para actualizar\r\n\t\tobject.prepareToUpdate();\r\n\t\t// Guarda objecto\r\n\t\tobjectDao.save(object);\r\n\t\t// Guarda registros de relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\t// Asigna Id padre\r\n\t\t\trelco.getId().setDconsecnk(object.getDconsecnk());\r\n\t\t\tsedrelcoDao.save(relco);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic boolean addDeposit(Deposits deposit) throws Exception {\n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\tString sql=\"\";\n\t\tif (deposit.getType().equals(\"time\")) {\n\t\t sql = \"insert into deposits(a_id,amount,currency,deposit_time,interest,period,type,statement) values('\"\n\t\t\t\t\t+ deposit.getA_id()\n\t\t\t\t\t+ \"','\"\n\t\t\t\t\t+ deposit.getAmount()\n\t\t\t\t\t+ \"','\"\n\t\t\t\t\t+ deposit.getCurrency()\n\t\t\t\t\t+ \"','\"\n\t\t\t\t\t+ deposit.getDeposit_time()\n\t\t\t\t\t+ \"','\"\n\t\t\t\t\t+ deposit.getInterest()\n\t\t\t\t\t+ \"','\"\n\t\t\t\t\t+ deposit.getPeriod()\n\t\t\t\t\t+ \"','\"\n\t\t\t\t\t+ deposit.getType()\n\t\t\t\t\t+ \"','deposit')\";\n\t\t} else {\n\t\t\tsql = \"insert into deposits(a_id,amount,currency,deposit_time,interest,period,type) values('\"\n\t\t\t\t\t+ deposit.getA_id()\n\t\t\t\t\t+ \"','\"\n\t\t\t\t\t+ deposit.getAmount()\n\t\t\t\t\t+ \"','\"\n\t\t\t\t\t+ deposit.getCurrency()\n\t\t\t\t\t+ \"','\"\n\t\t\t\t\t+ deposit.getDeposit_time()\n\t\t\t\t\t+ \"','\"\n\t\t\t\t\t+ deposit.getInterest()\n\t\t\t\t\t+ \"','\"\n\t\t\t\t\t+ deposit.getPeriod() + \"','\" + deposit.getType() + \"')\";\n\t\t}\n\t\ttry {\n\t\t\tconn = DBConnection.getConnection();\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tint col = ps.executeUpdate();\n\t\t\tif (col > 0) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tthrow new Exception(\"insert deposit record exception:\"\n\t\t\t\t\t+ e.getMessage());\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (ps != null) {\n\t\t\t\t\tps.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new Exception(\"ps close exception:\" + e.getMessage());\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (conn != null) {\n\t\t\t\t\tconn.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new Exception(\"conn close exception:\" + e.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"public void save(HrCStatitem entity);",
"public void onSaveClicked(View view) {\n\n if (mInterest != 0.0f) {\n\n ContentValues values = new ContentValues();\n values.put(SavingsItemEntry.COLUMN_NAME_BANK_NAME, bankInput.getText().toString());\n values.put(SavingsItemEntry.COLUMN_NAME_AMOUNT, mAmount);\n values.put(SavingsItemEntry.COLUMN_NAME_YIELD, mYield);\n values.put(SavingsItemEntry.COLUMN_NAME_START_DATE, mStartDate.getTime());\n values.put(SavingsItemEntry.COLUMN_NAME_END_DATE, mEndDate.getTime());\n values.put(SavingsItemEntry.COLUMN_NAME_INTEREST, mInterest);\n\n if (mEditMode){\n //Update the data into database by ContentProvider\n getContentResolver().update(SavingsContentProvider.CONTENT_URI, values,\n SavingsItemEntry._ID + \"=\" + mSavingsBean.getId(), null);\n Log.d(Constants.LOG_TAG, \"Edit mode, updated existing savings item: \" + mSavingsBean.getId());\n }else {\n // Save the data into database by ContentProvider\n getContentResolver().insert(\n SavingsContentProvider.CONTENT_URI,\n values\n );\n }\n // Go back to dashboard\n //Intent intent = new Intent(this, DashboardActivity.class);\n //startActivity(intent);\n Utils.gotoDashBoard(this);\n finish();\n } else {\n Toast.makeText(this, R.string.missing_savings_information, Toast.LENGTH_LONG).show();\n }\n\n }",
"public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }",
"protected void saveValues() {\n dataModel.persist();\n }",
"void commitExpenseTracker() throws NoUserSelectedException;",
"public Notification createExpense(HttpServletRequest request) {\n Notification notification = new Notification();\n ExpenseDAO expenseDAO = new ExpenseDAO();\n TagDAO tagDAO = new TagDAO();\n Expense expense = new Expense();\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n Date expenseDate = new Date();\n BigDecimal amount;\n\n try {\n expenseDate = simpleDateFormat.parse(request.getParameter(\"expenseDate\"));\n } catch (ParseException e) {\n log.error(\"[\" + className + \"] createExpense: Error in parsing expenseDate\");\n }\n\n HashSet<String> uniqueStringList = new HashSet<String>();\n HashSet<Tag> tagSet = new HashSet<Tag>();\n String tagStringList = request.getParameter(\"tagString\");\n tagStringList = tagStringList.replace(\" \", \"\");\n\n if (tagStringList != null) {\n String[] tagStringTokenizeList = tagStringList.split(\",\");\n\n for (String tagName : tagStringTokenizeList) {\n uniqueStringList.add(tagName);\n }\n\n for (String tagName : uniqueStringList) {\n Tag tag = tagDAO.getByDisplayName(tagName);\n\n if (tag == null) {\n log.error(\"tag is null;\");\n Tag createTag = new Tag();\n createTag.setName(tagName);\n createTag.setDisplayName(tagName);\n tagDAO.create(createTag);\n tag = tagDAO.getByDisplayName(tagName);\n }\n\n tagSet.add(tag);\n }\n }\n\n amount = new BigDecimal(request.getParameter(\"amount\"));\n\n expense.setDate(expenseDate);\n expense.setDescription(request.getParameter(\"description\"));\n expense.setAmount(amount);\n expense.setTags(tagSet);\n\n try {\n expenseDAO.create(expense);\n notification.setNotificationType(NotificationType.SUCCESS);\n notification.setMessage(\"Expense created successfully.\");\n log.info(\"[\" + className + \"] createExpense: created Expense\");\n } catch (Exception e) {\n notification.setNotificationType(NotificationType.DANGER);\n notification.setMessage(\"Something went wrong with creating expense. Please try again.\");\n log.error(\"[\" + className + \"] createExpense: failed creating expense\");\n }\n\n return notification;\n }",
"@Override\n\tpublic void save(Employee theEmployee) {\n\t\t\n\t}",
"public void save(T obj) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//session.save(obj);\n\t\tsession.persist(obj);\n\t}",
"@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}",
"private void saveEmployee(Employee employee) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(ReportContract.EmployeeEntry.COLUMN_KEY, employee.getKey());\n contentValues.put(ReportContract.EmployeeEntry.COLUMN_VALUE, employee.getValue());\n\n getContext().getContentResolver().insert(\n ReportContract.EmployeeEntry.CONTENT_URI,\n contentValues\n );\n\n }",
"public void save(Budget myBudget) throws SQLException{\n DatabaseConnection dbaInfo = new DatabaseConnection();\n Connection conn = null;\n try {\n conn = dbaInfo.getConnection();\n PreparedStatement ps = conn.prepareStatement(\"INSERT INTO finance.budget \" +\n \"(bud_key_id, bud_description, bud_category, bud_budgeted_amount, bud_actual_amount) VALUES (nextval('finance.BUDGETS_SEQ'),?,?,?,?)\",\n Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, myBudget.getDescription());\n ps.setString(2, myBudget.getCategory());\n ps.setDouble(3, myBudget.getBudgetAmount());\n ps.setDouble(4, myBudget.getActualAmount());\n ps.executeUpdate();\n }catch(SQLException e) {\n e.printStackTrace();\n conn.rollback();\n throw e;\n }finally {\n conn.close();\n }\n }",
"@Override\n public void onClick(View v) {\n if(!verifyObligedFields()){\n return;\n }\n\n checksOldExpense();\n\n Expense saveExpense = new Expense(label.getText().toString(),\n category.getSelectedItem().toString(), Float.parseFloat(cost.getText().toString()),\n paid.isChecked(), 0, dateDue.getText().toString());\n db.updateExpense(saveExpense, bundle.getInt(EXPENSE_TABLE_COLUMN_ID));\n Intent mainIntent = new Intent(ExpenseCardViewDetails.this, MainActivity.class);\n startActivity(mainIntent);\n Toast.makeText(ExpenseCardViewDetails.this, R.string.update_successful, Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n\tpublic void save() throws SaveException {\n\t\t\r\n\t}",
"public void save(PtJJdwcy entity);",
"@Override\r\n\tpublic void post(Employee employee) {\n\t\t empdao.save(employee);\r\n\t}",
"public void initializeExpense() {\n try {\n\n Connection connection = connect();\n\n PreparedStatement createExpenseTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS expense (\"\n + \"id INTEGER PRIMARY KEY, \"\n + \"user_username varchar,\"\n + \"category_name varchar,\"\n + \"amount float,\"\n + \"time varchar,\"\n + \"FOREIGN KEY (user_username) REFERENCES user(username),\"\n + \"FOREIGN KEY(category_name) REFERENCES category(name)\"\n + \");\"\n );\n createExpenseTable.execute();\n createExpenseTable.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n\n }",
"public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}",
"@Override\n\tpublic void save(EhmoPackage ehmoPackage) {\n\t\t\n\t\t\n\t\tehmoPackageDao.save(ehmoPackage);\n\t\t\n\t}",
"public void saveDetailItem(RequestParams<Df00201VO> requestParams) {\n DfDegree dfDegree = new DfDegree();\n\n if(StringUtils.isEmpty(requestParams.getString(\"disposalFreezeEventUuid\"))){\n return;\n }\n\n dfDegree.setDisposalFreezeEventUuid(requestParams.getString(\"disposalFreezeEventUuid\"));\n\n DfDegree orgDfDegree = null;\n\n orgDfDegree = repository.findOne(dfDegree.getId());\n\n if(orgDfDegree != null){\n dfDegree = orgDfDegree;\n dfDegree.setInsertDate(orgDfDegree.getInsertDate());\n dfDegree.setInsertUuid(orgDfDegree.getInsertUuid());\n }\n repository.save(dfDegree);\n }",
"@Override\n\tpublic void insert(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}",
"public void save(Session session, Employee emp) {\n Transaction t = session.beginTransaction();\n session.saveOrUpdate(emp);\n t.commit();\n }",
"public static void saveRecordToDatabase(DomainObject record) throws Exception {\n try {\n Class clazz = record.getClass();\n\n DomainAccessObject access =\n DomainAccessObjectFactory.getInstance().getDomainAccessObject(clazz);\n access.getLongSession();\n access.updateLongSession(record);\n } catch(Exception e) {\n e.printStackTrace();\n throw new Exception(\"Error Saving Record to Database ...\");\n }\n }",
"int insert(FinancialManagement record);",
"private static void storeEvaluationIntoDb(EvaluationRecord eval, String record_id) {\n FrontEndDBInterface f = new FrontEndDBInterface();\n f.insertEvaluationIntoDB(eval, Integer.parseInt(record_id));\n }",
"private void createRequestExpense() {\n ExpensesRequest expensesRequestSuperCLass = new ExpensesRequest();\n ArrayList<ExpensesRequest.ExpenseList> expenseLists = new ArrayList<>();\n ExpensesRequest.ExpenseList expensesRequest = new ExpensesRequest().new ExpenseList();\n expensesRequest.setAmount(edittextExpesneAmount.getText().toString());\n expensesRequest.setClientId(Utility.getInstance().getclientRegId(mContext));\n String currentDate = edittextExpenseDate.getText().toString();\n String currentTime = new SimpleDateFormat(\"HH:mm\", Locale.getDefault()).format(new Date());\n Date date = null;\n try {\n date = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\").parse(currentDate + \" \" + currentTime);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n String expeId = \"\";\n expensesRequest.setExpendDate(date);\n expensesRequest.setExpenditureId(expeId);\n transactionIdToast = expeId;\n expensesRequest.setTransactionId(expeId);\n expensesRequest.setPurpose(edittextExpensePurpose.getText().toString());\n expensesRequest.setExpenseType(edittextExpenseName.getText().toString());\n expenseLists.add(expensesRequest);\n expensesRequestSuperCLass.setRegId(Utility.getInstance().getclientRegId(mContext));\n expensesRequestSuperCLass.setExpenseListArrayList(expenseLists);\n if (Utility.getInstance().isOnline(mContext)) {\n boolean valueStatus = validateExpense();\n if (valueStatus) {\n Utility.getInstance().showProgressDialogue(mContext);\n mPresenter.postExpense(expensesRequestSuperCLass, 1);\n }\n edittextExpenseName.setText(\"\");\n edittextExpesneAmount.setText(\"\");\n edittextExpensePurpose.setText(\"\");\n }\n }",
"public void setExpense(Integer expense) {\n this.expense = expense;\n }",
"private void populateExpenses() {\n\n List<ExpenseCategory> expenseCategories = expenseCategoryRepository.findAll();\n //todo this isn't null safe fix it\n Payee payee = payeeRepository.findByName(\"Tom\").get(0);\n\n for (int i = 0; i < 10; i++) {\n expenseRepository.save(new Expense(\n new Date(),\n expenseCategories.get(i),\n getRandomBigDecimal(),\n payee,\n \"this is a note about the expense\"\n ));\n\n }\n }",
"public void save() {\n }",
"public void submitAbsence (Absence absence) throws SQLException {\n if (!checkForAbsenceInDB(absence)) {\n String sql = \"INSERT INTO ABSENCE(studentKey, date) VALUES (?,?)\";\n java.sql.Date sqlDate = java.sql.Date.valueOf(absence.getDate()); // converts LocalDate date to sqlDate\n try (Connection con = dbc.getConnection()) {\n PreparedStatement stmt = con.prepareStatement(sql, PreparedStatement.RETURN_GENERATED_KEYS);\n stmt.setInt(1, absence.getStudentKey());\n stmt.setDate(2, sqlDate);\n int affectedRows = stmt.executeUpdate();\n if (affectedRows == 0) {\n throw new SQLException(\"Creating absence failed, no rows affected.\");\n }\n } catch (SQLServerException ex) {\n Logger.getLogger(AttendanceDBDAO.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(AttendanceDBDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n deleteExpiredAbsences(); //TEST\n\n int testmonth = 4;\n int[] test = getTotalOfAbsencesInAMonthByDay(testmonth);\n for (int i = 0; i < test.length; i++) {\n }\n }\n }",
"@Override\r\n\tpublic void save(HotelVendorEntity entity) {\n\t\tSystem.out.println(\"invoked save\"+entity);\r\n\t\tSystem.out.println(\"saved in database\");\r\n\t\t\r\n\t\tConfiguration cfg=new Configuration();\r\n\t\tcfg.configure();\r\n\t\tSessionFactory factory=cfg.buildSessionFactory();\r\n\t\tSession session=factory.openSession();\r\n\t\tsession.beginTransaction();\r\n\t\tsession.save(entity);\r\n\t\tsession.getTransaction().commit();\r\n\t\tsession.close();\r\n\t\tfactory.close();\r\n\t\t\r\n\t}",
"@Override\n\tpublic Dispositivo save(Dispositivo t) {\n\t\treturn dispositivoDao.save(t);\n\t}",
"ExchangeRate saveOrUpdate(ExchangeRate rate);",
"AttendanceDTO save(AttendanceDTO attendance);",
"@Override\n\tpublic void save(Commodity commodity) {\n\t\tthis.getHibernateTemplate().update(commodity);\n\t}",
"@Override\n\tprotected void save() throws Exception {\n\t\t//turn the list of data into a unique list of tickets\n\t\tMap<String, ExtTicketVO> tickets= new HashMap<>(data.size());\n\t\tfor (SOHDRFileVO dataVo : data) {\n\t\t\t//035 are harvests and all we care about\n\t\t\tif (\"035\".equals(dataVo.getSoType())) {\n\t\t\t\tExtTicketVO vo = transposeTicketData(dataVo, new ExtTicketVO());\n\t\t\t\ttickets.put(vo.getTicketId(), vo);\n\t\t\t}\n\t\t}\n\n\t\tpopulateTicketDBData(tickets);\n\n\t\ttickets = removeGhostRecords(tickets);\n\n\t\t//don't bother with the rest of this class if we have no tickets\n\t\tif (tickets.isEmpty()) return;\n\n\t\tdecomissionUnits(tickets.keySet()); //ticket\n\n\t\tpurgePartShipments(tickets.keySet()); //calls purgeShipments to cascade deletion\n\n\t\tsetDispositionCode(tickets); //ticket_data attr_dispositionCode\tNONREPAIRABLE\n\n\t\tcorrectLedgerEntries(tickets);\n\t}",
"private void pushSavedExpenseLineItem(){\n //Cursor cursor = getExpenseStatusCursor(SyncStatus.SAVED_REPORT);\n Cursor cursor = getSavedExpenseLineItemCursor();\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n do {\n final Long expenseBaseId = cursor.getLong(\n cursor.getColumnIndex(ExpenseEntry._ID));\n\n ExpenseLineItem expenseLineItem = new ExpenseLineItem();\n\n expenseLineItem.setDescription(\n cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_DESCRIPTION)));\n\n expenseLineItem.setExpenseReportId(cursor.getInt(\n cursor.getColumnIndex(ExpenseEntry.COLUMN_REPORT_ID)));\n\n expenseLineItem.setExpenseDate(\n cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_EXPENSE_DATE)));\n\n expenseLineItem.setCategory(cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_CATEGORY)));\n\n expenseLineItem.setCost(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_COST)));\n\n expenseLineItem.setHst(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_HST)));\n expenseLineItem.setGst(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_GST)));\n expenseLineItem.setQst(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_QST)));\n expenseLineItem.setCurrency(cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_CURRENCY)));\n expenseLineItem.setRegion(cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_REGION)));\n\n //TODO: receipt\n\n try {\n ERTRestApi.apiAddExpenseLineItem(\n expenseLineItem,\n new ERTRestApi.ERTRestApiListener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Gson gson = new GsonBuilder().setDateFormat\n (\"yyyy-MM-dd'T'HH:mm:ss\").create();\n ExpenseLineItem expenseLineItemResponse =\n gson.fromJson(response.toString(),\n ExpenseLineItem.class\n );\n\n updateExpenseLineItemSyncStatus(expenseBaseId,\n SyncStatus.SYNCED\n );\n\n setExpenseLineItemValuesFromServer(\n expenseBaseId,\n expenseLineItemResponse\n );\n\n }\n },\n\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi\n .ERTRestApiError error) {\n\n Log.e(LOG_TAG, error.getMessage());\n\n }\n }\n );\n } catch (ERTRestApiException | JSONException e) {\n Log.e(LOG_TAG, e.getMessage());\n }\n\n updateExpenseLineItemSyncStatus(expenseBaseId,SyncStatus.SYNC_IN_PROGRESS);\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n }",
"@Override\r\n\tpublic int savePersionAccess(PersonAccessEntity entity) throws Exception {\n\t\treturn persionAccessDao.save(entity);\r\n\t}",
"DailyFlash save(DailyFlash dailyFlash) throws SpmCheckedException;",
"public void SaveMuestra(MuestraMA objMx)throws Exception{\n Session session = sessionFactory.getCurrentSession();\n session.saveOrUpdate(objMx);\n }",
"void save(Object entity);",
"@Override\n\tpublic Employee saveEmployee(Employee emp) {\n\t\tlog.debug(\"EmplyeeService.saveEmployee(Employee emp) save Employee object\");\n\t\treturn repositary.save(emp);\n\t}",
"private void save(){\n\n this.title = mAssessmentTitle.getText().toString();\n String assessmentDueDate = dueDate != null ? dueDate.toString():\"\";\n Intent intent = new Intent();\n if (update){\n assessment.setTitle(this.title);\n assessment.setDueDate(assessmentDueDate);\n assessment.setType(mAssessmentType);\n intent.putExtra(MOD_ASSESSMENT,assessment);\n } else {\n intent.putExtra(NEW_ASSESSMENT, new Assessment(course.getId(),this.title,mAssessmentType,assessmentDueDate));\n }\n setResult(RESULT_OK,intent);\n finish();\n }",
"public void saveDate(View view) {\n// create an object of order\n Order order = new Order(name, Integer.parseInt(price));\n dbHandler.addOrder(order);\n Toast.makeText(getApplicationContext(), \"Hooray! Data Saved in DB\", Toast.LENGTH_SHORT).show();\n }",
"public void saveEmployee(Employe employee) {\n\t\t\n\t}",
"public void Save() throws Exception{\n\t\tDB.InsertUpdate(\"Descriptions\", \n\t\t\t\tnew_description, \n\t\t\t\tnew Field<Long>(\"id\",this.id,true),\n\t\t\t\tnew Field<String>(\"text\",this.text),\n\t\t\t\tnew Field<Long>(\"user_nusp\",this.user_nusp),\n\t\t\t\tnew Field<Long>(\"image_id\",this.image_id),\n\t\t\t\tnew Field<Boolean>(\"approved\",this.approved),\n\t\t\t\tnew Field<Boolean>(\"discarded\",this.discarded)\n\t\t);\n\t}",
"@Override\n\tpublic void saveEntityObj(StdMilkRate e) {\n\t}",
"@Test\r\n\tpublic void addToDb() {\r\n\t\tservice.save(opinion);\r\n\t\tassertNotEquals(opinion.getId(), 0);\r\n\t\tassertTrue(service.exists(opinion.getId()));\r\n\t}",
"private void saveAT() \n {\n // get DatabaseConnector to interact with the SQLite database\n\t AnimalDatabase db = new AnimalDatabase(this);\n\t AnimalList al = new AnimalList (db);\n\t \n // insert the contact information into the database\n al.Update(id, amount, comments);\n\n }",
"private void saveDiary() {\n\n //Get the text from the EditTexts and turn them to strings, set them as the user inputs\n //Trim to eliminate useless whitespace\n String userTitle = titleEdit.getText().toString().trim();\n String userContext = contextEdit.getText().toString().trim();\n\n //Get current date and turn it to a string\n String currentDate = new SimpleDateFormat(\"dd-MM-yyyy\").format(new Date());\n\n //Write into the db\n SQLiteDatabase dbWrite = myDBhelper.getWritableDatabase();\n\n //ContentValues where key is the column name and value is the text\n ContentValues values = new ContentValues();\n values.put(diaryEntry.COLUMN_TITLE, userTitle);\n values.put(diaryEntry.COLUMN_CONTENT, userContext);\n values.put(diaryEntry.COLUMN_DATE, currentDate);\n\n\n //Insert a new row. Takes the table name, columnhack that is usually null and the values created\n long newRow = dbWrite.insert(diaryEntry.TABLE_NAME, null, values);\n\n\n //Toast- that will come after, depending if the insert was succesfull or not.\n // -1 is the value of the newRow if there was an error\n if (newRow == -1) {\n Toast.makeText(this, \"There was an error\", Toast.LENGTH_SHORT).show();\n }\n else {\n Toast.makeText(this, \"Diary entry added!\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Transactional\r\n\tpublic void addExpenseDocument(EmployeeExpenseDetails expDet, String loggedInUserName,\r\n\t\t\tUploadDocumentDetailsRequestDto uddReq) {\r\n\t\tEmployeeDetails empDetails = findByEmployeeId(uddReq.getEmployeeId());\r\n\t\tSet<EmployeeExpenseDetails> empDetailsSet = new HashSet<EmployeeExpenseDetails>();\r\n\t\tif(null != empDetails.getEmployeeExpenseDetails()) {\r\n\t\t\tfor(EmployeeExpenseDetails empExpenseExits:empDetails.getEmployeeExpenseDetails()) {\r\n\t\t\t\tempDetailsSet.add(empExpenseExits);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tempDetailsSet.add(expDet);\r\n\t\tempDetails.setEmployeeExpenseDetails(empDetailsSet);\r\n\t\tentity.merge(empDetails);\r\n\t\t\r\n\t}",
"void save(Bill bill);",
"public void save() {\t\n\t\n\t\n\t}",
"public void createExpense(ExpenseBE expenseBE) {\n\n }",
"@Override\n\tpublic void saveDayEndData(DailyRequest dailyRequest) {\n\t\tint reportDay = dailyRequest.getBalanceDate().getDate();\n\t\tint reportYear = dailyRequest.getBalanceDate().getYear();\n\t\tint reportMonth = dailyRequest.getBalanceDate().getMonth();\n\t\tString epochString = String.valueOf(reportYear).concat(String.valueOf(reportMonth))\n\t\t\t\t.concat(String.valueOf(reportDay));\n\t\tint epochMonth = Integer.valueOf(epochString);\n\t\tDouble balance;\n\t\tint accountNo;\n\t\tint accountOpenDay;\n\t\tdouble interest;\n\t\tSavingRequest[] savingRequest = dailyRequest.getSavingRequest();\n\t\tfor (SavingRequest r : savingRequest) {\n\t\t\tbalance = r.getBalance();\n\t\t\taccountNo = r.getIdentification();\n\t\t\tAccount accountData = getAccountOpenDate(accountNo);\n\t\t\tif (null != accountData && accountData.getStatus().equalsIgnoreCase(\"Active\")) {\n\t\t\t\taccountOpenDay = accountData.getOpeningDate().getDate();\n\t\t\t\tinterest = computeSimpleInterest(balance, reportDay - accountOpenDay);\n\n\t\t\t\tdealsRepository.saveAccount(accountNo, epochMonth, interest);\n\t\t\t} else {\n\t\t\t\tLOGGER.info(\n\t\t\t\t\t\t\"Account no. \" + accountNo + \" is not Created and hence skippingf this for Saving Calculation\");\n\t\t\t}\n\n\t\t}\n\n\t}",
"@Override\n public void salvar(EntidadeDominio entidade) throws SQLException\n {\n\t\n }",
"@Override\n\tpublic void save(ServiceFee entites) {\n\t\tservicefeerepo.save(entites);\n\t}",
"public void save() {\n\t\tSystem.out.println(\"-----------from PersonDao.save()\");\n\t}",
"String addExpense(String userName, String teamName, ExpenseItem expenseItem) throws RemoteException, InterruptedException;",
"public void SaveVsPersist() {\n\t\tSession session = HibernateUtil.getSession();\n\t\tTransaction tx = null;\n\t\t\n\t\ttry{\n\t\t\ttx = session.beginTransaction();\n//\t\t\tItem item = new Item(\"Premium Water\", 900);\n//\t\t\titem.setShops(((Item)session.get(Item.class, 1)).getShops());\n//\t\t\t\n//\t\t\t\n//\t\t\tSystem.out.println( \"BEFORE SAVE: \" + item.getId());\n//\t\t\tSystem.out.println(\"-----SAVE-----\");\n//\t\t\tSystem.out.println(\"ID IS:\" + session.save(item));\n//\t\t\t//When saving we are returned the id.\n//\t\t\tSystem.out.println(\"AFTER SAVE:\" + item.getId());\n\t\t\t\n\n\t\t\t\n\t\t\tItem item2 = new Item(\"Deluxe Premium Super Awesome Bargain Water\", 12);\n\t\t\tSystem.out.println(\"-----persist-----\");\n\t\t\tSystem.out.println( \"BEFORE Persist: \" + item2.getId());\n\t\t\tsession.persist(item2);\n\t\t\tSystem.out.println(\"AFTER PERSIST:\" + item2.getId());\n\n\t\t\t//We are not guaranteed an ID right away, so we have to return nothing.\n\t\t\t\n\t\t\ttx.commit();\n\t\t\t\n\t\t}catch(HibernateException e){\n\t\t\tif(tx!=null){\n\t\t\t\ttx.rollback();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tsession.close(); \n\t\t}\n\t}"
] | [
"0.6834822",
"0.68048835",
"0.6801482",
"0.67156255",
"0.66092134",
"0.65011847",
"0.6475898",
"0.64706963",
"0.6463333",
"0.6424352",
"0.64012206",
"0.63230616",
"0.62130165",
"0.62059265",
"0.6197537",
"0.6193029",
"0.61816585",
"0.6136649",
"0.61259294",
"0.61143047",
"0.60788697",
"0.607371",
"0.6030404",
"0.5981809",
"0.5970677",
"0.59614253",
"0.59599876",
"0.59599876",
"0.59599876",
"0.59599876",
"0.593833",
"0.59363616",
"0.5928615",
"0.59279156",
"0.5917142",
"0.5901069",
"0.5896452",
"0.5881242",
"0.58722764",
"0.58721936",
"0.58585936",
"0.5850538",
"0.5827589",
"0.5826926",
"0.5803212",
"0.57966703",
"0.5791337",
"0.5773079",
"0.5769076",
"0.57689625",
"0.57671136",
"0.57611334",
"0.5755939",
"0.57372075",
"0.572189",
"0.5709481",
"0.5707842",
"0.57035345",
"0.5697892",
"0.5695517",
"0.5694169",
"0.56855685",
"0.5670865",
"0.5670724",
"0.567019",
"0.5670096",
"0.56626475",
"0.56546134",
"0.5654065",
"0.5651383",
"0.5650628",
"0.564703",
"0.56454337",
"0.5636802",
"0.5633565",
"0.56308955",
"0.5629774",
"0.5612844",
"0.5611741",
"0.5611247",
"0.56045824",
"0.55951756",
"0.55904084",
"0.5588985",
"0.5588019",
"0.5584296",
"0.5579269",
"0.55775785",
"0.5575107",
"0.5570615",
"0.55689347",
"0.55647707",
"0.5561043",
"0.55610174",
"0.5556181",
"0.5556127",
"0.55541086",
"0.5553703",
"0.55493706",
"0.5546901"
] | 0.81455314 | 0 |
returns the latest 10 transactions from the database. | List<Expenses> latestExpenses(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Transaction> getAllTransactions(){\n Cursor cursor = fetchAllRecords();\n List<Transaction> transactions = new ArrayList<Transaction>();\n if (cursor != null){\n while(cursor.moveToNext()){\n transactions.add(buildTransactionInstance(cursor));\n }\n cursor.close();\n }\n return transactions;\n }",
"public Collection<Transaction> getAllTransactions();",
"public List<Transaction> getAllTransaction() throws SQLException {\n String sql = \"SELECT * FROM LabStore.Transaction_Detail\";\n List<Transaction> transactions = new ArrayList<>();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n try (ResultSet rs = preStmt.executeQuery()) {\n while (rs.next()) {\n Transaction transaction = new Transaction();\n transaction.setId(rs.getInt(\"id\"));\n transaction.setUser(userDbManager.getUser(rs.getInt(\"uId\")));\n transaction.setPurchaseDetail(purchaseDetailDbManager\n .getPurchaseDetailById(rs.getInt(\"pdId\")));\n transaction.setCount(rs.getInt(\"count\"));\n transaction.setTime(rs.getTimestamp(\"time\"));\n transactions.add(transaction);\n }\n }\n }\n\n return transactions;\n }",
"Object[] getPendingTransactions(int count);",
"@Override\n\tpublic List<Transaction> getAllTransactions() { \n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction();\n\n\t\tQuery query = session.createQuery(\"from Transaction\");\n\t\tList<Transaction> expenses = query.list();\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\n\t\treturn expenses; \n\t}",
"AbstractList<BalanceChange> recentActivity() {\r\n\t\tArrayList<BalanceChange> activity = new ArrayList<BalanceChange>();\r\n\t\t\r\n\t\tint i=10;\r\n\t\twhile (i > 0) {\r\n\t\t\t//TODO\r\n\t\t\ti--;\r\n\t\t}\r\n\t\t\r\n\t\treturn activity;\r\n\t}",
"@GET(\"points-transaction-history?expand=translations&sort=-created_at\")\n Call<HistoryExchangeResponse> getTransactionHistoryAll();",
"@Override\n\tpublic List<Transaction> getLastTransactions(String username, int amount) {\n\t\ttry {\n\t\t\tList<Transaction> res = new LinkedList<Transaction>();\n\t\t\tTypedQuery<Transaction> query = db.createQuery(\n\t\t\t\t\t\"SELECT ts FROM Transaction ts WHERE ts.username = ?1 ORDER BY ts.date DESC\", Transaction.class);\n\t\t\tquery.setParameter(1, username);\n\t\t\tList<Transaction> tsList = query.getResultList();\n\t\t\tint i = 1;\n\t\t\tfor (Transaction ts : tsList) {\n\t\t\t\tres.add(ts);\n\t\t\t\tif (i == amount) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\treturn res;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Upps, Something happened in the database\");\n\t\t\treturn null;\n\t\t}\n\t}",
"public Cursor fetchAllRecurringTransactions(){\n Cursor cursor = mDb.query(TransactionEntry.TABLE_NAME,\n null,\n TransactionEntry.COLUMN_RECURRENCE_PERIOD + \"!= 0\",\n null, null, null,\n AccountEntry.COLUMN_NAME + \" ASC, \" + TransactionEntry.COLUMN_RECURRENCE_PERIOD + \" ASC\");\n// DatabaseHelper.COLUMN_RECURRENCE_PERIOD + \" ASC, \" + DatabaseHelper.COLUMN_TIMESTAMP + \" DESC\");\n return cursor;\n }",
"private ArrayList<Transaction> getTransactionsOfTheDay(int assetID) throws Exception {\n int i = 1;\n ArrayList<Transaction> currentTransactions = new ArrayList<Transaction>();\n ArrayList<Transaction> allTransactions = new ArrayList<Transaction>();\n\n while (true) {\n String url = MASTER_URL + ASSETS + assetID + \"/history_paginate.api?page=\" + i;\n\n URL obj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n // request method\n con.setRequestMethod(\"GET\");\n\n // request headers\n con.setRequestProperty(\"token\", USER_TOKEN);\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n // reading input stream\n BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n String inputLine;\n String response = \"\";\n while ((inputLine = in.readLine()) != null) {\n response += inputLine;\n }\n in.close();\n\n DateTime assetActiveDateTime = new DateTime().minusDays(1);\n// System.out.println(assetActiveDateTime);\n int day = assetActiveDateTime.getDayOfMonth();\n int month = assetActiveDateTime.getMonthOfYear();\n int year = assetActiveDateTime.getYear();\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(org.codehaus.jackson.map.DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n String emptyHistory = \"{\\\"history\\\":[]\";\n if (!response.substring(0,13).equals(emptyHistory)) {\n String arrayResponse = response.substring(11, response.length() - 1);\n CollectionType constructCollectionType =\n TypeFactory.defaultInstance().constructCollectionType(ArrayList.class,\n Transaction.class);\n currentTransactions = mapper.readValue(arrayResponse, constructCollectionType);\n for (Transaction t : currentTransactions){\n DateTime checkoutDateTime = t.getCheckOutDateTime();\n if (day == checkoutDateTime.getDayOfMonth() &&\n month == checkoutDateTime.getMonthOfYear() &&\n year == checkoutDateTime.getYear()) {\n allTransactions.add(t);\n }\n }\n// System.out.println(allTransactions);\n currentTransactions.clear();\n } else {\n break;\n }\n i++;\n }\n return allTransactions;\n }",
"public List<Transaction> getAllDepositTransactions(int start, int numOfRows) throws MiddlewareQueryException;",
"public List<Song> findTopTen(){\n\t\treturn this.songRepo.findTop10ByOrderByRatingDesc();\n\t}",
"public static Cursor getTransactionHistoryDbCursor() {\n // get DB helper\n mDbHelper = PointOfSaleDb.getInstance(context);\n\n // Each row in the list stores amount and date of transaction -- retrieves history from DB\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // get the following columns:\n String[] tableColumns = { PointOfSaleDb.TRANSACTIONS_COLUMN_TX_ID,\n PointOfSaleDb.TRANSACTIONS_COLUMN_LOCAL_AMOUNT,\n PointOfSaleDb.TRANSACTIONS_COLUMN_LOCAL_CURRENCY,\n PointOfSaleDb.TRANSACTIONS_COLUMN_CREATED_AT,\n PointOfSaleDb.TRANSACTIONS_COLUMN_TX_STATUS,\n PointOfSaleDb.TRANSACTIONS_COLUMN_CRYPTOCURRENCY_AMOUNT,\n PointOfSaleDb.TRANSACTIONS_COLUMN_CRYPTOCURRENCY_ADDRESS,\n \"_ROWID_\", //// getting also _ROWID_ to save the txID after getting the response\n PointOfSaleDb.TRANSACTIONS_COLUMN_CRYPTOCURRENCY};\n\n String sortOrder = PointOfSaleDb.TRANSACTIONS_COLUMN_CREATED_AT + \" DESC\";\n Cursor c = db.query(PointOfSaleDb.TRANSACTIONS_TABLE_NAME, tableColumns, null, null, null, null, sortOrder);\n\n return c;\n }",
"public ArrayList<Message> getTop10Messages(String logUser, String friendUser, String date){\n ArrayList<Message> myMessageList = new ArrayList<>();\r\n //System.out.println(\"getTop10Date: \" + date);\r\n this.query = \"SELECT * FROM cristomessenger.message\\n\" +\r\n \"WHERE ((id_user_orig = \\\"\" + logUser + \"\\\" and id_user_dest = \\\"\" + friendUser + \"\\\") or (\"\r\n + \"id_user_orig = \\\"\" + friendUser + \"\\\" and id_user_dest = \\\"\" + logUser + \"\\\")) and \"\r\n + \"datetime < \\\"\" + date + \"\\\" \" +\r\n \"order by datetime asc LIMIT 10;\";\r\n try {\r\n this.ConnectDatabase();\r\n this.QuerySQLExecute();\r\n while (this.rs.next()) {\r\n Message MessageAux = new Message();\r\n MessageAux.setTransmitter(this.rs.getString(\"id_user_orig\"));\r\n MessageAux.setReceiver(this.rs.getString(\"id_user_dest\"));\r\n MessageAux.setText(this.rs.getString(\"text\"));\r\n MessageAux.setDate(this.rs.getString(\"datetime\"));\r\n myMessageList.add(MessageAux);\r\n }\r\n //System.out.println(\"getTop10MSG: \" + myMessageList.size());\r\n } catch (SQLException e ) {\r\n System.out.println(e.getMessage());\r\n } finally {\r\n if (this.stmt != null) { \r\n try {\r\n this.stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(UsersModel.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n \r\n return myMessageList;\r\n }",
"@Query(value = \"SELECT * FROM Champignon_Logboeken ORDER BY nummer DESC LIMIT ?1\", nativeQuery = true)\n\tpublic List<Champignonlogboek> findLastTen(int limit);",
"public List<TransactionInfo> getAll() {\n return transactions;\n }",
"@Override\n\tpublic List<BankTransaction> getAllTransactions() throws BusinessException {\n\t\tBankTransaction bankTransaction = null;\n\t\tList<BankTransaction> bankTransactionList = new ArrayList<>();\n\t\tConnection connection;\n\n\t\ttry {\n\t\t\tconnection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"select transaction_id, account_id, transaction_type, amount, transaction_date from dutybank.transactionss\";\n\t\t\t\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\t\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tbankTransaction = new BankTransaction();\n\t\t\t\tbankTransaction.setTransactionid(resultSet.getInt(\"transaction_id\"));\n\t\t\t\tbankTransaction.setAccountid(resultSet.getInt(\"account_id\"));\n\t\t\t\tbankTransaction.setTransactiontype(resultSet.getString(\"transaction_type\"));\n\t\t\t\tbankTransaction.setTransactionamount(resultSet.getDouble(\"amount\"));\n\t\t\t\tbankTransaction.setTransactiondate(resultSet.getDate(\"transaction_date\"));\n\n\t\t\t\tbankTransactionList.add(bankTransaction);\n\t\t\t} \n\t\t\t\n\t\t\tif (bankTransactionList.size() == 0) {\n\t\t\t\tthrow new BusinessException(\"There is not data to retrieve\");\n\t\t\t}\n\t\t\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\tthrow new BusinessException(\"Some Error ocurred retrieving data for transactions\");\n\t\t}\n\t\t\n\t\treturn bankTransactionList;\n\t}",
"public static void getTransactionsAndDeleteAfterCancel() {\n // get DB helper\n mDbHelper = PointOfSaleDb.getInstance(context);\n\n // Each row in the list stores amount and date of transaction -- retrieves history from DB\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // get the following columns:\n String[] tableColumns = { PointOfSaleDb.TRANSACTIONS_COLUMN_CREATED_AT,\n \"_ROWID_\"};// getting also _ROWID_ to delete the selected tx\n\n String sortOrder = PointOfSaleDb.TRANSACTIONS_COLUMN_CREATED_AT + \" DESC\";\n Cursor c = db.query(PointOfSaleDb.TRANSACTIONS_TABLE_NAME, tableColumns, null, null, null, null, sortOrder);\n //moving to first position to get last created transaction\n if(c.moveToFirst()) {\n int rowId = Integer.parseInt(c.getString(1));\n\n String selection = \"_ROWID_\" + \" = ? \";\n String[] selectionArgs = {String.valueOf(rowId)};\n int count = db.delete(PointOfSaleDb.TRANSACTIONS_TABLE_NAME, selection, selectionArgs);\n\n //send broadcast to update view\n sendBroadcast();\n }\n\n }",
"public List<Transaction> readAllTransaction() throws TransactionNotFoundException {\n\t\treturn transactionDAO.listAccountTransactionTable();\n\t}",
"@Override\n\tpublic List<PositionData> getLatest10PostionInfo(String terminalId) {\n\t\ttry {\n\t\t\tList<PositionData> returnData = new ArrayList<PositionData>();\n\t\t\tList<PositionData> tempData = new ArrayList<PositionData>();\n\t\t\tList<PositionData> position_list = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"' order by date desc\");\n\t\t\tfor(int i=0;i<(position_list.size()>10?10:position_list.size());i++){\n\t\t\t\ttempData.add(position_list.get(i));\n\t\t\t}\n\t\t\tfor(int i=tempData.size()-1;i>=0;i--)\n\t\t\t\treturnData.add(tempData.get(i));\n\t\t\treturn returnData;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"public List<Transaction> getAllReserveTransactions(int start, int numOfRows) throws MiddlewareQueryException;",
"public List<TransactionM> getTransactionsInfo(int fId) {\n\t\tList<TransactionM> d= new ArrayList<>();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tthis.pst = this.con.prepareStatement(\"select * from transaction where fromaccno=? ORDER BY balance LIMIT 0,5\"); \r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.pst.setInt(1,fId);\r\n\t\t\tthis.rs = this.pst.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\td.add(new TransactionM(rs.getInt(1),rs.getInt(2),rs.getInt(3),rs.getInt(4))) ;\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\r\n\t\treturn d;\r\n\t}",
"public List<Transaction> getTransactions() throws SQLException {\n\t\tList<Transaction> result = new ArrayList<>();\n\t\tStatement statement = conn.createStatement();\n\t\ttry (ResultSet resultSet = statement.executeQuery(\"select Date, Amount, Category, Type from transaction\")) {\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tresult.add(new Transaction(resultSet.getDate(1), resultSet.getDouble(2), resultSet.getString(3), resultSet.getString(4)));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"@Override\n public List<News> getTop(int top) throws Exception {\n Connection conn = null;\n PreparedStatement statement = null;\n ResultSet result = null;\n List<News> list = new ArrayList<>();\n String query = \"select top (?) * from news\\n\"\n + \"order by timePost desc\";\n try {\n conn = getConnection();\n statement = conn.prepareStatement(query);\n statement.setInt(1, top);\n result = statement.executeQuery();\n while (result.next()) {\n News news = new News(result.getInt(\"ID\"),\n result.getString(\"title\"),\n result.getString(\"description\"),\n result.getString(\"image\"),\n result.getString(\"author\"),\n result.getDate(\"timePost\"),\n result.getString(\"shortDes\"));\n list.add(news);\n }\n } catch (ClassNotFoundException | SQLException e) {\n throw e;\n } finally {\n closeResultSet(result);\n closePreparedStatement(statement);\n closeConnection(conn);\n }\n return list;\n }",
"public List<Books> publishedLastFourDays(){\n String sql=\"select * from Book order by book_publish_date desc limit 4\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{});\n List<Books> books=resultSetToBook(baseDao);\n ConnectionUtil.close(baseDao.connection,baseDao.preparedStatement,baseDao.resultSet);\n return books;\n }",
"public static Transaction[] transactionList(){\n int countFullPosition = 0;\n for (Transaction tr:transactions) {\n if(tr != null){\n countFullPosition++;\n }\n }\n if(countFullPosition == 0)\n return new Transaction[] {};\n // throw new InternalServerException(\"TransactionList is empty\");\n Transaction[] trList = new Transaction[countFullPosition];\n int index = 0;\n for (Transaction tr:transactions) {\n if(tr != null){\n trList[index] = tr;\n index++;\n }\n }\n return trList;\n }",
"com.google.protobuf.ByteString getTransactions(int index);",
"@Transactional\r\n\tpublic List<Tweet> getAllTweets() {\n\t\tList<Tweet> tweets = tweetRepository.findAll(Sort.by(Sort.Direction.DESC, \"postDTTM\"));\r\n\t\treturn tweets;\r\n\t}",
"List<Receipt> getAllReceipts() throws DbException;",
"@Override\n public List<Transaksi> getAll() {\n List<Transaksi> listTransaksi = new ArrayList<>();\n\n try {\n String query = \"SELECT id, date_format(tgl_transaksi, '%d-%m-%Y') AS tgl_transaksi FROM transaksi\";\n\n PreparedStatement ps = Koneksi().prepareStatement(query);\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n Transaksi transaksi = new Transaksi();\n\n transaksi.setId(rs.getString(\"id\"));\n transaksi.setTglTransaksi(rs.getString(\"tgl_transaksi\"));\n\n listTransaksi.add(transaksi);\n }\n } catch (SQLException se) {\n se.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return listTransaksi;\n }",
"Map retrievePreparedTransactions();",
"@Override\n public List<Digital> getTop(int top) throws Exception {\n Connection con = null;\n ResultSet rs = null;\n PreparedStatement ps = null;\n List<Digital> list = new ArrayList<>();\n // check connection of db if cannot connect, it will throw an object of Exception\n try {\n\n String query = \"select top \" + top + \" * from digital order by timePost desc\";\n con = getConnection();\n ps = con.prepareCall(query);\n rs = ps.executeQuery();\n while (rs.next()) {\n Digital d = new Digital(rs.getInt(\"id\"),\n rs.getString(\"title\"),\n rs.getString(\"description\"),\n rs.getString(\"images\"),\n rs.getString(\"author\"),\n rs.getTimestamp(\"timePost\"),\n rs.getString(\"shortDes\"));\n list.add(d);\n }\n\n } catch (Exception e) {\n throw e;\n } finally {\n // close ResultSet, PrepareStatement, Connection\n closeResultSet(rs);\n closePrepareStateMent(ps);\n closeConnection(con);\n }\n return list;\n }",
"public Transaction[] getTransactionsList() throws Exception;",
"@Override\n public List getPagesWithActiveUsers(Long count, String orderBy) {\n log.debug(\"This method fetches most active users\");\n SimpleDateFormat datetimeFormatter = new SimpleDateFormat(\n \"yyyy-MM-dd HH:mm:ss\");\n LocalDateTime currentDateTime = LocalDateTime.now();\n List<CsvModel> csvModelList = csvRepository.findAll();\n List<String> responseList = new ArrayList<>();\n if (csvModelList == null) {\n throw new CsvException(String.format(\"records not found , please insert some records\"));\n }\n if (csvModelList != null && csvModelList.size() > 0) {\n for (CsvModel e : csvModelList) {\n Duration diff = Duration.between(currentDateTime, e.getLast_updated_at().toLocalDateTime());\n if (diff.toDays() < 60) {\n responseList.add(e.getUuid());\n }\n }\n }\n log.debug(\"Most active users fetched successfully\");\n return responseList;\n }",
"public List<SalesOrderAggregatedCreated> select(int maxResult);",
"@Override\r\n\tpublic int searchLatest() {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\treturn postDao.selectLatest();\r\n\t}",
"public List<Entry> show10MostRecentEntries() {\n\t\tList<Entry> subList;\n\t\tif (entries.isEmpty()){\n\t\t\tSystem.out.println(\"The blog doesn't have any entries yet\");\n\t\t\treturn entries.getList();\n\t\t}\n\t\telse {\n\t\t\tif (entries.getSize()>= 10){\n\t\t\t\tsubList= entries.getSubList(0,10);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsubList= entries.getSubList(0,entries.getSize());\n\t\t\t}\n\t\t\tIterator<Entry> it = subList.listIterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tEntry entry = it.next();\n\t\t\t\tSystem.out.println(\"Entry Title: \" + entry.getTitle());\n\t\t\t\tSystem.out.println(\"Entry Content: \" + entry.getContent());\n\t\t\t}\n\t\t\t\n\t\t\treturn subList;\n\t\t}\n\t}",
"public Cursor fetchLatestBooks() {\n \tSQLiteDatabase db = dbHelper.getReadableDatabase();\n \tCursor c = db.query(TABLE_NAME, BOOK_COLUMNS, null, null, null, null, KEY_LAST_MODIFIED + \" DESC\");\n \tLog.i(TAG, c.getCount() + \"books loaded from db.\");\n \treturn c;\n\t}",
"public ArrayList<Transaction> getTransactions() throws SQLException {\n return transactions.getAll();\n }",
"public Page<Post> getNewPosts(){\n Pageable page = new PageRequest(0, 3, Sort.Direction.DESC, \"createdAt\");\n System.out.println(\"getNewPosts\");\n // Page<Post> posts = postRepository.findTop10OrderByCreatedAtOrderByCreatedAtDesc(page);\n // List<Post> p = postRepository.getNewestPosts();\n\n Page<Post> pp = postRepository.findAll(page);\n\n for (Post p :pp){\n logger.info(\"getNewPosts -> \" + p);\n }\n return pp;\n/* for (Post p :posts){\n System.out.println(\"p->\" + p);\n }\n if (posts != null)\n return posts;\n return null;*/\n }",
"protected ArrayList<Transaction> refreshTransactions() {\r\n\t\ttry {\r\n\t\t\tHttpResponse response = serverAccess.getAllTransactionsResponse();\r\n\t\t\tif (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {\r\n\t\t\t\tString transactionsJson = EntityUtils.toString(response.getEntity());\r\n\t\t\t\tGson gson = new GsonBuilder().create();\r\n\t\t\t\tTransaction[] transactionArray = gson.fromJson(transactionsJson, Transaction[].class);\r\n\t\t\t\tArrayList<Transaction> transactionList = new ArrayList<Transaction>(Arrays.asList(transactionArray));\r\n\t\t\t\ttxtError.setText(\"\");\r\n\t\t\t\treturn transactionList;\r\n\t\t\t} else {\r\n\t\t\t\ttxtError.setText(EntityUtils.toString(response.getEntity()) + \" (Fehler: \"\r\n\t\t\t\t\t\t+ response.getStatusLine().getStatusCode() + \")\");\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\ttxtError.setText(\"Server nicht verfügbar\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"List<TradeHistoryItem> getTrades(String symbol, Integer limit);",
"public static Transactions getTransactions() {\n return Transactions;\n }",
"public ArrayList<Article> getTopNumberArticles(int number) throws Exception {\n String sql = \"SELECT TOP(?) * FROM dbo.Article\\n\"\n + \"ORDER BY [time] DESC\";\n ArrayList<Article> articles = new ArrayList<>();\n Connection con = null;\n PreparedStatement st = null;\n ResultSet rs = null;\n try {\n con = getConnection();\n st = con.prepareStatement(sql);\n st.setInt(1, number);\n rs = st.executeQuery();\n while (rs.next()) {\n Article a = new Article();\n a.setId(rs.getInt(\"id\"));\n a.setTitle(rs.getString(\"title\"));\n a.setContent(rs.getString(\"content\"));\n a.setDescription(rs.getString(\"description\"));\n a.setImage(getImgPath() + rs.getString(\"image\"));\n a.setTime(rs.getTimestamp(\"time\"));\n a.setAuthor(rs.getString(\"author\"));\n articles.add(a);\n }\n } catch (Exception ex) {\n throw ex;\n } finally {\n closeResultSet(rs);\n closePreparedStatement(st);\n closeConnection(con);\n }\n return articles;\n }",
"public ArrayList<Transaction> getActiveTransactions() throws SQLException {\n return transactions.getCurrent();\n }",
"List<Bill> todaysBills() throws SQLException;",
"public static Cursor getLatest60Entries(Context context) {\n SQLiteDatabase db = getInstance(context).getReadableDatabase();\r\n\r\n String sql = \"select * from whysit;\";\r\n\r\n Cursor cursor = db.rawQuery(sql, null);\r\n return cursor;\r\n }",
"public List<CustomerPurchase> getAll() throws SQLException;",
"public ArrayList<BikeData> getAllRecentData (){\n ArrayList<BikeData> datalist = new ArrayList<>();\n \n try(\n Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_RECENT_DATA);\n ResultSet rs = ps.executeQuery()){\n \n while(rs.next()){\n int bikeId = rs.getInt(cBikeID);\n LocalDateTime dateTime = rs.getTimestamp(cDateTime).toLocalDateTime();\n double latitude = rs.getDouble(cLatitude);\n double longitude = rs.getDouble(cLongitude);\n double chargingLevel = rs.getDouble(cChargingLevel);\n\n BikeData bd = new BikeData(bikeId, dateTime, latitude, longitude, chargingLevel);\n datalist.add(bd);\n }\n \n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return datalist;\n }",
"public HashMap<UUID, Double> getTop(int limit) {\n PreparedStatement preparedStatement = null;\n try\n {\n HashMap<UUID, Double> topMap = new HashMap<>();\n preparedStatement = connection.prepareStatement(\n String.format(\"SELECT uuid, balance FROM %s.accounts ORDER BY balance DESC LIMIT ?;\",\n simpleEconomy.getConfig().getString(\"db.database\")));\n preparedStatement.setInt(1, limit);\n ResultSet resultSet = preparedStatement.executeQuery();\n while (resultSet.next()) {\n topMap.put(UUID.fromString(resultSet.getString(\"uuid\")), resultSet.getDouble(\"balance\"));\n }\n return topMap;\n }\n catch (SQLException e)\n {\n e.printStackTrace();\n }\n return new HashMap<>();\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getTransactions(int index) {\n return instance.getTransactions(index);\n }",
"public static List<TopicBean> getRecentTopics() {\r\n\t\tDBCollection topicsColl = getCollection(TOPICS_COLLECTION);\r\n\t\t\r\n\t\tDBObject query = new BasicDBObject(\"deleted\", new BasicDBObject(\"$ne\", true));\r\n\t\t\r\n\t\tList<DBObject> topicsDBList=new ArrayList<DBObject>();//List<DBObject> topicsDBList = topicsColl.find(query).sort(new BasicDBObject(\"last_update\", -1)).toArray();\r\n\t\tDBCursor topicCur=topicsColl.find(query).sort(new BasicDBObject(\"last_update\", -1));\r\n\t\twhile(topicCur.hasNext()){\r\n\t\t\ttopicsDBList.add(topicCur.next());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tList<TopicBean> recentTopics = new ArrayList<TopicBean>();\r\n\t\tfor (DBObject topicDBObject : topicsDBList) {\r\n\t\t\tTopicBean topic = new TopicBean();\r\n\t\t\ttopic.parseBasicFromDB(topicDBObject);\r\n\t\t\ttopic.setConversations(ConversationDAO.loadConversationsByTopic(topic.getId()));\r\n\t\t\trecentTopics.add(topic);\r\n\t\t\t\r\n\t\t\tif (recentTopics.size() == 20) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn recentTopics;\r\n\t}",
"public List<BankOperation> getOperationsAfter(int n_id){\n List<BankOperation> op_list = new ArrayList<>();\n\n try (\n Statement s = rawDataSource.getConnection().createStatement();\n ResultSet res = s.executeQuery(\n \"SELECT * FROM APP.OPERATIONS where OP_ID >= \"+n_id+\" ORDER BY OP_ID DESC\")) {\n\n while (res.next()) {\n switch(res.getInt(\"OP_TYPE\")){\n //MOVEMENT\n case 1:\n op_list.add(new BankOperation.Movement(res.getInt(\"OP_ID\"), res.getInt(\"MV_AMOUNT\"), res.getInt(\"FROM_CURRENT_BALANCE\"), res.getString(\"FROM_ACCOUNT_ID\")));\n break;\n //TRANSFER\n case 2:\n op_list.add(new BankOperation.Transfer(res.getInt(\"OP_ID\"), res.getInt(\"MV_AMOUNT\"),\n res.getString(\"FROM_ACCOUNT_ID\"), res.getString(\"TO_ACCOUNT_ID\"), res.getInt(\"FROM_CURRENT_BALANCE\"),\n res.getInt(\"TO_CURRENT_BALANCE\")));\n break;\n //CREATE\n case 3:\n op_list.add(new BankOperation.Create(res.getInt(\"OP_ID\"), res.getString(\"FROM_ACCOUNT_ID\")));\n break;\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return op_list;\n }",
"@GetMapping\r\n\tpublic ResponseEntity< ResponseWrapper > getLast50Orders()\r\n\t{\r\n\t\treturn orderService.getLast50Orders();\r\n\t}",
"public Cursor fetchAllTransactionsForAccount(String accountUID){\n if (accountUID == null)\n throw new IllegalArgumentException(\"Unique ID of the account cannot be null\");\n\n if (mDb.getVersion() < DatabaseSchema.SPLITS_DB_VERSION){ //legacy from previous database format\n return mDb.query(TransactionEntry.TABLE_NAME, null,\n \"((\" + SplitEntry.COLUMN_ACCOUNT_UID + \" = '\" + accountUID + \"') \"\n + \"OR (\" + DatabaseHelper.KEY_DOUBLE_ENTRY_ACCOUNT_UID + \" = '\" + accountUID + \"' ))\"\n + \" AND \" + TransactionEntry.COLUMN_RECURRENCE_PERIOD + \" = 0\",\n null, null, null, TransactionEntry.COLUMN_TIMESTAMP + \" DESC\");\n } else {\n SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder();\n queryBuilder.setTables(TransactionEntry.TABLE_NAME\n + \" INNER JOIN \" + SplitEntry.TABLE_NAME + \" ON \"\n + TransactionEntry.TABLE_NAME + \".\" + TransactionEntry.COLUMN_UID + \" = \"\n + SplitEntry.TABLE_NAME + \".\" + SplitEntry.COLUMN_TRANSACTION_UID);\n queryBuilder.setDistinct(true);\n String[] projectionIn = new String[]{TransactionEntry.TABLE_NAME + \".*\"};\n String selection = SplitEntry.TABLE_NAME + \".\" + SplitEntry.COLUMN_ACCOUNT_UID + \" = ?\"\n + \" AND \" + TransactionEntry.TABLE_NAME + \".\" + TransactionEntry.COLUMN_RECURRENCE_PERIOD + \" = 0\";\n String[] selectionArgs = new String[]{accountUID};\n String sortOrder = TransactionEntry.TABLE_NAME + \".\" + TransactionEntry.COLUMN_TIMESTAMP + \" DESC\";\n\n return queryBuilder.query(mDb, projectionIn, selection, selectionArgs, null, null, sortOrder);\n }\n\t}",
"@Override\r\n\tpublic Users findLatest() {\n\t\treturn (Users) sessionFactory.getCurrentSession().createQuery(\"from Users order by id DESC\").setMaxResults(1).uniqueResult();\r\n\t}",
"public List<Song> topTen() {\n\t\treturn lookifyRepository.findTop10ByOrderByRatingDesc();\n\t}",
"int getTransactionsCount();",
"List<Trade> getAllTrades();",
"public static List<Tournament> getAllTournaments(){\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n\n CriteriaBuilder builder = session.getCriteriaBuilder();\n CriteriaQuery<Tournament> criteriaQuery = builder.createQuery(Tournament.class);\n //SELECT\n Root<Tournament> root = criteriaQuery.from(Tournament.class);\n criteriaQuery.select(root);\n //ORDER BY\n criteriaQuery.orderBy(builder.desc(root.get(\"date\")));\n\n Query<Tournament> query = session.createQuery(criteriaQuery);\n List<Tournament> result = query.getResultList();\n\n tx.commit();\n return result;\n\n } catch (Exception e) {\n if (tx != null) tx.rollback();\n throw e;\n } finally {\n session.close();\n }\n }",
"@Transactional\npublic interface ExchangeHistoryRepository extends CrudRepository<ExchangeHistory, Long> {\n\n ExchangeHistory findTopByOrderByIdDesc();\n //findTopByOrderByAgeDesc();\n}",
"@java.lang.Override\n public com.google.protobuf.ByteString getTransactions(int index) {\n return transactions_.get(index);\n }",
"@Query(\"SELECT * FROM DBTask WHERE taskState = :taskState ORDER by endTime DESC LIMIT 20\")\n List<DBTask> getDBTaskByDBTaskState(String taskState);",
"List<TransactionRec> loadRecordsByAccount(BankAccount account);",
"public Iterator getTransactions() {\n return (transactions.listIterator());\n }",
"@GetMapping(\"/rest\")\n\t\tpublic @ResponseBody List<Transaction> transactionsListRest() {\n\t\t\tUserDetails user = (UserDetails) SecurityContextHolder.getContext()\n\t\t\t\t\t.getAuthentication().getPrincipal();\n\t\t\tString username = user.getUsername();\n\t\t\tUser currentUser = userRepo.findByUsername(username);\n\t\t\treturn (List<Transaction>) traRepo.findByUser(currentUser);\n\t\t}",
"public Collection<CleaningTransaction> findAll();",
"private int getLatestRuns() {\n // return 90 for simplicity\n return 90;\n }",
"@Override\n\tpublic List<Transaction> getTransactionsByAccountId(int accountId) throws SQLException {\n\t\tList<Transaction> tList = new ArrayList<>();\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"select * from transaction_history where account_id=?\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setInt(1, accountId);\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\twhile (rs.next()) {\n\t\t\tTransaction t = new Transaction(rs.getInt(2), rs.getString(3), rs.getDouble(4),rs.getTimestamp(5));\n\t\t\ttList.add(t);\n\t\t}\n\t\treturn tList;\n\t}",
"public List<Buy> getAll() throws PersistException;",
"public ArrayList<Transaction> GetUserTransactions(int UserID);",
"public List<Highscore> getTopTen(Context context){\n highscore = db.getTopTen();\n return highscore;\n }",
"@Test\n public void testFindLatest() {\n Calendar calendar = Calendar.getInstance();\n StatusUpdate lastStatusUpdate = null;\n for (int i = 0; i < 10; i++) {\n calendar.add(Calendar.DAY_OF_YEAR, 1);\n StatusUpdate status = new StatusUpdate(\"Status Update\" + i, calendar.getTime());\n statusUpdateDao.save(status);\n lastStatusUpdate = status;\n }\n StatusUpdate retrieved = statusUpdateDao.findFirstByOrderByAddedDesc();\n assertEquals(\"Latest status update \", lastStatusUpdate, retrieved);\n }",
"public List<Transaction> getTransactionByUser(User user) throws SQLException {\n String sql = \"SELECT * FROM LabStore.Transaction_Detail WHERE uId = ?\";\n List<Transaction> transactions = new ArrayList<>();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, user.getId());\n try (ResultSet rs = preStmt.executeQuery()) {\n while (rs.next()) {\n Transaction transaction = new Transaction();\n transaction.setId(rs.getInt(\"id\"));\n transaction.setUser(user);\n transaction.setPurchaseDetail(purchaseDetailDbManager\n .getPurchaseDetailById(rs.getInt(\"pdId\")));\n transaction.setCount(rs.getInt(\"count\"));\n transaction.setTime(rs.getTimestamp(\"time\"));\n transactions.add(transaction);\n }\n }\n }\n\n return transactions;\n }",
"public List<Record> getAccountHistory(BigDecimal bankAccountID){\n String sql = \"SELECT * FROM history WHERE bankaccount_id = :bankaccount_id\";\n Map paramMap = new HashMap();\n paramMap.put(\"bankaccount_id\", bankAccountID);\n List<Record> result = jdbcTemplate.query(sql, paramMap, new HistoryRowMapper());\n return result;\n }",
"@GET\n @Path(\"public/transactions/{CurrencyPair}\")\n GatecoinTransactionResult getTransactions(\n @PathParam(\"CurrencyPair\") String CurrencyPair,\n @QueryParam(\"Count\") int Count,\n @QueryParam(\"TransactionId\") long TransactionId\n ) throws IOException, GatecoinException;",
"@Override\r\n\tpublic ArrayList<Activitat> getAll() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME;\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\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\treturn llistaActivitats;\r\n\t}",
"public Cursor fetchAllTransactionsForAccount(long accountID){\n\t\treturn fetchAllTransactionsForAccount(getAccountUID(accountID));\n\t}",
"public ArrayList<CustomerSpender> getCustomerByHighestSpentAmount(){\n ArrayList<CustomerSpender> customerSpenders = new ArrayList<>();\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT Customer.CustomerId, FirstName, LastName, Country, PostalCode, Phone, Email, Invoice.Total\" +\n \" FROM Customer INNER JOIN Invoice ON Customer.CustomerId = Invoice.CustomerId\" +\n \" ORDER BY Invoice.Total DESC\");\n\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n customerSpenders.add(new CustomerSpender(\n set.getString(\"CustomerId\"),\n set.getString(\"FirstName\"),\n set.getString(\"LastName\"),\n set.getString(\"Country\"),\n set.getString(\"PostalCode\"),\n set.getString(\"Phone\"),\n set.getString(\"Email\"),\n set.getString(\"total\")\n ));\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return customerSpenders;\n }",
"public List<List<Integer>> getTransactions() {\n return transactions;\n }",
"List<Bill> all() throws SQLException;",
"@Query(\"SELECT * from stock_table ORDER BY symbol ASC\")\n List<AppStock> getAllStocksSync();",
"public static ArrayList<String> getTopTen() throws Exception{\n\t\n\tint start, end;\n\tFile xmlFile = getFile();\n\tif(!xmlFile.exists()){\n\t\tJOptionPane.showMessageDialog(null, \"Record Does nor exist\");\n\t}\n\tScore root = new Score();\n\tMap<String, Integer> standings = new TreeMap<String, Integer>();\n root = readObjectAsXmlFrom(new FileReader(xmlFile.getAbsolutePath()), root.getClass());\n standings = root.standings;\n Map<String, Integer> sortedStandings = sortByValue(standings);\n Set<Entry<String, Integer>> keys = sortedStandings.entrySet();\n Object[] sortedArr = keys.toArray();\n end = sortedArr.length;\n if(end<=10) start = 0;\n else start = end -10;\n ArrayList<String> result = new ArrayList<String>();\n for(int x = start; x<end;x++){\n \tresult.add(sortedArr[x].toString());\n }\n\treturn result;\n }",
"@Transactional(readOnly = true)\n public List<OrderTransactionDTO> findAll() {\n log.debug(\"Request to get all OrderTransactions\");\n return orderTransactionRepository.findAll().stream()\n .map(orderTransactionMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"List<StockList> fetchAll();",
"Book getLatestBook();",
"public long getAllTransactionsCount(){\n\t\tString sql = \"SELECT COUNT(*) FROM \" + TransactionEntry.TABLE_NAME;\n\t\tSQLiteStatement statement = mDb.compileStatement(sql);\n return statement.simpleQueryForLong();\n\t}",
"ArrayList<Bet> selectLostBetsOfAccount(Account account) throws DAOException;",
"public List<TransactionInfo> list() {\n LOG.debug(\"loading all transaction info\");\n try {\n return getEditor().list();\n } catch (IOException e) {\n throw new CommandExecutionException(\"error occurred while loading transactions\", e);\n }\n }",
"@java.lang.Override\n public int getTransactionsCount() {\n return transactions_.size();\n }",
"ResponseEntity<List<TOURatesHistory>> getTouRatesHistory();",
"public ArrayList<Integer> getAllTransactionsID(){\n return allTransactionsID;\n }",
"private void printAllTransactions(){\n Set<Transaction> transactions = ctrl.getAllTransactions();\n transactions.stream().forEach(System.out::println);\n }",
"java.util.List<com.google.protobuf.ByteString> getTransactionsList();",
"@GetMapping(\"/stats.latest\")\n @ResponseBody\n public List<ShortUrl> latestStats() {\n\n // Simple return of last 10 urls and access records. This would need a lot more\n // work to scale, including creating a more granular API\n\n List<ShortUrl> latest = repository.findTop10ByOrderByCreatedOnDesc();\n\n return latest;\n }",
"public List<TransactionReportRow> generateReportOnAllWithdrawalTransactions(int start, int numOfRows) throws MiddlewareQueryException;",
"private Collection<StorableTransaction> getTransactionList(Object body) {\r\n Collection<StorableTransaction> txs = new ArrayList<>();\r\n JsonObject data = (JsonObject) body;\r\n data.getJsonArray(ID_COLLECTION).forEach(json -> {\r\n StorableTransaction tx = Serializer.unpack((JsonObject) json, StorableTransaction.class);\r\n tx.setTimestamp(timestampFrom(data.getLong(ID_TIME)));\r\n txs.add(tx);\r\n });\r\n return txs;\r\n }",
"@Override\r\n\tpublic Vector<Log> get(Timestamp begin, Timestamp end) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tVector<Log> ret = new Vector<Log>();\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetAll);\r\n\t\t\tps.setTimestamp(1, begin);\r\n\t\t\tps.setTimestamp(2, end);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tret.add(generate(rs));\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ret;\r\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}",
"@Transactional\n\tpublic Set<TransactionTable> findAllTransactions() {\n\t\t List<TransactionTable> list = new ArrayList<TransactionTable>();\n\t TypedQuery<TransactionTable> query = entityManager.createNamedQuery(\"TransactionTable.findAll\", TransactionTable.class);\n\t list = query.getResultList();\n\t Set<TransactionTable> TransactionSet = new HashSet<TransactionTable>(list);\n\t return TransactionSet;\n\t\n\t}"
] | [
"0.62052304",
"0.61347955",
"0.60607046",
"0.60484064",
"0.595776",
"0.59501314",
"0.5907085",
"0.58784235",
"0.5859642",
"0.5848273",
"0.5794211",
"0.5672545",
"0.563182",
"0.56312066",
"0.5572764",
"0.55681175",
"0.55389506",
"0.55337447",
"0.55247706",
"0.55037516",
"0.54913366",
"0.54699194",
"0.54621255",
"0.5431589",
"0.541716",
"0.5394943",
"0.53826624",
"0.53739494",
"0.5366976",
"0.5348857",
"0.53436476",
"0.5333976",
"0.5331019",
"0.53195244",
"0.53128546",
"0.52962077",
"0.5288269",
"0.5267956",
"0.52637655",
"0.5261867",
"0.52602273",
"0.52501637",
"0.5224716",
"0.5223111",
"0.5206087",
"0.5205724",
"0.5200092",
"0.5180072",
"0.51786274",
"0.5177876",
"0.517238",
"0.51673925",
"0.516639",
"0.5165967",
"0.5154175",
"0.51332426",
"0.51095104",
"0.5093832",
"0.50867",
"0.50843626",
"0.50743854",
"0.50735265",
"0.50496227",
"0.5047114",
"0.50459605",
"0.5040409",
"0.50252277",
"0.5024486",
"0.5017274",
"0.5014014",
"0.5009091",
"0.5008334",
"0.49902993",
"0.497959",
"0.49694225",
"0.4966312",
"0.4963486",
"0.49574015",
"0.49478146",
"0.49436274",
"0.49426177",
"0.49340662",
"0.49299744",
"0.49285644",
"0.4916169",
"0.49076483",
"0.49027476",
"0.48950973",
"0.48917705",
"0.48903355",
"0.48899484",
"0.4888921",
"0.48876932",
"0.48823616",
"0.48800975",
"0.48786205",
"0.48769525",
"0.48714584",
"0.48643965",
"0.48642677"
] | 0.4982712 | 73 |
retrieves the last month expenses. | List<MonthlyExpenses> lastMonthExpenses(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Expenses> latestExpenses();",
"int getExpMonth(String bookingRef);",
"@Test()\n public void testGetBiggestPerMonthWithYearly() {\n\tYearMonth yearMonth = YearMonth.of(2015, 8);\n\tList<Expense> list = expenseManager.getBiggestPerMonth(yearMonth);\n\tassertEquals(\"vacation\", list.get(0).getName());\n }",
"@Test()\n public void testGetBiggestPerMonth() {\n\tYearMonth yearMonth = YearMonth.of(2015, 6);\n\tList<Expense> list = expenseManager.getBiggestPerMonth(yearMonth);\n\tassertEquals(\"gas\", list.get(0).getName());\n }",
"public double calculateMonthlyTotal(LinkedList<Expense> expenses){\n double monthlyTotal = 0.0;\n\n for(Expense expense : expenses){\n if(dateService.withinMonth(expense.getDate()))\n monthlyTotal = monthlyTotal + expense.getPrice();\n }\n\n return round(monthlyTotal, 2);\n }",
"@JsonGetter(\"exp_month\")\r\n public int getExpMonth ( ) { \r\n return this.expMonth;\r\n }",
"public List<MonthlyRecord> getMonthlyExpense(int year) throws SQLException {\n\t\treturn getMonthly(year, \"Expense\");\n\t}",
"public List<DailyRecord> getDailyExpense(int year, Month month) throws SQLException {\n\t\treturn getDaily(year, month, \"Expense\");\n\t}",
"public BigDecimal getLastmonthFee() {\r\n return lastmonthFee;\r\n }",
"public double calculateApprovedMonthlyTotal(LinkedList<Expense> expenses){\n double monthlyTotal = 0.0;\n\n for(Expense expense : expenses){\n if(expense.isApproved() && dateService.withinMonth(expense.getDate()))\n monthlyTotal = monthlyTotal + expense.getPrice();\n }\n\n return round(monthlyTotal, 2);\n }",
"public Date getExpEndDate() {\n\t\treturn this.expEndDate;\n\t}",
"public static Date lastDayMonth(){\n String rep_fin_de_mes = \"\";\n try {\n Calendar c = Calendar.getInstance();\n\n /*Obteniendo el ultimo dia del mes*/\n c.set(Calendar.DAY_OF_MONTH, c.getActualMaximum(Calendar.DAY_OF_MONTH));\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n /*Almacenamos un string con el formato indicado*/\n rep_fin_de_mes = sdf.format(c.getTime());\n \n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return stringToDate(rep_fin_de_mes);\n }",
"public static LocalDate getLastOfCurrentMonth() {\n\t\treturn LocalDate.now().with(TemporalAdjusters.lastDayOfMonth());\n\t}",
"public java.math.BigInteger getExpirationMonth() {\r\n return expirationMonth;\r\n }",
"public static LocalDate getLastOfNextMonth() {\n\t\treturn BusinessDateUtility.getFirstOfNextMonth().with(TemporalAdjusters.lastDayOfMonth());\n\t}",
"public double calculateMonthlyTotal(ExpenseRetrievalResponse expenseRetrievalResponse){\n LinkedList<Expense> expenses = expenseRetrievalResponse.getExpenses();\n\n double monthlyTotal = 0.0;\n\n for(Expense expense : expenses){\n if(dateService.withinMonth(expense.getDate()))\n monthlyTotal = monthlyTotal + expense.getPrice();\n }\n\n return round(monthlyTotal, 2);\n }",
"@Test()\n public void testGetExpensesByTypeAndMonth() {\n\tString type = \"MONTHLY\";\n\tYearMonth yearMonth = YearMonth.of(2015, 6);\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByTypeAndMonth(type, yearMonth);\n\tassertEquals(1, expensesForDisplay.size(), 0);\n }",
"public Calendar endOfMonth() {\r\n\t\t\r\n\t\t// get the date at the beginning of next month\r\n\t\tCalendar c2 = Calendar.getInstance(baseCalendar.getTimeZone());\r\n\t\tc2.clear();\r\n\t\tc2.set(baseCalendar.get(Calendar.YEAR), \r\n\t\t\t\tbaseCalendar.get(Calendar.MONTH) + 1, 1);\r\n\t\t\r\n\t\treturn c2;\r\n\t}",
"private void checksOldExpense() {\n DateUtils dateUtils = new DateUtils();\n\n // Breaking date string from date base\n String[] expenseDate = dateDue.getText().toString().split(\"-\");\n\n if((Integer.parseInt(expenseDate[GET_MONTH]) < Integer.parseInt(dateUtils.currentMonth))\n && (Integer.parseInt(expenseDate[GET_YEAR]) <= Integer.parseInt(dateUtils.currentYear))){\n\n }\n }",
"@Override\n public Date getEffectiveDateForMileageRate(ActualExpense expense) {\n if (getTripBegin() == null) {\n return new java.sql.Date(getDocumentHeader().getWorkflowDocument().getDateCreated().getMillis());\n }\n return new java.sql.Date(getTripBegin().getTime());\n }",
"@Test()\n public void testGetCurrentValuePerMonth() {\n\tYearMonth yearMonth = YearMonth.of(2015, 5);\n\tdouble currentValue = expenseManager.getCurrentValuePerMonth(yearMonth);\n\tassertEquals(615, currentValue, 0);\n }",
"public Date getExpDate() {\n return this.expDate;\n }",
"@WebMethod\n\tpublic Vector<Date> getEventsMonth(Date date) {\n\t\tdbManager.open(false);\n\t\tVector<Date> dates = dbManager.getEventsMonth(date);\n\t\tdbManager.close();\n\t\treturn dates;\n\t}",
"public static WithAdjuster lastDayOfMonth() {\n\n return Impl.LAST_DAY_OF_MONTH;\n }",
"public double getexpense()\n\t{\n\t\treturn this.expenses;\n\t}",
"int getEmploymentDurationInMonths();",
"public int getEndMonth()\n\t{\n\t\treturn this.mEndMonth;\n\t}",
"@Override\n public Date getEffectiveDateForMileageRate(PerDiemExpense expense) {\n if (getTripBegin() == null) {\n return new java.sql.Date(getDocumentHeader().getWorkflowDocument().getDateCreated().getMillis());\n }\n return new java.sql.Date(getTripBegin().getTime());\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testGetExpensesByTypeAndMonthInFuture() {\n\tString type = \"MONTHLY\";\n\tYearMonth yearMonth = YearMonth.of(2016, 12);\n\texpenseManager.getExpensesByTypeAndMonth(type, yearMonth);\n }",
"public Urls getLastMonthUrls() {\n\t\tDate date = new Date();\n\t\tEasyDate easyDate = new EasyDate(date);\n\t\treturn getRecentlyCreatedUrls(easyDate.getPreviousMonthDate());\n\t}",
"List<ObjectExpenseEntity> getAllObjectExpenses();",
"public List<DBExpensesModel> getAllExpenseList() {\n List<DBExpensesModel> expenseArrayList = new ArrayList<DBExpensesModel>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_EXPENSE;\n Log.d(TAG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()) {\n do {\n DBExpensesModel expense = new DBExpensesModel();\n expense.id = c.getInt(c.getColumnIndex(KEY_ID));\n expense.type = c.getString(c.getColumnIndex(KEY_TYPE));\n expense.amount = c.getInt(c.getColumnIndex(KEY_AMOUNT));\n expense.place = c.getString(c.getColumnIndex(KEY_PLACE));\n expense.note = c.getString(c.getColumnIndex(KEY_NOTE));\n expense.cheque = c.getInt(c.getColumnIndex(KEY_CHEQUE));\n expense.date = c.getString(c.getColumnIndex(KEY_DATE));\n\n // adding to Expenses list\n expenseArrayList.add(expense);\n } while (c.moveToNext());\n }\n return expenseArrayList;\n }",
"long getExpirations();",
"public List<HistoriaLaboral> getActualizacionesFinalizaciones(Emp emp);",
"@WebMethod public Vector<Date> getEventsMonth(Date date);",
"public Calendar getExpires() {\n Calendar calendar = null;\n if (this.expires != null) {\n calendar = (Calendar)this.expires.clone();\n }\n return calendar;\n }",
"public double monthlyEarnings() {\n\t\tif(level == \"AS\") {\n\t\t\treturn FACULTY_MONTH_SALARY;\n\t\t}\n\t\telse if(level == \"AO\") {\n\t\t\treturn FACULTY_MONTH_SALARY*1.5;\n\t\t}\n\t\telse {\n\t\t\treturn FACULTY_MONTH_SALARY*2;\n\t\t}\n\t}",
"public int checkExpiryDate(LocalDate today) {\n\n final int limit = 100;\n long expirationDate = Duration.between(\n this.food.getCreateDate().atTime(0, 0), this.food.getExpiryDate().atTime(0, 0)\n ).toDays();\n long goneDate = Duration.between(\n this.food.getCreateDate().atTime(0, 0), today.atTime(0, 0)\n ).toDays();\n\n return (int) (limit * goneDate / expirationDate);\n\n }",
"public List<WeeklyRecord> getWeeklyExpense(int year, Month month) throws SQLException {\n\t\treturn getWeekly(year, month, \"Expense\");\n\t}",
"public static double[] buildExpenses (double monthlyRent) {\n\n\t\tdouble monthlyExpenses[] = new double[12];\n\t\tdouble monthlyMiscellaneousExpenses = 600;\n\t\tdouble doctorCost = 200;\n\t\tdouble textbookCost = 300;\n\t\tdouble birthdayExpenses = 100;\n\t\tdouble holidayExpenses = 200;\n\n\t\t// for loop to fill expenses array\n\t\tfor (int i = 0; i < monthlyExpenses.length; i++) {\n\t\t\t\n\t\t\t// Every month and rent and miscellaneous expenses (food, cell phone, internet, etc.)\n\t\t\tmonthlyExpenses[i] += monthlyRent + monthlyMiscellaneousExpenses;\n\n\t\t\t// In the months of January and Jun\n\t\t\tif (i == 0 || i == 5) {\n\n\t\t\t\t// Add doctor expenses\n\t\t\t\tmonthlyExpenses[i] += doctorCost;\n\t\t\t}\n\n\t\t\t// In the month of September\n\t\t\telse if (i == 8) {\n\n\t\t\t\t// Add textbook expenses\n\t\t\t\tmonthlyExpenses[i] += textbookCost;\n\t\t\t}\n\n\t\t\t// In the months of April, July, and September\n\t\t\telse if (i == 3 || i == 6 || i == 8) {\n\t\t\t\t\n\t\t\t\t// Add birthday expenses\n\t\t\t\tmonthlyExpenses[i] += birthdayExpenses;\t\n\t\t\t}\n\n\t\t\t// In the month of December\n\t\t\telse if (i == 11) {\n\n\t\t\t\t// Add holiday expenses\n\t\t\t\tmonthlyExpenses[i] = holidayExpenses;\n\t\t\t}\n\t\t}\n\n\t\treturn monthlyExpenses;\n\n\t}",
"float getMonthlySalary();",
"public void setExpEndDate(Date expEndDate) {\n\t\tthis.expEndDate = expEndDate;\n\t}",
"public double calculateApprovedMonthlyTotal(ExpenseRetrievalResponse expenseRetrievalResponse){\n LinkedList<Expense> expenses = expenseRetrievalResponse.getExpenses();\n\n double monthlyTotal = 0.0;\n\n for(Expense expense : expenses){\n if(expense.isApproved() && dateService.withinMonth(expense.getDate()))\n monthlyTotal = monthlyTotal + expense.getPrice();\n }\n\n return round(monthlyTotal, 2);\n }",
"public java.lang.Integer getLastOverdueDistanceMonths() {\n return lastOverdueDistanceMonths;\n }",
"public int getMonths() {\n return this.months;\n }",
"@Test()\n public void testGetForecastPerMonth() {\n\tYearMonth yearMonth = YearMonth.of(2016, 4);\n\tdouble forecast = expenseManager.getForecastPerMonth(yearMonth);\n\tassertEquals(483, forecast, 0);\n }",
"public String getRebillLastDate()\n\t{\n\t\tif(response.containsKey(\"last_date\")) {\n\t\t\treturn response.get(\"last_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Test(expected = NullPointerException.class)\n public void testGetBiggestPerMonthNull() {\n\tYearMonth yearMonth = YearMonth.of(2015, 1);\n\texpenseManager.getBiggestPerMonth(yearMonth);\n }",
"@GetMapping(path=\"/expenses/all\")\n\tpublic @ResponseBody Iterable<Expenses> getAllExpenses(){\n\t\treturn expenseRepository.findAll();\n\t}",
"public static List<Order> viewsalesbymonth() {\n\t\tList<Order> monthly_sales = new ArrayList<Order>();\n\n\t\ttry {\n\t\t\tconnect = ConnectionManager.getConnection();\n\t\t\tps = connect.prepareStatement(\n\t\t\t\t\t\"SELECT MONTHNAME(order_date) AS month_name, COUNT(MONTHNAME(order_date)) AS total FROM orders WHERE YEAR(order_date) = YEAR(CURRENT_DATE) GROUP BY MONTHNAME(order_date) ORDER BY MONTH(order_date)\");\n\t\t\tResultSet rs = ps.executeQuery();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tOrder order_month_current = new Order();\n\t\t\t\torder_month_current.setOrderMonth(rs.getString(\"month_name\"));\n\t\t\t\torder_month_current.setTotalByMonth(rs.getInt(\"total\"));\n\n\t\t\t\tmonthly_sales.add(order_month_current);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn monthly_sales;\n\t}",
"@Test\n public void testGetMaxEndDate() {\n ApplicationInfo.info(\n DatabaseHelperTest.class, ApplicationInfo.TEST, ApplicationInfo.UNIT_TEST, \"testBeginsWithEmpty\");\n // Date expResult = null;\n Date result = DatabaseHelper.getMaxEndDate();\n Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT+1\"));\n cal.setTime(result);\n assertEquals(3000, cal.get(Calendar.YEAR));\n assertEquals(Calendar.DECEMBER, cal.get(Calendar.MONTH));\n assertEquals(31, cal.get(Calendar.DATE));\n }",
"public Month getCurrentMonthDetails(){\r\n\t\tString req = \"select sum(amount) as total, case strftime('%m', date('now')) when '01' then 'Janvier' when '02' then 'Fevrier' when '03' then 'Mars' when '04' then 'Avril' when '05' then 'Mai' when '06' then 'Juin' when '07' then 'Juillet' when '08' then 'Aout' when '09' then 'Septembre' when '10' then 'Octobre' when '11' then 'Novembre' when '12' then 'Decembre' else '' end as label \"\r\n\t\t\t\t\t+ \"from fee \"\r\n\t\t\t\t\t+ \"where strftime('%m%Y', date) = strftime('%m%Y', date('now'))\";\r\n\t\tCursor cursor = database.rawQuery(req, null);\t\t\t\t\r\n\t\tif (cursor.moveToFirst()) {\r\n\t\t\tdo {\r\n\t\t\t\treturn new Month(cursor.getString(1), cursor.getString(0));\r\n\t\t\t} while (cursor.moveToNext());\r\n\t\t}\r\n\t\tif (cursor != null && !cursor.isClosed()) {\r\n\t\t\tcursor.close();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public double monthlyEarning() {\n\t\tdouble me = 0.0;\r\n\t\tString input = getLevel();\r\n\t\tif ( input == \"GRAD\")\r\n\t\t\tme = Faculty_Monthly_Salary; // interface variable\r\n\t\telse if ( input == \"ASSOC\")\r\n\t\t\tme = Faculty_Monthly_Salary * 1.2;\r\n\t\telse if ( input == \"PROF\")\r\n\t\t\tme = Faculty_Monthly_Salary * 1.4;\r\n\t\treturn me;\r\n\t\t// if i put these in reverse, i wouldve had to intialize at 1\r\n\t\t//so month earning wouldnt be at 0, and then 0 * 1.2 would equal 0 instead of 1.2\r\n\t}",
"@ApiModelProperty(value = \"Card expiration month (1-12)\")\r\n public Integer getCardExpirationMonth() {\r\n return cardExpirationMonth;\r\n }",
"public double monthlyEarning()\n\t{\n\t\treturn hourlyRate * STAFF_MONTHLY_HOURS_WORKED;\n\t}",
"@Test()\n public void testGetExpensesByTypeAndMonthNull() {\n\tString type = \"MONTHLY\";\n\tYearMonth yearMonth = YearMonth.of(2014, 12);\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByTypeAndMonth(type, yearMonth);\n\tassertEquals(0, expensesForDisplay.size(), 0);\n }",
"public int getMonthsPast(){\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tint c_month = calendar.get(Calendar.MONTH);\n\t\tint c_day = calendar.get(Calendar.DAY_OF_MONTH);\n\t\tString[] date = start_date.split(\"-\");\n\t\tint month = Integer.parseInt(date[1]);\n\t\tint day = Integer.parseInt(date[2]);\n\t\t\n\t\tint current_count = c_day;\n\t\tint client_count = day;\n\t\t\n\t\tswitch (c_month - 1){\n\t\tcase 11:\n\t\t\tcurrent_count += 31;\n\t\tcase 10: \n\t\t\tcurrent_count += 30;\n\t\tcase 9:\n\t\t\tcurrent_count += 31;\n\t\tcase 8:\n\t\t\tcurrent_count += 30;\n\t\tcase 7:\n\t\t\tcurrent_count += 31;\n\t\tcase 6:\n\t\t\tcurrent_count += 31;\n\t\tcase 5: \n\t\t\tcurrent_count += 30;\n\t\tcase 4: \n\t\t\tcurrent_count += 31;\n\t\tcase 3:\n\t\t\tcurrent_count += 30;\n\t\tcase 2: \n\t\t\tcurrent_count += 31;\n\t\tcase 1: \n\t\t\tcurrent_count += 28;\n\t\tcase 0: \n\t\t\tcurrent_count += 31;\n\t\t\tbreak;\n\t\t\t\n\t}\n\t\n\t\tswitch (month - 2){\n\t\tcase 11:\n\t\t\tclient_count += 31;\n\t\tcase 10: \n\t\t\tclient_count += 30;\n\t\tcase 9:\n\t\t\tclient_count += 31;\n\t\tcase 8:\n\t\t\tclient_count += 30;\n\t\tcase 7:\n\t\t\tclient_count += 31;\n\t\tcase 6:\n\t\t\tclient_count += 31;\n\t\tcase 5: \n\t\t\tclient_count += 30;\n\t\tcase 4: \n\t\t\tclient_count += 31;\n\t\tcase 3:\n\t\t\tclient_count += 30;\n\t\tcase 2: \n\t\t\tclient_count += 31;\n\t\tcase 1: \n\t\t\tclient_count += 28;\n\t\tcase 0: \n\t\t\tclient_count += 31;\n\t\t\tbreak;\n\t}\n\t\t\n\treturn current_count-client_count;\n\t}",
"public java.lang.Integer getLastOverdueDistanceMonths30D() {\n return lastOverdueDistanceMonths30D;\n }",
"public static double monthlySavings (double totalMonthlyExpenses, double monthlyIncomeAfterTax) {\n\n\t\t// Income minus expenses\n\t\treturn monthlyIncomeAfterTax - totalMonthlyExpenses;\n\t}",
"public double countExpenses() {\n\n double expenses = 0;\n\n for (int i = 0; i < budget.getExpense().size(); i++) {\n expenses += budget.getExpense().get(i).getAmount();\n }\n\n return expenses;\n }",
"public static Date getLastTradeDateForOption(Date expiration) {\r\n\t\t\r\n\t\tEntityManagerFactory emf = Persistence.createEntityManagerFactory(\"JPAOptionsTrader\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\t\r\n\t\t// Note: table name refers to the Entity Class and is case sensitive\r\n\t\t// field names are property names in the Entity Class\r\n\t\tQuery query = em.createQuery(\"select max(opt.trade_date) from \" + TradeProperties.SYMBOL_FOR_QUERY + \" opt where \"\r\n\t\t\t\t+ \"opt.expiration=:expiration \");\r\n\r\n\t\tquery.setParameter(\"expiration\", expiration);\r\n\t\t\r\n\t\tquery.setHint(\"odb.read-only\", \"true\");\r\n\r\n\t\tDate lastTradeDate = (Date) query.getSingleResult();\t\r\n\t\tem.close();\r\n\t\t\r\n\t\treturn lastTradeDate;\r\n\t}",
"public static int getTodaysMonth() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.month + 1;\t\r\n\t\t\r\n\t}",
"public List<Expense> getExpensesPaidToMember(int memberid){\n\t\tList<Expense> expenses = new ArrayList<Expense>();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(\"SELECT expense.id, senderid, amount, expensedate, description FROM expense INNER JOIN expense_receiver ON expense.id = expense_receiver.expenseid WHERE senderid ='\" + settings.getCurrentMember().getId()+ \"' AND receiverid ='\" + memberid +\"'\");\n\t\t\tResultSet set = statement.executeQuery();\n\n\t\t\tfor(@SuppressWarnings(\"unused\")int i = 0; set.next(); i++) {\n\t\t\t\texpenses.add(new Expense(set.getInt(1), set.getInt(2),set.getDouble(3), set.getString(4), set.getString(5)));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\tstatement.close();\n\t\t\t}catch(SQLException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn expenses;\n\t}",
"public int getCurrentDate() {\n\n\t\t cal = Calendar.getInstance();\n\t\treturn cal.get(Calendar.DAY_OF_MONTH);\n\t}",
"long getExpirationDate();",
"private int getCookieMaxAge(Date now, Date exp) {\n if (!browserSessionOnly) {\n return new Long((exp.getTime() - now.getTime()) / 1000L).intValue();\n } else {\n return -1;\n }\n }",
"public Integer getExpense() {\n return expense;\n }",
"public static int getCurrentMonth()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t}",
"long getEndDate();",
"long getEndDate();",
"private String[] getLast30Dates() {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tString[] dates = new String[30];\n\t\tfor (int i=29; i>=0; i-- ) {\n\t\t\tdates[i] = String.valueOf(calendar.get(Calendar.MONTH)+1) + \"/\" + \n\t\t\t\t\tString.valueOf(calendar.get(Calendar.DATE)) + \"/\" + \n\t\t\t\t\tString.valueOf(calendar.get(Calendar.YEAR));\n\t\t\tcalendar.add(Calendar.DAY_OF_MONTH, -1);\n\t\t}\n\t\treturn dates;\n\t}",
"@GetMapping(path = \"/customer/creditcards/expenses\") /// api/customer/creditcards/expenses\n\t//@PreAuthorize(\"hasRole('ROLE_CUSTOMER')\")\n\tpublic List<CustomPOJO_A> getLastXnumberOfExpences(@PathParam(value = \"\") String transactions) {\n\n\t\tList<CreditCard> creditCards = this.service.getAllCards(this.userEmail);\n\t\tList<CustomPOJO_A> Lcp = new ArrayList<CustomPOJO_A>();\n\t\tfor (CreditCard CC : creditCards) {\n\t\t\tList<CustomPOJO_B> lt = service.getTransactionByCcNumber(CC.getCreditCardNo(), Integer.parseInt(transactions));\n\t\t\tLcp.add(new CustomPOJO_A(CC.getCreditCardNo(),lt));\n\t\t}\n\t\treturn Lcp;\n\t}",
"private Date createExpiredAfter(final int month, final int year) {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\t\n\t\tcalendar.set(year, month - 1, 0, 23, 59, 59);\n\t\tcalendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH));\n\t\t\n\t\treturn calendar.getTime();\n\t}",
"public double getRemainingMonthlyBudget() {\n\t\treturn 0;\n\t}",
"public java.util.Date getApproveExpenseDate () {\n\t\treturn approveExpenseDate;\n\t}",
"public Date getExperiyDate(String token) {\n\t\treturn getClaims(token).getExpiration();\n\n\t}",
"public Expense getExpense(String expenseId) {\n ExpenseDAO expenseDAO = new ExpenseDAO();\n Expense expense;\n try {\n expense = expenseDAO.getById(Integer.parseInt(expenseId));\n } catch (Exception e) {\n log.error(\"[\" + className + \"] getExpense: error in retrieving Expense by Id\");\n return null;\n }\n return expense;\n }",
"private LeaveBalanceEntity findLeaveCurrentLeaveBalanceByEmpId(String empid) {\n\t\t String currentMonth=DateUtils.getCurrentDateSQLDB();\n\t\t currentMonth=currentMonth.substring(0,currentMonth.length()-2);\n\t\t String lsql=\"select * from emp_leave_balance where empid=\"+empid+\" and leaveMonth like '%\"+currentMonth+\"%'\";\n\t\t LeaveBalanceEntity leaveBalance=(LeaveBalanceEntity)super.getJdbcTemplate().queryForObject(lsql, new BeanPropertyRowMapper(LeaveBalanceEntity.class));\n\t\t return leaveBalance;\n\t}",
"public long getExpires()\r\n/* 229: */ {\r\n/* 230:347 */ return getFirstDate(\"Expires\");\r\n/* 231: */ }",
"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 BigDecimal getLastDebtM() {\n return lastDebtM;\n }",
"public Month getMonth(){\n\t return this.month;\n }",
"public int getMonth()\n {\n return month;\n }",
"public int[] getMonths() {\n return months;\n }",
"public static ArrayList<HashMap<String, String>> getCurrentMonthlDates() {\r\n\t\tArrayList<HashMap<String, String>> list = new ArrayList<>();\r\n\t\tCallableStatement call = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\t\t\tcall = con\r\n\t\t\t\t\t.prepareCall(\"{CALL get_monthly_dates_for_salesman_recovery()}\");\r\n\t\t\trs = call.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tHashMap<String, String> map = new HashMap<>();\r\n\t\t\t\tmap.put(\"date\", rs.getString(\"get_date\"));\r\n\t\t\t\tlist.add(map);\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\r\n\t\treturn list;\r\n\t}",
"Date getExpiredDate();",
"public double getMonthlyAmount()\n\t{\n\t\treturn amountGoal%timeFrame;\n\t}",
"public List getAllUserAbscencesMonth() {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n\n // DateFormat sdf = new SimpleDateFormat(\"MM/dd/yy\");\n\n String today=\"\",monthBack=\"\";\n int year=new Date().getYear()+1900;\n int month=new Date().getMonth()+1;\n int monthB = 1;int yearB=year;\n if(month==12){ monthB=1;yearB=yearB+1; }\n else { monthB=month+1;}\n \n \n today = new Date().getDate()+\"/\"+ month+\"/\"+ year;\n monthBack = new Date().getDate()+\"/\"+ monthB+\"/\"+ yearB;\n \n\n Session session = ConnectionFactory.getInstance().getSession();\n Query query;\n\n try {\n /*\n * Build HQL (Hibernate Query Language) query to retrieve a list\n * of all the items currently stored by Hibernate.\n */\n\n query = session.createQuery(\"select userabscence from app.user.UserAbscence userabscence where \"\n + \" userabscence.abscence_date between str_to_date('\" + today \n + \"','%d/%m/%Y') and str_to_date('\" + monthBack\n + \"','%d/%m/%Y') order by userabscence.abscence_date asc\");\n return query.list();\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 }",
"public String getApplyMonths() {\n return applyMonths;\n }",
"public int getDayOfMonth();",
"public java.util.Date getExpenseSettlementDate () {\n\t\treturn expenseSettlementDate;\n\t}",
"public java.lang.String getExpenseEndTime () {\n\t\treturn expenseEndTime;\n\t}",
"@Override\n public String getCurrentMonthAndYear() {\n\n setLogString(\"Get Month and year\", true, CustomLogLevel.HIGH);\n final String currentMonth = getElement(getDriver(), By.className(SAVINGS_MONTH),\n TINY_TIMEOUT).getText();\n setLogString(\"Current Month and Year: \" + currentMonth, true, CustomLogLevel.HIGH);\n return currentMonth.substring(currentMonth.indexOf(\"-\") + 1, currentMonth.length()).trim();\n }",
"public List<Expense> getExpensesPaidByMember(int memberid){\n\t\tList<Expense> expenses = new ArrayList<Expense>();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(\"SELECT expense.id, senderid, amount, expensedate, description FROM expense INNER JOIN expense_receiver ON expense.id = expense_receiver.expenseid WHERE senderid ='\" + memberid+ \"' AND receiverid ='\" + settings.getCurrentMember().getId() +\"'\");\n\t\t\tResultSet set = statement.executeQuery();\n\n\t\t\tfor(@SuppressWarnings(\"unused\")int i = 0; set.next(); i++) {\n\t\t\t\texpenses.add(new Expense(set.getInt(1), set.getInt(2),set.getDouble(3), set.getString(4), set.getString(5)));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\tstatement.close();\n\t\t\t}catch(SQLException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn expenses;\n\t}",
"public Date getFechaFinDate(){\n Date date=new Date(fechaFin.getTime());\n return date;\n }",
"Date getEndDate();",
"Date getEndDate();",
"public java.lang.Integer getOverdueMaxMonth5Y() {\n return overdueMaxMonth5Y;\n }",
"public int[] getDaysOfMonth() {\n return daysOfMonth;\n }",
"public Date getDateLimite() {\r\n return dateLimite;\r\n }"
] | [
"0.6812375",
"0.60850245",
"0.5931562",
"0.58526254",
"0.58393437",
"0.5744022",
"0.57435626",
"0.5697733",
"0.5622333",
"0.55334",
"0.5532716",
"0.55290353",
"0.5511893",
"0.54812974",
"0.5466899",
"0.54631054",
"0.5446359",
"0.54141533",
"0.5390772",
"0.53723437",
"0.53509843",
"0.5302675",
"0.53017044",
"0.52842146",
"0.52784336",
"0.5268273",
"0.5267261",
"0.5267163",
"0.5237014",
"0.52244323",
"0.5214289",
"0.5152417",
"0.51010996",
"0.5100631",
"0.5095141",
"0.508321",
"0.50811",
"0.507774",
"0.5063235",
"0.50601685",
"0.50490344",
"0.50412935",
"0.5039484",
"0.50319386",
"0.5029778",
"0.50174993",
"0.5011104",
"0.4988117",
"0.49804768",
"0.49742353",
"0.496298",
"0.49587783",
"0.49531883",
"0.49519286",
"0.49341676",
"0.49217057",
"0.49204916",
"0.49087024",
"0.48967707",
"0.48953375",
"0.48747632",
"0.4864394",
"0.48511785",
"0.48422378",
"0.48410776",
"0.48381427",
"0.48265052",
"0.48244783",
"0.48177505",
"0.48177505",
"0.48105294",
"0.4810223",
"0.4808761",
"0.48026547",
"0.4801483",
"0.4785323",
"0.4777069",
"0.47599292",
"0.47550565",
"0.47530887",
"0.47477627",
"0.47434053",
"0.47368816",
"0.47308898",
"0.47302064",
"0.47280386",
"0.4720124",
"0.4719731",
"0.4717381",
"0.47150955",
"0.4714489",
"0.4714089",
"0.4713705",
"0.4702603",
"0.47014755",
"0.4698713",
"0.4698713",
"0.46981493",
"0.46868882",
"0.4684088"
] | 0.83033967 | 0 |
Methods: Getter method for the COM property "Application" | @DISPID(148)
@PropGet
excel._Application getApplication(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VTID(12)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getApplication();",
"@DISPID(148)\n @PropGet\n com.exceljava.com4j.excel._Application getApplication();",
"public String getApplication() {\r\n\t\treturn application;\r\n\t}",
"public String getApplication() {\r\n return application;\r\n }",
"@VTID(7)\r\n excel._Application getApplication();",
"Application getApplication();",
"public TApplication getApplication() {\n return window.getApplication();\n }",
"@VTID(7)\n com.exceljava.com4j.excel._Application getApplication();",
"@VTID(7)\n com.exceljava.com4j.excel._Application getApplication();",
"@VTID(7)\n com.exceljava.com4j.excel._Application getApplication();",
"@VTID(7)\n com.exceljava.com4j.excel._Application getApplication();",
"@VTID(7)\n excel._Application getApplication();",
"public Application getApplication() {\n return (Application)this.getSource();\n }",
"protected Application getApplication() {\r\n\t\treturn application;\r\n\t}",
"public com.atomgraph.linkeddatahub.apps.model.Application getApplication()\n {\n return (com.atomgraph.linkeddatahub.apps.model.Application)getContainerRequestContext().getProperty(LAPP.Application.getURI());\n }",
"public Application getApp() {\n\t\treturn app;\n\t}",
"@DISPID(1000) //= 0x3e8. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n word._Application application();",
"@DISPID(1000) //= 0x3e8. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n word._Application application();",
"@DISPID(1610743808) //= 0x60020000. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject application();",
"public SmartApplication getSmartApplication() {\r\n\t\treturn application;\r\n\t}",
"public static MIDLetParamsApp getApplication() {\n return Application.getInstance(MIDLetParamsApp.class);\n }",
"protected ApplicationComponent getApplicationComponent() {\n return ((MainApp) getApplication()).getApplicationComponent();\n }",
"public MauiApplication getApplication ()\n\t{\n\t\treturn application;\n\t}",
"public Optional<ApplicationVersion> application() { return application; }",
"public String getApp();",
"public int getApplication() {\n\treturn com.hps.july.constants.Applications.DICTIONARY;\n}",
"public String getApplicationName() {\n return applicationName;\n }",
"@Override\n\tpublic String getApp() {\n\t\tthrow new UnsupportedOperationException(\"Not supported yet.\");\n\t}",
"public String getApplicationName() {\r\n\t\treturn applicationName;\r\n\t}",
"public java.lang.String getApplicationID() {\r\n return applicationID;\r\n }",
"public String getApplicationdata() {\r\n return applicationdata;\r\n }",
"public static Application getApp() {\n if (sApplication != null) return sApplication;\n throw new NullPointerException(\"u should init first\");\n }",
"public ApplicationInfo getApplicationInfo() {\n return null;\n }",
"@Key(\"application.component\")\n\tString applicationComponent();",
"public org.thethingsnetwork.management.proto.HandlerOuterClass.Application getApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);",
"public Vector getApplicationProperties() {\n return appProperties;\n }",
"@DISPID(3) //= 0x3. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n visiotool.IVApplication application();",
"public String getApplicationID() {\n return applicationID;\n }",
"public BuilderApplication getApp() {\n\t\treturn app;\n\t}",
"public static ApplicationComponent component() {\n return instance().applicationComponent;\n }",
"public String getAppName( )\n\t{\n\t\treturn appName;\n\t}",
"AdminApplication getApplication();",
"public String getAppName() {\n\t\treturn appName;\n\t}",
"public java.lang.String getApplicationId() {\r\n return applicationId;\r\n }",
"public String getAppName();",
"public static ApplicationBase getApplication()\r\n {\r\n if (instance == null)\r\n {\r\n throw new IllegalStateException(\"Micgwaf was not (yet) initialized correctly: no instance of Application is known.\");\r\n }\r\n return instance;\r\n }",
"public String getApplicationPresentation() {\n\t\treturn this.getApplicationName() + \" \" + this.getVersion();\n\t}",
"public static Application getApp() {\n if (sApplication != null) {\n return sApplication;\n }\n Application app = getApplicationByReflect();\n init(app);\n return app;\n }",
"@Nullable\n Application getApplication(String name);",
"public OSPApplication getOSPApp();",
"public String getAppCode()\n\t{\n\t\treturn appCode;\n\t}",
"abstract public String getApplicationName();",
"public List<Application> getApplications()\n {\n return _apps;\n }",
"public static Application getInstance(){\n\t\treturn getInstance (null);\n\t}",
"public IMApplicationInfo getIMApplicationInfo(){\n\t\treturn this.getApplicationContextFactory().getApplicationContext().getRequestContext().getIMApplicationInfo();\n\t}",
"public String getProducerApplication();",
"public static App getInstance() {\n return applicationInstance;\n }",
"public final String getAppName( )\n\t{\n\t\treturn this.data.getString( \"applicationName\" );\n\t}",
"public int getApplications() {\r\n return applications;\r\n }",
"public static InteractiveApp getApp() {\n return (InteractiveApp) ApplicationInstance.getActive();\n }",
"public String getAppId()\r\n {\r\n return getSemanticObject().getProperty(data_appId);\r\n }",
"public void setApplication(AppW app) {\n\t\tthis.app = app;\n\t}",
"public Application getOwningApplication()\r\n\t{\r\n\t\treturn owningApplication;\r\n\t}",
"public String getApplicationPath()\n {\n return getApplicationPath(false);\n }",
"public String getApplicationTitle() {\n return applicationTitle.get();\n }",
"public void setApplication(String application) {\r\n this.application = application;\r\n }",
"public String getTozApplicationName() {\n return (tozApplicationName);\n }",
"java.lang.String getAppName();",
"java.lang.String getAppName();",
"java.lang.String getAppName();",
"@AutoEscape\n\tpublic String getAppName();",
"public Boolean applicationMap() {\n return this.applicationMap;\n }",
"public ApplicationInfo getApplicationInfo() {\n return getActivityInfo().applicationInfo;\n }",
"public static FFTApp getApplication() {\n return Application.getInstance(FFTApp.class);\n }",
"public static BlaiseGraphicsTestApp getApplication() {\n return Application.getInstance(BlaiseGraphicsTestApp.class);\n }",
"public static String getAppName(){\r\n return getProperty(\"name\", \"Jin\");\r\n }",
"public void setApplication(String application) {\r\n\t\tthis.application = application;\r\n\t}",
"public ApplicationVersion getApplicationVersion() {\n\t\treturn applicationVersion;\n\t}",
"public static GretellaApp getApplication() {\n return Application.getInstance(GretellaApp.class);\n }",
"String getComponentAppId();",
"public String getAppID() {\n return appID;\n }",
"public static ApplicationOptions getOptions (){\n\t\treturn _applicationOptions;\n\t}",
"public void setApp(PR1 application){\n this.application = application;\n }",
"public List<Application> getVisibleApplications() {\n return null;\r\n }",
"@OAMany(toClass = Application.class, reverseName = Application.P_ApplicationType, createMethod = false)\n\tprivate Hub<Application> getApplications() {\n\t\treturn null;\n\t}",
"public String getPortletApplicationName() {\n if(this.portletID != null) {\n return portletID.getPortletApplicationName();\n }\n return null;\n }",
"public String getAppExt1() {\n return appExt1;\n }",
"public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n }\n }",
"public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n }\n }",
"@XmlElement(required = true)\n public List<Application> getApplications() {\n return applications;\n }",
"@Override\n\tpublic String getAppId() {\n\t\treturn app.getAppId();\n\t}",
"@Override\r\n//\tpublic Application getModel() {\r\n//\n//\t\treturn application;\r\n//\t}\r\n\t\r\n\tpublic Application getModel() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn application;\r\n\t}",
"public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getApplicationName() {\n\t\treturn this.properties.getProperty(SoundLooperProperties.KEY_APPLICATION_NAME, \"UNKNOW\");\n\t}",
"public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n }\n }",
"@Override\n\tpublic java.lang.String getAppType() {\n\t\treturn _scienceApp.getAppType();\n\t}",
"public Object getApplication(String attibuteName) {\n return servletRequest.getServletContext().getAttribute(attibuteName);\n }",
"public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setApp(Main application) { this.application = application;}"
] | [
"0.8435255",
"0.7877139",
"0.78528804",
"0.78484577",
"0.7788415",
"0.7618787",
"0.7586046",
"0.75495523",
"0.75495523",
"0.75495523",
"0.75495523",
"0.75069785",
"0.7500582",
"0.7492335",
"0.7442793",
"0.74311256",
"0.72747326",
"0.72747326",
"0.71951425",
"0.708975",
"0.70850176",
"0.7028544",
"0.7010034",
"0.6943115",
"0.6809486",
"0.6806108",
"0.6775152",
"0.67648256",
"0.67092264",
"0.6669048",
"0.66271555",
"0.66110176",
"0.6560996",
"0.6535376",
"0.6515883",
"0.6497301",
"0.6484578",
"0.6478845",
"0.6441012",
"0.64196193",
"0.64125884",
"0.64125496",
"0.63327533",
"0.63315487",
"0.6294993",
"0.6265215",
"0.62474364",
"0.6221218",
"0.6215166",
"0.6214651",
"0.6212616",
"0.62024516",
"0.62002295",
"0.61862564",
"0.61767906",
"0.6163238",
"0.6149955",
"0.61353534",
"0.61130667",
"0.6089542",
"0.60653156",
"0.6055834",
"0.6050937",
"0.6045745",
"0.60439444",
"0.604311",
"0.60428727",
"0.6011536",
"0.6011536",
"0.6011536",
"0.59958255",
"0.59936213",
"0.5991",
"0.5981541",
"0.5973553",
"0.59557515",
"0.5951902",
"0.5945628",
"0.594142",
"0.5906949",
"0.58935606",
"0.5889189",
"0.58871746",
"0.5875809",
"0.5875522",
"0.5873449",
"0.58705544",
"0.586965",
"0.586965",
"0.58686006",
"0.5864965",
"0.5862368",
"0.58576226",
"0.58576226",
"0.5857603",
"0.58560205",
"0.5855931",
"0.5855227",
"0.58379275",
"0.58348787"
] | 0.79125243 | 1 |
Getter method for the COM property "Creator" | @DISPID(149)
@PropGet
excel.XlCreator getCreator(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCreator() {\n return getProperty(Property.CREATOR);\n }",
"public String getCreator()\n\t{\n\t\treturn null;\n\t}",
"public String getCreator() {\r\n return creator;\r\n }",
"public String getCreator() {\r\n return creator;\r\n }",
"public String getCreator() {\n return this.creator;\n }",
"public String getCreator() {\n\t\treturn creator;\n\t}",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public abstract String getCreator();",
"@DISPID(149)\n @PropGet\n com.exceljava.com4j.excel.XlCreator getCreator();",
"@VTID(13)\r\n int getCreator();",
"@VTID(8)\r\n excel.XlCreator getCreator();",
"public java.lang.String getCreatorName() {\n return creatorName;\n }",
"public Integer getCreator() {\n return creator;\n }",
"public String getCreatorName() {\n return creatorName;\n }",
"public String getCreatorName() {\n return creatorName;\n }",
"public String getCreatorName() {\n return creatorName;\n }",
"@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();",
"@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();",
"@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();",
"@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();",
"public String getCreatorCode() {\n return creatorCode;\n }",
"@VTID(8)\n excel.XlCreator getCreator();",
"public Long getCreator() {\n return creator;\n }",
"public String getCreatorGuid() {\n return creatorGuid;\n }",
"@DISPID(1001) //= 0x3e9. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n int creator();",
"@DISPID(1001) //= 0x3e9. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n int creator();",
"public String getCreatorId() {\n return this.CreatorId;\n }",
"public SystemUserBO getCreator()\n {\n if (_creator == null)\n {\n _creator = new SystemUserBO(_model.getCreator());\n }\n return _creator;\n }",
"public void setCreator(String creator) {\n this.creator = creator;\n }",
"public void setCreator(String creator) {\n this.creator = creator;\n }",
"public void setCreator(String creator) {\n this.creator = creator;\n }",
"public void setCreator(String creator) {\n this.creator = creator;\n }",
"public void setCreator(String creator) {\n this.creator = creator;\n }",
"public IIID getCreatorIID()\n throws ORIOException;",
"public String getCreatorId() {\n return creatorId;\n }",
"public String getCreatorId() {\n return creatorId;\n }",
"public java.lang.Integer getCreatorId() {\n return creatorId;\n }",
"public WhoAmI getCreatorID() {\r\n\t\treturn myCreatorId;\r\n\t}",
"public void setCreator(String creator) {\n\t\tthis.creator = creator;\n\t}",
"public void setCreator(Integer creator) {\n this.creator = creator;\n }",
"String getCreatorId();",
"public Date getCreatorDate() {\n return creatorDate;\n }",
"public User getCreator() {\n return this.creator;\n }",
"@Override\n protected String getCreatorDisplayName() {\n try {\n // DAV:creator-displayname -> use jcr:createBy if present.\n if (exists() && ((Node) item).hasProperty(Property.JCR_CREATED_BY)) {\n return ((Node) item).getProperty(Property.JCR_CREATED_BY).getString();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:createdBy property\");\n }\n\n // fallback\n return super.getCreatorDisplayName();\n }",
"public String getCreatorAt(int i){\n return creator[i];\n }",
"public static boolean hasComponentCreator() {\n return sCreator != null;\n }",
"public void setCreator(String creator) {\r\n this.creator = creator == null ? null : creator.trim();\r\n }",
"public void setCreator(String creator) {\r\n this.creator = creator == null ? null : creator.trim();\r\n }",
"public void setCreator(String creator) {\n this.creator = creator == null ? null : creator.trim();\n }",
"public void setCreator(String creator) {\n this.creator = creator == null ? null : creator.trim();\n }",
"public void setCreator(String creator) {\n this.creator = creator == null ? null : creator.trim();\n }",
"public void setCreator(Long creator) {\n this.creator = creator;\n }",
"protected Creator getCreator(ObjectInformation objectInformation) {\n\n return getCreatorRegistry().getCreator(objectInformation.getClazz(), objectInformation.getField());\n }",
"public ParseUser getCreator() {\n try {\n return fetchIfNeeded().getParseUser(\"creator\");\n }\n catch(ParseException e) {\n Log.d(TAG, \"Error in retrieving the creator: \" + e);\n return null;\n }\n }",
"public IUser getCreatorObject()\n throws OculusException;",
"public void setCreatorName(String creatorName) {\n this.creatorName = creatorName;\n }",
"public void addCreator(String value) {\n/* 106 */ addStringToSeq(\"creator\", value);\n/* */ }",
"public String getClCreateBy() {\r\n\t\treturn clCreateBy;\r\n\t}",
"public static DesignViewCreatorForExternal getDefault() {\n\t\tif(creator == null){\n\t\t\tcreator = new DesignViewCreatorForExternal();\n\t\t\tversions = new Hashtable();\n\t\t}\n\t\treturn creator;\n\t}",
"public IBusinessObject setCreatorIID(IIID creator)\n throws ORIOException;",
"public String getCreater() {\n\t\treturn creater;\n\t}",
"public String getCreater() {\n\t\treturn creater;\n\t}",
"public String getCreateAuthor() {\n return createAuthor;\n }",
"public Calendar getCreationDate() throws IOException {\n/* 238 */ return getCOSObject().getDate(COSName.CREATION_DATE);\n/* */ }",
"public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }",
"public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }",
"public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }",
"public void setCreatorGuid(String creatorGuid) {\n this.creatorGuid = creatorGuid;\n }",
"public void setCreatorName(java.lang.String creatorName) {\n this.creatorName = creatorName;\n }",
"public void setCreatorId(String CreatorId) {\n this.CreatorId = CreatorId;\n }",
"@Override\r\n\tpublic String creatorType() {\n\t\treturn \"ShapeViewer\";\r\n\t}",
"public String getCreatorEncodedString() {\n return Hexadecimal.valueOf(this._creatorCertSeq);\n }",
"public TypeSpecCreator getTSCreator() {\n\t\t\treturn this.TSCreator;\n\t\t}",
"public void removeCreator()\r\n {\r\n getSemanticObject().removeProperty(swb_creator);\r\n }",
"public void removeCreator()\r\n {\r\n getSemanticObject().removeProperty(swb_creator);\r\n }",
"public void removeCreator()\r\n {\r\n getSemanticObject().removeProperty(swb_creator);\r\n }",
"public boolean _checkIfCreatorPropertyBased(AnnotationIntrospector intr, AnnotatedWithParams creator, BeanPropertyDefinition propDef) {\n Mode mode = intr.findCreatorBinding(creator);\n if (mode == Mode.PROPERTIES) {\n return true;\n }\n if (mode == Mode.DELEGATING) {\n return false;\n }\n if ((propDef != null && propDef.isExplicitlyNamed()) || intr.findInjectableValueId(creator.getParameter(0)) != null) {\n return true;\n }\n if (propDef != null) {\n String implName = propDef.getName();\n if (implName != null && !implName.isEmpty() && propDef.couldSerialize()) {\n return true;\n }\n }\n return false;\n }",
"public String getCreateMethod() {\n\t\treturn createMethod;\n\t}",
"public String getCreater() {\r\n return creater;\r\n }",
"public String getCreater() {\n return creater;\n }",
"public String getCreater() {\n return creater;\n }",
"Builder addCreator(String value);",
"public java.util.Calendar getCreationDate() {\n return creationDate;\n }",
"private IInformationControlCreator getQuickAssistAssistantInformationControlCreator() {\n return new IInformationControlCreator() {\n @Override\n public IInformationControl createInformationControl(\n final Shell parent) {\n final String affordance = getAdditionalInfoAffordanceString();\n return new DefaultInformationControl(parent, affordance);\n }\n };\n }",
"U getCreateby();",
"public void setCreatorId(String creatorId) {\n this.creatorId = creatorId;\n }",
"public java.util.Calendar getCreated()\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(CREATED$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getCalendarValue();\n }\n }",
"public void setCreatorDate(Date creatorDate) {\n this.creatorDate = creatorDate;\n }",
"public boolean isIsCreator() {\r\n if (ui.isIsUserAuthenticated() && recipe != null) {\r\n if(recipe.getCreator() == user)\r\n return true;\r\n else\r\n return false;\r\n } else {\r\n return false;\r\n }\r\n }",
"public Date getCreationDate() {\n\t\treturn this.creationDate;\n\t\t\n\t}",
"public Date getCreationDate()\r\n {\r\n return (m_creationDate);\r\n }",
"public Date getCreation() {\n return creation;\n }"
] | [
"0.8177976",
"0.78842163",
"0.7722417",
"0.7722417",
"0.7698064",
"0.76860243",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.7578769",
"0.74208593",
"0.73777324",
"0.7289319",
"0.71844274",
"0.7124729",
"0.70957565",
"0.70957565",
"0.70957565",
"0.70600003",
"0.70600003",
"0.70600003",
"0.70600003",
"0.697675",
"0.6966232",
"0.6815777",
"0.6776078",
"0.6766817",
"0.6766817",
"0.67564344",
"0.6746013",
"0.6688191",
"0.6665445",
"0.6665445",
"0.6665445",
"0.6665445",
"0.6657462",
"0.6587629",
"0.6587629",
"0.6583756",
"0.65806746",
"0.6579846",
"0.63812435",
"0.63736737",
"0.6354419",
"0.63358194",
"0.624286",
"0.61656934",
"0.6154598",
"0.6137769",
"0.6137769",
"0.6135593",
"0.6135593",
"0.6135593",
"0.6053035",
"0.6033256",
"0.6016311",
"0.6014622",
"0.60027295",
"0.5981111",
"0.594521",
"0.5902802",
"0.5874602",
"0.58604103",
"0.58604103",
"0.58545357",
"0.5840311",
"0.5834097",
"0.5834097",
"0.5834097",
"0.58279043",
"0.5813987",
"0.58010614",
"0.5781634",
"0.57380795",
"0.570667",
"0.56965196",
"0.56965196",
"0.56965196",
"0.5632146",
"0.56183726",
"0.55918455",
"0.5584642",
"0.5584642",
"0.55746293",
"0.5571531",
"0.55459225",
"0.5545823",
"0.55403924",
"0.5538594",
"0.5529506",
"0.55287224",
"0.5526764",
"0.5519938",
"0.54951394"
] | 0.6888792 | 30 |
Getter method for the COM property "Parent" | @DISPID(150)
@PropGet
com4j.Com4jObject getParent(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getParent();",
"@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();",
"@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();",
"@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();",
"@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();",
"public String getParent() {\n return _theParent;\n }",
"IGLProperty getParent();",
"public Object getParent() {\r\n return this.parent;\r\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public String getParent() {\n return _parent;\n }",
"public int Parent() { return this.Parent; }",
"public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }",
"public Foo getParent() {\n return parent;\n }",
"public String getParent() {\r\n return this.parent;\r\n }",
"@DISPID(1002) //= 0x3ea. The runtime will prefer the VTID if present\r\n @VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject parent();",
"@DISPID(1002) //= 0x3ea. The runtime will prefer the VTID if present\r\n @VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject parent();",
"@DISPID(1610743809) //= 0x60020001. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject parent();",
"public String getParent() {\r\n return parent;\r\n }",
"public String getParentName() {\n return getProperty(Property.PARENT_NAME);\n }",
"public String getParent() {\n return parent;\n }",
"public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }",
"public PropertySelector getParent() {\n return parent;\n }",
"TMNodeModelComposite getParent() {\n return parent;\n }",
"Spring getParent() {\n return parent;\n }",
"public Instance getParent() {\r\n \t\treturn parent;\r\n \t}",
"public ILexComponent getParent();",
"public IPSComponent peekParent();",
"public String getParentId() {\n return getProperty(Property.PARENT_ID);\n }",
"@VTID(7)\r\n void getParent();",
"final MenuContainer getParent_NoClientCode() {\n return parent;\n }",
"public CompositeObject getParent(\n )\n {return (parentLevel == null ? null : (CompositeObject)parentLevel.getCurrent());}",
"Object getParent();",
"UIComponent getParent();",
"public String getParentName() {\n return parentName;\n }",
"public String getParentName() {\n return parentName;\n }",
"public WidgetParent getParent() {\n return this.m_parent;\n }",
"public String getParentType() {\n return this.parentType;\n }",
"public int getParentID() {\n\t\treturn _parentID;\n\t}",
"public RMParentShape getParent() { return _parent; }",
"@JsProperty\n Element getParentElement();",
"public String getParentName() {\n\t\treturn parentName;\n\t}",
"public int getParentID() {\n\t\treturn parentID;\n\t}",
"@JsonProperty(\"parent\")\n @ApiModelProperty(value = \"The ID of the parent dialog node (if any).\")\n public String getParent() {\n return parent;\n }",
"public abstract Optional<TypeName> parent();",
"public IDirectory getParent() {\n return this.parent;\n }",
"public PafDimMember getParent() {\r\n\t\treturn parent;\r\n\t}",
"@DerivedProperty\n\tCtElement getParent() throws ParentNotInitializedException;",
"public Entity getParent() {\n return parent;\n }",
"protected Directory getParent() {\n return parent;\n }",
"public Integer getParentid() {\n\t\treturn parentid;\n\t}",
"@DISPID(-2147418104)\n @PropGet\n ms.html.IHTMLElement parentElement();",
"public VisualLexiconNode getParent() {\n \t\treturn parent;\n \t}",
"@NoProxy\n @NoWrap\n @NoDump\n public BwEvent getParent() {\n return parent;\n }",
"public com.vmware.converter.ManagedObjectReference getParentFolder() {\r\n return parentFolder;\r\n }",
"public XMLElement getParent()\n/* */ {\n/* 323 */ return this.parent;\n/* */ }",
"public Boolean getIsParent() {\n return isParent;\n }",
"public int getParentType() {\r\n return parent_type;\r\n }",
"public CUser getParent() {\n return this.parent;\n }",
"public Node getParent(){\n return parent;\n }",
"public Path getParent(\n ) {\n return this.parent;\n }",
"public CarrierShape parent()\n\t{\n\t\treturn parent;\n\t}",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"public PageTreeNode getParent() {\n return parent;\n }",
"public PartialSolution getParent() {\n return _parent;\n }",
"public Optional<Cause> getParent() {\n return this.parent;\n }",
"public String getParentLabel(){\n\t\treturn this.parentLabel;\n\t}",
"@DISPID(84)\r\n\t// = 0x54. The runtime will prefer the VTID if present\r\n\t@VTID(82)\r\n\tint parentID();",
"public E getParentEntity() {\n return parentEntity;\n }",
"public BinomialTree<KEY, ITEM> parent()\n\t{\n\t\treturn _parent;\n\t}",
"public IBuildObject getParent();",
"public Node getParent() {\n return parent;\n }",
"public Node getParent() {\n return parent;\n }",
"public int getParent_id() {\n return this.parent_id;\n }",
"public String getCodeParent() {\n\t\treturn codeParent;\n\t}",
"public String getParent() {\r\n return (String) getAttributeInternal(PARENT);\r\n }",
"public String getParentId() {\n return getParent() != null ? getParent().getId() : null;\n }",
"public PApplet getParent() {\n\t\treturn this.parent;\n\t}",
"public DrawingComposite getParent() {\n\t\treturn parent;\n\t}",
"public int getParent();",
"public Component getParentComponent() {\r\n\t\tif (parentComponent == null) {\r\n\t\t\tif (view != null)\r\n\t\t\t\tparentComponent = view.getComponent(parentComponentName);\r\n\t\t}\r\n\t\treturn parentComponent;\r\n\t}",
"public StructuredId getParent()\r\n {\r\n return parent;\r\n }",
"public Peak getParent() {\n\t\treturn parent;\n\t}",
"public long getParentCode() {\n return parentCode;\n }",
"public CoolBar getParent() {\n checkWidget();\n return parent;\n }",
"@XmlElement\n @Nullable\n public String getParentDocumentId() {\n return this.parentDocumentId;\n }",
"@DISPID(53)\r\n\t// = 0x35. The runtime will prefer the VTID if present\r\n\t@VTID(58)\r\n\tint parentID();",
"public ConversionHelper getParent()\n {\n return parent;\n }",
"@JsProperty\n Node getParentNode();",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"void setParent(IGLProperty parent);",
"public Folder getParentFolder() {\n\t\treturn parentFolder;\n\t}",
"public Parent getVista() {\n\t\treturn null;\n\t}",
"public java.lang.String getContainingParentType() {\n return containingParentType;\n }",
"public java.lang.String getContainingParentType() {\n return containingParentType;\n }",
"public Resource getParent()\n {\n if(parent == null)\n {\n if(parentId != -1)\n {\n try\n {\n parent = new ResourceRef(coral.getStore().getResource(parentId), coral);\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"corrupted data parent resource #\"+parentId+\n \" does not exist\", e);\n }\n }\n else\n {\n parent = new ResourceRef(null, coral);\n }\n }\n try\n {\n return parent.get();\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"in-memory data incosistency\", e);\n }\n }",
"public AccessibleElement getParent();"
] | [
"0.81647867",
"0.8093195",
"0.8093195",
"0.8093195",
"0.8093195",
"0.7820495",
"0.77545613",
"0.7717162",
"0.76970285",
"0.76970285",
"0.76970285",
"0.7685946",
"0.7662928",
"0.76436096",
"0.76198393",
"0.7584784",
"0.75643355",
"0.75643355",
"0.75573677",
"0.75491166",
"0.7538418",
"0.74877375",
"0.74044925",
"0.7373006",
"0.7361728",
"0.7349786",
"0.7325064",
"0.732315",
"0.73226464",
"0.7321795",
"0.73211634",
"0.731258",
"0.73045754",
"0.7273923",
"0.72556615",
"0.72489965",
"0.7244335",
"0.7204559",
"0.7195084",
"0.7169685",
"0.7149787",
"0.71439976",
"0.71375763",
"0.7132675",
"0.71289986",
"0.71169823",
"0.71021616",
"0.71010566",
"0.70960593",
"0.7090904",
"0.7078354",
"0.70763105",
"0.7068518",
"0.70547646",
"0.70439255",
"0.703666",
"0.7032314",
"0.7029912",
"0.70214105",
"0.70091873",
"0.6988117",
"0.6970216",
"0.6966667",
"0.6960149",
"0.6957195",
"0.6939978",
"0.69274384",
"0.6927079",
"0.6920402",
"0.6917498",
"0.69169825",
"0.69083303",
"0.68984944",
"0.68984944",
"0.68984836",
"0.6893869",
"0.6893287",
"0.6890835",
"0.6890446",
"0.68868685",
"0.68859386",
"0.6876731",
"0.68731153",
"0.68720824",
"0.6863158",
"0.6850675",
"0.68491036",
"0.68477386",
"0.6847068",
"0.6817064",
"0.6810185",
"0.6810185",
"0.6802115",
"0.6801635",
"0.67873853",
"0.67871404",
"0.6786261",
"0.67846376",
"0.6782967"
] | 0.81635064 | 1 |
Getter method for the COM property "Count" | @DISPID(118)
@PropGet
int getCount(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int count() {\n return this.count;\n }",
"public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}",
"public int count() {\r\n return count;\r\n }",
"public long count() {\n return this.count;\n }",
"public int count() {\n return count;\n }",
"public String getCount() {\r\n\t\treturn this.count;\r\n\t}",
"public int get_count();",
"public Long getCount() {\n return this.Count;\n }",
"public Integer getCount() {\n return this.count;\n }",
"public Long getElementCount();",
"public int count() {\n\t\treturn count;\n\t}",
"public synchronized int getCount()\n\t{\n\t\treturn count;\n\t}",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"public Integer getCount() {\n\t\treturn count;\n\t}",
"public Integer getCount() {\n\t\treturn count;\n\t}",
"int getPropertiesCount();",
"public Integer getCount() {\n return count;\n }",
"int getPropsCount();",
"public long getCount() {\n return count_;\n }",
"public long getCount() {\n return count_;\n }",
"public Integer getCount() {\n return count;\n }",
"public Integer getCount() {\n return count;\n }",
"public Integer getCount() {\n return count;\n }",
"public Integer getCount() {\n return count;\n }",
"public Integer getCount() {\n return count;\n }",
"public Integer getCount() {\n return count;\n }",
"public String get_count() {\n\t\treturn count;\n\t}",
"public long getCount() {\r\n return count;\r\n }",
"public long getCount()\n\t{\n\t\treturn count;\n\t}",
"public long count() { return count.get(); }",
"public Long getCount() {\r\n return count;\r\n }",
"public Long getCount() {\n return count;\n }",
"public long getCount() {\n return count.get();\n }",
"public long getCount() {\n return count;\n }",
"public long getCount() {\n return count;\n }",
"public int size() { return count; }",
"public int size()\r\n {\r\n return count;\r\n }",
"public int size()\n {\n return count;\n }",
"public int _count() {\n return _count(\"\");\n }",
"public int size() {\n return count;\n }",
"public synchronized int getCount () {\n int c = count;\n count = 0;\n return c;\n }",
"@DISPID(11) //= 0xb. The runtime will prefer the VTID if present\r\n @VTID(18)\r\n int count();",
"public static int size() \r\n\t{\r\n\t\treturn m_count;\r\n }",
"int getInCount();",
"public int size(){\n return count;\n }",
"protected long getObjectCount() {\r\n return objectCount;\r\n }",
"public long count() ;",
"@FameProperty(name = \"numberOfAccesses\", derived = true)\n public Number getNumberOfAccesses() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }",
"public long count() {\n\t\treturn 0;\n\t}",
"public long count() {\n\t\treturn 0;\n\t}",
"public int size() \n { \n return count; \n }",
"public long count() {\n/* 154 */ return this.count;\n/* */ }",
"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 synchronized int size() {\n return count;\n }",
"public double getLength() {\n return count;\n }",
"int getItemsCount();",
"int getItemsCount();",
"public final int size()\n {\n return m_count;\n }",
"public java.math.BigInteger getCount()\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(COUNT$8);\n if (target == null)\n {\n return null;\n }\n return target.getBigIntegerValue();\n }\n }",
"public int count() {\n\t\treturn sizeC;\n\t}",
"public int getCount() {\n\t\t\treturn this.count;\n\t\t}",
"public synchronized int getCount(){\n return count;\n }",
"public Integer getCounts() {\n return counts;\n }",
"public int getCompCount(){\n return this.compCount;\n }",
"public int size()\r\n\t{\r\n\t\treturn count;\r\n\t}",
"@XmlAttribute\r\n public Integer getCount() {\r\n return count;\r\n }",
"public final native int count()/*-{\r\n\treturn this.count;\r\n\t}-*/;",
"int getInfoCount();",
"int getInfoCount();",
"int getInfoCount();",
"public static int getCount() {\r\n\t\treturn count;\r\n\t}",
"public static int getCount() {\r\n\t\treturn count;\r\n\t}",
"public static int getCount() {\r\n\t\treturn count;\r\n\t}",
"public int count() {\n\treturn 1;\n}",
"public int count();",
"public int count();",
"public int count();",
"public int count();",
"public long getCount() {\n return counter.get();\n }",
"@Override\r\n\t\tpublic int count() {\n\t\t\treturn 0;\r\n\t\t}",
"public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}",
"int getListCount();",
"public int listAmount() {\n return count;\n }",
"public int currentCount () {\n return count;\n }",
"public native int getSectionCount() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\treturn jso.sectionCount;\n }-*/;",
"public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }",
"int getDataCount();",
"int getDataCount();",
"int getDataCount();",
"int getDataCount();",
"int getDataCount();",
"public int getCount() {\n\t\treturn channelCountMapper.getCount();\n\t}",
"Long getNumberOfElement();",
"@Override\r\n\tpublic long count() {\n\t\treturn 0;\r\n\t}",
"public int getCount() {\n\t\treturn this.count;\n\t}",
"public int getCount() {\n\t\treturn this.count;\n\t}",
"public int getTotalCount() {\n return totalCount;\n }",
"@FameProperty(name = \"numberOfExternalClients\", derived = true)\n public Number getNumberOfExternalClients() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }"
] | [
"0.7760873",
"0.7698569",
"0.76438224",
"0.7638866",
"0.7576626",
"0.75534564",
"0.7548377",
"0.7539355",
"0.7506115",
"0.7477958",
"0.7472004",
"0.7424812",
"0.7412964",
"0.7412243",
"0.7412243",
"0.7384795",
"0.73684853",
"0.7364266",
"0.7363984",
"0.7355528",
"0.7337945",
"0.7337945",
"0.7337945",
"0.7337945",
"0.7337945",
"0.7337945",
"0.7336341",
"0.73336583",
"0.7328954",
"0.7321126",
"0.72881424",
"0.72780234",
"0.72635597",
"0.7258857",
"0.7258857",
"0.7246016",
"0.7236435",
"0.72134274",
"0.7211307",
"0.72029966",
"0.720213",
"0.71634036",
"0.71142364",
"0.7112425",
"0.7100878",
"0.7098587",
"0.7097189",
"0.7059315",
"0.70453566",
"0.70453566",
"0.70419705",
"0.70359224",
"0.70119894",
"0.70119894",
"0.70119894",
"0.7009834",
"0.7006224",
"0.7006179",
"0.7006179",
"0.70040953",
"0.70001066",
"0.6983679",
"0.69803816",
"0.6972643",
"0.6966015",
"0.69609517",
"0.695795",
"0.6949709",
"0.69425035",
"0.69297177",
"0.69297177",
"0.69297177",
"0.69288236",
"0.69288236",
"0.69288236",
"0.6924145",
"0.6911057",
"0.6911057",
"0.6911057",
"0.6911057",
"0.6888752",
"0.68815714",
"0.686194",
"0.68591404",
"0.6855549",
"0.6834676",
"0.68158245",
"0.68156785",
"0.67966676",
"0.67966676",
"0.67966676",
"0.67966676",
"0.67966676",
"0.6794855",
"0.6793386",
"0.67930853",
"0.67870843",
"0.67870843",
"0.6784871",
"0.67847246"
] | 0.7425488 | 11 |
Getter method for the COM property "Item" | @DISPID(170)
@PropGet
excel.Window getItem(
java.lang.Object index); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getITEM() {\r\n return item;\r\n }",
"public CPRIMITIVEALTERNATIVES getItem()\n {\n return item;\n }",
"public Item getItem ()\n\t{\n\t\treturn item;\n\t}",
"public Item getItem() {\n\t\treturn this.item;\n\t}",
"public Item getItem() {\n\t\treturn this.item;\n\t}",
"public Item getItem() {\r\n\t\treturn this.item;\r\n\t}",
"public T getItem() {\n return item;\n }",
"public T getItem() {\r\n return item;\r\n }",
"public Item getItem() { \n return myItem;\n }",
"public T getItem() {\n\t\treturn item;\n\t}",
"public T getItem() {\n\t\treturn item;\n\t}",
"public Item getItem() {\n\t\treturn item;\n\t}",
"@Override\n public T getItemVO() {\n return this.itemVO;\n }",
"public java.lang.String getPO_ITEM() {\r\n return PO_ITEM;\r\n }",
"public SpItem getItem() {\n return _spItem;\n }",
"public Item getItem() {\n return item;\n }",
"public BoxItem.Info getItem() {\n return this.item;\n }",
"public RepositoryItem getItem() {\n\t\t\treturn item;\n\t\t}",
"public Item getItem() {\n return mItem;\n }",
"public String getItem() {\r\n\t\treturn item;\r\n\t}",
"ICpItem getCpItem();",
"public Item getItem() {\n return item;\n }",
"public Object get(String itemName);",
"public Item getData()\r\n\t{\r\n\t\treturn theItem;\r\n\t}",
"public ItemType getItem() {\n\t return this.item;\n\t}",
"public ItemType getItem() {\n\t return this.item;\n\t}",
"@VTID(8)\r\n @DefaultMethod\r\n office.DocumentProperty getItem(\r\n @MarshalAs(NativeType.VARIANT) java.lang.Object index,\r\n @LCID int lcid);",
"public ArrayOfItem getItem() {\r\n return localItem;\r\n }",
"protected ResourceReference getItem()\n\t{\n\t\treturn ITEM;\n\t}",
"public Item getItem() { return this; }",
"private String getPropertyValue() {\n return EmfPropertyHelper.getValue(itemPropertyDescriptor, eObject);\n }",
"public item getI() {\n return i;\n }",
"public jkt.hms.masters.business.MasStoreItem getItem () {\n\t\treturn item;\n\t}",
"public Item getItem(final String pItem){return this.aItemsList.getItem(pItem);}",
"public Item[] getItem() {\r\n return localItem;\r\n }",
"public InputStream getItemAsInputStream() {\r\n\t\treturn item;\r\n\t}",
"default V get() {\n V item = orElseNull();\n if ( item == null )\n throw new IllegalArgumentException(\"No item at the targeted position!\");\n return item;\n }",
"public String getItem() {\r\n return item;\r\n }",
"public Item get(int i) {\n return items[i];\n }",
"InventoryItem getInventoryItem();",
"public String getItemID() {\n\t return this.itemID;\n\t}",
"public java.util.List<? extends io.opencannabis.schema.commerce.OrderItem.ItemOrBuilder> \n getItemOrBuilderList() {\n return item_;\n }",
"public Item get(int i);",
"public int getItemID()\n {\n return itemID;\n }",
"@SuppressWarnings (\"rawtypes\") public java.util.List getItems(){\n return this.items;\n }",
"public java.lang.String getINVOICE_DOC_ITEM() {\r\n return INVOICE_DOC_ITEM;\r\n }",
"public FSItemProperties getItemProperties() {\n return itemProperties;\n }",
"public Item[] getItems()\n {\n return items;\n }",
"public CodeItem getCodeItem() {\n\t\treturn method.getCodeItem();\n\t}",
"@Override\n public int getItemType() {\n return ITEM_TYPE;\n }",
"public TypeHere get(int i) {\n return items[i];\n }",
"public java.util.List<java.lang.Integer>\n getItemList() {\n return item_;\n }",
"public XSSimpleType getItemType() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: laload \n // 1: aastore \n // 2: dadd \n // 3: imul \n // 4: lsub \n // 5: ldiv \n // 6: ladd \n // 7: aastore \n // 8: lsub \n // 9: ineg \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- ------------------------------------------\n // 0 10 0 this Lcom/sun/xml/xsom/impl/ListSimpleTypeImpl;\n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }",
"public StringItem getStringItem() {\n if (stringItem == null) {//GEN-END:|16-getter|0|16-preInit\n // write pre-init user code here\n stringItem = new StringItem(\"Hello\", \"Hello, World!\");//GEN-LINE:|16-getter|1|16-postInit\n // write post-init user code here\n }//GEN-BEGIN:|16-getter|2|\n return stringItem;\n }",
"public Item getItem() {\n return Bootstrap.getInstance().getItemRepository().fetchAll().stream()\n .filter(i -> i.getId() == this.itemId)\n .findFirst().orElse(null);\n }",
"public ItemStack getItem() {\n return this.item;\n }",
"public ItemStack getItem() {\r\n\t\treturn item;\r\n\t}",
"com.google.protobuf.ByteString getSerializedItem();",
"public UserItem getUserItem() {\n return userItem;\n }",
"public java.util.List<com.rpg.framework.database.Protocol.Item> getItemsList() {\n return items_;\n }",
"private static List<Item> getItems() {\n\t\treturn items;\n\t}",
"public String getItemValue() {\n return itemValue;\n }",
"public Object get(int index)\n {\n return items[index];\n }",
"public Item getItem() {\n Item item = new Item();\n item.setQuantidade(Integer.parseInt(txtQuantidade.getText()));\n item.setValor(Float.parseFloat(txtValor.getText()));\n item.setProduto((Produto)cmbProduto.getSelectedItem());\n \n return item;\n }",
"public CodeItem getCodeItem() {\n\t\treturn codeItem;\n\t}",
"public List<Item> getItems() {\n return items;\n }",
"public List<Item> getItems() {\n return items;\n }",
"CodeableConcept getItem();",
"public java.util.List<io.opencannabis.schema.commerce.OrderItem.Item> getItemList() {\n return item_;\n }",
"public Object getItem(int i)\n {\n return items.elementAt(i);\n }",
"public abstract String getListItem (Object obj, int i, String itemProp) \n throws SAFSException;",
"@Override\n\tpublic AbstractItem getObject() {\n\t\tif(item == null) {\n\t\t\titem = new HiTechItem();\n\t\t}\n\t\treturn item;\n\t}",
"public Integer getItemNo() {\n\t\treturn itemNo;\n\t}",
"public String getCOD_ITEM() {\n return COD_ITEM;\n }",
"public Integer getItemSeq() {\n return itemSeq;\n }",
"public int getMapItem() {\n\t\treturn mapItem;\n\t}",
"public List<Item> getItems() {\n\t\treturn this.items;\n\t}",
"public nl.webservices.www.soap.GCRItem[] getItems() {\n return items;\n }",
"public abstract Object getValue(Object itemInstance) throws\n InvocationTargetException, IllegalAccessException;",
"@Override\r\n\t\tpublic Item getItem() {\n\t\t\treturn null;\r\n\t\t}",
"public Integer getItemid() {\n return itemid;\n }",
"public Integer getItemid() {\n return itemid;\n }",
"public Item getItems() {\n return items;\n }",
"public List<Item> getValues() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an object.\");\n }",
"@Override\n public ServiceItem getServiceItem() {\n\tif (serviceItem instanceof ServiceItem){\n\t return ((ServiceItem) serviceItem).clone();\n\t} else if (serviceItem instanceof Item) {\n\t bootstrap = ((Item)serviceItem).getProxy();\n\t serviceItem = ((Item)serviceItem).get();\n\t return ((ServiceItem) serviceItem).clone();\n\t} \n\treturn null;\n }",
"@Override\n\tprotected DataTypes getDataType() {\n\t\treturn DataTypes.ITEM;\n\t}",
"@Accessor(qualifier = \"itemsExported\", type = Accessor.Type.GETTER)\n\tpublic Integer getItemsExported()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(ITEMSEXPORTED);\n\t}",
"public Object getItem(Node itemNode) throws XmlRecipeException;",
"public T item() throws IOException, NoSuchElementException;",
"@Override\n\tpublic CollectionItem getItem() {\n\t\treturn manga;\n\t}",
"public List<Item> getItems() {\n throw new OurBadException(\"Item '\" + this.serialize() + \"' is not an array.\");\n }",
"public Object getDataItem() {\n return this.dataItem;\n }",
"public Item[] getItems() {\n/* 3068 */ if (this.vitems != null) {\n/* 3069 */ return this.vitems.getAllItemsAsArray();\n/* */ }\n/* 3071 */ return emptyItems;\n/* */ }",
"public String getItemName()\n {\n return itemName;\n }",
"public Objects getObject(String itemName)\n {\n return items.get(itemName);\n }",
"public Item get(int i) {\n return items[i - 1];\n }",
"public StringItem getStringItem() {\n if (stringItem == null) {//GEN-END:|39-getter|0|39-preInit\n // write pre-init user code here\n stringItem = new StringItem(\"D\\u00E9placement du v\\u00E9hicule\", \"Appuyez sur OK lorsque le v\\u00E9hicule a retrouv\\u00E9 sa place\");//GEN-LINE:|39-getter|1|39-postInit\n // write post-init user code here\n }//GEN-BEGIN:|39-getter|2|\n return stringItem;\n }",
"public ArrayList<Item> getItems()\n {\n return items;\n }",
"@SuppressWarnings(\"unused\")\n public Item item(final QueryContext qc) throws QueryException, IOException {\n return super.item(qc, null);\n }",
"public ItemInfoDTO getItemInfo() {\n return itemInfo;\n }"
] | [
"0.7314571",
"0.7167436",
"0.71625954",
"0.7123579",
"0.7123579",
"0.70872104",
"0.7043054",
"0.703143",
"0.70130116",
"0.69807154",
"0.69807154",
"0.69585294",
"0.6926743",
"0.67975926",
"0.6785434",
"0.6775236",
"0.67496234",
"0.6747334",
"0.670463",
"0.67007244",
"0.67004067",
"0.6698864",
"0.6692594",
"0.6671638",
"0.6645696",
"0.6645696",
"0.66279924",
"0.6595567",
"0.6592004",
"0.6544482",
"0.65325284",
"0.6526579",
"0.6493142",
"0.6460788",
"0.6450441",
"0.644753",
"0.64440817",
"0.642539",
"0.6398567",
"0.63541985",
"0.6348227",
"0.6345806",
"0.63178784",
"0.62774944",
"0.6265804",
"0.62009895",
"0.61878717",
"0.6185808",
"0.6177769",
"0.61709875",
"0.6154627",
"0.61331224",
"0.6122212",
"0.6099212",
"0.60945183",
"0.6069746",
"0.60684335",
"0.6064533",
"0.6056794",
"0.60460615",
"0.604482",
"0.6040198",
"0.6037032",
"0.603143",
"0.6026615",
"0.6022659",
"0.6022659",
"0.6020498",
"0.6014413",
"0.60130674",
"0.60078555",
"0.6004823",
"0.5983516",
"0.5983196",
"0.5982773",
"0.59788996",
"0.59730446",
"0.59716976",
"0.5970494",
"0.5965525",
"0.5964843",
"0.5964843",
"0.59553134",
"0.5950003",
"0.5944944",
"0.59320134",
"0.5929952",
"0.5923296",
"0.5898823",
"0.58932954",
"0.5892573",
"0.5884439",
"0.5878456",
"0.5875793",
"0.5871435",
"0.5844599",
"0.5832645",
"0.583152",
"0.58228403",
"0.58223647"
] | 0.6082615 | 55 |
Getter method for the COM property "_NewEnum" | @DISPID(-4)
@PropGet
java.util.Iterator<Com4jObject> iterator(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EEnum createEEnum();",
"EnumValue createEnumValue();",
"EnumValue createEnumValue();",
"EnumValue createEnumValue();",
"EnumRef createEnumRef();",
"Enumeration createEnumeration();",
"public CustomMof14EnumLiteral createCustomMof14EnumLiteral();",
"com.yahoo.xpathproto.TransformTestProtos.MessageEnum getEnumValue();",
"EnumListValue createEnumListValue();",
"EnumConstant createEnumConstant();",
"EEnumLiteral createEEnumLiteral();",
"public interface CustomMof14EnumLiteralClass extends javax.jmi.reflect.RefClass {\n /**\n * The default factory operation used to create an instance object.\n * @return The created instance object.\n */\n public CustomMof14EnumLiteral createCustomMof14EnumLiteral();\n}",
"public IotaEnum getIotaEnum() {\n return _iotaEnum ;\n }",
"EnumTypeDefinition createEnumTypeDefinition();",
"EnumValueDefinition createEnumValueDefinition();",
"public com.yahoo.xpathproto.TransformTestProtos.MessageEnum getEnumValue() {\n return enumValue_;\n }",
"public String getEnum() {\n if (model == null)\n return strEnum;\n return model.getEnum();\n }",
"protected EnumSyntax[] getEnumValueTable() {\n/* 206 */ return (EnumSyntax[])myEnumValueTable;\n/* */ }",
"public com.yahoo.xpathproto.TransformTestProtos.MessageEnum getEnumValue() {\n return enumValue_;\n }",
"public List<Object> getEnum() {\n\t\treturn enumField;\n\t}",
"public EnumBase realResultEnum() {\n return realResultEnum;\r\n }",
"protected String getEnumeration()\n {\n return enumeration;\n }",
"Enum getType();",
"EnumLiteralExp createEnumLiteralExp();",
"public interface LMCPEnum {\n\n public long getSeriesNameAsLong();\n\n public String getSeriesName();\n\n public int getSeriesVersion();\n\n public String getName(long type);\n\n public long getType(String name);\n\n public LMCPObject getInstance(long type);\n\n public java.util.Collection<String> getAllTypes();\n}",
"public String getElement()\n {\n return \"enum\";\n }",
"public Integer[] enumProperty() {\n return null;\n }",
"Rule EnumValue() {\n return Sequence(\n Identifier(),\n Optional(EnumConst()),\n Optional(ListSeparator()),\n WhiteSpace(),\n actions.pushEnumValueNode());\n }",
"gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value.Enum getValue();",
"EnumTypeRule createEnumTypeRule();",
"public static EnumDomain createEnumDomain() {\n\t\treturn new EnumDomain(new String[]{\"1\", \"2\", \"3\"});\n\t}",
"com.unitedtote.schema.totelink._2008._06.program.ExchangeWagers.Enum getExchange();",
"EnumOperationType getOperationType();",
"public int getNewProperty_descriptionType(){\n return localNewProperty_descriptionType;\n }",
"public Class<? extends Enum<?>> getEnumClass() {\n\t\treturn enumClass;\n\t}",
"public String createEnumSchemaType(EnumSchemaTypeProperties schemaTypeProperties,\n String validValuesSetGUID) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException\n {\n if (apiManagerIsHome)\n {\n return apiManagerClient.createEnumSchemaType(userId, apiManagerGUID, apiManagerName, schemaTypeProperties, validValuesSetGUID);\n }\n else\n {\n return apiManagerClient.createEnumSchemaType(userId, null, null, schemaTypeProperties, validValuesSetGUID);\n }\n }",
"public EnumPositioner getLensEnum() {\n\t\treturn lensEnum;\n\t}",
"java.util.List<resources.java.Complex.ComplexMessage.SimpleEnum> getSimpleEnumFieldList();",
"public ServicesFormatEnum(){\n super();\n }",
"public SideEnumElements getSideEnumAccess() {\r\n\t\treturn eSideEnum;\r\n\t}",
"@Test\n\tpublic void testNewEnumFromAction() throws Exception {\n\t\t// This test works differently that the others in that it uses the same path as the\n\t\t// GUI action to start the editing process.\n\t\t//\n\t\tDataTypeManager dtm = program.getListing().getDataTypeManager();\n\t\tfinal Category c = dtm.getCategory(new CategoryPath(CategoryPath.ROOT, \"Category1\"));\n\t\tfinal DataTypeEditorManager editorManager = plugin.getEditorManager();\n\n\t\trunSwing(() -> editorManager.createNewEnum(c));\n\t\twaitForSwing();\n\n\t\tfinal EnumEditorPanel panel = findEditorPanel(tool.getToolFrame());\n\t\tJTable table = panel.getTable();\n\t\tEnumTableModel model = (EnumTableModel) table.getModel();\n\n\t\taddEntry(table, model, \"Purple\", 7);\n\t\tsetEditorEnumName(panel, \"Test.\" + testName.getMethodName());\n\n\t\tapply();\n\t}",
"<C, EL> EnumLiteralExp<C, EL> createEnumLiteralExp();",
"boolean addEnum(EnumDefinition evd) throws ResultException, DmcValueException {\n// if (checkAndAdd(evd.getObjectName(),evd,enumDefs) == false){\n// \tResultException ex = new ResultException();\n// \tex.addError(clashMsg(evd.getObjectName(),evd,enumDefs,\"enum value names\"));\n// throw(ex);\n// }\n \n \tenumDefinitions.add(evd);\n \n if (checkAndAddDOT(evd.getDotName(),evd,globallyUniqueMAP,null) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(evd.getObjectName(),evd,globallyUniqueMAP,\"definition names\"));\n \tthrow(ex);\n }\n\n // Things get a little tricky here - although EnumDefinitions are enums, they get\n // turned into internally generated TypeDefinitions, so we don't add them to the\n // allDefs map as EnumDefinitions.\n TypeDefinition td = new TypeDefinition();\n td.setInternallyGenerated(true);\n td.setName(evd.getName());\n \n // The name of an enum definition is schema.enum.EnumDefinition\n // For the associated type, it will be schema.enum.TypeDefinition\n DotName typeName = new DotName((DotName) evd.getDotName().getParentName(),\"TypeDefinition\");\n// DotName nameAndTypeName = new DotName(td.getName() + \".TypeDefinition\");\n td.setDotName(typeName);\n// td.setNameAndTypeName(nameAndTypeName);\n\n td.setEnumName(evd.getName().getNameString());\n td.addDescription(\"This is an internally generated type to allow references to \" + evd.getName() + \" values.\");\n td.setIsEnumType(true);\n td.setTypeClassName(evd.getDefinedIn().getSchemaPackage() + \".generated.types.DmcType\" + evd.getName());\n td.setPrimitiveType(evd.getDefinedIn().getSchemaPackage() + \".generated.enums.\" + evd.getName());\n td.setDefinedIn(evd.getDefinedIn());\n \n // Issue 4 fix\n if (evd.getNullReturnValue() != null)\n \ttd.setNullReturnValue(evd.getNullReturnValue());\n \n internalTypeDefs.put(td.getName(), td);\n \n // We add the new type to the schema's list of internally generated types\n evd.getDefinedIn().addInternalTypeDefList(td);\n \n // Add the type\n addType(td);\n\n if (evd.getObjectName().getNameString().length() > longestEnumName)\n longestActionName = evd.getObjectName().getNameString().length();\n \n if (extensions.size() > 0){\n \tfor(SchemaExtensionIF ext : extensions.values()){\n \t\text.addEnum(evd);\n \t}\n }\n\n return(true);\n }",
"public int getNewObjectType() {\r\n return newObjectType;\r\n }",
"public E output(int i) {\n return EnumMultiset.this.enumConstants[i];\n }",
"@Accessor(qualifier = \"converterClass\", type = Accessor.Type.GETTER)\n\tpublic ExportConverterEnum getConverterClass()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CONVERTERCLASS);\n\t}",
"public interface CodeEnum {\n\n Integer getCode();\n}",
"public interface CodeEnum {\n Integer getCode();\n}",
"CommandEnum() {}",
"public abstract Enum<?> getType();",
"public KeyEnum getKeyEnum() {\n return this.key;\n }",
"@Test\n\tpublic void testEditExistingEnum2() throws Exception {\n\n\t\tEnum enummDt = createRedGreenBlueEnum();\n\t\tedit(enummDt);\n\n\t\tEnumEditorPanel panel = findEditorPanel(tool.getToolFrame());\n\t\tfinal JTable table = panel.getTable();\n\t\tfinal EnumTableModel model = (EnumTableModel) table.getModel();\n\t\taddEntry(table, model, \"Purple\", 7);\n\n\t\tapply();\n\n\t\tCategory cat =\n\t\t\tprogram.getListing().getDataTypeManager().getCategory(enummDt.getCategoryPath());\n\t\tEnum en = (Enum) cat.getDataType(\"Colors\");\n\t\tString[] names = en.getNames();\n\t\tassertEquals(4, names.length);\n\t\tassertEquals(7, en.getValue(\"Purple\"));\n\t}",
"public void testGetEnumValue() {\r\n\r\n TestEnum result = ReflectionUtils.getEnumValue(TestEnum.class, \"VALUE1\");\r\n assertSame(TestEnum.VALUE1, result);\r\n }",
"public BoundCodeDt<PropertyRepresentationEnum> addRepresentation() {\n\t\tBoundCodeDt<PropertyRepresentationEnum> retVal = new BoundCodeDt<PropertyRepresentationEnum>(PropertyRepresentationEnum.VALUESET_BINDER);\n\t\tgetRepresentation().add(retVal);\n\t\treturn retVal;\n\t}",
"public Registry registerEnum(EnumIO<?> eio, int id);",
"public EnumTypeOperation getTypeOperation() {\r\n return TypeOperation;\r\n }",
"public TypeEnum getType() {\n return type;\n }",
"public int getNewValues_descriptionType(){\n return localNewValues_descriptionType;\n }",
"public interface CodeEnum {\n int getCode();\n}",
"@DISPID(201)\r\n public void enumDone() {\r\n throw new UnsupportedOperationException();\r\n }",
"public Enum getType() {\n return type;\n }",
"EnumType(String p_i45705_1_, int p_i45705_2_, int p_i45705_3_, String p_i45705_4_, String p_i45705_5_) {\n/* */ this.field_176893_h = p_i45705_3_;\n/* */ this.field_176894_i = p_i45705_4_;\n/* */ this.field_176891_j = p_i45705_5_;\n/* */ }",
"public Enum() \n { \n set(\"\");\n }",
"int enumField(String name, boolean isDefined, int value,\n GPSEnumDefinition definition) throws NullField, InvalidFieldValue;",
"public static /* synthetic */ AbstractC32300b m149290b(EnumC32301c cVar, AbstractC32239o oVar) {\n return new C32299a(cVar, oVar);\n }",
"public interface BaseEnum {\n\n int getStatus();\n\n String getDesc();\n}",
"private LanguagesEnum(Integer languagesEnumValue)\r\n\t{\r\n\r\n\t\tlanguagesEnum = languagesEnumValue;\r\n\r\n\t}",
"public EnumConstantRenamer(IManagedTypeProvider managedTypeProvider,\n\t\t String oldEnumConstant,\n\t\t String newEnumConstant) {\n\n\t\t\tsuper();\n\t\t\tthis.oldEnumConstant = oldEnumConstant;\n\t\t\tthis.newEnumConstant = newEnumConstant;\n\t\t\tthis.managedTypeProvider = managedTypeProvider;\n\t\t}",
"public BoundCodeDt<DataTypeEnum> getCodeElement() { \n\t\tif (myCode == null) {\n\t\t\tmyCode = new BoundCodeDt<DataTypeEnum>(DataTypeEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myCode;\n\t}",
"public EnumC0282a mo3772G() {\n return this.f1428C[0];\n }",
"@Override\n public final Integer constTypeCode() {\n return this.manufacture.constTypeCode();\n }",
"public static com.fasterxml.jackson.core.type.TypeReference<LocalizedEnumField> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<LocalizedEnumField>() {\n @Override\n public String toString() {\n return \"TypeReference<LocalizedEnumField>\";\n }\n };\n }",
"private C getColumnEnum( final Class<C> enumClass, final int index ) { return enumClass.cast( fColumnEnums[ index ] ); }",
"@Override\n\tpublic <T extends Enum<T>> T getAsEnum(final String key, final Class<T> eClass)\n\t{\n\t\treturn this.getEnumImpl(key, eClass, (T)null);\n\t}",
"public static EnumType func_176879_a(int p_176879_0_) {\n/* */ if (p_176879_0_ < 0 || p_176879_0_ >= field_176885_g.length) {\n/* */ p_176879_0_ = 0;\n/* */ }\n/* */ return field_176885_g[p_176879_0_];\n/* */ }",
"@Test\r\n public void test2(){\n colorEnum = Color.GREEN;\r\n System.out.println(colorEnum);\r\n System.out.println(colorEnum.name());\r\n System.out.println(colorEnum.ordinal());\r\n System.out.println(colorEnum.toString());\r\n Color[] values = Color.values();\r\n System.out.println(Arrays.toString(values));\r\n }",
"@javax.annotation.Nullable\n public TypeEnum getType() {\n return type;\n }",
"public interface CodeEnum {\n Integer getCode();\n\n String getMeaning();\n}",
"public static Enum forInt(int i)\r\n { return (Enum)table.forInt(i); }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.NullableBoolean.Enum getCapitalInKind();",
"@SuppressWarnings(\"unchecked\")\r\n public EnumByteConverter(final String theEnumType) {\r\n super((Class<E>) SystemUtils.forName(theEnumType));\r\n constants = init();\r\n }",
"private FileImport_RunImporter_PauseProcessing_Current_Type_ID_Enum( int v) {\n value = v;\n }",
"boolean hasEnumValue();",
"public int getOldProperty_descriptionType(){\n return localOldProperty_descriptionType;\n }",
"CommandEnum(String commandEnum) {\n this.label = commandEnum;\n }",
"public EnumVar getStatus() {\n return status;\n }",
"public Enum(String val) \n { \n set(val);\n }",
"public EVT_VARIANT() {\n/* 220 */ super(W32APITypeMapper.DEFAULT);\n/* */ }",
"public sym_complex_enum() {\n }",
"public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }",
"public EnumValueConverter() {\n }",
"public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }",
"public interface GI\n{\n public static final class CONNSTATUS extends Enum\n {\n\n private static final CONNSTATUS $VALUES[];\n public static final CONNSTATUS CONNECTING;\n public static final CONNSTATUS OFFLINE;\n public static final CONNSTATUS ONLINE;\n public static final CONNSTATUS PAUSING;\n public static final CONNSTATUS WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static CONNSTATUS fromInt(int i)\n {\n CONNSTATUS connstatus = (CONNSTATUS)intToTypeMap.a(i);\n if (connstatus != null)\n {\n return connstatus;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static CONNSTATUS valueOf(String s)\n {\n return (CONNSTATUS)Enum.valueOf(com/skype/GI$CONNSTATUS, s);\n }\n\n public static CONNSTATUS[] values()\n {\n return (CONNSTATUS[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n OFFLINE = new CONNSTATUS(\"OFFLINE\", 0, 0);\n CONNECTING = new CONNSTATUS(\"CONNECTING\", 1, 1);\n PAUSING = new CONNSTATUS(\"PAUSING\", 2, 2);\n ONLINE = new CONNSTATUS(\"ONLINE\", 3, 3);\n WRAPPER_UNKNOWN_VALUE = new CONNSTATUS(\"WRAPPER_UNKNOWN_VALUE\", 4, 0x7fffffff);\n $VALUES = (new CONNSTATUS[] {\n OFFLINE, CONNECTING, PAUSING, ONLINE, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n CONNSTATUS aconnstatus[] = values();\n int k = aconnstatus.length;\n for (int i = 0; i < k; i++)\n {\n CONNSTATUS connstatus = aconnstatus[i];\n intToTypeMap.a(connstatus.value, connstatus);\n }\n\n }\n\n private CONNSTATUS(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static final class FILEERROR extends Enum\n {\n\n private static final FILEERROR $VALUES[];\n public static final FILEERROR CREATE_ERROR;\n public static final FILEERROR DISK_FULL;\n public static final FILEERROR NO_FILEERROR;\n public static final FILEERROR OPEN_ERROR;\n public static final FILEERROR READ_ERROR;\n public static final FILEERROR WRAPPER_UNKNOWN_VALUE;\n public static final FILEERROR WRITE_ERROR;\n private static final j intToTypeMap;\n private final int value;\n\n public static FILEERROR fromInt(int i)\n {\n FILEERROR fileerror = (FILEERROR)intToTypeMap.a(i);\n if (fileerror != null)\n {\n return fileerror;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static FILEERROR valueOf(String s)\n {\n return (FILEERROR)Enum.valueOf(com/skype/GI$FILEERROR, s);\n }\n\n public static FILEERROR[] values()\n {\n return (FILEERROR[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n NO_FILEERROR = new FILEERROR(\"NO_FILEERROR\", 0, 0);\n DISK_FULL = new FILEERROR(\"DISK_FULL\", 1, 1);\n CREATE_ERROR = new FILEERROR(\"CREATE_ERROR\", 2, 2);\n OPEN_ERROR = new FILEERROR(\"OPEN_ERROR\", 3, 3);\n READ_ERROR = new FILEERROR(\"READ_ERROR\", 4, 4);\n WRITE_ERROR = new FILEERROR(\"WRITE_ERROR\", 5, 5);\n WRAPPER_UNKNOWN_VALUE = new FILEERROR(\"WRAPPER_UNKNOWN_VALUE\", 6, 0x7fffffff);\n $VALUES = (new FILEERROR[] {\n NO_FILEERROR, DISK_FULL, CREATE_ERROR, OPEN_ERROR, READ_ERROR, WRITE_ERROR, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n FILEERROR afileerror[] = values();\n int k = afileerror.length;\n for (int i = 0; i < k; i++)\n {\n FILEERROR fileerror = afileerror[i];\n intToTypeMap.a(fileerror.value, fileerror);\n }\n\n }\n\n private FILEERROR(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static interface GIIListener\n {\n\n public abstract void onConnStatusChange(GI gi, CONNSTATUS connstatus);\n\n public abstract void onFileError(GI gi, FILEERROR fileerror);\n\n public abstract void onLibStatusChange(GI gi, LIBSTATUS libstatus);\n\n public abstract void onNodeinfoChange(GI gi, byte abyte0[]);\n\n public abstract void onProxyAuthenticationFailure(GI gi, PROXYTYPE proxytype);\n }\n\n public static class GetLastFileError_Result\n {\n\n public String m_filename;\n public int m_lowlevelCode;\n public FILEERROR m_return;\n\n public void init(int i, byte abyte0[], FILEERROR fileerror)\n {\n m_lowlevelCode = i;\n m_filename = NativeStringConvert.ConvertFromNativeBytes(abyte0);\n m_return = fileerror;\n }\n\n public GetLastFileError_Result()\n {\n }\n }\n\n public static final class LIBSTATUS extends Enum\n {\n\n private static final LIBSTATUS $VALUES[];\n public static final LIBSTATUS CONSTRUCTED;\n public static final LIBSTATUS FATAL_ERROR;\n public static final LIBSTATUS RUNNING;\n public static final LIBSTATUS STARTING;\n public static final LIBSTATUS STOPPED;\n public static final LIBSTATUS STOPPING;\n public static final LIBSTATUS WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static LIBSTATUS fromInt(int i)\n {\n LIBSTATUS libstatus = (LIBSTATUS)intToTypeMap.a(i);\n if (libstatus != null)\n {\n return libstatus;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static LIBSTATUS valueOf(String s)\n {\n return (LIBSTATUS)Enum.valueOf(com/skype/GI$LIBSTATUS, s);\n }\n\n public static LIBSTATUS[] values()\n {\n return (LIBSTATUS[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n CONSTRUCTED = new LIBSTATUS(\"CONSTRUCTED\", 0, 0);\n STARTING = new LIBSTATUS(\"STARTING\", 1, 1);\n RUNNING = new LIBSTATUS(\"RUNNING\", 2, 2);\n STOPPING = new LIBSTATUS(\"STOPPING\", 3, 3);\n STOPPED = new LIBSTATUS(\"STOPPED\", 4, 4);\n FATAL_ERROR = new LIBSTATUS(\"FATAL_ERROR\", 5, 5);\n WRAPPER_UNKNOWN_VALUE = new LIBSTATUS(\"WRAPPER_UNKNOWN_VALUE\", 6, 0x7fffffff);\n $VALUES = (new LIBSTATUS[] {\n CONSTRUCTED, STARTING, RUNNING, STOPPING, STOPPED, FATAL_ERROR, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n LIBSTATUS alibstatus[] = values();\n int k = alibstatus.length;\n for (int i = 0; i < k; i++)\n {\n LIBSTATUS libstatus = alibstatus[i];\n intToTypeMap.a(libstatus.value, libstatus);\n }\n\n }\n\n private LIBSTATUS(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static final class NETWORKACTIVITYLEVEL extends Enum\n {\n\n private static final NETWORKACTIVITYLEVEL $VALUES[];\n public static final NETWORKACTIVITYLEVEL NAL_FIRST_QUIET_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_LAST_LEVEL_DONT_USE;\n public static final NETWORKACTIVITYLEVEL NAL_NORMAL_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_QUIET_SUSPENDED_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_QUIET_SUSPENDED_OFFLINE_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_QUIET_WITH_NETWORK_LEVEL;\n public static final NETWORKACTIVITYLEVEL WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static NETWORKACTIVITYLEVEL fromInt(int i)\n {\n NETWORKACTIVITYLEVEL networkactivitylevel = (NETWORKACTIVITYLEVEL)intToTypeMap.a(i);\n if (networkactivitylevel != null)\n {\n return networkactivitylevel;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static NETWORKACTIVITYLEVEL valueOf(String s)\n {\n return (NETWORKACTIVITYLEVEL)Enum.valueOf(com/skype/GI$NETWORKACTIVITYLEVEL, s);\n }\n\n public static NETWORKACTIVITYLEVEL[] values()\n {\n return (NETWORKACTIVITYLEVEL[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n NAL_NORMAL_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_NORMAL_LEVEL\", 0, 3);\n NAL_FIRST_QUIET_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_FIRST_QUIET_LEVEL\", 1, 7);\n NAL_QUIET_WITH_NETWORK_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_QUIET_WITH_NETWORK_LEVEL\", 2, 7);\n NAL_QUIET_SUSPENDED_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_QUIET_SUSPENDED_LEVEL\", 3, 8);\n NAL_QUIET_SUSPENDED_OFFLINE_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_QUIET_SUSPENDED_OFFLINE_LEVEL\", 4, 9);\n NAL_LAST_LEVEL_DONT_USE = new NETWORKACTIVITYLEVEL(\"NAL_LAST_LEVEL_DONT_USE\", 5, 10);\n WRAPPER_UNKNOWN_VALUE = new NETWORKACTIVITYLEVEL(\"WRAPPER_UNKNOWN_VALUE\", 6, 0x7fffffff);\n $VALUES = (new NETWORKACTIVITYLEVEL[] {\n NAL_NORMAL_LEVEL, NAL_FIRST_QUIET_LEVEL, NAL_QUIET_WITH_NETWORK_LEVEL, NAL_QUIET_SUSPENDED_LEVEL, NAL_QUIET_SUSPENDED_OFFLINE_LEVEL, NAL_LAST_LEVEL_DONT_USE, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n NETWORKACTIVITYLEVEL anetworkactivitylevel[] = values();\n int k = anetworkactivitylevel.length;\n for (int i = 0; i < k; i++)\n {\n NETWORKACTIVITYLEVEL networkactivitylevel = anetworkactivitylevel[i];\n intToTypeMap.a(networkactivitylevel.value, networkactivitylevel);\n }\n\n }\n\n private NETWORKACTIVITYLEVEL(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static final class PROXYTYPE extends Enum\n {\n\n private static final PROXYTYPE $VALUES[];\n public static final PROXYTYPE HTTPS_PROXY;\n public static final PROXYTYPE SOCKS_PROXY;\n public static final PROXYTYPE WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static PROXYTYPE fromInt(int i)\n {\n PROXYTYPE proxytype = (PROXYTYPE)intToTypeMap.a(i);\n if (proxytype != null)\n {\n return proxytype;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static PROXYTYPE valueOf(String s)\n {\n return (PROXYTYPE)Enum.valueOf(com/skype/GI$PROXYTYPE, s);\n }\n\n public static PROXYTYPE[] values()\n {\n return (PROXYTYPE[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n HTTPS_PROXY = new PROXYTYPE(\"HTTPS_PROXY\", 0, 0);\n SOCKS_PROXY = new PROXYTYPE(\"SOCKS_PROXY\", 1, 1);\n WRAPPER_UNKNOWN_VALUE = new PROXYTYPE(\"WRAPPER_UNKNOWN_VALUE\", 2, 0x7fffffff);\n $VALUES = (new PROXYTYPE[] {\n HTTPS_PROXY, SOCKS_PROXY, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n PROXYTYPE aproxytype[] = values();\n int k = aproxytype.length;\n for (int i = 0; i < k; i++)\n {\n PROXYTYPE proxytype = aproxytype[i];\n intToTypeMap.a(proxytype.value, proxytype);\n }\n\n }\n\n private PROXYTYPE(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n\n public abstract void addListener(GIIListener giilistener);\n\n public abstract void connect();\n\n public abstract void disconnect();\n\n public abstract CONNSTATUS getConnStatus();\n\n public abstract String getDebugInfo();\n\n public abstract String getFatalErrorMessage();\n\n public abstract GetLastFileError_Result getLastFileError();\n\n public abstract LIBSTATUS getLibStatus();\n\n public abstract Setup getSetup();\n\n public abstract int getUsedPort();\n\n public abstract void log(String s, String s1);\n\n public abstract void pollEvents();\n\n public abstract void pollEvents(int i);\n\n public abstract void removeListener(GIIListener giilistener);\n\n public abstract void setDefaultPeers(String s);\n\n public abstract void setSystemID(long l);\n}",
"public interface IEnumResponseCode {\n\t/**\n\t * Returns the code of a response message\n\t * @return {@link String}\n\t */\n\tpublic String getCode();\n\t\n\t/**\n\t * Returns the description of a response message\n\t * @return {@link String}\n\t */\n\tpublic String getDescription();\n\t\n}",
"public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }",
"public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }",
"public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }",
"E[] getCachedEnumValues();",
"public String getColorNew() {\n return (String) getAttributeInternal(COLORNEW);\n }",
"public void testEnum() {\n assertNotNull(MazeCell.valueOf(MazeCell.UNEXPLORED.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.INVALID_CELL.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.CURRENT_PATH.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.FAILED_PATH.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.WALL.toString()));\n }",
"public List<Enum<?>> enums()\n/* */ {\n/* 92 */ return Arrays.asList(this._values);\n/* */ }"
] | [
"0.70367163",
"0.69228035",
"0.69228035",
"0.69228035",
"0.6904441",
"0.65240157",
"0.6448158",
"0.6440096",
"0.63586366",
"0.6355425",
"0.6351827",
"0.62240094",
"0.6132635",
"0.6122841",
"0.60424894",
"0.60292745",
"0.6028704",
"0.6020579",
"0.5988966",
"0.5940615",
"0.5922953",
"0.59183997",
"0.5853792",
"0.5850879",
"0.5721268",
"0.5687831",
"0.5623606",
"0.56055254",
"0.5594806",
"0.5586947",
"0.55689955",
"0.55665165",
"0.55469465",
"0.55028903",
"0.5495951",
"0.54677993",
"0.5466625",
"0.5459035",
"0.5455296",
"0.54550785",
"0.54159826",
"0.54073685",
"0.5401863",
"0.5393396",
"0.53897095",
"0.5367029",
"0.5356637",
"0.5354974",
"0.5349325",
"0.53410655",
"0.53128517",
"0.5300517",
"0.5298625",
"0.52890706",
"0.52860737",
"0.5284649",
"0.528437",
"0.52760214",
"0.5274699",
"0.52648324",
"0.5263662",
"0.5263137",
"0.5259025",
"0.52535117",
"0.52472657",
"0.52458256",
"0.5234832",
"0.5223293",
"0.5221442",
"0.52203125",
"0.5192615",
"0.5182207",
"0.5182201",
"0.51663005",
"0.5151983",
"0.51471144",
"0.5144092",
"0.514123",
"0.51358867",
"0.5135693",
"0.5132938",
"0.5129259",
"0.51285106",
"0.51182497",
"0.51182",
"0.51144207",
"0.510933",
"0.5099054",
"0.50937045",
"0.50922036",
"0.5091409",
"0.5082035",
"0.50795317",
"0.50728726",
"0.507112",
"0.507112",
"0.507112",
"0.50564635",
"0.5051425",
"0.5039979",
"0.50368136"
] | 0.0 | -1 |
Getter method for the COM property "_Default" | @DISPID(0)
@PropGet
@DefaultMethod
excel.Window get_Default(
java.lang.Object index); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDefault(){\n return _default;\n }",
"public String getDefault();",
"public Object getDefault() {\n\t\treturn defaultField;\n\t}",
"public Type getDefault()\n\t{\n\t\treturn m_default;\n\t}",
"public Object getDefaultValue();",
"public Object getDefaultValue();",
"public IDatatype getDefaultValue() { \n\t\treturn myDefaultValue;\n\t}",
"public String getDefaultValue() {\n return type.getDefaultValue();\n }",
"public String getDefaultValue () {\n return defaultValue;\n }",
"public String getDefaultValue() {\n return defaultValue;\n }",
"static public Object getDefaultObject () {\n return defaultObject;\n }",
"public String getDefaultValue() {\n return defaultValue;\n }",
"public String getDefaultValue() {\n return m_defaultValue;\n }",
"public String getDefaultValue() {\n return this.defaultValue;\n }",
"String getDefaultValue();",
"String getDefaultValue();",
"public String getDefaultValue() {\n\t\t\treturn null;\r\n\t\t}",
"public String getDefaultValue() {\n\t\t\treturn null;\r\n\t\t}",
"public String getDefaultValue() {\n\t\t\treturn this.defaultValue;\n\t\t}",
"public String getDefaultName()\r\n {\r\n System.out.println(\"returning default name: \" + m_default );\r\n return m_default;\r\n }",
"public String getmDefaultName() {\n return mDefaultName;\n }",
"public SimpleBooleanProperty getUseDefault() {\n return useDefault;\n }",
"public Type getDefault() {\n if (!loaded) loadPanic();\n return defaultValue;\n }",
"static public String getDefaultString () {\n return defaultString;\n }",
"public Integer getDefaultNumber() {\n return defaultNumber;\n }",
"public boolean isDefault() {\n return m_Default;\n }",
"public Integer getIsDefault() {\n return isDefault;\n }",
"public Integer getIsDefault() {\n return isDefault;\n }",
"@Doc(\"The value to use if the variable is accessed when it has never been set.\")\n\t@BindNamedArgument(\"default\")\n\tpublic Double getDefaultValue() {\n\t\treturn defaultValue;\n\t}",
"public boolean isDefault() {\n return _default;\n }",
"@Override\n\tpublic ISpecies getDefault() {\n\t\treturn null;\n\t}",
"public T getDefaultValue() {\n return defaultValue.orNull();\n }",
"public Boolean get_is_default()\r\n\t{\r\n\t\treturn this.is_default;\r\n\t}",
"public @NotNull T getDefaultValue() {\n return defaultValue;\n }",
"@java.lang.Override\n public com.google.protobuf.Value getDefaultValue() {\n return defaultValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : defaultValue_;\n }",
"@JSProperty\n String getDefaultValue();",
"public double getDefaultValue() {\n return defaultValue;\n }",
"public Byte getIsDefault() {\n return (Byte) get(3);\n }",
"@VTID(12)\n @DefaultMethod\n @UseDefaultValues(paramIndexMapping = {0, 4}, optParamIndex = {1, 2, 3}, javaType = {java.lang.Object.class, java.lang.Object.class, int.class}, nativeType = {NativeType.VARIANT, NativeType.VARIANT, NativeType.Int32}, variantType = {Variant.Type.VT_ERROR, Variant.Type.VT_ERROR, Variant.Type.VT_I4}, literal = {\"80020004\", \"80020004\", \"1033\"})\n @ReturnValue(index=4)\n com.exceljava.com4j.excel.Name _Default(\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object index);",
"@VTID(12)\n @DefaultMethod\n @UseDefaultValues(paramIndexMapping = {4}, optParamIndex = {0, 1, 2, 3}, javaType = {java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, int.class}, nativeType = {NativeType.VARIANT, NativeType.VARIANT, NativeType.VARIANT, NativeType.Int32}, variantType = {Variant.Type.VT_ERROR, Variant.Type.VT_ERROR, Variant.Type.VT_ERROR, Variant.Type.VT_I4}, literal = {\"80020004\", \"80020004\", \"80020004\", \"1033\"})\n @ReturnValue(index=4)\n com.exceljava.com4j.excel.Name _Default();",
"public String getDefaultValue() {\r\n if (this == BOOLEAN) {\r\n return \"false\";\r\n }\r\n\r\n if (this == CHAR) {\r\n return \"''\";\r\n }\r\n\r\n if (this == VOID) {\r\n return \"\";\r\n }\r\n\r\n if (this == FLOAT) {\r\n return \"0.f\";\r\n }\r\n\r\n if (this == DOUBLE) {\r\n return \"0.0\";\r\n }\r\n\r\n return \"0\";\r\n }",
"public double getDefault(){\n return number;\n }",
"static public double getDefaultDouble () {\n return defaultDouble;\n }",
"public boolean isIsDefault() {\n return isDefault;\n }",
"@VTID(12)\n @DefaultMethod\n @UseDefaultValues(paramIndexMapping = {0, 1, 4}, optParamIndex = {2, 3}, javaType = {java.lang.Object.class, int.class}, nativeType = {NativeType.VARIANT, NativeType.Int32}, variantType = {Variant.Type.VT_ERROR, Variant.Type.VT_I4}, literal = {\"80020004\", \"1033\"})\n @ReturnValue(index=4)\n com.exceljava.com4j.excel.Name _Default(\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object index,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object indexLocal);",
"Object getDefaultLabel() {\n return null;\n }",
"public Object getDefaultBean() {\n Object obj = this._defaultBean;\n if (obj == null) {\n obj = this._beanDesc.instantiateBean(this._config.canOverrideAccessModifiers());\n if (obj == null) {\n obj = NO_DEFAULT_MARKER;\n }\n this._defaultBean = obj;\n }\n if (obj == NO_DEFAULT_MARKER) {\n return null;\n }\n return this._defaultBean;\n }",
"public java.lang.Boolean getOpcdefault() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCDEFAULT);\n\t}",
"public String getFirstComboDefaultValue() {\r\n Group theDefaultGroup = this.getDefaultGroup();\r\n return theDefaultGroup == null ? null : theDefaultGroup.getUuid();\r\n }",
"@VTID(12)\n @DefaultMethod\n @UseDefaultValues(paramIndexMapping = {0, 1, 2, 4}, optParamIndex = {3}, javaType = {int.class}, nativeType = {NativeType.Int32}, variantType = {Variant.Type.VT_I4}, literal = {\"1033\"})\n @ReturnValue(index=4)\n com.exceljava.com4j.excel.Name _Default(\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object index,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object indexLocal,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object refersTo);",
"public T getDefault() {\r\n return dflt;\r\n }",
"public int getDefaultPropertyIndex() {\n return defaultPropertyIndex;\n }",
"@Override\n\t\tpublic Object getProperty(String key, Object defaultValue) {\n\t\t\treturn null;\n\t\t}",
"static public int getDefaultInt () {\n return defaultInt;\n }",
"public int getIntDefaultValue() {\n\t\t\treturn this.intDefaultValue;\n\t\t}",
"public String getColDefault() {\r\n\t\treturn colDefault;\r\n\t}",
"@Override\n public int getDefaultPropertyIndex() {\n return defaultPropertyIndex;\n }",
"public int getDefault(){\n return number;\n }",
"public T getDefault() {\n List<T> defaultValues = this.defaultValues;\n return defaultValues.get(defaultValues.size() - 1);\n }",
"public boolean isDefault();",
"PreferenceDefaultValueAttribute getDefaultValue();",
"static public byte getDefaultByte() {\n return defaultByte;\n }",
"String getDefaultNull();",
"String getDefaultPreference(String preferenceName) throws OntimizeJEERuntimeException;",
"public Integer getDefaultFlag() {\n return defaultFlag;\n }",
"com.google.protobuf.Value getDefaultValue();",
"T getDefaultValue();",
"public static DefaultExpression default_() { throw Extensions.todo(); }",
"public void returnDefault();",
"Object getDefaultValue(String key);",
"String getDefaultType();",
"public\tString\tgetDefaultText()\n\t{\n\t\treturn\tdefaultText;\n\t}",
"boolean isDefault();",
"boolean isDefault();",
"public YuiImage getDefaultImg() {\r\n\t\treturn defaultImg;\r\n\t}",
"protected Object getDefaultValue() {\r\n if (FeatureCollectionTools.isAttributeTypeNumeric((AttributeType) this.typeDropDown.getSelectedItem())) {\r\n AttributeType at = (AttributeType) this.typeDropDown.getSelectedItem();\r\n\r\n if (at.equals(AttributeType.INTEGER)) {\r\n int i = Integer.parseInt(this.defValueTextField.getText());\r\n return new Integer(i);\r\n }\r\n double d = Double.parseDouble(this.defValueTextField.getText());\r\n return new Double(d);\r\n }\r\n return this.defValueTextField.getText();\r\n }",
"public String getDefaultIconCls() {\n\t\tif (null != this.defaultIconCls) {\n\t\t\treturn this.defaultIconCls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"defaultIconCls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public java.lang.String getDefault_price() {\n return default_price;\n }",
"public InterpolationMethod getDefault() {\n if (_default == null) {\n return InterpolationMethod.NEAREST_NEIGHBOR;\n } else {\n return _default;\n }\n }",
"public String getDefaultFromAddress() {\n\t\treturn myDefaultFromAddress;\n\t}",
"@Override\n public String getDefaultPart() {\n return this.currentMemoryIndex.getDefaultPart();\n }",
"static public byte[] getDefaultBytes() {\n return defaultByteArray;\n }",
"private DefaultSetting getSampleDefaultSetting() {\n DefaultSetting setting = new DefaultSetting(\"\",\n \"\",\n 5,\n Token.DIGIT,\n \"d\",\n 1,\n true,\n true,\n true);\n\n return setting;\n }",
"@Updated(version=Version.TEIID_8_12_4)\n String getDefaultValue(Object elementID) throws Exception;",
"public String getDefaultTargetPropertyName() {\r\n return null;\r\n }",
"public String getmDefaultTranslation(){\n return mDefaultTranslation;\n }",
"public ClassificationMethod getDefaultMethod() {\n\n return defaultMethod;\n\n }",
"public com.google.protobuf.Value getDefaultValue() {\n if (defaultValueBuilder_ == null) {\n return defaultValue_ == null\n ? com.google.protobuf.Value.getDefaultInstance()\n : defaultValue_;\n } else {\n return defaultValueBuilder_.getMessage();\n }\n }",
"public String getLBR_Collection_Default_UU();",
"static public boolean getDefaultBoolean() {\n return defaultBoolean;\n }",
"protected Object getDefaultListItemValue() throws Exception\r\n {\r\n // === read the combo select items: OwComboItem\r\n return ((OwComboItem) createComboSelectList(getPropertyDefinitionNode()).get(0)).getValue();\r\n }",
"public static ULocale getDefault() {\n/* 160 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"String getDefaultRoot() {\n return mDefaultRoot;\n }",
"public DataProcessing getDefaultDataProcessingRef() {\n return defaultDataProcessingRef;\n }",
"public static String getDefaultProperty(String key) {\n return defaults.getProperty(key);\n }",
"public static DocumentationSettings getDefault(){\n return INSTANCE;\n }",
"protected <T> Property getProperty(String key, T defaultVal) {\r\n return getProperty(key, defaultVal, RestartReqs.NONE);\r\n }",
"public Integer getDefaultTemp() {\n return defaultTemp;\n }",
"protected String getDefaultText() {\n\t\treturn DEFAULT_TEXT;\n\t}",
"public static XSDEditorPlugin getDefault() {\n \t\treturn plugin;\n \t}"
] | [
"0.79778296",
"0.74085695",
"0.74074376",
"0.7405808",
"0.7333213",
"0.7333213",
"0.7332079",
"0.73170704",
"0.72824657",
"0.72276795",
"0.7223873",
"0.71730816",
"0.71658194",
"0.7142586",
"0.7124973",
"0.7124973",
"0.7120948",
"0.7120948",
"0.709394",
"0.7033442",
"0.70274264",
"0.6991064",
"0.697631",
"0.69745505",
"0.6960007",
"0.69364685",
"0.69148374",
"0.69148374",
"0.69136614",
"0.6877356",
"0.67967296",
"0.6784191",
"0.6778545",
"0.6768825",
"0.6766695",
"0.67468464",
"0.67201275",
"0.6674789",
"0.66590875",
"0.66368234",
"0.663183",
"0.66241956",
"0.66192997",
"0.66167367",
"0.66014",
"0.6577156",
"0.6576334",
"0.65721744",
"0.65544647",
"0.6553708",
"0.65347373",
"0.65262175",
"0.6516966",
"0.6513665",
"0.6493452",
"0.6468091",
"0.6464822",
"0.6459259",
"0.6457352",
"0.64569145",
"0.64342153",
"0.64334726",
"0.6416968",
"0.6406383",
"0.6367303",
"0.63668007",
"0.6360367",
"0.63502854",
"0.63500756",
"0.6341441",
"0.63222134",
"0.63125306",
"0.6261007",
"0.6261007",
"0.6256517",
"0.6255093",
"0.62150383",
"0.62049335",
"0.6199697",
"0.61896163",
"0.61847544",
"0.61825705",
"0.61597705",
"0.6154795",
"0.6151468",
"0.6142201",
"0.61411005",
"0.6113982",
"0.61005235",
"0.6092057",
"0.6070093",
"0.60650367",
"0.6061437",
"0.6058712",
"0.6056172",
"0.60555613",
"0.6050531",
"0.60501045",
"0.604512",
"0.6031886"
] | 0.62127364 | 77 |
Getter method for the COM property "SyncScrollingSideBySide" | @DISPID(2249)
@PropGet
boolean getSyncScrollingSideBySide(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DISPID(2249)\n @PropPut\n void setSyncScrollingSideBySide(\n boolean rhs);",
"@Override\n public boolean getScrollContinuously() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.SCROLL_CONTINUOUSLYQ_);\n return ((Boolean)retnValue).booleanValue ();\n }",
"@Transient\n/* */ public JScrollBar getHorizontalScrollBar() {\n/* 827 */ return this.horizontalScrollBar;\n/* */ }",
"@Transient\n/* */ public JScrollBar getVerticalScrollBar() {\n/* 886 */ return this.verticalScrollBar;\n/* */ }",
"public boolean isWheelScrollingEnabled() {\n/* 1305 */ return this.wheelScrollState;\n/* */ }",
"@JSProperty(\"scrollbar\")\n @Nullable\n ZAxisScrollbarOptions getScrollbar();",
"public void setWheelScrollingEnabled(boolean paramBoolean) {\n/* 1323 */ boolean bool = this.wheelScrollState;\n/* 1324 */ this.wheelScrollState = paramBoolean;\n/* 1325 */ firePropertyChange(\"wheelScrollingEnabled\", bool, paramBoolean);\n/* */ }",
"public int getHorizontalScrollBarPolicy() {\n/* 522 */ return this.horizontalScrollBarPolicy;\n/* */ }",
"private void updateScrollPosition() {\n int oldTop = scrollTop;\n int oldLeft = scrollLeft;\n scrollTop = DOM.getElementPropertyInt(getElement(), \"scrollTop\");\n scrollLeft = DOM.getElementPropertyInt(getElement(), \"scrollLeft\");\n if (connection != null && !rendering) {\n if (oldTop != scrollTop) {\n connection.updateVariable(id, \"scrollTop\", scrollTop, false);\n }\n if (oldLeft != scrollLeft) {\n connection.updateVariable(id, \"scrollLeft\", scrollLeft, false);\n }\n }\n }",
"@JSProperty(\"overscroll\")\n double getOverscroll();",
"int getScrollLeft();",
"public int getVerticalScrollBarPolicy() {\n/* 473 */ return this.verticalScrollBarPolicy;\n/* */ }",
"public interface C27361Hn {\n C255119b getScrollingViewProxy();\n}",
"public abstract boolean scroll(Direction direction);",
"public Scroller getScroller() { return _scroller; }",
"public float getScroll()\r\n\t{\r\n\t\treturn left_map_scroll;\r\n\t}",
"@JSProperty(\"alignTicks\")\n boolean getAlignTicks();",
"public JScrollPane getScrollbar(){\n\t\treturn scrollbar;//Return the scroll bar\n\t}",
"public native int getScrollIndocatorStyle() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\treturn jso.scrollIndicatorStyle;\n }-*/;",
"public Rectangle getScrollRectangle() {\r\n return scrollRectangle;\r\n }",
"public float getXScrollingSpeed() {\n return config.xScrollingSpeed;\n }",
"JScrollBar getScrollBar() {\n return scrollBar;\n }",
"public boolean horizontalScroll()\n {\n return horizontalScroll;\n }",
"public void setScrollDirection(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.ColorListView.setScrollDirection(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.setScrollDirection(int):void\");\n }",
"public static final double[] DRIVE_AXIS() {\n\t\tdouble reverse = driver.getRawAxis(2);\n\t\tdouble accelerate = driver.getRawAxis(3);\n\t\tdouble x = driver.getX();\n\t\tdouble y = (accelerate - reverse)*(!(DRIVE_JOY().getRawButton(DRIVE_BOOST))?1.0:Constants.NO_BOOST_MULTIPLIER);\n\t\tdouble left = 0.0;\n\t\tdouble right = 0.0;\n//\t\tif(false) {\n//\t\t\tright = (1.5*y - x > 1.0 ? 1.0 : 1.5*y - x);\n//\t\t\tright = (1.5*y - x < -1.0 ? -1.0 : right);\n//\t\t\tleft = (1.5*y + x > 1.0 ? 1.0 : 1.5*y + x);\n//\t\t\tleft = (1.5*y + x < -1.0 ? -1.0 : left);\n//\t\t} else {\n\t\t\tright = (y*Math.abs(1.0 - x) > 1.0 ? 1.0 : y*Math.abs(1.0 - x));\n\t\t\tright = (y*Math.abs(1.0 - x) < -1.0 ? -1.0 : right);\n\t\t\tleft = (y*Math.abs(1.0 + x) > 1.0 ? 1.0 : y*Math.abs(1.0 + x));\n\t\t\tleft = (y*Math.abs(1.0 + x) < -1.0 ? -1.0 : left);\n\t\t//}\n\t\treturn new double[]{left,right};\n\t}",
"public SyncOption getSyncOption() {\n return this.SyncOption;\n }",
"@Nullable\n public BoolProp getRtlAware() {\n if (mImpl.hasRtlAware()) {\n return BoolProp.fromProto(mImpl.getRtlAware());\n } else {\n return null;\n }\n }",
"@JSProperty(\"scrollbar\")\n void setScrollbar(ZAxisScrollbarOptions value);",
"int getVScrollbarWidth();",
"public int getScrollPositionIfEndless(){\n\t\treturn mScrollPositionIfEndless;\n\t}",
"public int getStride() {\n\t\treturn this.stride;\n\t}",
"public void setScrollDirection(int r1, android.view.View r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.widget.ColorListView.setScrollDirection(int, android.view.View):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.setScrollDirection(int, android.view.View):void\");\n }",
"public Object getPropertySyncObject() {\n return propertySyncObject;\n }",
"public interface IRangeControl {\n\n void setScrollPosition(int position);\n\n boolean isChanged();\n\n int getStart();\n\n int getEnd();\n\n}",
"@JSProperty(\"side\")\n @Nullable\n Chart3dFrameSideOptions getSide();",
"@java.lang.Override\n public int getScrollOffsetX() {\n return instance.getScrollOffsetX();\n }",
"public double getSide1() {return side1;}",
"@JSProperty\n String getWrap();",
"public Boolean getSyncFlag() {\n return syncFlag;\n }",
"public Boolean getSyncFlag() {\n return syncFlag;\n }",
"@Override\n public void scrollVertical(int direction) {\n return;\n }",
"public double getSide()\n\t{\n\t\treturn this.side;\n\t}",
"public MouseWheel getMouseWheel() {\n return mouseWheel;\n }",
"public final DoubleProperty prefWrapLengthProperty() {\n if (prefWrapLength == null) {\n prefWrapLength = new DoublePropertyBase(400) {\n @Override\n protected void invalidated() {\n requestLayout();\n }\n\n @Override\n public Object getBean() {\n return HangingFlowPane.this;\n }\n\n @Override\n public String getName() {\n return \"prefWrapLength\";\n }\n };\n }\n return prefWrapLength;\n }",
"@Override\n\tpublic int getScrollableBlockIncrement(Rectangle visibleRect,\n\t\t\tint orientation, int direction) {\n\t\treturn 0;\n\t}",
"public java.lang.Boolean getWrapping() {\r\n return wrapping;\r\n }",
"public rcti getScroll_region_handle() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new rcti(__io__address + 8, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new rcti(__io__address + 8, __io__block, __io__blockTable);\n\t\t}\n\t}",
"public boolean computeScrollOffset() {\n /*\n // Can't load method instructions: Load method exception: null in method: android.widget.OppoScroller.computeScrollOffset():boolean, dex: in method: android.widget.OppoScroller.computeScrollOffset():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.computeScrollOffset():boolean\");\n }",
"public static boolean[] getScrollLocking(byte scrollByte) {\n\t\tboolean[] b = new boolean[4];\n\t\tb[0] = (scrollByte & 0x8) > 0;\n\t\tb[1] = (scrollByte & 0x4) > 0;\n\t\tb[2] = (scrollByte & 0x2) > 0;\n\t\tb[3] = (scrollByte & 0x1) > 0;\n\t\treturn b;\n\t}",
"public native void setScrollIndocatorStyle(double value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.scrollIndicatorStyle = value;\n }-*/;",
"@Override\n protected int computeHorizontalScrollRange() {\n return (int) scaledRightBound;\n }",
"public String getScrollId() {\n return scrollId;\n }",
"public float getScroll_px_per_line() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 48);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 48);\n\t\t}\n\t}",
"public OverScroller getScroller() {\n return mEventHandler.getScroller();\n }",
"public boolean isNowrap()\n {\n return this.nowrap;\n }",
"public ArrayList<Pair<String, String>> getBookScroll()\r\n {\r\n\treturn bookScroll;\r\n }",
"public int getBlockSyncPort() {\r\n return blockSyncPort;\r\n }",
"public double getDirectionMove();",
"private JScrollBar getJScrollBar() {\r\n\t\tif (jScrollBar == null) {\r\n\t\t\tjScrollBar = new JScrollBar();\r\n\t\t\tjScrollBar.setBounds(new Rectangle(591, 127, 17, 333));\r\n\t\t}\r\n\t\treturn jScrollBar;\r\n\t}",
"public boolean isFillWidth() { return _scroller.isFillWidth(); }",
"public void setScrolling(boolean isScrolling) {\n this.isScrolling = isScrolling;\n }",
"public boolean getActualsInSync()\r\n {\r\n return (m_actualsInSync);\r\n }",
"public boolean isDragScroll() {\r\n return dragScroll;\r\n }",
"public void setBlockIncrement(int param1Int) {\n/* 765 */ this.blockIncrementSet = true;\n/* 766 */ putClientProperty(\"JScrollBar.fastWheelScrolling\", (Object)null);\n/* 767 */ super.setBlockIncrement(param1Int);\n/* */ }",
"public native int getOverScrollMode() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\treturn jso.overScrollMode;\n }-*/;",
"@Override\n\tpublic final int getScrollLeft() {\n\t\treturn DOMImpl.impl.getScrollLeft(documentFor());\n\t}",
"public void setUnitIncrement(int param1Int) {\n/* 730 */ this.unitIncrementSet = true;\n/* 731 */ putClientProperty(\"JScrollBar.fastWheelScrolling\", (Object)null);\n/* 732 */ super.setUnitIncrement(param1Int);\n/* */ }",
"public boolean getScrollableTracksViewportWidth() {\r\n return false; \r\n }",
"@Override\n public double getMyRidingOffset()\n {\n return 0D;\n }",
"int getScrollOffsetX();",
"protected RectF getHorizontalScrollBarRect() {\n return mHorizontalScrollBar;\n }",
"@Override public void computeScroll() {\n super.computeScroll();\n if (scroller != null) {\n scroller.computeScroll();\n }\n }",
"public double getMouseWheelRotation() {\n\t\treturn input.getMouseWheelRotation();\n\t}",
"private boolean ensureScrollWheelAdjusted() {\n\t\t// adjust to the closest value\n\t\tint deltaY = mInitialScrollOffset - mCurrentScrollOffset;\n\t\tif (deltaY != 0) {\n\t\t\tmPreviousScrollerY = 0;\n\t\t\tif (Math.abs(deltaY) > mSelectorElementHeight / 2) {\n\t\t\t\tdeltaY += (deltaY > 0) ? -mSelectorElementHeight\n\t\t\t\t\t\t: mSelectorElementHeight;\n\t\t\t}\n\t\t\tmAdjustScroller.startScroll(0, 0, 0, deltaY,\n\t\t\t\t\tSELECTOR_ADJUSTMENT_DURATION_MILLIS);\n\t\t\tinvalidate();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public CArrayFacade<Integer> getScroll_ofs_px() throws IOException\n\t{\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Integer.class};\n\t\tint[] __dna__dimensions = new int[]{\n\t\t\t2\n\t\t};\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new CArrayFacade<Integer>(__io__address + 52, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new CArrayFacade<Integer>(__io__address + 52, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t}\n\t}",
"public int getScrollableBlockIncrement ( Rectangle visibleRect, int orientation, int direction ) {\n\t\treturn 25;\n\t}",
"public int getSyncType() {\n return syncType;\n }",
"@DISPID(-2147417104)\n @PropGet\n int offsetLeft();",
"Constant getCycleOffsetConstant();",
"public void scrollRectToVisibleCommand(int x, int y) {\n\t\tElement view = this.getWidget().getElement();\n\n\t\tif (view == null) {\n\t\t\treturn;\n\t\t}\n\t\tint dx, dy;\n\n\t\tint barHeight = AbstractNativeScrollbar.getNativeScrollbarHeight();\n\t\tint barWidth = AbstractNativeScrollbar.getNativeScrollbarWidth();\n\t\tint extentWidth = this.getOffsetWidth() - barWidth;\n\t\tint extentHeight = this.getOffsetHeight() - barHeight;\n\t\tGPoint viewPosition = getViewPosition();\n\t\tGPoint position = table.getPixelRelative(x, y);\n\t\tGPoint position2 = table.getPixelRelative(x + 1, y + 1);\n\t\tdx = positionAdjustment(extentWidth, position2.x - position.x,\n\t\t\t\tposition.x - viewPosition.x);\n\t\tdy = positionAdjustment(extentHeight, position2.y - position.y,\n\t\t\t\tposition.y - viewPosition.y);\n\t\tif (dx != 0 || dy != 0) {\n\n\t\t\tint viewWidth = view.getOffsetWidth();\n\t\t\tint viewHeight = view.getOffsetHeight();\n\t\t\tint startX = viewPosition.x;\n\t\t\tint startY = viewPosition.y;\n\n\t\t\tviewPosition.x -= dx;\n\t\t\tviewPosition.y -= dy;\n\n\t\t\t// TODO In the java code a check is made here for component\n\t\t\t// orientation, we may do this on the future?\n\n\t\t\tif (extentWidth > viewWidth) {\n\t\t\t\tviewPosition.x = viewWidth - extentWidth;\n\t\t\t} else {\n\t\t\t\tviewPosition.x = Math\n\t\t\t\t .max(0, Math.min(viewWidth - extentWidth,\n\t\t\t\t viewPosition.x));\n\t\t\t}\n\n\t\t\tif (viewPosition.y + extentHeight > viewHeight) {\n\t\t\t\tviewPosition.y = Math.max(0, viewHeight - extentHeight);\n\t\t\t} else if (viewPosition.y < 0) {\n\t\t\t\tviewPosition.y = 0;\n\t\t\t}\n\t\t\tif (viewPosition.x != startX || viewPosition.y != startY) {\n\t\t\t\tGPoint anchorPosition = getUpperLeftCellPosition(viewPosition, 0, 0);\n\t\t\t\tdoAdjustScroll = false;\n\t\t\t\tsetViewPosition(anchorPosition == null ? viewPosition : anchorPosition);\n\t\t\t\tdoAdjustScroll = true;\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n public boolean canScrollVertically(){\r\n return true;\r\n }",
"public Side getSide() {\r\n\t\treturn side;\r\n\t}",
"public boolean isCircleScrolling()\n\t{\n\t\treturn mCircleScrolling;\n\t}",
"public ObjectProperty<EventHandler<ScrollToEvent<Integer>>> onScrollToProperty() {\n\n return this.getWrappedControl().onScrollToProperty();\n }",
"public int getSide() {\n\t\treturn getLength() ;\n\t}",
"public int getScroll() {\n return mTransparentStartHeight - getTransparentViewHeight() + getMaximumScrollableHeaderHeight()\n - getToolbarHeight() + mScrollView.getScrollY();\n }",
"public final ObjectProperty<Pos> alignmentProperty() {\n if (alignment == null) {\n alignment = new StyleableObjectProperty<Pos>(Pos.TOP_LEFT) {\n\n @Override\n public void invalidated() {\n requestLayout();\n }\n\n @Override\n public CssMetaData<HangingFlowPane, Pos> getCssMetaData() {\n return StyleableProperties.ALIGNMENT;\n }\n\n @Override\n public Object getBean() {\n return HangingFlowPane.this;\n }\n\n @Override\n public String getName() {\n return \"alignment\";\n }\n };\n }\n return alignment;\n }",
"public boolean getEnablePositionIncrements() {\n return enablePositionIncrements;\n }",
"public SurfaceControl getSplitScreenDividerAnchor() {\n return this.mSplitScreenDividerAnchor;\n }",
"double getside2(){\n\t\treturn side2;\n\t}",
"@JSProperty(\"side\")\n void setSide(Chart3dFrameSideOptions value);",
"@Override\n\tpublic java.lang.String getSyncVersion() {\n\t\treturn _dmGTShipPosition.getSyncVersion();\n\t}",
"public boolean getWrap() {\n\t\treturn false;\n\t}",
"protected RectF getVerticalScrollBarRect(){\n return mVerticalScrollBar;\n }",
"public Boolean getContainerScroll () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.containerScroll);\r\n\t}",
"@Override\n public void setScrollContinuously(boolean scrollContinuously) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.SCROLL_CONTINUOUSLYQ_, new Boolean (scrollContinuously));\n }",
"public boolean isRtlMirroring() {\n return getElement().isRtlMirroring();\n }",
"public void setScrollable(boolean scrollable) {\n/* 1006 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@java.lang.Override\n public int getScrollOffsetX() {\n return scrollOffsetX_;\n }",
"public int getScrollWidth() {\n\t\treturn this.scrollWidth;\n\t}"
] | [
"0.7782952",
"0.5935361",
"0.5789431",
"0.5539428",
"0.54780227",
"0.5462537",
"0.53096384",
"0.5269223",
"0.52640545",
"0.5247469",
"0.52233416",
"0.5195809",
"0.5152057",
"0.5130791",
"0.50594425",
"0.5056553",
"0.501805",
"0.4973894",
"0.4951404",
"0.49333426",
"0.49074334",
"0.48987138",
"0.48984283",
"0.48567268",
"0.4836326",
"0.4836008",
"0.48286942",
"0.4822883",
"0.48216823",
"0.48153153",
"0.47837308",
"0.4745135",
"0.47395",
"0.4732988",
"0.47269455",
"0.4716823",
"0.47145995",
"0.47068477",
"0.47028202",
"0.47028202",
"0.4701163",
"0.46956623",
"0.46907312",
"0.46826923",
"0.46794477",
"0.46611667",
"0.46597195",
"0.46585634",
"0.46568233",
"0.46551096",
"0.4652539",
"0.46425492",
"0.4641264",
"0.46412364",
"0.4634425",
"0.46328253",
"0.46307847",
"0.4612882",
"0.46116966",
"0.4607418",
"0.46061724",
"0.46060926",
"0.46048167",
"0.45837665",
"0.45765665",
"0.45729658",
"0.45695165",
"0.45665884",
"0.4564294",
"0.45632282",
"0.4557222",
"0.4538015",
"0.45320472",
"0.4530569",
"0.4523467",
"0.4516022",
"0.45054793",
"0.4505086",
"0.45034972",
"0.4503059",
"0.44971806",
"0.44967917",
"0.44937718",
"0.44885984",
"0.44826797",
"0.44763285",
"0.44755337",
"0.44741607",
"0.44700864",
"0.44682866",
"0.44661257",
"0.4464256",
"0.44628686",
"0.44609123",
"0.4457699",
"0.44535714",
"0.445065",
"0.44451225",
"0.44375765",
"0.44359967"
] | 0.8666886 | 0 |
Setter method for the COM property "SyncScrollingSideBySide" | @DISPID(2249)
@PropPut
void setSyncScrollingSideBySide(
boolean rhs); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DISPID(2249)\n @PropGet\n boolean getSyncScrollingSideBySide();",
"public void setWheelScrollingEnabled(boolean paramBoolean) {\n/* 1323 */ boolean bool = this.wheelScrollState;\n/* 1324 */ this.wheelScrollState = paramBoolean;\n/* 1325 */ firePropertyChange(\"wheelScrollingEnabled\", bool, paramBoolean);\n/* */ }",
"public void setUnitIncrement(int param1Int) {\n/* 730 */ this.unitIncrementSet = true;\n/* 731 */ putClientProperty(\"JScrollBar.fastWheelScrolling\", (Object)null);\n/* 732 */ super.setUnitIncrement(param1Int);\n/* */ }",
"public void setScrollDirection(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.ColorListView.setScrollDirection(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.setScrollDirection(int):void\");\n }",
"public void setBlockIncrement(int param1Int) {\n/* 765 */ this.blockIncrementSet = true;\n/* 766 */ putClientProperty(\"JScrollBar.fastWheelScrolling\", (Object)null);\n/* 767 */ super.setBlockIncrement(param1Int);\n/* */ }",
"private void updateScrollPosition() {\n int oldTop = scrollTop;\n int oldLeft = scrollLeft;\n scrollTop = DOM.getElementPropertyInt(getElement(), \"scrollTop\");\n scrollLeft = DOM.getElementPropertyInt(getElement(), \"scrollLeft\");\n if (connection != null && !rendering) {\n if (oldTop != scrollTop) {\n connection.updateVariable(id, \"scrollTop\", scrollTop, false);\n }\n if (oldLeft != scrollLeft) {\n connection.updateVariable(id, \"scrollLeft\", scrollLeft, false);\n }\n }\n }",
"@Override\n public void setScrollContinuously(boolean scrollContinuously) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.SCROLL_CONTINUOUSLYQ_, new Boolean (scrollContinuously));\n }",
"public void setScrollDirection(int r1, android.view.View r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.widget.ColorListView.setScrollDirection(int, android.view.View):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.setScrollDirection(int, android.view.View):void\");\n }",
"@JSProperty(\"scrollbar\")\n void setScrollbar(ZAxisScrollbarOptions value);",
"public void setComponentOrientation(ComponentOrientation paramComponentOrientation) {\n/* 1288 */ super.setComponentOrientation(paramComponentOrientation);\n/* 1289 */ if (this.verticalScrollBar != null)\n/* 1290 */ this.verticalScrollBar.setComponentOrientation(paramComponentOrientation); \n/* 1291 */ if (this.horizontalScrollBar != null) {\n/* 1292 */ this.horizontalScrollBar.setComponentOrientation(paramComponentOrientation);\n/* */ }\n/* */ }",
"public void setScrolling(boolean isScrolling) {\n this.isScrolling = isScrolling;\n }",
"@Override\n public boolean getScrollContinuously() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.SCROLL_CONTINUOUSLYQ_);\n return ((Boolean)retnValue).booleanValue ();\n }",
"public void setSyncIndex(int index) {\n }",
"public void setScrollable(boolean scrollable) {\n/* 1006 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@JSProperty(\"side\")\n void setSide(Chart3dFrameSideOptions value);",
"public void forceSyncRotation() {\n this.rotateCtr = 14;\n }",
"public native void setScrollIndocatorStyle(double value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.scrollIndicatorStyle = value;\n }-*/;",
"public void setVerticalScrollBarPolicy(int paramInt) {\n/* 500 */ switch (paramInt) {\n/* */ case 20:\n/* */ case 21:\n/* */ case 22:\n/* */ break;\n/* */ default:\n/* 506 */ throw new IllegalArgumentException(\"invalid verticalScrollBarPolicy\");\n/* */ } \n/* 508 */ int i = this.verticalScrollBarPolicy;\n/* 509 */ this.verticalScrollBarPolicy = paramInt;\n/* 510 */ firePropertyChange(\"verticalScrollBarPolicy\", i, paramInt);\n/* 511 */ revalidate();\n/* 512 */ repaint();\n/* */ }",
"@Override\n public void scrollVertical(int direction) {\n return;\n }",
"public void setSync(boolean sync) {\n this.sync = sync;\n }",
"public void setHorizontalScrollBarPolicy(int paramInt) {\n/* 548 */ switch (paramInt) {\n/* */ case 30:\n/* */ case 31:\n/* */ case 32:\n/* */ break;\n/* */ default:\n/* 554 */ throw new IllegalArgumentException(\"invalid horizontalScrollBarPolicy\");\n/* */ } \n/* 556 */ int i = this.horizontalScrollBarPolicy;\n/* 557 */ this.horizontalScrollBarPolicy = paramInt;\n/* 558 */ firePropertyChange(\"horizontalScrollBarPolicy\", i, paramInt);\n/* 559 */ revalidate();\n/* 560 */ repaint();\n/* */ }",
"void setScrollLeft(int scrollLeft);",
"private void driveRight() {\n setSpeed(MAX_SPEED, MIN_SPEED);\n }",
"public void setScroll(int dx,int dy){\n\t\txscroll=dx;\n\t\tyscroll=dy;\n\t}",
"public void setDirectionMove(double direction);",
"public void setVerticalScrollBar(JScrollBar paramJScrollBar) {\n/* 906 */ JScrollBar jScrollBar = getVerticalScrollBar();\n/* 907 */ this.verticalScrollBar = paramJScrollBar;\n/* 908 */ add(paramJScrollBar, \"VERTICAL_SCROLLBAR\");\n/* 909 */ firePropertyChange(\"verticalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 911 */ revalidate();\n/* 912 */ repaint();\n/* */ }",
"public native void setOverScrollMode(double value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.overScrollMode = value;\n }-*/;",
"public void setDirection() {\n frontLeft.setDirection(DcMotorSimple.Direction.REVERSE);\n backLeft.setDirection(DcMotorSimple.Direction.REVERSE);\n frontRight.setDirection(DcMotorSimple.Direction.FORWARD);\n backRight.setDirection(DcMotorSimple.Direction.FORWARD);\n }",
"public void setSynchronized(boolean fSynchronized)\n {\n ensureLoaded();\n m_flags.setSynchronized(fSynchronized);\n setModified(true);\n }",
"public void setHorizontalScrollBar(JScrollBar paramJScrollBar) {\n/* 847 */ JScrollBar jScrollBar = getHorizontalScrollBar();\n/* 848 */ this.horizontalScrollBar = paramJScrollBar;\n/* 849 */ if (paramJScrollBar != null) {\n/* 850 */ add(paramJScrollBar, \"HORIZONTAL_SCROLLBAR\");\n/* */ }\n/* 852 */ else if (jScrollBar != null) {\n/* 853 */ remove(jScrollBar);\n/* */ } \n/* 855 */ firePropertyChange(\"horizontalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 857 */ revalidate();\n/* 858 */ repaint();\n/* */ }",
"@Transient\n/* */ public JScrollBar getHorizontalScrollBar() {\n/* 827 */ return this.horizontalScrollBar;\n/* */ }",
"public abstract void setDirection(int dir);",
"public void setSyncStatus(int syncStatus);",
"public abstract boolean scroll(Direction direction);",
"public void setScroll_px_per_line(float scroll_px_per_line) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 48, scroll_px_per_line);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 48, scroll_px_per_line);\n\t\t}\n\t}",
"public void setAutoSynchronizationEnabled(boolean b);",
"private void setAssignmentScroll() {\n\t\t\t\tcourseGUI.getModel().removeAllElements();\n\t\t\t\tVector<Assignment> assignmentList = client.getAssignmentList(courseGUI.getCourse().getName());\n\t\t\t\tif(assignmentList == null)return;\n\t\t\t\tString s;\n\t\t\t\tfor(int i = 0; i < assignmentList.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tcourseGUI.getModel().addElement(assignmentList.get(i));\n\t\t\t\t}\n\t\t\t}",
"public DraggableBehavior setScroll(boolean scroll)\n\t{\n\t\tthis.options.put(\"scroll\", scroll);\n\t\treturn this;\n\t}",
"public void setUpdateScroll(int updateScroll)\n {\n this.updateScroll = updateScroll;\n }",
"public void onSetLayoutDirection() {\n }",
"protected void firePropertyChange(String propertyName,Object oldValue,\n Object newValue){\n super.firePropertyChange(propertyName,oldValue,newValue);\n if(propertyName.equals(EnableWindowBlit)){\n if(newValue!=null){\n setScrollMode(BLIT_SCROLL_MODE);\n }else{\n setScrollMode(SIMPLE_SCROLL_MODE);\n }\n }\n }",
"public void setSyncOption(SyncOption SyncOption) {\n this.SyncOption = SyncOption;\n }",
"@Override\n public void setDirection(Direction direction) {\n\n }",
"public void setAutoScroll(boolean b) {\r\n\t\t_autoScroll = b;\r\n\t}",
"void scroll(int dir) {\n if (!isScrolling && selectedEgg - dir >= 0 && selectedEgg - dir < shopEggs.size()) {\n isScrolling = true;\n if (dir > 0) {\n setEggGoRight(selectedEgg);\n setEggGoRight(selectedEgg - 1);\n } else {\n setEggGoLeft(selectedEgg);\n setEggGoLeft(selectedEgg + 1);\n }\n selectedEgg -= dir;\n }\n }",
"void setScrollPosition(int x, int y);",
"public boolean isWheelScrollingEnabled() {\n/* 1305 */ return this.wheelScrollState;\n/* */ }",
"public void propertyChange(PropertyChangeEvent param1PropertyChangeEvent) {\n/* 1520 */ String str = param1PropertyChangeEvent.getPropertyName();\n/* 1521 */ if (str == \"horizontalScrollBar\" || str == \"verticalScrollBar\")\n/* */ {\n/* */ \n/* 1524 */ if (param1PropertyChangeEvent.getNewValue() instanceof JScrollBar) {\n/* 1525 */ setScrollBarRelations((JScrollBar)param1PropertyChangeEvent.getNewValue());\n/* */ }\n/* */ }\n/* */ }",
"public void setRtlMirroring(boolean value) {\n getElement().setRtlMirroring(value);\n }",
"void setScrollBarRelations(JScrollBar param1JScrollBar) {\n/* 1540 */ AccessibleRelation accessibleRelation1 = new AccessibleRelation(AccessibleRelation.CONTROLLED_BY, param1JScrollBar);\n/* */ \n/* */ \n/* 1543 */ AccessibleRelation accessibleRelation2 = new AccessibleRelation(AccessibleRelation.CONTROLLER_FOR, JScrollPane.this);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1548 */ AccessibleContext accessibleContext = param1JScrollBar.getAccessibleContext();\n/* 1549 */ accessibleContext.getAccessibleRelationSet().add(accessibleRelation2);\n/* */ \n/* */ \n/* 1552 */ getAccessibleRelationSet().add(accessibleRelation1);\n/* */ }",
"@Transient\n/* */ public JScrollBar getVerticalScrollBar() {\n/* 886 */ return this.verticalScrollBar;\n/* */ }",
"@JSProperty(\"scrollbar\")\n @Nullable\n ZAxisScrollbarOptions getScrollbar();",
"public native void setMoveable(boolean value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.moveable = value;\n }-*/;",
"@JSProperty(\"alignTicks\")\n void setAlignTicks(boolean value);",
"final void set_syncword(int syncword0) {\n syncword = syncword0 & 0xFFFFFF3F;\n single_ch_mode = ((syncword0 & 0x000000C0) == 0x000000C0);\n }",
"@VTID(40)\n void setRequireManualUpdate(\n boolean rhs);",
"public void changeCurrentSide() {\r\n\tthis.currentSide = getAdversarySide(this.currentSide);\r\n\r\n\tfireChanged(CURRENT_SIDE, NO_SIDE, NO_POSITION);\r\n }",
"public void testSynchLeadSelection() {\n ListSelectionModel viewSelectionModel = new DefaultListSelectionModel();\n int selected = 0;\n viewSelectionModel.setSelectionInterval(selected, selected);\n FilterPipeline pipeline = null; //new FilterPipeline();\n // pipeline.assign(ascendingModelAdapter);\n SelectionMapper selectionMapper = new SelectionMapper(pipeline, viewSelectionModel);\n int anchor = selected;\n int lead = selected;\n assertAnchorLeadSynched(anchor, lead, viewSelectionModel, selectionMapper);\n anchor = 2;\n viewSelectionModel.setValueIsAdjusting(true);\n viewSelectionModel.setAnchorSelectionIndex(anchor);\n viewSelectionModel.setValueIsAdjusting(false);\n // pipeline.flush();\n assertAnchorLeadSynched(anchor, lead, viewSelectionModel, selectionMapper);\n \n }",
"public void adjustmentValueChanged(AdjustmentEvent evt) {\n \n if (evt.getSource() == hscroll) {\n \n int offx = hscroll.getValue();\n \n // This should be n*bases per pixel\n\n int bpp = (int)(1.0/av.getCharWidth());\n\n if (bpp > 0) {\n\toffx = offx - offx%bpp;\n }\n //hscroll.setValue(offx);\n if (offx != oldoffx) {\n\tav.setStartRes(offx);\n\tav.setEndRes((int)(offx + (seqCanvas.size().width/av.getCharWidth())));\n\t\n\tcontroller.handleAlignViewportEvent(new AlignViewportEvent(this,av,AlignViewportEvent.HSCROLL));\n\t\n\thscroll.revalidate();\n }\n oldoffx = offx;\n }\n \n if (evt.getSource() == vscroll) {\n int offy = vscroll.getValue();\n if (oldoffy != offy) {\n\tav.setStartSeq(offy);\n\tav.setEndSeq(offy + seqCanvas.getSize().height/av.getCharHeight());\n\tcontroller.handleAlignViewportEvent(new AlignViewportEvent(this,av,AlignViewportEvent.LIMITS));\n }\n oldoffy = offy;\n }\n }",
"public void setComponentOrientation(final ComponentOrientation direction) {\n componentOrientation = direction == ComponentOrientation.RIGHT_TO_LEFT;\n setDocumentDirection();\n super.setComponentOrientation(direction);\n }",
"void setLeftToRight(boolean ltor);",
"public void setSide(Enumerator newValue);",
"@JSProperty(\"textAlign\")\n void setTextAlign(String value);",
"private void setScrollBars() {\n int totHeight = jEditorPane1.getSize().height;\n int value = jEditorPane2.getSize().height;\n if (value > totHeight) totHeight = value;\n int totWidth = jEditorPane1.getSize().width;\n value = jEditorPane2.getSize().width;\n if (value > totWidth) totWidth = value;\n int viewHeight = jViewport1.getExtentSize().height;\n int viewWidth = jViewport1.getExtentSize().width;\n //D.deb(\"totHeight = \"+totHeight+\", totWidth = \"+totWidth); // NOI18N\n //D.deb(\"viewHeight = \"+viewHeight+\", viewWidth = \"+viewWidth); // NOI18N\n jScrollBar1.setValues(0, viewWidth, 0, totWidth);\n jScrollBar1.setBlockIncrement(viewWidth);\n jScrollBar2.setValues(0, viewWidth, 0, totWidth);\n jScrollBar2.setBlockIncrement(viewWidth);\n jScrollBar3.setValues(0, viewHeight, 0, totHeight);\n jScrollBar3.setBlockIncrement(viewHeight);\n boolean visibleScroll = jScrollBar1.isVisible();\n //D.deb(\"jScrollBar1.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewWidth < totWidth && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar1 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar1.setVisible(!visibleScroll);\n jScrollBar2.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar1.repaint();\n //jScrollBar2.repaint();\n }\n visibleScroll = jScrollBar3.isVisible();\n //D.deb(\"jScrollBar3.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewHeight < totHeight && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar3 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar3.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar3.repaint();\n }\n }",
"public int getHorizontalScrollBarPolicy() {\n/* 522 */ return this.horizontalScrollBarPolicy;\n/* */ }",
"public void setSyncFlag(Boolean syncFlag) {\n this.syncFlag = syncFlag;\n }",
"public void setSyncFlag(Boolean syncFlag) {\n this.syncFlag = syncFlag;\n }",
"@Override\n\tpublic void setSyncVersion(java.lang.String syncVersion) {\n\t\t_dmGTShipPosition.setSyncVersion(syncVersion);\n\t}",
"@Override\r\n public boolean canScrollVertically(){\r\n return true;\r\n }",
"@JSProperty(\"overscroll\")\n void setOverscroll(double value);",
"public void drive(double speed){\n \t\tsetRight(speed);\n \t\tsetLeft(speed);\n \t}",
"public void setLocked(boolean aValue)\n{\n if(aValue==isLocked()) return; // If value already set, just return\n Object oldValue = put(\"Locked\", aValue); // Cache old value\n firePropertyChange(\"Locked\", oldValue, aValue, -1); // Set new value and fire PropertyChange\n}",
"public void setNowrap(boolean isNowrap)\n {\n this.nowrap = isNowrap;\n }",
"private void driveLeft() {\n setSpeed(MIN_SPEED, MAX_SPEED);\n }",
"public int getVerticalScrollBarPolicy() {\n/* 473 */ return this.verticalScrollBarPolicy;\n/* */ }",
"public ScrollBar(int param1Int) {\n/* 718 */ super(param1Int);\n/* 719 */ putClientProperty(\"JScrollBar.fastWheelScrolling\", Boolean.TRUE);\n/* */ }",
"public void autoscroll(Point p) {\r\n \t\tBasicGraphUI.autoscroll(graph, p);\r\n \t}",
"private void updatePullArrowDirection() {\r\n\r\n SocialListFragment socialListFragment = (SocialListFragment) getFragmentByTag(UNIFIED_SOCIAL_WINDOW_FRAGMENT_TAG);\r\n\r\n if (socialWindowStatus == SocialWindowStatus.FILLING_SCREEN) {\r\n\r\n socialListFragment.rotatePullArrow(180);\r\n\r\n // Enable message input after enlarging done.\r\n ((InstantMessageFragment) getFragmentByTag(INSTANT_MESSAGE_FRAGMENT_TAG)).changeMessageInputStatus(true);\r\n\r\n } else {\r\n socialListFragment.rotatePullArrow(0);\r\n }\r\n }",
"@JSProperty(\"reversed\")\n void setReversed(boolean value);",
"public void setDriveSpeeds(double strafe, double forward, double rotate, double angle)\n {\n \tRobotMap.robotDrive.mecanumDrive_Cartesian(strafe, forward, rotate, angle);\n \tRobotMap.robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);\n \tRobotMap.robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearLeft, true);\n\t\n }",
"public void setDirection(double direction) {\n\t\tif (direction <= MAX_DIRECTION && direction >= MIN_DIRECTION) {\n\t\t\tthis.direction = direction;\n\t\t} else if (direction > MAX_DIRECTION) { \n\t\t\t//this.direction = MIN_DIRECTION + (MAX_DIRECTION - direction);\n\t\t\tthis.direction %= MIN_DIRECTION ;\n\t\t\tif (Double.isNaN(this.direction)) {\n\t\t\t\tthis.direction = MIN_DIRECTION;\n\t\t\t}\n\t\t} else if (direction < MIN_DIRECTION) {\n\t\t\t//this.direction = MAX_DIRECTION - (MIN_DIRECTION + direction);\n\t\t\tthis.direction %= MAX_DIRECTION;\n\t\t\tif (Double.isNaN(this.direction)) {\n\t\t\t\tthis.direction = MAX_DIRECTION;\n\t\t\t}\n\t\t} //else if (direction)\n\t\t\n\t}",
"public void setDriveCoords(int x, int y) {\n this.drive_control.driveJoyStick(x, y);\n }",
"public void setRight(int x) {\r\n rightSide = x;\r\n }",
"public void syncPositionSilent() {\n MathUtil.setVector(this.syncAbsPos, this.liveAbsPos);\n this.syncYaw = this.liveYaw;\n this.syncPitch = this.livePitch;\n this.syncVel = this.liveVel;\n }",
"void setWheel(boolean wheel);",
"public void scrollRectToVisibleCommand(int x, int y) {\n\t\tElement view = this.getWidget().getElement();\n\n\t\tif (view == null) {\n\t\t\treturn;\n\t\t}\n\t\tint dx, dy;\n\n\t\tint barHeight = AbstractNativeScrollbar.getNativeScrollbarHeight();\n\t\tint barWidth = AbstractNativeScrollbar.getNativeScrollbarWidth();\n\t\tint extentWidth = this.getOffsetWidth() - barWidth;\n\t\tint extentHeight = this.getOffsetHeight() - barHeight;\n\t\tGPoint viewPosition = getViewPosition();\n\t\tGPoint position = table.getPixelRelative(x, y);\n\t\tGPoint position2 = table.getPixelRelative(x + 1, y + 1);\n\t\tdx = positionAdjustment(extentWidth, position2.x - position.x,\n\t\t\t\tposition.x - viewPosition.x);\n\t\tdy = positionAdjustment(extentHeight, position2.y - position.y,\n\t\t\t\tposition.y - viewPosition.y);\n\t\tif (dx != 0 || dy != 0) {\n\n\t\t\tint viewWidth = view.getOffsetWidth();\n\t\t\tint viewHeight = view.getOffsetHeight();\n\t\t\tint startX = viewPosition.x;\n\t\t\tint startY = viewPosition.y;\n\n\t\t\tviewPosition.x -= dx;\n\t\t\tviewPosition.y -= dy;\n\n\t\t\t// TODO In the java code a check is made here for component\n\t\t\t// orientation, we may do this on the future?\n\n\t\t\tif (extentWidth > viewWidth) {\n\t\t\t\tviewPosition.x = viewWidth - extentWidth;\n\t\t\t} else {\n\t\t\t\tviewPosition.x = Math\n\t\t\t\t .max(0, Math.min(viewWidth - extentWidth,\n\t\t\t\t viewPosition.x));\n\t\t\t}\n\n\t\t\tif (viewPosition.y + extentHeight > viewHeight) {\n\t\t\t\tviewPosition.y = Math.max(0, viewHeight - extentHeight);\n\t\t\t} else if (viewPosition.y < 0) {\n\t\t\t\tviewPosition.y = 0;\n\t\t\t}\n\t\t\tif (viewPosition.x != startX || viewPosition.y != startY) {\n\t\t\t\tGPoint anchorPosition = getUpperLeftCellPosition(viewPosition, 0, 0);\n\t\t\t\tdoAdjustScroll = false;\n\t\t\t\tsetViewPosition(anchorPosition == null ? viewPosition : anchorPosition);\n\t\t\t\tdoAdjustScroll = true;\n\t\t\t}\n\t\t}\n\t}",
"@JSProperty(\"alignTicks\")\n boolean getAlignTicks();",
"private void drawVerticalScrollBar(){\n }",
"public abstract void scroll(long ms);",
"public interface IRangeControl {\n\n void setScrollPosition(int position);\n\n boolean isChanged();\n\n int getStart();\n\n int getEnd();\n\n}",
"public void sync()\n {\n setAutoSync(false);\n // simply send sync command\n super.executionSync(Option.SYNC);\n }",
"public void redraw() {\n\t\t// LdvInt leftButtonWidth = new LdvInt(DOM.getElementPropertyInt(_leftScrollButton.getElement(), \"offsetWidth\"));\n\t\t// LdvInt rightButtonWidth = new LdvInt(DOM.getElementPropertyInt(_rightScrollButton.getElement(), \"offsetWidth\"));\n\t\t//_scrollArea.getElement().setPropertyInt(\"left\", leftButtonWidth);\n\t\t//_scrollArea.getElement().setPropertyInt(\"right\", rightButtonWidth);\n\t\t// _mainpanel.setCellWidth(_leftScrollButton, leftButtonWidth.intToString(-1)+\"px\");\n\t\t// _mainpanel.setCellWidth(_rightScrollButton, rightButtonWidth.intToString(-1)+\"px\");\n\t}",
"private void updateDirection()\n {\n if (Math.abs(InputSystem.LT_Button_Control_Stick) > 0.1)\n {\n // if lt button is pressed, reverse direction of elevator\n setReverseDirection(true);\n }\n else\n {\n setReverseDirection(false);\n }\n }",
"protected void animateScrollbar(boolean isScrolling) {\n if (scrollbarAnimator != null) {\n scrollbarAnimator.cancel();\n }\n\n scrollbarAnimator = new AnimatorGroup();\n /*ObjectAnimator trackWidthAnim = ObjectAnimator.ofInt(this, \"trackWidth\",\n isScrolling ? thumbMaxWidth : thumbMinWidth);*/\n\n AnimatorValue trackWidthAnim = new AnimatorValue();\n trackWidthAnim.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n FastScrollBar.this.setTrackWidth(isScrolling ? thumbMaxWidth : thumbMinWidth * (int) v);\n }\n });\n\n /*ObjectAnimator thumbWidthAnim = ObjectAnimator.ofInt(this, \"thumbWidth\",\n isScrolling ? thumbMaxWidth : thumbMinWidth);*/\n\n AnimatorValue thumbWidthAnim = new AnimatorValue();\n thumbWidthAnim.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n FastScrollBar.this.setThumbWidth(isScrolling ? thumbMaxWidth : thumbMinWidth * (int) v);\n }\n });\n\n scrollbarAnimator.runParallel(trackWidthAnim, thumbWidthAnim);\n\n\n if (thumbActiveColor != thumbInactiveColor) {\n /*ValueAnimator colorAnimation = ValueAnimator\n .ofObject(new ArgbEvaluator(), thumbPaint.getColor(), isScrolling ? thumbActiveColor : thumbInactiveColor);\n colorAnimation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n\n @Override\n public void onAnimationUpdate(ValueAnimator animator) {\n thumbPaint.setColor((Integer) animator.getAnimatedValue());\n recyclerView\n .invalidate(thumbOffset.x, thumbOffset.y, thumbOffset.x + thumbWidth, thumbOffset.y + thumbHeight);\n }\n });*/\n\n AnimatorValue colorAnimation = new AnimatorValue();\n colorAnimation.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n int color = getAnimatedColor(v,thumbPaint.getColor().getValue());\n thumbPaint.setColor(new Color(color));\n recyclerView.invalidate();\n }\n });\n\n scrollbarAnimator.runSerially(colorAnimation);\n }\n scrollbarAnimator.setDuration(SCROLL_BAR_VIS_DURATION);\n scrollbarAnimator.start();\n }",
"@Override\n\tpublic void set(double speed) {\n\t\tsuper.changeControlMode(TalonControlMode.PercentVbus);\n\t\tsuper.set(speed);\n\t\tsuper.enableControl();\n\t}",
"@Override\n public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) {\n }",
"private void updateLinearDrive() {\n// double rotations = (getLeftRotations() + getRightRotations()) / 2;\n// linearDriveDistance = Conversion.rotationsToInches(rotations, Constants.driveWheelDiameter);\n// double angleController = turnControl.getOutput(linearDriveMultiplier * (navX.getAngle() - linearDriveTargetAngle));\n// double driveController = driveControl.getOutput(linearDriveTargetDistance - linearDriveDistance);\n// setOutput(driveController + angleController, driveController - angleController);\n }",
"public void testTogglingEnabledWithDirectWritingPreservesContent() {\r\n \t\tfinal ITextRidget ridget = getRidget();\r\n \t\tfinal Text control = getWidget();\r\n \r\n \t\tridget.setDirectWriting(true);\r\n \r\n \t\tassertTrue(ridget.isDirectWriting());\r\n \r\n \t\tbean.setProperty(\"abcd\");\r\n \t\tridget.bindToModel(bean, TestBean.PROPERTY);\r\n \t\tridget.updateFromModel();\r\n \r\n \t\tassertEquals(\"abcd\", control.getText());\r\n \t\tassertEquals(\"abcd\", ridget.getText());\r\n \t\tassertEquals(\"abcd\", bean.getProperty());\r\n \r\n \t\tridget.setEnabled(false);\r\n \r\n \t\tassertEquals(\"\", control.getText());\r\n \t\tassertEquals(\"abcd\", ridget.getText());\r\n \t\tassertEquals(\"abcd\", bean.getProperty());\r\n \r\n \t\tridget.setEnabled(true);\r\n \r\n \t\tassertEquals(\"abcd\", control.getText());\r\n \t\tassertEquals(\"abcd\", ridget.getText());\r\n \t\tassertEquals(\"abcd\", bean.getProperty());\r\n \t}",
"public void configVelocityControl() {\n leftDrive.configTeleopVelocity();\n rightDrive.configTeleopVelocity();\n }",
"public void setShowPartialY(boolean aValue)\n{\n if(aValue==_showPartialY) return;\n _showPartialY = aValue; reloadContents(true);\n}"
] | [
"0.7780602",
"0.6049521",
"0.55514234",
"0.54472655",
"0.54256564",
"0.5402621",
"0.5295745",
"0.52662784",
"0.5221644",
"0.51887137",
"0.516854",
"0.51684797",
"0.51285595",
"0.5127216",
"0.5123994",
"0.5123681",
"0.5116732",
"0.5103057",
"0.5068005",
"0.50508964",
"0.50034875",
"0.50013447",
"0.49973187",
"0.4978669",
"0.49697548",
"0.49593323",
"0.4957878",
"0.49508741",
"0.49096352",
"0.48956332",
"0.48831552",
"0.48827982",
"0.48637235",
"0.48594",
"0.48473176",
"0.4838377",
"0.48303598",
"0.4827628",
"0.48247796",
"0.4820753",
"0.47863546",
"0.47480437",
"0.47473675",
"0.4743792",
"0.47401103",
"0.47331208",
"0.47272262",
"0.46847638",
"0.46815106",
"0.46685278",
"0.46522188",
"0.46393248",
"0.46331427",
"0.46315145",
"0.462527",
"0.46215284",
"0.46202412",
"0.46164945",
"0.46070513",
"0.4605069",
"0.4595732",
"0.45927015",
"0.45786527",
"0.45761207",
"0.4550725",
"0.4541247",
"0.4541247",
"0.4536871",
"0.45353904",
"0.453422",
"0.45332235",
"0.45310518",
"0.45268524",
"0.44910955",
"0.4489696",
"0.44891307",
"0.44818553",
"0.4481345",
"0.44789028",
"0.4478486",
"0.44762328",
"0.44730008",
"0.4461692",
"0.44603503",
"0.44567588",
"0.44553742",
"0.4450452",
"0.44503334",
"0.44498086",
"0.44486514",
"0.44372323",
"0.44367003",
"0.44263035",
"0.4405331",
"0.4397434",
"0.4397024",
"0.43948507",
"0.43932503",
"0.4391183",
"0.43894228"
] | 0.83408576 | 0 |
Many to One support manytoone: Decouverte.codeUnite ==> Unite.id | @NotNull
@JoinColumn(name = "code_unite", nullable = false)
@ManyToOne(cascade = { PERSIST, MERGE }, fetch = LAZY)
public Unite getCodeUnite() {
return codeUnite;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Id\r\n @GeneratedValue(strategy = GenerationType.AUTO)\r\n @Column (name = \"CODE_ID\")\r\n public Long getCodeId() {\r\n return codeId;\r\n }",
"@Override\npublic boolean saveCharitCom(Long idcommande,Charite Charite) {\n\tCommande c1= commandeDao.findOne(idcommande);\n\tSet<Commande> c= new HashSet<Commande>();\n\tc.add(c1);\n\t//Events e1 = eventDAO.findOne(idcommande);\n\tCharite.setCommandeCharite(c);\n\tchariteRepository.save(Charite);\n\treturn true;\n}",
"@Override\n\tpublic CorsoDiLaurea findByPrimaryKey(Long codice) {\n\t\treturn null;\n\t}",
"TypeAssociationEXT getConcerneUniteUnite();",
"public Long getId()\r\n\t{\r\n\t\treturn idContrat;\r\n\t}",
"@ManyToOne(fetch = FetchType.EAGER)\n @JoinColumn(name = \"N_ID_IDENTIFICACION\", referencedColumnName = \"N_ID\", nullable = true)\n public TipoIdentificacion getTipoIdentificacion() {\n return tipoIdentificacion;\n }",
"@Optional\n Association<GebaeudeArtStaBuComposite> gebaeudeArtStaBu();",
"@OneToOne(cascade = {CascadeType.ALL}, fetch = FetchType.EAGER)\n @JoinColumn(name = \"N_ID_DIRECCION\", nullable = false)\n public Direccion getDireccion() {\n return direccion;\n }",
"@Override\r\n\tpublic Telefone trazerUm(Long id, Telefone classe) throws Exception {\n\t\treturn null;\r\n\t}",
"@OneToOne(mappedBy = \"persona\")\n\tpublic Proveedor getProveedor() {\n\t\treturn proveedor;\n\t}",
"public int getId_anneeScolaire() {return id_anneeScolaire;}",
"public Unitee administrationCreerUnitee(Unitee unitee) {\n\t\tUnitee unite = new Unitee(unitee.getIdTypeUnitee(), unitee.getIdBatimentProvenance(), unitee.getIcone(),\n\t\t\t\tunitee.getLibelle(), unitee.getDescriptif(), unitee.getCoutPierreFormation(),\n\t\t\t\tunitee.getCoutBoisFormation(), unitee.getCoutOrFormation(), unitee.getCoutNourritureFormation(),\n\t\t\t\tunitee.getCoutHumain(), unitee.getTempsFormation(), unitee.getVie(), unitee.getAttaque(),\n\t\t\t\tunitee.getPortee(), unitee.getArmure(), unitee.getVitesse(),\n\t\t\t\tunitee.getNiveauBatimentNecessaireFormation(), unitee.getApportRessourcePierreHeure(),\n\t\t\t\tunitee.getApportRessourceBoisHeure(), unitee.getApportRessourceOrHeure(),\n\t\t\t\tunitee.getApportRessourceNourritureHeure(), unitee.getApportExperience());\n\n\t\t// SAUVEGARDE\n\t\tuniteeRepo.save(unite);\n\n\t\t// RETOUR\n\t\treturn unite;\n\t}",
"public Noeud(Noeud pere) {\n\t\tthis.poidsActuelle = pere.poidsActuelle;\n\t\tthis.profondeur = pere.profondeur + 1;\n\t\tthis.borneInf = pere.borneInf;\n\t\tthis.borneSup = pere.borneSup;\n\t\tthis.ListObjet = pere.ListObjet; \n\t\tthis.poids_maximal = pere.poids_maximal;\n\t\tnouvelleListeObjetParNoeud(pere.ListObjetParNoeud);\n\t}",
"public int getId()\r\n/* 208: */ {\r\n/* 209:381 */ return this.idCargaEmpleado;\r\n/* 210: */ }",
"@Override\n\tpublic Municipio procura(Long id) {\n\t\treturn null;\n\t}",
"public int getIdCandidatura(){\n return idCandidatura;\n }",
"public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }",
"public int getIdSucursal()\r\n/* 118: */ {\r\n/* 119:131 */ return this.idSucursal;\r\n/* 120: */ }",
"public int getIdLibro()\n {\n return id;\n }",
"public int getIdSucursal()\r\n/* 104: */ {\r\n/* 105:169 */ return this.idSucursal;\r\n/* 106: */ }",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _lineaGastoCategoria.getPrimaryKey();\n\t}",
"public int getIdSucursal()\r\n/* 93: */ {\r\n/* 94:166 */ return this.idSucursal;\r\n/* 95: */ }",
"public Premie findById(Long premieid){\n return premieRepository.findById(premieid).get();\n }",
"@Override\n\n public void run(String... strings) throws Exception {\n \n Usuario u= new Usuario(1521L, \"Viridiana Hernandez\",\"ndzmviridiana@hotmail.com\");\n \n //la guardamos\n \n // repoUsu.save(u);\n \n //GENERAMOS LA DIRECCION QUE VAMOS A GUARDAR\n \n Direccion d = new Direccion(new Usuario(1521L),\"Calle 13\", 55120, \"Ecatepec\");\n //repoDir.save(d);\n \n \n //AQUI HAREMOS EL JOIN\n \n \n Direccion d2= repoDir.findOne(2L);\n System.out.println(\"Correo:\"+d2.getU().getEmail()+ \" municipio \"+d2.getMunicipio());\n \n \n \n \n \n \n //repoMensa.save (new Mensajito(\"Primero\",\"Mi primera vez con hibernate\"))\n /*\n Mensajito m= repoMensa.findOne(1);\n System.out.println(m.getTitulo());\n \n \n \n // repoMensa.save(new Mensajito(\"17 de octubre\",\"No temblo\"));\n System.out.println(\"vamos a uscar todos\");\n \n for (Mensajito mensa:repoMensa.findAll()){\n System.out.println(mensa);\n \n }\n \n //para buscar por id FINDONE\n System.out.println(\"vamos a buscar por id\");\n System.out.println(repoMensa.findOne(1));\n \n \n // Actualizar \n repoMensa.save(new Mensajito(1,\"nuevo titulo\",\"nuevo cuerpo\"));\n System.out.println(repoMensa.findOne(1));\n*/\n }",
"@Transient\n\t/**\n\t * @return the idInstituicao\n\t */\n\tpublic Integer getIdInstituicao() {\n\t\treturn idInstituicao;\n\t}",
"@Override\r\npublic int create(Detalle_pedido d) {\n\treturn detalle_pedidoDao.create(d);\r\n}",
"@Override\r\npublic int selectByPrimaryKey(Integer possalesdetailid) {\n\t\r\n\tPossalesdetail p= possalesdetail.selectByPrimaryKey(possalesdetailid);\r\n if(p.getPossalesdetailid()>0){\r\n \t\r\n \treturn 1;\r\n } else{\r\n\t return 0;\r\n }\r\n}",
"public void peleaEn(int idPeleador,int idEmpresa){\n\t\t\n\t}",
"public UniteeDto detailsUnitee(Integer idUnitee) {\n\n\t\t// RECHERCHE UNITE PAR ID\n\t\tOptional<Unitee> unitee = uniteeRepo.findById(idUnitee);\n\t\tUniteeDto uni = new UniteeDto(unitee.get());\n\n\t\t// RETOUR\n\t\treturn uni;\n\t}",
"long getCodeId();",
"long getCodeId();",
"long getCodeId();",
"public Integer getCodeid() {\n return codeid;\n }",
"public int getIdSucursal()\r\n/* 100: */ {\r\n/* 101:130 */ return this.idSucursal;\r\n/* 102: */ }",
"public int getIdFornecedor(){\n\t return idFornecedor;\n\t}",
"public int getCodiceID() \r\n\t\t{\r\n\t\t\treturn CodiceID;\r\n\t\t}",
"public org.hl7.fhir.CodeableConcept getCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.CodeableConcept target = null;\n target = (org.hl7.fhir.CodeableConcept)get_store().find_element_user(CODE$6, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public int getId()\r\n/* 69: */ {\r\n/* 70:103 */ return this.idAutorizacionEmpresaSRI;\r\n/* 71: */ }",
"public long getDossierId();",
"@Override\n\tpublic long getId() {\n\t\treturn _phieugiahan.getId();\n\t}",
"Country selectByPrimaryKey(String code);",
"@ManyToOne\r\n\t@JoinColumn(name=\"CNT_ID\")\r\n\tpublic Contrato getContrato() {\r\n\t\treturn this.contrato;\r\n\t}",
"@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.AUTO)\n\t@Column(name = \"bmRmCodeId\")\n\tpublic Long getId()\n\t{\n\t\treturn super.getId();\n\t}",
"public ProductoPk createPk() {\r\n return new ProductoPk(idProducto);\r\n }",
"public String getInoId();",
"@OneToOne(mappedBy = \"persona\")\n\tpublic Usuario getUsuario() {\n\t\treturn usuario;\n\t}",
"@Override\n\tpublic long getPhieumuonId() {\n\t\treturn _phieugiahan.getPhieumuonId();\n\t}",
"@Override\r\n\tpublic Integer getId() {\n\t\treturn this.codContacto;\r\n\t}",
"@Override\npublic boolean saveCharit3(Events e1,Charite Charite) {\n\t\n\t\n\tEvents e2 = eventDAO.findOne(e1.getId());\n\tCharite.setIdevents(e2);\n\tchariteRepository.save(Charite);\n\treturn true;\n}",
"public IProduto getCodProd();",
"@Override\r\n\tpublic Famille getFamille(Long idFamilleComp) {\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\tObject C=session.get(Famille.class, idFamilleComp);\r\n \t\tif(C==null) throw new RuntimeException(\"FamilleComp non crées\");\r\n \t\tsession.getTransaction().commit();\r\n \t\treturn (Famille)C;\r\n \r\n\t}",
"@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((identificacao == null) ? 0 : identificacao.hashCode());\n\t\treturn result;\n\t}",
"public int getIdAdresse() {\r\n return idAdresse;\r\n }",
"public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }",
"public Long getPersonaId();",
"public int getIden() {\n return iden;\n }",
"public void setIdSucursal(int idSucursal)\r\n/* 105: */ {\r\n/* 106:134 */ this.idSucursal = idSucursal;\r\n/* 107: */ }",
"@Override\n public long getPrimaryKey() {\n return _partido.getPrimaryKey();\n }",
"public TypeProjet getTypeProjetByID (int TypeProjet) throws RemoteException {\r\n\t\t\t\t\t \t\t \r\n\t\t return new TypeProjetImpl(TypeProjet,database);\t\t\r\n\t\t}",
"public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }",
"@Override\n public long getCompanyId() {\n return _partido.getCompanyId();\n }",
"public T caseIdentPrimary(IdentPrimary object)\n {\n return null;\n }",
"public String getIdCode() {\n return idCode;\n }",
"@Override\r\n\tpublic PostalCodeValue getCode() {\r\n\t\treturn new PostalCodeValue(code.getCode());\r\n\t}",
"private Ingrediente givenExisteUnIngrediente() {\n\t\tIngrediente ing = new Ingrediente();\n\t\ting.setId_categoriaIngrediente(1);\n\t\ting.setNombre(\"TOMATE\");\n\t\treturn ing;\n\t}",
"public com.walgreens.rxit.ch.cda.EntityDeterminer xgetDeterminerCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.EntityDeterminer target = null;\n target = (com.walgreens.rxit.ch.cda.EntityDeterminer)get_store().find_attribute_user(DETERMINERCODE$32);\n if (target == null)\n {\n target = (com.walgreens.rxit.ch.cda.EntityDeterminer)get_default_attribute_value(DETERMINERCODE$32);\n }\n return target;\n }\n }",
"public Long getId() {\r\n return idComentario;\r\n }",
"public int getId();",
"public int getId();",
"public int getId();",
"public int getId();",
"public int getId();",
"public int getId();",
"public int getId();",
"@java.lang.Override\n public long getCodeId() {\n return codeId_;\n }",
"@java.lang.Override\n public long getCodeId() {\n return codeId_;\n }",
"@java.lang.Override\n public long getCodeId() {\n return codeId_;\n }",
"@JsonIgnore\n @Override\n public String getCode()\n {\n return code;\n }",
"public int getCountryId(){\n return ID;\n }",
"@Override\n public Propiedad getPropiedadId(String pNumFinca) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE \"\n + \"ID_PROPIEDAD = '\" + pNumFinca + \"'\");\n Propiedad propiedadSeleccionada = resultado.get(0);\n return propiedadSeleccionada;\n }",
"@java.lang.Override\n public long getCodeId() {\n return codeId_;\n }",
"@java.lang.Override\n public long getCodeId() {\n return codeId_;\n }",
"@java.lang.Override\n public long getCodeId() {\n return codeId_;\n }",
"NeeqCompanyAccountingFirmOnline selectByPrimaryKey(Integer id);",
"public String getCodeId() {\r\n\t\treturn codeId;\r\n\t}",
"@Override\r\n\tpublic Integer getId() {\n\t\treturn codigoCliente;\r\n\t}",
"public void setId_anneeScolaire(int id_anneeScolaire) {this.id_anneeScolaire = id_anneeScolaire;}",
"public Local_Prova getByIdLocal_Prova(Integer id);",
"@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _phieugiahan.getPrimaryKey();\n\t}",
"public Produit getProduit(int theId);",
"@Transient\n @Override\n public Integer getId()\n {\n return this.conservDescriptionId;\n }",
"ForeignKey createForeignKey();",
"public long getIdSejour(){\n\t\treturn idSejour;\n\t}",
"@OneToOne\n @JoinColumn(name = \"ID_HOCSINH\")\n public HocSinh getHocSinh() {\n return hocSinh;\n }",
"public int getIdfilial(){\r\n return idfilial;\r\n }",
"@Override\n\tpublic Producto buscarIdProducto(Integer codigo) {\n\t\treturn productoDao.editarProducto(codigo);\n\t}",
"public int getCountryId();",
"public int getComuneNascitaCod() {\r\n return comuneNascitaCod;\r\n }",
"@Override\r\n\tpublic String createID() {\r\n\t\t \r\n\t\t\t\treturn transCode.toString();\r\n\t\t\t\t}"
] | [
"0.5706601",
"0.53281796",
"0.5259652",
"0.5171636",
"0.5082191",
"0.5080746",
"0.50531936",
"0.5043698",
"0.5041034",
"0.5024629",
"0.5016009",
"0.4990926",
"0.4980443",
"0.49606702",
"0.49531314",
"0.494742",
"0.49403912",
"0.4932073",
"0.49293002",
"0.49199018",
"0.49159303",
"0.4915038",
"0.49113664",
"0.4909374",
"0.4898389",
"0.4883794",
"0.48643845",
"0.48510206",
"0.48478183",
"0.4839243",
"0.4839243",
"0.4839243",
"0.48390764",
"0.48389575",
"0.4781569",
"0.4780689",
"0.47797307",
"0.47793174",
"0.47741872",
"0.476697",
"0.47544256",
"0.4748345",
"0.47336704",
"0.47188842",
"0.47071096",
"0.4703985",
"0.4702881",
"0.46980035",
"0.46822327",
"0.4682144",
"0.46799606",
"0.46774235",
"0.46760094",
"0.46744135",
"0.46697605",
"0.46210703",
"0.46110153",
"0.46084592",
"0.46065265",
"0.46062362",
"0.46051112",
"0.46040878",
"0.4603839",
"0.46037188",
"0.45990235",
"0.45827204",
"0.45789352",
"0.4578117",
"0.4578117",
"0.4578117",
"0.4578117",
"0.4578117",
"0.4578117",
"0.4578117",
"0.4578041",
"0.4578041",
"0.4578041",
"0.45763734",
"0.457516",
"0.45739424",
"0.4571504",
"0.4571504",
"0.4571504",
"0.45603675",
"0.455795",
"0.45578587",
"0.45508248",
"0.45446816",
"0.45410526",
"0.45372772",
"0.45366028",
"0.45348567",
"0.45328084",
"0.453165",
"0.4530196",
"0.45298535",
"0.4528361",
"0.45270148",
"0.45234704",
"0.4516054"
] | 0.7445254 | 0 |
manytoone: Decouverte.numeroRecherche ==> Recherche.id | @NotNull
@JoinColumn(name = "numero_recherche", nullable = false)
@ManyToOne(cascade = { PERSIST, MERGE }, fetch = LAZY)
public Recherche getNumeroRecherche() {
return numeroRecherche;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getDossierId();",
"public int getIdReceta() {\r\n return idReceta;\r\n }",
"public int getId_docente() {\n return id_docente;\n }",
"public int getDocenteId() {\r\n return this.docenteId;\r\n }",
"public int getId_anneeScolaire() {return id_anneeScolaire;}",
"public int getIdCandidatura(){\n return idCandidatura;\n }",
"public VoeuEtudiantDto findByIdDosEtudIdAnnAcad(Integer idDossierEtudiant, Integer idAnneeAcademique);",
"public void setDossierId(long dossierId);",
"@ManyToOne\r\n\t@JoinColumn(name=\"CNT_ID\")\r\n\tpublic Contrato getContrato() {\r\n\t\treturn this.contrato;\r\n\t}",
"public Receta(int idReceta, String diagnostico, String medicamentos, int idPaciente) {\r\n this.idReceta = idReceta;\r\n this.diagnostico = diagnostico;\r\n this.medicamentos = medicamentos;\r\n this.idPaciente = idPaciente;\r\n }",
"public Long getIdVieSociale() {\r\n\t\treturn idVieSociale.get();\r\n\t}",
"public void setDocenteId(int docenteId) {\r\n this.docenteId = docenteId;\r\n }",
"public void rechercheEtudiantInscripEcheanceParMatricule(){\r\n try { \r\n setViewEtudiantInscripEcheance(viewEtudiantInscripEcheanceFacadeL.findByMatricule(getViewEtudiantInscripEcheance().getMatricule())); \r\n \r\n //initialisation des echeances\r\n// viewEtudiantInscripEcheance.setVers1(0); \r\n// viewEtudiantInscripEcheance.setVers2(0); \r\n// viewEtudiantInscripEcheance.setVers3(0); \r\n// viewEtudiantInscripEcheance.setVers4(0); \r\n// viewEtudiantInscripEcheance.setVers5(0); \r\n// viewEtudiantInscripEcheance.setVers6(0); \r\n } catch (Exception e) {\r\n FacesMessage message = new FacesMessage(\"Accun étudiant n'a été trouvé! \");\r\n message.setSeverity(FacesMessage.SEVERITY_WARN);\r\n FacesContext.getCurrentInstance().addMessage(null, message); \r\n \r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance();\r\n } \r\n }",
"public Noeud(Noeud pere) {\n\t\tthis.poidsActuelle = pere.poidsActuelle;\n\t\tthis.profondeur = pere.profondeur + 1;\n\t\tthis.borneInf = pere.borneInf;\n\t\tthis.borneSup = pere.borneSup;\n\t\tthis.ListObjet = pere.ListObjet; \n\t\tthis.poids_maximal = pere.poids_maximal;\n\t\tnouvelleListeObjetParNoeud(pere.ListObjetParNoeud);\n\t}",
"@OneToOne(cascade = {CascadeType.ALL}, fetch = FetchType.EAGER)\n @JoinColumn(name = \"N_ID_DIRECCION\", nullable = false)\n public Direccion getDireccion() {\n return direccion;\n }",
"public int getIdRichiesta() {\n return idRichiesta;\n }",
"@Override\n\n public void run(String... strings) throws Exception {\n \n Usuario u= new Usuario(1521L, \"Viridiana Hernandez\",\"ndzmviridiana@hotmail.com\");\n \n //la guardamos\n \n // repoUsu.save(u);\n \n //GENERAMOS LA DIRECCION QUE VAMOS A GUARDAR\n \n Direccion d = new Direccion(new Usuario(1521L),\"Calle 13\", 55120, \"Ecatepec\");\n //repoDir.save(d);\n \n \n //AQUI HAREMOS EL JOIN\n \n \n Direccion d2= repoDir.findOne(2L);\n System.out.println(\"Correo:\"+d2.getU().getEmail()+ \" municipio \"+d2.getMunicipio());\n \n \n \n \n \n \n //repoMensa.save (new Mensajito(\"Primero\",\"Mi primera vez con hibernate\"))\n /*\n Mensajito m= repoMensa.findOne(1);\n System.out.println(m.getTitulo());\n \n \n \n // repoMensa.save(new Mensajito(\"17 de octubre\",\"No temblo\"));\n System.out.println(\"vamos a uscar todos\");\n \n for (Mensajito mensa:repoMensa.findAll()){\n System.out.println(mensa);\n \n }\n \n //para buscar por id FINDONE\n System.out.println(\"vamos a buscar por id\");\n System.out.println(repoMensa.findOne(1));\n \n \n // Actualizar \n repoMensa.save(new Mensajito(1,\"nuevo titulo\",\"nuevo cuerpo\"));\n System.out.println(repoMensa.findOne(1));\n*/\n }",
"@Repository\npublic interface SupergruppoDAO extends CrudRepository<Supergruppo, Integer> {\n List<Supergruppo> findAllByPersone_id(Integer idPersona);\n}",
"public int getIdAdresse() {\r\n return idAdresse;\r\n }",
"public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }",
"public Integer obterIdEmpresaPorRota(Rota rota) throws ErroRepositorioException;",
"public int getIdProducto() {\n return idProducto;\n }",
"public Long getId() {\r\n return idComentario;\r\n }",
"public int getIdDetalle_Ventaf() {\n return idDetalle_Ventaf;\n }",
"@OneToOne(mappedBy = \"persona\")\n\tpublic Proveedor getProveedor() {\n\t\treturn proveedor;\n\t}",
"Movimiento selectByPrimaryKey(Integer idMovCta);",
"TblSecuencia findByIdSecuencia(long idSecuencia );",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DetalleOrdenRepository extends CrudRepository<DetalleOrden, Long> {\n\n\tList<DetalleOrden> findByIdOrdenIdOrden(Integer idOrden);\n}",
"public void setId_anneeScolaire(int id_anneeScolaire) {this.id_anneeScolaire = id_anneeScolaire;}",
"public int IdGroupe(Personne p,String nomGroupe) throws SQLException{\n\t\t\tString req =\"Select ID_Groupe from Groupe where NomGroupe= ? AND \"\n\t\t\t\t\t+ \"NomComptePers=?\";\n\t\t\tPreparedStatement ps=DBConfig.getInstance().getConn().prepareStatement(req);\n\t\t\tps.setString(1,nomGroupe);\n\t\t\tps.setString(2,p.getNomComptePers());\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\trs.next();\n\t\t\treturn rs.getInt(1);\t\n\t\t\t\n\t\t}",
"public Persona(int idPersona){\n this.idPersona = idPersona;\n }",
"public int getIdAuteur() {\n\t\treturn idAuteur;\n\t}",
"public java.lang.Integer getId_rango();",
"public int getIdGrupoDocumento() {\n return idGrupoDocumento;\n }",
"Videogioco findVideogiocoById(int id);",
"public int escolhasDocente(Long idDocente){\n Session session = getSessionFactory().openSession();\n Criteria criteria = session.createCriteria(TurmaDocente.class);\n criteria.add(Restrictions.eq(\"idDocente\", idDocente));\n\n List result = criteria.list();\n session.close();\n\n return result.size();\n }",
"public int getIdFornecedor(){\n\t return idFornecedor;\n\t}",
"public int getIdExamCcEtudiant(String matricule, int idMatiere){\n int id ;\n Query query = em.createQuery(\"select etuex.idexamen from EtudiantExam etuex,Examen exam, MatiereExam matexam where etuex.matricule := ?1 and matexam.idmatiere := ?2 and matexam.idexamen := exam.idexamen and exam.type := 'CC' and exam.idexamen := etuex.idexamen\");\n id = (int)query.getSingleResult(); \n return id;\n \n }",
"public Entreprise rechercheEntreprisenum(int Num) throws EntrepriseInconnueException {\n\t\tEntreprise E = em.find(Entreprise.class, Num);\n\t\tif (E == null)\n\t\t\tthrow new EntrepriseInconnueException();\n\t\telse\n\t\t\treturn E;\n\t}",
"public int getIdNoeud() {\n return idNoeud;\n }",
"public Long getId()\r\n\t{\r\n\t\treturn idContrat;\r\n\t}",
"@Test\r\n public void testCarregarPeloId() throws Exception {\r\n tx.begin();\r\n Categoria categoria = new Categoria(\"Teste carregar categoria por id\");\r\n dao.persiste(categoria);\r\n tx.commit();\r\n em.refresh(categoria);\r\n Long id = categoria.getId();\r\n Categoria result = dao.carregarPeloId(id);\r\n assertEquals(categoria, result);\r\n \r\n }",
"int getIdRondaCancion(Cancion cancion,Date fecha) throws ExceptionDao;",
"public void setIdRichiesta(int idRichiesta) {\n this.idRichiesta = idRichiesta;\n }",
"public void setIdDetalleComponenteCosto(int idDetalleComponenteCosto)\r\n/* 63: */ {\r\n/* 64: 87 */ this.idDetalleComponenteCosto = idDetalleComponenteCosto;\r\n/* 65: */ }",
"public NominaPuesto findByPrimaryKey(int idPuesto) throws NominaPuestoDaoException;",
"@Override\r\npublic int create(Detalle_pedido d) {\n\treturn detalle_pedidoDao.create(d);\r\n}",
"public void peleaEn(int idPeleador,int idEmpresa){\n\t\t\n\t}",
"@Override\n public long getPrimaryKey() {\n return _partido.getPrimaryKey();\n }",
"public int getIdPrestatario() {\n return idPrestatario;\n }",
"public long getIdProduit() {\n\t\treturn idProduit;\n\t}",
"public final Long getId_entreprise() {\n return this.id_entreprise;\n }",
"public int getIdPosto() {\n return idPosto;\n }",
"@Override\n\tpublic Personne affichagePersonne(int id) {\n\t\treturn dao.affichagePersonne(id);\n\t}",
"public void setIdCliente(Integer id_cliente){\n this.id_cliente=id_cliente;\n }",
"@Override\n\tpublic long getNumeroContrato() {\n\t\t// TODO Auto-generated method stub\n\t\treturn super.getNumeroContrato();\n\t}",
"@ManyToOne\r\n\t@JoinColumn(name=\"DPN_ID\")\r\n\tpublic Dependencia getDependencia() {\r\n\t\treturn this.dependencia;\r\n\t}",
"public java.lang.String getIdFiche(){\r\n return this.idFiche;\r\n }",
"public String getIdVenta() {\n return idVenta;\n }",
"public int getIdproducto() {\r\n\t\treturn idproducto;\r\n\t}",
"public long getIdSejour(){\n\t\treturn idSejour;\n\t}",
"public Long getPersonaId();",
"public int getIdPedido() {\r\n\t\treturn idPedido;\r\n\t}",
"public Premie findById(Long premieid){\n return premieRepository.findById(premieid).get();\n }",
"public void leerPacientes (int id_nutricionista);",
"public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }",
"public String getIdPregunta()\n {\n return idPregunta;\n }",
"public String getDossierEtudiantId() {\n\t\treturn dossierEtudiantId;\n\t}",
"Especialidad getEspecialidadPorId(Integer especialidadId);",
"public void leerPlanDieta(int id_paciente);",
"public int getIdContacto() {\r\n return idContacto;\r\n }",
"public String getIdProduto() {\r\n\t\treturn idProduto;\r\n\t}",
"public int getIden() {\n return iden;\n }",
"public void setIdProveedor(Integer idProveedor) {\n this.idProveedor = idProveedor;\n }",
"@Override\r\npublic int selectByPrimaryKey(Integer possalesdetailid) {\n\t\r\n\tPossalesdetail p= possalesdetail.selectByPrimaryKey(possalesdetailid);\r\n if(p.getPossalesdetailid()>0){\r\n \t\r\n \treturn 1;\r\n } else{\r\n\t return 0;\r\n }\r\n}",
"public int getReferencia() {\n return referencia;\n }",
"public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro\");\n }",
"@Override\n public long getPartidoId() {\n return _partido.getPartidoId();\n }",
"@Override\r\npublic Detalle_pedido read(int id) {\n\treturn detalle_pedidoDao.read(id);\r\n}",
"@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\r\n\tpublic Departamento buscar(int numId){\r\n\t\treturn em.find(Departamento.class, numId);\r\n\t}",
"public Long getIdProveedor() {\r\n return idProveedor;\r\n }",
"VentaJPA obtenerVenta(int comprobante);",
"public RechercheControlleur() {\n\t\t\n\t\tthis.modele = new RechercheModele(false);\n\t\tthis.setVue(new RechercheVue(this));\n\t\tmodele.addObserver(getVue());\n\t}",
"private String getIdRequisitante(long numOrdem)\n\t{\n\t\treturn procBatchPOA.getUserIDRequisitante(numOrdem);\n\t}",
"public void initialiserListeRdvReference(int idEleve){\r\n\r\n\t\tKlisteRdvBDD.loadFromDb(BDD.db,\"select * from assurer_lecon where idELEVE = \"+idEleve+\" order by idAgenda asc\");\r\n\t\t\r\n\t\tKlisteRdvAgenda.loadFromDb(BDD.db,\"select * from agenda where id in (select idAgenda from assurer_lecon where ideleve =\"+idEleve+\") \" +\r\n\t\t\t\t\"order by id asc\");\r\n\t}",
"public int getCaroserieId(String denumire) {\n c = db.rawQuery(\"select id from caroserii where denumire='\" + denumire + \"'\", new String[]{});\n int id=0;\n while(c.moveToNext()){\n id= c.getInt(0);\n }\n return id;\n }",
"public int getIdLibro()\n {\n return id;\n }",
"public ChoixEntreprise(final Long id_entreprise, final Long id_etudiant, final int ordre, final int duree) {\n this.id_entreprise = id_entreprise;\n this.id_etudiant = id_etudiant;\n this.ordre = ordre;\n this.duree = duree;\n }",
"public Tipo findByPrimaryKey(Integer idTipo) throws TipoDaoException;",
"public Produit getProduit(int theId);",
"public int getMarcaId(String denumire) {\n c = db.rawQuery(\"select id from marci where denumire='\" + denumire + \"'\", new String[]{});\n int id=0;\n while(c.moveToNext()){\n id= c.getInt(0);\n }\n return id;\n }",
"public ProveedorEntity getProveedor(Long id_proveedor){\n ProveedorEntity proveedor = proveedorPersistence.find(id_proveedor);\n if(proveedor == null){\n throw new IllegalArgumentException(\"El proveedor solicitado no existe\");\n }\n return proveedor;\n }",
"@ManyToOne(fetch = FetchType.EAGER)\n @JoinColumn(name = \"N_ID_IDENTIFICACION\", referencedColumnName = \"N_ID\", nullable = true)\n public TipoIdentificacion getTipoIdentificacion() {\n return tipoIdentificacion;\n }",
"public void setReferencia(int value) {\n this.referencia = value;\n }",
"public int getIdPersona(){\n return idPersona;\n}",
"public UnidadReceptora getUnidadReceptora(int idUnidadReceptora);",
"public void ajouterChambreDeCommerce(){\n }",
"public long getId_donacion() {\n\t\treturn id_donacion;\n\t}",
"public DetallesFacturaContratoVenta cargarDetalle(DetallesFacturaContratoVenta detallesFacturaContratoVenta)\r\n/* 77: */ {\r\n/* 78:103 */ CriteriaBuilder criteriaBuilder = this.em.getCriteriaBuilder();\r\n/* 79: */ \r\n/* 80: */ \r\n/* 81:106 */ CriteriaQuery<DetallesFacturaContratoVenta> cqCabecera = criteriaBuilder.createQuery(DetallesFacturaContratoVenta.class);\r\n/* 82:107 */ Root<DetallesFacturaContratoVenta> fromCabecera = cqCabecera.from(DetallesFacturaContratoVenta.class);\r\n/* 83: */ \r\n/* 84:109 */ Fetch<Object, Object> contratoVenta = fromCabecera.fetch(\"contratoVenta\", JoinType.LEFT);\r\n/* 85:110 */ Fetch<Object, Object> empresa = contratoVenta.fetch(\"empresa\", JoinType.LEFT);\r\n/* 86:111 */ empresa.fetch(\"cliente\", JoinType.LEFT);\r\n/* 87: */ \r\n/* 88:113 */ Path<Integer> pathId = fromCabecera.get(\"idDetallesFacturaContratoVenta\");\r\n/* 89:114 */ cqCabecera.where(criteriaBuilder.equal(pathId, Integer.valueOf(detallesFacturaContratoVenta.getIdDetallesFacturaContratoVenta())));\r\n/* 90:115 */ CriteriaQuery<DetallesFacturaContratoVenta> selectDetalleFacturaContratoVenta = cqCabecera.select(fromCabecera);\r\n/* 91: */ \r\n/* 92:117 */ DetallesFacturaContratoVenta auxDetalleFacturaContratoVenta = (DetallesFacturaContratoVenta)this.em.createQuery(selectDetalleFacturaContratoVenta).getSingleResult();\r\n/* 93: */ \r\n/* 94:119 */ this.em.detach(auxDetalleFacturaContratoVenta);\r\n/* 95: */ \r\n/* 96: */ \r\n/* 97:122 */ CriteriaQuery<ContratoVentaFacturaContratoVenta> cqDetalleContratoVentaFacturaContratoVenta = criteriaBuilder.createQuery(ContratoVentaFacturaContratoVenta.class);\r\n/* 98:123 */ Root<ContratoVentaFacturaContratoVenta> fromDetalleContratoVentaFacturaContratoVenta = cqDetalleContratoVentaFacturaContratoVenta.from(ContratoVentaFacturaContratoVenta.class);\r\n/* 99: */ \r\n/* 100:125 */ cqDetalleContratoVentaFacturaContratoVenta.where(criteriaBuilder.equal(fromDetalleContratoVentaFacturaContratoVenta.join(\"detallesFacturaContratoVenta\"), auxDetalleFacturaContratoVenta));\r\n/* 101:126 */ CriteriaQuery<ContratoVentaFacturaContratoVenta> selectContratoVentaFacturaContratoVenta = cqDetalleContratoVentaFacturaContratoVenta.select(fromDetalleContratoVentaFacturaContratoVenta);\r\n/* 102: */ \r\n/* 103:128 */ List<ContratoVentaFacturaContratoVenta> listaContratoVentaFacturaContratoVenta = this.em.createQuery(selectContratoVentaFacturaContratoVenta).getResultList();\r\n/* 104:129 */ auxDetalleFacturaContratoVenta.setListaContratoVentaFacturaContratoVenta(listaContratoVentaFacturaContratoVenta);\r\n/* 105: */ \r\n/* 106: */ \r\n/* 107:132 */ return auxDetalleFacturaContratoVenta;\r\n/* 108: */ }",
"public List<ViewEtudiantInscriptionEcheance> rechercheEtudiantInscripEcheanceParNomEtPrenom(){ \r\n try{ \r\n setListRechercheEtudiantInscripEcheance(viewEtudiantInscripEcheanceFacadeL.findEtudInscripByNonEtPrenomWithJocker(getViewEtudiantInscripEcheance().getNomEtPrenom())); \r\n }catch (Exception ex) {\r\n System.err.println(\"Erreur capturée : \"+ex);\r\n }\r\n return listRechercheEtudiantInscripEcheance;\r\n }"
] | [
"0.62701714",
"0.6190707",
"0.6111147",
"0.601875",
"0.5828596",
"0.57642156",
"0.57554495",
"0.57322174",
"0.569789",
"0.5673918",
"0.55736935",
"0.5563684",
"0.5481452",
"0.54572964",
"0.5454516",
"0.5447208",
"0.5443973",
"0.5438562",
"0.5426521",
"0.54147327",
"0.54006195",
"0.5400039",
"0.5395737",
"0.538038",
"0.537175",
"0.5371542",
"0.53679925",
"0.53621536",
"0.5361394",
"0.5344117",
"0.5329649",
"0.5321097",
"0.53120846",
"0.5309849",
"0.53087366",
"0.5301211",
"0.52933145",
"0.5280175",
"0.52792495",
"0.5278401",
"0.5276682",
"0.5269868",
"0.526825",
"0.5253384",
"0.52463824",
"0.5244693",
"0.52400076",
"0.5237962",
"0.52375346",
"0.5228426",
"0.52236617",
"0.522357",
"0.5222841",
"0.52169114",
"0.5215",
"0.52100474",
"0.5192431",
"0.5188492",
"0.5178568",
"0.51762587",
"0.5174072",
"0.51738507",
"0.51690805",
"0.5168581",
"0.51685524",
"0.51682746",
"0.51661646",
"0.5162923",
"0.5159315",
"0.51416796",
"0.5131086",
"0.5127202",
"0.5118621",
"0.511702",
"0.51146054",
"0.5114161",
"0.51130813",
"0.5109359",
"0.51079565",
"0.5107907",
"0.50914514",
"0.50900173",
"0.5082586",
"0.5081503",
"0.50775594",
"0.5069742",
"0.5068165",
"0.5066427",
"0.5066214",
"0.50649977",
"0.50639063",
"0.50610596",
"0.5056002",
"0.50542516",
"0.50526845",
"0.5051484",
"0.5050628",
"0.50443155",
"0.5042907",
"0.5042576"
] | 0.78896046 | 0 |
Apply the default values. | public Decouverte withDefaults() {
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initDefaultValues() {\n }",
"protected void performDefaults() {\r\n\t}",
"private void processPropDefaultValues() {\n getMethodsWithAnnotation(component, PropDefault.class).forEach(method -> {\n PropDefault propValidator = method.getAnnotation(PropDefault.class);\n\n String exposedMethodName = exposeExistingJavaMethodToJs(method);\n String propertyName = propValidator.value();\n optionsBuilder.addStatement(\"options.addJavaPropDefaultValue(p.$L, $S)\",\n exposedMethodName,\n propertyName);\n });\n }",
"@Override\n public void convertToDefaultValueOps() {\n\n }",
"public void loadDefaultValues() {\r\n\t}",
"@Override\n\tpublic void recalculate() {\n\t\tthis.constant = Convert.MapEntry.toBoolean(this.getAttributes(), \"constant\", false);\n\t\tfinal Object defaultObject = Base.getJava(this.getAttributes(), \"default\", null);\n\t\tif (defaultObject == null) {\n\t\t\tthis.defaultValue = null;\n\t\t} else {\n\t\t\tif (defaultObject instanceof Set<?>) {\n\t\t\t\tthis.defaultValue = (Set<?>) defaultObject;\n\t\t\t} else if (defaultObject instanceof Collection<?>) {\n\t\t\t\tthis.defaultValue = Create.tempSet((Collection<?>) defaultObject);\n\t\t\t} else if (defaultObject instanceof Object[]) {\n\t\t\t\tthis.defaultValue = Create.tempSet(Arrays.asList((Object[]) defaultObject));\n\t\t\t} else {\n\t\t\t\tfinal String defaultString = defaultObject.toString();\n\t\t\t\tif (defaultString.length() == 0) {\n\t\t\t\t\tthis.defaultValue = Create.tempSet();\n\t\t\t\t} else {\n\t\t\t\t\tthis.defaultValue = Create.tempSet(Arrays.asList((Object[]) defaultString.split(\",\")));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void updateDefaultValues(DefaultValues defValue) throws NbaDataAccessException {\n setDefValuesKeys(defValue); //SPR2741\n nbaAcdb.updateDefaultValues(defValue);\n }",
"@Override\n\tpublic void fillDefault(Value v) {\n\n\t}",
"@Override\n\tprotected void performDefaults() {\n\t\tif (fields != null) {\n\t\t\tIterator<FieldEditor> e = fields.iterator();\n\t\t\twhile (e.hasNext()) {\n\t\t\t\tFieldEditor pe = e.next();\n\t\t\t\tpe.loadDefault();\n\t\t\t}\n\t\t}\n\t\t// Force a recalculation of my error state.\n\t\tcheckState();\n\t\tsuper.performDefaults();\n\t}",
"public void setParametersToDefaultValues()\n/* 65: */ {\n/* 66:104 */ super.setParametersToDefaultValues();\n/* 67:105 */ this.placeholder = _placeholder_DefaultValue_xjal();\n/* 68: */ }",
"public Object getDefaultValue();",
"public Object getDefaultValue();",
"public void fillDefaultValues() {\n checkUsingAdaptation();\n tfSemiSaturation.setText(Double.toString(prototypeRule\n .getSemiSaturationConstant()));\n tfSteepness.setText(Double.toString(prototypeRule.getSteepness()));\n tfTimeConstant\n .setText(Double.toString(prototypeRule.getTimeConstant()));\n tsNoise.setSelected(prototypeRule.getAddNoise());\n tsUseAdaptation.setSelected(prototypeRule.getUseAdaptation());\n tfAdaptationTime.setText(Double.toString(prototypeRule\n .getAdaptationTimeConstant()));\n tfAdaptationParam.setText(Double.toString(prototypeRule\n .getAdaptationParameter()));\n randTab.fillDefaultValues();\n }",
"protected void setToDefault(){\n\n\t}",
"PreferenceDefaultValueAttribute getDefaultValue();",
"public abstract String[] getDefaultValues();",
"private static void replacenullwithdefaultvalue(Map<Integer, Integer> map1, int defaultValue) {\n\t\t Map<Object, Object> map = map1.entrySet() \n .stream() \n .map(entry -> { \n if (entry.getValue() == null) \n entry.setValue(defaultValue); \n return entry; \n }) \n .collect(Collectors.toMap(Map.Entry::getKey, \n Map.Entry::getValue)); \n \n\t\tSystem.out.println(map);\n\t}",
"@RestrictTo(Scope.LIBRARY_GROUP)\n protected UseCaseConfig<?> applyDefaults(\n UseCaseConfig<?> userConfig,\n UseCaseConfig.Builder<?, ?, ?> defaultConfigBuilder) {\n\n // If any options need special handling, this is the place to do it. For now we'll just copy\n // over all options.\n for (Option<?> opt : userConfig.listOptions()) {\n @SuppressWarnings(\"unchecked\") // Options/values are being copied directly\n Option<Object> objectOpt = (Option<Object>) opt;\n\n defaultConfigBuilder.getMutableConfig().insertOption(\n objectOpt, userConfig.retrieveOption(objectOpt));\n }\n\n @SuppressWarnings(\n \"unchecked\") // Since builder is a UseCaseConfig.Builder, it should produce a\n // UseCaseConfig\n UseCaseConfig<?> defaultConfig = defaultConfigBuilder.build();\n return defaultConfig;\n }",
"public void setToDefault();",
"private void setValoresDefault()\n\t{\n\t\t// seta valores default dos campos\n\t\tlmResumo.clear();\n\n\t\tlmResumo.addElement(\"10000000\");\n\t\tlmResumo.addElement(\"20000000\");\n\t\tlmResumo.addElement(\"30000000\");\n\t\tlmResumo.addElement(\"40000000\");\n\t\tlmResumo.addElement(\"50000000\");\n\n\t\tjTFQTdRegistroBD.setText(null);\n\n\t\tjCBSmall.setSelected(true);\n\t\tjCBLarge.setSelected(true);\n\t\tjCBExtra.setSelected(true);\n\n\t\tjTFSlaps.setText(\"5\");\n\n\t\tatualizarGraficos(new TreeMap<Long, List<ResultadoVO>>());\n\n\t}",
"private void setDefaultValues()\r\n\t{\r\n\t\tif (m_receiverAddress == null || m_receiverAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_receiverAddress = \"jap@inf.tu-dresden.de\";\r\n\t\t}\r\n\r\n\t\tif (m_replyAddress == null || m_replyAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_replyAddress = \"no return\";\r\n\t\t}\r\n\r\n\t\tif (m_senderName == null || m_senderName.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_senderName = \"Unknown Sender\";\r\n\t\t}\r\n\r\n\t\tif (m_subject == null || m_subject.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_subject = \"AN.ON support request\";\r\n\t\t}\r\n\r\n\t\tif (m_bodyText == null || m_bodyText.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_bodyText = \"message is empty\";\r\n\t\t}\r\n\r\n\t}",
"private static void applyDefaults(Configuration configuration) {\n // TODO\n }",
"public void initializeDefault() {\n\t\tthis.numAuthorsAtStart = 5;\n\t\tthis.numPublicationsAtStart = 20;\n\t\tthis.numCreationAuthors = 0;\n\t\tthis.numCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tyearInformation.initializeDefault();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.initializeDefault();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\tauthorParameters.initializeDefault();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t\ttopicParameters.initializeDefault();\n\t}",
"@Override\n public void applyDefaults(DynamicSkill skill, String prefix) { }",
"public void applyDefaults(DataSection defaults)\n {\n for (String key : defaults.keys)\n {\n if (defaults.comments.containsKey(key))\n {\n setComments(key, defaults.comments.get(key));\n }\n if (defaults.isSection(key))\n {\n DataSection section = defaultSection(key);\n section.applyDefaults(defaults.getSection(key));\n }\n else checkDefault(key, defaults.get(key));\n }\n }",
"public void initDefaultValues(PathologyReportReviewParameter t)\r\n\t{\n\r\n\t}",
"public static DefaultExpression default_() { throw Extensions.todo(); }",
"@Override\n\tpublic void setDefaultParameters() {\n\t\tprobCatch = (probCatchBounds.get(0) + probCatchBounds.get(2)) / 2;\n\t}",
"private void setDefaultValueIfMissing() {\n if (!getType().isNumber() || !hasValidation()) {\n return;\n }\n if (!hasDefaultValue()) {\n if (validation.hasMinimum()) {\n setDefaultValue(validation.getMinimum());\n } else {\n if (validation.hasMaximum()) {\n setDefaultValue(validation.getMaximum());\n }\n }\n }\n }",
"@Override\n public void applyDefaults(DynamicSkill skill, String prefix) {\n skill.checkDefault(prefix + DAMAGE, 1, 0);\n skill.checkDefault(prefix + DURATION, 5, 2);\n skill.checkDefault(prefix + FREQUENCY, 1, 0);\n if (!skill.isSet(LETHAL)) skill.setValue(LETHAL, 0);\n }",
"private void setDefaultValues() {\r\n this.nodeDegreeSpinner.setValue(display_node_degree_default);\r\n this.displayEdgesSpinner.setValue(display_edges_default);\r\n this.scaleSpinner.setValue(scale_default);\r\n this.minweightSpinner.setValue(minweight_edges_default);\r\n this.iterationsSpinner.setValue(iterations_default);\r\n this.vote_value.setValue(vote_value_default);\r\n this.mut_value.setValue(mut_value_default);\r\n this.keep_value.setValue(keepclass_value_default);\r\n\r\n this.only_sub.setSelected(display_sub_default);\r\n this.top.setSelected(true);\r\n this.continuous.setSelected(true);\r\n this.dec.setSelected(true);\r\n this.vote_value.setEnabled(false);\r\n this.is_alg_started = false;\r\n }",
"String getDefaultValue();",
"String getDefaultValue();",
"T getDefaultValue();",
"@Test\n public void defaultValueTest() {\n String[] commandLine = new String[0];\n\n parsingEngine.addArgumentSource( DefaultValueArgProvider.class );\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n DefaultValueArgProvider argProvider = new DefaultValueArgProvider();\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 42, \"Default value is not correctly initialized\");\n\n // Then try to override it.\n commandLine = new String[] { \"--value\", \"27\" };\n\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 27, \"Default value is not correctly initialized\");\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n void setDefaults() {\n //Do nothing\n }",
"public DefaultAttribute( String upId, Value... vals )\n {\n // The value can be null, this is a valid value.\n if ( vals[0] == null )\n {\n add( new Value( ( String ) null ) );\n }\n else\n {\n for ( Value val : vals )\n {\n add( val );\n }\n }\n\n setUpId( upId );\n }",
"Object getDefaultValue(String key);",
"ParameterableElement getDefault();",
"private void setDefaultValues() {\n\t// Caeli scroll bar\n\tint scrollValue = caeliScroll.getMaximum() - caeliScroll.getValue();\n\tparent.setCaeliDensity( scrollValue / 100.0 );\n\n\t// Planet count scroll bar\n\tscrollValue = planetScroll.getMaximum() - planetScroll.getValue();\n\tparent.setPlanetCount( scrollValue );\n\n\t// Triangle size\n\tscrollValue = triSizeScroll.getMaximum() - triSizeScroll.getValue()\n\t + triFineSizeScroll.getMaximum() - triFineSizeScroll.getValue();\n\tparent.setDustTrianglesThreshold( scrollValue );\n\n\t// Particle attractions\n\tint strnScrollValue = attStrengthScroll.getMaximum() - attStrengthScroll.getValue();\n\tint distScrollValue = attDistanceScroll.getMaximum() - attDistanceScroll.getValue();\n\tparent.setAttraction( distScrollValue, strnScrollValue );\n }",
"T defaultValue();",
"float getWithDefault(int idx, float defaultVal);",
"void generateDefaultValue(Builder methodBuilder);",
"public static void main(String[] args) {\n\t\tMap<Integer, Integer> map = new HashMap<>(); \n map.put(1, 1); \n map.put(2, 2); \n map.put(3, null); \n map.put(4, 4); \n map.put(5, null); \n map.put(6, null); \n \n int defaultValue=0;\n \n replacenullwithdefaultvalue(map,defaultValue);\n\t}",
"public void initDefaultValues(SurgicalPathologyReport t)\r\n\t{\n\r\n\t}",
"public void initDefaultValues(BinaryContent t)\r\n\t{\n\r\n\t}",
"ForDefaultValue(@MaybeNull Object value, int load, int returned, int size) {\n this.value = value;\n this.load = load;\n this.returned = returned;\n this.size = size;\n }",
"public void populateEntityModelDefaultValues() throws DeploymentException {\n LogHelperDeployment.getLogger().fine(\n i18NHelper.msg(\"MSG_PopulatingDefaultsForEntityModel\")); // NOI18N\n du.getPersistenceJar().accept(new TreeWalker(this));\n }",
"private void assignUsersToDefaultRole() {\n List<Role> roles = (List<Role>) roleService.listAll();\n List<CustomUser> users = (List<CustomUser>) userService.listAll();\n\n users.forEach(user -> {\n if(user.getRoles().size() < 1) {\n roles.forEach(role -> {\n user.addRole(role);\n userService.save(user);\n });\n }\n });\n log.debug(\"Default roles have been assigned to users!\");\n }",
"public void setDefaultValue() throws Exception {\n\t\tString columns[] = CommonUtil.split(getFrwVarDefaultColumn(), \",\");\n\t\tString values[] = CommonUtil.split(getFrwVarDefaultValue(), \",\");\n\n\t\tif (CommonUtil.isNotEmpty(columns)) {\n\t\t\tfor (int i=0; i<columns.length; i++) {\n\t\t\t\tsetValue(columns[i], values[i]);\n\t\t\t}\n\t\t}\n\t}",
"private void setDefaultConfiguration(){\n\t\tthis.setProperty(\"DefaultNodeCapacity\", \"5\");\n\t\tthis.setProperty(\"ReplicaNumber\", \"3\");\n\t\tthis.setProperty(\"JobReattemptTimes\", \"2\");\n\t\tthis.setProperty(\"ReducerCount\", \"3\");\n\t}",
"public double getDefaultValue() {\n return defaultValue;\n }",
"public final void setDefautlVals() {\n this.createTime = this.writeTime = GlobalMethods.getTimeStamp(null);\n this.createId = this.writeId = PackagingVars.context.getUser().getId();\n }",
"public void initialiseValues() {\n\t\tif (validationRule == null) { // NOSONAR\n\t\t\tvalidationRule = Optional.empty();\n\t\t}\n\t}",
"private void setDefaultScores() {\n\t\tif (readPreference(GlobalModel.BESTSCORE_EASY) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_EASY);\n\t\t}\n\t\t\n\t\tif (readPreference(GlobalModel.BESTSCORE_MEDIUM) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_MEDIUM);\n\t\t}\n\t\t\n\t\tif (readPreference(GlobalModel.BESTSCORE_HARD) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_HARD);\n\t\t}\n\t\t\n\t\tif (readPreference(GlobalModel.BESTSCORE_CUSTOM) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_CUSTOM);\n\t\t}\n\t}",
"@Override\n\tpublic void initializeValues() {\n\n\t}",
"private void initDefaults() {\n _nodeFadeSourceColor = _defNodeFadeSourceColor;\n _nodeFadeDestinationColor = _defNodeFadeDestinationColor;\n\n _nodeStrokeSourceColor = _defNodeStrokeSourceColor;\n _nodeStrokeDestinationColor = _defNodeStrokeDestinationColor;\n\n _nodeStrokeSourceWidth = _defNodeStrokeSourceWidth;\n _nodeStrokeDestinationWidth = _defNodeStrokeDestinationWidth;\n\n _supportEdgeFadeSourceColor = _defSupportEdgeFadeSourceColor;\n _supportEdgeFadeDestinationColor = _defSupportEdgeFadeDestinationColor;\n\n _refuteEdgeFadeSourceColor = _defRefuteEdgeFadeSourceColor;\n _refuteEdgeFadeDestinationColor = _defRefuteEdgeFadeDestinationColor;\n\n _edgeStrokeSourceWidth = _defEdgeStrokeSourceWidth;\n _edgeStrokeDestinationWidth = _defEdgeStrokeDestinationWidth;\n\n _curvedLines = _defCurvedLines;\n\n _manualBackgroundColor = _defManualBackgroundColor;\n\n _realTimeSliderResponse = _defRealTimeSliderResponse;\n }",
"com.google.protobuf.Value getDefaultValue();",
"private void loadDefaultValues() {\n for (Map.Entry<EditText, Integer> e : mPrefKeys.entrySet()) {\n e.getKey().setText(Pref.getDefault(this, e.getValue()));\n }\n }",
"DefaultAttribute( AttributeType attributeType, String upId, String normId, boolean isHR,\n int hashCode, Value... values )\n {\n this.attributeType = attributeType;\n this.upId = upId;\n this.id = normId;\n this.isHR = isHR;\n this.h = hashCode;\n\n if ( values != null )\n {\n for ( Value value : values )\n {\n this.values.add( value );\n }\n }\n }",
"private void defaultPerAllegatoAtto() {\n\t\tif(allegatoAtto.getFlagRitenute() == null) {\n\t\t\tallegatoAtto.setFlagRitenute(Boolean.FALSE);\n\t\t}\n\t\t//SIAC-6426\n\t\tif(allegatoAtto.getVersioneInvioFirma() == null){\n\t\t\tallegatoAtto.setVersioneInvioFirma(0);\n\t\t}\n\t}",
"private void initValues() {\n \n }",
"private T setDefaultValue(T t) {\n\t\tif(t.getStatus() == null) {\n\t\t\tt.setStatus(1);\n\t\t}\n\t\tif(t.getCreateTime() == null) {\n\t\t\tt.setCreateTime(new Date());\n\t\t}\n\t\tif(t.getUpdateTime() == null) {\n\t\t\tt.setUpdateTime(new Date());\n\t\t}\n\t\treturn t;\n\t}",
"public void initDefaultValues(ReportLoaderQueue t)\r\n\t{\n\r\n\t}",
"public void returnDefault();",
"private void initDefaultAttrs() {\n DisplayMetrics dm = getResources().getDisplayMetrics();\n textSize = (int) TypedValue.applyDimension(\n TypedValue.COMPLEX_UNIT_SP, DEFAULT_TEXT_SIZE_SP, dm);\n iconSize = (int) TypedValue.applyDimension(\n TypedValue.COMPLEX_UNIT_DIP, DEFAULT_ICON_SIZE_DP, dm);\n }",
"public void setDefaultValue(final Object defaultValue);",
"private Object setDefaultValue(Object value, Object defaultValue){\r\n\t\tif(value !=null && (value instanceof String && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse if(value !=null && (value instanceof Double && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse if(value !=null && (value instanceof Integer && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse if(value !=null && (value instanceof Long && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn defaultValue;\r\n\t\t}\r\n\t}",
"private Object setDefaultValue(Object value, Object defaultValue){\r\n\t\tif(value !=null && (value instanceof String && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse if(value !=null && (value instanceof Double && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse if(value !=null && (value instanceof Integer && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse if(value !=null && (value instanceof Long && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn defaultValue;\r\n\t\t}\r\n\t}",
"public void SetDefaultParams() {\n OCCwrapJavaJNI.BRepAlgo_NormalProjection_SetDefaultParams(swigCPtr, this);\n }",
"public ReqTable withDefaults() {\n return this;\n }",
"@Override\n\tpublic void apply() {\n\t\t\n\t}",
"private GridCoverageRequest setStandardReaderDefaults(GridCoverageRequest subsettingRequest) throws IOException {\n DateRange temporalSubset = subsettingRequest.getTemporalSubset();\n NumberRange<?> elevationSubset = subsettingRequest.getElevationSubset();\n Map<String, List<Object>> dimensionSubset = subsettingRequest.getDimensionsSubset();\n\n // Reader is not a StructuredGridCoverage2DReader instance. Set default ones with policy \"time = max, elevation = min\".\n\n // Setting default time\n if (temporalSubset == null) {\n // use \"max\" as the default\n Date maxTime = accessor.getMaxTime();\n if (maxTime != null) {\n temporalSubset = new DateRange(maxTime, maxTime);\n }\n }\n\n // Setting default elevation\n if (elevationSubset == null) {\n // use \"min\" as the default\n Number minElevation = accessor.getMinElevation();\n if (minElevation != null) {\n elevationSubset = new NumberRange(minElevation.getClass(), minElevation, minElevation);\n }\n }\n\n // Setting default custom dimensions\n final List<String> customDomains = accessor.getCustomDomains();\n int availableCustomDimensions = 0; \n int specifiedCustomDimensions = 0;\n if (customDomains != null && !customDomains.isEmpty()) {\n availableCustomDimensions = customDomains.size();\n specifiedCustomDimensions = dimensionSubset != null ? dimensionSubset.size() : 0; \n if (dimensionSubset == null) {\n dimensionSubset = new HashMap<String, List<Object>>();\n }\n }\n if (availableCustomDimensions != specifiedCustomDimensions) {\n setDefaultCustomDimensions(customDomains, dimensionSubset);\n }\n\n subsettingRequest.setDimensionsSubset(dimensionSubset);\n subsettingRequest.setTemporalSubset(temporalSubset);\n subsettingRequest.setElevationSubset(elevationSubset);\n return subsettingRequest;\n }",
"public DefaultAttribute( String upId, String... vals )\n {\n try\n {\n add( vals );\n }\n catch ( LdapInvalidAttributeValueException liave )\n {\n // Do nothing, it can't happen\n }\n\n setUpId( upId );\n }",
"@Override\n\tprotected void performDefaults() {\n\t\t// Get the preference store\n\t\tfinal IPreferenceStore preferenceStore = getPreferenceStore();\n\n\t\tspiLength.setSelection(preferenceStore.getDefaultInt(DEFAULT_PASSWORD_LENGTH));\n\t\tbtnUseLowercase.setSelection(preferenceStore.getDefaultBoolean(USE_LOWERCASE_LETTERS));\n\t\tbtnUserUppercase.setSelection(preferenceStore.getDefaultBoolean(USE_UPPERCASE_LETTERS));\n\t\tbtnUseDigits.setSelection(preferenceStore.getDefaultBoolean(USE_DIGITS));\n\t\tbtnUseSymbols.setSelection(preferenceStore.getDefaultBoolean(USE_SYMBOLS));\n\t\tbtnUseEaseToRead.setSelection(preferenceStore.getDefaultBoolean(USE_EASY_TO_READ));\n\t\tbtnUseHexOnly.setSelection(preferenceStore.getDefaultBoolean(USE_HEX_ONLY));\n\n\t}",
"com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder();",
"@Override\n protected void setStoppingCriteria(Model.Parameters parms, Model.Parameters defaults) {\n }",
"public AnnotationDefaultAttr(ElemValPair s) { //\r\n elem = s;\r\n }",
"private void defaultForEmptyConditions()\n {\n /*\n * When any of the Conditions has all Left Hand Side, Operator and\n * Right Hand Side as empty then set Operator to default value of\n * CVL_WF_OPRSImpl.EQUAL(mimic default situation).\n * Note if this is not done then the condition will store null value\n * for Left Hand Side, Operator and Right Hand Side, and the whole condition\n * record will not be displayed on \"Manage Approval Conditions\" page\n * because the page selection query uses an equal join with R_WF_APRV_COND\n * and CVL_WF_OPRS tables.\n */\n for ( int liCtr = 1 ; liCtr <= 5 ; liCtr++ )\n {\n if( isNull(\"AND_COND_LHS_\" + liCtr) && isNull(\"AND_COND_OPR_\" + liCtr)\n && isNull(\"AND_COND_RHS_\" + liCtr) )\n {\n getData(\"AND_COND_OPR_\" + liCtr).setbyte((byte)3);\n }\n }//end for\n }",
"static public void setDefaultInt (int newMissingInt) {\n defaultInt = newMissingInt;\n }",
"public static int collectDefaults()\n/* */ {\n/* 131 */ int flags = 0;\n/* 132 */ for (Feature f : values()) {\n/* 133 */ if (f.enabledByDefault()) flags |= f.getMask();\n/* */ }\n/* 135 */ return flags;\n/* */ }",
"@Nullable\n protected abstract T substituteDefault(@Nullable T value);",
"public final void restoreValueDefault(){\n wChanged = false;\n //T xValueDefault = getValueDefault();\n try {\n wValue = this.getValueDefault(); //xValueDefault;\n wValueOriginal = wValue;\n setMessage(null);\n\t\t} catch (Exception xE) {\n\t\t\twLogger.error(xE);\n\t\t}\n }",
"@Override\n\tpublic Object visitDefaultValueStatements(DefaultValue defaultValue) {\n\t\treturn null;\n\t}",
"@Override\n public void apply() {\n }",
"private Object setDefaultValue(Object value, Object defaultValue) {\r\n\t\tif (value != null && (value instanceof String && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else if (value != null && (value instanceof Double && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else if (value != null && (value instanceof Integer && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else if (value != null && (value instanceof Long && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else {\r\n\t\t\treturn defaultValue;\r\n\t\t}\r\n\t}",
"private Object setDefaultValue(Object value, Object defaultValue) {\r\n\t\tif (value != null && (value instanceof String && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else if (value != null && (value instanceof Double && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else if (value != null && (value instanceof Integer && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else if (value != null && (value instanceof Long && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else {\r\n\t\t\treturn defaultValue;\r\n\t\t}\r\n\t}",
"public void fixConfigValues() {\n String cooldown = getConfig().getString(\"Config.Default-Cooldown\");\n if (cooldown.equalsIgnoreCase(\"-1\")) {\n logger.warning(String.format(\"[%s] Patching Config Value\", new Object[]{getDescription().getName()}));\n getConfig().set(\"Config.Default-Cooldown\", \"0\");\n }\n double price = getConfig().getDouble(\"Config.Default-Price\");\n if (price == -1) {\n logger.warning(String.format(\"[%s] Patching Config Value\", new Object[]{getDescription().getName()}));\n getConfig().set(\"Config.Default-Price\", 0);\n }\n int limit = getConfig().getInt(\"Config.Default-Kit-Limit\");\n if (limit == -1) {\n logger.warning(String.format(\"[%s] Patching Config Value\", new Object[]{getDescription().getName()}));\n getConfig().set(\"Config.Default-Kit-Limit\", 0);\n }\n }",
"public void setDefaultParameters() {\n\t\toptions = 0;\n\t\toutBits = null;\n\t\ttext = new byte[0];\n\t\tyHeight = 3;\n\t\taspectRatio = 0.5f;\n\t}",
"private void updateDefaultValue(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\t\t\n\t\t((QuestionDef)propertiesObj).setDefaultValue(txtDefaultValue.getText());\n\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t}",
"@StyleDefaults(ELEMENT_ID)\n public static void initializeDefaultStyles(Styles styles, Attributes attrs) {\n styles.getSelector(meid, null).set(\"setReadfieldPreferredWidth\", 50, false);\n styles.getSelector(meid, null).set(\"setHeadlineHAlignment\", HAlignment.Center, false);\n styles.getSelector(meid, null).set(\"setReadfieldimagewidth\", 0f, false);\n styles.getSelector(meid, null).set(\"setReadfieldimageheight\", 0f, false);\n }",
"abstract public E addDefault();",
"private MetricValues metricValues(Set<MachineMetric> customSet,\n List<MachineMetric> defaults, List<Long> values) {\n List<MachineMetric> actualMetrics = defaults;\n List<Long> actualValues = values;\n if (customSet.size() > 0) {\n // custom set of machine metrics specified\n actualMetrics = new ArrayList<MachineMetric>();\n actualValues = new ArrayList<Long>();\n for (int i=0; i < defaults.size(); i++) {\n MachineMetric mm = defaults.get(i);\n if (customSet.contains(mm)) {\n actualMetrics.add(mm);\n actualValues.add(values.get(i));\n }\n }\n }\n return new MetricValues(actualMetrics, actualValues);\n }",
"public\n void setPropertiesDefaults(YutilProperties argprops)\n {\n if (argprops == null)\n return;\n\n // Copy all key/val pairs\n for (Enumeration ep = argprops.propertyNames(); ep.hasMoreElements(); )\n {\n String key = (String)ep.nextElement();\n String val = key + \"=\" + argprops.getProperty(key);\n setPropertiesDefaults(val, false);\n }\n }",
"public InsertStatement withDefaults(AliasedFieldBuilder... defaultValues) {\r\n return copyOnWriteOrMutate(\r\n b -> b.withDefaults(defaultValues),\r\n () -> {\r\n for (AliasedField currentValue : Builder.Helper.buildAll(Lists.newArrayList(defaultValues))) {\r\n if (StringUtils.isBlank(currentValue.getAlias())) {\r\n throw new IllegalArgumentException(\"Cannot specify a blank alias for a field default\");\r\n }\r\n fieldDefaults.put(currentValue.getAlias(), currentValue);\r\n }\r\n }\r\n );\r\n }",
"public void setCreationDefaultValues()\n {\n this.setDescription(this.getPropertyID()); // Warning: will be lower-case\n this.setDataType(\"\"); // defaults to \"String\"\n this.setValue(\"\"); // clear value\n //super.setRuntimeDefaultValues();\n }",
"public RegularExpressionsDTO addDefaults()\n {\n addExpression(\"textField\", TextOnlyField);\n addExpression(\"textFieldMin3\", TextFieldMin3);\n addExpression(\"alphaNumericField\", AlphaNumericField);\n addExpression(\"emailField\", EmailPattern);\n return this;\n }",
"public static IonModification[] getDefaultValuesPos() {\n return Arrays.copyOf(DEFAULT_VALUES_POSITIVE, DEFAULT_VALUES_POSITIVE.length);\n }",
"@VTID(12)\n @DefaultMethod\n @UseDefaultValues(paramIndexMapping = {0, 1, 2, 4}, optParamIndex = {3}, javaType = {int.class}, nativeType = {NativeType.Int32}, variantType = {Variant.Type.VT_I4}, literal = {\"1033\"})\n @ReturnValue(index=4)\n com.exceljava.com4j.excel.Name _Default(\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object index,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object indexLocal,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object refersTo);",
"public DslBoundaryExtractor defaultValue(String defaultValue) {\n this.defaultValue = defaultValue;\n return this;\n }",
"public DefaultAttribute( String upId, byte[]... vals )\n {\n try\n {\n add( vals );\n }\n catch ( LdapInvalidAttributeValueException liave )\n {\n // Do nothing, this can't happen\n }\n\n setUpId( upId );\n }"
] | [
"0.70428795",
"0.7002045",
"0.6835955",
"0.6523878",
"0.65069526",
"0.6500318",
"0.6360638",
"0.61991286",
"0.61159045",
"0.61083454",
"0.60634214",
"0.60634214",
"0.5994268",
"0.59852034",
"0.59826183",
"0.59769785",
"0.59754",
"0.5970761",
"0.59692574",
"0.59493744",
"0.59018576",
"0.5813863",
"0.5801257",
"0.5791991",
"0.5777373",
"0.5755456",
"0.57515746",
"0.5719326",
"0.5717639",
"0.5706244",
"0.5704877",
"0.5690718",
"0.5690718",
"0.56697315",
"0.5666658",
"0.5606196",
"0.55789346",
"0.55690455",
"0.54971784",
"0.5488578",
"0.5474932",
"0.5467826",
"0.5466684",
"0.54563636",
"0.54268456",
"0.5416508",
"0.5416413",
"0.5407245",
"0.5398627",
"0.5398173",
"0.5391846",
"0.53737247",
"0.5364452",
"0.5360578",
"0.5350501",
"0.53502667",
"0.535009",
"0.53494436",
"0.534436",
"0.53344244",
"0.5334194",
"0.53180957",
"0.52873164",
"0.5283683",
"0.5282749",
"0.52723724",
"0.5268932",
"0.52621764",
"0.52621764",
"0.52580565",
"0.5257903",
"0.52509034",
"0.52458507",
"0.524561",
"0.5243436",
"0.52336186",
"0.523282",
"0.5231238",
"0.5227093",
"0.5222361",
"0.52056766",
"0.520452",
"0.52026296",
"0.51856345",
"0.5180888",
"0.517999",
"0.517999",
"0.5178471",
"0.51722103",
"0.51693696",
"0.5162154",
"0.514227",
"0.51375955",
"0.5128376",
"0.5119464",
"0.51183903",
"0.51057625",
"0.5102856",
"0.5101211",
"0.5094882",
"0.50886244"
] | 0.0 | -1 |
Equals implementation using a business key. | @Override
public boolean equals(Object other) {
return this == other || (other instanceof Decouverte && hashCode() == other.hashCode());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract boolean equalityTest(Object key, Object key2);",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof OrdenitemPK)) {\r\n return false;\r\n }\r\n OrdenitemPK other = (OrdenitemPK) object;\r\n if (this.ordencompraNumeroorden != other.ordencompraNumeroorden) {\r\n return false;\r\n }\r\n if (this.libroIsbn != other.libroIsbn) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tAttributeKey ak = (AttributeKey)obj;\r\n\t\treturn this.key.equals(ak.getKey());\r\n\t}",
"public boolean equals(Object other) {\n\t\tif (other instanceof BusinessObject) {\n\t\t\treturn this == other;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof MestoPK)) {\r\n return false;\r\n }\r\n MestoPK other = (MestoPK) object;\r\n if (this.mestoId != other.mestoId) {\r\n return false;\r\n }\r\n if (this.ustanovaId != other.ustanovaId) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TipoTratamientoObraSocialPK)) {\r\n return false;\r\n }\r\n TipoTratamientoObraSocialPK other = (TipoTratamientoObraSocialPK) object;\r\n if (this.tipotratamientoid != other.tipotratamientoid) {\r\n return false;\r\n }\r\n if (this.obrasocialid != other.obrasocialid) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public abstract boolean equals(Object other);",
"@Override\n public abstract boolean equals(Object other);",
"@Override\n\tpublic abstract boolean equals(Object other);",
"public abstract boolean equals(Object other);",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CostoActividadPK)) {\n return false;\n }\n CostoActividadPK other = (CostoActividadPK) object;\n if (this.numeroPeriodo != other.numeroPeriodo) {\n return false;\n }\n if ((this.idActividad == null && other.idActividad != null) || (this.idActividad != null && !this.idActividad.equals(other.idActividad))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof EmpresaPK)) {\r\n return false;\r\n }\r\n EmpresaPK other = (EmpresaPK) object;\r\n if (this.id != other.id) {\r\n return false;\r\n }\r\n if (this.contactoEmpresaid != other.contactoEmpresaid) {\r\n return false;\r\n }\r\n if (this.direccionEmpresaid != other.direccionEmpresaid) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CriteriocotizacionPK)) {\n return false;\n }\n CriteriocotizacionPK other = (CriteriocotizacionPK) object;\n if (this.criterioEvaluacionCoCriterio != other.criterioEvaluacionCoCriterio) {\n return false;\n }\n if (this.cotizacionNuCotizacion != other.cotizacionNuCotizacion) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CatGeneralAeweb)) {\n return false;\n }\n CatGeneralAeweb other = (CatGeneralAeweb) object;\n if ((this.catGeneralAewebPK == null && other.catGeneralAewebPK != null) || (this.catGeneralAewebPK != null && !this.catGeneralAewebPK.equals(other.catGeneralAewebPK))) {\n return false;\n }\n return true;\n }",
"public boolean equals(IEntityPK obj) {\n if (obj instanceof CarWashConfigPK) {\n return true;\n }\n return false;\n }",
"@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createForTerm(t1);\n PredicateKey k2 = PredicateKey.createForTerm(t2);\n testEquals(k1, k2);\n }",
"@Override\n public abstract boolean equals(final Object o);",
"@Override\n public abstract boolean equals(final Object o);",
"@Override\n public abstract boolean equals(Object obj);",
"protected boolean equalityTest(Object key, Object key2) {\n\t\t\treturn this.set.equalityTest(key, key2);\n\t\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Historico)) {\r\n return false;\r\n }\r\n Historico other = (Historico) object;\r\n if ((this.historicoPK == null && other.historicoPK != null) || (this.historicoPK != null && !this.historicoPK.equals(other.historicoPK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public abstract boolean equals(Object o);",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof StavkaposetePK)) {\r\n return false;\r\n }\r\n StavkaposetePK other = (StavkaposetePK) object;\r\n if (this.posetaid != other.posetaid) {\r\n return false;\r\n }\r\n if (this.uslugaid != other.uslugaid) {\r\n return false;\r\n }\r\n if (this.stavkaposeteid != other.stavkaposeteid) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@org.testng.annotations.Test\n public void test_equals_Symmetric()\n throws Exception {\n CategorieClient categorieClient = new CategorieClient(\"denis\", 1000, 10.2, 1.1, 1.2, false);\n Client x = new Client(\"Denis\", \"Denise\", \"Paris\", categorieClient);\n Client y = new Client(\"Denis\", \"Denise\", \"Paris\", categorieClient);\n Assert.assertTrue(x.equals(y) && y.equals(x));\n Assert.assertTrue(x.hashCode() == y.hashCode());\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Bitacora)) {\n return false;\n }\n Bitacora other = (Bitacora) object;\n if ((this.bitacoraPK == null && other.bitacoraPK != null) || (this.bitacoraPK != null && !this.bitacoraPK.equals(other.bitacoraPK))) {\n return false;\n }\n return true;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t\tpublic boolean equals(Object other) {\r\n\t\t\tboolean flag = false;\r\n\r\n\t\t\tif (other instanceof TableElement) {\r\n\t\t\t\tTableElement<K, V> candidate = (TableElement<K, V>) other;\r\n\r\n\t\t\t\tif ((this.getKey()).equals(candidate.getKey()))\r\n\t\t\t\t\tflag = true;\r\n\t\t\t}\r\n\r\n\t\t\treturn flag;\r\n\t\t}",
"@ZenCodeType.Operator(ZenCodeType.OperatorType.EQUALS)\n default boolean equalTo(IData other) {\n \n return notSupportedOperator(OperatorType.EQUALS);\n }",
"@Override\n boolean equals(Object other);",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof VillagePK)) {\n return false;\n }\n VillagePK other = (VillagePK) object;\n if (this.villageCode != other.villageCode) {\n return false;\n }\n if (this.villageVersion != other.villageVersion) {\n return false;\n }\n \n if (this.minorVersion != other.minorVersion) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Asistencia)) {\n return false;\n }\n Asistencia other = (Asistencia) object;\n if ((this.asistenciaPK == null && other.asistenciaPK != null) || (this.asistenciaPK != null && !this.asistenciaPK.equals(other.asistenciaPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Cdrbrdta)) {\n return false;\n }\n Cdrbrdta other = (Cdrbrdta) object;\n if ((this.cdrbrdtaPK == null && other.cdrbrdtaPK != null) || (this.cdrbrdtaPK != null && !this.cdrbrdtaPK.equals(other.cdrbrdtaPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof VatCodeCompany)) {\n return false;\n }\n VatCodeCompany other = (VatCodeCompany) object;\n return !((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id)));\n }",
"private boolean equalKeys(Object other) {\r\n if (this == other) {\r\n return true;\r\n }\r\n if (!(other instanceof Contacto)) {\r\n return false;\r\n }\r\n Contacto that = (Contacto) other;\r\n if (this.getIdContacto() != that.getIdContacto()) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Abono)) {\n return false;\n }\n Abono other = (Abono) object;\n if ((this.abonoPK == null && other.abonoPK != null) || (this.abonoPK != null && !this.abonoPK.equals(other.abonoPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ResolucaoPK)) {\n return false;\n }\n ResolucaoPK other = (ResolucaoPK) object;\n if (this.avaliacaoId != other.avaliacaoId) {\n return false;\n }\n if (this.usuarioId != other.usuarioId) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ObservacionesPK)) {\n return false;\n }\n ObservacionesPK other = (ObservacionesPK) object;\n if (this.codCia != other.codCia) {\n return false;\n }\n if (this.id != other.id) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ComunicationPK)) {\n return false;\n }\n ComunicationPK other = (ComunicationPK) object;\n if (this.idComunication != other.idComunication) {\n return false;\n }\n if (this.idRationale != other.idRationale) {\n return false;\n }\n if (this.idScientistReceptor != other.idScientistReceptor) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof EgressoCursoPK)) {\n return false;\n }\n EgressoCursoPK other = (EgressoCursoPK) object;\n if ((this.egressocpf == null && other.egressocpf != null) || (this.egressocpf != null && !this.egressocpf.equals(other.egressocpf))) {\n return false;\n }\n if (this.cursoid != other.cursoid) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Driver)) {\n return false;\n }\n Driver other = (Driver) object;\n if ((this.driverPK == null && other.driverPK != null) || (this.driverPK != null && !this.driverPK.equals(other.driverPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object other) {\n if (!(other instanceof ApptranregFeesAud)) return false;\n return this.equalKeys(other) && ((ApptranregFeesAud)other).equalKeys(this);\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof EscopoVulPK)) {\r\n return false;\r\n }\r\n EscopoVulPK other = (EscopoVulPK) object;\r\n if (this.idEscopo != other.idEscopo) {\r\n return false;\r\n }\r\n if (this.idVulnerabilidade != other.idVulnerabilidade) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Gasto)) {\r\n return false;\r\n }\r\n Gasto other = (Gasto) object;\r\n if ((this.gastoPK == null && other.gastoPK != null) || (this.gastoPK != null && !this.gastoPK.equals(other.gastoPK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n PaymentRecordKey other = (PaymentRecordKey) that;\n return (this.getRecordId() == null ? other.getRecordId() == null : this.getRecordId().equals(other.getRecordId()))\n && (this.getOrdersId() == null ? other.getOrdersId() == null : this.getOrdersId().equals(other.getOrdersId()))\n && (this.getBuildDay() == null ? other.getBuildDay() == null : this.getBuildDay().equals(other.getBuildDay()));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof InformeBatallahasRecursoPK)) {\n return false;\n }\n InformeBatallahasRecursoPK other = (InformeBatallahasRecursoPK) object;\n if (this.informeBatallaidBatalla != other.informeBatallaidBatalla) {\n return false;\n }\n if ((this.recursoname == null && other.recursoname != null) || (this.recursoname != null && !this.recursoname.equals(other.recursoname))) {\n return false;\n }\n if ((this.recursoInstalacionname == null && other.recursoInstalacionname != null) || (this.recursoInstalacionname != null && !this.recursoInstalacionname.equals(other.recursoInstalacionname))) {\n return false;\n }\n return true;\n }",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof BlastingtypeRelationsAud)) {\n return false;\n }\n BlastingtypeRelationsAud that = (BlastingtypeRelationsAud) other;\n Object myBtrAudUid = this.getBtrAudUid();\n Object yourBtrAudUid = that.getBtrAudUid();\n if (myBtrAudUid==null ? yourBtrAudUid!=null : !myBtrAudUid.equals(yourBtrAudUid)) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object other) {\n if (!(other instanceof BlastingtypeRelationsAud)) return false;\n return this.equalKeys(other) && ((BlastingtypeRelationsAud)other).equalKeys(this);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof DiccionarioAplicacionEntity)) {\n return false;\n }\n DiccionarioAplicacionEntity other = (DiccionarioAplicacionEntity) object;\n if ((this.diccionarioAplicacionPK == null && other.diccionarioAplicacionPK != null) || (this.diccionarioAplicacionPK != null && !this.diccionarioAplicacionPK.equals(other.diccionarioAplicacionPK))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object other) {\r\n if (!(other instanceof Contacto))\r\n return false;\r\n return this.equalKeys(other) && ((Contacto) other).equalKeys(this);\r\n }",
"protected abstract boolean isEqual(E entryA, E entryB);",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TicketHistoricoPK)) {\r\n return false;\r\n }\r\n TicketHistoricoPK other = (TicketHistoricoPK) object;\r\n if ((this.ticketId == null && other.ticketId != null) || (this.ticketId != null && !this.ticketId.equals(other.ticketId))) {\r\n return false;\r\n }\r\n if ((this.usuarioId == null && other.usuarioId != null) || (this.usuarioId != null && !this.usuarioId.equals(other.usuarioId))) {\r\n return false;\r\n }\r\n if ((this.fecha == null && other.fecha != null) || (this.fecha != null && !this.fecha.equals(other.fecha))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Auditoria)) {\r\n return false;\r\n }\r\n Auditoria other = (Auditoria) object;\r\n if ((this.auditoriaPK == null && other.auditoriaPK != null) || (this.auditoriaPK != null && !this.auditoriaPK.equals(other.auditoriaPK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n boolean equals(Object obj);",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof ApptranregFeesAud)) {\n return false;\n }\n ApptranregFeesAud that = (ApptranregFeesAud) other;\n Object myAtrfAudUid = this.getAtrfAudUid();\n Object yourAtrfAudUid = that.getAtrfAudUid();\n if (myAtrfAudUid==null ? yourAtrfAudUid!=null : !myAtrfAudUid.equals(yourAtrfAudUid)) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Venta)) {\n return false;\n }\n Venta other = (Venta) object;\n if ((this.ventaPK == null && other.ventaPK != null) || (this.ventaPK != null && !this.ventaPK.equals(other.ventaPK))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof GlAccountHistoryPK)) {\r\n return false;\r\n }\r\n GlAccountHistoryPK other = (GlAccountHistoryPK) object;\r\n if ((this.glAccountId == null && other.glAccountId != null) || (this.glAccountId != null && !this.glAccountId.equals(other.glAccountId))) {\r\n return false;\r\n }\r\n if ((this.organizationPartyId == null && other.organizationPartyId != null) || (this.organizationPartyId != null && !this.organizationPartyId.equals(other.organizationPartyId))) {\r\n return false;\r\n }\r\n if ((this.customTimePeriodId == null && other.customTimePeriodId != null) || (this.customTimePeriodId != null && !this.customTimePeriodId.equals(other.customTimePeriodId))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object other) {\n if (!(other instanceof Sanpham)) return false;\n return this.equalKeys(other) && ((Sanpham)other).equalKeys(this);\n }",
"@Override\n public boolean equals(Object obj) {\n if(obj instanceof Operator){\n Operator opObj = (Operator)obj;\n if(obj==this)\n return true;\n return mKey.equals(opObj);\n }\n return false;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Item)) {\n return false;\n }\n Item other = (Item) object;\n if ((this.itemPK == null && other.itemPK != null) || (this.itemPK != null && !this.itemPK.equals(other.itemPK))) {\n return false;\n }\n return true;\n }",
"@Override \n boolean equals(Object obj);",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof WeatherForecast)) {\r\n return false;\r\n }\r\n WeatherForecast other = (WeatherForecast) object;\r\n if ((this.weatherForecastPK == null && other.weatherForecastPK != null) || (this.weatherForecastPK != null && !this.weatherForecastPK.equals(other.weatherForecastPK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@SuppressWarnings(\"EqualsUnsafeCast\")\n @Override\n public boolean equals(Object o) {\n final Key key = (Key) o;\n return powerComponent == key.powerComponent\n && processState == key.processState;\n }",
"@Override public boolean equals(Object object);",
"@Override\n boolean equals(Object o);",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof KurzusJelentkezok)) {\n return false;\n }\n KurzusJelentkezok other = (KurzusJelentkezok) object;\n if ((this.kurzusJelentkezokPK == null && other.kurzusJelentkezokPK != null) || (this.kurzusJelentkezokPK != null && !this.kurzusJelentkezokPK.equals(other.kurzusJelentkezokPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public final boolean equals(final Object other) {\n return super.equals(other);\n }",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof Acquirente)) {\n return false;\n }\n Acquirente that = (Acquirente) other;\n if (this.getIdacquirente() != that.getIdacquirente()) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Aporte)) {\r\n return false;\r\n }\r\n Aporte other = (Aporte) object;\r\n if ((this.aportePK == null && other.aportePK != null) || (this.aportePK != null && !this.aportePK.equals(other.aportePK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof AplicacionXSubProcesoNegocioPK)) {\n return false;\n }\n AplicacionXSubProcesoNegocioPK other = (AplicacionXSubProcesoNegocioPK) object;\n if (this.idAplicacion != other.idAplicacion) {\n return false;\n }\n if (this.idSubProceso != other.idSubProceso) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof MesaPK)) {\n return false;\n }\n MesaPK other = (MesaPK) object;\n if (this.numeroOrden != other.numeroOrden) {\n return false;\n }\n if ((this.fechaOrden == null && other.fechaOrden != null) || (this.fechaOrden != null && !this.fechaOrden.equals(other.fechaOrden))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ClientePK)) {\n return false;\n }\n ClientePK other = (ClientePK) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n if ((this.tipoId == null && other.tipoId != null) || (this.tipoId != null && !this.tipoId.equals(other.tipoId))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ClassSaveMasterPK)) {\n return false;\n }\n ClassSaveMasterPK other = (ClassSaveMasterPK) object;\n if (this.classId != other.classId) {\n return false;\n }\n if (this.saveId != other.saveId) {\n return false;\n }\n return true;\n }",
"@Override\n public abstract boolean equals(Object abc);",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof ArriendoPK)) {\r\n return false;\r\n }\r\n ArriendoPK other = (ArriendoPK) object;\r\n if ((this.idpropietario == null && other.idpropietario != null) || (this.idpropietario != null && !this.idpropietario.equals(other.idpropietario))) {\r\n return false;\r\n }\r\n if ((this.propiedadIdPropiedad == null && other.propiedadIdPropiedad != null) || (this.propiedadIdPropiedad != null && !this.propiedadIdPropiedad.equals(other.propiedadIdPropiedad))) {\r\n return false;\r\n }\r\n if ((this.idarriendo == null && other.idarriendo != null) || (this.idarriendo != null && !this.idarriendo.equals(other.idarriendo))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object)\n {\n if (!(object instanceof MatchEntryPK))\n {\n return false;\n }\n MatchEntryPK other = (MatchEntryPK) object;\n if (this.id != other.id)\n {\n return false;\n }\n if (this.formatId != other.formatId)\n {\n return false;\n }\n return this.formatGameId == other.formatGameId;\n }",
"@Override\n public boolean equals(Object other) {\n if (other.getClass() == getClass()) {\n return hashCode() == other.hashCode();\n }\n\n return false;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof TbFasesEmprestimoBemPermanentePK)) {\n return false;\n }\n TbFasesEmprestimoBemPermanentePK other = (TbFasesEmprestimoBemPermanentePK) object;\n if (this.idPedidoEmprestimo != other.idPedidoEmprestimo) {\n return false;\n }\n if ((this.idStatus == null && other.idStatus != null) || (this.idStatus != null && !this.idStatus.equals(other.idStatus))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Bebida)) {\n return false;\n }\n Bebida other = (Bebida) object;\n if ((this.idbebida == null && other.idbebida != null) || (this.idbebida != null && !this.idbebida.equals(other.idbebida))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Brating)) {\r\n return false;\r\n }\r\n Brating other = (Brating) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CekIndArticuloPK)) {\r\n return false;\r\n }\r\n CekIndArticuloPK other = (CekIndArticuloPK) object;\r\n if ((this.idPais == null && other.idPais != null) || (this.idPais != null && !this.idPais.equals(other.idPais))) {\r\n return false;\r\n }\r\n if ((this.idPeriodo == null && other.idPeriodo != null) || (this.idPeriodo != null && !this.idPeriodo.equals(other.idPeriodo))) {\r\n return false;\r\n }\r\n if ((this.idArticulo == null && other.idArticulo != null) || (this.idArticulo != null && !this.idArticulo.equals(other.idArticulo))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object other) {\n return this == other;\n }",
"@Override\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof QuartoCama)) {\n\t\t\treturn false;\n\t\t}\n\t\tQuartoCama other = (QuartoCama) object;\n\t\tif ((this.quartoCamaPK == null && other.quartoCamaPK != null) || (this.quartoCamaPK != null && !this.quartoCamaPK.equals(other.quartoCamaPK))) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof OrderDetailPK)) {\n return false;\n }\n OrderDetailPK other = (OrderDetailPK) object;\n if (this.orderId != other.orderId) {\n return false;\n }\n return this.itemId == other.itemId;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Itensorc)) {\n return false;\n }\n Itensorc other = (Itensorc) object;\n if ((this.itensorcPK == null && other.itensorcPK != null) || (this.itensorcPK != null && !this.itensorcPK.equals(other.itensorcPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof DocumentoPresentadoPK)) {\n return false;\n }\n DocumentoPresentadoPK other = (DocumentoPresentadoPK) object;\n if (this.codCia != other.codCia) {\n return false;\n }\n if (this.codDocumentoPres != other.codDocumentoPres) {\n return false;\n }\n if (this.codCandidato != other.codCandidato) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof IgracUcinakPK)) {\n return false;\n }\n IgracUcinakPK other = (IgracUcinakPK) object;\n if (this.utakmicaId != other.utakmicaId) {\n return false;\n }\n if (this.igracId != other.igracId) {\n return false;\n }\n return true;\n }",
"private Equals() {}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof TmadjuntoPK)) {\n return false;\n }\n TmadjuntoPK other = (TmadjuntoPK) object;\n if (this.id != other.id) {\n return false;\n }\n if (this.tmDocumentoid != other.tmDocumentoid) {\n return false;\n }\n return true;\n }",
"@Override\n\tpublic boolean equals(Object other) {\n\t\tif (other instanceof DBBoolean) {\n\t\t\tDBBoolean otherDBBoolean = (DBBoolean) other;\n\t\t\treturn getValue().equals(otherDBBoolean.getValue());\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CalificacionesServicioPK)) {\n return false;\n }\n CalificacionesServicioPK other = (CalificacionesServicioPK) object;\n if (this.idUsusario != other.idUsusario) {\n return false;\n }\n if (this.idServicio != other.idServicio) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Ecrire)) {\n return false;\n }\n Ecrire other = (Ecrire) object;\n if ((this.ecrirePK == null && other.ecrirePK != null) || (this.ecrirePK != null && !this.ecrirePK.equals(other.ecrirePK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Bid)) {\n return false;\n }\n Bid other = (Bid) object;\n if ((this.bidId == null && other.bidId != null) || (this.bidId != null && !this.bidId.equals(other.bidId))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CtTaoCauHoiPK)) {\n return false;\n }\n CtTaoCauHoiPK other = (CtTaoCauHoiPK) object;\n if (this.macv != other.macv) {\n return false;\n }\n if (this.machuong != other.machuong) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ExamenEscuela)) {\n return false;\n }\n ExamenEscuela other = (ExamenEscuela) object;\n if ((this.examenEscuelaPK==null&&other.examenEscuelaPK!=null)||(this.examenEscuelaPK!=null&&!this.examenEscuelaPK.equals(other.examenEscuelaPK))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Tardirec)) {\r\n return false;\r\n }\r\n Tardirec other = (Tardirec) object;\r\n if ((this.tardirecPK == null && other.tardirecPK != null) || (this.tardirecPK != null && !this.tardirecPK.equals(other.tardirecPK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Commentary)) {\n return false;\n }\n Commentary other = (Commentary) object;\n if ((this.commentaryPK == null && other.commentaryPK != null) || (this.commentaryPK != null && !this.commentaryPK.equals(other.commentaryPK))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Event)) {\r\n return false;\r\n }\r\n Event other = (Event) object;\r\n if ((this.eventPK == null && other.eventPK != null) || (this.eventPK != null && !this.eventPK.equals(other.eventPK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof PessoaTitularPK)) {\n return false;\n }\n PessoaTitularPK other = (PessoaTitularPK) object;\n if (this.nrMatricula != other.nrMatricula) {\n return false;\n }\n if (this.cdCorporacao != other.cdCorporacao) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof AddressMatchMapPK)) {\r\n return false;\r\n }\r\n AddressMatchMapPK other = (AddressMatchMapPK) object;\r\n if ((this.mapKey == null && other.mapKey != null) || (this.mapKey != null && !this.mapKey.equals(other.mapKey))) {\r\n return false;\r\n }\r\n if ((this.mapValue == null && other.mapValue != null) || (this.mapValue != null && !this.mapValue.equals(other.mapValue))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CdrqasryPK)) {\n return false;\n }\n CdrqasryPK other = (CdrqasryPK) object;\n if ((this.facno == null && other.facno != null) || (this.facno != null && !this.facno.equals(other.facno))) {\n return false;\n }\n if ((this.quono == null && other.quono != null) || (this.quono != null && !this.quono.equals(other.quono))) {\n return false;\n }\n if (this.trseq != other.trseq) {\n return false;\n }\n if (this.seq != other.seq) {\n return false;\n }\n if ((this.cmccode == null && other.cmccode != null) || (this.cmccode != null && !this.cmccode.equals(other.cmccode))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n if (!(other instanceof Bike)) {\n return false;\n }\n\n Bike otherBike = (Bike) other;\n return otherBike.getName().equals(getName())\n && otherBike.getStatus().equals(getStatus());\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CentroHasModeloPK)) {\n return false;\n }\n CentroHasModeloPK other = (CentroHasModeloPK) object;\n if (this.idcentro != other.idcentro) {\n return false;\n }\n if ((this.idmodelo == null && other.idmodelo != null) || (this.idmodelo != null && !this.idmodelo.equals(other.idmodelo))) {\n return false;\n }\n return true;\n }"
] | [
"0.6916189",
"0.6280447",
"0.6274414",
"0.621436",
"0.61899495",
"0.61806136",
"0.6144618",
"0.6144618",
"0.60997236",
"0.60992074",
"0.6049026",
"0.6026523",
"0.6016558",
"0.5996864",
"0.5990669",
"0.5982212",
"0.597788",
"0.597788",
"0.5970382",
"0.5933214",
"0.5911489",
"0.5905416",
"0.5904974",
"0.5899415",
"0.58908224",
"0.5889112",
"0.5888607",
"0.58862245",
"0.588544",
"0.5875066",
"0.5873054",
"0.5867291",
"0.5846205",
"0.5825629",
"0.58212656",
"0.58201844",
"0.57946527",
"0.57931525",
"0.5790048",
"0.57844317",
"0.5782602",
"0.57702285",
"0.57557523",
"0.57527894",
"0.5752471",
"0.5751905",
"0.57512033",
"0.57507455",
"0.5738023",
"0.5737352",
"0.5733297",
"0.5722407",
"0.57178485",
"0.5717024",
"0.57168406",
"0.5716463",
"0.5714835",
"0.57143307",
"0.570693",
"0.5703238",
"0.5701528",
"0.5696437",
"0.5695431",
"0.5688834",
"0.56762636",
"0.56719065",
"0.5668701",
"0.56654245",
"0.56608576",
"0.56573755",
"0.5641027",
"0.5623111",
"0.56226605",
"0.56226444",
"0.562261",
"0.561567",
"0.56115764",
"0.5608449",
"0.5605219",
"0.56046945",
"0.560443",
"0.5600857",
"0.5598875",
"0.5597087",
"0.55896944",
"0.55895805",
"0.5585379",
"0.55853003",
"0.55802965",
"0.5577274",
"0.5570515",
"0.5563918",
"0.5556296",
"0.5555224",
"0.55534536",
"0.554826",
"0.55454427",
"0.5543798",
"0.5543056",
"0.553927",
"0.55374557"
] | 0.0 | -1 |
Construct a readable string representation for this Decouverte instance. | @Override
public String toString() {
return Objects.toStringHelper(this) //
.add(Decouverte_.id.getName(), getId()) //
.add(Decouverte_.dateDecouverte.getName(), getDateDecouverte()) //
.add(Decouverte_.observations.getName(), getObservations()) //
.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String toString() {\r\n\t\t\r\n\t\t// Variables declaration\r\n\t\t\r\n\t\tString output = null;\r\n\t\t\r\n\t\t// Data processing\r\n\t\t\r\n\t\toutput = String.format(\"\\n ID Veículo: %s\", idVeiculo != null ? idVeiculo.toString() : \"\");\r\n\r\n\t\toutput += String.format(\"\\n Placa: %s\", placaVeiculo != null ? placaVeiculo : \"\");\r\n\t\t\r\n\t\toutput += String.format(\"\\n Modelo: %s\", modeloVeiculo != null ? modeloVeiculo : \"\");\r\n\t\t\r\n\t\toutput += String.format(\"\\n Marca: %s\", marcaVeiculo != null ? marcaVeiculo : \"\");\r\n\t\t\r\n\t\toutput += String.format(\"\\n Cor: %s\", corVeiculo != null ? corVeiculo : \"\");\r\n\t\t\r\n\t\toutput += String.format(\"\\n Acentos: %s\", acentosVeiculos != null ? acentosVeiculos : \"\");\r\n\t\t\r\n\t\t// Information output\r\n\t\t\r\n\t\treturn output;\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn hablar() + \"\\nSexo \" + this.sexo + \" mi edad es de \" + this.edad + \" vuelo a \" + this.velocidadVuelo + \" Km/h\" + \" y peso \" + this.peso + \" Kg\";\n\t}",
"public String toString() {\n\t\tString dezeOpdracht = \"\";\n\t\tdezeOpdracht += getOpdrachtID() + \" - \" + getCategorie() + \"\\n\";\n\t\tdezeOpdracht += \"auteur: \" + getAuteur() + \"\\n\";\n\t\tdezeOpdracht += \"vraag: \" + getVraag() + \"\\n\";\n\t\tdezeOpdracht += \"hint: \" + getAntwoordHint() + \"\\n\";\n\t\tdezeOpdracht += (isHoofdletterGevoelig() ? \"\" : \"niet \") + \"hoofdlettergevoelig \\n\";\n\t\tdezeOpdracht += \"antwoord: \" + getAntwoord() + \"\\n\";\n\t\tdezeOpdracht += \"---------------------------------------------\";\n\t\treturn dezeOpdracht;\n\t}",
"@Override\r\n public String toString() {\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n \r\n return (\r\n \"\\n\" +\r\n \"Codigo tour: \" + this.getCodigoIdentificacion() + \"\\n\" +\r\n \"Nombre Comercial: \" + this.getNombreComercial() + \"\\n\" +\r\n \"Lugar de salida: \" + this.getLugarPartida() + \"\\n\" +\r\n \"Fecha de salida: \" + sdf.format(this.getFechaSalida()) + \"\\n\" +\r\n \"Fecha de regreso: \" + sdf.format(this.getFechaRegreso()) + \"\\n\" +\r\n \"Precio: \" + String.format(\"$ %(,.0f\", this.getPrecio()) + \"\\n\" +\r\n \"Estadía (días): \" + this.calcularEstadia() + \"\\n\" +\r\n \"Costo: \" + String.format(\"$ %(,.0f\", this.calcularPrecio()) + \"\\n\" +\r\n \"Nombre empresa: \" + this.getNombreEmpresa() + \"\\n\" +\r\n \"Tipo de empresa: \" + this.getTipo() + \"\\n\" +\r\n \"Viajero frecuente:\" + (this.isViajeroFrecuente() ? \"Si\\n\" : \"No\\n\")\r\n );\r\n }",
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"@Override\n public String toString() {\n // TODO this is a sudo method only for testing puroposes\n return \"{name: 5aled, age:15}\";\n }",
"public String toString() {\n return (UUID + \" \" + name + \" \" + type + \" \" + universityName + \" \" + disabled);\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n String dataInicioFormatada = this.dataInicio;\r\n\t\t\t\r\n\t\tsb.append(this.designacaoTorneio + \" | \");\r\n\t\tsb.append(dataInicioFormatada + \" | \");\r\n\t\tsb.append(this.jogadorAdversario.getNome() + \"\\t| \");\r\n\t\tsb.append(this.qtdEncontros + \" | \");\r\n\t\t\t\r\n\t\t\t\r\n\t\tdouble diferenca = jogadorCorrente.getPontos() - this.jogadorAdversario.getPontos();\r\n\t\t\t\r\n\t\tif (diferenca < 0.0)\r\n\t\t\tsb.append((Math.round(diferenca * 100) / 100.0) + \"\\n\");\r\n\t\t\t\r\n\t\telse\r\n\t\t\tsb.append(\"+\" + (Math.round(diferenca * 100) / 100.0));\r\n\r\n\t\tif (sb.length() == 0)\r\n\t\t\tsb.append(VisualizarEncontroDTO.NAO_EXISTEM_CONFRONTOS);\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t}",
"@Override\n public String toString()\n {\n String aDevolver= \"\";\n aDevolver += super.toString();\n aDevolver += \"potenciaCV: \" + potenciaCV + \"\\n\";\n return aDevolver;\n }",
"public String toString(){\n\t\tif(categoria == 1)\n\t\t\treturn \"Profesor Ayudante\\n\" + super.toString() + \"\\n\" + \"Horario = \" + tutoria;\n\t\telse if(categoria == 2)\n\t\t\treturn \"Profesor Titular de Universidad\\n\" + super.toString() + \"\\n\" + \"Horario = \" + tutoria;\n\t\telse\n\t\t\treturn \"Profesor Catedrático de Universidad\\n\" + super.toString() + \"\\n\" + \"Horario = \" + tutoria;\n\t}",
"public String toString() { return stringify(this, true); }",
"public String toString(){\n\n\t\tString msg =\"\";\n\t\tmsg += super.toString()+\"\\n\";\n\t\tmsg +=\"El tipo de servicio es: \"+typeOfService+\"\\n\";\n\t\tmsg +=\"La cantidad de kiloWatts registrada es: \"+kiloWatts+\"\\n\";\n\t\tmsg +=\"Cantidad de arboles que deben plantar: \"+calculatedConsuption()+\"\\n\";\n\n\t return msg;\n\t}",
"public String toString() {\r\n\t\t StringBuffer result = new StringBuffer();\r\n\r\n\t\t try {\r\n\t\t\t result.append(\"TIMESTAMP: \");\r\n\t\t\t result.append(ThingsUtilityBelt.timestampFormatterDDDHHMMSS(getStamp()));\r\n\t\t\t result.append(ThingsConstants.CHEAP_LINESEPARATOR);\r\n\t\t\t result.append(\"NUMERIC: \");\r\n\t\t\t result.append(numeric);\r\n\t\t\t result.append(ThingsConstants.CHEAP_LINESEPARATOR);\r\n\t\t\t result.append(\"TYPE: \");\r\n\t\t\t result.append(myType.name());\r\n\t\t\t result.append(ThingsConstants.CHEAP_LINESEPARATOR);\r\n\t\t\t result.append(\"PRIORITY: \");\r\n\t\t\t result.append(myPriority.name());\r\n\t\t\t result.append(ThingsConstants.CHEAP_LINESEPARATOR);\r\n\t\t\t result.append(\"SOURCE ID: \");\r\n\t\t\t result.append(myCreatorId.toString());\r\n\t\t\t result.append(ThingsConstants.CHEAP_LINESEPARATOR);\t\t\t \r\n\t\t\t result.append(\"ATTRIBUTES: \");\r\n\t\t\t result.append(AttributeCodec.encode2String(attributes.getAttributes()));\r\n\t\t\t result.append(ThingsConstants.CHEAP_LINESEPARATOR);\r\n\r\n\t\t } catch (Throwable e) {\r\n\t\t\t // Dont' care.\r\n\t\t }\r\n\t\t return result.toString();\r\n\t }",
"public String toString() {\r\n StringBuffer out = new StringBuffer(this.getDaogenVersion());\r\n out.append(\"\\nclass DetArqueoRunt, mapping to table DetArqueoRunt\\n\");\r\n out.append(\"Persistent attributes: \\n\"); \r\n out.append(\"IDDETARQUEO = \" + this.IDDETARQUEO + \"\\n\"); \r\n out.append(\"FAC_VLT = \" + this.FAC_VLT + \"\\n\"); \r\n out.append(\"IDPAGORUNT = \" + this.IDPAGORUNT + \"\\n\"); \r\n out.append(\"FAC_NRO = \" + this.FAC_NRO + \"\\n\"); \r\n out.append(\"FECHAPAGOFACTURA = \" + this.FECHAPAGOFACTURA + \"\\n\"); \r\n out.append(\"VALORPAGOMT = \" + this.VALORPAGOMT + \"\\n\"); \r\n out.append(\"VALORPAGORUNT = \" + this.VALORPAGORUNT + \"\\n\"); \r\n out.append(\"COD_CAJERO = \" + this.COD_CAJERO + \"\\n\"); \r\n out.append(\"NOM_CAJERO = \" + this.NOM_CAJERO + \"\\n\"); \r\n out.append(\"ID_ARQUEO = \" + this.ID_ARQUEO + \"\\n\"); \r\n out.append(\"VLR_BASE = \" + this.VLR_BASE + \"\\n\"); \r\n out.append(\"IDUSRPAGA = \" + this.IDUSRPAGA + \"\\n\"); \r\n out.append(\"APELLIDOCAJERO = \" + this.APELLIDOCAJERO + \"\\n\"); \r\n out.append(\"ESTADOFACTURA = \" + this.ESTADOFACTURA + \"\\n\"); \r\n return out.toString();\r\n }",
"@Override\n public String toString(){\n\n return \"\\n\\n\"+super.toString()+\",\" + \"Dni: \"+ this.dni +\",\"+ \" Nombre: \"+this.Nombre+\",\"+\" ciudad: \"\n +\", \"+\"Ubicacion: \"+this.ubicacion+\", \"+\"Tarjeta de Crédito: \"+this.tarjetaCredito+\", \"+\n \"\\nProductos en Venta{\"+this.productosEnVenta+\"}\"+\", \" + \"\\nProductos Vendidos{\"+this.productosVendidos+\"}\"+\n \", \"+\"\\nProductos Comprados{\"+this.productosComprados+\"}\";\n }",
"public String toString() {\n\t\treturn \"\" + type + \",\" + (rempli ? \"p\" : \"v\") + \",\" +\n\t\t\t\tx + \",\" + y + \",\" + largeur + \",\" + hauteur + \",\"\n\t\t\t\t+ Integer.toHexString(couleur.getRGB() & 0xffffff);\n\t}",
"public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn this.nome + \" (\" + this.funcao + \") - \" + this.biografia + \" - \" + this.email + \" - \" + this.foto + \" - \"\n\t\t\t\t+ this.formacao + \" - \" + this.unidade + \" - \" + this.data;\n\t}",
"public String toString() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(this.getClass().getName());\r\n sb.append(\"(\");\r\n\r\n sb.append(\", \").append(\"username=\").append(username);\r\n\r\n sb.append(\", \").append(\"email=\").append(email);\r\n\r\n sb.append(\", \").append(\"ragione_sociale=\").append(ragione_sociale);\r\n\r\n sb.append(\", \").append(\"nome=\").append(nome);\r\n\r\n sb.append(\", \").append(\"cognome=\").append(cognome);\r\n\r\n sb.append(\", \").append(\"immagine=\").append(immagine);\r\n\r\n sb.append(\", \").append(\"data_ultima_modifica=\").append(data_ultima_modifica);\r\n\r\n sb.append(\", \").append(\"oggetti=\").append(oggetti);\r\n\r\n sb.append(\", \").append(\"prestiti=\").append(prestiti);\r\n\r\n sb.append(\")\");\r\n return sb.toString();\r\n }",
"@Override\n public final String toString() {\n return asString(0, 4);\n }",
"public String toString()\n\t{\n\t\treturn String.format(\"%-25s%-15s\\n%-25s%-15s\\n%-25s%-15s\\n%-25s%-15d\\n%-25s%-15s\\n%-25s$%,-13.2f\", \n\t\t\t\t \t\t \t \"Name\", this.getName(), \"Address:\", this.getAddress(), \"Telephone number:\", this.getTelephone(), \n\t\t\t\t \t\t \t \"Customer Number:\", this.getCustNum(), \"Email notifications:\", this.getSignedUp() == true ? \"Yes\" : \"No\",\n\t\t\t\t \t\t \t \"Purchase amount:\", this.getCustomerPurchase());\n\t}",
"public String toString(){ \r\n return \"Nome: \" + this.nome + \"\\nEmail: \" + this.email +\r\n \"\\nEndereço: \" + this.endereco + \"\\nId: \" + this.id + \"\\n\"; \r\n }",
"public String toString()\r\n {\r\n final String TAB = \"\\n\\t\";\r\n \r\n String retValue = \"\";\r\n \r\n retValue = \"JogadorVO ( \"\r\n + super.toString() + TAB\r\n + \"mestre = \" + this.mestre + TAB\r\n + \"nome = \" + this.nome + TAB\r\n + \"conn = \" + this.conn + TAB\r\n + \" )\";\r\n \r\n return retValue;\r\n }",
"@Override\n public String toString() {\n return getDescricao();\n }",
"public String toString() {\n\t\treturn tipo + \" : \" + descripcion;\n\t}",
"public String toString()\n\t{\n\t final String TAB = \" \";\n\t \n\t String retValue = \"\";\n\t \n\t retValue = \"Pessoa ( \"\n\t + super.toString() + TAB\n\t + \"idPessoa = \" + this.idPessoa + TAB\n\t + \"nome = \" + this.nome + TAB\n\t + \"sobreNome = \" + this.sobreNome + TAB\n\t + \"foneResidencial = \" + this.foneResidencial + TAB\n\t + \"celular = \" + this.celular + TAB\n\t + \" )\";\n\t\n\t return retValue;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"nombre:%s, direccion: %s, telefono: %s\", nombre_banco, direccion, telefono);\n\t}",
"@Override\n public String toString() {\n return new Gson().toJson(this);\n }",
"@Override\r\n public String toString() {\r\n \r\n DateFormat data = DateFormat.getDateInstance();\r\n return \"Nome: \" + getNome()+ \" \\nCPF: \" + getCpf() + \" \\nTelefone: \"\r\n + getTelefone() + \" \\nData de Nascimento : \" + data.format(getDataNasc())\r\n + \" \\nSexo: \" + getSexo();\r\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"------------------------\\n\"\r\n\t\t\t\t+ this.getCognome() + \", \" + this.getNome() + \"\\n\" +\r\n\t\t\t\t\"mail: \" + this.getEmail() + \"\\n\" + \r\n\t\t\t\t\"tel: \" + this.getNumeroTelefono() + \"\\n\" +\r\n\t\t\t\t\"------------------------\";\r\n\t}",
"public String toString() {\n\treturn createString(data);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}",
"@Override\r\n public String toString() {\r\n \treturn \"{ id : \" + getId() + \", costo : \\\"\" + getCosto() + \", fecha : \\\"\" + getFecha() + \"\\\" }\" ; \r\n }",
"@Override\n public String toString(){\n return \" Vuelo \"+this.getTipo()+\" \" +this.getIdentificador() +\"\\t \"+ this.getDestino()+ \"\\t salida prevista en \" + timeToHour(this.getTiemposal())+\" y su combustible es de \"+this.getCombustible()+\" litros.( \"+ String.format(\"%.2f\", this.getCombustible()/this.getTankfuel()*100) + \"%).\"; \n }",
"public String toString() {\r\n\t\t//return \"Desastre(\"\r\n\t\t\t\t//+ \")\";\r\n\t\treturn SReflect.getInnerClassName(getClass())+\r\n\t\t\t\t\" id=\"+getId()+\", estadoemergencia=\"+getEstadoEmergencia()+\", heridos=\"+getEstadoHeridos();\r\n\t}",
"@Override\n public String toString() {\n String result = \"\";\n if (isDama) {\n if (tipo == TipoPedina.bianca) {\n result += Strings.PEDINA_REGINA_BIANCA;\n } else {\n result += Strings.PEDINA_REGINA_NERA;\n }\n } else {\n if (tipo == TipoPedina.bianca) {\n result += Strings.PEDINA_BIANCA;\n } else {\n result += Strings.PEDINA_NERA;\n }\n }\n return result;\n }",
"public String toString() {\n\t\tString s = \"\";\n\t\tfor (INodo n : this.getDescendientes()) {\n\t\t\ts = s + \" \" + n.toString();\n\t\t}\n\t\tfor (int i = 1; i < this.getDescendientes().size(); i++) {\n\t\t\ts = this.getRaiz() + \" \" + s;\n\t\t}\n\t\treturn \"( \" + s + \" )\";\n\t}",
"public String toString() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(this.getClass().getName());\r\n sb.append(\"(\");\r\n sb.append(\"soggetti=\").append(soggetti);\r\n sb.append(\", \").append(\"dataPrestitoFrom=\").append(dataPrestitoFrom);\r\n sb.append(\", \").append(\"dataPrestitoTo=\").append(dataPrestitoTo);\r\n sb.append(\", \").append(\"scadenzaPrestitoFrom=\").append(scadenzaPrestitoFrom);\r\n sb.append(\", \").append(\"scadenzaPrestitoTo=\").append(scadenzaPrestitoTo);\r\n sb.append(\")\");\r\n return sb.toString();\r\n }",
"@Override\n public String toString() {\n\treturn ByteUtils.toHexString(toByteArray(), true);\n }",
"@Override\r\n public String toString() {\r\n return toSmartText().toString();\r\n }",
"@Override String toString();",
"public String toString(){\n return \"Codigo Produto: \"+this.idProduto+\n \"\\nNome do Produto \"+this.nomePro+\n \"\\nDescrição \"+this.descricao+\n \"\\nPreço: \"+this.preco;\n }",
"@Override\n public String toString() {\n return toString(false, true, true, null);\n }",
"@Override\n public String toString() {\n return gson.toJson(this);\n }",
"public String toString(){\n\n\tString msg =\"\";\n\n\tmsg += super.toString()+\"\\n\";\n\tmsg +=\"El tipo de servicio es: \"+typeOfService+\"\\n\";\n\tmsg +=\"La cantidad de kiloWatts registrada es: \"+kiloWatts+\"\\n\";\n\tmsg +=\"Cantidad de arboles que deben plantar: \"+calculatedConsuption()+\"\\n\";\n\tmsg += \"---------------------------------------------------------\";\n\n\n return msg;\n}",
"public String toString() {\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\"); //Mostraremos la fecha en formato DD/MM/AAAA\r\n\t\tString nacEdad=sdf.format(fechaNac)+ \"(\"+obtenerAnios()+\" años)\";\r\n\t\treturn \"Persona [nombre=\" + nombre + \", fechaNac=\" + nacEdad + \", DNI=\" + dni\r\n\t\t\t\t+ \", sexo=\" + sexo + \", peso=\" + peso + \", altura=\" + altura\r\n\t\t\t\t+ \"]\";\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"ContaCorrente Numero : \" + numero + \", Tipo : \" + tipo + \"\"\n\t\t\t\t+ \", Solde : R$ \" + solde + \"\\n\";\n\t}",
"public String ToString(){\r\n String Result;\r\n return Result = \"Arco: \"+this.id+\" Dato: \"+String.valueOf(this.Dato)+\" Peso: \"+String.valueOf(this.p)+\" Extremo Inicial: \"+this.Vi.id+\" Extremo Final: \"+this.Vf.id;\r\n }",
"public String objectToString() {\n \n StringBuilder s = new StringBuilder(new String(\"\"));\n if(aggressor instanceof Town) {\n s.append(((Town) aggressor).getName()).append(\" \");\n } else {\n s.append(((Nation) aggressor).getName()).append(\" \");\n }\n if(defender instanceof Town) {\n s.append(((Town) defender).getName()).append(\" \");\n } else {\n s.append(((Nation) defender).getName()).append(\" \");\n }\n s.append(aggressorPoints).append(\" \");\n s.append(defenderPoints).append(\" \");\n for (Town town : towns.keySet()) {\n s.append(town.getName()).append(\" \");\n s.append(towns.get(town)).append(\" \");\n }\n\n if (rebelwar != null)\n s.append(\" \").append(rebelwar.getName());\n else\n s.append(\" \" + \"n u l l\");\n\n return s.toString();\n }",
"@Override\n public String toString(){\n StringBuilder retorno = new StringBuilder(\" ( *\");\n for(INodo descendiente : getDescendientes()){\n retorno.append(descendiente);\n }\n retorno.append(\" )\");\n\n return String.valueOf(retorno);\n }",
"public String toString()\n {\n String textoADevolver = \"\";\n if (tareaCompletada)\n {\n textoADevolver += \"HECHA \";\n }\n textoADevolver += descripcion + \" (\" +prioridad+ \").\";\n return textoADevolver;\n }",
"@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }",
"public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }",
"@Override\n public String toString() {\n StringBuilder buff = new StringBuilder();\n\n buff.append(\" refex:\");\n buff.append(informAboutUuid(this.refexUuid));\n buff.append(\" component:\");\n buff.append(informAboutUuid(this.componentUuid));\n buff.append(\" \");\n buff.append(super.toString());\n\n return buff.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn this.getsTenkhoanquy() + \" : \" + this.fSotienconlai\n\t\t\t\t+ this.sLoaitiente;\n\t}",
"public java.lang.String toString() {\n return super.toString() + \"[EmpleadoPlantilla]\";\n }",
"@Override\n\tpublic String toString() {\n\t\tString description = \"Client n°\"+num+\" : [\"+super.toString()+\"]\";\n\t\tif(fournisseur) {\n\t\t\tdescription +=\"\\n\\t\\trole suplementaire : fournisseur\";\n\t\t}\n\t\treturn description;\n\t}",
"public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the class attribute if required; default: don't.\r\n\t\tif (getIncludeClassAttribute() == true)\r\n\t\t\tOutString.append(getClassAttribute());\r\n\t\t// Add any transformation information,\r\n\t\t// probably the minimum is the x and y values.\r\n\t\t// again this is new to Java 1.4;\r\n\t\t// this function returns a StringBuffer.\r\n\t\tOutString.append(getAttributes());\r\n\t\t// close the tag.\r\n\t\tOutString.append(\">\");\r\n\t\tOutString.append(\"&\"+entityReferenceName+\";\");\r\n\t\t// close tag\r\n\t\tOutString.append(\"</\");\r\n\t\tOutString.append(getType());\r\n\t\tOutString.append(\">\");\r\n\r\n\t\treturn OutString.toString();\r\n\t}",
"@Override\n public String toString(){\n String resultado;\n resultado = \"Número Finca: \" + this.getNumFinca() + \"\\n\"\n + \"Modalidad: \" + this.getModalidad() + \"\\n\"\n + \"Área terreno: \" + this.getAreaTerreno() + \"\\n\"\n + \"Valor metro cuadrado: \" + this.getValorMetroCuadrado() + \"\\n\"\n + \"Precio: \" + this.getPrecio() + \"\\n\"\n + \"Provincia: \" + this.getProvincia() + \"\\n\"\n + \"Cantón: \" + this.getCanton()+ \"\\n\"\n + \"Distrito: \" + this.getDistrito()+ \"\\n\"\n + \"Direccion exacta: \" + this.getDirExacta()+ \"\\n\"\n + \"Tipo: \" + this.getTipo() + \"\\n\";\n return resultado;\n }",
"public String toString() {\n if (this.data.isEmpty()) {\n return super.toString();\n }\n return BytesUtil.bytes2HexString(toBinary());\n }",
"@Override\n public String toString() {\n return this.codigo + \" - \" + this.descricao + \" - \" + this.campoDeInteresse;\n }",
"public String toString() {\r\n\t\tStringBuilder s = new StringBuilder();\r\n\t\tif(!this.isEmpty()) {\r\n\t\t\ts.append(\"Peso(\"+this.getPeso()+\"kg): [\");\r\n\t\t\tIterator<Attrezzo> i = this.attrezzi.iterator();\r\n\t\t\twhile(i.hasNext())s.append( i.next().toString()+\" \");\r\n s.append(\"]\");\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t\ts.append(\"La borsa è vuota!\");\r\n\t\treturn s.toString();\r\n\t}",
"@Override\n public String toString() {\n return new GsonBuilder().serializeNulls().create().toJson(this).toString();\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn this.titolo + \" \" +this.autore + \" \" + this.genere;\r\n\t}",
"public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }",
"@Override\n public final String toString()\n {\n StringBuilder sb = new StringBuilder(64);\n appendDesc(sb);\n return sb.toString();\n }",
"public String toString()\n {\n String toStringOut = \"\";\n String vetVisitAttributes = super.toString();\n String vetVisitUrgAttributes = \"\";\n \n vetVisitUrgAttributes = \"diagnosis: \" + this.getDiagnosis() + \" \" +\n \"treatment: \" + this.getTreatment();\n \n toStringOut = vetVisitAttributes + \" \" + vetVisitUrgAttributes;\n \n return toStringOut;\n \n }",
"public String toString(){\n\t\treturn String.format(\"Address: %s\\nType: %s\\nPrice: %.2f\\nOwner: %s\",getAddress(),getType(),getPrice(),getOwner());\n\t}",
"public String toString(){\n return this.Tea;\n }",
"public String toString() {\n return Util.bytesToHex(getByteArray());\n }",
"public String toString(){\n\n\t\t/*\n\t\t *Puts the rental and due dates into two nicely formated\n\t\t *Strings.\n\t\t */\n\t\tdf.setCalendar(bought);\n\t\tString jazz = df.format(bought.getTime());\n\t\tdf.setCalendar(boughtReturn);\n\t\tString jazz2 = df.format(boughtReturn.getTime());\n\n\t\t/*\n\t\t * Returns the components of the DVD class. Categories are \n\t\t * highlighted in red using html codes.\n\t\t */\n\t\treturn \"<html><font color='red'>Name: </font>\" + \n\t\t getNameofRenter() + \", <font color='red'>Title: </font>\" + \n\t\tgetTitle() + \", <font color='red'>Rented On: </font>\"+ jazz + \n\t\t\", \" + \"<font color='red'>Due Back On: </font>\"+ jazz2;\n\n\t}",
"@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }",
"public String toString()\n\t{\n\t\tString output=\"Chip ID: \"+theChipId+\" Name: \"+theName+\" Pet Type: \"+ thePetType+\" Age: \"+theAge+\"\";\n\t\treturn output;\n\t}",
"@Override\n public String toString() {\n String representation;\n representation = \"Genus: \" + genus + \"\\n\";\n representation += \"Species: \" + species + \"\\n\";\n representation += \"Age in weeks: \" + ageInWeeks + \"\\n\";\n representation += \"Is female?\" + isFemale + \"\\n\";\n representation += \"Generation number: \" + generationNumber + \"\\n\";\n representation += \"IsAlive: \" + isAlive + \"\\n\";\n representation += \"Health coefficient: \" + healthCoefficient + \"\\n\";\n representation += \"Identification number: \" + identificationNumber + \"\\n\";\n\n return representation;\n }",
"public String toString()\n {\n DataConversionUtility dcu = DataConversionUtility.getInstance();\n StringBuilder sb = new StringBuilder();\n sb.append(\" \");\n sb.append(this.timestamp);\n sb.append(\": \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.latitude, 6));\n sb.append(\" / \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.longitude, 6));\n sb.append(\" / elev.: \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.elevation, 1));\n sb.append(\" / speed: \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.speed, 2));\n sb.append(\" [\");\n sb.append(dcu.roundUpToNDecimalPlaces(this.course, 2));\n sb.append(\"] / wind speed: \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.windSpeed, 2));\n sb.append(\" - \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.maxWindSpeed, 2));\n sb.append(\" [\");\n sb.append(dcu.roundUpToNDecimalPlaces(this.windDirection, 2));\n sb.append(\"]\\n\");\n return sb.toString();\n }",
"public String toString() {\n\t\treturn toString(true);\n\t}",
"@Override\n public String toString() {\n String s = \"\"; //Comienza con un string vacio, y se le va a agregando cada cliente por medio de un ciclo.\n NodoCliente aux = cabeza;\n while (aux != null) {\n s += aux + \"\\n\";\n aux = aux.getNext();\n }\n return s;\n }",
"@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String toString() {\n // get the string of student, time, and coins\n return student.getStudentName() + \" \" + getCoins() + \" \" + timestamp;\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getEngine() != null)\n sb.append(\"Engine: \").append(getEngine()).append(\",\");\n if (getEngineVersion() != null)\n sb.append(\"EngineVersion: \").append(getEngineVersion()).append(\",\");\n if (getDBInstanceClass() != null)\n sb.append(\"DBInstanceClass: \").append(getDBInstanceClass()).append(\",\");\n if (getLicenseModel() != null)\n sb.append(\"LicenseModel: \").append(getLicenseModel()).append(\",\");\n if (getAvailabilityZones() != null)\n sb.append(\"AvailabilityZones: \").append(getAvailabilityZones()).append(\",\");\n if (getVpc() != null)\n sb.append(\"Vpc: \").append(getVpc());\n sb.append(\"}\");\n return sb.toString();\n }",
"public String toString() {\n return \"\" + data;\n }",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"@Override public String toString();",
"public String toString() {\n\t\tStringBuilder result = new StringBuilder();\n\t\tresult.append(\"Pontuacao: \" + this.pontuacao + \"\\n\");\n\t\tresult.append(this.ambiente.toString());\n\t\t\n\t\treturn result.toString();\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder ();\r\n\t\tsb.append(\"Ci sono \"+voti.size()+\" voti\\n\");\r\n\t\tfor (Voto v : this.voti)\r\n\t\t{\r\n\t\t\tsb.append(v); // chiama il toString() di voto\r\n\t\t\tsb.append(\"\\n\");\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"@Override\n public String toString() {\n Gson gson = new Gson();\n\n String json = gson.toJson(this);\n System.out.println(\"json \\n\" + json);\n return json;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}",
"public String toString() {\n return \"\" +getNombre() + \",\" + getPuntos();\n }",
"public String toString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(\"<div>\");\r\n\t\tsb.append(\"Names: \").append(this.getNames().toString()).append(\",<br/>\");\r\n\t\tsb.append(\"Addresses: \").append(this.getAddresses().toString()).append(\",<br/>\");\r\n\t\tsb.append(\"Contacts: \").append(this.getContacts().toString()).append (\",<br/>\");\r\n\t\tsb.append(\"Identifiers: \").append(this.getIdentifiers().toString()).append(\",<br/>\");\r\n\t\tsb.append(\"</div>\");\r\n\t\treturn sb.toString();\r\n\t}",
"public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }",
"public String toString() {\n\t\tString knjigaToString = \"Name: \" + naziv + \"\\nCijena: \" + cijena + \"\\nStanje: \"\n\t\t\t\t+ stanje + \"\\nAutor\"+ autorKnjige +\"\\n\\n\";\n\t\treturn knjigaToString;\n\t}",
"@Override\n public String toString() {\n\n //convert cents to dollars using cents2dollarsAndCents\n String output = DessertShoppe.cents2dollarsAndCents(this.getCost());\n //create string storing cost in a string \n String costLength = Integer.toString(this.getCost());\n //find spacing needed between name and cost in reciept by subtracting 30(total spaces) by \n //length of name and length of cost\n int spacing = 30 - super.getName().length() - costLength.length() - 1;\n //loop through an add a space each time up to \"spacing\" integer\n for (int i = 0; i < spacing; i++) {\n output = \" \" + output;\n }\n //return name of cookie along with cost along with the right format posting amount of pounds with cost per pound\n return this.weight + \" lbs. \" + \"@ $\" + DessertShoppe.cents2dollarsAndCents(this.pricePerLbs) + \" /lb.\\n\" + this.getName() + output;\n }",
"public String toString() {\r\n\t\tStringBuilder dados = new StringBuilder();\r\n\t\tdados.append(\"!\");\r\n\t\tdados.append(this.getAlerta());\r\n\t\tdados.append(\"! \");\r\n\t\tdados.append(super.toString());\r\n\t\treturn dados.toString();\r\n\t}",
"@Override\r\n public String toString() {\r\n return \"Datos de Jugador: \"\r\n + \"\\n\" + \"Alias : \" + this.getAlias()\r\n + \"\\n\" + \"Nombre: \" + this.getNombre()\r\n + \"\\n\" + \"Edad : \" + this.getEdad()\r\n + \"\\n\" + \"Partidas Ganadas: \" + this.getPartidasGanadasToString()\r\n + \"\\n\" + \"Partidas Perdidas: \" + this.getPartidasPerdidasToString()\r\n + \"\\n\" + \"Partidas Empatadas: \" + this.getPartidasEmpatadasToString();\r\n }",
"public String toString()\n {\n String retour;\n\n retour = \"idAdherent : \" + idAdherent+ \"\\n\";\n retour += \"idCours : \" + idCours + \"\\n\";\n\n return retour;\n }",
"@Override\n public String toString() {\n byte[] buffer = toBuffer();\n return (buffer == null) ? null : new String(buffer, StandardCharsets.UTF_8);\n }",
"@Override\r\n public String toString() {\r\n\t\tStringBuilder sb=new StringBuilder();\r\n\t\tsb.append(\"Usuario{\");\r\n\t\tsb.append(\"emailUsuario\" ).append(\"=\").append(emailUsuario).append(\"|\");\r\n\t\tsb.append(\"contrasenia\" ).append(\"=\").append(contrasenia).append(\"|\");\r\n\t\tsb.append(\"fechaCreacion\" ).append(\"=\").append(fechaCreacion).append(\"|\");\r\n\t\tsb.append(\"nombre\" ).append(\"=\").append(nombre).append(\"|\");\r\n\t\tsb.append(\"apellidoPaterno\" ).append(\"=\").append(apellidoPaterno).append(\"|\");\r\n\t\tsb.append(\"apellidoMaterno\" ).append(\"=\").append(apellidoMaterno).append(\"|\");\r\n\t\tsb.append(\"estatus\" ).append(\"=\").append(estatus).append(\"|\");\r\n\t\tsb.append(\"serialVersionUID=\").append(serialVersionUID).append(\"}\");\r\n\t\treturn sb.toString();\r\n\t}"
] | [
"0.7093228",
"0.7036079",
"0.69985104",
"0.6916356",
"0.6902665",
"0.6901807",
"0.6786099",
"0.6768625",
"0.6760321",
"0.6741311",
"0.67387915",
"0.67274386",
"0.67144334",
"0.6708858",
"0.6640102",
"0.66320693",
"0.66262996",
"0.66123027",
"0.66028255",
"0.65819895",
"0.6575991",
"0.6575428",
"0.6563433",
"0.65620387",
"0.65586084",
"0.6553924",
"0.65534353",
"0.65449387",
"0.6542516",
"0.6532974",
"0.6522123",
"0.6520189",
"0.64949185",
"0.6488602",
"0.6487492",
"0.6479385",
"0.6463157",
"0.64490384",
"0.64461815",
"0.64401174",
"0.6438348",
"0.6429679",
"0.6426366",
"0.6425816",
"0.6424891",
"0.6422427",
"0.6422253",
"0.6418478",
"0.6417072",
"0.6415605",
"0.6405205",
"0.6403602",
"0.63917804",
"0.6390946",
"0.6385091",
"0.6385062",
"0.6382438",
"0.63817316",
"0.6381605",
"0.63801885",
"0.63783836",
"0.63760924",
"0.6372674",
"0.6366133",
"0.6363695",
"0.63516337",
"0.6348744",
"0.63376755",
"0.6336103",
"0.6331884",
"0.63281786",
"0.6327752",
"0.632763",
"0.6326476",
"0.6324799",
"0.63238406",
"0.63236237",
"0.6320842",
"0.6320652",
"0.6320652",
"0.631823",
"0.6318119",
"0.63102466",
"0.6310126",
"0.6310126",
"0.63084775",
"0.630705",
"0.63069105",
"0.63065946",
"0.63004273",
"0.6294384",
"0.6291823",
"0.629046",
"0.628669",
"0.6286388",
"0.6282893",
"0.627555",
"0.62743306",
"0.6273575",
"0.6273192"
] | 0.747073 | 0 |
Executor for taverna workflows. | public interface TavernaExecutor {
/**
* Executes the workflow.
*
* @throws IOException
* if data could not be read
* @throws TavernaExecutorException
* if an error occurs during execution
*/
void execute() throws IOException, TavernaExecutorException;
/**
* Returns the output data of the previous workflow run.
*
* @return a map of port names with the output data
*/
Map<String, ?> getOutputData();
/**
* Returns the output files of the previous workflow run.
*
* @return a map of port names with the output files
*/
HashMap<String, ?> getOutputFiles();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface WorkflowOrchestrator {\n\n <T> Workflow<T> start(WorkflowMeta workflowMeta, Entity<T> entity);\n List<Task> onComplete(Task task, ExecutionContext context);\n List<Task> onFailure(Task task);\n}",
"public void runSequential() {\n int exitVal = -101;\n try {\n exitVal = tsk.executeTask(ss == null ? null : ss.getHiveHistory());\n } catch (Throwable t) {\n if (tsk.getException() == null) {\n tsk.setException(t);\n }\n LOG.error(\"Error in executeTask\", t);\n }\n if (tsk.getException() != null) {\n result.setTaskError(tsk.getException());\n }\n result.setExitVal(exitVal);\n taskQueue.releaseRunnable();\n }",
"public void execute(DelegateExecution ex) throws Exception {\n\t\tString gotsid = getVar(ex, \"gotsid\");\n\t\tString name = getVar(ex, \"name\");\n\t\tString pipeline_name = getVar(ex, \"pipeline_name\");\n\t\tString submodule_name = getVar(ex, \"submodule_name\");\n\t\tString process_name = getVar(ex, \"processName\");\n\t\tString pipelineId = getVar(ex, \"pipeline_id\");\n\t\tString index = getVar(ex, \"array_indexer\");\n\t\tex.setVariable(\"reviewSubmodule\", \"false\");\n\t\tex.setVariable(\"refreshRate\", Database.getSystemConfig(\"jenkinsRefreshRate\").toString());\n\t\tex.setVariable(\"associated\", Database.isAssociated(gotsid));\n\t\tString info = \"Beginning\";\n\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name, \"GetConfig\",\n\t\t\t\t\"execute\", info);\n\t\tString deployName = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\"deploymentName\", index);\n\n\t\t// Get the config attributes and values by index\n\t\tMap results = Database.getConfigAttributesByIndex(gotsid, name, pipeline_name, submodule_name, process_name,\n\t\t\t\tindex);\n\t\tif (!process_name.equals(\"RequestBuild\")) {\n\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" phase for the deployment (\" + deployName + \") in the \"\n\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage has started.\";\n\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t}\n\n\t\t// Set each attribute's value during execution.\n\t\tIterator it = results.entrySet().iterator();\n\t\tboolean automatic = false;\n\t\twhile (it.hasNext()) {\n\t\t\tMap.Entry pair = (Map.Entry) it.next();\n\t\t\tString attribute_name = pair.getKey().toString().trim();\n\t\t\tString attribute_value = pair.getValue().toString().trim();\n\t\t\tif (attribute_name.equals(\"assignTo\") && (attribute_value == null || attribute_value.isEmpty())) {\n\t\t\t\tex.setVariable(\"assignTo\", AAFConnector.getAdminList(gotsid));\n\t\t\t} else if (attribute_name.equals(\"enableApproval\")\n\t\t\t\t\t&& (attribute_value == null || attribute_value.isEmpty() || attribute_value.equals(\"false\"))) {\n\t\t\t\tex.setVariable(\"isApproved\", true);\n\t\t\t\tex.setVariable(attribute_name, \"false\");\n\t\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" approval process has been disabled in the \"\n\t\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage. This step has been skipped.\";\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\tinfo = \"Setting \" + attribute_name + \" = \" + attribute_value;\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info);\n\t\t\t} else {\n\t\t\t\tif (attribute_name.equals(\"enableApproval\")) {\n\t\t\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" approval process has been enabled in the \"\n\t\t\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage for the deployment configuration (\" + deployName + \").\";\n\t\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\t}\n\t\t\t\tex.setVariable(attribute_name, attribute_value);\n\t\t\t\tinfo = \"Setting \" + attribute_name + \" = \" + attribute_value;\n\t\t\t\tif (attribute_name.equals(\"automatic\") && attribute_value.equals(\"true\")) {\n\t\t\t\t\tautomatic = true;\n\t\t\t\t\tinfo = \"The \" + Database.getSubmoduleNameLabel(submodule_name) + \" phase for the deployment (\" + deployName\n\t\t\t\t\t\t\t+ \") has been configured to be handled automatically. Starting the automatic build and/or deployment process. Please wait...\";\n\t\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\t}\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info);\n\t\t\t}\n\t\t}\n\n\t\t// Set process description\n\t\tif (automatic) {\n\t\t\tString description = Database.getDescription(\"descriptionAutomatic\", pipeline_name, submodule_name,\n\t\t\t\t\tprocess_name);\n\t\t\tString deployname = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\t\"deploymentName\", index);\n\t\t\tString newDescription = description.replaceAll(Pattern.quote(\"((deployname))\"), deployname);\n\t\t\tex.setVariable(\"processDescription\", newDescription);\n\t\t} else {\n\t\t\tString description = Database.getDescription(\"description\", pipeline_name, submodule_name, process_name);\n\t\t\tString deployname = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\t\"deploymentName\", index);\n\t\t\tString newDescription = description.replaceAll(Pattern.quote(\"((deployname))\"), deployname);\n\t\t\tex.setVariable(\"processDescription\", newDescription);\n\t\t}\n\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name, \"GetConfig\",\n\t\t\t\t\"execute\", \"End\");\n\t}",
"public static void main(String[] args) throws Exception {\n InputStream clientCert = new FileInputStream(System.getenv(\"TEMPORAL_CLIENT_CERT\"));\n // PKCS8 client key, which should look like:\n // -----BEGIN PRIVATE KEY-----\n // ...\n // -----END PRIVATE KEY-----\n InputStream clientKey = new FileInputStream(System.getenv(\"TEMPORAL_CLIENT_KEY\"));\n // For temporal cloud this would likely be ${namespace}.tmprl.cloud:7233\n String targetEndpoint = System.getenv(\"TEMPORAL_ENDPOINT\");\n // Your registered namespace.\n String namespace = System.getenv(\"TEMPORAL_NAMESPACE\");\n // Create SSL enabled client by passing SslContext, created by SimpleSslContextBuilder.\n WorkflowServiceStubs service =\n WorkflowServiceStubs.newServiceStubs(\n WorkflowServiceStubsOptions.newBuilder()\n .setSslContext(SimpleSslContextBuilder.forPKCS8(clientCert, clientKey).build())\n .setTarget(targetEndpoint)\n .build());\n\n // Now setup and start workflow worker, which uses SSL enabled gRPC service to communicate with\n // backend.\n // client that can be used to start and signal workflows.\n WorkflowClient client =\n WorkflowClient.newInstance(\n service, WorkflowClientOptions.newBuilder().setNamespace(namespace).build());\n // worker factory that can be used to create workers for specific task queues\n WorkerFactory factory = WorkerFactory.newInstance(client);\n // Worker that listens on a task queue and hosts both workflow and activity implementations.\n factory.newWorker(TASK_QUEUE);\n // TODO now register your workflow types and activity implementations.\n // worker.registerWorkflowImplementationTypes(...);\n // worker.registerActivitiesImplementations(...);\n factory.start();\n }",
"@Override\n public WorkflowResponse execute(WorkflowDTO workflowDTO) throws WorkflowException {\n\n if (log.isDebugEnabled()) {\n log.debug(\"Executing API State change Workflow.\");\n }\n if (stateList != null) {\n Map<String, List<String>> stateActionMap = getSelectedStatesToApprove();\n APIStateWorkflowDTO apiStateWorkFlowDTO = (APIStateWorkflowDTO) workflowDTO;\n\n if (stateActionMap.containsKey(apiStateWorkFlowDTO.getApiCurrentState().toUpperCase())\n && stateActionMap.get(apiStateWorkFlowDTO.getApiCurrentState().toUpperCase())\n .contains(apiStateWorkFlowDTO.getApiLCAction())) {\n\n String callBackURL = apiStateWorkFlowDTO.getCallbackUrl();\n String message = \"Approval request for API state change action \" + apiStateWorkFlowDTO.getApiLCAction()\n + \" from \" + apiStateWorkFlowDTO.getApiCurrentState() + \" state for the API \"\n + apiStateWorkFlowDTO.getApiName() + \" : \" + apiStateWorkFlowDTO.getApiVersion() + \" by \"\n + apiStateWorkFlowDTO.getApiProvider() + \"\";\n apiStateWorkFlowDTO.setWorkflowDescription(message);\n apiStateWorkFlowDTO.setMetadata(\"CurrentState\", apiStateWorkFlowDTO.getApiCurrentState());\n apiStateWorkFlowDTO.setMetadata(\"Action\", apiStateWorkFlowDTO.getApiLCAction());\n apiStateWorkFlowDTO.setMetadata(\"ApiName\", apiStateWorkFlowDTO.getApiName());\n apiStateWorkFlowDTO.setMetadata(\"ApiVersion\", apiStateWorkFlowDTO.getApiVersion());\n apiStateWorkFlowDTO.setMetadata(\"ApiProvider\", apiStateWorkFlowDTO.getApiProvider());\n apiStateWorkFlowDTO.setMetadata(\"Invoker\", apiStateWorkFlowDTO.getInvoker());\n apiStateWorkFlowDTO.setMetadata(\"TenantId\", String.valueOf(apiStateWorkFlowDTO.getTenantId()));\n\n apiStateWorkFlowDTO.setProperties(\"action\", apiStateWorkFlowDTO.getApiLCAction());\n apiStateWorkFlowDTO.setProperties(\"apiName\", apiStateWorkFlowDTO.getApiName());\n apiStateWorkFlowDTO.setProperties(\"apiVersion\", apiStateWorkFlowDTO.getApiVersion());\n apiStateWorkFlowDTO.setProperties(\"apiProvider\", apiStateWorkFlowDTO.getApiProvider());\n apiStateWorkFlowDTO.setProperties(\"currentState\", apiStateWorkFlowDTO.getApiCurrentState());\n\n super.execute(workflowDTO);\n } else {\n // For any other states, act as simple workflow executor.\n workflowDTO.setStatus(WorkflowStatus.APPROVED);\n // calling super.complete() instead of complete() to act as the simpleworkflow executor\n super.complete(workflowDTO);\n }\n } else {\n String msg = \"State change list is not provided. Please check <stateList> element in workflow-extensions.xml\";\n log.error(msg);\n throw new WorkflowException(msg);\n }\n return new GeneralWorkflowResponse();\n }",
"public static void main(String[] args) {\n\n V2Grpc.V2BlockingStub stub = V2Grpc.newBlockingStub(ClarifaiChannel.INSTANCE.getGrpcChannel())\n .withCallCredentials(new ClarifaiCallCredentials(PAT));\n\n SingleWorkflowResponse getWorkflowResponse = stub.getWorkflow(\n GetWorkflowRequest.newBuilder()\n .setUserAppId(UserAppIDSet.newBuilder().setUserId(USER_ID).setAppId(APP_ID))\n .setWorkflowId(WORKFLOW_ID)\n .build()\n );\n\n if (getWorkflowResponse.getStatus().getCode() != StatusCode.SUCCESS) {\n throw new RuntimeException(\"Get workflow failed, status: \" + getWorkflowResponse.getStatus());\n }\n\n Workflow workflow = getWorkflowResponse.getWorkflow();\n\n System.out.println(\"The workflow consists of these models:\");\n for (WorkflowNode workflowNode: workflow.getNodesList()) {\n Model model = workflowNode.getModel();\n System.out.println(model.getId());\n }\n\n }",
"@Override\r\n\tpublic void execute(SailPointContext context, TaskSchedule arg1, TaskResult arg2, Attributes<String, Object> arg3)\r\n\t\t\tthrows Exception {\n\t\tString role = \"\";\r\n\t\tif(arg3.get(\"role\") != null){\r\n\t\t\trole = (String)arg3.get(\"role\");\r\n\t\t\tlogger.debug(CLASS_NAME + \" role that will be processed \" + role);\r\n\t\t}else{\r\n\t\t\tlogger.debug(CLASS_NAME + \" role argument's not found\");\r\n\t\t}\r\n\t\t\r\n\t\tif(arg3.get(\"branchCode\") != null){\r\n\t\t\tString input = (String)arg3.get(\"branchCode\");\r\n\t\t\tlogger.debug(CLASS_NAME + \" branchcode that will be processed \" + input);\r\n\t\t\t\r\n\t\t\tString branchCode = \"\";\r\n\t\t\tif(\"all\".equalsIgnoreCase(input)){\r\n\t\t\t\t\r\n\t\t\t\tlogger.debug(CLASS_NAME + \" will process all branch\");\r\n\t\t\t\t\r\n\t\t\t\t\tList branches = BranchUtil.getAllBranchCode(context);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(branches != null && branches.size() > 0){\r\n\t\t\t\t\t\tlogger.debug(\"branch tidak kosong\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tint listLength = branches.size();\r\n\t\t\t\t\t\tfor(int bob=0; bob<listLength; bob++){\r\n\t\t\t\t\t\t\tbranchCode = (String)branches.get(bob);\r\n\t\t\t\t\t\t\tlogger.debug(CLASS_NAME + \" process branch\" + branchCode);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tdeleteroleAssignments(context, branchCode, role);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tString[] arrBranchCode = input.split(\",\");\r\n\t\t\t\tint len = arrBranchCode.length;\r\n\t\t\t\tfor(int i=0; i<len; i++){\r\n\t\t\t\t\tbranchCode = arrBranchCode[i].trim();\r\n\t\t\t\t\tlogger.debug(CLASS_NAME + \" Branch Code : \" + branchCode);\r\n\t\t\t\t\t\r\n\t\t\t\t\tdeleteroleAssignments(context, branchCode, role);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tlogger.debug(CLASS_NAME + \" branchCode argument's not found\");\r\n\t\t}\r\n\t}",
"public Workflow runWorkflow(RuntimePlan planexe, Metadata meta)\n throws Exception {\n HashMap<String, WorkflowTask> tasksById =\n new HashMap<String, WorkflowTask>();\n HashMap<String, String> opProducers = new HashMap<String, String>();\n HashMap<String, String> taskJobs = new HashMap<String, String>();\n for (RuntimeStep stepexe : planexe.getQueue().getAllSteps()) {\n ExecutionStep step = stepexe.getStep();\n\n ArrayList<String> inputs = new ArrayList<String>();\n ArrayList<String> outputs = new ArrayList<String>();\n String argstring = \"\";\n for (String argname : step.getInvocationArguments().keySet()) {\n argstring += argname + \" \";\n for (Object arg : step.getInvocationArguments().get(argname)) {\n if (arg instanceof String) argstring += arg; else if (\n arg instanceof ExecutionFile\n ) argstring += this.jobdir + ((ExecutionFile) arg).getBinding();\n argstring += \" \";\n }\n }\n for (ExecutionFile input : step.getInputFiles()) inputs.add(\n input.getBinding()\n );\n for (ExecutionFile output : step.getOutputFiles()) outputs.add(\n output.getBinding()\n );\n WorkflowTask task =\n this.getTask(planexe, stepexe, inputs, outputs, argstring);\n\n tasksById.put(stepexe.getName(), task);\n taskJobs.put(stepexe.getName(), step.getCodeBinding().getID());\n for (ExecutionFile output : step.getOutputFiles()) opProducers.put(\n output.getName(),\n stepexe.getName()\n );\n }\n\n // Get Parent Child Relationship between jobs\n HashMap<String, ArrayList<String>> parents =\n new HashMap<String, ArrayList<String>>();\n for (RuntimeStep stepexe : planexe.getQueue().getAllSteps()) {\n ExecutionStep step = stepexe.getStep();\n ArrayList<String> chparents = parents.get(stepexe.getName());\n if (chparents == null) chparents = new ArrayList<String>();\n for (ExecutionFile input : step.getInputFiles()) {\n if (opProducers.containsKey(input.getName())) chparents.add(\n opProducers.get(input.getName())\n );\n }\n parents.put(stepexe.getName(), chparents);\n }\n\n // Arrange Jobs into Job Levels\n TreeMap<Integer, ArrayList<String>> jobLevels =\n new TreeMap<Integer, ArrayList<String>>();\n for (String jobid : tasksById.keySet()) {\n Integer lvl = new Integer(getJobLevel(jobid, 0, parents));\n ArrayList<String> lvljobs;\n if (jobLevels.containsKey(lvl)) {\n lvljobs = jobLevels.get(lvl);\n } else {\n lvljobs = new ArrayList<String>();\n jobLevels.put(lvl, lvljobs);\n }\n lvljobs.add(jobid);\n }\n\n // Create workflow graph\n Graph graph = new Graph();\n graph.setExecutionType(\"sequential\");\n graph.setModelId(planexe.getName());\n graph.setModelName(planexe.getName());\n\n ParentChildWorkflow pcw = new ParentChildWorkflow(graph);\n pcw.setId(planexe.getName());\n\n // Add Jobs to Workflow\n int jobnum = 1;\n for (Integer lvl : jobLevels.keySet()) {\n Graph subGraph = null;\n\n /*if(jobLevels.get(lvl).size() > 1) {\n subGraph = new Graph();\n subGraph.setParent(graph);\n subGraph.setExecutionType(\"parallel\");\n subGraph.setModelId(planexe.getName()+\"_level_\"+lvl);\n subGraph.setModelName(planexe.getName()+\"_level_\"+lvl);\n }\n else {*/\n subGraph = graph;\n //}\n\n for (String jobid : jobLevels.get(lvl)) {\n WorkflowTask task = tasksById.get(jobid);\n String compid = taskJobs.get(jobid);\n // Set job number specific configs\n String taskid = \"Job\" + jobnum;\n task\n .getTaskConfig()\n .addConfigProperty(\"LOGFILE\", task.getTaskName() + \".log\");\n task.getTaskConfig().addConfigProperty(\"JOBID\", taskid);\n task.getTaskConfig().addConfigProperty(\"COMPONENT_ID\", compid);\n\n Graph taskGraph = new Graph();\n taskGraph.setExecutionType(\"task\");\n taskGraph.setModelIdRef(task.getTaskId());\n taskGraph.setTask(task);\n\n taskGraph.setParent(subGraph);\n subGraph.getChildren().add(taskGraph);\n\n pcw.getTasks().add(task);\n jobnum++;\n }\n\n if (graph != subGraph) graph.getChildren().add(subGraph);\n }\n\n PrintStream wlog = new PrintStream(this.jobdir + this.wlogfile);\n wlog.println(\"Total Jobs: \" + (jobnum - 1));\n wlog.close();\n\n try {\n WmServicesClient wmclient = new WmServicesClient(this.wmsurl);\n wmclient.addPackagedWorkflow(pcw.getId(), pcw);\n this.wmclient.sendEvent(pcw.getId(), meta);\n return pcw;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"public void execute(final ExecutionContext executionContext)\n throws Exception\n {\n //\n // process action handler arguments\n //\n \n if (foreach == null)\n {\n throw new WorkflowException(\"forEach has not been provided\");\n }\n\n// Collection<?> forEachColl = buildForEachCollection(executionContext);\n \n if (var == null || var.length() == 0)\n {\n throw new WorkflowException(\"forEach variable name has not been provided\");\n }\n \n //\n // create forked paths\n //\n \n Node node = executionContext.getNode();\n List<ForkedTransition> forkTransitions = new ArrayList<ForkedTransition>();\n\n Collection<?> forEachColl = buildForEachCollection(executionContext);\n \n // Create a new token and execution context for each node transition and item in list\n List<Transition> nodeTransitions = node.getLeavingTransitions();\n for (Transition noderansition : nodeTransitions)\n {\n int iVar = 0;\n for (Object item: forEachColl)\n {\n // create child token to represent new path\n Token loopToken = buildChildToken(executionContext, noderansition, iVar);\n iVar++;\n \n // assign variable within path\n final ExecutionContext newExecutionContext = new ExecutionContext(loopToken);\n newExecutionContext.getContextInstance().createVariable(var, item, loopToken);\n \n // record path & transition\n ForkedTransition forkTransition = new ForkedTransition();\n forkTransition.executionContext = newExecutionContext;\n forkTransition.transition = noderansition;\n forkTransitions.add(forkTransition);\n }\n }\n\n //\n // let each new token leave the node.\n //\n for (ForkedTransition forkTransition : forkTransitions)\n {\n node.leave(forkTransition.executionContext, forkTransition.transition);\n }\n }",
"public void execute(final WorkflowExecutor workflow, final Context context) {\n if (chainIt.hasNext()) {\n currentStep = chainIt.next();\n Log.info(getClass(), \"Executing :: \" + context.getProject().getName() + \" :: => \" + currentStep.getClass());\n currentStep.execute(workflow, context);\n }\n }",
"abstract void execute(TaskList tasks, Ui ui, Storage storage) throws IOException;",
"protected abstract QueryResult executeWorkFlow(LogicalWorkflow workflow) throws ConnectorException;",
"public void apply(Project project) {\n TaskContainer taskContainer = project.getTasks();\n\n TaskCacheTask taskCacheTask = taskContainer.create(\"cacheTaskList\", TaskCacheTask.class);\n taskContainer.getByName(\"assemble\").dependsOn(taskCacheTask);\n\n CommandlineFlagsTask flagsCacheTask = taskContainer.create(\"cacheCommandlineFlags\", CommandlineFlagsTask.class);\n taskContainer.getByName(\"assemble\").dependsOn(flagsCacheTask);\n\n taskContainer.create(\"installTabCompletion\", InstallerTask.class);\n\n //TODO: Add up-to-date checks for both\n }",
"public CommandLineRun(File tavernaHome, File outputRoot, TavernaInput[] inputs, String inputsURI, String workflowURI) \n throws TavernaException, IOException{\n ArrayList<String> cmd = getLaunch(tavernaHome);\n runDirectory = Utils.createCalendarBasedDirectory(outputRoot);\n baclavaFile = new File (runDirectory, \"BaclavaOutput.xml\");\n cmd.add(\"-outputdoc=\" + baclavaFile.getAbsolutePath());\n File logFile = new File(runDirectory, \"TavernaLog.txt\");\n cmd.add(\"-logfile=\" + logFile.getAbsolutePath());\n if (inputs != null){\n for (TavernaInput input:inputs){\n cmd.addAll(input.getInputArguements()); \n }\n } else if (inputsURI != null){\n cmd.add(\"-inputdoc=\" + inputsURI);\n }\n cmd.add(workflowURI);\n\n String[] command = new String[0];\n command = cmd.toArray(command);\n runner = new ProcessRunner(command, tavernaHome);\n runner.start();\n }",
"static void runJobFlow() throws InterruptedException{\n JobFlowInstancesConfig instances = new JobFlowInstancesConfig();\n //********************************************************************//\n instances.setHadoopVersion(HADOOP_VERSION);\n instances.withEc2KeyName(\"ayuda-vp1\");\n instances.setInstanceCount(MASTER_INSTANCE_COUNT);\n //instances.setInstanceGroups(instanceGroups)\n instances.setMasterInstanceType(InstanceType.M24xlarge.toString());\n instances.setSlaveInstanceType(InstanceType.M24xlarge.toString());\n //********************************************************************//\n HadoopJarStepConfig hadoopJarStep1 = new HadoopJarStepConfig()\n .withJar(S3N_WORD_COUNT_JAR_) // This should be a full map reduce application.\n .withArgs(BUCKET_NAME+\"inWC\", BUCKET_NAME+\"outWC\");\n \n StepConfig stepConfig1 = new StepConfig()\n .withName(\"wordcount\")\n .withHadoopJarStep(hadoopJarStep1)\n .withActionOnFailure(\"TERMINATE_JOB_FLOW\");\n\n //********************************************************************//\n \n //********************************************************************//\n HadoopJarStepConfig hadoopJarStep2 = new HadoopJarStepConfig()\n .withJar(S3N_MAX_WORD_COUNT_JAR) // This should be a full map reduce application.\n .withArgs(BUCKET_NAME+\"outWC\", BUCKET_NAME+\"outXWC\",\"hate\",\"10\");\n \n \n StepConfig stepConfig2 = new StepConfig()\n .withName(\"maxwordcount\")\n .withHadoopJarStep(hadoopJarStep2)\n .withActionOnFailure(\"TERMINATE_JOB_FLOW\");\n //********************************************************************//\n \n Collection<StepConfig> csc = new ArrayList<StepConfig>();\n csc.add(stepConfig1);\n csc.add(stepConfig2);\n \n // BootstrapActions bootstrapActions = new BootstrapActions();\n RunJobFlowRequest runFlowRequest = new RunJobFlowRequest()\n .withName(FLOW_NAME)\n .withInstances(instances)\n .withSteps(csc)\n .withLogUri(BUCKET_NAME+\"debug\")\n /*.withBootstrapActions(\n bootstrapActions.newRunIf(\n \"instance.isMaster=true\",\n bootstrapActions.newConfigureDaemons()\n .withHeapSize(Daemon.JobTracker, 4096)\n .build()),\n bootstrapActions.newRunIf(\n \"instance.isRunningNameNode=true\",\n bootstrapActions.newConfigureDaemons()\n .withHeapSize(Daemon.NameNode, 4096).build()),\n bootstrapActions.newRunIf(\n \"instance.isRunningDataNode=true\",\n bootstrapActions.newConfigureDaemons()\n .withHeapSize(Daemon.DataNode, 4096).build()),\n bootstrapActions.newRunIf(\n \"instance.isRunningJobTracker=true\",\n bootstrapActions.newConfigureDaemons()\n .withHeapSize(Daemon.JobTracker, 4096).build()),\n bootstrapActions.newRunIf(\n \"instance.isRunningTaskTracker=true\",\n bootstrapActions.newConfigureDaemons()\n .withHeapSize(Daemon.TaskTracker, 4096).build()) \n \n /*,\n \n bootstrapActions.newRunIf(\n \"instance.isSlave=true\",\n bootstrapActions.newConfigureHadoop()\n .withKeyValue(ConfigFile.Site,\"mapred.tasktracker.map.tasks.maximum\", \"4\")) \n )*/;\n \n \n RunJobFlowResult runJobFlowResult = emr.runJobFlow(runFlowRequest);\n\t \n\t String jobFlowId = runJobFlowResult.getJobFlowId();\n\t System.out.println(\"Ran job flow with id: \" + jobFlowId);\n\t \n\t //wasFinished(runJobFlowResult);\n\t \n }",
"public void execute() {\n TestOrchestratorContext context = factory.createContext(this);\n\n PipelinesManager pipelinesManager = context.getPipelinesManager();\n ReportsManager reportsManager = context.getReportsManager();\n TestDetectionOrchestrator testDetectionOrchestrator = context.getTestDetectionOrchestrator();\n TestPipelineSplitOrchestrator pipelineSplitOrchestrator = context.getPipelineSplitOrchestrator();\n\n pipelinesManager.initialize(testTask.getPipelineConfigs());\n reportsManager.start(testTask.getReportConfigs(), testTask.getTestFramework());\n pipelineSplitOrchestrator.start(pipelinesManager);\n\n testDetectionOrchestrator.startDetection();\n testDetectionOrchestrator.waitForDetectionEnd();\n LOGGER.debug(\"test - detection - ended\");\n\n pipelineSplitOrchestrator.waitForPipelineSplittingEnded();\n pipelinesManager.pipelineSplittingEnded();\n LOGGER.debug(\"test - pipeline splitting - ended\");\n\n pipelinesManager.waitForExecutionEnd();\n reportsManager.waitForReportEnd();\n\n LOGGER.debug(\"test - execution - ended\");\n }",
"@Override\n public WorkflowResponse complete(WorkflowDTO workflowDTO) throws WorkflowException {\n if (log.isDebugEnabled()) {\n log.debug(\"Completing API State change Workflow..\");\n }\n workflowDTO.setUpdatedTime(System.currentTimeMillis());\n super.complete(workflowDTO);\n String externalWorkflowRef = workflowDTO.getExternalWorkflowReference();\n try {\n ApiMgtDAO apiMgtDAO = ApiMgtDAO.getInstance();\n Workflow workflow = apiMgtDAO.getworkflowReferenceByExternalWorkflowReference(externalWorkflowRef);\n String apiName = workflow.getMetadata(\"ApiName\");\n String action = workflow.getMetadata(\"Action\");\n String providerName = workflow.getMetadata(\"ApiProvider\");\n String version = workflow.getMetadata(\"ApiVersion\");\n String invoker = workflow.getMetadata(\"Invoker\");\n String currentStatus = workflow.getMetadata(\"CurrentState\");\n int tenantId = workflowDTO.getTenantId();\n try {\n //tenant flow is already started from the rest api service impl. no need to start from here\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(invoker);\n Registry registry = ServiceReferenceHolder.getInstance().getRegistryService()\n .getGovernanceUserRegistry(invoker, tenantId);\n APIIdentifier apiIdentifier = new APIIdentifier(providerName, apiName, version);\n GenericArtifact apiArtifact = APIUtil.getAPIArtifact(apiIdentifier, registry);\n if (WorkflowStatus.APPROVED.equals(workflowDTO.getStatus())) {\n String targetStatus;\n apiArtifact.invokeAction(action, APIConstants.API_LIFE_CYCLE);\n targetStatus = apiArtifact.getLifecycleState();\n if (!currentStatus.equals(targetStatus)) {\n apiMgtDAO.recordAPILifeCycleEvent(apiIdentifier, currentStatus.toUpperCase(),\n targetStatus.toUpperCase(), invoker, tenantId);\n }\n if (log.isDebugEnabled()) {\n String logMessage = \"API Status changed successfully. API Name: \" + apiIdentifier.getApiName()\n + \", API Version \" + apiIdentifier.getVersion() + \", New Status : \" + targetStatus;\n log.debug(logMessage);\n }\n }\n } catch (RegistryException e) {\n String errorMsg = \"Could not complete api state change workflow\";\n log.error(errorMsg, e);\n throw new WorkflowException(errorMsg, e);\n }\n } catch (APIManagementException e) {\n String errorMsg = \"Could not complete api state change workflow\";\n log.error(errorMsg, e);\n }\n return new GeneralWorkflowResponse();\n }",
"public static void main(String[] args) throws Exception {\n new ServicesWorkflow().execute(args);\n }",
"private static void executeTask02() {\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic String execute() throws Exception {\n\t\tif(this.client == null)\n\t\t\tthis.client = this.bpmUserClientUtil.getClient();\n\t\t\n\t\tString hisId = this.getSelfHistoryId();\n\t\tActivityInstHistory his = client.getActivityInstHistory(hisId);\n\t\t\t\n\t\tList<ActivityInst> insts = client.getActivityInstListByOutActvityInstHistory(hisId, null);\n\t\n\t\ttotalCount = insts.size();\n\t\tfor(int i=0; i<insts.size(); i++){\n\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\tActivityInst inst = insts.get(i);\n\t\t\tif(!inst.isCanTakeBack()){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(\"suspended\".equals(inst.getState())){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString name = inst.getActivityDef().getName();\n\t\t\tSystem.out.println(name);\n\t\t\tmap.put(\"name\", name);\n\t\t\tmap.put(\"arriveTime\", DateUtils.format(inst.getArrivedTime(),\n\t\t\t\t\t\"yyyy-MM-dd HH:mm:ss\"));\n\t\t\tif(inst.getStartTime() != null)\n\t\t\t\tmap.put(\"startTime\", DateUtils.format(inst.getStartTime(),\"yyyy-MM-dd HH:mm:ss\"));\n\t\t\telse\n\t\t\t\tmap.put(\"startTime\", \"\");\n\t\t\tmap.put(\"status\", this.getStatus(inst));\n\t\t\tList performers = (List)client.getActivityInstRightAttribute(inst.getActivityInstId(), OARightConstants.ACTIVITYINST_RIGHT_ATT_PERFORMER, null);\n\t\t\tSystem.out.println(inst.getActivityInstId());\n\t\t\tPerson p = (Person) performers.get(0);\n\t\t\tString person = p.getName() + '/' + p.getOrgs()[0].getName();\n\t\t\tmap.put(\"person\", person);\n\t\t\tmap.put(\"instId\", inst.getActivityInstId());\n\t\t\tmap.put(\"historyId\", his.getActivityHistoryId());\n\t\t\tlist.add(map);\n\t\t}\n\t\t\n\t\treturn SUCCESS;\n\t}",
"protected abstract Version executeTaskLocal(Version theTask);",
"public void submitWorkTasks(WorkflowDefine workflowDefine) {\n\t\t\n\t\t\n\t}",
"@Override\n\tpublic void generateTasks(Workflow workflow, List<Tuple> targets)\n\t{\n\n\t}",
"protected abstract void perform(VCSHistoryProvider.HistoryEntry entry, Set<VCSFileProxy> files);",
"@SuppressWarnings(\"deprecation\")\n @Override\n public String execute(final TaskHandlerActionContext<ActionContext> inActionContext)\n {\n // ***START DB UPDATES****\n\n // get org id to delete.\n Long orgId = (Long) inActionContext.getActionContext().getParams();\n\n // get org DTO and parent org entity (entity needed later)..\n OrganizationModelView orgDto = orgDTOByIdMapper.execute(Collections.singletonList(orgId)).get(0);\n Organization parentOrg = orgByIdMapper.execute(new FindByIdRequest(\"Organization\", orgDto\n .getParentOrganizationId()));\n\n // move all people/personal stream activities out of org.\n MoveOrganizationPeopleResponse movePeopleResponse = movePeopleMapper.execute(new MoveOrganizationPeopleRequest(\n orgDto.getShortName(), parentOrg.getShortName()));\n\n Set<Long> movedPeopleIds = movePeopleResponse.getMovedPersonIds();\n Set<Long> movedActivityIds = movePeopleResponse.getMovedActivityIds();\n\n // get ids of people that have org as related org.\n Set<Long> relatedOrgPersonIds = relatedOrgPersonIdsMapper.execute(orgId);\n\n // delete the org.\n deleteOrgMapper.execute(orgId);\n\n // recalculate org statistics for branch where org removed.\n OrganizationHierarchyTraverser orgTraverser = orgTraverserBuilder.getOrganizationHierarchyTraverser();\n orgTraverser.traverseHierarchy(parentOrg);\n organizationMapper.updateOrganizationStatistics(orgTraverser);\n\n // ***END DB UPDATES****\n\n // queue up async tasks.\n\n // Only reindex all people that were moved out of org.\n HashSet<String> cacheKeysToRemove = new HashSet<String>();\n for (Long personId : movedPeopleIds)\n {\n inActionContext.getUserActionRequests().add(new UserActionRequest(\"indexPersonById\", null, personId));\n }\n\n // re-cache both moved people and people that had org as related org.\n Set<Long> personCacheKeysToModify = new HashSet<Long>(movedPeopleIds);\n personCacheKeysToModify.addAll(relatedOrgPersonIds);\n for (Long personId : personCacheKeysToModify)\n {\n cacheKeysToRemove.add(CacheKeys.PERSON_BY_ID + personId);\n }\n\n // queue up async tasks to reindex moved activities, add cache key for re-cache.\n for (Long activityId : movedActivityIds)\n {\n inActionContext.getUserActionRequests().add(new UserActionRequest(\"indexActivityById\", null, activityId));\n cacheKeysToRemove.add(CacheKeys.ACTIVITY_BY_ID + activityId);\n }\n\n // reindex and re-cache all orgs up tree from deleted org\n // already have parent orgs from updating stats, so use them again here to avoid more calls to datastores.\n Set<Organization> parentOrgs = orgTraverser.getOrganizations();\n for (Organization org : parentOrgs)\n {\n inActionContext.getUserActionRequests().add(\n new UserActionRequest(\"indexOrganizationById\", null, org.getId()));\n cacheKeysToRemove.add(CacheKeys.ORGANIZATION_BY_ID + org.getId());\n cacheKeysToRemove.add(CacheKeys.ORGANIZATION_BY_SHORT_NAME + org.getShortName());\n cacheKeysToRemove.add(CacheKeys.ORGANIZATION_RECURSIVE_CHILDREN + org.getId());\n }\n\n // remove cache keys for org being deleted.\n cacheKeysToRemove.add(CacheKeys.ORGANIZATION_BY_ID + orgId);\n cacheKeysToRemove.add(CacheKeys.ORGANIZATION_BY_SHORT_NAME + orgDto.getShortName());\n cacheKeysToRemove.add(CacheKeys.ORGANIZATION_RECURSIVE_CHILDREN + orgId);\n\n // remove org from search index\n inActionContext.getUserActionRequests().add(\n new UserActionRequest(\"deleteFromSearchIndexAction\", null, new DeleteFromSearchIndexRequest(\n Organization.class, Arrays.asList(orgId))));\n\n // remove org tree DTO\n cacheKeysToRemove.add(CacheKeys.ORGANIZATION_TREE_DTO);\n\n // remove all major components from cache. This is not all inclusive as the peripheral stuff will just\n // expire away and there's no real need to keep maintaining this list as cache is modified.\n inActionContext.getUserActionRequests().add(\n new UserActionRequest(\"deleteCacheKeysAction\", null, cacheKeysToRemove));\n\n return parentOrg.getShortName();\n }",
"private void runTaco() { \n TacoRunner taco = new TacoRunner(configuration);\n taco.run();\n }",
"@Override\n public void run(Map<String, LogicalInput> inputs,\n Map<String, LogicalOutput> outputs) throws Exception {\n try {\n Class<?> clazz = Class.forName(\"org.apache.tez.common.ProgressHelper\");\n Constructor<?> ctor = clazz.getConstructor(Map.class, ProcessorContext.class, String.class);\n progressHelper = ctor.newInstance(inputs, getContext(), this.getClass().getSimpleName());\n Method scheduleProgressTaskService = clazz.getMethod(\"scheduleProgressTaskService\", long.class, long.class);\n scheduleProgressTaskService.invoke(progressHelper, 100,\n Math.max(1000, conf.getInt(TezConfiguration.TEZ_TASK_AM_HEARTBEAT_INTERVAL_MS,\n TezConfiguration.TEZ_TASK_AM_HEARTBEAT_INTERVAL_MS_DEFAULT) - 50));\n }\n catch (IllegalAccessException | IllegalArgumentException | InstantiationException | InvocationTargetException\n | ClassNotFoundException | NoSuchMethodException | SecurityException e) {\n // ignore\n }\n\n try {\n initializeInputs(inputs);\n\n initializeOutputs(outputs);\n\n\n List<PhysicalOperator> leaves = null;\n\n if (!execPlan.isEmpty()) {\n leaves = execPlan.getLeaves();\n // TODO: Pull from all leaves when there are multiple leaves/outputs\n leaf = leaves.get(0);\n }\n\n LOG.info(\"Aliases being processed per job phase (AliasName[line,offset]): \" + conf.get(\"pig.alias.location\"));\n\n runPipeline(leaf);\n\n if (Boolean.valueOf(conf.get(JobControlCompiler.END_OF_INP_IN_MAP, \"false\"))\n && !execPlan.endOfAllInput) {\n // If there is a stream in the pipeline or if this map job belongs to merge-join we could\n // potentially have more to process - so lets\n // set the flag stating that all map input has been sent\n // already and then lets run the pipeline one more time\n // This will result in nothing happening in the case\n // where there is no stream or it is not a merge-join in the pipeline\n execPlan.endOfAllInput = true;\n runPipeline(leaf);\n }\n\n // Calling EvalFunc.finish()\n UDFFinishVisitor finisher = new UDFFinishVisitor(execPlan,\n new DependencyOrderWalker<PhysicalOperator, PhysicalPlan>(\n execPlan));\n try {\n finisher.visit();\n } catch (VisitorException e) {\n int errCode = 2121;\n String msg = \"Error while calling finish method on UDFs.\";\n throw new VisitorException(msg, errCode, PigException.BUG, e);\n }\n\n if (!fileOutputs.isEmpty()) {\n while (!getContext().canCommit() && !isAborted) {\n Thread.sleep(100);\n }\n if (isAborted) {\n return;\n }\n for (MROutput fileOutput : fileOutputs){\n fileOutput.flush();\n if (fileOutput.isCommitRequired()) {\n fileOutput.commit();\n }\n }\n }\n\n // send event containing parallelism to sorting job of order by / skewed join\n if (conf.getBoolean(ESTIMATE_PARALLELISM, false)) {\n int parallelism = 1;\n if (sampleMap!=null && sampleMap.containsKey(ESTIMATED_NUM_PARALLELISM)) {\n parallelism = (Integer)sampleMap.get(ESTIMATED_NUM_PARALLELISM);\n }\n String sortingVertex = conf.get(SORT_VERTEX);\n // Should contain only 1 output for sampleAggregation job\n LOG.info(\"Sending numParallelism \" + parallelism + \" to \" + sortingVertex);\n VertexManagerEvent vmEvent = VertexManagerEvent.create(\n sortingVertex, ByteBuffer.wrap(Ints.toByteArray(parallelism)));\n List<Event> events = Lists.newArrayListWithCapacity(1);\n events.add(vmEvent);\n getContext().sendEvents(events);\n }\n } catch (Exception e) {\n LOG.error(\"Encountered exception while processing: \", e);\n abortOutput();\n throw e;\n }\n }",
"public interface ExecService {\n /**\n * Parse an XML file into a build model.\n *\n * @param xmlBuildFile\n * \t\tThe file containing the XML build description.\n * @return A Project model for the build.\n * @exception ExecutionException\n * \t\tif the build cannot be parsed\n */\n org.apache.ant.common.model.Project parseXMLBuildFile(java.io.File xmlBuildFile) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Create a project reference.\n *\n * @param referenceName\n * \t\tthe name under which the project will be\n * \t\treferenced.\n * @param model\n * \t\tthe project model.\n * @exception ExecutionException\n * \t\tif the project cannot be referenced.\n */\n void createProjectReference(java.lang.String referenceName, org.apache.ant.common.model.Project model) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Setup a sub-build.\n *\n * @param model\n * \t\tthe project model to be used for the build\n * @param properties\n * \t\tthe initiali properties to be used in the build\n * @return a key to the build allowing it to be executed and managed\n * @exception ExecutionException\n * \t\tif the subbuild cannot be setup\n */\n java.lang.Object setupBuild(org.apache.ant.common.model.Project model, java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Setup a sub-build using the current frame's project model\n *\n * @param properties\n * \t\tthe initiali properties to be used in the build\n * @return a key to the build allowing it to be executed and managed\n * @exception ExecutionException\n * \t\tif the subbuild cannot be setup\n */\n java.lang.Object setupBuild(java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Run a build which have been previously setup\n *\n * @param buildKey\n * \t\tthe buildKey returned previously when the build was\n * \t\tsetup\n * @param targets\n * \t\tA list of targets to be run\n * @exception ExecutionException\n * \t\tif the build cannot be run\n */\n void runBuild(java.lang.Object buildKey, java.util.List targets) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * execute a task. The task should have already been initialised by the\n * core\n *\n * @param task\n * \t\tthe task to be executed.\n * @exception ExecutionException\n * \t\tif there is a problem in execution.\n */\n void executeTask(org.apache.ant.common.antlib.Task task) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * get the name of the project associated with this execution.\n *\n * @return the project's name\n */\n java.lang.String getProjectName();\n\n /**\n * Get the basedir for the current execution\n *\n * @return the base directory for this execution of Ant\n */\n java.io.File getBaseDir();\n\n /**\n * Handle subbuild output.\n *\n * @param subbuildKey\n * \t\tthe core's key for managing the subbuild.\n * @param line\n * \t\tthe content produce by the current thread.\n * @param isErr\n * \t\ttrue if this content is from the thread's error stream.\n * @exception ExecutionException\n * \t\tif the subbuild cannot be found.\n */\n void handleBuildOutput(java.lang.Object subbuildKey, java.lang.String line, boolean isErr) throws org.apache.ant.common.util.ExecutionException;\n}",
"public interface WorkflowExecutionListener {}",
"public void executeTask(Version theTask) {\n\n\tif (_stoppedTasks.contains(theTask)) {\n\t // todo: what to do here???\n\t // this task obviously didn't perform well .. \n\t // and now, there's another request to run it!\n\t if (true) {\n\t\t// either try the task again ... \n\t\t_stoppedTasks.remove(theTask);\n\t } else {\n\t\t// or, refuse to run it at all \n\t\treturn;\n\t }\n\t}\n\t\n\t// System.out.println(\" - - - - - - - - - - - PSL! entered executeTask, parameter version> \" + theTask);\n\t// if (_versionCache.contains(theTask)) return;\n\n\n\t// add the pre-execution task to our knowledge base\n\t// replicate it so that in case of a crash we may recover\n\t_versionCache.addVersion(theTask);\n\treplicate(theTask);\n\n\t// tell replicators that we are about to start executing\n\talertReplicatorsExecutingTask(theTask);\n\n\tString taskName = ((TaskDefinition)theTask.data()).getName();\n\n\t// execute the task and get the next task\n\tVersion nextTask = executeTaskLocal(theTask);\n\t_log.completedTaskLocal(theTask);\n\n\tif (_stoppedTasks.contains(theTask)) {\n\t // this task was supposed to be stopped .. can ignore result\n\t _stoppedTasks.remove(theTask);\n\t _log.ignoreResultsOfStoppedTask(theTask);\n\t} else if (nextTask == null) { \n\t // this only happens if we have reached\n\t // the end of the workflow execution \n\t // tell replicators that everything is done.\n\t System.out.println(\"WORKFLOW IS DONE\");\n\t alertReplicatorsDoneExecutingTask(theTask);\n\t} else {\n\t nextTask.append(taskName);\n\t // todo: we need to find a way to replicate the \n\t // post-execution task in a clean way. The here-under\n\t // commented code does not work as it creates a version clash.\n\t // todo: 16-Feb maybe uncomment this??\n\t // _versionCache.addVersion(nextTask);\n\n\t // set the next task for execution\n\t queueTask(nextTask);\n\t // tell the replicators we are done executing the task, they\n\t // don't have to worry about things anymore.\n\t alertReplicatorsDoneExecutingTask(theTask);\n\t}\n }",
"@Override\r\n\tpublic void execute() {\n\t\tversionsManager.changeStrategy();\r\n\t}",
"public abstract void execute(GitTool opts) throws Exception;",
"@Override\r\n public void execute() throws BuildException {\r\n this.validateProperties(); // sanity check.\r\n if (this.isVerbose) {\r\n System.out.printf(\"Processing changelists for %s %s between %s and %s. %n\",\r\n this.port, this.depotPath, this.fromDate, this.toDate);\r\n }\r\n\r\n try {\r\n Map<String, SensorShell> shellCache = new HashMap<String, SensorShell>();\r\n SensorShellMap shellMap = new SensorShellMap(this.tool);\r\n if (this.isVerbose) {\r\n System.out.println(\"Checking for user maps at: \" + shellMap.getUserMapFile());\r\n System.out.println(\"Perforce accounts found: \" + shellMap.getToolAccounts(this.tool));\r\n }\r\n try {\r\n shellMap.validateHackystatInfo(this.tool);\r\n }\r\n catch (Exception e) {\r\n System.out.println(\"Warning: UserMap validation failed: \" + e.getMessage());\r\n }\r\n \r\n P4Environment p4Env = new P4Environment();\r\n p4Env.setP4Port(this.port);\r\n p4Env.setP4User(this.userName);\r\n p4Env.setP4Password(this.password);\r\n p4Env.setP4Executable(this.p4ExecutablePath);\r\n // These are given default values above. User need not set them in the Ant task unless\r\n // the defaults are not correct.\r\n p4Env.setP4SystemDrive(this.p4SysDrive);\r\n p4Env.setP4SystemRoot(this.p4SysRoot);\r\n p4Env.setVerbose(false); // could set this to true for lots of p4 debugging output. \r\n PerforceCommitProcessor processor = new PerforceCommitProcessor(p4Env, this.depotPath);\r\n processor.setIgnoreWhitespace(this.ignoreWhitespace);\r\n processor.processChangeLists(dateFormat.format(this.fromDate), \r\n dateFormat.format(this.toDate));\r\n int entriesAdded = 0;\r\n TstampSet tstampSet = new TstampSet();\r\n for (PerforceChangeListData data : processor.getChangeListDataList()) {\r\n if (this.isVerbose) {\r\n System.out.printf(\"Retrieved Perforce changelist: %d%n\", data.getId());\r\n }\r\n String author = data.getOwner();\r\n Date commitTime = data.getModTime();\r\n for (PerforceChangeListData.PerforceFileData fileData : data.getFileData()) {\r\n SensorShell shell = this.getShell(shellCache, shellMap, author);\r\n this.processCommitEntry(shell, author, tstampSet\r\n .getUniqueTstamp(commitTime.getTime()), commitTime, data.getId(), fileData);\r\n entriesAdded++;\r\n }\r\n }\r\n // Always make sure you call cleanup() at the end. \r\n processor.cleanup();\r\n if (this.isVerbose) {\r\n System.out.println(\"Found \" + entriesAdded + \" commit records.\");\r\n }\r\n\r\n // Send the sensor data after all entries have been processed.\r\n for (SensorShell shell : shellCache.values()) {\r\n if (this.isVerbose) {\r\n System.out.println(\"Sending data to \" + shell.getProperties().getSensorBaseUser() + \r\n \" at \" + shell.getProperties().getSensorBaseHost());\r\n }\r\n shell.send();\r\n shell.quit();\r\n }\r\n }\r\n catch (Exception ex) {\r\n throw new BuildException(ex);\r\n }\r\n }",
"@Override\n protected AccGitHuber doInBackground(Void... voids) {\n return executeRequest();\n }",
"public void execute() throws MojoExecutionException, MojoFailureException {\n ApprovalTestingConfiguration approvalTestingConfiguration =\n new ApprovalTestingConfiguration();\n BaselineRepositoryImpl baselineRepository =\n new BaselineRepositoryImpl(approvalTestingConfiguration);\n ApprovalTestingEngine approvalTestingEngine =\n new ApprovalTestingEngine(baselineRepository, approvalTestingConfiguration);\n Approver approver = approvalTestingEngine.getApprover();\n if (approveAll) {\n approver.approveAllBaselineCandidates();\n } else if (baseline != null) {\n approver.approveBaselineCandidate(baseline);\n } else {\n approver.startApprovingBatchProcess();\n }\n }",
"@SustainScreen(name = \"Case Workflow Summary\", description = \"Index of all workflow related to a case.\", module = SustainModule.WORKFLOW, type = ScreenType.USER,\n inputs = {\n @ScreenInput(name = \"caseId\", description = \"case ID\", type = ScreenInputType.REQUIRED)\n }\n )\n public ActionForward doExecute(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) {\n Long caseId = IdUtil.toId(request.getParameter(\"caseId\"));\n Case cse = Case.get(caseId);\n request.setAttribute(\"cse\", cse);\n\n List<WMActivityInst> openedManual = new ArrayList<WMActivityInst>();\n List<WMActivityInst> closedManual = new ArrayList<WMActivityInst>();\n List<WMActivityInst> suspendedAuto = new ArrayList<WMActivityInst>();\n List<WMActivityInst> closedAuto = new ArrayList<WMActivityInst>();\n\n List<WMActivityInst> opened = WMActivityInst.findOpenedByCase(cse);\n for (WMActivityInst task : opened) {\n if (task.isAuto() && task.isOpenSuspendedState()) {\n suspendedAuto.add(task);\n } else if (task.isManual()) {\n openedManual.add(task);\n }\n }\n\n List<WMActivityInst> closed = WMActivityInst.findClosedByCase(cse);\n for (WMActivityInst task : closed) {\n if (task.isAuto()) {\n closedAuto.add(task);\n } else if (task.isManual()) {\n closedManual.add(task);\n }\n }\n\n\n Comparator<? super WMActivityInst> openTaskComparator = new Comparator<WMActivityInst>() {\n public int compare(WMActivityInst t1, WMActivityInst t2) {\n return new CompareToBuilder().append(t1.getStartDate(), t2.getStartDate()).toComparison();\n }\n };\n Comparator<? super WMActivityInst> closeTaskComparator = new Comparator<WMActivityInst>() {\n public int compare(WMActivityInst t1, WMActivityInst t2) {\n return new CompareToBuilder().append(t1.getEndDate(), t2.getEndDate())\n .append(t1.getStartDate(), t2.getStartDate()).toComparison();\n }\n };\n Collections.sort(openedManual, openTaskComparator);\n Collections.sort(closedManual, closeTaskComparator);\n Collections.sort(suspendedAuto, openTaskComparator);\n Collections.sort(closedAuto, closeTaskComparator);\n\n request.setAttribute(\"openedManual\", openedManual);\n request.setAttribute(\"closedManual\", closedManual);\n request.setAttribute(\"suspendedAuto\", suspendedAuto);\n request.setAttribute(\"closedAuto\", closedAuto);\n\n return mapping.findForward(\"workflows\");\n }",
"public interface WorkflowProvider {\n\n /** Get the priority that should be specified within a subtask\n * of the specified operation type.\n * The default implementation returns null.\n * @param operationType The operation type of the subtask.\n * @return The priority that should be used, or null, if the\n * provider does not need/want to specify one.\n */\n default Integer defaultPriority(@SuppressWarnings(\"unused\")\n final SubtaskOperationType operationType) {\n return null;\n }\n\n /** Perform a subtask.\n * @param taskInfo The top-level TaskInfo for the subtask.\n * @param subtask The subtask to be performed.\n */\n void doSubtask(TaskInfo taskInfo, Subtask subtask);\n\n}",
"void execute() throws Exception {\n\n\t\tif (getSystemState(db) != SYSTEM_STATE_CREATED_COULD_BE_EXACTLY_ONE) {\n\t\t\tInteger ss = getSystemState(db);\n\t\t\tshutDown();\n\t\t\tthrow new Exception(\"System in wrong state for this task: \" + ss);\n\t\t}\n\n\t\tloadExecutionEngine(db);\n\t\tperformUpdate();\n\t\tshutDown();\n\t}",
"public static void main(String[] args) {\n\t\tString configfileLocation = System.getProperty(\"user.dir\") + File.separator + \"WebContent\" +File.separator + \"config.json\";\n\t\tlong size = new File(configfileLocation).length()/(1024*1024);\n\t\t\n\t\tSystem.out.println(size);\n\t\tString content = null;\n\t\tStringBuilder contentBuilder = new StringBuilder();\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(configfileLocation)))\n\t {\n\t \n\t String sCurrentLine;\n\t while ((sCurrentLine = br.readLine()) != null)\n\t {\n\t \tcontentBuilder.append(sCurrentLine).append(\"\\n\");\n\t }\n\t }\n\t catch (IOException e)\n\t {\n\t e.printStackTrace();\n\t }\n\t\tcontent = contentBuilder.toString();\n\t\tJSONParser jsonParser = new JSONParser(content);\n\t\tJSONObject obj = jsonParser.parseJSONObject();\n\t\t\n\t\t\n\t\t\n\t\t// step 1: create a workflow\n\t\tWorkflowVisualization frame = new WorkflowVisualization();\t\n\t\tDiagnosis w = new Diagnosis();\n\t\t\n\t\t// step 2: Design a workflow\n\t\tw.design();\n\t\tframe.drawWorkflowGraph(w);\n\t\t\n\t\t/*\n\t\tString workflowplanner = obj.get(\"WorkflowPlanner\").toString();\n\t\tString workflowexecutor = obj.get(\"WorkflowExecutor\").toString();\n\t\t\n\t\tSystem.out.println(workflowplanner);\n\t\t\n\t\t\n\t\tWorkflowPlanner wp = null;\n\t\ttry {\n\t\t\tClass<?> clazz = Class.forName(\"dataview.planners.WorkflowPlanner\");\n\t\t\t\n\t\t\tConstructor<?> constructor= clazz.getDeclaredConstructor(dataview.models.Workflow.class);\n\t\t\twp = (WorkflowPlanner) constructor.newInstance(w);\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tGlobalSchedule gsch = wp.plan();\n\t\t\n//\t\tSystem.out.println()\n\t\t\n\t\tSystem.out.println(gsch.getSpecification());\n\t\t*/\n\n\t\t// step 3: choose a workflow planner\n\t\tWorkflowPlanner wp = new WorkflowPlanner_T_Cluster(w);\n\t\tGlobalSchedule gsch = wp.plan();\n\t\ttry {\n\t\t// step 4: choose a workflow executor\t\n\t\t\tWorkflowExecutor we = new WorkflowExecutor_Beta(obj, gsch);\n\t\t\twe.execute();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n public void run() {\n List<File> files = getContents(TOP_LEVEL + \" and \" + NOT_TRASHED + \" and \" + FOLDER + \" and \" + NOT_SPREADSHEET);\n \n prune(targetDir, files);\n processLanguages(files);\n }",
"public void execute() throws MojoExecutionException {\n deploy(service, dockerImage,Optional.ofNullable(kalixProject),Optional.ofNullable(kalixContext));\n }",
"@Test(invocationCount=1,skipFailedInvocations=false)\n public void testDemo() throws TimeOut{\n \tMentalStateManager msmAgent1_0DeploymentUnitByType3=MSMRepository.getInstance().waitFor(\"Agent1_0DeploymentUnitByType3\");\n \t \t\t\t\n \t// wait for Agent1_0DeploymentUnitByType2 to initialise\n \tMentalStateManager msmAgent1_0DeploymentUnitByType2=MSMRepository.getInstance().waitFor(\"Agent1_0DeploymentUnitByType2\");\n \t \t\t\t\n \t// wait for Agent0_0DeploymentUnitByType1 to initialise\n \tMentalStateManager msmAgent0_0DeploymentUnitByType1=MSMRepository.getInstance().waitFor(\"Agent0_0DeploymentUnitByType1\");\n \t \t\t\t\n \t// wait for Agent0_0DeploymentUnitByType0 to initialise\n \tMentalStateManager msmAgent0_0DeploymentUnitByType0=MSMRepository.getInstance().waitFor(\"Agent0_0DeploymentUnitByType0\");\n \t\n \t\n \tGenericAutomata ga=null;\n \tga=new GenericAutomata();\n\t\t\t\n\t\t\tga.addInitialState(\"default_WFTestInitialState0\");\t\t\n\t\t\t\n\t\t\tga.addInitialState(\"default_WFTestInitialState1\");\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tga.addFinalState(\"WFTestFinalState0\");\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tga.addStateTransition(\"default_WFTestInitialState0\",\"Agent0_0DeploymentUnitByType0-Task0\",\"WFTestInitialState0\");\n\t\t\t\n\t\t\tga.addStateTransition(\"WFTestInitialState0\",\"Agent1_0DeploymentUnitByType2-Task1\",\"WFTestFinalState0\");\n\t\t\t\n\t\t\tga.addStateTransition(\"default_WFTestInitialState1\",\"Agent0_0DeploymentUnitByType1-Task0\",\"WFTestInitialState1\");\n\t\t\t\n\t\t\tga.addStateTransition(\"WFTestInitialState1\",\"Agent1_0DeploymentUnitByType2-Task1\",\"WFTestFinalState0\");\n\t\t\t\t\n\t\t\t\n\t\t\tTaskExecutionValidation tev=new TaskExecutionValidation(ga);\n \t\n \ttev.registerTask(\"Agent0_0DeploymentUnitByType0\",\"Task0\");\n \t\n \ttev.registerTask(\"Agent1_0DeploymentUnitByType2\",\"Task1\");\n \t\n \ttev.registerTask(\"Agent0_0DeploymentUnitByType1\",\"Task0\");\n \t\n \ttev.registerTask(\"Agent1_0DeploymentUnitByType2\",\"Task1\");\n \t\t\n \t\t\n \tRetrieveExecutionData cwfe=new \tRetrieveExecutionData();\n \tEventManager.getInstance().register(cwfe);\n\t\tlong step=100;\n\t\tlong currentTime=0;\n\t\tlong finishedTime=0;\n\t\tlong duration=2000;\n\t\tlong maxtimepercycle=2000;\n\t\t \n\t\tMainInteractionManager.goAutomatic(); // tells the agents to start working\t\t\t\n\t\twhile (currentTime<finishedTime){\n\t\t\t\ttry {\n\t\t\t\t\tThread.currentThread().sleep(step);\n\t\t\t\t\t\n\t\t\t\t} catch (InterruptedException e) {\t\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcurrentTime=currentTime+step;\n\t\t\t}\n\t\t\t\n\t\t\tif (currentTime<duration){\n\t\t\t\tTestUtils.doNothing(duration-currentTime); // waits for tasks to execute\t\n\t\t\t}\n\t\t\t\t\t\n\t\t\t\n\t\t\tMainInteractionManager.goManual(); // now it commands to not execute more tasks\t\t\n\t\t\tEventManager.getInstance().unregister(cwfe);\n\t\t\t\n\t\t Vector<String> counterExamples=tev.validatePartialTermination(cwfe,ga,maxtimepercycle);\n\t\t assertTrue(\"The execution does not match the expected sequences. I found the following counter examples \"+counterExamples,counterExamples.isEmpty());\t\t\n\t\t\t\t\t\t\t\n }",
"@Override\n public void execute(IEnvironment env)\n {\n \n }",
"@TaskAction\n public void executeAction() {\n try {\n String xml = instantRunBuildContext.toXml();\n if (logger.isEnabled(LogLevel.DEBUG)) {\n logger.debug(\"build-id $1$l, build-info.xml : %2$s\",\n instantRunBuildContext.getBuildId(), xml);\n }\n Files.createParentDirs(buildInfoFile);\n Files.write(instantRunBuildContext.toXml(), buildInfoFile, Charsets.UTF_8);\n } catch (Exception e) {\n\n throw new RuntimeException(\n String.format(\"Exception while saving build-info.xml : %s\", e.getMessage()));\n }\n }",
"@Override\r\n\tprotected void onPostExecute(Void result) {\n\t\tsuper.onPostExecute(result);\r\n\t\tmProgressDialog.dismiss();\r\n\t\tIntent i = new Intent(mainactivity, Workflow.class);\r\n\t\tmainactivity.startActivity(i);\r\n\t}",
"public Map<String,Object> executeWorkflow(Map<String,Object> inputs,String workflowId) throws Exception;",
"public static void main(String[] args) {\n\t\torderSubmitFlowInAmazon();\n\t}",
"public void execute(){\n if (pipeline != null){\n pipeline.addTask(this);\n } else {\n run();\n }\n }",
"@Override\r\n\tpublic void execute(SailPointContext ctx, TaskSchedule scl, TaskResult trs, Attributes<String, Object> attr)\r\n\t\t\tthrows Exception {\n\t\tString METHOD_NAME = \"::execute::\";\r\n\t\tlogger.debug(CLASS_NAME + METHOD_NAME + \"Inside...\");\r\n\t\t\r\n\t\tString USER_ID = (String) attr.get(\"UserId\");\r\n\t\tString launcher = (String) attr.get(\"launcher_Workflow\");\r\n\t\t\r\n\t\tif(USER_ID != null){\r\n\t\t\texecuteDeleteAttr(ctx, USER_ID, launcher);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Test\n public void actionsExecute() throws Exception {\n Language english = (Language)new English();\n Issue issue1 = this.githubIssue(\"amihaiemil\", \"@charlesmike hello there\");\n Issue issue2 = this.githubIssue(\"jeff\", \"@charlesmike hello\");\n Issue issue3 = this.githubIssue(\"vlad\", \"@charlesmike, hello\");\n Issue issue4 = this.githubIssue(\"marius\", \"@charlesmike hello\");\n final Action ac1 = new Action(issue1);\n final Action ac2 = new Action(issue2);\n final Action ac3 = new Action(issue3);\n final Action ac4 = new Action(issue4);\n \n final ExecutorService executorService = Executors.newFixedThreadPool(5);\n List<Future> futures = new ArrayList<Future>();\n futures.add(executorService.submit(new Runnable() {\n @Override\n public void run() {\n ac1.perform();\n }\n }));\n futures.add(executorService.submit(new Runnable() {\n @Override\n public void run() {\n ac2.perform();\n }\n }));\n futures.add(executorService.submit(new Runnable() {\n @Override\n public void run() {\n ac3.perform();\n \n }\n }));\n futures.add(executorService.submit(new Runnable() {\n @Override\n public void run() {\n ac4.perform();\n }\n }));\n\n for(Future f : futures) {\n assertTrue(f.get()==null);\n }\n \n List<Comment> commentsWithReply1 = Lists.newArrayList(issue1.comments().iterate());\n List<Comment> commentsWithReply2 = Lists.newArrayList(issue2.comments().iterate());\n List<Comment> commentsWithReply3 = Lists.newArrayList(issue3.comments().iterate());\n List<Comment> commentsWithReply4 = Lists.newArrayList(issue4.comments().iterate());\n String expectedReply1 = \"> @charlesmike hello there\\n\\n\" + String.format(english.response(\"hello.comment\"),\"amihaiemil\");\n assertTrue(commentsWithReply1.get(1).json().getString(\"body\")\n .equals(expectedReply1)); //there should be only 2 comments - the command and the reply.\n \n String expectedReply2 = \"> @charlesmike hello\\n\\n\" + String.format(english.response(\"hello.comment\"),\"jeff\");\n assertTrue(commentsWithReply2.get(1).json().getString(\"body\")\n .equals(expectedReply2)); //there should be only 2 comments - the command and the reply.\n \n String expectedReply3 = \"> @charlesmike, hello\\n\\n\" + String.format(english.response(\"hello.comment\"),\"vlad\");\n assertTrue(commentsWithReply3.get(1).json().getString(\"body\")\n .equals(expectedReply3)); //there should be only 2 comments - the command and the reply.\n \n String expectedReply4 = \"> @charlesmike hello\\n\\n\" + String.format(english.response(\"hello.comment\"),\"marius\");\n assertTrue(commentsWithReply4.get(1).json().getString(\"body\")\n .equals(expectedReply4)); //there should be only 2 comments - the command and the reply.\n \n }",
"@Test(timeout = TIMEOUT)\n public void createArchiveTaskLifecycle() throws Exception {\n final Result<TaskResponse> uploadImportTaskResponseResult = docSDKClient.importUsing().upload(new UploadImportRequest(), jpgTest1InputStream);\n assertThat(uploadImportTaskResponseResult.getStatus()).isEqualTo(HttpStatus.SC_OK);\n\n final TaskResponse uploadImportTaskResponse = uploadImportTaskResponseResult.getBody();\n assertThat(uploadImportTaskResponse.getOperation()).isEqualTo(Operation.IMPORT_UPLOAD);\n\n // Archive\n final CreateArchivesTaskRequest createArchivesTaskRequest = new CreateArchivesTaskRequest().setInput(uploadImportTaskResponse.getId()).setOutputFormat(ZIP);\n final Result<TaskResponse> archiveTaskResponseResult = docSDKClient.tasks().archive(createArchivesTaskRequest);\n assertThat(archiveTaskResponseResult.getStatus()).isEqualTo(HttpStatus.SC_CREATED);\n\n final TaskResponse archiveTaskResponse = archiveTaskResponseResult.getBody();\n assertThat(archiveTaskResponse.getOperation()).isEqualTo(Operation.ARCHIVE);\n\n // Wait\n final Result<TaskResponse> waitArchiveTaskResponseResult = docSDKClient.tasks().wait(archiveTaskResponse.getId());\n assertThat(waitArchiveTaskResponseResult.getStatus()).isEqualTo(HttpStatus.SC_OK);\n\n final TaskResponse waitArchiveTaskResponse = waitArchiveTaskResponseResult.getBody();\n assertThat(waitArchiveTaskResponse.getOperation()).isEqualTo(Operation.ARCHIVE);\n assertThat(waitArchiveTaskResponse.getStatus()).isEqualTo(Status.FINISHED);\n assertThat(waitArchiveTaskResponse.getId()).isEqualTo(archiveTaskResponse.getId());\n\n // Show\n final Result<TaskResponse> showArchiveTaskResponseResult = docSDKClient.tasks().show(archiveTaskResponse.getId());\n assertThat(showArchiveTaskResponseResult.getStatus()).isEqualTo(HttpStatus.SC_OK);\n\n final TaskResponse showArchiveTaskResponse = showArchiveTaskResponseResult.getBody();\n assertThat(showArchiveTaskResponse.getOperation()).isEqualTo(Operation.ARCHIVE);\n assertThat(showArchiveTaskResponse.getStatus()).isEqualTo(Status.FINISHED);\n assertThat(showArchiveTaskResponse.getId()).isEqualTo(archiveTaskResponse.getId());\n\n // Delete\n final Result<Void> deleteVoidResult = docSDKClient.tasks().delete(archiveTaskResponse.getId());\n assertThat(deleteVoidResult.getStatus()).isEqualTo(HttpStatus.SC_NO_CONTENT);\n }",
"public void oneStepForAllProgram(List<ProgramState> programList) {\n programList.forEach(program -> {\n try {\n repository.logProgramStateExecution(program);\n } catch (MyException | IOException exception) {\n exception.printStackTrace();\n }\n });\n\n\n\n //prepare the list of callables\n List<Callable<ProgramState>> callList = programList.stream()\n .map((ProgramState program) -> (Callable<ProgramState>) (program::oneStep))\n .collect(Collectors.toList());\n\n //start the execution of the callables\n //it returns the list of new created ProgramStates(namely threads)\n try {\n List<ProgramState> newProgramList = executor.invokeAll(callList).stream()\n .map(future -> {\n try {\n return future.get();\n } catch (Exception exception) {\n System.out.println(exception.getMessage());\n return null;\n }\n })\n .filter(Objects::nonNull)\n .collect(Collectors.toList());\n //add the new created threads to the list of existing threads\n programList.addAll(newProgramList);\n //after the execution, print the PrgState List into the log file\n programList.forEach(program -> {\n try {\n repository.logProgramStateExecution(program);\n } catch (MyException | IOException exception) {\n exception.printStackTrace();\n }\n });\n //Save the current programs in the repository\n repository.setProgramStateList(programList);\n } catch (InterruptedException exception) {\n System.out.println(exception.getMessage());\n }\n }",
"@Override\n public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException {\n\n // EnvVars gets Jenkins Build Vars\n final EnvVars env = run.getEnvironment(listener);\n\n // Get Global Plugin Config settings from Descriptor\n\n String deployNameEnv = env.expand(deploymentName);\n String overOpsURL = getDescriptor().getOverOpsURL();\n String overOpsSID = getDescriptor().getOverOpsSID();\n String overOpsUser = getDescriptor().getOverOpsUser();\n String overOpsPWD = Secret.toString(getDescriptor().getOverOpsPWD());\n String overOpsAPIKey = Secret.toString(getDescriptor().getOverOpsAPIKey());\n\n // if url is api.overops.com then replace with app.overops.com; otherwise leave alone\n String eventURL = API_PATTERN.matcher(overOpsURL).replaceAll(\"app.overops.com\");\n\n // Time Formatter for OverOps REST API\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd'T'HH:mm\").withZone(ZoneId.of(\"UTC\"));\n\n // Get Dates for OverOps REST API Calls\n\n Calendar now = Calendar.getInstance();\n now.setTime(new Date());\n now.add(Calendar.MINUTE, 10); // adds 10 minutes just in case time settings are off a little\n String toStamp = formatter.format(now.getTime().toInstant());\n\n Calendar before = Calendar.getInstance();\n before.setTime(new Date());\n before.add(Calendar.HOUR_OF_DAY, -queryLookback);\n String fromStamp = formatter.format(before.getTime().toInstant());\n\n Client apiClient = ClientBuilder.newClient();\n\n\n String usernameAndPassword = overOpsUser + ':' + overOpsPWD;\n String authorizationHeaderValue;\n String keyName;\n String viewId = null;\n int x = 1;\n\n if (overOpsAPIKey == null || overOpsAPIKey.isEmpty()) {\n keyName = \"Authorization\";\n authorizationHeaderValue = \"Basic \" + getEncoder().encodeToString(usernameAndPassword.getBytes(StandardCharsets.UTF_8));\n } else {\n keyName = \"X-API-Key\";\n authorizationHeaderValue = overOpsAPIKey;\n }\n\n // Get View ID for All Events\n\n try {\n\n Response getViewResponse = apiClient\n .target(overOpsURL)\n .path(\"api/v1/services/\" + overOpsSID + \"/views\")\n .request(MediaType.APPLICATION_JSON)\n .header(keyName, authorizationHeaderValue).get();\n\n if (getViewResponse.getStatus() == 200) {\n JSONObject getViewResult = getViewResponse.readEntity(JSONObject.class);\n JSONArray views = getViewResult.getJSONArray(\"views\");\n\n for (int i = 0; i < views.size(); i++) {\n if (views.getJSONObject(i).get(\"name\").equals(\"All Events\")) {\n viewId = views.getJSONObject(i).getString(\"id\");\n }\n }\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n listener.getLogger().println(\"Checking OverOps for errors in deployment \" + deployNameEnv);\n\n // Query OverOps for events matching app and deployment\n\n List<OOReportEvent> eventsList = new ArrayList<>();\n List<OOReportEvent> newEventsList = new ArrayList<>();\n\n while (x <= retryCount) {\n eventsList.clear();\n newEventsList.clear();\n listener.getLogger().println(\"\\nOverOps Query #\" + x + \" from OverOps Jenkins Plugin\");\n listener.getLogger().println(\"Waiting \" + retryInt + \" seconds.\");\n TimeUnit.SECONDS.sleep(retryInt);\n\n try {\n\n Response response = apiClient.target(overOpsURL)\n .path(\"api/v1/services/\" + overOpsSID + \"/views/\" + viewId + \"/events\")\n .queryParam(\"from\", fromStamp)\n .queryParam(\"to\", toStamp)\n .queryParam(\"deployment\", deployNameEnv)\n .queryParam(\"app\", applicationName)\n .request(MediaType.APPLICATION_JSON)\n .header(keyName, authorizationHeaderValue).get();\n\n if (showResults) {\n listener.getLogger().println(\"API Call: \" + response.toString() + '\\n');\n }\n\n if (response.getStatus() == 200) {\n\n JSONObject result = response.readEntity(JSONObject.class);\n JSONArray events = result.getJSONArray(\"events\");\n\n if (showResults) {\n listener.getLogger().println(events.size() + \" Events\");\n listener.getLogger().println(result);\n }\n\n for (int i = 0; i < events.size(); i++) {\n\n String eventId = events.getJSONObject(i).getString(\"id\");\n String tpkString = (overOpsSID + '#' + eventId + \"#1\");\n String tpkLink = getEncoder().encodeToString(tpkString.getBytes(StandardCharsets.UTF_8));\n\n\n eventsList.add(new OOReportEvent(events.getJSONObject(i).get(\"summary\").toString(),\n events.getJSONObject(i).get(\"introduced_by\").toString(),\n eventURL + \"/tale.html?event=\" + tpkLink));\n\n if (deploymentName.equals(events.getJSONObject(i).get(\"introduced_by\"))) {\n newEventsList.add(new OOReportEvent(events.getJSONObject(i).get(\"summary\").toString(),\n events.getJSONObject(i).get(\"introduced_by\").toString(),\n eventURL + \"/tale.html?event=\" + tpkLink));\n }\n\n }\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Validate Query results\n listener.getLogger().println(\"\\n\");\n listener.getLogger().println(\"OverOps found \" + eventsList.size() + \" events in \" + applicationName + \" deployment \" + deployNameEnv);\n\n if (eventsList.size() > maxEventCount && maxEventCount != -1) {\n\n listener.getLogger().println(\"Event threshold \" + maxEventCount + \" Exceeded\");\n\n if (markUnstable) {\n listener.getLogger().println(\"OverOps Query results in Unstable build\");\n run.setResult(Result.UNSTABLE);\n }\n\n x = retryCount;\n }\n\n listener.getLogger().println(\"\\n\");\n listener.getLogger().println(\"OverOps found \" + newEventsList.size() + \" new events in \" + applicationName + \" deployment \" + deployNameEnv);\n\n if (newEventsList.size() > maxNewEventCount && maxNewEventCount != -1) {\n\n listener.getLogger().println(\"New Event threshold \" + maxNewEventCount + \" Exceeded\");\n\n if (markUnstable) {\n listener.getLogger().println(\"OverOps Query results in Unstable build\");\n listener.getLogger().println(\"\\n\");\n run.setResult(Result.UNSTABLE);\n }\n\n for (OOReportEvent event : newEventsList) {\n listener.getLogger().println(event.getEventSummary() + \" Introduced by: \" + event.getIntroducedBy() + \" \" + event.getARCLink());\n }\n\n x = retryCount;\n }\n\n listener.getLogger().println(\"New Events Introduced by \" + deployNameEnv + \": \" + newEventsList.size());\n\n x++;\n\n }\n\n\n OverOpsBuildAction buildAction = new OverOpsBuildAction(eventsList, newEventsList, run);\n run.addAction(buildAction);\n\n listener.getLogger().println();\n listener.getLogger().println(\"Total Events found in OverOps for build \" + deployNameEnv + \": \" + eventsList.size());\n listener.getLogger().println(\"New Events Introduced by \" + deployNameEnv + \": \" + newEventsList.size());\n }",
"public abstract void executeWorkFlow(String projectName, String fastaFileId, Set<String> mgfIdsList, Set<String> searchEnginesList, SearchParameters searchParameters, Map<String, Boolean> searchEngines);",
"@Override\n public void run() {\n ShellResponse response =\n getNodeManager().nodeCommand(NodeManager.NodeCommandType.Configure, taskParams());\n processShellResponse(response);\n\n if (taskParams().type == UpgradeUniverse.UpgradeTaskType.Everything\n && !taskParams().updateMasterAddrsOnly) {\n // Check cronjob status if installing software.\n response = getNodeManager().nodeCommand(NodeManager.NodeCommandType.CronCheck, taskParams());\n\n // Create an alert if the cronjobs failed to be created on this node.\n if (response.code != 0) {\n Universe universe = Universe.getOrBadRequest(taskParams().universeUUID);\n Customer cust = Customer.get(universe.customerId);\n String alertErrCode = \"CRON_CREATION_FAILURE\";\n String nodeName = taskParams().nodeName;\n String alertMsg =\n \"Universe %s was successfully created but failed to \"\n + \"create cronjobs on some nodes (%s)\";\n\n // Persist node cronjob status into the DB.\n UniverseUpdater updater =\n new UniverseUpdater() {\n @Override\n public void run(Universe universe) {\n UniverseDefinitionTaskParams universeDetails = universe.getUniverseDetails();\n NodeDetails node = universe.getNode(nodeName);\n node.cronsActive = false;\n LOG.info(\n \"Updated \"\n + nodeName\n + \" cronjob status to inactive from universe \"\n + taskParams().universeUUID);\n }\n };\n saveUniverseDetails(updater);\n\n // Create new alert or update existing alert with current node name if alert already exists.\n if (Alert.exists(alertErrCode, universe.universeUUID)) {\n Alert cronAlert = Alert.list(cust.uuid, alertErrCode, universe.universeUUID).get(0);\n List<String> failedNodesList =\n universe\n .getNodes()\n .stream()\n .map(nodeDetail -> nodeDetail.nodeName)\n .collect(Collectors.toList());\n String failedNodesString = String.join(\", \", failedNodesList);\n cronAlert.update(String.format(alertMsg, universe.name, failedNodesString));\n } else {\n Alert.create(\n cust.uuid,\n universe.universeUUID,\n Alert.TargetType.UniverseType,\n alertErrCode,\n \"Warning\",\n String.format(alertMsg, universe.name, nodeName));\n }\n }\n\n // We set the node state to SoftwareInstalled when configuration type is Everything.\n // TODO: Why is upgrade task type used to map to node state update?\n setNodeState(NodeDetails.NodeState.SoftwareInstalled);\n }\n }",
"abstract public WorkflowStepResult performArchiveSubmission(DatasetVersion version, ApiToken token, Map<String, String> requestedSetttings);",
"@Override\r\n\tpublic void execute() \r\n\t\t{\n\t\tsourceArcs = parent.getSourceArcsFromID(child.getServerName());\r\n\t\ttargetArcs = parent.getTargetArcsFromID(child.getServerName());\r\n\t\tredo();\r\n\t\t}",
"public static void main(String[] args) throws Throwable {\n NeoConfig.setMagicNumber(new byte[]{0x01, 0x03, 0x00, 0x0}); // Magic number 769\n\n // Set up the connection to the neo-node\n Neow3j neow3j = Neow3j.build(new HttpService(\"http://localhost:40332\"));\n // Setup an account and wallet for signing the transaction. Make sure that the account has a\n // sufficient GAS balance to pay for the deployment.\n Account a = Account.fromWIF(\"L3kCZj6QbFPwbsVhxnB8nUERDy4mhCSrWJew4u5Qh5QmGMfnCTda\");\n Wallet w = Wallet.withAccounts(a);\n\n // Retrieve the contract files.\n NefFile nefFile = NefFile.readFromFile(new File(\"./build/neow3j/AxLabsToken.nef\"));\n ContractManifest manifest;\n try (FileInputStream s = new FileInputStream(\"./build/neow3j/AxLabsToken.manifest.json\")) {\n manifest = ObjectMapperFactory.getObjectMapper().readValue(s, ContractManifest.class);\n }\n\n // Deploy the contract's NEF and manifest. This creates, signs and send a transaction to\n // the neo-node.\n NeoSendRawTransaction response = new ManagementContract(neow3j).deploy(nefFile, manifest)\n .wallet(w)\n .signers(Signer.calledByEntry(a.getScriptHash()))\n .sign()\n .send();\n\n if (response.hasError()) {\n System.out.printf(\"Deployment was not successful. Error message from neo-node \"\n + \"was: '%s'\\n\", response.getError().getMessage());\n }\n \n ScriptHash scriptHash = SmartContract.getContractHash(a.getScriptHash(), nefFile.getScript());\n System.out.printf(\"Script hash of the deployd contract: %s\\n\", scriptHash.toString());\n }",
"public static void main(String[] args) {\n try {\n if (args.length < 1) {\n System.err.println();\n System.err.println(Globals.getWorkbenchInfoString());\n System.err.println();\n System.err.println(\"No task specified.\");\n } else {\n if (isJavaVersionOK() == false || WekaUtils.isWekaVersionOK() == false) {\n return;\n }\n // create standard options\n FlagOption suppressStatusOutputOption = new FlagOption(\n \"suppressStatusOutput\", 'S',\n \"Suppress the task status output that is normally send to stderr.\");\n FlagOption suppressResultOutputOption = new FlagOption(\n \"suppressResultOutput\", 'R',\n \"Suppress the task result output that is normally send to stdout.\");\n IntOption statusUpdateFrequencyOption = new IntOption(\n \"statusUpdateFrequency\",\n 'F',\n \"How many milliseconds to wait between status updates.\",\n 1000, 0, Integer.MAX_VALUE);\n Option[] extraOptions = new Option[]{\n suppressStatusOutputOption, suppressResultOutputOption,\n statusUpdateFrequencyOption};\n // build a single string by concatenating cli options\n StringBuilder cliString = new StringBuilder();\n for (int i = 0; i < args.length; i++) {\n cliString.append(\" \").append(args[i]);\n }\n // parse options\n Task task = (Task) ClassOption.cliStringToObject(cliString.toString(), Task.class, extraOptions);\n Object result = null;\n if (suppressStatusOutputOption.isSet()) {\n result = task.doTask();\n } else {\n System.err.println();\n System.err.println(Globals.getWorkbenchInfoString());\n System.err.println();\n boolean preciseTiming = TimingUtils.enablePreciseTiming();\n // start the task thread\n TaskThread taskThread = new TaskThread(task);\n taskThread.start();\n int progressAnimIndex = 0;\n // inform user of progress\n while (!taskThread.isComplete()) {\n StringBuilder progressLine = new StringBuilder();\n progressLine.append(progressAnimSequence[progressAnimIndex]);\n progressLine.append(' ');\n progressLine.append(StringUtils.secondsToDHMSString(taskThread.getCPUSecondsElapsed()));\n progressLine.append(\" [\");\n progressLine.append(taskThread.getCurrentStatusString());\n progressLine.append(\"] \");\n double fracComplete = taskThread.getCurrentActivityFracComplete();\n if (fracComplete >= 0.0) {\n progressLine.append(StringUtils.doubleToString(\n fracComplete * 100.0, 2, 2));\n progressLine.append(\"% \");\n }\n progressLine.append(taskThread.getCurrentActivityString());\n while (progressLine.length() < MAX_STATUS_STRING_LENGTH) {\n progressLine.append(\" \");\n }\n if (progressLine.length() > MAX_STATUS_STRING_LENGTH) {\n progressLine.setLength(MAX_STATUS_STRING_LENGTH);\n progressLine.setCharAt(\n MAX_STATUS_STRING_LENGTH - 1, '~');\n }\n System.err.print(progressLine.toString());\n System.err.print('\\r');\n if (++progressAnimIndex >= progressAnimSequence.length) {\n progressAnimIndex = 0;\n }\n try {\n Thread.sleep(statusUpdateFrequencyOption.getValue());\n } catch (InterruptedException ignored) {\n // wake up\n }\n }\n StringBuilder cleanupString = new StringBuilder();\n for (int i = 0; i < MAX_STATUS_STRING_LENGTH; i++) {\n cleanupString.append(' ');\n }\n System.err.println(cleanupString);\n result = taskThread.getFinalResult();\n if (!(result instanceof FailedTaskReport)) {\n System.err.print(\"Task completed in \"\n + StringUtils.secondsToDHMSString(taskThread.getCPUSecondsElapsed()));\n if (preciseTiming) {\n System.err.print(\" (CPU time)\");\n }\n System.err.println();\n System.err.println();\n }\n }\n if (result instanceof FailedTaskReport) {\n System.err.println(\"Task failed. Reason: \");\n ((FailedTaskReport) result).getFailureReason().printStackTrace();\n } else {\n if (!suppressResultOutputOption.isSet()) {\n if (result instanceof Measurement[]) {\n StringBuilder sb = new StringBuilder();\n Measurement.getMeasurementsDescription(\n (Measurement[]) result, sb, 0);\n System.out.println(sb.toString());\n } else {\n System.out.println(result);\n }\n System.out.flush();\n }\n }\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"@Test\n public void doExecuteSimpleSequence() throws Exception {\n Executable executable1 = new TestParallelActivity(\"activity1\");\n Executable executable2 = new TestParallelActivity(\"activity2\");\n Executable executable3 = new TestParallelActivity(\"activity3\");\n\n // create one sequance\n Sequence sequence = new Sequence(\"sequence1\");\n // add the executables to the sequence\n sequence.addExecutable(executable1);\n sequence.addExecutable(executable2);\n sequence.addExecutable(executable3);\n\n // create a context for the sequence\n Context context = new Context();\n\n // create a new WorkflowVariables for the sequence\n WorkflowVariables<String, Object> workflowVariables = new ExtensibleWorkflowVariables<String, Object>(Arrays.asList(\"activity1-thread-id\", \"activity2-thread-id\", \"activity3-thread-id\"));\n\n // when\n\n // execute the sequence\n ExecutionStatus status = sequence.doExecute(\"\",context, workflowVariables);\n\n // then\n\n // the execution status should be completed\n assertEquals(true, status.isComplete());\n\n // execution status should have three children, one for each child executable of the sequence\n assertEquals(3, status.getChildren().size());\n\n\n // each child execution status should have the id of its executable\n assertEquals(\"activity1\", status.getChildren().get(0).getExecutableId());\n assertEquals(\"activity2\", status.getChildren().get(1).getExecutableId());\n assertEquals(\"activity3\", status.getChildren().get(2).getExecutableId());\n\n // each child execution status should also be completed\n assertEquals(true, status.getChildren().get(0).isComplete());\n assertEquals(true, status.getChildren().get(1).isComplete());\n assertEquals(true, status.getChildren().get(2).isComplete());\n\n }",
"@Override\r\n\tpublic void PreExecute(TaskConfig config){\n\t}",
"@Test(expected = WorkflowExecutionException.class)\n public void testExecuteWorkflowExecutionException() {\n action.execute(state);\n action.execute(state);\n }",
"@Override\n\tpublic Document executeTask(YFSEnvironment env, Document inXML) throws Exception {\n\t\tYFCDocument\tdocTaskQueue = YFCDocument.getDocumentFor (inXML);\n\t\tYFCElement\teleTaskQueue = docTaskQueue.getDocumentElement();\n\t\tYIFApi\tapi = YIFClientFactory.getInstance().getLocalApi ();\n\n\t\tif (YFSUtil.getDebug ())\n\t\t{\n\t\t\tSystem.out.println (\"In Agent \" + eleTaskQueue.getAttribute(\"TransactionId\") + \" (SEWarrantyActivationAgentImpl.java)\");\n\t\t\tSystem.out.println (\"Task Input:\");\n\t\t\tSystem.out.println (docTaskQueue.getString());\n\t\t}\n\t\t\t\t\n\t\tchangeOrderLineStatus (env, eleTaskQueue);\n\t\t\n\t\tregisterTaskComplete (env, eleTaskQueue);\n\t\treturn null;\n\t}",
"@Test\n public void testConcurrentCommitTaskWithSubDir() throws Exception {\n Job job = newJob();\n FileOutputFormat.setOutputPath(job, outputDir);\n final Configuration conf = job.getConfiguration();\n\n final JobContext jContext =\n new JobContextImpl(conf, taskAttempt0.getJobID());\n ManifestCommitter amCommitter = createCommitter(\n new TaskAttemptContextImpl(conf, taskAttempt0));\n amCommitter.setupJob(jContext);\n\n final TaskAttemptContext[] taCtx = new TaskAttemptContextImpl[2];\n taCtx[0] = new TaskAttemptContextImpl(conf, taskAttempt0);\n taCtx[1] = new TaskAttemptContextImpl(conf, taskAttempt1);\n\n // IDE/checkstyle complain here about type casting but they\n // are confused.\n final TextOutputFormat<Writable, Object>[] tof =\n new TextOutputForTests[2];\n\n for (int i = 0; i < tof.length; i++) {\n tof[i] = new TextOutputForTests<Writable, Object>() {\n @Override\n public Path getDefaultWorkFile(\n TaskAttemptContext context,\n String extension) throws IOException {\n final ManifestCommitter foc = (ManifestCommitter)\n getOutputCommitter(context);\n return new Path(new Path(foc.getWorkPath(), SUB_DIR),\n getUniqueFile(context, getOutputName(context), extension));\n }\n };\n }\n\n final ExecutorService executor = HadoopExecutors.newFixedThreadPool(2);\n try {\n for (int i = 0; i < taCtx.length; i++) {\n final int taskIdx = i;\n executor.submit(() -> {\n final OutputCommitter outputCommitter =\n tof[taskIdx].getOutputCommitter(taCtx[taskIdx]);\n outputCommitter.setupTask(taCtx[taskIdx]);\n writeOutput(tof[taskIdx].getRecordWriter(taCtx[taskIdx]), taCtx[taskIdx]);\n describe(\"Committing Task %d\", taskIdx);\n outputCommitter.commitTask(taCtx[taskIdx]);\n return null;\n });\n }\n } finally {\n executor.shutdown();\n while (!executor.awaitTermination(1, TimeUnit.SECONDS)) {\n log().info(\"Awaiting thread termination!\");\n }\n }\n\n // if we commit here then all tasks will be committed, so there will\n // be contention for that final directory: both parts will go in.\n\n describe(\"\\nCommitting Job\");\n amCommitter.commitJob(jContext);\n assertPathExists(\"base output directory\", outputDir);\n assertPart0000DoesNotExist(outputDir);\n Path outSubDir = new Path(outputDir, SUB_DIR);\n assertPathDoesNotExist(\"Must not end up with sub_dir/sub_dir\",\n new Path(outSubDir, SUB_DIR));\n\n // validate output\n // There's no success marker in the subdirectory\n validateContent(outSubDir, false, \"\");\n }",
"@Override\n public ArrayList<String> run(LogicGraph logicGraph, Entity runConfig) {\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date()) + \" Execution Started\");\n ArrayList<String> status=new ArrayList<>();\n boolean anchor;\n ArrayList<GraphNode> flow=logicGraph.getNodes();\n int phaseStart=0, phaseEnd=0;\n for (int i=0;i<flow.size();i++){\n flow.get(i).getComponent().init();\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date()) + \" \" +flow.get(i).getComponent().getClass().getName()+\" is initialized.\");\n }\n do {\n while(phaseEnd!=flow.size() && !flow.get(phaseEnd).getCategory().equals(\"Phase\")){\n phaseEnd++;\n }\n int count=0;\n do {\n count++;\n anchor=false;\n int i=phaseStart;\n Entity io=null;\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date()) + \" phase \"+ phaseEnd+ \" in execution.\");\n try{\n io = flow.get(phaseStart).getComponent().process(io);\n for (i +=1; i < phaseEnd; i++) {\n if(io!=null){\n anchor=true;\n }\n io = flow.get(i).getComponent().process(io);\n }\n }catch (Exception e){\n status.add(\"Problem faced during execution of \"+flow.get(phaseEnd).getName());\n status.add(\"Problem at: \"+flow.get(i).getName());\n status.add(\"Cause: \"+e.getMessage());\n e.printStackTrace();\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date()) + \" Error in Execution\" + status);\n return status;\n }\n } while (anchor);\n phaseStart=phaseEnd+1;\n phaseEnd++;\n System.out.println(\"phase over count:\"+count+\"\\nphasestart:\"+phaseStart+\"\\nphaseend:\"+phaseEnd);\n }while (phaseEnd<flow.size());\n status.add(\"success\");\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date()) + \" Execution Completed \"+ status);\n\n return status;\n }",
"public void run() throws ClientException {\n taskgraph.getProperties().getEngine().execute(new Runnable() {\n public void run() {\n int result = WorkflowActionManager.CANCEL;\n\n try {\n result = WorkflowActionManager.authorizeWorkflowAction(WorkflowActions.RUN_ACTION, taskgraph,\n scheduler.getExecutionState());\n } catch (WorkflowException except) {\n except.printStackTrace();\n }\n\n try {\n if (result == WorkflowActionManager.AUTHORIZE) {\n scheduler.runTaskGraph();\n } else {\n handleCancel(result, null);\n }\n } catch (SchedulerException except) {\n except.printStackTrace();\n }\n }\n });\n }",
"public void execute(JobExecutionContext context) throws JobExecutionException {\n\t\tthis.servletContext=(ServletContext)context.getMergedJobDataMap().get(\"servletContext\");\t\n\t\tloadProperties();\t\t\n\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\tlog.info(\"Starting to generate Atom Feed files.\");\n\t\t\n\t\tif(cswURL == null && feedURL == null && servicePath==null && dataSetPath==null && opensearchPath == null){\n\t\t\tlog.error(\"Config.properties parameter missing.\");\n\t\t}\n\t\t\n\t\tString[] downloadIDs = downloadUUIDs.split(\",\");\n\n\t\tfor(int id=0; id < downloadIDs.length; id ++){\n\t\t\tString downloadUUID = downloadIDs[id];\n\t\t\t\n\t\t\ttry{\n\t\t\t\t\t\t\n\t\t\t\tString resp = CSWUtil.executeRequest(cswURL, downloadUUID, proxyHost, proxyPort);\n\t\t\t\t\n\t\t\t\tif (!resp.contains(\"Exception\")) {\n\t\t\t\t\tparseMetadata(resp,downloadUUID);\n\t\n\t\t\t\t}else{\n\t\t\t\t\tlog.error(\"Service UUID can not be found!\");\n\t\t\t\t}\n\t\t\t}catch(DocumentException de){\n\t\t\t\tlog.error(de.toString(), de.fillInStackTrace());\n\t\t\t \tSystem.out.println(de.toString());\n\t\t\t}\t\t\t\t\n\t\t}\n\t}",
"boolean execute() throws InterruptedException {\r\n TptApiAccess tptApiAccess = new TptApiAccess(launcher, logger, exePaths,\r\n Utils.parseCommandLine(arguments), tptPort, tptBindingName, tptStartupWaitTime);\r\n boolean success = true;\r\n // We delete the JUnit results before iterating over the jenkinsConfigs\r\n if (workspace == null) {\r\n logger.error(\"No workspace available\");\r\n return false;\r\n }\r\n removeJUnitData(workspace);\r\n try {\r\n for (JenkinsConfiguration ec : executionConfigs) {\r\n success &= executeOneConfig(ec, tptApiAccess);\r\n }\r\n } finally {\r\n logger.info(\"Close open TPT project on master and slaves.\");\r\n if (!CleanUpTask.cleanUp(build, logger)) {\r\n logger.error(\"Could not close all open TPT files. \"\r\n + \"There is no guarantee next run will be be done with correct file version.\");\r\n success = false;\r\n }\r\n }\r\n return success;\r\n }",
"@Override\n public State<T> run(Workflow<T> workflow) {\n System.out.println(\"delaying work for: \" + workflow);\n hasFinished = true;\n return this;\n }",
"@Override\n\tprotected void prepareForSubmit() throws WorkflowException {\n\n\t}",
"@Override\n public void doIT() throws RepositoryException {\n Repository repo = taskData.getRepository();\n\n if (repo instanceof RemoteRepository && taskData.getSubject() != null) {\n RemoteRepository rr = (RemoteRepository) repo;\n NamedEntity entity = (NamedEntity) taskData.getSubject().getTL();\n boolean includeIndirect = true;\n\n repoResults = new ArrayList<>();\n rr.getEntityWhereExtended( entity ).forEach( e -> repoResults.add( e ) );\n repoResults.addAll( rr.getEntityWhereUsed( entity, includeIndirect ) );\n // Returns list of repo items\n // RepositoryItem item = null;\n // rr.getItemWhereUsed( item, includeIndirect );\n log.debug( \"Found \" + repoResults.size() + \" entities.\" );\n } else {\n // Run full-text search\n // Result list contains both entity and library result items\n repoResults = repo.search( taskData.getQuery(), taskData.getIncludeStatus(),\n taskData.isLatestVersionsOnly(), taskData.getItemType() );\n log.debug( \"Found \" + repoResults.size() + \" items in repo.\" );\n }\n }",
"public abstract void execute(TaskList taskList, Ui ui, Storage storage) throws DukeException;",
"public WSActionResult execute(WSContext wsContext, WSAssetTask task) {\n\n //various metadata\n WSUser translator = task.getTaskHistory().getLastHumanStepUser();\n\n if(null == translator) {\n return new WSActionResult(WSActionResult.ERROR, \"Can not determine asset's translator\");\n }\n log.info(\"Translator is \" + translator.getFullName());\n\n\n //set the translator attribute for later use, for FO only; This may be used in future enhancement; for now set all translators\n// String wkgroupName = task.getProject().getProjectGroup().getWorkgroup().getName();\n// if(wkgroupName.startsWith(\"FO_\")) {\n task.getProject().setAttribute(_mostRecentTranslatorAttr, translator.getFirstName() + \" \" + translator.getLastName()\n + \" [\" + translator.getUserName() + \"]\");\n// }\n\n //obtain count attribute\n String attrTCount = null;\n try {\n attrTCount = Config.getTranslationsCountAttributeName(wsContext);\n AttributeValidator.validateAttribute(wsContext,\n attrTCount,\n ATTRIBUTE_OBJECT.USER,\n ATTRIBUTE_TYPE.INTEGER,\n translator,\n \"0\");\n } catch (Exception e) {\n log.error(e.getLocalizedMessage());\n return new WSActionResult(WSActionResult.ERROR,\n \"Attribute \" + attrTCount + \" is misconfigured. \" + e.getLocalizedMessage());\n }\n\n\n int tasksTranslated;\n if(null == translator.getAttribute(attrTCount)\n || translator.getAttribute(attrTCount).length() == 0) {\n log.info(\"First time user. Set initial count of translated letters to 0\");\n tasksTranslated = 0;\n }\n else {\n tasksTranslated = WSAttributeUtils.getIntegerAttribute(this,\n translator,\n attrTCount);\n }\n\n if(tasksTranslated < 0) {\n return new WSActionResult(WSActionResult.ERROR,\n \"Invalid number of translated letters for user \" +\n translator.getUserName() +\n \": \" + tasksTranslated);\n }\n\n translator.setAttribute(attrTCount,\n String.valueOf(++tasksTranslated));\n\n return new WSActionResult(DONE,\n \"User \" + translator.getFullName() + \" (\"\n + translator.getUserName() + \") has translated \"\n + tasksTranslated + \" assets\");\n\n }",
"public static void main(String[] args) throws FileNotFoundException, IOException, InterruptedException {\n ArrayList<Metric> metrics = new ArrayList<Metric>();\n metrics.add(new ELOC());\n metrics.add(new NOPA());\n metrics.add(new NMNOPARAM());\n MyClassifier c1 = new MyClassifier(\"Logistic Regression\");\n c1.setClassifier(new Logistic());\n String type = \"CodeSmellDetection\";\n String smell = \"Large Class\";\n Model model = new Model(\"antModel1\", \"ant\", \"https://github.com/apache/ant.git\", metrics, c1, \"\", type, smell);\n Process process = new Process();\n String periodLength = \"All\";\n String version = \"rel/1.8.3\";\n \n String projectName = model.getProjName();\n process.initGitRepositoryFromFile(scatteringFolderPath + \"/\" + projectName\n + \"/gitRepository.data\");\n try {\n DeveloperTreeManager.calculateDeveloperTrees(process.getGitRepository()\n .getCommits(), periodLength);\n DeveloperFITreeManager.calculateDeveloperTrees(process.getGitRepository()\n .getCommits(), periodLength);\n } catch (Exception ex) {\n Logger.getLogger(TestFile.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n List<Commit> commits = process.getGitRepository().getCommits();\n PeriodManager.calculatePeriods(commits, periodLength);\n List<Period> periods = PeriodManager.getList();\n \n String dirPath = Config.baseDir + projectName + \"/models/\" + model.getName();\n Files.createDirectories(Paths.get(dirPath));\n \n for (Period p : periods) {\n File periodData = new File(dirPath + \"/predictors.csv\");\n PrintWriter pw1 = new PrintWriter(periodData);\n \n String message1 = \"nome,\";\n for(Metric m : metrics) {\n message1 += m.getNome() + \",\";\n }\n message1 += \"isSmell\\n\";\n pw1.write(message1);\n \n //String baseSmellPatch = \"C:/ProgettoTirocinio/dataset/apache-ant-data/apache_1.8.3/Validated\";\n CalculateSmellFiles cs = new CalculateSmellFiles(model.getProjName(), \"Large Class\", \"1.8.1\");\n \n List<FileBean> smellClasses = cs.getSmellClasses();\n \n String projectPath = baseFolderPath + projectName;\n \n Git.gitReset(new File(projectPath));\n Git.clean(new File(projectPath));\n \n List<FileBean> repoFiles = Git.gitList(new File(projectPath), version);\n System.out.println(\"Repo size: \"+repoFiles.size());\n \n \n for (FileBean file : repoFiles) {\n \n if (file.getPath().contains(\".java\")) {\n File workTreeFile = new File(projectPath + \"/\" + file.getPath());\n\n ClassBean classBean = null;\n \n if (workTreeFile.exists()) {\n ArrayList<ClassBean> code = new ArrayList<>();\n ArrayList<ClassBean> classes = ReadSourceCode.readSourceCode(workTreeFile, code);\n \n String body = file.getPath() + \",\";\n if (classes.size() > 0) {\n classBean = classes.get(0);\n\n }\n for(Metric m : metrics) {\n try{\n body += m.getValue(classBean, classes, null, null, null, null) + \",\";\n } catch(NullPointerException e) {\n body += \"0.0,\";\n }\n }\n \n //isSmell\n boolean isSmell = false;\n for(FileBean sm : smellClasses) {\n if(file.getPath().contains(sm.getPath())) {\n System.out.println(\"ok\");\n isSmell = true;\n break;\n }\n }\n \n body = body + isSmell + \"\\n\";\n pw1.write(body); \n }\n }\n }\n Git.gitReset(new File(projectPath));\n pw1.flush();\n }\n \n WekaEvaluator we1 = new WekaEvaluator(baseFolderPath, projectName, new Logistic(), \"Logistic Regression\", model.getName());\n \n ArrayList<Model> models = new ArrayList<Model>();\n \n models.add(model);\n System.out.println(models);\n //create a project\n Project p1 = new Project(\"https://github.com/apache/ant.git\");\n p1.setModels(models);\n p1.setName(\"ant\");\n p1.setVersion(version);\n \n ArrayList<Project> projects;\n //projects.add(p1);\n \n //create a file\n// try {\n// File f = new File(Config.baseDir + \"projects.txt\");\n// FileOutputStream fileOut;\n// if(f.exists()){\n// projects = ProjectHandler.getAllProjects(); \n// Files.delete(Paths.get(Config.baseDir + \"projects.txt\"));\n// //fileOut = new FileOutputStream(f, true);\n// } else {\n// projects = new ArrayList<Project>();\n// Files.createFile(Paths.get(Config.baseDir + \"projects.txt\"));\n// }\n// fileOut = new FileOutputStream(f);\n// projects.add(p1);\n// ObjectOutputStream out = new ObjectOutputStream(fileOut);\n// out.writeObject(projects);\n// out.close();\n// fileOut.close();\n//\n// } catch (FileNotFoundException e) {\n// e.printStackTrace();\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// ProjectHandler.setCurrentProject(p1);\n// Project curr = ProjectHandler.getCurrentProject();\n// System.out.println(curr.getGitURL()+\" --- \"+curr.getModels());\n// ArrayList<Project> projectest = ProjectHandler.getAllProjects();\n// for(Project testp : projectest){\n// System.out.println(testp.getModels());\n// }\n }",
"public final void execute() {\n\t\tlog.debug(\"Execute was called\");\n\t\tfor (String mdl : executors.keySet()) {\n\t\t\tSubstructureExecutorI exe = executors.get(mdl);\n\t\t\texe.startStep(getStep(),\n\t\t\t\t\tMtxUtils.list2DoubleArray(displacementsMap.get(mdl)));\n\t\t}\n\t}",
"public abstract void execute(Task t);",
"public void execute() {\n if (hasError())\n return;\n\n runLocally();\n runRemotely();\n }",
"public void execute() throws MojoExecutionException, MojoFailureException {\n\n\t\tif (super.isSkip()) {\n\t\t\tlogger.info(\"Skipping\");\n\t\t\treturn;\n\t\t}\n\n\t\tLogger logger = LogManager.getLogger(FlowHookMojo.class);\n\n\t\ttry {\n\t\t\t\n\t\t\tinit();\n\n\t\t\tif (buildOption == OPTIONS.none) {\n\t\t\t\tlogger.info(\"Skipping Flow Hooks (default action)\");\n\t\t\t\treturn;\n\t\t\t}\n\n if (serverProfile.getEnvironment() == null) {\n throw new MojoExecutionException(\n \"Apigee environment not found in profile\");\n }\n\n\t\t\tList flowhooks = getEnvConfig(logger, \"flowhooks\");\n\t\t\tif (flowhooks == null || flowhooks.size() == 0) {\n\t\t\t\tlogger.info(\"No flowhooks config found.\");\n return;\n\t\t\t}\n\n\t\t\tdoUpdate(flowhooks);\t\t\t\t\n\t\t\t\n\t\t} catch (MojoFailureException e) {\n\t\t\tthrow e;\n\t\t} catch (RuntimeException e) {\n\t\t\tthrow e;\n\t\t}\n\t}",
"private void executeArchetypeCommand() {\n /*\n * Maven embedder:doit\n *\n */\n\n String[] commands = {\"mvn\",\"archetype:create\",\n \"-DarchetypeGroupId=org.appfuse\",\n \"-DarchetypeArtifactId=appfuse-archetype-basic-struts\",\n \"-DarchetypeVersion=1.0-m2\",\n \"-DgroupId=\" + data.getPackageName(),\n \"-DartifactId=\" + data.getApplicationName(),\n \"-DremoteRepositories=http://oss.sonatype.org/content/repositories/appfuse-releases\"};\n\n\n String path = PropertyUtility.getInstance().getSystemProperties().getProperty(\"user.dir\");\n log.info(path);\n \n runCommand(commands, null, new File(\"../\"));\n\n //buffer.append(\"firefox http://localhost/mediawiki\");\n\n }",
"public void execute() {\n\n try {\n checkTask();\n Ui.printLines();\n Ui.printMatchingTasks();\n int index = 1;\n\n for (Task task : TaskList.taskArrayList) {\n String task_description = task.toString();\n\n if (task_description.contains(command)) {\n System.out.println(index + \". \" + task);\n index++;\n }\n\n }\n Ui.printLines();\n } catch (InvalidTask invalidTask) {\n Ui.printLines();\n Ui.printInvalidTask();\n Ui.printLines();\n }\n }",
"private void performStateOperation(String tiid, EOperations operation,\n Map<String, Object> parameters) throws HumanTaskManagerException {\n try {\n log.info(operation.toString() + \" on Task \" + tiid);\n sdap.beginTx();\n TaskStructure taskStructure = new TaskStructure(tiid);\n\n // check if the External Task of the structure is already exited by\n // the parent task\n taskStructure.checkExternalTask();\n\n // check if the task is locked or controlled\n taskStructure.checkGeneralOperationPreconditions();\n\n // check if the correct state pair for this operation are given\n taskStructure.checkStatesForOperation(operation);\n\n // propagate operation on all descendants\n taskStructure.propagateStateOperation(operation, parameters);\n\n // propagate operation on all predecessor\n taskStructure.propagateStateToPredecessor();\n\n sdap.commitTx();\n } catch (DatabaseException e) {\n sdap.rollbackTx();\n throw new HumanTaskManagerException(e);\n } finally {\n sdap.close();\n }\n }",
"public void execute() {\n\t\t\n\t\tdrivetrain.updateAnglePID();\n\t\t\n//\t\tif (drivetrain.currentControl()) {\n//\t\t\tdrivetrain.shiftGears();\n//\t\t}\n\t}",
"protected abstract void asyncExecuteWorkFlow(String queryId, LogicalWorkflow workflow, IResultHandler\n resultHandler) throws ConnectorException;",
"public static void main(String[] args) throws ParseException {\n ProcessEngine processEngine = initProcessEngine();\n ProcessDefinition processDefinition = initRepositoryService(processEngine);\n\n RuntimeService runtimeService = processEngine.getRuntimeService();\n ProcessInstance processInstance = initProcessInstance(runtimeService, \"onboarding\");\n\n TaskService taskService = processEngine.getTaskService();\n FormService formService = processEngine.getFormService();\n HistoryService historyService = processEngine.getHistoryService();\n\n Scanner scanner = new Scanner(System.in);\n\n while (processInstance != null && !processInstance.isEnded()) {\n List<Task> tasks = taskService.createTaskQuery().taskCandidateGroup(\"managers\").list();\n System.out.println(String.format(\"Active outstanding task:[%s]\", tasks.size()));\n for (Task task : tasks) {\n System.out.println(String.format(\"Processing Task [%s]\", task.getName()));\n Map<String, Object> variables = new HashMap<String, Object>();\n FormData formData = formService.getTaskFormData(task.getId());\n for (FormProperty formProperty : formData.getFormProperties()) {\n if (StringFormType.class.isInstance(formProperty.getType())) {\n System.out.println(formProperty.getName() + \"?\");\n String value = scanner.nextLine();\n variables.put(formProperty.getId(), value);\n } else if (LongFormType.class.isInstance(formProperty.getType())) {\n System.out.println(String.format(\"%s Must be a whole number\", formProperty.getName()));\n Long value = Long.valueOf(scanner.nextLine());\n variables.put(formProperty.getId(), value);\n } else if (DateFormType.class.isInstance(formProperty.getType())) {\n System.out.println(String.format(\"%s Must be a data m/d/yy\", formProperty.getName()));\n DateFormat dateFormat = new SimpleDateFormat(\"m/d/yy\");\n Date value = dateFormat.parse(scanner.nextLine());\n variables.put(formProperty.getId(), value);\n } else {\n System.out.println(String.format(\"<form type:%s not supported>\", formProperty.getType()));\n }\n }\n taskService.complete(task.getId(), variables);\n\n HistoricActivityInstance endActivity = null;\n List<HistoricActivityInstance> activityInstances =\n historyService.createHistoricActivityInstanceQuery()\n .processInstanceId(processInstance.getId()).finished()\n .orderByHistoricActivityInstanceEndTime().asc().list();\n for (HistoricActivityInstance activityInstance : activityInstances) {\n if (activityInstance.getActivityType().equals(\"startEvent \")) {\n System.out.println(String.format(\"BEGIN [%s] %s ms\", processDefinition.getName(), activityInstance.getDurationInMillis()));\n }\n if (activityInstance.getActivityType().equals(\"endEvent\")) {\n endActivity = activityInstance;\n } else {\n System.out.println(String.format(\"-- %s [%s] %s ms\", activityInstance.getActivityName(), activityInstance.getActivityId(), activityInstance.getDurationInMillis()));\n }\n }\n if (endActivity != null) {\n System.out.println(String.format(\"-- %s [%s] %s ms\", endActivity.getActivityName(), endActivity.getActivityId(), endActivity.getDurationInMillis()));\n System.out.println(String.format(\"COMPLETE %s [%s] %s\", processDefinition.getName(), processInstance.getProcessDefinitionKey(), endActivity.getEndTime()));\n }\n processInstance = runtimeService.createProcessInstanceQuery()\n .processInstanceId(processInstance.getId()).singleResult();\n }\n }\n scanner.close();\n }",
"@Test(groups = { \"lock\", \"nightly\" }, enabled=false)\n public void testMultipleWorkflowsWithLocks() {\n RaptureURI workflowRepo = helper.getRandomAuthority(Scheme.WORKFLOW);\n HttpDecisionApi decisionApi = helper.getDecisionApi();\n HttpScriptApi scriptApi = helper.getScriptApi();\n List<Step> thirtyNine = new ArrayList<Step>();\n String scriptUri = RaptureURI.builder(helper.getRandomAuthority(Scheme.SCRIPT)).docPath(\"sleep\").asString();\n long scriptSleepTime=10000;\n long timeoutValueSeconds=2;\n int numWorkflows=15;\n \n if (!scriptApi.doesScriptExist(scriptUri)) {\n @SuppressWarnings(\"unused\")\n RaptureScript executable = scriptApi.createScript(scriptUri, RaptureScriptLanguage.REFLEX, RaptureScriptPurpose.PROGRAM,\n \"println(\\\"Thread sleeping\\\");\\nsleep(\"+scriptSleepTime+\");\\nreturn 'next';\");\n }\n\n Step s1 = new Step();\n s1.setName(\"first\");\n s1.setExecutable(scriptUri);\n s1.setDescription(\"first sleep step\");\n\n Transition trans1 = new Transition();\n trans1.setName(\"next\");\n trans1.setTargetStep(\"$RETURN\");\n\n Transition error = new Transition();\n error.setName(\"error\");\n error.setTargetStep(\"$FAIL\");\n\n s1.setTransitions(ImmutableList.of(trans1, error));\n thirtyNine.add(s1);\n\n String semaphoreConfig = \"{\\\"maxAllowed\\\":1, \\\"timeout\\\":\"+timeoutValueSeconds+\" }\";\n\n // Begin by creating a couple of workflows.\n // In the real world these would be created by two different threads/users/applications,\n // so they use the same URI and semaphore config.\n\n Workflow flow = new Workflow();\n flow.setStartStep(\"first\");\n flow.setSteps(thirtyNine);\n String flowUri = RaptureURI.builder(workflowRepo).docPath(\"lockTest\").asString();\n flow.setWorkflowURI(flowUri);\n flow.setSemaphoreType(SemaphoreType.WORKFLOW_BASED);\n flow.setSemaphoreConfig(semaphoreConfig);\n decisionApi.putWorkflow(flow);\n\n \n RaptureURI lockUri = RaptureURI.builder(helper.getRandomAuthority(Scheme.DOCUMENT)).build();\n\t\tRaptureLockConfig lockConfig = lockApi.createLockManager(lockUri.toString(), \"LOCKING USING ZOOKEEPER {}\", \"\");\n // Start the first workflow. It will sleep for 5s then exit\n Map<String, String> params = new HashMap<String, String>();\n CreateResponse orderUri = decisionApi.createWorkOrderP(flow.getWorkflowURI(), params, null);\n assertNotNull(orderUri);\n\n List<String>woList = new ArrayList<String> ();\n for (int woCount =0; woCount<=numWorkflows; woCount++) {\n \tCreateResponse woUri = decisionApi.createWorkOrderP(flow.getWorkflowURI(), params, null);\n \t\n \ttry {\n \t\tThread.sleep(225);\n } catch (InterruptedException e) {\n }\n \tReporter.log(\"Checking work order attempt \"+woCount,true);\n \tlong successfulWoNumber=scriptSleepTime/(timeoutValueSeconds*1000);\n \tif (woCount % successfulWoNumber ==0 && woCount >0) {\n \t\tAssert.assertNotNull(woUri.getUri());\n \t\twoList.add(woUri.getUri());\n \t}\n \telse\n \t\tAssert.assertNull(woUri.getUri());\n \t\n }\n try {\n \tThread.sleep(10000);\n } catch (Exception e) {}\n for (String wo : woList) {\n \tReporter.log (\"Checking status of \"+wo,true);\n \tAssert.assertEquals(decisionApi.getWorkOrderStatus(wo).getStatus(),WorkOrderExecutionState.FINISHED);\n }\n }",
"@Test\n public void testTripleParallel() throws Exception {\n WorkflowJob job = r.jenkins.createProject(WorkflowJob.class, \"TripleParallel\");\n job.setDefinition(new CpsFlowDefinition(\n \"echo 'test stage'\\n\"+ // Id 3, Id 2 before that has the FlowStartNode\n \"parallel 'unit':{\\n\" + // Id 4 starts parallel, Id 7 is the block start for the unit branch\n \" echo \\\"Unit testing...\\\"\\n\" + // Id 10\n \"},'integration':{\\n\" + // Id 11 is unit branch end, Id 8 is the branch start for integration branch\n \" echo \\\"Integration testing...\\\"\\n\" + // Id 12\n \"}, 'ui':{\\n\" + // Id 13 in integration branch end, Id 9 is branch start for UI branch\n \" echo \\\"UI testing...\\\"\\n\" + // Id 14\n \"}\", // Node 15 is UI branch end node, Node 16 is Parallel End node, Node 17 is FlowEndNode\n true));\n WorkflowRun b = r.assertBuildStatusSuccess(job.scheduleBuild2(0));\n FlowExecution exec = b.getExecution();\n ForkScanner f = new ForkScanner();\n List<FlowNode> heads = exec.getCurrentHeads();\n f.setup(heads);\n TestVisitor visitor = new TestVisitor();\n f.visitSimpleChunks(visitor, new BlockChunkFinder());\n sanityTestIterationAndVisiter(heads);\n\n List<TestVisitor.CallEntry> parallels = visitor.calls.stream()\n .filter(\n predicateForCallEntryType(TestVisitor.CallType.PARALLEL_BRANCH_START)\n .or(\n predicateForCallEntryType(TestVisitor.CallType.PARALLEL_BRANCH_END)))\n .collect(Collectors.toList());\n Assert.assertEquals(6, parallels.size());\n\n // Visiting from partially completed branches\n // Verify we still get appropriate parallels callbacks for a branch end\n // even if in-progress and no explicit end node\n ArrayList<FlowNode> ends = new ArrayList<>();\n ends.add(exec.getNode(\"11\"));\n ends.add(exec.getNode(\"12\"));\n ends.add(exec.getNode(\"14\"));\n Assert.assertEquals(new DepthFirstScanner().allNodes(ends).size(),\n new ForkScanner().allNodes(ends).size());\n visitor = new TestVisitor();\n f.setup(ends);\n f.visitSimpleChunks(visitor, new BlockChunkFinder());\n sanityTestIterationAndVisiter(ends);\n\n // Specifically test parallel structures\n parallels = visitor.calls.stream()\n .filter(\n predicateForCallEntryType(TestVisitor.CallType.PARALLEL_BRANCH_START)\n .or(\n predicateForCallEntryType(TestVisitor.CallType.PARALLEL_BRANCH_END)))\n .collect(Collectors.toList());\n Assert.assertEquals(6, parallels.size());\n Assert.assertEquals(18, visitor.calls.size());\n\n // Test the least common ancestor implementation with triplicate\n FlowNode[] branchHeads = {exec.getNode(\"7\"), exec.getNode(\"8\"), exec.getNode(\"9\")};\n ArrayDeque<ForkScanner.ParallelBlockStart> starts = f.leastCommonAncestor(new HashSet<>(Arrays.asList(branchHeads)));\n Assert.assertEquals(1, starts.size());\n ForkScanner.ParallelBlockStart pbs = starts.pop();\n Assert.assertEquals(exec.getNode(\"4\"), pbs.forkStart);\n Assert.assertEquals(3, pbs.unvisited.size());\n Assert.assertTrue(pbs.unvisited.contains(exec.getNode(\"7\")));\n Assert.assertTrue(pbs.unvisited.contains(exec.getNode(\"8\")));\n Assert.assertTrue(pbs.unvisited.contains(exec.getNode(\"9\")));\n }",
"public static void main(String[] args) {\n var sagaOrchestrator = new SagaOrchestrator(newSaga(), serviceDiscovery());\n\n Saga.Result goodOrder = sagaOrchestrator.execute(\"good_order\");\n Saga.Result badOrder = sagaOrchestrator.execute(\"bad_order\");\n Saga.Result crashedOrder = sagaOrchestrator.execute(\"crashed_order\");\n\n System.out.printf(\"orders: goodOrder is %s, badOrder is %s,crashedOrder is %s%n\",\n goodOrder, badOrder, crashedOrder);\n }",
"public static void executeCleanBuild(String[] args) {\n\r\n\t\tSystem.out.println(\"STARTED TRANSFORMING FILES\");\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tArabicLayoutOrchestrator reviewOrchestrator = new ArabicLayoutOrchestrator();\r\n\t\t\t\r\n\t\t\tReviewModeConstants.TESTING_MODE_FLAG = true;\r\n\t\t\t\r\n\t\t\tif (args != null && args.length>0 && args[0] != null && args[0].trim().length()>0) {\r\n\t\t\t\tSystem.out.println(\"PROJECT FOLDER : \" + args[0]);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Unable to locate the Project !! Project Folder should be passed as an input arg to this task !! \");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tBuildPropertiesUtil.init(args[0]);\r\n\t\t\t\r\n\t\t\tLinkedHashSet<String> channelList = BuildPropertiesUtil.getSelectedChannelList();\r\n\t\t\tif(channelList.size() == 0) {\r\n\t\t\t\tSystem.out.println(\"Invalid/No Platforms Platforms selected. Please check your build.properties file\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint status = BuildPropertiesUtil.executeBuild(args[0]);\r\n\t\t\t\r\n\t\t\tif(status == 0){\r\n\t\t\t\tSystem.out.println(\"\\n************** Build Execution is successful. **************\\n\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"\\n************** Build Execution Failed. Please check the console Logs. **************\\n\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(String channel : channelList){\t\r\n\t\t\t\treviewOrchestrator.performCodeReview((new Date()).getTime());\r\n\t\t\t\t\r\n\t\t\t\tint buildStatus = BuildPropertiesUtil.executeBuild(args[0]);\r\n\t\t\t\t\r\n\t\t\t\tif(buildStatus == 0){\r\n\t\t\t\t\tJSReviewUtil.printToConsole(\"\\n************** Build execution for Channel \"+channel+\" is successful **********\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t\t}catch (Exception e) {\r\n\t\t\tSystem.out.println(\"ERROR : \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"COMPLETED TRANSFORMING FILES\");\r\n\t}",
"public static void main(String[] args) {\n\n task3();\n }",
"public void execute() throws Exception {\n\n\t\tString datepattern = \"yyyy-MM-dd\";\n\t\tSimpleDateFormat sdf =new SimpleDateFormat(datepattern);\n\t\t//testing console\n\t\t if(TestHTTP.test(Parameters.LATC_CONSOLE_HOST))\n\t \tlogfile.info(Parameters.LATC_CONSOLE_HOST+\" OK\");\n\t else \n\t {\n\t \tlogfile.severe(Parameters.LATC_CONSOLE_HOST+\" DOWN\");\n\t \tSystem.exit(0);\n\t \t}\n \t\t\n\t\tListTranslator lt = new ListTranslator();\n ContentWriter cw = new ContentWriter();\n \n ConsoleConnection client = new ConsoleConnection(Parameters.LATC_CONSOLE_HOST);\n \n /*\n * Getting list of link configuration from LATC_CONSOLE\n * JSON Format : title, identifier\n */\n \n if(!client.getTasks())\n {\n \tlogfile.severe(\"Error during get Queue \"+client.getMessage());\n \tSystem.exit(0);\n }\n lt.translateMember(client.getMessage());\n toDoList = lt.getLinkingConfigs();\n \n ReportCSV report = new ReportCSV( Parameters.RESULT_LOCAL_DIR+\"/report\"+sdf.format(new Date())+\".csv\");\n \n for (String title : toDoList.keySet()) {\n \t boolean blacklist = false;\n \tfinal String [] split = toDoList.get(title).split(\"#\");\n \tfinal String id = split[0];\n \tfinal String speccretime = split[1];\n \tfinal String specmodtime = split[2];\n \tfinal String specAuthor = split[3];\n \n \t logfile.info( \"start processing id \"+id+\" title \"+title);\n \n // checking blacklist\n \t if(title.startsWith(\"**\"))\n {\n \tblacklist = true;\n \ttitle = title.substring(2);\n }\n \t\n \tReportCSV.status st = status.failed; \n //create id directory\n boolean exists = (new File(RESULTDIR +'/'+ title).exists());\n if (!exists)\n \t\t\t (new File(RESULTDIR +'/'+ title )).mkdirs();\n \n \n \n \t\n \n /*\n * Writing specification linking from LATC_CONSOLE_HOST/configuration/ID/specification\n */\n if(!client.getSpec(id))\n {\n \tlogfile.severe(\"Error during get Specification id \"+id+\" \"+client.getMessage());\n }\n else\n {\n \t\n \t\tDate startDate = new Date();\n \t\tdatepattern = \"yyyy-MM-dd'T'HH:mm:ssZZ\";\n \t\tsdf.applyPattern(datepattern);\n \tString specContent = client.getMessage();\n\t cw.writeIt(RESULTDIR +'/'+ title + '/'+ Parameters.SPEC_FILE, specContent);\n\t VoidInfoDto Void=this.parseSpec(RESULTDIR +'/'+ title + '/'+ Parameters.SPEC_FILE);\n \n\t Void.setSpecRetrievedTime(sdf.format(startDate));\n\t Void.setSpecCreatedTime(speccretime);\n\t Void.setSpecAuthor(specAuthor);\n\t Void.setID(id);\n\t Void.setTitle(title);\n\t Void.setSpecModifiedTime(specmodtime);\n\t Void.setSilkSpecAPIResource(Parameters.LATC_CONSOLE_HOST+\"/api/task/\"+id+\"/configuration\");\n\t \n//\t \t6- data dump\n\t datepattern = \"yyyy-MM-dd\";\n\t \t\tsdf.applyPattern(datepattern);\n Void.setDataDump(Parameters.RESULTS_HOST + '/' +sdf.format(new Date())+'/'+title + \"/\"+Parameters.LINKS_FILE_STORE);\n Void.setSpec(Parameters.RESULTS_HOST + '/' +sdf.format(new Date())+'/'+title + \"/\"+Parameters.SPEC_FILE);\n \n // blacklist\n if(blacklist)\n {\n \tst = status.ongoing;\n \tVoid.setRemarks(\"Unpredicted\");\n \tclient.postReport(id, Void,Parameters.API_KEY);\n \treport.putData(id, title, Void.getSpec(), 0, st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n \tcontinue;\n }\n \n\t \t//testing endpoint\n\t if(Void.getSourceSparqlEndpoint()!=null && !this.testConn(Void.getSourceSparqlEndpoint()))\n\t \t{\n\t \t\tDate errDate = new Date();\n\t \t\tVoid.setRemarks(Void.getSourceSparqlEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getTargetSparqlEndpoint()!=null && !this.testConn(Void.getTargetSparqlEndpoint()))\n\t \t{\n\t \t\tDate errDate = new Date();\t\n\t \t\tVoid.setRemarks(Void.getTargetSparqlEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getSourceUriLookupEndpoint()!=null && !this.testConn(Void.getSourceUriLookupEndpoint()))\n\t \t{\n\t \tDate errDate = new Date();\t\n\t \tVoid.setRemarks(Void.getSourceUriLookupEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getTargetUriLookupEndpoint()!=null && !this.testConn(Void.getTargetUriLookupEndpoint()))\n\t \t{\n\t \tDate errDate = new Date();\n\t \t\tVoid.setRemarks(Void.getTargetUriLookupEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void, Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n \n\t \n\t \n\t /*\n\t * Running hadoop for silk Map reduce\n\t */\n\t if (this.runHadoop(title, Void,RESULTDIR)) {\n\t \n\t\n\t cw.writeIt(RESULTDIR +'/'+ title + '/'+ Parameters.VOID_FILE, Void);\n\t\n\t // 2-e\n\t Void.setRemarks(Void.getStatItem()+\" Links generated successfully\");\n\t logfile.info( \"Processing id \"+id+\" title \"+title+ \" success\");\n\t\n\t } // if hadoop\n\t else {\n\t \tlogfile.severe( \"Processing id \"+id+\" title \"+title+ \" failed\");\n \t \n\t }\n\t Date endDate = new Date();\n\t \n\t if(Void.getStatItem()>=0)\n\t \tst = status.sucesss;\n\t else if(Void.getStatItem()==-2)\n\t \tst= status.ongoing;\n\t \n\t report.putData(id, title, Void.getSpec(), endDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t client.postReport(id, Void,Parameters.API_KEY);\n\t }\n } // for loop\n report.close(); \n logfile.info(\"Runtime done\");\n \n }",
"@Test\n public void testAMWorkflow() throws Throwable {\n describe(\"Create a committer with a null output path & use as an AM\");\n JobData jobData = startJob(true);\n JobContext jContext = jobData.jContext;\n TaskAttemptContext tContext = jobData.tContext;\n\n TaskAttemptContext newAttempt = new TaskAttemptContextImpl(\n jContext.getConfiguration(),\n taskAttempt0);\n Configuration conf = jContext.getConfiguration();\n\n // bind\n TextOutputForTests.bind(conf);\n\n OutputFormat<?, ?> outputFormat\n = ReflectionUtils.newInstance(newAttempt.getOutputFormatClass(), conf);\n Path outputPath = FileOutputFormat.getOutputPath(newAttempt);\n Assertions.assertThat(outputPath)\n .as(\"null output path in new task attempt\")\n .isNotNull();\n\n ManifestCommitter committer2 = (ManifestCommitter)\n outputFormat.getOutputCommitter(newAttempt);\n committer2.abortTask(tContext);\n\n }",
"private AvmTransactionResult runExternalInvoke(KernelInterface parentKernel, TransactionTask task, TransactionContext ctx) {\n AvmTransactionResult.Code error = null;\n\n // Sanity checks around energy pricing and nonce are done in the caller.\n // balance check\n Address sender = ctx.getSenderAddress();\n\n BigInteger transactionCost = BigInteger.valueOf(ctx.getTransaction().getEnergyLimit() * ctx.getTransactionEnergyPrice()).add(ctx.getTransferValue());\n if (!parentKernel.accountBalanceIsAtLeast(sender, transactionCost)) {\n error = AvmTransactionResult.Code.REJECTED_INSUFFICIENT_BALANCE;\n }\n\n // exit if validation check fails\n if (error != null) {\n AvmTransactionResult result = new AvmTransactionResult(ctx.getTransaction().getEnergyLimit(), ctx.getTransaction().getEnergyLimit());\n result.setResultCode(error);\n return result;\n }\n\n /*\n * After this point, no rejection should occur.\n */\n\n // Deduct the total energy cost\n parentKernel.adjustBalance(sender, BigInteger.valueOf(ctx.getTransaction().getEnergyLimit() * ctx.getTransactionEnergyPrice()).negate());\n\n // Run the common logic with the parent kernel as the top-level one.\n AvmTransactionResult result = commonInvoke(parentKernel, task, ctx);\n\n // Refund energy for transaction\n long energyRemaining = result.getEnergyRemaining() * ctx.getTransactionEnergyPrice();\n parentKernel.refundAccount(sender, BigInteger.valueOf(energyRemaining));\n\n // Transfer fees to miner\n parentKernel.adjustBalance(ctx.getMinerAddress(), BigInteger.valueOf(result.getEnergyUsed() * ctx.getTransactionEnergyPrice()));\n\n return result;\n }",
"public void push(TaskMonitor aTM) throws Exception\n{\n // Get repository and git\n Git git = getGit();\n \n // Get push\n PushCommand push = git.push();\n push.setProgressMonitor(getProgressMonitor(aTM));\n if(getCD()!=null) push.setCredentialsProvider(getCD());\n for(PushResult pr : push.call())\n System.out.println(\"Pushed: \" + pr);\n}",
"private void executePrecomGenericRulesOnDelta(ActionContext context,\n\t\t\tActionOutput actionOutput) throws Exception {\n\t\tActionSequence actions = new ActionSequence();\n\t\tActionsHelper.readFakeTuple(actions);\n\t\tReadAllInMemoryTriples.addToChain(Consts.CURRENT_DELTA_KEY, actions);\n\t\tActionsHelper.mapReduce(Integer.MIN_VALUE, outputStep, false, actions);\n\t\tactionOutput.branch(actions);\n\t}",
"private static void automate() {\n \tLOG.info(\"Begin automation task.\");\n \t\n \tcurrentOpticsXi = clArgs.clusteringOpticsXi;\n \tdouble opticsXiMax = (clArgs.clusteringOpticsXiMaxValue > ELKIClusterer.MAX_OPTICS_XI ? ELKIClusterer.MAX_OPTICS_XI : clArgs.clusteringOpticsXiMaxValue);\n \tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \tint opticsMinPointsMax = clArgs.clusteringOpticsMinPtsMaxValue;\n \t\n \tLOG.info(\"optics-xi-start: {}, optics-xi-min-points-start: {}, optics-xi-step-size: {}, optics-min-points-step-size: {}\",\n \t\t\tnew Object[] { \n \t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints), \n \t\t\t\tdf.format(clArgs.clusteringOpticsXiStepSize), df.format(clArgs.clusteringOpticsMinPtsStepSize)\n \t\t\t});\n \t\n \twhile (currentOpticsXi <= opticsXiMax) {\n \t\twhile (currentOpticsMinPoints <= opticsMinPointsMax) {\n \t\t\t// Run automation for each combination of opticsXi and opticsMinPoints\n \t\t\tLOG.info(\"Run automation with optics-xi: {}, optics-xi-min-points: {}\", \n \t\t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints));\n \t\t\t\n \t\t\ttry {\n\t \t\t\t// Step 1: Clustering\n\t \t\t\tclustering(clArgs.clusteringInFile, clArgs.clusteringOutDir, currentOpticsXi, currentOpticsMinPoints);\n\t \t\t\t\n\t \t\t\t// Step 2: Build shared framework\n\t \t\t\tbuildFramework();\n\t \t\t\t\n\t \t\t\t// Step 3: Build user hierarchical graphs\n\t \t\t\tbuildHierarchicalGraphs();\n\t \t\t\t\n\t \t\t\t// Step 4: Calculate similarity between all users and create evaluation results afterwards\n\t \t\t\tcalculateSimilarity();\n \t\t\t} catch (Exception e) {\n\t\t\t\t\tLOG.error(\"An error occurred during the automation task. Jumping to the next pass.\", e);\n\t\t\t\t} finally {\n\t \t\t\t// Step 5: Clean up for the next run\n\t \t\t\tcleanAutomationResults();\n\t \t\t\t\n\t \t\t\t// Increase the currentOpticsMinPoints for the next run if desired\n\t \t\t\tif (clArgs.clusteringOpticsMinPtsStepSize > 0)\n\t \t\t\t\tcurrentOpticsMinPoints += clArgs.clusteringOpticsMinPtsStepSize;\n\t \t\t\telse\n\t \t\t\t\tbreak;\n\t\t\t\t}\n \t\t}\n \t\t// Reset current values\n \t\tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \t\t\n \t\t// Increase currentOpticsXi for the next run if desired\n \t\tif (clArgs.clusteringOpticsXiStepSize > 0)\n\t\t\t\tcurrentOpticsXi += clArgs.clusteringOpticsXiStepSize;\n\t\t\telse\n\t\t\t\tbreak;\n \t}\n \t\n \tLOG.info(\"End automation task.\");\n }",
"public void execute(){\n\t\tnew PayCarOrderTask().execute();\n\t}",
"private void applyMetadataTemplateProjectES_BU_TF() {\n\t\tArrayList<ArtifactType> artifactTypes = new ArrayList<ArtifactType>();\n\t\tArrayList<DependencyType> dependencyTypes = new ArrayList<DependencyType>();\n\t\tArrayList<TaskType> taskTypes = new ArrayList<TaskType>();\n\t\tArrayList<RuleType> ruleTypes = new ArrayList<RuleType>();\n\t\tArrayList<Rule> rules = new ArrayList<Rule>();\n\t\t\n\t\tArrayList<ArtifactType> u = new ArrayList<ArtifactType>();\n\t\tArrayList<ArtifactType> p = new ArrayList<ArtifactType>();\n\t\tArrayList<DependencyType> d = new ArrayList<DependencyType>();\n\t\tString description = \"\";\n\t\t\n\t\tArtifactType ATstart = new ArtifactType(\"Start\",\".start\");\n\t\tArtifactType ATstory = new ArtifactType(\"Story\",\".txt\");\n\t\tArtifactType ATstoryTest = new ArtifactType(\"StoryTest\",\".java\");\n\t\tArtifactType ATinterface = new ArtifactType(\"Interface\",\".java\");\n\t\tArtifactType ATdomainClass = new ArtifactType(\"DomainClass\",\".java\");\n\t\tArtifactType ATdomainTest = new ArtifactType(\"DomainTest\",\".java\");\n\t\tartifactTypes.add(ATstart);\n\t\tartifactTypes.add(ATstory);\n\t\tartifactTypes.add(ATstoryTest);\n\t\tartifactTypes.add(ATinterface);\t\t\n\t\tartifactTypes.add(ATdomainClass);\n\t\tartifactTypes.add(ATdomainTest);\n\n\t\tu.add(ATstart);\n\t\tp.add(ATstory);\n\t\tDependencyType DTstory = new DependencyType(ATstart,ATstory,\"DTstory\");\n\t\td.add(DTstory);\n\t\tdependencyTypes.add(DTstory);\n\t\tdescription = \"Create a story for the project\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATstory);\n\t\tp.add(ATdomainTest);\n\t\tDependencyType DTdomainTest = new DependencyType(ATstory,ATdomainTest,\"DTdomainTest\");\n\t\td.add(DTdomainTest);\n\t\tDTdomainTest.setMultiplicity(0);\n\t\tdependencyTypes.add(DTdomainTest);\n\t\tdescription = \"Create a domain test for the story\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATdomainTest);\n\t\tp.add(ATdomainClass);\n\t\tDependencyType DTdomainClass = new DependencyType(ATdomainTest,ATdomainClass,\"DTdomainClass\");\n\t\td.add(DTdomainClass);\n\t\tdependencyTypes.add(DTdomainClass);\n\t\tdescription = \"Create a domain class for the domain test\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATdomainTest);\n\t\tp.add(ATinterface);\n\t \tDependencyType DTinterface = new DependencyType(ATdomainTest,ATinterface,\"DTinterface\");\n\t\td.add(DTinterface);\n\t\tdependencyTypes.add(DTinterface);\n\t\tdescription = \"Create a interface for the domain test\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATinterface);\n\t p.add(ATstoryTest);\n\t\tDependencyType DTstoryTest = new DependencyType(ATinterface,ATstoryTest,\"DTstoryTest\");\n\t\td.add(DTstoryTest);\n\t\tdependencyTypes.add(DTstoryTest);\n\t\tdescription = \"Create a story test for the interface\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tstatus.setArtifactTypes(artifactTypes);\n\t\tstatus.setDependencyTypes(dependencyTypes);\n\t\tstatus.setTaskTypes(taskTypes);\t\n\t\tstatus.setRuleTypes(ruleTypes);\n\t\tstatus.setRules(rules);\n\t}",
"@Override\n public APIStateChangeResponse changeLifeCycleStatus(String orgId, ApiTypeWrapper apiTypeWrapper, String action,\n Map<String, Boolean> checklist) throws APIManagementException{\n APIStateChangeResponse response = new APIStateChangeResponse();\n try {\n PrivilegedCarbonContext.startTenantFlow();\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(this.username);\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantDomain(this.tenantDomain, true);\n\n String targetStatus;\n String providerName;\n String apiName;\n String apiContext;\n String apiType;\n String apiVersion;\n String currentStatus;\n String uuid;\n int apiOrApiProductId;\n boolean isApiProduct = apiTypeWrapper.isAPIProduct();\n String workflowType;\n\n if (isApiProduct) {\n APIProduct apiProduct = apiTypeWrapper.getApiProduct();\n providerName = apiProduct.getId().getProviderName();\n apiName = apiProduct.getId().getName();\n apiContext = apiProduct.getContext();\n apiType = apiProduct.getType();\n apiVersion = apiProduct.getId().getVersion();\n currentStatus = apiProduct.getState();\n uuid = apiProduct.getUuid();\n apiOrApiProductId = apiMgtDAO.getAPIProductId(apiTypeWrapper.getApiProduct().getId());\n workflowType = WorkflowConstants.WF_TYPE_AM_API_PRODUCT_STATE;\n } else {\n API api = apiTypeWrapper.getApi();\n providerName = api.getId().getProviderName();\n apiName = api.getId().getApiName();\n apiContext = api.getContext();\n apiType = api.getType();\n apiVersion = api.getId().getVersion();\n currentStatus = api.getStatus();\n uuid = api.getUuid();\n apiOrApiProductId = apiMgtDAO.getAPIID(uuid);\n workflowType = WorkflowConstants.WF_TYPE_AM_API_STATE;\n }\n String gatewayVendor = apiMgtDAO.getGatewayVendorByAPIUUID(uuid);\n\n WorkflowStatus apiWFState = null;\n WorkflowDTO wfDTO = apiMgtDAO.retrieveWorkflowFromInternalReference(Integer.toString(apiOrApiProductId),\n workflowType);\n if (wfDTO != null) {\n apiWFState = wfDTO.getStatus();\n }\n\n // if the workflow has started, then executor should not fire again\n if (!WorkflowStatus.CREATED.equals(apiWFState)) {\n response = executeStateChangeWorkflow(currentStatus, action, apiName, apiContext, apiType,\n apiVersion, providerName, apiOrApiProductId, uuid, gatewayVendor, workflowType);\n // get the workflow state once the executor is executed.\n wfDTO = apiMgtDAO.retrieveWorkflowFromInternalReference(Integer.toString(apiOrApiProductId),\n workflowType);\n if (wfDTO != null) {\n apiWFState = wfDTO.getStatus();\n response.setStateChangeStatus(apiWFState.toString());\n } else {\n response.setStateChangeStatus(WorkflowStatus.APPROVED.toString());\n }\n }\n\n // only change the lifecycle if approved\n // apiWFState is null when simple wf executor is used because wf state is not stored in the db.\n if (WorkflowStatus.APPROVED.equals(apiWFState) || apiWFState == null) {\n LifeCycleUtils.changeLifecycle(this.username, this, orgId, apiTypeWrapper, action, checklist);\n JSONObject apiLogObject = new JSONObject();\n apiLogObject.put(APIConstants.AuditLogConstants.NAME, apiName);\n apiLogObject.put(APIConstants.AuditLogConstants.CONTEXT, apiContext);\n apiLogObject.put(APIConstants.AuditLogConstants.VERSION, apiVersion);\n apiLogObject.put(APIConstants.AuditLogConstants.PROVIDER, providerName);\n APIUtil.logAuditMessage(APIConstants.AuditLogConstants.API, apiLogObject.toString(),\n APIConstants.AuditLogConstants.LIFECYCLE_CHANGED, this.username);\n }\n } catch (APIPersistenceException e) {\n handleException(\"Error while accessing persistence layer\", e);\n } finally {\n PrivilegedCarbonContext.endTenantFlow();\n }\n return response;\n }",
"public void execute() throws Exception {\n initialize();\n createGraphs();\n preSyncConfiguration();\n sync();\n }",
"public BotTaskExecutor(SlackSession session) {\n LOG.info(\"Start time: {}\", String.format(\"%1$-2d:%2$-2d\", START_HOUR, START_MIN));\n\n SlackChannel channelBotMain = session.findChannelByName(Constants.BOT_MAIN_CHANNEL);\n\n // Enable/disabe the Meetup bot\n if (PropertiesUtil.getBooleanProperty(Constants.MEETUP_ENABLE, true)) {\n if (channelBotMain == null) {\n LOG.warn(\"Failed to start MEETUP task\");\n SlackBot.messageAdmins(session, \"Failed to start MEETUP task\");\n } else {\n TASKS.add(new MeetupBotTask(EXECUTOR_SERVICE, \"MEETUP\", START_HOUR, START_MIN, session, channelBotMain));\n }\n }\n\n if (PropertiesUtil.getBooleanProperty(Constants.BOT_TEST, false)) {\n channelBotMain = session.findChannelByName(\"random\");\n } else {\n channelBotMain = session.findChannelById(PropertiesUtil.getProperty(Constants.WBB_CHANNEL_ID));\n }\n if (channelBotMain == null) {\n LOG.warn(\"Failed to start WBB task\");\n SlackBot.messageAdmins(session, \"Failed to start WBB task\");\n } else {\n TASKS.add(new WbbBotTask(EXECUTOR_SERVICE, \"WBB\", START_HOUR, START_MIN, session, channelBotMain));\n }\n\n channelBotMain = session.findChannelByName(Constants.BOT_MAIN_CHANNEL);\n if (channelBotMain == null) {\n LOG.warn(\"Failed to start UPGRADE task\");\n SlackBot.messageAdmins(session, \"Failed to start UPGRADE task\");\n } else {\n // Start the upgrade task at 0600\n TASKS.add(new UpgradeTask(EXECUTOR_SERVICE, \"UPGRADE\", 6, 0, session, channelBotMain));\n }\n\n startAll();\n }"
] | [
"0.57869667",
"0.56831235",
"0.56822",
"0.55600494",
"0.55177444",
"0.549457",
"0.5470879",
"0.5428074",
"0.53951544",
"0.5387495",
"0.5365736",
"0.5313998",
"0.5288868",
"0.5265039",
"0.525979",
"0.52343374",
"0.5225516",
"0.51922303",
"0.51864606",
"0.5167799",
"0.51620793",
"0.5151205",
"0.5146985",
"0.51456505",
"0.51371926",
"0.51151854",
"0.5078686",
"0.5074664",
"0.5064423",
"0.5059395",
"0.5059078",
"0.5028939",
"0.502232",
"0.4992882",
"0.49525142",
"0.4948717",
"0.4947256",
"0.49449244",
"0.4941947",
"0.49340695",
"0.49297634",
"0.49256533",
"0.4912572",
"0.48969802",
"0.488863",
"0.48841214",
"0.48810196",
"0.48785594",
"0.48776487",
"0.48731697",
"0.48640862",
"0.48621756",
"0.485295",
"0.4842503",
"0.48380092",
"0.4822991",
"0.48229632",
"0.48085484",
"0.48015523",
"0.48007092",
"0.47989282",
"0.47905862",
"0.47858083",
"0.47857264",
"0.4777901",
"0.4767404",
"0.47598556",
"0.4758355",
"0.47561285",
"0.47498634",
"0.47461292",
"0.47432837",
"0.47380084",
"0.4733004",
"0.47304395",
"0.47283518",
"0.47282532",
"0.47246823",
"0.47235528",
"0.47210413",
"0.47203898",
"0.4710247",
"0.47068793",
"0.47068408",
"0.47018084",
"0.47013465",
"0.46948567",
"0.4693823",
"0.46832758",
"0.46789828",
"0.46775356",
"0.46773398",
"0.46772227",
"0.46753392",
"0.46687135",
"0.4663122",
"0.46561733",
"0.4656107",
"0.4655101",
"0.4654315"
] | 0.7167874 | 0 |
Returns the output data of the previous workflow run. | Map<String, ?> getOutputData(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOutput() throws TavernaException, ProcessException{\n if (outputFile == null){\n return saveOutput();\n }\n try {\n return runner.getOutput();\n } catch (InterruptedException ex) {\n throw new TavernaException (\"Workflow was interrupted.\", ex);\n }\n }",
"public String getOutput() {\n\t\treturn results.getOutput() ;\n\t}",
"@Override\n public Object getData() {\n return outputData;\n }",
"public String getLocalOutput(){\r\n\t\treturn this.localOutput;\r\n\t}",
"public String lastOutput() throws IOException {\n stream.flush();\n os.flush();\n return os.asString();\n }",
"@Field(0) \n\tpublic Pointer<uvc_processing_unit > prev() {\n\t\treturn this.io.getPointerField(this, 0);\n\t}",
"public TestOut getOutput() {\n\treturn(output);\n }",
"public JSONArray getOutput() {\n\t\treturn output;\n\t}",
"public DataMatrix getOutputData() {\n return this.dataOutput;\n }",
"public String getOutput() {\n return output.toString();\n }",
"@Override\n\tpublic long getPreviousVersionId() {\n\t\treturn _scienceApp.getPreviousVersionId();\n\t}",
"public Output getOutput() {\n\t\treturn output;\n\t}",
"private Pair<PRQAReading, AbstractBuild<?, ?>> getPreviousReading(AbstractBuild<?, ?> currentBuild,\n Result expectedResult) {\n AbstractBuild<?, ?> iterate = currentBuild;\n do {\n iterate = iterate.getPreviousNotFailedBuild();\n if (iterate != null && iterate.getAction(PRQABuildAction.class) != null && Objects.equals(\n iterate.getResult(), expectedResult)) {\n AbstractBuild<?, ?> second = iterate;\n Pair<PRQAReading, AbstractBuild<?, ?>> result =\n Pair.of(iterate.getAction(PRQABuildAction.class).getResult(), second);\n return result;\n }\n } while (iterate != null);\n return null;\n }",
"public String getOutput() {\n return output;\n }",
"public StreamResult getOutput() {\n return output;\n }",
"public String returnToPreviousPage() {\n if (datasetVersion.isDraft()) {\n return \"/dataset.xhtml?persistentId=\" +\n datasetVersion.getDataset().getGlobalId().asString() + \"&version=DRAFT&faces-redirect=true\";\n }\n return \"/dataset.xhtml?persistentId=\"\n + datasetVersion.getDataset().getGlobalId().asString()\n + \"&faces-redirect=true&version=\"\n + datasetVersion.getVersionNumber() + \".\" + datasetVersion.getMinorVersionNumber();\n }",
"com.google.protobuf.ByteString\n getOutputBytes();",
"public E previousStep() {\r\n\t\tthis.current = this.values[Math.max(this.current.ordinal() - 1, 0)];\r\n\t\treturn this.current;\r\n\t}",
"public boolean[] getOutput() {\n // PROGRAM 1: Student must complete this method\n // return value is a placeholder, student should replace with correct return\n boolean[] outputCopy = new boolean[output.length]; //array to hold copy of output.\n for (int i = 0; i < outputCopy.length; i++) {\n outputCopy[i] = output[i]; //place output data into outputCopy\n }\n return outputCopy; //return copy of output\n }",
"public List<String> getOutput() {\n List<String> toRet = new ArrayList<String>();\n String line = processLinesOut_.poll();\n while (line != null) {\n toRet.add(line);\n line = processLinesOut_.poll();\n }\n return toRet;\n }",
"public String getUndoInformation() {\n return previousActionUndoString;\n }",
"public String getOutput() {\r\n return innerStream.getString();\r\n }",
"public String getRunInfo(){\n return runner.getRunInfo();\n }",
"public String getPrevCommandString() {\n if (this.history.size() == 0) {\n return \"\";\n }\n\n if (this.currIndex <= 0) {\n return this.history.get(0);\n }\n\n this.currIndex -= 1;\n return this.history.get(this.currIndex);\n }",
"private int getLatestRuns() {\n // return 90 for simplicity\n return 90;\n }",
"@Override\n\tpublic LinkedHashMap<String, Object> output()\n\t{\n\t\treturn this._data;\n\t}",
"@Override\n public Object getData() {\n return new String(outputData);\n }",
"public String getOutputString()\n\t{\n\t\treturn outputString;\n\t}",
"Output getOutputs();",
"public float[] getOutput() {\n\t\t// Put output return code here (and remove \"return null;\")\n \treturn null;\n }",
"public Object getCallOutput() {\n\t\treturn null;\n\t}",
"@Override\n\tprotected OperationResult persistResult() throws IOException {\n\t\treturn App.getState().get(processInput());\n\t}",
"public String runRecurrentBatch() {\n\n\t\tlog.info(\"Inside runRecurrentBatch\");\n\n\t\treturn null;\n\n\t}",
"@Override\r\n\tpublic String prev() {\n\t\tString pre;\r\n\r\n\t\tpre = p.getPrev();\r\n\r\n\t\tif (pre != null) {\r\n\t\t\tthisPrevious = true;\r\n\t\t\tinput(pre);\r\n\t\t}\r\n\t\treturn pre;\r\n\t}",
"public int getOutput() {\n return Output;\n }",
"public ArrayList<String> getOutputs() {\r\n return outputs;\r\n }",
"public WorkflowExecutionInfo getExecutionInfo() {\n return executionInfo;\n }",
"public String getReturnData() {\n return returnData;\n }",
"String getOutput();",
"public String getOutput() {\n myLock.lock();\n try {\n return myOutput.toString();\n }\n finally {\n myLock.unlock();\n }\n }",
"public Map<String, StepResult> getResults()\n {\n return results;\n }",
"public String getLastEvaluationState() {\n return this.lastEvaluationState;\n }",
"java.lang.String getOutput();",
"public String getResult() {\n\t\treturn bashCommand.getStdOutString();\n\t}",
"public java.util.List<java.lang.String> getOutputs() {\n return outputs;\n }",
"public Integer getActualoutput() {\n return actualoutput;\n }",
"public java.util.List<java.lang.String> getOutputs() {\n return outputs;\n }",
"public RunConfigDataNode getCurrConfig() {\n\t\treturn currConfig;\n\t}",
"public ObservableList<XYChart.Series<Number, Number>> getOutputData() {\n return outputData;\n }",
"public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}",
"public String getoutputString() {\r\n\t\treturn outputString;\r\n\t}",
"public String getLastReport()\n {\n return null;\n }",
"public String data() {\n String done = isDone ? \"1\" : \"0\";\n return String.format(\"%s | %s\", done, description);\n }",
"@Override\n public E getPrevious() {\n if (isCurrent() && prev != null) { return prev.getData(); }\n else { throw new IllegalStateException(\"There is no previous element.\"); }\n }",
"private static HashMap<String, String> getLastCheckpoint() {\n return checkpoints.remove(Thread.currentThread());\n }",
"Object getCurrentData();",
"public State getPreviousState()\r\n\t{\r\n\t\treturn previousState;\r\n\t}",
"public static String GetPreviousProjects() {\n\t\tString previousProjects = \"\";\n\t\tif (applicationSettingsFile != null) {\n\t\t\t// Get all \"files\"\n\t\t\tNodeList lastProject = applicationSettingsFile.getDocumentElement().getElementsByTagName(\"previousProjects\");\n\t\t\t// Handle result\n\t\t\tif (lastProject.getLength() > 0) {\n\t\t\t\tpreviousProjects = Utilities.getXmlNodeAttribute(lastProject.item(0), \"value\");\n\t\t\t}\n\t\t}\n\t\treturn previousProjects;\n\t}",
"public Integer getPreviousValue() {\n return this.previousValue;\n }",
"public double getPreActivationFunctionOutput() {\n\t\treturn preActivationFunctionOutput;\n\t}",
"public WorkflowsHistory workflowsHistory() {\n return this.workflowsHistory;\n }",
"@Override\n public Object getSimulationState()\n {\n if (outputStateVariables == null)\n {\n System.out.println(\"Output State vars is null!!\");\n\n return null;\n }\n\n double[] ret = new double[outputStateVariables.length];\n\n for (int i = 0; i < ret.length; i++)\n {\n YoVariable var = outputStateVariables[i];\n if (var != null)\n ret[i] = outputStateVariables[i].getValueAsDouble();\n else\n ret[i] = 0.0;\n }\n\n return ret;\n }",
"public ExecutionResults getExecutionResults() {\n\t\treturn results ;\n\t}",
"public String getHistory () {\r\n\t\treturn history;\r\n\t}",
"public String getHistory () {\r\n\t\treturn history;\r\n\t}",
"org.hyperledger.fabric.protos.token.Transaction.PlainOutput getOutput();",
"public String getHistory () {\n\t\treturn history;\n\t}",
"public NMapRun getResult() {\n\t\tOnePassParser parser = new OnePassParser() ;\n\t\tNMapRun nmapRun = parser.parse(outFilePath, OnePassParser.FILE_NAME_INPUT ) ;\n\t\treturn nmapRun ;\n\t}",
"public double getTimeOffset() {\r\n return lastTimeOutput;\r\n }",
"public\tString\tgetPreviousSignature() {\n\t\t\treturn\tthis.prevSignature;\n\t\t}",
"@AutoGUIAnnotation(\r\n DescriptionForUser = \"<html>Displays the result of the previous Script command<br>if it is of ype float.</html>\",\r\n ParameterNames = {},\r\n DefaultValues = {},\r\n ToolTips = {})\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"DisplayPreviousResult\">\r\n public void DisplayPreviousResult() \r\n throws ScriptException {\r\n\r\n // build the string\r\n String str = \"The result of the previous Script command was: \";\r\n\r\n // check if the type was float\r\n if (m_LastReturnValue instanceof Number) {\r\n str += m_LastReturnValue.toString() + \"\\n\";\r\n } else {\r\n str = \"The data type of the return value of the previous script command\\n\"\r\n + \"is not of type Number as expected.\\n\";\r\n throw new ScriptException(str);\r\n }\r\n\r\n\r\n // display the previous result as Status Text\r\n m_GUI.DisplayStatusMessage(str, false);\r\n }",
"public java.lang.String getOutput() {\n java.lang.Object ref = output_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n output_ = s;\n return s;\n }\n }",
"public LabData getCurrentData(){\n return labDataCurrent;\n }",
"public java.lang.String getOutput() {\n java.lang.Object ref = output_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n output_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int getPreviousHop() {\n return previousHop;\n }",
"public OutputProgressModel getOutputProgressModel() {\r\n return outputProgressModel;\r\n }",
"public String getCurrrentInput(){\n\t\treturn this.currentInput;\n\t}",
"cn.infinivision.dataforce.busybee.pb.meta.Execution getExecution();",
"java.lang.String getPredicted();",
"public Production getLastProductionFired () { return lastFiredInst.getProduction(); }",
"public String getRunLog();",
"public String getOutput() {\n TopologicalOrderIterator<String, DefaultEdge> iterator =\n new TopologicalOrderIterator<>(steps, Comparator.comparing((String x) -> x));\n\n // Traverse the DAG and store each vertex to a StringBuilder\n // to output once traversal is completed\n StringBuilder sb = new StringBuilder();\n while (iterator.hasNext()) {\n sb.append(iterator.next());\n }\n\n return sb.toString();\n }",
"@Override\r\n public int getOutputNum() {\n return models[models.length - 1].getOutputNum();\r\n }",
"public List<String> getAggregatedOutput() {\r\n\t\t//begin\r\n\t\tList<String> temp = Broker.getOutput();\r\n\t\treturn temp;\r\n\t\t//end\r\n\t\t//return null;\r\n\t}",
"public String getPrevDate() \n\t{\n\t\tm_calendar.set (Calendar.DAY_OF_MONTH, getDayOfMonth() -1);\n\t\treturn getTodayDate();\n\t}",
"public Position2D getPreviousPosition()\n {\n return previousPosition;\n }",
"public java.lang.String getInputData() {\n return inputData;\n }",
"public DSAGraphNode<E> getPrevious()\n {\n return previous;\n }",
"public double getCurrent() {\n return elevatorSpark.getOutputCurrent();\n }",
"public String toCheckpoint() {\n return null;\n }",
"public String getWorkingDataFile()\n\t{\n\t return workingDataFileName;\n\t}",
"private String getLatestMarketData() {\n\t\treturn latestMarketData;\n\t}",
"public void backStep() {\r\n\t\tif (engaged && !backSteps.empty()) {\r\n\t\t\tProgramStatement statement = ((BackStep) backSteps.peek()).ps;\r\n\t\t\tengaged = false; // GOTTA DO THIS SO METHOD CALL IN SWITCH WILL NOT\r\n\t\t\t\t\t\t\t\t// RESULT IN NEW ACTION ON STACK!\r\n\t\t\tdo {\r\n\t\t\t\tBackStep step = (BackStep) backSteps.pop();\r\n\t\t\t\t/*\r\n\t\t\t\t * System.out.println(\"backstep POP: action \"+step.action+\" pc \"\r\n\t\t\t\t * +mars.util.Binary.intToHexString(step.pc)+\r\n\t\t\t\t * \" source \"+((step.ps==null)? \"none\":step.ps.getSource())+\r\n\t\t\t\t * \" parm1 \"+step.param1+\" parm2 \"+step.param2);\r\n\t\t\t\t */\r\n\t\t\t\tif (step.pc != NOT_PC_VALUE) {\r\n\t\t\t\t\tRegisterFile.setProgramCounter(step.pc);\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tswitch (step.action) {\r\n\t\t\t\t\tcase MEMORY_RESTORE_RAW_WORD:\r\n\t\t\t\t\t\tGlobals.memory.setRawWord(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MEMORY_RESTORE_WORD:\r\n\t\t\t\t\t\tGlobals.memory.setWord(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MEMORY_RESTORE_HALF:\r\n\t\t\t\t\t\tGlobals.memory.setHalf(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MEMORY_RESTORE_BYTE:\r\n\t\t\t\t\t\tGlobals.memory.setByte(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase REGISTER_RESTORE:\r\n\t\t\t\t\t\tRegisterFile.updateRegister(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase PC_RESTORE:\r\n\t\t\t\t\t\tRegisterFile.setProgramCounter(step.param1);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC0_REGISTER_RESTORE:\r\n\t\t\t\t\t\tCoprocessor0.updateRegister(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC1_REGISTER_RESTORE:\r\n\t\t\t\t\t\tCoprocessor1.updateRegister(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC1_CONDITION_CLEAR:\r\n\t\t\t\t\t\tCoprocessor1.clearConditionFlag(step.param1);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC1_CONDITION_SET:\r\n\t\t\t\t\t\tCoprocessor1.setConditionFlag(step.param1);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase DO_NOTHING:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// if the original action did not cause an exception this\r\n\t\t\t\t\t// will not either.\r\n\t\t\t\t\tSystem.out.println(\"Internal MARS error: address exception while back-stepping.\");\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t} while (!backSteps.empty() && statement == ((BackStep) backSteps.peek()).ps);\r\n\t\t\tengaged = true; // RESET IT (was disabled at top of loop -- see\r\n\t\t\t\t\t\t\t// comment)\r\n\t\t}\r\n\t}",
"public void calculateOutputs()\n {\n numberOfOutputs = outputs.size();\n }",
"public String getOutputFilePath() {\t\n\t\treturn outputFilePath; \n\t}",
"public Fact get_return() {\r\n return local_return;\r\n }",
"public T previous()\n {\n // TODO: implement this method\n return null;\n }",
"public static String previousworkingdate() {\n\t\tLocalDate lastbusinessday = getLastWorkingDayOfMonth(LocalDate.now());\n\t\tint x = lastbusinessday.getDayOfMonth();\n\t\tString y = String.valueOf(x);\n\t\tif (y.length() == 1)\n\t\t\ty = \"0\" + y;\n\t\treturn String.valueOf(y);\n\n\t}",
"public void getResults() {\n\t\tSystem.out.println(\"|V| : \" + g.getV());\n\t\tSystem.out.println(\"|E| : \" + g.getE());\n\t\tSystem.out.println(\"Max flow : \" + g.getVertex(sink).e);\n\t\tSystem.out.println(\"Run time : \" + (System.currentTimeMillis()-timeStart) + \" ms\"+\"\\n\");\n\t}",
"public T getOutput() {\r\n\t\treturn outputGraph;\r\n\t}",
"public Output getOutput() {\n\t\treturn OutputFactory.of(outputFile.toPath());\n\t}"
] | [
"0.61551154",
"0.5873696",
"0.5777414",
"0.57705885",
"0.5749902",
"0.5685728",
"0.5661002",
"0.54779863",
"0.5465347",
"0.54547995",
"0.545409",
"0.5444496",
"0.5442388",
"0.54089385",
"0.54087454",
"0.5384649",
"0.53528035",
"0.5301616",
"0.5293315",
"0.5288226",
"0.528804",
"0.5287968",
"0.5270365",
"0.5260627",
"0.52499986",
"0.5239627",
"0.5234494",
"0.5231868",
"0.5210348",
"0.52019346",
"0.51925963",
"0.5190004",
"0.51818895",
"0.51783526",
"0.5163432",
"0.51613575",
"0.51453185",
"0.5124003",
"0.5121087",
"0.51177895",
"0.51151377",
"0.5107834",
"0.510485",
"0.5098739",
"0.509292",
"0.50891477",
"0.50891197",
"0.50850606",
"0.5071983",
"0.5059767",
"0.50557494",
"0.50484926",
"0.5043366",
"0.503979",
"0.50227547",
"0.502208",
"0.5017351",
"0.5014041",
"0.50135136",
"0.50034493",
"0.50014776",
"0.5000071",
"0.49962258",
"0.4988744",
"0.4988744",
"0.49795008",
"0.49786854",
"0.49759907",
"0.49748728",
"0.49729463",
"0.4967125",
"0.49605063",
"0.4959014",
"0.49574724",
"0.49571195",
"0.4952333",
"0.49495724",
"0.49461725",
"0.49423188",
"0.49408892",
"0.4933219",
"0.49296087",
"0.4929267",
"0.49292088",
"0.4928733",
"0.49257866",
"0.4920593",
"0.49205482",
"0.49197924",
"0.4916159",
"0.4914793",
"0.49137825",
"0.49136055",
"0.49125734",
"0.49109402",
"0.4910618",
"0.4908295",
"0.49052694",
"0.4900902",
"0.48945218",
"0.48925844"
] | 0.0 | -1 |
Returns the output files of the previous workflow run. | HashMap<String, ?> getOutputFiles(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Table getOutputFiles() {\n\treturn _outputFiles;\n }",
"public String getOutputFilePath() {\t\n\t\treturn outputFilePath; \n\t}",
"public File getOutput(){\n return outputDir;\n }",
"public static String GetPreviousProjects() {\n\t\tString previousProjects = \"\";\n\t\tif (applicationSettingsFile != null) {\n\t\t\t// Get all \"files\"\n\t\t\tNodeList lastProject = applicationSettingsFile.getDocumentElement().getElementsByTagName(\"previousProjects\");\n\t\t\t// Handle result\n\t\t\tif (lastProject.getLength() > 0) {\n\t\t\t\tpreviousProjects = Utilities.getXmlNodeAttribute(lastProject.item(0), \"value\");\n\t\t\t}\n\t\t}\n\t\treturn previousProjects;\n\t}",
"public String getResultsDir() {\n return opensimActuatorsAnalysesToolsJNI.Tool_getResultsDir(swigCPtr, this);\n }",
"private void getFiles() {\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(inputFileName);\n\t\t\tinputBuffer = new BufferedReader(fr);\n\n\t\t\tFileWriter fw = new FileWriter(outputFileName);\n\t\t\toutputBuffer = new BufferedWriter(fw);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found: \" + e.getMessage());\n\t\t\tSystem.exit(-2);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-3);\n\t\t}\n\t}",
"public String getOutputFilename() {\n\t\treturn outputFilename;\n\t}",
"public String[] getOutputNames()\n\t{\n\t\treturn _outputNames;\n\t}",
"public String getOutputFileName() {\n return outputFileName.getText();\n }",
"Output getOutputs();",
"public List findOutputFiles(long _requestId) throws RequestManagerException, PersistenceResourceAccessException;",
"public ArrayList<String> getOutputs() {\r\n return outputs;\r\n }",
"public String getOutput() throws TavernaException, ProcessException{\n if (outputFile == null){\n return saveOutput();\n }\n try {\n return runner.getOutput();\n } catch (InterruptedException ex) {\n throw new TavernaException (\"Workflow was interrupted.\", ex);\n }\n }",
"public int nbOutputFiles() {\n\treturn getOutputFiles().size();\n }",
"public String getOutputFileName() {\n\t\treturn outputFile;\n\t}",
"public File getOutputDirectory() {\n\t\treturn outputDirectory;\n\t}",
"public Set<String> getBackPageFileSet() {\n final Set<String> fileSet = new HashSet<String>();\n final File[] pageFiles = this.pageDirFile.listFiles();\n if (pageFiles != null && pageFiles.length > 0)\n for (final File pageFile : pageFiles) {\n final String fileName = pageFile.getName();\n if (fileName.endsWith(PAGE_FILE_SUFFIX))\n fileSet.add(fileName);\n }\n return fileSet;\n }",
"private ArrayList<String> stagedButDiffInCWD() {\n ArrayList<String> result = new ArrayList<>();\n List<String> addingStage = Utils.plainFilenamesIn(INDEX);\n for (String file: addingStage) {\n File fileCWD = new File(Main.CWD, file);\n File stagedFile = new File(INDEX, file);\n if (!fileCWD.exists()) {\n String message = file + \" (deleted)\";\n result.add(message);\n } else {\n String contentOne = Utils.readContentsAsString(fileCWD);\n String contentTwo = Utils.readContentsAsString(stagedFile);\n if (!contentOne.equals(contentTwo)) {\n String message = file + \" (modified)\";\n result.add(message);\n }\n }\n }\n return result;\n }",
"public static String getLastFileName()\r\n\t{\r\n\t\treturn _outputFileName;\r\n\t}",
"public listOutputFilesForExperiment_result(listOutputFilesForExperiment_result other) {\n if (other.isSetSuccess()) {\n List<String> __this__success = new ArrayList<String>(other.success);\n this.success = __this__success;\n }\n }",
"public String getOutputPath()\n {\n return __m_OutputPath;\n }",
"public Path getOutputPath() {\n\t\t\n\t\tString name = getSimulationName();\t\t\n\t\tint l = name.length();\n\t\tString sim_name = name.substring(0, l-11); // \"_SIM_FOLDER\" contains 11 character\n\t\t\n\t\tPath path = Paths.get(outpath + \"\\\\\"+ sim_name);\n\t\tif(!Files.exists(path)) {\n\t\t try {\n\t\t Files.createDirectories(path);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t}\n\t\treturn path;\n\t}",
"@Override\n public Collection<LocalFile> referencedLocalFiles() {\n return ImmutableList.of(new LocalFile(queryOutputFilePath, LocalFileType.OUTPUT));\n }",
"public File getOutputFilePath() {\n return outputFile;\n }",
"public String getOutputPath() {\n\t\treturn outputPath;\n\t}",
"private List<FileStatus> findTimestampedDirectories() throws IOException {\n List<FileStatus> fsList = JobHistoryUtils.localGlobber(doneDirFc,\n doneDirPrefixPath, DONE_BEFORE_SERIAL_TAIL);\n return fsList;\n }",
"private void createOutputFiles(){\n\t\tFile folder = new File(C.appFolderPath + C.DEBUG_FOLDER);\n\t\tboolean success = true;\n\t\tif(folder.exists()){\n\t\t\t// erase the folder\n\t\t\tDeleteRecursive(folder);\n\t\t}\n\t\t\n\t\t// create necessary folders\n\t\tif (!folder.exists()) {\n\t\t success = folder.mkdir();\n\t\t Log.d(C.LOG_TAG, \"folder is not existed, create one\");\n\t\t} else {\n\t\t\tLog.e(C.LOG_TAG, \"ERROR: folder has not been deleted\");\n\t\t}\n\t\tFile monitorFolder = new File(C.appFolderPath + C.DEBUG_FOLDER + logFolder);\n\t\tmonitorFolder.mkdir();\n\n\t\ttry {\n\t\t\tmMatlabOutFile = new PrintWriter(new FileOutputStream(new File(C.appFolderPath+ C.DEBUG_FOLDER +\"matlab.txt\"),true));\n\t\t\tmMatlabOutFile.println(inputPrefix+audioSettingName);\n\t\t\tmMatlabOutFile.println(RECODER_CHANNEL_CNT);\n\t\t\tmMatlabOutFile.println(C.DEFAULT_VOL);\n\t\t\tmMatlabOutFile.close();\n\t\t\tmMatlabOutFile = null;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(C.LOG_TAG, \"ERROR: can't open sensor file to write\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public java.lang.String[] getNewFiles(){\r\n return localNewFiles;\r\n }",
"public void readResult() {\n File dirXml = new File(System.getProperty(\"user.dir\") + \"/target/classes/\");\n /// Get Parent Directory\n String parentDirectory = dirXml.getParent();\n File folder = new File(parentDirectory + \"/jbehave\");\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles != null) {\n for (File listOfFile : listOfFiles) {\n if (listOfFile.isFile()) {\n String filePath = folder.getPath() + \"/\" + listOfFile.getName();\n System.out.println(\"File \" + filePath);\n if (filePath.contains(\".xml\") && !filePath.contains(\"AfterStories\") && !filePath.contains(\n \"BeforeStories\")) {\n readXML(filePath);\n }\n }\n }\n }\n }",
"public String outputFileName() {\n return outputFileName;\n }",
"@Override\n protected List<String> compute() {\n List<String> fileNames = new ArrayList<>();\n\n // FolderProcessor tasks to store the sub-tasks that are going to process the sub-folders stored inside folder.\n List<FolderProcessor> subTasks = new ArrayList<>();\n\n // Get the content of the folder.\n File file = new File(path);\n File content[] = file.listFiles();\n\n //For each element in the folder, if there is a subfolder, create a new FolderProcessor object\n //and execute it asynchronously using the fork() method.\n for (int i = 0; i < content.length; i++) {\n if (content[i].isDirectory()) {\n FolderProcessor task = new FolderProcessor(content[i].getAbsolutePath(), extension);\n task.fork();\n subTasks.add(task);\n } else {\n //Otherwise, compare the extension of the file with the extension you are looking for using the checkFile() method\n //and, if they are equal, store the full path of the file in the list of strings declared earlier.\n\n if (checkFile(content[i].getName())) {\n fileNames.add(content[i].getAbsolutePath());\n }\n }\n }\n\n //If the list of the FolderProcessor sub-tasks has more than 50 elements,\n //write a message to the console to indicate this circumstance.\n if (subTasks.size() > 50) {\n System.out.printf(\"%s: %d tasks ran.\\n\", file.getAbsolutePath(), subTasks.size());\n }\n\n // Add the results from the sub-tasks.\n addResultsFrommSubTasks(fileNames, subTasks);\n\n return fileNames;\n }",
"private String getOutputFileName(JCas pJCas) {\n String returnValue = null;\n \n String name = getSourceName(pJCas);\n \n if ((this.outputProjectDirectorySaved.startsWith(\"/\")) || (this.outputProjectDirectorySaved.startsWith(\"\\\\\"))\n || (this.outputProjectDirectorySaved.indexOf(\":\") == 1))\n returnValue = this.outputProjectDirectorySaved + \"/\" + name + \".txt.knowtator.xml\";\n else\n returnValue = this.homeDir + \"/\" + this.eHostWorkSpaceName + \"/\" + this.projectName + \"/saved/\" + name\n + \".txt.knowtator.xml\";\n \n return returnValue;\n }",
"public String getOutputDirectory() {\n return outputDirectory;\n }",
"protected File[] getFiles() {\r\n DirectoryScanner scanner = new DirectoryScanner(rootDir,true,\"*.xml\");\r\n List<File> files = scanner.list();\r\n return files.toArray(new File[files.size()]);\r\n }",
"private static ArrayList<File> buildFilesArray() {\n ArrayList<File> result = new ArrayList<>();\n rAddFilesToArray(workingDirectory, result);\n return result;\n }",
"public java.util.List<java.lang.String> getOutputs() {\n return outputs;\n }",
"public java.util.List<java.lang.String> getOutputs() {\n return outputs;\n }",
"public Collection<File> getRetrievedFiles() {\n Collection<File> result = new ArrayList<>(upToDateFiles.size() + copiedFiles.size());\n result.addAll(upToDateFiles);\n result.addAll(copiedFiles);\n return result;\n }",
"public ClassFile[] getClassFiles() {\n\t\treturn getResult().getClassFiles();\n\t}",
"private static File getWeededOut() {\n\t\tFile[] files = cacheFolder.listFiles();\n\t\tif (files != null) {\n\t\t\tint count = files.length;\n\t\t\tif (count > CACHE_CAPACITY) {\n\n\t\t\t\tFile ret = files[0];\n\n\t\t\t\tfor (File bean : files) {\n\n\t\t\t\t\tif (ret.lastModified() > bean.lastModified())\n\t\t\t\t\t\tret = bean;\n\t\t\t\t}\n\t\t\t\tfiles = null;\n\t\t\t\treturn ret;\n\t\t\t} else {\n\t\t\t\tfiles = null;\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t}\n\t\tfiles = null;\n\t\treturn null;\n\t}",
"public List<GitFileSystemEntry> getWorkingDirFiles() {\n return null;\n }",
"public String getOutputFileName(int index) {\n\treturn (String) _outputFiles.get(index);\n }",
"public String getOutputSubdir() {\n return m_optionalOutputSubDir;\n }",
"public File getLastRunFile () \n\t{\n\t\tLOG.info(\"Reading lastrun file located in directory '\" + config.getTriggerDirectory() + \"'\");\n\t\treturn new File(config.getTriggerDirectory() + \"/\" + config.getJobId() + \"_lastrun.txt\");\n\t}",
"public String getOutputPath () \n\t{\n\t\treturn outputPathTextField.getText();\n\t}",
"public File[] getScriptFiles() {\n\t\treturn new File[] { scriptFile };\n\t}",
"private String[] getFileNames() {\n\t\tFile directory = new File(this.getClass().getClassLoader()\n\t\t\t\t.getResource(\"data\").getFile());\n\t\tList<String> fileNames = new ArrayList<String>();\n\n\t\tfor (File file : directory.listFiles())\n\t\t\tfileNames.add(file.getName());\n\n\t\treturn fileNames.toArray(new String[fileNames.size()]);\n\t}",
"private String getOutputFileName() {\n String filename = VideoCapture.getSelf().getOutputFileName();\n return VideoCapture.getSelf().appDir.getPath()+\"/\"+filename+\".mp4\";\n }",
"public String getOutputFolder() {\n return txtOutputFolder().getText();\n }",
"public List<String> getOutput() {\n List<String> toRet = new ArrayList<String>();\n String line = processLinesOut_.poll();\n while (line != null) {\n toRet.add(line);\n line = processLinesOut_.poll();\n }\n return toRet;\n }",
"public static ArrayList<String> availableSaveFiles() {\n String path = \"saveFiles/\";\n\n ArrayList<String> files = new ArrayList<String>();\n File folder = new File(path);\n \n //if the save folder exists\n if (folder.exists()) {\n //get list of XML files\n String[] listOfFiles = folder.list(new FilenameFilter() {\n public boolean accept(File directory, String fileName) {\n return fileName.endsWith(\".xml\");\n }\n });\n \n //if there are any XML files\n if (listOfFiles.length > 0) {\n for (int i = 0; i < listOfFiles.length; i++) {\n files.add(listOfFiles[i]);\n }\n } else {\n StdOut.println(\"No savefiles in \" + path + \" directory.\");\n }\n \n } else {\n StdOut.println(\"No \" + path + \" directory!\");\n }\n return files;\n }",
"public List<String> getFileLines() {\n\t\tspeciesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\ttissuesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tcellTypesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tdiseaseByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tquantificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tinstrumentByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tmodificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\texperimental_factorByExperiment = new TIntObjectHashMap<List<String>>();\n\n\t\tfinal List<String> ret = new ArrayList<String>();\n\t\tfinal Map<String, PexFileMapping> fileLocationsMapping = new THashMap<String, PexFileMapping>();\n\t\tfinal List<PexFileMapping> totalFileList = new ArrayList<PexFileMapping>();\n\t\tint fileCounter = 1;\n\t\t// organize the files by experiments\n\t\tfor (final Experiment experiment : experimentList.getExperiments()) {\n\n\t\t\tfinal File prideXmlFile = experiment.getPrideXMLFile();\n\t\t\tif (prideXmlFile != null) {\n\t\t\t\t// FILEMAPPINGS\n\t\t\t\t// PRIDE XML\n\t\t\t\tfinal int resultNum = fileCounter;\n\t\t\t\tfinal PexFileMapping prideXMLFileMapping = new PexFileMapping(\"result\", fileCounter++,\n\t\t\t\t\t\tprideXmlFile.getAbsolutePath(), null);\n\n\t\t\t\ttotalFileList.add(prideXMLFileMapping);\n\t\t\t\tfileLocationsMapping.put(prideXMLFileMapping.getPath(), prideXMLFileMapping);\n\n\t\t\t\t// Iterate over replicates\n\t\t\t\tfinal List<Replicate> replicates = experiment.getReplicates();\n\t\t\t\tfor (final Replicate replicate : replicates) {\n\t\t\t\t\t// sample metadatas\n\t\t\t\t\taddSampleMetadatas(resultNum, replicate);\n\n\t\t\t\t\t// PEak lists\n\t\t\t\t\tfinal List<PexFileMapping> peakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// raw files\n\t\t\t\t\tfinal List<PexFileMapping> rawFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// search engine output lists\n\t\t\t\t\tfinal List<PexFileMapping> outputSearchEngineFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// MIAPE MS and MSI reports\n\t\t\t\t\tfinal List<PexFileMapping> miapeReportFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// RAW FILES\n\t\t\t\t\tfinal List<PexFile> rawFiles = getReplicateRawFiles(replicate);\n\n\t\t\t\t\tif (rawFiles != null) {\n\t\t\t\t\t\tfor (final PexFile rawFile : rawFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(rawFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping rawFileMapping = new PexFileMapping(\"raw\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\trawFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\trawFileMappings.add(rawFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(rawFile.getFileLocation(), rawFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> RAW file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(rawFileMapping.getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// PEAK LISTS\n\t\t\t\t\tfinal List<PexFile> peakListFiles = getPeakListFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatePeakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (peakListFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : peakListFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping peakListFileMapping = new PexFileMapping(\"peak\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tpeakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\tpeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\treplicatePeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), peakListFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> PEAK LIST file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> PEAK LIST file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// prideXMLFileMapping\n\t\t\t\t\t\t\t\t// .addRelationship(peakListFileMapping\n\t\t\t\t\t\t\t\t// .getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// MIAPE MS REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSReportFiles = getMiapeMSReportFiles(replicate);\n\t\t\t\t\tif (miapeMSReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSReportFile : miapeMSReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MS report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\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\n\t\t\t\t\t// SEARCH ENGINE OUTPUT FILES\n\t\t\t\t\tfinal List<PexFile> searchEngineOutputFiles = getSearchEngineOutputFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatesearchEngineOutputFilesMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (searchEngineOutputFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : searchEngineOutputFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping searchEngineOutputFileMapping = new PexFileMapping(\"search\",\n\t\t\t\t\t\t\t\t\t\tfileCounter++, peakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\toutputSearchEngineFileMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\treplicatesearchEngineOutputFilesMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\t// PRIDE XML -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\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\n\t\t\t\t\t// MIAPE MSI REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSIReportFiles = getMiapeMSIReportFiles(replicate);\n\t\t\t\t\tif (miapeMSIReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSIReportFile : miapeMSIReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSIReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSIReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSIReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MSI report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// SEARCH ENGINE OUTPUT file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping searchEngineOutputFileMapping : replicatesearchEngineOutputFilesMappings) {\n\t\t\t\t\t\t\t\t\tsearchEngineOutputFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t// Add all to the same list and then sort by id\n\t\t\t\t\ttotalFileList.addAll(outputSearchEngineFileMappings);\n\t\t\t\t\ttotalFileList.addAll(miapeReportFileMappings);\n\t\t\t\t\ttotalFileList.addAll(peakListFileMappings);\n\t\t\t\t\ttotalFileList.addAll(rawFileMappings);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Sort the list of files\n\t\tCollections.sort(totalFileList, new Comparator<PexFileMapping>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(PexFileMapping o1, PexFileMapping o2) {\n\n\t\t\t\treturn Integer.valueOf(o1.getId()).compareTo(Integer.valueOf(o2.getId()));\n\n\t\t\t}\n\n\t\t});\n\t\tfor (final PexFileMapping pexFileMapping : totalFileList) {\n\t\t\tret.add(pexFileMapping.toString());\n\t\t}\n\t\treturn ret;\n\t}",
"public Path outputDir() {\n return dir;\n }",
"public String outputImageManifests() {\n return this.outputImageManifests;\n }",
"public String getPathFileOut() {\r\n\t\treturn pathFileOut;\r\n\t}",
"private void processFromLastRun() {\n for (String configId : dirsFromLastRunToProcess.keySet()) {\r\n File dirToProcess = dirsFromLastRunToProcess.get(configId);\r\n processContentFiles(dirToProcess, configId);\r\n }\r\n \r\n dirsFromLastRunToProcess = new HashMap<String, File>();\r\n }",
"public String getOutputFile()\r\n {\n return \"\";\r\n }",
"public String getOutputLogFilename() {\n return outputLogFilename;\n }",
"public void getFiles()\n\t{\n\t\tif(fileList.size() == 0)\n\t\t{\n\t\t\tSystem.out.println(\"There is no file or file not found\");\n\t\t}\n\t\tfor(int i = 0; i < fileList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(\"File is at: \" + fileList.get(i));\n\t\t}\n\t}",
"public String outputFileDir() {\n return outputFileDir;\n }",
"public File[] getFiles() {\n waitPainted(-1);\n Component list = getFileList();\n if(list instanceof JList) {\n ListModel<?> listModel = ((JList)list).getModel();\n File[] result = new File[listModel.getSize()];\n for (int i = 0; i < listModel.getSize(); i++) {\n result[i] = (File) listModel.getElementAt(i);\n }\n return result;\n } else if(list instanceof JTable){\n TableModel listModel = ((JTable)list).getModel();\n File[] result = new File[listModel.getRowCount()];\n for (int i = 0; i < listModel.getRowCount(); i++) {\n result[i] = (File) listModel.getValueAt(i, 0);\n }\n return result;\n } else\n throw new IllegalStateException(\"Wrong component type\");\n }",
"private static ArrayList<String> getPlayerFileNames() {\n\n ArrayList<String> fileNames = new ArrayList<String>();\n\n File folder = new File(\"otterbein/pig/player\");\n File[] listOfFiles = folder.listFiles();\n\n for (int i = 0; i < listOfFiles.length; i++) {\n if (listOfFiles[i].isFile()) {\n if (listOfFiles[i].getName().endsWith(\".class\")) {\n fileNames.add(listOfFiles[i].getName());\n }\n }\n }\n\n return fileNames;\n }",
"String getFileOutput();",
"public ImmutableList<ActionInput> getOutputs() {\n return outputs;\n }",
"public String execute() {\n String output = \"\";\n String tempOut = \"\";\n FSElement file;\n ArrayList<FSElement> recfiles;\n for (String fileName : dirArray) {\n file = Traverse.accessFS(fileName, root);\n if (file != null) {\n if (file instanceof File) {\n tempOut = getContent((File) file);\n if (!(output.contains(tempOut))) {\n output += tempOut;\n }\n } else if (subdir) {\n recfiles = Traverse.getAllDirs((Directory) file);\n for (FSElement temp : recfiles) {\n if (temp instanceof File) {\n tempOut = getContent((File) temp);\n if (!(output.contains(tempOut))) {\n output += tempOut;\n }\n }\n }\n }\n } else {\n Output.pathIncorrect(fileName);\n }\n }\n if (!(output.equals(\"\"))) {\n output = output.substring(0, output.length() - 2);\n return output;\n } else {\n Output.NoFilesFound();\n return null;\n }\n }",
"public static Set<String> getOutputs() {\n\t\treturn requiredOutputs;\n\t}",
"public String[] getAllOutputExtensions();",
"public int[] filesRemaining();",
"public WorkflowsHistory workflowsHistory() {\n return this.workflowsHistory;\n }",
"@Override\r\n\tpublic String getOutputFile() {\n\t\t\r\n\t\treturn fileOutputPath;\r\n\t}",
"@Test\n public void testGetPreviousDataAccessResultsDir3() {\n System.out.println(\"getPreviousDataAccessResultsDir3\");\n\n final String key = \"prevSaveDataDir\";\n\n preferences.put(key, System.getProperty(\"user.dir\"));\n\n final File expResult = new File(System.getProperty(\"user.dir\"));\n final File result = DataAccessPreferenceUtilities.getDir(key);\n final Path expectedPath = Paths.get(expResult.getAbsolutePath());\n final Path resultantPath = Paths.get(result.getAbsolutePath());\n\n assertEquals(resultantPath.normalize(), expectedPath.normalize());\n\n assertEquals(DataAccessPreferenceUtilities.getPreviousDataAccessResultsDir(), expResult);\n }",
"public List findOutputFiles(List _requestIdList) throws RequestManagerException, PersistenceResourceAccessException;",
"public String[] getStepDates() {\r\n HistoryStep[] steps = currentProcessInstance.getHistorySteps();\r\n String[] dates = new String[steps.length];\r\n Date date = null;\r\n \r\n for (int i = 0; i < steps.length; i++) {\r\n date = steps[i].getActionDate();\r\n dates[i] = DateUtil.getOutputDate(date, getLanguage());\r\n }\r\n \r\n return dates;\r\n }",
"private static void getResults() {\n\t\t//Variables\n\t\tFile directoryOfChunks = new File(\"output\");\n\t\tFile[] files = directoryOfChunks.listFiles();\n\t\tArrayList<String> filesInFolder = new ArrayList<>();\n\t\tArrayList<String> chunkResults = new ArrayList<>();\n\t\tBufferedReader br = null;\n\t\tReadFromFile rf = new ReadFromFile();\n\n\t\t//Get files from output folder\n\t\tif(directoryOfChunks.exists() && directoryOfChunks.isDirectory()){\n\t\t\tdirectoryName = \"output\";\n\t\t\t//Copy file names into arraylist\n\t\t\tfor (File f: files) {\n\t\t\t\t//Save file names into arraylist.\n\t\t\t\tfilesInFolder.add(f.getName());\n\t\t\t}\n\t\t}\n\t\t//if not a file or directory print error message\n\t\telse{\n\t\t\tSystem.out.println(\"No such file/directory: \" + directoryOfChunks);\n\t\t}\n\n\t\t//for loop to open and read each individual file\n\t\tfor (String file : filesInFolder) {\n\t\t\ttry {\n\n\t\t\t\tFileReader reader = new FileReader(directoryName + \"\\\\\" + file);\n\t\t\t\tbr = new BufferedReader(reader);\n\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tchunkResults.addAll(rf.readFromChunk(br));\n\t\t}\n\n\t\t//Call sanitizeAndSplit\n\t\tsanitizeAndSplit(chunkResults);\n\t}",
"public Set<String> getSavedCollections() {\n if (!Files.exists(this.container)) {\n return ImmutableSet.of();\n }\n\n try (Stream<Path> s = Files.list(this.container)) {\n return s.filter(Files::isDirectory)\n .map(p -> p.getFileName().toString())\n .collect(ImmutableCollectors.toSet());\n } catch (IOException e) {\n e.printStackTrace();\n return ImmutableSet.of();\n }\n }",
"@Override\n public String getFilename() {\n if (workflowMeta == null) {\n return null;\n }\n return workflowMeta.getFilename();\n }",
"public String getOutPutFilePath() {\n\t\t// Create the entire filename\n\t\tString fileName=FILE_OUT_PATH+ FILENAME + \"NO_LINE_NUMBERS\" + \".txt\";\t\n\t\treturn(fileName);\n\t}",
"private ArrayList<String> gettemplates(){\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\ttry {\n\t\t String[] cmd = {\n\t\t \t\t\"/bin/sh\",\n\t\t \t\t\"-c\",\n\t\t \t\t\"ls -p | grep -v / | grep -v 'pom.xml' \"\n\t\t \t\t};\n\n\t\t Process p = Runtime.getRuntime().exec(cmd); //Runtime r = Runtime.getRuntime(); Process p = r.exec(cmd);\n\t\t BufferedReader in =\n\t\t new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t String inputLine;\n\t\t while ((inputLine = in.readLine()) != null) {\n\t\t result.add(inputLine);\n\t\t }\n\t\t in.close();\n\n\t\t} catch (IOException e) {\n\t\t System.out.println(e);\n\t\t}\n\t\t\n\t\treturn result;\n\t\t}",
"private File[] getFiles() {\n\n if (mPPTFilePath == null) {\n mPPTFilePath = getArguments().getString(PPTPathString);\n }\n\n String Path = mPPTFilePath;\n File mFile = new File(Path);\n if (mFile.exists() && mFile.isDirectory() && mFile.listFiles()!=null) {\n\n return mFile.listFiles();\n } else {\n Log.d(TAG, \"File==null\");\n return null;\n }\n }",
"public List<FileWithFaultLocations> getFaultyFiles();",
"private static void textFilesOutput() {\n\n // make output directory if it doesn't already exist\n new File(\"output\").mkdirs();\n\n Output airportFlightCounter = new AirportFlightCounter(airports);\n Output flightInventory = new FlightInventory(flights);\n Output flightPassengerCounter = new FlightPassengerCounter(flights);\n Output mileageCounter = new MileageCounter(flights, airports);\n\n try {\n airportFlightCounter.toTextFile();\n flightInventory.toTextFile();\n flightPassengerCounter.toTextFile();\n mileageCounter.toTextFile();\n } catch (FileNotFoundException e) {\n logger.error(\"Could not write to one or more text files - please close any open instances of that file\");\n e.printStackTrace();\n }\n\n logger.info(\"Output to text files completed\");\n }",
"public String getDefaultFileName() {\n return \"output\" + mProcCount + extension;\n }",
"@Override\n protected String[] getRegressionInputFiles() {\n String value = \"regression.arff\";\n String[] ret = new String[this.numberTests];\n for (int i = 0; i < this.numberTests; i++) {\n ret[i] = value;\n }\n return ret;\n }",
"abstract protected String getResultFileName();",
"public static Vector getOutputFilesList(int value) {\n\t// initialise variables\n\tint p, q;\n\tVector ret = new Vector();\n\tParameterTable parameters = new ParameterTable();\n\t// determine if output files have been flagged\n\tq = value;\n\tfor (int i=(parameters.nbOutputFiles()-1); i>=0; i--) {\n\t p = (int) Math.pow(2,i);\n\t if (q>=p) {\n\t\tq -= p;\n\t\tparameters.setOutputFileValue(i,true);\n\t }\n\t}\n\t// add valid output file names to returned list\n\tfor (int i=0; i<parameters.nbOutputFiles(); i++) {\n\t if (parameters.getOutputFileValue(i)) {\n\t\tret.add(parameters.getOutputFileName(i));\n\t }\n\t}\n\treturn ret;\n }",
"private File getOutputMediaFile() {\n\t\tFile picDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n\n\t\t// get the current time\n//\t\tString timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n\t\t\n\t\tif(mBackCameraCount < 5){\n\t\t\treturn new File(picDir.getPath() + File.separator + \"backimage_\" + mBackCameraCount + \".jpg\");\n\t\t}else {\n\t\t\treturn new File(picDir.getPath() + File.separator + \"frontimage_\" + mFrontCameraCount + \".jpg\");\n\t\t}\n\t}",
"public ArrayList<String> storeTimelines(String outputPath) {\n\t\tArrayList<String> timelineNames = new ArrayList<String>();\n\n\t\tfor (Timeline timeline : this.timelines) {\n\t\t\tString timelineName = outputPath + timeline.getName();\n\t\t\ttimelineNames.add(timeline.getName());\n\t\t\ttimeline.store(700, 105, timelineName);\n\t\t}\n\t\treturn timelineNames;\n\t}",
"public List<String> getDownloadableFiles() throws IOException {\n List<String> fileNameList = new ArrayList<>();\n Files.walk(Paths.get(this.sharedFolder)).forEach(ruta -> {\n if (Files.isRegularFile(ruta)) {\n fileNameList.add(ruta.getFileName().toString());\n }\n });\n return fileNameList;\n }",
"public int getOutputFilesValue() {\n\tint value = 0;\n\tfor (int i=0; i<nbOutputFiles(); i++) {\n\t if (getOutputFileValue(i)) {\n\t\tvalue += (int) Math.pow(2,i);\n\t }\n\t}\n\treturn value;\n }",
"public List<File> getFilesToUpload(File workingDirectory, BuildProgressLogger logger) throws IOException {\n\t\tArrayList<File> files = new ArrayList<>();\n\t\tFile zip = Archiver.archive(workingDirectory, this.filesToUpload, this.filesToExclude, \"SourceAndBinariesZip\");\n\t\tfiles.add(zip);\n\n\t\tif (toolOutputFiles != null) {\n\t\t\tString[] toolOutputFileNames = this.toolOutputFiles.split(\",\");\n\t\t\tfor (String fileName : toolOutputFileNames) {\n\t\t\t\tFile file;\n\t\t\t\tfileName = fileName.trim();\n\t\t\t\tPath path = Paths.get(fileName);\n\t\t\t\tfile = path.isAbsolute() ? path.toFile() : new File(workingDirectory, fileName);\n\t\t\t\tif (file.exists()) {\n\t\t\t\t\tfiles.add(file);\n\t\t\t\t} else {\n\t\t\t\t\tlogger.warning(\"File: \" + file.getCanonicalPath() + \" does not exist. Skipping...\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn files;\n\t}",
"public String getOutputLogs() {\n return this.logStorageStream.toString();\n }",
"public String[] getNotIncludedFiles()\n throws TaskException\n {\n slowScan();\n int count = filesNotIncluded.size();\n String[] files = new String[ count ];\n for( int i = 0; i < count; i++ )\n {\n files[ i ] = (String)filesNotIncluded.get( i );\n }\n return files;\n }",
"public File getOutputFile() throws TavernaException, ProcessException{\n if (!wasSuccessful()){\n throw new TavernaException(\"Workflow was not run successfully.\");\n }\n if (baclavaFile.exists()){\n return baclavaFile;\n } else {\n return null;\n }\n }",
"@Override\n public String getFileList() {\n StringBuilder string = null;\n //if (parentFile.isDirectory()) {\n File parentFile = currentDir;\n string = new StringBuilder();\n for (File childFile : parentFile.listFiles()) {\n try {\n //TODO: Verify that Paths.get() is retrieving a valid path relative to the project's location.\n Path file = Paths.get(childFile.getPath());\n\n BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"M\");\n String month = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"d\");\n String dayOfMonth = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"y\");\n String year = dateFormat.format(attr.creationTime().toMillis());\n\n char fileType = childFile.isDirectory() ? 'd' : '-'; //'-' represents a file.\n string.append(String.format(\"%srw-r--r--\", fileType)); //Linux style permissions\n string.append(\"\\t\");\n string.append(\"1\"); //?\n string.append(\" \");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(childFile.length()); //Length\n string.append(\" \");\n string.append(month); //Month\n string.append(\" \");\n string.append(dayOfMonth); //Day\n string.append(\" \");\n string.append(\" \");\n string.append(year); //Year\n string.append(\" \");\n string.append(childFile.getName());\n string.append(System.getProperty(\"line.separator\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //}\n\n String format = \"%S\\t%d %d\\t%d\\t%d %S %d %d %S\";\n //return \"-rw-r--r-- 1 0 0 1073741824000 Feb 19 2016 1000GB.zip\";\n if (!string.equals(null)) {\n return string.toString();\n } else {\n return \"Error when creating file list.\";\n }\n }",
"String getFullWorkfileName();",
"public static String getGeneratorOutputFolder() {\n\t\treturn getOutputFolderName() + \"/\" + PropertiesFile.getInstance().getProperty(\"output_qualifier\");\n\t}",
"public String getFileNameOut() {\r\n\t\treturn fileNameOut;\r\n\t}",
"Map<File, File> getOutputFileMap();",
"List<ChangedFile> getChangedFiles(Project project);",
"private void copyExampleWorkouts() {\n\t\ttry {\n\t\t\tString[] exampleWorkouts = mContext.getAssets().list(\n\t\t\t\t\tIDataProvider.EXAMPLE_WORKOUT_FOLDER);\n\t\t\tfor (String file : exampleWorkouts) {\n\t\t\t\tInputStream in = null;\n\t\t\t\tOutputStream out = null;\n\t\t\t\ttry {\n\t\t\t\t\tin = mContext.getAssets().open(IDataProvider.EXAMPLE_WORKOUT_FOLDER + \"/\" + file);\n\t\t\t\t\tout = new FileOutputStream(mContext.getFilesDir().toString() + \"/\" + file);\n\n\t\t\t\t\t// copy file\n\t\t\t\t\tbyte[] buffer = new byte[1024];\n\t\t\t\t\tint read;\n\t\t\t\t\twhile ((read = in.read(buffer)) != -1) {\n\t\t\t\t\t\tout.write(buffer, 0, read);\n\t\t\t\t\t}\n\n\t\t\t\t\tin.close();\n\t\t\t\t\tin = null;\n\t\t\t\t\tout.flush();\n\t\t\t\t\tout.close();\n\t\t\t\t\tout = null;\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLog.e(\"tag\", \"Failed to copy asset file: \" + file, e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tLog.e(TAG, \"Copying example workouts failed\", e);\n\t\t}\n\t}"
] | [
"0.58453804",
"0.56708753",
"0.56391376",
"0.55980885",
"0.54899526",
"0.54694813",
"0.5464036",
"0.54584306",
"0.5441671",
"0.5435517",
"0.5434388",
"0.53784",
"0.5374604",
"0.5371467",
"0.5351472",
"0.5341045",
"0.53240997",
"0.5319663",
"0.5313654",
"0.5313399",
"0.53126985",
"0.52987117",
"0.52776194",
"0.52651644",
"0.5262185",
"0.5260735",
"0.52558625",
"0.5232554",
"0.52154756",
"0.5187057",
"0.5185823",
"0.5184492",
"0.51445645",
"0.51321983",
"0.51247996",
"0.51046944",
"0.50983036",
"0.5095305",
"0.50949913",
"0.509233",
"0.50824285",
"0.507665",
"0.50764096",
"0.50671625",
"0.50641817",
"0.506078",
"0.5046244",
"0.5030346",
"0.5027677",
"0.5027435",
"0.4998979",
"0.4980372",
"0.49627626",
"0.4960425",
"0.4959773",
"0.49592936",
"0.49526834",
"0.4952447",
"0.49502116",
"0.4941582",
"0.49399334",
"0.49382123",
"0.49285728",
"0.49283904",
"0.49215326",
"0.49208894",
"0.48965895",
"0.48925918",
"0.48894647",
"0.4888259",
"0.48649085",
"0.48608282",
"0.48607254",
"0.48598808",
"0.48487106",
"0.48402125",
"0.48337835",
"0.48337254",
"0.48305058",
"0.48303944",
"0.48292026",
"0.48252702",
"0.48205364",
"0.4819285",
"0.4810187",
"0.48051155",
"0.47914872",
"0.47895533",
"0.47838792",
"0.47834074",
"0.4780865",
"0.47747108",
"0.47639892",
"0.47602564",
"0.47595218",
"0.4735939",
"0.4731626",
"0.4730549",
"0.47286442",
"0.47232568"
] | 0.51504564 | 32 |
To search for discounts. | @Override
public Data3DPlastic search() {
return super.search();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic int discountsearch(FoodshopVO vo) {\n\t\treturn 0;\r\n\t}",
"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}",
"public void setDiscounts(ArrayList<Integer> discounts) {\n\t\tthis.discounts = discounts;\n\t}",
"List<Revenue> search(String query);",
"int[] findDiscountsByStatus(List<Discount> discounts) throws ServiceException;",
"@Test\n public void findAllDishes() {\n\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n criteria.setCategories(categories);\n PageRequest pageable = PageRequest.of(0, 100, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n Page<DishCto> result = this.dishmanagement.findDishCtos(criteria);\n assertThat(result).isNotNull();\n }",
"public DiscountDTO searchItemDiscount(String itemId, int quantity) {\n\t\tDiscountDTO dummyDiscount = new DiscountDTO();\n\t\tfor (DiscountDTO matchingDiscount : discountRegister)\n\t\t\tif ((matchingDiscount.getCategory() != Category.CUSTOMER)\n\t\t\t\t\t&& (matchingDiscount.getItemId().equalsIgnoreCase(itemId))\n\t\t\t\t\t&& (matchingDiscount.getItemQuantity() <= quantity)) {\n\t\t\t\treturn matchingDiscount;\n\t\t\t}\n\t\treturn dummyDiscount;\n\t}",
"List<Discount> findAll() throws ServiceException;",
"private static double getDiscount() {\n System.out.print(\"Fill your coupon code: \");\n String code = sc.nextLine();\n for (String aDiscount : SKERestaurant.discount) {\n System.out.println(aDiscount);\n if (code.equalsIgnoreCase(aDiscount.split(\";\")[0])) {\n return Double.parseDouble(aDiscount.split(\";\")[2].replaceAll(\" \", \"\"));\n }\n }\n System.out.println(\"Coupon not found, Proceed to checkout\");\n return 0;\n }",
"void deleteAllDiscounts();",
"public ArrayList<Integer> getDiscounts() {\n\t\treturn discounts;\n\t}",
"@GetMapping(\"/customer/discount\")\n\tpublic List<Customer> getCustomerByDiscount(){\n\t\treturn customerRepository.getCustomerByDiscount(true);\n\t}",
"public DiscountDTO searchCustomerDiscount(String discountId, boolean customerControl)\n\t\t\tthrows CustomerIdNotFoundException, CustomerDiscountIdNotFoundException {\n\t\tif (customerControl) {\n\t\t\tfor (DiscountDTO matchingDiscount : discountRegister)\n\t\t\t\tif ((matchingDiscount.getCategory() == Category.CUSTOMER)\n\t\t\t\t\t\t&& matchingDiscount.getDiscountId().equals(discountId)) {\n\t\t\t\t\treturn matchingDiscount;\n\t\t\t\t}\n\t\t}\n\t\t\tthrow new CustomerDiscountIdNotFoundException(\"Throws from ExternalInventory class, \"\n\t\t\t\t\t+ \"searchCustomerDiscount metod, discount id: \" + discountId);\n\t}",
"public double applyDiscount(){\n SaleDTO saleDTO = sale.createSaleDTO();\n List<DiscountDTO> itemDiscounts=dc.findDiscounts(saleDTO,new ItemDiscount());\n List<DiscountDTO> saleDiscounts=dc.findDiscounts(saleDTO,new SaleDiscount());\n \n sale.applyItemDiscounts(itemDiscounts);\n sale.applyDiscounts(saleDiscounts);\n return sale.getTotalPrice();\n }",
"public double getDiscount();",
"@Test\n public void filterDishes2() {\n\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n criteria.setCategories(categories);\n criteria.setSearchBy(\"Garlic Paradise Salad\");\n PageRequest pageable = PageRequest.of(0, 100, Sort.by(Direction.DESC, \"id\"));\n criteria.setPageable(pageable);\n Page<DishCto> result = this.dishmanagement.findDishCtos(criteria);\n\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n assertThat(result.getContent().get(0).getDish().getName()).isEqualTo(\"Garlic Paradise Salad\");\n }",
"float getDiscount();",
"double getDiscountRate(int catalog_id, int customer_acc_no);",
"@Test\n public void filterDishes3() {\n\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n criteria.setCategories(categories);\n criteria.setSearchBy(\"Thai green chicken curry\");\n PageRequest pageable = PageRequest.of(0, 100, Sort.by(Direction.DESC, \"id\"));\n criteria.setPageable(pageable);\n Page<DishCto> result = this.dishmanagement.findDishCtos(criteria);\n\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n assertThat(result.getContent().get(0).getDish().getName()).isEqualTo(\"Thai green chicken curry\");\n }",
"@Test\n public void findDishesByCategoryName3() {\n\n String categoryName = \"Vegan\";\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n\n criteria.setCategories(categories);\n criteria.setSearchBy(\"\");\n PageRequest pageable = PageRequest.of(0, 8, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n\n Page<DishCto> result = this.dishmanagement.findDishesByCategory(criteria, categoryName);\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n\n }",
"List<ShipmentInfoPODDTO> search(String query);",
"@Test\n public void findDishesByCategoryName4() {\n\n String categoryName = \"Rice\";\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n\n criteria.setCategories(categories);\n criteria.setSearchBy(\"\");\n PageRequest pageable = PageRequest.of(0, 8, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n\n Page<DishCto> result = this.dishmanagement.findDishesByCategory(criteria, categoryName);\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n\n }",
"@Test\n public void filterDishes1() {\n\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n criteria.setCategories(categories);\n criteria.setSearchBy(\"Thai Spicy Basil Fried Rice\");\n PageRequest pageable = PageRequest.of(0, 100, Sort.by(Direction.DESC, \"id\"));\n criteria.setPageable(pageable);\n Page<DishCto> result = this.dishmanagement.findDishCtos(criteria);\n\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n assertThat(result.getContent().get(0).getDish().getName()).isEqualTo(\"Thai Spicy Basil Fried Rice\");\n }",
"List<Cemetery> search(String query);",
"@Test\n public void findDishesByCategoryName2() {\n\n String categoryName = \"Starter\";\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n\n criteria.setCategories(categories);\n criteria.setSearchBy(\"\");\n PageRequest pageable = PageRequest.of(0, 8, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n\n Page<DishCto> result = this.dishmanagement.findDishesByCategory(criteria, categoryName);\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n\n }",
"@Test\n public void filterDishes4() {\n\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n criteria.setCategories(categories);\n criteria.setSearchBy(\"Thai Peanut Beef\");\n PageRequest pageable = PageRequest.of(0, 100, Sort.by(Direction.DESC, \"id\"));\n criteria.setPageable(pageable);\n Page<DishCto> result = this.dishmanagement.findDishCtos(criteria);\n\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n assertThat(result.getContent().get(0).getDish().getName()).isEqualTo(\"Thai Peanut Beef\");\n }",
"ArrayList<VariableDiscount> getVariableDiscount(int customer_acc_no);",
"@Test\n public void findDishesByCategoryName5() {\n\n String categoryName = \"Curry\";\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n\n criteria.setCategories(categories);\n criteria.setSearchBy(\"\");\n PageRequest pageable = PageRequest.of(0, 8, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n\n Page<DishCto> result = this.dishmanagement.findDishesByCategory(criteria, categoryName);\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n\n }",
"public List<DIS001> findByCriteria(DistrictCriteria criteria);",
"@Override\n\tpublic void get(Discount discount) {\n\t\t\n\t}",
"public List<Budget> search (String search) throws SQLException{\n List<Budget> found = new ArrayList<Budget>();\n DatabaseConnection dbaInfo = new DatabaseConnection();\n Connection conn = null;\n try {\n conn = dbaInfo.getConnection();\n search = search + \"%\";\n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM finance.budget WHERE (bud_category ILIKE ?) OR (bud_description ILIKE ?);\");\n ps.setString(1, search);\n ps.setString(2, search);\n ResultSet rs = ps.executeQuery();\n found = listResults(rs);\n }catch (Exception error) {\n error.printStackTrace();\n conn.rollback();\n }finally {\n conn.close();\n }\n return found;\n }",
"@Test\n public void findDishesByCategoryName7() {\n\n String categoryName = \"Vegetarian\";\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n\n criteria.setCategories(categories);\n criteria.setSearchBy(\"\");\n PageRequest pageable = PageRequest.of(0, 8, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n\n Page<DishCto> result = this.dishmanagement.findDishesByCategory(criteria, categoryName);\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n\n }",
"@Test\n public void findDishesByCategoryName6() {\n\n String categoryName = \"Drinks\";\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n\n criteria.setCategories(categories);\n criteria.setSearchBy(\"\");\n PageRequest pageable = PageRequest.of(0, 8, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n\n Page<DishCto> result = this.dishmanagement.findDishesByCategory(criteria, categoryName);\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n\n }",
"@Test\n public void findDishesByCategoryName1() {\n\n String categoryName = \"Main Dishes\";\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n\n criteria.setCategories(categories);\n criteria.setSearchBy(\"\");\n PageRequest pageable = PageRequest.of(0, 8, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n\n Page<DishCto> result = this.dishmanagement.findDishesByCategory(criteria, categoryName);\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n\n }",
"@Override\r\n\tpublic void makeDiscount() {\n\t\t\r\n\t}",
"public String getDiscount() {\n return discount;\n }",
"List<Disease> getDiseases() throws SearchServiceException;",
"public boolean discount(){\n return false;\n }",
"private void searchDoctor(String comments, String catId) { // status 1 for approve, 2 for reject\n mProgressBar.setVisibility(View.VISIBLE);\n VolleyInvokeWebService volleyClient = new VolleyInvokeWebService(this, VolleyInvokeWebService.JSON_TYPE_REQUEST, this, Request.Method.POST);\n volleyClient.hitWithOutTokenService(Constants.DOCTOR_SEARCH, getSearchRequest(comments, catId), DOCTOR_SEARCH_TAG);\n }",
"@Test\n public void filterDishes5() {\n\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n criteria.setCategories(categories);\n criteria.setSearchBy(\"Thai Thighs Fish/Prawns\");\n PageRequest pageable = PageRequest.of(0, 100, Sort.by(Direction.DESC, \"id\"));\n criteria.setPageable(pageable);\n Page<DishCto> result = this.dishmanagement.findDishCtos(criteria);\n\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n assertThat(result.getContent().get(0).getDish().getName()).isEqualTo(\"Thai Thighs Fish/Prawns\");\n }",
"List<Codebadge> search(String query);",
"public DiscountRegister() {\n\t\tthis.connection = Connection.ONLINE;\n\t\tthis.serverTyp = ServerTyp.DISCOUNT;\n\t\tDiscountDTO typ1 = new DiscountDTO(Category.ITEM, \"104\", 10, \"Campaing product\");\n\t\tDiscountDTO typ2 = new DiscountDTO(Category.CUSTOMER, \"456\", 12, \"12% discount \");\n\t\tDiscountDTO typ3 = new DiscountDTO(Category.CUSTOMER, \"111\", 25, \"Loyality Discount\");\n\t\tDiscountDTO typ4 = new DiscountDTO(Category.CUSTOMER, \"123\", 1, \"New member discount\");\n\t\tDiscountDTO typ5 = new DiscountDTO(Category.QUANTITY, \"101\", 3, 11, \"Buy 3 pay for 2\");\n\t\tdiscountRegister.add(typ1);\n\t\tdiscountRegister.add(typ2);\n\t\tdiscountRegister.add(typ3);\n\t\tdiscountRegister.add(typ4);\n\t\tdiscountRegister.add(typ5);\n\t}",
"private void search(SearchRequest request) {\r\n\t\tif(request == null)return;\r\n\t\tList<Record> results = handler.search(request);\r\n\t\tlist.show(results);\r\n\t\tpanInfo.setNumRec(results.size());\r\n\t\tpanInfo.setTotalAmt(Record.sumBalance(results));\r\n\t}",
"public abstract double getDiscount(int qty, double price);",
"public void discountPrices()\n {\n System.out.print( \"Enter amount of purchases: \" );\n int cost = scan.nextInt();\n int discount = cost - cost / 10;\n if ( cost > 1000 )\n {\n System.out.print( \"Discounted price: \" + discount );\n }\n else\n {\n System.out.print( \"Discounted price: \" + cost );\n }\n\n }",
"private void search(String product) {\n // ..\n }",
"public static double getDiscount(Coupon[] c, String target) {\t//method to find how much discount is being given the code, using linear search. \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Inputs are the coupon object array and the string for the target code\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tif (c[i].code.equals(target)) {\n\t\t\t\treturn (1 - ((c[i].discount) / 100));\n\t\t\t}\n\t\t}\n\n\t\treturn 1;\n\n\t}",
"@Test\n public void filterDishes7() {\n\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n criteria.setCategories(categories);\n criteria.setSearchBy(\"Tea\");\n PageRequest pageable = PageRequest.of(0, 100, Sort.by(Direction.DESC, \"id\"));\n criteria.setPageable(pageable);\n Page<DishCto> result = this.dishmanagement.findDishCtos(criteria);\n\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n assertThat(result.getContent().get(0).getDish().getName()).isEqualTo(\"Tea\");\n }",
"List<Corretor> search(String query);",
"public ArrayList<Donation> search(ArrayList<Donation> donation, String search) {\n if (search == null || search.length() == 0) {\n // Log.i(\"Search\", \"search is empty or null\");\n if (donation.size() == 0) { // say \"no items matching search\"\n noItems.setVisibility(TextView.VISIBLE);\n } else {\n noItems.setVisibility(TextView.INVISIBLE);\n }\n return donation;\n } else {\n ArrayList<Donation> sorted = new ArrayList<>();\n for (int i = 0; i < donation.size(); i++) {\n }\n for (int i = 0; i < donation.size(); i++) {\n if (donation.get(i).getName().toLowerCase().contains(search)) {\n sorted.add(donation.get(i));\n }\n }\n if (sorted.size() == 0) { // say \"no items matching search\"\n noItems.setVisibility(TextView.VISIBLE);\n } else {\n noItems.setVisibility(TextView.INVISIBLE);\n }\n return sorted;\n }\n }",
"@Test\n public void filterDishes6() {\n\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n criteria.setCategories(categories);\n criteria.setSearchBy(\"Beer\");\n PageRequest pageable = PageRequest.of(0, 100, Sort.by(Direction.DESC, \"id\"));\n criteria.setPageable(pageable);\n Page<DishCto> result = this.dishmanagement.findDishCtos(criteria);\n\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n assertThat(result.getContent().get(0).getDish().getName()).isEqualTo(\"Beer\");\n }",
"public String getDiscounts(){\r\n\t return \"Fines: \" + fines;\r\n }",
"@Override\n\tpublic double calcDiscount() {\n\t\treturn discount;\n\t}",
"List<Coupon> findByTitleContaining(String searchWord);",
"List<Card> search(String searchString) throws PersistenceCoreException;",
"@Override\r\n\tpublic List<NoticeVO> listSearch(SearchCriteria cri) {\n\t\treturn sqlSession.selectList(namespace + \".listSearch\", cri);\r\n\t}",
"List<ProductPurchaseItem> getAllSupplierProductPurchaseItems(long suppId, String searchStr);",
"void setDiscount(float sconto);",
"@Override\n\tpublic double getDiscount() {\n\t\treturn 0.0;\n\t}",
"private void checkDiscountAvailability() {\n if (discountList != null && discountList.size() > 0) {\n noDiscountText.setVisibility(View.GONE);\n discountRecyclerView.setVisibility(View.VISIBLE);\n } else {\n noDiscountText.setVisibility(View.VISIBLE);\n discountRecyclerView.setVisibility(View.GONE);\n }\n }",
"public void searchTransactions(final ReportsTestData testData) {\n selectDisbursementReportParameters(testData);\n search();\n }",
"List<Card> search(String searchString, long userId) throws PersistenceCoreException;",
"public void setDiscount (java.math.BigDecimal discount) {\n\t\tthis.discount = discount;\n\t}",
"int countByExample(CfgSearchRecommendExample example);",
"BigDecimal getDiscount();",
"@Override\r\n\tpublic int locsearch(FoodshopVO vo) {\n\t\treturn 0;\r\n\t}",
"public GIPIQuoteItemDiscountDAOImpl() {\n\t\tsuper(GIPIQuoteItemDiscount.class);\t\t\n\t}",
"public void getDiscount(){\n System.out.println(\"10% off, final price: \" + price * 0.9);\n }",
"long countByFilter(String keySearch, String brands, Double priceFrom, Double priceTo);",
"List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);",
"public void search() {\r\n \t\r\n }",
"@Override\n\tpublic double getDiscount(double price) {\n\t\treturn 0;\n\t}",
"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 void setDiscount(String discount) {\n this.discount = discount == null ? null : discount.trim();\n }",
"public DiscountProduct(String productCode, String description, int unitPrice, double discountRate) \n\t{\n\t super(productCode, description, unitPrice);\n\t this.discountRate = discountRate;\n\t}",
"public Double getTotalDiscount(java.sql.Timestamp transDate, java.sql.Timestamp eodDate, int storeCode, int... discountType) {\r\n\t\tString query = \"SELECT o.OR_NO, i.PROD_CODE, i.SELL_PRICE, i.QUANTITY from invoice_item i, invoice o, products_lu p \" +\r\n\t\t\"WHERE p.PROD_CODE = i.PROD_CODE\" +\r\n\t\t\" AND o.TRANS_DT >= ? AND o.TRANS_DT <= ? \" +\r\n\t\t\" AND i.OR_NO = o.OR_NO \" +\r\n\t\t\" AND o.STORE_CODE = i.STORE_CODE \" +\r\n\t\t\" AND o.STORE_CODE = ?\" +\r\n\t\t\" AND NOT EXISTS (SELECT 1 FROM INVOICE_SET s WHERE s.OR_NO = o.OR_NO) \";\r\n//\t\t\r\n\t\tif (discountType.length > 0) {\r\n\t\t\tquery += \" AND i.DISC_CODE = \" + discountType[0];\r\n\t\t}\r\n//\t\tString query = \"SELECT sum(d.DISC_RATE/100 *i.sell_price*i.quantity) FROM discount_lu d, invoice_item i, invoice o, products_lu p \" +\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\"WHERE p.PROD_CODE = i.PROD_CODE\" +\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\" AND d.DISC_NO = i.DISC_CODE\" +\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\" AND o.TRANS_DT >= ? AND o.TRANS_DT <= ? \" +\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\" AND i.OR_NO = o.OR_NO \" +\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\" AND o.STORE_CODE = ?\";\r\n\t\t\r\n\t\tPreparedStatement pquery;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\tpquery = Main.getDBManager().getConnection().prepareStatement(query);\r\n\t\t\t\r\n\t\t\tpquery.setTimestamp(1, transDate);\r\n\t\t\tpquery.setTimestamp(2, eodDate);\r\n\t\t\tpquery.setInt(3, storeCode);\r\n\t\t\t\r\n\t\t\trs = pquery.executeQuery();\r\n\t\t\t\r\n\t\t\tDouble amount = 0.0d;\r\n\t\t\t\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tamount += (InvoiceItemService.getInstance().getDiscountAmount(rs.getLong(\"OR_NO\"),rs.getString(\"PROD_CODE\"))) * rs.getDouble(\"QUANTITY\");\r\n\t\t\t}\r\n\t\t\r\n\t\t\tlogger.debug(\"Total Discount: \"+amount);\r\n\t\t\treturn amount;\r\n\t\t} catch (SQLException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public List<DIS001> findAll_DIS001();",
"@Override\n\tpublic float getDiscount() {\n\t\treturn 0.0f;\n\t}",
"Optional<Discount> findById(Long id) throws ServiceException;",
"public int getDiscount() {\n\t\treturn discount;\n\t}",
"public static String discountList(List<DiscountDTO> registredDiscounts) {\n\t\tString discountList = \"* No discount to apply \\t * \\n\";\n\t\tif (!(registredDiscounts.size() < 1)) {\n\t\t\tdiscountList = \"* Discounts:\\t\\t\\t *\\n\";\n\t\t\tdiscountList += \"-----------------------------------\\n\";\n\t\t\tdiscountList += \"- categori\" + \" quantity\" + \"\\t amount -\\n\";\n\t\t\tfor (DiscountDTO registred : registredDiscounts) {\n\t\t\t\tif (registred.getCategory() == Category.CUSTOMER) {\n\t\t\t\t\tdiscountList += \"- \" + registred.getCategory() + \"\\t\" + registred.getItemQuantity() + \"\\t \"\n\t\t\t\t\t\t\t+ \"-\" + (new DecimalFormat(\"#%,##0.00\").format(registred.getDiscountPercent())) + \" -\"\n\t\t\t\t\t\t\t+ \"\\n\";\n\t\t\t\t\tdiscountList += \"- Info:\\t \" + registred.getDescription() + \" -\" + \"\\n\";\n\t\t\t\t} else if (registred.getCategory() == Category.QUANTITY) {\n\t\t\t\t\tdiscountList += \"- \" + registred.getCategory() + \"\\t\" + registred.getItemQuantity() + \"\\t \"\n\t\t\t\t\t\t\t+ (new DecimalFormat(\"# $,##0.00\").format(registred.getDiscountAmount())) + \" -\" + \"\\n\";\n\t\t\t\t\tdiscountList += \"- Info:\\t\\t \" + registred.getDescription() + \" -\" + \"\\n\";\n\t\t\t\t} else {\n\t\t\t\t\tdiscountList += \"- \" + registred.getCategory() + \"\\t\\t\" + registred.getItemQuantity() + \"\\t \"\n\t\t\t\t\t\t\t+ (new DecimalFormat(\"# $,##0.00\").format(registred.getDiscountAmount())) + \" -\" + \"\\n\";\n\t\t\t\t\tdiscountList += \"- Info:\\t\\t \" + registred.getDescription() + \" -\" + \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tdiscountList += \"-----------------------------------\";\n\t\treturn discountList;\n\t}",
"SearchResultCompany search(String keywords);",
"@Override\r\n\tpublic List<CatelistDto> Getsearch(SearchDto dto) throws Exception {\n\t\treturn searchdao.Getsearch(dto);\r\n\t}",
"Money getDiscountValue();",
"@Override\r\n\tpublic Set<Article> search(String keyworkds) {\n\t\treturn null;\r\n\t}",
"public abstract double getDepositDiscount();",
"@Override\r\n\t\t\tpublic List<ScoredDocument> search(Query query) {\n\t\t\t\treturn null;\r\n\t\t\t}",
"private Search() {}",
"private Double getDeductibles(int orNo, int storeCode) {\n\t\treturn getReturnedItemsAmount(orNo, storeCode) + getGiftCheckAmount(orNo, storeCode) + getPartialTransactionBalance(orNo, storeCode);\r\n\t}",
"public Inventory inventorySearch (TheGroceryStore g, String searchKey);",
"List<DataTerm> search(String searchTerm);",
"int searchYardList() throws DAOException;",
"public DiscountTypes getDiscountTypes() {\n return discountTypes;\n }",
"public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n System.out.println(\"\\t\" + new Date().toString() + \" \" + db + \" Search for rest queries cancelled, because failed for query \" + i + \" : \" + this.queries.get(i));\n break;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(EntrezSearcher.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"Search getSearch();",
"@ActionTrigger(action=\"KEY-ENTQRY\", function=KeyFunction.SEARCH)\n\t\tpublic void spriden_Search()\n\t\t{\n\t\t\t\n\t\t\t\texecuteAction(\"QUERY\");\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t}",
"public void search() {\n }",
"public double getDiscount()\n\t{\n\t\tif(customerPurchase >= 2000)\n\t\t\treturn 0.1;\n\t\telse if(customerPurchase >= 1500)\n\t\t\treturn 0.07;\n\t\telse if(customerPurchase >= 1000)\n\t\t\treturn 0.06;\n\t\telse if(customerPurchase >= 500)\n\t\t\treturn 0.05;\n\t\telse\n\t\t\treturn 0;\n\t}",
"private void searchLeisure(String searchQuery) {\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"Leisure\");\n //get all data from this ref\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n postList.clear();\n for (DataSnapshot ds : dataSnapshot.getChildren()) {\n LeisureModel leisureModel = ds.getValue(LeisureModel.class);\n if (leisureModel.getName().toLowerCase().contains(searchQuery.toLowerCase())) {\n postList.add(leisureModel);\n }\n //adapter\n postAdapter = new LeisureAdapter(SearchAllLeisure.this, postList);\n //set adapter to recyclerview\n rvLeisureCategory.setAdapter(postAdapter);\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n //in case of error\n Toast.makeText(SearchAllLeisure.this, \"\" + databaseError.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }",
"@In String search();"
] | [
"0.66132224",
"0.6265572",
"0.5821292",
"0.5815352",
"0.5803099",
"0.57920444",
"0.5759691",
"0.57058287",
"0.57038885",
"0.568456",
"0.56751657",
"0.565578",
"0.5639961",
"0.56272763",
"0.5626661",
"0.562655",
"0.5597322",
"0.5574756",
"0.55365324",
"0.5525821",
"0.551503",
"0.55014265",
"0.5488543",
"0.5479073",
"0.54781336",
"0.5463648",
"0.54634064",
"0.54569787",
"0.54519767",
"0.54484767",
"0.5439271",
"0.5429339",
"0.5428457",
"0.53952646",
"0.5394618",
"0.53817177",
"0.53556293",
"0.535135",
"0.53465474",
"0.53362054",
"0.5329573",
"0.5318958",
"0.5308157",
"0.53019065",
"0.52723414",
"0.52664346",
"0.5260381",
"0.5227318",
"0.5223877",
"0.5223863",
"0.5214419",
"0.5212085",
"0.5202071",
"0.5199271",
"0.5198942",
"0.51984847",
"0.5187949",
"0.5183069",
"0.51784813",
"0.5161168",
"0.51454186",
"0.51399076",
"0.5128017",
"0.51255655",
"0.5119237",
"0.5112582",
"0.51122487",
"0.5106316",
"0.51001984",
"0.509327",
"0.5088315",
"0.5070786",
"0.5069646",
"0.50638634",
"0.50577027",
"0.50554883",
"0.5049867",
"0.5048959",
"0.50468445",
"0.5042201",
"0.5027307",
"0.50209343",
"0.50193864",
"0.501798",
"0.5012423",
"0.5010498",
"0.50052947",
"0.49953675",
"0.4992297",
"0.49779642",
"0.49762437",
"0.49751794",
"0.4972078",
"0.49597034",
"0.49590057",
"0.49439403",
"0.4939241",
"0.49310127",
"0.49273288",
"0.49187335"
] | 0.5665575 | 11 |
TODO Autogenerated method stub | @Override
public int compare(WritableComparable a, WritableComparable b) {
ClassInfoBean classInfoBean1 = (ClassInfoBean) a;
ClassInfoBean classInfoBean2 = (ClassInfoBean) b;
// if (classInfoBean1.getClassName().equals(classInfoBean2.getClassName())) {
// return 0;
// }
// return 1;
return classInfoBean1.getClassName().compareTo(classInfoBean2.getClassName());
} | {
"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: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof TblEmpleado)) {
return false;
}
TblEmpleado other = (TblEmpleado) object;
if ((this.idempleado == null && other.idempleado != null) || (this.idempleado != null && !this.idempleado.equals(other.idempleado))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"public int getId(){ return id; }",
"public int getId() {return id;}",
"public int getId() {return Id;}",
"public int getId(){return id;}",
"public void setId(long id) {\n id_ = id;\n }",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"public Integer getId(){return id;}",
"public int id() {return id;}",
"public long getId(){return this.id;}",
"public int getId(){\r\n return this.id;\r\n }",
"@Override public String getID() { return id;}",
"public Long id() { return this.id; }",
"public Integer getId() { return id; }",
"@Override\n\tpublic Integer getId() {\n return id;\n }",
"@Override\n public Long getId () {\n return id;\n }",
"@Override\n public long getId() {\n return id;\n }",
"public Long getId() {return id;}",
"public Long getId() {return id;}",
"public String getId(){return id;}",
"@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}",
"public Integer getId() { return this.id; }",
"@Override\r\n public int getId() {\n return id;\r\n }",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public int getId() {\n return id;\n }",
"public long getId() { return _id; }",
"public int getId() {\n/* 35 */ return this.id;\n/* */ }",
"public long getId() { return id; }",
"public long getId() { return id; }",
"public void setId(Long id) \n {\n this.id = id;\n }",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"public void setId(String id) {\n this.id = id;\n }",
"@Override\n\tpublic void setId(Long id) {\n\t}",
"public Long getId() {\n return id;\n }",
"public long getId() { return this.id; }",
"public int getId()\n {\n return id;\n }",
"public void setId(int id){\r\n this.id = id;\r\n }",
"@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}",
"protected abstract String getId();",
"@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}",
"public int getID() {return id;}",
"public int getID() {return id;}",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public int getId ()\r\n {\r\n return id;\r\n }",
"@Override\n public int getField(int id) {\n return 0;\n }",
"public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }",
"public int getId(){\r\n return localId;\r\n }",
"void setId(int id) {\n this.id = id;\n }",
"@Override\n public Integer getId() {\n return id;\n }",
"@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"@Override\n public int getId() {\n return id;\n }",
"@Override\n public int getId() {\n return id;\n }",
"public void setId(int id)\n {\n this.id=id;\n }",
"@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }",
"@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}",
"public int getId()\r\n {\r\n return id;\r\n }",
"public void setId(Long id){\n this.id = id;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"final protected int getId() {\n\t\treturn id;\n\t}",
"public abstract Long getId();",
"public void setId(Long id) \r\n {\r\n this.id = id;\r\n }",
"@Override\n public long getId() {\n return this.id;\n }",
"public String getId(){ return id.get(); }",
"@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }",
"public Long getId() \n {\n return id;\n }",
"@Override\n\tpublic void setId(int id) {\n\n\t}",
"public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }",
"@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}",
"public int getID(){\n return id;\n }",
"public int getId()\n {\n return id;\n }",
"public String getID(){\n return Id;\n }"
] | [
"0.6896886",
"0.6838461",
"0.67056817",
"0.66419715",
"0.66419715",
"0.6592331",
"0.6579151",
"0.6579151",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.65624106",
"0.65624106",
"0.65441847",
"0.65243006",
"0.65154546",
"0.6487427",
"0.6477893",
"0.6426692",
"0.6418966",
"0.6416817",
"0.6401561",
"0.63664836",
"0.63549376",
"0.63515353",
"0.6347672",
"0.6324549",
"0.6319196",
"0.6301484",
"0.62935394",
"0.62935394",
"0.62832105",
"0.62710917",
"0.62661785",
"0.6265274",
"0.6261401",
"0.6259253",
"0.62559646",
"0.6251244",
"0.6247282",
"0.6247282",
"0.6245526",
"0.6238957",
"0.6238957",
"0.6232451",
"0.62247443",
"0.6220427",
"0.6219304",
"0.6211484",
"0.620991",
"0.62023336",
"0.62010616",
"0.6192621",
"0.61895776",
"0.61895776",
"0.61893976",
"0.61893976",
"0.61893976",
"0.6184292",
"0.618331",
"0.61754644",
"0.6173718",
"0.6168409",
"0.6166131",
"0.6161708",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.61556244",
"0.61556244",
"0.61430943",
"0.61340135",
"0.6128617",
"0.6127841",
"0.61065215",
"0.61043483",
"0.61043483",
"0.6103568",
"0.61028486",
"0.61017346",
"0.6101399",
"0.6098963",
"0.6094214",
"0.6094",
"0.6093529",
"0.6093529",
"0.6091623",
"0.60896",
"0.6076881",
"0.60723215",
"0.6071593",
"0.6070138",
"0.6069936",
"0.6069529"
] | 0.0 | -1 |
Triangulate the glyph, but first save the original outline. | public void triangulate() {
// Save the outline and calculate normals
outline = new Vector<PlanarEdge>();
for (PlanarEdge e : subdivision.getEdges()) {
if (e.isRealEdge()) {
outline.add(e);
}
}
// Calculate outline normals
outline_normals = new Vector3f[outline.size()];
for (PlanarEdge e : outline) {
TriangulationVertex vert = (TriangulationVertex) e.getDestination();
// Normal 1
Vector3f normal1 = new Vector3f(vert.getOutGoingEdge()
.getDestination().getPoint())
.subtractLocal(vert.getPoint()).normalizeLocal();
// Vector3f normal1 = new
// Vector3f(vert.getOutGoingEdge().getDestination().getPoint()).subtractLocal(vert.getPoint());
normal1.z = -normal1.x;
normal1.x = normal1.y;
normal1.y = normal1.z;
normal1.z = 0;
// Normal 2
Vector3f normal2 = new Vector3f(vert.getPoint()).subtractLocal(
vert.getInGoingEdge().getOrigin().getPoint())
.normalizeLocal();
// Vector3f normal2 = new
// Vector3f(vert.getPoint()).subtractLocal(vert.getInGoingEdge().getOrigin().getPoint());
normal2.z = -normal2.x;
normal2.x = normal2.y;
normal2.y = normal2.z;
normal2.z = 0;
normal1.addLocal(normal2).normalizeLocal();
outline_normals[vert.getIndex()] = normal1;
}
// Calculate the triangulation of the surface.
surface = subdivision.triangulate();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void undo() {\n node.toggleBoundaryMarker();\n }",
"private void backupStyle() {\n if(!this.backedup) {\n this.backedup = true;\n this.lastFillColor = this.currentFillColor;\n this.lastFillOpacity = this.fillOpacity.getValue();\n this.lastStrokeColor = this.currentStrokeColor;\n this.lastStrokeOpacity = this.strokeOpacity.getValue();\n this.lastStrokeSize = this.currentStrokeSize.getValue();\n }\n }",
"public void undo() {\n firePropertyChange(\"undo\", null, \"enable\");\n final Drawing removeMe = myDrawingArray.get(myDrawingArray.size() - 1);\n myDrawingArray.remove(removeMe);\n myUndoStack.push(removeMe);\n myCurrentShape = new Drawing(new Line2D.Double(), Color.WHITE, 0);\n if (myDrawingArray.isEmpty()) {\n firePropertyChange(\"stack\", null, EMPTY_STRING);\n }\n repaint();\n }",
"void Undo() {\n if (shapes.size() > 0) {\n shapes.remove(shapes.size() - 1);\n lineColours.remove(lineColours.size() - 1);\n currentPenColour = lineColours.get(lineColours.size() - 1);\n fillColours.remove(fillColours.size() - 1);\n currentFillColour = fillColours.get(fillColours.size() - 1);\n writeFile.undoWrite();\n repaint();\n }\n }",
"public void SaveUndo(){\r\n if(!IsFalling() && !IsDisappearing()) {\r\n char[][] x = new char[map.length][map[0].length];\r\n for (int i = 0; i < map.length; i++)\r\n for (int j = 0; j < map[i].length; j++)\r\n x[i][j] = this.map[i][j];\r\n UndoMap.add(x);\r\n }\r\n }",
"private void restoreStyle() {\n if(this.backedup) {\n this.backedup = false;\n\n this.currentFillColor = this.lastFillColor;\n DOM.setStyleAttribute(fill.getElement(), \"backgroundColor\",currentFillColor.toCss(false));\n this.fillOpacity.setValue(this.lastFillOpacity);\n this.currentFillColor.setAlpha(this.fillOpacity.getValue());\n\n this.currentStrokeColor = this.lastStrokeColor;\n DOM.setStyleAttribute(stroke.getElement(), \"backgroundColor\",currentStrokeColor.toCss(false));\n this.strokeOpacity.setValue(this.lastStrokeOpacity);\n this.currentStrokeColor.setAlpha(this.strokeOpacity.getValue());\n\n this.currentStrokeSize.setValue(this.lastStrokeSize);\n }\n }",
"public void undo(){\n if(!isFreeDraw) { //in waypoint mode delete the last point\n int size = mMapInterface.getPathFrame().size();\n if (size >= 1) {\n isPathReady=false;\n mMapInterface.getPathFrame().remove(size - 1);\n pointsCounter--;\n googleMap.clear();\n drawLine();\n }\n }\n else{ //in continu mode delete all path\n deletePath();\n drawFree();\n }\n }",
"public void intakeGlyph(){\n ILM.setPower(1);\n IRM.setPower(1);\n }",
"private void undoLastPoint() {\n \t\tif ( this.markers.isEmpty() ) {\n \t\t\treturn;\n \t\t}\n \n \t\tthis.markers.remove( this.markers.size() - 1 ).remove();\n \t\tthis.commitPolygon();\n \n \t\tif ( this.markers.size() > 1 ) {\n \t\t\tthis.moveCameraToPolygon( true );\n \t\t}\n \n \t\tthis.disableIfDissatisfied();\n \t}",
"@Override\n public void undo()\n {\n PointsBinding.setScaling(false);\n property.setValue(orig_points);\n property.getWidget().setPropertyValue(propX, orig_x);\n property.getWidget().setPropertyValue(propY, orig_y);\n property.getWidget().setPropertyValue(propWidth, orig_width);\n property.getWidget().setPropertyValue(propHeight, orig_height);\n PointsBinding.setScaling(true);\n }",
"public void undoAll() {\n firePropertyChange(\"array\", null, EMPTY_STRING);\n myDrawingArray.clear();\n myUndoStack.clear();\n myCurrentShape = new Drawing(new Line2D.Double(), Color.WHITE, 0);\n repaint();\n }",
"public void changePolyOriginal() {\n this.changePoly(this.aorg, this.borg, this.corg, this.dorg, this.yorg);\n }",
"public boolean undo() {\n if(undoStack.peek()!=null) {\n DrawingChange change = undoStack.pop();\n drawingArray[change.x][change.y] = change.prevChar;\n redoStack.push(change);\n return true;\n }\n return false;\n }",
"public void undo() {\n\t\tif (doily.lines.size() > 0) {\n\t\t\tLine line = getLastLine();\n\t\t\tdoily.lines.remove(line);\n\t\t\tredoStack.push(line);\n\t\t\tredraw();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Undo Failed - Nothing to undo\", \n\t\t\t\t\t\"Undo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}",
"public void revertFont()\r\n\t{\r\n\t\tif (savedFont != null)\r\n\t\t{\r\n\t\t\tg.setFont(savedFont);\r\n\t\t}\r\n\t}",
"public void undo() {\n\t\tif(committed){\n\t\t\treturn;\n\t\t}\n\t\tboolean [][] tempGrid = grid;\n\t\tgrid = backupGrid;\n\t\tbackupGrid = tempGrid;\n\n\t\tint [] tempWidths = widths;\n\t\twidths = backupWidths;\n\t\tbackupWidths = tempWidths;\n\n\t\tint [] tempHeights = heights;\n\t\theights = backupHeights;\n\t\tbackupHeights = tempHeights;\n\n\t\tint tempMaxColumnHeight = maxColumnHeight;\n\t\tmaxColumnHeight = backupMaxColumnHeight;\n\t\tbackupMaxColumnHeight = tempMaxColumnHeight;\n\n\t\tcommit();\n\t}",
"void undo() {\n Move rec = _history.get(_history.size() - 1);\n int to = rec.fromIndex();\n _directions.get(to).remove(_directions.get(to).size() - 1);\n if (rec.isJump()) {\n Move middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), null);\n rec = rec.jumpTail();\n while (rec != null) {\n middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), middle);\n rec = rec.jumpTail();\n }\n while (middle != null) {\n set(middle.fromIndex(), EMPTY);\n set(middle.toIndex(), _whoseMove.opposite());\n set(middle.jumpedCol(), middle.jumpedRow(), _whoseMove);\n middle = middle.jumpTail();\n }\n\n } else {\n int from = rec.toIndex();\n set(to, _whoseMove.opposite());\n set(from, EMPTY);\n\n _directions.get(from).remove(_directions.get(from).size() - 1);\n }\n\n _whoseMove = _whoseMove.opposite();\n _history.remove(_history.size() - 1);\n setChanged();\n notifyObservers();\n }",
"public final native void clearStroke() /*-{\n\t\tthis.setStroke(null);\n\t}-*/;",
"@Override\r\n public void undo() {\r\n if (newSource != null) {\r\n edge.setSource(oldSource);\r\n } else if (newTarget != null) {\r\n edge.setTarget(oldTarget);\r\n }\r\n }",
"public void doUndo()\n {\n // Get the last thing we did and reverse it, then remove it from the undoable stuff\n // This process is similar to 'Both Tool' being clicked on a hex with old values\n LinkedList\t\t\tlastChange = (LinkedList) undoableChanges.getLast();\n \n if (lastChange != null)\n {\n ListIterator\t\tit = lastChange.listIterator(0);\n ChangedMUXHex\t\tchangedHex;\n \n while (it.hasNext())\n {\n changedHex = (ChangedMUXHex) it.next();\n // We'll assume the hex is valid since it's in this list\n map.setHex(changedHex.getLocation(), changedHex.getPrevTerrain(), changedHex.getPrevElevation());\n mapComponent.repaint(mapComponent.rectForHex(changedHex.getLocation()));\n }\n \n // Repaint the hexes\n //mapComponent.repaint();\n \n // Remove what we just undid from our undoable list\n undoableChanges.removeLast();\n }\n }",
"@Override\n public void undo() {\n Memento temp = createMemento();\n memento.restore();\n memento = temp;\n }",
"public void redo() {\n firePropertyChange(ARRAY_STRING, null, NOT_EMPTY_STRING);\n myDrawingArray.add(myUndoStack.pop());\n if (myUndoStack.isEmpty()) {\n firePropertyChange(\"emptystack\", null, EMPTY_STRING);\n }\n repaint();\n }",
"protected abstract void internalUndo();",
"public void gripGlyph(){\n grabberRearLeft.setPosition(glyphClosePosBL);\n grabberFrontLeft.setPosition(glyphClosePosFL);\n grabberFrontRight.setPosition(glyphClosePosFR);\n grabberRearRight.setPosition(glyphClosePosBR);\n isGripped = true;\n }",
"@Override\n\tpublic void undo() {\n\t\tlight.off();\n\t}",
"public String undo() {\n/* 145 */ return undo(0, false);\n/* */ }",
"void undo();",
"public void traspose() {\n for (int row = 0; row < this.numberOfRows(); row++) {\n for (int col = row; col < this.numberOfCols(); col++) {\n double value = this.get(row, col);\n this.set(row, col, this.get(col, row));\n this.set(col, row, value);\n }\n }\n }",
"public void modelUntangle()\n {\n\tif (manim==null) return;\n\n\tmodelStop();\n\tmanim.rewind();\n\tmanim.generations().unTangle();\n\tmanim.scale(width,height);\n\tclearToBack();\n\tmodelFlush();\n }",
"public void OkActionPerformed(java.awt.event.ActionEvent evt) {\n // Add your handling code here:\n\n letterTool.currentFont = families.getSelectedIndex();\n letterTool.currentSize = size.getSelectedIndex();\n letterTool.boldness = bold.isSelected();\n letterTool.italicness = italics.isSelected(); /*FAULT:: letterTool.italicness = !italics.isSelected(); */\n letterTool.underlineness = underline.isSelected();\n\n\n\n BufferedImage im = ((Paint) this.getParent()).center.getBufferedImage();\n Graphics2D g2d = im.createGraphics();\n\n g2d.setPaint(((Paint) this.getParent()).center.left_color);\n int style = Font.PLAIN;\n if (bold.isSelected()) {\n style += Font.BOLD;\n }\n if (italics.isSelected()) {\n style += Font.ITALIC;\n }\n Font newFont = new Font(myFont.font, style, myFont.size);\n g2d.setFont(newFont);\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n String myText = text.getText();\n\n g2d.drawString(myText, x, y);\n ((Paint) this.getParent()).center.setBufferedImage(im);\n if (underline.isSelected()) {\n /*AttributedString newString = new AttributedString(myText);\n newString.addAttribute(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_ON, 0, myText.length());\n g2d.draw*/\n im = ((Paint) this.getParent()).center.getBufferedImage();\n g2d = im.createGraphics();\n g2d.setPaint(((Paint) this.getParent()).center.left_color);\n //STUFF I JUST ADDED\n FontRenderContext rend = new FontRenderContext(new AffineTransform(), true, true);\n\n if (newFont.getStringBounds(myText, rend).getMaxX() > 0) {\n g2d.drawLine(x, y + 1, (int) (x + newFont.getStringBounds(myText, rend).getMaxX()), y + 1);\n// +1 removed from before ,y\n //END OF STUFF I JUST ADDED\n }\n ((Paint) this.getParent()).center.setBufferedImage(im);\n }\n ((Paint) this.getParent()).center.setBufferedImage(im);\n this.setVisible(false);\n dispose();\n ok_action = true;\n im.flush();\n }",
"@Override\n public void reshape(Shape other) {\n Triangle triangle = (Triangle) other;\n this.a = CloneUtil.clone(triangle.getA());\n this.b = CloneUtil.clone(triangle.getB());\n this.c = CloneUtil.clone(triangle.getC());\n this.toBeFilled = other.toBeFilled;\n this.stroke = other.stroke;\n this.color = new Color(other.color.getRGB());\n // System.out.println(\"Reshape after: \" + this.toString());\n }",
"public boolean redo() { \n if(redoStack.peek()!=null) {\n DrawingChange change = redoStack.pop();\n drawingArray[change.x][change.y] = change.newChar;\n undoStack.push(change);\n return true;\n }\n return false;\n }",
"void downgradeLastEdge();",
"@Override\n public void unmarkCell() {\n MNKCell last = MC.getLast();\n super.unmarkCell();\n key = nextZobrist(last.i, last.j);\n value = previousValues.pop();\n }",
"private void selfClone() {\n stroke = stroke.clone();\n }",
"private void fillDrawMark(Graphics2D graphic, double tx, double ty, Mark mark, int size,\n double rotation, Feature feature) {\n AffineTransform temp = graphic.getTransform();\n AffineTransform markAT = new AffineTransform();\n Shape shape = Java2DMark.getWellKnownMark(mark.getWellKnownName().getValue(feature)\n .toString());\n \n Point2D mapCentre = new java.awt.geom.Point2D.Double(tx, ty);\n Point2D graphicCentre = new java.awt.geom.Point2D.Double();\n temp.transform(mapCentre, graphicCentre);\n markAT.translate(graphicCentre.getX(), graphicCentre.getY());\n \n double shearY = temp.getShearY();\n double scaleY = temp.getScaleY();\n \n double originalRotation = Math.atan(shearY / scaleY);\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"originalRotation \" + originalRotation);\n }\n \n markAT.rotate(rotation - originalRotation);\n \n Rectangle2D bounds = shape.getBounds2D();\n // getbounds is broken, but getBounds2D is not :-)\n double unitSize = Math.max(bounds.getWidth(), bounds.getHeight()); \n double drawSize = (double) size / unitSize;\n markAT.scale(drawSize, -drawSize);\n \n graphic.setTransform(markAT);\n \n if (mark.getFill() != null) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"applying fill to mark\");\n }\n \n applyFill(graphic, mark.getFill(), feature);\n graphic.fill(shape);\n }\n \n if (mark.getStroke() != null) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"applying stroke to mark\");\n }\n \n applyStroke(graphic, mark.getStroke(), null);\n graphic.draw(shape);\n }\n \n graphic.setTransform(temp);\n \n if (mark.getFill() != null) {\n resetFill(graphic);\n }\n \n return;\n }",
"public void undo() {\n\t\t\r\n\t}",
"public void doRevertToSaved()\n {\n super.doRevertToSaved();\n revalidateSyntax();\n }",
"public void stroke() throws IOException\n {\n\tif (_closedPath == true) {\n\t Paint strokingPaint = getGraphicsState().getStrokingColor().getJavaColor();\n\t if ( strokingPaint == null ) {\n\t\tstrokingPaint = getGraphicsState().getStrokingColor().getPaint(pageSize.height);\n\t }\n\t if ( strokingPaint == null ) {\n\t\tLOG.info(\"ColorSpace \"+getGraphicsState().getStrokingColor().getColorSpace().getName() +\" doesn't provide a stroking color, using white instead!\");\n\t\tstrokingPaint = Color.WHITE;\n\t }\n\t if (strokingPaint != Color.WHITE) {\n\t\tfor(Line line : _currentPath) {\n\t\t if(line.isVertical() || line.isHorizontal()) {\n\t\t\t_path.add(line);\n\t\t }\n\t\t}\n\t }\n\t}\n\t_currentPath.clear();\n }",
"public void undo() {\n\t\tlight.on();\n\t}",
"@Override\r\n\tpublic void undo() {\n\t\tfor(IShape shape : tempList)\r\n\t\t\tshapeList.remove(shape);\r\n\t}",
"public void ungeneratePath() {\n path = oldPaths.pop();\n }",
"public void UndoRecover()\n\t{\n\t\t//System.out.println(\"Undo!\");\n\t\tif (m_backupLayerIndex != -1)\n\t\t{\n\t\t\t//if the last change was a new gate added to layer,\n\t\t\t//we need to change again the sizes of layers, as we save them\n\t\t\tif (m_layers.get(m_backupLayerIndex).IsLastChangeNewGate())\n\t\t\t{\n\t\t\t\t//system.out.format(\"Undoing a new gate: resizing the layer %d to have one less item, now %d\\n\", m_backupLayerIndex, m_layersSizes.get(m_backupLayerIndex+1)-1);\n\t\t\t\tLogger.write(\"Undoing a new gate: resizing the layer \" + String.valueOf(m_backupLayerIndex ) + \" to have one less item, now \" + String.valueOf(m_layersSizes.get(m_backupLayerIndex+1)-1 ));\n\t\t\t\tm_layersSizes.set(m_backupLayerIndex+1, m_layersSizes.get(m_backupLayerIndex+1) - 1);\n\t\t\t}\n\t\t\tm_layers.get(m_backupLayerIndex).UndoRecoverLayer();\n\t\t\tm_backupLayerIndex = -1;\n\t\t}\n\t\tif (m_secondBackupLayerIndex != -1)\n\t\t{\n\t\t\tm_layers.get(m_secondBackupLayerIndex).UndoRecoverLayer();\n\t\t\tm_secondBackupLayerIndex = -1;\n\t\t}\n\t\tm_backupLayerIndex = -1;\n\t\tm_secondBackupLayerIndex = -1;\n\t}",
"public void clearHighlightTile() {\n\t\tfor(int i = 0;i < 8;i++) {\n\t\t\tfor(int j = 0;j < 8;j++) {\n\t\t\t\tRectangle rect = Main.tile[i][j].rectangle;\n\t\t\t\tif(rect.getStrokeType() == StrokeType.INSIDE){\n\t\t\t\t\trect.setStrokeType(StrokeType.INSIDE);\n\t\t\t\t\trect.setStroke(Color.TRANSPARENT);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public BegsBuilder preserveEdgeAttribute(StdAttribute attribute) {\n return preserveEdgeAttribute(attribute.name());\n }",
"public abstract void updatePath(Matrix matrix, Matrix backupTransformationMatrix, boolean highlight);",
"@Override\n\tprotected void outlineShape(Graphics graphics) {\n\t}",
"public abstract void undo();",
"public Shape createStrokedShape(Shape shape) {\n/* 140 */ GeneralPath result = new GeneralPath();\n/* 141 */ PathIterator it = new FlatteningPathIterator(shape.getPathIterator(null), 1.0D);\n/* 142 */ float[] points = new float[6];\n/* 143 */ float moveX = 0.0F, moveY = 0.0F;\n/* 144 */ float lastX = 0.0F, lastY = 0.0F;\n/* 145 */ float thisX = 0.0F, thisY = 0.0F;\n/* 146 */ int type = 0;\n/* 147 */ float next = 0.0F;\n/* 148 */ int phase = 0;\n/* 149 */ while (!it.isDone()) {\n/* 150 */ float dx, dy, distance; type = it.currentSegment(points);\n/* 151 */ switch (type) {\n/* */ case 0:\n/* 153 */ moveX = lastX = points[0];\n/* 154 */ moveY = lastY = points[1];\n/* 155 */ result.moveTo(moveX, moveY);\n/* 156 */ next = OutlineZigzagEffect.this.wavelength / 2.0F;\n/* */ break;\n/* */ \n/* */ case 4:\n/* 160 */ points[0] = moveX;\n/* 161 */ points[1] = moveY;\n/* */ \n/* */ \n/* */ case 1:\n/* 165 */ thisX = points[0];\n/* 166 */ thisY = points[1];\n/* 167 */ dx = thisX - lastX;\n/* 168 */ dy = thisY - lastY;\n/* 169 */ distance = (float)Math.sqrt((dx * dx + dy * dy));\n/* 170 */ if (distance >= next) {\n/* 171 */ float r = 1.0F / distance;\n/* 172 */ while (distance >= next) {\n/* 173 */ float x = lastX + next * dx * r;\n/* 174 */ float y = lastY + next * dy * r;\n/* 175 */ if ((phase & 0x1) == 0) {\n/* 176 */ result.lineTo(x + OutlineZigzagEffect.this.amplitude * dy * r, y - OutlineZigzagEffect.this.amplitude * dx * r);\n/* */ } else {\n/* 178 */ result.lineTo(x - OutlineZigzagEffect.this.amplitude * dy * r, y + OutlineZigzagEffect.this.amplitude * dx * r);\n/* 179 */ } next += OutlineZigzagEffect.this.wavelength;\n/* 180 */ phase++;\n/* */ } \n/* */ } \n/* 183 */ next -= distance;\n/* 184 */ lastX = thisX;\n/* 185 */ lastY = thisY;\n/* 186 */ if (type == 4) result.closePath(); \n/* */ break;\n/* */ } \n/* 189 */ it.next();\n/* */ } \n/* 191 */ return (new BasicStroke(OutlineZigzagEffect.this.getWidth(), 2, OutlineZigzagEffect.this.getJoin())).createStrokedShape(result);\n/* */ }",
"@Override\n T undo();",
"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}",
"private void calculateRestore(double[] in, int row) {\n double[] org = new double[in.length];\n System.arraycopy(in, 0, org, 0, in.length);\n for (int idx = 0; idx < row ; idx++) {\n double diff = org[idx+row];\n in[idx*2] = org[idx] + diff;\n in[idx*2 + 1] = org[idx] - diff;\n }\n }",
"@NonNull\n/* */ private Observable<InkDrawInfo> outlineArrayToOutlineSegmentPath(Observable<double[]> observable) {\n/* 274 */ return observable.filter(new Predicate<double[]>() { public boolean test(double[] outline) throws Exception { return (outline.length > 8); } }).map(new Function<double[], InkDrawInfo>()\n/* */ {\n/* */ public InkDrawInfo apply(double[] outline) throws Exception {\n/* 277 */ Utils.throwIfOnMainThread();\n/* 278 */ Path pathf = PathPool.getInstance().obtain();\n/* 279 */ pathf.setFillType(Path.FillType.WINDING);\n/* */ \n/* 281 */ double left = outline[0];\n/* 282 */ double top = outline[1];\n/* 283 */ double right = outline[0];\n/* 284 */ double bottom = outline[1];\n/* */ \n/* 286 */ pathf.moveTo((float)outline[0], (float)outline[1]);\n/* 287 */ for (int i = 2, cnt = outline.length; i < cnt; i += 6) {\n/* */ \n/* */ \n/* */ \n/* 291 */ for (int k = 0; k <= 5; k += 2) {\n/* 292 */ double x = outline[i + k];\n/* 293 */ double y = outline[i + k + 1];\n/* 294 */ left = Math.min(x, left);\n/* 295 */ top = Math.min(y, top);\n/* 296 */ right = Math.max(x, right);\n/* 297 */ bottom = Math.max(y, bottom);\n/* */ } \n/* */ \n/* 300 */ pathf.cubicTo((float)outline[i], (float)outline[i + 1], (float)outline[i + 2], (float)outline[i + 3], (float)outline[i + 4], (float)outline[i + 5]);\n/* */ } \n/* */ \n/* 303 */ int fudge = 2;\n/* 304 */ return new InkDrawInfo((int)left - fudge, (int)right + fudge, (int)top - fudge, (int)bottom + fudge, pathf, PointProcessor.this\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 310 */ .mPaint);\n/* */ }\n/* */ });\n/* */ }",
"private void rotate() {\n byte tmp = topEdge;\n topEdge = leftEdge;\n leftEdge = botEdge;\n botEdge = rightEdge;\n rightEdge = tmp;\n tmp = reversedTopEdge;\n reversedTopEdge = reversedLeftEdge;\n reversedLeftEdge = reversedBotEdge;\n reversedBotEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n tmp = ltCorner;\n ltCorner = lbCorner;\n lbCorner = rbCorner;\n rbCorner = rtCorner;\n rtCorner = tmp;\n\n }",
"public void undo() {\n }",
"@Override\r\n\tpublic void undo() \r\n\t\t{\n\t\tif (parent.addChild(child)) \r\n\t\t\t{\r\n\t\t\taddArcs(sourceArcs);\r\n\t\t\taddArcs(targetArcs);\r\n\t\t\t}\r\n\t\t}",
"public void resetTool() {\n myPencil = new Path2D.Double(); \n }",
"public void undo() {\n\t\tif(!committed) {\n\t\t\tSystem.arraycopy(undoWidths, 0, widths, 0, widths.length);\n\t\t\t//Undo the widths\n\t\t\tSystem.arraycopy(undoHeights, 0, heights, 0, heights.length);\n\t\t\t//Undo the heights\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\tSystem.arraycopy(undoGrid[i], 0, grid[i], 0,undoGrid[i].length);\n\t\t\t}\n\t\t\t//Undo the heights\n\t\t\tmaxHeight = undoMaxHeight;\n\t\t\t//Undo the max height\n\t\t}\n\t\t//if committed then we can not undo and do nothing\n\t\tcommit();\n\t\t// YOUR CODE HERE\n\t}",
"abstract protected void revert();",
"public void revertColorAndFont()\r\n\t{\r\n\t\trevertColor();\r\n\t\trevertFont();\r\n\t}",
"public Shape detransform (Shape shape) {\n return inverse.createTransformedShape (shape);\n }",
"public void setOutline(RMXString.Outline anOutline) { }",
"public void shrinkSnake() {\n\t\tSnakeObj.length--;\n\t\tSnakeArray[xTail][yTail] = 0; \n\t\txTail--;\n\t\tyTail--; \n\t\tthis.repaint(); \n\t}",
"private void normalizeBackwards()\n {\n normalize();\n m_bufferOffset_ = m_buffer_.length();\n }",
"@Override\n public void restore() {\n graphicsEnvironmentImpl.restore(canvas);\n }",
"private void resetStroke(Graphics2D graphic) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"reseting the graphics\");\n }\n \n graphic.setStroke(DEFAULT_STROKE);\n }",
"@Override\n\tpublic void setOffsetBackToFile() {\n\t\tString newXString;\n\t\tString newYString;\n\t\t newXString = String.valueOf(getX().getValueInSpecifiedUnits())+getX().getUserUnit();\n\t newYString = String.valueOf(getY().getValueInSpecifiedUnits())+getY().getUserUnit();\n\t\tjc.getElement().setAttribute(\"x\", newXString);\n\t\tjc.getElement().setAttribute(\"y\", newYString);\n\t\ttry {\n\t\t\tjc.getView().getFrame().writeFile();\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}",
"public void undo() {\n\t\tstudentWorkerOperation.UndoNewBadgeHelper(badgeId);\n\t}",
"public void roundUndo() {\n roundsHistory.pop();\n updateGameDescriptorAfterUndo();\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n\n super.onSaveInstanceState(outState);\n\n if(myFingerPainterView.getBrush().equals(Paint.Cap.ROUND))\n outState.putString(\"Shape\", \"Round\");\n else\n outState.putString(\"Shape\", \"Square\");\n\n outState.putInt(\"Colour\", myFingerPainterView.getColour());\n outState.putInt(\"Width\", myFingerPainterView.getBrushWidth());\n }",
"protected abstract void restoreGraphicsState();",
"public void rotateBack() {\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tsquares[i][j] = tmp_grid[i][j];\n\t\t}",
"public final Shape getTransformed(Transformation t) {\n\t\treturn getCopy().transform(t);\n\t}",
"public void back() throws JSONException {\n if(usePrevious || this.index <= 0) {\n throw new JSONException(\"Stepping back two steps is not supported\");\n }\n this.index -= 1;\n this.character -= 1;\n this.usePrevious = true;\n this.eof = false;\n }",
"@Override\n\tpublic void undo() {\n\t\tfor (IShape shape : temp) {\n\t\t\tlist.add(shape);\n\t\t}\n\t}",
"public void reset() {\n\t\tfor (int i=0; i < this.WAYS; i++) {\n\t\t\tthis.cache[i] = new Line(this.alpha[i], REPL_VAL);\n\t\t}\n\t\t// set mru\n\t\tthis.cache[this.WAYS-1].state = INSERT_VAL;\n\t}",
"public boolean undo(){\n\t\t\n\t\tif(this.grillaPrevia == null){\n\t\t\treturn false;\n\t\t}else{\n\t\t\tthis.grilla= (int[][])copyArray(this.grillaPrevia);\t\n\t\t\tthis.currentKeyX = this.currentKeyXPrevia;\n\t\t\tthis.currentKeyY = this.currentKeyYPrevia;\n\t\t\tthis.selected = this.selectedPrevia;\n\t\t\tthis.grillaPrevia = null;\n\t\t\tthis.acumulatedScore -= (2*SenkuPegs.getInstance().getPegs()[this.currentPegType].getScoreValue());\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}",
"public void\nshiftToOrigin()\n{\n\tthis.setLine(0.0, 0.0,\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n}",
"private final void restoreOriginalGraph() {\n // Safeguard against multiple restores\n if (startIndex == -1) return;\n \n markEdgesFrom(startIndex, false);\n markEdgesFrom(endIndex, false);\n markHasEdgeToGoal(false);\n nOutgoingEdgess[endIndex] = endOriginalSize;\n nOutgoingEdgess[startIndex] = startOriginalSize;\n nEdges = originalNEdges;\n\n nNodes = originalSize;\n startIndex = -1;\n endIndex = -1;\n }",
"public void erase() {\n g2.setPaint(Color.white);\r\n }",
"@Override\r\n\tpublic void unexecute() {\n\t\t\r\n\t\tCollections.swap(model.getListOfShapes(), model.getListOfShapes().size()-1, i); \r\n\t\t\r\n\t\t/*if(print == true) {\r\n\t\t\t\r\n\t\t\tFrame.textArea.append(\"UNDO >>> Bring to back: \" + s +\"\\n\");\r\n\t\t}\r\n\t\t\r\n\t\tprint = true;*/\r\n\t\r\n\t\t\r\n\t}",
"public void rollback() {\r\n info.setIcon(lastIcon);\r\n info.setText(lastInfo);\r\n }",
"public void backSpace(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //If a character is being removed from a single line\n if (characterIndex > 0) {\n currentText = codeWindow.getTextLineController().backspace(currentText, characterIndex, true);\n characterIndex--;\n }\n //If a newline character is being removed two lines need to be merged\n else if (lineIndex > 0) {\n characterIndex = codeWindow.getTextLineController().getCodeWindowTextLines().get(lineIndex - 1).getCharacterEdges().length - 1;\n currentText = codeWindow.getTextLineController().merge(codeWindow.getTextLineController().getCodeWindowTextLines().get(lineIndex - 1), currentText, codeWindow);\n lineIndex--;\n }\n //The cursors character or line index changed, update accordingly\n updatePosition();\n }\n }",
"private void finishErasing() {\n synchronized (lastEraseTrace) {\n if (lastEraseTrace.size() > 0) {\n ArrayList<Shape> t = new ArrayList<Shape>();\n t.add(new EraseTrace(lastEraseTrace, sheet.toSheet(eraserRadius)));\n sheet.doAction(new AddShapes(t));\n lastEraseTrace.clear();\n }\n }\n }",
"private void outRestore() throws IOException {\n if (lastWriteOffset > 0) {\n outSeek(lastWriteOffset);\n lastWriteOffset = -1;\n }\n }",
"void decreaseStrength() {\n if (this.strokeStrength - 0.25 >= 1) {\n this.strokeStrength -= 0.25;\n }\n this.updateAcc();\n this.updateStick();\n }",
"public static void undo () {\r\n\t\tCommand cmd = undoCommands.pop();\r\n\t\tcmd.undo();\r\n\t\tredoCommands.push(cmd);\r\n\t}",
"public RMStroke getStroke() { return _stroke; }",
"@Override\n\tpublic void undo() {\n\t\tthis.list.delete(shape);\n\n\t}",
"public abstract void setStroke(BasicStroke stroke);",
"private void drawTriangle(double newVal) {\n\n triangle.getPoints().clear();\n triangle.getPoints().addAll(getEndX(), getEndY(), getEndX() - Point.RADIUS / 2.0,\n getEndY() + Point.RADIUS * 5 / 4.0 * (newVal) / (getAbsMax()), getEndX() + Point.RADIUS / 2.0,\n getEndY() + Point.RADIUS * 5 / 4.0 * (newVal) / getAbsMax());\n\n }",
"public void setStroke(RMStroke aStroke)\n{\n if(RMUtils.equals(getStroke(), aStroke)) return; // If value already set, just return\n repaint(); // Register repaint\n if(_stroke!=null) _stroke.removePropertyChangeListener(this);\n firePropertyChange(\"Stroke\", _stroke, _stroke = aStroke, -1); // Set value and fire PropertyChange\n if(_stroke!=null) _stroke.addPropertyChangeListener(this); // Set shape\n}",
"@Override\n public void finish()\n {\n synchronized (this.strokeVec)\n {\n this.strokeVec.clear();\n }\n }",
"@Override\r\n\tpublic void undo() {\n\t\tlight.on();\r\n\t}",
"public ReadOnlyNotebook undo() {\n statePointer--;\n ReadOnlyNotebook previousCopy = mementos.get(statePointer).getState();\n return previousCopy;\n }",
"public void restoreGraphics() {\n\n if ( g2 instanceof AimxcelGraphics2D ) {\n AimxcelGraphics2D aimxcelGraphics2D = (AimxcelGraphics2D) g2;\n aimxcelGraphics2D.popState();\n }\n else {\n if ( g2.getRenderingHints() != renderingHints ) {\n g2.setRenderingHints( renderingHints );\n }\n if ( g2.getPaint() != paint ) {\n g2.setPaint( paint );\n }\n if ( g2.getColor() != color ) {\n g2.setColor( color );\n }\n if ( g2.getStroke() != stroke ) {\n g2.setStroke( stroke );\n }\n if ( g2.getComposite() != composite ) {\n g2.setComposite( composite );\n }\n if ( g2.getTransform() != transform ) {\n g2.setTransform( transform );\n }\n if ( g2.getFont() != font ) {\n g2.setFont( font );\n }\n if ( g2.getClip() != clip ) {\n g2.setClip( clip );\n }\n if ( g2.getBackground() != background ) {\n g2.setBackground( background );\n }\n }\n }",
"@Override\r\n\tpublic E undo() {\n\t\treturn null;\r\n\t}",
"public void alignSelectedFurnitureOnBackSide() {\n alignSelectedFurniture(new AlignmentAction() {\n public void alignFurniture(AlignedPieceOfFurniture [] alignedFurniture, \n HomePieceOfFurniture leadPiece) {\n float [][] points = leadPiece.getPoints();\n Line2D backLine = new Line2D.Float(points [0][0], points [0][1], points [1][0], points [1][1]); \n for (AlignedPieceOfFurniture alignedPiece : alignedFurniture) {\n alignPieceOfFurnitureAlongSides(alignedPiece.getPieceOfFurniture(), leadPiece, backLine, false, null, 0);\n }\n }\n });\n }",
"public void back() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null)\n\t return;\n\n\tif (!crossLocation.isEmpty()) {\n\t\t\n\t crossLocation.pop();\n\n\t //back\n\t ArrayList<Location> lastNode = crossLocation.peek();\n\t next = lastNode.get(0);\n\t}\n\n\tLocation loc = getLocation();\n\t\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\t\n\tint counter = dirCounter.get(getDirection());\n\tdirCounter.put(getDirection(), --counter);\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n }",
"public void moveTileBack()\n {\n if(!(activeTile-1 < 0) && activeTile > 0)\n {\n Tile tmpTile = tiles[activeTile];\n PImage tmpPreview = previews[activeTile];\n PImage tmpPreviewGradients = previewGradients[activeTile];\n boolean tmpPreviewHover = previewHover[activeTile];\n \n tiles[activeTile-1].setStartColor(tmpTile.getStartColor());\n tiles[activeTile-1].setEndColor(tmpTile.getEndColor());\n tmpTile.setStartColor(tiles[activeTile-1].getStartColor());\n tmpTile.setEndColor(tiles[activeTile-1].getEndColor());\n \n tiles[activeTile-1].setTileLevel(tiles[activeTile-1].getTileLevel()+1);\n tiles[activeTile] = tiles[activeTile-1];\n previews[activeTile] = previews[activeTile-1];\n previewGradients[activeTile] = previewGradients[activeTile-1];\n previewHover[activeTile] = previewHover[activeTile-1];\n \n \n tmpTile.setTileLevel(tmpTile.getTileLevel()-1);\n tiles[activeTile-1] = tmpTile;\n tiles[activeTile-1].setStartColor(tiles[activeTile-1].getStartColor());\n previews[activeTile-1] = tmpPreview;\n previewGradients[activeTile-1] = tmpPreviewGradients;\n previewHover[activeTile-1] = tmpPreviewHover;\n \n activeTile -= 1;\n createPreviewGradients();\n }\n }"
] | [
"0.56782794",
"0.54393494",
"0.52778757",
"0.52577865",
"0.51525956",
"0.5131452",
"0.5124369",
"0.5109746",
"0.50523674",
"0.5005712",
"0.4962412",
"0.49614957",
"0.48665538",
"0.47130758",
"0.46953282",
"0.4673902",
"0.46736577",
"0.46287304",
"0.4628346",
"0.46065703",
"0.4548823",
"0.4537333",
"0.45273542",
"0.45269388",
"0.44781646",
"0.44725716",
"0.44627827",
"0.44610003",
"0.4448306",
"0.44470355",
"0.44140726",
"0.44114503",
"0.440425",
"0.4403062",
"0.4401731",
"0.4390372",
"0.43771064",
"0.4367962",
"0.43612233",
"0.4359616",
"0.43419614",
"0.43409893",
"0.43361443",
"0.43213287",
"0.43178096",
"0.4314357",
"0.43137026",
"0.4311828",
"0.43056574",
"0.42980504",
"0.42969158",
"0.4291321",
"0.42875618",
"0.42856178",
"0.42842835",
"0.4276534",
"0.42761773",
"0.42735192",
"0.42706862",
"0.42668292",
"0.42597914",
"0.425782",
"0.4250779",
"0.42489946",
"0.42474934",
"0.42452475",
"0.42436293",
"0.4233865",
"0.4229579",
"0.42254716",
"0.42199022",
"0.42198536",
"0.4213363",
"0.42108738",
"0.42078346",
"0.42051926",
"0.4196199",
"0.4194938",
"0.41924965",
"0.41899687",
"0.41893578",
"0.41830564",
"0.41827744",
"0.41814274",
"0.41738266",
"0.4172298",
"0.41703114",
"0.41696048",
"0.41594955",
"0.4157927",
"0.41500494",
"0.41489726",
"0.41460007",
"0.41450363",
"0.41344768",
"0.41313902",
"0.41180214",
"0.41161454",
"0.41077843",
"0.41071302"
] | 0.48872626 | 12 |
Here we create the glyphbatch from the triangulation (using sides/front/back according to arguments). | public void generateBatch(boolean drawSides, boolean drawFront,
boolean drawBack) {
this.glyphbatch = new Glyph3DBatch(this, drawSides, drawFront, drawBack);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Setup(int nPoints, float swp, float shp, float ssu)\n {\n Random rnd = new Random();\n\n // Our collection of vertices\n vertices = new float[nPoints*VERTICES_PER_GLYPH*TOTAL_COMPONENT_COUNT];\n\n // Create the vertex data\n for(int i=0;i<nPoints;i++) {\n int offset_x = rnd.nextInt((int)swp);\n int offset_y = rnd.nextInt((int)shp);\n\n float llu = rnd.nextInt(2) * 0.5f;\n float llv = rnd.nextInt(2) * 0.5f;\n \n \n AddGlyph(offset_x, offset_y, ssu, llu, llv, 0.5f, 0.5f);\n }\n\n // The indices for all textured quads\n indices = new short[nPoints*3*TRIANGLES_PER_GLYPH]; \n int last = 0;\n for(int i=0;i<nPoints;i++) {\n // We need to set the new indices for the new quad\n indices[(i*6) + 0] = (short) (last + 0);\n indices[(i*6) + 1] = (short) (last + 1);\n indices[(i*6) + 2] = (short) (last + 2);\n indices[(i*6) + 3] = (short) (last + 0);\n indices[(i*6) + 4] = (short) (last + 2);\n indices[(i*6) + 5] = (short) (last + 3);\n\n // Our indices are connected to the vertices so we need to keep them\n // in the correct order.\n // normal quad = 0,1,2,0,2,3 so the next one will be 4,5,6,4,6,7\n last = last + 4;\n }\n\n // The vertex buffer.\n ByteBuffer bb = ByteBuffer.allocateDirect(vertices.length * BYTES_PER_FLOAT);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(vertices);\n vertexBuffer.position(0);\n\n // initialize byte buffer for the draw list\n ByteBuffer dlb = ByteBuffer.allocateDirect(indices.length * BYTES_PER_SHORT);\n dlb.order(ByteOrder.nativeOrder());\n indexBuffer = dlb.asShortBuffer();\n indexBuffer.put(indices);\n indexBuffer.position(0);\n\n }",
"private void createFont(boolean created) {\n\t\tVertexTex[] vertices = new VertexTex[text.length() * 4];\n\t\t\n\t\tint[] indices = new int[text.length() * 6];\n\t\t\n\t\tfloat cursor = 0;\n\t\tfor(int i = 0; i < text.length(); i++) {\n\t\t\tFontChar c = font.getChar(text.charAt(i));\n\t\t\tif(c == null)\n\t\t\t\tc = font.getChar('?');\n\t\t\t\n\t\t\t\n\t\t\tfloat x = cursor + c.X_OFFSET;\n\t\t\tfloat y = -c.Y_OFFSET;\n\t\t\t\n\t\t\tvertices[0 + i * 4] = new VertexTex(\n\t\t\t\tnew Vector3f(x, y, 0),\n\t\t\t\tnew Vector2f(c.T_X / texture.getWidth(), c.T_Y / texture.getHeight())\n\t\t\t);\n\t\t\t\n\t\t\tvertices[1 + i * 4] = new VertexTex(\n\t\t\t\tnew Vector3f(x + c.T_WIDTH, y, 0),\n\t\t\t\tnew Vector2f((c.T_X + c.T_WIDTH) / texture.getWidth(), c.T_Y / texture.getHeight())\n\t\t\t);\n\t\t\t\n\t\t\tvertices[2 + i * 4] = new VertexTex(\n\t\t\t\tnew Vector3f(x + c.T_WIDTH, y - c.T_HEIGHT, 0),\n\t\t\t\tnew Vector2f((c.T_X + c.T_WIDTH) / texture.getWidth(), (c.T_Y + c.T_HEIGHT) / texture.getHeight())\n\t\t\t);\n\t\t\t\n\t\t\tvertices[3 + i * 4] = new VertexTex(\n\t\t\t\tnew Vector3f(x, y - c.T_HEIGHT, 0),\n\t\t\t\tnew Vector2f(c.T_X / texture.getWidth(), (c.T_Y + c.T_HEIGHT) / texture.getHeight())\n\t\t\t);\n\t\t\t\n\t\t\tcursor += c.X_ADVANCE;\n\t\t\t\n\t\t\tindices[0 + i * 6] = 3 + i * 4;\n\t\t\tindices[1 + i * 6] = 0 + i * 4;\n\t\t\tindices[2 + i * 6] = 1 + i * 4;\n\t\t\tindices[3 + i * 6] = 3 + i * 4;\n\t\t\tindices[4 + i * 6] = 1 + i * 4;\n\t\t\tindices[5 + i * 6] = 2 + i * 4;\n\t\t}\n\t\t\n\t\tif(created)\n\t\t\tmesh.reallocateData(GL15.GL_STATIC_DRAW, vertices, indices);\n\t\telse\n\t\t\tmesh = new Mesh(vertices, indices);\n\t}",
"private void drawWaypoints() {\r\n\t\tint x1 = (width - SIZE_X) / 2;\r\n\t\tint y1 = (height - SIZE_Y) / 2;\r\n\r\n\t\tfloat scissorFactor = (float) _resolutionResolver.getScaleFactor() / 2.0f;\r\n\r\n\t\tint glLeft = (int) ((x1 + 10) * 2.0f * scissorFactor);\r\n\t\tint glWidth = (int) ((SIZE_X - (10 + 25)) * 2.0f * scissorFactor);\r\n\t\tint gluBottom = (int) ((this.height - y1 - SIZE_Y) * 2.0f * scissorFactor);\r\n\t\tint glHeight = (int) ((SIZE_Y) * 2.0f * scissorFactor);\r\n\r\n\t\tGL11.glEnable(GL11.GL_SCISSOR_TEST);\r\n\t\tGL11.glScissor(glLeft, gluBottom, glWidth, glHeight);\r\n\r\n\t\tGL11.glPushMatrix();\r\n\t\tGL11.glScalef(_textScale, _textScale, _textScale);\r\n\r\n\t\t_startCell = getStartCell();\r\n\t\t_cellStartX = (int) (((float) x1 + (float) 13) / _textScale);\r\n\t\t_cellStartY = (int) (((float) y1 + (float) 22) / _textScale);\r\n\r\n\t\tint x2 = _cellStartX;\r\n\t\tint y2 = _cellStartY + (int) ((float) 0 * (float) CELL_SIZE_Y / _textScale);\r\n\r\n\t\tImmutableList<UltraTeleportWaypoint> list = UltraTeleportWaypoint.getWaypoints();\r\n\t\tfor (int i = 0; i < 2; ++i) {\r\n \t\tfor (int j = 0; j < list.size() && j < MAX_CELL_COUNT; ++j) {\r\n\r\n \t\t\tint x = _cellStartX;\r\n \t\t\tint y = _cellStartY + (int) ((float) j * (float) CELL_SIZE_Y / _textScale);\r\n\r\n \t\t\tdouble posX = list.get(j + _startCell).getPos().getX();\r\n \t\t\tdouble posY = list.get(j + _startCell).getPos().getY();\r\n \t\t\tdouble posZ = list.get(j + _startCell).getPos().getZ();\r\n\r\n \t\t\tString strX = String.format(\"x: %4.1f\", posX);\r\n \t\t\tString strY = String.format(\"y: %4.1f\", posY);\r\n \t\t\tString strZ = String.format(\"z: %4.1f\", posZ);\r\n \t\t\tString text = strX + \" \" + strY + \" \" + strZ;\r\n\r\n \t\t\tif (i == 0) {\r\n \t\t\t this.fontRendererObj.drawStringWithShadow(text, x + 18, y, list.get(j).getColor());\r\n\r\n \t\t\t boolean selected = j + _startCell < _selectedList.size() ? _selectedList.get(j + _startCell) : false;\r\n\r\n \t\t\t GL11.glPushMatrix();\r\n GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);\r\n \t\t\t this.mc.renderEngine.bindTexture(selected ? BUTTON_ON_RESOURCE : BUTTON_OFF_RESOURCE);\r\n \t\t\t HubbyUtils.drawTexturedRectHelper(0, x + CELL_SIZE_X + 18, y - 3, 16, 16, 0, 0, 256, 256);\r\n \t\t\t GL11.glPopMatrix();\r\n \t\t\t}\r\n \t\t\telse if (i == 1) {\r\n \t\t\t\tBlockPos pos = new BlockPos((int)posX, (int)posY - 1, (int)posZ);\r\n \t\t\t Block block = Minecraft.getMinecraft().theWorld.getBlockState(pos).getBlock();\r\n \t\t\tif (block != null) {\r\n \t\t\t Item itemToRender = Item.getItemFromBlock(block);\r\n \t\t\t itemToRender = itemToRender != null ? itemToRender : Item.getItemFromBlock((Block)Block.blockRegistry.getObjectById(3));\r\n \t\t\t ItemStack is = new ItemStack(itemToRender, 1, 0);\r\n \t\t\t _itemRender.renderItemAndEffectIntoGUI(is, x - 1, y - 3);\r\n \t _itemRender.renderItemOverlayIntoGUI(this.fontRendererObj, is, x - 1, y - 3, \"\"); // TODO: is the last param correct?\r\n \t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n\t\t}\r\n\r\n\t\tGL11.glPopMatrix();\r\n\t\tGL11.glDisable(GL11.GL_SCISSOR_TEST);\r\n\t}",
"private void process(ArrayList<Float> points) {\n downsample(3, points);\n vertices = new Vector3f[nrows * ncols];\n texcoord = BufferUtils.createFloatBuffer(2 * nrows * ncols);\n indexes = BufferUtils.createIntBuffer(6 * (nrows - 1) * (ncols - 1));\n Vector3f[][][] fnormals = new Vector3f[nrows - 1][ncols - 1][2];\n normals = new Vector3f[nrows * ncols];\n float x, z;\n\n System.out.println(\"Processing \" + nrows + \"x\" + ncols + \" terrain...\");\n\n // First make vertices + texcoords\n x = 0.0f;\n for (int row = 0; row < nrows; row++) {\n z = 0.0f;\n for (int col = 0; col < ncols; col++) {\n vertices[(row * ncols) + col] = new Vector3f(x, data[row][col], z);\n texcoord.put(col / (float) ncols);\n texcoord.put(row / (float) nrows);\n z += cellsize;\n }\n x += cellsize;\n }\n // Indexes + face normals\n System.out.println(\"Populating faces...\");\n for (int row = 0; row < (nrows - 1); row++) {\n for (int col = 0; col < (ncols - 1); col++) {\n int base = 6 * ((row * (ncols - 1)) + col);\n // Triangle 1\n indexes.put((row * ncols) + col); // a\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col); // c\n // Triangle 2\n indexes.put(((row + 1) * ncols) + col); // c\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col + 1); // d\n // Faces\n base = (row * ncols) + col;\n Vector3f a = vertices[base];\n Vector3f b = vertices[base + 1];\n Vector3f c = vertices[base + ncols];\n Vector3f d = vertices[base + ncols + 1];\n Vector3f ba = b.subtract(a);\n Vector3f ca = c.subtract(a);\n Vector3f bc = b.subtract(c);\n Vector3f dc = d.subtract(c);\n // ormal.subtractLocal(pointa).crossLocal(pointc.x - pointa.x,\n // pointc.y - pointa.y, pointc.z - pointa.z);\n fnormals[row][col][0] = ba.crossLocal(ca).normalizeLocal();\n fnormals[row][col][1] = bc.crossLocal(dc).normalizeLocal();\n // Triangle ta = new Triangle(a,b,c);\n // Triangle tb = new Triangle(c,b,d);\n }\n }\n System.out.println(\"Calculating face normals...\");\n // Vector normals\n Vector3f t;\n // Corners\n // TL\n t = fnormals[0][0][0].add(fnormals[0][0][1]);\n t.normalizeLocal();\n normals[0] = t;\n // TR\n t = fnormals[0][ncols - 2][0].add(fnormals[0][ncols - 2][1]);\n t.normalizeLocal();\n normals[ncols - 1] = t;\n // BL\n t = fnormals[nrows - 2][0][0].add(fnormals[nrows - 2][0][1]);\n t.normalizeLocal();\n normals[(nrows - 1) * ncols] = t;\n // BR\n t = fnormals[nrows - 2][ncols - 2][0].add(fnormals[nrows - 2][ncols - 2][1]);\n t.normalizeLocal();\n normals[(nrows * ncols) - 1] = t;\n // Do first row and last row\n for (int col = 1; col < (ncols - 1); col++) {\n // First row\n t = fnormals[0][col - 1][0].add(fnormals[0][col - 1][1]);\n t.addLocal(fnormals[0][col][0]);\n t.addLocal(fnormals[0][col][1]);\n t.normalizeLocal();\n normals[col] = t;\n // Last row\n t = fnormals[nrows - 2][col - 1][0].add(fnormals[nrows - 2][col - 1][1]);\n t.addLocal(fnormals[nrows - 2][col][0]);\n t.addLocal(fnormals[nrows - 2][col][1]);\n t.normalizeLocal();\n normals[((nrows - 1) * ncols) + col] = t;\n }\n // Do first and last column\n for (int row = 1; row < (nrows - 1); row++) {\n // First col\n t = fnormals[row - 1][0][0].add(fnormals[row - 1][0][1]);\n t.addLocal(fnormals[row][0][0]);\n t.addLocal(fnormals[row][0][1]);\n t.normalizeLocal();\n normals[row * ncols] = t;\n // Last col\n t = fnormals[row - 1][ncols - 2][0].add(fnormals[row - 1][ncols - 2][1]);\n t.addLocal(fnormals[row][ncols - 2][0]);\n t.addLocal(fnormals[row][ncols - 2][1]);\n t.normalizeLocal();\n normals[(row * ncols) + (ncols - 1)] = t;\n // Centre cols\n for (int col = 1; col < (ncols - 1); col++) {\n t = fnormals[row - 1][col - 1][0].add(fnormals[row - 1][col - 1][1]);\n t.addLocal(fnormals[row - 1][col][0]);\n t.addLocal(fnormals[row - 1][col][1]);\n t.addLocal(fnormals[row][col - 1][0]);\n t.addLocal(fnormals[row][col - 1][1]);\n t.addLocal(fnormals[row][col][0]);\n t.addLocal(fnormals[row][col][1]);\n t.normalizeLocal();\n normals[(row * ncols) + col] = t;\n }\n }\n System.out.println(\"Processing finished...\");\n setBuffer(VertexBuffer.Type.Position, 3, BufferUtils.createFloatBuffer(vertices));\n setBuffer(VertexBuffer.Type.TexCoord, 2, texcoord);\n setBuffer(VertexBuffer.Type.Index, 3, indexes);\n setBuffer(VertexBuffer.Type.Normal, 3, BufferUtils.createFloatBuffer(normals));\n updateBound();\n System.out.println(\"NE corner: \" + vertices[vertices.length - 1].mult(0.006f));\n // Hint to renderer that we don't plan on modifying the terrain.\n this.setStatic();\n }",
"protected void building(double xCoord, double yCoord, double len, double width, double height)\n {\n double x1 = (xCoord - (width/2)); // Low x\n double x2 = (xCoord + (width/2)); // High x\n double y1 = (yCoord - (len/2)); // Low y\n double y2 = (yCoord + (len/2)); // High y\n\n Vertex vertex1, vertex2, vertex3;\n\n Triple pos1, pos2, pos3, pos4, pos5, pos6, pos7, pos8, col1, col2, col3, col4;\n Vertex vert1, vert2, vert3;\n\n pos1 = new Triple(x1, y1, 0); \n pos2 = new Triple(x2, y1, 0); \n pos3 = new Triple(x2, y1, height);\n pos4 = new Triple(x1, y1, height);\n pos5 = new Triple(x1, y2, 0); \n pos6 = new Triple(x2, y2, 0); \n pos7 = new Triple(x2, y2, height);\n pos8 = new Triple(x1, y2, height);\n\n col1 = new Triple(1, 0, 0); \n col2 = new Triple(0, 1, 0); \n col3 = new Triple(0, 0, 1); \n col4 = new Triple(1, 0, 1); \n \n // Front Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 0, 0), \n new Vertex(pos2, 0, 1), \n new Vertex(pos3, 1, 1), \n\t\t\t\t 25 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos3, 1, 1), \n new Vertex(pos4, 1, 0), \n new Vertex(pos1, 0, 0),\n 25 ) );\n \n // Left Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 0, 0), \n new Vertex(pos5, 0, 1), \n new Vertex(pos8, 1, 1),\n 26 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos8, 1, 1), \n new Vertex(pos4, 1, 0), \n new Vertex(pos1, 0, 0),\n 26 ) );\n\n // Right Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos2, 0, 0), \n new Vertex(pos6, 0, 1), \n new Vertex(pos7, 1, 1),\n 24 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, 1, 1), \n new Vertex(pos3, 1, 0), \n new Vertex(pos2, 0, 0),\n 24 ) );\n\n // Back Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos5, 0, 0), \n new Vertex(pos6, 0, 1), \n new Vertex(pos7, 1, 1),\n 27 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, 1, 1), \n new Vertex(pos8, 1, 0), \n new Vertex(pos5, 0, 0),\n 27 ) );\n\n // Top Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos4, 0, 0), \n new Vertex(pos3, 0, 1), \n new Vertex(pos7, 1, 1),\n 28 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, 1, 1), \n new Vertex(pos8, 1, 0), \n new Vertex(pos4, 0, 0),\n 28 ) );\n }",
"@Override\r\n\tpublic void setup() {\r\n\t\tthis.gridCells = this.world.getCells();\r\n\t\tthis.markerDrawOrders = new HashMap<Cell, Integer>();\r\n\t\tsetMarkerDrawOrders(this.gridCells);\r\n\t\t//Number of hexagons in columns and rows\r\n\t\tthis.numHexRow = this.gridCells.length;\r\n\t\tthis.numHexCol = this.gridCells[0].length;\r\n\t\t//Calculate the total width and height in pixels the hexagons take up\r\n\t\tthis.totalHexWidth = (this.numHexCol * HEX_WIDTH) + HEX_WIDTH / 2;\r\n\t\tthis.totalHexHeight = \r\n\t\t\t\t(HEX_ANGLE_HEIGHT + HEX_VERT_HEIGHT) \r\n\t\t\t\t* this.numHexRow + HEX_ANGLE_HEIGHT;\r\n\t\t\r\n\t\t//Work out which dimension take up the most space\r\n\t\tif (this.totalHexWidth > this.totalHexHeight) {\r\n\t\t\tthis.largestDimension = Dimensions.HORIZONTAL;\r\n\t\t} else {\r\n\t\t\tthis.largestDimension = Dimensions.VERTICAL;\r\n\t\t}\r\n\t\tsize(PIXEL_WIDTH, PIXEL_HEIGHT);\r\n\t\t\r\n\t\t//Gives the garbage clearer time to free up memory before the \r\n\t\t//background buffer is recalculated\r\n\t\tthis.backgroundBuffer = null; \r\n\t\t//Of screen buffer to where the background tiles of the ant world a are\r\n\t\t//drawn. This means that each time the buffer is drawn to the screen,\r\n\t\t//rather than all the tiles which makes it much faster!\r\n\t\tthis.backgroundBuffer = createGraphics(this.totalHexWidth,\r\n\t\t\t\tthis.totalHexHeight, P2D);\r\n\t\t\r\n\t\tsmooth(); //Turn on anti aliasing\r\n\t\tframeRate(10); //Turn down the frame rate for less processing power\r\n\t\t//Text variables\r\n\t\ttextFont(this.courierFont, 30);\r\n\t\tfill(255); //Fill colour (white) for the text\r\n\t\tthis.zoomer = new ZoomPan(this); // Initialise the zoomer\r\n\t\tthis.zoomer.allowZoomButton(false); \r\n\t\tsetInitialPanAndZoom(); //Set the initial zoom and pan\r\n\t\tupdateImageScale(); //Update the image scales because zoom scale has\r\n\t\t\t\t\t\t\t//been changed\r\n\t\tbufferWorld(); //Buffer the background tiles\r\n\t}",
"@Override\r\n public Shape createShape(RenderContext ctx) {\n float v[] = { -1, -1, 1, 1, -1, 1, 1, 1, 1, -1, 1, 1, // front face\r\n -1, -1, -1, -1, -1, 1, -1, 1, 1, -1, 1, -1, // left face\r\n -1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1 }; // bottom face\r\n\r\n // The vertex normals\r\n float n[] = { 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, // front face\r\n -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, // left face\r\n 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0 }; // bottom face\r\n\r\n // The vertex colors\r\n float c[] = { 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, //\r\n 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, //\r\n 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1 };\r\n\r\n // Texture coordinates\r\n float uv[] = { 0, 0, 1, 0, 1, 1, 0, 1, //\r\n 0, 0, 1, 0, 1, 1, 0, 1, //\r\n 0, 0, 1, 0, 1, 1, 0, 1 };\r\n\r\n // The triangles (three vertex indices for each triangle)\r\n int indices[] = { 0, 2, 3, 0, 1, 2, // front face\r\n 4, 6, 7, 4, 5, 6, // left face\r\n 8, 10, 11, 8, 9, 10 }; // bottom face\r\n\r\n // Construct a data structure that stores the vertices, their\r\n // attributes, and the triangle mesh connectivity\r\n VertexData vertexData = ctx.makeVertexData(12);\r\n vertexData.addElement(c, VertexData.Semantic.COLOR, 3);\r\n vertexData.addElement(v, VertexData.Semantic.POSITION, 3);\r\n vertexData.addElement(n, VertexData.Semantic.NORMAL, 3);\r\n vertexData.addElement(uv, VertexData.Semantic.TEXCOORD, 2);\r\n vertexData.addIndices(indices);\r\n\r\n return new jrtr.Shape(vertexData);\r\n }",
"@Override\n\t\t\tpublic void setUpData(int index, int[][] data, int dataSetupIndex) {\n\t\t\t\tint[] vboIds = data[dataSetupIndex];\n\t\t\t\tif(vboIds[0]!=0) { // le nombre de point\n\t\t\t\t\t// suppression des buffer inutilisés\n\t\t\t\t\tgl.glDeleteBuffers(vboIds.length-1, vboIds,1);\n\t\t\t\t}\n\t\t\t\t// création de deux nouveaux buffer\n\t\t\t\tvboIds = new int[] {0,0,0,0}; // nbPoints, vertex + texture\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t\t\t\n\t\t\t\tgl.glGenBuffers(3, vboIds, 1);\n\t\t\t\tdata[dataSetupIndex] = vboIds;\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// les points\n\t\t\t\tFloatBuffer vertices = Buffers.newDirectFloatBuffer(nbHeight*4*3); // 4 points de 3 coordonnées\n\t\t\t\tFloatBuffer text = Buffers.newDirectFloatBuffer(nbHeight*4*2);\n\t\t\t\tFloatBuffer normals = Buffers.newDirectFloatBuffer(nbHeight*4*3); // 4 points de 3 coordonnées\n\t\t\t\t\n\t\t\t\tfloat positiony=0;\n\t\t\t\tfor(int j = 0;j<nbHeight; j++) {\n\t\t\t\t\tint val = ms.getTheMap()[j][index]; \n\t\t\t\t\tif(val>0){\n\t\t\t\t\t\t// points BL, BR, UR, RL\n\t\t\t\t\t\tvertices.put(0f); vertices.put(positiony-blockHeight); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(blockWidth); vertices.put(positiony-blockHeight); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(blockWidth); vertices.put(positiony); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(0f); vertices.put(positiony); vertices.put(-distance);\n\t\t\t\t\t\t\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// texture\n\t\t\t\t\t\tfloat[] coords = textCoords[val-1];\n\t\t\t\t\t\ttext.put(coords[0]); text.put(coords[3]);\n\t\t\t\t\t\ttext.put(coords[2]); text.put(coords[3]);\n\t\t\t\t\t\ttext.put(coords[2]); text.put(coords[1]);\n\t\t\t\t\t\ttext.put(coords[0]); text.put(coords[1]);\n\t\t\t\t\t}\n\t\t\t\t\tpositiony-=blockHeight;\n\t\t\t\t}\n\t\t\t\tvertices.flip();\n\t\t\t\ttext.flip();\n\t\t\t\tnormals.flip();\n\t\t\t\tvboIds[0] = vertices.limit() / 3; // nb points\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\n\t\t\t\t// les points\n\t\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[1]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL.GL_ARRAY_BUFFER, vertices.limit() * Buffers.SIZEOF_FLOAT, vertices, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0);\n\t\t\t\t\n\t\t // les textures\n\t\t gl.glBindBuffer(GL2.GL_ARRAY_BUFFER, vboIds[2]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL2.GL_ARRAY_BUFFER, text.limit() * Buffers.SIZEOF_FLOAT, text, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL2.GL_ARRAY_BUFFER, 0);\n\t\t \n\t\t // normals\n\t\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[3]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL.GL_ARRAY_BUFFER, normals.limit() * Buffers.SIZEOF_FLOAT, normals, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0);\n\t\t \n\t\t\t}",
"public static DeformableMesh3D createRectangleMesh(double width, double height, double depth, double segment_size){\n ArrayList<double[]> pts = new ArrayList<double[]>();\n ArrayList<int[]> connections = new ArrayList<int[]>();\n ArrayList<int[]> triangles = new ArrayList<int[]>();\n //For the complete length there will be n+1 nodes\n int nx = (int)(width/segment_size + 0.5) + 1;\n int ny = (int)(height/segment_size+0.5) + 1;\n int nz = (int)(depth/segment_size+0.5) + 1;\n double actual_w = (nx-1)*segment_size;\n double actual_h = (ny-1)*segment_size;\n double actual_z = (nz-1)*segment_size;\n\n int dex;\n\n //top face x-y @ actual_z/2\n int top_starting_dex = pts.size();\n for(int i = 0; i<nx; i++){\n for(int j = 0; j<ny; j++){\n dex = top_starting_dex + i*ny + j;\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n j*segment_size - actual_h/2,\n actual_z/2\n });\n\n //create a connection\n if(i>0){\n connections.add(new int[]{\n dex,\n dex - ny\n });\n }\n\n if(j>0){\n connections.add(new int[]{\n dex,\n dex-1\n });\n }\n }\n }\n\n for(int i = 1; i<nx; i++){\n for(int j = 1; j<ny; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n (j-0.5)*segment_size - actual_h/2,\n actual_z/2\n });\n //first\n int a_dex = top_starting_dex + (i-1)*ny + (j-1);\n connections.add(new int[]{dex,a_dex});\n int b_dex = top_starting_dex + (i)*ny + (j-1);\n connections.add(new int[]{dex,b_dex});\n int c_dex = top_starting_dex + (i)*ny + (j);\n connections.add(new int[]{dex,c_dex});\n int d_dex = top_starting_dex + (i-1)*ny + (j);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, a_dex, b_dex});\n triangles.add(new int[]{dex, b_dex, c_dex});\n triangles.add(new int[]{dex, c_dex, d_dex});\n triangles.add(new int[]{dex, d_dex, a_dex});\n\n }\n }\n\n\n //bottom face x-y @ -actual_z/2\n int bottom_starting_dex = pts.size();\n for(int i = 0; i<nx; i++){\n for(int j = 0; j<ny; j++){\n\n dex = bottom_starting_dex + i*ny + j;\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n j*segment_size - actual_h/2,\n -actual_z/2\n });\n\n //create a connection\n if(i>0){\n connections.add(new int[]{\n dex,\n dex - ny\n });\n }\n\n if(j>0){\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n\n\n }\n }\n //bottom face\n for(int i = 1; i<nx; i++){\n for(int j = 1; j<ny; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n (j-0.5)*segment_size - actual_h/2,\n -actual_z/2\n });\n //first\n int a_dex = bottom_starting_dex + (i-1)*ny + (j-1);\n connections.add(new int[]{dex,a_dex});\n int b_dex = bottom_starting_dex + (i)*ny + (j-1);\n connections.add(new int[]{dex,b_dex});\n int c_dex = bottom_starting_dex + (i)*ny + (j);\n connections.add(new int[]{dex,c_dex});\n int d_dex = bottom_starting_dex + (i-1)*ny + (j);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n\n\n //left face y-z @ -actual_x/2\n int left_starting_dex = pts.size();\n for(int i = 0; i<ny; i++){\n for(int j = 1; j<nz-1; j++){\n dex = left_starting_dex + i*(nz-2) + (j-1);\n pts.add(new double[]{\n -actual_w/2,\n i*segment_size - actual_h/2,\n j*segment_size - actual_z/2\n });\n\n //creates a connection\n if(i>0){\n //previous row\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n //previous column\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n }\n }\n\n\n //left face connections\n for(int i = 0; i<ny; i++){\n connections.add(new int[]{\n top_starting_dex + i,\n left_starting_dex + i*(nz-2) + (nz-3)\n });\n\n connections.add(new int[]{\n bottom_starting_dex + i,\n left_starting_dex + i*(nz-2)\n });\n\n }\n\n //left face triangles\n for(int i = 1; i<ny; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n -actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = left_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = left_starting_dex + (i)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = left_starting_dex + (i)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = left_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n //left face merging triangles\n for(int i = 1; i<ny; i++){\n\n dex = pts.size();\n\n pts.add(new double[]{\n -actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = bottom_starting_dex + i-1;\n int b_dex = bottom_starting_dex + i;\n int c_dex = left_starting_dex + i*(nz-2);\n int d_dex = left_starting_dex + (i-1)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n dex = pts.size();\n\n pts.add(new double[]{\n -actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = top_starting_dex + i;\n b_dex = top_starting_dex + i-1;\n c_dex = left_starting_dex + (i-1)*(nz-2) + (nz-3);\n d_dex = left_starting_dex + (i)*(nz-2) + (nz-3);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n //right face y-z @ actual_x/2\n int right_starting_dex = pts.size();\n for(int i = 0; i<ny; i++){\n for(int j = 1; j<nz-1; j++){\n dex = right_starting_dex + i*(nz-2) + (j-1);\n pts.add(new double[]{\n actual_w/2,\n i*segment_size - actual_h/2,\n j*segment_size - actual_z/2\n });\n\n //creates a connection\n if(i>0){\n //previous row\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n //previous column\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n }\n }\n\n for(int i = 0; i<ny; i++){\n connections.add(new int[]{\n top_starting_dex + i + ny*(nx-1),\n right_starting_dex + i*(nz-2) + (nz-3)\n });\n\n connections.add(new int[]{\n bottom_starting_dex + i + ny*(nx-1),\n right_starting_dex + i*(nz-2)\n });\n\n }\n\n //right face triangles\n for(int i = 1; i<ny; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = right_starting_dex + (i)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = right_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = right_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = right_starting_dex + (i)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n\n //right face merging triangles\n for(int i = 1; i<ny; i++){\n /*\n connections.add(new int[]{\n top_starting_dex + i,\n left_starting_dex + i*(nz-2) + (nz-3)\n });\n */\n dex = pts.size();\n\n pts.add(new double[]{\n actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = bottom_starting_dex + i + ny*(nx-1);\n int b_dex = bottom_starting_dex + i-1 + ny*(nx-1);\n int c_dex = right_starting_dex + (i-1)*(nz-2);\n int d_dex = right_starting_dex + (i)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n dex = pts.size();\n\n pts.add(new double[]{\n actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = top_starting_dex + i-1 + ny*(nx-1);\n b_dex = top_starting_dex + i + ny*(nx-1);\n c_dex = right_starting_dex + (i)*(nz-2) + (nz-3);\n d_dex = right_starting_dex + (i-1)*(nz-2) + (nz-3);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n\n //front face x-z @ -actual_y/2\n int front_starting_dex = pts.size();\n for(int i = 1; i<nx-1; i++){\n for(int j = 1; j<nz-1; j++){\n dex = front_starting_dex + (i-1)*(nz-2) + (j-1);\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n -actual_h/2,\n j*segment_size - actual_z/2\n });\n\n if(i>1){\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n\n\n }\n }\n\n //connect to top and bottom.\n for(int i = 1; i<nx-1; i++){\n connections.add(new int[]{\n front_starting_dex + (i-1)*(nz - 2),\n bottom_starting_dex + i*ny\n });\n\n connections.add(new int[]{\n front_starting_dex + (i-1)*(nz - 2) + (nz-3),\n top_starting_dex + i*ny\n });\n\n }\n\n //connect to left and right\n for(int j = 1; j<nz-1; j++){\n connections.add(new int[]{\n front_starting_dex + (j-1),\n left_starting_dex + j - 1\n });\n\n connections.add(new int[]{\n front_starting_dex + (j-1) + (nz-2)*(nx-3),\n right_starting_dex + j - 1\n });\n }\n\n //front face triangles\n for(int i = 2; i<nx-1; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n -actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = front_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = front_starting_dex + (i-2)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = front_starting_dex + (i-2)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = front_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n //front face triangles merging to top/bottom sans corners.\n for(int i = 2; i<nx-1; i++){\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n -actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = front_starting_dex + (i-2)*(nz - 2);\n int b_dex = front_starting_dex + (i-1)*(nz - 2);\n int c_dex = bottom_starting_dex + i*ny;\n int d_dex = bottom_starting_dex + (i-1)*ny;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n -actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = front_starting_dex + (i-1)*(nz - 2) + (nz-3);\n b_dex = front_starting_dex + (i-2)*(nz - 2) + (nz-3);\n c_dex = top_starting_dex + (i-1)*ny;\n d_dex = top_starting_dex + i*ny;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n //front face triangles merging to left and right sans corners.\n for(int j = 2; j<nz-1; j++){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n -actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n int a_dex = front_starting_dex + (j-1);\n int b_dex = front_starting_dex + (j-2);\n int c_dex = left_starting_dex + j - 2;\n int d_dex = left_starting_dex + j - 1;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n -actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n a_dex = front_starting_dex + (j-2) + (nz-2)*(nx-3);\n b_dex = front_starting_dex + (j-1) + (nz-2)*(nx-3);\n c_dex = right_starting_dex + j - 1;\n d_dex = right_starting_dex + j - 2;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n //front triangles four corners.\n for(int j = 1; j<nz; j+=nz-2){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n -actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n\n\n int a_dex, b_dex, c_dex, d_dex;\n\n if(j==1){\n a_dex = front_starting_dex;\n b_dex = bottom_starting_dex + ny;\n c_dex = bottom_starting_dex;\n d_dex = left_starting_dex;\n } else{\n a_dex = front_starting_dex + nz-3;\n b_dex = left_starting_dex + nz-3;\n c_dex = top_starting_dex;\n d_dex = top_starting_dex + ny;\n }\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n -actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n\n if(j==1){\n a_dex = front_starting_dex + (nx-3)*(nz - 2);\n b_dex = right_starting_dex;\n c_dex = bottom_starting_dex + (nx-1)*(ny);\n d_dex = bottom_starting_dex + (nx-2)*(ny);\n } else{\n a_dex = front_starting_dex + (nx-2)*(nz - 2) -1;\n b_dex = top_starting_dex + (nx-2)*(ny);\n c_dex = top_starting_dex + (nx-1)*(ny);\n d_dex = right_starting_dex + nz-3;\n }\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n\n //back plane\n int back_starting_dex = pts.size();\n for(int i = 1; i<nx-1; i++){\n for(int j = 1; j<nz-1; j++){\n dex = back_starting_dex + (i-1)*(nz-2) + (j-1);\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n actual_h/2,\n j*segment_size - actual_z/2\n });\n\n if(i>1){\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n\n\n }\n }\n\n\n //connect to top and bottom.\n for(int i = 1; i<nx-1; i++){\n connections.add(new int[]{\n back_starting_dex + (i-1)*(nz - 2),\n bottom_starting_dex + i*ny + ny-1\n });\n\n connections.add(new int[]{\n back_starting_dex + (i-1)*(nz - 2) + (nz-3),\n top_starting_dex + i*ny + ny-1\n });\n\n }\n\n\n //connect to left and right\n for(int j = 1; j<nz-1; j++){\n connections.add(new int[]{\n back_starting_dex + (j-1),\n left_starting_dex + j - 1 + (ny-1)*(nz-2)\n });\n\n connections.add(new int[]{\n back_starting_dex + (j-1) + (nz-2)*(nx-3),\n right_starting_dex + j - 1 + (ny-1)*(nz-2)\n });\n }\n\n //back face triangles\n for(int i = 2; i<nx-1; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = back_starting_dex + (i-2)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = back_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = back_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = back_starting_dex + (i-2)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n\n //back face triangles merging to top/bottom sans corners.\n for(int i = 2; i<nx-1; i++){\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = back_starting_dex + (i-1)*(nz - 2);\n int b_dex = back_starting_dex + (i-2)*(nz - 2);\n int c_dex = bottom_starting_dex + (i-1)*ny + ny - 1;\n int d_dex = bottom_starting_dex + (i)*ny + ny - 1;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = back_starting_dex + (i-2)*(nz - 2) + (nz-3);\n b_dex = back_starting_dex + (i-1)*(nz - 2) + (nz-3);\n c_dex = top_starting_dex + (i)*ny + ny - 1;\n d_dex = top_starting_dex + (i-1)*ny + ny - 1;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n //back face triangles merging to left and right sans corners.\n for(int j = 2; j<nz-1; j++){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n int a_dex = back_starting_dex + (j-2);\n int b_dex = back_starting_dex + (j-1);\n int c_dex = left_starting_dex + j - 1 + (ny-1)*(nz-2);\n int d_dex = left_starting_dex + j - 2 + (ny-1)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n a_dex = back_starting_dex + (j-1) + (nz-2)*(nx-3);\n b_dex = back_starting_dex + (j-2) + (nz-2)*(nx-3);\n c_dex = right_starting_dex + j - 2+ (ny-1)*(nz-2);\n d_dex = right_starting_dex + j - 1+ (ny-1)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n //back triangles four corners.\n for(int j = 1; j<nz; j+=nz-2){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n\n\n int a_dex, b_dex, c_dex, d_dex;\n\n if(j==1){\n a_dex = back_starting_dex;\n b_dex = left_starting_dex + (ny-1)*(nz-2);\n c_dex = bottom_starting_dex + ny -1;\n d_dex = bottom_starting_dex + 2*ny - 1;\n } else{\n a_dex = back_starting_dex + nz-3;\n b_dex = top_starting_dex + 2*ny - 1;\n c_dex = top_starting_dex + ny - 1;\n d_dex = left_starting_dex + (ny)*(nz-2) - 1 ;\n }\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n\n if(j==1){\n a_dex = back_starting_dex + (nx-3)*(nz - 2);\n b_dex = bottom_starting_dex + (nx-1)*(ny) - 1;\n c_dex = bottom_starting_dex + (nx)*(ny) - 1;\n d_dex = right_starting_dex + (nz-2)*(ny-1);\n } else{\n a_dex = back_starting_dex + (nx-2)*(nz - 2) -1;\n b_dex = right_starting_dex + (nz-2)*(ny-1) + nz - 3;\n c_dex = top_starting_dex + (nx)*(ny) -1;\n d_dex = top_starting_dex + (nx-1)*(ny) -1;\n }\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n final DeformableMesh3D mesh = new DeformableMesh3D(pts, connections, triangles);\n\n return mesh;\n }",
"private void _drawTriangle(Graphics2D g, Triangle t, TriangleMesh tMesh) {\r\n // Get triangle data\r\n Vector3f a = tMesh.getVertex(t.getA()).getPosition();\r\n Vector3f b = tMesh.getVertex(t.getB()).getPosition();\r\n Vector3f c = tMesh.getVertex(t.getC()).getPosition();\r\n // Draw edges of the triangle with provided algorithm\r\n String algorithm = RenderApplication.properties.getProperty(\"draw.algorithm\");\r\n if(algorithm.equals(\"Bresenham\")) {\r\n drawRasterLine(g, new Vector2f(a.x, a.y), new Vector2f(b.x, b.y));\r\n drawRasterLine(g, new Vector2f(b.x, b.y), new Vector2f(c.x, c.y));\r\n drawRasterLine(g, new Vector2f(c.x, c.y), new Vector2f(a.x, a.y));\r\n } else if (algorithm.equals(\"Scanline\")) {\r\n ArrayList<Vector2f> vertices = new ArrayList<>();\r\n // This drawing algorithm also draws lines between vertices with Bresenham\r\n vertices.addAll(drawRasterLine(g, new Vector2f(a.x, a.y), new Vector2f(b.x, b.y)));\r\n vertices.addAll(drawRasterLine(g, new Vector2f(b.x, b.y), new Vector2f(c.x, c.y)));\r\n vertices.addAll(drawRasterLine(g, new Vector2f(c.x, c.y), new Vector2f(a.x, a.y)));\r\n // Actual Scanline algorithm\r\n drawScanlines(g, vertices);\r\n // Clear vertices for next iteration\r\n vertices.clear();\r\n } else {\r\n // Draw the 'standard' way with drawLine from framework\r\n drawLine(g, new Vector2f(a.x, a.y), new Vector2f(b.x, b.y), Color.RED);\r\n drawLine(g, new Vector2f(b.x, b.y), new Vector2f(c.x, c.y), Color.RED);\r\n drawLine(g, new Vector2f(c.x, c.y), new Vector2f(a.x, a.y), Color.RED);\r\n }\r\n\r\n }",
"private void createRenderables()\n {\n this.gridElements = new ArrayList<GridElement>();\n\n ArrayList<Position> positions = new ArrayList<Position>();\n double step = sector.getDeltaLatDegrees() / this.divisions;\n\n // Generate meridians with labels\n double lon = sector.getMinLongitude().degrees + (this.level == 0 ? 0 : step);\n while (lon < sector.getMaxLongitude().degrees - step / 2)\n {\n Angle longitude = Angle.fromDegrees(lon);\n // Meridian\n positions.clear();\n positions.add(new Position(this.sector.getMinLatitude(), longitude, 0));\n positions.add(new Position(this.sector.getMaxLatitude(), longitude, 0));\n\n Object polyline = createLineRenderable(positions, Polyline.LINEAR);\n Sector sector = Sector.fromDegrees(\n this.sector.getMinLatitude().degrees, this.sector.getMaxLatitude().degrees, lon, lon);\n String lineType = lon == this.sector.getMinLongitude().degrees ?\n GridElement.TYPE_LINE_WEST : GridElement.TYPE_LINE;\n GridElement ge = new GridElement(sector, polyline, lineType);\n ge.value = lon;\n this.gridElements.add(ge);\n\n // Increase longitude\n lon += step;\n }\n\n // Generate parallels\n double lat = this.sector.getMinLatitude().degrees + (this.level == 0 ? 0 : step);\n while (lat < this.sector.getMaxLatitude().degrees - step / 2)\n {\n Angle latitude = Angle.fromDegrees(lat);\n positions.clear();\n positions.add(new Position(latitude, this.sector.getMinLongitude(), 0));\n positions.add(new Position(latitude, this.sector.getMaxLongitude(), 0));\n \n Object polyline = createLineRenderable(positions, Polyline.LINEAR);\n Sector sector = Sector.fromDegrees(\n lat, lat, this.sector.getMinLongitude().degrees, this.sector.getMaxLongitude().degrees);\n String lineType = lat == this.sector.getMinLatitude().degrees ?\n GridElement.TYPE_LINE_SOUTH : GridElement.TYPE_LINE;\n GridElement ge = new GridElement(sector, polyline, lineType);\n ge.value = lat;\n this.gridElements.add(ge);\n\n // Increase latitude\n lat += step;\n }\n }",
"public Triangulation(WifiManager wm, Map<String, Object> initParams,\n\t\t\tContext context) {\n\t\ttriangMethod = (String) initParams.get(TRIANG_METHOD);\n\n\t\twifiScanner = new WiFiScanner(wm, initParams, context);\n\t}",
"private List<TriangleBatch> loadTriangles(URL filePath) {\r\n\t\ttriangleStrips = new ArrayList<TriangleBatch>();\r\n\t\tFile fi;\r\n\t\ttry {\r\n\t\t\tfi = new File(filePath.toURI());\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (fi == null || !fi.canRead()) {\r\n\t\t\t\tthrow new OMTException(\"Can't open ABEMesh! \" + fi.toString(), null);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tFileInputStream file = new FileInputStream(fi);\r\n\t\t\t\r\n\t\t\t//read number of points (stored as unsigned int)\r\n\t\t\tbyte[] numberOfPoints = new byte[BitMath.sizeOfUnsignedInt];\r\n\t\t\tfile.read(numberOfPoints);\r\n\t\t\tnumOfPoints = BitMath.convertByteArrayToInt(numberOfPoints);\r\n\t\t\t\r\n\t\t\t//read points\r\n\t\t\t//3 floats for normals followed by 3 floats for coordinates per point\r\n\t\t\tpoints = new byte[BitMath.sizeOfFloat * 6 * numOfPoints];\r\n\t\t\tfile.read(points);\r\n\r\n\t\t\t\r\n\t\t\t//read number of triangle strips\r\n\t\t\tbyte[] numberOfTriangleStrips = new byte[BitMath.sizeOfUnsignedInt];\r\n\t\t\tfile.read(numberOfTriangleStrips);\r\n\t\t\t\r\n\t\t\tthis.processNormalsAndVertices();\r\n\t\t\t\r\n\t\t\t//read triangle strips\r\n\t\t\tint numberOfTriStrips = BitMath.convertByteArrayToInt(numberOfTriangleStrips);\r\n\r\n\t\t\tfor (int i = 0; i < numberOfTriStrips; i++) {\r\n\t\t\t\t\r\n\t\t\t\t//read number of points in the strip\r\n\t\t\t\tbyte[] numberOfPointsInStrip = new byte[BitMath.sizeOfUnsignedShort];\r\n\t\t\t\tfile.read(numberOfPointsInStrip);\r\n\t\t\t\t\r\n\t\t\t\t//read point indicies\r\n\t\t\t\tint numberOfPtsInStrip = BitMath.convertByteArrayToInt(numberOfPointsInStrip);\r\n\t\t\t\tbyte[] triangles = new byte[BitMath.sizeOfUnsignedInt * numberOfPtsInStrip];\r\n\t\t\t\tfile.read(triangles);\r\n\t\t\t\t\r\n\t\t\t\tif (numberOfPtsInStrip > 0) {\r\n\t\t\t\t\ttriangleStrips.add(createTriangleStrip(numberOfPtsInStrip, triangles));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn triangleStrips;\r\n\t}",
"public void constructDrawing(){\r\n\r\n resetToEmpty(); // should be empty anyway\r\n\r\n// universe=TFormula.atomicTermsInListOfFormulas(fInterpretation);\r\n \r\n Set <String> universeStrSet=TFormula.atomicTermsInListOfFormulas(fInterpretation);\r\n \r\n universe=\"\";\r\n \r\n for (Iterator i=universeStrSet.iterator();i.hasNext();)\r\n \tuniverse+=i.next();\r\n \r\n\r\n findPropertyExtensions();\r\n\r\n findRelationsExtensions();\r\n\r\n determineLines();\r\n\r\n createProperties();\r\n\r\n createIndividuals();\r\n\r\n createRelations();\r\n\r\n deselect(); //all shapes are created selected\r\n\r\n\r\n fPalette.check(); // some of the names may need updating\r\n\r\n repaint();\r\n\r\n}",
"public void generate() {\n\t\t\n\t\t// For this system, there are two particles per cell:\n\t\tint nc = size[0][0]*size[0][1]*size[0][2];\n\t\tn = 3*nc;\n\t\t\n\t\t// The AB2 Lattice:\n\t\tAB2Lattice ab2 = new AB2Lattice();\n\t\tab2.setSizeInCells(size[0][0],size[0][1],size[0][2]);\n\t\t\n\t\t// Stick them in the latt member:\n\t\tlatt = new VectorD3[2][];\n\t\tlatt[0] = new VectorD3[n];\t\t\n\t\tSystem.arraycopy(ab2.getLattice(0),0,latt[0], 0, nc);\n\t\tSystem.arraycopy(ab2.getLattice(1),0,latt[0], nc, 2*nc);\n\t\tlatt_name[0] = \"AB2\";\n\t\tab2.saveAsWRL(\"initAB2\");\n\t\t\n\t\t// Build the A and B lattices, A first, then B second:\n\n\t\t// The seperate A and B2 lattices\n\t\tFaceCentredCubicABCLattice fcc = new FaceCentredCubicABCLattice();\n\t\t\n\t\t// Create the new system at the new size:\n\t\tNtp = n-nc;\n\t\tfcc.setSizeInCells(size[1][0],size[1][1],size[1][2]);\n\n\t\t// Copy the two FCC lattices into the 1th phase:\n\t\tlatt[1] = new VectorD3[n];\n\t\tlatt_name[1] = \"FCC\";\n\t\tSystem.arraycopy(fcc.getLattice(), 0, latt[1], 0, n);\n\n\t\t/* Define distances between neighbouring atoms in the same stacking plane \n\t\t * taking advantage of the fact that both lattices have the same Unit Cell: */\n\t\tdouble[] c_uc = new double[3];\n\t\tc_uc = ab2.getUnitCell();\n\t\tuc.x = c_uc[0];\n\t\tuc.y = c_uc[1];\n\t\tuc.z = c_uc[2];\n\t\t\n\t\t// Put the lattices in the class members, for later use:\n\t\tlats[0] = (Lattice)ab2;\n\t\tlats[1] = (Lattice)fcc;\n\t\t\n\t}",
"public void generate() {\n\t\t\n\t\t// For this system, there are three particles per cell:\n\t\tint nx = size[0][0];\n\t\tint ny = size[0][0];\n\t\tint nz = size[0][0];\n\t\tint nc = nx*ny*nz;\n\t\tn = 3*nc;\n\n\t\t\n\t\t// The AB2 Lattice:\n\t\tAB2Lattice ab2 = new AB2Lattice();\n\t\tab2.setSizeInCells(nx,ny,nz);\n\t\t\n\t\t// Stick them in the latt member:\n\t\tlatt = new VectorD3[2][];\n\t\tlatt[0] = new VectorD3[n];\n\t\tSystem.arraycopy(ab2.getLattice(0),0,latt[0], 0, nx*ny*nz);\n\t\tSystem.arraycopy(ab2.getLattice(1),0,latt[0], nx*ny*nz, 2*nx*ny*nz);\n\t\tlatt_name[0] = \"AB2\";\n\t\tab2.saveAsXYZ(\"initAB2\");\n\t\tab2.saveAsWRL(\"initAB2\");\n\t\t\n\t\t// Build the A and B lattices, A first, then B second:\n\n\t\t// The seperate A and B2 lattices\n\t\tFaceCentredCubicABCLattice fcca = new FaceCentredCubicABCLattice();\n\t\tFaceCentredCubicABCLattice fccb = new FaceCentredCubicABCLattice();\n\t\tfcca.setSizeInCells(nx,ny,nz);\n\t\t\n\t\t// B lattice requires more care:\n\t\tNtp = 2*nx*ny*nz;\n\t\tint nbx = (int) Math.round(Math.pow(Ntp,1.0/3.0));\n\t\tint nby = nbx;\n\t\tint nbz = nbx;\n\t\tif( nbx*nby*nbz != 2*nx*ny*nz ) {\n\t\t\t// Warn that we cannot create a sensible B-phase with this number of particles:\n\t\t\tSystem.out.println(\" H WARNING: AB2Fcc2SwitchMap cannot create a cubic B-FCC phase with \"+(2*nx*ny*nz)+\" particles.\");\n\t\t\t// Fall back to a system that is simply twice as long in one dimension (z):\n\t\t\tnbx = nx;\n\t\t\tnby = ny;\n\t\t\tnbz = 2*nz;\n\t\t\tSystem.out.println(\" H WARNING: AB2Fcc2SwitchMap creating a phase that is twice as long in the z-direction: [\"+nbx+\",\"+nby+\",\"+nbz+\"].\");\n\t\t}\n\t\t// Create the new system at the new size:\n\t\tfccb.setSizeInCells(nbx,nby,nbz);\n\n\t\t// Copy the two FCC lattices into the 1th phase:\n\t\tlatt[1] = new VectorD3[n];\n\t\tlatt_name[1] = \"2.FCC\";\n\t\tSystem.arraycopy(fcca.getLattice(), 0, latt[1], 0, nx*ny*nz);\n\t\tSystem.arraycopy(fccb.getLattice(), 0, latt[1], nx*ny*nz, Ntp);\n\n\t\t// Set up the dimensions of the third-phase box:\n\t\tboxT.x = fccb.getBasicUnitCell()[0]*nbx;\n\t\tboxT.y = fccb.getBasicUnitCell()[1]*nby;\n\t\tboxT.z = fccb.getBasicUnitCell()[2]*nbz;\n\n\t\t/* Define distances between neighbouring atoms in the same stacking plane \n\t\t * taking advantage of the fact that both lattices have the same Unit Cell: */\n\t\tdouble[] c_uc = new double[3];\n\t\tc_uc = fcca.getUnitCell();\n\t\tSystem.out.println(\" H DEBUG FCC UC [ \"+c_uc[0]+\" \"+c_uc[1]+\" \"+c_uc[2]);\n\t\tc_uc = ab2.getUnitCell();\n\t\tSystem.out.println(\" H DEBUG AB2 UC [ \"+c_uc[0]+\" \"+c_uc[1]+\" \"+c_uc[2]);\n\t\tuc.x = c_uc[0];\n\t\tuc.y = c_uc[1];\n\t\tuc.z = c_uc[2];\n\t\t\n\t\t// Put the lattices in the class members, for later use:\n\t\tlats[0] = (Lattice)ab2;\n\t\tlats[1] = (Lattice)fcca;\n\t\tlatT = (Lattice)fccb;\n\n\t}",
"@Override\r\n public void generateDisplayList(GL2 gl, GLU glu) {\r\n ArrayList<double[]> triangle = null;\r\n\r\n /*\r\n * List of all vertices describing the contour of the border, as well as the\r\n * vertices color and texture coordinates.\r\n */\r\n ArrayList<double[]> borderTriangle = null;\r\n\r\n // Get a denominator for the display list\r\n displayList = gl.glGenLists(1);\r\n\r\n // Create the display list\r\n gl.glNewList(displayList, GL2.GL_COMPILE);\r\n // Store the current OpenGL attribute states\r\n gl.glPushAttrib(GL2.GL_ALL_ATTRIB_BITS);\r\n\r\n /*\r\n * Set the alpha value of the colors. The opacity of the whole object\r\n * (opacity) always has a higher priority.\r\n */\r\n if (opacity < 1) {\r\n fillColor.setAlpha(opacity);\r\n borderColor.setAlpha(opacity);\r\n } else {\r\n fillColor.setAlpha(fillOpacity);\r\n borderColor.setAlpha(1);\r\n }\r\n\r\n // Don't draw if the dimensions are too small\r\n if (sideLength > 0) {\r\n\r\n // Create a list storing the triangles vertices\r\n triangle = new ArrayList<double[]>();\r\n\r\n // Check if the triangle will be rendered with a texture applied on it\r\n if (texture != null) {\r\n\r\n // Calculate the triangles contour\r\n calculateContour(triangle, null);\r\n\r\n // Set the triangles color to white (because of texture)\r\n applyColor(triangle, new Color(Color.WHITE));\r\n\r\n // Map the texture to the triangle\r\n applyTexture(triangle, texture.getImageTexCoords());\r\n\r\n // Enable texture support\r\n texture.enable();\r\n\r\n // Draw the textured triangle\r\n TessellatedPolygon poly = new TessellatedPolygon();\r\n poly.init(gl, glu);\r\n poly.beginPolygon();\r\n poly.beginContour();\r\n poly.renderContour(triangle);\r\n poly.endContour();\r\n poly.endPolygon();\r\n poly.end();\r\n poly = null;\r\n\r\n // Disable texture support\r\n texture.disable();\r\n } else {\r\n\r\n // Check if the triangle will be rendered with a border\r\n if (borderWidth > 0) {\r\n\r\n // Create a list storing the borders vertices\r\n borderTriangle = new ArrayList<double[]>(1);\r\n\r\n // Calculate the triangles contour and the contour of the border\r\n calculateContour(triangle, null);\r\n calculateContour(triangle, borderTriangle);\r\n\r\n // Apply the border color\r\n applyColor(triangle, borderColor);\r\n applyColor(borderTriangle, borderColor);\r\n\r\n // Don't apply any texture\r\n applyTexture(triangle, null);\r\n applyTexture(borderTriangle, null);\r\n\r\n // Draw the border\r\n TessellatedPolygon poly = new TessellatedPolygon();\r\n poly.init(gl, glu);\r\n poly.setWindingRule(GLU.GLU_TESS_WINDING_ODD);\r\n poly.beginPolygon();\r\n poly.beginContour();\r\n poly.renderContour(triangle);\r\n poly.endContour();\r\n poly.beginContour();\r\n poly.renderContour(borderTriangle);\r\n poly.endContour();\r\n poly.endPolygon();\r\n poly.end();\r\n\r\n // Apply the fill color\r\n applyColor(borderTriangle, fillColor);\r\n\r\n // Draw the inner triangle\r\n poly.init(gl, glu);\r\n poly.beginPolygon();\r\n poly.beginContour();\r\n poly.renderContour(borderTriangle);\r\n poly.endContour();\r\n poly.endPolygon();\r\n poly.end();\r\n poly = null;\r\n } else {\r\n\r\n // Calculate the contour of the triangle\r\n calculateContour(triangle, null);\r\n\r\n // Apply the fill color to the triangle\r\n applyColor(triangle, fillColor);\r\n\r\n // Don't apply any texture\r\n applyTexture(triangle, null);\r\n\r\n // Draw the triangle without border\r\n TessellatedPolygon poly = new TessellatedPolygon();\r\n poly.init(gl, glu);\r\n poly.beginPolygon();\r\n poly.beginContour();\r\n poly.renderContour(triangle);\r\n poly.endContour();\r\n poly.endPolygon();\r\n poly.end();\r\n poly = null;\r\n }\r\n }\r\n }\r\n\r\n // Restore the OpenGL attribute states\r\n gl.glPopAttrib();\r\n gl.glEndList();\r\n }",
"public void triangulate() {\n // Save the outline and calculate normals\n outline = new Vector<PlanarEdge>();\n for (PlanarEdge e : subdivision.getEdges()) {\n if (e.isRealEdge()) {\n outline.add(e);\n }\n }\n // Calculate outline normals\n outline_normals = new Vector3f[outline.size()];\n for (PlanarEdge e : outline) {\n TriangulationVertex vert = (TriangulationVertex) e.getDestination();\n // Normal 1\n Vector3f normal1 = new Vector3f(vert.getOutGoingEdge()\n .getDestination().getPoint())\n .subtractLocal(vert.getPoint()).normalizeLocal();\n // Vector3f normal1 = new\n // Vector3f(vert.getOutGoingEdge().getDestination().getPoint()).subtractLocal(vert.getPoint());\n normal1.z = -normal1.x;\n normal1.x = normal1.y;\n normal1.y = normal1.z;\n normal1.z = 0;\n // Normal 2\n Vector3f normal2 = new Vector3f(vert.getPoint()).subtractLocal(\n vert.getInGoingEdge().getOrigin().getPoint())\n .normalizeLocal();\n // Vector3f normal2 = new\n // Vector3f(vert.getPoint()).subtractLocal(vert.getInGoingEdge().getOrigin().getPoint());\n normal2.z = -normal2.x;\n normal2.x = normal2.y;\n normal2.y = normal2.z;\n normal2.z = 0;\n normal1.addLocal(normal2).normalizeLocal();\n\n outline_normals[vert.getIndex()] = normal1;\n }\n\n // Calculate the triangulation of the surface.\n surface = subdivision.triangulate();\n }",
"public static void AddStripToGrid(ArrayList<ArrayList<Points>> G, ArrayList<Points> strip_temp, double cell_width)\n {\n Collections.sort(strip_temp, new MyComparatorY());\n \n ArrayList<Points> Box = new ArrayList<>(); \n \n for(int i = 0; i < strip_temp.size(); i++)\n {\n ArrayList<Points> q = new ArrayList<>();\n \n q.add(new Points(strip_temp.get(i).x_cor, strip_temp.get(i).y_cor, strip_temp.get(i).p_id, \"no tag\"));\n \n Box.add(new Points(q.get(0).x_cor, q.get(0).y_cor, q.get(0).p_id, q.get(0).tag));\n \n \n int break_flag = 0;\n \n bnm:\n for(int j = i+1; j < strip_temp.size(); j++)\n {\n ArrayList<Points> r = new ArrayList<>();\n \n r.add(new Points(strip_temp.get(j).x_cor, strip_temp.get(j).y_cor, strip_temp.get(j).p_id, \"no tag\"));\n \n double box_dist = (q.get(0).y_cor + cell_Width);\n \n if(r.get(0).y_cor > (q.get(0).y_cor + cell_Width))\n {\n ArrayList<Points> box_temp = new ArrayList<>();\n \n box_temp.addAll(Box);\n \n G.add(box_temp);\n \n break_flag = 1;\n Box.clear();\n \n break bnm;\n }\n \n Box.add(new Points(r.get(0).x_cor, r.get(0).y_cor, r.get(0).p_id, r.get(0).tag));\n \n i=j;\n }\n \n if(break_flag == 0)\n {\n \n ArrayList<Points> box_temp = new ArrayList<>();\n box_temp.addAll(Box);\n\n Box.clear();\n G.add(box_temp);\n } \n }\n }",
"private void mkMesh()\n\t{\n\t\t/* this initialises the the two FloatBuffer objects */\n\t\n\t\tfloat vertices[] = {\n\t\t\t-0.5f, -0.5f, 0.0f,\t\t// V1 - bottom left\n\t\t\t-0.5f, 0.5f, 0.0f,\t\t// V2 - top left\n\t\t\t 0.5f, -0.5f, 0.0f,\t\t// V3 - bottom right\n\t\t\t 0.5f, 0.5f, 0.0f\t\t\t// V4 - top right\n\t\t\t};\n\t\tfloat texture[] = { \t\t\n\t\t\t// Mapping coordinates for the vertices\n\t\t\t0.0f, 1.0f,\t\t// top left\t\t(V2)\n\t\t\t0.0f, 0.0f,\t\t// bottom left\t(V1)\n\t\t\t1.0f, 1.0f,\t\t// top right\t(V4)\n\t\t\t1.0f, 0.0f\t\t// bottom right\t(V3)\n\t\t\t};\n\t\t/* cache the number of floats in the vertices data */\n\t\tvertexCount = vertices.length;\n\t\t\n\t\t// a float has 4 bytes so we allocate for each coordinate 4 bytes\n\t\tByteBuffer byteBuffer = ByteBuffer.allocateDirect(vertices.length * 4);\n\t\tbyteBuffer.order(ByteOrder.nativeOrder());\n\t\t\n\t\t// allocates the memory from the byte buffer\n\t\tvertexBuffer = byteBuffer.asFloatBuffer();\n\t\t\n\t\t// fill the vertexBuffer with the vertices\n\t\tvertexBuffer.put(vertices);\n\t\t\n\t\t// set the cursor position to the beginning of the buffer\n\t\tvertexBuffer.position(0);\n\t\t\n\t\tbyteBuffer = ByteBuffer.allocateDirect(texture.length * 4);\n\t\tbyteBuffer.order(ByteOrder.nativeOrder());\n\t\ttextureBuffer = byteBuffer.asFloatBuffer();\n\t\ttextureBuffer.put(texture);\n\t\ttextureBuffer.position(0);\n\t}",
"public ShapeTriMesh() {\n\t\tsuper();\n\t\tthis.setName(UUID.randomUUID().toString());\n\t}",
"public void setAppearanceStream(Rectangle bbox) {\r\n\r\n matrix = new AffineTransform();\r\n this.bbox = new Rectangle();\r\n this.bbox.setRect(bbox);\r\n if (shapes == null) {\r\n shapes = new Shapes();\r\n }\r\n\r\n // remove any previous text\r\n this.shapes.getShapes().clear();\r\n\r\n // setup the space for the AP content stream.\r\n AffineTransform af = new AffineTransform();\r\n af.scale(1, -1);\r\n af.translate(-this.bbox.getMinX(),\r\n -this.bbox.getMaxY());\r\n\r\n shapes.add(new TransformDrawCmd(af));\r\n\r\n // create the new font to draw with\r\n Font awtFont = new Font(fontName, fontStyle, fontSize);\r\n OFont font = new OFont(awtFont);\r\n // init font's metrics\r\n font.echarAdvance(' ');\r\n TextSprite textSprites =\r\n new TextSprite(font,\r\n content.length(),\r\n new AffineTransform(new AffineTransform()));\r\n textSprites.setRMode(TextState.MODE_FILL);\r\n textSprites.setStrokeColor(fontColor);\r\n\r\n // iterate over each line of text painting the strings.\r\n String[] lines = content.split(\"[\\\\r\\\\n]+\");\r\n\r\n float padding = 10; // border padding of the component\r\n float lineHeight = (float) font.getDescent() +\r\n (float) (font.getAscent());\r\n\r\n float advanceX = (float) bbox.getMinX() + padding;\r\n float advanceY = (float) bbox.getMinY() + padding;\r\n\r\n float currentX;\r\n float currentY = advanceY + lineHeight;\r\n\r\n float lastx = 0;\r\n\r\n for (String line : lines) {\r\n char currentChar;\r\n // glyph placement params\r\n float newAdvanceX;\r\n GlyphText glyphText = null;\r\n for (int i = 0; i < line.length(); i++) {\r\n currentChar = line.charAt(i);\r\n\r\n newAdvanceX = (float) font.echarAdvance(currentChar).getX();\r\n currentX = advanceX + lastx;\r\n lastx += newAdvanceX;\r\n\r\n // get normalized from from text sprite\r\n glyphText = textSprites.addText(\r\n String.valueOf(currentChar), // cid\r\n String.valueOf(currentChar), // unicode value\r\n currentX, currentY, newAdvanceX);\r\n }\r\n\r\n if (glyphText != null) {\r\n currentY += lineHeight;\r\n advanceX = (float) bbox.getMinX() + padding;\r\n lastx = 0;\r\n }\r\n }\r\n BasicStroke stroke;\r\n if (borderStyle.isStyleDashed()) {\r\n stroke = new BasicStroke(\r\n borderStyle.getStrokeWidth(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER,\r\n 10.0f, borderStyle.getDashArray(), 0.0f);\r\n } else {\r\n stroke = new BasicStroke(borderStyle.getStrokeWidth());\r\n }\r\n\r\n // background colour\r\n shapes.add(new ShapeDrawCmd(bbox));\r\n if (fillType) {\r\n shapes.add(new ColorDrawCmd(fillColor));\r\n shapes.add(new FillDrawCmd());\r\n }\r\n // border\r\n if (strokeType) {\r\n shapes.add(new StrokeDrawCmd(stroke));\r\n shapes.add(new ColorDrawCmd(color));\r\n shapes.add(new DrawDrawCmd());\r\n }\r\n // actual font.\r\n shapes.add(new ColorDrawCmd(fontColor));\r\n shapes.add(new TextSpriteDrawCmd(textSprites));\r\n }",
"public void createGrid() {\r\n generator.generate();\r\n }",
"public void buildTileOfQuadrupleView(Context context,FakeSuiteBean sb) {\n\t\tpartitionView = new QuadrupleView(context);\n\t\tpartitionView.setContent(sb.resId);\n\t\ttile = new TileView(context);\n\t\ttile.setContent(partitionView);\n\t\ttile.setTitle(sb.tilte);\n\t\ttileViewList.add(tile);\n\t}",
"public void triangulo() {\n fill(0);\n stroke(255);\n strokeWeight(5);\n triangle(width/2, 50, height+100, 650, 350, 650);\n //(width/2, height-100, 350, 150, 900, 150);\n }",
"public GenericBatch(int textureUnits, int texCoordCount, int size)\n\t{\n\t\tthis(textureUnits, texCoordCount, size, true);\n\t}",
"private GlyphLayout()\n/* */ {\n/* 507 */ this._gvdata = new GVData();\n/* 508 */ this._textRecord = new TextRecord();\n/* 509 */ this._scriptRuns = new ScriptRun();\n/* 510 */ this._fontRuns = new FontRunIterator();\n/* 511 */ this._erecords = new ArrayList(10);\n/* 512 */ this._pt = new Point2D.Float();\n/* 513 */ this._sd = new FontStrikeDesc();\n/* 514 */ this._mat = new float[4];\n/* */ }",
"private void ProcessTGSymbol(MilStdSymbol symbol, IPointConversion converter, Rectangle2D clipBounds)\n {\n try\n {\n\n //RenderMultipoints.clsRenderer.render(symbol, converter);\n //TGLight tgl = new TGLight();\n \n //sector range fan, make sure there is a minimum distance value.\n if(SymbolUtilities.getBasicSymbolID(symbol.getSymbolID()).equals(\"G*F*AXS---****X\"))\n {\n if(symbol.getModifiers_AM_AN_X(ModifiersTG.AN_AZIMUTH)!=null &&\n symbol.getModifiers_AM_AN_X(ModifiersTG.AM_DISTANCE)!=null)\n {\n int anCount = symbol.getModifiers_AM_AN_X(ModifiersTG.AN_AZIMUTH).size();\n int amCount = symbol.getModifiers_AM_AN_X(ModifiersTG.AM_DISTANCE).size();\n ArrayList<Double> am = null;\n if(amCount < ((anCount/2) + 1))\n {\n am = symbol.getModifiers_AM_AN_X(ModifiersTG.AM_DISTANCE);\n if(am.get(0)!=0.0)\n {\n am.add(0, 0.0);\n }\n }\n }\n }\n\n //call that supports clipping\n \n\n ArrayList<ShapeInfo> shapes = new ArrayList<ShapeInfo>();\n ArrayList<ShapeInfo> modifiers = new ArrayList<ShapeInfo>();\n RenderMultipoints.clsRenderer.render(symbol, converter, shapes, modifiers, clipBounds);\n\n if(RendererSettings.getInstance().getTextBackgroundMethod()\n != RendererSettings.TextBackgroundMethod_NONE)\n {\n modifiers = SymbolDraw.ProcessModifierBackgrounds(modifiers);\n symbol.setModifierShapes(modifiers);\n }\n\n }\n catch(Exception exc)\n {\n String message = \"Failed to build multipoint TG\";\n if(symbol != null)\n message = message + \": \" + symbol.getSymbolID();\n //ErrorLogger.LogException(this.getClass().getName() ,\"ProcessTGSymbol()\",\n // new RendererException(message, exc));\n System.err.println(exc.getMessage());\n }\n catch(Throwable t)\n {\n String message2 = \"Failed to build multipoint TG\";\n if(symbol != null)\n message2 = message2 + \": \" + symbol.getSymbolID();\n //ErrorLogger.LogException(this.getClass().getName() ,\"ProcessTGSymbol()\",\n // new RendererException(message2, t));\n System.err.println(t.getMessage());\n }\n }",
"public void rasterizeTriangles(VrState state);",
"public void create(String context)\n\t{\n\t\treset();\n\t\tif (!context.equals(\"\"))\n\t\t{\n\t\t\tint i = 0;\n\t\t\tScanner scanner = new Scanner(context);\n\t\t\tdouble params[] = new double[4];\n\t\t\tString arrowType = \"\";\n\t\t\tScanner lineScanner = new Scanner(scanner.nextLine());\n\t\t\t\n\t\t\twidth = lineScanner.nextDouble ();\n\t\t\theight = lineScanner.nextDouble ();\n\n\t\t\t// Begin Processing Arrow Data\n\t\t\twhile (scanner.hasNextLine())\n\t\t\t{\n\t\t\t\tlineScanner = new Scanner(scanner.nextLine());\n\t\t\t\tfor (i = 0; i < 4; ++i)\n\t\t\t\t{\n\t\t\t\t\tif (lineScanner.hasNextDouble()) \n\t\t\t\t\t{\n\t\t\t\t\t\tparams[i] = lineScanner.nextDouble();\n\t\t\t\t\t}\n\t\t\t\t\telse \n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (lineScanner.hasNext())\n\t\t\t\t{\n\t\t\t\t\tarrowType = lineScanner.next();\n\t\t\t\t\t++i;\n\t\t\t\t\taddArrow(arrowType, params[0], params[1], params[2], params[3]);\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\n\t\t\t// Begin Processing UML Data\n\t\t\tif (i == 2)\n\t\t\t{\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\tVector<String> linesTop = new Vector<String>();\n\t\t\t\t\tVector<String> linesMid = new Vector<String>();\n\t\t\t\t\tVector<String> linesBtm = new Vector<String>();\n\t\t\t\t\taddUML(params[0], params[1]);\n\t\t\t\t\tString line = scanner.nextLine();\n\t\t\t\t\tif (scanner.hasNextLine() && line.equals(\"[\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tdo\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tline = scanner.nextLine();\n\t\t\t\t\t\t\tif (!line.equals(\"]\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tlinesTop.add(line);\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 (scanner.hasNextLine())\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tline = scanner.nextLine();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (linesTop.size() > 0)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tString content = linesTop.elementAt(0);\n\t\t\t\t\t\t\t\t\tfor (int ind = 1; ind < linesTop.size(); ++ind)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tcontent += \"\\n\" + linesTop.elementAt(ind);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tclasses.topAt(classes.size() - 1).setText(content);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile (scanner.hasNextLine());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (scanner.hasNextLine() && line.equals(\"[\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tdo\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tline = scanner.nextLine();\n\t\t\t\t\t\t\tif (!line.equals(\"]\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tlinesMid.add(line);\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 (scanner.hasNextLine())\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tline = scanner.nextLine();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (linesMid.size() > 0)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tString content = linesMid.elementAt(0);\n\t\t\t\t\t\t\t\t\tfor (int ind = 1; ind < linesMid.size(); ++ind)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tcontent += \"\\n\" + linesMid.elementAt(ind);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tclasses.midAt(classes.size() - 1).setText(content);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile (scanner.hasNextLine());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (scanner.hasNextLine() && line.equals(\"[\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tdo\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tline = scanner.nextLine();\n\t\t\t\t\t\t\tif (!line.equals(\"]\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tlinesBtm.add(line);\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 (linesBtm.size() > 0)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tString content = linesBtm.elementAt(0);\n\t\t\t\t\t\t\t\t\tfor (int ind = 1; ind < linesBtm.size(); ++ind)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tcontent += \"\\n\" + linesBtm.elementAt(ind);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tclasses.btmAt(classes.size() - 1).setText(content);\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile (scanner.hasNextLine());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Get Next Positions\n\t\t\t\t\tif (scanner.hasNextLine())\n\t\t\t\t\t{\n\t\t\t\t\t\tlineScanner = new Scanner(scanner.nextLine());\n\t\t\t\t\t\tif (lineScanner.hasNext())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor (i = 0; i < 2; ++i)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tparams[i] = lineScanner.nextDouble();\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\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (i != 2)\n\t\t\t\t\t\t{\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} \n\t\t\t\twhile (scanner.hasNextLine());\n\t\t\t}\n\t\t\tlineScanner.close();\n\t\t\tscanner.close();\n\t\t}\n\t}",
"public Triangle (int tipX, int tipY, int height, String orientation){\n super.points = new ArrayList();\n x1 = tipX;\n y1 = tipY;\n this.height = height;\n defineVertexes(orientation);\n definePoints();\n }",
"private void putTiledTextureQuads(BufferBuilder renderer, int x, int y, int width, int height, float depth,\n TextureAtlasSprite sprite, boolean upsideDown) {\n sprite.initSprite(0, 0, 0, 0, false);\n float u1 = sprite.getMinU();\n float v1 = sprite.getMinV();\n\n // tile vertically\n do {\n int renderHeight = Math.min(sprite.getIconHeight(), height);\n height -= renderHeight;\n\n float v2 = sprite.getInterpolatedV(16f * renderHeight / sprite.getIconHeight());\n\n // we need to draw the quads per width too\n int x2 = x;\n int width2 = width;\n // tile horizontally\n do {\n int renderWidth = Math.min(sprite.getIconWidth(), width2);\n width2 -= renderWidth;\n\n float u2 = sprite.getInterpolatedU(16f * renderWidth / sprite.getIconWidth());\n\n if (upsideDown) {\n renderer.pos(x2, y, depth).tex(u2, v1).endVertex();\n renderer.pos(x2, y + renderHeight, depth).tex(u2, v2).endVertex();\n renderer.pos(x2 + renderWidth, y + renderHeight, depth).tex(u1, v2).endVertex();\n renderer.pos(x2 + renderWidth, y, depth).tex(u1, v1).endVertex();\n } else {\n renderer.pos(x2, y, depth).tex(u1, v1).endVertex();\n renderer.pos(x2, y + renderHeight, depth).tex(u1, v2).endVertex();\n renderer.pos(x2 + renderWidth, y + renderHeight, depth).tex(u2, v2).endVertex();\n renderer.pos(x2 + renderWidth, y, depth).tex(u2, v1).endVertex();\n }\n\n x2 += renderWidth;\n } while (width2 > 0);\n\n y += renderHeight;\n } while (height > 0);\n }",
"public LeanTextGeometry() {}",
"public void setupTriangles(VrState state);",
"private static void createEdgeTables() {\n\t\tString line = null;\n\t\tString[] tmpArray;\n\n\t\tfor (int i = 0; i < Data.AmountEdges; i++) {\n\t\t\tline = Fileread.getLine();\n\t\t\ttmpArray = line.split(\" \");\n\t\t\tData.source[i] = Integer.parseInt(tmpArray[0]);\n\t\t\tData.target[i] = Integer.parseInt(tmpArray[1]);\n\t\t\tData.weight[i] = Integer.parseInt(tmpArray[2]);\n\t\t}\n\t}",
"private void createWVertices() {\n\t\tfor (int i = 0; i < this.numWVertices; i++) {\n\t\t\tvertices.add(new Vertex('w', this.countWID++));\n\t\t}\n\t}",
"public List<ga_Triangle2D> tesselatePolygon(ga_Polygon poly);",
"@Override\r\n\tprotected void initShape() {\n\t\tgetPositions().putAll(createSymmetricLines(0, 1.5, .5, 1.1, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//->upper corner\r\n\t\tgetPositions().putAll(createSymmetricLines(.5, 1.1, 1, .7, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower outer corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .7, 1.1, .3, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower inner corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1.1, .3, .7, .25, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> middle\r\n\t\tgetPositions().putAll(createSymmetricLines(.7, .25, .2, 1.35, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//inner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .5, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricLines(0.8, .4, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricPoints(0.9, .5, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_RIGHT, WingPart.INNER_RIGHT));\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_LEFT, WingPart.INNER_LEFT));\r\n\t}",
"protected void skybox() {\n Triple pos1, pos2, pos3, pos4, pos5, pos6, pos7, pos8, col1, col2, col3, col4;\n\n pos1 = new Triple(0, 0, 0);\n pos2 = new Triple(100, 0, 0);\n pos3 = new Triple(100, 0, 100);\n pos4 = new Triple(0, 0, 100);\n pos5 = new Triple(0, 100, 0);\n pos6 = new Triple(100, 100, 0);\n pos7 = new Triple(100, 100, 100);\n pos8 = new Triple(0, 100, 100);\n\n // Front Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 0, 0),\n new Vertex(pos2, .25, 0),\n new Vertex(pos3, .25, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos3, .25, 1),\n new Vertex(pos4, 0, 1),\n new Vertex(pos1, 0, 0),\n 21 ) );\n\n // Left Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 1, 0),\n new Vertex(pos5, .75, 0),\n new Vertex(pos8, .75, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos8, .75, 1),\n new Vertex(pos4, 1, 1),\n new Vertex(pos1, 1, 0),\n 21 ) );\n\n // Right Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos2, .25, 0),\n new Vertex(pos6, .5, 0),\n new Vertex(pos7, .5, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, .5, 1),\n new Vertex(pos3, .25, 1),\n new Vertex(pos2, .25, 0),\n 21 ) );\n\n // Back Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos5, .75, 0),\n new Vertex(pos6, .5, 0),\n new Vertex(pos7, .5, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, .5, 1),\n new Vertex(pos8, .75, 1),\n new Vertex(pos5, .75, 0),\n 21 ) );\n\n // Top Triangles\n// frozenSoups.addTri( new Triangle(new Vertex(pos4, 0, 0),\n// new Vertex(pos3, 0, 1),\n// new Vertex(pos7, 1, 1),\n// 20 ) );\n\n// frozenSoups.addTri( new Triangle(new Vertex(pos7, 0, 0),\n// new Vertex(pos8, 1, 0),\n// new Vertex(pos4, 1, 1),\n// 20 ) );\n }",
"private void createVertices(int iX, int iY, int iXO, int iYO, int num, int increment) {\n int y = iY;\n if (num == 0 && increment == 0) {\n BracketNode last = new BracketNode(\"\", iX, y - 20, iXO, 20);\n nodes.add(last);\n getChildren().addAll(new Line(iX, iY, iX + iXO, iY), last);\n last.setName(currentBracket.getBracket().get(location));\n bracketMap.put(last, location);\n nodeMap.put(location, last);\n } else {\n ArrayList<BracketNode> aNodeList = new ArrayList<>();\n for (int i = 0; i < num; i++) {\n Point2D tl = new Point2D(iX, y);\n Point2D tr = new Point2D(iX + iXO, y);\n Point2D bl = new Point2D(iX, y + iYO);\n Point2D br = new Point2D(iX + iXO, y + iYO);\n BracketNode nTop = new BracketNode(\"\", iX, y - 20, iXO, 20);\n aNodeList.add(nTop);\n nodes.add(nTop);\n BracketNode nBottom = new BracketNode(\"\", iX, y + (iYO - 20), iXO, 20);\n aNodeList.add(nBottom);\n nodes.add(nBottom);\n Line top = new Line(tl.getX(), tl.getY(), tr.getX(), tr.getY());\n Line bottom = new Line(bl.getX(), bl.getY(), br.getX(), br.getY());\n Line right = new Line(tr.getX(), tr.getY(), br.getX(), br.getY());\n getChildren().addAll(top, bottom, right, nTop, nBottom);\n isTop = !isTop;\n y += increment;\n }\n ArrayList<Integer> tmpHelp = helper(location, num);\n for (int j = 0; j < aNodeList.size(); j++) {\n //System.out.println(currentBracket.getBracket().get(tmpHelp.get(j)));\n aNodeList.get(j).setName(currentBracket.getBracket().get(tmpHelp.get(j)));\n bracketMap.put(aNodeList.get(j), tmpHelp.get(j));\n nodeMap.put(tmpHelp.get(j), aNodeList.get(j));\n //System.out.println(bracketMap.get(aNodeList.get(j)));\n }\n }\n\n }",
"public TriangleObject (double[][][] t) {\n\tfor (double[][] i: t) {\n Triangle in = new Triangle(i);\n\t\ttriangles.add(in); //You need to instantiate a new triangle to satsify this ^^\n\t}\n }",
"public void createGrid() {\n\t\tint[][] neighbours = getIo().getNeighbours();\n\t\tsetGrid(new GridAlg(neighbours, animals));\n\t\tgetGrid().setStep(getStep());\n\t}",
"static public void init() {\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=MeshFrame.HEIGHT; i>=HeightScale;i-=HeightScale){\r\n\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\r\n\t\t\tfor (int j = 0; j <= MeshFrame.WIDTH; j+=WidthScale) {\r\n\t\t\t\tGL11.glVertex3f(j, i, 0);\r\n\t\t\t\tGL11.glVertex3f(j, i-HeightScale, 0);\r\n\t\t\t}\r\n\t\t\tGL11.glEnd();\r\n\t\t\t\r\n\t\t}\t\t\r\n\t\t\r\n\t}",
"private FontRenderer prepareShader() {\n\t\tFontShaderProgram.INSTANCE.sendFloat(\"width\", .46f * (1 + size / 100f));\n\t\tFontShaderProgram.INSTANCE.sendFloat(\"edge\", .2f * (1f / (size * 2)));\n\t\tFontShaderProgram.INSTANCE.sendVec4(\"fontColor\", color);\n\t\t\n\t\treturn this;\n\t}",
"public void draw() {\n\t\t\tfloat[] vertices = new float[mVertices.size()];\n\t\t\tfor (int i = 0; i < vertices.length; i++)\n\t\t\t\tvertices[i] = mVertices.get(i);\n\t\t\t\n\t\t\tfloat[] textureCoords = null;\n\t\t\tif (mTextureID != 0) {\n\t\t\t\ttextureCoords = new float[mTextureCoords.size()];\n\t\t\t\tfor (int i = 0; i < textureCoords.length; i++)\n\t\t\t\t\ttextureCoords[i] = mTextureCoords.get(i);\n\t\t\t}\n\t\t\t\n\t\t\tshort[] indices = new short[mIndices.size()];\n\t\t\tfor (int i = 0; i < indices.length; i++)\n\t\t\t\tindices[i] = mIndices.get(i);\n\t\t\t\n\t\t\t// Get OpenGL\n\t\t\tGL10 gl = GameGraphics2D.this.mGL;\n\t\t\t\n\t\t\t// Set render state\n\t\t\tgl.glDisable(GL10.GL_LIGHTING);\n\t\t\tgl.glEnable(GL10.GL_DEPTH_TEST);\n\t\t\tgl.glEnable(GL10.GL_BLEND);\n\n\t\t\tif (mBlendingMode == BLENDING_MODE.ALPHA)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\telse if (mBlendingMode == BLENDING_MODE.ADDITIVE)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE);\n\t\t\t\n\t\t\tif (mTextureID != 0)\n\t\t\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\t\telse\n\t\t\t\tgl.glDisable(GL10.GL_TEXTURE_2D);\n\t\t\t\n\t\t\t// Draw the batch of textured triangles\n\t\t\tgl.glColor4f(Color.red(mColour) / 255.0f,\n\t\t\t\t\t\t Color.green(mColour) / 255.0f,\n\t\t\t\t\t\t Color.blue(mColour) / 255.0f,\n\t\t\t\t\t\t Color.alpha(mColour) / 255.0f);\n\t\t\t\n\t\t\tif (mTextureID != 0) {\n\t\t\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);\n\t\t\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(textureCoords));\n\t\t\t}\n\t\t\t\n\t\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(vertices));\n\t\t\tgl.glDrawElements(GL10.GL_TRIANGLES, indices.length,\n\t\t\t\t\tGL10.GL_UNSIGNED_SHORT, GameGraphics.getShortBuffer(indices));\n\t\t}",
"void addTriangle(int vertexIndex1, int vertexIndex2, int vertexIndex3);",
"protected abstract void startBatch(Matrix metadata);",
"public void renderFlanges(int cons, int tex)\r\n/* 108: */ {\r\n/* 109:106 */ this.context.setTex(tex);\r\n/* 110:108 */ if ((cons & 0x1) > 0)\r\n/* 111: */ {\r\n/* 112:109 */ this.context.setTexFlags(0);\r\n/* 113:110 */ this.context.renderBox(63, 0.25D, 0.0D, 0.25D, 0.75D, 0.125D, 0.75D);\r\n/* 114: */ }\r\n/* 115:112 */ if ((cons & 0x2) > 0)\r\n/* 116: */ {\r\n/* 117:113 */ this.context.setTexFlags(112320);\r\n/* 118:114 */ this.context.renderBox(63, 0.25D, 0.875D, 0.25D, 0.75D, 1.0D, 0.75D);\r\n/* 119: */ }\r\n/* 120:116 */ if ((cons & 0x4) > 0)\r\n/* 121: */ {\r\n/* 122:117 */ this.context.setTexFlags(217134);\r\n/* 123:118 */ this.context.renderBox(63, 0.25D, 0.25D, 0.0D, 0.75D, 0.75D, 0.125D);\r\n/* 124: */ }\r\n/* 125:120 */ if ((cons & 0x8) > 0)\r\n/* 126: */ {\r\n/* 127:121 */ this.context.setTexFlags(188469);\r\n/* 128:122 */ this.context.renderBox(63, 0.25D, 0.25D, 0.875D, 0.75D, 0.75D, 1.0D);\r\n/* 129: */ }\r\n/* 130:124 */ if ((cons & 0x10) > 0)\r\n/* 131: */ {\r\n/* 132:125 */ this.context.setTexFlags(2944);\r\n/* 133:126 */ this.context.renderBox(63, 0.0D, 0.25D, 0.25D, 0.125D, 0.75D, 0.75D);\r\n/* 134: */ }\r\n/* 135:128 */ if ((cons & 0x20) > 0)\r\n/* 136: */ {\r\n/* 137:129 */ this.context.setTexFlags(3419);\r\n/* 138:130 */ this.context.renderBox(63, 0.875D, 0.25D, 0.25D, 1.0D, 0.75D, 0.75D);\r\n/* 139: */ }\r\n/* 140: */ }",
"private void drawsegment_texture8(float leftadd,\n float rghtadd,\n int ytop,\n int ybottom) { \n // Accurate texture mode added - comments stripped from dupe code, \n // see drawsegment_texture24() for details\n int ypixel = ytop;\n int lastRowStart = m_texture.length - TEX_WIDTH - 2;\n boolean accurateMode = parent.hints[ENABLE_ACCURATE_TEXTURES];\n float screenx = 0; float screeny = 0; float screenz = 0;\n float a = 0; float b = 0; float c = 0;\n int linearInterpPower = TEX_INTERP_POWER;\n int linearInterpLength = 1 << linearInterpPower;\n if (accurateMode) {\n // see if the precomputation goes well, if so finish the setup\n if (precomputeAccurateTexturing()) { \n newax *= linearInterpLength;\n newbx *= linearInterpLength;\n newcx *= linearInterpLength;\n screenz = nearPlaneDepth;\n firstSegment = false;\n } else{\n // if the matrix inversion screwed up, revert to normal rendering \n // (something is degenerate)\n accurateMode = false; \n }\n }\n ytop *= SCREEN_WIDTH;\n ybottom *= SCREEN_WIDTH;\n // int p = m_index;\n \n float iuf = iuadd;\n float ivf = ivadd;\n \n int red = m_fill & 0xFF0000;\n int grn = m_fill & 0xFF00;\n int blu = m_fill & 0xFF;\n \n while (ytop < ybottom) {\n int xstart = (int) (xleft + PIXEL_CENTER);\n if (xstart < 0)\n xstart = 0;\n \n int xpixel = xstart;//accurate mode\n \n int xend = (int) (xrght + PIXEL_CENTER);\n if (xend > SCREEN_WIDTH)\n xend = SCREEN_WIDTH;\n \n float xdiff = (xstart + PIXEL_CENTER) - xleft;\n int iu = (int) (iuf * xdiff + uleft);\n int iv = (int) (ivf * xdiff + vleft);\n float iz = izadd * xdiff + zleft;\n \n xstart+=ytop;\n xend+=ytop;\n \n if (accurateMode){\n screenx = xmult*(xpixel+.5f-(SCREEN_WIDTH/2.0f));\n screeny = ymult*(ypixel+.5f-(SCREEN_HEIGHT/2.0f));\n a = screenx*ax+screeny*ay+screenz*az;\n b = screenx*bx+screeny*by+screenz*bz;\n c = screenx*cx+screeny*cy+screenz*cz;\n }\n boolean goingIn = ( (newcx > 0) == (c > 0) )?false:true;\n int interpCounter = 0;\n int deltaU = 0; int deltaV = 0;\n float fu = 0; float fv = 0;\n float oldfu = 0; float oldfv = 0;\n \n if (accurateMode && goingIn) {\n int rightOffset = (xend-xstart-1)%linearInterpLength;\n int leftOffset = linearInterpLength-rightOffset;\n float rightOffset2 = rightOffset / ((float)linearInterpLength);\n float leftOffset2 = leftOffset / ((float)linearInterpLength);\n interpCounter = leftOffset;\n float ao = a-leftOffset2*newax;\n float bo = b-leftOffset2*newbx;\n float co = c-leftOffset2*newcx;\n float oneoverc = 65536.0f/co;\n oldfu = (ao*oneoverc); oldfv = (bo*oneoverc);\n a += rightOffset2*newax;\n b += rightOffset2*newbx;\n c += rightOffset2*newcx;\n oneoverc = 65536.0f/c;\n fu = a*oneoverc; fv = b*oneoverc;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n iu = ( (int)oldfu )+(leftOffset-1)*deltaU;\n iv = ( (int)oldfv )+(leftOffset-1)*deltaV; //another \"off-by-one\" hack\n } else {\n float preoneoverc = 65536.0f/c;\n fu = (a*preoneoverc);\n fv = (b*preoneoverc);\n }\n \n for ( ; xstart < xend; xstart++ ) {\n if (accurateMode) {\n if (interpCounter == linearInterpLength) interpCounter = 0;\n if (interpCounter == 0){\n a += newax;\n b += newbx;\n c += newcx;\n float oneoverc = 65536.0f/c;\n oldfu = fu; oldfv = fv;\n fu = (a*oneoverc); fv = (b*oneoverc);\n iu = (int)oldfu; iv = (int)oldfv;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n } else {\n iu += deltaU;\n iv += deltaV;\n }\n interpCounter++;\n }\n // try-catch just in case pixel offset it out of range\n try {\n if (noDepthTest || (iz <= m_zbuffer[xstart])) {\n //m_zbuffer[xstart] = iz;\n \n int al0;\n if (m_bilinear) {\n int ofs = (iv >> 16) * TEX_WIDTH + (iu >> 16);\n int iui = iu & 0xFFFF;\n al0 = m_texture[ofs] & 0xFF;\n int al1 = m_texture[ofs + 1] & 0xFF;\n if (ofs < lastRowStart) ofs+=TEX_WIDTH;\n int al2 = m_texture[ofs] & 0xFF;\n int al3 = m_texture[ofs + 1] & 0xFF;\n al0 = al0 + (((al1-al0) * iui) >> 16);\n al2 = al2 + (((al3-al2) * iui) >> 16);\n al0 = al0 + (((al2-al0) * (iv & 0xFFFF)) >> 16);\n } else {\n al0 = m_texture[(iv >> 16) * TEX_WIDTH + (iu >> 16)] & 0xFF;\n }\n \n int br = m_pixels[xstart];\n int bg = (br & 0xFF00);\n int bb = (br & 0xFF);\n br = (br & 0xFF0000);\n m_pixels[xstart] = 0xFF000000 | \n ((br + (((red - br) * al0) >> 8)) & 0xFF0000) | \n ((bg + (((grn - bg) * al0) >> 8)) & 0xFF00) | \n ((bb + (((blu - bb) * al0) >> 8)) & 0xFF);\n // m_stencil[xstart] = p;\n }\n }\n catch (Exception e) {\n }\n xpixel++;//accurate mode\n if (!accurateMode){\n iu+=iuadd;\n iv+=ivadd;\n }\n iz+=izadd;\n }\n ypixel++;//accurate mode\n ytop+=SCREEN_WIDTH;\n xleft+=leftadd;\n xrght+=rghtadd;\n uleft+=uleftadd;\n vleft+=vleftadd;\n zleft+=zleftadd;\n }\n }",
"protected GenericBatch(int textureUnits, int texCoordCount, int size, boolean hasColor, VertexAttribute... generic)\n\t{\n\t\tsuper(size, createAttributes(texCoordCount, hasColor, generic));\n\t\tthis.hasColor = hasColor;\n\t\tthis.textures = new TextureRegion[textureUnits];\n\t\tthis.texCoordCount = texCoordCount;\n\t\tthis.genericAttribs = generic;\n\t}",
"public MyGLRenderer(Context context, ArrayList<Point_dt[]> triangles) {\n this.context = context;\n this.triangles=triangles;\n\n }",
"public StandardGlyphVector layout(Font paramFont, FontRenderContext paramFontRenderContext, char[] paramArrayOfChar, int paramInt1, int paramInt2, int paramInt3, StandardGlyphVector paramStandardGlyphVector)\n/* */ {\n/* 365 */ if ((paramArrayOfChar == null) || (paramInt1 < 0) || (paramInt2 < 0) || (paramInt2 > paramArrayOfChar.length - paramInt1)) {\n/* 366 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* 369 */ init(paramInt2);\n/* */ \n/* */ \n/* */ \n/* 373 */ if (paramFont.hasLayoutAttributes()) {\n/* 374 */ localObject1 = ((AttributeMap)paramFont.getAttributes()).getValues();\n/* 375 */ if (((AttributeValues)localObject1).getKerning() != 0) this._typo_flags |= 0x1;\n/* 376 */ if (((AttributeValues)localObject1).getLigatures() != 0) { this._typo_flags |= 0x2;\n/* */ }\n/* */ }\n/* 379 */ this._offset = paramInt1;\n/* */ \n/* */ \n/* */ \n/* 383 */ Object localObject1 = SDCache.get(paramFont, paramFontRenderContext);\n/* 384 */ this._mat[0] = ((float)((SDCache)localObject1).gtx.getScaleX());\n/* 385 */ this._mat[1] = ((float)((SDCache)localObject1).gtx.getShearY());\n/* 386 */ this._mat[2] = ((float)((SDCache)localObject1).gtx.getShearX());\n/* 387 */ this._mat[3] = ((float)((SDCache)localObject1).gtx.getScaleY());\n/* 388 */ this._pt.setLocation(((SDCache)localObject1).delta);\n/* */ \n/* 390 */ int i = paramInt1 + paramInt2;\n/* */ \n/* 392 */ int j = 0;\n/* 393 */ int k = paramArrayOfChar.length;\n/* 394 */ if (paramInt3 != 0) {\n/* 395 */ if ((paramInt3 & 0x1) != 0) {\n/* 396 */ this._typo_flags |= 0x80000000;\n/* */ }\n/* */ \n/* 399 */ if ((paramInt3 & 0x2) != 0) {\n/* 400 */ j = paramInt1;\n/* */ }\n/* */ \n/* 403 */ if ((paramInt3 & 0x4) != 0) {\n/* 404 */ k = i;\n/* */ }\n/* */ }\n/* */ \n/* 408 */ int m = -1;\n/* */ \n/* 410 */ Object localObject2 = FontUtilities.getFont2D(paramFont);\n/* 411 */ if ((localObject2 instanceof FontSubstitution)) {\n/* 412 */ localObject2 = ((FontSubstitution)localObject2).getCompositeFont2D();\n/* */ }\n/* */ \n/* 415 */ this._textRecord.init(paramArrayOfChar, paramInt1, i, j, k);\n/* 416 */ int n = paramInt1;\n/* 417 */ if ((localObject2 instanceof CompositeFont)) {\n/* 418 */ this._scriptRuns.init(paramArrayOfChar, paramInt1, paramInt2);\n/* 419 */ this._fontRuns.init((CompositeFont)localObject2, paramArrayOfChar, paramInt1, i);\n/* 420 */ while (this._scriptRuns.next()) {\n/* 421 */ i1 = this._scriptRuns.getScriptLimit();\n/* 422 */ i2 = this._scriptRuns.getScriptCode();\n/* 423 */ while (this._fontRuns.next(i2, i1)) {\n/* 424 */ PhysicalFont localPhysicalFont = this._fontRuns.getFont();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 431 */ if ((localPhysicalFont instanceof NativeFont)) {\n/* 432 */ localPhysicalFont = ((NativeFont)localPhysicalFont).getDelegateFont();\n/* */ }\n/* 434 */ int i4 = this._fontRuns.getGlyphMask();\n/* 435 */ int i5 = this._fontRuns.getPos();\n/* 436 */ nextEngineRecord(n, i5, i2, m, localPhysicalFont, i4);\n/* 437 */ n = i5;\n/* */ }\n/* */ }\n/* */ }\n/* 441 */ this._scriptRuns.init(paramArrayOfChar, paramInt1, paramInt2);\n/* 442 */ while (this._scriptRuns.next()) {\n/* 443 */ i1 = this._scriptRuns.getScriptLimit();\n/* 444 */ i2 = this._scriptRuns.getScriptCode();\n/* 445 */ nextEngineRecord(n, i1, i2, m, (Font2D)localObject2, 0);\n/* 446 */ n = i1;\n/* */ }\n/* */ \n/* */ \n/* 450 */ int i1 = 0;\n/* 451 */ int i2 = this._ercount;\n/* 452 */ int i3 = 1;\n/* */ \n/* 454 */ if (this._typo_flags < 0) {\n/* 455 */ i1 = i2 - 1;\n/* 456 */ i2 = -1;\n/* 457 */ i3 = -1;\n/* */ }\n/* */ \n/* */ \n/* 461 */ this._sd = ((SDCache)localObject1).sd;\n/* 462 */ Object localObject3; for (; i1 != i2; i1 += i3) {\n/* 463 */ localObject3 = (EngineRecord)this._erecords.get(i1);\n/* */ for (;;) {\n/* */ try {\n/* 466 */ ((EngineRecord)localObject3).layout();\n/* */ }\n/* */ catch (IndexOutOfBoundsException localIndexOutOfBoundsException)\n/* */ {\n/* 470 */ if (this._gvdata._count >= 0) {\n/* 471 */ this._gvdata.grow();\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* 476 */ if (this._gvdata._count < 0) {\n/* */ break;\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 489 */ if (this._gvdata._count < 0) {\n/* 490 */ localObject3 = new StandardGlyphVector(paramFont, paramArrayOfChar, paramInt1, paramInt2, paramFontRenderContext);\n/* 491 */ if (FontUtilities.debugFonts()) {\n/* 492 */ FontUtilities.getLogger().warning(\"OpenType layout failed on font: \" + paramFont);\n/* */ }\n/* */ }\n/* */ else {\n/* 496 */ localObject3 = this._gvdata.createGlyphVector(paramFont, paramFontRenderContext, paramStandardGlyphVector);\n/* */ }\n/* */ \n/* 499 */ return (StandardGlyphVector)localObject3;\n/* */ }",
"private void drawBackground(Graphics2D g2d, int wid, int hei) {\n g2d.setColor(Light_Gray);\n Triangle triangle1 = new Triangle(new Point(0, 0), new Point(0, hei), new Point(wid, 0));\n triangle1.fill(g2d);\n g2d.setColor(Dark_Gray);\n Triangle triangle2 = new Triangle(new Point(wid, hei), new Point(0, hei), new Point(wid, 0));\n triangle2.fill(g2d);\n Triangle triangle3 = new Triangle(new Point(wid, 0), new Point(wid, 15), new Point(wid - 15, 15));\n triangle3.fill(g2d);\n g2d.setColor(Light_Gray);\n Triangle triangle4 = new Triangle(new Point(0, hei), new Point(0, hei - 15), new Point(15, hei - 15));\n triangle4.fill(g2d);\n g2d.setColor(Gray);\n g2d.fillRect(6, 6, wid - 12, hei - 12);\n }",
"private void generateBoxGeom()\n {\n // textures all share the same array, so process separately.\n textureBuffer = createBuffer(BOX_TEX_COORDS.length);\n textureBuffer.put(BOX_TEX_COORDS);\n textureBuffer.rewind();\n\n vertexBuffer = new FloatBuffer[6];\n normalBuffer = new FloatBuffer[6];\n\n for(int i = 0; i < 6; i++)\n {\n vertexBuffer[i] = createBuffer(12);\n normalBuffer[i] = createBuffer(12);\n }\n\n vertexBuffer[POSITIVE_X].put(RIGHT_BOX_COORDS);\n normalBuffer[POSITIVE_X].put(RIGHT_BOX_NORMALS);\n\n vertexBuffer[NEGATIVE_X].put(LEFT_BOX_COORDS);\n normalBuffer[NEGATIVE_X].put(LEFT_BOX_NORMALS);\n\n vertexBuffer[POSITIVE_Y].put(TOP_BOX_COORDS);\n normalBuffer[POSITIVE_Y].put(TOP_BOX_NORMALS);\n\n vertexBuffer[NEGATIVE_Y].put(BOTTOM_BOX_COORDS);\n normalBuffer[NEGATIVE_Y].put(BOTTOM_BOX_NORMALS);\n\n vertexBuffer[POSITIVE_Z].put(BACK_BOX_COORDS);\n normalBuffer[POSITIVE_Z].put(BACK_BOX_NORMALS);\n\n vertexBuffer[NEGATIVE_Z].put(FRONT_BOX_COORDS);\n normalBuffer[NEGATIVE_Z].put(FRONT_BOX_NORMALS);\n\n for(int i = 0; i < 6; i++)\n {\n vertexBuffer[i].rewind();\n normalBuffer[i].rewind();\n }\n }",
"private static void addShaped()\n {}",
"public static DeformableMesh3D createTestBlock(double w, double h, double depth){\n ArrayList<double[]> pts = new ArrayList<double[]>();\n ArrayList<int[]> connections = new ArrayList<int[]>();\n ArrayList<int[]> triangles = new ArrayList<int[]>();\n\n pts.add(new double[]{-w/2, -h/2, depth/2});\n pts.add(new double[]{-w/2, h/2, depth/2});\n pts.add(new double[]{w/2, h/2, depth/2});\n pts.add(new double[]{w/2, -h/2, depth/2});\n\n pts.add(new double[]{-w/2, -h/2, -depth/2});\n pts.add(new double[]{-w/2, h/2, -depth/2});\n pts.add(new double[]{w/2, h/2, -depth/2});\n pts.add(new double[]{w/2, -h/2, -depth/2});\n\n //back face\n connections.add(new int[]{0, 4});\n connections.add(new int[]{0, 1});\n connections.add(new int[]{1, 5});\n connections.add(new int[]{5, 4});\n\n //front face\n connections.add(new int[]{3, 7});\n connections.add(new int[]{2, 3});\n connections.add(new int[]{2, 6});\n connections.add(new int[]{6, 7});\n\n //front-back connections.\n connections.add(new int[]{3, 0});\n connections.add(new int[]{1, 2});\n connections.add(new int[]{5, 6});\n connections.add(new int[]{7, 4});\n\n //top\n triangles.add(new int[]{0, 2, 1});\n triangles.add(new int[]{0,3,2});\n //top-diagonal\n connections.add(new int[]{0, 2});\n\n //back\n triangles.add(new int[]{0, 1, 5});\n triangles.add(new int[]{0,5,4});\n connections.add(new int[]{0, 5});\n\n //right\n triangles.add(new int[]{1,2,5});\n triangles.add(new int[]{5,2,6});\n connections.add(new int[]{5, 2});\n\n //front\n triangles.add(new int[]{2,3,6});\n triangles.add(new int[]{6,3,7});\n connections.add(new int[]{3, 6});\n\n //left\n triangles.add(new int[]{3,0,4});\n triangles.add(new int[]{3,4,7});\n connections.add(new int[]{3, 4});\n\n //bottom\n triangles.add(new int[]{4,5,6});\n triangles.add(new int[]{4,6,7});\n connections.add(new int[]{4, 6});\n return new DeformableMesh3D(pts, connections, triangles);\n\n }",
"public Triangle() {}",
"private void Create_Path() {\n lines = new Line[getPoints().size()];\n for (int i = 1; i < getLines().length; i++) {\n lines[i] = new Line(getPoints().get(way[i]).getX(), getPoints().get(way[i]).getY(), getPoints().get(way[i - 1]).getX(), getPoints().get(way[i - 1]).getY());\n }\n lines[0] = new Line(getPoints().get(way[getLines().length - 1]).getX(), getPoints().get(way[getLines().length - 1]).getY(), getPoints().get(way[0]).getX(), getPoints().get(way[0]).getY());\n\n }",
"public Triangle() {\n // initialize vertex byte buffer for shape coordinates\n ByteBuffer bb = ByteBuffer.allocateDirect(\n // (number of coordinate values * 4 bytes per float)\n triangleCoords.length * 4);\n // use the device hardware's native byte order\n bb.order(ByteOrder.nativeOrder());\n\n // create a floating point buffer from the ByteBuffer\n vertexBuffer = bb.asFloatBuffer();\n // add the coordinates to the FloatBuffer\n vertexBuffer.put(triangleCoords);\n // set the buffer to read the first coordinate\n vertexBuffer.position(0);\n\n // prepare shaders and OpenGL program\n int vertexShader = MyGLRenderer.loadShader(\n GLES20.GL_VERTEX_SHADER, vertexShaderCode);\n int fragmentShader = MyGLRenderer.loadShader(\n GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode);\n\n mProgram = GLES20.glCreateProgram(); // create empty OpenGL Program\n GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program\n GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program\n GLES20.glLinkProgram(mProgram); // create OpenGL program executables\n\n }",
"@FXML\r\n private void crearTriangulo(ActionEvent event) {\n \r\n double x[] = {100, 150, 50};\r\n double y[] = {100, 210, 210, 50};\r\n \r\n g.setFill(Color.GOLD);\r\n g.fillPolygon(x, y, 3);\r\n }",
"public Triangle(float c0X, float c0Y, float c1X, float c1Y, float c2X, float c2Y, float r, float g, float b) {\n triangleCoords[0] = c0X;\n triangleCoords[1] = c0Y;\n triangleCoords[2] = 0;\n triangleCoords[3] = c1X;\n triangleCoords[4] = c1Y;\n triangleCoords[5] = 0;\n triangleCoords[6] = c2X;\n triangleCoords[7] = c2Y;\n triangleCoords[8] = 0;\n color[0] = r;\n color[1] = g;\n color[2] = b;\n centerX = (c0X+c1X) / 2.0f;\n centerY = (float)(c0Y - ((c1X-c0X)/(Math.sqrt(3)*2.0f)));\n\n // initialize vertex byte buffer for shape coordinates\n ByteBuffer bb = ByteBuffer.allocateDirect(\n // (number of coordinate values * 4 bytes per float)\n triangleCoords.length * 4);\n // use the device hardware's native byte order\n bb.order(ByteOrder.nativeOrder());\n\n // create a floating point buffer from the ByteBuffer\n vertexBuffer = bb.asFloatBuffer();\n // add the coordinates to the FloatBuffer\n vertexBuffer.put(triangleCoords);\n // set the buffer to read the first coordinate\n vertexBuffer.position(0);\n\n\n // The drawn object (This triangle) needs to claim shaders for vertex and fragment, so it can be drawn\n int vertexShader = MyGLRenderer.loadShader(GLES20.GL_VERTEX_SHADER,\n vertexShaderCode);\n int fragmentShader = MyGLRenderer.loadShader(GLES20.GL_FRAGMENT_SHADER,\n fragmentShaderCode);\n\n // create empty OpenGL ES Program ( = one openGL procedure responsible for drawing this shape)\n mProgram = GLES20.glCreateProgram();\n\n // add the vertex shader to program\n GLES20.glAttachShader(mProgram, vertexShader);\n\n // add the fragment shader to program\n GLES20.glAttachShader(mProgram, fragmentShader);\n\n // creates OpenGL ES program executables\n GLES20.glLinkProgram(mProgram);\n }",
"private void ProcessSymbolGeometryBulk(ArrayList<MilStdSymbol> symbols, IPointConversion converter, Rectangle2D clipBounds) throws RendererException\n {\n try\n {\n\n String basicSymbolID = \"\";\n int count = symbols.size();\n String message = null;\n String symbolID = null;\n \n SymbolDef symbolDef = null;\n if(_SymbolDefTable == null)\n _SymbolDefTable = SymbolDefTable.getInstance();\n\n\n MilStdSymbol symbol;\n for(int lcv = 0; lcv < count; lcv++)\n {\n symbol = symbols.get(lcv);\n int pointCount = 0;\n if(symbol.getCoordinates()!=null)\n {\n pointCount=symbol.getCoordinates().size();\n }\n \n symbolID = symbol.getSymbolID();\n if(SymbolUtilities.isTacticalGraphic(symbolID)==true || pointCount>1)\n {\n basicSymbolID = SymbolUtilities.getBasicSymbolID(symbol.getSymbolID());\n symbolDef = _SymbolDefTable.getSymbolDef(basicSymbolID,symbol.getSymbologyStandard());\n \n if(symbolDef == null)\n {//if bad symbol code, replace with action point or boundary\n if(symbol.getCoordinates().size() <= 1)\n {\n if(symbol.getModifier(ModifiersTG.H_ADDITIONAL_INFO_1)!=null)\n symbol.setModifier(ModifiersTG.H1_ADDITIONAL_INFO_2,symbol.getModifier(ModifiersTG.H_ADDITIONAL_INFO_1));\n symbol.setModifier(ModifiersTG.H_ADDITIONAL_INFO_1,symbolID.substring(0, 10));\n\n symbol.setSymbolID(\"G\" + SymbolUtilities.getAffiliation(symbolID) + \n \"G\" + SymbolUtilities.getStatus(symbolID) + \"GPP---****X\");\n symbol.setLineColor(SymbolUtilities.getLineColorOfAffiliation(symbolID));\n symbol.setFillColor(SymbolUtilities.getFillColorOfAffiliation(symbolID));\n }\n else\n {\n symbol.setSymbolID(\"G\" + SymbolUtilities.getAffiliation(symbolID) + \n \"G\" + SymbolUtilities.getStatus(symbolID) + \"GLB---****X\");\n symbol.setLineColor(SymbolUtilities.getLineColorOfAffiliation(symbolID));\n symbol.setFillColor(null);\n }\n basicSymbolID = SymbolUtilities.getBasicSymbolID(symbol.getSymbolID());\n symbolDef = _SymbolDefTable.getSymbolDef(basicSymbolID,symbol.getSymbologyStandard());\n }\n \n if(symbolDef != null)\n {\n if(symbolDef.getDrawCategory() == SymbolDef.DRAW_CATEGORY_POINT)\n {\n _SPR.ProcessSPSymbol(symbol, converter);\n }\n else\n {\n //send to multipointRendering\n _MPR.render(symbol, converter, clipBounds);\n //ProcessTGSymbol(symbol, converter,clipBounds);\n }\n }\n else\n {\n message = \"Cannot draw: \" + symbolID + \" (\" + basicSymbolID + \"), lookup failed.\";\n throw new RendererException(message);\n }\n }\n else// if(SymbolUtilities.isWarfighting(symbol.getSymbolID()))\n {\n //Pass to Unit rendering\n _SPR.ProcessUnitSymbol(symbol,converter);\n }\n }\n }\n catch(Exception exc)\n {\n throw new RendererException(exc.getMessage(), exc);\n }\n }",
"@Override\n \tpublic void draw() {\n \n \t\tGL11.glPushMatrix();\n \t\t\n \t\tGL11.glTranslatef(super.getX(), super.getY(), 0);\n \t\tGL11.glColor3f(1.0f, 1.0f, 1.0f);\n \t\tMain.BLANK_TEXTURE.bind();\n \t\tGL11.glBegin(GL11.GL_QUADS);\n \t\t{\n \t\t\t\n \t\t\tGL11.glColor3f(1.0f, 0.0f, 0.0f);\n \t\t\tGL11.glVertex2f(0, 0); // top left\n \t\t\tGL11.glVertex2f(0, Main.gridSize); // bottom left\n \t\t\tGL11.glVertex2f(Main.gridSize, Main.gridSize); // bottom right\n \t\t\tGL11.glVertex2f(Main.gridSize, 0); // top right\n \t\t\t\n \t\t\t\n \t\t\tif (isRight()) {\n \t\t\t\tGL11.glColor3f(1.0f, 1.0f, 1.0f);\n \t\t\t\tGL11.glVertex2f(12, 0);\n \t\t\t\tGL11.glVertex2f(12, 12);\n \t\t\t\tGL11.glVertex2f(Main.gridSize, 12);\n \t\t\t\tGL11.glVertex2f(Main.gridSize, 0);\n \t\t\t\t\n \t\t\t\tGL11.glColor3f(0.0f, 0.0f, 0.0f);\n \t\t\t\tGL11.glVertex2f(Main.gridSize-6, 3);\n \t\t\t\tGL11.glVertex2f(Main.gridSize-6, 9);\n \t\t\t\tGL11.glVertex2f(Main.gridSize, 9);\n \t\t\t\tGL11.glVertex2f(Main.gridSize, 3);\n \t\t\t\t\n \t\t\t} else {\n \t\t\t\tGL11.glColor3f(1.0f, 1.0f, 1.0f);\n \t\t\t\tGL11.glVertex2f(0, 0);\n \t\t\t\tGL11.glVertex2f(0, 12);\n \t\t\t\tGL11.glVertex2f(12, 12);\n \t\t\t\tGL11.glVertex2f(12, 0);\n \t\t\t\t\n \t\t\t\tGL11.glColor3f(0.0f, 0.0f, 0.0f);\n \t\t\t\tGL11.glVertex2f(0, 3);\n \t\t\t\tGL11.glVertex2f(0, 9);\n \t\t\t\tGL11.glVertex2f(4, 9);\n \t\t\t\tGL11.glVertex2f(4, 3);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\tGL11.glEnd();\n \n \t\tGL11.glPopMatrix();\n \t\t\n \t}",
"private void CreateGenomeData()\n {\n SymbolList blankList = new BlankSymbolList(totalLength);\n SimpleSequenceFactory seqFactory = new SimpleSequenceFactory();\n blankSequence = seqFactory.createSequence(blankList, null, null, null);\n \n try {\n \n for(int i =0;i<chromosomeCount;i++)\n {\n ArrayList<GeneDisplayInfo> currentChr = outputGenes.get(i);\n int geneCount = currentChr.size();\n\n for(int j =0; j < geneCount ; j++)\n {\n \n GeneDisplayInfo gene = currentChr.get(j);\n StrandedFeature.Template stranded = new StrandedFeature.Template();\n\n if(gene.Complement)\n stranded.strand = StrandedFeature.NEGATIVE;\n else\n stranded.strand = StrandedFeature.POSITIVE;\n stranded.location = new RangeLocation(gene.Location1,gene.Location2);\n //String s = \"Source\n \n stranded.type = \"Source\" + Integer.toString(i);\n if(gene.name ==\"Circular\")\n stranded.type = \"CircularF\" + Integer.toString(i);\n stranded.source = gene.name;\n Feature f = blankSequence.createFeature(stranded);\n \n }\n \n } \n \n \n int totalfeature =sourceGene.size(); \n for(int i =0; i < totalfeature ; i++)\n {\n\n GeneDisplayInfo gene = GeneData.targetGene.get(i);\n StrandedFeature.Template stranded = new StrandedFeature.Template();\n \n if(gene.Complement)\n stranded.strand = StrandedFeature.NEGATIVE;\n else\n stranded.strand = StrandedFeature.POSITIVE;\n stranded.location = new RangeLocation(gene.Location1,gene.Location2);\n stranded.type = \"Target\";\n stranded.source = gene.name;\n blankSequence.createFeature(stranded);\n \n }\n \n \n }\n catch (BioException ex) {\n Logger.getLogger(GeneData.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ChangeVetoException ex) {\n Logger.getLogger(GeneData.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n\t\tcurdata = GenomeDataFactory.createGenomeData(blankSequence);\t\n \n \n }",
"abstract T newSplinePath2D();",
"public Tile3D(Context context, int id, float w, float h) {\n\t // Setup vertex array buffer. Vertices in float. A float has 4 bytes\n\t ByteBuffer vbb = ByteBuffer.allocateDirect(12 * 4);\n\t vbb.order(ByteOrder.nativeOrder()); // Use native byte order\n\t vertexBuffer = vbb.asFloatBuffer(); // Convert from byte to float\n\t \n\t imageFileID = id;\n\t bitmap = BitmapFactory.decodeStream(context.getResources().openRawResource(imageFileID));\n\t //bitmap \n\t /*InputStream is= context.getResources().openRawResource(imageFileIDs);\n\t try {\n\t bitmap = BitmapFactory.decodeStream(is);\n\n\t } finally {\n\t //Always clear and close\n\t try {\n\t is.close();\n\t is = null;\n\t } catch (IOException e) {\n\t }\n\t }*/\n\t int imgWidth = bitmap.getWidth();\n\t int imgHeight = bitmap.getHeight();\n\t float faceWidth = w;\n\t float faceHeight = h;\n\t // Adjust for aspect ratio\n\t if (imgWidth > imgHeight) {\n\t faceHeight = faceHeight * imgHeight / imgWidth; \n\t }\n\t else {\n\t faceWidth = faceWidth * imgWidth / imgHeight;\n\t }\n\t float faceLeft = -faceWidth / 2;\n\t float faceRight = -faceLeft;\n\t float faceTop = faceHeight / 2;\n\t float faceBottom = -faceTop;\n\t \n\t \n\t \n\t // Define the vertices for this face\n\t float[] vertices = {\n\t faceLeft, faceBottom, 0.0f, // 0. left-bottom-front\n\t faceRight, faceBottom, 0.0f, // 1. right-bottom-front\n\t faceLeft, faceTop, 0.0f, // 2. left-top-front\n\t faceRight, faceTop, 0.0f, // 3. right-top-front\n\t };\n\t vertexBuffer.put(vertices); // Copy data into buffer\n\t\t vertexBuffer.position(0); // Rewind\n\t \n\t ByteBuffer tbb = ByteBuffer.allocateDirect(texCoords.length * 4);\n\t tbb.order(ByteOrder.nativeOrder());\n\t texBuffer = tbb.asFloatBuffer();\n\t \n\t texBuffer.put(texCoords);\n\t \n\t texBuffer.position(0); // Rewind\n\t \n\t }",
"protected abstract MS_LineBuilder prepareContent(MS_LineBuilder lb);",
"public static void init() {\n // init quad VAO\n vao = glGenVertexArrays();\n glBindVertexArray(vao);\n int positionVbo = glGenBuffers();\n FloatBuffer fb = BufferUtils.createFloatBuffer(2 * 4);\n fb.put(0.0f).put(0.0f);\n fb.put(1.0f).put(0.0f);\n fb.put(1.0f).put(1.0f);\n fb.put(0.0f).put(1.0f);\n fb.flip();\n glBindBuffer(GL_ARRAY_BUFFER, positionVbo);\n glBufferData(GL_ARRAY_BUFFER, fb, GL_STATIC_DRAW);\n glVertexAttribPointer(Main.shader.inPositionLoc, 2, GL_FLOAT, false, 0, 0L);\n glEnableVertexAttribArray(Main.shader.inPositionLoc);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n glBindVertexArray(0);\n \n // init texture\n IntBuffer width = BufferUtils.createIntBuffer(1);\n IntBuffer height = BufferUtils.createIntBuffer(1);\n IntBuffer components = BufferUtils.createIntBuffer(1);\n byte[] dataArr = Main.loadResource(\"resources/font DF.png\");\n ByteBuffer data = BufferUtils.createByteBuffer(dataArr.length);\n data.put(dataArr).rewind();\n data = Objects.requireNonNull(stbi_load_from_memory(data, width, height, components, 1));\n int imgWidth = width.get();\n int imgHeight = height.get();\n charWidth = imgWidth / 16;\n charHeight = imgHeight / 16;\n \n texture = glGenTextures();\n glBindTexture(GL_TEXTURE_2D, texture);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\n glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, imgWidth, imgHeight, 0, GL_RED, GL_UNSIGNED_BYTE, data);\n stbi_image_free(data);\n \n // set texScale uniform\n glUniform2f(Main.shader.texScaleLoc, 1/16f, 1/16f);\n }",
"private ZigzagStroke() {}",
"public static ArrayList<Triangle> Triangulation(ArrayList<Point> points){\n\t\t\n\t\t\n\t\t\n\t\tpoints.sort(new PointComperator());\n\t\tpoints.add(MainFrame.buutomLeft);\n\t\tStack<Point> CH= new Stack<Point>();\n\t\tArrayList<Triangle> T=new ArrayList<Triangle>();\n\t\tCH.push(MainFrame.buutomLeft);\n\t\tCH.push(points.get(0));\n\t\tCH.push(points.get(1));\n\t\t\n\t\tfor (int i = 0; i < points.size(); i++) {\n\t\t\tPoint curr=points.get(i);\n\t\t\tif(Orient(CH.get(CH.size()-2),CH.peek(), curr))\n\t\t\t{\n\t\t\t\tT.add(new Triangle(curr, CH.peek(), MainFrame.buutomLeft));\n\t\t\t\tCH.push(curr);\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tT.add(new Triangle(CH.peek(), curr, MainFrame.buutomLeft));\n\n\t\t\t\twhile(!Orient(CH.get(CH.size()-2),CH.peek(),curr)) {\n\t\t\t\t\tPoint temp = CH.pop();\n\t\t\t\t\tT.add(new Triangle(temp, CH.peek(), curr));\n\t\t\t\t}\n\t\t\t\tCH.push(curr);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn T;\n\t}",
"void populateGlyphsWithComposites() throws IOException {\n for (final int indexInOriginal : this.subset.keySet()) {\n scanGlyphsRecursively(indexInOriginal);\n }\n\n addAllComposedGlyphsToSubset();\n\n for (final int compositeGlyph : this.compositeGlyphs) {\n final long offset = this.tableOffset\n + this.mtxTab[compositeGlyph].getOffset() + 10;\n if (!this.remappedComposites.contains(offset)) {\n remapComposite(offset);\n }\n }\n }",
"public GenericBatch(int textureUnits)\n\t{\n\t\tthis(textureUnits, 500);\n\t}",
"public void russia(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings\n fill(165,0,0);//gray\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n fill(0);//black\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(18,39,148);//blue\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //white\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //red\n fill(194,24,11);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n //white\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n fill(194,24,11);\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n\n fill(194,24,11);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(192,0,11);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n fill(0);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n fill(160,0,0);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n}",
"void SetUpMeshArrays(int PosHandle, int TexHandle, int NormalHandle)\n\t{\n\t\tm_VertexBuffer.position(m_MeshVerticesDataPosOffset);\n\t GLES20.glVertexAttribPointer(PosHandle, \n\t \t\t\t\t\t\t\t3, \n\t \t\t\t\t\t\t\tGLES20.GL_FLOAT, \n\t \t\t\t\t\t\t\tfalse,\n\t \t\t\t\t\t\t\tm_MeshVerticesDataStrideBytes, \n\t \t\t\t\t\t\t\tm_VertexBuffer);\n\t \n\t GLES20.glEnableVertexAttribArray(PosHandle);\n\t \n\t \n\t if (m_MeshHasUV)\n\t {\n\t \t// Set up Vertex Texture Data stream to shader \n\t \tm_VertexBuffer.position(m_MeshVerticesDataUVOffset);\n\t \tGLES20.glVertexAttribPointer(TexHandle, \n\t \t\t\t\t\t\t\t\t2, \n\t \t\t\t\t\t\t\t\tGLES20.GL_FLOAT, \n\t \t\t\t\t\t\t\t\tfalse,\n\t \t\t\t\t\t\t\t\tm_MeshVerticesDataStrideBytes, \n\t \t\t\t\t\t\t\t\tm_VertexBuffer);\n\t \tGLES20.glEnableVertexAttribArray(TexHandle);\n\t }\n\t \n\t if (m_MeshHasNormals)\n\t {\n\t \t\n\t \t// Set up Vertex Texture Data stream to shader\n\t \tm_VertexBuffer.position(m_MeshVerticesDataNormalOffset);\n\t \tGLES20.glVertexAttribPointer(NormalHandle, \n\t \t\t\t\t\t\t\t\t3, \n\t \t\t\t\t\t\t\t\tGLES20.GL_FLOAT, \n\t \t\t\t\t\t\t\t\tfalse,\n\t \t\t\t\t\t\t\t\tm_MeshVerticesDataStrideBytes, \n\t \t\t\t\t\t\t\t\tm_VertexBuffer);\n\t \tGLES20.glEnableVertexAttribArray(NormalHandle);\n\t } \n\t \n\t \n\t \n\t}",
"public void makeTriangleBox(int offsetX, int offsetY, int myWidth, int myHeight, int numTriHorizontal, int numTriVertical, int collRect, float[][] verts) {\n //Top Triangles\n for (int i = 0; i < numTriHorizontal; i++) {\n verts[i][0] = (i*myWidth/numTriHorizontal) + offsetX;\n verts[i][1] = offsetY;\n verts[i][2] = ((i+1)*(myWidth/numTriHorizontal)) + offsetX;\n verts[i][3] = offsetY;\n verts[i][4] = (myWidth/(2*numTriHorizontal)) + (i*myWidth/numTriHorizontal) + offsetX;\n if(i%2==0) {\n verts[i][5] = (float) ((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal)) + offsetY;\n } else {\n verts[i][5] = (float)((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal)) + offsetY;\n }\n\n }\n\n //Left Triangles\n\n for (int i = numTriHorizontal; i < (numTriVertical + numTriHorizontal); i++) {\n verts[i][0] = offsetX;\n verts[i][1] = offsetY + ((i-numTriHorizontal) * (myWidth/numTriHorizontal));\n verts[i][2] = offsetX;\n verts[i][3] = offsetY + ((i-(numTriHorizontal-1)) * (myWidth/numTriHorizontal));\n if(i%2==0) {\n verts[i][4] = offsetX + (float) ((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal));\n } else {\n verts[i][4] = offsetX + (float) ((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal));\n }\n verts[i][5] = offsetY + ((i-numTriHorizontal) * (myWidth/numTriHorizontal)) + myWidth/(2*numTriHorizontal);\n\n }\n\n\n //Right Triangles\n for(int i=numTriVertical+numTriHorizontal; i<(2*numTriVertical)+numTriHorizontal; i++) {\n verts[i][0] = width-offsetX;\n verts[i][1] = offsetY + ((i-(numTriVertical+numTriHorizontal)) * (myWidth/numTriHorizontal));\n verts[i][2] = width-offsetX;\n verts[i][3] = offsetY + ((i-(numTriVertical+(numTriHorizontal-1))) * (myWidth/numTriHorizontal));\n if(i%2==0) {\n verts[i][4] = width-(offsetX + (float) ((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal)));\n } else {\n verts[i][4] = width-(offsetX + (float) ((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal)));\n }\n verts[i][5] = offsetY + ((i-(numTriVertical+numTriHorizontal)) * (myWidth/numTriHorizontal)) + myWidth/(2*numTriHorizontal);\n\n }\n\n //Bottom Triangles\n for(int i=(2*numTriVertical)+numTriHorizontal; i<(2*numTriVertical)+(2*numTriHorizontal); i++) {\n verts[i][0] = ((i-((2*numTriVertical)+numTriHorizontal))*myWidth/numTriHorizontal) + offsetX;\n verts[i][1] = (height-100) - offsetY;\n verts[i][2] = ((i-((2*numTriVertical)+numTriHorizontal) +1)*(myWidth/numTriHorizontal)) + offsetX;\n verts[i][3] = (height-100) - offsetY;\n verts[i][4] = (myWidth/(2*numTriHorizontal)) + ((i-((2*numTriVertical)+numTriHorizontal))*myWidth/numTriHorizontal) + offsetX;\n if(i%2==0) {\n verts[i][5] = (float)((height-100) - ( ((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal)) + offsetY));\n } else {\n verts[i][5] = (float)((height-100) - ( ((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal)) + offsetY));\n }\n\n }\n\n }",
"@Override\n public void makeArray(Grid myGrid) {\n allShapes = new Triangle[myGrid.gridRows()][myGrid.gridColumns()];\n for (int r = 0; r < myGrid.gridRows(); r++) {\n for (int c = 0; c < myGrid.gridColumns(); c++) {\n Triangle mynewPixel = new Triangle(r, c, triangleBase(), cellHeight());\n allShapes[r][c] = mynewPixel;\n }\n }\n }",
"public \n\tBitsGLRenderer( \n\t\t\tfinal Context context ) {\n\t\t\n\t\tsuper( context );\n\t\t\n\t\tthis.mBitsGame = BitsGame.getInstance( );\n\n\t\tthis.setRenderer( this );\n\t\tthis.setFocusable(true);\n\t\tthis.setFocusableInTouchMode(true);\n\t\t\n\t\tthis.mVertexBufferSize = BitsApp.sRenderBufferSize;\n\t\tthis.mIndexBufferSize = BitsApp.sRenderBufferSize / 16 * BitsGLImage.INDICES_PER_SPRITE;\n\n\t\t//init the rotation array\n\t\tthis.mLastRotation[0] = 0f;\n\t\tthis.mLastRotation[1] = -1f;\n\t\tthis.mLastRotation[2] = -1f;\t\t\n\t\t\n\t\tthis.mVertices = new float[this.mVertexBufferSize];\n\t\tByteBuffer buffer = ByteBuffer.allocateDirect( this.mVertices.length * 16 ); //16 -> (X,Y,U,V) are 4 Float values -> Float is 4 Bytes long\n\t buffer.order( ByteOrder.nativeOrder() );\n\t this.mVertexBuffer = buffer.asFloatBuffer();\n\t \n\t //Pre-Filling the index buffer. The buffer content will never change.\n\t //This buffer always contains a sequence of 0,1,2,2,3,0 values that are used to render BitsImages efficiently.\n\t final short[] indices = new short[this.mIndexBufferSize];\n\t final int len = indices.length;\n\t short j = 0;\n\t for ( int i = 0; i < len; i+= BitsGLImage.INDICES_PER_SPRITE, j += BitsGLImage.VERTICES_PER_SPRITE ) {\n\t \tindices[i + 0] = (short)( j + 0 ); // Calculate Index 0 (first Triangle)\n\t indices[i + 1] = (short)( j + 1 ); // Calculate Index 1 (first Triangle)\n\t indices[i + 2] = (short)( j + 2 ); // Calculate Index 2 (first Triangle)\n\t indices[i + 3] = (short)( j + 2 ); // Calculate Index 3 (second Triangle)\n\t indices[i + 4] = (short)( j + 3 ); // Calculate Index 4 (second Triangle)\n\t indices[i + 5] = (short)( j + 0 ); // Calculate Index 5 (second Triangle)\n\t }\n buffer = ByteBuffer.allocateDirect( indices.length * (Short.SIZE / 8) ); //Short == 2 Bytes\n buffer.order( ByteOrder.nativeOrder() );\n this.mIndexBuffer = buffer.asShortBuffer();\n this.mIndexBuffer.clear();\n this.mIndexBuffer.put( indices );\n this.mIndexBuffer.flip();\n\t}",
"public void buildInitialBand()\r\n\t{\n\t\r\n\tint bl = boundary.size();\r\n\tfor(int i=0; i<bl; i++) \r\n\t\t{\r\n\t\tInt2d bCur = boundary.get(i);\r\n\t\t//System.out.println(bCur.x + \", \" + bCur.y + \": size = \" + heap.size());\r\n\t\t\r\n\t\ttestPointsAround(bCur.x,bCur.y);\r\n\t\t}\r\n\t\r\n\t}",
"public List<Triangle2D> tesselatePolygon(Polygon2D poly);",
"@Override\n public void onDrawFrame(GL10 gl) {\n // Clear color and depth buffers using clear-value set earlier\n gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);\n \n // You OpenGL|ES rendering code here\n // ......\n gl.glLoadIdentity(); // Reset model-view matrix\n gl.glTranslatef(-((float) triangles.get(5)[0].x()+1.0f),-((float) triangles.get(5)[0].y()+1.0f),0.0f);\n Log.i(\"dd\",\"\"+triangles.get(0)[0].x() + \" \"+ triangles.get(0)[0].y()+\" \"+ triangles.get(0)[0].z());\n for(int i=0;i<triangles.size();i++){\n \t\n \tfloat[] vertices=new float[] {\n \t\t(float) triangles.get(i)[0].x(),(float) triangles.get(i)[0].y(),(float) triangles.get(i)[0].z()\t , //first point\n \t\t(float) triangles.get(i)[1].x(),(float) triangles.get(i)[1].y(),(float) triangles.get(i)[1].z()\t , //second point\n \t\t(float) triangles.get(i)[2].x(),(float) triangles.get(i)[2].y(),(float) triangles.get(i)[2].z()\t //third point\n \t };\n \t triangle=new Triangle(vertices);\n \t triangle.draw(gl); // Draw triangle \n }\n /* gl.glLoadIdentity(); // Reset model-view matrix\n gl.glTranslatef(-5.0f,-6.0f,-2.0f);\n float[] vertices = { // Vertices of the triangle\n \t 5.0f, 6.0f, 1.0f, // 0. top\n \t 3.0f, 0.0f, 0.0f, // 1. left-bottom\n \t 7.0f, 0.0f, 0.0f // 2. right-bottom\n \t };\n triangle=new Triangle(vertices);\n triangle.draw(gl); */\n\n }",
"public Triangles()\n {\n this.triangles = new ArrayList<>();\n }",
"private void construct(){\n TriangleMesh mesh;\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/bunny.obj\");\n mesh.setMaterial(new MaterialNode(0.1f, 0.1f, .5f, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/cube.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 1, 0, 0));\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/teddy.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 0, 1, 0));\n mesh.setMaterial(new MaterialNode(0.1f, .5f, 0.1f, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/sphere.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 1, 1, 0));\n mesh.setMaterial(new MaterialNode(1, 0, 0, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n scene.calculateNormals();\n scene.setupRendering();\n }",
"public void uk(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings--england\n fill(1,0,74);//dark blue\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n noStroke();\n fill(255);\n rect(15,286,74,20);\n rect(212,284,74,20);\n rect(48,248,20,74);\n rect(233,248,20,74);\n quad(26,272,35,260,83,312,72,320);\n quad(262,260,272,272,229,312,220,318);\n quad(25,318,38,328,85,278,75,263);\n quad(264,324,280,316,228,262,214,274);\n\n fill(207,20,43);\n rect(51,248,15,74);\n rect(235,247,15,74);\n rect(15,289,74,15);\n rect(211,286,74,15);\n\n stroke(1);\n fill(0);//white\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(0,36,125);//red\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //gray\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //white\n fill(200);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n\n fill(207,20,43);\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n fill(0,36,125);\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n fill(200);\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n\n fill(0,0,67);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(0,36,125);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n\n fill(0,36,125);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n\n fill(1,1,75);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n}",
"ArrayList<ArrayList<Vertex>> generateInitVertices() {\n ArrayList<ArrayList<Vertex>> vertices = new ArrayList<ArrayList<Vertex>>();\n for (int x = 0; x < width; x++) {\n ArrayList<Vertex> temp = new ArrayList<Vertex>();\n for (int y = 0; y < height; y++) {\n temp.add(new Vertex(x, y));\n }\n vertices.add(temp);\n }\n Random r = new Random();\n for (ArrayList<Vertex> vList : vertices) {\n for (Vertex v : vList) {\n if (v.x != 0) {\n v.outEdges.add(new Edge(v, vertices.get(v.x - 1).get(v.y), r.nextInt(1000)));\n }\n if (v.x != width - 1) {\n v.outEdges.add(new Edge(v, vertices.get(v.x + 1).get(v.y), r.nextInt(1000)));\n }\n if (v.y != 0) {\n v.outEdges.add(new Edge(v, vertices.get(v.x).get(v.y - 1), r.nextInt(1000)));\n }\n if (v.y != height - 1) {\n v.outEdges.add(new Edge(v, vertices.get(v.x).get(v.y + 1), r.nextInt(1000)));\n }\n }\n }\n return vertices;\n }",
"public void build() {\n x = vertices.get(0);\n y = vertices.get(1);\n vertices.reverse();\n BodyFactory.createPolyLine(x, y, vertices.toArray(), BodyDef.BodyType.StaticBody, LineType.SOLID);\n }",
"protected void create() {\n\t\t_segments = _geneticCode.getNGenes() * _geneticCode.getSymmetry();\n\t\t_segColor = new Color[_segments];\n\t\tfor (int i = 0; i < _segments; i++)\n\t\t\t_segColor[i] = _geneticCode.getGene(i%_geneticCode.getNGenes()).getColor();\n\t\t_segBranch = new int[_segments];\n\t\tfor (int j = 0; j < _segments; j++)\n\t\t\t_segBranch[j] = _geneticCode.getGene(j%_geneticCode.getNGenes()).getBranch();\n\t\t_segredReaction = new int[_segments];\n\t\tfor (int a = 0; a < _segments; a++)\n\t\t\t_segredReaction[a] = _geneticCode.getGene(a%_geneticCode.getNGenes()).getredReaction();\n\t\t_seggreenReaction = new int[_segments];\n\t\tfor (int b = 0; b < _segments; b++)\n\t\t\t_seggreenReaction[b] = _geneticCode.getGene(b%_geneticCode.getNGenes()).getgreenReaction();\n\t\t_segblueReaction = new int[_segments];\n\t\tfor (int c = 0; c < _segments; c++)\n\t\t\t_segblueReaction[c] = _geneticCode.getGene(c%_geneticCode.getNGenes()).getblueReaction();\n\t\t_segplagueReaction = new int[_segments];\n\t\tfor (int d = 0; d < _segments; d++)\n\t\t\t_segplagueReaction[d] = _geneticCode.getGene(d%_geneticCode.getNGenes()).getplagueReaction();\n\t\t_segwhiteReaction = new int[_segments];\n\t\tfor (int e = 0; e < _segments; e++)\n\t\t\t_segwhiteReaction[e] = _geneticCode.getGene(e%_geneticCode.getNGenes()).getwhiteReaction();\n\t\t_seggrayReaction = new int[_segments];\n\t\tfor (int f = 0; f < _segments; f++)\n\t\t\t_seggrayReaction[f] = _geneticCode.getGene(f%_geneticCode.getNGenes()).getgrayReaction();\n\t\t_segdefaultReaction = new int[_segments];\n\t\tfor (int g = 0; g < _segments; g++)\n\t\t\t_segdefaultReaction[g] = _geneticCode.getGene(g%_geneticCode.getNGenes()).getdefaultReaction();\n\t\t_segmagentaReaction = new int[_segments];\n\t\tfor (int h = 0; h < _segments; h++)\n\t\t\t_segmagentaReaction[h] = _geneticCode.getGene(h%_geneticCode.getNGenes()).getmagentaReaction();\n\t\t_segpinkReaction = new int[_segments];\n\t\tfor (int i = 0; i < _segments; i++)\n\t\t\t_segpinkReaction[i] = _geneticCode.getGene(i%_geneticCode.getNGenes()).getpinkReaction();\n\t\t_segcoralReaction = new int[_segments];\n\t\tfor (int j = 0; j < _segments; j++)\n\t\t\t_segcoralReaction[j] = _geneticCode.getGene(j%_geneticCode.getNGenes()).getcoralReaction();\n\t\t_segorangeReaction = new int[_segments];\n\t\tfor (int k = 0; k < _segments; k++)\n\t\t\t_segorangeReaction[k] = _geneticCode.getGene(k%_geneticCode.getNGenes()).getorangeReaction();\n\t\t_segbarkReaction = new int[_segments];\n\t\tfor (int l = 0; l < _segments; l++)\n\t\t\t_segbarkReaction[l] = _geneticCode.getGene(l%_geneticCode.getNGenes()).getbarkReaction();\n\t\t_segvioletReaction = new int[_segments];\n\t\tfor (int m = 0; m < _segments; m++)\n\t\t\t_segvioletReaction[m] = _geneticCode.getGene(m%_geneticCode.getNGenes()).getvioletReaction();\n\t\t_segvirusReaction = new int[_segments];\n\t\tfor (int n = 0; n < _segments; n++)\n\t\t\t_segvirusReaction[n] = _geneticCode.getGene(n%_geneticCode.getNGenes()).getvirusReaction();\n\t\t_segmaroonReaction = new int[_segments];\n\t\tfor (int o = 0; o < _segments; o++)\n\t\t\t_segmaroonReaction[o] = _geneticCode.getGene(o%_geneticCode.getNGenes()).getmaroonReaction();\n\t\t_segoliveReaction = new int[_segments];\n\t\tfor (int p = 0; p < _segments; p++)\n\t\t\t_segoliveReaction[p] = _geneticCode.getGene(p%_geneticCode.getNGenes()).getoliveReaction();\n\t\t_segmintReaction = new int[_segments];\n\t\tfor (int q = 0; q < _segments; q++)\n\t\t\t_segmintReaction[q] = _geneticCode.getGene(q%_geneticCode.getNGenes()).getmintReaction();\n\t\t_segcreamReaction = new int[_segments];\n\t\tfor (int r = 0; r < _segments; r++)\n\t\t\t_segcreamReaction[r] = _geneticCode.getGene(r%_geneticCode.getNGenes()).getcreamReaction();\n\t\t_segspikeReaction = new int[_segments];\n\t\tfor (int s = 0; s < _segments; s++)\n\t\t\t_segspikeReaction[s] = _geneticCode.getGene(s%_geneticCode.getNGenes()).getspikeReaction();\n\t\t_seglightblueReaction = new int[_segments];\n\t\tfor (int t = 0; t < _segments; t++)\n\t\t\t_seglightblueReaction[t] = _geneticCode.getGene(t%_geneticCode.getNGenes()).getlightblueReaction();\n\t\t_segochreReaction = new int[_segments];\n\t\tfor (int u = 0; u < _segments; u++)\n\t\t\t_segochreReaction[u] = _geneticCode.getGene(u%_geneticCode.getNGenes()).getochreReaction();\n\t\t_seglightbrownReaction = new int[_segments];\n\t\tfor (int v = 0; v < _segments; v++)\n\t\t\t_seglightbrownReaction[v] = _geneticCode.getGene(v%_geneticCode.getNGenes()).getlightbrownReaction();\n\t\t_segbrownReaction = new int[_segments];\n\t\tfor (int w = 0; w < _segments; w++)\n\t\t\t_segbrownReaction[w] = _geneticCode.getGene(w%_geneticCode.getNGenes()).getbrownReaction();\n\t\t_segsickReaction = new int[_segments];\n\t\tfor (int x = 0; x < _segments; x++)\n\t\t\t_segsickReaction[x] = _geneticCode.getGene(x%_geneticCode.getNGenes()).getsickReaction();\n\t\t_segskyReaction = new int[_segments];\n\t\tfor (int y = 0; y < _segments; y++)\n\t\t\t_segskyReaction[y] = _geneticCode.getGene(y%_geneticCode.getNGenes()).getskyReaction();\n\t\t_seglilacReaction = new int[_segments];\n\t\tfor (int z = 0; z < _segments; z++)\n\t\t\t_seglilacReaction[z] = _geneticCode.getGene(z%_geneticCode.getNGenes()).getlilacReaction();\n\t\t_segiceReaction = new int[_segments];\n\t\tfor (int a = 0; a < _segments; a++)\n\t\t\t_segiceReaction[a] = _geneticCode.getGene(a%_geneticCode.getNGenes()).geticeReaction();\n\t\t_segsilverReaction = new int[_segments];\n\t\tfor (int b = 0; b < _segments; b++)\n\t\t\t_segsilverReaction[b] = _geneticCode.getGene(b%_geneticCode.getNGenes()).getsilverReaction();\n\t\t_segfireReaction = new int[_segments];\n\t\tfor (int c = 0; c < _segments; c++)\n\t\t\t_segfireReaction[c] = _geneticCode.getGene(c%_geneticCode.getNGenes()).getfireReaction();\n\t\t_segfriendReaction = new int[_segments];\n\t\tfor (int d = 0; d < _segments; d++)\n\t\t\t_segfriendReaction[d] = _geneticCode.getGene(d%_geneticCode.getNGenes()).getfriendReaction();\n\t\t_seggreenbrownReaction = new int[_segments];\n\t\tfor (int e = 0; e < _segments; e++)\n\t\t\t_seggreenbrownReaction[e] = _geneticCode.getGene(e%_geneticCode.getNGenes()).getgreenbrownReaction();\n\t\t_segspikepointReaction = new int[_segments];\n\t\tfor (int f = 0; f < _segments; f++)\n\t\t\t_segspikepointReaction[f] = _geneticCode.getGene(f%_geneticCode.getNGenes()).getspikepointReaction();\n\t\t_startPointX = new int[_segments];\n\t\t_startPointY = new int[_segments];\n\t\t_endPointX = new int[_segments];\n\t\t_endPointY = new int[_segments];\n\t\t_m1 = new double[_segments];\n\t\t_m2 = new double[_segments];\n\t\t_m = new double[_segments];\n\t\t_mphoto = new double[_segments];\n\t\tx1 = new int[_segments];\n\t\ty1 = new int[_segments];\n\t\tx2 = new int[_segments];\n\t\ty2 = new int[_segments];\n\t}",
"public GenericBatch(int textureUnits, int texCoordCount, int size, boolean hasColor)\n\t{\n\t\tthis(textureUnits, texCoordCount, size, hasColor, (VertexAttribute[]) null);\n\t}",
"public void drawFace(int face) {\n\t\tif (faceNearClipped[face]) {\n\t\t\tdrawNearClippedFace(face);\n\t\t\treturn;\n\t\t}\n\n\t\tint a = faceVertexA[face];\n\t\tint b = faceVertexB[face];\n\t\tint c = faceVertexC[face];\n\t\tDraw3D.clipX = faceClippedX[face];\n\n\t\tif (faceAlpha == null) {\n\t\t\tDraw3D.alpha = 0;\n\t\t} else {\n\t\t\tDraw3D.alpha = faceAlpha[face];\n\t\t}\n\n\t\tint type;\n\n\t\tif (faceInfo == null) {\n\t\t\ttype = 0;\n\t\t} else {\n\t\t\ttype = faceInfo[face] & 0b11;\n\t\t}\n\n\t\tif (type == 0) {\n\t\t\tDraw3D.fillGouraudTriangle(vertexScreenY[a], vertexScreenY[b], vertexScreenY[c], vertexScreenX[a], vertexScreenX[b], vertexScreenX[c], faceColorA[face], faceColorB[face], faceColorC[face]);\n\t\t} else if (type == 1) {\n\t\t\tDraw3D.fillTriangle(vertexScreenY[a], vertexScreenY[b], vertexScreenY[c], vertexScreenX[a], vertexScreenX[b], vertexScreenX[c], palette[faceColorA[face]]);\n\t\t} else if (type == 2) {\n\t\t\tint texturedFace = faceInfo[face] >> 2;\n\t\t\tint ta = texturedVertexA[texturedFace];\n\t\t\tint tb = texturedVertexB[texturedFace];\n\t\t\tint tc = texturedVertexC[texturedFace];\n\t\t\tDraw3D.fillTexturedTriangle(vertexScreenY[a], vertexScreenY[b], vertexScreenY[c], vertexScreenX[a], vertexScreenX[b], vertexScreenX[c], faceColorA[face], faceColorB[face], faceColorC[face], vertexViewSpaceX[ta], vertexViewSpaceX[tb], vertexViewSpaceX[tc], vertexViewSpaceY[ta], vertexViewSpaceY[tb], vertexViewSpaceY[tc], vertexViewSpaceZ[ta], vertexViewSpaceZ[tb], vertexViewSpaceZ[tc], faceColor[face]);\n\t\t} else if (type == 3) {\n\t\t\tint texturedFace = faceInfo[face] >> 2;\n\t\t\tint ta = texturedVertexA[texturedFace];\n\t\t\tint tb = texturedVertexB[texturedFace];\n\t\t\tint tc = texturedVertexC[texturedFace];\n\t\t\tDraw3D.fillTexturedTriangle(vertexScreenY[a], vertexScreenY[b], vertexScreenY[c], vertexScreenX[a], vertexScreenX[b], vertexScreenX[c], faceColorA[face], faceColorA[face], faceColorA[face], vertexViewSpaceX[ta], vertexViewSpaceX[tb], vertexViewSpaceX[tc], vertexViewSpaceY[ta], vertexViewSpaceY[tb], vertexViewSpaceY[tc], vertexViewSpaceZ[ta], vertexViewSpaceZ[tb], vertexViewSpaceZ[tc], faceColor[face]);\n\t\t}\n\t}",
"public VisuCoordinateTranslator() {\r\n limitedDirections = new HashMap<String, Integer>();\r\n limitedCoordinates = new HashMap<String, Shape>();\r\n limitedGroundCoordinates = new HashMap<String, Float[]>();\r\n Float c[] = {22f, 2f, 8.5f, -1.7f, 0f};\r\n limitedDirections.put(\"Status_GWP01\", 0);\r\n ArrayList a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n StraightShape ss = new StraightShape(a);\r\n limitedCoordinates.put(\"0.1.0\", ss);\r\n\r\n\r\n c = new Float[]{-0.97f, 0.88f, 0f, -0.1f, 1f};\r\n limitedDirections.put(\"Status_ETKa1\", 1);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n limitedCoordinates.put(\"1.1.0\", ss);\r\n\r\n limitedDirections.put(\"Status_ETKa2\", 1);\r\n\r\n c = new Float[]{0.07f, -0.74f, 0f, 0f, 1f};\r\n limitedDirections.put(\"LAM_ETKa1\", 2);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n limitedCoordinates.put(\"2.1.0\", ss);\r\n\r\n c = new Float[]{0.07f, -0.74f, 0f, 0f, 1f};\r\n limitedDirections.put(\"LAM_ETKa2\", 2);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n\r\n\r\n limitedCoordinates.put(\"2.1.0\", ss);\r\n\r\n ArrayList<ArrayList<Float>> arrayOval = new ArrayList<ArrayList<Float>>();\r\n c = new Float[]{6.3f, -2f, 7.3f, -14.38f, 0f};//straight_1\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-2f, -4.8f, 7.3f, -14.38f, 0f};//straight_2\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.072f, 0.0695f, 2.826f, -5.424f, -17.2f, 7.3f, 1f};//circular_3\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-4.8f, -2f, 7.3f, -19.715f, 0f};//straight_4\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-2f, 6.3f, 7.3f, -19.715f, 0f};//straight_5\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.038f, 0.1032f, 2.833f, 6.567f, -17.2f, 7.3f, 1f};//circular_6\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.1302f, 0.0114f, 2.8202f, -2.0298f, -17.2f, 7.3f, 1f};//circular_7\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n \r\n c = new Float[]{0.41f, 0.48f, 0.6f, 0.67f, 0.78f, 0.92f};//partitions\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n\r\n OvalShape os = new OvalShape(arrayOval);\r\n\r\n for (int i = 2; i < 11; i++) {\r\n for (int j = 0; j < 3; j++) {\r\n limitedCoordinates.put(\"1.\" + i + \".\" + j, os);\r\n limitedCoordinates.put(\"2.\" + i + \".\" + j, ss);\r\n }\r\n }\r\n\r\n \r\n \r\n c = new Float[]{2.0785f, -1.8972f};\r\n limitedGroundCoordinates.put(\"0.1.0\", c);\r\n c = new Float[]{-6.3859f,-0.4682f};\r\n limitedGroundCoordinates.put(\"1.1.0\", c);\r\n }",
"public void buildTileOfTripleView(Context context,FakeSuiteBean sb) {\n\t\tpartitionView = new TripleView(context);\n\t\tpartitionView.setContent(sb.resId);\n\t\ttile = new TileView(context);\n\t\ttile.setContent(partitionView);\n\t\ttile.setTitle(sb.tilte);\n\t\ttileViewList.add(tile);\n\t}",
"void DrawTriangle(int triangleSize, int startx, int starty, int size, String[] labels,GamePanel gamePanel) {\n int index=0;\n for (int i = 0; i < triangleSize; i++) {\n int start = (int) Math.round(startx - (i * size * Math.sqrt(3) / 2) / 2);\n for (int j = 0; j < i + 1; j++) {\n HexButton button = new HexButton(labels[index]);\n button.setNumber( Integer.parseInt(labels[index]) - 1);\n index++;\n button.setBounds((int) Math.round(start + (j * size * Math.sqrt(3) / 2)), i * (size * 3 / 4) + starty, 100, 100);\n button.addActionListener(gamePanel);\n this.add(button);\n }\n }\n }",
"private void drawtab(Graphics g1, int startoffset, int endoffset, boolean isUpwardTab, String text, Color color, String flag){\n\n // ~~~~ 1 ~~~~ revursive for one situation that this annotation are \n // layout on more than one line\n try{\n \n // ~~~~ 1.1 ~~~~ get rectangle of the annotation\n Rectangle rect1 = this.getUI().modelToView(this, startoffset);\n int y1 = rect1.y; // get the Y coordinate of the upper-left corner of the Rectangle.\n Rectangle rect2 = this.getUI().modelToView(this, endoffset);\n int y2 = rect2.y; // get the Y coordinate of the upper-left corner of the Rectangle.\n \n // ~~~~ 1.2 ~~~~ get \n // this annotation are layout on more than one line, if the span \n // start and the span end have different Y coordinate of their \n // upper-left corner of the their rectangle.\n if( y1!=y2){\n for( int i=startoffset; i<=endoffset;i++){\n Rectangle recttemp = this.getUI().modelToView(this, i);\n int ytemp = recttemp.y;\n if( ytemp == y1 )\n continue;\n else{\n //System.out.println(\"i=\"+i+\", start = \" + startoffset + \", endoffset = \"+ endoffset);\n drawtab(g1, startoffset, i-1, isUpwardTab, text.substring(0, i-1-startoffset), color, flag);//\n drawtab(g1, i, endoffset, isUpwardTab, text.substring(i-startoffset, text.length()), color, \"dead\");//\n return;\n }\n\n }\n }\n\n }catch(Exception ex){\n log.LoggingToFile.log( Level.SEVERE, ex.getMessage() );\n }\n\n \n // ~~~~ 2 ~~~~\n // This part is used to draw the rectangle area of a tab \n try {\n // color for line\n //Color linecolor_outer = new Color(153,153,102);\n Color linecolor;\n \n if(( flag!=null)&&(flag.equals(\"father\")))\n linecolor = new Color(204,0,0);\n else\n linecolor = new Color(0,0,204);\n \n Color linecolor_outer = linecolor;\n Color linecolor_inner = new Color(204,204,204);\n \n\n // get rectangle of the annotation\n Rectangle re = this.getUI().modelToView(this, startoffset);\n\n // coordinates (x1,y1) of the upper left point of the rectangle\n // view to this caret point\n int rect_upperleftX = re.x, rect_upperleftY = re.y;\n int rect_height = re.height;\n // coordinates (x2,y2) of the upper right point of the rectangle\n // view to this caret point\n re = this.getUI().modelToView(this, endoffset);\n int rect_upperrightX = re.x, rect_upperrightY = re.y;\n\n int extraheight = 3;\n\n // dirction of tab's head: to top or to bottom\n if( isUpwardTab ){\n\n Color fillcolor;\n fillcolor = ( color==null? new Color(204,204,204) : color);\n \n //g1.setColor( new Color(204,204,204) );\n //g1.fillRect(rect_upperleftX+3, rect_upperleftY-extraheight+3, \n // Math.abs(rect_upperrightX - rect_upperleftX)-3,\n // rect_height+extraheight-3);\n\n //g1.setColor(fillcolor);\n //g1.fillRect(rect_upperleftX, rect_upperleftY - extraheight , rect_upperrightX - rect_upperleftX + 2, extraheight+4);\n\n //g1.setColor(linecolor_outer);\n //g1.drawRect(rect_upperleftX, rect_upperleftY - extraheight-1, rect_upperrightX - rect_upperleftX, rect_height+extraheight+2);\n \n g1.setColor( Color.WHITE ); \n g1.fillRect(rect_upperleftX, rect_upperleftY - extraheight , rect_upperrightX - rect_upperleftX + 2, re.height + 2);\n g1.setColor( linecolor );\n //g1.fillRoundRect(re.x, re.y, re.width, re.height, 10, 10);\n g1.fillRect(rect_upperleftX, rect_upperleftY - extraheight , rect_upperrightX - rect_upperleftX + 2, re.height + 2 );\n g1.setColor( color );\n g1.fillRect(rect_upperleftX+2, rect_upperleftY - extraheight + 2 , rect_upperrightX - rect_upperleftX -2, re.height - 2 );\n //g1.drawRect(+1, rect_upperleftY - extraheight, rect_upperrightX - rect_upperleftX-2, rect_height+extraheight-0);\n //.setColor(linecolor_inner);\n //g1.drawRect(rect_upperleftX+2, rect_upperleftY - extraheight+1, rect_upperrightX - rect_upperleftX-4, rect_height+extraheight-2);\n\n g1.setColor(Color.black);\n\n // draw point\n if(( flag!=null)&&(flag.equals(\"dead\"))){\n \n } else {\n\n int cx = rect_upperleftX+2;\n int cy = rect_upperleftY - extraheight+2;\n g1.fillOval( cx, cy, 10, 10);\n\n if(( flag!=null)&&(flag.equals(\"father\")))\n g1.setColor( Color.red );\n else\n g1.setColor( new Color(255,153,0) );\n \n g1.fillOval( cx, cy, 8, 8);\n }\n\n g1.setColor(Color.black);\n int elementindex = this.getDocument().getDefaultRootElement().getElementIndex(startoffset);\n Element e = this.getDocument().getDefaultRootElement().getElement(elementindex);\n Font font = this.getStyledDocument().getFont( e.getAttributes() );\n\n int r = color.getAlpha();\n int b = color.getBlue();\n int gg = color.getGreen();\n double grayLevel = r * 0.299 + gg * 0.587 + b * 0.114;\n Color textcolor = grayLevel > 192 ? Color.BLACK : Color.white;\n \n g1.setFont( font );\n g1.setColor( textcolor );\n // draw text\n if((text!=null)&&(text.length()>0))\n //g1.drawString(text, rect_upperleftX+2, rect_upperleftY + rect_height-2);\n g1.drawString(text, rect_upperleftX, rect_upperleftY + re.height - 7 );\n \n // opinion1: draw rect\n /*\n\n // lining: lowerleft - lowerright\n g1.drawLine(rect_upperleftX+i, rect_upperleftY-i+rect_height, rect_upperrightX - i,\n rect_upperleftY - i+rect_height );\n\n // lining: topleft - lowerleft\n g1.drawLine(rect_upperleftX+i, rect_upperleftY+i, rect_upperleftX+i,\n rect_upperleftY - i + rect_height );\n\n // lining: topright - lowerright\n g1.drawLine(rect_upperrightX - i, rect_upperrightY + i, rect_upperrightX - i,\n rect_upperrightY - i + rect_height );\n */\n\n }\n\n\n\n //System.out.println(\"start startOffset = \" + re2.startOffset + \", endOffset = \" + re2.endOffset + \"; width = \"+re2.width + \", height = \" + re2.height);\n\n } catch (Exception ex) {\n log.LoggingToFile.log( Level.SEVERE, \"Error 1010140012:: fail to draw tab\" + ex.toString());\n }\n }",
"void buildSettlement(VertexLocation vert, boolean free);",
"public Triangle() {\n\t\tsuper.addPoint(new java.awt.Point(0,1));\n\t\tsuper.addPoint(new java.awt.Point(1,0));\n\t\tsuper.addPoint(new java.awt.Point(2,1));\n\t}",
"public void usa(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings\n fill(1,0,74);//dark blue\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n fill(200);//white\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(192,0,11);//red\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //white\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //white\n fill(200);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n //green\n fill(0,0,67);\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n //white\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n //green\n fill(0,0,67);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n //green\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(192,0,11);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n //green\n fill(192,0,11);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n fill(1,1,75);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n }",
"private void initShape()\n\t{\n\t\tcoords = new int[4][2];\n\t\tcoordsTable = new int [][][] \n\t\t{\n { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },\n { { 0, -1 }, { 0, 0 }, { -1, 0 }, { -1, 1 } },\n { { 0, -1 }, { 0, 0 }, { 1, 0 }, { 1, 1 } },\n { { 0, -1 }, { 0, 0 }, { 0, 1 }, { 0, 2 } },\n { { -1, 0 }, { 0, 0 }, { 1, 0 }, { 0, 1 } },\n { { 0, 0 }, { 1, 0 }, { 0, 1 }, { 1, 1 } },\n { { -1, -1 }, { 0, -1 }, { 0, 0 }, { 0, 1 } },\n { { 1, -1 }, { 0, -1 }, { 0, 0 }, { 0, 1 } }\n\t\t};\n\t\t\n\t\tsetShape (Tetromino.NOSHAPE);\n\t}",
"@Override\n public void createTerrain( ) {\n //System.out.println( \"terrain#material: \" +getAppearance().getMaterial() ); \n ElevationGridGenerator gridGenerator = new ElevationGridGenerator(\n getTerrainWidth(),\n getTerrainDepth(),\n getTerrainHeights()[0].length,\n getTerrainHeights().length,\n getTranslation(),\n isTerrainCentered() );\n\n // set the terrain into the elevation grid handler\n gridGenerator.setTerrainDetail( getTerrainHeights(), 0 );\n\n GeometryData data = new GeometryData();\n data.geometryType = getGeometryType();\n data.geometryComponents = GeometryData.NORMAL_DATA;\n if ( getTexture() != null ){\n data.geometryComponents |= GeometryData.TEXTURE_2D_DATA;\n }\n try {\n gridGenerator.generate( data );\n } catch ( UnsupportedTypeException ute ) {\n System.out.println( \"Geometry type is not supported\" );\n }\n int format = GeometryArray.COORDINATES | GeometryArray.NORMALS;\n if ( getTexture() != null )\n format |= GeometryArray.TEXTURE_COORDINATE_2;\n GeometryArray geom = createGeometryArray( data, format );\n\n geom.setCoordinates( 0, data.coordinates );\n geom.setNormals( 0, data.normals );\n if ( getTexture() != null ){\n geom.setTextureCoordinates( 0, 0, data.textureCoordinates );\n }\n setGeometry( geom );\n }",
"public void render() {\n // Every cell is an individual quad\n for (int x = 0; x < z.length-1; x++)\n {\n beginShape(QUAD_STRIP);\n for (int y = 0; y < z[x].length; y++)\n {\n // one quad at a time\n // each quad's color is determined by the height value at each vertex\n // (clean this part up)\n stroke(0xffff69b4);\n stroke(0xffbbbbbb);\n float currentElevation = z[x][y];\n float currentShade = map(currentElevation, -120, 120, 0, 255);\n // fill(currentShade, 255);\n noFill();\n float xCoordinate = x*scl-w/2;\n float yCoordinate = y*scl-h/2;\n vertex(xCoordinate, yCoordinate, z[x][y]);\n vertex(xCoordinate + scl, yCoordinate, z[x+1][y]);\n }\n endShape();\n }\n }",
"private void createTile(){\n for(int i = 0; i < COPY_TILE; i++){\n for(int k = 0; k < DIFF_TILES -2; k++){\n allTiles.add(new Tile(k));\n }\n }\n }",
"public void compress(String[] text) throws LineNotExistsException {\n\t\tString[] t = new String[Math.min(text.length, inputLimit)];\r\n\t\tfor (int i = 0; i < t.length; i++) {\r\n\t\t\tt[i] = text[i];\r\n//\t\t\tein += text[i];\r\n\t\t}\r\n//\t\ttext = t;\r\n\r\n\t\t// topic\r\n\t\tText topic = lang.newText(new Coordinates(20, 50), \"LZ78\", \"Topic\", null,\r\n\t\t\t\ttptopic);\r\n\r\n\t\tlang.newRect(new Offset(-5, -5, topic, \"NW\"),\r\n\t\t\t\tnew Offset(5, 5, topic, \"SE\"), \"topicRect\", null, rctp);\r\n\r\n\t\t// Algo in words\r\n\t\tlang.nextStep();\r\n\t\tText algoinWords = lang.newText(new Coordinates(20, 100),\r\n\t\t\t\t\"Der Algorithmus in Worten\", \"inWords\", null, tpwords);\r\n\r\n\t\t// Algo steps\r\n\t\tlang.nextStep();\r\n\t\tText step1 = lang\r\n\t\t\t\t.newText(\r\n\t\t\t\t\t\tnew Offset(0, 100, topic, \"SW\"),\r\n\t\t\t\t\t\t\"1) Lege ein Wörterbuch an, das initial das Ende einer Datei (ferner EOF) mit 0 und\",\r\n\t\t\t\t\t\t\"line1\", null, tpsteps);\r\n\t\tText step12 = lang.newText(new Offset(0, 20, step1, \"SW\"),\r\n\t\t\t\t\" die Buchstaben von A bis Z mit den Zahlen 1 bis 26 kodiert.\",\r\n\t\t\t\t\"line1\", null, tpsteps);\r\n\t\tlang.nextStep();\r\n\t\tText step2 = lang\r\n\t\t\t\t.newText(\r\n\t\t\t\t\t\tnew Offset(0, 40, step12, \"SW\"),\r\n\t\t\t\t\t\t\"2) Nun wird die Eingabe zeichenweise bis zum Ende des Textes eingelesen.\",\r\n\t\t\t\t\t\t\"line2\", null, tpsteps);\r\n\t\tlang.nextStep();\r\n\t\tText step3 = lang\r\n\t\t\t\t.newText(\r\n\t\t\t\t\t\tnew Offset(0, 40, step2, \"SW\"),\r\n\t\t\t\t\t\t\"3) Das eingelesene Zeichen wird mit sovielen folgenden Buchstaben ergänzt,\",\r\n\t\t\t\t\t\t\"line3\", null, tpsteps);\r\n\t\tText step31 = lang\r\n\t\t\t\t.newText(\r\n\t\t\t\t\t\tnew Offset(0, 20, step3, \"SW\"),\r\n\t\t\t\t\t\t\" bie die entstehende Kombination nicht mehr im Wörterbuch enthalten ist. \",\r\n\t\t\t\t\t\t\"line3\", null, tpsteps);\r\n\t\tlang.nextStep();\r\n\t\tText step4 = lang\r\n\t\t\t\t.newText(\r\n\t\t\t\t\t\tnew Offset(0, 40, step31, \"SW\"),\r\n\t\t\t\t\t\t\"4) Diese Kombination wäre also ohne ihren letzten Buchstaben noch im Wörterbuch vorhanden.\",\r\n\t\t\t\t\t\t\"line3\", null, tpsteps);\r\n\t\tText step41 = lang\r\n\t\t\t\t.newText(\r\n\t\t\t\t\t\tnew Offset(0, 20, step4, \"SW\"),\r\n\t\t\t\t\t\t\" Das Ergebnis wird um den passenden Schlüssel dieser nicht vollständigen Kombination erweitert. Für die\",\r\n\t\t\t\t\t\t\"line3\", null, tpsteps);\r\n\t\tText step42 = lang\r\n\t\t\t\t.newText(\r\n\t\t\t\t\t\tnew Offset(0, 20, step41, \"SW\"),\r\n\t\t\t\t\t\t\" vollständige Kombination wird ein Eintrag an der nächsten freien Stelle im Wörterbuch angelegt.\",\r\n\t\t\t\t\t\t\"line3\", null, tpsteps);\r\n\t\tlang.nextStep();\r\n\r\n\t\talgoinWords.hide();\r\n\t\tstep1.hide();\r\n\t\tstep12.hide();\r\n\t\tstep2.hide();\r\n\t\tstep3.hide();\r\n\t\tstep31.hide();\r\n\t\tstep4.hide();\r\n\t\tstep41.hide();\r\n\t\tstep42.hide();\r\n\r\n\t\t// algo\r\n\r\n\t\t// extract the input\r\n\t\tString input = \"\";\r\n\t\tfor (int i = 0; i < t.length; i++) {\r\n\t\t\tinput += t[i];\r\n\t\t}\r\n\t\tinput = input.toUpperCase();\r\n\r\n\t\tStringArray strArray = lang.newStringArray(new Offset(0, 90, topic, \"SW\"),\r\n\t\t\t\tt, \"text\", null, ap);\r\n\t\tArrayMarker marker = lang.newArrayMarker(strArray, 0, \"marker\", null, amp);\r\n\r\n\t\t// fill the initial dictionary\r\n\t\tVector<String> dict = new Vector<String>(0, 1);\r\n\t\tdict.add(\"EOF\"); // 0\r\n\t\tfor (int i = 65; i < 91; i++) {\r\n\t\t\tdict.add(\"\" + (char) i);\r\n\t\t}\r\n\r\n\t\tString[][] dictData = new String[inputLimit][2];\r\n\r\n\t\tfor (int i = 0; i < dictData.length; i++) {\r\n\t\t\tdictData[i][0] = \" \";\r\n\t\t\tdictData[i][1] = \" \";\r\n\t\t}\r\n\t\tdictData[0][0] = \"0\";\r\n\t\tdictData[0][1] = \"EOF\";\r\n\t\tdictData[1][0] = \"1\";\r\n\t\tdictData[1][1] = \"A\";\r\n\t\tdictData[2][0] = \"...\";\r\n\t\tdictData[2][1] = \"...\";\r\n\t\tdictData[3][0] = \"26\";\r\n\t\tdictData[3][1] = \"Z\";\r\n\t\tint matrixCounter = 4;\r\n\r\n\t\tStringMatrix dictMatrix = lang.newStringMatrix(new Offset(110, 0, strArray,\r\n\t\t\t\t\"NE\"), dictData, \"dict\", null, mp);\r\n\r\n\t\tlang.nextStep();\r\n\r\n\t\tString result = \"\";\r\n\r\n\t\tText resultText = lang.newText(new Offset(0, 35, strArray, \"SW\"),\r\n\t\t\t\t\"Ausgabe: \", \"result\", null, tpsteps);\r\n\t\tText resultText2 = lang.newText(new Offset(5, -5, resultText, \"SE\"),\r\n\t\t\t\tresult, \"result\", null, tpsteps);\r\n\t\tresultText2.changeColor(null, Color.RED, null, null);\r\n\r\n\t\tlang.nextStep();\r\n\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tmarker.move(i, null, null);\r\n\t\t\tString tmp = \"\" + input.charAt(i);\r\n\t\t\tstrArray.unhighlightCell(0, i, null, null);\r\n\t\t\tstrArray.highlightCell(i, null, null);\r\n\r\n\t\t\twhile (dict.contains(tmp) && i + 1 < input.length()) {\r\n\t\t\t\tif (dict.contains(tmp + input.charAt(i + 1))) {\r\n\t\t\t\t\ttmp += input.charAt(i + 1);\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tstrArray.highlightCell(i, null, null);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdict.add(tmp + input.charAt(i + 1));\r\n\r\n\t\t\t\t\tdictMatrix.put(matrixCounter, 0, \"\" + (matrixCounter + 23), null,\r\n\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\tdictMatrix.put(matrixCounter, 1, \"\" + tmp + input.charAt(i + 1),\r\n\t\t\t\t\t\t\tnull, null);\r\n\t\t\t\t\tdictMatrix.highlightCell(matrixCounter, 0, null, null);\r\n\t\t\t\t\tdictMatrix.highlightCell(matrixCounter, 1, null, null);\r\n\t\t\t\t\tif (matrixCounter > 0) {\r\n\t\t\t\t\t\tdictMatrix.unhighlightCell(matrixCounter - 1, 0, null, null);\r\n\t\t\t\t\t\tdictMatrix.unhighlightCell(matrixCounter - 1, 1, null, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmatrixCounter++;\r\n\t\t\t\t\tif (tmp.length() > 1) {\r\n\t\t\t\t\t\tdictMatrix.highlightCell(dict.indexOf(tmp) - 23, 1, null, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlang.nextStep();\r\n\t\t\t\t\tif (tmp.length() > 1) {\r\n\t\t\t\t\t\tdictMatrix.unhighlightCell(dict.indexOf(tmp) - 23, 1, null, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tresult += dict.indexOf(tmp) + \" \";\r\n\t\t\tresultText2.setText(result, null, null);\r\n\t\t\tlang.nextStep();\r\n\t\t}\r\n\r\n\t\tText fazit = lang.newText(new Offset(0, 90, resultText, \"SW\"),\r\n\t\t\t\t\"Damit ergibt sich die Ausgabe: \", \"Ausgabe\", null, tpsteps);\r\n\t\tText fazit2 = lang.newText(new Offset(0, 20, fazit, \"SW\"), result,\r\n\t\t\t\t\"Ausgabe\", null, tpsteps);\r\n\t\tfazit2.changeColor(null, Color.BLUE, null, null);\r\n\r\n\t\tlang.newText(new Offset(0, 20, fazit2, \"SW\"),\r\n\t\t\t\t\"Die zusätzliche Ausgabe des Wörterbuchs ist nicht notwendig.\",\r\n\t\t\t\t\"fazit\", null, tpsteps);\r\n\t}"
] | [
"0.5868922",
"0.51718825",
"0.51444477",
"0.5060969",
"0.50206393",
"0.498922",
"0.4963338",
"0.49118435",
"0.48255864",
"0.4811481",
"0.47849",
"0.47712946",
"0.47156283",
"0.4683989",
"0.46656352",
"0.46499425",
"0.4637866",
"0.46267894",
"0.46125272",
"0.4609444",
"0.45780578",
"0.45593947",
"0.45427847",
"0.45162094",
"0.4512937",
"0.44903576",
"0.44869867",
"0.4482605",
"0.4479344",
"0.44755277",
"0.44637066",
"0.44605023",
"0.4459196",
"0.4455417",
"0.4454513",
"0.44525716",
"0.44378296",
"0.4436414",
"0.4432099",
"0.44284952",
"0.44199803",
"0.44196713",
"0.4417783",
"0.44158244",
"0.44106144",
"0.4398085",
"0.43929064",
"0.43924224",
"0.4388786",
"0.4377828",
"0.43767837",
"0.43615174",
"0.43568087",
"0.43564305",
"0.43555412",
"0.43464464",
"0.43440476",
"0.43433306",
"0.43413743",
"0.43387705",
"0.433418",
"0.43328428",
"0.4330508",
"0.43300894",
"0.43271396",
"0.43203142",
"0.43195513",
"0.43143287",
"0.42997897",
"0.42943844",
"0.42931473",
"0.4285009",
"0.42771006",
"0.42717063",
"0.4270437",
"0.4269211",
"0.4266991",
"0.42666078",
"0.4266417",
"0.4265215",
"0.42576423",
"0.4256664",
"0.42520586",
"0.42499292",
"0.42474368",
"0.42464292",
"0.42444485",
"0.42378148",
"0.42353025",
"0.42291006",
"0.42283493",
"0.4227529",
"0.42225173",
"0.42221197",
"0.4213924",
"0.42134568",
"0.42117724",
"0.42095056",
"0.4206793",
"0.42028397"
] | 0.5799507 | 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() {
jButton1 = new javax.swing.JButton();
jLabel3 = new javax.swing.JLabel();
dataInicial = new javax.swing.JFormattedTextField();
jLabel1 = new javax.swing.JLabel();
dataFinal = new javax.swing.JFormattedTextField();
jLabel2 = new javax.swing.JLabel();
labelValor = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jComboBox1 = new javax.swing.JComboBox();
jLabel6 = new javax.swing.JLabel();
labelValorOrcamento = new javax.swing.JLabel();
setClosable(true);
jButton1.setText("Buscar");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jLabel3.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N
jLabel3.setText("Orçamento");
jLabel1.setText("Data Inicial:");
jLabel2.setText("Data Final:");
labelValor.setFont(new java.awt.Font("Arial", 1, 36)); // NOI18N
labelValor.setText("!Valor");
jLabel5.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N
jLabel5.setText("Saldo da Categoria:");
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Selecione a Categoria" }));
jComboBox1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox1ActionPerformed(evt);
}
});
jLabel6.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N
jLabel6.setText("Orçamento");
labelValorOrcamento.setFont(new java.awt.Font("Arial", 1, 36)); // NOI18N
labelValorOrcamento.setText("!Valor");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel3)
.addGap(145, 145, 145)
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(dataInicial, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(dataFinal, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGroup(layout.createSequentialGroup()
.addGap(23, 23, 23)
.addComponent(jLabel6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(labelValorOrcamento)
.addGap(105, 105, 105)
.addComponent(jLabel5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(labelValor)))
.addContainerGap(171, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(dataInicial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1)
.addComponent(jLabel2)
.addComponent(dataFinal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton1))
.addGap(50, 50, 50)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(labelValorOrcamento)
.addComponent(jLabel6)
.addComponent(labelValor)
.addComponent(jLabel5))
.addContainerGap(133, 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 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 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 FrmMenu() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"public Ablak() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] | [
"0.7321245",
"0.7292375",
"0.7292375",
"0.7292375",
"0.7286756",
"0.7250393",
"0.7215278",
"0.7208825",
"0.7197639",
"0.71918",
"0.7185626",
"0.716065",
"0.71489197",
"0.7094757",
"0.7081307",
"0.7057363",
"0.69892997",
"0.6978972",
"0.6956389",
"0.69543713",
"0.69465107",
"0.6943616",
"0.69370526",
"0.69335246",
"0.6928895",
"0.69262075",
"0.69259804",
"0.69132626",
"0.69122165",
"0.68949795",
"0.6893638",
"0.689148",
"0.68909764",
"0.6890215",
"0.6884557",
"0.688259",
"0.68825203",
"0.6878597",
"0.6876452",
"0.6876008",
"0.6872711",
"0.68606186",
"0.6857626",
"0.6856689",
"0.6856538",
"0.68560165",
"0.6854488",
"0.6853594",
"0.6853594",
"0.6844268",
"0.68379426",
"0.68377364",
"0.6829578",
"0.6829284",
"0.6827213",
"0.6825348",
"0.6823862",
"0.68184686",
"0.68176556",
"0.6810581",
"0.6809514",
"0.6809368",
"0.68090004",
"0.68081117",
"0.680376",
"0.67957234",
"0.6795017",
"0.6793054",
"0.679084",
"0.6790513",
"0.6789456",
"0.67890406",
"0.6783252",
"0.6767314",
"0.6766593",
"0.67663574",
"0.67581284",
"0.67565966",
"0.67531246",
"0.6752959",
"0.67438525",
"0.67397165",
"0.6738271",
"0.67369807",
"0.67342347",
"0.6728663",
"0.67280626",
"0.6720753",
"0.6717359",
"0.6715002",
"0.671486",
"0.67094135",
"0.670803",
"0.67050165",
"0.67018557",
"0.67018354",
"0.67003953",
"0.6698949",
"0.6695529",
"0.6692286",
"0.6691619"
] | 0.0 | -1 |
End of variables declaration//GENEND:variables | public void dataPadrao() {
Calendar c = Calendar.getInstance();
SimpleDateFormat s = new SimpleDateFormat("dd/MM/yyyy");
String dataAtual = s.format(c.getTime());
c.add(c.MONTH, 1);
String dataAtualMaisUm = s.format(c.getTime());
dataInicial.setText(dataAtual);
dataFinal.setText(dataAtualMaisUm);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo21779D() {\n }",
"public final void mo51373a() {\n }",
"protected boolean func_70041_e_() { return false; }",
"public void mo4359a() {\n }",
"public void mo21782G() {\n }",
"private void m50366E() {\n }",
"public void mo12930a() {\n }",
"public void mo115190b() {\n }",
"public void method_4270() {}",
"public void mo1403c() {\n }",
"public void mo3376r() {\n }",
"public void mo3749d() {\n }",
"public void mo21793R() {\n }",
"protected boolean func_70814_o() { return true; }",
"public void mo21787L() {\n }",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo21780E() {\n }",
"public void mo21792Q() {\n }",
"public void mo21791P() {\n }",
"public void mo12628c() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo97908d() {\n }",
"public void mo21878t() {\n }",
"public void mo9848a() {\n }",
"public void mo21825b() {\n }",
"public void mo23813b() {\n }",
"public void mo3370l() {\n }",
"public void mo21879u() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo21785J() {\n }",
"public void mo21795T() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void m23075a() {\n }",
"public void mo21789N() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo21794S() {\n }",
"public final void mo12688e_() {\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public void mo6944a() {\n }",
"public static void listing5_14() {\n }",
"public void mo1405e() {\n }",
"public final void mo91715d() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public void mo9137b() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void func_70295_k_() {}",
"void mo57277b();",
"public void mo21877s() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"void berechneFlaeche() {\n\t}",
"public void mo115188a() {\n }",
"public void mo21880v() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void mo21784I() {\n }",
"private stendhal() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public void mo56167c() {\n }",
"public void mo44053a() {\n }",
"public void mo21781F() {\n }",
"public void mo2740a() {\n }",
"public void mo21783H() {\n }",
"public void mo1531a() {\n }",
"double defendre();",
"private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }",
"public void stg() {\n\n\t}",
"void m1864a() {\r\n }",
"private void poetries() {\n\n\t}",
"public void skystonePos4() {\n }",
"public void mo2471e() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void yy() {\n\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }",
"static void feladat4() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }",
"public void furyo ()\t{\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"protected void mo6255a() {\n }"
] | [
"0.6359434",
"0.6280371",
"0.61868024",
"0.6094568",
"0.60925734",
"0.6071678",
"0.6052686",
"0.60522056",
"0.6003249",
"0.59887564",
"0.59705925",
"0.59680873",
"0.5967989",
"0.5965816",
"0.5962006",
"0.5942372",
"0.5909877",
"0.5896588",
"0.5891321",
"0.5882983",
"0.58814824",
"0.5854075",
"0.5851759",
"0.58514243",
"0.58418584",
"0.58395296",
"0.5835063",
"0.582234",
"0.58090156",
"0.5802706",
"0.5793836",
"0.57862717",
"0.5784062",
"0.5783567",
"0.5782131",
"0.57758564",
"0.5762871",
"0.5759349",
"0.5745087",
"0.57427835",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.57326084",
"0.57301426",
"0.57266665",
"0.57229686",
"0.57175463",
"0.5705802",
"0.5698347",
"0.5697827",
"0.569054",
"0.5689405",
"0.5686434",
"0.56738997",
"0.5662217",
"0.56531453",
"0.5645255",
"0.5644223",
"0.5642628",
"0.5642476",
"0.5640595",
"0.56317437",
"0.56294966",
"0.56289655",
"0.56220204",
"0.56180173",
"0.56134313",
"0.5611337",
"0.56112075",
"0.56058615",
"0.5604383",
"0.5602629",
"0.56002104",
"0.5591573",
"0.55856615",
"0.5576992",
"0.55707216",
"0.5569681",
"0.55570376",
"0.55531484",
"0.5551123",
"0.5550893",
"0.55482954",
"0.5547471",
"0.55469507",
"0.5545719",
"0.5543553",
"0.55424106",
"0.5542057",
"0.55410767",
"0.5537739",
"0.55269134",
"0.55236584",
"0.55170715",
"0.55035424",
"0.55020875"
] | 0.0 | -1 |
Se hace uso de split para separar cada palabra con cada espacio | static void separarString(String s){
String[] palabras = s.split("[ ]");
for(int i = 0; i < palabras.length; i++){
palabras[i] = limpia(palabras[i]);
System.out.println(palabras[i]);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String[] split(String s) {\n int cp = 0; // Cantidad de palabras\n\n // Recorremos en busca de espacios\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == ' ') { // Si es un espacio\n cp++; // Aumentamos en uno la cantidad de palabras\n }\n }\n\n // \"Este blog es genial\" tiene 3 espacios y 3 + 1 palabras\n String[] partes = new String[cp + 1];\n for (int i = 0; i < partes.length; i++) {\n partes[i] = \"\"; // Se inicializa en \"\" en lugar de null (defecto)\n }\n\n int ind = 0; // Creamos un índice para las palabras\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == ' ') { // Si hay un espacio\n ind++; // Pasamos a la siguiente palabra\n continue; // Próximo i\n }\n partes[ind] += s.charAt(i); // Sino, agregamos el carácter a la palabra actual\n }\n return partes; // Devolvemos las partes\n }",
"private String[] separarCoordenadas(String pCasilla){\n\t\treturn pCasilla.split(\",\");\n\t}",
"public List<String> splitWordList(final String text) {\n\t\tList<String> result = new ArrayList<>();\n\t\tif (text == null)\n\t\t\treturn result;\n\n\t\tString t = text + \"⁋\";\n\t\tt = t.replace('\\n', '⁋');\n\t\tt = REFERENCE_PATTERN.matcher(t).replaceAll(\"\");\n\t\tt = SUPERSCRIPT_PATTERN.matcher(t).replaceAll(\"\"); //TODO: Extract sense!\n\t\tt = HTML_REMOVER.matcher(t).replaceAll(\"\");\n\t\tt = t.replace(\""\", \"\\\"\");\n\t\tt = t.replace(\",\", \"⁋,\");\n\t\tt = t.replace(\";\", \"⁋;\");\n\t\t//System.out.println(t);\n\t\t//t = BRACKETED_DELIMITER.matcher(t).replaceAll(\"$1$2$3$4$5$6\");\n\t\t//t = ESCAPE_DELIMITER1.matcher(t).replaceAll(\"$1$2\");\n\t\t//t = ESCAPE_DELIMITER2.matcher(t).replaceAll(\"$1$2\");\n\t\t//t = ESCAPE_DELIMITER3.matcher(t).replaceAll(\"$1$2\");\n\t\tt = escapeDelimiters(t);\t\t\t\n\t\t//System.out.println(t);\n\t\tt = t.replace(\"⁋;\", \"⁋\");\n\t\tt = t.replace(\"⁋,\", \"⁋\");\n\t\tt = t.replace(\"]] or [[\", \"]]⁋[[\");\n\t\tt = t.replace(\"]] and [[\", \"]]⁋[[\");\n\t\tt = t.replace(\" - \", \"⁋\");\n\t\t//t = t.replace(\" / \", \"⁋\");\n\t\tint j = t.indexOf(\" / \"); // Use ' / ' only as a delimiter if there are at least two of them!\n\t\tif (j >= 0) {\n\t\t\tj = t.indexOf(\" / \", j);\n\t\t\tif (j >= 0) {\n\t\t\t\tt = t.replace(\" / \", \"⁋\");\n\t\t\t\t//System.out.println(t);\n\t\t\t}\n\t\t}\n\t\t//System.out.println(t);\n\t\tint delim;\n\t\tdo {\n\t\t\tdelim = t.indexOf('⁋');\n\t\t\tif (delim >= 0) {\n\t\t\t\tString word = t.substring(0, delim);\n\t\t\t\tif (word.length() > 0) {\n\t\t\t\t\t// Normalize the word.\n\t\t\t\t\tword = word.trim();\n\t\t\t\t\tif (word.toLowerCase().startsWith(\"see also\"))\n\t\t\t\t\t\tword = word.substring(8).trim();\n\t\t\t\t\tif (word.toLowerCase().startsWith(\"see\"))\n\t\t\t\t\t\tword = word.substring(3).trim();\n\t\t\t\t\tif (word.startsWith(\":\"))\n\t\t\t\t\t\tword = word.substring(1).trim();\n\t\t\t\t\tword = deWikify(word).trim();\n\t\t\t\t\tword = removeBrackets(word).trim();\n\t\t\t\t\tword = removeTemplates(word).trim();\n\t\t\t\t\tword = removeComments(word).trim();\n\t\t\t\t\tif (word.toLowerCase().startsWith(\"see also\"))\n\t\t\t\t\t\tword = word.substring(8).trim();\n\t\t\t\t\tif (word.toLowerCase().startsWith(\"see\"))\n\t\t\t\t\t\tword = word.substring(3).trim();\n\t\t\t\t\tif (word.startsWith(\":\"))\n\t\t\t\t\t\tword = word.substring(1).trim();\n\t\t\t\t\tif (word.endsWith(\".\"))\n\t\t\t\t\t\tword = word.substring(0, word.length() - 1).trim();\n\t\t\t\t\tif (word.endsWith(\",\"))\n\t\t\t\t\t\tword = word.substring(0, word.length() - 1).trim();\n\t\t\t\t\t\n\t\t\t\t\t// Check for slashes.\n\t\t\t\t\tword = word.replace(\" / \", \"/\");\n\t\t\t\t\tword = word.replace(\"/ \", \"/\");\n\t\t\t\t\tint i = word.indexOf('/');\n\t\t\t\t\tif (word.length() > 0) {\n\t\t\t\t\t\tif (i >= 0 && word.indexOf(' ') < 0) {\n\t\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\t\tresult.add(word.substring(0, i));\n\t\t\t\t\t\t\t\tword = word.substring(i + 1);\n\t\t\t\t\t\t\t\ti = word.indexOf('/');\n\t\t\t\t\t\t\t} while (i >= 0);\n\t\t\t\t\t\t\tresult.add(word);\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\tresult.add(word);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tt = t.substring(delim + 1);\n\t\t\t}\n\t\t} while (delim >= 0);\n\t\treturn result;\n\t}",
"public String splitAdresse(String adresse) {\n String[] array = adresse.split(\" \");\n adresse = \"\";\n int i = 0;\n for (String morceau : array) {\n morceau = Normalizer.normalize(morceau, Normalizer.Form.NFD).replaceAll(\"\\\\p{InCombiningDiacriticalMarks}+\", \"\"); // On enlève tous les accents\n adresse = adresse + morceau;\n if (i < array.length - 1) adresse = adresse + \"+\";\n i++;\n }\n return adresse;\n }",
"public List<String> GetAssegnamentiInCorso() {\n String str = \"Guillizzoni-Coca Cola Spa1-DRYSZO,Rossi-Coca Cola Spa2-DRYSZ2\";\n StringaAssegnamenti = str;\n StringaAssegnamenti = \"\";\n \n\tList<String> items = Arrays.asList(str.split(\"\\\\s*,\\\\s*\"));\n return items;\n }",
"private String[] splitLetters(String word) {\n String[] temp = new String[word.length()];\n for (int i = 0; i < word.length(); i++) {\n temp[i] = Character.toString(word.charAt(i)).toUpperCase();\n }\n return temp;\n }",
"public static char[] pedirPalabraSecreta() {\r\n // PedirPalabra\r\n Scanner leer = new Scanner(System.in);\r\n System.out.println(\"Introduce la palabra secreta\");\r\n String palabraSecreta = leer.nextLine();\r\n char[] cadena= palabraSecreta.toCharArray();\r\n for (int i = 0; i < cadena.length; i++) {\r\n cadena[i]=Character.toUpperCase(cadena[i]);\r\n }\r\n return cadena;\r\n }",
"public void rozseparujDokladnie() {\r\n\t\tboolean wSpacjach, wWyrazie;\r\n\t\tString[] liniaRozseparowana = null;\r\n\t\tArrayList<Integer> lista = null;\r\n\t\tArrayList<String> lista2 = null;\r\n\r\n\t\tfor (String linia : calaZawartosc) {\r\n\t\t\twSpacjach = false;\r\n\t\t\twWyrazie = false;\r\n\r\n\t\t\tlista = new ArrayList<Integer>();\r\n\r\n\t\t\tfor (int i = 0; i < linia.length(); ++i) {\r\n\t\t\t\tif (Character.isWhitespace(linia.charAt(i))) {\r\n\t\t\t\t\tif (!wSpacjach) {\r\n\t\t\t\t\t\twSpacjach = true;\r\n\t\t\t\t\t\twWyrazie = false;\r\n\t\t\t\t\t\tlista.add(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (!wWyrazie) {\r\n\t\t\t\t\t\twSpacjach = false;\r\n\t\t\t\t\t\twWyrazie = true;\r\n\t\t\t\t\t\tlista.add(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tlista.add(linia.length());\r\n\r\n\t\t\tlista2 = new ArrayList<String>();\r\n\r\n\t\t\tfor (int i = 0; i < lista.size() - 1; ++i)\r\n\t\t\t\tlista2.add(linia.substring(lista.get(i), lista.get(i + 1)));\r\n\r\n\t\t\tliniaRozseparowana = new String[lista2.size()];\r\n\t\t\tfor (int i = 0; i < liniaRozseparowana.length; ++i) {\r\n\t\t\t\tliniaRozseparowana[i] = lista2.get(i);\r\n\t\t\t}\r\n\r\n\t\t\tcalaZawartoscRozsep.add(liniaRozseparowana);\r\n\t\t}\r\n\t}",
"private String construyeCaracter(String palabra) throws IOException {\n\t\tToken aux = null;\n \t\twhile(!((aux = this.nextTokenWithWhites()).get_lexema().equals(\"'\"))) {\n \t\t\tif (aux.get_lexema().equals(\"fin\"))\n \t\t\t\treturn palabra;\n \t\t\tpalabra = palabra + aux.get_lexema();\n \t\t\t// Si vemos que el caracter se alarga mucho, paramos de leer\n \t\t\tif (palabra.length() > 4) {\n \t\t\t\treturn palabra;\n \t\t\t}\n \t\t}\n \t\tpalabra = palabra + aux.get_lexema();\n\t\treturn palabra;\n\t}",
"private static char[] obtenerVectorJuego(String palabara){\n \n\n return palabara.toCharArray();\n }",
"@Override\n\tpublic void llenarArreglo(){\n\n\t\tString[] textoSeparado = texto.toLowerCase().split(\"\\\\W+\"); //pasa todo a minusculas y despues busca todas las no palabras con W y con + junta los que estan seguidos para separador, ver http://regexr.com/3dcpk\n\n\t\tif (palabras==null) {\n\t\t\t//agregar el primer elemento manualmente\n\t\t\tLabel etiqueta = new Label(textoSeparado[0]);\n\t\t\tpalabras = new Palabra[1];\n\t\t\tpalabras[0] = new Palabra(textoSeparado[0], etiqueta);\n\t\t}\n\n\t\t\tfor (int i=1; i<textoSeparado.length; i++) { //importante el uno para no contar la primera palabra dos veces\n\t\t\t\tString buscar= textoSeparado[i];\n\t\t\t\tif (!checarListaNegra(buscar)) { //solo se hace la operacion por cada palabra si no esta en la lista negra\n\t\t\t\t\tboolean yaExiste = false;\n\t\t\t\t\tfor (Palabra palabraActual : palabras) {\n\t\t\t\t\t\tif (palabraActual.getContenido().equals(buscar)) {\n\t\t\t\t\t\t\tyaExiste = true;\n\t\t\t\t\t\t\tpalabraActual.actualizarFrecuencia();\n\t\t\t\t\t\t//\tSystem.out.println(\"se actualizo\"+ palabraActual.getContenido());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!yaExiste) {\n\t\t\t\t\t\t//no se encontro la palabra (String buscar) en el gran arreglo de palabras entonces hay que crearla\n\t\t\t\t\t\tagregarPalabra(buscar);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public static void main(String[] args) {\n String textString = \"Hello, world! I am program.\";\n\n\n// System.out.println(Arrays.toString(\"a;b;c;d\".split(\"(?=;)\")));\n// String[] split = \"a;b;c;d\".split(\"(?=\\\\p{Punct}\\s?)|\\s\");\n /*String[] split = \"a;b;c;d\".split(\"(?=\\\\p{Punct}\\s?)\");\n System.out.println(Arrays.toString(split));*/\n// String[] split1 = \"Hello, world!\".split(\"(?=\\\\p{Punct}\\s?)|\\s\");\n /*String[] split1 = \"Hello, world!\".split(\"(?=(\\\\p{Punct}\\s?))\");\n System.out.println(Arrays.toString(split1));*/\n// System.out.println(Arrays.toString(\"a;b;c;d\".split(\"((?<=;)|(?=;))\")));\n\n// String[] sentenceElementStrings = sentenceString.split(\"(?=\\\\p{Punct}\\s?)|\\s\");\n// System.out.println(\"Hello world! \\\\I am program.\");\n Text text = new Text(textString);\n\n System.out.println(\"Original text:\\n\" + text);\n\n text.swapFirstAndLastWordsInSentences();\n\n System.out.println(\"Text after swapping:\\n\" + text);\n }",
"public static String[] split(String toSplit, char spliter){\n String[] endStringArray = new String[4];\n StringBuilder st = new StringBuilder();\n int i = 0;\n for (int j = 0; j < toSplit.length(); j++){\n if (toSplit.charAt(j) != spliter){\n st.append(toSplit.charAt(j));\n }\n else{\n endStringArray[i] = st.toString();\n st = new StringBuilder();\n i++;\n }\n }\n endStringArray[i] = st.toString();\n int size = 0;\n for (String s : endStringArray){\n if (s != null)\n size++;\n }\n String[] reducedArray = new String[size];\n System.arraycopy(endStringArray, 0, reducedArray, 0, size);\n return reducedArray;\n }",
"public static void main3(String[] args) {\n String str = \"192*168*1*1\";\n\n //String [] strings = str.split(\"\\\\.\");\n String [] strings = str.split(\"\\\\*\");\n //为什么需要两个斜杠 在本来的情况下 \\ +要转义的字符就可以了\n //但是此时在在\"\"里面不知道\\是干什么的 需要两个斜杠\n for(String s : strings) {\n System.out.println(s);\n }\n }",
"public static String[] splitWordString(String word) {\r\n\t\tString[] letters = word.split(\"[^a-z^A-Z]\");\r\n\t\treturn letters;\r\n\t}",
"public static char[] mayusculas(char[] palabraSeparada) {\n for (int index = 0; index < palabraSeparada.length; index++) {\n if (palabraSeparada[index] > 90) {\n palabraSeparada[index] -= 32;\n }\n }\n\n return palabraSeparada;\n\n }",
"private String limpiar_texto(String texto){\n \n texto = texto.replaceAll(\"\\n\",\"\");\n texto=texto.toUpperCase();\n for(int i=0;i<texto.length();i++){\n //Se crea un for que llenara el nuevo char\n int posicion = tabla.indexOf(texto.charAt(i)); //charat regresa el valor del arreglo\n if(posicion == -1){ \n texto=texto.replace(texto.charAt(i),' ');\n //En caso que no aparezca en la tabla de caracteres\n //Tiene que ser eliminado\n }\n }\n return texto;\n }",
"public static String[] breakInput(String input){\n\t\t//Split the thing up on spaces,\n\t\tString[] inputSplit = (input.split(\"\\\\s\"));\n\t\treturn inputSplit;\n\t}",
"public static void iniciarAciertos(String vacierto[],String palabra){\n for (int i=0;i<palabra.length();i++){\r\n if (vacierto[i]==null){\r\n vacierto[i]=\" - \";\r\n }\r\n //comprobar que se rellena la matriz con -\r\n //System.out.println(vacierto[i]);\r\n }\r\n \r\n }",
"public static String[] split(char delim, String seq) {\n List<String> result = new ArrayList<>(20);\n int max = seq.length();\n int start = 0;\n for (int i = 0; i < max; i++) {\n char c = seq.charAt(i);\n boolean last = i == max - 1;\n if (c == delim || last) {\n result.add(seq.substring(start, last ? c == delim ? i : i + 1 : i));\n start = i + 1;\n }\n }\n return result.toArray(new String[result.size()]);\n }",
"String[] splitSentenceWords() {\n\t\t\tint i=0;\n\t\t\tint j=0;\n\t\t\tArrayList<String> words = new ArrayList<String>();\n\t\t\t\n\t\t\t\tString[] allWords = wordPattern.split(purePattern.matcher(sentence).replaceAll(\" \"));//.split(\"(?=\\\\p{Lu})|(\\\\_|\\\\,|\\\\.|\\\\s|\\\\n|\\\\#|\\\\\\\"|\\\\{|\\\\}|\\\\@|\\\\(|\\\\)|\\\\;|\\\\-|\\\\:|\\\\*|\\\\\\\\|\\\\/)+\");\n\t\t\tfor(String word : allWords) {\n\t\t\t\tif(word.length()>2) {\n\t\t\t\t\twords.add(word.toLowerCase());\n\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\treturn (String[])words.toArray(new String[words.size()]);\n\t\t\n\t\t}",
"public static void main(String[] args) {\n\t\t\n\t\tString str= \"I liked Java, did you like it\";\n\t\t\n\t\tString arr[]=str.split(\"d\");\n\t\t\n\t\tSystem.out.println(Arrays.toString(arr));\n\t\t\nString str1[]=str.split(\" \");\n\t\t\n\t\tSystem.out.println(Arrays.toString(str1));\n\t\t\n\t\t\n\t}",
"@Test\n void labTask() {\n String s = \"abczefoh\";\n List<String> result = StringSplitter.labTask(s);\n\n String first = result.get(0);\n assertEquals(3, first.length());\n assertEquals('a', first.charAt(0));\n assertFalse(\"abc\".contains(String.valueOf(first.charAt(1))));\n assertEquals('c', first.charAt(2));\n\n String second = result.get(1);\n assertEquals(2, second.length());\n assertEquals('o', second.charAt(0));\n assertFalse(\"oh\".contains(String.valueOf(second.charAt(1))));\n\n String third = result.get(2);\n assertEquals(3, third.length());\n assertEquals('z', third.charAt(0));\n assertFalse(\"zef\".contains(String.valueOf(second.charAt(1))));\n assertEquals('f', third.charAt(2));\n }",
"public abstract void split(Space s);",
"public String[] requisitarChave() {\n String sTexto = JOptionPane.showInputDialog(\"Digite a chave em bytes, separados por vírgula\").trim();\n //String sTexto = \"65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80\";\n String[] sTextoSeparado = sTexto.split(\",\");\n for (int idx = 0; idx < 16; ++idx) {\n sTextoSeparado[idx] = Integer.toHexString(Integer.parseInt(sTextoSeparado[idx]));\n }\n\n return sTextoSeparado;\n }",
"public ArrayList separarRut(String rut){\r\n this.lista = new ArrayList<>();\r\n if(rut.length()==12 || rut.length()==11){ \r\n if(rut.length()==12){\r\n this.lista.add(Character.toString(rut.charAt(0))+Character.toString(rut.charAt(1)));\r\n this.lista.add(Character.toString(rut.charAt(3))+Character.toString(rut.charAt(4))+Character.toString(rut.charAt(5)));\r\n this.lista.add(Character.toString(rut.charAt(7))+Character.toString(rut.charAt(8))+Character.toString(rut.charAt(9)));\r\n this.lista.add(Character.toString(rut.charAt(11)));\r\n }else{\r\n this.lista.add(Character.toString(rut.charAt(0)));\r\n this.lista.add(Character.toString(rut.charAt(2))+Character.toString(rut.charAt(3))+Character.toString(rut.charAt(4)));\r\n this.lista.add(Character.toString(rut.charAt(6))+Character.toString(rut.charAt(7))+Character.toString(rut.charAt(8)));\r\n this.lista.add(Character.toString(rut.charAt(10)));\r\n } \r\n } \r\n return this.lista;\r\n }",
"protected ArrayList<String> tokenize(String text)\r\n\t{\r\n\t\ttext = text.replaceAll(\"\\\\p{Punct}\", \"\");\r\n\t\tArrayList<String> tokens = new ArrayList<>();\r\n\t\tStringTokenizer tokenizer = new StringTokenizer(text);\r\n\r\n\t\t// P2\r\n\t\twhile (tokenizer.hasMoreTokens()) {\r\n\t\t\ttokens.add(tokenizer.nextToken());\r\n\t\t}\r\n\t\treturn tokens;\r\n\t}",
"private String getSplitNames(String className){\n String nameSplited = \"\";\n\n for (String character : className.split(\"(?<!(^|[A-Z]))(?=[A-Z])|(?<!^)(?=[A-Z][a-z])\")){\n nameSplited = nameSplited + character + \" \";\n }\n\n return nameSplited;\n }",
"public String[] camposDivididos(){\r\nString[] args=column().split(\"[,]\");\r\nreturn args;\r\n //return Arrays.toString(args);\r\n}",
"private static Set<Character> createSeparators() {\r\n Set<Character> separators = new Set1L<>();\r\n final char[] arrayOfSeps = { '!', ',', '.', ' ', '\"', ';', ':', '(',\r\n ')', '?', '/', '-' };\r\n //Above: array of chosen separators to be read into a Set<Character>\r\n\r\n for (int i = 0; i < arrayOfSeps.length; i++) {\r\n separators.add(arrayOfSeps[i]);\r\n }\r\n return separators;\r\n }",
"@SuppressWarnings(\"unused\")\r\n\tprivate static List<String> splitToken (String token) {\r\n\r\n Matcher m = Contractions.matcher(token);\r\n if (m.find()){\r\n \tString[] contract = {m.group(1), m.group(2)};\r\n \treturn Arrays.asList(contract);\r\n }\r\n String[] contract = {token};\r\n return Arrays.asList(contract);\r\n }",
"public String cifrar(String palabra){\n\n String cifrado= \" \";\n char auxiliar;\n int i = 0;\n \n for(i=0;i<palabra.length();i++){\n auxiliar=palabra.charAt(i);\n if(auxiliar ==' '){\n \n }else{\n auxiliar++;\n if(auxiliar=='{'){\n auxiliar='a';\n }\n }\n cifrado=cifrado+\"\"+auxiliar;\n }\n return cifrado;\n }",
"public static String[] svStringToArray(String sv, String separator) {\n String[] split = sv.split(separator);\n for (int i = 0; i < split.length; i++) {\n split[i] = split[i].trim();\n }\n return split;\n }",
"private ArrayList<Character> retornarListaCaracteres() {\n ArrayList<Character> validaciones = new ArrayList<Character>();\n validaciones.add('.');\n validaciones.add('/');\n validaciones.add('|');\n validaciones.add('=');\n validaciones.add('?');\n validaciones.add('¿');\n validaciones.add('´');\n validaciones.add('¨');\n validaciones.add('{');\n validaciones.add('}');\n validaciones.add(';');\n validaciones.add(':');\n validaciones.add('_');\n validaciones.add('^');\n validaciones.add('-');\n validaciones.add('!');\n validaciones.add('\"');\n validaciones.add('#');\n validaciones.add('$');\n validaciones.add('%');\n validaciones.add('&');\n validaciones.add('(');\n validaciones.add(')');\n validaciones.add('¡');\n validaciones.add(']');\n validaciones.add('*');\n validaciones.add('[');\n validaciones.add(',');\n validaciones.add('°');\n\n return validaciones;\n }",
"private static String[] sepInst(String inst){\n\n String[] separated = new String[3];\n separated[0] = inst.substring(0, inst.indexOf(' '));\n if(-1 == inst.indexOf(',')){//enters if when only one variable\n separated[1] = inst.substring(inst.indexOf(' ')+1, inst.length());\n }else{//enters else when only when two variables\n separated[1] = inst.substring(inst.indexOf(' ')+1, inst.indexOf(','));\n separated[2] = inst.substring(inst.indexOf(',')+2, inst.length());\n }//end ifelse\n\n return separated;\n }",
"public static String[] split(String toSplit, String delimiter) {\n if (!hasLength(toSplit) || !hasLength(delimiter)) {\n return null;\n }\n int offset = toSplit.indexOf(delimiter);\n if (offset < 0) {\n return null;\n }\n\n String beforeDelimiter = toSplit.substring(0, offset);\n String afterDelimiter = toSplit.substring(offset + delimiter.length());\n return new String[]{beforeDelimiter, afterDelimiter};\n }",
"public String separarNumeros(String Jorge){\n\t\tJorge = Jorge.replaceAll(\"[a-z]\", \"\");\n\t\tJorge = Jorge.replaceAll(\"[A-Z]\", \"\");\n\t\tJorge = Jorge.replaceAll(\"\\t\", \"\");\n\t\tJorge = Jorge.replaceAll(\"[^\\\\w\\\\s]\", \"\");\n\t\tJorge = Jorge.replaceAll(\"_\", \"\");\n\t\twhile(Jorge.contains(\" \")) {\n\t\t\tJorge = Jorge.replace(\" \", \"\");\n\t\t}\n\t\t\n\t\treturn Jorge;\n\t}",
"@Test\n public void testSplitOnPattern() {\n List<String> list = Splitter.on(\n Pattern.compile(\"\\\\|\")\n ).trimResults().omitEmptyStrings().splitToList(\"hello | world|||\");\n assertThat(list, notNullValue());\n assertThat(list.size(), equalTo(2));\n assertThat(list.get(0), equalTo(\"hello\"));\n assertThat(list.get(1), equalTo(\"world\"));\n }",
"@Test(testName = \"splitFunctioanlity\")\n\t public static void splitFunction() \n\t { \n\t String str = \"geekss@for@geekss\"; \n\t String[] arrOfStr = str.split(\"s\", 5); \n\t \n\t for (String a : arrOfStr) \n\t System.out.println(a); \n\t \t}",
"public String IndicadorCaracteres(String palabra){\n\t\tint aux=-1;\n\t\t\t//Analiza los 17 primeros símbolos de la matriz \"simbolos\" que son los caracteres\n\t\t\t//tentativos que la palabra podría tener\n\t\t\tfor(int i=0; i<17; i++) {\n\t\t\t\t//Se verifica si la palabra contiene algún de los símbolos\n\t\t\t\tif(palabra.contains(simbolos[0][i])) {\n\t\t\t\t\t//Variable auxiliar para conocer el caracter \n\t\t\t\t\taux=i;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn (aux!=-1)? simbolos[0][aux]:\"\";\n\t}",
"private String [] splitString(String name) {\r\n String [] parts = {\"\", \"\"};\r\n if (name != null) {\r\n String [] t = StringExtend.toArray(name, \".\", false);\r\n if (t.length == 3) {\r\n parts [0] = t [0] + \".\" + t [1];\r\n parts [1] = t [2];\r\n }\r\n else if (t.length == 2) {\r\n parts [0] = t [0]; parts [1] = t [1];\r\n }\r\n else if (t.length == 1) {\r\n parts [1] = t [0];\r\n }\r\n }\r\n\r\n return parts;\r\n }",
"public static String[] splitString(String str) {\r\n String line = str.trim();\r\n String info = \"\";\r\n String areas = \"\";\r\n for (int i = 0; i < line.length(); i ++) {\r\n if (i <= 6)\r\n info += line.charAt(i);\r\n else\r\n areas += line.charAt(i);\r\n }\r\n info = info.trim();\r\n areas = areas.trim();\r\n String[] splitString = new String[]{info, areas};\r\n return splitString;\r\n }",
"private String quitaEspacios(String cadena) {\n String unspacedString = \"\";\t//Variable donde lee la función\n\n for (int i = 0; i < cadena.length(); i++) {\t//Le quita los espacios a la espresión que leyó\n //Si el caracter no es un espacio lo pone, sino lo quita.\n if (cadena.charAt(i) != ' ') {\n unspacedString += cadena.charAt(i);\n }\n }\n\n return unspacedString;\n }",
"private String[] toStringArray(String doc, char split) {\n\t\t// count words\n\t\tint wordCount = 0;\n\t\tfor (int i = 0; i < doc.length(); i++) {\n\t\t\tif (doc.charAt(i) == split) {\n\t\t\t\twordCount++;\n\t\t\t}\n\t\t}\n\t\t// split the String\n\t\tString[] words = new String[wordCount];\n\t\tint lastWord = 0;\n\t\tint index = 0;\n\t\tfor (int i = 0; i < doc.length(); i++) {\n\t\t\tif (doc.charAt(i) == split) {\n\t\t\t\twords[index++] = doc.substring(lastWord, i + 1).trim();\n\t\t\t\tlastWord = i + 1;\n\t\t\t}\n\t\t}\n\t\treturn words;\n\t}",
"private ArrayList<String> convertChar() {\r\n \tArrayList<String> patterns = new ArrayList<String>();\r\n \tfor (int i = 0; i < this.patterns.size(); i++) {\r\n \t\tString s = \"\";\r\n \t\tfor (int j = 0; j < this.patterns.get(i).length; j++) {\r\n \t\t\ts += this.patterns.get(i)[j];\r\n \t\t}\r\n \t\tpatterns.add(s);\r\n \t}\r\n \treturn patterns;\r\n }",
"private static String[] seperateStr(String str)\r\n\t{\r\n\t\tboolean doubleSpace = false;\r\n\t\tint wordCount = 0;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tif (str == null || str.length() == 0)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tfor (int j = 0; j < str.length(); j++)\r\n\t\t{\r\n\t\t\tif (str.charAt(j) == ' ')\r\n\t\t\t{\r\n\t\t\t\tif (!doubleSpace)\r\n\t\t\t\t\twordCount++;\r\n\r\n\t\t\t\tdoubleSpace = true;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tdoubleSpace = false;\r\n\t\t}\r\n\t\tString st[] = new String[wordCount + 1];\r\n\t\tint i = 0;\r\n\r\n\t\tdoubleSpace = false;\r\n\t\tString ch = \"\";\r\n\t\tfor (int j = 0; j < str.length(); j++)\r\n\t\t{\r\n\t\t\tif (str.charAt(j) == ' ')\r\n\t\t\t{\r\n\t\t\t\tif (!doubleSpace)\r\n\t\t\t\t{\r\n\t\t\t\t\tst[i] = sb.toString();\r\n\t\t\t\t\tsb.delete(0, sb.length());\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\tdoubleSpace = true;\r\n\t\t\t\tcontinue;\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tsb.append(str.charAt(j));\r\n\t\t\t}\r\n\t\t\tdoubleSpace = false;\r\n\t\t}\r\n\r\n\t\tst[i] = sb.toString();\r\n\t\t;\r\n\t\treturn st;\r\n\t}",
"public void rozseparujWytnijBialeZnaki() {\r\n\t\tString[] bufor;\r\n\t\tString[] tablicaWynik;\r\n\t\tint licznik;\r\n\t\tint m;\r\n\t\tfor (String s : calaZawartosc) {\r\n\t\t\tbufor = s.split(\"[\\\\s]+\");\r\n\t\t\tlicznik = 0;\r\n\r\n\t\t\tfor (int i = 0; i < bufor.length; ++i)\r\n\t\t\t\tif (!bufor[i].equals(\"\")) {\r\n\t\t\t\t\t++licznik;\r\n\t\t\t\t}\r\n\r\n\t\t\ttablicaWynik = new String[2 * licznik];\r\n\r\n\t\t\tm = 0;\r\n\r\n\t\t\tfor (String str : bufor)\r\n\t\t\t\tif (!str.equals(\"\")) {\r\n\t\t\t\t\ttablicaWynik[m] = str;\r\n\t\t\t\t\ttablicaWynik[m + 1] = \" \";\r\n\t\t\t\t\t++m;\r\n\t\t\t\t\t++m;\r\n\t\t\t\t}\r\n\r\n\t\t\tcalaZawartoscRozsep.add(tablicaWynik);\r\n\t\t}\r\n\t}",
"private static CharSequence[] splitOnSpaceRuns(CharSequence read) {\n int lastStart = 0;\n ArrayList<CharSequence> segs = new ArrayList<CharSequence>(5);\n int i;\n for(i=0;i<read.length();i++) {\n if (read.charAt(i)==' ') {\n segs.add(read.subSequence(lastStart,i));\n i++;\n while(i < read.length() && read.charAt(i)==' ') {\n // skip any space runs\n i++;\n }\n lastStart = i;\n }\n }\n if(lastStart<read.length()) {\n segs.add(read.subSequence(lastStart,i));\n }\n return (CharSequence[]) segs.toArray(new CharSequence[segs.size()]); \n }",
"public ArrayList<String> processWord(String wordProcessing, String separator) {\n ArrayList<String> arrayListResult = new ArrayList<String> ();\n int underscorePos;\n\n while (wordProcessing.contains(separator)){\n underscorePos = wordProcessing.indexOf(separator);\n arrayListResult.add(wordProcessing.substring(0, underscorePos));\n wordProcessing = wordProcessing.substring(underscorePos+1);\n }\n\n arrayListResult.add(wordProcessing); \n\n return arrayListResult;\n }",
"public static List<String> formPossibleValues(String enumeraion){\n\t\tList<String> ret = new ArrayList<String>();\n\t\tfor (String value : enumeraion.split(\";\"))\n\t\t\tret.add(value);\n\t\t\n\t\treturn ret;\n\t}",
"public String[] splitBySplitter(String s) {\r\n\t\tString[] returnArray = new String[4];\r\n\t\treturnArray = s.split(\"-\");\r\n\t\treturn returnArray;\r\n\t}",
"public static char[] splitWordChar(String word) {\r\n\t\tchar[] letters = word.toCharArray();\r\n\t\treturn letters;\r\n\t}",
"public static void Print02(){\n Scanner input = new Scanner(System.in);\n\n System.out.println(\"2. MASUKKAN KALIMAT/KATA : \");\n String inputString = input.nextLine();\n\n String[] inputArray = inputString.split( \" \");\n for(String text : inputArray)\n {\n char[] charArray = text.toCharArray();\n\n for (int i = 0; i < charArray.length; i++) {\n if(i == 0 || i == text.length() - 1 ) {\n System.out.print(charArray[i]);\n }\n else if (i == text.length() / 2) {\n System.out.print(\"***\");\n }\n else {\n System.out.print(\"\");\n }\n }\n System.out.print(\" \");\n }\n System.out.println();\n }",
"private void tokenizar(){\r\n String patron = \"(?<token>[\\\\(]|\\\\d+|[-+\\\\*/%^]|[\\\\)])\";\r\n Pattern pattern = Pattern.compile(patron);\r\n Matcher matcher = pattern.matcher(this.operacion);\r\n \r\n String token;\r\n \r\n while(matcher.find()){\r\n token = matcher.group(\"token\");\r\n tokens.add(token);\r\n \r\n }\r\n \r\n }",
"static String[] splitIntoAlphasAndNums( String s )\n\t{\n\t\tif ( \"\".equals( s ) )\n\t\t{\n\t\t\treturn new String[]{\"\"};\n\t\t}\n\t\ts = s.toLowerCase( Locale.ENGLISH );\n\n\t\tList<String> splits = new ArrayList<String>();\n\t\tString tok = \"\";\n\n\t\tchar c = s.charAt( 0 );\n\t\tboolean isDigit = isDigit( c );\n\t\tboolean isSpecial = isSpecial( c );\n\t\tboolean isAlpha = !isDigit && !isSpecial;\n\t\tint prevMode = isAlpha ? 0 : isDigit ? 1 : -1;\n\n\t\tfor ( int i = 0; i < s.length(); i++ )\n\t\t{\n\t\t\tc = s.charAt( i );\n\t\t\tisDigit = isDigit( c );\n\t\t\tisSpecial = isSpecial( c );\n\t\t\tisAlpha = !isDigit && !isSpecial;\n\t\t\tint mode = isAlpha ? 0 : isDigit ? 1 : -1;\n\t\t\tif ( mode != prevMode )\n\t\t\t{\n\t\t\t\tif ( !\"\".equals( tok ) )\n\t\t\t\t{\n\t\t\t\t\tsplits.add( tok );\n\t\t\t\t\ttok = \"\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// alpha=0, digit=1. Don't append for specials.\n\t\t\tif ( mode >= 0 )\n\t\t\t{\n\t\t\t\t// Special case for minus sign.\n\t\t\t\tif ( i == 1 && isDigit && '-' == s.charAt( 0 ) )\n\t\t\t\t{\n\t\t\t\t\ttok = \"-\";\n\t\t\t\t}\n\t\t\t\ttok += c;\n\t\t\t}\n\t\t\tprevMode = mode;\n\t\t}\n\t\tif ( !\"\".equals( tok ) )\n\t\t{\n\t\t\tsplits.add( tok );\n\t\t}\n\t\tsplits.add( \"\" ); // very important: append empty-string to all returned splits.\n\t\treturn splits.toArray( new String[ splits.size() ] );\n\t}",
"public void splitString() {\n\t\t\tString sentence = \"I am studying\";\n\t\t\tString[] strings = sentence.split(\" \");\n\t\t\tSystem.out.println(\"Length is \" + strings.length);\n\n\n\t\t\tfor (int index = 0; index < strings.length; index++)\n\t\t\t\tSystem.out.println(strings[index]);\n\t\t}",
"public static void main(String[] args) {\nString str=\"This is Batch \";\nString Arr[]=str.split(\"i\");\nSystem.out.println(Arr.length);\nSystem.out.println(Arr[0]);\nSystem.out.println(Arr[1]);\nSystem.out.println(Arr[2]);\n\t}",
"public void BreakInput(String l){\n l+=\" \";\n int k = 0;\n for(int i =0; i<size; i++){\n String temp =\"\";\n while(!(\" \".equals(String.valueOf(l.charAt(k))))){\n temp+=String.valueOf(l.charAt(k));\n k++;\n }\n k++;\n temps.add(i,temp);\n }\n }",
"private static void splitWord() {\n\t\tint i = 1;\r\n\t\tfor(String doc : DocsTest) {\r\n\t\t\tArrayList<String> wordAll = new ArrayList<String>();\r\n\t\t\tfor (String word : doc.split(\"[,.() ; % : / \\t -]\")) {\r\n\t\t\t\tword = word.toLowerCase();\r\n\t\t\t\tif(word.length()>1 && !mathMethod.isNumeric(word)) {\r\n\t\t\t\t\twordAll.add(word);\r\n\t\t\t\t\tif(!wordList.contains(word)) {\r\n\t\t\t\t\t\twordList.add(word);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\twordAll.removeAll(stopword);\r\n\t\t\tDoclist.put(i, wordAll);\r\n\t\t\ti++;\r\n\t\t}\r\n\t\twordList.removeAll(stopword);\r\n\t}",
"private Vector<String> separateLineup(){\n Vector<String> lineup = new Vector<String>();\n StringTokenizer st = new StringTokenizer(masterLineup, \",\");\n\n while(st.hasMoreTokens()){\n lineup.add(st.nextToken().toLowerCase());\n }\n\n return lineup;\n\t\t\n\t}",
"private List<String> normalizeCsv(String text) {\n logger.info (\"Text = \" + text);\n List<String> rr = new ArrayList<> ();\n\n StringBuilder line = new StringBuilder ();\n for (int i = 0; i < text.length (); i++) {\n\n String curr = \"\" + text.charAt (i);\n line.append (curr);\n try {\n\n if (text.charAt (i - 1) == ',' && (curr + \" \").equals (\"1 \") && (text.charAt (i + 1) == ' ' || Character.isAlphabetic (text.charAt (i + 1)))) {\n rr.add (line.toString ());\n line = new StringBuilder ();\n } else if (text.charAt (i - 1) == ',' && (curr + \" \").equals (\"2 \") && (text.charAt (i + 1) == ' ' || Character.isAlphabetic (text.charAt (i + 1)))) {\n rr.add (line.toString ());\n line = new StringBuilder ();\n } else if (text.charAt (i - 1) == ',' && (curr + \" \").equals (\"3 \") && (text.charAt (i + 1) == ' ' || Character.isAlphabetic (text.charAt (i + 1)))) {\n rr.add (line.toString ());\n line = new StringBuilder ();\n } else if (text.charAt (i - 1) == ',' && (curr + \" \").equals (\"4 \") && (text.charAt (i + 1) == ' ' || Character.isAlphabetic (text.charAt (i + 1)))) {\n rr.add (line.toString ());\n line = new StringBuilder ();\n } else if (text.charAt (i - 1) == ',' && (curr + \" \").equals (\"5 \") && (text.charAt (i + 1) == ' ' || Character.isAlphabetic (text.charAt (i + 1)))) {\n rr.add (line.toString ());\n line = new StringBuilder ();\n } else if (text.charAt (i - 1) == ',' && (curr + \" \").equals (\"6 \") && (text.charAt (i + 1) == ' ' || Character.isAlphabetic (text.charAt (i + 1)))) {\n rr.add (line.toString ());\n line = new StringBuilder ();\n } else if (text.charAt (i - 1) == ',' && (curr + \" \").equals (\"7 \") && (text.charAt (i + 1) == ' ' || Character.isAlphabetic (text.charAt (i + 1)))) {\n rr.add (line.toString ());\n line = new StringBuilder ();\n }\n\n } catch (Exception ex) {\n //System.out.println(ex.getMessage());\n }\n\n }\n return rr;\n }",
"private String[] split(String string){\n\t\tString[] split = string.split( \" \" );\n\t\t\n\t\tfor(int i = 0; i < split.length; i++){\n\t\t\tString index = split[i];\n\t\t\tindex = index.trim();\n\t\t}\n\t\t\n\t\treturn split;\n\t}",
"private static List<String> simpleTokenize (String text) {\r\n\r\n // Do the no-brainers first\r\n String splitPunctText = splitEdgePunct(text);\r\n\r\n int textLength = splitPunctText.length();\r\n \r\n // BTO: the logic here got quite convoluted via the Scala porting detour\r\n // It would be good to switch back to a nice simple procedural style like in the Python version\r\n // ... Scala is such a pain. Never again.\r\n\r\n // Find the matches for subsequences that should be protected,\r\n // e.g. URLs, 1.0, U.N.K.L.E., 12:53\r\n Matcher matches = Protected.matcher(splitPunctText);\r\n //Storing as List[List[String]] to make zip easier later on \r\n List<List<String>> bads = new ArrayList<List<String>>();\t//linked list?\r\n List<Pair<Integer,Integer>> badSpans = new ArrayList<Pair<Integer,Integer>>();\r\n while(matches.find()){\r\n // The spans of the \"bads\" should not be split.\r\n if (matches.start() != matches.end()){ //unnecessary?\r\n List<String> bad = new ArrayList<String>(1);\r\n bad.add(splitPunctText.substring(matches.start(),matches.end()));\r\n bads.add(bad);\r\n badSpans.add(new Pair<Integer, Integer>(matches.start(),matches.end()));\r\n }\r\n }\r\n\r\n // Create a list of indices to create the \"goods\", which can be\r\n // split. We are taking \"bad\" spans like \r\n // List((2,5), (8,10)) \r\n // to create \r\n /// List(0, 2, 5, 8, 10, 12)\r\n // where, e.g., \"12\" here would be the textLength\r\n // has an even length and no indices are the same\r\n List<Integer> indices = new ArrayList<Integer>(2+2*badSpans.size());\r\n indices.add(0);\r\n for(Pair<Integer,Integer> p:badSpans){\r\n indices.add(p.first);\r\n indices.add(p.second);\r\n }\r\n indices.add(textLength);\r\n\r\n // Group the indices and map them to their respective portion of the string\r\n List<List<String>> splitGoods = new ArrayList<List<String>>(indices.size()/2);\r\n for (int i=0; i<indices.size(); i+=2) {\r\n String goodstr = splitPunctText.substring(indices.get(i),indices.get(i+1));\r\n List<String> splitstr = Arrays.asList(goodstr.trim().split(\" \"));\r\n splitGoods.add(splitstr);\r\n }\r\n\r\n // Reinterpolate the 'good' and 'bad' Lists, ensuring that\r\n // additonal tokens from last good item get included\r\n List<String> zippedStr= new ArrayList<String>();\r\n int i;\r\n for(i=0; i < bads.size(); i++) {\r\n zippedStr = addAllnonempty(zippedStr,splitGoods.get(i), true);\r\n zippedStr = addAllnonempty(zippedStr,bads.get(i), false);\r\n }\r\n zippedStr = addAllnonempty(zippedStr,splitGoods.get(i), true);\r\n \r\n // BTO: our POS tagger wants \"ur\" and \"you're\" to both be one token.\r\n // Uncomment to get \"you 're\"\r\n /*ArrayList<String> splitStr = new ArrayList<String>(zippedStr.size());\r\n for(String tok:zippedStr)\r\n \tsplitStr.addAll(splitToken(tok));\r\n zippedStr=splitStr;*/\r\n \r\n return zippedStr;\r\n }",
"@Test\n public void testCaseNumberSplit() {\n String caseNumber1 = \"NTN-57930\";\n String[] parts1 = caseNumber1.split( \"-\" );\n //String[] parts2 = caseNumber2.split(\"-\");\n //String[] parts3 = caseNumber3.split(\"-\");\n System.out.println( parts1.length );\n //System.out.println( parts2.length);\n //System.out.println( parts3.length);\n if (parts1.length > 2) {\n System.out.println( parts1[0] );\n String case1 = caseNumber1.substring( caseNumber1.indexOf( caseNumber1.split( \"-\" )[0] ), caseNumber1.indexOf( caseNumber1.split( \"-\" )[2] ) - 1 );\n System.out.println( case1 );\n } else {\n String case1 = caseNumber1;\n System.out.println( case1 );\n }\n }",
"void LoesungAusgeben (String strA) { createOutput ()\n //\n // println(\"strA = \"+strA);\n //\n String[] list1 = { \n strA\n };\n list1=split(strA, ',');\n // now write the strings to a file, each on a separate line\n // saveStrings (\"c:\\\\soft\\\\SolProcess\\\\result\" + Date1() + \"_\" + Now1() + \".txt\", list1);\n // saveStrings (\"result\" + Date1() + \"_\" + Now1() + \".txt\", list1);\n saveStrings (\"result.txt\", list1);\n}",
"public static ArrayList<Integer> getDelimiters2(String s, String language){\n\t\tArrayList<Integer> list_boundaries=new ArrayList<Integer>();\n\t\tBreakIterator bi=BreakIterator.getWordInstance(new Locale(language));\n\t\t\n\t\t\n\t\tbi.setText(s);\n\t\tint start=bi.first();\n\t\t\n\t\tint end = 0;\n\t\ttry {\n\t\t end=bi.next();\n\t\t} catch(ArrayIndexOutOfBoundsException e) {\n\t\t bi.setText( java.text.Normalizer.normalize(s, java.text.Normalizer.Form.NFD).replaceAll(\"[^\\\\p{ASCII}]\", \"\") );\n\t\t end=bi.next();\n\t\t}\n\t\t\n\t\twhile (end != BreakIterator.DONE) {\n\t\t\tif (end==start+1){\n\t\t\t\tchar c=s.charAt(start);\n\t\t\t\tif (!tokenize_isdelim(c)){\n\t\t\t\t\tlist_boundaries.add(start);\n\t\t\t\t\tlist_boundaries.add(end);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\tlist_boundaries.add(start);\n\t\t\t\t\tlist_boundaries.add(end);\n\t\t\t}\n\n\t start = end;\n\t end = bi.next();\n\t\t}\n\t\treturn list_boundaries;\n\t\t\n\t}",
"@Override\r\n\tpublic String desencriptar(String string) {\n\r\n\t\tString palabra = string;\r\n\t\tString[] parts = string.split(\",\");\r\n String newName=\"\";\r\n for (int i = 0; i < parts.length; i++) {\r\n // instrucción switch con tipo de datos int\r\n switch (parts[i]) \r\n {\r\n case \"1\" : newName+=\"a\";\r\n break;\r\n case \"2\" : newName+=\"b\";\r\n break;\r\n case \"3\" : newName+=\"c\";\r\n break;\r\n case \"4\" : newName+=\"d\";\r\n break;\r\n case \"5\" : newName+=\"e\";\r\n break;\r\n case \"6\" : newName+=\"f\";\r\n break;\r\n case \"7\" : newName+=\"g\";\r\n break;\r\n case \"8\" : newName+=\"h\";\r\n break;\r\n case \"9\" : newName+=\"i\";\r\n break;\r\n case \"10\" : newName+=\"j\";\r\n break;\r\n case \"11\" : newName+=\"k\";\r\n break;\r\n case \"12\" : newName+=\"l\";\r\n break;\r\n case \"13\" : newName+=\"m\";\r\n break;\r\n case \"14\" : newName+=\"n\";\r\n break;\r\n case \"15\" : newName+=\"ñ\";\r\n break;\r\n case \"16\" : newName+=\"o\";\r\n break;\r\n case \"17\" : newName+=\"p\";\r\n break;\r\n case \"18\" : newName+=\"q\";\r\n break;\r\n case \"19\" : newName+=\"r\";\r\n break;\r\n case \"20\" : newName+=\"s\";\r\n break;\r\n case \"21\" : newName+=\"t\";\r\n break;\r\n case \"22\" : newName+=\"u\";\r\n break;\r\n case \"23\" : newName+=\"v\";\r\n break;\r\n case \"24\" : newName+=\"w\";\r\n break;\r\n case \"25\" : newName+=\"x\";\r\n break;\r\n case \"26\" : newName+=\"y\";\r\n break;\r\n case \"27\" : newName+=\"z\";\r\n break;\r\n case \"0\" : newName+=\" \";\r\n break;\r\n case \"28\" : newName+=\" \";\r\n break;\r\n \r\n \r\n }\r\n \r\n }\r\n \r\n return newName ;\r\n\t}",
"private String[] BreakDiscoveryMessageToStrings(String input) {\n return input.split(\"[\" + Constants.STANDART_FIELD_SEPERATOR + \"]\"); //parse the string by the separator char\n }",
"public static String[] splitPhrase(String phrase) {\n\t\tif (StringUtils.isBlank(phrase)) {\n\t\t\treturn null;\n\t\t}\n\t\tif (phrase.length() > 2) {\n\t\t\tphrase = phrase.replaceAll(OpenmrsConstants.REGEX_LARGE, \" \");\n\t\t} else {\n\t\t\tphrase = phrase.replaceAll(OpenmrsConstants.REGEX_SMALL, \" \");\n\t\t}\n\t\t\n\t\treturn phrase.trim().replace('\\n', ' ').split(\" \");\n\t}",
"public String[] obtener_nombres_de_torres(String line) {\n\t\tString tipo_enunciado = this.obtener_tipo_instruccion(line);\n\t\tString nombres[];\n\t\tline = line.replaceAll(\"\\\\.|\\\\?|\\\\s\", \"\");\n\t\t\n \tif( tipo_enunciado.equals(\"EnunciadoCrearEnlace\")){\n \t\tint index_creacion= line.indexOf('>');\n \t\tif(index_creacion > 0 ){\n \t\t\tnombres = line.split(\"->\");\n \t\t} else {\n \t\t\tnombres = line.split(\"<-\");\n \t\t}\n \t} else if( tipo_enunciado.equals(\"EnunciadoRemoverEnlace\") ){\n \t\t\tnombres = line.split(\"-\");\n \t} else {\n \t\tint index_question = line.indexOf(\"=>\");\n \t\tif( index_question > 0 ) {\n \t\t\tnombres = line.split(\"=>\");\n \t\t} else {\n \t\t\tnombres = line.split(\"<=\");\n \t\t}\n \t}\n \treturn nombres;\n }",
"private static String[] splitPartName(String partName) {\n if (partName == null) {\n partName = \"\";\n }\n\n int last_match = 0;\n LinkedList<String> splitted = new LinkedList<String>();\n Matcher m = partNamePattern.matcher(partName);\n while (m.find()) {\n if (!partName.substring(last_match, m.start()).trim().isEmpty()) {\n splitted.add(partName.substring(last_match, m.start()));\n }\n if (!m.group().trim().isEmpty()) {\n splitted.add(m.group());\n }\n last_match = m.end();\n }\n if (!partName.substring(last_match).trim().isEmpty()) {\n splitted.add(partName.substring(last_match));\n }\n return splitted.toArray(new String[splitted.size()]);\n }",
"private java.util.ArrayList<String> textSplit(String splitted) {\n java.util.ArrayList<String> returned = new java.util.ArrayList<String>();\n String relatedSeparator = this.getLineSeparator(splitted);\n String[] pieces = splitted.split(relatedSeparator + relatedSeparator);\n String rstr = \"\";\n for (int cpiece = 0; cpiece < pieces.length; cpiece++) {\n String cstr = pieces[cpiece];\n if (rstr.length() + cstr.length() > maxLength) {\n if (!rstr.isEmpty()) {\n returned.add(rstr);\n rstr = cstr;\n }\n else {\n returned.add(cstr);\n }\n }\n else {\n if (rstr.equals(\"\")) {\n rstr = cstr;\n }\n else {\n rstr = rstr + lineSeparator + lineSeparator + cstr;\n }\n }\n if (cpiece == pieces.length - 1) {\n returned.add(rstr);\n }\n }\n return returned;\n }",
"public static String[] splitMessage(String msg){\n\t\t\n\t\tString content = msg;\n\t\tString[] msgArray = new String[msg.length()/252];\n\t\tint i=0;\n\t\twhile(content.length() >= 252) {\n\t\t msgArray[i] = content.substring(0, 252);\n\t\t i++;\n\t\t content = content.substring(252);\n\t\t}\n\t\treturn msgArray;\n\t}",
"public static String[] split(String s, char token) {\n\t\tint tokenCount = 0;\n\t\tfor(int i=0;i<s.length();i++) {\n\t\t\tif(s.charAt(i) == token) {\n\t\t\t\ttokenCount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tString[] splits = new String[tokenCount+1];\n\t\t\n\t\tString temp = \"\";\n\t\tint tokenItr = 0;\n\t\tfor(int i=0;i<s.length();i++) {\n\t\t\tif(s.charAt(i) == token) {\n\t\t\t\tsplits[tokenItr] = temp;\n\t\t\t\ttokenItr++;\n\t\t\t\ttemp = \"\";\n\t\t\t} else {\n\t\t\t\ttemp+=s.charAt(i);\n\t\t\t}\n\t\t}\n\t\tsplits[tokenItr] = temp; //For the left over strings in s\n\t\t\n\t\treturn splits;\n\t}",
"List<String> tokenize1(String doc) {\n List<String> res = new ArrayList<String>();\n\n for (String s : doc.split(\"[\\\\p{Punct}\\\\s]+\"))\n res.add(s);\n return res;\n }",
"public StringWrapper[] split(DocText docText, BreakStrategy breakStrategy) {\n final String string = docText.getString();\n final String[] pieces = string.split(pattern);\n\n final List<StringWrapper> result = new ArrayList<StringWrapper>();\n\n for (int i = 0; i < pieces.length; ++i) {\n if (!\"\".equals(pieces[i])) {\n result.add(new StringWrapper(pieces[i], breakStrategy));\n }\n }\n\n return result.toArray(new StringWrapper[result.size()]);\n }",
"static ArrayList<String> split_words(String s){\n ArrayList<String> words = new ArrayList<>();\n\n Pattern p = Pattern.compile(\"\\\\w+\");\n Matcher match = p.matcher(s);\n while (match.find()) {\n words.add(match.group());\n }\n return words;\n }",
"public static String split(String sentence) {\n StringBuilder result = new StringBuilder();\n int i = 0; // use for create lines <= 4 words\n for (String word : sentence.split(\" \")) {\n result.append(word).append(\" \");\n ++i;\n if (i == 4) {\n result.append(\"\\n\");\n i = 0;\n }\n }\n return result.toString();\n }",
"public static ArrayList<String> procesarEntrada(String input)\n {\n ArrayList<String> parse = new ArrayList<String>();\n String word = \"\";\n\n for (int i = 0; i < input.length(); i++)\n {\n if (input.charAt(i) != '&')\n word += input.charAt(i);\n\n if (input.charAt(i) == '&' || i == input.length() - 1)\n {\n parse.add(word);\n word = \"\";\n } \n }\n\n return parse;\n }",
"public static String[] split(char c, String value) {\n\t\t int count,idx;\n\t\t for(count=1,idx=value.indexOf(c);idx>=0;idx=value.indexOf(c,++idx),++count);\n\t\t String[] rv = new String[count];\n\t\t if(count==1) {\n\t\t\t rv[0]=value;\n\t\t } else {\n\t\t\t int last=0;\n\t\t\t count=-1;\n\t\t\t for(idx=value.indexOf(c);idx>=0;idx=value.indexOf(c,idx)) {\n\t\t\t\t rv[++count]=value.substring(last,idx);\n\t\t\t\t last = ++idx;\n\t\t\t }\n\t\t\t rv[++count]=value.substring(last);\n\t\t }\n\t\t return rv;\n\t }",
"public void main(String[] args) {\n String datas=\"\";\n try {\n File myObj = new File(\"configuracion.txt\");\n Scanner myReader = new Scanner(myObj);\n while (myReader.hasNextLine()) {\n String data = myReader.nextLine();\n datas = datas + data;\n }\n myReader.close();\n }\n catch (FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n\n String[] partes = datas.split(\">\"); //separa el contenido del fichero en diferentes string\n String[] cambios; //y lo vuelve a separar para quitar los titulos entre <>. Ej: <Localizaciones>\n for (int i = 1; i < 4; i++) {\n cambios=partes[i].split(\"<\");\n partes[i]=cambios[0];\n }\n \n //calcular num de elementos de cada parte\n int[] numelementos = new int[3];\n for (int i = 0; i < 3; i++) {\n for(int j=0; j<partes[i+1].length(); j++){\n if(partes[i+1].charAt(j)=='(')\n numelementos[i]++;\n if(partes[i+1].charAt(j)==')'){\n if(numelementos[i]==0)\n flag1=1;\n }\n }\n }\n\n localizacionesString = new String [numelementos[0]]; //incializa la informacion de cada objeto \n personajesString = new String [numelementos[1]]; //segun el largo de los strings que hemos separado\n objetosString = new String [numelementos[2]];\n String cambio = \"\";\n int count = 0 ;\n\n //Se rellena cada string con un for propio\n //Dentro de un try para deteccion de errores\n try {\n //for para Localizaciones\n for (int i=0; count<numelementos[0]; ++i){ \n if (partes[1].charAt(i)==')'){\n localizacionesString[count]=\"\";\n cambio=cambio+partes[1].charAt(i);\n localizacionesString[count]=localizacionesString[count]+cambio;\n ++count;\n cambio=\"\";\n continue;\n }\n if (partes[1].charAt(i)==','){ //Control de errores en el txt /*\n if(partes[1].charAt(i+1)!=' '){\n cambio=cambio+\", \";\n continue;\n }\n if(partes[1].charAt(i+1)==' '&&partes[1].charAt(i+2)==' '){\n cambio=cambio+\", \";\n ++i;\n for(;;i++){\n if(partes[1].charAt(i)!=' ')\n break;\n }\n }\n }\n cambio=cambio+partes[1].charAt(i);\n if(cambio.charAt(0)==' ')\n cambio=\"\"; \n }\n for (int f,i = 0; i < numelementos[0]; i++) {\n f=0;\n for (int j = 0; j < localizacionesString[i].length(); j++) {\n if(localizacionesString[i].charAt(j)==')'||localizacionesString[i].charAt(j)=='('){\n ++f;\n }\n }\n if(f<2||f>2){\n flag1=1;\n }\n } // */\n \n count = 0;\n\n //for para Personajes\n for (int i=0; count<numelementos[1]; ++i){\n if (partes[2].charAt(i)==')'){\n personajesString[count]=\"\";\n cambio=cambio+partes[2].charAt(i);\n personajesString[count]=personajesString[count]+cambio;\n ++count;\n cambio=\"\";\n continue;\n }\n cambio=cambio+partes[2].charAt(i);\n if(cambio.charAt(0)==' ')\n cambio=\"\";\n }\n for (int f,i = 0; i < numelementos[1]; i++) { //Control de errores/*\n f=0;\n for (int j = 0; j < personajesString[i].length(); j++) {\n if(personajesString[i].charAt(j)==')'||personajesString[i].charAt(j)=='('){\n ++f;\n }\n }\n if(f<2||f>2){\n flag1=1;\n }\n } // */\n \n count=0;\n\n //for para Objetos\n for (int i=0; count<numelementos[2]; ++i){\n if (partes[3].charAt(i)==')'){\n objetosString[count]=\"\";\n cambio=cambio+partes[3].charAt(i);\n objetosString[count]=objetosString[count]+cambio;\n ++count;\n cambio=\"\";\n continue;\n }\n cambio=cambio+partes[3].charAt(i);\n if(cambio.charAt(0)==' ')\n cambio=\"\";\n }\n for (int f,i = 0; i < numelementos[2]; i++) { //Control de errores/*\n f=0;\n for (int j = 0; j < objetosString[i].length(); j++) {\n if(objetosString[i].charAt(j)==')'||objetosString[i].charAt(j)=='('){\n ++f;\n }\n }\n if(f<2||f>2){\n flag1=1;\n }\n } // */\n\n \n } catch (Exception e) {\n System.out.println(\"ERROR EN LECTURA FICHERO\");\n flag1 = 1;\n }\n \n \n\n\n\n\n\n //leer fichero de objetivos(funciona igual que el de configuracion.txt)\n\n datas=\"\";\n try {\n File myObj = new File(\"objetivos.txt\");\n Scanner myReader = new Scanner(myObj);\n while (myReader.hasNextLine()) {\n String data = myReader.nextLine();\n datas = datas + data;\n }\n myReader.close();\n }\n\n catch (FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n\n partes = datas.split(\">\");\n for (int i = 1; i < 3; i++) {\n cambios=partes[i].split(\"<\");\n partes[i]=cambios[0];\n }\n \n numelementos = new int[2];\n for(int i=0 ; i<2 ; i++){\n for(int j=0; j<partes[i+1].length(); j++){\n if(partes[i+1].charAt(j)=='('){\n numelementos[i]++;\n if(partes[i+1].charAt(j)==')'){\n if(numelementos[i]==0)\n flag2=1;\n }\n }\n }\n }\n\n localizacionesObjetivoString = new String [numelementos[0]];\n objetosObjetivoString = new String [numelementos[1]];\n cambio=\"\";\n\n count = 0;\n\n try {\n // for para las localizaciones objetivo\n for (int i=0; count<numelementos[0]; ++i){\n if (partes[1].charAt(i)==')'){\n localizacionesObjetivoString[count]=\"\";\n cambio=cambio+partes[1].charAt(i);\n localizacionesObjetivoString[count]=localizacionesObjetivoString[count]+cambio;\n ++count;\n cambio=\"\";\n continue;\n }\n cambio=cambio+partes[1].charAt(i);\n if(cambio.charAt(0)==' ')\n cambio=\"\";\n }\n for (int f,i = 0; i < numelementos[0]; i++) { //Control de errores /*\n f=0;\n for (int j = 0; j < localizacionesObjetivoString[i].length(); j++) {\n if(localizacionesObjetivoString[i].charAt(j)==')'||localizacionesObjetivoString[i].charAt(j)=='('){\n ++f;\n }\n }\n if(f<2||f>2){\n flag2=1;\n }\n } // */\n\n count=0;\n\n // for para los objetos objetivo\n for (int i=0; count<numelementos[1]; ++i){\n if (partes[2].charAt(i)==')'){\n objetosObjetivoString[count]=\"\";\n cambio=cambio+partes[2].charAt(i);\n objetosObjetivoString[count]=objetosObjetivoString[count]+cambio;\n ++count;\n cambio=\"\";\n continue;\n }\n cambio=cambio+partes[2].charAt(i);\n if(cambio.charAt(0)==' ')\n cambio=\"\";\n }\n for (int f,i = 0; i < numelementos[0]; i++) { //Control de errores /*\n f=0;\n for (int j = 0; j < objetosObjetivoString[i].length(); j++) {\n if(objetosObjetivoString[i].charAt(j)==')'||objetosObjetivoString[i].charAt(j)=='('){\n ++f;\n }\n }\n if(f<2||f>2){\n flag2=1;\n }\n } // */\n\n } catch (Exception e) {\n System.out.println(\"ERRROR EN LA LECTURA DE FICHERO\");\n flag2=1;\n }\n \n System.out.println(\"\");\n }",
"public String[] processString(String sMath){\n String s1 = \"\", elementMath[];\r\n sMath = sMath.trim();\r\n sMath = sMath.replaceAll(\"\\\\s+\",\" \"); // chuan hoa sMath\r\n for (int i=0; i<sMath.length(); i++){\r\n char c = sMath.charAt(i);\r\n if (!isOperator(c)) s1 = s1 + c;\r\n else s1 = s1 + \" \" + c + \" \";\r\n }\r\n s1 = s1.trim();\r\n s1 = s1.replaceAll(\"\\\\s+\",\" \"); // chuan hoa s1\r\n elementMath = s1.split(\" \"); //tach s1 thanh cac phan tu\r\n return elementMath;\r\n }",
"public String ocultarPalabra(String palabra){\n String resultado=\"\";\n for(int i=0;i<palabra.length();i++){\n resultado+=\"-\";\n }\n return resultado;\n }",
"@Test\n public void testSplitOnWhitespaceAndCommas() {\n assertEquals(0, Strings.splitOnWhitespaceAndCommas(null).size());\n assertEquals(0, Strings.splitOnWhitespaceAndCommas(\"\").size());\n assertEquals(0, Strings.splitOnWhitespaceAndCommas(\" ,, \\n,\\t, ,, ,\").size());\n \n List<String> split = Strings.splitOnWhitespaceAndCommas(\" ,, hello, \\nthere\\t,,\");\n assertEquals(2, split.size());\n assertEquals(\"hello\", split.get(0));\n assertEquals(\"there\", split.get(1));\n }",
"private static void esPalindromo(String palabraUsuario) {\n\t\tString primeraParte = \"\";\n\t\tString segundaParte = \"\";\n\t\tif (palabraUsuario.length() % 2 == 0) {// Es Par\n\t\t\tfor (int i = 0; i < palabraUsuario.length() / 2; i++) {//Recorro lo caracteres de la palabra introducida hasta la mitad\n\t\t\t\tprimeraParte += palabraUsuario.charAt(i); //Los meto en una cadena\n\t\t\t}\n\t\t\tfor (int i = palabraUsuario.length() / 2 - 1; i >= 0; i--) {//Recorro la mitad de la palabra introducida pero al reves\n\t\t\t\tsegundaParte += palabraUsuario.charAt(i);\n\t\t\t}\n\t\t\tString palabraCreada = primeraParte + segundaParte;// Creo una palabra a partir de la primera y segunda parte\n\t\t\tif (palabraCreada.equalsIgnoreCase(palabraUsuario))//Si la palabra que ha introducido es igual a la que he compuesto \n\t\t\t\tSystem.out.println(\"Es palindromo\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"No es palindromo\");\n\t\t} else {// Es impar\n\t\t\tfor (int i = 0; i < palabraUsuario.length() / 2 + 1; i++) {//Recorro lo caracteres de la palabra introducida un caracter mas de la mitad\n\t\t\t\tprimeraParte += palabraUsuario.charAt(i); // Los meto en una cadena\n\t\t\t}\n\t\t\tfor (int i = primeraParte.length() - 2; i >= 0; i--) {//Le doy i el valor de la longitud de la primera parte -2 porque es impar \n\t\t\t\tsegundaParte += primeraParte.charAt(i);\n\t\t\t}\n\t\t\tString palabraComprobar = primeraParte + segundaParte;\n\t\t\tif (palabraUsuario.equalsIgnoreCase(palabraComprobar)) {//Igual que antes\n\t\t\t\tSystem.out.println(\"Es un palindromo\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No es un palindromo\");\n\t\t\t}\n\t\t}\n\n\t}",
"public static String[] split(String value) {\r\n\t\tif(value == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn value.trim().split(\",\");\r\n\t}",
"public static List<String> explode(String text, String separator) {\r\n\t\t\tList<String> list = new ArrayList<String>();\r\n\t\t\tif (text != null && separator != null && !text.isEmpty()) {\r\n\t\t\t\tCollections.addAll(list, text.split(separator));\r\n\t\t\t}\r\n\r\n\t\t\treturn list;\r\n\t\t}",
"private static ArrayList<String> split(String str) {\n String[] splits = str.split(DELIMITER);\n return new ArrayList<>(Arrays.asList(splits));\n }",
"private String[] extractTextAndPerformParameterParsing(String command, ArrayList<Parameter> parameters,\n\t\t\tint indexOfFirstSpace, int indexOfFirstInvertedSlash) {\n\t\tString splitedText[] = null;\n\t\tString text;\n\t\tif (indexOfFirstSpace < command.length()) {\n\t\t\tif (isValidCommandWithParameter(indexOfFirstSpace, indexOfFirstInvertedSlash)) {\n\t\t\t\ttext = command.substring(indexOfFirstSpace + 1, indexOfFirstInvertedSlash);\n\n\t\t\t\tString parameterStr = command.substring(indexOfFirstInvertedSlash, command.length());\n\t\t\t\tString[] parameterArr = parameterStr.split(\" \");\n\t\t\t\textractParameter(parameters, parameterArr);\n\t\t\t} else {\n\n\t\t\t\ttext = command.substring(indexOfFirstSpace + 1, command.length());\n\t\t\t}\n\t\t\t// For multiple add and done\n\t\t\tsplitedText = text.split(VERTICAL_DASH);\n\t\t}\n\t\treturn splitedText;\n\t}",
"public static void main(String args[]){\n \"abc\".chars().forEach(System.out::println);\n\n\n //breaks a String into sub-strings according to specified RegEx:\n Stream<String> stream =\n Pattern.compile(\", \").splitAsStream(\"a, b, c\");\n\n stream.forEach(System.out::println);\n\n }",
"private static String[] lineSplit(String input) {\r\n String[] tokens = input.split(delimiter);\r\n return tokens;\r\n }",
"public static void main(String[] args) {\n String myRegExString = \"[a-zA-Z\\\\s]+\";\n\n // This is the string we will check to see if our regex matches:\n String myString = \"The quick brown fox jumped over the lazy dog...\";\n\n // Create a Pattern object (compiled RegEx) and save it as 'p'\n Pattern p = Pattern.compile(myRegExString);\n\n // We need a Matcher to match our compiled RegEx to a String\n Matcher m = p.matcher(myString);\n\n // if our Matcher finds a match\n if (m.find()) {\n // Print the match\n System.out.println(m.group());\n }\n\n String s = \"Hello, Goodbye, Farewell\";\n Pattern p1 = Pattern.compile(\"\\\\p{Alpha}+\");\n Matcher m1 = p1.matcher(s);\n\n while( m.find() ){\n System.out.println(m1.group());\n }\n\n String s1 = \"Hello, Goodbye, Farewell\";\n String s2 = \"Hola, Adios, Hasta Luego\";\n\n String myDelimiter = \", \";\n\n String[] s1array = s1.split(myDelimiter);\n String[] s2array = s2.split(myDelimiter);\n\n System.out.println(\"s1array[0]: \" + s1array[0]);\n System.out.println(\"s1array[1]: \" + s1array[1]);\n System.out.println(\"s1array[2]: \" + s1array[2]);\n System.out.println(\"s2array[0]: \" + s2array[0]);\n System.out.println(\"s2array[1]: \" + s2array[1]);\n System.out.println(\"s2array[2]: \" + s2array[2]);\n\n }",
"@Test\r\n\tvoid testsplitStringHandout2() {\n\t\tString input = Main.TEXT_2;\r\n\t\tString expected[] = {\"A\",\"long\",\"time\",\"ago\",\"in\",\"a\",\"galaxy\",\"far,\",\"far\",\"away...\"};\r\n\t\t\r\n\t\t// Use assertEquals to compare arrays\r\n\t\tassertArrayEquals(expected, Main.splitString(input) );\r\n\t\t\r\n\t\tassertEquals(7, Main.maxWordLength(Main.splitString(input)));\r\n\r\n\t}",
"private char[] preprocess(String text) {\n char[] t = new char[text.length() * 2 + 3];\n t[0] = '$';\n t[text.length() * 2 + 2] = '@';\n for (int i = 0; i < text.length(); i++) {\n t[2 * i + 1] = '#';\n t[2 * i + 2] = text.charAt(i);\n }\n t[text.length() * 2 + 1] = '#';\n return t;\n }",
"private String[] getDelimiters(String numbers) {\n String firstLine = numbers.lines().findFirst().orElse(\"\");\n\n if (firstLine.startsWith(\"//\")) {\n StringBuilder delimiter = new StringBuilder();\n\n List<String> delimiters = new ArrayList<>();\n\n for (int i = 2; i < firstLine.length(); i++) {\n if (firstLine.charAt(i) == ']') {\n delimiters.add(delimiter.toString());\n delimiter = new StringBuilder();\n } else if (firstLine.charAt(i) != '[') {\n delimiter.append(firstLine.charAt(i));\n }\n }\n return delimiters.stream().sorted((s, t1) -> t1.length() - s.length())\n .toArray(String[]::new);\n }\n\n return new String[0];\n }",
"separador(){\r\n uno = null;\r\n dos = null;\r\n tres = null;\r\n cero = null;\r\n }",
"public static void main(String[] args) {\n\n char[] animal = {'k', 'u', 't', 'y', 'a'};\n Arrays.stream(new String(animal).split(\" \")).forEach(System.out::print);\n\n }",
"public static Vector<String> parseLine(String line, String separator)\n\t{\n\t\tVector<String> partes=new Vector<>();\n\t\tint index = 0,offset = 0;\n\t\tint indexComillas;\n\t\tboolean startingComillas = true;\n\t\tif(line==null)return partes;\n\t\tif(!line.endsWith(separator))line+=separator;\n\t\tif((indexComillas = line.indexOf('\\\"')) == -1)indexComillas = Integer.MAX_VALUE;\n\t\twhile((index=line.indexOf(separator,startingComillas ? offset : indexComillas))!=-1)\n\t\t{\n\t\t\tif(index > indexComillas)\n\t\t\t{\n\t\t\t\tif((indexComillas = line.indexOf('\\\"', index)) == -1)indexComillas = Integer.MAX_VALUE;\n\t\t\t\tif(startingComillas)\n\t\t\t\t{\n\t\t\t\t\tstartingComillas = false;\n\t\t\t\t\toffset++;\n\t\t\t\t\tif(indexComillas == Integer.MAX_VALUE)break;\n\t\t\t\t\telse continue;\n\t\t\t\t}\n\t\t\t\telse startingComillas = true;\n\t\t\t\tindex--;\n\t\t\t}\n\t\t\tpartes.addElement(line.substring(offset,index));\n\t\t\toffset=index;\n\t\t\twhile(line.startsWith(separator,++offset)&&offset<line.length()); // Elimino separadores seguidos\n\t\t}\n\t\tif(!startingComillas) // Si faltan las comillas de cierre, igual pongo esa parte\n\t\t\tpartes.addElement(line.substring(offset, line.length() - separator.length()));\n\t\treturn partes;\n\t}",
"private static String extractCustomMultipleDelimiters(String delimiter) {\n\t\tdelimiter = delimiter.substring(1, delimiter.length() - 1);\n\t\tdelimiter = delimiter.replace(\"][\", \"|\");\n\t\treturn delimiter;\n\t}",
"public static String[] split(String value, String spliter) {\r\n\t\tif(value == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn value.trim().split(spliter);\r\n\t}"
] | [
"0.688212",
"0.6637711",
"0.63891405",
"0.6352267",
"0.6120975",
"0.59266317",
"0.5903333",
"0.5831222",
"0.5799637",
"0.5771675",
"0.57671344",
"0.57663816",
"0.5723647",
"0.5712331",
"0.57104266",
"0.56963897",
"0.5666251",
"0.5661322",
"0.55330086",
"0.5525562",
"0.55249286",
"0.5517717",
"0.55080456",
"0.5501104",
"0.5478721",
"0.54736614",
"0.54715204",
"0.5470624",
"0.5458785",
"0.5458008",
"0.54297763",
"0.54248464",
"0.54244727",
"0.5420428",
"0.5399839",
"0.5398633",
"0.5395296",
"0.5380334",
"0.5377999",
"0.5374764",
"0.53700525",
"0.53481346",
"0.53462183",
"0.5345669",
"0.5343645",
"0.5337943",
"0.53339046",
"0.5320745",
"0.5317888",
"0.531667",
"0.52937084",
"0.5293671",
"0.5289487",
"0.5287414",
"0.52777666",
"0.52606964",
"0.52605194",
"0.5243545",
"0.52432996",
"0.52427137",
"0.52406865",
"0.5218999",
"0.521513",
"0.52129525",
"0.521122",
"0.52066493",
"0.51950234",
"0.51882714",
"0.5187229",
"0.517863",
"0.51713085",
"0.5160004",
"0.5157585",
"0.5157474",
"0.5153386",
"0.5151446",
"0.51346",
"0.51326674",
"0.5129614",
"0.5127304",
"0.5120823",
"0.5117789",
"0.51167",
"0.51141596",
"0.5113188",
"0.51002896",
"0.5099574",
"0.50989133",
"0.50977945",
"0.5093097",
"0.50924796",
"0.50865614",
"0.50861716",
"0.50849515",
"0.50800943",
"0.50740606",
"0.5071371",
"0.5071338",
"0.50656796",
"0.5065431"
] | 0.74953824 | 0 |
List room = userBean.getAllRooms(); List rooms = userBean.getRoomsByNotes(); List rooms1 = userBean.getRoomsbyNotesAndFreeTime(); List streamGroups = | @RequestMapping(value = "/room", method = RequestMethod.GET)
public ModelAndView listRoom() {
List<Group> groups = userBean.getAllGroups();
for (int i = 0; i < groups.size(); i++) {
userBean.getGroupByStreamId(groups.get(1));
}
ModelAndView view = new ModelAndView("room");
// view.addObject("list", room);
// view.addObject("note", rooms);
//view.addObject("st", streamGroups);
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList findAllRoomsWSummary(){\n List <Room> allRooms= roomRepository.findAll();\n System.out.println(\"All rooms is:\");\n System.out.println(allRooms.toString());\n//Set an array list that contains all the data to return to the client\n ArrayList<RoomSummaryMap> dataToReturnToClient = new ArrayList<>();\n\n for (Room room : allRooms) {\n// If there is no associated msg, assign an empty array to the lastMsg.\n if(room.getAssociated_messages().size()<1){\n System.out.println(\"size is less than 1\");\n RoomSummaryMap mapObject= new RoomSummaryMap(room.getId(),room.getName(),\n room.getImage(),\n room.getCreatedBy(),\n room.getAssociated_messages(), \"\");\n System.out.println(\"map object is:\");\n System.out.println(mapObject);\n\n dataToReturnToClient.add(mapObject);\n\n continue;\n }\n System.out.println(\"Size is more than 1\");\n// Else, add the last msg\n String lasMsgObjId=\n room.getAssociated_messages().get(room.getAssociated_messages().size()-1).toString();\n//Query the db for this message\n Message messageInstance= messageService.findbyId(lasMsgObjId);\n dataToReturnToClient.add(new RoomSummaryMap(room.getId(),room.getName(),\n room.getImage(),\n room.getCreatedBy(),\n room.getAssociated_messages(), messageInstance.getMessage()));\n }\n\n System.out.println(\"data to return to client inside room service\");\n System.out.println(dataToReturnToClient);\n return dataToReturnToClient;\n }",
"public List<Room> findAllRooms();",
"public List<Room> showAllRoom() {\r\n\t\t\r\n\t\tif(userService.adminLogIn|| userService.loggedIn) {\r\n\t\t\tList<Room> list = new ArrayList<>();\r\n\t\t\troomRepository.findAll().forEach(list::add);\r\n\t\t\treturn list;\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new UserNotLoggedIn(\"you are not logged in!!\");\r\n\t\t}\r\n\r\n\t}",
"public static void showAllRoom(){\n ArrayList<Room> roomList = getListFromCSV(FuncGeneric.EntityType.ROOM);\n displayList(roomList);\n showServices();\n }",
"protected static String availableRooms(ArrayList<Room> roomList,String start_date){\n String stringList = \"\";\n for(Room room : roomList){\n System.out.println(room.getName());\n ArrayList<Meeting> meet = room.getMeetings();\n for(Meeting m : meet){\n stringList += m + \"\\t\";\n }\n System.out.println(\"RoomsList\"+stringList);\n }\n return \"\";\n }",
"@Override\n public List<UserRoom> getUserRoomList() {\n logger.info(\"Start getUserRoomList\");\n List<UserRoom> userRoomList = new ArrayList<>();\n try {\n connection = DBManager.getConnection();\n preparedStatement = connection.prepareStatement(Requests.SELECT_FROM_USER_ROOM);\n rs = preparedStatement.executeQuery();\n while (rs.next()) {\n userRoomList.add(myResultSet(rs));\n }\n } catch (SQLException sqlException) {\n Logger.getLogger(sqlException.getMessage());\n } finally {\n closing(connection, preparedStatement, rs);\n }\n logger.info(\"Completed getUserRoomList\");\n return userRoomList;\n }",
"public ArrayList getRooms();",
"public ChatRoom[] getChatRooms();",
"public List<Room> getAllRooms(){\n\n List<Room> rooms = null;\n\n EntityManager entityManager = getEntityManagerFactory().createEntityManager();\n entityManager.getTransaction().begin();\n\n try{\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<Room> roomCriteriaQuery = criteriaBuilder.createQuery(Room.class);\n Root<Room> roomsRoot = roomCriteriaQuery.from(Room.class);\n\n roomCriteriaQuery.select(roomsRoot);\n\n rooms = entityManager.createQuery(roomCriteriaQuery).getResultList();\n }\n catch (Exception ex){\n entityManager.getTransaction().rollback();\n }\n finally {\n entityManager.close();\n }\n\n return rooms;\n }",
"@Transactional\r\n\tpublic List<Room> getAllRooms(){\r\n\t\tList<Room> list= new ArrayList<Room>();\r\n\t\tIterable<Room> iterable= this.roomRepository.findAll();\r\n\t\tfor(Room room: iterable)\tlist.add(room);\r\n\t\treturn list;\r\n\t}",
"@GetMapping(path = \"/rooms\")\n public List<Room> findAllRooms() {\n return new ArrayList<>(roomService.findAllRooms());\n }",
"public Rooms getRooms(int i) {\n\t\t\tRooms buff = RoomDetails.get(i);\r\n\t\t\treturn buff;\r\n\t\t}",
"private void setRooms() {\r\n\t\tAccountBean bean = new AccountBean();\r\n\t\tbean.setCf(Session.getSession().getCurrUser().getAccount().getCf());\r\n\t\tRoomController ctrl = RoomController.getInstance();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tthis.myRooms=FXCollections.observableArrayList(ctrl.getMyRooms(bean));\r\n\t\t}\r\n\t\tcatch (DatabaseException ex1) {\r\n\t\t\tJOptionPane.showMessageDialog(null,ex1.getMessage(),ERROR, JOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public ArrayList<CalendarRoom> getRooms(String sType) throws IllegalStateException, JiBXException, IOException {\r\n\r\n\tif (null==sSecurityToken) throw new IllegalStateException(\"Not connected to calendar service\");\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sBaseURL+\"?command=getRooms&token=\"+sSecurityToken+\"&type=\"+sType);\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.oRooms;\r\n } else {\r\n return null;\r\n }\r\n }",
"Collection<Room> getRooms() throws DataAccessException;",
"public List<Room> getByRoomType(String roomType){\r\n\t\tif(userService.adminLogIn||userService.loggedIn) {\r\n\t\t\tList<Optional<Room>> room=new ArrayList<>();\r\n\t\t\troom=roomRepository.findByRoomType(roomType);\r\n\t\t\tif (room.size()==0) {\r\n\t\t\t\tthrow new RoomTypeNotFoundException(\"Room type not available\");\r\n\t\t\t} else {\r\n\t\t\t\tList<Room> newRoom=new ArrayList<Room>();\r\n\t\t\t\tfor(Optional r:room) {\r\n\t\t\t\t\tnewRoom.add((Room) r.get());\r\n\t\t\t\t}\r\n\t\t\t\treturn newRoom;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new UserNotLoggedIn(\"you are not logged in!!\");\r\n\t\t}\r\n\t\t\r\n\t}",
"public List<Room> getRooms() {\n return rooms;\n }",
"public void populateRooms(){\n }",
"@GetMapping(\"/chat-rooms\")\n public List<ChatRoom> getAllChatRooms() {\n log.debug(\"REST request to get all ChatRooms\");\n return chatRoomRepository.findAll();\n }",
"private List<String> getEmptyRoomsFromResultSet(ResultSet emptyQueryResults) {\n ArrayList<String> rooms = new ArrayList<String>();\n boolean hasNext = emptyQueryResults.next();\n while(hasNext) {\n String room = emptyQueryResults.getString(\"r1.roomid\");\n rooms.add(room);\n hasNext = emptyQueryResults.next();\n }\n return rooms;\n}",
"protected ArrayList<Long> getRoomMembers() {\n\treturn roomMembers;\n }",
"private List<String> retrieveObjectsInRoom(Room room) {\n List<String> retirevedInRoom = new ArrayList<>();\n for (String object : room.getObjects()) {\n if (wantedObjects.contains(object)) {\n retirevedInRoom.add(object);\n }\n }\n return retirevedInRoom;\n }",
"@GetMapping\n public RoomsDto getRooms() {\n return roomsFacade.findRooms();\n }",
"public void getAllSingleRoom() {\n\t\t for(SuiteRoom elem: suiteroom)\n\t {\n\t \t System.out.println (\"capacité : \" +elem.getCapacity());\n\t \t System.out.println (\"prix : \" +elem.getPrice());\n\t \t System.out.println (\"numéro : \" +elem.getIdRoom());\n\t \t System.out.println (\"nom : \" +elem.getName());\n\t \tSystem.out.println (\"-------------------\");\n\t \t \n\t }\n\t}",
"@CrossOrigin \n\t@GetMapping(\"/all/{building}\")\n\tpublic List<Room> getRooms(@PathVariable String building) {\n\t\tList<Room> returned = new ArrayList<>();\t\t\n\t\tfor (Room room : roomDB)\n\t\t\tif (room.getBuilding().equals(building))\n\t\t\t\treturned.add(room);\n\t\treturn returned;\n\t}",
"public Set<Room> getRooms() {\n return rooms;\n }",
"public ArrayList<CalendarRoom> getAvailableRooms(Date dtFrom, Date dtTo, String sType)\r\n \tthrows IllegalStateException, JiBXException, IOException {\r\n\r\n\tif (null==sSecurityToken) throw new IllegalStateException(\"Not connected to calendar service\");\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sBaseURL+\"?command=getAvailableRooms&token=\"+sSecurityToken+\"&type=\"+sType+\"&startdate=\"+oFmt.format(dtFrom)+\"&enddate=\"+oFmt.format(dtTo));\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.oRooms;\r\n } else {\r\n return null;\r\n }\r\n }",
"@Override\r\n\tpublic List<DtoStudentDetail> getMultipleUserChatRequestDetailsByTutorChatSessions(List<TutorChatSessions> tutorChatSessions) {\r\n\t\tList<DtoStudentDetail> dtoStudentDetailList = new ArrayList<DtoStudentDetail>();\r\n\t\tfor (TutorChatSessions tutorChatSessions2 : tutorChatSessions) {\r\n\t\t\tDtoStudentDetail dtoStudentDetail = new DtoStudentDetail();\r\n\t\t\t\r\n\t\t\t// need to write different method for customer support diffrent role chat\r\n\t\t\t\r\n\t\t\tif(tutorChatSessions2.getStudentProfileDetail()!=null){\r\n\t\t\t\tdtoStudentDetail.setFirstName(tutorChatSessions2.getStudentProfileDetail().getFirst_Name()); \r\n\t\t\t\tdtoStudentDetail.setLastName(Character.toUpperCase(tutorChatSessions2.getStudentProfileDetail().getLast_Name().charAt(0))+\".\");\r\n\t\t\t\tdtoStudentDetail.setUserProfileId(tutorChatSessions2.getStudentProfileDetail().getStudent_Profile_Id());\r\n\t\t\t\tdtoStudentDetail.setUserId(tutorChatSessions2.getStudentProfileDetail().getUser().getUser_Id());\r\n\t\t\t\tdtoStudentDetail.setChatSessionId(tutorChatSessions2.getTutor_chat_Id());\r\n\t\t\t\tdtoStudentDetail.setLoginStatus(tutorChatSessions2.getStudentProfileDetail().getUser().getLogin_status());\r\n\t\t\t\tdtoStudentDetail.setFullName(tutorChatSessions2.getStudentProfileDetail().getFirst_Name()+\" \"+Character.toUpperCase(tutorChatSessions2.getStudentProfileDetail().getLast_Name().charAt(0))+\".\");\r\n\t\t\t\tdtoStudentDetail.setEmail(tutorChatSessions2.getStudentProfileDetail().getUser().getUsername());\r\n\t\t\t\tdtoStudentDetail.setCountry(tutorChatSessions2.getStudentProfileDetail().getCountryMaster().getCountry_Name());\r\n\t\t\t\tdtoStudentDetail.setAllUserChatStatus(tutorChatSessions2.getStudent_chat_status());\r\n\t\t\t\tdtoStudentDetail.setReadByUSer(tutorChatSessions2.getRead_by_student());\r\n\t\t\t\tdtoStudentDetail.setUserRole(\"Student\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(tutorChatSessions2.getTutorProfileDetail()!=null){\r\n\t\t\t\tdtoStudentDetail.setFirstName(tutorChatSessions2.getTutorProfileDetail().getFirst_Name()); \r\n\t\t\t\tdtoStudentDetail.setLastName(Character.toUpperCase(tutorChatSessions2.getTutorProfileDetail().getLast_Name().charAt(0))+\".\");\r\n\t\t\t\tdtoStudentDetail.setUserProfileId(tutorChatSessions2.getTutorProfileDetail().getTutor_Profile_Id());\r\n\t\t\t\tdtoStudentDetail.setUserId(tutorChatSessions2.getTutorProfileDetail().getUser().getUser_Id());\r\n\t\t\t\tdtoStudentDetail.setChatSessionId(tutorChatSessions2.getTutor_chat_Id());\r\n\t\t\t\tdtoStudentDetail.setLoginStatus(tutorChatSessions2.getTutorProfileDetail().getUser().getLogin_status());\r\n\t\t\t\tdtoStudentDetail.setFullName(tutorChatSessions2.getTutorProfileDetail().getFirst_Name()+\" \"+Character.toUpperCase(tutorChatSessions2.getTutorProfileDetail().getLast_Name().charAt(0))+\".\");\r\n\t\t\t\tdtoStudentDetail.setEmail(tutorChatSessions2.getTutorProfileDetail().getUser().getUsername());\r\n\t\t\t\tdtoStudentDetail.setCountry(tutorChatSessions2.getTutorProfileDetail().getCountryMaster().getCountry_Name());\r\n\t\t\t\tdtoStudentDetail.setAllUserChatStatus(tutorChatSessions2.getTutor_chat_status());\r\n\t\t\t\tdtoStudentDetail.setReadByUSer(tutorChatSessions2.getRead_by_tutor());\r\n\t\t\t\tdtoStudentDetail.setUserRole(\"Tutor\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(tutorChatSessions2.getParentProfileDetail()!=null){\r\n\t\t\t\tdtoStudentDetail.setFirstName(tutorChatSessions2.getParentProfileDetail().getFirstName()); \r\n\t\t\t\tdtoStudentDetail.setLastName(Character.toUpperCase(tutorChatSessions2.getParentProfileDetail().getLastName().charAt(0))+\".\");\r\n\t\t\t\tdtoStudentDetail.setUserProfileId(tutorChatSessions2.getParentProfileDetail().getParent_Id());\r\n\t\t\t\tdtoStudentDetail.setUserId(tutorChatSessions2.getParentProfileDetail().getUser().getUser_Id());\r\n\t\t\t\tdtoStudentDetail.setChatSessionId(tutorChatSessions2.getTutor_chat_Id());\r\n\t\t\t\tdtoStudentDetail.setLoginStatus(tutorChatSessions2.getParentProfileDetail().getUser().getLogin_status());\r\n\t\t\t\tdtoStudentDetail.setFullName(tutorChatSessions2.getParentProfileDetail().getFirstName()+\" \"+Character.toUpperCase(tutorChatSessions2.getParentProfileDetail().getLastName().charAt(0))+\".\");\r\n\t\t\t\tdtoStudentDetail.setEmail(tutorChatSessions2.getParentProfileDetail().getUser().getUsername());\r\n\t\t\t\tdtoStudentDetail.setCountry(tutorChatSessions2.getParentProfileDetail().getCountryMaster().getCountry_Name());\r\n\t\t\t\tdtoStudentDetail.setAllUserChatStatus(tutorChatSessions2.getParent_chat_status());\r\n\t\t\t\tdtoStudentDetail.setReadByUSer(tutorChatSessions2.getRead_by_parent());\r\n\t\t\t\tdtoStudentDetail.setUserRole(\"Parent\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tdtoStudentDetail.setReadBySupport(tutorChatSessions2.getRead_by_support());\r\n\t\t\tdtoStudentDetailList.add(dtoStudentDetail);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn dtoStudentDetailList;\r\n\t}",
"@Test\r\n\tpublic void testGetRooms() {\r\n\t\tassertEquals(rooms, breaku1.getRooms());\r\n\t\tassertEquals(rooms, externu1.getRooms());\r\n\t\tassertEquals(rooms, meetingu1.getRooms());\r\n\t\tassertEquals(rooms, teachu1.getRooms());\r\n\t}",
"@GetMapping(value = \"user/{userId}\", produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<List<Room>> getRooms(@PathVariable int userId) {\n Set<String> roomIds = roomsRepository.getUserRoomIds(userId);\n if (roomIds == null) {\n return new ResponseEntity<>(HttpStatus.BAD_REQUEST);\n }\n List<Room> rooms = new ArrayList<>();\n\n for (String roomId : roomIds) {\n boolean roomExists = roomsRepository.isRoomExists(roomId);\n if (roomExists){\n String name = roomsRepository.getRoomNameById(roomId);\n if (name == null) {\n // private chat case\n Room privateRoom = handlePrivateRoomCase(roomId);\n if (privateRoom == null){\n return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);\n }\n rooms.add(privateRoom);\n } else {\n rooms.add(new Room(roomId, name));\n }\n }\n }\n return new ResponseEntity<>(rooms, HttpStatus.OK);\n }",
"public AsyncResult<List<ChatRoom>> discoverRooms() {\r\n return serviceDiscoveryManager.discoverItems(serviceAddress).thenApply(itemNode -> {\r\n List<ChatRoom> chatRooms = new ArrayList<>();\r\n for (Item item : itemNode.getItems()) {\r\n ChatRoom chatRoom = new ChatRoom(item.getJid(), item.getName(), xmppSession, serviceDiscoveryManager, multiUserChatManager);\r\n chatRoom.initialize();\r\n chatRooms.add(chatRoom);\r\n }\r\n return chatRooms;\r\n });\r\n }",
"private void updateRooms(DataSnapshot roomsSnap) {\n // assuming there will not be many rooms that show up on the user's page setting to\n // an empty HashTable each time there's a change will not disrupt performance much.\n rooms.clear();\n for (DataSnapshot roomSnap : roomsSnap.getChildren()) {\n // adds the roomID and room to\n String roomID = roomSnap.getKey();\n Room room = roomSnap.getValue(Room.class);\n rooms.put(roomID, room);\n }\n\n if (rooms.size() == 0) {\n String noActiveRoomsText = \"No active rooms in this area. Please check again later.\";\n Toast.makeText(this, noActiveRoomsText, Toast.LENGTH_SHORT).show();\n }\n\n // Populates the join room ListView with all the appropriate room informatoin\n RoomAdapter roomAdapter = new RoomAdapter(this, rooms);\n roomList.setAdapter(roomAdapter);\n }",
"@Override\n\tpublic List<Room> getAll() {\n\t\tArrayList<Room> list = new ArrayList<>();\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tlist.add(new Room(rs.getInt(1), rs.getInt(2)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new ArrayList<Room>();\n\t}",
"private void displayListOfRooms() {\n DatabaseReference roomsRef = FirebaseDatabase.getInstance().getReference(\"Rooms\");\n\n roomsRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // update rooms every time there's a change\n updateRooms(dataSnapshot);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }",
"public List<Room> getRooms(){\n ArrayList<Room> returnedList = (ArrayList<Room>) rooms;\n return (ArrayList<Room>) returnedList.clone();\n }",
"public ArrayList<Room> getRooms() {\n return rooms;\n }",
"public void displayroomsinfo(boolean reserved , int roomtype){\n String query = \" SELECT Roomno , RoomtypeID , Hotelid\"\n + \" FROM Rooms \"\n + \" WHERE Reserved = ? and RoomtypeID = ? \"; \n String status , Roomtype ;\n Room room ;\n if(reserved == true){status = \"Reserved\" ;}\n else{status = \"Empty\";}\n if(roomtype == 1){\n Roomtype = \"Single Room\" ;\n room = new singleRoom();\n }\n else{\n Roomtype = \"Double Room\";\n room = new doubleRoom();\n }\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n Query.setBoolean(1 ,reserved);\n Query.setInt(2,roomtype);\n ResultSet rs = Query.executeQuery();\n \n List<String> lst = new ArrayList<>() ;\n while(rs.next()){ \n \n String str = \" RoomNo: \" + rs.getInt(\"Roomno\") + \" Status: \"+ status +\" RoomType: \"+ Roomtype + \" Hotel ID: \" + rs.getInt(\"Hotelid\") +\"\\n\"; \n lst.add(str);\n }\n room.setinfo(lst);\n \n \n \n \n } catch (SQLException ex) {\n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }",
"public Stream<Long> members() {\n\treturn roomMembers.stream();\n }",
"@Override\r\n\tpublic void OnRoomListNotify(List<stRoomInfo> roomlist) {\n\t\tString roomsID[] = new String[roomlist.size()];\r\n\t\tint roomsType[] = new int[roomlist.size()];\r\n\t\tint counts[] = new int[roomlist.size()];\r\n\t\tint j = 0;\r\n\t\tfor (Iterator<stRoomInfo> i = roomlist.iterator(); i.hasNext();)\r\n\t\t{ \r\n\t\t\tstRoomInfo userinfoRef = i.next(); \r\n\t\t\troomsID[j] = String.valueOf(userinfoRef.getRoomid());\r\n\t\t\troomsType[j] = userinfoRef.getRoomtype().ordinal();\r\n\t\t\tcounts[j] = userinfoRef.getNum();\r\n\t\t\tj++;\r\n\t\t} \r\n\t\t\r\n\t\tRoomListResult(roomsID,roomsType,counts);\r\n\t\t\t\r\n\t}",
"public List<User> getStudents(Group currentGroup);",
"@Override\n\tpublic List<RoomInterface> getRooms() {\n\t\treturn rooms;\n\t}",
"@GET\n @Produces(\"application/json\")\n public static List<CRoom> roomAll() {\n return (List<CRoom>) sCrudRoom.findWithNamedQuery(CRoom.FIND_ROOM_BY_ALL);\n }",
"public List<String> listRoomsNames() {\n return chatRooms.stream().map(ChatRoom::getChatName).collect(Collectors.toList());\n }",
"public interface RoomDaoCustom {\n\n /**\n * @return the list of rooms whose light is on\n */\n List<Room> listWithLightOn();\n\n /**\n * @return the list of rooms whose light is off\n */\n List<Room> listWithLightOff();\n\n /**\n * @return the list of rooms whose ringer is on\n */\n List<Room> listWithRingerOn();\n\n /**\n * @return the list of rooms whose ringer is off\n */\n List<Room> listWithRingerOff();\n}",
"@Override\n public List<Room> findAll() {\n return roomRepository.findAll();\n }",
"public static void showAllRoomNotDuplicate(){\n showAllNameNotDuplicate(FuncGeneric.EntityType.ROOM);\n }",
"public ArrayList<RoomList> getRoomList() {\r\n return RoomList;\r\n }",
"@GetMapping(\"/listRoom\")\r\n\tpublic String listRooms(Model theModel) {\n\t\tList<Room> theRooms = roomService.findAll();\r\n\t\t\r\n\t\t// add to the spring model\r\n\t\ttheModel.addAttribute(\"rooms\", theRooms);\r\n\t\t\r\n\t\treturn \"/rooms/list-rooms\";\r\n\t}",
"@Override\n\tpublic List<StreamDTO> getStreamList() throws DataNotFoundException, DatabaseException {\n\t\tConnection con = DbUtil.getConnection();\n\t\tStudentRegistrationValidationDaoi studentRegistrationValidationDaoi=new StudentRegistrationValidationDaoimpl();\n\t\tList<StreamDTO> sttreamDTOs=studentRegistrationValidationDaoi.getStreamList(con);\n\t\tDbUtil.closeConnection(con);\n\t\treturn sttreamDTOs;\n\t}",
"private static void performRoomManagement() {\n\t\t\r\n\t\t\r\n\r\n\t}",
"HouseAndRoom getHouseAndRoom(String username, long houseId);",
"public List<UserGroup> GetActiveGroups() {\n/* 44 */ return this.userDal.GetActiveGroups();\n/* */ }",
"public ArrayList<CalendarRoom> getAvailableRooms(Date dtFrom, Date dtTo)\r\n \tthrows IllegalStateException, JiBXException, IOException {\r\n\r\n\tif (null==sSecurityToken) throw new IllegalStateException(\"Not connected to calendar service\");\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sBaseURL+\"?command=getAvailableRooms&token=\"+sSecurityToken+\"&startdate=\"+oFmt.format(dtFrom)+\"&enddate=\"+oFmt.format(dtTo));\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.oRooms;\r\n } else {\r\n return null;\r\n }\r\n }",
"List<Room> selectRoomList(@Param(\"building\") String building);",
"public List<Room> getCurrentRooms() {\n return currentRooms;\n }",
"@Override\r\n\tpublic List<GroupBeds> query(GroupBeds bean) {\n\t\treturn null;\r\n\t}",
"public List<Group> getUserInfoGroups(User user);",
"List<PingableUser> getPingableUsers(int roomId) throws IOException;",
"public ArrayList<Session> getSessionList(){\n \n ArrayList<Session> sessionList= new ArrayList<Session>(); \n Connection connection=getConnection();\n \n String studentGroup = combo_studentGroup.getSelectedItem().toString();\n\n String query= \"SELECT `SessionId`,`Tag`,`StudentGroup`,`Subject`,`NoOfStudents`,`SessionDuration` FROM `sessions` WHERE StudentGroup='\"+studentGroup+\"' \";\n Statement st;\n ResultSet rs;\n\n try{\n st = connection.createStatement();\n rs= st.executeQuery(query);\n Session session;\n while(rs.next()){\n session = new Session(rs.getInt(\"SessionId\"),rs.getString(\"Tag\"),rs.getString(\"StudentGroup\"),rs.getString(\"Subject\"),rs.getInt(\"NoOfStudents\"),rs.getInt(\"SessionDuration\"));\n sessionList.add(session);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return sessionList; \n }",
"@Override\r\n public List<Registration> getRegistrationList(Long doctorId, Registration.Status stuats) {\n Doctor doctor = doctorDao.getOne(doctorId);\r\n List<Registration> registrationList;\r\n if (doctor.getDoctorType() == Doctor.Doctor_Type.Clinic_Boss) {\r\n List<Long> doctorList = Lists.newArrayList();\r\n doctorDao.findDocAndSubDoctorPage(doctorId).forEach(doc -> doctorList.add(doc.getId()));\r\n\r\n registrationList = registrationDao.findByDoctorIdAndStatusOrderByCreateOn(doctorList, stuats, DateUtils.getDayEndMaxTime());\r\n } else {\r\n registrationList = registrationDao.findByDoctorIdAndStatusOrderByCreateOn(doctorId, stuats, DateUtils.getDayEndMaxTime());\r\n }\r\n //现场挂号List\r\n List<Registration> localeRegList = Lists.newArrayList();\r\n //正在叫号微信List\r\n List<Registration> nowCallList = Lists.newArrayList();\r\n //已经过号微信List\r\n List<Registration> passWxList = Lists.newArrayList();\r\n //排队中微信List\r\n List<Registration> paiDuiWxList = Lists.newArrayList();\r\n\r\n long nowDate = new Date().getTime();\r\n registrationList.forEach(registration -> {\r\n //如果是微信排队\r\n if (registration.getRegistrationType() == Registration.RegistrationTypeEnum.WECHAT) {\r\n // 开始时间 >=现在 && 结束时间 <=现在 说明是 正在叫号队列\r\n if (registration.getCreateOn().getTime() <= nowDate && registration.getCompleteOn().getTime() >= nowDate) {\r\n nowCallList.add(registration);\r\n } else //开始时间 <现在 说明还没到预约时间 进入正常排队队列\r\n if (registration.getCreateOn().getTime() > nowDate) {\r\n paiDuiWxList.add(registration);\r\n } else //结束时间已经小于现在时间 说明 微信预约已经过号 进入过号队列\r\n if (registration.getCompleteOn().getTime() < nowDate) {\r\n passWxList.add(registration);\r\n }\r\n //如果是现场挂号\r\n } else {\r\n localeRegList.add(registration);\r\n }\r\n });\r\n // 微信排队和现场排队进行时间排序\r\n paiDuiWxList.addAll(localeRegList);\r\n paiDuiWxList.addAll(passWxList);\r\n paiDuiWxList.sort((o1, o2) -> {\r\n if (o1.getCreateOn().getTime() <= o2.getCreateOn().getTime()) {\r\n return -1;\r\n }\r\n return 0;\r\n });\r\n\r\n// nowCallList.addAll(passWxList);\r\n nowCallList.addAll(paiDuiWxList);\r\n\r\n return nowCallList.size() > 12 ? nowCallList.subList(0, 12) : nowCallList;\r\n }",
"Room getRoom();",
"Room getRoom();",
"public List<Integer> getBookedRooms(Date fromDate, Date toDate)\r\n {\r\n String fDate = DateFormat.getDateInstance(DateFormat.SHORT).format(fromDate);\r\n String tDate = DateFormat.getDateInstance(DateFormat.SHORT).format(toDate);\r\n \r\n List<Integer> bookedRooms = new LinkedList<>();\r\n \r\n Iterator<Booking> iter = bookings.iterator();\r\n \r\n while(iter.hasNext())\r\n {\r\n Booking booking = iter.next();\r\n String bookingFromDate = DateFormat.getDateInstance(DateFormat.SHORT).format\r\n (booking.getFromDate());\r\n \r\n String bookingToDate = DateFormat.getDateInstance(DateFormat.SHORT).format\r\n (booking.getToDate());\r\n \r\n if(!booking.getCancelled() && !(fDate.compareTo(bookingToDate) == 0) \r\n && fDate.compareTo(bookingToDate) <= 0 &&\r\n bookingFromDate.compareTo(fDate) <= 0 && bookingFromDate.compareTo(tDate) <= 0)\r\n { \r\n List<Integer> b = booking.getRoomNr();\r\n bookedRooms.addAll(b);\r\n }\r\n }// End of while\r\n \r\n return bookedRooms;\r\n }",
"public void chat_list() {\n\n synchronized(chat_room) {\n Set chat_room_set = chat_room.keySet();\n Iterator iter = chat_room_set.iterator();\n\n clearScreen(client_PW);\n client_PW.println(\"------------Chat Room List-----------\");\n while(iter.hasNext()) {\n client_PW.println(iter.next());\n }\n client_PW.flush();\n }\n }",
"List<Group> getGroups();",
"List<ExamRoom> selectAll();",
"private ArrayList<Room> createRooms() {\n //Adding starting position, always rooms(index0)\n\n rooms.add(new Room(\n \"Du sidder på dit kontor. Du kigger på uret og opdager, at du er sent på den. WTF! FISKEDAG! Bare der er fiskefilet tilbage, når du når kantinen. Du må hellere finde en vej ud herfra og hen til kantinen.\",\n false,\n null,\n null\n ));\n\n //Adding offices to <>officerooms, randomly placed later \n officeRooms.add(new Room(\n \"Du bliver kort blændet af en kontorlampe, som peger lige mod døråbningen. Du ser en gammel dame.\",\n false,\n monsterList.getMonster(4),\n itemList.getItem(13)\n ));\n\n officeRooms.add(new Room(\n \"Der er ingen i rummet, men rodet afslører, at det nok er Phillipas kontor.\",\n false,\n null,\n itemList.getItem(15)\n ));\n\n officeRooms.add(new Room(\n \"Du vader ind i et lokale, som er dunkelt oplyst af små, blinkende lamper og har en stank, der siger så meget spar fem, at det kun kan være IT-lokalet. Du når lige at høre ordene \\\"Rick & Morty\\\".\",\n false,\n monsterList.getMonster(6),\n itemList.getItem(7)\n ));\n\n officeRooms.add(new Room(\n \"Det var ikke kantinen det her, men hvorfor er der så krummer på gulvet?\",\n false,\n null,\n itemList.getItem(1)\n ));\n\n officeRooms.add(new Room(\n \"Tine sidder ved sit skrivebord. Du kan se, at hun er ved at skrive en lang indkøbsseddel. Hun skal nok have gæster i aften.\",\n false,\n monsterList.getMonster(0),\n itemList.getItem(18)\n ));\n\n officeRooms.add(new Room(\n \"Du træder ind i det tekøkken, hvor Thomas plejer at opholde sig. Du ved, hvad det betyder!\",\n false,\n null,\n itemList.getItem(0)\n ));\n\n officeRooms.add(new Room(\n \"Du går ind i det nok mest intetsigende rum, som du nogensinde har set. Det er så intetsigende, at der faktisk ikke er mere at sige om det.\",\n false,\n monsterList.getMonster(1),\n itemList.getItem(9)\n ));\n\n //Adding copyrooms to <>copyrooms, randomly placed later \n copyRooms.add(new Room(\n \"Døren knirker, som du åbner den. Et kopirum! Det burde du have set komme. Især fordi det var en glasdør.\",\n false,\n null,\n itemList.getItem(19)\n ));\n\n copyRooms.add(new Room(\n \"Kopimaskinen summer stadig. Den er åbenbart lige blevet færdig. Du går nysgerrigt over og kigger på alle de udskrevne papirer.\",\n false,\n null,\n itemList.getItem(12)\n ));\n\n //Adding restrooms to <>restrooms, randomly placed later \n restRooms.add(new Room(\n \"Ups! Dametoilettet. Der hænger en klam stank i luften. Det må være Ruth, som har været i gang.\",\n false,\n null,\n itemList.getItem(5)\n ));\n\n restRooms.add(new Room(\n \"Pedersen er på vej ud fra toilettet. Han vasker ikke fingre! Slut med at give ham hånden.\",\n false,\n monsterList.getMonster(7),\n itemList.getItem(11)\n ));\n\n restRooms.add(new Room(\n \"Du kommer ind på herretoilettet. Du skal simpelthen tisse så meget, at fiskefileterne må vente lidt. Du åbner toiletdøren.\",\n false,\n monsterList.getMonster(2),\n null\n ));\n\n restRooms.add(new Room(\n \"Lisette står og pudrer næse på dametoilettet. Hvorfor gik du herud?\",\n false,\n monsterList.getMonster(8),\n itemList.getItem(14)\n ));\n\n //Adding meetingrooms to<>meetingrooms, randomly placed later\n meetingRooms.add(new Room(\n \"Du træder ind i et lokale, hvor et vigtigt møde med en potentiel kunde er i gang. Du bliver nødt til at lade som om, at du er en sekretær.\",\n false,\n monsterList.getMonster(9),\n itemList.getItem(6)\n ));\n\n meetingRooms.add(new Room(\n \"Mødelokalet er tomt, men der står kopper og service fra sidste møde. Sikke et rod!\",\n false,\n null,\n itemList.getItem(3)\n ));\n\n meetingRooms.add(new Room(\n \"Projektgruppen sidder i mødelokalet. Vil du forsøge at forsinke dem i at nå fiskefileterne i kantinen?\",\n false,\n monsterList.getMonster(10),\n itemList.getItem(2)\n ));\n\n //Adding specialrooms to<>specialrooms, randomly placed later\n specialRooms.add(new Room(\n \"Du vader ind på chefens kontor. På hans skrivebord sidder sekretæren Phillipa.\",\n false,\n monsterList.getMonster(5),\n itemList.getItem(8)\n ));\n\n specialRooms.add(new Room(\n \"Det her ligner øjensynligt det kosteskab, Harry Potter boede i.\",\n false,\n monsterList.getMonster(3),\n itemList.getItem(4)\n ));\n\n specialRooms.add(new Room(\n \"OMG! Hvad er det syn?! KANTINEN!! Du klarede det! Du skynder dig op i køen lige foran ham den arrogante fra din afdeling. Da du når frem til fadet er der kun 4 fiskefileter tilbage. Du snupper alle 4!\",\n true,\n null,\n null\n ));\n\n //Adding rooms(Inde1-5)\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n addMeetingRoom(rooms, meetingRooms);\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n\n //Adding rooms(Inde6-10)\n addMeetingRoom(rooms, meetingRooms);\n addCopyRoom(rooms, copyRooms);\n addRestRoom(rooms, restRooms);\n addOfficeRoom();\n addCopyRoom(rooms, copyRooms);\n\n //Adding rooms(Inde11-15)\n addOfficeRoom();\n addSpecialRoom(rooms, specialRooms);\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n addOfficeRoom();\n\n //Adding rooms(Inde16-19)\n addOfficeRoom();\n addSpecialRoom(rooms, specialRooms);\n addSpecialRoom(rooms, specialRooms);\n addMeetingRoom(rooms, meetingRooms);\n\n return rooms;\n }",
"public ResultSet getAllRooms() {\r\n\r\n try {\r\n\r\n SQL = \"SELECT * FROM ROOMS;\";\r\n rs = stmt.executeQuery(SQL);\r\n return rs;\r\n\r\n } catch (SQLException err) {\r\n\r\n System.out.println(err.getMessage());\r\n return null;\r\n\r\n }\r\n\r\n }",
"public List<Room> selectAll() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\treturn session.createCriteria(Room.class).list();\n\n\t}",
"private void createRooms()//refactored\n {\n currentRoom = RoomCreator.buildCurrentRooms();//new\n }",
"List<Room> findByUserIdAndYn(Long userId, Integer yn);",
"java.util.List<java.lang.Long> getParticipantsList();",
"@SuppressWarnings(\"unused\")\n\t@Override\n\tpublic MailRoom getBeanObject(Map<String, Object> map, String type,MailRoom mailroom) \n\t{\n\t\tString status = (String) map.get(\"status\");\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\t\tCustomDateEditor editor = new CustomDateEditor(sdf, true);\n\n\t\tString mailboxDt = (String) map.get(\"mailboxDt\");\n\t\tString[] mailboxDate = mailboxDt.split(\"T\");\n\t\tjava.util.Date mailboxDates = null;\n\t\ttry \n\t\t{\n\t\t\tmailboxDates = sdf.parse(mailboxDate[0] + \" \" + mailboxDate[1]);\n\t\t}\n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString userName = (String) SessionData.getUserDetails().get(\"userID\");\n\t\tBfmLogger.logger.info(\"UserName From Session Are:\" + userName);\n\t\tif (type.equals(\"update\")) \n\t\t{\n\t\t\tif (status.equals(\"Mail_Received\")) \n\t\t\t{\n\t\t\t\tmailroom.setMlrId((int) map.get(\"mlrId\"));\n\t\t\t\tint id = (Integer) map.get(\"propertyId\");\n\t\t\t\tmailroom.setPropertyId(id);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tString addTo = (String)map.get(\"addressedTo\");\n\t\t\t\tString addTo_trim = addTo.trim();\t\t\t\t\n\t\t\t\tmailroom.setAddressedTo(addTo_trim);\n\t\t\t\t\n\t\t\t\tString addFrom = (String)map.get(\"addressedFrom\");\n\t\t\t\tString addFrom_trim = addFrom.trim();\t\t\t\t\n\t\t\t\tmailroom.setAddressedFrom(addFrom_trim);\n\t\t\t\t\n\t\t\t\tmailroom.setMailboxDt(ConvertDate.formattedDate(map.get(\"mailboxDt\").toString()));\n\t\t\t\tmailroom.setStatus((String) map.get(\"status\"));\n\t\t\t\tmailroom.setReceivedBy((String) map.get(\"receivedBy\"));\n\t\t\t\tmailroom.setCreatedBy(userName);\n\t\t\t\tmailroom.setLastUpdatedBy(userName);\n\t\t\t\tmailroom.setDrGroupId((int)map.get(\"drGroupId\"));\n\t\t\t\tmailroom.setConsignmentNo((String) map.get(\"consignmentNo\"));\n\t\t\t\tmailroom.setLastUpdatedDt(new Timestamp(new Date().getTime()));\n\t\t\t\tlogger.info(\"UPDATED INSIDE IMPL\");\n\t\t\t}\n\t\t\treturn mailroom;\n\t\t}\n\t\telse if (type.equals(\"save\")) \n\t\t{\n\t\t\tif (map.get(\"property_No\") != null) \n\t\t\t{\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\tlogger.info(dateFormat.format(date));\n\n\t\t\t\tString propNo = (String) map.get(\"property_No\");\n\t\t\t\tmailroom.setPropertyId(Integer.parseInt(propNo));\n\t\t\t\t\n\t\t\t\tString addTo = (String)map.get(\"addressedTo\");\n\t\t\t\tString addTo_trim = addTo.trim();\t\t\t\t\n\t\t\t\tmailroom.setAddressedTo(addTo_trim);\n\t\t\t\t\n\t\t\t\tString addFrom = (String)map.get(\"addressedFrom\");\n\t\t\t\tString addFrom_trim = addFrom.trim();\t\t\t\t\n\t\t\t\tmailroom.setAddressedFrom(addFrom_trim);\n\t\t\t\t\n\t\t\t\tmailroom.setMailboxDt(ConvertDate.formattedDate(map.get(\"mailboxDt\").toString()));\n\t\t\t\tmailroom.setStatus((String) map.get(\"status\"));\n\t\t\t\tmailroom.setReceivedBy((String) map.get(\"receivedBy\"));\n\t\t\t\tmailroom.setCreatedBy(userName);\n\t\t\t\tmailroom.setLastUpdatedBy(userName);\n\t\t\t\tmailroom.setLastUpdatedDt(new Timestamp(new Date().getTime()));\n\n\t\t\t\tString st = (String) map.get(\"consignmentNo\");\n\t\t\t\tif (st != \"\") \n\t\t\t\t{\n\t\t\t\t\tlogger.info(\"VALUE SENT IF\");\n\t\t\t\t\tmailroom.setConsignmentNo((String) map.get(\"consignmentNo\"));\n\t\t\t\t\tlogger.info(\"IF\" + (String) map.get(\"consignmentNo\"));\n\t\t\t\t}\n\t\t\t\telse if (st == \"\") \n\t\t\t\t{\n\t\t\t\t\tlogger.info(\"VALUE IS NULL ELSE\");\n\t\t\t\t\tmailroom.setConsignmentNo(null);\n\t\t\t\t\tlogger.info(\"ELSE IF\");\n\t\t\t\t}\n\t\t\t\treturn mailroom;\n\t\t\t} \n\t\t\telse if (map.get(\"property_No\") == null) \n\t\t\t{\n\t\t\t\tmailroom.setPropertyId(0);\n\t\t\t}\n\t\t}\n\t\treturn mailroom;\n\t}",
"@Override\r\n\tpublic List<Room> listAll() throws SQLException {\n\t\treturn null;\r\n\t}",
"private List<? extends Map<String, ?>> getSessions() {\n List<Map<String, String>> list = new ArrayList<Map<String, String>>();\n sessions = MXChatManager.getInstance().getGroupChatSessions();\n for (MXGroupChatSession session : sessions) {\n Map<String, String> map = new HashMap<String, String>();\n map.put(\"topic\", session.getTopic());\n map.put(\"type\", session.isAChat() ? \"Chat\" : \"Meet\");\n\n list.add(map);\n }\n\n return list;\n }",
"List<UserInfo> getUserInfo(int roomId, List<Integer> userIds) throws IOException;",
"@Override\n public List<Room> findRooms(int offset, int limit, String orderBy) throws AppException {\n log.info(\"#findRooms offset = \" + offset + \" limit = \" + limit + \" orderBy = \" + orderBy);\n Connection con = null;\n PreparedStatement ps;\n ResultSet rs;\n List<Room> rooms;\n try {\n con = DataSource.getConnection();\n ps = con.prepareStatement(SELECT_ROOMS);\n log.info(\"orderBy = \" + orderBy);\n switch (orderBy) {\n case(\"price\"):\n ps = con.prepareStatement(SELECT_ROOMS_PRICE);\n break;\n case(\"size\"):\n ps = con.prepareStatement(SELECT_ROOMS_SIZE);\n break;\n case(\"class\"):\n ps = con.prepareStatement(SELECT_ROOMS_CLASS);\n break;\n case(\"status\"):\n ps = con.prepareStatement(SELECT_ROOMS_STATUS);\n }\n int k = 1;\n ps.setInt(k++, limit);\n ps.setInt(k, offset);\n log.info(\"ps = \" + ps);\n rs = ps.executeQuery();\n rooms = new ArrayList<>();\n while (rs.next()) {\n rooms.add(extractRoom(con, rs));\n }\n con.commit();\n log.info(\"rooms = \" + rooms);\n } catch (SQLException e) {\n rollback(con);\n log.error(\"Problem findRooms\");\n throw new AppException(\"Cannot find rooms, try again\");\n } finally {\n close(con);\n }\n return rooms;\n }",
"@Override\r\n\tpublic List<DtoStudentDetail> getAllStudentDetailsByTutorChatSessions(List<TutorChatSessions> tutorChatSessions) {\r\n\t\tList<DtoStudentDetail> dtoStudentDetailList = new ArrayList<DtoStudentDetail>();\r\n\t\tfor (TutorChatSessions tutorChatSessions2 : tutorChatSessions) {\r\n\t\t\tDtoStudentDetail dtoStudentDetail = new DtoStudentDetail();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(tutorChatSessions2.getStudentProfileDetail()!=null){\r\n\t\t\t\tdtoStudentDetail.setFirstName(tutorChatSessions2.getStudentProfileDetail().getFirst_Name()); \r\n\t\t\t\tdtoStudentDetail.setLastName(Character.toUpperCase(tutorChatSessions2.getStudentProfileDetail().getLast_Name().charAt(0))+\".\");\r\n\t\t\t\tdtoStudentDetail.setUserProfileId(tutorChatSessions2.getStudentProfileDetail().getStudent_Profile_Id());\r\n\t\t\t\tdtoStudentDetail.setUserId(tutorChatSessions2.getStudentProfileDetail().getUser().getUser_Id());\r\n\t\t\t\tdtoStudentDetail.setChatSessionId(tutorChatSessions2.getTutor_chat_Id());\r\n\t\t\t\tdtoStudentDetail.setLoginStatus(tutorChatSessions2.getStudentProfileDetail().getUser().getLogin_status());\r\n\t\t\t\tdtoStudentDetail.setFullName(tutorChatSessions2.getStudentProfileDetail().getFirst_Name()+\" \"+Character.toUpperCase(tutorChatSessions2.getStudentProfileDetail().getLast_Name().charAt(0))+\".\");\r\n\t\t\t\tdtoStudentDetail.setStudentChatStatus(tutorChatSessions2.getStudent_chat_status());\r\n\t\t\t\t\r\n\t\t\t\tdtoStudentDetail.setTutorChatStatus(tutorChatSessions2.getTutor_chat_status());\r\n\t\t\t\tdtoStudentDetail.setIsSessionStarted(tutorChatSessions2.getIsSession_started());\r\n\t\t\t//\tdtoStudentDetail.setReadByTutor(tutorChatSessions2.getRead_by_tutor());\r\n\t\t\t\tdtoStudentDetail.setReadByUSer(tutorChatSessions2.getRead_by_student());\r\n\t\t\t\t\r\n\t\t\t\tdtoStudentDetail.setUserRole(\"Student\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(tutorChatSessions2.getSupportProfileDetail()!=null){\r\n\t\t\t\tdtoStudentDetail.setFirstName(tutorChatSessions2.getSupportProfileDetail().getFirst_Name()); \r\n\t\t\t\tdtoStudentDetail.setLastName(Character.toUpperCase(tutorChatSessions2.getSupportProfileDetail().getLast_Name().charAt(0))+\".\");\r\n\t\t\t\tdtoStudentDetail.setUserProfileId(tutorChatSessions2.getSupportProfileDetail().getSupport_Profile_Id());\r\n\t\t\t\tdtoStudentDetail.setUserId(tutorChatSessions2.getSupportProfileDetail().getUser().getUser_Id());\r\n\t\t\t\tdtoStudentDetail.setChatSessionId(tutorChatSessions2.getTutor_chat_Id());\r\n\t\t\t\tdtoStudentDetail.setLoginStatus(tutorChatSessions2.getSupportProfileDetail().getUser().getLogin_status());\r\n\t\t\t\tdtoStudentDetail.setFullName(tutorChatSessions2.getSupportProfileDetail().getFirst_Name()+\" \"+Character.toUpperCase(tutorChatSessions2.getSupportProfileDetail().getLast_Name().charAt(0))+\".\");\r\n\t\t\t\t\r\n\t\t\t\tdtoStudentDetail.setTutorChatStatus(tutorChatSessions2.getTutor_chat_status());\r\n\t\t\t\tdtoStudentDetail.setIsSessionStarted(tutorChatSessions2.getIsSession_started());\r\n\t\t\t\tdtoStudentDetail.setReadByTutor(tutorChatSessions2.getRead_by_tutor());\r\n\t\t\t\t\r\n\t\t\t\tdtoStudentDetail.setUserRole(\"Support\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(tutorChatSessions2.getParentProfileDetail()!=null){\r\n\t\t\t\tdtoStudentDetail.setFirstName(tutorChatSessions2.getParentProfileDetail().getFirstName()); \r\n\t\t\t\tdtoStudentDetail.setLastName(Character.toUpperCase(tutorChatSessions2.getParentProfileDetail().getLastName().charAt(0))+\".\");\r\n\t\t\t\tdtoStudentDetail.setUserProfileId(tutorChatSessions2.getParentProfileDetail().getParent_Id());\r\n\t\t\t\tdtoStudentDetail.setUserId(tutorChatSessions2.getParentProfileDetail().getUser().getUser_Id());\r\n\t\t\t\tdtoStudentDetail.setChatSessionId(tutorChatSessions2.getTutor_chat_Id());\r\n\t\t\t\tdtoStudentDetail.setLoginStatus(tutorChatSessions2.getParentProfileDetail().getUser().getLogin_status());\r\n\t\t\t\tdtoStudentDetail.setFullName(tutorChatSessions2.getParentProfileDetail().getFirstName()+\" \"+Character.toUpperCase(tutorChatSessions2.getParentProfileDetail().getLastName().charAt(0))+\".\");\r\n\t\t\t\tdtoStudentDetail.setStudentChatStatus(tutorChatSessions2.getStudent_chat_status());\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tdtoStudentDetail.setTutorChatStatus(tutorChatSessions2.getTutor_chat_status());\r\n\t\t\t\tdtoStudentDetail.setIsSessionStarted(tutorChatSessions2.getIsSession_started());\r\n\t\t\t\tdtoStudentDetail.setReadByTutor(tutorChatSessions2.getRead_by_tutor());\r\n\t\t\t\t\r\n\t\t\t\tdtoStudentDetail.setUserRole(\"Parent\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tdtoStudentDetailList.add(dtoStudentDetail);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn dtoStudentDetailList;\r\n\t}",
"private List<Room> addRooms() {\n List<Room> rooms = new ArrayList<>();\n int numRooms = RandomUtils.uniform(random, MINROOMNUM, MAXROOMNUM);\n int playerRoomNum = RandomUtils.uniform(random, 0, numRooms);\n for (int i = 0; i < numRooms; i++) {\n rooms.add(addRandomRoom(random));\n if (i == playerRoomNum) {\n setPlayerInitialPosition(rooms, playerRoomNum);\n }\n }\n return rooms;\n }",
"public ArrayList<CalendarMeeting> getMeetingsForRoom(Date dtFrom, Date dtTo, String sNmRoom)\r\n \tthrows IllegalStateException, JiBXException, IOException {\r\n\r\n\tif (null==sSecurityToken) throw new IllegalStateException(\"Not connected to calendar service\");\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sBaseURL+\"?command=getMeetingsForRoom&token=\"+sSecurityToken+\"&startdate=\"+oFmt.format(dtFrom)+\"&enddate=\"+oFmt.format(dtTo)+\"&room=\"+URLEncode(sNmRoom));\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.oMeetings;\r\n } else {\r\n return null;\r\n }\r\n }",
"public ChatRoomTableModel getRoomlist() {\n\t\treturn roomlist;\n\t}",
"@Override\r\n\tpublic Object getIMUserAllChatRooms(String userName) {\n\t\treturn null;\r\n\t}",
"private ArrayList<Room> roomAvailability(LocalDate start, LocalDate end, int small, int medium, int large) {\n ArrayList<Room> availableRooms = new ArrayList<Room>();\n // Iterate for all rooms in the venue\n for (Room room : rooms) {\n // Search the venue's reservations that contain the specified room.\n ArrayList<Reservation> reservationsWithRoom = Reservation.searchReservation(reservations, room);\n // Try to find rooms that fulfil the request.\n switch(room.getSize()) {\n case \"small\":\n // Ignore if no small rooms are needed.\n if (small > 0) {\n // If there no reservations with the room or the reserved dates do not\n // overlap, then add the room sinced it is available.\n if(reservationsWithRoom.size() == 0 ||\n !Reservation.hasDateOverlap(reservationsWithRoom, start, end)) {\n\n availableRooms.add(room);\n small--;\n } \n }\n break;\n\n case \"medium\":\n // Ignore if no medium rooms are needed.\n if (medium > 0) {\n \n if (reservationsWithRoom.size() == 0 ||\n !Reservation.hasDateOverlap(reservationsWithRoom, start, end)) {\n \n availableRooms.add(room);\n medium--;\n }\n }\n break;\n\n case \"large\":\n // Ignore if no large rooms ar eneeded.\n if (large > 0) {\n if (reservationsWithRoom.size() == 0 ||\n !Reservation.hasDateOverlap(reservationsWithRoom, start, end)) {\n \n availableRooms.add(room);\n large--;\n }\n break;\n }\n }\n }\n // A request cannot be fulfilled if there are no rooms available in the venue\n if (small > 0 || medium > 0 || large > 0) {\n \n return null;\n } else {\n return availableRooms;\n }\n }",
"public void allBookings() {\n\t\t\tint i = 0;\r\n\t\t\tint k = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tint roomNum; //Room number\r\n\t\t\tint buffNum; //buff room number\r\n\t\t\tint index = 0; //saves the index of the date stored in the arraylist dateArray\r\n\t\t\tBooking buff; //Booking buffer to use\r\n\t\t\tRooms roomCheck;\r\n\t\t\tArrayList<LocalDate> dateArray = new ArrayList<LocalDate>(); //Saves the booking dates of a room\r\n\t\t\tArrayList<Integer> nights = new ArrayList<Integer>(); //Saves the number of nights a room is booked for\r\n\t\t\t\r\n\t\t\twhile(i < RoomDetails.size()) { //Looping Room Number-wise\r\n\t\t\t\troomCheck = RoomDetails.get(i);\r\n\t\t\t\troomNum = roomCheck.getRoomNum();\r\n\t\t\t\tSystem.out.print(this.Name + \" \" + roomNum);\r\n\t\t\t\twhile(k < Bookings.size()) { //across all bookings\r\n\t\t\t\t\tbuff = Bookings.get(k);\r\n\t\t\t\t\twhile(j < buff.getNumOfRoom()) { //check each booked room\r\n\t\t\t\t\t\tbuffNum = buff.getRoomNumber(j);\r\n\t\t\t\t\t\tif(buffNum == roomNum) { //If a booking is found for a specific room (roomNum)\r\n\t\t\t\t\t\t\tdateArray.add(buff.getStartDate()); //add the date to the dateArray\r\n\t\t\t\t\t\t\tCollections.sort(dateArray); //sort the dateArray\r\n\t\t\t\t\t\t\tindex = dateArray.indexOf(buff.getStartDate()); //get the index of the newly add date\r\n\t\t\t\t\t\t\tnights.add(index, buff.getDays()); //add the number of nights to the same index as the date\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tj++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tk++;\r\n\t\t\t\t\tj=0;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t\tprintOccupancy(dateArray, nights); //print the occupancy of the room\r\n\t\t\t\tk=0;\r\n\t\t\t\tdateArray.clear(); //cleared to be used again\r\n\t\t\t\tnights.clear(); //cleared to be used again\r\n\t\t\t}\r\n\t\t}",
"private void twoDateOccupancyQuery(String startDate, String endDate){\n List<String> emptyRooms = findEmptyRoomsInRange(startDate, endDate);\n List<String> fullyOccupiedRooms = findOccupiedRoomsInRange(startDate, endDate, emptyRooms);\n List<String> partiallyOccupiedRooms = \n (generateListOfAllRoomIDS().removeAll(emptyRooms)).removeAll(fullyOccupiedRooms);\n\n occupancyColumns = new Vector<String>();\n occupancyData = new Vector<Vector<String>>();\n occupancyColumns.addElement(\"RoomId\");\n occupancyColumns.addElement(\"Occupancy Status\");\n\n for(String room: emptyRooms) {\n Vector<String> row = new Vector<String>();\n row.addElement(room);\n row.addElement(\"Empty\");\n occupancyData.addElement(row);\n }\n for(String room: fullyOccupiedRooms) {\n Vector<String> row = new Vector<String>();\n row.addElement(room);\n row.addElement(\"Fully Occupied\");\n occupancyData.addElement(row);\n }\n for(String room: partiallyOccupiedRooms) {\n Vector<String> row = new Vector<String>();\n row.addElement(room);\n row.addElement(\"Partially Occupied\");\n occupancyData.addElement(row);\n }\n return;\n}",
"public List<EntradaDeMaterial> buscarEntradasDisponibles();",
"private List<Group> showUserGroups(final Long userId) {\r\n \treturn registrationRepository.findByUserId(userId).stream().map(reg -> reg.getGroup()).collect(Collectors.toList());\r\n }",
"public ArrayList<notOverlapping> getNotOverlappingSessionList(){\n \n ArrayList<notOverlapping> sessionList= new ArrayList<notOverlapping>(); \n Connection connection=getConnection();\n \n String query= \"SELECT `NotOverlappingSessionId`, `SessionId`, `Subject` FROM `notoverlappingsessions`\";\n Statement st;\n ResultSet rs;\n\n try{\n st = connection.createStatement();\n rs= st.executeQuery(query);\n notOverlapping session;\n while(rs.next()){\n session = new notOverlapping(rs.getInt(\"NotOverlappingSessionId\"),rs.getInt(\"SessionId\"),rs.getString(\"Subject\"));\n sessionList.add(session);\n \n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return sessionList; \n }",
"public List<LogRoomTypeHistory>getAllRoomTypeHistory(TblRoomType roomType);",
"public List<Chatroom> getAllChatrooms() {\n\t\t// fetch chatrooms from database\n\t\tList<Chatroom> chatrooms = chatroomRepository.findAll();\n\n\t\treturn chatrooms;\n\t}",
"List<Room> selectRoomListWithFromIndex(@Param(\"building\") String building, @Param(\"fromIndex\") Integer fromIndex);",
"public Wrapper getGroups() {\n Wrapper<List<HashMap<String, String>>> wrapper = new Wrapper();\n try {\n List<HashMap<String, String>> out = new ArrayList<>();\n List<ObjectId> groupIds = user.getGroups();\n\n if (groupIds.size() != 0) {\n\n for (ObjectId groupId : groupIds) {\n HashMap<String, String> group = new HashMap<>();\n String name = mongoOperations.findById(groupId, Group.class, \"users\").getName();\n\n group.put(\"name\", name);\n group.put(\"id\", groupId.toHexString());\n\n out.add(group);\n }\n }\n wrapper.setData(out);\n wrapper.setSucces(true);\n } catch (Exception e) {\n wrapper.setSucces(false);\n wrapper.setMsg(e.toString());\n }\n return wrapper;\n }",
"public ArrayList<Room> getAvailableRooms(LocalDate start, LocalDate end,\n int small, int medium, int large) {\n // Prepare temporary variables since the function using them will change. We do not want to change the original small, medium and large parameters.\n int tmpSmall = small;\n int tmpMedium = medium;\n int tmpLarge = large;\n return roomAvailability(start, end, tmpSmall, tmpMedium, tmpLarge);\n \n }",
"@Override\n\tpublic void onGetAllRoomsDone(AllRoomsEvent arg0) {\n\t\t\n\t}",
"public List<ChatMsg> getListRoomChatMsg() {\n //TODO add room Filter... processing, currently only one list \n //is updated by EventBus\n this.roomMsg = mobileCtrl.getListChatMsg(this.room);\n return this.roomMsg;\n }",
"List<ChatMessage> getMessages(int roomId, int count) throws IOException;",
"public LinkedList getList() {\n\treturn this.roomList;\n}",
"public static void createGameRooms()\r\n\t{\r\n\t\tfor(int i = 0; i < MAX_FIREWORKS_ROOMS; i++)\r\n\t\t{\r\n\t\t\taddRoom(\"fireworks_\" + i, new VMKGameRoom(\"fireworks_\" + i, \"Fireworks Game \" + i, \"\"));\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < MAX_PIRATES_ROOMS; i++)\r\n\t\t{\r\n\t\t\taddRoom(\"pirates_\" + i, new VMKGameRoom(\"pirates_\" + i, \"Pirates Game \" + i, \"\"));\r\n\t\t}\r\n\t}",
"public static List<UsersVO> retrieveAuthGroupUserList( String fromObid, String toObid, String module ) {\n \n StringBuffer selectPattern = new StringBuffer();\n StringBuffer fromPattern = new StringBuffer();\n StringBuffer wherePattern = new StringBuffer();\n StringBuffer paramPattern = new StringBuffer();\n\n fromPattern.append(\"<this>ThisConnectedWithTo<[HasAuthorizationGroup]@REL>+\");\n fromPattern.append(\"<[HasAuthorizationGroup]@REL>FromConnectedWithThis<[AuthorizationGroup]@AG>+\"); \n \n StringUtil.constructSelectPattern(selectPattern, \"@AG.[obid] authGroupObid\");\n StringUtil.constructSelectPattern(selectPattern, \"@AG.[titles] authGroupTitles\");\n StringUtil.constructSelectPattern(selectPattern, \"@AG.[module] authGroupModule\");\n StringUtil.constructSelectPattern(selectPattern, \"@REL.[obid] relObid\");\n StringUtil.constructSelectPattern(selectPattern, \"IFNULL(getUserInfo(@REL.[modifier], 'T'), @REL.[modifier]) relModifier\");\n StringUtil.constructSelectPattern(selectPattern, \"omcConvertUtcToLocal(@REL.[modified]) relModified\");\n StringUtil.addSortByPattern(selectPattern, \"authGroupModule, authGroupTitles, @this.[titles]\");\n\n if (!StrUtil.isEmpty(fromObid)) {\n StringUtil.constructWherePattern(wherePattern, paramPattern, \"@REL.[fromObid]\", GlobalConstants.OQL_OPERATOR_EQUAL, fromObid);\n }\n\n if (!StrUtil.isEmpty(toObid)) {\n StringUtil.constructWherePattern(wherePattern, paramPattern, \"@REL.[toObid]\", GlobalConstants.OQL_OPERATOR_EQUAL, toObid);\n }\n \n if (!StrUtil.isEmpty(module)) {\n StringUtil.constructWherePattern(wherePattern, paramPattern, \"@AG.[module]\", GlobalConstants.OQL_OPERATOR_EQUAL, module);\n }\n \n return ObjectRoot.searchObjects( \n ApplicationSchemaConstants.BIZCLASS_USERS,\n GlobalConstants.FLAG_TYPE_ALL,\n GlobalConstants.FLAG_TYPE_ALL,\n GlobalConstants.FLAG_TYPE_ALL,\n GlobalConstants.FLAG_TYPE_ALL,\n GlobalConstants.FLAG_TYPE_ALL,\n GlobalConstants.FLAG_TYPE_ALL,\n GlobalConstants.FLAG_TYPE_ALL,\n GlobalConstants.FLAG_TYPE_ALL,\n GlobalConstants.FLAG_TYPE_ALL,\n false,\n false,\n false,\n false,\n selectPattern.toString(),\n fromPattern.toString(),\n wherePattern.toString(), \n paramPattern.toString(),\n true,\n 0);\n \n }",
"public static ArrayList<APIRoom> GetRoomsFromSampleData(String nodeFilePath, String nodePath, Boolean getFullRoom, Boolean getAllRooms) {\n ArrayList<APIRoom> API_Rooms = new ArrayList<APIRoom>();\n\n try {\n // Get the SAXReader object \n SAXReader reader = new SAXReader();\n // Get the xml document object by sax reader. \n Document document = reader.read(nodeFilePath);\n List<Node> nodes = document.selectNodes(nodePath);\n\n // Read all the node inside xpath nodes and print the value of each \n for (Node node : nodes) {\n\n APIRoom API_Room = new APIRoom();\n\n API_Room.setAlias(\"\".equals(node.valueOf(\"Alias\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"Alias\"), \"\".getClass(),\n node.valueOf(\"Alias\")));\n\n API_Room.setRoomID(\"\".equals(node.valueOf(\"RoomID\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"RoomID\"), \"\".getClass(),\n node.valueOf(\"RoomID\")));\n\n API_Room.setRoomName(\"\".equals(node.valueOf(\"RoomName\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"RoomName\"), \"\".getClass(),\n node.valueOf(\"RoomName\")));\n\n API_Room.setDescription(\"\".equals(node.valueOf(\"Description\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"Description\"), \"\".getClass(),\n node.valueOf(\"Description\")));\n\n API_Room.setLocation(\"\".equals(node.valueOf(\"Location\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"Location\"), \"\".getClass(),\n node.valueOf(\"Location\")));\n\n API_Room.setDistributionGroupID(\"\".equals(node.valueOf(\"DistributionGroupID\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"DistributionGroupID\"), \"\".getClass(),\n node.valueOf(\"DistributionGroupID\")));\n\n API_Room.setParentNodeID(\"\".equals(node.valueOf(\"ParentNodeID\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"ParentNodeID\"), \"\".getClass(),\n node.valueOf(\"ParentNodeID\")));\n\n API_Room.setLastModified(\"\".equals(node.valueOf(\"LastModified\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"LastModified\"), XMLGregorianCalendar.class,\n DatatypeFactory.newInstance().newXMLGregorianCalendar(node.valueOf(\"LastModified\"))));\n\n API_Room.setTimeZoneID(\"\".equals(node.valueOf(\"TimeZoneID\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"TimeZoneID\"), \"\".getClass(),\n node.valueOf(\"TimeZoneID\")));\n\n API_Room.setEControlLink(\"\".equals(node.valueOf(\"EControlLink\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"EControlLink\"), \"\".getClass(),\n node.valueOf(\"EControlLink\")));\n\n API_Room.setGroupwarePassword(\"\".equals(node.valueOf(\"GroupwarePassword\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"GroupwarePassword\"), \"\".getClass(),\n node.valueOf(\"GroupwarePassword\")));\n\n API_Room.setGroupwareProviderType(\"\".equals(node.valueOf(\"GroupwareProviderType\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"GroupwareProviderType\"), \"\".getClass(),\n node.valueOf(\"GroupwareProviderType\")));\n\n API_Room.setGroupwareURL(\"\".equals(node.valueOf(\"GroupwareURL\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"GroupwareURL\"), \"\".getClass(),\n node.valueOf(\"GroupwareURL\")));\n\n API_Room.setGroupwareUserDomain(\"\".equals(node.valueOf(\"GroupwareUserDomain\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"GroupwareUserDomain\"), \"\".getClass(),\n node.valueOf(\"GroupwareUserDomain\")));\n\n API_Room.setGroupwareUsername(\"\".equals(node.valueOf(\"GroupwareUsername\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"GroupwareUsername\"), \"\".getClass(),\n node.valueOf(\"GroupwareUsername\")));\n\n API_Room.setSMTPAddress(\"\".equals(node.valueOf(\"SMTPAddress\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"SMTPAddress\"), \"\".getClass(),\n node.valueOf(\"SMTPAddress\")));\n\n API_Room.setWebCamLink(\"\".equals(node.valueOf(\"WebCamLink\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"WebCamLink\"), \"\".getClass(),\n node.valueOf(\"WebCamLink\")));\n\n if (getFullRoom) {\n API_Room.setAssets(GetAssetsListFromNodeList(node));\n API_Room.setPersons(GetPersonsListFromNodeList(node));\n API_Room.setProcessors(GetProcessorsListFromNodeList(node));\n }\n API_Rooms.add(API_Room);\n if (!getAllRooms) {\n break;\n }\n }\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n }\n return API_Rooms;\n }"
] | [
"0.66423744",
"0.64378184",
"0.6402711",
"0.6282366",
"0.6200932",
"0.61592525",
"0.61160195",
"0.60912395",
"0.6064379",
"0.6018373",
"0.6007432",
"0.59545475",
"0.5923754",
"0.5915151",
"0.59149975",
"0.5912162",
"0.5910633",
"0.586376",
"0.58420664",
"0.58166593",
"0.58095014",
"0.57222915",
"0.5709801",
"0.5690062",
"0.5653338",
"0.5623756",
"0.5615193",
"0.5610708",
"0.5610513",
"0.559791",
"0.55919147",
"0.55702037",
"0.5569563",
"0.55616194",
"0.55491245",
"0.55461144",
"0.5541447",
"0.5539844",
"0.55364096",
"0.5531496",
"0.55297714",
"0.5517933",
"0.55091625",
"0.55084705",
"0.54976535",
"0.5476375",
"0.54755515",
"0.546131",
"0.5448318",
"0.5433161",
"0.5429754",
"0.54246587",
"0.54176223",
"0.54150856",
"0.53998697",
"0.53838634",
"0.53818053",
"0.5376239",
"0.537538",
"0.5373906",
"0.53697497",
"0.53697497",
"0.53676283",
"0.5355738",
"0.53524286",
"0.5349282",
"0.53360444",
"0.5334544",
"0.53293955",
"0.5328603",
"0.5328178",
"0.53272635",
"0.53267187",
"0.5323833",
"0.5316391",
"0.5316082",
"0.53143495",
"0.5305702",
"0.53028977",
"0.5295473",
"0.52901846",
"0.5282303",
"0.528182",
"0.5276577",
"0.52698547",
"0.52655786",
"0.52631277",
"0.5253957",
"0.5236152",
"0.52268577",
"0.5224987",
"0.5220273",
"0.52175087",
"0.52151316",
"0.5211576",
"0.521135",
"0.52073",
"0.5206438",
"0.5202234",
"0.52007204"
] | 0.72181904 | 0 |
List list = userBean.getAllSchedule(); | @RequestMapping(value = "/sc", method = RequestMethod.GET)
public ModelAndView listsc() {
List<Group> groups = userBean.getAllGroups();
List<WeekDay> weekDays = userBean.getAllWeekDay();
ModelAndView view = new ModelAndView("sc");
// view.addObject("list",list);
view.addObject("group", groups);
view.addObject("week", weekDays);
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}",
"List<WorkingSchedule> getAll();",
"@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }",
"public UserList list();",
"@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}",
"@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}",
"@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}",
"public List<User> list();",
"public List<TimeSheet> showAllTimeSheet(){\n log.info(\"Inside TimeSheetService#ShowAllTimeSheet() Method\");\n List<TimeSheet> allTimeSheet = timeSheetRepository.findAll();\n return allTimeSheet;\n }",
"@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}",
"public List<User> getUserList();",
"public List<User> list();",
"public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }",
"@Override\r\n\tpublic List<ServicesDto> list() {\r\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"FROM ServicesDto WHERE active = TRUE\").list();\r\n}",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}",
"@Override\n\tpublic ArrayList<Object> getList() {\n\t\tSession session = HibernateUtil.getSession();\n\t\tsession.beginTransaction();\n\t\tString hsql=\"from hibernate.pojo.GmSite as site where site.display='true'\";\n\t\tQuery query = session.createQuery(hsql);\n\t\tsession.getTransaction().commit();\n\t\tArrayList<Object> list = new ArrayList<Object>();\n\t\tlist = (ArrayList<Object>) query.list();\n\t\t\n\t\tsession.close();\n\t\treturn list;\n\t}",
"public ArrayList<UserDataBean> list() {\n/* 80 */ String firstname = \"\";\n/* 81 */ String lastname = \"\";\n/* 82 */ String email = \"\";\n/* */ \n/* 84 */ Connection conn = null;\n/* 85 */ PreparedStatement pstmt = null;\n/* 86 */ ResultSet rs = null;\n/* */ \n/* 88 */ ArrayList<UserDataBean> list = new ArrayList<UserDataBean>();\n/* 89 */ String sql = \"select * from members\";\n/* */ \n/* */ try {\n/* 92 */ conn = getConn();\n/* 93 */ System.out.println(\"db접속 성공\");\n/* 94 */ pstmt = conn.prepareStatement(sql);\n/* 95 */ rs = pstmt.executeQuery();\n/* */ \n/* 97 */ while (rs.next()) {\n/* 98 */ UserDataBean user = new UserDataBean(firstname, lastname, email);\n/* */ \n/* 100 */ user.setFirstname(rs.getString(\"firstname\"));\n/* 101 */ user.setLastname(rs.getString(\"lastname\"));\n/* 102 */ user.setEmail(rs.getString(\"email\"));\n/* */ \n/* 104 */ list.add(user);\n/* */ }\n/* */ \n/* 107 */ } catch (Exception e) {\n/* 108 */ e.printStackTrace();\n/* */ } finally {\n/* 110 */ closeDB();\n/* */ } \n/* */ \n/* 113 */ return list;\n/* */ }",
"List<Appointment> getCurrentlyAppointment();",
"public List<User> getUsers();",
"public ArrayList<User> list() {\n\t\tUserDao ua=new UserDao();\n\t\treturn ua.list();\n\t\t//System.out.println(\"haii\");\n\t\t \n\t}",
"@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}",
"public List<UserDTO> getUsers();",
"List<SchoolMasterVo> getSchoolMasterVoList();",
"public List listar() {\n Query query = Database.manager.createNamedQuery(\"StatussistemaDTO.findAll\");\n query.setHint(QueryHints.MAINTAIN_CACHE, HintValues.FALSE);// evita consulta em cache\n List lista = query.getResultList();\n return lista;\n }",
"List<User> getAllUsers();",
"List<User> getAllUsers();",
"List<User> getUsers();",
"List<User> getUsers();",
"List<Hospital> listall();",
"public ArrayList<Booking> viewbookingsadmin() {\n\tStudentDAO studentDAO=new StudentDAO();\n\treturn studentDAO.viewbookingsadmin();\n\t\n\t\n}",
"public List<Usuario> obtenerListaUsuariosActivos(){\n return usuarioBean.obtenerListaUsuariosActivos();\n }",
"public List<User> listAll() throws Exception;",
"java.util.List<cb.Careerbuilder.Job> \n getJobsList();",
"public List getAllStu();",
"@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }",
"List<Reservation> trouverlisteDeReservationAyantUneDateDenvoieDeMail();",
"List<WorkingSchedule> getByPlaceId(Long placeId);",
"@SuppressWarnings(\"unchecked\")\n @Override\n public List<User> listUsers() {\n Session session = this.sessionFactory.getCurrentSession();\n List<User> UsersList = session.createQuery(\"from User\").list();\n for(User u : UsersList){\n logger.info(\"User List::\"+u);\n }\n return UsersList;\n }",
"public List<IncomingReport> list() throws DAOException;",
"public List<Usuario> listarUsuario() {\n \n List<Usuario> lista = usuarioDAO.findAll();\n return lista;\n \n \n\n }",
"public List<WTask> getTaskList(){return taskList;}",
"public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}",
"public List<Utilizator> listUsers();",
"List<UserDTO> getAllUsers();",
"List<Student> getAllStudents();",
"public List<Employee> getEmployees();",
"@Override\r\n\tpublic Object getList() {\n\t\treturn userDao.getList();\r\n\t}",
"List<SBCallAlarm> selectAll();",
"java.util.List<People>\n getUserList();",
"public List<User> getAllUsers();",
"public List getAllUsers();",
"List<Consumption> listAll();",
"@GET\r\n public List<EnterpriseUserDTO> getEnterpriseUserList(){\r\n List <EnterpriseUserEntity> enterpriseUsers = enterpriseUsersLogic.obtenerEnterpriseUsers();\r\n return EnterpriseUserDTO.toEnterpriseUserList(enterpriseUsers);\r\n }",
"@Override\r\n\tpublic List<MemberDTO> list() {\n\t\treturn session.selectList(NAMESPACE+\".list\");\r\n\t}",
"public List<EmployeeDetails> getEmployeeDetails();",
"public List<T> list()\n\t{\n\t\tfinal List<T> list = this.dao.findAll();\n\t\treturn list;\n\t}",
"java.util.List<hr.domain.ResumeDBOuterClass.Resume> \n getResumesList();",
"public List getList();",
"public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);",
"public List<TempWTask> getTaskList(){return taskList;}",
"@Override\r\n\tpublic List<MemberDto> list() {\n\t\treturn jdbcTemplate.query(\"select * from s_member\", mapper);\r\n\t}",
"List<Employee> allEmpInfo();",
"List<SysUser> selectAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"public List<User> getAllUsers(){\n myUsers = loginDAO.getAllUsers();\n return myUsers;\n }",
"public List <Student> getAllStudents();",
"public List<TaskItemBean> getItemList(){\n return itemList;\n }",
"public List getUserListShowToClient() {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n Query query;\n\n try {\n /*\n * Build HQL (Hibernate Query Language) query to retrieve a list\n * of all the items currently stored by Hibernate.\n */\n query = session.createQuery(\"select user from app.user.User user where user.currentEmployee = 'true' and user.clientShow = 'TRUE' order by user.lastName, user.firstName\");\n return query.list();\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 }",
"@WebMethod(operationName = \"operation\")\n public List<User> operation() {\n List datos = dao.listar();\n return datos;\n }",
"List<User> loadAll();",
"public List<Appointment> getAppointments(){\n return appointments;\n }",
"public List<Service> list(){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \treturn criteria.list();\r\n }",
"@Override\n\tpublic List<Administrateur> getList() {\n\t\topenCurrentSession();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Administrateur> list = (List<Administrateur>)getCurrentSession().createQuery(\"FROM Administrateur\").list();\n\t\tcloseCurrentSession();\n\t\treturn list;\n\t}",
"public ApiSchedule[] getSchedules() {\n return this.schedules;\n }",
"List<Student> getStudent();",
"public List<CommonBoardVO> listAll() throws Exception;",
"@Override\n\tpublic List reterive() {\n\t\tString str=\"SELECT allusers FROM User allusers\";\n\t\tTypedQuery<User> query=em.createQuery(str,User.class);\n\t\treturn query.getResultList();\n\t\t\n\t}",
"public List<Appointment> getAllDetailsRecp();",
"public ListaReservasBean() {\r\n\t\tthis.listaReservas = new ArrayList<ReservaDAO>();\r\n\t}",
"List<Enrolment> getAll();",
"@SuppressWarnings(\"unchecked\")\n public List<Item> getListOfTasks() {\n Session session = this.factory.openSession();\n List<Item> list = session.createQuery(\"from Item\").list();\n session.close();\n return list;\n }",
"List<T> obtenerAll();",
"protected void listSchedules(Calendar calendar) {\n List<Schedule> schedules = calendar.getSchedules();\n List<String> list = new ArrayList<>();\n\n for (Schedule schedule : schedules) {\n list.add(schedule.getName());\n }\n listItem(list);\n }",
"public ArrayList<User> getArrayList(){\n return userlist;\n }",
"List<Member> list(long now);",
"List<Userinfo> selectAll();",
"public abstract List<CarTO> listAll();",
"List<UserDisplayDto> getAllUsers();",
"public List<Timetable> getAllTimetable() throws Exception;",
"List<E> getAll(IApplicationUser user);",
"@Override\n public List<User> findAll() {\n try {\n return runner.query(con.getThreadConnection(),\"select * from user\",new BeanListHandler<User>(User.class));\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }",
"public List<? extends JobEntry> getScheduledJobs()\n {\n return schedulerService.listJobs();\n }",
"@Override\n\tpublic List<User> list() \n\t{\n\t\treturn userDAO.list();\n\t}",
"java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();",
"java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();",
"java.util.List<hr.domain.ResumeDBOuterClass.Experience> \n getExperiencesList();"
] | [
"0.78067553",
"0.77433276",
"0.6976985",
"0.67958724",
"0.6791696",
"0.6782535",
"0.67319304",
"0.6725701",
"0.67252463",
"0.6715728",
"0.6707384",
"0.670658",
"0.6696289",
"0.6689284",
"0.66833436",
"0.6591743",
"0.65546167",
"0.65160084",
"0.65157145",
"0.6514749",
"0.65113044",
"0.6496014",
"0.64941645",
"0.6482669",
"0.6455777",
"0.64393544",
"0.64393544",
"0.6431289",
"0.6431289",
"0.6426166",
"0.6423898",
"0.64235127",
"0.6418212",
"0.6392758",
"0.6389737",
"0.63883173",
"0.63854873",
"0.6372669",
"0.6371673",
"0.63644105",
"0.6352219",
"0.6347285",
"0.6344648",
"0.6337867",
"0.633042",
"0.63295776",
"0.63269496",
"0.63249815",
"0.6324269",
"0.6320423",
"0.6296395",
"0.6290814",
"0.62834644",
"0.62795484",
"0.62781817",
"0.62742126",
"0.62717",
"0.6267828",
"0.62625813",
"0.62622195",
"0.6257764",
"0.6251891",
"0.624723",
"0.6240954",
"0.62223953",
"0.62223953",
"0.62223953",
"0.62223953",
"0.62223953",
"0.6208811",
"0.6196803",
"0.6191994",
"0.6189948",
"0.6188095",
"0.61821985",
"0.6181654",
"0.61680984",
"0.6164817",
"0.61551315",
"0.61542445",
"0.6153984",
"0.6147344",
"0.6147155",
"0.6135753",
"0.6122536",
"0.6122168",
"0.61218506",
"0.6119401",
"0.6115844",
"0.61117136",
"0.61107886",
"0.61083764",
"0.6105061",
"0.6103625",
"0.61005586",
"0.6097186",
"0.609436",
"0.6092152",
"0.6090473",
"0.60899943",
"0.60851777"
] | 0.0 | -1 |
Teacher t = new Teacher(fio,priority); userBean.addTeacher(t); | @RequestMapping(value = "/teacher", method = RequestMethod.POST)
public ModelAndView addTeacher(HttpServletRequest request,
@RequestParam(name = "fio") String fio,
@RequestParam(name = "priority") String priority) {
return new ModelAndView("teacher");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addTeacher() {\n\t\t\n\t\tString lastName = tLastNameTF.getText();\n\t\tString firstName = tFirstNameTF.getText();\n\t\tString schoolName = tSchoolNameTF.getText();\n\t\tString userName = tUsernameTF.getText();\n\t\tchar[] password = tPasswordPF1.getPassword();\n\t\tString sA1 = tSecurityQ1TF.getText();\n\t\tString sQ1 = (String)tSecurityList1.getSelectedItem();\n\t\tString sA2 = tSecurityQ2TF.getText();\n\t\tString sQ2 = (String)tSecurityList2.getSelectedItem();\n\t\t\n\t\tteacher = new Teacher(lastName, firstName, schoolName, userName, password, sA1, sQ1, sA2, sQ2);\n\t\t\n\t\t//Add teacher to database \n\t\t\n\t}",
"public void add(Teacher teacher) {\n Session session = sessionFactory.getCurrentSession();\n Transaction transaction = session.beginTransaction();\n session.save(teacher);\n transaction.commit();\n }",
"public void addTeacher(Teacher teacher) {\n\t\tteachersRepository.save(teacher);\r\n\t\t//teachersList.add(teacher);\r\n\t}",
"public void addteacher(Teacher Te){\n this.tlist.add(Te);\n }",
"public void ShowInTeacherList(){\n \n for (TeacherBean tb : t_list) {\n this.t_model.addElement(tb); \n }\n}",
"private void jbt_addTeacherActionPerformed(java.awt.event.ActionEvent evt) {\n String name = jtf_TeacherName.getText();\n //Teachers t = new Teachers(name);\n TeacherList.add(name);\n\n listdisplay.addElement(name);\n\n jlist_teacher.setModel(listdisplay);\n\n }",
"private void addorUpdteTeacher(HttpServletRequest req, HttpServletResponse resp,boolean update) throws ServletException, IOException {\n\t\tString url=\"/listTeacher.jsp\";\n\t\tTeacher teacher=new Teacher();\n\t\tString firstName=req.getParameter(\"firstName\");\n\t\tString lastName=req.getParameter(\"lastName\");\n\t\tString designation=req.getParameter(\"designation\");\n\t\tteacher.setFirstName(firstName);\n\t\tteacher.setLastName(lastName);\n\t\tteacher.setDesignation(designation);\n\t\t\n\t\t\ttry {\n\t\t\t\tif(!update) {\n\t\t\t\tteacherDAO.addTeacher(teacher);\n\t\t\t\t}else {\n\t\t\t\t\tint id=Integer.parseInt(req.getParameter(\"teacherid\"));\n\t\t\t\t\tteacher.setId(id);\n\t\t\t\t\tteacherDAO.updateTeacher(teacher);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\treq.setAttribute(\"message\", e.getMessage());\n\t\t\t\tif(!update)\n\t\t\t\t\turl=\"/addTeacher.jsp\";\n\t\t\t\telse \n\t\t\t\t\turl=\"/updateTeacher.jsp\";\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\treq.getRequestDispatcher(url)\n\t\t.forward(req, resp);;\n\t\t\n\n\t}",
"public Teacher() {}",
"@Override\n\tpublic void create(Teacher teacher) {\n\t\tdao.create(teacher);\n\t}",
"@Override\r\n\tpublic void insertTea(Teacher teacher) {\n\r\n\t}",
"public Teacher() {\n// coursesTaught = new ArrayList<Course>();\n }",
"@RequestMapping(\n method = {RequestMethod.POST },\n consumes = MediaType.APPLICATION_JSON_VALUE\n )\n public Teacher createUser(@Valid @RequestBody Teacher teacher) {\n return teachersRep.save(teacher);\n }",
"void save(Teacher teacher);",
"public addteacher() {\n initComponents();\n }",
"public void insert(Teacher o) throws SQLException {\n\t\t\r\n\t}",
"public static Teacher addTeacher() {\n\n\n Teacher newTeacher = new Teacher();\n\n //create a Scanner object to let user make an input\n\n Scanner s = new Scanner(System.in);\n System.out.println(\"Enter the first name\");\n String firstname = s.nextLine();\n newTeacher.setFirstName(firstname);\n\n\n System.out.println(\"Enter the last name\");\n String lastName = s.nextLine();\n newTeacher.setLastName(lastName);\n\n\n System.out.println(\"Enter your email\");\n String yourEmail = s.nextLine();\n newTeacher.seteMail(yourEmail);\n\n\n System.out.println(\"Enter your ID number\");\n String yourID = s.nextLine();\n newTeacher.setNumberID(yourID);\n\n System.out.println(\"Enter the class that teacher teaches\");\n String teaches = s.nextLine();\n// newTeacher.setTeaches(teaches);\n\n\n return newTeacher;\n\n }",
"int insert(Teacher record);",
"@Override\r\n\t\tpublic boolean addTeacher(TeacherDto teacherDto) {\n\t\t\ttry{\r\n\t\t\t\tList<Teacher> list = teacherRepository.findBySubjectAndStudentid(teacherDto.getSubject(), teacherDto.getStudentid());\r\n\t\t\t\t\t\tif (list.size() > 0) {\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\t\t\r\n\t\t\tArrayList arr=new ArrayList<>();\r\n\t\t\tarr.add(\"MATHS\");\r\n\t\t\tarr.add(\"PHYSICS\");\r\n\t\t\tarr.add(\"CHEMISTRY\");\r\n\t\t\tif(!arr.contains(teacherDto.getSubject()))\r\n\t\t\t{\r\n\t\t\tTeacher teacher=teacherRepository.save(TeacherTransformer.getTeacherDtoToEntity(teacherDto));\r\n\t\t\tStudent student = restTemplate.getForObject(\"http://localhost:8080/studentservice/students/\" + teacher.getStudentid(),Student.class);\r\n\t if(teacher.getSubject().toUpperCase().equals(\"MATHS\"))\r\n\t\t\t{\r\n\t\t\t\tstudent.setMaths(teacher.getMarks());\r\n\t\t\t}else if(teacher.getSubject().toUpperCase().equals(\"PHYSICS\"))\r\n\t\t\t{\r\n\t\t\t\tstudent.setPhysics(teacher.getMarks());\r\n\t\t\t}\r\n\t\t\telse if(teacher.getSubject().toUpperCase().equals(\"CHEMISTRY\")) \r\n\t\t\t{\r\n\t\t\t\tstudent.setChemistry(teacher.getMarks());\r\n\t\t\t}else {}\r\n\t\t\t\t\trestTemplate.postForObject(\"http://localhost:8080/studentservice/students/update\", StudentTransformer.getStudentEntityToDto(student), StudentDto.class);\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\t}catch(Exception e)\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}",
"@Override\r\n\t@Transactional\r\n\tpublic int saveTeacher(Teacher teacher) {\n\t\tString username = UserNameUtil.createUsername(teacher.getFirstName());\r\n\t\tSystem.out.println(username);\r\n\t\tList<String> roles = new ArrayList<String>();\r\n\t\troles.add(RoleConstants.TEACHER);\r\n\t\tint id = commonDao.createUserAndSetRoles(username, roles);\r\n\t\tSystem.out.println(\"user id : \"+ id );\r\n\t\tteacher.setTeacherId(id);\r\n\t\tint status = schoolDao.saveTeacher(teacher);\r\n\t\treturn status;\r\n\t}",
"public void addClassToTeacher(Classes teacher_class) {\n db.addClassToTeacher(teacher_class);\n }",
"public void addEmployee(Employee emp) {\n\t\t\r\n\t}",
"@PostMapping\n\tpublic ResponseEntity<?> addTeacherDetails(@RequestBody TeacherDetails t)\n\t{\n\t\tSystem.out.println(\"in addTeacherDetails\"+ t );\n\t\ttry {\n\t\t\tTeacherDetails savedTeacherDetails= service.addTeacherDetails(t);\n\t\t\treturn new ResponseEntity<>(savedTeacherDetails, HttpStatus.OK);\n\t\t\n\t\t}catch (RuntimeException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR );\n\t\t}\n\t}",
"private void updateFromListTeacher(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\n\t\tint id=Integer.parseInt(req.getParameter(\"teacherid\"));\n\t\ttry {\n\t\t\tTeacher teacher=teacherDAO.getTeacher(id);\n\t\t\treq.setAttribute(\"teacher\", teacher);\n\t\t\treq.getServletContext().getRequestDispatcher(\"/updateTeacher.jsp\")\n\t\t\t.forward(req, resp);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void createUtilisateur(UtilisateurBean u) {\n\t}",
"@PostMapping(value = \"/addEmployee\")\n\tpublic void addEmployee() {\n\t\tEmployee e = new Employee(\"Iftekhar Khan\");\n\t\tdataServiceImpl.add(e);\n\t}",
"public EditTeacher() {\n initComponents();\n// TeacherList.add(\"林颖\");\n// TeacherList.add(\"刘畅\");\n// TeacherList.add(\"王媛\");\n// TeacherList.add(\"李发金\");\n\n }",
"public int getTeacherid() {\r\n return teacherid;\r\n }",
"public TeacherExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"public void edit(Teacher teacher) {\n Session session = sessionFactory.getCurrentSession();\n Teacher existingTeacher = (Teacher) session.get(Teacher.class, teacher.getEmail());\n Transaction transaction = session.beginTransaction();\n\n existingTeacher.setName(teacher.getName());\n existingTeacher.setCountry(teacher.getCountry());\n existingTeacher.setInfo(teacher.getInfo());\n existingTeacher.setPicture(teacher.getPicture());\n existingTeacher.setBirthDate(teacher.getBirthDate());\n existingTeacher.setUniversity(teacher.getUniversity());\n existingTeacher.setPost(teacher.getPost());\n existingTeacher.setDegree(teacher.getDegree());\n\n session.save(existingTeacher);\n transaction.commit();\n }",
"private void createLocalTeacherUserData(FirebaseUser user){\n String name = usernameTextView.getText().toString();\n TeacherManager.createTeacher(name, user.getUid(), newSchoolID);\n }",
"public String getTeacherName() {\n/* 31 */ return this.teacherName;\n/* */ }",
"int insert(WstatTeachingClasshourTeacher record);",
"@Override\n\tpublic int insertTeacher(Sy05 record) {\n\t\treturn 0;\n\t}",
"public Teacher() {\n initComponents();\n \n }",
"@Override\n\tpublic Integer do_insertTeacher(Teacher teacher) {\n\t\tString id = teacherDAO.getLastTeacherID();\n\t\tInteger int_id = Integer.valueOf(id.substring(2, id.length()));\n\t\tteacher.setT_id(id.substring(0, 2)+(int_id+1));\n\t\treturn teacherDAO.do_insertTeacher(teacher);\n\t}",
"public Course(int id, String name, String description, Faculty teacher){\n this.id = id;\n this.name = name;\n this.description = description;\n this.teachers = new ArrayList<>();\n this.teachers.add(teacher);\n }",
"public void setTeacher(Student s) {\n // TODO implement here\n \tthis.teacher = s;\n }",
"public TeacherDao() {\n super(Teacher.TEACHER, com.heman.bysj.jooq.tables.pojos.Teacher.class);\n }",
"public void addEducation(Education e) {\n ed.add(e);\n}",
"public static void creaDocente(Teacher doc) {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.CREATE_USER;\n\t\t\trp.userType = UserType.TEACHER;\n\t\t\trp.parameters = new Object[] { doc };\n\t\t\tsend(rp);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}",
"public void setTeacherId(Integer teacherId) {\n this.teacherId = teacherId;\n }",
"public void setTeacherId(Integer teacherId) {\n this.teacherId = teacherId;\n }",
"public Teacher(final String id) {\n this._id = id;\n \n }",
"@Override\n public void onClick(View v) {\n TeacherClass t = new TeacherClass();\n //grab text from first name text input and apply to teacher first name\n t.firstName = txtFirstName.getText().toString().trim();\n //grab text from last name text input and apply to teacher last name\n t.lastName = txtLastName.getText().toString().trim();\n //grab text from username text input and and apply to teacher username\n t.username = txtUsername.getText().toString().trim();\n //grab text from password text input and apply to teacher password\n t.password = txtPassword.getText().toString().trim();\n //grab text from password confirm text input and create string variable\n String confirm = txtConfirm.getText().toString().trim();\n t.daycareID = adminDaycare; //admin can only create a user within their own daycare\n //isAdmin - set to true if admin radio button is selected\n if(admin.isChecked()) {\n t.isAdmin = true;\n }\n //verify that all information has been provided and is correct\n if(VerifyInfo(t.firstName, t.lastName, t.username, t.password, confirm)) {\n PasswordHash hash = new PasswordHash();\n t.password = hash.generatedPassword(t.password);\n\n InsertTeacher(t.firstName, t.lastName, t.username, t.password, t.daycareID, t.isAdmin);\n }\n }",
"int insertSelective(WstatTeachingClasshourTeacher record);",
"@Override\r\n\tpublic void editTea(Teacher teacher) {\n\r\n\t}",
"public void addStudent(User user) {\n\t\t\r\n\t}",
"public void ajouterRole(RoleUtilisateur ru);",
"public ArrayList<Teacher> getTeacherList()\r\n\t {\r\n\t\t return teacherList;\r\n\t }",
"private void fillTeachers() {\n for(Teacher t : MainFrame.etablissement.getTeachers()) {\n principalTeacher.addItem(t);\n }\n }",
"public interface TeacherDao {\n\n TeacherPO getTeacherByEmail(String email);\n\n void saveTeacher(TeacherPO teacherPO);\n\n void saveCode(TeacherMailValidationPO mailValidationPO);\n\n TeacherMailValidationPO getTeacherMailValidationPO(String email);\n\n List<TeacherPO> getTeachersByEmailCollection(Collection<String> collection);\n\n int countHasValidatedTeacher();\n\n}",
"public PersonaBean() {\n domicilio = new Domicilio();\n telefono = new Telefono();\n correoElectronico = new CorreoElectronico();\n persona = new Persona();\n this.tipoOperacion = \"Alta\";\n\n }",
"private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }",
"@RequestMapping(value=\"/admin/resource/new\")\n\tpublic String teacherResouAdd(HttpSession session,Model model ){\n\t\tlogger.info(\"#####Into TeacherResouInfoAdd#####\");\n\t\tList<ResourceType> listType = resourceTypeService.getTypeByTypeStatus(GlobalDefs.STATUS_RESOURCETYPE);\n\t\tUserInfo userInfo = (UserInfo) session.getAttribute(GlobalDefs.SESSION_USER_INFO);\n\t\tmodel.addAttribute(\"type\", listType);\n\t\tif (userInfo.getUser().getRole().equals(\"teacher\")) {\n\t\t\treturn \"admin.teacher.resource.new\";\n\t\t} else if (userInfo.getUser().getRole().equals(\"enterprise\")) {\n\t\t\treturn \"admin.enterprise.resource.new\";\n\t\t} else {\n\t\t\treturn \"404\";\n\t\t}\n\t}",
"@Override\n\tpublic long create(Teacher teacher) {\n\t\treturn 0;\n\t}",
"@RequestMapping(\"list\")\n List<Teacher> list(Teacher teacher, PageBean pageBean){\n return teacherService.list(teacher,pageBean);\n }",
"@Bean({\"colBean\" , \"collegeBean\" } )\n\tpublic College collegeBean()//method namecollegeBean is the bean id by default\n\t{\n\t\tCollege college=new College();\n\t\tcollege.setTeacher(teacher()); //setter injection\n\t\treturn college;\n\t}",
"private void updateTeacherProfileInfo() {\n\t\t\n\t\tteacher.setLastName(tLastNameTF.getText());\n\t\tteacher.setFirstName(tFirstNameTF.getText());\n\t\tteacher.setSchoolName(tSchoolNameTF.getText());\n\t\t\n\t\t//Update Teacher profile information in database\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n tn = new javax.swing.JTextField();\n tp = new javax.swing.JTextField();\n yr = new javax.swing.JComboBox<>();\n br = new javax.swing.JComboBox<>();\n lec = new javax.swing.JComboBox<>();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n sal = new javax.swing.JComboBox<>();\n tid = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n subj = new javax.swing.JComboBox<>();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setTitle(\"Add Teacher\");\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n formWindowActivated(evt);\n }\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jPanel1.setBackground(new java.awt.Color(153, 0, 153));\n\n jLabel1.setText(\"Teacher ID:\");\n\n jLabel2.setText(\"Teacher Name:\");\n\n jLabel3.setText(\"Password\");\n\n jLabel4.setText(\"Lectures per week:\");\n\n jLabel5.setText(\"Year\");\n\n jLabel6.setText(\"Branch\");\n\n tn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tnActionPerformed(evt);\n }\n });\n\n tp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tpActionPerformed(evt);\n }\n });\n\n yr.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Choose Year\" }));\n\n br.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Choose Branch\" }));\n\n lec.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"6\", \"5\", \"4\", \"3\", \"2\", \"1\" }));\n\n jButton1.setText(\"Add\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Clear\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Back\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n sal.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Dr.\", \"Mr.\", \"Mrs.\" }));\n sal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n salActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Subjects\");\n\n subj.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Choose Subject\" }));\n\n jButton4.setText(\"Load Subjects\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jButton5.setText(\"Load Branch\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\n jLabel8.setText(\"Add Teacher\");\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(32, 32, 32)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel6)\n .addComponent(jLabel5)\n .addComponent(jLabel3)\n .addComponent(jLabel1)\n .addComponent(jLabel7)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 95, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tp, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(sal, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tn, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(tid, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(yr, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(br, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(subj, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton4)\n .addComponent(jButton5)))\n .addComponent(lec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(6, 6, 6))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(110, 110, 110)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton3))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(159, 159, 159)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 19, Short.MAX_VALUE)\n .addComponent(tid, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(tn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(sal, 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(jLabel3)\n .addComponent(tp, 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(yr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(br, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton4))\n .addGap(4, 4, 4)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(subj, 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(lec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 76, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2)\n .addComponent(jButton3))\n .addGap(26, 26, 26))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }",
"private void teaInfoAddActionPerformed(ActionEvent evt) throws SQLException, Exception {//添加老师新信息\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n String teaID = this.teaIDText.getText();\n String teaName = this.teaNameText.getText();\n String teaCollege = this.teaCollegeText.getText();\n String teaDepartment = this.teaDepartmentText.getText();\n String teaPhone = this.teaPhoneText.getText();\n String teaRemark = this.teaInterestText.getText();\n if(StringUtil.isEmpty(teaID)){\n JOptionPane.showMessageDialog(null,\"教工号不能为空!\");\n return;\n }\n if(StringUtil.isEmpty(teaName)){\n JOptionPane.showMessageDialog(null,\"姓名不能为空!\");\n return;\n }\n if(StringUtil.isEmpty(teaCollege)){\n JOptionPane.showMessageDialog(null,\"学院不能为空!\");\n return;\n }\n if(StringUtil.isEmpty(teaDepartment)){\n JOptionPane.showMessageDialog(null,\"系不能为空!\");\n return;\n }\n if(StringUtil.isEmpty(teaPhone)){\n JOptionPane.showMessageDialog(null,\"手机不能为空!\");\n return;\n }\n if(teaID.length() != 11){\n JOptionPane.showMessageDialog(null,\"教工号位数不为11位!\");\n return;\n } \n if(!StringUtil.isAllNumber(teaID)){\n JOptionPane.showMessageDialog(null,\"教工号不为纯数字!\");\n return;\n }\n if(teaPhone.length() != 11){\n JOptionPane.showMessageDialog(null,\"手机号位数不为11位!\");\n return;\n } \n if(!StringUtil.isAllNumber(teaPhone)){\n JOptionPane.showMessageDialog(null,\"手机号不为纯数字!\");\n return;\n }\n Connection con = null;\n con = dbUtil.getConnection();\n if(teacherInfo.checkExist(con, teaID)){\n JOptionPane.showMessageDialog(null,\"当前教工号已存在,请勿重复添加!\");\n return;\n }\n Teacher teacher = new Teacher(teaID,teaName,teaSex,teaCollege,teaDepartment,teaType,teaPhone,teaRemark);\n try{\n con = dbUtil.getConnection();\n int result = teacherInfo.teacherInfoAdd(con, teacher);\n if(result == 1){\n JOptionPane.showMessageDialog(null,\"老师添加成功!\");\n resetTeaInfo();//重置老师信息所有栏\n return;\n }\n else{\n JOptionPane.showMessageDialog(null,\"老师添加失败!\");\n return;\n }\n }catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void addSchedule(TeacherCourse tc) {\n\t\tcd.addTeacherCourse(tc);\n\t}",
"@Override\n\tpublic boolean add(Tbuniversity tbuniversity) {\n\t\tboolean result= false;\n\t\tif(tbuniversityDAO.save(tbuniversity)){\n\t\t\tresult =true;\n\t\t}\n\t\treturn result;\n\t}",
"public TeacherP() {\n initComponents();\n }",
"public void addCommitteeMember(Professor p) {\r\n committee.add(p);\r\n }",
"public RegisterUserBean() {\n this.account.setGender(Boolean.TRUE);\n this.roleID = 5;\n }",
"private void refresh(TeachersBean teacher) {\n\t\tTeacherService teacherservice = new TeacherService(teacher);\n\t\tsubjectname=teacher.getSubject().getSubjectname();\n\t\tSet<AssignmentBean> temp = teacherservice.readTeacher().getSubject().getAssignments();\n\t\tfor (AssignmentBean assignmentBean : temp) {\n\t\t\tassignmentslist.add(assignmentBean);\n\t\t\t\n\t\t}\n\t\t\n\t\tStudentService studentservice = new StudentService(null);\n\t\tstudentslist=studentservice.getAllStudentofSubject(teacherservice.readTeacher().getSubject());\n\t}",
"public Professor(Professor prof)\r\n {\r\n this.name = prof.name;\r\n this.id = prof.id;\r\n }",
"public void update(Teacher o) throws SQLException {\n\t\t\r\n\t}",
"@Override\n public Mechanic addEmployee(Mechanic mechanic) {\n LOGGER.info(\"Create new Mechanic in the database\");\n return mechanicRepository.save(mechanic);\n }",
"public void insertEmp(Emp emp) {\n\t\t\n\t}",
"@Override\n\tpublic void update(Teacher teacher) {\n\t\tdao.update(teacher);\n\t}",
"private void addStudent() {\n\t\t\n\t\tString lastName = sLastNameTF.getText();\n\t\tString firstName = sFirstNameTF.getText();\n\t\tString schoolName = sSchoolNameTF.getText();\n\t\tchar[] password = sPasswordPF1.getPassword();\n\t\tString sA1 = sSecurityQ1TF.getText();\n\t\tString sQ1 = (String)sSecurityList1.getSelectedItem();\n\t\tString sA2 = sSecurityQ2TF.getText();\n\t\tString sQ2 = (String)sSecurityList2.getSelectedItem();\n\t\tString grade = (String)sGradeList.getSelectedItem();\n\t\t\n\t\tstudent = new Student(lastName, firstName, schoolName, password, sA1, sQ1, sA2, sQ2, grade);\n\t\t\n\t\t//Add student to database\n\t\t\n\t}",
"@Transactional\r\n\tpublic void addUser(){\r\n\t}",
"UserDTO addNewData(UserDTO userDTO);",
"public interface TeacherService {\n void save (Teacher teacher);\n\n void delete (Teacher teacher);\n\n Teacher getTeacherById(Long id);\n\n List<Teacher> listTeachers();\n}",
"public void addStudent(Student student);",
"public TeacherForm() {\n initComponents();\n }",
"@Override\r\n\tpublic void add(User user) {\n\r\n\t}",
"BeanPedido crearPedido(BeanCrearPedido pedido);",
"@Override\n public Teacher getModel() {\n return teacher;\n }",
"public void setCourseTeacher(String courseTeacher) {\n this.courseTeacher = courseTeacher;\n }",
"public ReservaBean() {\r\n nrohabitacion=1;\r\n createLista(nrohabitacion);\r\n editable=true;\r\n sino=\"\";\r\n \r\n reserva = new TReserva();\r\n }",
"private void addEmployee(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tString firstName = request.getParameter(\"firstName\");\r\n\t\tString lastName = request.getParameter(\"lastName\");\r\n\t\tString gender = request.getParameter(\"gender\");\r\n\t\tint age = Integer.parseInt(request.getParameter(\"age\"));\r\n\t\tString email = request.getParameter(\"email\");\t\t\r\n\t\t\r\n\t\t// create a new employee object\r\n\t\tEmployee theEmployee = new Employee (firstName, lastName,gender,age, email);\r\n\t\t\r\n\t\t// add the employee to the database\r\n\t\temployeeDAO.addEmployee(theEmployee);\r\n\t\t\t\t\r\n\t\t// send back to main page (the student list)\r\n\t\tlistEmployees(request, response);\r\n\t}",
"public void setTeacherId(String teacherId) {\n this.teacherId = teacherId;\n }",
"@Override\n\tpublic void add(Employee employee) {\n\t\temployeeDao.save(employee);\t\t\n\t}",
"@Override\n\tpublic Integer addRoleUtilisateur(RoleUtilisateur r) {\n\t\treturn roleUtilisateurDAO.addRoleUtilisateur(r);\n\t}",
"public void addPerson(Person p);",
"public void ajouter(Etudiant t) {\n\t\tdao.ajouter(t);\r\n\t}",
"public void addUser(User user);",
"public interface TeacherService {\n\n public boolean isValid(Integer id,\n String lastName,\n String firstName,\n String password);\n public boolean validateRegister(String lastName, String firstName,\n String fatherInitial, String username,\n String password);\n public Teacher getTeacher(Integer id);\n public void addStudent(String lastName, String firstName,\n String fatherInitial, String username,\n String password,\n Integer courseId, Integer teacherId);\n public Integer getStudentId(String username);\n public void addGrade(String studentName, String courseName, Integer teacherId, Integer nota);\n public Integer getCourseID(Integer id, String courseName);\n public List<Course> getCourses(Integer id);\n public List<Student> getStudents(int courseId, int teacherId);\n public int CountStudents(int courseId, int teacherId);\n public List<StudentperCourse> getPopulation (int teacherId);\n public List<StudentwithGrades> getStudentAtCourse(int teacherId, int courseId);\n}",
"public void addActor(){\n actorProfileList.add(new ActorProfile());\n }",
"public int createEmployee(Employee emp) {\n\tStudentDAO studentDAO=new StudentDAO();\n\treturn studentDAO. createEmployee(emp);\n}",
"public Integer getTeacherId() {\n return teacherId;\n }",
"public Integer getTeacherId() {\n return teacherId;\n }",
"@Override\n\tpublic void init() throws ServletException {\n\t\tteacherDAO=new TeacherDAO();\n\t\tsuper.init();\n\t}",
"void insertfacultydata(Faculty fac_insert);",
"private void CreateStudentList() {\r\n\t\tStudentList=new ArrayList<Student>();\t\r\n}",
"public String getTeacherId() {\n return teacherId;\n }",
"@Override\n\tpublic ResponseEntity<?> postPutTeacher(UTeacherEntity teacher, UserDTO newTeacher) {\n\t\tif (newTeacher.getTeacherTitle() == null) {\n\t\t\treturn new ResponseEntity<RestError>(new RestError(2, \"Title must be provided\"), HttpStatus.BAD_REQUEST);\n\t\t}\n\t\tif (newTeacher.getTeacherNoOfLicence() == null) {\n\t\t\treturn new ResponseEntity<RestError>(new RestError(2, \"Teacher number of licence must be provided\"),\n\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t}\n\t\tteacher.setName(newTeacher.getName());\n\t\tteacher.setLastName(newTeacher.getLastName());\n\t\tteacher.setEmail(newTeacher.getEmail());\n\t\tteacher.setTitle(newTeacher.getTeacherTitle());\n\t\tteacher.setNoOfLicence(newTeacher.getTeacherNoOfLicence());\n\t\tteacherRepo.save(teacher);\n\t\tlogger.error(\"Error occured while creating tgs\");\n\t\tlogger.info(\"Admin (email: \" + AuthController.getEmail() + \") added new/updated teacher \" + teacher);\n\n\t\treturn new ResponseEntity<UTeacherEntity>(teacher, HttpStatus.OK);\n\t}",
"@Override\r\n\t@Transactional\t\r\n\tpublic void altaTipoJuego(TipoJuegoBean tipoJuegoBean, UserBean userBean){\r\n\t\ttipoJuegoRepository.add(tipoJuegoBean.getEntity());\r\n\r\n\t\t//Registrando Auditoria de Negocio para alta de jugadores de prueba.\r\n\t\tResultAudNegocioBean result = AudNegocioAccess.accesAudNegocio(userBean.getUsername(), userBean.getAppcode(), \"RGIAJ\", \r\n\t\t\t\"JUG_TIPO_PROHIBICION\", \"NUEVA\", \"Creado el tipo de prohibicion con el ID: \" + tipoJuegoBean.getId()\r\n\t\t\t+ \", codigo: \" + tipoJuegoBean.getCodigo()\r\n\t\t\t+ \", descripcion: \" + tipoJuegoBean.getDescripcion()\r\n\t\t\t+ \", activo: \" + tipoJuegoBean.getActivo()\t\r\n\t\t\t+ \" en la tabla JUG_TIPO_PROHIBICION\");\r\n\t\tif (result.getResultCode() == AudNegocioAccess.ERROR) {\r\n\t\t\tLOGGER.info(result.getResultDescription());\r\n\t\t}\r\n\r\n\t\treturn ;\r\n\t}"
] | [
"0.75816494",
"0.748474",
"0.724767",
"0.7218176",
"0.70321345",
"0.6811643",
"0.6780331",
"0.67005986",
"0.66700816",
"0.6574392",
"0.65432334",
"0.6407863",
"0.64059913",
"0.63722396",
"0.63166964",
"0.63151425",
"0.6302501",
"0.62810016",
"0.6269201",
"0.61556804",
"0.60581356",
"0.60414684",
"0.59968084",
"0.5989642",
"0.5972959",
"0.5925326",
"0.5923182",
"0.5913929",
"0.5912018",
"0.58976734",
"0.58833104",
"0.58767927",
"0.58673507",
"0.5830245",
"0.5825703",
"0.5818263",
"0.5783376",
"0.5781542",
"0.575007",
"0.57441354",
"0.57241166",
"0.57241166",
"0.57235557",
"0.57134324",
"0.5704318",
"0.5698825",
"0.5687955",
"0.5676453",
"0.5666429",
"0.56403357",
"0.56383896",
"0.5619412",
"0.56176794",
"0.5604828",
"0.560448",
"0.56006527",
"0.5595959",
"0.55948323",
"0.5577687",
"0.5570762",
"0.5564524",
"0.5556637",
"0.5547797",
"0.5540226",
"0.55324733",
"0.5528779",
"0.55257916",
"0.5524654",
"0.55145323",
"0.55088997",
"0.55044687",
"0.5498917",
"0.5494896",
"0.549348",
"0.548834",
"0.54872113",
"0.54807",
"0.5472068",
"0.5471227",
"0.5470784",
"0.547072",
"0.54695725",
"0.5466478",
"0.54616106",
"0.5460492",
"0.54590267",
"0.54557383",
"0.5449839",
"0.54483145",
"0.54452217",
"0.5438467",
"0.5422909",
"0.5419805",
"0.5419805",
"0.54171395",
"0.54103976",
"0.53994626",
"0.539546",
"0.5386932",
"0.5385107"
] | 0.6366527 | 14 |
List subjects = userBean.getAllSubjects(); | @RequestMapping(value = "/subject", method = RequestMethod.GET)
public ModelAndView listSubject() {
List<SubjectType> divSubjects = userBean.getDividedSubject();
ModelAndView view = new ModelAndView("subject");
// view.addObject("sub", subjects);
view.addObject("div", divSubjects);
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Secured(\"ROLE_ADMIN\")\n\t@RequestMapping(method = RequestMethod.GET)\n\tpublic Iterable<SubjectEntity> getAllSubjects() {\n\treturn subjectRepository.findAll();\n\t}",
"public List<Subject> getSubjectList() {\r\n\r\n\t\tlogger.info(\"*** Service : Displaying Subject information ***\");\r\n\t\treturn subjectRepository.findAll();\r\n\t}",
"List<SchoolSubject> findSchoolSubjects() throws DaoException;",
"@Override\r\n\tpublic List<Subjects> getListAll() {\n\t\treturn subectsDao.getListAll();\r\n\t}",
"public String[] getSubjects() {\n/* 329 */ return getStringArray(\"subject\");\n/* */ }",
"public List<Subject> getSubject() {\n\t\treturn sub_dao.getSubject();\r\n\t}",
"public String getSubjects() {\r\n return subjects;\r\n }",
"@Override\n\tpublic List<Subject> getAllSubjects() throws SQLException {\n\t\treturn null;\n\t}",
"public ArrayList<Subject> getSubjects() throws myException {\n\t\tArrayList<Subject> subjectList = new ArrayList<Subject>();\n\t\t// Subject[] sub = new Subject[5];\n\t\tConnection con = GetConnection.getConnection();\n\t\tResultSet rs = null;\n\t\tString query = \"select * from subject\";\n\t\tStatement st = null;\n\t\tint i = 0;\n\t\ttry {\n\t\t\tst = con.createStatement();\n\t\t\trs = st.executeQuery(query);\n\t\t} catch (Exception e) {\n\t\t\tthrow new myException(e.getMessage());\n\t\t}\n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\t// if ((rs.getString(\"teacherName\")).equals(name)) {\n\t\t\t\tSubject sub2 = new Subject(rs.getShort(\"subjectId\"), rs.getString(\"subjectName\"),\n\t\t\t\t\t\trs.getString(\"teacherName\"));\n\t\t\t\tsubjectList.add(sub2);\n\t\t\t\t// }\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn subjectList;\n\t}",
"List<Subject> findByName(String name);",
"public List<ACSubjectInfo> getSubjects() {\n return subjects;\n }",
"public List<StudyVO> listSubject(Criteria cri) {\n \n\t\t\t \n\tList<StudyVO> list =mapper.listSubject(cri);\n\tlogger.info(\"service계층에서list는\"+mapper.listSubject(cri));\n\tSystem.out.println(\"servicesubject:\"+cri);\n\treturn list;\n\t\n\t\n\n }",
"public List<Subject> findAllSubjects() throws StructureManagementException {\n\n\t\tList<Subject> list;\n\t\ttry {\n\t\t\tlist = subjectDAO.findAll();\n\t\t} catch (DataManagementException e) {\n\t\t\tStructureManagementException ex = new StructureManagementException(\"Subjects could not be found. Cause: \" + e.getMessage());\n\t\t\tthrow ex;\n\t\t}\n\n\t\treturn list;\n\t}",
"List<Student> getAllStudents();",
"public List<String> getStudents();",
"@SuppressWarnings(\"unchecked\")\n public List<Subject> selectAll(){\n \tList<Subject> list = null;\n SqlSession session = sqlSessionFactory.openSession();\n \n try {\n list = session.selectList(\"Subject.selectAll\");\n } finally {\n session.close();\n }\n System.out.println(\"selectAll() --> \"+list);\n return list;\n\n }",
"List<Student> getStudent();",
"public List <Student> getAllStudents();",
"public List<String> getSubject() {\n\t return this.subject;\n\t}",
"public ArrayList getStudents();",
"@Override\n\tpublic List<String> displayListOfSubject() throws MessageException {\n\t\ttry {\n\t\t\tList<String> subjectOfMessages = new ArrayList<String>();\n\n\t\t\tList<Message> messages = messageReader.fetchMessage();\n\t\t\tfor (Message message : messages) {\n\t\t\t\tsubjectOfMessages.add(message.getSubject());\n\t\t\t}\n\n\t\t\treturn subjectOfMessages;\n\n\t\t} catch (MessageException e) {\n\t\t\tthrow new MessageException(\"List of subject found\");\n\t\t}\n\t}",
"public Hashtable<String, Subject> getMySubjects(){\n\t\treturn mySubjects;\n\t}",
"@RequestMapping(method = RequestMethod.GET)\n //function to return all students\n public Collection<Student> getAllStudent() {\n return studentService.getAllStudent();\n\n }",
"java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList();",
"List<Teacher> selectAll();",
"@Override\n\tpublic List<Subject> getSubjectAll(Integer start, Integer count) {\n\t\tif(null == start){\n\t\t\tstart = 0;\n\t\t}\n\t\tif(null == count){\n\t\t\tcount = 20;\n\t\t}\n\t\treturn subjectDAO.getSubjectAll(start, count);\n\t}",
"List<SchoolMasterVo> getSchoolMasterVoList();",
"public ArrayList<MatchList> getSubjects() { return this.subjects; }",
"public List<User> getUsers();",
"private void getCourseList(){\r\n\r\n CourseDAO courseDAO = new CourseDAO(Statistics.this);\r\n List<Course> courseList= courseDAO.readListofCourses();\r\n for(Course course: courseList) {\r\n courses.add(course.getName());\r\n }\r\n\r\n }",
"public List<User> getUserList();",
"@SuppressWarnings(\"unchecked\")\n\t\t@Override\n\t\tpublic List<Student> listStudent() {\n\t\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Student\").list();\n\t\t}",
"public List<SubjectBean> populatesubject(String sql ){\n\t\t\t\tList<SubjectBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(SubjectBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"public ArrayList getCourses();",
"Subject getSubject(){\n\t\treturn subject;\n\t}",
"public List<UserDTO> getUsers();",
"public void setSubjects(String subjects) {\r\n this.subjects = subjects;\r\n }",
"public List<List<String>> getUserSubjects(int userId) {\r\n \t\r\n \tCollection<Integer> userLikesSource = jungCompleteGraph.getNeighbors(userId);\r\n \tuserLikesSource.containsAll(getSourceNodes());\r\n \tList<List<String>> userSubjects = new ArrayList<List<String>>();\r\n \t\r\n \tfor (Integer ver: userLikesSource) {\r\n \t\tList<String> tmp = new ArrayList<>();\r\n \t\t\r\n \t\tfor (String edge :jungCompleteGraph.getOutEdges(ver)){\r\n \t\t\tif(edge.contains(\"http://purl.org/dc/terms/subject\")){\r\n \t\t\t\tList<String> tokens = Arrays.asList(getURI(jungCompleteGraph.getDest(edge)).replace(\"http://dbpedia.org/resource/Category:\", \"\").split(\"_\")); \r\n \t\t\t\ttmp.addAll(tokens);\r\n \t\t\t}\r\n \t\t}\r\n \t\tuserSubjects.add(tmp);\r\n \t}\r\n \treturn userSubjects;\r\n \t\r\n }",
"@RequestMapping(\"/Subject/ListBySearch\")\n\t@ResponseBody\n\tpublic List<SubjectVo> getSubjectBySearch(@RequestParam HashMap<String, Object> map){\n\t\t\n\t\tSystem.out.println(map);\n\t\t\n\t\tList<SubjectVo> subjectList = subjectService.getSubjectBySearch(map); \n\t\t\n\t\tSystem.out.println(subjectList);\n\t\t\n\t\treturn subjectList;\n\t}",
"List<User> getUsers();",
"List<User> getUsers();",
"public void loadSubjectName(){ \n\t\t try {\n\n\t\t\t\tConnection con = DBConnection.connect();\n\n\t\t\t\tString query=\"select * from SUbjects \";\n\t\t\t\tPreparedStatement pst=con.prepareStatement(query);\n\t\t\t\tResultSet rs=pst.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tString name =rs.getString(\"SubjectName\");\n\t\t\t\t\tsubname.addItem(name);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tcon.close();\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n}",
"public void setSubject(List<String> subject) {\n\t this.subject = subject;\n\t}",
"public Subject getSubject();",
"@Override\n\tpublic List<SubjectEntity> queryPubSubList(String subject_id) {\n\t\tStringBuffer sql = new StringBuffer();\n\t\tsql.append(\" select subject_id,subject_name,subject_introduction,subject_image,subject_url,subject_keyword\");\n\t\tsql.append(\" from tb_subject where subject_state=5 and subject_id not in (?) order by subject_publishdate desc limit 0,8\");\n\t\treturn this.queryList(sql.toString(), new Object[]{subject_id}, new BeanPropertyRowMapper(SubjectEntity.class));\n\t}",
"@Override\n\tpublic List<SubjectsType> findAll() {\n\t\ttry {\n\t\t\treturn subjectsTypeRepository.findAll();\n\t\t} catch (Exception e) {\n\t\t\tlog.error(e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}",
"static List<Student> getStudents() {\n return students;\n }",
"public List<User> list();",
"public void setSubjects(List<ACSubjectInfo> subjects) {\n this.subjects = subjects;\n }",
"public void ShowInTeacherList(){\n \n for (TeacherBean tb : t_list) {\n this.t_model.addElement(tb); \n }\n}",
"java.util.List<People>\n getUserList();",
"@RequestMapping(value=\"/students\", method=RequestMethod.GET) //MediaType.APPLICATION_XML_VALUE\r\n\tpublic List<Student> getStudentsList() {\r\n\t\tArrayList<Student> list = new ArrayList<Student>();\r\n\t\tlist.add(new Student(\"Kaja\", \"Piloun\", \"123465\", 25, null));\r\n\t\tlist.add(new Student(\"Paja\", \"Pilouna\", \"123465\", 25, null));\r\n\t\tlist.add(new Student(\"Vaja\", \"Pilounen\", \"123465\", 25, null));\r\n\t\t\r\n\t\treturn list;\r\n\t}",
"private void LoadSubjectToCBO() {\n\n List<MonHoc> monHocs = monHocDAO.getAll();\n for (MonHoc monHoc : monHocs) {\n cbsuject.addItem(monHoc.getTenmonhoc());\n }\n }",
"void getCboSubject(){ \n cboSubject.removeAllItems();\n cboSubject.addItem(\"--- Select ---\");\n try {\n clsCon.setRs(clsCon.getStmt().executeQuery(\"select SubjectName from qTimetable where CourseID=\"+lblCourse.getText()+\" and SemesterID='\"+lblSemester.getText()+\"' and ClassID='\"+lblClass.getText()+\"' and Active = 1 group by SubjectName\"));\n if(clsCon.getRs().first()){ \n do{\n cboSubject.addItem(clsCon.getRs().getString(\"SubjectName\"));\n }while(clsCon.getRs().next());\n }\n }\n catch(SQLException e){}\n }",
"ObservableList<User> getUserList();",
"@Override\n\tpublic List<Integer> findAllSubjectId() {\n\t\tList<Integer> result = new ArrayList<Integer>();\n\t\tList<Subject> list = dao.findAll();\n\t\tfor (Subject subject : list) {\n\t\t\t\n\t\t\tresult.add(subject.getSubjectId());\t\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"List<User> getAllUsers();",
"List<User> getAllUsers();",
"public List<User> list();",
"@Override\n\t@Transactional\n\tpublic List<Student> getStudents() {\n\t\tAuthentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\tString username = authentication.getName();\n\t\tSystem.out.println(\"The username is: \"+username);\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\tQuery<Student> query = currentSession.createQuery(\"from Student s where s.username='\"+username+\"'\", Student.class);\n\t\t\n List<Student> students = query.getResultList();\n\t\t\n\t\treturn students;\n\t}",
"public List getAllUsers();",
"List<Question> getQuestions();",
"public List getSubjectVariables() {\r\n return subjectVariables;\r\n }",
"private void fillSubjectCombo() throws SQLException, ClassNotFoundException {\n ArrayList<Subject> subjectList = SubjectController.getAllSubject();\n //subjectList.removeAllItems();\n for (Subject subject : subjectList) {\n subjectCombo.addItem(subject);\n\n }\n }",
"public List<SubjectBean> populateStudent(String sql ){\n\t\t\t\t\tList<SubjectBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(SubjectBean.class));\n\t\t\t\t\t\treturn retlist;\n\t\t\t }",
"public Subject getEachSubject(int subject_id) {\n\t\treturn sub_dao.getEachSubject(subject_id);\r\n\t}",
"List<Course> selectAll();",
"public ArrayList <Students> getStudentList ()\n\n {\n\n // Returns studentList when called.\n return studentList;\n\n }",
"@GET\n\t@Path(\"/{title}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Collection<Subject> getSubjects(@PathParam(\"title\") String title){\n\t\t\n\t\tArrayList<Subject> subjects = new ArrayList<Subject>();\n\t\tfor(Subject s: Database.subjects.keySet()){\n\t\t\ttry {\n\t\t\t\tif(s.getTitle().equals(URLDecoder.decode(title, \"UTF-8\"))){\n\t\t\t\t\tsubjects.add(s);\n\t\t\t\t}\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn subjects;\n\t}",
"public interface SubjectView {\n\n void getSubjects(List<Subject> subjectList);\n void deleteSubject(int deletedCount);\n}",
"List<UserDTO> getAllUsers();",
"@GetMapping(\"/students\")\n\tpublic List<Student> getStudents(){\n\t\n\t\treturn theStudents;\n\t}",
"public List getUsers(User user);",
"public ArrayList<User> getArrayList(){\n return userlist;\n }",
"public UserList list();",
"public String getAllSubjects (){\n MongoCursor<Document> cursor = subject.find().iterator();\n boolean hasOne = false;\n String json = \"{\\\"result\\\":[\";\n while (cursor.hasNext()){\n Document c = (Document)cursor.next();\n json +=c.toJson()+\",\";\n hasOne = true;\n }\n if (hasOne) json = json.substring(0,json.length()-1);\n json+=\"]}\";\n return json;\n}",
"public List getUsuarios();",
"public List<User> getAllUsers();",
"public ArrayList<Student> studentList()\n {\n ArrayList<Student> studentList = new ArrayList<>();\n try\n {\n DatabaseConnection databaseConnection = new DatabaseConnection();\n String query = \"select * from student\";\n ResultSet rs = databaseConnection.s.executeQuery(query);\n Student student;\n while(rs.next())\n {\n student = new Student(rs.getInt(\"student_id\"), rs.getString(\"student_name\"), rs.getString(\"batch\"), rs.getString(\"student_username\"), rs.getString(\"student_password\"));\n studentList.add(student);\n }\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(null, e);\n }\n return studentList;\n }",
"public void findallstudentservice() {\n\t\t dao.findallstudent();\r\n\t\t\r\n\t}",
"List<User> selectAll();",
"List<User> selectAll();",
"List<SysUser> selectAll();",
"List<Poll> findBySubject(String subject);",
"@Override\r\n public List<String> getStudenti() {\r\n List<Studente> listaStudenti = studenteFacade.findAll();\r\n List<String> result = new ArrayList<>();\r\n\r\n for (Studente s : listaStudenti) {\r\n result.add(s.toString());\r\n }\r\n return result;\r\n }",
"public List<People> getPeople();",
"public List<User> getAllUsers(){\n myUsers = loginDAO.getAllUsers();\n return myUsers;\n }",
"@Override\n\tpublic List<Users> listTeacher() {\n\t\treturn genericDAO.listTeacher();\n\t}",
"@Override\r\n\tpublic Subjects getById( int id) {\n\t\treturn subectsDao.getById( id);\r\n\t}",
"List<TSubjectInfo> selectByExample(TSubjectInfoExample example);",
"@Override\r\n\tpublic Object getList() {\n\t\treturn userDao.getList();\r\n\t}",
"Collection<User> getStaffs() throws DataAccessException;",
"public List<Employee> getEmployees();",
"public List<EmployeeDetails> getEmployeeDetails();",
"@Override\r\n\tpublic List<Student> getAll() {\n\t\treturn dao.getAll();\r\n\t}",
"List<NominatedStudentDto> showAll();",
"java.util.List<hr.domain.ResumeDBOuterClass.Resume> \n getResumesList();",
"public List<Utilizator> listUsers();",
"public ArrayList<Student> getStudents()\n {\n return students;\n }",
"public List<User> getAllStudent() {\n\t\t return userDao.getAllUsers();\r\n\t }"
] | [
"0.766815",
"0.7593679",
"0.74119717",
"0.7361582",
"0.7219779",
"0.71056134",
"0.70440835",
"0.70196164",
"0.69342375",
"0.687295",
"0.687108",
"0.6839829",
"0.68021005",
"0.6774982",
"0.67567146",
"0.67291903",
"0.6709943",
"0.66570675",
"0.6593394",
"0.6584767",
"0.65350455",
"0.651915",
"0.65116477",
"0.6440456",
"0.6431618",
"0.63845575",
"0.6370708",
"0.63685787",
"0.63486344",
"0.6341065",
"0.6325537",
"0.62758666",
"0.6272058",
"0.6252855",
"0.62501776",
"0.62494516",
"0.6234679",
"0.6231015",
"0.6226395",
"0.6215076",
"0.6215076",
"0.62147135",
"0.6212606",
"0.6206431",
"0.6199923",
"0.61983955",
"0.61781687",
"0.61553204",
"0.6131971",
"0.6120041",
"0.61143434",
"0.6086973",
"0.6079911",
"0.6078164",
"0.60738933",
"0.60736364",
"0.6065621",
"0.6065621",
"0.6059416",
"0.6048821",
"0.6044533",
"0.6037806",
"0.60252273",
"0.60226864",
"0.6009752",
"0.6004806",
"0.6001332",
"0.59997016",
"0.5999057",
"0.5995391",
"0.5993627",
"0.598999",
"0.598235",
"0.5971703",
"0.5964644",
"0.5958128",
"0.5946126",
"0.5942327",
"0.59397364",
"0.59394073",
"0.59377694",
"0.59377694",
"0.59368706",
"0.59337133",
"0.59235954",
"0.59218806",
"0.59180486",
"0.5916896",
"0.59121263",
"0.5911565",
"0.59083486",
"0.59069574",
"0.5899476",
"0.5898665",
"0.58929735",
"0.5890876",
"0.5890144",
"0.58869123",
"0.58849835",
"0.588341"
] | 0.70485634 | 6 |
Subject t = new Subject(name,Integer.parseInt(needComputer),Integer.parseInt(semester)); userBean.addSubject(t); | @RequestMapping(value = "/subject", method = RequestMethod.POST)
public ModelAndView addSubject(HttpServletRequest request,
@RequestParam(name = "name") String name,
@RequestParam(name = "needComputer") String needComputer,
@RequestParam(name = "semester") String semester) {
return new ModelAndView("subject");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Subject addSubject(Subject subject) {\r\n\r\n\t\t\r\n//\t\tlong k = subject.getCourse().getCourseid();\r\n//\t\tint i = (int) k;\r\n//\t\tOptional<Course> op = courserepositor.findById(i);\r\n//\r\n//\t\tif (op.isEmpty() && subject.getCourse().equals(null))// throws exception\r\n//\t\t{\r\n//\t\t\tthrow new SubjectException(\"Course not find \");\r\n//\t\t} else\r\n//\t\t\tsubject.setCourse(op.get());\r\n\t\tlogger.info(\"*** Service : Subject added successfully. ***\");\r\n\t\treturn subjectRepository.save(subject);\r\n\t}",
"public static int add(Subject e) {\n int status = 0;\n try {\n String sqlInsert = \"insert into subjects(subject_code,subject_name,faculty_id,lect_id)\"\n + \"values(?,?,?,?)\";\n PreparedStatement pstmt = MySQL.getConnection().prepareStatement(sqlInsert);\n pstmt.setString(1, e.getSubjectCode());\n pstmt.setString(2, e.getSubjectName());\n pstmt.setInt(3, e.getFacultyID());\n pstmt.setInt(4, e.getLectID());\n status = pstmt.executeUpdate();\n } catch (SQLException ex) {\n ex.getMessage();\n }\n return status;\n }",
"public static void addSubject(ArrayList<Course> courses){\n Scanner input = Institute.scanIn();\n\n String code;\n String name;\n int hours;\n\n Course.printAllCourses(courses);\n int progressiveNumber = input.nextInt();\n\n if(Course.searchCourse(courses, progressiveNumber) == -1){\n System.out.println(\"Corso non presente in archivio\");\n }\n else{\n System.out.print(\"Enter the subject code: \");\n code = input.next();\n System.out.print(\"Enter the name: \");\n name = input.next();\n System.out.print(\"Enter the hours: \");\n hours = input.nextInt();\n courses.get(Course.searchCourse(courses, progressiveNumber)).setSubject(code, name, hours);\n\n System.out.println(\"Materia inserita con successo!\");\n }\n }",
"boolean insertUser(SchoolSubject schoolSubject);",
"public void addSubject(Subject subject) {\n\t\t\r\n\t}",
"public void addSubject(Subject subject) {\n\t\tsub_dao.addSubject(subject);\r\n\t\t\r\n\t}",
"public void addSubject(Subject s) {\n // TODO implement here\n }",
"private void createSubject(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n // Formulareingaben prüfen\n String name = request.getParameter(\"name\");\n\n Subject subject = new Subject(name);\n List<String> errors = this.validationBean.validate(subject);\n\n // Neue Kategorie anlegen\n if (errors.isEmpty()) {\n this.subjectBean.saveNew(subject);\n }\n\n // Browser auffordern, die Seite neuzuladen\n if (!errors.isEmpty()) {\n FormValues formValues = new FormValues();\n formValues.setValues(request.getParameterMap());\n formValues.setErrors(errors);\n\n HttpSession session = request.getSession();\n session.setAttribute(\"subjects_form\", formValues);\n }\n\n response.sendRedirect(request.getRequestURI());\n }",
"public void add(Subject e) {\n\t\tsubjectdao.add(e);\n\t}",
"public static void addSubject(Subject subject) {\n subjects.add(subject);\n homework.add(new ArrayList<>());\n Log.d(\"Storage\", \"ListSize: homework: \" + homework.size());\n grades.add(new ArrayList<>());\n Log.d(\"Storage\", \"ListSize: grades: \" + grades.size());\n }",
"public Subject(int id, String name){\n this.name = name;\n this.id = id;\n }",
"public void addSubject(String value) {\n/* 321 */ addStringToBag(\"subject\", value);\n/* */ }",
"private void addStudent() {\n\t\t\n\t\tString lastName = sLastNameTF.getText();\n\t\tString firstName = sFirstNameTF.getText();\n\t\tString schoolName = sSchoolNameTF.getText();\n\t\tchar[] password = sPasswordPF1.getPassword();\n\t\tString sA1 = sSecurityQ1TF.getText();\n\t\tString sQ1 = (String)sSecurityList1.getSelectedItem();\n\t\tString sA2 = sSecurityQ2TF.getText();\n\t\tString sQ2 = (String)sSecurityList2.getSelectedItem();\n\t\tString grade = (String)sGradeList.getSelectedItem();\n\t\t\n\t\tstudent = new Student(lastName, firstName, schoolName, password, sA1, sQ1, sA2, sQ2, grade);\n\t\t\n\t\t//Add student to database\n\t\t\n\t}",
"@Override\n\tpublic String addSubjects(Subject[] subject) throws myException {\n\t\tString str = null;\n\t\tConnection con = GetConnection.getConnection();\n\t\tPreparedStatement st = null;\n\t\tString query2 = \"insert into subject values(?,?,?)\";\n\t\ttry {\n\n\t\t\tfor (int i = 0; i < subject.length; i++) {\n\t\t\t\tst = con.prepareStatement(query2);\n\t\t\t\tst.setShort(1, subject[i].getSubjectId());\n\t\t\t\tst.setString(2, subject[i].getSubjectName());\n\t\t\t\tst.setString(3, subject[i].getTeacherName());\n\t\t\t\tst.execute();\n\t\t\t}\n\t\t\tstr = \"subjects added successfully\";\n\t\t} catch (Exception e) {\n\t\t\tthrow new myException(e.getMessage());\n\t\t}\n\n\t\treturn str;\n\t}",
"public UserImplPart1(int studentId, String yourName, int yourAge,int yourSchoolYear, String yourNationality){\n this.studentId = studentId;\n this.name= yourName;\n this.age = yourAge; \n this.schoolYear= yourSchoolYear;\n this.nationality= yourNationality;\n}",
"public void setSubject(Subject subject);",
"org.hl7.fhir.ResourceReference addNewSubject();",
"public int insert(Subject subject){\n\t int id = -1;\n SqlSession session = sqlSessionFactory.openSession();\n\n try {\n id = session.insert(\"Subject.insert\", subject);\n } finally {\n session.commit();\n session.close();\n }\n System.out.println(\"insert(\"+subject+\") --> \"+subject.getId());\n return id;\n }",
"Course(Subject subject){\n \t\tthis.subject = subject;\n\t\tdaysToRun = subject.getDuration();\n\t\tenrolled = new ArrayList<Student>();\n\t\tcancelled = false;\n\t\tfinished = false;\n \t}",
"public Student(int studentId) \r\n {\r\n\r\n this.studentId = studentId;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }",
"public SubjectClass() {\n }",
"public static void setsemesterId(int semesterId) {\n ListOfSubjects.semesterId =semesterId;\n\n }",
"private void addTeacher() {\n\t\t\n\t\tString lastName = tLastNameTF.getText();\n\t\tString firstName = tFirstNameTF.getText();\n\t\tString schoolName = tSchoolNameTF.getText();\n\t\tString userName = tUsernameTF.getText();\n\t\tchar[] password = tPasswordPF1.getPassword();\n\t\tString sA1 = tSecurityQ1TF.getText();\n\t\tString sQ1 = (String)tSecurityList1.getSelectedItem();\n\t\tString sA2 = tSecurityQ2TF.getText();\n\t\tString sQ2 = (String)tSecurityList2.getSelectedItem();\n\t\t\n\t\tteacher = new Teacher(lastName, firstName, schoolName, userName, password, sA1, sQ1, sA2, sQ2);\n\t\t\n\t\t//Add teacher to database \n\t\t\n\t}",
"public Teacher() {\n// coursesTaught = new ArrayList<Course>();\n }",
"public Subject(String code, String name, int semester, int yearOfStuding, Professor professor) {\n\t\tsuper();\n\t\tthis.code = code;\n\t\tthis.name = name;\n\t\tthis.semester = semester;\n\t\tthis.yearOfStuding = yearOfStuding;\n\t\tthis.professor = professor;\n\t\tthis.students = new ArrayList<Student>() {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = 2595655369364615933L;\n\n\t\t\t\n\t\t};\n\t}",
"public Subject(String code, String name, int semester, int yearOfStuding, Professor professor,\n\t\t\tArrayList<Student> students) {\n\t\tsuper();\n\t\tthis.code = code;\n\t\tthis.name = name;\n\t\tthis.semester = semester;\n\t\tthis.yearOfStuding = yearOfStuding;\n\t\tthis.professor = professor;\n\t\tthis.students = students;\n\t}",
"public void addStudent(Student student);",
"public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchalee\";\n grade = 12;\n studentNumber = 2185;\n }",
"public void setSubject(String s)\r\n {\r\n mySubject = s;\r\n }",
"public Subject() {\n\t}",
"public Student(String studentId){\n id = studentId;\n }",
"public void setSubject(String subject)\n {\n _subject = subject;\n }",
"public SalesPieChart(ISubject subject)\r\n {\r\n salesDetails = subject;\r\n salesDetails.register(this); // Registering itself to the Subject\r\n }",
"void insertfacultydata(Faculty fac_insert);",
"public Subject(String subjectName, String course, String semester, String language) {\n this.subjectName = subjectName;\n this.course = course;\n this.semester = semester;\n this.subjectId = subjectCodes.get(subjectName);\n this.language = language;\n if (language.equals(ENGLISH)) {\n this.subjectId += \".I\";\n }\n }",
"public College()\r\n {\r\n students = new ArrayList<Student>();\r\n }",
"public void testRegisterSubjectForStudent() {\n System.out.println(\"registerSubjectForStudent\");\n Map<String, Object> request = null;\n RegisterService instance = new RegisterService();\n instance.registerSubjectForStudent(request);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"int insert(Subject record);",
"@Secured(\"ROLE_ADMIN\")\n\t@RequestMapping(method=RequestMethod.POST)\n\tpublic SubjectEntity addNewSubject(@Valid @RequestParam String subjName) {\n\t\tSubjectEntity subject = new SubjectEntity();\n\t\tsubject.setSubjName(subjName);\n\t\tsubjectRepository.save(subject);\n\t\treturn subject;\n\t}",
"public void addEducation(Education e) {\n ed.add(e);\n}",
"void getCboSubject(){ \n cboSubject.removeAllItems();\n cboSubject.addItem(\"--- Select ---\");\n try {\n clsCon.setRs(clsCon.getStmt().executeQuery(\"select SubjectName from qTimetable where CourseID=\"+lblCourse.getText()+\" and SemesterID='\"+lblSemester.getText()+\"' and ClassID='\"+lblClass.getText()+\"' and Active = 1 group by SubjectName\"));\n if(clsCon.getRs().first()){ \n do{\n cboSubject.addItem(clsCon.getRs().getString(\"SubjectName\"));\n }while(clsCon.getRs().next());\n }\n }\n catch(SQLException e){}\n }",
"static public Integer addSubjectMark(Student student, Subject subject, double value, int weight,\n\t\t\t\tString description){\n\t Session session = HibernateUtil.getSessionFactory().openSession();\n\t Transaction tx = null;\n\t Integer subjectMarkID = null;\n\t try{\n\t tx = session.beginTransaction();\n\t SubjectMark subjectMark = new SubjectMark(student, subject, value, weight, description);\n\t subjectMarkID = (Integer) session.save( subjectMark); \n\t tx.commit();\n\t }catch (HibernateException e) {\n\t if (tx!=null) tx.rollback();\n\t e.printStackTrace(); \n\t }finally {\n\t session.close(); \n\t }\n\t return subjectMarkID;\n\t }",
"public Student(){//default constructor \r\n ID_COUNTER++;\r\n studentNum = ID_COUNTER;\r\n firstName = \"\";\r\n lastName = \"\";\r\n address = \"\";\r\n loginID = \"\";\r\n numCredits = 0;\r\n totalGradePoints = 0;\r\n }",
"public void setSubjects(String subjects) {\r\n this.subjects = subjects;\r\n }",
"public void loadSubjectName(){ \n\t\t try {\n\n\t\t\t\tConnection con = DBConnection.connect();\n\n\t\t\t\tString query=\"select * from SUbjects \";\n\t\t\t\tPreparedStatement pst=con.prepareStatement(query);\n\t\t\t\tResultSet rs=pst.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tString name =rs.getString(\"SubjectName\");\n\t\t\t\t\tsubname.addItem(name);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tcon.close();\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n}",
"public Subject createSubject(Subject subject);",
"public void addStudent(User user) {\n\t\t\r\n\t}",
"public Student() \r\n {\r\n studentId = 0;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }",
"public void add(Teacher teacher) {\n Session session = sessionFactory.getCurrentSession();\n Transaction transaction = session.beginTransaction();\n session.save(teacher);\n transaction.commit();\n }",
"public void insertCourse(){\n \n }",
"public void addStudent(Student student) {\n\t\t\r\n\t}",
"public void setSubject(String subj) {\n/* 296 */ getCOSObject().setString(COSName.SUBJ, subj);\n/* */ }",
"public void setSubject (String s) {\n subject = s;\n }",
"Student4(int i, String n) {\n id = i;\n name = n;\n\n }",
"public void setSubject(String subject)\r\n {\r\n m_subject = subject;\r\n }",
"Subject getSubject(){\n\t\treturn subject;\n\t}",
"@Override\n public void addStudent(String firstName, String lastName, int age, Set<Course> courses) {}",
"private void jbt_addTeacherActionPerformed(java.awt.event.ActionEvent evt) {\n String name = jtf_TeacherName.getText();\n //Teachers t = new Teachers(name);\n TeacherList.add(name);\n\n listdisplay.addElement(name);\n\n jlist_teacher.setModel(listdisplay);\n\n }",
"public Student(){\n firstName = \"\";\n lastName = \"\";\n bootcamp = \"\";\n id = 42;\n grade = 1.0;\n }",
"protected void add(HttpServletRequest request) throws ClassNotFoundException, SQLException{\n if(!request.getParameter(\"nome\").equals(\"\")){\n //Adiciona pessoa\n PessoaDAO dao = new PessoaDAO(); \n //String acao = request.getParameter(\"add\");\n int id = 0;\n for(Pessoa t:dao.findAll()){\n id =t.getId();\n }\n id++; \n Pessoa p = new Pessoa(new Integer((String)request.getParameter(\"id\")),request.getParameter(\"nome\"),request.getParameter(\"telefone\"),request.getParameter(\"email\"));\n dao.create(p);\n }\n }",
"public void setSubject(List<String> subject) {\n\t this.subject = subject;\n\t}",
"@Override\n\tpublic void addProfessor(Professor add1) {\n\t\ttry{\n\t\t\tstmt=conn.prepareStatement(\"INSERT INTO Professor(ssn,name,department,password) VALUES(?,?,?,?)\");\n\t\t\tstmt.setString(1, add1.getSsn());\n\t\t\tstmt.setString(2,add1.getName());\n\t\t\tstmt.setString(3, add1.getDepartment());\n\t\t\tstmt.setString(4, \"123456\");//Δ¬ΘΟΓάΒλ\n\t\t\t\n\t\t\t\n\t\t\tstmt.executeUpdate();\n\t\t\t}catch(SQLException e){\n\t\t\t\tex=e;\n\t\t\t}finally{\n\t\t\t\tif(conn!=null){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tconn.close();\n\t\t\t\t\t}catch(SQLException e){\n\t\t\t\t\t\tif(ex==null){\n\t\t\t\t\t\t\tex=e;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif(ex!=null){\n\t\t\t\tthrow new RuntimeException(ex);\n\t\t\t}\n\t\t\t}\n\t}",
"public GradeBook2( String name )\n {\n courseName = name; // initializes courseName\n }",
"public void setSubject(String subject) {\n this.subject = subject;\n }",
"public void setSubject(String subject) {\n this.subject = subject;\n }",
"public void setSubject(String subject) {\r\n\t\tthis.subject= subject;\r\n\t}",
"public static Teacher addTeacher() {\n\n\n Teacher newTeacher = new Teacher();\n\n //create a Scanner object to let user make an input\n\n Scanner s = new Scanner(System.in);\n System.out.println(\"Enter the first name\");\n String firstname = s.nextLine();\n newTeacher.setFirstName(firstname);\n\n\n System.out.println(\"Enter the last name\");\n String lastName = s.nextLine();\n newTeacher.setLastName(lastName);\n\n\n System.out.println(\"Enter your email\");\n String yourEmail = s.nextLine();\n newTeacher.seteMail(yourEmail);\n\n\n System.out.println(\"Enter your ID number\");\n String yourID = s.nextLine();\n newTeacher.setNumberID(yourID);\n\n System.out.println(\"Enter the class that teacher teaches\");\n String teaches = s.nextLine();\n// newTeacher.setTeaches(teaches);\n\n\n return newTeacher;\n\n }",
"public Student(String name, String gender, String email){\n this.name = name;\n this.gender = gender;\n this.email = email;\n this.course1 = new Course();\n this.course2 = new Course();\n this.course3 = new Course();\n }",
"public Student( String name ) {\n sname=name;\n }",
"public ReservaBean() {\r\n nrohabitacion=1;\r\n createLista(nrohabitacion);\r\n editable=true;\r\n sino=\"\";\r\n \r\n reserva = new TReserva();\r\n }",
"public void setSubject(Name subject) {\r\n this.subject = subject;\r\n }",
"public GradeBook (String name){ //Constructor\n\t\tcourseName=name;\n//\t\tstudents = studentNum;\n\t}",
"Student4(int i, String n, int t) {\n id = i;\n name = n;\n age = t;\n\n }",
"public StudentFee() {\n }",
"public Student(Name name, Phone phone, Email email, Address address, Set<Tag> tags, List<Subject> subjects) {\n super(name, phone, email, address, tags);\n subjectList = new ArrayList<>(subjects);\n }",
"int insert(TSubjectInfo record);",
"Student(String name){\n this.name = name;\n }",
"public void setSubject(Subject subject) {\n\t\tthis.subject = subject;\n\t}",
"public void add(Student s)\r\n {\r\n students.add(s);\r\n }",
"public void allotSubject(int row,String sid) throws SQLException, ClassNotFoundException {\r\n\t\t//insert into finalfaculty\r\n\t\tthis.insertIntoFinalFaculty(row, sid);\r\n\t\t\r\n\t\tthis.deductCredit(row, sid);\r\n\t\t//delete from subject table\r\n\t\tthis.removeFromSubject(sid);\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n tn = new javax.swing.JTextField();\n tp = new javax.swing.JTextField();\n yr = new javax.swing.JComboBox<>();\n br = new javax.swing.JComboBox<>();\n lec = new javax.swing.JComboBox<>();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n sal = new javax.swing.JComboBox<>();\n tid = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n subj = new javax.swing.JComboBox<>();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setTitle(\"Add Teacher\");\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n formWindowActivated(evt);\n }\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jPanel1.setBackground(new java.awt.Color(153, 0, 153));\n\n jLabel1.setText(\"Teacher ID:\");\n\n jLabel2.setText(\"Teacher Name:\");\n\n jLabel3.setText(\"Password\");\n\n jLabel4.setText(\"Lectures per week:\");\n\n jLabel5.setText(\"Year\");\n\n jLabel6.setText(\"Branch\");\n\n tn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tnActionPerformed(evt);\n }\n });\n\n tp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tpActionPerformed(evt);\n }\n });\n\n yr.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Choose Year\" }));\n\n br.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Choose Branch\" }));\n\n lec.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"6\", \"5\", \"4\", \"3\", \"2\", \"1\" }));\n\n jButton1.setText(\"Add\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Clear\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Back\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n sal.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Dr.\", \"Mr.\", \"Mrs.\" }));\n sal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n salActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Subjects\");\n\n subj.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Choose Subject\" }));\n\n jButton4.setText(\"Load Subjects\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jButton5.setText(\"Load Branch\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\n jLabel8.setText(\"Add Teacher\");\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(32, 32, 32)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel6)\n .addComponent(jLabel5)\n .addComponent(jLabel3)\n .addComponent(jLabel1)\n .addComponent(jLabel7)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 95, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tp, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(sal, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tn, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(tid, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(yr, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(br, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(subj, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton4)\n .addComponent(jButton5)))\n .addComponent(lec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(6, 6, 6))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(110, 110, 110)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton3))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(159, 159, 159)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 19, Short.MAX_VALUE)\n .addComponent(tid, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(tn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(sal, 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(jLabel3)\n .addComponent(tp, 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(yr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(br, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton4))\n .addGap(4, 4, 4)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(subj, 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(lec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 76, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2)\n .addComponent(jButton3))\n .addGap(26, 26, 26))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }",
"public University(String name){\n this.name = name;\n }",
"Employee(int id, String name, String birthDate, int eage, double esalary){\r\n ID=id; \r\n NAME=name; \r\n BIRTHDATE=birthDate; \r\n age=eage; \r\n salary=esalary; \r\n }",
"public void ShowInTeacherList(){\n \n for (TeacherBean tb : t_list) {\n this.t_model.addElement(tb); \n }\n}",
"@Override\r\n\t\tpublic boolean addTeacher(TeacherDto teacherDto) {\n\t\t\ttry{\r\n\t\t\t\tList<Teacher> list = teacherRepository.findBySubjectAndStudentid(teacherDto.getSubject(), teacherDto.getStudentid());\r\n\t\t\t\t\t\tif (list.size() > 0) {\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\t\t\r\n\t\t\tArrayList arr=new ArrayList<>();\r\n\t\t\tarr.add(\"MATHS\");\r\n\t\t\tarr.add(\"PHYSICS\");\r\n\t\t\tarr.add(\"CHEMISTRY\");\r\n\t\t\tif(!arr.contains(teacherDto.getSubject()))\r\n\t\t\t{\r\n\t\t\tTeacher teacher=teacherRepository.save(TeacherTransformer.getTeacherDtoToEntity(teacherDto));\r\n\t\t\tStudent student = restTemplate.getForObject(\"http://localhost:8080/studentservice/students/\" + teacher.getStudentid(),Student.class);\r\n\t if(teacher.getSubject().toUpperCase().equals(\"MATHS\"))\r\n\t\t\t{\r\n\t\t\t\tstudent.setMaths(teacher.getMarks());\r\n\t\t\t}else if(teacher.getSubject().toUpperCase().equals(\"PHYSICS\"))\r\n\t\t\t{\r\n\t\t\t\tstudent.setPhysics(teacher.getMarks());\r\n\t\t\t}\r\n\t\t\telse if(teacher.getSubject().toUpperCase().equals(\"CHEMISTRY\")) \r\n\t\t\t{\r\n\t\t\t\tstudent.setChemistry(teacher.getMarks());\r\n\t\t\t}else {}\r\n\t\t\t\t\trestTemplate.postForObject(\"http://localhost:8080/studentservice/students/update\", StudentTransformer.getStudentEntityToDto(student), StudentDto.class);\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\t}catch(Exception e)\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}",
"public ClassRoom (String course, String teacher)\r\n {\r\n this.course = course;\r\n this.teacher = teacher;\r\n }",
"public static void addStudent(Student student) throws SQLException {\r\n\t String sql = \" INSERT INTO Studentspring VALUES (?,?,?,?,?)\";\r\n\t PreparedStatement pStmt = con.prepareStatement(sql);\r\n\r\n\t String Name=student.getName();\r\n\t int Age=student.getAge();\r\n\t String Course=student.getCourse();\r\n\t int Year=student.getYear();\r\n\t String Section=student.getSection();\r\n\t \r\n\t pStmt.setString(1, Name);\r\n\t pStmt.setInt(2,Age);\r\n\t pStmt.setString(3,Course);\r\n\t pStmt.setInt(4,Year );\r\n\t pStmt.setString(5,Section);\r\n\r\n\t pStmt.executeUpdate();\r\n\t \r\n\t }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n PrintWriter out = response.getWriter();\r\n \r\n // Get Session Creation Variables set up by Professor\r\n String students = request.getParameter(\"numStudents\");\r\n String course = request.getParameter(\"Courses\"); \r\n String date = request.getParameter(\"date\"); \r\n \r\n try { \r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Connection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PaperlesstesTingSystem\",\r\n\t\t\"root\",\"password\"); \r\n PreparedStatement pst = con.prepareStatement(\"Insert into CourseTaught (CourseID, date, numberOfStudents) VALUES (?,?,?)\");\r\n pst.setString(1, course);\r\n pst.setString(2, date);\r\n pst.setString(3, students);\r\n pst.executeQuery(); \r\n\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(postCreteSession.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (SQLException e) {\r\n out.println(\"SQL Exception\"); \r\n }\r\n \r\n \r\n }",
"public void addSubject(String newsubject) {\n\t\tsubjects.add(newsubject);\n\t\tSystem.out.println( newsubject + \" Subject added\");\n\t}",
"void addCourse(Course course);",
"public Subject getSubject(){\n\t\treturn sub;\n\t}",
"public static Course addCourse() {\n\n Course newCourse = new Course();\n\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter the name of course\");\n String courseName = scan.nextLine();\n newCourse.setCourseName(courseName);\n\n System.out.println(\"Enter course ID number\");\n String numberID = scan.nextLine();\n newCourse.setCourseID(numberID);\n\n System.out.println(\"Enter the first and last name of teacher\");\n String name = scan.nextLine();\n\n// newCourse.setTaughtBy(name);\n\n System.out.println(\"Enter the first and last name of student\");\n String name2 = scan.nextLine();\n\n// newCourse.setTakenBy(name2);\n\n\n return newCourse;\n\n }",
"public String addStudent() {\r\n\t\tint rollnumber, no_of_courses = 0;\r\n\t\tString studname, coursename, courseid;\r\n\t\tSystem.out.println(\"Enter the Student rollnumber: \");\r\n\t\trollnumber=sc.nextInt();\r\n\t\tfor(int i=0;i<count;i++)\r\n\t\t{\r\n\t\tif(rollnumber==students[i].getRollNumber()) {\r\n\t\t\treturn (\"Sorry the Roll number is already taken!!\");\r\n\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter the Student name: \");\r\n\t\tstudname=sc.next();\r\n\t\tSystem.out.println(\"Enter the Number of courses student want to enroll: \");\r\n\t\tno_of_courses=sc.nextInt();\r\n\t\tCourses [] courses=new Courses[no_of_courses];\r\n\t\tfor(int i=0;i<no_of_courses;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter the course id: \");\r\n\t\t\tcourseid=sc.next();\r\n\t\t\tSystem.out.println(\"Enter the course name:\");\r\n\t\t\tcoursename=sc.next();\r\n\t\t\tCourses object=new Courses(courseid, coursename);\r\n\t\t\tcourses[i]=object;\r\n\t\t}\t\t\r\n\t\tstudents[count++]=new Student(rollnumber, studname, courses);\r\n\t\treturn \"Student added successfully\";\t\r\n\t}",
"private void fillSubjectCombo() throws SQLException, ClassNotFoundException {\n ArrayList<Subject> subjectList = SubjectController.getAllSubject();\n //subjectList.removeAllItems();\n for (Subject subject : subjectList) {\n subjectCombo.addItem(subject);\n\n }\n }",
"@Override\n\tpublic void gstudentAdd(Gstudent gstudent) {\n\t\tGstudentMapper.gstudentAdd(gstudent);\n\t}",
"protected void insertAttendance(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\n\n\tint user=Integer.parseInt(request.getParameter(\"user\"));\n\tint t=Integer.parseInt(request.getParameter(\"intime\"));\n\tint t1=Integer.parseInt(request.getParameter(\"outtime\"));\n\tString s = request.getParameter(\"date\");\n\tString s1 = request.getParameter(\"details\");\n\t\n\tUserVO userVO=new UserVO();\n\tuserVO.setUser_id(user);\n\t\n\tAttendanceVO v=new AttendanceVO(); \n\tv.setIn_time(t);\n\tv.setOut_time(t1);\n\tv.setDate(s);\n\tv.setDetails(s1);\n\tv.setUserVO(userVO);\n\tAttendanceDAO d=new AttendanceDAO();\n\t\n\td.insertAttendance(v);\n\tresponse.sendRedirect(\"Admin/Form_ManageAttendance.jsp\");\n\n}",
"public void addteacher(Teacher Te){\n this.tlist.add(Te);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n lblFaculty = new javax.swing.JLabel();\n cmbSubjects = new javax.swing.JComboBox();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblStudents = new javax.swing.JTable();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n txtStudentno = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n lblLastname = new javax.swing.JLabel();\n lblFirstname = new javax.swing.JLabel();\n lblMiddlename = new javax.swing.JLabel();\n txtMidterm = new javax.swing.JTextField();\n txtFinals = new javax.swing.JTextField();\n btnSubmit = new javax.swing.JButton();\n jLabel10 = new javax.swing.JLabel();\n cmbCourse = new javax.swing.JComboBox();\n btnSearch = new javax.swing.JButton();\n btnCancel = new javax.swing.JButton();\n jLabel11 = new javax.swing.JLabel();\n SSubject = new javax.swing.JComboBox();\n jLabel12 = new javax.swing.JLabel();\n txtSubjectCode = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n btnSignout = new javax.swing.JButton();\n jLabel14 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jPanel1.setLayout(null);\n\n jLabel1.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel1.setText(\"FACULTY :\");\n jPanel1.add(jLabel1);\n jLabel1.setBounds(200, 70, 50, 14);\n\n lblFaculty.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n lblFaculty.setText(\" \");\n jPanel1.add(lblFaculty);\n lblFaculty.setBounds(260, 70, 140, 13);\n\n cmbSubjects.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n cmbSubjects.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"---CHOOSE---\" }));\n cmbSubjects.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cmbSubjectsItemStateChanged(evt);\n }\n });\n cmbSubjects.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n cmbSubjectsMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n cmbSubjectsMouseExited(evt);\n }\n });\n cmbSubjects.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmbSubjectsActionPerformed(evt);\n }\n });\n jPanel1.add(cmbSubjects);\n cmbSubjects.setBounds(620, 340, 150, 20);\n\n jLabel2.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel2.setText(\"SUBJECTS:\");\n jPanel1.add(jLabel2);\n jLabel2.setBounds(570, 340, 50, 20);\n\n tblStudents.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"\", \"\", \"\", \"\"\n }\n ));\n jScrollPane1.setViewportView(tblStudents);\n\n jPanel1.add(jScrollPane1);\n jScrollPane1.setBounds(0, 364, 1101, 230);\n\n jLabel3.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\n jLabel3.setText(\"LIST OF STUDENTS\");\n jPanel1.add(jLabel3);\n jLabel3.setBounds(0, 340, 110, 17);\n\n jLabel4.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel4.setText(\"SEARCH STUDENT NO.:\");\n jPanel1.add(jLabel4);\n jLabel4.setBounds(150, 100, 101, 14);\n\n txtStudentno.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n jPanel1.add(txtStudentno);\n txtStudentno.setBounds(260, 100, 143, 19);\n\n jLabel5.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel5.setText(\"LASTNAME:\");\n jPanel1.add(jLabel5);\n jLabel5.setBounds(200, 130, 54, 14);\n\n jLabel6.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel6.setText(\"FIRSTNAME:\");\n jPanel1.add(jLabel6);\n jLabel6.setBounds(200, 160, 56, 14);\n\n jLabel7.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel7.setText(\"MIDDLENAME:\");\n jPanel1.add(jLabel7);\n jLabel7.setBounds(190, 190, 69, 14);\n\n jLabel8.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel8.setText(\"MIDTERM GRADE:\");\n jPanel1.add(jLabel8);\n jLabel8.setBounds(170, 230, 83, 14);\n\n jLabel9.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel9.setText(\"FINALS GRADE:\");\n jPanel1.add(jLabel9);\n jLabel9.setBounds(180, 270, 69, 14);\n\n lblLastname.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n lblLastname.setText(\" \");\n jPanel1.add(lblLastname);\n lblLastname.setBounds(260, 130, 143, 13);\n\n lblFirstname.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n lblFirstname.setText(\" \");\n jPanel1.add(lblFirstname);\n lblFirstname.setBounds(260, 160, 143, 13);\n\n lblMiddlename.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n lblMiddlename.setText(\" \");\n jPanel1.add(lblMiddlename);\n lblMiddlename.setBounds(260, 190, 143, 13);\n\n txtMidterm.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n jPanel1.add(txtMidterm);\n txtMidterm.setBounds(260, 230, 143, 19);\n\n txtFinals.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n jPanel1.add(txtFinals);\n txtFinals.setBounds(260, 270, 143, 19);\n\n btnSubmit.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n btnSubmit.setText(\"SUBMIT\");\n btnSubmit.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n btnSubmit.setContentAreaFilled(false);\n btnSubmit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSubmitActionPerformed(evt);\n }\n });\n jPanel1.add(btnSubmit);\n btnSubmit.setBounds(360, 300, 41, 30);\n\n jLabel10.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel10.setText(\"COURSE:\");\n jPanel1.add(jLabel10);\n jLabel10.setBounds(360, 340, 40, 20);\n\n cmbCourse.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n cmbCourse.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"---CHOOSE---\" }));\n cmbCourse.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cmbCourseItemStateChanged(evt);\n }\n });\n jPanel1.add(cmbCourse);\n cmbCourse.setBounds(400, 340, 160, 20);\n\n btnSearch.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n btnSearch.setText(\"SEARCH\");\n btnSearch.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n btnSearch.setContentAreaFilled(false);\n btnSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSearchActionPerformed(evt);\n }\n });\n jPanel1.add(btnSearch);\n btnSearch.setBounds(420, 90, 41, 30);\n\n btnCancel.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n btnCancel.setText(\"CANCEL\");\n btnCancel.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n btnCancel.setContentAreaFilled(false);\n btnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelActionPerformed(evt);\n }\n });\n jPanel1.add(btnCancel);\n btnCancel.setBounds(470, 90, 41, 30);\n\n jLabel11.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel11.setText(\"GRADE SELECTED SUBJECT:\");\n jPanel1.add(jLabel11);\n jLabel11.setBounds(410, 130, 120, 14);\n\n SSubject.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n SSubject.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"---CHOOSE---\" }));\n SSubject.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n SSubjectItemStateChanged(evt);\n }\n });\n jPanel1.add(SSubject);\n SSubject.setBounds(550, 130, 130, 20);\n\n jLabel12.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n jLabel12.setText(\"SUBJECT CODE:\");\n jPanel1.add(jLabel12);\n jLabel12.setBounds(410, 170, 68, 14);\n\n txtSubjectCode.setFont(new java.awt.Font(\"Calibri\", 0, 10)); // NOI18N\n txtSubjectCode.setText(\" \");\n jPanel1.add(txtSubjectCode);\n txtSubjectCode.setBounds(490, 170, 147, 13);\n\n jLabel15.setFont(new java.awt.Font(\"Arial Rounded MT Bold\", 1, 48)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(255, 255, 255));\n jLabel15.setText(\"FACULTY\");\n jPanel1.add(jLabel15);\n jLabel15.setBounds(0, 0, 250, 57);\n\n jLabel13.setFont(new java.awt.Font(\"Arial Rounded MT Bold\", 1, 12)); // NOI18N\n jLabel13.setForeground(new java.awt.Color(255, 0, 51));\n jLabel13.setText(\"SIGN OUT\");\n jPanel1.add(jLabel13);\n jLabel13.setBounds(1030, 40, 80, 15);\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n\n btnSignout.setBackground(new java.awt.Color(255, 255, 255));\n btnSignout.setFont(new java.awt.Font(\"Calibri\", 1, 11)); // NOI18N\n btnSignout.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/enrollmentsystem/Pictures/clear(1).png\"))); // NOI18N\n btnSignout.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n btnSignout.setBorderPainted(false);\n btnSignout.setContentAreaFilled(false);\n btnSignout.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSignoutActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btnSignout, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btnSignout, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jPanel1.add(jPanel3);\n jPanel3.setBounds(1020, 0, 90, 40);\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/enrollmentsystem/Pictures/adminscreenbg.jpg\"))); // NOI18N\n jPanel1.add(jLabel14);\n jLabel14.setBounds(0, 0, 1110, 600);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 1112, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)\n );\n\n pack();\n }",
"private void addStudentButtonActionPerformed(java.awt.event.ActionEvent evt) {\n if(lastName.getText().length()==0 && firstName.getText().length()==0) {\n JOptionPane.showMessageDialog(this, \"Some of the fields are empty!\");\n } else if(isInteger(levelOfStudy.getText())) {\n JOptionPane.showMessageDialog(this, \"Valid infomation, adding student (may take a minute)\");\n controller.addStudent(firstName.getText(),lastName.getText(),degreeName.getSelectedItem().toString(),tutor.getText(),levelOfStudy.getText());\n scrollTable.showStudents();\n JOptionPane.showMessageDialog(this, \"Created with password of '123'\");\n } else {\n JOptionPane.showMessageDialog(this, \"Period of study must be a vaild year!\");\n }\n \n \n }",
"private void CreateStudentList() {\r\n\t\tStudentList=new ArrayList<Student>();\t\r\n}"
] | [
"0.64929706",
"0.6419919",
"0.6416548",
"0.62335026",
"0.6222759",
"0.6203048",
"0.62009186",
"0.61974394",
"0.61263657",
"0.6090974",
"0.60629416",
"0.5925843",
"0.59129417",
"0.5901015",
"0.58896494",
"0.587835",
"0.58781296",
"0.58749735",
"0.5859106",
"0.58343726",
"0.58295983",
"0.58053356",
"0.5787191",
"0.57457614",
"0.57290137",
"0.5726676",
"0.5703854",
"0.5695391",
"0.5693547",
"0.5690679",
"0.56704813",
"0.5668195",
"0.56643325",
"0.56538624",
"0.5652691",
"0.56442434",
"0.562255",
"0.56095266",
"0.5600183",
"0.5593733",
"0.55808043",
"0.55704004",
"0.5569065",
"0.5568223",
"0.55630964",
"0.5551072",
"0.55455244",
"0.55431515",
"0.5543122",
"0.5534471",
"0.5529922",
"0.5521344",
"0.5506936",
"0.55055636",
"0.5499195",
"0.54947245",
"0.5493605",
"0.5491898",
"0.5488086",
"0.5484599",
"0.5483769",
"0.5476957",
"0.5474594",
"0.54615664",
"0.54615664",
"0.545534",
"0.543471",
"0.5432149",
"0.54205376",
"0.54131716",
"0.5409674",
"0.5408205",
"0.5401502",
"0.54012525",
"0.53916144",
"0.5388569",
"0.5386961",
"0.5378585",
"0.53754234",
"0.5365617",
"0.53549045",
"0.5354239",
"0.534877",
"0.5346924",
"0.53387517",
"0.53379524",
"0.5335817",
"0.53350645",
"0.5333546",
"0.5331873",
"0.53268373",
"0.53147936",
"0.5313285",
"0.53125703",
"0.5311545",
"0.531044",
"0.5309121",
"0.5308363",
"0.5300844",
"0.52963954"
] | 0.56999964 | 27 |
Group t = new Group(name,Integer.parseInt(num)); userBean.addGroup(t); | @RequestMapping(value = "/group", method = RequestMethod.POST)
public ModelAndView addGroup(HttpServletRequest request,
@RequestParam(name = "name") String name,
@RequestParam(name = "num") String num) {
return new ModelAndView("group");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public GroupCreateBean() {\n\t\tsuper();\n\t\tthis.initializeNumbers();\t\t\n\t}",
"public void setGroup(entity.Group value);",
"public void addGroup(GroupUser group) {\n try {\n PreparedStatement s = sql.prepareStatement(\"INSERT INTO Groups (groupName, members) VALUES (?,?);\");\n s.setString(1, group.getId());\n\n s.setString(2, group.getMembers().toString());\n s.execute();\n\n s.close();\n } catch (SQLException e) {\n sqlException(e);\n }\n }",
"public void addGroup(Group group) {\r\n System.out.println(\"conectado con model ---> metodo addGroup\");\r\n //TODO\r\n }",
"public static void main (String[] arg){\n\n Student student1 = new Student();\n Student student2 = new Student(12345,\"Anh\",\"Pham\");\n Student student3 = new Student(27485,\"New\",\"Student\");\n\n System.out.println(student1);\n System.out.println(student2);\n System.out.println(student3);\n\n //Test Student Group\n long groupCode = 123456;\n Student contactStudent = new Student(987654,\"HyHy\",\"Phan\");\n List<Student> studentList = new ArrayList<>();\n\n StudentGroup newGroup = new StudentGroup(groupCode, contactStudent, studentList);\n newGroup.getInfo();\n newGroup.addStudent(student2);\n newGroup.addStudent(student3);\n newGroup.getInfo();\n }",
"public Group(){\n\n }",
"public void joinGroup(Group group) {\n try {\n conn = dao.getConnection();\n ps = conn.prepareStatement(\"SELECT * FROM USERS_GROUPS WHERE USER_ID=? AND GROUP_ID=?\");\n ps.setString(1, Session.getInstance(\"\").getUserName());\n ps.setString(2, group.toString());\n ResultSet rs = ps.executeQuery();\n if (rs.next()) return;\n\n ps = conn.prepareStatement(\"INSERT INTO USERS_GROUPS(USER_ID, GROUP_ID) VALUES(?, ?)\");\n ps.setString(1, Session.getInstance(\"\").getUserName());\n ps.setString(2, group.toString());\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public int getIdGroup() {\n return idGroup;\n }",
"public void loadGroup(){ \n\t\t try {\n\n\t\t\t\tConnection con = DBConnection.connect();\n\n\t\t\t\tString query=\"select * from Student_Groups \";\n\t\t\t\tPreparedStatement pst=con.prepareStatement(query);\n\t\t\t\tResultSet rs=pst.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tString name =rs.getString(\"G_ID\");\n\t\t\t\t\tgroupId.addItem(name);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tcon.close();\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult createGroup = mFacePlus.createGroup(groupname.getText().toString(), groupname.getText().toString(), null);\n\t\t\t\tif(createGroup.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + createGroup.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tGroup group = (Group) createGroup.data;\n\t\t\t\tLog.e(TAG,\"groupid = \"+group.getId());\n\t\t\t\tLog.e(TAG,group.toString());\n\t\t\t}",
"protected void setTableGroup(int num)\n\t\t{\n\t\t\tGroup = num ;\n\t\t}",
"Long insert(UserGroup record);",
"private void loadGroup(IMemento group)\n\t{\n\t\tRegistersGroupData groupData = new RegistersGroupData();\n\n\t\t// get group name\n\t\tString groupName = group.getString(FIELD_NAME);\n\t\tif (groupName == null)\n\t\t\treturn;\n\n\t\t// get group size\n\t\tIMemento mem = group.getChild(ELEMENT_TOTAL);\n\t\tif (mem == null)\n\t\t\treturn;\n\n\t\tInteger tempInt = mem.getInteger(FIELD_SIZE);\n\t\tif (tempInt == null)\n\t\t\treturn;\n\n\t\tgroupData.totalSize = tempInt.intValue();\n\n\t\t// check add total field\n\t\tgroupData.addTotalField = true;\n\t\tString tempStr = mem.getString(FIELD_ADD_TOTAL);\n\t\tif (tempStr != null && tempStr.equalsIgnoreCase(\"false\"))\n\t\t\tgroupData.addTotalField = false;\n\n\t\t// get sub-division\n\t\tIMemento[] mems = group.getChildren(ELEMENT_SUB);\n\t\tgroupData.indicies = new int[mems.length];\n\t\tgroupData.sizes = new int[mems.length];\n\t\tgroupData.names = new String[mems.length];\n\n\t\tfor (int ind=0; ind < mems.length; ind++)\n\t\t{\n\t\t\ttempInt = mems[ind].getInteger(FIELD_INDEX);\n\t\t\tif (tempInt == null)\n\t\t\t\treturn;\n\t\t\tgroupData.indicies[ind] = tempInt.intValue();\n\n\t\t\ttempInt = mems[ind].getInteger(FIELD_SIZE);\n\t\t\tif (tempInt == null)\n\t\t\t\treturn;\n\t\t\tgroupData.sizes[ind] = tempInt.intValue();\n\n\t\t\tgroupData.names[ind] = mems[ind].getString(FIELD_NAME);\n\t\t\tif (groupData.names[ind] == null)\n\t\t\t\treturn;\n\t\t}\n\n\t\t// add group data\n\t\tmapper.addGroup(groupName/*, groupData*/);\n\n\t\tmems = group.getChildren(ELEMENT_REGISTER);\n\t\tString[] register = new String[mems.length];\n\n\t\tfor (int ind=0; ind < mems.length; ind++)\n\t\t\tregister[ind] = mems[ind].getString(FIELD_NAME);\n\n\t\t// add registers\n\t\tmapper.addRegisters(groupName, register);\n\t}",
"public Group() {\n\n }",
"public void addUtilisateurToGroupe(Utilisateur utilisateur, Groupe groupe);",
"public void setGroup(UserGroup group) {\n this.group = group;\n }",
"public void addGroup(String name) {\n if(isGroup(name) == false) {\n /* Create a new groupchatpanel */\n GroupChatPanel gcp = new GroupChatPanel(guicontrol, concontrol, name);\n \n /* Add the group to the hashmap */\n grouptabs.put(name, gcp);\n \n /* Add the group to the JTabbedPane */\n tbMain.addTab(name, gcp);\n \n /* Now focus on the tab */\n tbMain.setSelectedComponent(gcp);\n \n /* Now focus on the TextField */\n gcp.tfSendPrep.requestFocusInWindow();\n }\n }",
"public void setGroupId(Integer value) {\n set(1, value);\n }",
"@Override\r\n\tpublic void addEmployeToGroupe(Long codeEmp, Long codeGroup) {\n dao.addEmployeToGroupe(codeEmp, codeGroup);\r\n\t}",
"public void setGroupcode(java.lang.Integer newGroup) {\n\tgroupcode = newGroup;\n}",
"public void addUpdateNewGroup(AdminBean adminBean,UserAccountDTO user){\r\n\r\n\t\tCalendar nowCal = Calendar.getInstance();\r\n\t\tTimestamp currentDate = new Timestamp(nowCal.getTimeInMillis());\r\n\r\n\t\tif (\"\".equals(adminBean.getGroupCode())) {\r\n\t\t\t\r\n\t\t\tadminBean.setReturnMessage(\"Group Code is required. Please try again.\");\r\n\t\t\treturn;\r\n\t\t\t\r\n\t\t} else if (\"\".equals(adminBean.getGroupCodeDesc())) {\r\n\t\t\t\r\n\t\t\tadminBean.setReturnMessage(\"Group Description is required. Please try again.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tUserGroupDTO userGroup = adminDAO.getGroupDetails(adminBean.getGroupCode(), user.getAgencyCode(),\r\n\t\t\t\t\tuser.getBureauCode());\r\n\r\n\t\t\t/*\r\n\t\t\t * check if user group for the groupcode passed exists. If exists,\r\n\t\t\t * update the record.\r\n*\t\t\t */\r\n\t\t\tif (null != userGroup) {\r\n\r\n\t\t\t\tuserGroup.setGroup_Code(adminBean.getGroupCode());\r\n\t\t\t\tuserGroup.setDescription(adminBean.getGroupCodeDesc());\r\n\t\t\t\tuserGroup.setUserUpdated(user.getUserID());\r\n\t\t\t\tuserGroup.setDateLastUpdated(currentDate);\r\n\t\t\t\tadminDAO.addUpdateNewGroup(userGroup);\r\n\r\n\t\t\t\tadminBean.setReturnMessage(\"Updated the admin group successfully\");\r\n\t\t\t} else {\r\n\r\n\t\t\t\t/* If no user group, add a new one. */\r\n\t\t\t\tuserGroup = new UserGroupDTO();\r\n\t\t\t\tuserGroup.setAgency_Code(user.getAgencyCode());\r\n\t\t\t\tuserGroup.setBureau_Code(user.getBureauCode());\r\n\t\t\t\tuserGroup.setGroup_Code(adminBean.getGroupCode());\r\n\t\t\t\tuserGroup.setDescription(adminBean.getGroupCodeDesc());\r\n\t\t\t\tuserGroup.setDateCreated(currentDate);\r\n\t\t\t\tuserGroup.setCreatedBy(user.getUserID());\r\n\t\t\t\tuserGroup.setUserUpdated(user.getUserID());\r\n\t\t\t\tuserGroup.setDateLastUpdated(currentDate);\r\n\t\t\t\tadminDAO.addUpdateNewGroup(userGroup);\r\n\r\n\t\t\t\tadminBean.setReturnMessage(\"Added new group successfully\");\r\n\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tadminBean.setReturnMessage(\"Failed to add/update a new group\");\r\n\t\t}\t\t\r\n\r\n\t}",
"public static Group initGroupObject(){\n Group test_group = new Group(\"testGroup\");\n return test_group;\n }",
"public void setGroups(com.hps.july.persistence.GroupAccessBean newGroups) throws Exception {\n\tif (newGroups == null) {\n\t\tgroupcode = null;\n\t\tgroupname = \"\";\n\t}\n\telse {\n\t\tgroupcode = new Integer(newGroups.getDivision());\n\t\tgroupname = newGroups.getName();\n\t}\n}",
"public Group(String name) {\n super(name);\n this.members = new HashSet<>();\n }",
"Group(String name) {\n this(name, new ArrayList<>());\n }",
"public Group()\n\t{\n\t\tthis.members = new ArrayList<>();\n\t\tthis.groupID= idCounter;\n\t\tidCounter++;\n\t}",
"public CreateGroup() {\n initComponents();\n start();\n }",
"UserGroup createGroup(String companyId, String name, String groupLead);",
"public Group() {\r\n\t}",
"@FXML\n\tprivate void createGroup(ActionEvent event){\n\t\tif(subgroup_menu.getValue().equals(\"--- INGEN ---\")){\n\t\t\tif(GroupName_field.getText().equals(\"\")){\n\t\t\t\tmakeDialog(\"Du må gi gruppen et navn.\");\n\t\t\t} else {\n\t\t\t\tDatabaseInterface db = new DatabaseInterface();\n\t\t\t\tdb.setGroup(GroupName_field.getText(), findInvited());\n\t\t\t\tStage stage = (Stage) create_btn.getScene().getWindow();\n\t\t\t stage.close();\n\t\t\t}\n\t//-------This kicks in if a user chose a group in the dropdown menu-----\\\\\n\t\t} else {\n\t\t\tif(GroupName_field.getText().equals(\"\")){\n\t\t\t\tmakeDialog(\"Du må gi gruppen et navn.\");\n\t\t\t} else {\n\t\t\t\tDatabaseInterface db = new DatabaseInterface();\n\t\t\t\tString supergroup_name = (String) subgroup_menu.getValue();\n\t\t\t\tint SubGroupId = db.setGroup(GroupName_field.getText(), findInvited()).getGroup_id();\n\t\t\t\tint SuperGroupId = getSupergroupID(supergroup_name);\n\t\t\t\tdb.setSubGroup(SuperGroupId, SubGroupId);\n\t\t\t\tStage stage = (Stage) create_btn.getScene().getWindow();\n\t\t\t stage.close();\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"GroupCell createGroupCell();",
"public void insertarGrado() {\n \tGrado grado = new Grado();\n \tgrado.setIdSeccion(38);\n \tgrado.setNumGrado(2);\n \tgrado.setUltimoGrado(0);\n \tString respuesta = negocio.insertarGrado(\"\", grado);\n \tSystem.out.println(respuesta);\n }",
"public void updateGroup(GroupUser group) {\n try{\n PreparedStatement s = sql.prepareStatement(\"UPDATE Groups SET members=? WHERE groupName=?\");\n\n s.setString(2, group.getId());\n\n System.out.println(group.getMembers().toString());\n s.setString(1, group.getMembers().toString());\n s.execute();\n\n s.close();\n } catch (SQLException e) {\n sqlException(e);\n }\n }",
"public void createGroup(String group_name){\r\n\t\t/* \r\n\t\t * Create a new entry in group database using the information\r\n\t\t * given by the parameters\r\n\t\t */\r\n\t\tSQLiteDatabase db = this.getWritableDatabase();\r\n \tContentValues values = new ContentValues();\r\n \t\r\n\t\tvalues.put(DBHelper.COLUMN_GROUPNAME, group_name);\r\n\t\t\r\n\t\tdb.insert(DBHelper.GROUP_TABLE_NAME, null, values);\r\n\t\tdb.close();\r\n\t}",
"public Group getGroup_11() { return cGroup_11; }",
"@SuppressWarnings(\"serial\")\n\tpublic Group addGroup(final String name) throws Exception{\n\t\tUserRegistry ur = UserRegistry.findOrCreate(doc);\n\t\tGroups groups = Groups.findOrCreate(ur);\n\t\treturn Group.findOrCreate(groups,\n\t\t\t\tnew HashMap<String, String>(){{\n\t\t\t\t\tput(\"name\",name);\n\t\t\t\t}});\t\n\t}",
"GroupUser getGroupUserById(String id);",
"public void loadSubGroup(){ \n\t\t try {\n\n\t\t\t\tConnection con = DBConnection.connect();\n\n\t\t\t\tString query=\"select * from Student_Groups \";\n\t\t\t\tPreparedStatement pst=con.prepareStatement(query);\n\t\t\t\tResultSet rs=pst.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tString name =rs.getString(\"Sub_G_ID\");\n\t\t\t\t\tgroupId.addItem(name);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tcon.close();\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n}",
"@Override\n\tpublic int insert(UserGroupReportGroupBean t) throws Exception {\n\t\treturn 0;\n\t}",
"ZigBeeGroup getGroup(int groupId);",
"UserGroup createGroup(String companyId, String name);",
"void setGroupName(String groupName) {\n this.groupName = new String(groupName);\n }",
"@Test\n void validateUserGroupCount() {\n LinkedHashMap<Integer, String> groups = new LinkedHashMap<>();\n\n UserManagerFactory uf = new UserManagerFactory();\n\n UserManager obj = uf.getInstance(\"group1\");\n\n groups = obj.getGroups();\n\n Assertions.assertTrue(groups.size() == 5, \"There should only have 5 pre-defined groups\");\n }",
"public void addGroup(Group_Entity group) {\n\t\tgroupRepo.save(group);\n\t\t\n\t}",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tString groupname = txtGroupname.getText().toString();\n\t\t\tGroup group = new Group();\n\t\t\tgroup.setName(groupname);\n\t\t\tmClient.getTable(Group.class).insert(group, new TableOperationCallback<Group>(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onCompleted(final Group item, Exception exception,\n\t\t\t\t\t\tServiceFilterResponse service) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif(exception == null){\n\t\t\t\t\t\tLog.e(\"Message (group)\", \"Add group successful\" + item.getGroupId());\n\t\t\t\t\t\tclearFields();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tDisasterPlanSample template = new DisasterPlanSample();\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(WorkItem i:template.getPlans()){\n\t\t\t\t\t\t\ti.setGroupId(item.getGroupId());\n\t\t\t\t\t\t\tmClient.getTable(WorkItem.class).insert(i, new TableOperationCallback<WorkItem>(){\n\t\t\t\t\t\t\t\tpublic void onCompleted(WorkItem work,Exception exception2,ServiceFilterResponse response2) {\n\t\t\t\t\t\t\t\t\tif(exception2==null){\n\t\t\t\t\t\t\t\t\t\tLog.e(\"Add Work Item\", \"Success\");\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\t\n\t\t\t\t\t\tmember.setGroupId(item.getGroupId());\n\t\t\t\t\t\tmMemberTable = mClient.getTable(Member.class);\n\t\t\t\t\t\tmMemberTable.update(member, new TableOperationCallback<Member>(){\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onCompleted(Member member,\n\t\t\t\t\t\t\t\t\tException exception, ServiceFilterResponse service) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tif(exception==null){\n\t\t\t\t\t\t\t\t\tLog.e(\"Message Update\", \"Update is successful\");\n\t\t\t\t\t\t\t\t\tcreateDialog(\"Succesfully created group \" + item.getName()).show();\t\n\t\t\t\t\t\t\t\t\tIntent i = new Intent(getApplicationContext(),MenuActivity.class);\n\t\t\t\t\t\t\t\t\ti.putExtra(\"user\", member);\n\t\t\t\t\t\t\t\t\tstartActivity(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\t\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tLog.e(\"Message (group)\", \"Add group failed\");\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}",
"public Group saveGroup(Group group);",
"public Group()\r\n {\r\n endpoints = new ArrayList<>();\r\n name = \"NewGroup\";\r\n }",
"public Group getGroup_9() { return cGroup_9; }",
"public Group getGroup_9() { return cGroup_9; }",
"public Group getGroup_9() { return cGroup_9; }",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setContactsGroup()\n\t{\n\t\tUtility.ThreadSleep(1000);\n\t\tList<Long> group = new ArrayList<Long>(Arrays.asList(new Long[] {1l,2l})); //with DB Call\n\t\tthis.groupIds = group;\n\t\tLong contactGroupId = groupIds.get(0);\n\t\tSystem.out.println(\".\");\n\t}",
"@Test\n\tvoid addUserToGroup() {\n\t\t// Pre condition\n\t\tAssertions.assertTrue(resource.findById(\"wuser\").getGroups().contains(\"Biz Agency Manager\"));\n\n\t\tresource.addUserToGroup(\"wuser\", \"biz agency manager\");\n\n\t\t// Post condition -> no change\n\t\tAssertions.assertTrue(resource.findById(\"wuser\").getGroups().contains(\"Biz Agency Manager\"));\n\t}",
"public void setGroup (int g) throws PPException{\n\t\t// this test is required because it is not tested in Unit_SetGroup(...)\n\t\tif (g < 0)\n\t\t\tthrow new PPException (\"setGroup -> invalid group, must be upper 0\");\n\t\telse\n\t\t\tif (PPNative.Unit_SetGroup (id, g) == -1)\n\t\t\t\tthrow new PPException (\"setGroup -> \"+PPNative.GetError());\n\t}",
"public void testGroupDAO(){\n System.out.println(\"==========================\");\n System.out.println(\"test finding group id by group name\");\n String name = \"group1\";\n int groupId = groupDAO.getIdGroup(name);\n System.out.println(groupId);\n System.out.println(\"\\n\");\n\n\n // test finding group name by group id\n System.out.println(\"==========================\");\n System.out.println(\"test finding group name by group id\");\n int groupID = 2;\n String groupName = groupDAO.getGroupName(groupId);\n System.out.println(groupName);\n System.out.println(\"\\n\");\n }",
"public GroupEditorGroups(ActionListener listener, GroupsinGroupData data) {\r\n initComponents();\r\n this.jScrollPane1.getViewport().setBackground(Color.WHITE);\r\n this.jScrollPane2.getViewport().setBackground(Color.WHITE);\r\n\r\n smanager = DocuSessionManager.getInstance();\r\n DefaultTableModel amodel = new DefaultTableModel() {\r\n\r\n public boolean isCellEditable(int row, int column) {\r\n return false;\r\n }\r\n };\r\n amodel.addColumn(\"Group Name\");\r\n\r\n setAvailablemodel(amodel);\r\n String temp = \"\";\r\n cmdOK.addActionListener(listener);\r\n setGroupdata(data);\r\n DefaultTableModel model = new DefaultTableModel() {\r\n\r\n public boolean isCellEditable(int row, int column) {\r\n return false;\r\n }\r\n };\r\n model.addColumn(\"Group Name\");\r\n for (int i = 0; i < data.getGroupMembers().size(); i++) {\r\n temp = (String) data.getGroupMembers().get(i);\r\n Vector<Object> v = new Vector<Object>();\r\n v.add(temp);\r\n model.addRow(v);\r\n }\r\n\r\n setGroupmodel(model);\r\n tblGroupsInGroup.setModel(getGroupmodel());\r\n tblGroupsInGroup.validate();\r\n }",
"void setGroupId(String groupId);",
"UserGroup findById(String groupId);",
"public void allocateGroupId(){\n\t\trecords.add(new pair(this.groupname,currentId));\n\t\tthis.groupid = currentId;\n\t\tcurrentId++;\n\t\tConnection c = null;\n\t\tStatement stmt = null;\n\t\ttry{\n\t\t\tSystem.out.println(\"group setup\");\n\t\t\tSystem.out.println(this.groupid);\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tc = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/ifoundclassmate\");\n\t\t\tc.setAutoCommit(false);\n\t\t\tstmt = c.createStatement();\n\t\t\tString sql = \"INSERT INTO GROUPS (GROUPID,GROUPNAME,DESCRIPTION) \"+\n\t\t\t\t\t\"VALUES (\" + this.groupid + \", \" + \"'\" +this.groupname + \"'\"\n\t\t\t\t\t+\" , \" + \"'\" + this.description + \"' \" + \");\" ;\n\t\t\tstmt.executeUpdate(sql);\n\t\t\t\n\t\t\tstmt.close();\n\t\t\tc.commit();\n\t\t\tc.close();\n\t\t} catch (Exception e ){\n\t\t\tSystem.out.println(e.getClass().getName() + e.getMessage() );\n\t\t\treturn;\n\t\t}\n\t\treturn;\n\t}",
"UserGroup save(UserGroup group);",
"public void setInValidGroup(boolean inValidGroup){this.inValidGroup = inValidGroup;}",
"public void setGroupID(Long newGroupID)\n {\n this.groupID = newGroupID;\n }",
"public void setGroupID(int groupID) {\n this.groupID = groupID;\n }",
"public void setBookGroup(java.lang.String value);",
"public void postuler(int p_id,int g_id) throws RemoteException{\r\n\t\t\t\t\t\t\r\n\t\t String requete = \"SELECT p_maxGroup, p_minEtud, p_maxEtud FROM projet WHERE p_id=\"+p_id;\r\n\t\t\tSystem.out.println(\"requete :\" + requete);\r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t\t if (!data.hasMoreElements()) {\r\n\t\t\t\t System.out.println(\"Projet id inexistant\");\r\n\t\t\t\t return;\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t int maxGroup = Integer.parseInt(data.getColumnValue(\"p_maxGroup\"));\r\n\t\t\t int minEtud = Integer.parseInt(data.getColumnValue(\"p_minEtud\"));\r\n\t\t\t int maxEtud = Integer.parseInt(data.getColumnValue(\"p_maxEtud\"));\r\n\t\t\t \r\n\t\t\t //recuperation des membres du groupe\r\n\t\t\t int nbMembre = this.getMember(g_id).size();\r\n\t\t\t if(nbMembre>maxEtud || nbMembre < minEtud){\r\n\t\t\t\t System.out.println(\"Vous ne pouvez pas postuler\");\r\n\t\t\t\t return;\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t //Recuparation du nombre de groupe qui ont deja postuler a ce projet\r\n\t\t\t requete = \"SELECT COUNT(a_idgroupe) as nbGroupe FROM association WHERE a_idProjet=\"+p_id;\r\n\t\t\t System.out.println(\"requete :\" + requete);\r\n\t\t\t data = database.executeQuery(requete);\r\n\t\t\t int nbGroupe = 0;\r\n\t\t\t if (data.hasMoreElements()) {\r\n\t\t\t \tnbGroupe = Integer.parseInt(data.getColumnValue(\"nbGroupe\"));\r\n\t\t\t }\r\n\t\t\t if(nbGroupe>maxGroup){\r\n\t\t\t\t System.out.println(\"Vous ne pouvez pas postuler Nbgroupe max atteint\");\r\n\t\t\t\t return;\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t //Creation d'un nouveau groupe\r\n\t\t\t requete = \"INSERT INTO association VALUES (\" + g_id + \", \"+ p_id + \", DEFAULT)\";\r\n\t\t\t System.out.println(\"requete :\" + requete);\r\n\t\t\t database.executeUpdate(requete);\r\n\t\t\t System.out.println(\"Vous avez postuler\");\r\n\t\t\r\n\t\t}",
"Integer givenGroupId();",
"public GroupAccessBean constructGroups() throws Exception {\n\n\tif (groups == null) {\t\n\t\t// Construct groups bean\n\t\tif (getGroupcode() != null) {\n\t\t\tgroups = new GroupAccessBean();\n\t\t\tgroups.setInitKey_division(getGroupcode().intValue());\n\t\t\tgroups.refreshCopyHelper();\n\t\t}\n\t}\n\treturn groups;\n}",
"public void newGroup() {\n addGroup(null, true);\n }",
"public void setGroupId(Integer groupId) {\r\n this.groupId = groupId;\r\n }",
"public ParticipationGroupData addParticipationGroupData(ParticipationGroupData group) \n { \n Connection con = null;\n PreparedStatement ps1 = null;\n PreparedStatement ps2 = null;\n Integer groupPk = null;\n \n try {\n \n con = DBUtil.getConnection();\n \n // insert into Participation_Cd_Group\n ps1 = con.prepareStatement(SQL_INSERT_PARTICIPATION_CD_GROUP);\n\n //set the values to insert\n ps1.setString(1, group.getName());\n DBUtil.setNullableVarchar(ps1, 2, group.getDescription());\n groupPk = DBUtil.insertAndGetIdentity(con, ps1);\n \n //if successful, set the pk\n group.setGroupPk(groupPk);\n \n // DEBUG\n if (logger.isDebugEnabled())\n logger.debug(\"Insert statement: [\" + SQL_INSERT_PARTICIPATION_CD_TYPE + \"] \");\n \n // insert the default Participation_Cd_Type for a new Group...\n ps2 = con.prepareStatement(SQL_INSERT_PARTICIPATION_CD_TYPE);\n\n ps2.setString(1, ParticipationTypeData.TYPE_GENERAL);\n ps2.setNull(2, Types.VARCHAR);\n ps2.setInt(3, groupPk.intValue());\n \n // insert into Participation_Cd_Type\n ps2.executeUpdate();\n \n } catch (SQLException e) {\n throw new EJBException(\"Error inserting participation group in MaintainParticipationGroupsBean.addParticipationGroupData()\", e);\n } finally {\n DBUtil.cleanup(null, ps1, null);\n DBUtil.cleanup(con, ps2, null);\n }\n \n //return the group data with new PK\n return group;\n }",
"Group getGroupById(String id);",
"private void createNewGroup() {\r\n if(selectedNode != null) { \r\n DefaultMutableTreeNode nextNode = (DefaultMutableTreeNode)selectedNode.getNextNode();\r\n if(selectedNode.isLeaf() && !selectedNode.getAllowsChildren()) {\r\n CoeusOptionPane.showInfoDialog(coeusMessageResources.parseMessageKey(\"maintainSponsorHierarchy_exceptionCode.1254\"));\r\n return;\r\n } else if(selTreePath.getPathCount() == 10) {\r\n CoeusOptionPane.showInfoDialog(coeusMessageResources.parseMessageKey(\"maintainSponsorHierarchy_exceptionCode.1255\"));\r\n return;\r\n }else if (nextNode != null && nextNode.isLeaf()) {\r\n CoeusOptionPane.showInfoDialog(\"The group '\"+selectedNode.toString()+\"' has sponsors assigned to it. \\nCannot create subgroups for this group.\");\r\n return;\r\n }else {\r\n nextNode = new DefaultMutableTreeNode(\"New Group - \"+(selectedNode.getLevel()+1)+\".\"+selectedNode.getChildCount(),true);\r\n model.insertNodeInto(nextNode, selectedNode, selectedNode.getChildCount());\r\n TreePath newSelectionPath = selTreePath.pathByAddingChild(nextNode);\r\n sponsorHierarchyTree.clearSelection();\r\n sponsorHierarchyTree.addSelectionPath(newSelectionPath);\r\n sponsorHierarchyTree.startEditingAtPath(newSelectionPath);\r\n newGroup = true;\r\n saveRequired = true;\r\n }\r\n }\r\n }",
"public Set getGroups() { return this.groups; }",
"Object getGroupID(String groupName) throws Exception;",
"public Group getGroup_10() { return cGroup_10; }",
"private void getGroup() {\n\r\n if (mAuth.getCurrentUser().isAnonymous()){\r\n g.setGroup(\"guest\");\r\n u.setGroup(g.getGroup());\r\n //nFirestore.collection(\"user\").document(mAuth.getCurrentUser().getUid()).set(g);\r\n }else{\r\n\r\n DocumentReference docRef = nFirestore.collection(\"usergroup\").document(mAuth.getCurrentUser().getUid());\r\n docRef.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\r\n\r\n @Override\r\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\r\n if (task.isSuccessful()){\r\n DocumentSnapshot document = task.getResult();\r\n g = document.toObject(Grupo.class);\r\n u.setGroup(g.getGroup());\r\n nFirestore.collection(\"user\").document(mAuth.getCurrentUser().getUid()).update(\"group\",g.getGroup()).addOnSuccessListener(new OnSuccessListener<Void>() {\r\n @Override\r\n public void onSuccess(Void aVoid) {\r\n //Toast.makeText(MainActivity.this, \"Updateado\", Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }\r\n }",
"@Override\n\tpublic int operateAb() throws ClassNotFoundException, SQLException {\n\t\tif (user.groupId<0)\n\t\t{\n\t\t\tgroup=new Info_group();\n\t\t\tgroup.name=user.groupName;\n\t\t\trs=group.getRsFromName(con);\n\t\t\tif (!rs.next())\n\t\t\t\treturn 0;\n\t\t\tuser.groupId=rs.getInt(Info.str_id);\n\t\t}\n\t\t\n\t\tInfo_groupUsers groupUsers=new Info_groupUsers(user.groupId, user.id);\n\t\tpreStmt=groupUsers.getInsertsStatement(con);\n\t\tif (preStmt.executeUpdate()==0)\n\t\t\treturn 0;\n\t\t\n\t\tInfo_userGroups userGroups=new Info_userGroups(user.id,user.groupId);\n\t\tpreStmt=userGroups.getInsertStatement(con);\n\t\tif (preStmt.executeUpdate()==0)\n\t\t\treturn 0;\n\t\t\n\t\treturn 1;\n\t}",
"private GroupFactory() {\n /*UserFactory userFactory = UserFactory.getInstance();\n \n Group gruppo1 = new Group();\n gruppo1.setNomeGruppo(\"Gruppo\");\n gruppo1.setId(0);\n gruppo1.setIscritti(userFactory.getUserById(0));\n gruppo1.setIscritti(userFactory.getUserById(1));\n gruppo1.setIscritti(userFactory.getUserById(2));\n gruppo1.setIscritti(userFactory.getUserById(3));\n \n Group gruppo2 = new Group();\n gruppo2.setNomeGruppo(\"Gruppo2\");\n gruppo2.setId(0);\n gruppo2.setIscritti(userFactory.getUserById(0));\n gruppo2.setIscritti(userFactory.getUserById(3));\n \n Group gruppo3 = new Group();\n gruppo3.setNomeGruppo(\"Gruppo3\");\n gruppo3.setId(0);\n gruppo3.setIscritti(userFactory.getUserById(2));\n gruppo3.setIscritti(userFactory.getUserById(3));\n \n Group gruppo4 = new Group();\n gruppo4.setNomeGruppo(\"Gruppo4\");\n gruppo4.setId(0);\n gruppo4.setIscritti(userFactory.getUserById(1));\n gruppo4.setIscritti(userFactory.getUserById(3));\n \n listaGruppi.add(gruppo1);\n listaGruppi.add(gruppo2);\n listaGruppi.add(gruppo3);\n listaGruppi.add(gruppo4);*/\n }",
"public void getGroup(SecurityUserBaseinfoForm form) {\n\t\tString[] tempIds = null;\r\n\t\tString[] tempNames = null;\r\n\t\tList<?> list = null;\r\n//\t\tcommClvIds & commClvNames;\r\n\t\tif(form.getCommConfigLocationGroupId() != null && form.getCommConfigLocationGroupId().trim().length() > 0){\r\n\t\t\tlist = this.getSecurityUserBaseinfoDAO().getGroupsByParent(form.getCommConfigLocationGroupId().trim());\r\n\t\t\tif(list != null && list.size() > 0){\r\n\t\t\t\ttempIds = new String[list.size()+1];\r\n\t\t\t\ttempNames = new String[list.size()+1];\r\n\t\t\t\ttempIds[0] = \"\";\r\n\t\t\t\ttempNames[0] = \"\";\r\n\t\t\t\tfor(int i=0; i<list.size(); i++){\r\n\t\t\t\t\tCommConfigLocationGroup town = (CommConfigLocationGroup)list.get(i);\r\n\t\t\t\t\ttempIds[i+1] = this.transNullToString(town.getId());\r\n\t\t\t\t\ttempNames[i+1] = this.transNullToString(town.getItemName());\r\n\t\t\t\t}\r\n\t\t\t\tform.setCommConfigLocationGroupIds(tempIds);\r\n\t\t\t\tform.setCommConfigLocationGroupId_names(tempNames);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public boolean createGroup(GroupsGen group) {\n \n super.create(group);\n return true;\n }",
"public int getGroupID() {\n return groupID;\n }",
"public void setGroupId(String newValue);",
"Integer getGroupId();",
"public static void initializeGroupMember(Group group){\n\t\tHibernate.initialize(group.getGroupMembers());\n\t}",
"public void addToGroup(ParseUser invitee) {\n ParseRelation relation = group.getRelation(\"users\");\n relation.add(invitee);\n Integer num = group.getInt(\"userCount\");\n int addNum = num.intValue();\n addNum++;\n num = Integer.valueOf(addNum);\n group.put(\"userCount\", num);\n group.saveInBackground();\n\n }",
"public void setGroupe(String groupe) {\r\n this.groupe = groupe;\r\n }",
"public Group getGroup_12() { return cGroup_12; }",
"public static void main(String[] args) {\n\t\tHuman humanOne = new Human(\"Konovalov\", \"Anton\", 1991, true);\r\n\r\n\t\tStudent studentOne = new Student(\"One\", \"Arst\", 1992, true, \"It\", 3);\r\n\t\tStudent studentTho = new Student(\"Tho\", \"Adsart\", 1993, true, \"It\", 3);\r\n\t\tStudent studentThree = new Student(\"Three\", \"Adrt\", 1994, true, \"It\", 3);\r\n\t\tStudent studentFour = new Student(\"Four\", \"Agfrt\", 1995, true, \"It\", 3);\r\n\t\tStudent studentFive = new Student(\"Five\", \"Asrt\", 1996, true, \"It\", 3);\r\n\t\tStudent studentSix = new Student(\"Six\", \"Arrt\", 1997, false, \"It\", 3);\r\n\t\tStudent studentSeven = new Student(\"Seven\", \"Aeqrt\", 1998, true, \"It\", 3);\r\n\t\tStudent studentEight = new Student(\"Eight\", \"Aeqwrt\", 1999, true, \"It\", 3);\r\n\t\tStudent studentNine = new Student(\"Nine\", \"Areqt\", 1992, false, \"It\", 3);\r\n\t\tStudent studentTen = new Student(\"Ten\", \"Aeqrt\", 1993, true, \"It\", 3);\r\n\t\tStudent studentEleven = new Student(\"Eleven\", \"Aehrt\", 1991, true, \"It\", 3);\r\n\r\n\t\tGroup group = new Group();\r\n\t\ttry {\r\n\t\t\tgroup.add(studentOne);\r\n\t\t\tgroup.add(studentTho);\r\n\t\t\tgroup.add(studentThree);\r\n\t\t\tgroup.add(studentFour);\r\n\t\t\tgroup.add(studentFive);\r\n\t\t\tgroup.add(studentSix);\r\n\t\t\tgroup.add(studentSeven);\r\n\t\t\tgroup.add(studentEight);\r\n\t\t\tgroup.add(studentNine);\r\n\t\t\t// group.add(studentTen);\r\n\t\t\t// group.add(studentEleven);\r\n\t\t\t//group.addNewStudent();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error, more than 10 can not be created\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(group);\r\n//\t\tgroup.sort();\r\n//\t\tSystem.out.println(group);\r\n//\t\t\r\n//\t\tStudent [] arrayStudentArmy= group.goToArmy(group);\r\n//\t\tfor (Student student : arrayStudentArmy) {\r\n//\t\t\tSystem.out.println(student);\r\n//\t\t}\r\n\t\t\r\n\t\tgroup.fileSave();\r\n\t\t\r\n\t\tGroup groupFromFile=new Group();\r\n\t\tgroupFromFile.newGroupStudent();\r\n\t\tSystem.out.println(groupFromFile);\r\n\t\r\n\r\n\t}",
"void addUserToGroup(final String userId, final String groupId);",
"public void setNameGroup(int num)\n\t{\n\t\tsetGroup(_Prefix + HardZone.NAME.toString(), num);\n\t}",
"private void group(String[] args){\n String name;\n \n switch(args[1]){\n case \"view\":\n this.checkArgs(args,2,2);\n ms.listGroups(this.groups);\n break;\n case \"add\":\n this.checkArgs(args,3,2);\n name = args[2];\n db.createGroup(name);\n break;\n case \"rm\":\n this.checkArgs(args,3,2);\n name = args[2];\n Group g = this.findGroup(name);\n if(g == null)\n ms.err(4);\n db.removeGroup(g);\n break;\n default:\n ms.err(3);\n break;\n }\n }",
"public void setJuserGroup(Integer juserGroup) {\n this.juserGroup = juserGroup;\n }",
"GroupType createGroupType();",
"GroupType createGroupType();",
"public Group getGroup_1() { return cGroup_1; }"
] | [
"0.7298871",
"0.65359026",
"0.6209581",
"0.6199445",
"0.60729456",
"0.60652757",
"0.60327744",
"0.59639764",
"0.5963265",
"0.5911479",
"0.5907492",
"0.59069246",
"0.58596414",
"0.585652",
"0.5803815",
"0.58023244",
"0.57852244",
"0.5779774",
"0.5779194",
"0.57465464",
"0.574628",
"0.5746177",
"0.5741242",
"0.57322955",
"0.5729199",
"0.5714173",
"0.56888866",
"0.5659093",
"0.5652775",
"0.5648244",
"0.5644389",
"0.56396747",
"0.56338125",
"0.5633383",
"0.5629695",
"0.5626429",
"0.5620602",
"0.56200844",
"0.56190073",
"0.5616458",
"0.5606991",
"0.56018823",
"0.5601236",
"0.55937576",
"0.5590794",
"0.5587946",
"0.55859464",
"0.5585634",
"0.5585634",
"0.5585634",
"0.55790216",
"0.55790216",
"0.55790216",
"0.55790216",
"0.55790216",
"0.55790216",
"0.557467",
"0.5572149",
"0.55702555",
"0.556745",
"0.5565854",
"0.5554305",
"0.55513984",
"0.5548726",
"0.5541189",
"0.55295753",
"0.55289584",
"0.55166006",
"0.5514937",
"0.550026",
"0.549731",
"0.5497028",
"0.5492418",
"0.54909694",
"0.54855317",
"0.5482808",
"0.54788697",
"0.54786915",
"0.54772764",
"0.5472189",
"0.5462777",
"0.54558754",
"0.5449473",
"0.54451823",
"0.54364794",
"0.5435638",
"0.5427473",
"0.542387",
"0.54230803",
"0.54229265",
"0.5421936",
"0.5420319",
"0.5415388",
"0.5415004",
"0.5413645",
"0.5409791",
"0.54094595",
"0.54091597",
"0.54091597",
"0.5400406"
] | 0.61458194 | 4 |
A tile with the cardNumber given by number. | public MatchingCardsTile(int number){
this.cardNumber = number;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Tile(int number) {\n this.number = number;\n }",
"public static GameTile makeNewTile(int tileValue)\n {\n GameTileyul579 GameTile= new GameTileyul579(tileValue);\n return GameTile;\n }",
"private NumericCard (Color color, int number)\n {\n super(color);\n this.number = number;\n }",
"public TileBoard(int n){\n\t\tsize = n;\n\t\tinitTiles();\n\t\torganizeTiles();\n\t\tsetUpInputListenerDelegator();\n\t}",
"CardNumber(int number) {\r\n this.number = number;\r\n }",
"private void createTile(){\n for(int i = 0; i < COPY_TILE; i++){\n for(int k = 0; k < DIFF_TILES -2; k++){\n allTiles.add(new Tile(k));\n }\n }\n }",
"private static void tileInit(int i, int j, Group tileGroup, int i2, int i3, int i4, int i5) {\n Tile tile = new Tile(i, j, (i2), (i3));\n tile.setTranslateX((i4));\n tile.setTranslateY(i5);\n tileGroup.getChildren().add(tile);\n }",
"public PileOfCards(int numCards) {\n descriptors = CardFactory.getDescriptorKeySet();\n pile = new ArrayList<Card>(numCards);\n for(int i = 0; i < numCards; i++)\n pile.add(CardFactory.drawCard());\n }",
"public Cell(int playerNumber) {\n\t\tthis.playerNumber = playerNumber;\n\t}",
"public TileView(int val){\n\n\t\ttile = new Rectangle();\n\t\tvalue = new Text(getNumRank(val));\n\t\t//tableau de couleur des pions\n\t\tColor color[] = \t {Color.web(\"0xeee4da\"), Color.web(\"0xede0c8\"), Color.web(\"0xf2b179\"), Color.web(\"0xec8d54\"), Color.web(\"0xf67c5f\"), Color.web(\"0xea5937\"), Color.web(\"0xf3d86b\"), Color.web(\"0xf1d04b\"), Color.web(\"0xf3d86b\")};\n\t\t//tableau de couleur de la valeur\n\t\tColor colorString[]= {Color.web(\"0x776e65\"), Color.web(\"0x776e65\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\")};\n\t\t\n\t\t//taille du pion et angle arrondi\n\t\ttile.setWidth(80);\n\t\ttile.setHeight(80);\n\t\ttile.setArcWidth(20);\n\t\ttile.setArcHeight(20);\n\t\ttile.setFill(color[val-1]);\n\t\t\n\t\t//ajout de texte avec le chiffre\n\t\tvalue.setFont(new Font(25));\n\t\tvalue.setFill(colorString[val-1]);\n\t\t//deplacement de la valeur suivant le nombre de chiffre dans le nombre\n\t\tif(val <= 3){\n\t\t\tvalue.setX(30);\n\t\t\tvalue.setY(50);\n\t\t}else if(val <= 6){\n\t\t\tvalue.setX(25);\n\t\t\tvalue.setY(50);\n\t\t}else{\n\t\t\tvalue.setX(15);\n\t\t\tvalue.setY(50);\n\t\t}\n\t\t\n\t\tthis.getChildren().add(tile);\n\t\tthis.getChildren().add(value);\n\t}",
"public Card(Suit suit, int number) {\n\t\tthis.suit = suit;\n\t\tthis.number = number;\n\t\tswitch(number) {\n\t\t\t//place in CardType\n\t\t\tcase 1:\n\t\t\t\ttype = \"Ace\";\n\t\t\t\tsetNumber(14);\n\t\t\t\tbreak;\n\t\t\tcase 2:\t\t\t\t\n\t\t\t\tmagic = Magic.startAgain;\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tmagic = Magic.seeThrough;\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\tmagic = Magic.missAGo;\n\t\t\t\tbreak;\n\t\t\tcase 9: \n\t\t\t\tmagic = Magic.playBelow;\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\tmagic = Magic.burn;\n\t\t\tcase 11:\n\t\t\t\ttype = \"Jack\";\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\ttype = \"Queen\";\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\ttype = \"King\";\n\t\t\t\tbreak;\n\t\t}\n\t\tif(number > 1 && number < 11) {\n\t\t\ttype = Integer.toString(number);\n\t\t}\n\t}",
"public Tile createTile(int i, int x, int y) {\n\t\tif (Constants.INTERACTIVE_TILES.contains(\" \" + i + \" \")) {\n\t\t\treturn new InteractiveTile(i, x, y);\n\t\t} else if (Constants.ITEM_IDS.contains(\" \" + i + \" \")\n\t\t\t\t|| Constants.IOBJECTS_IDS.contains(\" \" + i + \" \")\n\t\t\t\t|| Constants.CREATURE_IDS.contains(\" \" + i + \" \")) {\n\t\t\treturn new Tile(0, x, y);\n\t\t} else {\n\n\t\t\treturn new Tile(i, x, y);\n\t\t}\n\t}",
"@Override\r\n\tpublic Board selectBoardByNumber(int number) {\n\t\treturn session.selectOne(namespace+\"selectBoardByNumber\", number);\r\n\t}",
"Card(int num,String suit){\n this.number = num;\n this.suits = suit;\n }",
"private int getRow(int number) {\n return number / 9;\n }",
"public Tile() {\n this(-1, false);\n for (int i = 1; i <= 9; i++) {\n possibleValues.add(i);\n }\n }",
"public static StackPane createBoard() {\n StackPane stackPane = new StackPane();\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n Tile tile = new Tile();\n Coordinates coordinates = new Coordinates(i, j);\n tile.setTextValue(\"\");\n tile.setTranslateX(i * 50);\n tile.setTranslateY(j * 50);\n tile.setEditable(true);\n tile.setTileId(coordinates);\n stackPane.getChildren().add(tile);\n tiles.put(coordinates, tile);\n }\n }\n return stackPane;\n }",
"public TCPImageFetcher(int teamNumber) {\n byte high = (byte) (teamNumber / 100);\n byte low = (byte) (teamNumber % 100);\n m_address = new byte[]{10, high, low, 2};\n }",
"public Tile(int row, int column){\n this.row = row;\n this.column = column;\n this.piece = null;\n }",
"private void getTileNumber() {\r\n int xtile = (int) Math.floor((coordinates.getLon() + 180) / 360 * (1 << zoom));\r\n int ytile = (int) Math.floor((1 - Math.log(Math.tan(Math.toRadians(coordinates.getLat())) + 1 / Math.cos(Math.toRadians(coordinates.getLat()))) / Math.PI) / 2 * (1 << zoom));\r\n\r\n if (xtile < 0) xtile = 0;\r\n\r\n if (xtile >= (1 << zoom)) xtile = ((1 << zoom) - 1);\r\n\r\n if (ytile < 0) ytile = 0;\r\n\r\n if (ytile >= (1 << zoom)) ytile = ((1 << zoom) - 1);\r\n\r\n this.xtile = xtile;\r\n this.ytile = ytile;\r\n }",
"private Board create5by5Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 5);\n Tile t2 = new Tile(1, 5);\n Tile t3 = new Tile(2, 5);\n Tile t4 = new Tile(3, 5);\n Tile t5 = new Tile(4, 5);\n Tile t6 = new Tile(5, 5);\n Tile t7 = new Tile(6, 5);\n Tile t8 = new Tile(7, 5);\n Tile t9 = new Tile(8, 5);\n Tile t10 = new Tile(9, 5);\n Tile t11 = new Tile(10, 5);\n Tile t12 = new Tile(11, 5);\n Tile t13 = new Tile(12, 5);\n Tile t14 = new Tile(13, 5);\n Tile t15 = new Tile(14, 5);\n Tile t16 = new Tile(15, 5);\n Tile t17 = new Tile(16, 5);\n Tile t18 = new Tile(17, 5);\n Tile t19 = new Tile(18, 5);\n Tile t20 = new Tile(19, 5);\n Tile t21 = new Tile(20, 5);\n Tile t22 = new Tile(21, 5);\n Tile t23 = new Tile(22, 5);\n Tile t24 = new Tile(23, 5);\n Tile t25 = new Tile(24, 5);\n tiles = new Tile[5][5];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[0][3] = t5;\n tiles[0][4] = t9;\n tiles[1][0] = t3;\n tiles[1][1] = t1;\n tiles[1][2] = t8;\n tiles[1][3] = t4;\n tiles[1][4] = t11;\n tiles[2][0] = t17;\n tiles[2][1] = t18;\n tiles[2][2] = t10;\n tiles[2][3] = t25;\n tiles[2][4] = t20;\n tiles[3][0] = t23;\n tiles[3][1] = t21;\n tiles[3][2] = t12;\n tiles[3][3] = t15;\n tiles[3][4] = t13;\n tiles[4][0] = t22;\n tiles[4][1] = t24;\n tiles[4][2] = t14;\n tiles[4][3] = t16;\n tiles[4][4] = t19;\n return new Board(tiles);\n }",
"public Card(int x) {\n\t\tid = x;\n\t}",
"private List<Tile> makeTiles() {\n List<Tile> tiles = new ArrayList<>();\n Board board = (Board) boardManager.getBoard();\n final int numTiles = board.getNumRows() * board.getNumCols();\n for (int tileNum = 0; tileNum != numTiles; tileNum++) {\n tiles.add(new Tile(tileNum + 1, tileNum, 4));\n }\n\n return tiles;\n }",
"private void createTiles() {\n\t\tint tile_width = bitmap.getWidth() / gridSize;\n\t\tint tile_height = bitmap.getHeight() / gridSize;\n\n\t\tfor (short row = 0; row < gridSize; row++) {\n\t\t\tfor (short column = 0; column < gridSize; column++) {\n\t\t\t\tBitmap bm = Bitmap.createBitmap(bitmap, column * tile_width,\n\t\t\t\t\t\trow * tile_height, tile_width, tile_height);\n\n\t\t\t\t// if final, Tile -> blank\n\t\t\t\tif ((row == gridSize - 1) && (column == gridSize - 1)) {\n\t\t\t\t\tbm = Bitmap.createBitmap(tile_width, tile_height,\n\t\t\t\t\t\t\tbm.getConfig());\n\t\t\t\t\tbm.eraseColor(Color.WHITE);\n\t\t\t\t\ttheBlankTile = new Tile(bm, row, column);\n\t\t\t\t\ttiles.add(theBlankTile);\n\t\t\t\t} else {\n\t\t\t\t\ttiles.add(new Tile(bm, row, column));\n\t\t\t\t}\n\t\t\t} // end column\n\t\t} // end row\n\t\tbitmap.recycle();\n\n\t}",
"private static TETile randomTile() {\n int tileNum = RANDOM.nextInt(5);\n switch (tileNum) {\n case 0: return Tileset.TREE;\n case 1: return Tileset.FLOWER;\n case 2: return Tileset.GRASS;\n case 3: return Tileset.SAND;\n case 4: return Tileset.MOUNTAIN;\n default: return Tileset.NOTHING;\n }\n }",
"public void init(String _filename,int _num) {\r\n tileFilename=_filename;\r\n tileNum=_num;\r\n tileNumSq=(tileNum*tileNum);\r\n\r\n width=p.width;\r\n height=p.height;\r\n cameraZ=(height/2.0f)/p.tan(p.PI*FOV/360.0f);\r\n p.println(\"TileSaver: \"+tileNum+\" tilesnResolution: \"+\r\n (p.width*tileNum)+\"x\"+(p.height*tileNum));\r\n\r\n // remove extension from filename\r\n if(!new java.io.File(tileFilename).isAbsolute())\r\n tileFilename=p.dataPath(tileFilename);\r\n tileFilename=noExt(tileFilename);\r\n p.createPath(tileFilename);\r\n\r\n // save preview\r\n if(doSavePreview) p.g.save(tileFilename+\"_preview.png\");\r\n\r\n // set up off-screen buffer for saving tiled images\r\n tileImg=new PImage(p.width*tileNum, p.height*tileNum);\r\n\r\n // DAVE: start streaming output image\r\n tileFilename+=\"_\"+(p.width*tileNum)+\"x\"+\r\n (p.height*tileNum)+tileFileextension;\r\n startTGA(tileFilename);\r\n \r\n\r\n // start tiling\r\n done=false;\r\n isTiling=false;\r\n perc=0;\r\n percMilestone=0;\r\n tileInc();\r\n }",
"@Test\n public void testGetTile() {\n assertEquals(7, board3by3.getTile(0, 0).getId());\n }",
"public Row(Context context, boolean black, int x, int y, int tileWidth, int tileHeight, int index) {\n this.blackFirst = black;\n this.context = context;\n this.index = index;\n this.x = x;\n this.y = y;\n dy = GamePanel.gameSpeed;\n\n\n// BLACK_BITMAP_TILE = BitmapFactory.decodeResource(context.getResources(), R.drawable.black);\n// WHITE_BITMAP_TILE = BitmapFactory.decodeResource(context.getResources(), R.drawable.white);\n\n tiles = new ArrayList<>();\n if (blackFirst) {\n// for(int i = 0; i < ChessBoard.COLUMN_NUM; i ++){\n// Tile tile;\n// if((i % 2) == 0) {\n// tile = new Tile(BLACK_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, true );\n// } else {\n// tile = new Tile(WHITE_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, false );\n// }\n// tiles.add(i, tile);\n// }\n for (int i = 0; i < GamePanel.COLUMN_NUM; i++) {\n Tile tile;\n if ((i % 2) == 0) {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, true, i, index);\n } else {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, false, i, index);\n }\n tiles.add(i, tile);\n }\n } else {\n// for(int i = 0; i < ChessBoard.COLUMN_NUM; i ++){\n// Tile tile;\n// if((i % 2) == 0) {\n// tile = new Tile(WHITE_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, false );\n// } else {\n// tile = new Tile(BLACK_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, true );\n// }\n// tiles.add(i, tile);\n// }\n\n for (int i = 0; i < GamePanel.COLUMN_NUM; i++) {\n Tile tile;\n if ((i % 2) == 0) {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, false, i, index);\n } else {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, true, i, index);\n }\n tiles.add(i, tile);\n }\n }\n\n\n }",
"public int tileType(){\n\t\treturn this.type;\n\t}",
"public Cardholder(String name, String address, int cardNumber){\n this.name = name;\n this.address = address;\n this.cardNumber = cardNumber;\n }",
"public void fillWithIslandTiles() {\n\t\tthis.addCard(new IslandTile(\"Breakers Bridge\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Bronze Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Cliffs of Abandon\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Cave of Embers\", CardType.TILE, TreasureType.CRYSTAL_OF_FIRE));\n\t\tthis.addCard(new IslandTile(\"Crimson Forest\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Copper Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Coral Palace\", CardType.TILE, TreasureType.OCEAN_CHALICE));\n\t\tthis.addCard(new IslandTile(\"Cave of Shadows\", CardType.TILE, TreasureType.CRYSTAL_OF_FIRE));\n\t\tthis.addCard(new IslandTile(\"Dunes of Deception\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Fool's Landing\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Gold Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Howling Garden\", CardType.TILE, TreasureType.STATUE_OF_WIND));\n\t\tthis.addCard(new IslandTile(\"Iron Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Lost Lagoon\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Misty Marsh\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Observatory\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Phantom Rock\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Silver Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Temple of the Moon\", CardType.TILE, TreasureType.EARTH_STONE));\n\t\tthis.addCard(new IslandTile(\"Tidal Palace\", CardType.TILE, TreasureType.OCEAN_CHALICE));\n\t\tthis.addCard(new IslandTile(\"Temple of the Sun\", CardType.TILE, TreasureType.EARTH_STONE));\n\t\tthis.addCard(new IslandTile(\"Twilight Hollow\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Whispering Garden\", CardType.TILE, TreasureType.STATUE_OF_WIND));\n\t\tthis.addCard(new IslandTile(\"Watchtower\", CardType.TILE, TreasureType.NONE));\n\t}",
"public static ImageItem createItem(CustomInteger tile) {\n\t\treturn new IntegerValueItem(tile);\r\n\t}",
"public void createCards(int n) {\n mController.createCards(n);\n }",
"public Tile (int pos, int type) { \r\n\t\tthis.tilePos = pos;\r\n\t\tthis.tileType = type;\r\n\t}",
"public GameTileyul579(int tileValue) {\n\n //calls the empty constructor\n super(tileValue);\n\n /*TODO: Create one or more new Shape(s) to represent the tile \n * (it can be a Rectangle, a Circle, a combination, etc. Get creative!)\n *\n * Don't forget to set the width and height of the object(s)\n * \n * Set the color of the object(s) depending on the tile's value.\n * You can use the colors HashMap to get the appropriate color.\n * Remember you can change the colors in this HashMap, and you can \n * combine them with other colors to make a creative tile. The\n * only requirement is that each legal value in the game have a \n * different color or color scheme. You need to handle illegal \n * values, but the color you choose for these illegal values is \n * up to you.\n * \n * Remember that colors.get(tileValue) will return the Color\n * associated with the value.\n * \n */ \n Rectangle square = new Rectangle();\n square.setWidth(100);\n square.setHeight(100);\n populateColors();\n square.setFill(colors.get(tileValue));\n //illegal value\n if((tileValue & (tileValue-1))!=0 || tileValue<0 ||tileValue==1)\n square.setFill(Color.BLACK);\n if(tileValue > 256)\n square.setFill(Color.WHITE);\n\n \n \n /* TODO: Create a Text object to display the value of the tile,\n * if the tileValue is non-zero\n * Don't forget to setText, setFont, and setFill\n *\n * The font type and color is up to you. You might choose to vary it\n * depending on the value of the tile, or you can just use a single\n * color.\n *\n * If tileValue is 0,\n * you do not need to create this text object. I.e. it will be blank.\n */\n Text someText = new Text();\n if(tileValue!=0){\n someText.setText(Integer.toString(tileValue));\n someText.setFont(Font.font(\n \"Times New Roman\",FontWeight.BOLD,30));\n someText.setFill(Color.WHITE); \n }else{\n someText.setText(\"\"); \n }\n\n /* TODO: Finally, add tile shape(s) and value of tile to the calling\n * object, which is a StackPane. \n * Hint: Look into the getChildren method of the StackPane/Pane class\n * and remember that you are adding your objects to the calling object\n * which is a StackPane. \n */\n this.getChildren().add(square);\n this.getChildren().add(someText);\n\n }",
"public void setTileX(int x) {\n\t\ttileX = x;\n\t}",
"public int getTileId() {\n\t\treturn tileId;\n\t}",
"private static TETile getRandomTile() {\n Random r = new Random();\n int tileNum = r.nextInt(5);\n switch (tileNum) {\n case 0: return Tileset.FLOWER;\n case 1: return Tileset.MOUNTAIN;\n case 2: return Tileset.TREE;\n case 3: return Tileset.GRASS;\n case 4: return Tileset.SAND;\n default: return Tileset.SAND;\n }\n }",
"private void makeCards() {\n //make number cards(76 cards)\n for (int i = 0; i < 10; i++) {\n String s = i + \"\";\n cards.add(new NumberCard(s, Color.RED, i));\n cards.add(new NumberCard(s, Color.GREEN, i));\n cards.add(new NumberCard(s, Color.BLUE, i));\n cards.add(new NumberCard(s, Color.YELLOW, i));\n if(i > 0) {\n cards.add(new NumberCard(s, Color.RED, i));\n cards.add(new NumberCard(s, Color.GREEN, i));\n cards.add(new NumberCard(s, Color.BLUE, i));\n cards.add(new NumberCard(s, Color.YELLOW, i));\n }\n }\n\n //make wild cards(8 cards)⨁\n for (int i = 0; i < 4; i++) {\n cards.add(new WildCard(\"W\", Color.BLACK));\n cards.add(new WildDrawCard(\"W+4\", Color.BLACK));\n }\n\n //make reverse cards(8 cards)⤤⤦\n for (int i = 0; i < 2; i++) {\n cards.add(new ReverseCard(\"Rev\", Color.RED));\n cards.add(new ReverseCard(\"Rev\", Color.GREEN));\n cards.add(new ReverseCard(\"Rev\", Color.BLUE));\n cards.add(new ReverseCard(\"Rev\", Color.YELLOW));\n }\n\n //make draw cards(8 cards)⧉\n for (int i = 0; i < 2; i++) {\n cards.add(new Draw2Card(\"D+2\", Color.RED));\n cards.add(new Draw2Card(\"D+2\", Color.GREEN));\n cards.add(new Draw2Card(\"D+2\", Color.BLUE));\n cards.add(new Draw2Card(\"D+2\", Color.YELLOW));\n }\n\n //make skip cards(8 cards)🚫\n for (int i = 0; i < 2; i++) {\n cards.add(new SkipCard(\"Ski\", Color.RED));\n cards.add(new SkipCard(\"Ski\", Color.GREEN));\n cards.add(new SkipCard(\"Ski\", Color.BLUE));\n cards.add(new SkipCard(\"Ski\", Color.YELLOW));\n }\n //Shuffling cards list\n Collections.shuffle(cards);\n }",
"public void addCard() {\n for (int i = 0; i < 4; i++) {\n cards.add(new Wild());\n cards.add(new WildDrawFour());\n }\n for (Color color : Color.values())\n cards.add(new NumberCard(color.name(),0));\n for (Color color : Color.values()) {\n for (int i = 0; i < 2; i++) {\n for (int j = 1; j < 10; j++)\n cards.add(new NumberCard(color.name(),j));\n cards.add(new DrawTwo(color.name()));\n cards.add(new Reverse(color.name()));\n cards.add(new Skip(color.name()));\n }\n }\n }",
"public Image getCardPlayer1() {\n Random rand = new Random();\r\n randomNum = rand.nextInt((52 - 1) + 1) + 1;\r\n Image p1 = new Image(\"/Images/cards/Card\" + randomNum + \".png\");\r\n return p1;\r\n }",
"public Tile(int imageCoordinate, int x, int y) {\n this.imageCoordinate = imageCoordinate;\n this.x = x;\n this.y = y;\n }",
"private int getColumn(int number) {\n return number % 9;\n }",
"public void createTiles() {\r\n Session session = sessionService.getCurrentSession();\r\n Campaign campaign = session.getCampaign();\r\n\r\n tilePane.getChildren().clear();\r\n List<Pc> pcs = null;\r\n try {\r\n pcs = characterService.getPlayerCharacters();\r\n } catch (MultiplePlayersException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n if (pcs != null) {\r\n pcs = pcs.stream().filter(pc -> campaign.getPcs().stream().anyMatch(\r\n campaignPc -> campaignPc.getId().equalsIgnoreCase(pc.getId())\r\n )).collect(Collectors.toList());\r\n\r\n for (Pc pc : pcs) {\r\n SortedMap<String, String> items = getTileItems(pc);\r\n Tile tile = new Tile(pc.getId(), pc.getName(), items);\r\n tile.setOnMouseClicked(mouseEvent -> {\r\n try {\r\n sessionService.updateParticipant(playerManagementService.getRegisteredPlayer().getId(), tile.getObjectId());\r\n } catch (EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n parentController.updateSession(sessionService.getCurrentSession());\r\n parentController.switchView();\r\n });\r\n tilePane.getChildren().add(tile);\r\n }\r\n }\r\n }",
"public static ImageItem createItem(CustomValue tile) {\n\t\tswitch(tile.getValueKind()) {\r\n\t\tcase INTEGER:\r\n\t\t\treturn createItem((CustomInteger)tile);\r\n\t\t\t\r\n\t\t\r\n\t\tcase BOOLEAN:\r\n\t\t\treturn createItem((CustomBoolean)tile);\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"void setTile(Tile tile) {\n _tile = tile;\n }",
"public Card(int cardNumber, JButton jButton) {//upon creation;\n this.cardNumber = cardNumber;//set the card number of this card;\n this.jButton = jButton;//set the JButton of this card;\n// System.out.println(cardNumber);//SOUT the card numbers;\n }",
"public MancalaStone(int num)\n\t{\n\t\tnumStone = num;\n\t}",
"@Override\n public void playNumber(int row, int col, int number) {\n if (!grid.isGiven(row, col)) {\n // get any existing number\n int n = grid.getNumber(row, col);\n // if there was a number there, \n if (n != 0) {\n // unset then set the number\n grid.unsetNumber(row, col);\n grid.setNumber(row, col, number);\n view.setNumber(row, col, number);\n // did we win yet?\n didWin();\n } else {\n // no number there, so just set and check for win\n grid.setNumber(row, col, number);\n view.setNumber(row, col, number);\n didWin();\n } // if n != 0\n } // if not given\n }",
"public Card(int tempNum, int tempSuit)\n {\n num = tempNum;\n suit = tempSuit;\n }",
"public Tile(int type, int image, Character c) {\n\t\tsetType(type);\n\t\tsetImage(image);\n\t\tsetCharacter(c);\n\t\tsetSelected(false);\n\t\tsetMvmnt(false);\n\t}",
"public Card getCard(int n) {\r\n\t\treturn this.Hand.get(n);\r\n\t}",
"private Tile getTileByValue(int value) {\n\t\tfor (int i = 0; i < gameSize; i++)\n\t\t\tfor (int j = 0; j < gameSize; j++)\n\t\t\t\tif (gameTiles.getTile(i, j).getValue() == value)\n\t\t\t\t\treturn gameTiles.getTile(i, j);\n\n\t\treturn null;\n\t}",
"private Board create4by4Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 4);\n Tile t2 = new Tile(1, 4);\n Tile t3 = new Tile(2, 4);\n Tile t4 = new Tile(3, 4);\n Tile t5 = new Tile(4, 4);\n Tile t6 = new Tile(5, 4);\n Tile t7 = new Tile(6, 4);\n Tile t8 = new Tile(7, 4);\n Tile t9 = new Tile(8, 4);\n Tile t10 = new Tile(9, 4);\n Tile t11 = new Tile(10, 4);\n Tile t12 = new Tile(11, 4);\n Tile t13 = new Tile(12, 4);\n Tile t14 = new Tile(13, 4);\n Tile t15 = new Tile(14, 4);\n Tile t16 = new Tile(15, 4);\n tiles = new Tile[4][4];\n tiles[0][0] = t5;\n tiles[0][1] = t16;\n tiles[0][2] = t1;\n tiles[0][3] = t3;\n tiles[1][0] = t13;\n tiles[1][1] = t15;\n tiles[1][2] = t9;\n tiles[1][3] = t12;\n tiles[2][0] = t2;\n tiles[2][1] = t6;\n tiles[2][2] = t7;\n tiles[2][3] = t14;\n tiles[3][0] = t10;\n tiles[3][1] = t4;\n tiles[3][2] = t8;\n tiles[3][3] = t11;\n return new Board(tiles);\n }",
"private void add(Tile t) {\n tileBag.add(t);\n shuffleBag();\n }",
"public void generateOneTileByMap(GridPane grid, int row, int col) {\n\n\t\tHBox tileField = new HBox();\n\t\ttileField.setAlignment(Pos.CENTER);\n\t\tgrid.add(tileField, row, col);\n\n\t\tImageView tilePane = new ImageView();\n\t\ttileField.getChildren().add(tilePane);\n\t\tgenerateImage(col, row);\n\t\ttilePane.setImage(getTileImage());\n\t}",
"public void createNewCardPuzzle(){\n if (playerCardList != null) removePrevCardList();\n pairMatchedCount = 0;\n playerCardList = new PlayerCardList();\n int tempCardNo = 0;\n for (int row = 0; row < 4; row++) {\n for (int col = 0; col < 5; col++) {\n PlayerCard playerCard = playerCardList.getPlayerCardByNo(tempCardNo);\n setCardFlipEventHandler(playerCard);\n playerCardPuzzle.add(playerCard, col, row);\n tempCardNo++;\n }\n }\n }",
"public Image getCardPlayer3() {\n Random rand5 = new Random();\r\n randomNum5 = rand5.nextInt((52 - 1) + 1) + 1;\r\n Image p3 = new Image(\"/Images/cards/Card\" + randomNum5 + \".png\");\r\n return p3;\r\n }",
"public TrapTiles()\r\n {\r\n id = 604 ; \r\n }",
"public Tile(final int x, final int y) {\n this.x = x;\n this.y = y;\n }",
"public static Tile of(final int originalPos) {\n return new Tile(originalPos);\n }",
"@Override\n protected void generateTiles() {\n }",
"private Card(Color c, Rank r) {\n this.nbCard = pack(c,r);\n }",
"public TownTile(float x, float y, int type, int index) {\n\t\tsuper(x, y);\n\t\tthis.type = type;\n\t\tthis.initialize(index);\n\t}",
"public TiledImage(BufferedImage image, int tile_X, int tile_Y) {\n\t\t\t\n\t\tm_imageWidth = image.getWidth();\n\t\tm_imageHeight = image.getHeight();\n\t\t\n\t\t// Determine number of rows and columns required\n\t\tm_rows = (int) Math.ceil(image.getWidth() / (double) tile_X);\n\t\tm_columns = (int) Math.ceil(image.getHeight() / (double) tile_Y);\n\t\t\n\t\tif (m_rows > 0 && m_columns > 0) {\n\t\t\t\n\t\t\tint chunks = m_rows * m_columns;\n\t\t\tint count = 0;\n\t\t\t\n\t\t\t// The goal here is to divide\n\t m_sourceTiles = new BufferedImage[chunks]; //Image array to hold image chunks\n\t m_transforms = new Translate[chunks];\n\t m_imageTiles = new Image[chunks];\n\t for (int x = 0; x < m_rows; x++) {\n\t for (int y = 0; y < m_columns; y++) {\n\t // Initialize the image array with image chunks\n\t \t// https://stackoverflow.com/questions/5836128/how-do-i-make-javas-imagebuffer-to-read-a-png-file-correctly\n\t \tint imageType = image.getType();\n\t \tif (imageType == 0) imageType = 5;\n\t m_sourceTiles[count] = new BufferedImage(tile_X, tile_Y, imageType);\n\t\n\t // draws the image chunk\n\t Graphics2D gr = m_sourceTiles[count].createGraphics();\n\t gr.drawImage(image, 0, 0, tile_X, tile_Y, tile_X * y, tile_Y * x, tile_X * y + tile_X, tile_Y * x + tile_Y, null);\n\t gr.dispose();\n\t \n\t // Create the JavaFX Image tile\n\t \t\tm_imageTiles[count] = SwingFXUtils.toFXImage(m_sourceTiles[count], null);\n\t \n\t // assign a translate offset Transform for the tile.\n\t int shiftX = tile_X * y;\n\t int shiftY = tile_Y * x;\n\t \n\t Translate translate = new Translate();\n\t translate.setX(shiftX);\n\t translate.setY(shiftY);\n\t m_transforms[count] = translate;\n\t \n\t count++;\n\t }\n\t }\n\t\t}\n\t}",
"public void selectTile(CardTile ct){\n\t\tif(ct.getCard() != null){ \n\t\t\t/*For Viewing Selected Card information*/\n//\t\t\tint HP;\n//\t\t\tArrayList<Card> attached;\n//\t\t\tString cards_att = \"\";\n//\t\t\tif (ct.getCard() instanceof Pokemon){\n//\t\t\t\tHP = ((Pokemon)ct.getCard()).getHP();\n//\t\t\t\tattached = ((Pokemon)ct.getCard()).getAttachedCards(); \n//\t\t\t\tfor (int l=0; l< attached.size(); l++){\n//\t\t\t\t\tcards_att += l+1 + \": \" + attached.get(l).getName() + \"<br />\";\n//\t\t\t\t}\n//\t\t\t} else {\n//\t\t\t\tHP = 0;\n//\t\t\t\tattached = new ArrayList<Card>();\n//\t\t\t\tcards_att = \"NA\";\n//\t\t\t}\n//\t\t\tboard.updateInfo(\"<html><p>\" + \"Card location: \"+ ct.getPlace() + \"<br />\" \n//\t\t\t\t\t\t\t\t+ \"Seq No: \"+ ct.getSeqNo() + \"<br />\" \n//\t\t\t\t\t\t\t\t+ \"Card Name: \"+ ct.getCard().getName() + \"<br />\"\n//\t\t\t\t\t\t\t\t+ \"Card Type: \"+ ct.getCard().getType() + \"<br />\"\n//\t\t\t\t\t\t\t\t+ \"Attached cards: \" + \"<br />\" + cards_att + \"<br />\" \n//\t\t\t\t\t\t\t\t+ \"HP: \"+ HP + \"<br />\"\n//\t\t\t\t\t\t\t\t+ \"</p></html>\");\n\t\t\t/*EO For Viewing Selected Card information*/\n\t\t\t\n\t\t\t// we can in the normal case select cards from the hand or the bench or the active\n\t\t\t// later we can add more cases as needed but this is for normal play\n\t\t\tif(ct.getPlace() == Place.MY_ACTIVE || ct.getPlace() == Place.MY_BENCH || ct.getPlace() == Place.MY_HAND){\n\t\t\t\tselectedTile = ct;\n\t\t\t\tct.setSelected(true);\n\t\t\t\tdisplayCardInfo(ct);\n\t\t\t}\n\t\t}\n\t}",
"public int getTileType() {\r\n\t\treturn 3;\r\n\t}",
"public void addTile(Tile tile) {\n ownedTiles.add(tile);\n }",
"public Pokemon(String name, int number) {\r\n this.name = name;\r\n this.number = number;\r\n }",
"private Board create3by3Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 3);\n Tile t2 = new Tile(1, 3);\n Tile t3 = new Tile(2, 3);\n Tile t4 = new Tile(3, 3);\n Tile t5 = new Tile(4, 3);\n Tile t6 = new Tile(5, 3);\n Tile t7 = new Tile(6, 3);\n Tile t8 = new Tile(7, 3);\n Tile t9 = new Tile(8, 3);\n tiles = new Tile[3][3];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[1][0] = t5;\n tiles[1][1] = t9;\n tiles[1][2] = t3;\n tiles[2][0] = t1;\n tiles[2][1] = t8;\n tiles[2][2] = t4;\n return new Board(tiles);\n }",
"public Tile getTileAt(Position p);",
"public Tile(Tile tile){\n this.gameX = tile.getGameX();\n this.gameY = tile.getGameY();\n this.state = tile.getState();\n this.color = tile.getColor();\n }",
"public void setNumber(int number) {\n\t\tthis.number = number;\n\t}",
"public void setNumber(int number) {\n\t\tthis.number = number;\n\t}",
"public void setNumber(int number) {\n\t\tthis.number = number;\n\t}",
"public int getNumber(){\n return cardNumber;\n }",
"private static void addItem( String name, Integer number ) {\n\t\tItem item = container.addItem( itemId );\n\t\tsetValues( name, number, item );\n\t}",
"public Packet(int packetNumber) {\n\t\tthis.packetNumber = packetNumber;\n\t}",
"@Test\n public void testTftile() {\n TfTile tile = new TfTile(1);\n assertEquals(R.drawable.tftile_01, tile.getBackground());\n assertEquals(1, tile.getId());\n tile.setId(11);\n assertEquals(R.drawable.tftile_11, tile.getBackground());\n }",
"public HumanPlayer(int num){\r\n super(num);\r\n getHand().drawCards(7);\r\n }",
"private void initTile(SpriteType sT, String tileType)\n {\n // CONSTRUCT THE TILE\n MahjongSolitaireTile newTile = new MahjongSolitaireTile(sT, unassignedTilesX, unassignedTilesY, 0, 0, INVISIBLE_STATE, tileType);\n \n // AND ADD IT TO THE STACK\n stackTiles.add(newTile); \n }",
"public TileStoneFloor(int id, String name, int index)\n\t{\n\t\tsuper(id, name, index);\n\t}",
"public void generateDeck(){\n\t\tString type;\n\t\t//Randomize MAX_TILES number of Tile Objects\n\t\tfor(int i=0; i<GameInfo.MAX_TILES; i++){\n\t\t\ttype = GameInfo.allowedTiles[rg.nextInt(GameInfo.MAX_TYPES)];\n\t\t\tdeck.add(tf.create(type));\n\t\t}\n\t\tgenerated = true;\n\t}",
"public void setNumber(int number) {\r\n\t\tthis.number = number;\r\n\t}",
"public Tile(int x, int y, char type) {\n\t\tthis.tileX = x*Tile.TILE_SIDE;\n\t\tthis.tileY = LevelScreen.INFO_BAR_HEIGHT+y*Tile.TILE_SIDE;\n\t\tthis.type = type;\n\t\tthis.hasDefenseObject = false;\n\t\tthis.currentConstruct = null;\n\n\t\tif (type == TOWER_TERRAIN) {\n\t\t\ttileImage = Assets.tileEmptyTower;\n\t\t} else if (type == PATH) {\n\t\t\ttileImage = Assets.tilePath;\n\t\t} else if (type == MONSTER_GOAL) {\n\t\t\ttileImage = Assets.tileGoal;\n\t\t} else if (type == MONSTER_ENTRANCE) {\n\t\t\ttileImage = Assets.tileEntrance;\n\t\t}\n\t}",
"public MetroTile(MetroTileView metroTileView) {\n this.metroTileView = metroTileView;\n getRows();\n getTiles();\n }",
"public void setNumber(int number) {\n this.number = number;\n }",
"public void setCardNo(int cardNumber);",
"public Tile(int type, int x, int y) {\n\t\tthis.type=type;\n\t\tthis.coordinates= new int[2];\n\t\tthis.coordinates[0]=x;\n\t\tthis.coordinates[1]=y;\n\t\tif(type==1){\n\t\t\ttileImage= new ImageIcon(this.getClass().getResource(\"scenery.png\")).getImage();\n\t\t}\n\t\telse if(type==2){\n\t\t\ttileImage= new ImageIcon(this.getClass().getResource(\"path.png\")).getImage();\n\t\t}\n\t\telse if(type==3){\n\t\t\ttileImage= new ImageIcon(this.getClass().getResource(\"tower.png\")).getImage();\n\t\t}\n\t}",
"@SuppressWarnings(value = \"unchecked\")\r\n private void writeTile10(String tileKey, String rName, Integer startPos,\r\n Integer tileReads, Integer tileWindow)\r\n throws IOException {\n }",
"public PondTile(int x, int y) {\n super(x, y);\n }",
"private void add( int n ) {\r\n Card card = cards.get( n );\r\n if ( !card.isFaceUp() ) {\r\n card.toggleFace();\r\n push( card );\r\n ++this.moveCount;\r\n }\r\n }",
"protected List<Object> createObjectNumberOfTimes(ObjectInformation objectInformation, int number)\n throws FillingException {\n\n List<Object> objectList = new ArrayList<>();\n\n for (int i = 0; i < number; i++) {\n Object typeObject = createObjectFromObjectInformation(objectInformation);\n objectList.add(typeObject);\n }\n\n return objectList;\n }",
"@Override\n\tprotected void generateTiles() {\n\t}",
"public Card getCard(int i) {\n\t\treturn cards.get(i);\n\t}",
"void placeTile(Tile tile, int x, int y, SurfaceEntityType type, Building building) {\r\n\t\tfor (int a = x; a < x + tile.width; a++) {\r\n\t\t\tfor (int b = y; b > y - tile.height; b--) {\r\n\t\t\t\tSurfaceEntity se = new SurfaceEntity();\r\n\t\t\t\tse.type = type;\r\n\t\t\t\tse.virtualRow = y - b;\r\n\t\t\t\tse.virtualColumn = a - x;\r\n\t\t\t\tse.tile = tile;\r\n\t\t\t\tse.tile.alpha = alpha;\r\n\t\t\t\tse.building = building;\r\n\t\t\t\tif (type != SurfaceEntityType.BASE) {\r\n\t\t\t\t\trenderer.surface.buildingmap.put(Location.of(a, b), se);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trenderer.surface.basemap.put(Location.of(a, b), se);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void registerTile(int x, int y) {}",
"void setcard(int i)\n{\n\thc.add(i);}",
"public GrassTile(int id) {\r\n\t\tsuper(Color.GREEN, id);\r\n\t}",
"public Tile getTileAt(Point position) {\n\t\treturn getTileAt(position.x, position.y);\n\t}"
] | [
"0.77617955",
"0.62957406",
"0.6140677",
"0.604592",
"0.5982039",
"0.5894669",
"0.57981414",
"0.57530534",
"0.5751256",
"0.5720768",
"0.5717127",
"0.57116216",
"0.5655975",
"0.5634246",
"0.5617746",
"0.56075925",
"0.55948204",
"0.55943966",
"0.5594171",
"0.5540083",
"0.5529744",
"0.54995686",
"0.54613763",
"0.5448583",
"0.54481655",
"0.5428694",
"0.5428036",
"0.5415207",
"0.5400397",
"0.53986406",
"0.53905123",
"0.53732663",
"0.53679365",
"0.53464514",
"0.5341868",
"0.53373367",
"0.5334123",
"0.5318397",
"0.531373",
"0.5311473",
"0.5297729",
"0.52814245",
"0.5274635",
"0.5272494",
"0.5271716",
"0.5262483",
"0.5244395",
"0.52436554",
"0.52347326",
"0.5214783",
"0.5212335",
"0.5206502",
"0.51963437",
"0.5190841",
"0.51906055",
"0.5187682",
"0.5161158",
"0.5151129",
"0.514865",
"0.5140391",
"0.5134844",
"0.5128171",
"0.5110727",
"0.51098883",
"0.5109114",
"0.5108915",
"0.5108419",
"0.5108169",
"0.5090919",
"0.50909156",
"0.50898474",
"0.50781417",
"0.5076417",
"0.5076417",
"0.5076417",
"0.5063396",
"0.50615644",
"0.5061088",
"0.5060626",
"0.5055605",
"0.5052794",
"0.5052152",
"0.5050478",
"0.5049315",
"0.50483024",
"0.50439507",
"0.50436443",
"0.5031526",
"0.50259674",
"0.50243825",
"0.50242746",
"0.50205857",
"0.5012414",
"0.5009825",
"0.5009158",
"0.50045437",
"0.5004162",
"0.49995005",
"0.49961513",
"0.49948603"
] | 0.8197112 | 0 |
Sets the card face up. | public void setFaceUp(){faceUp = true;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void turnCardFaceUp(){\r\n setImage(CardFaceUp);\r\n }",
"public void setFace(CardFace face) {\n if (face == CardFace.FACE_DOWN) {\n cardFace = CardFace.FACE_DOWN;\n sprite.texture = faceDownTexture;\n } else {\n cardFace = CardFace.FACE_UP;\n sprite.texture = faceUpTexture;\n }\n }",
"public Card(Image faceUp) {\n\t\t\tthis.faceUp = faceUp;\n\t\t\tshowing.setImage(faceUp); //When a Card object is created, it initially shows the face-up image\n\t\t}",
"public void flipCard() {\n this.faceUp = !faceUp;\n }",
"public void turnCardFaceDown(){\r\n if (getImage() == CardFaceUp)\r\n setImage(Images.faceDown);\r\n else\r\n setImage(CardFaceUp);\r\n }",
"public Card(FrontFace frontFace, BackFace backFace) {\n this.frontFace = frontFace;\n this.backFace = backFace;\n }",
"public void registerFaceUp() {\n this.setFaceUp(true);\n }",
"public void setFace(int face) {\n\t\tthis.face = face;\n\t}",
"public void registerFaceDown() {\n this.setFaceDown(true);\n }",
"boolean turnFaceUp();",
"public void onScreenUp() {\n faceUp = true;\n requestForValidationOfQibla();\n }",
"public void faceUp(){\r\n changePlace(hand);\r\n //do a magical work\r\n changePlace(graveYard);\r\n }",
"public void setFaceDown(){faceUp = false;}",
"public void setupFavoriteContactCard() {\n if (mRemovalDialogue != null) {\n mRemovalDialogue.setVisibility(GONE);\n mRemovalDialogue.setAlpha(0.f);\n }\n mFavoriteContactCard.setAlpha(1.0f);\n mFavoriteContactCard.setTranslationX(0.f);\n }",
"public void setUpCards() {\n this.setSuspectCardsAndPlayerPieces();\n this.setWeaponCardsAndPieces();\n this.setRoomCards();\n this.setUpDetectiveSlips();\n this.shuffleCards();\n this.setEnvelope();\n this.shuffleCards();\n this.gatherCards();\n this.giveOutCards();\n }",
"public void addCardFaceUp(Card c){\n c.setFaceUp();\n pile[pilePlace] = c;\n pilePlace++;\n }",
"public void setFace(int face) {\n\t\tthis.faceDirection = Face.values()[face];\n\t}",
"private void SetUpCard(boolean currentHand)\n\t{\n\t\tVector<JTextField> vectorOfTextFields = individualHand.GetVectorOfTextFields();\n\t\tindividualHand.SetTextFieldHolder(vectorOfTextFields.get(individualHand.GetCounter()));\n\t\tJTextField textField = individualHand.GetTextFieldHolder();\n\t\t\n\t\t// Generate Card Value and card color\n\t\tint currentCardValue = individualHand.GenerateCardValue();\n\t\tindividualHand.RedOrBlack(textField);\n\t\ttextField.setText(individualHand.CardFaceValue(currentCardValue));\n\t\t\n\t\t// set face card values to 10 if they are not Aces\n\t\tif (currentCardValue > 10)\n\t\t{\n\t\t\tcurrentCardValue = 10;\n\t\t}\n\t\t\n\t\tif (currentHand == true)\n\t\t{\n\t\t\tindividualHand.SetUserHandSum(currentCardValue);\n\t\t}\n\t\telse if (currentHand == false)\n\t\t{\n\t\t\tif (individualHand.GetDealerAceFlag())\n\t\t\t{\n\t\t\t\tint temp = (individualHand.GetDealerHandSum()+11);\n\t\t\t\tif ( temp > 17 && temp <= 21)\n\t\t\t\t{\n\t\t\t\t\tindividualHand.SetDealerHandSum(11);\n\t\t\t\t\tindividualHand.SetDealerAceFlag(false);\n\t\t\t\t}\n\t\t\t\telse if (temp > 21)\n\t\t\t\t{\n\t\t\t\t\tindividualHand.SetDealerHandSum(currentCardValue);\n\t\t\t\t\tindividualHand.SetDealerAceFlag(false);\n\t\t\t\t}\n\t\t\t\telse if (temp > 11)\n\t\t\t\t{\n\t\t\t\t\tindividualHand.SetDealerHandSum(currentCardValue);\n\t\t\t\t\tindividualHand.SetDealerAceFlag(false);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tindividualHand.SetDealerHandSum(temp);\n\t\t\t\t\tindividualHand.SetDealerAceFlag(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tindividualHand.SetDealerHandSum(currentCardValue);\n\t\t\t\tindividualHand.SetDealerAceFlag(false);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public Card()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start Card Method *****************/\n\n\t// Set face value to null\n\tfaceValue = null;\n\n\t// Set true value to 0\n\ttrueValue = 0;\n\n\t// Set suit to null\n\tsuit = null;\n\n\t// Set picture to null\n\tpicture = null;\n\n }",
"public void setFace(String face) {\n\t\tthis.face = face;\n\t}",
"public void setDisplay(boolean isFaceUp, boolean isTapped) {\n \n \t}",
"boolean turnFaceDown();",
"public void addCardFaceDown(Card c){\n c.setFaceDown();\n pile[pilePlace] = c;\n pilePlace++;\n }",
"public PlayingCard(int newFace){\n\t\tsuper(newFace);\n\t}",
"public Card(Suit suit, Face face) {\n\t\tthis.suit = suit;\n\t\tthis.face = face;\n\t}",
"public void flip() {\n\t\t\tif (showing.getImage() == faceUp) {\n\t\t\t\tshowing.setImage(FACE_DOWN);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tshowing.setImage(faceUp);\n\t\t\t}\n\t\t}",
"@Override\n public void putCardMode() {\n gameboardPanel.putCardMode();\n leaderCardsPanel.disableProductionButtons();\n }",
"private Card init_proof_card() {\n\t\t\n\t\tProofCard card = new ProofCard(getActivity());\n\t\t\n\t\tCardExpand expand = new CardExpand(getActivity());\n\t\tcard.addCardExpand(expand);\n\t\tcard.setBackgroundResource(getResources().getDrawable(R.drawable.card_back));\n\t\treturn card;\n\t}",
"public Card(String cardFace, String cardSuit) {\r\n this.face = cardFace; // initialize face of card\r\n this.suit = cardSuit; // initialize suit of card\r\n }",
"public void resetImageToFaceState() {\n String iconPath = Global.IMAGE_PATH;\n switch (game.getFinished()) {\n case 0:\n iconPath += \"face-normal.png\";\n break;\n\n case 1:\n iconPath += \"face-win.png\";\n break;\n\n case 2:\n iconPath += \"face-lose.png\";\n break;\n\n default:\n iconPath += \"face-normal.png\";\n break;\n }\n face.setIcon(new ImageIcon(iconPath));\n }",
"private void initFaceTracker(boolean isFrontFacing) {\n if (faceDetector != null) {\n isReleased = true;\n faceDetector.release();\n }\n\n faceDetector = new FaceDetector.Builder(context).setTrackingEnabled(true)\n .setClassificationType(FaceDetector.ALL_CLASSIFICATIONS)\n //.setMode(gameManager.getCurrentGame() != null &&\n // gameManager.getCurrentGame().getId().equals(Game.GAME_COOL_CAMS)\n // ? FaceDetector.ACCURATE_MODE : FaceDetector.FAST_MODE)\n .setMode(FaceDetector.ACCURATE_MODE)\n .setProminentFaceOnly(isFrontFacing)\n .setMinFaceSize(isFrontFacing ? 0.35f : 0.15f)\n .build();\n\n isReleased = false;\n\n //Detector.Processor<Face> processor;\n //if (isFrontFacing) {\n // Tracker<Face> tracker = new TribeFaceTracker();\n // processor = new LargestFaceFocusingProcessor.Builder(faceDetector, tracker).build();\n //} else {\n // MultiProcessor.Factory<Face> factory = face -> new TribeFaceTracker();\n // processor = new MultiProcessor.Builder<>(factory).build();\n //}\n\n faceDetector.setProcessor(\n new LargestFaceFocusingProcessor.Builder(faceDetector, new TribeFaceTracker()).build());\n\n //faceDetector.setProcessor(processor);\n\n if (!faceDetector.isOperational()) {\n isFaceTrackerEnabled = false;\n }\n }",
"private void setFaceValue(FaceValue faceValue) {\n this.faceValue = faceValue;\n }",
"public void initialize()\r\n {\r\n game = new Blackjack();\r\n \r\n dealerCardList = new ArrayList<ImageShape>(8);\r\n playerCardList = new ArrayList<ImageShape>(8);\r\n \r\n setBackgroundColor(Color.green);\r\n height = getHeight();\r\n width = getWidth();\r\n cardWidth = 72;\r\n cardHeight = 96;\r\n \r\n for (float i = 0; i < 2 * cardHeight; i = i + cardHeight)\r\n {\r\n for (float j = 0; j < cardWidth*4; j = j + cardWidth)\r\n {\r\n RectF rect = new RectF(0.0f, 0.0f, cardWidth, cardHeight);\r\n ImageShape topCardSpace = new ImageShape(\"cardspace\", rect);\r\n topCardSpace.setPosition(j, i);\r\n dealerCardList.add(topCardSpace);\r\n add(topCardSpace);\r\n }\r\n }\r\n \r\n for (float i = height - 2*cardHeight; i < height; i = i + cardHeight)\r\n {\r\n for (float j = 0; j <cardWidth*4; j = j + cardWidth)\r\n {\r\n RectF rect = new RectF(0.0f, 0.0f, cardWidth, cardHeight);\r\n ImageShape bottomCardSpace = new ImageShape(\"cardspace\", rect);\r\n bottomCardSpace.setPosition(j, i);\r\n playerCardList.add(bottomCardSpace);\r\n add(bottomCardSpace);\r\n }\r\n }\r\n }",
"public void setupPreview() {\n Log.i(TAG, \"setupPreview\");\n this.mFocusManager.resetTouchFocus();\n if (this.mAppController.getCameraProvider().isBoostPreview()) {\n this.mActivity.clearBoost();\n }\n startPreview();\n }",
"public Card(String inFaceValue, int inTrueValue, String inSuit, ImageIcon inPicture)\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start Card Method *****************/\n\n\t// Set face value\n\tfaceValue = inFaceValue;\n\n\t// Set true value\n\ttrueValue = inTrueValue;\n\n\t// Set suit\n\tsuit = inSuit;\n\n\t// Set picture\n\tpicture = inPicture;\n\n }",
"public void flip(){\n this.faceDown = !this.faceDown;\n }",
"public CardState withDrawnFaceUpCard(int slot){\n Preconditions.checkArgument(!isDeckEmpty());\n Objects.checkIndex(slot, FACE_UP_CARDS_COUNT);\n // new Deck from which the top card has been drawn\n Deck<Card> withoutTopCard = deck.withoutTopCard();\n // copy of faceUpCards\n List<Card> faceUpCards = new ArrayList<>(faceUpCards());\n // replace the card at the specified slot with the top card from the deck\n faceUpCards.set(slot, deck.topCard());\n return new CardState(faceUpCards, withoutTopCard, discards);\n }",
"public void resetLowerface() {\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setSmile(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setClench(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setSmirkLeft(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setSmirkRight(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setLaugh(0);\n\t}",
"void setCard(Card card) {\n this.card = card;\n }",
"public PlayingCard(int newFace, int newSuit, boolean newUp){\n\t\tsuper(newFace, newSuit, newUp);\n\t}",
"private Card init_fulfilled_card() {\n\t\t\n\t\tFulfilledCard card = new FulfilledCard(getActivity());\n\t\t\n\t\tCardExpand expand = new CardExpand(getActivity());\n\t\tcard.addCardExpand(expand);\n\t\tcard.setBackgroundResource(getResources().getDrawable(R.drawable.card_back));\n\t\treturn card;\n\t}",
"protected int getFace() {\n return face;\n }",
"public boolean isFaceUp(){return faceUp;}",
"void updateFace(Face face) {\n mFace = face;\n postInvalidate();\n }",
"public static void setUp(char up) {\n\t\t\tGamePreferences.up = up;\n\t\t}",
"public void setup() {\r\n\t\thumanCardsPanel.setHumanCards(players.get(0).getCards());\r\n\t\tfor ( Player p : players ) {\r\n\t\t\tp.setBoard(board);\r\n\t\t\tp.setGame(this);\r\n\t\t}\r\n\t\tboard.setGame(this);\r\n\t\tboard.repaint();\r\n\t\tJOptionPane popup = new JOptionPane();\r\n\t\tString message = \"You are Miss Scarlet. Press Next Player to begin.\\n Hint: Use File > Detective Notes to help you win!\";\r\n\t\tpopup.showMessageDialog(this, message, \"Welcome to Clue!\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}",
"public void toSetCard() {\n this.notifyTimeToSetCard(availableGods, getCurrentTurn().getCurrentPlayer());\n this.notifySetCard(availableGods, getCurrentTurn().getCurrentPlayer().getNickname(), chosenGodList);\n\n }",
"private void setUpScreen() {\n if (getView() != null) {\n setAmount(account.getArmedAmount());\n curIndex = 0;\n cvp.setPagingEnabled(false);\n if (account.getActiveCurrency() == CurrencyDAO.CURRENCY_BITCOIN) {\n // Bitcoin configurations are handled specially\n updateBitcoinDenominations();\n } else {\n new SetupArmImagesTask().execute(this);\n }\n }\n }",
"public boolean getFace() {\n return this.faceUp;\n }",
"private void onFaceDetected(CameraExtension.FaceDetectionResult faceDetectionResult) {\n if (!this.isHeadUpDesplayReady()) {\n return;\n }\n super.updateUuidBeforeUpdateView(faceDetectionResult);\n if (this.mCapturingMode.isFront()) {\n this.mFocusRectangles.setMirrored(true);\n } else {\n this.mFocusRectangles.setMirrored(false);\n }\n this.mFocusRectangles.onFaceDetected(faceDetectionResult);\n }",
"private void faceBackwards(){\n\t\tturnLeft();\n\t\tturnLeft();\n\t}",
"private void initPanelDeck() {\r\n\t\tgsp.panelDeck = gsp.createPanel(100, 50, 50, 50, 0, 0, 400, 350);\r\n\t\t\r\n\t\tgsp.buttonDeck = new JButton();\r\n\t\tgsp.setImageIcon(\"Deck\", gsp.buttonDeck);\r\n\t\t\r\n\t\tgsp.labelLastCard = new JLabel();\r\n\t\tgsp.updateLastCardView();\r\n\t\t\r\n\t\tgsp.panelDeck.add(gsp.buttonDeck);\r\n\t\tgsp.panelDeck.add(gsp.labelLastCard);\r\n\t}",
"public Card()\n {\n suite = \"\";\n number = \"\";\n value = 0;\n aceValue = 1;\n hasBeenPicked = false;\n }",
"public void setOrient(int face) {\n if (abs(face) == BLUE && onSide(face)) {\n orient *= -1;\n }\n }",
"public poker_class ()\n\t{\n\t face = \"Two\";\n\t suit = \"Clubs\";\n\t}",
"public static void setMyCards() {\n for (Suit s: Suit.values()){\n for (FaceValue f: FaceValue.values()){\n Card c = new Card(s,f);\n myCards.add(c);\n }\n }\n }",
"private void onFaceUp() {\n\t\t\tsensorManager.unregisterListener(this);\n\t\t\tfu=true;\n\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Face UP\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t}",
"private void ShowCurrentFace() \n {\n if( m_DoneInit )\n {\n String file = \"/tsbtool_gui/facepackage/\"+String.format(\"%02x.BMP\",m_ImageNumber).toUpperCase();\n //new javax.swing.ImageIcon(getClass().getResource(\"/tsbtool_gui/facepackage/00.png\")\n Image face = GetImage(file);\n if( face != null )\n {\n mFaceBox.setIcon( new ImageIcon( face));\n m_FaceLabel.setText(String.format(\"%02x\",m_ImageNumber).toUpperCase());\n }\n else\n JOptionPane.showMessageDialog(this, \"Problem with \"+file);\n AutoUpdateRoster();\n }\n }",
"void setupFrame()\n {\n int wd = shopFrame.getWidth();\n sellItemF(wd);\n\n requestItemF(wd);\n setAllVisFalse();\n }",
"public Card(Rank rank, Suit suit) {\r\n\t\tthis.rank = rank;\r\n\t\tthis.suit = suit;\r\n\t\tfaceUp = true;\r\n\t}",
"public CluedCard(GameMode mode) {\n\t\tthis(null, null, mode);\n\t}",
"public int showFace() {\n\t\treturn faceUp;\n\t}",
"public boolean isFaceUp(){\r\n return(getImage() == CardFaceUp);\r\n }",
"public void reset() {\r\n\r\n for ( Card card : cards ) {\r\n if ( card.isFaceUp() ) {\r\n card.toggleFace( true );\r\n }\r\n }\r\n Collections.shuffle( cards );\r\n\r\n this.undoStack = new ArrayList<>();\r\n\r\n this.moveCount = 0;\r\n\r\n announce( null );\r\n }",
"public void resetUpperface() {\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setRaiseBrow(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setFurrowBrow(0);\n\t}",
"public Card() {\n\t\tthis.suit = \" \";\n this.rank = 0;\n this.face = \" \";\n this.color = \" \";\n\t}",
"public myGameFrame() throws IOException {\n initComponents();\n newDeck = new DeckOfCards ();\n carrd = newDeck.carrd;\n userPoint = 0;\n northPoint= 0; \n westPoint = 0; \n eastPoint = 0;\n mytransporthandler = new myTransferHandler (\"icon\"); \n \n }",
"@SuppressLint({\"NewApi\"})\n public void setUpPreview() {\n try {\n if (this.mPreview.getOutputClass() == SurfaceHolder.class) {\n boolean z = this.mShowingPreview && Build.VERSION.SDK_INT < 14;\n if (z) {\n this.mCamera.stopPreview();\n }\n this.mCamera.setPreviewDisplay(this.mPreview.getSurfaceHolder());\n if (z) {\n this.mCamera.startPreview();\n return;\n }\n return;\n }\n this.mCamera.setPreviewTexture((SurfaceTexture) this.mPreview.getSurfaceTexture());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"public void reset(){\n super.reset();\n this.troef = CardColor.NONE;\n }",
"public Card(Suit suit, CardValue value,boolean isFaceDown) {\n this.suit = suit;\n this.cardValue = value;\n this.isFaceDown = isFaceDown;\n }",
"protected void initialize() {\n Constants.frontClimbPlatformPositionSetpoint = SmartDashboard.getNumber(\"Front Climb Platform Setpoint\", Constants.frontClimbPlatformPositionSetpoint);\n\n Constants.frontClimbCommandTimeout = SmartDashboard.getNumber(\"Front Climb Command Timeout\", Constants.frontClimbCommandTimeout);\n\n \tsetTimeout(Constants.frontClimbCommandTimeout);\n\n \tFrontClimb._legState = FrontClimb.LegState.LEGS_MOVING; \t\t\n Robot._frontClimber.moveToPosition(Constants.frontClimbPlatformPositionSetpoint);\n }",
"public Cards(String cardFace, String cardSuit) {\n\t\t// face of the card\n\t\tface = cardFace;\n\t\t// suit of the card\n\t\tsuit = cardSuit;\n\t}",
"private void cards() {\n newUserCard();\n editTypeCard();\n changePasswordCard();\n }",
"public String printFace() {\n if (faceUp) {\n return \"Faced up\";\n } else {\n return \"Faced down\";\n }\n }",
"public void setFlip() {\n\t\tflip = true;\n\t}",
"public void setFace(String face) {\r\n this.face = face == null ? null : face.trim();\r\n }",
"public Card(URL url) {\n\t\timageLink = url;\n\t\tfaceUp = false;\n\t\tinPlay = true;\n\t}",
"public void setFaceValue(double f){\n\t\tface = f ;\n\t}",
"@Override\n\tpublic void setFacing(int facing) {\n\n\t}",
"public void drawCard(Graphics2D g,int xpos,int ypos,double xscale,double yscale,int value, Suite suite, boolean faceUp)\n\t{\n \tg.translate(xpos,ypos);\n \tg.scale( xscale , yscale );\n \t\n if(faceUp)\n {\n if(suite == Suite.HEARTS || suite == Suite.DIAMONDS)\n {\n g.setColor(Color.white);\n g.fillRoundRect(0, 0, 15, 20,2,2);\n g.setColor(Color.black);\n \n }\n else if(suite == Suite.SPADES || suite == Suite.CLUBS)\n {\n g.setColor(Color.white);\n g.fillRoundRect(0, 0, 15, 20,2,2);\n g.setColor(Color.red);\n \n \n }\n else if(faceUp && suite == Suite.SPECIAL)\n {\n g.setColor(Color.white);\n g.fillRoundRect(0, 0, 15, 20,2,2);\n \n \n \n \n \n drawJester(g,7.5,10,180,.4,.4);\n \n g.setColor(Color.black);\n g.setFont(new Font(\"Impact\",Font.BOLD,7));\n g.drawString(\"?\", 11, 6);\n g.drawString(\"¿\" , 0, 19);\n }\n\n\n \t\n \n g.setColor(Color.red);\n if(suite == Suite.DIAMONDS)\n drawDiamond(g,7.5,6,45,.5,.5);\n else if(suite == Suite.HEARTS)\n drawHeart(g,7.5,11,180,.5,0.5);\n \n else if(suite == Suite.SPADES)\n {\n g.setColor(Color.black);\n\n drawSpade(g,7.5,8,0,.5,.5);\n }\n else if(suite == Suite.CLUBS)\n { \n g.setColor(Color.black);\n\n drawClub(g,7.5,12,180,.5,.5);\n }\n if(suite!=Suite.SPECIAL)\n {\n g.setFont(new Font(\"Impact\",Font.BOLD,6));\n if(value==10)\n {\n g.drawString(\"\" + value, 9, 5);\n g.drawString(\"\" + value, 0, 20);\n }\n else if(value == 1)\n {\n g.drawString(\"A\", 11, 6);\n g.drawString(\"A\" , 1, 19);\n }\n else if(value == 11)\n {\n g.drawString(\"J\", 12, 6);\n g.drawString(\"J\" , 1, 19);\n }\n else if(value == 12)\n {\n g.drawString(\"Q\", 11, 5);\n g.drawString(\"Q\", 0, 19);\n }\n else if(value == 13)\n {\n g.drawString(\"K\", 11, 5);\n g.drawString(\"K\", 0, 19);\n }\n else if(value >=2 && value <=9)\n {\n g.drawString(\"\" + value, 11, 5);\n g.drawString(\"\" + value, 0, 19);\n }\n }\n \n \n }\n else\n {\n g.setColor(new Color(217,197,137));\n g.fillRoundRect(0, 0, 15, 20,2,2);\n }\n \n \tg.scale( 1.0/xscale,1.0/yscale );\n \tg.translate(-xpos,-ypos);\n\t}",
"public void setUpGame() {\n\t\tGameID = sql.getTheCurrentGameID() + 1;\r\n\t\tSystem.err.println(GameID);\r\n\t\ttheModel.shuffleDeck();\r\n\t\ttheModel.createPlayers();\r\n\t\ttheModel.displayTopCard();\r\n\t\t// theModel.chooseFirstActivePlayer();\r\n\t}",
"public Card()\n {\n suit = 0;\n rank = Card.ACE;\n }",
"private void drawFaceDown(Graphics g, int x, int y) throws IOException{\n\t\tImageIcon img;\n\t\timg = new ImageIcon(ImageIO.read(new File(relativePath + \"faceDown.png\")));\n\t\tImage card1 = img.getImage();\n\t\tImage card1New = card1.getScaledInstance(45, 65, java.awt.Image.SCALE_SMOOTH);\n\t\tImageIcon card1Icon = new ImageIcon(card1New);\n\t\tcard1Icon.paintIcon(this, g, x, y);\n\t }",
"private void setUp() {\n players.forEach(player -> player.draw(GameConstants.STARTING_HAND_SIZE.value()));\n }",
"public void initialize() {\n\t\tinitialiseAvatars();\n\t\tcreateAccountButton.setOnAction(e -> createAccount());\n\t\topenGeneratorButton.setOnAction(e -> openCustomPictureCreator());\n\n\t\tavatar1.setOnAction(e -> updateAvatar(1));\n\t\tavatar2.setOnAction(e -> updateAvatar(2));\n\t\tavatar3.setOnAction(e -> updateAvatar(3));\n\t\tavatar4.setOnAction(e -> updateAvatar(4));\n\t\tavatar5.setOnAction(e -> updateAvatar(5));\n\t\tavatar6.setOnAction(e -> updateAvatar(6));\n\n\t\tavatarIndex = 1;\n\t}",
"public void updateDirectionFace();",
"public void catchCard(){\r\n changePlace(deck);\r\n changePlace(hand);\r\n }",
"public int getFace(){\n return face;\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_think_of_a_card);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n think_card = this; //to change the title of the the tool bar go to values > strings.xml\n card_picked=\"12h\"; //default is set to queen of hearts\n }",
"public void render(){\n//\t\tsetCards();\n//\t\tsetMurderInfo();\n\t}",
"private void init() {\n this.playing = true;\n this.hand.clear();\n this.onTable = 0;\n this.points = 0;\n }",
"private void initCards() {\n for(int i = 0; i< noOfColumns; i++) {\n for (int j = 0; j < noOfRows; j++) {\n cards[i][j] = new Card(new Paint(), CardState.FACE_DOWN);\n }\n }\n setRandomColors();\n }",
"public String getFace() {\r\n return face;\r\n }",
"public String getFace() {\r\n return face;\r\n }",
"protected abstract void setFaces();",
"public backCard() {\n\t\tsuper(null,null);\n\t}",
"public Card() {\n this.set('A', Suit.spades);\n }",
"public void setChestCardShuffle() {\n ChanceCardShuffle = true;\n }",
"public void setup() {\n\t\t//This throws an exception and causes us to reenter once \"frame\" exists\n\t\tsize(VIEW_WIDTH,VIEW_HEIGHT,P2D);\n\t\ttxt = createFont(\"Vera.ttf\",90,true);\n\t\tframeRate(60);\n\t\tif (!frame.isResizable()){\n\t\t\tframe.setResizable(true);\n\t\t}\n\t}",
"public void putFrame()\n {\n if (currImage != null)\n {\n super.putFrame(currImage, faceRects, new Scalar(0, 255, 0), 0);\n }\n }"
] | [
"0.7817567",
"0.7599101",
"0.73023754",
"0.71773773",
"0.7020808",
"0.67144215",
"0.66051763",
"0.6571133",
"0.654056",
"0.65105087",
"0.649652",
"0.64904267",
"0.6489569",
"0.6452359",
"0.6440332",
"0.63729364",
"0.63105756",
"0.62049145",
"0.6158796",
"0.61508113",
"0.61449784",
"0.60851514",
"0.60751796",
"0.60708636",
"0.60520816",
"0.59824926",
"0.595801",
"0.59378666",
"0.5905727",
"0.5902845",
"0.587691",
"0.5874547",
"0.5867134",
"0.5866637",
"0.58414656",
"0.58228874",
"0.58136296",
"0.58022785",
"0.5787575",
"0.57615775",
"0.5759974",
"0.57589626",
"0.57551944",
"0.5713538",
"0.571257",
"0.5685156",
"0.567611",
"0.5658493",
"0.5655955",
"0.5653492",
"0.5648564",
"0.56384724",
"0.5630752",
"0.563002",
"0.56284976",
"0.5618614",
"0.56103903",
"0.5607961",
"0.5607626",
"0.56056595",
"0.55903494",
"0.55878645",
"0.55872196",
"0.55736846",
"0.55616593",
"0.5557923",
"0.55575854",
"0.55387944",
"0.5514126",
"0.551064",
"0.55078226",
"0.5506411",
"0.5490586",
"0.5484873",
"0.5472069",
"0.5469495",
"0.5456403",
"0.54533494",
"0.54498374",
"0.54417884",
"0.5439453",
"0.54295665",
"0.5429064",
"0.54230946",
"0.5419551",
"0.54107195",
"0.5409644",
"0.5409535",
"0.5402035",
"0.54015684",
"0.53987575",
"0.5383353",
"0.5375461",
"0.5375461",
"0.53733945",
"0.53731006",
"0.53692716",
"0.5367084",
"0.5362974",
"0.5361063"
] | 0.71087074 | 4 |
Sets the card face down. | public void setFaceDown(){faceUp = false;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void turnCardFaceDown(){\r\n if (getImage() == CardFaceUp)\r\n setImage(Images.faceDown);\r\n else\r\n setImage(CardFaceUp);\r\n }",
"public void flipCard() {\n this.faceUp = !faceUp;\n }",
"public void flip(){\n this.faceDown = !this.faceDown;\n }",
"boolean turnFaceDown();",
"public void setFace(CardFace face) {\n if (face == CardFace.FACE_DOWN) {\n cardFace = CardFace.FACE_DOWN;\n sprite.texture = faceDownTexture;\n } else {\n cardFace = CardFace.FACE_UP;\n sprite.texture = faceUpTexture;\n }\n }",
"public void turnCardFaceUp(){\r\n setImage(CardFaceUp);\r\n }",
"public void down() {\n\t\tswitch (facing){\n\t\tcase \"RIGHT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = -1.5;\n\t\t\tbreak;\n\t\tcase \"LEFT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = 1.5;\n\t\t\tbreak;\n\t\tcase \"UP\" :\n\t\t\tvely = 1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\tcase \"DOWN\" :\n\t\t\tvely = -1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\t}\n\t}",
"public void flip() {\n\t\t\tif (showing.getImage() == faceUp) {\n\t\t\t\tshowing.setImage(FACE_DOWN);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tshowing.setImage(faceUp);\n\t\t\t}\n\t\t}",
"public void registerFaceDown() {\n this.setFaceDown(true);\n }",
"private void onFaceDown() {\n\t\t\tsensorManager.unregisterListener(this);\n\t\t\tfu=false;\n\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Face Down\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t}",
"private void faceBackwards(){\n\t\tturnLeft();\n\t\tturnLeft();\n\t}",
"public static void setDown(char down) {\n\t\t\tGamePreferences.down = down;\n\t\t}",
"public void setFaceUp(){faceUp = true;}",
"private void drawFaceDown(Graphics g, int x, int y) throws IOException{\n\t\tImageIcon img;\n\t\timg = new ImageIcon(ImageIO.read(new File(relativePath + \"faceDown.png\")));\n\t\tImage card1 = img.getImage();\n\t\tImage card1New = card1.getScaledInstance(45, 65, java.awt.Image.SCALE_SMOOTH);\n\t\tImageIcon card1Icon = new ImageIcon(card1New);\n\t\tcard1Icon.paintIcon(this, g, x, y);\n\t }",
"public void down(){\n\t\tmoveX=0;\n\t\tmoveY=1;\n\t}",
"public void setDown(boolean b){ down = b; }",
"public void addCardFaceDown(Card c){\n c.setFaceDown();\n pile[pilePlace] = c;\n pilePlace++;\n }",
"private final void flipBonusCard() {\n\t\tstate.setBonusCard(deck.removeTopCard());\n\t}",
"public void flip(Card card) {\r\n\t\tcard.flip(card);\r\n\t}",
"public void goDown() {\n\t\tacceleration = 1;\n\t}",
"public void setMoveDown(boolean TorF) {\n moveDown = TorF;\n }",
"public Boolean down()\r\n\t{\r\n\t\tString cmd;\r\n\t\t\r\n\t\tcmd = \"flippers/down?null=true\";\r\n\t\treturn cmdSimpleResult(cmd);\r\n\t}",
"public void setDie(int faceValue) {\n boardController.setDie(faceValue);\n }",
"void flip() {\n _flipped = !_flipped;\n }",
"@Override\r\n\tpublic int ToggleDown() {\n\t\treturn 0;\r\n\t}",
"public void setFace(int face) {\n\t\tthis.faceDirection = Face.values()[face];\n\t}",
"public void resetUpperface() {\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setRaiseBrow(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setFurrowBrow(0);\n\t}",
"public void setFlip() {\n\t\tflip = true;\n\t}",
"public void Down(){\r\n \r\n if(By>0 && By<900){\r\n \r\n By+=2;\r\n }\r\n }",
"public Card(Image faceUp) {\n\t\t\tthis.faceUp = faceUp;\n\t\t\tshowing.setImage(faceUp); //When a Card object is created, it initially shows the face-up image\n\t\t}",
"public void down() {\n\t\tmotor1.set( -Constants.CLAW_MOTOR_SPEED );\n\t\t}",
"public void downPressed() {\n\t\tif (edit) {\n\t\t\tcurrentDeck.down();\n\t\t} else {\n\t\t\tactiveNode.nextChild();\n\t\t}\n\t}",
"boolean turnFaceUp();",
"void disableFlipMode();",
"public void toggle(){\r\n isDown = !isDown;\r\n }",
"@Override\r\n\tpublic void setDown(MoveDownCommand down) {\n\r\n\t}",
"private void moveClawDown() {\n\t\tMotor.A.setSpeed(45);\n\t\tMotor.A.rotate(-90);\n\t}",
"public void setShootDown(boolean TorF) {\n shootDown = TorF;\n }",
"public boolean getFace() {\n return this.faceUp;\n }",
"public void up() {\n\t\tswitch (facing){\n\t\tcase \"RIGHT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = 1.5;\n\t\t\tbreak;\n\t\tcase \"LEFT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = -1.5;\n\t\t\tbreak;\n\t\tcase \"UP\" :\n\t\t\tvely = -1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\tcase \"DOWN\" :\n\t\t\tvely = 1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\t}\n\t}",
"public void down() {\n\t\tstate.down();\n\t}",
"public void onScreenUp() {\n faceUp = true;\n requestForValidationOfQibla();\n }",
"public void flipClose(PlayerCard playerCard){\n RotateTransition flip = createflipAnimation(playerCard);\n playerCard.setIsFlippedOpen(false);\n flip.play();\n if (mainController.checkIsEnabledSound()) cardFlipSound.makeSound();\n playerCard.setDefaultImage();\n }",
"public void setBoulderLockOff(){\r\n\t\tservoTarget = Constants.BALL_HOLDER_RETRACTED;\r\n\t}",
"public boolean isFaceUp(){return faceUp;}",
"public void setFace(int face) {\n\t\tthis.face = face;\n\t}",
"public void backDown(){\n backSolenoid.set(DoubleSolenoid.Value.kReverse);\n }",
"public void downGrade(){\n\t\tlevel -= level;\n\t\tConstants.FARMS -= 1;\n\t\tConstants.FOOD -= 20;\n\t}",
"public static void setsDown(char sDown) {\n\t\t\tGamePreferences.sDown = sDown;\n\t\t}",
"public void setDisplay(boolean isFaceUp, boolean isTapped) {\n \n \t}",
"public void moveDown(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.DOWN;\n\t\tif(animation!=ANIMATION.MOVEDOWN) {\n\t\t\tanimation=ANIMATION.MOVEDOWN;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tdirection=\"down\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelY=spd/2;\n\t\tvelX=0;\n\t}",
"public Card flip() {\n\t\treturn hand.remove(0);\n\t}",
"@Override\r\n\t\t\tpublic void onDismiss() {\n\t\t\t\tLogUtil.info(\"set arrow down\");\r\n\t\t\t\taccountRemainTitle.Aarrw(R.drawable.arrow_down);\r\n\t\t\t}",
"public synchronized Block flip() {\r\n\t\t// TODO ILLEGAL STATUS: THROW AN EXCEPTION HERE\r\n\t\tif(status == Status.Fliped || status == Status.Cleared)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\tstatus = Status.Fliped;\r\n\t\t// when it is clicked when it should be flipped back after a short interval, the flag should be \r\n\t\t// reset to avoid being covered at which the card should be shown\r\n\t\tdelayedCover = false;\r\n\t\tgraphics.updateBlock();\r\n\t\treturn this;\r\n\t}",
"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 void flipArrow() {\n arrow.setRotation(0);\n arrow.setScaleX(-1);\n arrow.setRotation(50);\n }",
"public void turnOff() {\n\t\tOn = false;\n\t\tVolume = 1;\n\t\tChannel = 1;\n\t}",
"public void flipBattleCard() {\n flipCards(WarGameConstants.NUMBER_CARDS_TO_BATTLE);\n }",
"public void faceUp(){\r\n changePlace(hand);\r\n //do a magical work\r\n changePlace(graveYard);\r\n }",
"public boolean isFaceUp(){\r\n return(getImage() == CardFaceUp);\r\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 void toggle()\n\t{\n\t\tbitHolder.setValue(Math.abs(bitHolder.getValue() - 1 ));\n\t\t\n\t}",
"public void moveDown() {\n speedY -= (speedY > 0) ? acceleration * 2 : acceleration;\n if (speedY < -maxSpeed) {\n speedY = -maxSpeed;\n }\n direction = Direction.DOWN;\n }",
"public void volumeDown() {\n\t\tvolume = volume - 10;\n\t\tplaybin.setVolumePercent(volume);\n\t}",
"public void frontDown(){\n frontSolenoid.set(DoubleSolenoid.Value.kReverse);\n }",
"@Override\r\n\tpublic int ToggleUp() {\n\t\treturn 0;\r\n\t}",
"public CardState withDrawnFaceUpCard(int slot){\n Preconditions.checkArgument(!isDeckEmpty());\n Objects.checkIndex(slot, FACE_UP_CARDS_COUNT);\n // new Deck from which the top card has been drawn\n Deck<Card> withoutTopCard = deck.withoutTopCard();\n // copy of faceUpCards\n List<Card> faceUpCards = new ArrayList<>(faceUpCards());\n // replace the card at the specified slot with the top card from the deck\n faceUpCards.set(slot, deck.topCard());\n return new CardState(faceUpCards, withoutTopCard, discards);\n }",
"public void setOrient(int face) {\n if (abs(face) == BLUE && onSide(face)) {\n orient *= -1;\n }\n }",
"public void goDown();",
"@SuppressLint(\"NewApi\")\n public void flipit() {\n if (mCamera == null) {\n return;\n }\n if (Camera.getNumberOfCameras() >= 2) {\n btn_switch.setEnabled(false);\n if (null != mCamera) {\n try {\n mCamera.setPreviewCallback(null);\n mCamera.stopPreview();\n //这句要在stopPreview后执行,不然会卡顿或者花屏\n mCamera.setPreviewDisplay(null);\n mCamera.release();\n mCamera = null;\n Log.i(TAG, \"=== Stop Camera ===\");\n } catch (IOException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n // \"which\" is just an integer flag\n switch (frontCamera) {\n case 0:\n mCamera = Camera.open(CameraInfo.CAMERA_FACING_FRONT);\n frontCamera = 1;\n break;\n case 1:\n mCamera = Camera.open(CameraInfo.CAMERA_FACING_BACK);\n frontCamera = 0;\n break;\n }\n\n if (Build.VERSION.SDK_INT > 17 && this.mCamera != null) {\n try {\n this.mCamera.enableShutterSound(false);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"CJT\", \"enable shutter_sound sound faild\");\n }\n }\n\n doStartPreview();\n btn_switch.setEnabled(true);\n }\n }",
"void moveDown() {\n\t\tsetY(y+1);\r\n\t\tdx=0;\r\n\t\tdy=1;\r\n\t}",
"void flipUp( ) {\n\t\t\t\t\t\tUpCommand . execute ( ) ;\n\n\n\t\t}",
"public void registerFaceUp() {\n this.setFaceUp(true);\n }",
"public void down() {\n \t\t\ttmpkeylisteners.clear();\n \t\t\ttmpkeylisteners.addAll(keylisteners);\n \t\t\tfor (KeyListener l : tmpkeylisteners) {\n \t\t\t\tif (l instanceof Level && ((Level)l) != Shadow.level) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\tif (l instanceof GameObject && ((GameObject)l).layer.level != Shadow.level) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\tl.keyDown(this);\n \t\t\t}\n \t\t}",
"default public void clickDown() {\n\t\tremoteControlAction(RemoteControlKeyword.DOWN);\n\t}",
"public void turnOff() {\n\t\tisOn = false;\n\t}",
"public void downPressed() {\n System.out.println(\"downPressed()\");\n current.translate(1, 0);\n display.showBlocks();\n }",
"public void resetImageToFaceState() {\n String iconPath = Global.IMAGE_PATH;\n switch (game.getFinished()) {\n case 0:\n iconPath += \"face-normal.png\";\n break;\n\n case 1:\n iconPath += \"face-win.png\";\n break;\n\n case 2:\n iconPath += \"face-lose.png\";\n break;\n\n default:\n iconPath += \"face-normal.png\";\n break;\n }\n face.setIcon(new ImageIcon(iconPath));\n }",
"public void minusShield(int down) {\n\t\tshieldLevel -= down;\n\t}",
"public final void levelUP() {\n setBackstabDmg(getBackstabDmg() + Constants.BACKSTAB_UP);\n }",
"protected void down() {\n move(positionX, positionY + 1);\n orientation = BattleGrid.RIGHT_ANGLE;\n }",
"public int showFace() {\n\t\treturn faceUp;\n\t}",
"@Override\n public void setFacing(Direction dir)\n {\n facing = dir;\n if(!userHoldingLeftXOrRight)\n {\n setStandingAnim();\n }\n }",
"void decreaseAngle() {\n this.strokeAngle -= 3;\n this.updateAcc();\n this.updateStick();\n }",
"private void switchDeck() {\n\t\tif (!isInMainDeck()) {\n\t\t\tactiveDeck = MAIN_DECK;\n\t\t\tsetCurrentDeck(mainDeck, charDeck);\n\t\t} else {\n\t\t\tactiveDeck = CHARACTER_DECK;\n\t\t\tsetCurrentDeck(charDeck, mainDeck);\n\t\t}\n\t\tcurrentDeck.updateHandpos(-1);\n\t}",
"public void flipCoin() {\n\t\tfaceUp = (int) (Math.random() * ((1 - 0 + 1) + 0));\n\n\t}",
"public void addCardFaceUp(Card c){\n c.setFaceUp();\n pile[pilePlace] = c;\n pilePlace++;\n }",
"public Card playCard(Card card, Deck faceDown, Deck faceUp, Card.Face face, Card.Suit suit) {\n if (card == faceDown.peekTopCard()) {\n drawCard(faceDown);\n return card;\n }\n else if (accordingToRules(card, face, suit)) {\n this.putDownCard(faceUp, card);\n return card;\n }\n else {\n return null;\n }\n }",
"public void turnOff() {\n update(0,0,0);\n this.status = false;\n }",
"public void doubleDown() {\n playerCash -= playerBet;\n playerBet = playerBet * 2;\n\n //Deal the card to the player\n playerStack.add(cards[talonStack]);\n playerScore = evaluateDeckScore(playerStack);\n talonStack++;\n }",
"private void pop( boolean toggle ) {\r\n int s = undoStack.size();\r\n if ( s > 0 ) {\r\n Card card = undoStack.get( s - 1 );\r\n undoStack.remove( s - 1 );\r\n if ( toggle ) {\r\n // re-enable flipping this card.\r\n card.toggleFace( toggle );\r\n }\r\n }\r\n }",
"public void reset(){\n super.reset();\n this.troef = CardColor.NONE;\n }",
"void enableFlipMode();",
"public void selfDes() {\r\n\t\tselfDes = true;\r\n\t\tdimUp = true;\r\n\t}",
"public void move_down() {\n\t\tlocation.setY(location.getY()+y_velocity);\n\t\timage.setTranslateY(location.getY());\n\t}",
"public void moveDown() {\n btMoveDown().push();\n }",
"public void moveDown() {\n btMoveDown().push();\n }",
"protected abstract boolean down(int button);",
"public void down()\n {\n if (this.index >= 0 && this.index < this.morphs.size())\n {\n MorphType type = this.morphs.get(this.index);\n\n if (type.morphs.size() > 1)\n {\n type.down();\n this.resetTime();\n }\n }\n }",
"public boolean getFaceUp() {\n\t\treturn faceUp;\n\t}"
] | [
"0.85913664",
"0.7773301",
"0.74374336",
"0.74285066",
"0.72899544",
"0.725943",
"0.7036562",
"0.6766801",
"0.6649271",
"0.6401944",
"0.6330546",
"0.63245773",
"0.6305929",
"0.6281421",
"0.62060755",
"0.61998075",
"0.6198947",
"0.6191982",
"0.6172996",
"0.6153106",
"0.61443007",
"0.60882",
"0.6062561",
"0.6047058",
"0.60408115",
"0.6019335",
"0.60188466",
"0.60138184",
"0.60103095",
"0.60072196",
"0.59441197",
"0.59141004",
"0.5891112",
"0.5854142",
"0.5852138",
"0.58435744",
"0.5840467",
"0.583002",
"0.58298534",
"0.5784922",
"0.57817906",
"0.57692707",
"0.5768405",
"0.5749881",
"0.57285434",
"0.5724665",
"0.57187414",
"0.57186216",
"0.566637",
"0.5649748",
"0.56490105",
"0.5639954",
"0.56267035",
"0.5613785",
"0.559738",
"0.558795",
"0.5586363",
"0.5570365",
"0.5567839",
"0.5567165",
"0.5566469",
"0.55626535",
"0.55359393",
"0.5532398",
"0.5521979",
"0.55217826",
"0.55207276",
"0.55185163",
"0.54966575",
"0.54897803",
"0.54809046",
"0.54726803",
"0.54706144",
"0.54661834",
"0.5463739",
"0.54563665",
"0.54554117",
"0.5447651",
"0.54476285",
"0.5446251",
"0.5443015",
"0.5439222",
"0.5437864",
"0.54302007",
"0.542794",
"0.5424658",
"0.5409345",
"0.54092604",
"0.5407322",
"0.5404979",
"0.54010594",
"0.538744",
"0.53797084",
"0.5378541",
"0.5374437",
"0.5370828",
"0.5370828",
"0.53659403",
"0.53564286",
"0.5341347"
] | 0.7450014 | 2 |
Gets the card number. | public int getNumber(){return cardNumber;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCardNumber() {\n return cardNumber;\n }",
"public String getCardNumber()\n {\n return cardNumber;\n }",
"public String getCardNo() {\n\t\treturn cardNo;\n\t}",
"public String getCardNumber()\r\n {\r\n return cardNumber;\r\n }",
"public String getCardNumber() {\n return cardNumber;\n }",
"public int getNumber(){\n return cardNumber;\n }",
"public double getCardNumber() {\n\t\treturn cardNumber;\n\t}",
"public String getCardNumber() {\n\t\treturn cardNumber;\n\t}",
"public String getCardNo() {\n return cardNo;\n }",
"public java.lang.String getCardNo() {\r\n return localCardNo;\r\n }",
"public java.lang.String getCardNo() {\r\n return localCardNo;\r\n }",
"private String getCardNumber() {\n try {\n String cardNumberWithoutSpaces = cardNumber.getAttribute(\"value\").replaceAll(\" \", \"\");\n int cardLength = cardNumberWithoutSpaces.length();\n return cardNumberWithoutSpaces.substring(cardLength - 4, cardLength);\n }\n catch (Exception ex) {\n // no action\n }\n return null;\n }",
"public String getIdCardNo() {\n return idCardNo;\n }",
"public String getIdCardNo() {\n\t\treturn idCardNo;\n\t}",
"public String getCardNumber() {\n return this.account;\n }",
"public int getCardID() {\n return cardID;\n }",
"public java.lang.String getIDCardNo() {\r\n return localIDCardNo;\r\n }",
"public java.lang.String getIDCardNo() {\r\n return localIDCardNo;\r\n }",
"public String m50420r() {\n try {\n return this.f30729a0.getCardNumber();\n } catch (Exception unused) {\n return this.f30729a0.getText().toString().trim();\n }\n }",
"public int getCreditCardNumber() {\n return creditCardNumber;\n }",
"public int CardsOnDeck()\n\t{\n\t\treturn cardNumber;\n\t}",
"public java.lang.String getCardID() {\r\n return localCardID;\r\n }",
"public Long getCardId() {\r\n return cardId;\r\n }",
"public int getValue() {\n\t\tif (!this.isCard()) {\n\t\t\tSystem.out.println(\"Error! \" + id + \" isn't a card!\");\n\t\t\treturn 0;\n\t\t} else if (id % 13 != 0)\n\t\t\treturn id % 13;\n\t\telse\n\t\t\treturn 13;\n\t}",
"public String getCardCode() {\n\t\t\treturn cardCode;\n\t\t}",
"public String getSCardNo() {\n return sCardNo;\n }",
"public static double getCardCounter() {\n\t\treturn cardCounter;\n\t}",
"public String getcardnumto() {\n return (String) getAttributeInternal(CARDNUMTO);\n }",
"public String getCardNum(int i, int j){\n //Return the number string of the card at ij\n return cardArray[i][j].getNumString();\n }",
"public java.lang.String getCardSerNo() {\r\n return localCardSerNo;\r\n }",
"public String getCertCardNo() {\n\t\treturn certCardNo;\n\t}",
"public Long getNetworkCard() {\n return this.NetworkCard;\n }",
"public int getCardValue(int card) {\n\t\tint result = card;\n\t\tswitch (card) {\n\t\tcase 11:\n\t\tcase 12:\n\t\tcase 13:\n\t\t\tresult = 10;\n\t\t}\n\t\treturn result;\n\t}",
"public java.lang.String getCar_number() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.String) __getCache(\"car_number\")));\n }",
"@ApiModelProperty(value = \"Card number (masked last 4 digits)\")\r\n public String getCardNumber() {\r\n return cardNumber;\r\n }",
"public Integer getRoomcard() {\n return roomcard;\n }",
"public String getcardnumfrom() {\n return (String) getAttributeInternal(CARDNUMFROM);\n }",
"public Card getCard( int cardNum ) {\n\t\treturn deck[ cardNum ];\n\t}",
"public String getIdCard() {\r\n return idCard;\r\n }",
"public String getIdCard() {\n return idCard;\n }",
"public String getCardPk() {\r\n return (String) getAttributeInternal(CARDPK);\r\n }",
"public int getCardValue()\n {\n return cardValue; \n }",
"public final int getNumber() {\n return number;\n }",
"public String getEmbossCardNum() {\r\n return (String) getAttributeInternal(EMBOSSCARDNUM);\r\n }",
"public int getCardDetailsID(){\n return cardDetailsID;\n }",
"java.lang.String getNumber();",
"java.lang.String getNumber();",
"java.lang.String getNumber();",
"@Test\n\tpublic void testGetCardNum() {\n\t\tassertEquals(cardNumber, card.getCardNum());\n\t}",
"int GetCardValueOfBuild() {\n return cardValueOfBuild;\n }",
"public String getIdCard() {\n\t\treturn idCard;\n\t}",
"public int getCardCount() {\r\n return cardCount;\r\n\t}",
"public String getNumber() {\n return (String) get(\"number\");\n }",
"public int getNumCards() {\n return this.numCards;\n }",
"public String getIdcard() {\n return idcard;\n }",
"public int getCardSlot() {\n return cardSlot;\n }",
"public int[] getPaymentCardNumber() {\n\t\treturn paymentCardNumber;\n\t}",
"CardNumber(int number) {\r\n this.number = number;\r\n }",
"public String getNumber() {\n\t\treturn getValue(\"number\");\n\t}",
"public int getNumber()\n\t{\n\t\treturn myNumber;\n\t}",
"public static String getNum() {\n\tString num;\n\tnum = gameNum.getText();\n\treturn num;\n\n }",
"public int getCardVal(){\n\t\tint aces = 0;\n\t\tif(cardString.charAt(0) == 'J' || cardString.charAt(0) == 'Q' || cardString.charAt(0) == 'K' || cardString.charAt(0) == 'T'){\n\t\t\tcardValue = 10;\n\t\t}\n\t\telse if(cardString.charAt(0) == 'A'){\n\t\t\tcardValue = 11;\n\t\t}\n\t\telse{\n\t\t\tcardValue = Character.getNumericValue(cardString.charAt(0));\n\t\t}\n\t\treturn cardValue;\n\t}",
"public String getIdcard() {\r\n return idcard;\r\n }",
"public String getIdcard() {\r\n return idcard;\r\n }",
"public String getIdcard() {\r\n return idcard;\r\n }",
"public int CCID() {\n\t\treturn this.creditCardIDNum;\n\t}",
"public String getNumber() \n\t{\n\t\treturn this.number;\n\t}",
"public int getHighCard() {\r\n return highCard;\r\n }",
"public String m18472f() {\n return this.cardId;\n }",
"public int getNumCards()\r\n {\r\n return numCards;\r\n }",
"public String getUserCardId() {\n return userCardId;\n }",
"public int getNumberOfCards()\n\t{\n\t\treturn numCards;\n\t}",
"public Integer getCardtype() {\n return cardtype;\n }",
"public String getNum() {\n return num;\n }",
"public String getNum() {\n return num;\n }",
"public String getNum() {\r\n return num;\r\n }",
"public int getNumber() {\r\n\t\treturn number;\r\n\t}",
"public int getNumber() {\n\t\t\n\t\treturn number;\n\t}",
"public String getNumber() {\n return this.mNumber;\n }",
"public UnoCard getCard(){\n Random rnd = new Random();\n int rnd_number = rnd.nextInt(((this.cards.size()-1)-0) + 1) + 0;\n return this.cards.get(rnd_number);\n\n }",
"@Override\n public int getNumber() {\n if(flightNumber == null)\n return 42;\n else\n return Integer.parseInt(flightNumber);\n }",
"public int getNumber() {\n\t\treturn 666;\n\t}",
"public int getNumber() {\n\t\treturn number;\n\t}",
"public int getNumber() {\n\t\treturn number;\n\t}",
"public int getNumber() {\n\t\treturn number;\n\t}",
"public int getNumber() {\n\t\treturn number;\n\t}",
"public int getNumberOfCards() {\r\n\t\treturn numberOfCards;\r\n\t}",
"public java.lang.String getNumber() {\n return number;\n }",
"java.lang.String getAccountNumber();",
"public java.lang.Long getCardTransno () {\r\n\t\treturn cardTransno;\r\n\t}",
"public int getNumCards() {\n return this.topCard;\n }",
"public String number() {\n return number;\n }",
"public String getNumber() {\r\n\t\treturn number;\r\n\t}",
"public int getCardCount() {\r\n\t\treturn this.cards;\r\n\t}",
"public int getNumber() {\r\n return number;\r\n }",
"public String getNumber() {\n return number;\n }",
"public String getNumber() {\n return number;\n }",
"public String getNumber() {\n return number;\n }",
"public String getNumber() {\n return number;\n }",
"public int getNumber() {\n return number;\n }"
] | [
"0.80887514",
"0.79078203",
"0.790349",
"0.7892781",
"0.78664464",
"0.78637546",
"0.78532887",
"0.7833035",
"0.7829686",
"0.78037614",
"0.78037614",
"0.7651352",
"0.76134515",
"0.7571862",
"0.7325729",
"0.7235743",
"0.71998596",
"0.71998596",
"0.7077479",
"0.70320636",
"0.6915973",
"0.6884072",
"0.68225986",
"0.68029517",
"0.6769896",
"0.6766238",
"0.6761669",
"0.6749045",
"0.6702592",
"0.6681296",
"0.66706383",
"0.6633417",
"0.660378",
"0.65904814",
"0.65891945",
"0.6564698",
"0.65547115",
"0.65471745",
"0.65340114",
"0.6530781",
"0.6502889",
"0.64743435",
"0.6472729",
"0.646195",
"0.6461893",
"0.6452542",
"0.6452542",
"0.6452542",
"0.6439608",
"0.643089",
"0.6424437",
"0.640537",
"0.6402476",
"0.6399432",
"0.63678765",
"0.6366002",
"0.63550246",
"0.6348831",
"0.63483274",
"0.63429254",
"0.6342706",
"0.6340035",
"0.63399595",
"0.63399595",
"0.63399595",
"0.630979",
"0.6307705",
"0.62987876",
"0.6293262",
"0.6257961",
"0.6238639",
"0.6236452",
"0.6229565",
"0.622323",
"0.622323",
"0.62220985",
"0.62202436",
"0.6219765",
"0.621884",
"0.6216832",
"0.62139964",
"0.6213837",
"0.618761",
"0.618761",
"0.618761",
"0.618761",
"0.6187131",
"0.6182277",
"0.6178132",
"0.6177615",
"0.61740315",
"0.61689395",
"0.6162973",
"0.6161554",
"0.6153341",
"0.61417097",
"0.61417097",
"0.61417097",
"0.61417097",
"0.61252457"
] | 0.7603562 | 13 |
Returns if this card is the same as another card, for the purpose of comparison. | public boolean isEqual(MatchingCardsTile other){
return this.getNumber() == other.getNumber();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean sameCard(Card card1, Card card2){\r\n return (card1.rank == card2.rank && card1.suit == card2.suit);\r\n }",
"public boolean equals(Card other) {\n return this.compareTo(other) == 0;\n }",
"public boolean equals(Card OtherCard){\n\t\treturn (this.equals(OtherCard));\n\t}",
"public boolean equals(Card card){\n return (this.getCardValue() == card.getCardValue());\n }",
"@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n if (!(other instanceof Card)) {\n return false;\n }\n\n Card otherCard = (Card) other;\n return otherCard.getFrontFace().equals(getFrontFace())\n && otherCard.getBackFace().equals(getBackFace());\n }",
"@Override\n public boolean equals(Object other) {\n if (null == other) {\n return false;\n }\n if (this == other) {\n return true;\n }\n if (!(other instanceof Card)) {\n return false;\n }\n Card that = (Card) other;\n return this.getName().equals(that.getName());\n }",
"@Override\n\tpublic boolean equals(Card anotherCard){\n\t\t\n\t}",
"boolean similarCard(Card c);",
"public boolean isEqual(Card card) {\n\t\treturn imageLink.equals(card.getURL());\n\t}",
"public boolean valueEquals(Card c) {\n return this.cardNum == c.cardNum;\n }",
"@Override\n public boolean equals(Object otherObject) {\n if (this == otherObject) return true;\n if (!(otherObject instanceof Card)) return false;\n Card card = (Card) otherObject;\n return suit == card.suit &&\n rank == card.rank;\n }",
"public boolean matches(Card otherCard) {\r\n if (suit==otherCard.suit() && pointValue == otherCard.pointValue() && rank == otherCard.rank())\r\n return true;\r\n else\r\n return false;\r\n }",
"protected final boolean isSameSuit(Card cardOne, Card cardTwo)\n {\n return cardOne.getSuit().equals(cardTwo.getSuit());\n }",
"public boolean equals(Card c)\n {\n if (rank == c.rank)\n return true;\n else\n return false;\n }",
"private boolean inSameSuit() {\n for (int i = 0; i < cards.length-2; i++) {\n if (cards[i].charAt(1) != cards[i + 1].charAt(1)) {\n return false;\n }\n }\n \n return true;\n }",
"boolean hasSameAs();",
"public boolean equals(Object object) {\n\n if (object == null || object.getClass() != this.getClass()) {\n return false;\n }\n\n Card other;\n other = (Card) object;\n\n return getRank() == other.getRank() && getSuit() == other.getSuit();\n }",
"@Override\r\n\tpublic boolean equals(Object card) {\r\n\t\tBlackjackCard c = (BlackjackCard)card;\r\n\t\treturn (this.suit == c.getSuit() && this.value == c.getValue());\r\n\t}",
"@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof QuestionCard)) {\n return false;\n }\n\n // state check\n QuestionCard card = (QuestionCard) other;\n return this.id.getText().equals(card.id.getText())\n && this.question.equals(card.question);\n }",
"public boolean equals(Card c) {\n if (this.getValue() == c.getValue() && this.getSuit() == c.getSuit())\n return true;\n return false;\n }",
"public boolean orderedEquals( Deck otherDeck ) {\n if (this.cards.length == otherDeck.cards.length) {\n for (int i = 0; i < this.cards.length; i++ ) {\n if (!this.cards[i].equals(otherDeck.cards[i])) {\n return false;\n }\n }\n return true;\n }\n return false;\n }",
"@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof PersonCard)) {\n return false;\n }\n\n // state check\n PersonCard card = (PersonCard) other;\n return displayedIndex == card.getDisplayedIndex()\n && staff.equals(card.staff);\n }",
"@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof PersonCard)) {\n return false;\n }\n\n // state check\n PersonCard card = (PersonCard) other;\n return id.getText().equals(card.id.getText())\n && person.equals(card.person);\n }",
"public boolean compareRank(Card otherCard) {\n return rank == otherCard.rank;\n }",
"public boolean sameColor(Card card) {\r\n boolean isSameColor = false;\r\n if (card.getColor().equals(color)) {\r\n isSameColor = true;\r\n }\r\n return isSameColor;\r\n }",
"public boolean sameValue(Card card) {\r\n boolean isSameValue = false;\r\n if (card.getValue() == (value)) {\r\n isSameValue = true;\r\n }\r\n return isSameValue;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Card)) {\n return false;\n }\n Card other = (Card) object;\n if ((this.cardPK == null && other.cardPK != null) || (this.cardPK != null && !this.cardPK.equals(other.cardPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof DateCard)) {\n return false;\n }\n\n // state check\n DateCard card = (DateCard) other;\n return id.getText().equals(card.id.getText())\n && date.equals(card.date);\n }",
"public boolean rankIsEqualsTo(Card c) {\r\n\t\t//this method compares two card objects and if one is equal to the other then it return the value as true\r\n\t\tboolean rankIsEqualsTo = false;\r\n\t\t\r\n\t\tif(rank == c.getRank()) {\r\n\t\t\trankIsEqualsTo = true;\r\n\t\t}//if\r\n\t\treturn rankIsEqualsTo;\r\n\t\t\r\n\t}",
"@Test\n\tpublic void testDeckEquals() {\n\t\t\n\t\tStandardDeckClass oneDeck = new StandardDeckClass();\n\t\tStandardDeckClass testDeck = new StandardDeckClass();\n\t\t\n\t\tboolean isSame = oneDeck.equals(testDeck);\n\t\t\n\t\tassertEquals(\"equals method not working as expected\", true, isSame);\n\t\t\n\t}",
"@Override\n public boolean match(Card card) {\n if (card.getColor().equals(\"BLACK\"))\n return true;\n\n return (card.getColor().equals(this.getColor())\n || card.getValue().equals(this.getValue()));\n }",
"@Override\n public boolean equals(Object c)\n {\n boolean retVal = false;\n if( c instanceof Card) {\n Card temp = (Card) c;\n if ( temp.getValue().equals(this.value))\n retVal = true;\n }\n return retVal;\n }",
"private void checkCardMatch(Card card1, Card card2) {\n if(card1.getColor().getColor() == card2.getColor().getColor()){\n card1.setCardState(CardState.MATCHED);\n card2.setCardState(CardState.MATCHED);\n\n playerManager.incrementScore();\n } else{\n card1.flipCard();\n card2.flipCard();\n }\n cardsClicked = new Card[2];\n switchPlayer();\n setRandomColors();\n checkGameOver();\n }",
"@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof SummaryCard)) {\n return false;\n }\n\n // state check\n SummaryCard summaryCard = (SummaryCard) other;\n return tasksDueToday.getText().equals(summaryCard.tasksDueToday.getText())\n && tasksCompletedToday.getText().equals(summaryCard.tasksCompletedToday.getText());\n }",
"@Override\n public int compare(Card card1, Card card2) {\n return card2.getId().compareTo\n (card1.getId());\n }",
"protected final boolean isDifferentColor(Card cardOne, Card cardTwo)\n {\n return cardOne.getColor() != cardTwo.getColor();\n }",
"@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof EventCard)) {\n return false;\n }\n\n // state check\n EventCard card = (EventCard) other;\n return id.getText().equals(card.id.getText())\n && event.equals(card.event);\n }",
"public static boolean isCardinal(Tile tile1, Tile tile2) {\n\t\tif (tile1.getX() == tile2.getX() || tile1.getY() == tile2.getY())\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public boolean equals(Object obj){\r\n\t\tif(!(obj instanceof BaseballCard))\r\n\t\t\treturn false;\r\n\t\tBaseballCard compareable = (BaseballCard) obj;\r\n\t\t\r\n\t\treturn(this.getPrice()==(compareable.getPrice())&&this.getYear()==\r\n\t\t\t\t(compareable.getYear())&&this.getSizeX()==(compareable.getSizeX())\r\n\t\t\t\t&&this.getSizeY()==(compareable.getSizeY())&&this.getName()==\r\n\t\t\t\tcompareable.getName()&&this.getManufacturer()==compareable.getManufacturer());\r\n\t\t\r\n\t}",
"public boolean belongsToSuit(Card card){\r\n return (suit == card.suit);\r\n }",
"@Test\n\tpublic void testDeckEqualsAgain() {\n\t\t\n\t\tStandardDeckClass oneDeck = new StandardDeckClass();\n\t\tVegasDeckClass testDeck = new VegasDeckClass();\n\t\t\n\t\tboolean isSame = oneDeck.equals(testDeck);\n\t\t\n\t\tassertEquals(\"equals method not working as expected\", false, isSame);\n\t}",
"public boolean isIdentical(Remote obj1, Remote obj2)\n {\n\torg.omg.CORBA.Object corbaObj1 = (org.omg.CORBA.Object)obj1;\n\torg.omg.CORBA.Object corbaObj2 = (org.omg.CORBA.Object)obj2;\n\n\treturn corbaObj1._is_equivalent(corbaObj2);\n }",
"@Override\n public boolean equals( Object obj ) {\n if (this == obj) {\n return true;\n }\n\n if (obj == null) {\n return false;\n }\n\n if (getClass() != obj.getClass()) {\n return false;\n }\n\n Deck other = (Deck)obj;\n // Due to the possibility of duplicates, deck comparison is a notch trickier.\n // Our approach is to count the cards in each deck then ensure that the cards\n // and counts are the same.\n return tally().equals(other.tally());\n }",
"public boolean isSameAs(Move comp){ \n return this.xFrom==comp.xFrom &&\n this.xTo==comp.xTo &&\n this.yFrom==comp.yFrom &&\n this.yTo==comp.yTo;\n }",
"public boolean equals(Object other)\r\n {\r\n \r\n return compareTo( (Trader)other ) == 0;\r\n }",
"private boolean isEqual(Roster r2)\n\t{\n\t\tIterator<Player> it1 = iterator();\n\t\twhile(it1.hasNext())\n\t\t{\n\t\t\tPlayer p = it1.next();\n\t\t\tif(!r2.has(p))\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tIterator<Player> it2 = r2.iterator();\n\t\twhile(it2.hasNext())\n\t\t{\n\t\t\tPlayer p = it2.next();\n\t\t\tif(!has(p))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isSameAccount(BankAccount account1, BankAccount account2){\n return account1.accountName == account2.accountName;\n }",
"@Override\n public boolean equals(Object object) {\n if (this == object) {\n return true;\n }\n if (object == null || getClass() != object.getClass()) {\n return false;\n }\n CardBalance that = (CardBalance) object;\n return Objects.equals(dollar, that.dollar)\n && Objects.equals(cent, that.cent);\n }",
"public boolean equals(Object other) {\n\n\t\t//Returns false if the object is null or the two objects are from different classes\n\t\tif (other==null||this.getClass()!=other.getClass())\n\t\t\treturn false;\n\n\t\telse {\n\n\t\t\t//Casts the object from class Object to the Airplane class\n\t\t\tAirplane a = (Airplane) other;\n\n\t\t\t//Returns a boolean value indicating if the two objects are equal\n\t\t\treturn (this.brand==a.brand&&this.price==a.price&&this.horsePower==a.horsePower);\n\t\t}\n\t}",
"@Override\n public boolean equals(Object o){\n if (o == this) { //True if it's this instance\n return true;\n }\n if (!(o instanceof LeaderCard))\n return false;\n\n //Check if same values\n LeaderCard c = (LeaderCard) o;\n return this.getId() == c.getId() && this.getVictoryPoints() == c.getVictoryPoints() && this.getRequirement().equals(c.getRequirement()) &&\n this.getSpecialAbility().equals(c.getSpecialAbility()) && this.inGame == c.inGame;\n }",
"@Override\n public boolean isSame(Item other) {\n return this.equals(other);\n }",
"@Override\r\n\tpublic boolean equals(Object o) {\r\n\t\tif (o instanceof Seed) {\r\n\t\t\tSeed s = (Seed) o;\r\n\t\t\tCards cs1, cs2;\r\n\r\n\t\t\tif (this.size() != s.size()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tfor (int i = 0; i < s.size(); i++) {\r\n\t\t\t\tcs1 = s.get(i);\r\n\t\t\t\tcs2 = this.get(i);\r\n\t\t\t\tif (cs1.getCardsType() != cs2.getCardsType()\r\n\t\t\t\t\t\t|| cs1.getCardsValue() != cs2.getCardsValue()) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}",
"private boolean isSameList(CardList l1, CardList l2){\r\n\t\tif (l1.size()!=l2.size())\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tIterator<Card> i1 = l1.iterator();\r\n\t\tIterator<Card> i2 = l2.iterator();\r\n\t\twhile(i1.hasNext()){\r\n\t\t\tif (!i1.next().equals(i2.next()))\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"boolean similarColorTo(Card c);",
"public boolean equals(Object other){\r\n Car nuCar = (Car)other;\r\n if(super.equals(nuCar)){\r\n if(this.model==nuCar.model&&this.AWD==nuCar.AWD){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }else{\r\n return false;\r\n }\r\n\t}",
"public boolean isStandardDeck() {\n Deck jeff = new Deck () ;\n if (this.cards.length == jeff.cards.length) {\n for (int i = 0; i < this.cards.length; i++ ) {\n if (!this.cards[i].equals(jeff.cards[i])) {\n return false;\n }\n }\n return true;\n }\n return false;\n }",
"public boolean equals(Board other) {\n return this.x == other.x && this.o == other.o;\n }",
"public boolean equals(Ship other) {\r\n return lowerLeft.equals(other.lowerLeft);\r\n }",
"private static boolean isShuffleWorking(Deck deck,Card newCard,Card newCard2){\n\t\tdeck.shuffle();\n\t\tboolean isCorrect=true;\n\t\tif(newCard.getSuit().equals(newCard2.getSuit()) &&\n\t\t\t\tnewCard.getRank()==newCard2.getRank()){\n\t\t\t\t\tisCorrect=false;\n\t\t\t\t\treturn isCorrect;\n\t\t}\n\t\tfor(int i=0;i<53;i++){\n\t\t\tdeck.getOneCard();\n\t\t}\n\t\tif(deck.nUsed!=1){\n\t\t\tisCorrect=false;\n\t\t}\n\t\treturn isCorrect;\n\t}",
"public boolean isEqual(FusableBooks record1, FusableBooks record2) {\n\t\treturn sim.calculate(record1.getBookName(), record2.getBookName()) == 1.0;\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CardDetail)) {\n return false;\n }\n CardDetail other = (CardDetail) object;\n if ((this.cardDetailPK == null && other.cardDetailPK != null) || (this.cardDetailPK != null && !this.cardDetailPK.equals(other.cardDetailPK))) {\n return false;\n }\n return true;\n }",
"public boolean computerCardCheck(Card card)\n {\n int diff = Card.valueOfCard(computerCard) - Card.valueOfCard(card);\n // If player wins\n if( diff == 1 || diff == -1)\n {\n return true;\n }\n return false;\n }",
"private boolean canPlay(UnoCard topCard, UnoCard newCard) {\n\n\t\t// Color or value matches\n\t\tif (topCard.getColor().equals(newCard.getColor())\n\t\t\t\t|| topCard.getValue().equals(newCard.getValue()))\n\t\t\treturn true;\n\t\t// if chosen wild card color matches\n\t\telse if (topCard instanceof WildCard)\n\t\t\treturn ((WildCard) topCard).getWildColor().equals(newCard.getColor());\n\n\t\t// suppose the new card is a wild card\n\t\telse if (newCard instanceof WildCard)\n\t\t\treturn true;\n\n\t\t// else\n\t\treturn false;\n\t}",
"public boolean equals(Object rhs) {\n AS rhsAS = (AS) rhs;\n return this.asn == rhsAS.asn;\n }",
"@Override\n public boolean equals(Object obj) {\n if (obj == this) {\n return true;\n }\n if (obj == null || obj.getClass() != getClass()) {\n return false;\n }\n Receipt receipt = (Receipt) obj;\n return receipt.getReceiptId().toString() == this.receiptId.toString()\n && receipt.getTimePlaced().compareTo(this.timePlaced) == 0\n && receipt.getCard() == this.card\n && receipt.getCart() == this.cart;\n }",
"public boolean canCapture(Card otherCard) {\n return this.getRank().equals(Rank.JACK) || this.compareRank(otherCard);\n }",
"@Override\r\n public PlayingCard comparePlayingCards(PlayingCard cardOne, PlayingCard cardTwo){\r\n if(cardOne.getRank().ordinal() > cardTwo.getRank().ordinal()){\r\n return cardOne;\r\n }\r\n else if(cardTwo.getRank().ordinal() > cardOne.getRank().ordinal()){\r\n return cardTwo;\r\n }\r\n else {\r\n return null;\r\n }\r\n }",
"public boolean isCard() {\n\t\treturn id > 0 && id < 53;\n\t}",
"public boolean Equals( AbstractBoard other )\n\t{\n\t\tif( this.getSize( ) != other.getSize( ) || this.getWidth( ) != other.getWidth( ) )\n\t\t\treturn false;\n\t\t\n\t\tfor( int i = 0; i < this.getSize( ); i++ )\n\t\t{\n\t\t\tfor( int j = 0; j < this.getWidth( ); j++ )\n\t\t\t{\n\t\t\t\tif( this.cell( i, j ) != other.cell( i, j ) )\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public int compare(Object card1, Object card2) throws ClassCastException{\n if (!((card1 instanceof Card) && (card2 instanceof Card))){\r\n throw new ClassCastException(\"A Card object was expeected. Parameter 1 class: \" + card1.getClass() \r\n + \" Parameter 2 class: \" + card2.getClass());\r\n }\r\n\r\n short suit1 = ((Card)card1).getSuit();\r\n short suit2 = ((Card)card2).getSuit();\r\n\r\n return suit1 - suit2;\r\n }",
"public int compare(Card card1, Card card2){ // works the same as a compareTo method thought for suits\n if (card1.getSuit() != card2.getSuit()){ // Sorts spades first, then diamonds, hearts, and finally clubs.\n return card1.getSuit() - card2.getSuit();\n } else {\n return card1.getValue() - card2.getValue();\n }\n }",
"public boolean playerCardCheck(Card card)\n {\n int diff = Card.valueOfCard(playerCard) - Card.valueOfCard(card);\n // If player wins\n if( diff == 1 || diff == -1)\n {\n return true;\n }\n return false;\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o)\n return true;\n\n if (!(o instanceof Car))\n return false;\n\n Car c = (Car) o;\n return (this.id == c.id\n && this.size == c.size\n && this.orientation == c.orientation\n && this.currentPosition.equals(c.currentPosition));\n }",
"@Override\n public boolean areItemsTheSame(Concert oldConcert, Concert newConcert) {\n return oldConcert.getId() == newConcert.getId();\n }",
"@Test\n public void equalsSameTest() {\n Device device2 = new Device(deviceID, token);\n assertEquals(device, device2);\n }",
"public int compareTo(Card other) {\n return this.getCost() - other.getCost();\n }",
"public static boolean theSame(LayeredComponent lc1, LayeredComponent lc2) {\n \tif (lc1.numberOfLayers() != lc2.numberOfLayers()) {\n \t\treturn false;\n \t}\n \n \tfor (int i = 0; i < lc1.numberOfLayers(); i++) {\n \t\tif (lc1.getLayer(i).size() != lc2.getLayer(i).size())\n \t\t\treturn false;\n \t}\n \t\n \treturn true;\n }",
"public boolean hasPair(ArrayList<Card>cards) {\r\n\t\tCollections.sort(cards);\r\n\t\tfor(int i = 0; i < cards.size() - 1; i++) {\r\n\t\t\tfor(int j = i+1; j < cards.size(); j++) {\r\n\t\t\t\tif(cards.get(i).getValue() == cards.get(j).getValue()) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t\r\n\t}",
"public boolean equals(Object object1) {\n if (object1 != null && object1.getClass() != this.getClass())\n {\n return false;\n }\n else\n {\n Computer c1 = (Computer) object1;\n return (this.brand.equals(c1.brand) && this.model.equals(c1.model) && this.price == c1.price);\n }\n }",
"public boolean equals(Object otherObject) {\n\t\tif (otherObject == null) return false;\n\t\tPacket otherPacket = (Packet) otherObject;\n\t\tif (!src.equalsIgnoreCase(otherPacket.src)) return false;\n\t\tif (!dst.equalsIgnoreCase(otherPacket.dst)) return false;\n\t\tif (data_len != otherPacket.data_len) return false;\n\t\tif (type != otherPacket.type) return false;\n\t\tif (group != otherPacket.group) return false;\n\t\tfor (int i=0; i < data_len; i++) {\n\t\t\tif (data[i] != otherPacket.data[i] ) return false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean equals(Object another) {\n return (this == another);\n }",
"public boolean equals(CFun other);",
"public boolean equals(Object other)\n {\n if ( ! (other instanceof Direction) )\n return false;\n\n Direction d = (Direction) other;\n return inDegrees() == d.inDegrees();\n }",
"@Override\n public boolean equals(Object other) {\n if (other.getClass() == getClass()) {\n return hashCode() == other.hashCode();\n }\n\n return false;\n }",
"@Override\r\n public Card compareCards(Card cardOne, Card cardTwo) {\r\n if (cardOne.getCardValue() > cardTwo.getCardValue()) {\r\n return cardOne;\r\n }\r\n else if (cardTwo.getCardValue() > cardOne.getCardValue()) {\r\n return cardTwo;\r\n }\r\n else {\r\n return null;\r\n }\r\n }",
"public boolean isValid() {\n\t\t\n\t\tif(this.size()!=2)\n\t\t\treturn false;\n\t\telse {\n\t\t\tint rank1=this.getCard(0).getRank();\n\t\t\tint rank2=this.getCard(1).getRank();\n\t\t\t\n\t\t\tif(rank1==rank2)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n\tpublic boolean equals(Object other) {\n\t\tif (other == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (this.getClass() != other.getClass()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tCircle otherObject = (Circle) other;\n\t\treturn approx(this.radius, otherObject.radius) && \n\t\t\t\tthis.color.equals(otherObject.color) &&\n\t\t\t\tthis.position.equals(otherObject.position) &&\n\t\t\t\tthis.filled == otherObject.filled;\n\t\t\n\t}",
"public abstract boolean equals(IPeripheral other);",
"public static boolean hasPair(Card[] cards) {\n\t\tint counter = 0;\n\t\tfor(int i = 0; i < cards.length; i++){\n\t\t\tfor(int j = i+1; j< cards.length; j++){\n\t\t\t\tif(cards[i].getValue() == cards[j].getValue()){\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(counter>=1){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean equals(java.lang.Object r2) {\n /*\n r1 = this;\n if (r1 == r2) goto L_0x0015\n boolean r0 = r2 instanceof com.bamtechmedia.dominguez.about.p052r.p053i.C2327c\n if (r0 == 0) goto L_0x0013\n com.bamtechmedia.dominguez.about.r.i.c r2 = (com.bamtechmedia.dominguez.about.p052r.p053i.C2327c) r2\n java.lang.String r0 = r1.f6488c\n java.lang.String r2 = r2.f6488c\n boolean r2 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r2)\n if (r2 == 0) goto L_0x0013\n goto L_0x0015\n L_0x0013:\n r2 = 0\n return r2\n L_0x0015:\n r2 = 1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bamtechmedia.dominguez.about.p052r.p053i.C2327c.equals(java.lang.Object):boolean\");\n }",
"final public boolean equals (Object other)\n {\n\treturn compareTo (other) == 0;\n }",
"public static boolean isSame(QuoteShort q1, QuoteShort q2) {\n\t\tif (q1.getOpen5()!=q2.getOpen5()) return false;\r\n\t\tif (q1.getClose5()!=q2.getClose5()) return false;\r\n\t\tif (q1.getHigh5()!=q2.getHigh5()) return false;\r\n\t\tif (q1.getLow5()!=q2.getLow5()) return false;\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tMove other = (Move)obj;\n\t\treturn (other.game==game) && (other.player==player) && (other.conseq==conseq);\n\t}",
"public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}",
"public boolean equalStack(StackClass otherStack){\n \tif(this.size != otherStack.size)\n \treturn false;\n \telse{\n \twhile(!this.isEmpty()){\n \tif(this.pop() != otherStack.pop())\n \treturn false;\n \t} \n \t}\n \treturn true;\n\t}",
"@Override\n public boolean equals(Object other) \n {\n Student s = (Student)other; \n return this.name.equals(s.getName()) && this.id.equals(s.getId()); \n }",
"@Override\n\t\tpublic boolean equals(IPeripheral other) {\n\t\t\treturn false;\n\t\t}",
"@Override\n\t\tpublic boolean equals(IPeripheral other) {\n\t\t\treturn false;\n\t\t}",
"@Override\n\t\tpublic boolean equals(IPeripheral other) {\n\t\t\treturn false;\n\t\t}",
"public void compareAddress()\n {\n Address a = new Address(\"Amapolas\",1500,\"Providencia\",\"Santiago\");\n Address b = new Address(\"amapolas\",1500, \"providencia\",\"santiago\");\n Address c = new Address(\"Hernando Aguirre\",1133,\"Providencia\", \"Santiago\");\n \n boolean d = a.equals(b); \n }"
] | [
"0.808354",
"0.79529065",
"0.76152426",
"0.74303347",
"0.73989284",
"0.72354317",
"0.7227261",
"0.7197083",
"0.71044695",
"0.7079845",
"0.70506084",
"0.6970958",
"0.69637346",
"0.6936246",
"0.6888032",
"0.6832278",
"0.6790044",
"0.6755012",
"0.6713236",
"0.66999525",
"0.6659773",
"0.6627669",
"0.66123927",
"0.6612319",
"0.65658563",
"0.6548959",
"0.65356916",
"0.65174425",
"0.6492997",
"0.6451052",
"0.64376",
"0.6430399",
"0.6398644",
"0.63759774",
"0.6333997",
"0.6328143",
"0.6323066",
"0.63127774",
"0.628657",
"0.6274209",
"0.6261651",
"0.6211029",
"0.62097985",
"0.61835945",
"0.61494726",
"0.6131024",
"0.61223036",
"0.6111802",
"0.60826546",
"0.60813135",
"0.60518557",
"0.60151786",
"0.60008943",
"0.5999612",
"0.5979704",
"0.59680164",
"0.5967127",
"0.59480876",
"0.5928034",
"0.59106976",
"0.5908021",
"0.5901272",
"0.5883803",
"0.5870268",
"0.58521366",
"0.5842676",
"0.5839506",
"0.58154786",
"0.5794557",
"0.5788416",
"0.57665557",
"0.5758071",
"0.57578546",
"0.5748937",
"0.57414955",
"0.5720166",
"0.5719344",
"0.57183903",
"0.57109505",
"0.5708796",
"0.57018",
"0.5699237",
"0.5677049",
"0.56769055",
"0.5672141",
"0.5670556",
"0.5667951",
"0.5666982",
"0.5660683",
"0.5654004",
"0.5646238",
"0.56460905",
"0.5645741",
"0.564463",
"0.56436116",
"0.56434447",
"0.5635458",
"0.5635458",
"0.5635458",
"0.5631184"
] | 0.77159995 | 2 |
Returns a bool stating if this card is face up. | public boolean isFaceUp(){return faceUp;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isFaceUp(){\r\n return(getImage() == CardFaceUp);\r\n }",
"boolean hasFaceUp();",
"public boolean getFaceUp() {\n\t\treturn faceUp;\n\t}",
"boolean isTurnedFaceUp();",
"public boolean getFace() {\n return this.faceUp;\n }",
"public boolean isFacingUp()\n {\n return facingUp;\n }",
"boolean turnFaceUp();",
"boolean turnFaceDown();",
"public boolean isMoveUp() {\n return moveUp;\n }",
"public boolean isShootUp() {\n return shootUp;\n }",
"public void flipCard() {\n this.faceUp = !faceUp;\n }",
"boolean isIngameMenuUp() {\n return this.game.r instanceof oz;\n }",
"public int showFace() {\n\t\treturn faceUp;\n\t}",
"public boolean isGameWon(){\r\n for(Card c: this.cards){\r\n if (c.getFace() == false){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"public boolean isUpState() {\n return upState;\n }",
"boolean isGameSpedUp();",
"public boolean isHeads() {\n return (face == 0);\n }",
"public boolean isUp () { return n.isUp(); }",
"protected boolean hasFaceDownCard(int playerNo, int cardIndex) {\n return carddowncount[playerNo] >= (3 - cardIndex);\n }",
"private boolean checkformultiFaceUp(Card card) {\n if (!canAddToPile(card.getValue())) {\n return false;\n }\n\n // checking how many card of the same value as card played are in players hand\n int amountinhand = 0;\n for (int n = 0; n < 3; n++) {\n if (hand.getFaceUp(n) != null)\n if (hand.getFaceUp(n).getValue() == card.getValue()) amountinhand++;\n }\n if (amountinhand <= 1) return false;\n MultiCardD dialog = new MultiCardD(sh, amountinhand);\n int numbertoplay = dialog.getChoice();\n if (numbertoplay <= 1) return false;\n String command = \"turn:faceup:multi:\" + numbertoplay + \":\" + card.getNumber() + \":\";\n pile.add(card);\n numbertoplay--;\n int toberemovedcount = 0;\n int toberemoved[] = new int[3];\n for (int n = 0; n < 3; n++) toberemoved[n] = -1;\n for (int n = 0; n < 3; n++)\n if (hand.getFaceUp(n) != null) {\n if (numbertoplay <= 0) break;\n if (card.getValue() == hand.getFaceUp(n).getValue()\n && card.getNumber() != hand.getFaceUp(n).getNumber()) {\n command = command.concat(hand.getFaceUp(n).getNumber() + \":\");\n pile.add(hand.getFaceUp(n));\n // storing which card are to be removed\n toberemoved[toberemovedcount] = hand.getFaceUp(n).getNumber();\n toberemovedcount++;\n numbertoplay--;\n }\n }\n // removing card from hand\n for (int n = 0; n < 3; n++) {\n if (toberemoved[n] == -1) break;\n for (int i = 0; i < 3; i++)\n if (hand.getFaceUp(i) != null)\n if (hand.getFaceUp(i).getNumber() == toberemoved[n]) {\n hand.removeFaceUp(i);\n break;\n }\n }\n // sending command\n sendCommand(command);\n // checking for 4 of a kind\n if (pile.isFourOfAKind() || pile.topValue() == 10) {\n burnPile();\n sh.addMsg(\"You burn the pile is your turn again\");\n } else {\n sh.setmyTurn(false);\n nextTurn();\n }\n return true;\n }",
"public boolean isCardClicked(){\n\t\treturn cardClicked;\n\t}",
"public String printFace() {\n if (faceUp) {\n return \"Faced up\";\n } else {\n return \"Faced down\";\n }\n }",
"public void setFaceUp(){faceUp = true;}",
"public boolean isCardToAccuse() {\n\t\treturn (getOwner() == CASE_FILE_PLAYER);\n\t}",
"public boolean hasFollowUp() \n {\n return followUp.equals(Constants.CLOSE);\n }",
"boolean isPaintedFace(int face) {\n return the_cube[face];\n }",
"public void setFaceDown(){faceUp = false;}",
"public boolean isHasLeveledUp() {\n return hasLeveledUp;\n }",
"public boolean isCountDownShow() {\n boolean isCanCountDown = isCameraFrontFacing() ? CustomUtil.getInstance().getBoolean(CustomFields.DEF_CAMERA_SUPPORT_FRONTFACING_COUNT_DOWN, false) : CustomUtil.getInstance().getBoolean(CustomFields.DEF_CAMERA_SUPPORT_BACKFACING_COUNT_DOWN, false);\n if (!CustomUtil.getInstance().getBoolean(CustomFields.DEF_CAMERA_SUPPORT_COUNT_DOWN_ONLY_AUTO_MODE, false) || getModuleId() == this.mActivity.getResources().getInteger(R.integer.camera_mode_photo) || getModuleId() == this.mActivity.getResources().getInteger(R.integer.camera_mode_square) || getModuleId() == this.mActivity.getResources().getInteger(R.integer.camera_mode_pro)) {\n return isCanCountDown;\n }\n return false;\n }",
"public boolean isPressed() {\r\n List<Entity> entities = dungeon.getEntities();\r\n for (Entity e: entities) {\r\n if (e != null && e.getY() == getY() && e.getX() == getX()) {\r\n if (\"Boulder\".equals(e.getClass().getSimpleName()))\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public void turnCardFaceDown(){\r\n if (getImage() == CardFaceUp)\r\n setImage(Images.faceDown);\r\n else\r\n setImage(CardFaceUp);\r\n }",
"public boolean hasPileupBeenDownsampled() { return hasPileupBeenDownsampled; }",
"public int getNumFaceUp(){\n int faceUp = 0;\n for(int i = 0; i < pilePlace; i++){\n if(pile[i].getFace() == \"Up\"){\n faceUp++;\n }\n }\n return faceUp;\n }",
"public boolean hasCardsLeftOver() {\r\n\r\n return !(currentCards.isEmpty());\r\n\r\n }",
"public void setFacingUp(boolean facingUp)\n {\n this.facingUp = facingUp;\n }",
"public boolean isShotDown(){\n return this.shotDown;\n }",
"public boolean isDown() {\n return pm.pen.hasPressedButtons();\n }",
"public boolean isShootDown() {\n return shootDown;\n }",
"private boolean canMoveUp()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = 1; row < grid.length; row++ ) {\n // looks at tile directly above the current tile\n int compare = row-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"boolean isCrouching();",
"public boolean avatarAlive()\n\t{\n\t\treturn (avatar.getHitPoints() > 0);\n\t}",
"boolean hasAlreadShowCard();",
"public Boolean up()\r\n\t{\r\n\t\tString cmd;\r\n\t\t\r\n\t\tcmd = \"flippers/up?null=true\";\r\n\t\treturn cmdSimpleResult(cmd);\r\n\t}",
"public boolean timeUp(){\n return timeAlive == pok.getSpawnTime(); \n }",
"boolean hasAlreadFoldCard();",
"public boolean isPanelVisibleBecauseOfHeadsUp() {\n return (this.mHeadsUpManager.hasPinnedHeadsUp() || this.mHeadsUpAnimatingAway) && this.mBarState == 0;\n }",
"final public boolean isJoker() {\r\n\t\treturn (face == 11 && (suit == '1' || suit == '2' || suit == '3'));\r\n\t}",
"public boolean isForward()\n {\n return (state == AnimationState.FORWARD);\n }",
"public void setDisplay(boolean isFaceUp, boolean isTapped) {\n \n \t}",
"public boolean hasFullyTurned() {\r\n return turningPID.onTarget();\r\n }",
"public boolean isMoveDown() {\n return moveDown;\n }",
"public boolean hasMoreCards() {\n if (cardHold == 0)\n return false;\n else\n return true;\n }",
"public CardState withDrawnFaceUpCard(int slot){\n Preconditions.checkArgument(!isDeckEmpty());\n Objects.checkIndex(slot, FACE_UP_CARDS_COUNT);\n // new Deck from which the top card has been drawn\n Deck<Card> withoutTopCard = deck.withoutTopCard();\n // copy of faceUpCards\n List<Card> faceUpCards = new ArrayList<>(faceUpCards());\n // replace the card at the specified slot with the top card from the deck\n faceUpCards.set(slot, deck.topCard());\n return new CardState(faceUpCards, withoutTopCard, discards);\n }",
"public boolean isHighCard() {\r\n\r\n return getHighestConsecutive() == 1;\r\n }",
"public void turnCardFaceUp(){\r\n setImage(CardFaceUp);\r\n }",
"public void onScreenUp() {\n faceUp = true;\n requestForValidationOfQibla();\n }",
"boolean hasHair();",
"public boolean moveUp() {\n if (position.isLinked(position.getNorth())) {\n position.getGameObjects().remove(this.type);\n position = position.getNorth();\n position.getGameObjects().add(this.type);\n return true;\n }\n return false;\n }",
"public boolean hit()\n\t{\n\t\taddCardToHand(new BlackJackCard());\n\t\treturn getHandValue() <= 21;\n\t}",
"public boolean hasPassed()\n {\n if (y<=450.0f)\n return false;\n else\n return true;\n }",
"public boolean TapCard(float x, float y) { return false; }",
"public int getNumFaceDown(){\n int faceDown = 0;\n for(int i = 0; i < pilePlace; i++){\n if(pile[i].getFace() == \"Down\"){\n faceDown++;\n }\n }\n return faceDown;\n }",
"public void flip(){\n this.faceDown = !this.faceDown;\n }",
"public boolean isGameOver() throws IllegalStateException {\n if (!isGameStarted) {\n throw new IllegalStateException(\"Game has not yet started!\");\n }\n List<Card> visibleCards = new ArrayList<>();\n for (int rowCount = 0; rowCount < pyramidOfCards.size(); rowCount++) {\n for (int cardCount = 0; cardCount < pyramidOfCards.get(rowCount).size(); cardCount++) {\n Card card = pyramidOfCards.get(rowCount).get(cardCount);\n if (card != null && (isVisibleRelaxed(rowCount, cardCount, rowCount + 1, cardCount)\n || isVisibleRelaxed(rowCount, cardCount, rowCount + 1, cardCount + 1))) {\n visibleCards.add(card);\n }\n }\n }\n if (visibleCards.size() == 0) {\n return true;\n } else {\n // checking for pairsum =13 in visible cards\n HashSet<Integer> hm = new HashSet<>();\n for (Card card : visibleCards) {\n int val = getIntValue(card.getFaceValue());\n if (hm.contains(13 - val) || val == 13) {\n return false;\n } else {\n hm.add(val);\n }\n }\n if (getNumDraw() != 0) {\n return false;\n }\n\n }\n return true;\n }",
"boolean canScrollUp();",
"public void setMoveUp(boolean TorF) {\n moveUp = TorF;\n }",
"public boolean isFurnace() {\n return this.type == Type.FURNACE;\n }",
"public boolean hasFainted() {\n return hp <= 0;\n }",
"public boolean stepUp() {\n yMaze--;\n printMyPosition();\n return true; // should return true if step was successful\n }",
"public boolean GameIsOver() {\n\t\tif(deck.numCardsLeft()==8) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean cardPlayedBefore() {\n boolean played = false;\n if (playedCards.size()>0) {\n played = true;\n }\n return played;\n }",
"public void addCardFaceUp(Card c){\n c.setFaceUp();\n pile[pilePlace] = c;\n pilePlace++;\n }",
"boolean hasFrame();",
"public boolean isTurned(){\n\treturn IS_TURNED;\n }",
"public Card(Image faceUp) {\n\t\t\tthis.faceUp = faceUp;\n\t\t\tshowing.setImage(faceUp); //When a Card object is created, it initially shows the face-up image\n\t\t}",
"boolean hasDirection();",
"public boolean moveUp() \r\n\t{\r\n\t\tboolean moved = false;\r\n\t\tif ( maze [currentRow] [currentCol].isOpenUp() )\r\n\t\t{\r\n\t\t\tmaze [currentRow] [currentCol].removeWalker(Direction.UP);\r\n\t\t\tif ( currentRow-1 < 0 || maze [currentRow-1] [currentCol].isOpenDown() )\r\n\t\t\t{\r\n\t\t\t\tcurrentRow--;\r\n\t\t\t\tmoved = true;\r\n\t\t\t}\r\n\t\t\tif ( currentRow >= 0 )\r\n\t\t\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t\t}\r\n\t\tSystem.out.println( \"Move Up: \" + moved );\r\n\t\treturn moved;\r\n\t}",
"public static boolean tabIsDown()\n\t{\n\t\treturn tabDown;\n\t}",
"public boolean isHisTurn(UnoCard clickedCard) {\n\t\tfor (Player p : getPlayers()) {\n\t\t\tif (p.hasCard(clickedCard) && p.isMyTurn())\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean IsOver(float x, float y, boolean deck, int close) {\n float clx = mCardCount == 0 ? mX : mCard[mCardCount - 1].GetX();\n float leftX = mLeftEdge == -1 ? clx : mLeftEdge;\n float rightX = mRightEdge == -1 ? clx + Card.WIDTH : mRightEdge;\n float topY = (mCardCount == 0 || deck) ? mY : mCard[mCardCount-1].GetY();\n float botY = mCardCount > 0 ? mCard[mCardCount - 1].GetY() : mY;\n botY += Card.HEIGHT;\n\n leftX -= close*Card.WIDTH/2;\n rightX += close*Card.WIDTH/2;\n topY -= close*Card.HEIGHT/2;\n botY += close*Card.HEIGHT/2;\n if (mBottom != -1 && botY + 10 >= mBottom)\n botY = mBottom;\n\n if (x >= leftX && x <= rightX && y >= topY && y <= botY) {\n return true;\n }\n return false;\n }",
"boolean hasCurHP();",
"boolean hasCurHP();",
"boolean hasCurHP();",
"boolean hasCurHP();",
"boolean hasCurHP();",
"boolean hasCurHP();",
"public boolean isInPlay() {\n\t\tif (getX() < LEFT_FIELD_LIMIT || getX() > RIGHT_FIELD_LIMIT || \n\t\t\t\t getY() <= MINIMUM_FOOTBALL_Y) {\n\t\t\tinPlay_ = false;\n\t\t\treturn inPlay_;\n\t\t} \n\t\treturn inPlay_;\n\t}",
"boolean haveGame(char suit){\n int suitNum = 0; // number of cards that follow suit\n for (int i=0; i<6; i++)\n if (hand.get(i).suit == suit)\n suitNum++;\n return (suitNum > 3);\n }",
"public boolean isFallingEdge()\n {\n return !currentlyDetecting && previouslyDetecting;\n }",
"public void faceUp(){\r\n changePlace(hand);\r\n //do a magical work\r\n changePlace(graveYard);\r\n }",
"public boolean percolates() {\n return backwashQuickUnion.connected(virtualTop, virtualBottom);\n }",
"public void setHasLeveledUp(boolean value) {\n this.hasLeveledUp = value;\n }",
"@Override\n\tpublic boolean moveUp() {\n\t\tboolean rs = super.moveUp();\n\t\tif(rs == true){\n\n\t\t}\n\t\treturn rs;\n\t}",
"public boolean upwardTrend() {\n\t\tfor(int index = 1; index < NUM_DECADES; index++) {\n\t\t\tif(rank.get(index-1) <= rank.get(index)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean checkUp()\n\t{\n\t\tif(row-1>=0)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public boolean isPickedUp() {\r\n return pickedUp;\r\n }",
"@Override\n\tpublic boolean onValidSurface()\n\t{\n\t\tif (!this.worldObj.getCollidingBoundingBoxes(this, this.getEntityBoundingBox()).isEmpty())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint i = Math.max(1, this.blocksToTakeUp());\n\t\t\tint j = Math.max(1, this.blocksToTakeUp());\n\t\t\tBlockPos blockpos = this.hangingPosition.offset(this.facingDirection.getOpposite());\n\t\t\tEnumFacing enumfacing = this.facingDirection.rotateYCCW();\n\n\t\t\tfor (int k = -i / 2 + 1; k < i / 2 + 1; ++k)\n\t\t\t{\n\t\t\t\tfor (int l = -j / 2 + 1; l < j / 2 + 1; ++l)\n\t\t\t\t{\n\t\t\t\t\tBlockPos blockpos1 = blockpos.offset(enumfacing, k).up(l);\n\t\t\t\t\tBlock block = this.worldObj.getBlockState(blockpos1).getBlock();\n\n\t\t\t\t\tif (block.isSideSolid(this.worldObj, blockpos1, this.facingDirection))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!block.getMaterial().isSolid() && !BlockRedstoneDiode.isRedstoneRepeaterBlockID(block))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (Entity entity : this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.getEntityBoundingBox()))\n\t\t\t{\n\t\t\t\tif (entity instanceof EntityHanging)\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t}",
"public boolean goAllUp() {\n\t\tif ( topLimitSwitch.get() ) {\n\t\t\tstop();\n\t\t}\n\t\telse {\n\t\t\tup();\n\t\t}\n\t\t\n\t\treturn topLimitSwitch.get();\n\t}",
"public boolean isOver() {\n \treturn status == GameStatus.victory || status == GameStatus.draw || status == GameStatus.quit;\n }",
"public boolean shouldShowFaceTransientIndication() {\n if (this.mBouncerShowing || !MiuiKeyguardUtils.isIndianRegion(this.mContext) || !WallpaperAuthorityUtils.isLockScreenMagazineOpenedWallpaper() || !this.mUpdateMonitor.isSupportLockScreenMagazineLeft()) {\n return false;\n }\n return true;\n }"
] | [
"0.86919516",
"0.79254615",
"0.7918857",
"0.79055685",
"0.7643643",
"0.7594114",
"0.7043035",
"0.6783542",
"0.67746055",
"0.6752846",
"0.6689801",
"0.6586753",
"0.6487346",
"0.6453774",
"0.6432676",
"0.63216627",
"0.624145",
"0.6217109",
"0.62144685",
"0.6185597",
"0.6126672",
"0.60857975",
"0.60677457",
"0.60649556",
"0.60466784",
"0.6003168",
"0.5970064",
"0.5962969",
"0.59600925",
"0.5939559",
"0.5938379",
"0.59264493",
"0.5889636",
"0.58870316",
"0.58779794",
"0.58702886",
"0.58656585",
"0.5864887",
"0.5855861",
"0.582708",
"0.5790919",
"0.57851607",
"0.5765302",
"0.57568514",
"0.574653",
"0.5746133",
"0.57414424",
"0.57396346",
"0.5724672",
"0.57146764",
"0.57036066",
"0.5703268",
"0.567138",
"0.5648594",
"0.56452906",
"0.56427604",
"0.56411314",
"0.56363124",
"0.56265795",
"0.5618535",
"0.5604932",
"0.5603202",
"0.55982393",
"0.5572148",
"0.5562066",
"0.5558898",
"0.5556046",
"0.5546956",
"0.55443126",
"0.5536688",
"0.55332685",
"0.5526803",
"0.5515623",
"0.55019647",
"0.5497557",
"0.5495633",
"0.5487284",
"0.5475265",
"0.54736555",
"0.54732674",
"0.54721475",
"0.54721475",
"0.54721475",
"0.54721475",
"0.54721475",
"0.54721475",
"0.5472033",
"0.5469175",
"0.5456681",
"0.5455172",
"0.5453584",
"0.54455215",
"0.5440382",
"0.5439321",
"0.5435355",
"0.54306555",
"0.5429697",
"0.54247844",
"0.54229665",
"0.5414882"
] | 0.81991196 | 1 |
Create an Intent with action as ACTION_PICK | private void pickFromGallery(){
Intent intent=new Intent(Intent.ACTION_PICK);
// Sets the type as image/*. This ensures only components of type image are selected
intent.setType("image/*");
//We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.
String[] mimeTypes = {"image/jpeg", "image/png"};
intent.putExtra(Intent.EXTRA_MIME_TYPES,mimeTypes);
// Launching the Intent
startActivityForResult(intent,GALLERY_REQUEST_CODE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Intent getIntent(){\n Intent pickIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n\tpickIntent.setType(\"image/*\");\n\tpickIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n\tpickIntent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);\t\n\treturn pickIntent;\n }",
"@Override\n public void onClick(View view) {\n Intent intent=new Intent(Intent.ACTION_PICK);\n // Sets the type as image/*. This ensures only components of type image are selected\n intent.setType(\"image/*\");\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\n String[] mimeTypes = {\"image/jpeg\", \"image/png\"};\n intent.putExtra(Intent.EXTRA_MIME_TYPES,mimeTypes);\n // Launching the Intent\n startActivityForResult(intent,1);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_PICK);\n intent.setType(\"image/*\");\n // the one is the number attached to the intent\n //it capture the number and goes with the result\n startActivityForResult(intent,1);\n }",
"@Override\n public void onClick(View arg0) {\n Uri uri = Uri.parse(\"content://contacts\");\n Intent intent = new Intent(Intent.ACTION_PICK, uri);\n intent.setType(Phone.CONTENT_TYPE);\n startActivityForResult(intent, REQUEST_CODE);\n }",
"@Override\r\n public void onClick(View v) {\n\r\n Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);\r\n intent.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE);\r\n\r\n startActivityForResult(intent, PICK_CONTACT);\r\n\r\n }",
"@Override\n public void onClick(View v) {\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent, SELECT_PHOTO);\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI);\r\n\t\t\t\tintent.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE);\r\n\t\t\t\tstartActivityForResult(intent, CONTACT_PICKER_RESULT);\t\t\t\t\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"SELECT IMAGE\"), GALLERY_PICK);\n }",
"private void pickFromGallery() {\n Intent intent = new Intent(Intent.ACTION_PICK);\r\n // Sets the type as image/*. This ensures only components of type image are selected\r\n intent.setType(\"image/*\");\r\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\r\n String[] mimeTypes = {\"image/jpeg\", \"image/png\"};\r\n intent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);\r\n // Launching the Intent\r\n startActivityForResult(intent, 0);\r\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent( Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(Intent.createChooser(intent, \"Select File\"), 1);\n }",
"private void pickFromGallery(){\n Intent intent=new Intent(Intent.ACTION_PICK);\n // Sets the type as image/*. This ensures only components of type image are selected\n intent.setType(\"image/*\");\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\n String[] mimeTypes = {\"image/jpeg\", \"image/png\"};\n intent.putExtra(Intent.EXTRA_MIME_TYPES,mimeTypes);\n // Launching the Intent\n startActivityForResult(intent,1);\n }",
"@Override\n\t\tpublic void onClick(View v) { Intent galleryIntent = new Intent(Intent.ACTION_PICK,\n\t\t\t\t\tandroid.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n\t\t\t// Start the Intent\n\t\t\tstartActivityForResult(\n\t\t\t\t\tIntent.createChooser(galleryIntent, \"Select Picture\"), REQUEST_CODE);\n\t\t}",
"public void onClick(View v) {\n Intent intent= new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);\n startActivityForResult(intent, 1);\n }",
"public Intent getPickImageChooserIntent() {\n File f = new File(android.os.Environment.getExternalStorageDirectory(), \"temp.jpg\");\n Uri outputFileUri = Uri.fromFile(f);\n List<Intent> allIntents = new ArrayList<>();\n PackageManager packageManager = mContext.getPackageManager();\n\n // collect all camera intents\n Intent captureIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n List<ResolveInfo> listCam = packageManager.queryIntentActivities(captureIntent, 0);\n for (ResolveInfo res : listCam) {\n Intent intent = new Intent(captureIntent);\n intent.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n intent.setPackage(res.activityInfo.packageName);\n if (outputFileUri != null) {\n intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);\n }\n allIntents.add(intent);\n }\n\n // collect all gallery intents\n Intent galleryIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n galleryIntent.setType(\"image/*\");\n List<ResolveInfo> listGallery = packageManager.queryIntentActivities(galleryIntent, 0);\n for (ResolveInfo res : listGallery) {\n Intent intent = new Intent(galleryIntent);\n intent.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n intent.setPackage(res.activityInfo.packageName);\n allIntents.add(intent);\n }\n\n // the main intent is the last in the list (fucking android) so pickup the useless one\n Intent mainIntent = allIntents.get(allIntents.size() - 1);\n for (Intent intent : allIntents) {\n if (intent.getComponent().getClassName().equals(\"com.android.documentsui.DocumentsActivity\")) {\n mainIntent = intent;\n break;\n }\n }\n allIntents.remove(mainIntent);\n\n // Create a chooser from the main intent\n Intent chooserIntent = Intent.createChooser(mainIntent, \"Select source\");\n\n // Add all other intents\n chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, allIntents.toArray(new Parcelable[allIntents.size()]));\n\n return chooserIntent;\n }",
"@Override\n public void onClick(View v) {\n\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent, TAKE_PICTURE);\n dialog.dismiss();\n }",
"@Override\r\n public void onClick(View v) {\n Intent pickPhoto = new Intent(Intent.ACTION_PICK);\r\n pickPhoto.setType(\"image/*\");\r\n startActivityForResult(pickPhoto, TAKE_AVATAR_GALLERY_REQUEST);\r\n UtilSettings.this\r\n .removeDialog(AVATAR_DIALOG_ID);\r\n\r\n }",
"public static Intent getPickImageIntent(Context context) {\n Intent chooserIntent = null;\n\n List<Intent> intentList = new ArrayList<>();\n\n Intent pickIntent = new Intent(Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n Intent takePhotoIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n takePhotoIntent.putExtra(\"return-data\", true);\n takePhotoIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(getEmptyTempFile(context)));\n intentList = addIntentsToList(context, intentList, pickIntent);\n intentList = addIntentsToList(context, intentList, takePhotoIntent);\n\n if (intentList.size() > 0) {\n chooserIntent = Intent.createChooser(intentList.remove(intentList.size() - 1),\n \"Pick image\");\n chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, intentList.toArray(new Parcelable[]{}));\n }\n\n return chooserIntent;\n }",
"@Override\n public void onClick(DialogInterface dialog, int item) {\n if (options[item].equals(\"Take Photo\")) {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, 0);\n } else if (options[item].equals(\"Choose from Library\")) {\n Intent intent = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(\n Intent.createChooser(intent, \"Select File\"),\n 1);\n } else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }",
"private void dispatchGalleryIntent() {\n Intent pickPhoto = new Intent(Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n pickPhoto.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivityForResult(pickPhoto, REQUEST_CHOOSE_PHOTO_NUM);\n }",
"public static Intent getImagePickingIntent(Context context) {\r\n if (context == null) return null;\r\n\r\n Intent chooserIntent = null;\r\n\r\n List<Intent> intentList = new ArrayList<>();\r\n\r\n Intent pickPhotoIntent = new Intent();\r\n pickPhotoIntent.setType(\"image/*\");\r\n pickPhotoIntent.setAction(Intent.ACTION_GET_CONTENT);\r\n\r\n intentList = addIntentsToList(context, intentList, pickPhotoIntent);\r\n\r\n if (intentList.size() > 0) {\r\n chooserIntent =\r\n Intent.createChooser(intentList.remove(intentList.size() - 1), PICKER_TITLE);\r\n chooserIntent\r\n .putExtra(Intent.EXTRA_INITIAL_INTENTS, intentList.toArray(new Parcelable[]{}));\r\n }\r\n\r\n return chooserIntent;\r\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public void onClick(View v) {\n final CharSequence[] items = {\"Camera\", \"Gallery\", \"Cancel\"};\n AlertDialog.Builder builder = new AlertDialog.Builder(EditProfile.this);\n builder.setTitle(\"Select an option:\");\n\n builder.setItems(items, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n if (items[i].equals(\"Camera\")) {\n\n // Calling the camera via intent.\n Intent picIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n // Starting Camera.\n startActivityForResult(picIntent, 0);\n\n } else if (items[i].equals(\"Gallery\")) {\n // Calling the gallery via intent.\n Intent galleryIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n galleryIntent.setType(\"image/*\");\n startActivityForResult(galleryIntent, 3);\n\n } else if (items[i].equals(\"Cancel\")) {\n // Nothing happens.\n dialogInterface.dismiss();\n }\n }\n });\n builder.show();\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n Intent pickIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n pickIntent.setType(\"image/*\");\n Intent chooserIntent = Intent.createChooser(intent, \"Select Image\");\n chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[] {pickIntent});\n startActivityForResult(chooserIntent,PICK_IMAGE_REQUEST);\n }",
"@Override\n public void onClick(View v) {\n Intent photoPickerIntent = new Intent();\n photoPickerIntent.setType(\"image/*\");\n photoPickerIntent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(photoPickerIntent, GALLERY_REQUEST);\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), 1);\n\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n\n startActivityForResult(Intent.createChooser(intent,\"Choose an app to select a image\"), 1);\n }",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(ChooseFileActivity.this, FilePickerActivity.class);\n // This works if you defined the intent filter\n // Intent i = new Intent(Intent.ACTION_GET_CONTENT);\n\n // Set these depending on your use case. These are the defaults.\n i.putExtra(FilePickerActivity.EXTRA_ALLOW_MULTIPLE, false);\n i.putExtra(FilePickerActivity.EXTRA_ALLOW_CREATE_DIR, false);\n i.putExtra(FilePickerActivity.EXTRA_MODE, FilePickerActivity.MODE_FILE);\n\n // Configure initial directory like so\n //i.putExtra(FilePickerActivity.EXTRA_START_PATH, \"/storage/emulated/0/\"); -----\n i.putExtra(FilePickerActivity.EXTRA_START_PATH, root);\n\n startActivityForResult(i, 1);\n }",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i, SELECTED_PICTURE);\n }",
"@Override\n public void onClick(View v) {\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n //Where do we want to find the data\n File pictureDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n //Get the name of the directory\n String pictureDirectoryPath = pictureDirectory.getPath();\n //Get a URI representation of the Path because this is what android needs to deal with\n Uri data = Uri.parse(pictureDirectoryPath);\n //Set the data (where we want to look for this media) and the type (what media do we want to look for).Get all image types\n photoPickerIntent.setDataAndType(data, \"image/*\");\n //We invoke the image gallery and receive something from it\n if (photoPickerIntent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(photoPickerIntent, IMAGE_GALLERY_REQUEST);\n }\n\n }",
"private void pickImageIntent(){\n\n Intent intent=new Intent();\n intent.setType(\"image/*\");\n intent.putExtra(intent.EXTRA_ALLOW_MULTIPLE,true);\n intent.setAction(Intent.ACTION_OPEN_DOCUMENT);\n startActivityForResult(Intent.createChooser(intent,\"Select Images\"),PICK_IMAGES_CODE);\n\n\n\n }",
"public void clickPickImage(View view) {\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent, 10);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_PICK, null);\n\n\t\t\t\tintent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, \"image/*\");\n\t\t\t\tstartActivityForResult(intent, 1);\n\t\t\t\tmenu_mine.setVisibility(View.GONE);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n startActivityForResult(i, RESULT_LOAD_IMAGE);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n // image k selection k liey requesting code jo hai upar vo 1234 hai ye dena hota hai\n startActivityForResult(Intent.createChooser(intent, \"Select Image\"), REQUEST_CODE);\n }",
"private void openFileChoose() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, PEGA_IMAGEM);\n }",
"private void galleryIntent() {\n Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n ((MessageActivity) context).startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), SELECT_PICTURE);\n\n }",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i , RESULT_LOAD_IMAGE);\n\n\n }",
"public void onClickSelect(View v) {\n\t\tIntent i = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);\n//\t\tIntent i = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n\t\tstartActivityForResult(i, REQUEST_PICK_CONTACT);\n\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), SELECT_PICTURE);\n }",
"private void galleryIntent() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);//\n startActivityForResult(Intent.createChooser(intent, \"Select Photo\"), SELECT_PHOTO);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, getString(R.string.photo_selector)), RESULT_PHOTO_OK);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, getString(R.string.photo_selector)), RESULT_PHOTO_OK);\n }",
"public void sendIntentToGallery() {\n\t\tIntent i = new Intent(\n\t\t\t\tIntent.ACTION_PICK,\n\t\t\t\tandroid.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n\t\t// Send the intent with id 1\n\t\tstartActivityForResult(i, 1);\n\t}",
"private void galleryIntent()\r\n {\r\nIntent gallery=new Intent();\r\ngallery.setType(\"image/*\");\r\ngallery.setAction(Intent.ACTION_GET_CONTENT);\r\n\r\nstartActivityForResult(Intent.createChooser(gallery,\"Select Picture \"),PICK_IMAGE );\r\n }",
"@Override\n public void onClick(View v) {\n picker.openChooser(MainActivity.this);\n\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), REQUEST_IMAGE);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n ((MainActivity) getActivity()).startActivityForResult(\n Intent.createChooser(intent, \"Select Picture\"),\n MainActivity.GALLERY_CODE);\n\n }",
"private void chooseImageAndUpload() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), Common.PICK_IMAGE_REQUEST);\n\n }",
"private void pickImageFromGallery() {\n Intent intent = new Intent(Intent.ACTION_PICK);\n intent.setType(\"image/*\");\n startActivityForResult(intent, IMAGE_PICK_CODE);\n\n }",
"private void startFileSelection() {\n final Intent chooseFile = new Intent(Intent.ACTION_GET_CONTENT);\n chooseFile.setType(getString(R.string.file_type));\n startActivityForResult(chooseFile, PICK_FILE_RESULT_CODE);\n }",
"void imageChooser() {\n\n\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }",
"private void pickFromGallery() {\n\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.setType(\"*/*\");\n\n intent.setType(\"image/*\");\n\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\n String[] mimeTypes = {\"image/jpeg\", \"image/png\",\"image/jpg\"};\n intent.putExtra(Intent.EXTRA_MIME_TYPES,mimeTypes);\n // Launching the Intent\n startActivityForResult(intent,GALLERY_REQUEST_CODE);\n }",
"@Override\n public void onClick(View v) {\n Intent camIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n camIntent.setType(\"image/*\");\n startActivityForResult(camIntent,CAMERA_REQUEST);\n }",
"@Override\n public void onClick(View view) {\n Bundle extras = new Bundle();\n extras.putInt(\"PICK_FROM_FILE\", mPICK_FROM_FILE);\n extras.putParcelable(\"ImageCaptureUri\", mImageCaptureUri);\n\n Intent i = new Intent(DisplayImageActivity.this, EffectsActivity.class);\n i.putExtras(extras);\n startActivity(i);\n }",
"private void selectImage() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(\n Intent.createChooser(\n intent,\n \"Select Image from here...\"),\n PICK_IMAGE_REQUEST);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n int les=AppStart.GetInstance().pickstr.length;\n String[] cop=new String[les];\n\n cop=AppStart.GetInstance().pickstr;\n\n Intent myIntent = new Intent();\n myIntent = new Intent(picking.this, pickingquery.class);\n startActivity(myIntent);\n picking.this.finish();\n\n }",
"public void onLaunchSelect() {\n Intent intent = new Intent(Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n\n // If you call startActivityForResult() using an intent that no app can handle, your app will crash.\n // So as long as the result is not null, it's safe to use the intent.\n if (intent.resolveActivity(getPackageManager()) != null) {\n // Bring up gallery to select a photo\n startActivityForResult(intent, SELECT_IMAGE_REQUEST_CODE);\n }\n }",
"public void onClick(View v) {\n intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(intent, SELECTED_IMAGE);\n }",
"@Override\n public void onClick(View view) {\n Intent gallery_intent=new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(gallery_intent,RESULT_LOAD_IMAGE);//Paasing intentobject and an integer value\n\n }",
"@Override\n public void onClick(View v) {\n\n ((CreateDocketActivityPart2) activity).openGalleryForPickingImage(position);\n }",
"void imageChooser() {\n\n // create an instance of the\n // intent of the type image\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n // pass the constant to compare it\n // with the returned requestCode\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), IMG_RESULT);\n\n }",
"public void onImageClick(View view) {\n Intent photo_picker = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n photo_picker.setType(\"image/jpeg\");\n startActivityForResult(photo_picker,PHOTO_PICK);\n }",
"private void selectImage(){\n final CharSequence[] options = { \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(activity);\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (options[item].equals(\"Choose from Gallery\"))\n {\n Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivityForResult(intent, 2);\n }\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t dia.dismiss();\n\t\t\t\tIntent intent = new Intent( Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\t\t\t\t startActivityForResult(intent, 1);\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(\n\t\t\t\t\t\tIntent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n\t\t\t\tif(isAdded())\n\t\t\t\t\tstartActivityForResult(i, RESULT_LOAD_POST_IMAGE);\n\t\t\t\telse{\n\t\t\t\t\tstatusAlert.dismiss();\n\t\t\t\t\tToast.makeText(getActivity(), \"Something went wrong.Try sharing your updates again.\", 1000).show();\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View view) {\n Intent implicitIntent = new Intent(Intent.ACTION_GET_CONTENT);\n\n // Define the file type\n implicitIntent.setType(\"image/*\");\n\n // start this intent\n startActivityForResult(implicitIntent,REQUEST_CODE);\n }",
"@Override\n public void onDialogNegativeClick(DialogFragment dialog) {\n Intent i = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n final int ACTIVITY_SELECT_IMAGE = 1234;\n startActivityForResult(i, ACTIVITY_SELECT_IMAGE);\n }",
"private void choseImage() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(intent, GALLERY_REQ_CODE);\n } else {\n Toast.makeText(this, R.string.no_image_picker, Toast.LENGTH_SHORT).show();\n }\n }",
"private void selectOptionOfPicture() {\n final CharSequence[] options = { \"Take Photo\", \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(view.getContext());\n builder.setTitle(\"Add Photo!\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (options[item].equals(\"Take Photo\"))\n {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, 1);\n }\n else if (options[item].equals(\"Choose from Gallery\"))\n {\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(intent, 2);\n }\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }",
"public Intent select() {\n final Activity activity = (Activity)getContext();\n try {\n\n final List<Intent> cameraIntents = new ArrayList<>();\n final Intent captureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n final PackageManager packageManager = activity.getPackageManager();\n final List<ResolveInfo> listCam = packageManager.queryIntentActivities(captureIntent, 0);\n for (ResolveInfo res : listCam) {\n final String packageName = res.activityInfo.packageName;\n final Intent intent = new Intent(captureIntent);\n intent.setPackage(packageName);\n cameraIntents.add(intent);\n }\n Intent galleryIntent;\n\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {\n galleryIntent = new Intent();\n galleryIntent.setAction(Intent.ACTION_GET_CONTENT);\n } else {\n galleryIntent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n galleryIntent.addCategory(Intent.CATEGORY_OPENABLE);\n }\n galleryIntent.setType(\"image/*\");\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {\n galleryIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n }\n\n final Intent chooserIntent = Intent.createChooser(galleryIntent, \"Select Source\");\n chooserIntent.putExtra(\n Intent.EXTRA_INITIAL_INTENTS,\n cameraIntents.toArray(new Parcelable[]{}));\n\n return chooserIntent;\n } catch (Exception e) {\n Toast.makeText(\n getContext(),\n getResources().getString(R.string.unknown_error),\n Toast.LENGTH_SHORT\n ).show();\n Log.e(getResources().getString(R.string.app_name), \"exception\", e);\n }\n return null;\n }",
"public void alarmToneButton_click(View view) {\n Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(intent, 10);\n }",
"@Override\n public void startDeviceImageIntent() {\n Intent galleryIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(galleryIntent, PICK_FROM_GALLERY_REQUEST_CODE);\n }",
"public void mostrarGaleria(View view) {\n Intent i=new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i,GALERIA);\n }",
"@Override\r\n\t\t\tpublic boolean onLongClick(View v) {\n\t\t\t\tIntent galleryIntent = new Intent(Intent.ACTION_PICK);\r\n\t\t\t\tgalleryIntent.setType(\"image/*\");\r\n\t\t\t\tstartActivityForResult(Intent.createChooser(galleryIntent, \"Choose your Avatar\"), TAKE_AVATAR_GALLERY_REQUEST);\r\n\t\t\t\treturn true;\r\n\t\t\t}",
"private void imagePic(){\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"),1);\n\n }",
"public void onClick(View v) {\n Intent i = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i, RESULT_LOAD_IMAGE);\n }",
"private void pickFile() {\n\n String[] mimeTypes = {\"application/pdf\"};\n\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE,false);\n intent.setType(\"*/*\");\n intent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);\n startActivityForResult(intent, 2);\n\n\n }",
"@Override\n public boolean onPreferenceClick(Preference preference) {\n Intent contactPickerIntent = new Intent(Intent.ACTION_PICK,\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI);\n startActivityForResult(contactPickerIntent,\n CONTACT_PICKER_RESULT);\n return true;\n }",
"private void openFileChooser() {\n Intent imageIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n imageIntent.setType(\"image/*\");\n startActivityForResult(imageIntent, GALLERY_REQUEST);\n }",
"public void opengallery() {\n Intent gallery = new Intent();\n gallery.setType(\"image/*\");\n gallery.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(getIntent().createChooser(gallery, \"Choose image\"), PICK_IMAGE);\n\n }",
"private void openFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, PICK_IMAGE_REQUEST);\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n if (options[which].equals(\"Take Photo\")) {\n\n checkAndroidVersion();\n\n\n } else if (options[which].equals(\"Choose from Gallery\")) {\n Intent intent1 = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent1.addCategory(Intent.CATEGORY_OPENABLE);\n intent1.setType(\"image/*\");\n startActivityForResult(intent1, REQUEST_OPEN_RESULT_CODE);\n\n }\n// else if(options[which].equals(\"Cancel\"))\n// {\n// dialog.dismiss();\n// }\n\n }",
"public static void use_photo(Activity activity, int requestCode) {\r\n Intent intent = new Intent(Intent.ACTION_PICK);\r\n intent.setType(\"image/*\");\r\n activity.startActivityForResult(intent, requestCode);\r\n }",
"private void OpenGallery() {\n Intent pickImage = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(pickImage, RequestCode);\n }",
"@Override\n public void onTeamButtonClick() {\n Toast.makeText(this, \"onTeamButtonClick\",Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(Intent.ACTION_PICK);\n intent.setType(ContactsContract.Contacts.CONTENT_TYPE);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(intent, REQUEST_SELECT_CONTACT);\n }\n }",
"public static Intent createGetContentIntent() {\n // Implicitly allow the user to select a particular kind of data\n final Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n // The MIME data type filter\n intent.setType(\"*/*\");\n // Only return URIs that can be opened with ContentResolver\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n return intent;\n }",
"public void selectImage(View view){\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(intent,PICK_IMAGE);\n }",
"@Override\n public void onIntentPicked(IntentPickerSheetView.ActivityInfo activityInfo) {\n bottomSheet.dismissSheet();\n startActivity(activityInfo.getConcreteIntent(sendIntent));\n }",
"public void onClick(View arg0) {\n Intent intent = new Intent();\r\n intent.setType(\"image/*\");\r\n intent.setAction(Intent.ACTION_GET_CONTENT);\r\n startActivityForResult(Intent.createChooser(intent,\r\n \"Select Picture\"), SELECT_PICTURE);\r\n }",
"private void getImage() {\n\n Intent intent = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n //intent.setType(\"text/xls\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n\n try {\n startActivityForResult(\n Intent.createChooser(intent, \"Complete action using\"),\n MY_INTENT_CLICK);\n }catch (Exception e) {\n e.getMessage();\n }\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n //here we are setting the type of intent which\n //we will pass to the another screen\n intent.setType(\"image/*\");//For specific type add image/jpeg\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, 50);\n }",
"public void onClick(DialogInterface dialog, int item) {\n if (item == 0) {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n /**\n * Also specify the Uri to save the image on specified path\n * and file name. Note that this Uri variable also used by\n * gallery app to hold the selected image path.\n */\n mImageCaptureUri = Uri.fromFile(new File(Environment\n .getExternalStorageDirectory(), \"tmp_avatar_\"\n + String.valueOf(System.currentTimeMillis())\n + \".jpg\"));\n intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT,\n mImageCaptureUri);\n try {\n intent.putExtra(\"return-data\", true);\n startActivityForResult(intent, PICK_FROM_CAMERA);\n\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n } else {\n // Pick from file\n /**\n * To select an image from existing files, use\n * Intent.createChooser to open image chooser. Android will\n * automatically display a list of supported applications,\n * such as image gallery or file manager.\n */\n\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.setType(\"image/*\");\n\n intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n\n startActivityForResult(Intent.createChooser(intent, \"Complete action using\"), PICK_FROM_FILE);\n }\n }",
"protected void startGallery() {\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent, GALLERY_REQUEST);\n\n }",
"public void selectContact() {\r\n Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);\r\n startActivityForResult(intent, PICK_CONTACT);\r\n }",
"@Override\n public void onClick(View v) {\n Intent intent_upload = new Intent();\n intent_upload.setType(\"audio/*\");\n intent_upload.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent_upload, 1);\n }",
"public static void m1353g(Activity activity, String str, int i) {\n Intent intent = new Intent(\"android.intent.action.GET_CONTENT\");\n intent.addCategory(\"android.intent.category.OPENABLE\");\n intent.setType(str);\n try {\n activity.startActivityForResult(intent, i);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onClick(View v) {\n PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder();\n try {\n startActivityForResult(builder.build(MainActivity.this), PLACE_PICKER_REQUEST);\n } catch (GooglePlayServicesRepairableException e) {\n e.printStackTrace();\n } catch (GooglePlayServicesNotAvailableException e) {\n e.printStackTrace();\n }\n }",
"private void abrirGaleria() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n //startActivityForResult recibe dos parametros, el intent que se inicializo anteriormente\n //y tambien un numero request que puede ser un numero entero que dice que va a ejecutar el usuario\n startActivityForResult(intent,CODIGO_GALERIA);\n }",
"public void toGallery() {\n Log.d(TAG, \"toGallery: \");\n Intent pictureFromGalleryIntent = new Intent(Intent.ACTION_PICK);\n pictureFromGalleryIntent.setType(\"image/*\");\n startActivityForResult(pictureFromGalleryIntent, GALLERY_REQ);\n }"
] | [
"0.7314487",
"0.70670736",
"0.7006692",
"0.6967734",
"0.6950194",
"0.69205636",
"0.6918683",
"0.6837913",
"0.67006534",
"0.6678972",
"0.6676302",
"0.666551",
"0.66557384",
"0.66394055",
"0.66351724",
"0.66246754",
"0.6557759",
"0.65532225",
"0.65226656",
"0.65038776",
"0.6503257",
"0.64917225",
"0.64759076",
"0.64665294",
"0.6448769",
"0.64415944",
"0.6438437",
"0.64350265",
"0.64263946",
"0.6410071",
"0.6391425",
"0.6383828",
"0.6382745",
"0.6379578",
"0.637654",
"0.63565344",
"0.63192576",
"0.6316399",
"0.63085335",
"0.6296103",
"0.6296103",
"0.62887686",
"0.6271032",
"0.62554973",
"0.6244481",
"0.6220028",
"0.62189484",
"0.6197023",
"0.6174364",
"0.6165847",
"0.61455196",
"0.6116387",
"0.61056703",
"0.6089026",
"0.60811627",
"0.6071266",
"0.6061215",
"0.60521615",
"0.604856",
"0.6038146",
"0.6033753",
"0.60323733",
"0.60173005",
"0.6009422",
"0.60035354",
"0.5990966",
"0.59770405",
"0.5964521",
"0.5957731",
"0.5926128",
"0.59256864",
"0.58995134",
"0.58893186",
"0.58547455",
"0.58529973",
"0.5847559",
"0.5832825",
"0.5814881",
"0.5813497",
"0.58111537",
"0.57983106",
"0.5794066",
"0.57911074",
"0.5778479",
"0.57739776",
"0.5760177",
"0.57564574",
"0.5756081",
"0.5754157",
"0.57331043",
"0.5728562",
"0.5720415",
"0.57177085",
"0.5713914",
"0.5712033",
"0.5701529",
"0.5683111",
"0.5659525",
"0.56576663"
] | 0.66113484 | 17 |
Result code is RESULT_OK only if the user selects an Image | public void onActivityResult(int requestCode,int resultCode,Intent data){
if (resultCode == Activity.RESULT_OK)
switch (requestCode){
case GALLERY_REQUEST_CODE:
if (Uri.parse(getRealPathFromURI(data.getData())) != null){
/* File file = new File(Objects.requireNonNull
(Uri.parse(getRealPathFromURI(data.getData())).getPath()));
*/
//se specifica locatia din telefon unde se afla fisierul img
cameraFilePath =getRealPathFromURI(data.getData());
/*uploadToServer(Objects.requireNonNull
(Uri.parse(getRealPathFromURI(data.getData())).getPath()));*/
photo.setImageURI(Uri.parse(getRealPathFromURI(data.getData())));
}
break;
case CAMERA_REQUEST_CODE:
photo.setImageURI(Uri.parse(cameraFilePath));
break;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n switch (requestCode) {\n case REQUEST_SELECT_IMAGE_1:\n if (resultCode == RESULT_OK) {\n // If image is selected successfully, set the image URI and bitmap.\n mImageUri1 = null;\n mBitmap1 = null;\n mImageUri1 = data.getData();\n mBitmap1 = ImageHelper.loadSizeLimitedBitmapFromUri(\n mImageUri1, getContentResolver());\n if (mBitmap1 != null) {\n // Show the image on screen.\n ImageView imageView = (ImageView) findViewById(R.id.image_0);\n imageView.setImageBitmap(mBitmap1);\n\n }\n // Clear the information panel.\n setInfo(\"\");\n\n // Enable button \"show baby\" as the image to detect is not selected.\n setShowButtonsEnabledStatus(true);\n }\n break;\n case REQUEST_SELECT_IMAGE_2:\n if (resultCode == RESULT_OK) {\n // If image is selected successfully, set the image URI and bitmap.\n mImageUri2 = null;\n mBitmap2 = null;\n mImageUri2 = data.getData();\n mBitmap2 = ImageHelper.loadSizeLimitedBitmapFromUri(\n mImageUri2, getContentResolver());\n if (mBitmap2 != null) {\n // Show the image on screen.\n ImageView imageView = (ImageView) findViewById(R.id.image_1);\n imageView.setImageBitmap(mBitmap2);\n\n }\n // Clear the information panel.\n setInfo(\"\");\n\n // Enable button \"show baby\" as the image to detect is not selected.\n setShowButtonsEnabledStatus(true);\n }\n break;\n default:\n break;\n }\n }",
"void imageChooser() {\n\n // create an instance of the\n // intent of the type image\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n // pass the constant to compare it\n // with the returned requestCode\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }",
"private void choseImage() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(intent, GALLERY_REQ_CODE);\n } else {\n Toast.makeText(this, R.string.no_image_picker, Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\r\n protected void onActivityResult( int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK) {\r\n if (requestCode == 1 && resultCode == RESULT_OK && data != null && data.getData() != null) {\r\n\r\n Uri selectedImageUri = data.getData();\r\n try {\r\n selectBitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), selectedImageUri);\r\n uploadImage();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }",
"private void selectImage() {\n final CharSequence[] items = {\"Take Photo\", \"Choose from Library\",\n \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(Timetable.this);\n builder.setTitle(\"Add Photo!\");\n builder.setItems(items, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (items[item].equals(\"Take Photo\")) {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, REQUEST_CAMERA);\n } else if (items[item].equals(\"Choose from Library\")) {\n Intent intent = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(\n Intent.createChooser(intent, \"Select File\"),\n SELECT_FILE);\n } else if (items[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), IMG_RESULT);\n\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == Activity.RESULT_OK) {\n if (requestCode == 1) {\n onSelectDocumentResult(data);\n } else if (requestCode == SELECT_GALLERY_PIC_FILE) {\n onSelectFromGalleryResult(data);\n } else if (requestCode == REQUEST_CAMERA_PIC_FILE) {\n onCaptureImageResult(data);\n }\n }\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n try {\n\n if (requestCode == RESULT_LOAD_ARTIST_IMAGE && resultCode == RESULT_OK && null != data) {\n\n selectedImage = data.getData();\n imageToUpload.setImageURI(selectedImage);\n bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), selectedImage);\n\n isPicture = true;\n } else {\n Toast.makeText(this, R.string.noImagePicked, Toast.LENGTH_LONG).show();\n }\n }catch (Exception e ){\n Log.e(\"error\", e.toString());\n Toast.makeText(this, R.string.stgWentWrong, Toast.LENGTH_LONG).show();\n }\n\n }",
"private void selectImage() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(\n Intent.createChooser(\n intent,\n \"Select Image from here...\"),\n PICK_IMAGE_REQUEST);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch (requestCode){\n case CHOOSE_IMAGE_FROM_GALLERY:\n if(requestCode == RESULT_OK){\n if (data != null && data.getData() != null){\n // Here we make the code for what we want to do with the image\n }\n }\n }\n }",
"private void selectImage() {\n final CharSequence[] options = { \"Take Photo\", \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(EventsActivity.this);\n\n builder.setTitle(\"Search Events By Photo\");\n\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if(options[item].equals(\"Take Photo\")){\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if (intent.resolveActivity(getPackageManager()) != null) {\n File photoFile = null;\n try {\n photoFile = createImageFile();\n } catch (IOException ex) {\n\n }\n if (photoFile != null) {\n Uri photoURI = FileProvider.getUriForFile(context,\n \"com.example.android.fileprovider\",\n photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n startActivityForResult(intent, 1);\n }\n }\n }\n else if(options[item].equals(\"Choose from Gallery\")) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select File\"),2);\n }\n else if(options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }",
"private void select_image() {\n\n final CharSequence[] items = {\"Camera\", \"Gallery\", \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(step4.this);\n builder.setTitle(\"Add Image\");\n builder.setItems(items, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface DialogInterface, int i) {\n if (items[i].equals(\"Camera\")) {\n\n Intent camera = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n if (ActivityCompat.checkSelfPermission(step4.this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(getApplicationContext(), \"Please grant permission to access Camera\", Toast.LENGTH_LONG).show();\n ActivityCompat.requestPermissions(step4.this, new String[]{Manifest.permission.CAMERA}, 1);\n startActivityForResult(camera,REQUEST_CAMERA);\n\n } else {\n startActivityForResult(camera,REQUEST_CAMERA);\n\n }\n\n\n\n } else if (items[i].equals(\"Gallery\")) {\n\n Intent gallery = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n gallery.setType(\"image/*\");\n startActivityForResult(gallery, select_file);\n\n\n } else if (items[i].equals(\"Cancel\")) {\n\n DialogInterface.dismiss();\n\n\n }\n }\n\n\n });\n builder.show();\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n //here we are applying the condition\n if(requestCode==50 && resultCode==RESULT_OK){\n //here it will Get the url from data\n Uri selectedImageUri = data.getData();\n if (null != selectedImageUri) {\n //displays image\n imageView.setImageURI(selectedImageUri);\n }\n }\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_CODE_PICKER && resultCode == RESULT_OK && data != null) {\n images = data.getParcelableArrayListExtra(ImagePickerActivity.INTENT_EXTRA_SELECTED_IMAGES);\n if (images.size() > 0){\n imgButtonAddCustomerImage.setImageBitmap(BitmapFactory.decodeFile(images.get(0).getPath()));\n }\n }\n }",
"@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n //jika image picker membawa sebuah data berupa foto maka\r\n if (ImagePicker.shouldHandle(requestCode, resultCode, data)) {\r\n //ambil data foto yang dipilih\r\n Image image = ImagePicker.getFirstImageOrNull(data);\r\n //ambil path/lokasi dari foto/gambar yang dipilih\r\n File imgFile = new File(image.getPath());\r\n if (imgFile.exists()) {\r\n //convert path ke bitmap dan tampilkan pada imageview\r\n Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());\r\n imgTranscript.setImageBitmap(myBitmap);\r\n\r\n //set variabel change true karena gambar telah diupdate\r\n isPicChange = true;\r\n }\r\n }\r\n\r\n super.onActivityResult(requestCode, resultCode, data);\r\n }",
"private void chooseImageAndUpload() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), Common.PICK_IMAGE_REQUEST);\n\n }",
"private void selectImage(){\n final CharSequence[] options = { \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(activity);\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (options[item].equals(\"Choose from Gallery\"))\n {\n Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivityForResult(intent, 2);\n }\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n // Pick photo\n if (requestCode == PICK_PHOTO_GALLERY && resultCode == Activity.RESULT_OK) {\n if (data == null) {\n Toast.makeText(this, R.string.error_selecting_photo, Toast.LENGTH_SHORT).show();\n return;\n }\n\n try {\n InputStream inputStream = getContentResolver().openInputStream(data.getData());\n mViewModel.studentPicBitmap = BitmapFactory.decodeStream(inputStream);\n mAddPhotoView.setImageBitmap(mViewModel.studentPicBitmap);\n studentHasPhoto = true;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n // Take new photo\n } else if (requestCode == CAPTURE_PHOTO && resultCode == Activity.RESULT_OK) {\n mViewModel.studentPicBitmap = BitmapFactory.decodeFile(mTempPhotoPath);\n mAddPhotoView.setImageBitmap(mViewModel.studentPicBitmap);\n studentHasPhoto = true;\n }\n checkIfThereIsStudentPhoto();\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch (requestCode) {\n case SELECT_PHOTO:\n if (resultCode == RESULT_OK) {\n // imABoolean=true;\n try {\n filePath = data.getData();\n bitmap = MediaStore.Images.Media.getBitmap(getActivity().getContentResolver(), filePath);\n\n logo.setImageBitmap(bitmap);\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n }\n }\n\n\n }",
"@Override\n protected void onActivityResult(int id, int result, Intent data) {\n if(result == RESULT_OK)\n {\n //check if its the choose image activity\n if(id == CHOOSE_IMAGE_ID)\n {\n Uri imageAddress = data.getData();\n //used to read image data\n InputStream inStream;\n\n try\n {\n inStream = getContentResolver().openInputStream(imageAddress);\n\n teamLogo = BitmapFactory.decodeStream(inStream);\n imageButton.setImageBitmap(teamLogo);\n }\n catch (FileNotFoundException e)\n {\n e.printStackTrace();\n }\n }\n }\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n // image k selection k liey requesting code jo hai upar vo 1234 hai ye dena hota hai\n startActivityForResult(Intent.createChooser(intent, \"Select Image\"), REQUEST_CODE);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n // choose a image\n if (requestCode == RequestCode.CHOOSE_IMAGE) {\n if (resultCode == RESULT_OK) {\n if (data != null) {\n Uri dataUri = data.getData();\n if (dataUri != null) {\n // get a random name\n File imgFile = SpaceUtils.newUsableFile();\n mSelectPath = imgFile.getPath();\n Log.v(\"path\",mSelectPath);\n // the image intent just return a simple image\n // the Ucrop(裁剪) is solved after the image intent\n UCrop.Options options = new UCrop.Options();\n options.setCompressionQuality(100);\n UCrop.of(dataUri, Uri.fromFile(imgFile))\n .withOptions(options)\n .withMaxResultSize(mImageSize.x, mImageSize.y)\n .withAspectRatio(3, 4)\n .start(this, RequestCode.CROP_IMAGE);\n }\n }\n }\n } else if (requestCode == RequestCode.CROP_IMAGE) {\n // crop a image\n if (resultCode == RESULT_OK) {\n if (data != null) {\n Glide.with(this).load(mSelectPath).into(mImageViews.get(mCurrentIndex));\n startDetectFaceInfo();\n }\n }\n }\n super.onActivityResult(requestCode, resultCode, data);\n }",
"@Override\n public void onClick(View v) {\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent, SELECT_PHOTO);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), REQUEST_IMAGE);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n // Check if the gallery was called and if an image was selected properly\n if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && data != null) {\n // Get address of selected image and display it in the imageView\n selectedImageUri = data.getData();\n imageToUpload.setImageURI(selectedImageUri);\n }\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), SELECT_PICTURE);\n }",
"protected void mCertificateImageSelection() {\n final CharSequence[] options = {\"Camera\", \"Gallery\", \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper\n (ApplicationActivity.this, R.style.AlertDialogCustom));\n\n builder.setIcon(R.mipmap.birth_icon);\n builder.setTitle(\"Birth Certificate\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n\n //Camera Option\n if (options[item].equals(\"Camera\")) {\n Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, CAMERA_REQUEST_1);\n }\n\n //Gallery Option\n else if (options[item].equals(\"Gallery\")) {\n Intent intent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(intent, GALLERY_REQUEST_1);\n }\n\n //Cancel Option\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n\n builder.show();\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == TAKE_IMAGE && resultCode == RESULT_OK) {\n Bundle extra = data.getExtras();\n bitmap = (Bitmap) extra.get(\"data\");\n saveImage(bitmap);\n imageView.setImageBitmap(bitmap);\n } else if (requestCode == SELECT_IMAGE && resultCode == RESULT_OK) {\n Uri targetUri = data.getData();\n Toast.makeText(getApplicationContext(), targetUri.toString(), Toast.LENGTH_LONG).show();\n Bitmap bitmap;\n try {\n\n bitmap = BitmapFactory.decodeStream(getContentResolver().openInputStream(targetUri));\n\n imageView.setImageBitmap(bitmap);\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {\n FilePathUri = data.getData();\n try {\n bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), FilePathUri);\n cowImage.setImageBitmap(bitmap);\n galleryChoose.setText(\"Image Selected\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }else if (requestCode == 123) {\n File imgFile = new File(pictureImagePath);\n if(imgFile.exists()){\n FilePathUri = Uri.parse(pictureImagePath);\n FilePathUri = photoURI;\n Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());\n //ImageView myImage = (ImageView) findViewById(R.id.imageviewTest);\n cowImage.setImageBitmap(myBitmap);\n\n }\n }\n else{\n System.out.println(\"error\" );\n }\n }",
"@Override\n public void onClick(View v) {\n\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent, TAKE_PICTURE);\n dialog.dismiss();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n if (options[which].equals(\"Take Photo\")) {\n\n checkAndroidVersion();\n\n\n } else if (options[which].equals(\"Choose from Gallery\")) {\n Intent intent1 = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent1.addCategory(Intent.CATEGORY_OPENABLE);\n intent1.setType(\"image/*\");\n startActivityForResult(intent1, REQUEST_OPEN_RESULT_CODE);\n\n }\n// else if(options[which].equals(\"Cancel\"))\n// {\n// dialog.dismiss();\n// }\n\n }",
"public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE) {\n\n overridePendingTransition(R.anim.no_change, R.anim.slide_down_2);\n if (resultCode == LOOK_POSTED_CODE) {\n Log.v(\"action\", \"Look was uploaded\");\n shouldTriggerPhotoNotif = true;\n } else {\n Log.v(\"action\", \"Look was not uploaded\");\n }\n }\n }",
"public void onClick(View arg0) {\n Intent intent = new Intent();\r\n intent.setType(\"image/*\");\r\n intent.setAction(Intent.ACTION_GET_CONTENT);\r\n startActivityForResult(Intent.createChooser(intent,\r\n \"Select Picture\"), SELECT_PICTURE);\r\n }",
"void imageChooser() {\n\n\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }",
"public static void use_photo(Activity activity, int requestCode) {\r\n Intent intent = new Intent(Intent.ACTION_PICK);\r\n intent.setType(\"image/*\");\r\n activity.startActivityForResult(intent, requestCode);\r\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {\n filePath = data.getData();\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), filePath);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n if (requestCode == 1) {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n String txt = getTextFromImage(bitmap);\n searchByPhoto(txt);\n }else if(requestCode == 2){\n Bitmap bm=null;\n if (data != null) {\n try {\n bm = MediaStore.Images.Media.getBitmap(getApplicationContext().getContentResolver(), data.getData());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n String txt = getTextFromImage(bm);\n searchByPhoto(txt);\n }\n }\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n snackbar.dismiss();\n if(requestCode == REQUEST_CODE_GALLERY && resultCode == RESULT_OK && data !=null){\n Uri uri = data.getData();\n try{\n InputStream inputStream = getContentResolver().openInputStream(uri);\n Bitmap bitmap = BitmapFactory.decodeStream(inputStream);\n profilePic.setImageBitmap(bitmap);\n imageSelected = \"Yes\";\n Toast.makeText(getApplicationContext(),\"Image Selected !!\",Toast.LENGTH_LONG).show();\n\n }catch (FileNotFoundException e){\n e.printStackTrace();\n }\n }\n\n //when use device camera\n\n if (requestCode == REQUEST_CODE_CAMERA && resultCode == Activity.RESULT_OK) {\n Bitmap photo = (Bitmap) data.getExtras().get(\"data\");\n profilePic.setImageBitmap(photo);\n imageSelected = \"Yes\";\n Toast.makeText(getApplicationContext(),\"Image Selected !!\",Toast.LENGTH_LONG).show();\n\n }\n\n /**if(requestCode == REQUEST_CODE_CAMERA && resultCode == RESULT_OK && data !=null){\n Uri uri = data.getData();\n try{\n /**BitmapFactory.Options options = new BitmapFactory.Options();\n options.inSampleSize = 8;\n Bitmap bitmap = BitmapFactory.decodeFile(FileUri.getPath());\n profilePic.setImageBitmap(bitmap);\n\n imageSelected = \"Yes\";\n Toast.makeText(getApplicationContext(),\"Image Selected !!\",Toast.LENGTH_LONG).show();**/\n /** InputStream inputStream = getContentResolver().openInputStream(uri);\n Bitmap bitmap = BitmapFactory.decodeStream(inputStream);\n profilePic.setImageBitmap(bitmap);\n imageSelected = \"Yes\";\n Toast.makeText(getApplicationContext(),\"Image Selected !!\",Toast.LENGTH_LONG).show();\n }catch (Exception e){\n e.printStackTrace();\n }\n }**/\n super.onActivityResult(requestCode, resultCode, data);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n if (requestCode == CommenString.TAKE_PHOTO) {\n cameraUtil.photoZoomFromTake(CropperImageScale.square);\n } else if (requestCode == CommenString.LOCAL_PHOTO) {\n List<String> selectedImage = data.getStringArrayListExtra(\"paths\");\n cameraUtil.photoZoomFromMapStorage(selectedImage.get(0),\n CropperImageScale.square);\n } else if (requestCode == CommenString.PHOTO_RESULT) {\n Bundle extras = data.getExtras();\n if (extras != null) {\n headBitmap = extras.getParcelable(\"data\");\n image_up.setImageBitmap(headBitmap);\n }\n } else {\n }\n }\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n\n startActivityForResult(Intent.createChooser(intent,\"Choose an app to select a image\"), 1);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == PICK_IMAGE && resultCode == RESULT_OK && data != null && data.getData() != null) {\n filePath = data.getData();\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), filePath);\n Image_brand.setImageBitmap(bitmap);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public void onActivityResult(int requestCode, int resultCode, Intent data) {\n imageView = (ImageView) findViewById(R.id.contactImg);\n\n if (resultCode == RESULT_OK) {\n if (requestCode == SELECT_PICTURE) {\n selectedImageUri = data.getData();\n\n if (null != selectedImageUri) {\n saveImage(selectedImageUri.toString());\n imageView.setImageURI(selectedImageUri);\n setSelectedImgURI(selectedImageUri);\n\n }\n\n }\n }\n }",
"private void selectOptionOfPicture() {\n final CharSequence[] options = { \"Take Photo\", \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(view.getContext());\n builder.setTitle(\"Add Photo!\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (options[item].equals(\"Take Photo\"))\n {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, 1);\n }\n else if (options[item].equals(\"Choose from Gallery\"))\n {\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(intent, 2);\n }\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }",
"public void selectImage(View view){\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(intent,PICK_IMAGE);\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(resultCode == RESULT_OK && requestCode ==200){\n Uri uri_img=data.getData();\n try{\n assert uri_img != null;\n InputStream input_img = updateView.getContext().getContentResolver().openInputStream(uri_img);\n DecodeImage_stream = BitmapFactory.decodeStream(input_img);\n chooseImage.setImageBitmap(DecodeImage_stream);\n }catch (FileNotFoundException f){\n Log.d(\"add new file not found:\",f.getMessage());\n }\n }\n }",
"@Override\n public void onClick(View view) {\n Intent intent=new Intent(Intent.ACTION_PICK);\n // Sets the type as image/*. This ensures only components of type image are selected\n intent.setType(\"image/*\");\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\n String[] mimeTypes = {\"image/jpeg\", \"image/png\"};\n intent.putExtra(Intent.EXTRA_MIME_TYPES,mimeTypes);\n // Launching the Intent\n startActivityForResult(intent,1);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {\n filePath = data.getData();\n try {\n bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), filePath);\n imageView.setImageBitmap(bitmap);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent returnedIntent) {\r\n super.onActivityResult(requestCode, resultCode, returnedIntent);\r\n try {\r\n // When an Image is picked\r\n if (resultCode == RESULT_OK && null != returnedIntent) {\r\n // Get the Image from data\r\n Uri imageLocation = returnedIntent.getData();\r\n InputStream imageStream = getContentResolver().openInputStream(imageLocation);\r\n Bitmap selectedImage = BitmapFactory.decodeStream(imageStream);\r\n selectedImage = getResizedBitmap(selectedImage,1080/4,1920/4);\r\n currentUserEdit.setImageBitmap(selectedImage);\r\n currentSaveCharacter.setImage(selectedImage);\r\n saveCharacters(context);\r\n }\r\n } catch (Exception e) {\r\n Toast.makeText(this, \"ImageGet ERROR\", Toast.LENGTH_LONG)\r\n .show();\r\n Log.d(\"ImageGet ERROR\", e.toString());\r\n }\r\n\r\n }",
"protected void mProfileImageSelection() {\n\n final CharSequence[] options = {\"Camera\", \"Gallery\", \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper\n (ApplicationActivity.this, R.style.AlertDialogCustom));\n\n builder.setIcon(R.mipmap.profile_icon);\n builder.setTitle(\"Profile Picture\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n\n //Camera Option\n if (options[item].equals(\"Camera\")) {\n Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, CAMERA_REQUEST);\n }\n\n //Gallery Option\n else if (options[item].equals(\"Gallery\")) {\n Intent intent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(intent, GALLERY_REQUEST);\n }\n\n //Cancel Option\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n\n builder.show();\n }",
"public void escolherImagem(int requestCode) {\n\n Intent i = new Intent(Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i, requestCode);\n\n }",
"@Override\n public void onClick(View view) {\n Intent gallery_intent=new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(gallery_intent,RESULT_LOAD_IMAGE);//Paasing intentobject and an integer value\n\n }",
"public void onActivityResult(int requestCode, int resultCode, Intent data){\n if (resultCode == Activity.RESULT_OK){\n if (requestCode == SELECT_FILE){\n selectedImageUri = data.getData();\n String[] projection = {MediaStore.MediaColumns.DATA};\n CursorLoader cursorLoader = new CursorLoader(mActivity, selectedImageUri, projection, null, null,\n null);\n Cursor cursor = cursorLoader.loadInBackground();\n int column_index = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA);\n cursor.moveToFirst();\n String selectedImagePath = cursor.getString(column_index);\n Bitmap bm;\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n// BitmapFactory.decodeFile(selectedImagePath, options);\n final int REQUIRED_SIZE = 200;\n int scale = 1;\n while (options.outWidth / scale / 2 >= REQUIRED_SIZE\n && options.outHeight / scale / 2 >= REQUIRED_SIZE)\n scale *= 2;\n options.inSampleSize = scale;\n options.inJustDecodeBounds = false;\n bm = BitmapFactory.decodeFile(selectedImagePath, options);\n emailIntent.setType(\"image/jpeg\");\n emailIntent.putExtra(Intent.EXTRA_STREAM,selectedImageUri);\n Log.i(\"EasyFeedback\", \"Image selected and intent is ready to use!\");\n models.setImage(bm);\n onImageSelectedListener.onImageSelected(bm);\n\n }\n }\n }",
"public void imageclick(View view)\n {\n //for logo image upload\n\n\n Intent i =new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(i,\"select an image\"),imagerequestcode);\n\n }",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i, SELECTED_PICTURE);\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), 1);\n\n }",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n startActivityForResult(i, RESULT_LOAD_IMAGE);\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n Intent pickIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n pickIntent.setType(\"image/*\");\n Intent chooserIntent = Intent.createChooser(intent, \"Select Image\");\n chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[] {pickIntent});\n startActivityForResult(chooserIntent,PICK_IMAGE_REQUEST);\n }",
"private void imagePic(){\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"),1);\n\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_CANCELED)\n return;\n\n super.onActivityResult(requestCode, resultCode, data);\n switch (requestCode) {\n case SELECT_LOCATION_REQUEST:\n String coordResult = (String) data.getExtras().get(\"selectedCoord\");\n geo_key.setText(coordResult);\n break;\n case PICK_IMAGE_REQUEST:\n Uri uri = data.getData();\n try {\n Bitmap imageBitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), uri);\n Log.v(\"StegoCrypto-Image\", String.valueOf(imageBitmap));\n\n selectedImageIV.setImageBitmap(ImageUtility.getResizedBitmap(imageBitmap, ImageUtility.MAX_IMAGE_SIZE));\n } catch (IOException e) {e.printStackTrace();}\n break;\n case CAMERA_REQUEST:\n if (cameraFileUri != null) {\n try {\n Bitmap cameraBitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), cameraFileUri);\n selectedImageIV.setImageBitmap(ImageUtility.getResizedBitmap(cameraBitmap, ImageUtility.MAX_IMAGE_SIZE));\n } catch (IOException e) {e.printStackTrace();}\n }\n break;\n case DRAW_REQUEST:\n Bitmap drawBitmap = data.getParcelableExtra(\"drawingBitmap\");\n selectedImageIV.setImageBitmap(ImageUtility.getResizedBitmap(drawBitmap, ImageUtility.MAX_IMAGE_SIZE));\n break;\n }\n }",
"public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (resultCode == RESULT_OK) {\n\n // compare the resultCode with the\n // SELECT_PICTURE constant\n if (requestCode == SELECT_PICTURE) {\n Uri selectedImageURI = data.getData();\n// File imageFile = new File(getRealPathFromURI(selectedImageURI));\n Uri selectedImageUri = data.getData( );\n String picturePath = getPath( getApplicationContext( ), selectedImageUri );\n Log.d(\"Picture Path\", picturePath);\n\n // Get the url of the image from data\n selectedImageUri = data.getData();\n if (null != selectedImageUri) {\n bitmap = null;\n // update the preview image in the layout\n try {\n bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), selectedImageUri);\n } catch (IOException e) {\n e.printStackTrace();\n }\n// IVPreviewImage.setImageURI(selectedImageUri);\n// runTextRecognition(bitmap);\n IVPreviewImage.setImageBitmap(bitmap);\n\n }\n }\n\n if (requestCode == 123) {\n\n\n Bitmap photo = (Bitmap) data.getExtras()\n .get(\"data\");\n\n // Set the image in imageview for display\n IVPreviewImage.setImageBitmap(photo);\n runTextRecognition(photo);\n\n }\n\n }\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent intent) {\n super.onActivityResult(requestCode, resultCode, intent);\n\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && intent != null && intent.getData() != null) {\n\n Uri fotoPerfilUri = intent.getData();\n\n circleFotoPerfil.setImageURI(fotoPerfilUri);\n circleFotoPerfil.setBackgroundColor(getResources().getColor(R.color.colorWhite));\n buttonPerfil.setBackgroundDrawable(getResources().getDrawable(R.drawable.ic_check_w));\n\n }\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n ((MainActivity) getActivity()).startActivityForResult(\n Intent.createChooser(intent, \"Select Picture\"),\n MainActivity.GALLERY_CODE);\n\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK) {\n\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n\n SharedPreferences.Editor editor = sharedPref.edit();\n\n editor.putString(\"Result choosen\", String.valueOf(requestCode));\n\n editor.commit();\n\n // Make sure the request was successful\n if (requestCode == TAKE_PICTURE ) {\n\n Log.d(\"scndactiv\", \"now in ONactivityresutl\");\n\n Intent secondactivityintent = new Intent(MainActivity.this, Secondactivity.class);\n secondactivityintent.putExtra(\"arg\",count);\n startActivity(secondactivityintent);\n\n }\n }\n\n if (resultCode == RESULT_OK) {\n if (requestCode == SELECT_PICTURE) {\n Uri selectedImageUri = data.getData();\n selectedImagePath = getPath(selectedImageUri);\n Intent secondactivityintent = new Intent(MainActivity.this, Secondactivity.class);\n secondactivityintent.putExtra(\"Openimagepicture\", selectedImagePath);\n startActivity(secondactivityintent);\n\n }\n }\n\n }",
"public void approveSelection(){\n\t\t\t\tFile file=getSelectedFile();\n\t\t\t\tSupportedImageFilesFilter filter=new SupportedImageFilesFilter();\n\t\t\t\tif (file.exists() && filter.accept(file)) \n\t\t\t\t\tsuper.approveSelection(); \n\t\t\t\telse \n\t\t\t\t\tJOptionPane.showMessageDialog(this, \"The selected file is not supported or does not exist!\", \"Error\", JOptionPane.ERROR_MESSAGE); \n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i , RESULT_LOAD_IMAGE);\n\n\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n\n if (requestCode == CAPTURE_IMAGE_REQUEST && resultCode == RESULT_OK) {\n Bitmap myBitmap = BitmapFactory.decodeFile(photoFile.getAbsolutePath());\n imgDisplay.setImageBitmap(myBitmap);\n textPath.setText(photoFile.getName());\n } else {\n displayMessage(getBaseContext(), \"Request cancelled or something went wrong.\");\n }\n\n }",
"public void call1()\n\t{\n\t\tIntent intent = new Intent();\n\t\tintent.setType(\"image/*\");\n\t\tintent.setAction(Intent.ACTION_GET_CONTENT);\n\t\tstartActivityForResult(Intent.createChooser(intent,\n\t\t\t\t\"Select Picture\"), SELECT_PICTURE);\n\n\n\t}",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t//打开图片\n\t\tif(resultCode == RESULT_OK && requestCode == IMAGE_OPEN) {\n\t\t\tUri uri = data.getData();\n\t\t\t//查询选择图片\n\t\t\tif(!TextUtils.isEmpty(uri.getAuthority())) {\n\t\t\t\tCursor cursor = getContentResolver().query(uri, new String[]{MediaStore.Images.Media.DATA}, null, null, null);\n\n\t\t\t\tif(null == cursor){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//光标移动至开头 获取图片路径;\n\t\t\t\tcursor.moveToFirst();\n\t\t\t\tpathImage = cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.DATA));\n\t\t\t}\n\n\t\t}//end if\n\t}",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent imageReturnedIntent) {\n\t\tsuper.onActivityResult(requestCode, resultCode, imageReturnedIntent);\n\t\tLog.d(SmartConstants.APP_NAME, \"SmartViewActivity->onActivityResult->this.cameraConfigInformation:\" + this.cameraConfigInformation + \",Result code:\" + resultCode);\n\t\tCameraConfigInformation cameraConfigInfo = this.cameraConfigInformation;\n\t\tswitch (requestCode) {\n\t\tcase SmartConstants.REQ_CODE_PICK_IMAGE:\n\t\t\tif (resultCode == RESULT_OK) {\n\t\t\t\ttry {\n\t\t\t\t\tUri selectedImage = imageReturnedIntent.getData();\n\t\t\t\t\tBitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), selectedImage);\n\t\t\t\t\tString imageProcessResult = ImageUtility.processImage(bitmap, cameraConfigInfo, this, selectedImage);\n\t\t\t\t\tverifyImageResponse(imageProcessResult);\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t// TODO handle this exception\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO handle this exception\n\t\t\t\t}\n\t\t\t} else if (resultCode == RESULT_CANCELED) {\n\t\t\t\tLog.d(SmartConstants.APP_NAME, \"SmartViewActivity->onActivityResult(REQ_CODE_PICK_IMAGE)->RESULT_CANCELED\");\n\t\t\t\tString imageNotSelectedResponse = AppUtility.prepareImageErrorResponse(ExceptionTypes.PROBLEM_CAPTURING_IMAGE_EXCEPTION, ExceptionTypes.PROBLEM_CAPTURING_IMAGE_EXCEPTION_MESSAGE);\n\t\t\t\tverifyImageResponse(imageNotSelectedResponse);\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase SmartConstants.REQ_CODE_LAUNCH_CAMERA_APP:\n\t\t\tif (resultCode == RESULT_OK) {\n\t\t\t\tUri selectedImage = null;\n\t\t\t\tFile cameraTempFile = getCameraTempFile();\n\t\t\t\tif (AppUtility.isExternalStorageAvailableForWrite() && cameraTempFile.exists()) {\n\t\t\t\t\tselectedImage = Uri.fromFile(cameraTempFile);\n\t\t\t\t}\n\t\t\t\tString tempImageFileAbsolutePath = cameraTempFile.getAbsolutePath();\n\t\t\t\ttempImageFileAbsolutePath = tempImageFileAbsolutePath.replaceAll(\"\\\\n\", \"\");\n\t\t\t\tLog.d(SmartConstants.APP_NAME, \"SmartViewActivity->onActivityResult->IMAGE ABSOLUTE PATH:\" + tempImageFileAbsolutePath);\n\n\t\t\t\t// Called for checking the natural orientation of the device\n\t\t\t\t// camera\n\t\t\t\tMatrix matrix = AppUtility.getImageMatrixForDeviceExif(tempImageFileAbsolutePath);\n\n\t\t\t\t// Since by default the captured image is saved at a default\n\t\t\t\t// location, first we need to copy that image to the application\n\t\t\t\t// folder in SD CARD or internal memory\n\n\t\t\t\t// Now we need to process the image in the application folder\n\t\t\t\t// that\n\t\t\t\t// we just copied\n\t\t\t\t// TODO add the logic for extracting the Bitmap from the saved\n\t\t\t\t// image\n\t\t\t\tBitmap capturedImageBitmap = AppUtility.getBitmapFromUri(selectedImage, this);\n\t\t\t\t// Matrix matrix = new Matrix();\n\t\t\t\t// matrix.postRotate(+90);\n\t\t\t\tcapturedImageBitmap = Bitmap.createBitmap(capturedImageBitmap, 0, 0, capturedImageBitmap.getWidth(), capturedImageBitmap.getHeight(), matrix, true);\n\t\t\t\tString imageProcessResult = ImageUtility.processImage(capturedImageBitmap, cameraConfigInfo, null, selectedImage);\n\n\t\t\t\t// after the image has been processed, it is required to delete\n\t\t\t\t// the\n\t\t\t\t// image saved by the native camera app that saved the image at\n\t\t\t\t// the\n\t\t\t\t// default location\n\t\t\t\tAppUtility.deleteFile(tempImageFileAbsolutePath);\n\n\t\t\t\tverifyImageResponse(imageProcessResult);\n\t\t\t} else if (resultCode == RESULT_CANCELED) {\n\t\t\t\tLog.d(SmartConstants.APP_NAME, \"SmartViewActivity->onActivityResult(REQ_CODE_LAUNCH_CAMERA_APP)->RESULT_CANCELED\");\n\t\t\t\tString imageNotSelectedResponse = AppUtility.prepareImageErrorResponse(ExceptionTypes.PROBLEM_CAPTURING_IMAGE_EXCEPTION, ExceptionTypes.PROBLEM_CAPTURING_IMAGE_EXCEPTION_MESSAGE);\n\t\t\t\tverifyImageResponse(imageNotSelectedResponse);\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, getString(R.string.photo_selector)), RESULT_PHOTO_OK);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, getString(R.string.photo_selector)), RESULT_PHOTO_OK);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n try {\n\n if (requestCode == IMG_RESULT && resultCode == RESULT_OK\n && null != data) {\n\n\n imageeUri = data.getData();\n\n mInsertImage.setImageURI(imageeUri);\n }\n }\n catch (Exception e) {\n Toast.makeText(this, \"Please try again\", Toast.LENGTH_LONG)\n .show();\n }\n }",
"public void onActivityResult(int requestCode, int resultCode, Intent data){\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t\n\t\tif (resultCode == RESULT_OK) {\n\t\t\t\n\t\t\t//DEFINIMOS DONDE APARECERÁ LA FOTO SELECCIONADA O TOMADA\n\t\t\tLinearLayout rl = (LinearLayout) findViewById(R.id.lylImage);\n\t\t\trl.removeAllViewsInLayout();\n\t\t\t\n\t\t\tfinal ImageView ViewPic = new ImageView(this);\n\t\t\tViewPic.setImageResource(0);\n\t\t\tViewPic.setLayoutParams(new LayoutParams(\n\t\t\t\t\tLayoutParams.MATCH_PARENT,\n\t\t\t\t\tLayoutParams.WRAP_CONTENT));\n\t\t\trl.addView(ViewPic);\n\t\t\t\n\t\t\tif (requestCode == CAMERA_REQUEST){\n\t\t\t\t\n\t\t\t\tselectedImagePath = getPath(mCapturedImageURI);\n\t\t\t\t\n\t\t\t}else if (requestCode == SELECT_PICTURE){\n\t\t\t\t\n\t\t\t\tUri selectedImageUri = data.getData();\n\t\t\t\tselectedImagePath = getPath(selectedImageUri);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tViewPic.setImageBitmap(Loadimage(selectedImagePath.toString(), ViewPic));\n\t\t\t\n\t\t}\n\t\t\n\t\n\t}",
"private void selectImageFromGallery() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, getString(R.string.select_picture)),\n REQUEST_IMAGE_OPEN);\n }",
"private void showImagePickDialog() {\n String[] options = {\"Camera\", \"Gallery\"};\n //dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Pick Image\")\n .setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (which == 0) {\n //Camera Clicked\n if (checkCameraPermission()) {\n // cameraPermission allowed\n pickFromCamera();\n } else {\n // cameraPermission not allowed, request\n requestCameraPermission();\n }\n } else {\n //Gallery Clicked\n if (checkStoragePermission()) {\n // Storage Permission allowed\n pickFromGallery();\n } else {\n // Storage Permission not allowed, request\n requestStoragePermission();\n\n }\n\n }\n }\n }).show();\n }",
"public void onImageClick(View view) {\n Intent photo_picker = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n photo_picker.setType(\"image/jpeg\");\n startActivityForResult(photo_picker,PHOTO_PICK);\n }",
"public void showImageChooser() {\n Intent intent2 = new Intent();\n intent2.setType(\"image/*\");\n intent2.setAction(\"android.intent.action.GET_CONTENT\");\n startActivityForResult(Intent.createChooser(intent2, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif(requestCode == REQUEST_CODE_POST_CLICK_IMAGE && resultCode == getActivity().RESULT_OK){\n\t\t\tToast.makeText(getActivity(), \"Picture sucessfully added.\", 2000).show();\n\t\t\tcompressCamBitmap(cameraImagePath);\n\t\t}\n\t\telse if(requestCode == REQUEST_CODE_COVER_CLICK_IMAGE && resultCode == getActivity().RESULT_OK){\n\t\t\tToast.makeText(getActivity(), \"Picture sucessfully added.\", 2000).show();\n\t\t\tsetCoverPhotoImage(cameraImagePath);\n\t\t}\n\t\tif (requestCode == RESULT_LOAD_COVER_IMAGE && resultCode == getActivity().RESULT_OK && null != data) {\n\t\t\tToast.makeText(getActivity(), \"Picture sucessfully added.\", 2000).show();\n\t\t\tsetCoverPhotoImage(AppUtil.getGalleryPath(data,getActivity()));\n\t\t}\n\t\telse if(requestCode == RESULT_LOAD_POST_IMAGE && resultCode == getActivity().RESULT_OK && null != data){\n\t\t\tToast.makeText(getActivity(), \"Picture sucessfully added.\", 2000).show();\n\t\t\tcompressCamBitmap(AppUtil.getGalleryPath(data,getActivity()));\n\t\t\tpostImageStatus.setText(\"Added\");\n\t\t}\n\t}",
"@Override\n public void imageFromGallery() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select picture\"), PICK_IMAGE);\n }",
"@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (resultCode == Activity.RESULT_OK) {\n\t\t\tif (requestCode == SELECT_PICTURE) {\n\t\t\t\tUri selectedImageUri = data.getData();\n\n\t\t\t\t//OI FILE Manager\n\t\t\t\tfilemanagerstring = selectedImageUri.getPath();\n\n\t\t\t\t//MEDIA GALLERY\n\t\t\t\tselectedImagePath = getPath(selectedImageUri);\n\t\t\t\timg2.setImageURI(selectedImageUri);\n\n\n\t\t\t\t//img.setImageURI(selectedImageUri);\n\n\t\t\t\timagePath.getBytes();\n\n\t\t\t\timagePath=(imagePath.toString());\n\t\t\t\tSystem.out.println(\"MY PATH: \"+imagePath);\n\t\t\t\tBitmap bm = BitmapFactory.decodeFile(imagePath);\n\n\t\t\t}\n\n\t\t}\n\n\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent imageIntent = new Intent(\"android.media.action.IMAGE_CAPTURE\");\n\t\t\t\tstartActivityForResult(imageIntent, IMAGE_SELECTION);\n\n\t\t\t}",
"@Override\n\t protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t if(requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {\n\t \tprofile_photo.setVisibility(View.VISIBLE);\n\t \tUri selectedImage = data.getData();\n\t String[] filePathColumn = { MediaStore.Images.Media.DATA };\n\n\t Cursor cursor = getContentResolver().query(selectedImage,\n\t filePathColumn, null, null, null);\n\t cursor.moveToFirst();\n\n\t int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n\t String picturePath = cursor.getString(columnIndex);\n\t cursor.close();\n\t \n\t ImageView imageView = (ImageView) findViewById(R.id.profile_photo);\n\t imageView.setImageBitmap(BitmapFactory.decodeFile(picturePath));\n\t }\n\t }",
"@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n super.onActivityResult(requestCode, resultCode, data);\r\n if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {\r\n Uri selectedImageURI = data.getData();\r\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\r\n\r\n Cursor cursor = getContentResolver().query(selectedImageURI,\r\n filePathColumn, null, null, null);\r\n cursor.moveToFirst();\r\n\r\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\r\n String picturePath = cursor.getString(columnIndex);\r\n cursor.close();\r\n\r\n selectedImage.setVisibility(View.VISIBLE);\r\n selectedImage.setImageBitmap(BitmapFactory.decodeFile(picturePath));\r\n\r\n //get the bytes from image that will be uploaded\r\n selectedImage.setDrawingCacheEnabled(true);\r\n selectedImage.buildDrawingCache();\r\n Bitmap bitmap = ((BitmapDrawable) selectedImage.getDrawable()).getBitmap();\r\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos);\r\n imageBytes = baos.toByteArray();\r\n }\r\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data)\n {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (resultCode == RESULT_OK) {\n if (requestCode == SELECT_PICTURE) {\n\n Uri selectedImageURI = data.getData();\n\n image_uri.setText(selectedImageURI.toString());\n Picasso.with(getBaseContext()).load(selectedImageURI).noPlaceholder().centerCrop().fit()\n .into((ImageView) findViewById(R.id.imageViewCountry));\n\n }\n }\n }",
"@Override \n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data); \n\t\tif (requestCode == RESULT_TAKE_PHOTOE && resultCode == Activity.RESULT_OK) { \n\n\t\t\tString pathCamera = data.getStringExtra(\"pathCamera\");\n\t\t\tBitmap bitmap = CommandTools.convertToBitmap(pathCamera, 100, 100);\n\n\t\t\tbase64 = CommandTools.bitmapToBase64(bitmap);\n\t\t\tmHandler.sendEmptyMessage(0x0013);\n\t\t}else if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) { \n\t\t\tUri result = data == null || resultCode != RESULT_OK ? null : data.getData();\n\n\t\t\tBitmap bitmap = CommandTools.getBitmapFromUri(ServerMainActivity.this, result);\n\t\t\tbase64 = CommandTools.bitmapToBase64(bitmap);\n\t\t\tmHandler.sendEmptyMessage(0x0013);\n\t\t}\n\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"SELECT IMAGE\"), GALLERY_PICK);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_PICK);\n intent.setType(\"image/*\");\n // the one is the number attached to the intent\n //it capture the number and goes with the result\n startActivityForResult(intent,1);\n }",
"BufferedImage getSelectedImage();",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent( Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(Intent.createChooser(intent, \"Select File\"), 1);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK && data.getData()!=null) {\n if (requestCode == 2) {\n Uri selectedImage = data.getData();\n String[] filePath = { MediaStore.Images.Media.DATA };\n Cursor c = getContentResolver().query(selectedImage,filePath, null, null, null);\n c.moveToFirst();\n int columnIndex = c.getColumnIndex(filePath[0]);\n String picturePath = c.getString(columnIndex);\n c.close();\n Bitmap thumbnail = (BitmapFactory.decodeFile(picturePath));\n thumbnail= AppUtils.getResizedBitmap(thumbnail, 400);\n ivPic.setImageBitmap(thumbnail);\n\n //either update existing thumbnail\n if(thumbnailImage != null){\n thumbnailImage.setImage(thumbnail);\n viewModel.updateThumbnail(thumbnailImage);\n }\n //or create a new thumbnail\n else{\n contactGroup.setThumbnailId((int) viewModel.addThumbnailGetId(new ThumbnailImage(thumbnail)));\n viewModel.updateGroup(contactGroup);\n }\n }\n }\n }",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tswitch (requestCode) {\n\t\tcase PICK_IMAGE:\n\t\t\tif (resultCode == Activity.RESULT_OK) {\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"activity result called for catalog webview class\");\n\t\t\t\t\t// new accesstheimagesfromUri().execute();\n\t\t\t\t\tSystem.out.println(\"Catalog list size is\"\n\t\t\t\t\t\t\t+ queueItemforApproval.size());\n\t\t\t\t\tindex = queueItemforApproval.size();\n\t\t\t\t\tcallbitmapmethod();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}",
"String avatarImageSelected();",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (requestCode){\n case Ubicacion.REQUEST_CODE:\n if(resultCode== Activity.RESULT_OK && data!=null)\n {\n //Uri de imagenes guardadas en filePaths\n filePaths = new ArrayList<>();\n filePaths.addAll(data.getStringArrayListExtra(FilePickerConst.KEY_SELECTED_MEDIA));\n tvNumeroImagen.setText(String.valueOf(filePaths.size()) + \" \" + getString(R.string.promocionesDisponibilidad_num_imagenes)) ;\n }\n break;\n }\n }",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (resultCode == RESULT_OK) {\n\t\t\tswitch (requestCode) {\n//\t\t\tcase EDIT_FROM_EDITOR:\n//\t\t\t\tbyte[] bb = data.getByteArrayExtra(\"bitmap\");\n//\t\t\t\tBitmap tmp_bitmap = BitmapFactory.decodeByteArray(bb, 0,\n//\t\t\t\t\t\tbb.length);\n//\t\t\t\tcur_bitmap_list.add(tmp_bitmap);\n//\t\t\t\tiv_seller_reply_img.setImageBitmap(cur_bitmap_list.get(0));\n//\t\t\t\tbreak;\n\t\t\tcase PICK_FROM_ALBUM :\n//\t\t\t\tIntent intent = new Intent(Consumer_post.this, ImageEditActivity.class);\n//\t\t\t\tintent.putExtra(\"output\", data.getData());\n//\t\t\t\tintent.putExtra(\"flag\", \"album\");\n//\t\t\t\tstartActivityForResult(intent, EDIT_FROM_EDITOR);\n\t\t\t\tif (!addImage(data)) {\n\t\t\t\t\tToast.makeText(Seller_reply.this, \"사진 첨부 실패\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tbreak;\n//\t\t\tcase PICK_FROM_CAMERA:\n//\t\t\t\tIntent intent2 = new Intent(Seller_reply.this,\n//\t\t\t\t\t\tImageEditActivity.class);\n//\t\t\t\tintent2.putExtra(\"output\", path + \"/\" + TEMP_IMAGE);\n//\t\t\t\tintent2.putExtra(\"flag\", \"camera\");\n//\t\t\t\tstartActivityForResult(intent2, EDIT_FROM_EDITOR);\n//\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void onActivityResult(int requestCode,int resultCode,Intent data){\n // Result code is RESULT_OK only if the user selects an Image\n if (resultCode == Activity.RESULT_OK) {\n switch (requestCode){\n case GALLERY_REQUEST_CODE:\n data.getData(); //returns the content URI for the selected Image\n Uri selectedImage = data.getData();\n imageView.setImageURI(selectedImage);\n String uriString = Objects.requireNonNull(selectedImage).toString();\n game.getPlayers().get(currentPlayer).setPathToImage(uriString);\n break;\n case CAMERA_REQUEST_CODE:\n Uri image = Uri.parse(cameraFilePath);\n imageView.setImageURI(Uri.parse(cameraFilePath));\n uriString = image.toString();\n game.getPlayers().get(currentPlayer).setPathToImage(uriString);\n break;\n }\n }\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {\n Uri selectedImage = data.getData();\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\n Cursor cursor = getContentResolver().query(selectedImage,\n filePathColumn, null, null, null);\n cursor.moveToFirst();\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n picturePath = cursor.getString(columnIndex);\n cursor.close();\n Bitmap bitmap = BitmapFactory.decodeFile(picturePath);\n mItemImageView.setImageBitmap(bitmap);\n }\n }",
"private void pickImageFromGallery() {\n Intent intent = new Intent(Intent.ACTION_PICK);\n intent.setType(\"image/*\");\n startActivityForResult(intent, IMAGE_PICK_CODE);\n\n }",
"public void confirmPictureSelection(View view) {\n Intent intent = new Intent(this, ImageViewerActivity.class);\n intent.putExtra(ImageViewerActivity.BITMAP_URI_EXTRA, imageUri);\n startActivity(intent);\n }",
"@Override\n public void onActivityResult(int requestCode,int resultCode,Intent data)\n {\n alerta.dismiss();\n if(resultCode!=0)\n loading.abrir(\"Aguarde...\");\n\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (requestCode) {\n case imagem_interna:\n if (resultCode == RESULT_OK) {\n Image img = new Image();\n ContentResolver cResolver = getContentResolver();\n Uri uri = data.getData();\n String[] projection = {MediaStore.Images.Media.DATA};\n Cursor cursor = cResolver.query(uri, projection, null, null, null);\n cursor.moveToFirst();\n int columnIndex = cursor.getColumnIndex(projection[0]);\n filepath = cursor.getString(columnIndex);\n cursor.close();\n\n File f64 = new File(filepath);\n if(f64!=null)\n {\n img.setResizedBitmap(f64,percentImgArq);\n img.setMimeFromImgPath(f64.getPath());\n }\n img64 = img.getBitmapBase64();\n tipoImagem = img.getMime();\n\n if(img.getBitmap()!=null)\n {\n imagem.setImageBitmap(img.getBitmap());\n }\n loading.fechar();\n }\n break;\n\n case imagem_camera:\n if (resultCode == RESULT_OK)\n {\n Image img = new Image();\n Bitmap photo = (Bitmap) data.getExtras().get(\"data\");\n\n Uri uri = img.getImageUri(pesqAgendaUser.this, photo);\n File file = new File(img.getRealPathFromURI(pesqAgendaUser.this,uri));\n String pathImgCamera = file.getPath();\n File f64 = new File(pathImgCamera);\n if(f64!=null)\n {\n img.setResizedBitmap(f64,percentImgCam);\n img.setMimeFromImgPath(f64.getPath());\n }\n img64 = img.getBitmapBase64();\n tipoImagem = img.getMime();\n\n if(img.getBitmap()!=null)\n {\n imagem.setImageBitmap(img.getBitmap());\n }\n loading.fechar();\n\n }\n break;\n\n default:\n loading.fechar();\n break;\n }//fim switch\n\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n try {\n final Uri imageUri = data.getData();\n final InputStream imageStream = getContentResolver().openInputStream(imageUri);\n final Bitmap selectedImage = BitmapFactory.decodeStream(imageStream);\n mImageViewSS.setImageBitmap(selectedImage);\n //Store image locally\n saveToInternalStorage(selectedImage);\n //EOF Store image locally\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n Toast.makeText(this, getString(R.string.image_error), Toast.LENGTH_LONG).show();\n }\n } else {\n Toast.makeText(this, getString(R.string.didnt_pick_image), Toast.LENGTH_LONG).show();\n }\n }",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif(requestCode==IMAGE_REQUEST_CODE){\n\t\t\tif(resultCode==RESULT_OK){\n\t\t\t\tBundle bundle = data.getExtras();\n\t\t\t\tbitmap = (Bitmap) bundle.get(\"data\");\n\t\t\t\timgView.setImageBitmap(bitmap);\n\t\t\t}\n\t\t}\n\t}"
] | [
"0.73811877",
"0.716013",
"0.70598054",
"0.7045289",
"0.69730026",
"0.69710803",
"0.69547427",
"0.6917393",
"0.6909976",
"0.68907845",
"0.6857843",
"0.6842394",
"0.6832861",
"0.6796728",
"0.67813843",
"0.6778489",
"0.6754428",
"0.67465407",
"0.67399585",
"0.6738543",
"0.6734748",
"0.6725608",
"0.6722735",
"0.6720715",
"0.6684034",
"0.6629706",
"0.6609455",
"0.6575718",
"0.65739363",
"0.6573871",
"0.657337",
"0.6569465",
"0.6553231",
"0.6546663",
"0.6533156",
"0.6495074",
"0.6490495",
"0.6490041",
"0.6488141",
"0.64869606",
"0.648553",
"0.64756435",
"0.6472984",
"0.64696854",
"0.64559835",
"0.64488417",
"0.6433466",
"0.64310485",
"0.6426249",
"0.6422677",
"0.64193714",
"0.6418102",
"0.64165145",
"0.6415406",
"0.64153194",
"0.64102846",
"0.64074856",
"0.64022595",
"0.63916355",
"0.638763",
"0.6384921",
"0.63831264",
"0.6382256",
"0.63821715",
"0.6377891",
"0.6373083",
"0.6371249",
"0.6359274",
"0.63533664",
"0.6352155",
"0.6352155",
"0.6333797",
"0.6328504",
"0.6325372",
"0.63139325",
"0.6311458",
"0.6306712",
"0.6306207",
"0.6305682",
"0.63016963",
"0.62850606",
"0.62837696",
"0.6283124",
"0.62782866",
"0.62741053",
"0.6273948",
"0.6271318",
"0.6271316",
"0.62702304",
"0.6270181",
"0.62508667",
"0.62497413",
"0.6246562",
"0.624277",
"0.62425745",
"0.62391603",
"0.6233439",
"0.6233135",
"0.6223062",
"0.62227994",
"0.62191176"
] | 0.0 | -1 |
aici se formeaza request pt trimiterea imaginii la backend | private void uploadToServer(String filePath, String title) {
APIClient apiClient = new APIClient();
Retrofit retrofit = apiClient.getApiClient();
ApiInterface apiInterface = retrofit.create(ApiInterface.class);
File file = new File(filePath);
MultipartBody.Part filePart =
MultipartBody.Part.createFormData("file", title+".jpg", //file.getName(),
RequestBody.create(MediaType.parse("image/*"), file));
Call call = apiInterface.uploadImage(filePart);
call.enqueue(new Callback() {
@Override
public void onResponse(Call call, Response response) {
Toast.makeText(AddPost.this, "Worked",Toast.LENGTH_SHORT).show();
}
@Override
public void onFailure(Call call, Throwable t) {
t.printStackTrace();
Toast.makeText(AddPost.this, "Didn't work",Toast.LENGTH_SHORT).show();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void cargarImagenWebService(String rutaImagen) {\n\n String url_lh = Globals.url;\n\n String urlImagen = \"http://\" + url_lh + \"/proyecto_dconfo_v1/\" + rutaImagen;\n urlImagen = urlImagen.replace(\" \", \"%20\");\n\n ImageRequest imageRequest = new ImageRequest(urlImagen, new Response.Listener<Bitmap>() {\n @Override\n public void onResponse(Bitmap response) {\n iv_bank_prueba.setBackground(null);\n iv_bank_prueba.setImageBitmap(response);\n }\n }, 0, 0, ImageView.ScaleType.CENTER, null, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), \"Error al cargar la imagen\", Toast.LENGTH_SHORT).show();\n }\n });\n //request.add(imageRequest);\n VolleySingleton.getIntanciaVolley(getApplicationContext()).addToRequestQueue(imageRequest);\n }",
"@Override\n protected String getRequestedImage(HttpServletRequest req) {\n\treturn null;\n }",
"public void mo38841a(ImagesRequest imagesRequest) {\n }",
"private void kirimData(final Uri fileUri, final String isi, final String nama, final String rt, final String rw) {\n VolleyMultipartRequest multipartRequest = new VolleyMultipartRequest(Request.Method.POST, \"http://212.237.31.161/api/aspiration\", new Response.Listener<NetworkResponse>() {\n @Override\n public void onResponse(NetworkResponse response) {\n String resultResponse = new String(response.data);\n// try {\n//\n// } catch (JSONException e) {\n// e.printStackTrace();\n// }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n//\n if (error instanceof TimeoutError || error instanceof NoConnectionError) {\n Toast.makeText(TambahAspirasi.this.getContext(), \"Tidak dapat memuat data\\nTolong perika koneksi internet anda !\", Toast.LENGTH_LONG).show();\n }\n\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"rt\", rt);\n params.put(\"rw\", rw);\n params.put(\"aspiration\", isi);\n params.put(\"name\", nama);\n params.put(\"title\", nama);\n return params;\n }\n\n @Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n // file name could found file base or direct access from real path\n // for now just get bitmap data from ImageView\n params.put(\"photo_id\", new DataPart(fileUri.getLastPathSegment(), AppHelper.getFileDataFromDrawable(TambahAspirasi.this.getContext(), fotoktp.getDrawable()), \"image/jpeg\"));\n\n return params;\n }\n };\n\n VolleySingleton.getInstance(TambahAspirasi.this.getContext()).addToRequestQueue(multipartRequest);\n }",
"public void crearRutaImgPublicacion(){\n \n servletContext=(ServletContext) contexto.getExternalContext().getContext();\n String ruta=\"\";\n //Ruta real hasta la carpeta uploads\n ruta=servletContext.getRealPath(\"/upload/\");\n //Obtener el codigo del usuario de la sesion actual\n //este es utilizado para ubicar la carpeta que le eprtenece\n String codUsuario=String.valueOf(new SessionLogica().obtenerUsuarioSession().getCodUsuario());\n //Concatenamiento de directorios internos\n ruta+=File.separatorChar+\"img\"+File.separatorChar+\"post\"+File.separatorChar+codUsuario+File.separatorChar+\"all\"+File.separatorChar;\n //Asignacion de la ruta creada\n this.rutaImgPublicacion=ruta;\n }",
"public void addImage(Bitmap bm) {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bm.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n byte[] bytes = stream.toByteArray();\n try {\n File file = new File(this.getCacheDir(), \"image.jpg\");\n file.createNewFile();\n FileOutputStream fos = new FileOutputStream(file);\n fos.write(bytes);\n fos.flush();\n fos.close();\n RequestBody rb = RequestBody.create(MediaType.parse(\"multipart/form-data\"), file);\n MultipartBody.Part body = MultipartBody.Part.createFormData(\"files\", file.getName(), rb);\n Url url = new Url();\n Call<ImageFile> imgCall = url.createInstanceofRetrofit().uploadImage(body);\n imgCall.enqueue(new Callback<ImageFile>() {\n\n @Override\n public void onResponse(Call<ImageFile> call, Response<ImageFile> response) {\n venueimage.setText(response.body().getFilename());\n }\n\n @Override\n public void onFailure(Call<ImageFile> call, Throwable t) {\n Toast.makeText(VenueAdd.this, t.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n\n } catch (Exception e) {\n Toast.makeText(VenueAdd.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }",
"@Override\n\tvoid postarFoto() {\n\n\t}",
"@PreAuthorize(\"hasAnyRole('ROLE_ADMIN','ROLE_CONTRIBUTOR')\")\r\n\t@CrossOrigin(origins=\"http://localhost:4200\")\r\n\t@RequestMapping(value=\"/image/upload/{idMangas:[0-9]+}\", method=RequestMethod.POST, produces=MediaType.APPLICATION_JSON_VALUE)\r\n\t@ResponseBody\r\n\tpublic Manga upload(@RequestParam(\"file\") MultipartFile file, @PathVariable(\"idMangas\") int idMangas){\n\t\tlog.info(\"File name: \" + file.getOriginalFilename());\r\n\t\tlog.info(\"File name: \" + file.getContentType());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tImage img = new Image(0, file.getOriginalFilename(), file.getSize(), file.getContentType(), \"\", \"\");\r\n\t\t\timageDao.saveImageFile(img, file.getInputStream());\r\n\t\t\t// on save ensuite en bdd l image\r\n\t\t\timageDao.save(img);\r\n\t\t\t// puis on lie limage a mongas recup ds lurl\r\n\t\t\tManga m = mangasDao.findOne(idMangas);\r\n\t\t\tm.setImg(img);\r\n\t\t\treturn mangasDao.save(m);\r\n\t\t\t// return m;\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\tthrow new HttpClientErrorException(HttpStatus.INTERNAL_SERVER_ERROR, \"erreur lors de la sauvegarde\");\r\n\t\t}\r\n\t}",
"@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\t\r\n\t\tif(resultCode!=RESULT_OK){\r\n\t\t\tSystem.out.println(\"error\");\r\n\t\t}if(requestCode==SLE_PH){\r\n\t\t\tif(imageuri!=null){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tis= getContentResolver().openInputStream(imageuri);\r\n\t\t\t\t\tBitmap bm=BitmapFactory.decodeStream(is);\r\n\t\t\t\t\tBitmap bm2= toRoundBitmap(bm);\r\n\t\t\t\t\tself_headimg.setImageBitmap(bm2);\r\n\t\t\t\t\tsaveMyBitmap(bm2);\r\n\t\t\t\t\tpath=Environment.getExternalStorageDirectory()+\"/head.png\";\r\n\t\t\t\t\tmyApplication my=(myApplication) Main_Activity.this.getApplication();\r\n//\t\t\t\t\tToast.makeText(Main_Activity.this, \"\"+my.getUser_name(), Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\tNetUtil.uploadDataByHttpClientFile(Main_Activity.this,f);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}}",
"private void uploadBitmap(final Bitmap bitmap, final String idKop, final String id_bidangusaha, final String alamat, final String status, final String omzet, final String Loc, final String simpananpokok, final String jmlsimpananpokok, final String simpananwajib, final String jmlsimpananwajib, final String shutahunan, final String user) {\n pDialog.setMessage(\"Loading ...\");\n showDialog();\n VolleyMultipartRequest volleyMultipartRequest = new VolleyMultipartRequest(Request.Method.POST, AppConfig.URL_INPUT_KEUANGAN,\n new Response.Listener<NetworkResponse>() {\n @Override\n public void onResponse(NetworkResponse response) {\n hideDialog();\n\n Intent intent = new Intent(Form1Kelurahan4.this,\n SlidePageF1.class);\n startActivity(intent);\n finish();\n\n Toast.makeText(getApplicationContext(), \"Succes Insert\", Toast.LENGTH_SHORT).show();\n\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(TAG, \"Data Error: \" + error.getMessage());\n //cek error timeout, noconnection dan network error\n if ( error instanceof TimeoutError || error instanceof NoConnectionError ||error instanceof NetworkError) {\n Toast.makeText(getApplicationContext(),\n \"Please Check Your Connection\",\n Toast.LENGTH_SHORT).show();}\n hideDialog();\n }\n }) {\n\n\n\n /*\n * If you want to add more parameters with the image\n * you can do it here\n * here we have only one parameter with the image\n * which is tags\n * */\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n params.put(\"id_koperasi\", idKop);\n params.put(\"bidang_usaha\", id_bidangusaha);\n params.put(\"alamat_usaha\", alamat);\n params.put(\"status_usaha\", status);\n params.put(\"omzet\", omzet);\n params.put(\"location\", Loc);\n params.put(\"simp_pokok\", simpananpokok);\n params.put(\"jml_simp_pokok\", jmlsimpananpokok);\n params.put(\"simp_wajib\", simpananwajib);\n params.put(\"jml_simp_wajib\", jmlsimpananwajib);\n params.put(\"shu_tahunan\", shutahunan);\n params.put(\"user_id\", user);\n return params;\n }\n\n /*\n * Here we are passing image by renaming it with a unique name\n * */\n @Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n long imagename = System.currentTimeMillis();\n params.put(\"pic\", new DataPart(imagename + \".jpg\", getFileDataFromDrawable(bitmap)));\n return params;\n }\n };\n\n //adding the request to volley\n Volley.newRequestQueue(this).add(volleyMultipartRequest);\n }",
"@Override\n\tpublic ResponseEntity<?> atualizar(@Valid ProdutoImagem objeto,\n\t\tHttpServletRequest request) {\n\t\treturn null;\n\t}",
"@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n String imagen = obtenerImagenBase64(bitmap);\n Log.i(\"Base64\", imagen);\n\n //Creación de parámetros\n Map<String,String> params = new Hashtable<String, String>();\n\n //Agregando de parámetros\n params.put(\"imagen\", imagen);\n params.put(\"id_perfil\", id_perfil);\n\n //Parámetros de retorno\n return params;\n }",
"public Coloca_imagen(){\n \n \n }",
"@Override\n protected Map<String, String> getParams()\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"nama_kost\", kostt.getNama_kost());\n params.put(\"emailPemilik\", emailFB);\n params.put(\"tipe_kost\", kostt.getTipe_kost());\n params.put(\"alamat_kost\", kostt.getAlamat_kost());\n params.put(\"luas_kost\", String.valueOf(kostt.getLuas_kost()));\n params.put(\"sisa_kamar\", String.valueOf(kostt.getSisa_kamar()));\n if(cek==1) {\n params.put(\"image\", kostt.getImageUrl());\n System.out.println(\"image adalah \"+kostt.getImageUrl());\n }else {\n params.put(\"image\", \"kosong\");\n }\n\n\n return params;\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n //O sea que, la accion que ejecuta el usuario es igual a seleccionar una imagen de la galeria\n // Y \"&&\" que la seleccion de la imagen se hizo bien\n if (requestCode == CODIGO_GALERIA && resultCode == RESULT_OK);\n try {\n //Esto nos va transformar la URI en este archivo que esta aqui colocado.\n ArchivoImagen = UtilidadFile.from(this,data.getData());\n //Para que la imagen cargue en uno de los recuadros de la interfaz grafica se hara\n //esta implementacion en la cual recibe la ruta de la imagen.\n imgpost1.setImageBitmap(BitmapFactory.decodeFile(ArchivoImagen.getAbsolutePath()));\n }catch (Exception ex){\n Log.d(\"ERROR\", \"Ha ocurrido un error \"+ ex.getMessage());\n }\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException { \r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n \r\n HttpSession session = request.getSession(true); \r\n Inmobiliaria inmobiliaria= (Inmobiliaria) session.getAttribute(\"inmobiliaria\"); \r\n if(inmobiliaria==null) inmobiliaria = Inmobiliaria.darObjeto(); \r\n session.setAttribute(\"inmobiliaria\", inmobiliaria);\r\n \r\n MultipartFormDataRequest mrequest = null; \r\n RequestDispatcher dispatcher = null; \r\n UploadBean upBean = null;//UploadBean es una libreria que se usa para poder llevar objetos al servidor en este caso la imagen \r\n \r\n String operacion = null; \r\n String mensaje = null;\r\n String url = null;\r\n \r\n try{ \r\n \r\n mrequest= new MultipartFormDataRequest(request); //le indicamos que recoga todo lo que nos esta mandando el .jsp \r\n operacion = mrequest.getParameter(\"btn_aceptar\");\r\n \r\n if ((operacion != null) && (operacion.equalsIgnoreCase(\"Agregar\"))) { \r\n \r\n //recuperar campos de texto:\r\n String dir = mrequest.getParameter(\"txt_direccion\"); \r\n String barrio = mrequest.getParameter(\"txt_barrio\"); \r\n String tel = mrequest.getParameter(\"txt_telefono\"); \r\n String tipo = mrequest.getParameter(\"dpd_tipoInmueble\"); \r\n String categoria = mrequest.getParameter(\"dpd_categoria\"); \r\n String tamanio = mrequest.getParameter(\"txt_tamano\"); \r\n int precio = Integer.parseInt(mrequest.getParameter(\"txt_precio\")); \r\n String ciudad = mrequest.getParameter(\"dpd_ciudad\"); \r\n \r\n String imagen = dir.replaceAll(\" \",\"\")+\".jpg\"; \r\n //-------------------- \r\n \r\n //enviar datos:\r\n try {\r\n \r\n inmobiliaria.adicionarInmueble(barrio, dir, tel, tipo, tamanio, precio, imagen, categoria, ciudad); \r\n mensaje = inmobiliaria.getMensaje(); \r\n \r\n if(mensaje.equals(\"El inmueble se adicionó con Exito\")){\r\n //recuperar archivo (imagen): \r\n Hashtable files = mrequest.getFiles();\r\n if ((files != null) && (!files.isEmpty())) { \r\n UploadFile file = (UploadFile) files.get(\"uploadfile\");\r\n \r\n file.setFileName(imagen);\r\n upBean = new UploadBean(); \r\n\r\n upBean.setFolderstore(\"D:\\\\DOCUMENTOS\\\\UMARIANA\\\\proyNetbeans\\\\Inmobiliaria\\\\web\\\\images\\\\inmuebles\\\\\"); \r\n upBean.store(mrequest, \"uploadfile\"); //Con el Store le decimos al MultipartFormRequest que obtenta tambien la imagen \r\n\r\n } else {\r\n System.out.println(\"<li>No uploaded files\");\r\n }\r\n //----------------------------------------------------- \r\n }\r\n \r\n } catch (Exception e) {\r\n out.println(e.getMessage());\r\n }\r\n \r\n \r\n url = \"AgregarInmueble.jsp\";\r\n \r\n session.setAttribute(\"mensaje\", mensaje);\r\n session.setAttribute(\"url\", url);\r\n\r\n response.sendRedirect(\"./Mensajes.jsp\"); \r\n \r\n }//if de (operacion) \r\n \r\n //modificar un inmueble:\r\n if ((operacion != null) && (operacion.equalsIgnoreCase(\"Modificar\"))) {\r\n String dirOriginal = mrequest.getParameter(\"txt_dir_original\"); //direccion original del inmueble \r\n \r\n String dir = mrequest.getParameter(\"txt_direccion\"); \r\n String barrio = mrequest.getParameter(\"txt_barrio\"); \r\n String tel = mrequest.getParameter(\"txt_telefono\"); \r\n String tipo = mrequest.getParameter(\"dpd_tipoInmueble\"); \r\n String categoria = mrequest.getParameter(\"dpd_categoria\"); \r\n String tamanio = mrequest.getParameter(\"txt_tamano\"); \r\n int precio = Integer.parseInt(mrequest.getParameter(\"txt_precio\")); \r\n String ciudad = mrequest.getParameter(\"dpd_ciudad\"); \r\n String imagenOriginal = dirOriginal.replaceAll(\" \",\"\")+\".jpg\";\r\n String imagenNueva = dir.replaceAll(\" \",\"\")+\".jpg\";\r\n \r\n try {\r\n //eliminar archivo anterior:\r\n String imagenCambiada = mrequest.getParameter(\"imagenCambiada\"); \r\n if(imagenCambiada.equals(\"1\")){\r\n String ruta=\"D:/DOCUMENTOS/UMARIANA/proyNetbeans/Inmobiliaria/web/images/inmuebles/\"+imagenOriginal;\r\n inmobiliaria.eliminarArchivo(ruta);\r\n } \r\n else imagenNueva = imagenOriginal;\r\n \r\n inmobiliaria.modificarInmueble(barrio, dir, tel, tipo, categoria, tamanio, precio, ciudad, imagenNueva, dirOriginal); \r\n \r\n //recuperar archivo (imagen): \r\n Hashtable files = mrequest.getFiles();\r\n if ((files != null) && (!files.isEmpty())) { \r\n UploadFile file = (UploadFile) files.get(\"uploadfile\"); \r\n file.setFileName(imagenNueva);\r\n upBean = new UploadBean(); \r\n upBean.setFolderstore(\"D:\\\\DOCUMENTOS\\\\UMARIANA\\\\proyNetbeans\\\\Inmobiliaria\\\\web\\\\images\\\\inmuebles\\\\\"); \r\n upBean.store(mrequest, \"uploadfile\"); //Con el Store le decimos al MultipartFormRequest que obtenga tambien la imagen \r\n\r\n } else {\r\n out.write(\"es null\");\r\n } \r\n \r\n } catch (Exception e) {\r\n }\r\n \r\n mensaje = inmobiliaria.getMensaje();\r\n url = \"AdministrarInmuebles.jsp\";\r\n \r\n session.setAttribute(\"url\", url);\r\n session.setAttribute(\"mensaje\", mensaje);\r\n \r\n response.sendRedirect(\"./Mensajes.jsp\"); \r\n \r\n \r\n }//if(modificar)\r\n \r\n }catch( UploadException exc){\r\n System.out.println(\"Error en lo primero: \"+exc.getMessage());\r\n } \r\n \r\n }",
"private void uploadImage(){\n final ProgressDialog loading = ProgressDialog.show(this,\"Uploading...\",\"Please wait...\",false,false);\n StringRequest stringRequest = new StringRequest(Request.Method.POST, \"http://192.168.0.52/temps/salvar_img/setAvaliacao.php\",\n new Response.Listener<String>() {\n @Override\n public void onResponse(String s) {\n //Disimissing the progress dialog\n loading.dismiss();\n //Showing toast message of the response\n Toast.makeText(MainActivity.this, s , Toast.LENGTH_LONG).show();\n }\n\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError volleyError) {\n //Dismissing the progress dialog\n loading.dismiss();\n\n //Showing toast\n Toast.makeText(MainActivity.this, volleyError.getMessage().toString(), Toast.LENGTH_LONG).show();\n }\n }){\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n //Converting Bitmap to String\n String image = getStringImage(bmpChange);\n\n\n //Creating parameters\n Map<String,String> params = new Hashtable<String, String>();\n\n //Adding parameters\n params.put(\"image\", image);\n\n //returning parameters\n return params;\n }\n };\n\n //Creating a Request Queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n\n //Adding request to the queue\n requestQueue.add(stringRequest);\n }",
"private void doNetGetImg() {\n\t\tString url = UploadUtils.PATIENTAPP_FILE_URL + CommonUtils.getTokenParam(activity) +\"&patientId=\"+orderMoreDetails.getPatientId()+\"&reportType=mr\";\n\t\tQJNetUICallback2 callback = new QJNetUICallback2<QjResult<HashMap<String,List<ImgQiNiuEntity>>>>(activity) {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(QjResult<HashMap<String,List<ImgQiNiuEntity>>> result) {\n\t\t\t\tif (result != null\n\t\t\t\t\t\t&& result.getResults() != null) {\n\t\t\t\t\tList<ImgQiNiuEntity> list = result.getResults().get(\"files\");\n\t\t\t\t\tif (list != null) {\n\n\t\t\t\t\t\tif (list.size()>=9) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbtn_upcase.setVisibility(View.GONE);\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tbtn_upcase.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int i = 0; i < list.size(); i ++){\n\t\t\t\t\t\t\tImageItem item = new ImageItem();\n\t\t\t\t\t\t\titem.imagePath = list.get(i).getThumbnailUrl();\n\t\t\t\t\t\t\titem.upImagePath = list.get(i).getAbsFileUrl();\n\t\t\t\t\t\t\tdataChoosed.add(item);\n\t\t\t\t\t\t\tnoScrollgridview.setAdapter(adapter);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpublic void onError(Exception e, QjResult<HashMap<String,List<ImgQiNiuEntity>>> result) {\n\t\t\t\tsuper.onError(e, result);\n\t\t\t\tToastUtil.showToast(activity, \"获取失败!\",Toast.LENGTH_LONG);\n\t\t\t}\n\n\t\t\tpublic void onCompleted(Exception e, QjResult<HashMap<String,List<ImgQiNiuEntity>>> result) {\n\t\t\t\tsuper.onCompleted(e, result);\n\t\t\t}\n\t\t};\n\t\tNetOld.with(activity).fetch( url ,null, new TypeToken<QjResult<HashMap<String,List<ImgQiNiuEntity>>>>() {}, callback);\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == CODIGO_DE_SOLICITUD_IMAGEN\n && resultCode == RESULT_OK\n && data!=null\n && data.getData() != null){\n\n RutaArchivoUri = data.getData();\n try {\n //Convertimos a bitmap\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(),RutaArchivoUri);\n //seteamos la imagen\n ImagenAgregarSerie.setImageBitmap(bitmap);\n\n }catch (Exception e){\n Toast.makeText(this, \"\"+e.getMessage(), Toast.LENGTH_SHORT).show();\n\n }\n }\n }",
"ChangeHeadpic.Req getChangeHeadpicReq();",
"@Override\n\tpublic void requestImageReceived(CatchoomImage image)\n\t{\n\t\t\n//\t\tstartActivity(new Intent(RecognitionOnlyActivity.this, MainActivityVedio.class));\n\t\t\n\t\tBitmap bitmap = image.toBitmap();\n\t\t\n\t\tBitmap bitmapone = getBitmapFromAsset(\"accendo_logo.png\");\n\t\t\n\t\t/*if (bitmap.getWidth() == bitmapone.getWidth() && bitmap.getHeight() == bitmapone.getHeight())\n\t\t{*/\n\t int[] pixels1 = new int[bitmap.getWidth() * bitmap.getHeight()];\n\t int[] pixels2 = new int[bitmapone.getWidth() * bitmapone.getHeight()];\n\t bitmap.getPixels(pixels1, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());\n\t bitmapone.getPixels(pixels2, 0, bitmapone.getWidth(), 0, 0, bitmapone.getWidth(), bitmapone.getHeight());\n\t if (!Arrays.equals(pixels1, pixels2)) \n\t {\n\t resultUrl=\"http://www.accendotechnologies.com/\";\n\t startActivity(new Intent(RecognitionOnlyActivity.this, VideoActivity.class));\n\t }\n\t else \n\t {\n\t \tresultUrl=\"\";\n\t }\n//\t } else\n//\t {\n//\t \tresultUrl=\"\";\n//\t }\n//\t\t\n\t\t\n\t\n\t\t\n//\t\tString imageName = image.toString();\n//\t\tString[] splitName = imageName.split(\"@\", imageName.length());\n//\t\tToast.makeText(getApplicationContext(), \"Image Name is \"+splitName[1], Toast.LENGTH_LONG).show();\n//\t\tf = new File(Environment.getExternalStorageDirectory()+\"/\"+splitName[1]+\".jpg\");\n//\t\ttry\n//\t\t{\n//\t\t\tFileOutputStream fout = new FileOutputStream(f);\n//\t\t\tbitmap.compress(Bitmap.CompressFormat.JPEG, 100, fout); \n//\t\t\tfout.flush();\n//\t\t\tfout.close();\n//\t\t}catch(Exception e)\n//\t\t{\n//\t\t\te.printStackTrace();\n//\t\t}\n//\t\t\n//\t\tImageAsync imasc = new ImageAsync();\n//\t\timasc.execute(f.toString());\n//\t\t\n//\t\tbitmap.recycle();\n//\t\t\n\t\t\n\t\t\n\n\t\t\n//\t\tmCloudRecognition.searchWithImage(COLLECTION_TOKEN,image);\n//\t\tstartActivity(new Intent(RecognitionOnlyActivity.this, MainActivityVedio.class));\n\t\t/**\n\t\t * chary\n\t\t * Need to write service code to send image.\n\t\t */\n\t\t\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n String FOLDER = \"/Image/AvatarImg\";\r\n HttpSession session = (HttpSession) request.getSession(false);\r\n User user = (User) session.getAttribute(\"user\");\r\n Boolean updateResult;\r\n User cgeUser = new User();\r\n \r\n //Creazione variabili \r\n String email = user.getEmail();\r\n String nominativo = request.getParameter(\"nominativo\");\r\n String password = request.getParameter(\"password\");\r\n Boolean send;\r\n send = request.getParameter(\"send\") != null;\r\n String url;\r\n \r\n //IMMAGINE ################################################################################\r\n Part filePart = request.getPart(\"file1\");\r\n if((filePart != null) && (filePart.getSize() > 0)){\r\n //delete current immage\r\n String imageFolder = getServletContext().getRealPath(user.getImage()); //cerca il link assoluto dell immagine\r\n if(imageFolder != null){\r\n imageFolder = imageFolder.replace(\"\\\\build\", \"\"); //rimuove build dal link assoluto\r\n File currentFile = new File(imageFolder); //carica il file nel ogetto \r\n if(currentFile.exists()){ //controlla se esiste il file\r\n try{\r\n ImageDispatcher.deleteImgFromDirectory(imageFolder);\r\n cgeUser.setImage(null);\r\n }catch(Exception e){\r\n System.out.println(\"Cancella immagine errata\");\r\n System.out.println(e);\r\n }\r\n }\r\n }\r\n //save new immage\r\n String extension = Paths.get(filePart.getSubmittedFileName()).getFileName().toString().split(Pattern.quote(\".\"))[1];\r\n String foldername = getServletContext().getRealPath(FOLDER);\r\n foldername = foldername.replace(\"\\\\build\", \"\");\r\n String filename;\r\n if(email.equals(\"\")){\r\n filename = ImageDispatcher.setImgName(user.getEmail(), extension);\r\n }else{\r\n filename = ImageDispatcher.setImgName(email, extension);\r\n }\r\n File file1 = new File(foldername,filename);\r\n try (InputStream fileContent = filePart.getInputStream()) {\r\n Files.copy(fileContent, file1.toPath());\r\n cgeUser.setImage(\"Image/AvatarImg/\" + filename);\r\n } catch (RuntimeException e) {\r\n throw e;\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n }\r\n //IMMAGINE ################################################################################\r\n\r\n //Aggiornamento dei campi nominativo, email, e password\r\n cgeUser.setEmail(email);\r\n cgeUser.setNominativo(nominativo);\r\n cgeUser.setPassword(password);\r\n cgeUser.setSendEmail(send);\r\n \r\n try {\r\n User finaluser = userdao.changeUser(cgeUser, user);\r\n if (finaluser != null) {\r\n updateResult = true;\r\n session.setAttribute(\"user\", finaluser);\r\n session.setAttribute(\"updateResult\", updateResult);\r\n }\r\n } catch (DAOException ex) {\r\n Logger.getLogger(updateUser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n //Redirect\r\n if (session.getAttribute(\"user\") != null) {\r\n url = \"/Lists/profile.jsp\";\r\n } else {\r\n url = \"homepage.jsp\";\r\n out.println(\"Errore di tipo utente\");\r\n }\r\n\r\n response.sendRedirect(url);\r\n\r\n }",
"@GET\n @Path(\"image\")\n @Produces(MediaType.TEXT_PLAIN)\n public Response voidImage() {\n return Response.status(Response.Status.NOT_FOUND).build();\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString titulo = req.getParameter(\"titulo\");\n\t\tString autor = req.getParameter(\"autor\");\n\t\tString traductor = req.getParameter(\"traductor\");\n\t\tString resumen = req.getParameter(\"resumen\");\n\t\tString genero = req.getParameter(\"genero\");\n\t\tString isbn = req.getParameter(\"isbn\");\n\t\tString formato = req.getParameter(\"formato\");\n\t\tString idioma = req.getParameter(\"idioma\");\n\t\tEditorial editorial = (Editorial) req.getSession().getAttribute(\"editorial\");\n\t\tString editorialId = editorial.getId();\n\n\t\tString imagen = \"no-disponible.jpg\";\n\t\t\n\t\tint isbn1 = 0;\n\t\tisbn1 = Integer.parseInt(isbn);\n\t\t\n\t\tLibroDAO libroDao = LibroDAOImpl.getInstancia();\n\t\tAutorDAO autorDao = AutorDAOImpl.getInstancia();\n\t\tAsignacionesEditorialesDAO asigDao = AsignacionesEditorialesDAOImpl.getInstancia();\n\t\tNovedadDAO novedadDao = NovedadDAOImpl.getInstancia();\n\t\t\n\t\tMap<String, List<BlobKey>> blobs = BlobstoreServiceFactory.getBlobstoreService().getUploads(req);\n\t\tList<BlobKey> blobKeys = blobs.get(\"file\");\n\t\tif (blobKeys == null || blobKeys.isEmpty() || blobKeys.get(0) == null) {\n\t\t\tresp.sendError(1200);\n\t\t}\n\t\telse {\n\t\t\tImagesService imagesService = ImagesServiceFactory.getImagesService();\n\t\t\tServingUrlOptions servingOptions = ServingUrlOptions.Builder.withBlobKey(blobKeys.get(0));\n\t String servingUrl = imagesService.getServingUrl(servingOptions);\n\t\t\timagen = servingUrl;\n\t\t}\n\t\t\n\t\tLibro libro = libroDao.create(titulo, resumen, genero, autor, traductor, isbn1, 0, imagen);\n\t\t\n\t\tif(autorDao.readNombre(autor).size()==0){\n\t\t\tautorDao.create(autor);\n\t\t}\n\t\t\n\t\tAsignacionesEditoriales asignacionesEditoriales = asigDao.create(libro, editorial, editorialId, formato, idioma, 0);\n\t\tnovedadDao.create(libro, asignacionesEditoriales, 0);\n\t\n\t\tresp.sendRedirect(\"/novedades\");\n\t}",
"public Image getSemibreveRest();",
"public void montarTela(){\n ControllerListener listener = new BaseControllerListener(){\n @Override\n public void onFinalImageSet(String id, Object imageInfo, Animatable animatable) {\n super.onFinalImageSet(id, imageInfo, animatable);\n }\n\n @Override\n public void onFailure(String id, Throwable throwable) {\n super.onFailure(id, throwable);\n }\n\n @Override\n public void onIntermediateImageFailed(String id, Throwable throwable) {\n super.onIntermediateImageFailed(id, throwable);\n }\n\n @Override\n public void onIntermediateImageSet(String id, Object imageInfo) {\n super.onIntermediateImageSet(id, imageInfo);\n }\n\n @Override\n public void onRelease(String id) {\n super.onRelease(id);\n }\n\n @Override\n public void onSubmit(String id, Object callerContext) {\n super.onSubmit(id, callerContext);\n }\n };\n\n String urlImagem = DetalhesPaciente.paciente.getFoto().replace(\" \", \"%20\");\n\n Uri uri = null;\n DraweeController dc = null;\n\n if(urlImagem.contains(\"https\")){\n uri = Uri.parse(DetalhesPaciente.paciente.getFoto().replace(\" \", \"%20\"));\n dc = Fresco.newDraweeControllerBuilder()\n .setUri(uri)\n .setControllerListener(listener)\n .setOldController(ivFotoPerfil.getController())\n .build();\n } else {\n uri = Uri.parse(\"https://tocaredev.azurewebsites.net\"+DetalhesPaciente.paciente.getFoto().replace(\" \", \"%20\"));\n dc = Fresco.newDraweeControllerBuilder()\n .setUri(uri)\n .setControllerListener(listener)\n .setOldController(ivFotoPerfil.getController())\n .build();\n }\n ivFotoPerfil.setController(dc);\n\n tvUsername.setText(DetalhesPaciente.paciente.getNome() + \" \" + DetalhesPaciente.paciente.getSobrenome());\n\n int idade = Util.retornaIdade(DetalhesPaciente.paciente.getDataNascimento());\n\n tvDataNascimento.setText(DetalhesPaciente.paciente.getDataNascimento() + \" (\" + idade + \")\");\n \n etAnamnese.setText(DetalhesPaciente.paciente.getProntuario().getAnamnese());\n etExameFisico.setText(DetalhesPaciente.paciente.getProntuario().getExameFisico());\n etPlanoTerapeutico.setText(DetalhesPaciente.paciente.getProntuario().getPlanoTerapeutico());\n etHipoteseDiagnostica.setText(DetalhesPaciente.paciente.getProntuario().getHipoteseDiagnostica());\n \n }",
"private void registrationRequest(){\n class registrationRequest extends AsyncTask<Bitmap,Void,String> {\n\n ProgressDialog loading;\n RequestHandler rh = new RequestHandler();\n\n @Override\n protected void onPreExecute() {\n super.onPreExecute();\n loading = ProgressDialog.show(Registrazione.this, \"Upload Immagine\", \"Attendi...\",true,true);\n }\n\n @Override\n protected void onPostExecute(String s) {\n super.onPostExecute(s);\n loading.dismiss();\n if(s.equals(\"1\")){\n Toast.makeText(getApplicationContext(),\"Registrazione avvenuta con successo\",Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(getApplicationContext(),\"Errore durante la registrazione\",Toast.LENGTH_LONG).show();\n }\n onBackPressed();\n }\n\n @Override\n protected String doInBackground(Bitmap... params) {\n Globals g = Globals.getInstance();\n HashMap<String,Object> data = new HashMap<>();\n data.put(UPLOAD_KEY_IMAGE, g.getDomain() + manager_image.getImageName());\n data.put(UPLOAD_KEY_PASS,md5(password.getText().toString()));\n data.put(UPLOAD_KEY_MAIL,email.getText().toString());\n data.put(UPLOAD_KEY_USER,username.getText().toString());\n\n\n String result = rh.sendPostRequest(g.getDomain()+\"registrazione.php\",data);\n\n return result;\n }\n }\n\n registrationRequest ui = new registrationRequest();\n ui.execute();\n }",
"public interface ImageUploadService {\n @Headers({\n \"User-Agent: Mozilla/5.0\",\n \"Content-Type: image/png\"\n })\n @POST(\"\")\n Observable<ImageUpload> uploadImage4search(@Body RequestBody imgs);\n // Observable<ImageUpload> uploadImage4search(@PartMap Map<String, Object> fields, @Body RequestBody imgs);\n}",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (resultCode == RESULT_OK) {\n\t\t\tswitch (requestCode) {\n//\t\t\tcase EDIT_FROM_EDITOR:\n//\t\t\t\tbyte[] bb = data.getByteArrayExtra(\"bitmap\");\n//\t\t\t\tBitmap tmp_bitmap = BitmapFactory.decodeByteArray(bb, 0,\n//\t\t\t\t\t\tbb.length);\n//\t\t\t\tcur_bitmap_list.add(tmp_bitmap);\n//\t\t\t\tiv_seller_reply_img.setImageBitmap(cur_bitmap_list.get(0));\n//\t\t\t\tbreak;\n\t\t\tcase PICK_FROM_ALBUM :\n//\t\t\t\tIntent intent = new Intent(Consumer_post.this, ImageEditActivity.class);\n//\t\t\t\tintent.putExtra(\"output\", data.getData());\n//\t\t\t\tintent.putExtra(\"flag\", \"album\");\n//\t\t\t\tstartActivityForResult(intent, EDIT_FROM_EDITOR);\n\t\t\t\tif (!addImage(data)) {\n\t\t\t\t\tToast.makeText(Seller_reply.this, \"사진 첨부 실패\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tbreak;\n//\t\t\tcase PICK_FROM_CAMERA:\n//\t\t\t\tIntent intent2 = new Intent(Seller_reply.this,\n//\t\t\t\t\t\tImageEditActivity.class);\n//\t\t\t\tintent2.putExtra(\"output\", path + \"/\" + TEMP_IMAGE);\n//\t\t\t\tintent2.putExtra(\"flag\", \"camera\");\n//\t\t\t\tstartActivityForResult(intent2, EDIT_FROM_EDITOR);\n//\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void onActivityResult(int requestCode,int resultCode,Intent data)\n {\n alerta.dismiss();\n if(resultCode!=0)\n loading.abrir(\"Aguarde...\");\n\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (requestCode) {\n case imagem_interna:\n if (resultCode == RESULT_OK) {\n Image img = new Image();\n ContentResolver cResolver = getContentResolver();\n Uri uri = data.getData();\n String[] projection = {MediaStore.Images.Media.DATA};\n Cursor cursor = cResolver.query(uri, projection, null, null, null);\n cursor.moveToFirst();\n int columnIndex = cursor.getColumnIndex(projection[0]);\n filepath = cursor.getString(columnIndex);\n cursor.close();\n\n File f64 = new File(filepath);\n if(f64!=null)\n {\n img.setResizedBitmap(f64,percentImgArq);\n img.setMimeFromImgPath(f64.getPath());\n }\n img64 = img.getBitmapBase64();\n tipoImagem = img.getMime();\n\n if(img.getBitmap()!=null)\n {\n imagem.setImageBitmap(img.getBitmap());\n }\n loading.fechar();\n }\n break;\n\n case imagem_camera:\n if (resultCode == RESULT_OK)\n {\n Image img = new Image();\n Bitmap photo = (Bitmap) data.getExtras().get(\"data\");\n\n Uri uri = img.getImageUri(pesqAgendaUser.this, photo);\n File file = new File(img.getRealPathFromURI(pesqAgendaUser.this,uri));\n String pathImgCamera = file.getPath();\n File f64 = new File(pathImgCamera);\n if(f64!=null)\n {\n img.setResizedBitmap(f64,percentImgCam);\n img.setMimeFromImgPath(f64.getPath());\n }\n img64 = img.getBitmapBase64();\n tipoImagem = img.getMime();\n\n if(img.getBitmap()!=null)\n {\n imagem.setImageBitmap(img.getBitmap());\n }\n loading.fechar();\n\n }\n break;\n\n default:\n loading.fechar();\n break;\n }//fim switch\n\n }",
"public String guardarImgPost(){\n \n File archivo=null;//Objeto para el manejo de os archivos\n InputStream in =null;//Objeto para el manejo del stream de datos del archivo\n //Se obtiene el codigo de usuario de la sesion actual\n String codUsuario=codUsuario=String.valueOf(new SessionLogica().obtenerUsuarioSession().getCodUsuario());\n //Se obtiene un codigo producto de la combinacion del codigo del usuario y de un numero aleatorio\n String codGenerado=new Utiles().generar(codUsuario);\n String extension=\"\";\n int i=0;\n //Extension del archivo ha subir\n extension=\".\"+FilenameUtils.getExtension(this.getObjImagen().getImagen().getFileName());\n \n \n try {\n //Pasa el buffer de datos en un array de bytes , finalmente lee cada uno de los bytes\n in=this.getObjImagen().getImagen().getInputstream();\n byte[] data=new byte[in.available()];\n in.read(data);\n \n //Crea un archivo en la ruta de publicacion\n archivo=new File(this.rutaImgPublicacion+codGenerado+extension);\n FileOutputStream out=new FileOutputStream(archivo);\n //Escribe los datos en el nuevo archivo creado\n out.write(data);\n \n System.out.println(\"Ruta de Path Absolute\");\n System.out.println(archivo.getAbsolutePath());\n \n //Cierra todas las conexiones\n in.close();\n out.flush();\n out.close();\n } catch (IOException ex) {\n System.out.println(ex.getMessage());\n return \"none.jpg\";\n }\n //Retorna el nombre de la iamgen almacenada\n return codGenerado+extension;\n }",
"@Test\n void testInoltroSegnalazioneJpg() throws IOException {\n request.setParameter(\"oggetto\", \"Perdita d'acqua\");\n request.setParameter(\"descrizione\", \"Perdita d’acqua in via roma, altezza supermercato, civico 3\");\n request.setParameter(\"via\", \"Via roma\");\n request.setParameter(\"civico\", \"3\");\n request.addPart(new Part() {\n @Override\n public InputStream getInputStream() throws IOException {\n return new FileInputStream(new File(\"foto.jpg\"));\n }\n\n @Override\n public String getContentType() {\n return \"file\";\n }\n\n @Override\n public String getName() {\n return \"foto\";\n }\n\n @Override\n public String getSubmittedFileName() {\n return \"foto.jpg\";\n }\n\n @Override\n public long getSize() {\n return 0;\n }\n\n @Override\n public void write(String s) throws IOException {\n\n }\n\n @Override\n public void delete() throws IOException {\n\n }\n\n @Override\n public String getHeader(String s) {\n return null;\n }\n\n @Override\n public Collection<String> getHeaders(String s) {\n return null;\n }\n\n @Override\n public Collection<String> getHeaderNames() {\n return null;\n }\n });\n MyServletException exception =\n assertThrows(MyServletException.class, () -> {servlet.doPost(request,response);});\n assertEquals(\"Errore I/O nel caricamento della foto!\" ,exception.getMessage());\n }",
"private void getDoctorImageRequest(String imageLink, final ImageView imageView) {\n ImageRequest request = new ImageRequest(AppConfig.LIVE_IMAGE_DOCTOR_API_LINK + imageLink,\n new Response.Listener<Bitmap>() {\n @Override\n public void onResponse(Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n// pDialog.hide();\n }\n }, 0, 0, null,\n new Response.ErrorListener() {\n public void onErrorResponse(VolleyError error) {\n imageView.setImageResource(R.drawable.ic_doctor);\n// pDialog.hide();\n }\n });\n // Access the RequestQueue through your singleton class.\n AppController.getInstance().addToRequestQueue(request);\n }",
"private void uploadRequest(String msg){\n String path = \"\";\r\n try {\r\n path = getPath(imageUri);\r\n }\r\n catch (URISyntaxException e){\r\n showMsg(\"wrong uri\");\r\n }\r\n String number = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getString(\"number\",\"12345\");\r\n\r\n AndroidNetworking.upload(Endpoints.upload_request)\r\n .addMultipartFile(\"file\",new File(path))\r\n .addQueryParameter(\"message\",msg)\r\n .addQueryParameter(\"number\",number)\r\n .setPriority(Priority.HIGH)\r\n .build()\r\n .setUploadProgressListener(new UploadProgressListener() {\r\n @Override\r\n public void onProgress(long bytesUploaded, long totalBytes) {\r\n // do anything with progress\r\n long progress = (bytesUploaded/totalBytes*100);\r\n chooseImageText.setText(String.valueOf(progress));\r\n chooseImageText.setOnClickListener(null);\r\n }\r\n })\r\n .getAsJSONObject(new JSONObjectRequestListener() {\r\n @Override\r\n public void onResponse(JSONObject response) {\r\n try {\r\n if(response.getBoolean(\"success\")){\r\n showMsg(\"Succes\");\r\n MakeRequestActivity.this.finish();\r\n }\r\n else {\r\n showMsg(response.getString(\"message\"));\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n @Override\r\n public void onError(ANError anError) {\r\n\r\n }\r\n });\r\n\r\n }",
"@Override\n\t\t\tpublic void onBizSuccess(String responseDescription, JSONObject data, String flag) {\n\t\t\t\ttry {\n\t\t\t\t\tString image_url = data.getString(\"image_url\");\n\t\t\t\t\tImageUtil.drawImageFromUri(image_url, img);\n\t\t\t\t} catch (JSONException 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}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n listaErrores.clear();\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n \r\n String directorio = getServletContext().getRealPath(\"/images/ofertas\");\r\n MultipartRequest multi = new MultipartRequest(request, directorio, 1 * 1024 * 1024, new DefaultFileRenamePolicy());\r\n String operacion = multi.getParameter(\"operacion\");\r\n if (operacion.equals(\"insertarOferta\")) {\r\n try {\r\n insertarOferta(multi, request, response);\r\n } catch (ParseException ex) {\r\n Logger.getLogger(OfertasController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n\r\n }",
"@GetMapping(\"/profilepicture\")\n public ModelAndView viewUploadImage() {\n ModelAndView model = new ModelAndView();\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n Users user = userService.findByUsername(authentication.getName());\n Person getPerson = personService.findOne(user.person.getIdPerson()).get();\n\n\n System.out.println(getPerson.getImage().toString());\n\n\n\n //byte[] encoded = Base64.getEncoder().encode(getPerson.getImage().getBytes());\n\n model.addObject(\"person\", personService.findOne(user.person.getIdPerson()).get());\n model.setViewName(\"upload/profileimageupload\");\n return model;\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if(resultCode == RESULT_OK){\n Bitmap imagem = null;\n try {\n switch (requestCode){\n case SELECAO_GALERIA:\n Uri localImage = data.getData();\n imagem = MediaStore.Images.Media.getBitmap(getContentResolver(), localImage);\n break;\n }\n if(imagem != null){\n //configuração da imagem em Bitmap\n imageView.setImageBitmap(imagem);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n imagem.compress(Bitmap.CompressFormat.JPEG, 70, baos);\n byte[] dadosImagem = baos.toByteArray();\n\n //referência para pasta no Storage\n final StorageReference imagemRef = storageReference\n .child(\"imagens\")\n .child(\"servicos\")\n .child(idUserLogado)\n .child(imagem + \"jpeg\");\n\n //upload dos bytes da imagem\n UploadTask uploadTask = imagemRef.putBytes(dadosImagem);\n uploadTask.addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(NovoProdutoEmpresaActivity.this,\n \"Erro ao fazer o upload da imagem\", Toast.LENGTH_SHORT).show();\n }\n }).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(NovoProdutoEmpresaActivity.this,\n \"Sucesso ao fazer o upload da imagem\", Toast.LENGTH_SHORT).show();\n }\n });\n\n //recupera o link de download da imagem\n Task<Uri> urlTask = uploadTask.continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()){\n throw task.getException();\n }\n return imagemRef.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if(task.isSuccessful()){\n Uri downloadUri = task.getResult();\n\n //salva a url na string\n urlImagemSelecionada = downloadUri.toString();\n }\n }\n });\n\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\tLong mediaId = null;\n\t\tresponse.addHeader(\"Access-Control-Allow-Origin\", \"*\");\n\t\t\n\t\tif(request.getParameterMap().containsKey(\"mediaId\")) {\n\t\t\tmediaId = Long.parseLong(request.getParameter(\"mediaId\"));\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tlogger.info(\"Sending media information for id = \" + mediaId);\n\t\t\tresponse.setContentType(\"image/png\");\n\t\t\tFile f = new File(IMG_PATH + mediaId + \".png\");\n\t\t\tBufferedImage bi ;\n\t\t\tif(f.exists() && !f.isDirectory()) { \n\t\t\t\t bi = ImageIO.read(f);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tf = new File(IMG_PATH + 0 + \".png\");\n\t\t\t\tbi = ImageIO.read(f);\n\t\t\t}\n\t\t\tOutputStream out = response.getOutputStream();\n\t\t\tImageIO.write(bi, \"png\", out);\n\t\t\tout.close();\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t}\n\t\t\n\t}",
"private void SendToServer(Photo ph2) throws UnsupportedEncodingException {\n\t\t\t HttpPost httpPost = new HttpPost(SERVICE_URI+\"LoadPhoto\");\n\t\t\t\t\n\t\t \n\t\t\t httpPost.setHeader(\"Content-Type\", \"application/json; charset=UTF-8\"); \n\t\t\t HttpClient httpClient = new DefaultHttpClient(getHttpParameterObj(17000,17000));\n\t\t\t // Building the JSON object.\n\t\t\t\n\t\t\t com.google.gson.Gson gson = new GsonBuilder().disableHtmlEscaping().create();\n\t\t\t String json = gson.toJson(ph2);\n\n\t\t\t StringEntity entity = new StringEntity(json, HTTP.UTF_8);\n\t\t\t Log.d(\"WebInvoke\", \"data : \" + json.toString());\n\t\t\t\n\t\t\t \n\t\t\t httpPost.setEntity(entity);\n\t\t\t // Making the call.\n\t\t\t HttpResponse response = null;\n\t\t\ttry {\n\t\t\t\tresponse = httpClient.execute(httpPost);\n\t\t\t} catch (ClientProtocolException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t \n\t\t\t \n\t\t\t // Getting data from the response to see if it was a success.\n\t\t\t BufferedReader reader = null;\n\t\t\ttry {\n\t\t\t\treader = new BufferedReader(new InputStreamReader(response.getEntity().getContent(),\n\t\t\t\t\t\t \"UTF-8\"));\n\t\t\t} catch (IllegalStateException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t String jsonResultStr = null;\n\t\t\ttry {\n\t\t\t\tjsonResultStr = reader.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t \n\t\t\t Log.d(\"WebInvoke\", \"donnen deger : \" + jsonResultStr);\n\t\t}",
"public void onClick(ClickEvent event) {\n // sendNameToServer();\n Camera c = Camera.getCamera();\n if (!Camera.isSupported()) {\n GWT.log(\"Camera not supported!\");\n return;\n }\n c.getPictureFromCamera(new CameraCallback() {\n public void onSuccess(String picture) {\n GWT.log(\"picture=\" + picture);\n pictureDataHidden.setValue(picture);\n image.setUrl(\"data:image/jpeg;base64,\" + picture);\n }\n\n public void onFailure(String error) {\n GWT.log(\"getPictureFromCamera\" + error);\n }\n });\n }",
"public void onActivityResult(int requestCode,int resultCode,Intent data){\n if (resultCode == Activity.RESULT_OK)\n switch (requestCode){\n case GALLERY_REQUEST_CODE:\n if (Uri.parse(getRealPathFromURI(data.getData())) != null){\n /* File file = new File(Objects.requireNonNull\n (Uri.parse(getRealPathFromURI(data.getData())).getPath()));\n */\n //se specifica locatia din telefon unde se afla fisierul img\n cameraFilePath =getRealPathFromURI(data.getData());\n /*uploadToServer(Objects.requireNonNull\n (Uri.parse(getRealPathFromURI(data.getData())).getPath()));*/\n photo.setImageURI(Uri.parse(getRealPathFromURI(data.getData())));\n }\n\n break;\n case CAMERA_REQUEST_CODE:\n photo.setImageURI(Uri.parse(cameraFilePath));\n break;\n }\n }",
"@RequestMapping(value = \"/uploadicon\", method = RequestMethod.POST, consumes = \"multipart/form-data\")\r\n\tpublic String handleFormUpload(@RequestPart(\"file\") MultipartFile f, RedirectAttributes redirectAttributes) throws IOException {\n\t\tUser u = (User) session.getAttribute(\"user\");\r\n\t\t\r\n\t\tInputStream is = new BufferedInputStream(f.getInputStream());\r\n\t\tBufferedImage image = ImageIO.read(is);\r\n\t\tis.close();\r\n\t\t\r\n\t\t//if(image == null) {\r\n\t\t\t//response.put(\"success\", \"false\");\r\n\t\t\t//response.put(\"reason\", \"notimage\");\r\n\t\t//}\t\t\r\n\t\t//else {\r\n\t\tif(image != null) {\r\n\t\t\tImage scaled = image.getScaledInstance(512, 512, Image.SCALE_SMOOTH);\r\n\t\t\tBufferedImage bufferedScale = new BufferedImage(512, 512, BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics2D g2d = bufferedScale.createGraphics();\r\n\t\t g2d.drawImage(scaled, 0, 0, null);\r\n\t\t g2d.dispose();\r\n\r\n\t\t\tstorageService.store(bufferedScale,Integer.toString(u.getUserID())+\".png\");\r\n\t\t\t//response.put(\"success\", \"true\");\r\n\t\t}\r\n\t\treturn \"redirect:/users/\"+u.getUserID();\r\n\t\t//return ResponseEntity.ok(response);\r\n }",
"private void uploadImage(final Bitmap bitmap) {\n if(bitmap!=null) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n TextView responseText = findViewById(R.id.responseText);\n responseText.setText(\"Loading diagnosis...\");\n }\n });\n }\n\n VolleyMultipartRequest volleyMultipartRequest = new VolleyMultipartRequest(Request.Method.POST, URL,\n new Response.Listener<NetworkResponse>() {\n @Override\n public void onResponse(final NetworkResponse response) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n try {\n String json = new String(response.data, HttpHeaderParser.parseCharset(response.headers));\n TextView responseText = findViewById(R.id.responseText);\n responseText.setText(json);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n e.getMessage();\n }\n }\n });\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"GotError\",\"\"+error.getMessage());\n }\n }) {\n\n\n @Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n long imagename = System.currentTimeMillis();\n params.put(\"image\", new DataPart(imagename + \".png\", getFileDataFromDrawable(bitmap)));\n return params;\n }\n };\n\n volleyMultipartRequest.setRetryPolicy(new DefaultRetryPolicy(0, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n //adding the request to volley\n Volley.newRequestQueue(this).add(volleyMultipartRequest);\n }",
"private void getProfilePic()\n {\n String url= LoginActivity.base_url+\"src/users/\"+String.format(\"%s/profilepics/prof_pic\",makeName(Integer.parseInt(userInfo[4])))+\".jpg\";\n ImageRequest request=new ImageRequest(\n url,\n new Response.Listener<Bitmap>()\n {\n @Override\n public void onResponse(Bitmap response)\n {\n ((ImageView)findViewById(R.id.image)).setImageBitmap(response);\n //imageView.setImageBitmap(response);\n Log.d(\"volley\",\"succesful\");\n }\n }, 0, 0, null,\n new Response.ErrorListener()\n {\n @Override\n public void onErrorResponse(VolleyError e)\n {\n Log.e(\"voley\",\"\"+e.getMessage()+e.toString());\n }\n });\n RequestQueue request2 = Volley.newRequestQueue(getBaseContext());\n request2.add(request);\n }",
"@Override\n protected String doInBackground(Void... voids) {\n Requesthandler requestHandler = new Requesthandler();\n calendar = Calendar.getInstance();\n imageData = imageToString(bitmap);\n dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n date = dateFormat.format(calendar.getTime());\n\n //creating request parameters\n HashMap<String, String> params = new HashMap<>();\n params.put(\"username\", username);\n params.put(\"email\", email);\n params.put(\"password\", password);\n params.put(\"gender\", gender);\n params.put(\"since\", date);\n params.put(\"avatar\", imageData);\n\n //returing the response\n return requestHandler.sendPostRequest(URLs.URL_REGISTER, params);\n }",
"public ImagenLogica(){\n this.objImagen=new Imagen();\n //Creacion de rutas\n this.creaRutaImgPerfil();\n this.crearRutaImgPublicacion();\n \n }",
"private void ConsumirWS() {\n String url = \"https://pixabay.com/api/?key=12544769-ce772d6f6df4078b74b23c3cf&q=yellow+flowers&image_type=photo\";\n //Instanciar el objeto request para que sea agregado\n // a la cola de requests.\n JsonObjectRequest request = new JsonObjectRequest(\n Request.Method.GET, url, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n JSONArray jsonArray =\n response.getJSONArray(\"hits\");\n for(int i = 0; i < jsonArray.length(); i++){\n JSONObject objImagen\n = jsonArray.getJSONObject(i);\n vDatos.add(new Animales(objImagen.getString(\"user\"),\n objImagen.getString(\"webformatURL\")));\n\n }\n adapter.agregarElemento(vDatos);\n\n }catch (JSONException ex){\n ex.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n\n }\n }\n );\n mQueue.add(request);\n }",
"private void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n int width = 250;\n int height = 100;\n //vectorul de captcha-uri\n// char data[][] = {\n// { 'm', 'a', 'n', 'c', 'a', 'r', 'e' },\n// { 'b', 'e', 't', 'o', 'n' },\n// { 'f', 'r', 'i', 'g', 'i', 'd', 'e', 'r' },\n// { 's', 'u', 'p', 'e', 'r', 'm', 'a', 'n' },\n// { 'j', 'e', 't' }\n// };\n\n //folosim o imagine buffer pentru a desena captcha-ul\n BufferedImage bufImg = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n Graphics2D g2d = bufImg.createGraphics();\n Font font = new Font(\"Georgia\", Font.BOLD, 18);\n g2d.setFont(font);\n g2d.setColor(Color.WHITE);\n\n //folosim hint-uri ca sa crestam calitatea textului din poza\n RenderingHints rHints = new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n rHints.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n g2d.setRenderingHints(rHints);\n\n //desenam gradientul, pentru fundalul imaginii\n GradientPaint gPaint = new GradientPaint(0, 0, Color.BLUE, 0, height/2, Color.black, true);\n g2d.setPaint(gPaint);\n g2d.fillRect(0, 0, width, height);\n g2d.setColor(new Color(255, 153, 0));\n\n //numar random pt vectorul de captcha-uri\n Random rand = new Random();\n char data[][] = {{'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'}};\n for (int i = 0; i < 8; i++) {\n char r = rndChar();\n data[0][i] = r;\n }\n //int index = Math.abs(rand.nextInt()) % 5;\n int index = 0;\n //trimitem stringul la user sa stie sa compare input-ul de la user\n String captcha = String.copyValueOf(data[index]);\n request.getSession().setAttribute(\"captcha\", captcha);\n\n //desenam captcha-ul ales in imagine\n int x = 0, y = 0;\n for (int i = 0; i < data[index].length; i++) {\n x += 15 + Math.abs(rand.nextInt()) % 15;\n y = 45 + Math.abs(rand.nextInt()) % 20;\n g2d.drawChars(data[index], i, 1, x, y);\n }\n g2d.dispose();\n\n response.setContentType(\"image/png\");\n OutputStream os = response.getOutputStream();\n ImageIO.write(bufImg, \"png\", os);\n os.close();\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n String savePath = request.getServletContext().getRealPath(\"/\") + \"images\";\n File fileSaveDir=new File(savePath);\n if(!fileSaveDir.exists()){\n fileSaveDir.mkdir();\n }\n\n \n Part imagePart = request.getPart(\"photo\");\n String fileName = extractFileName(imagePart);\n String fileLocalPath = File.separator + fileName;\n imagePart.write(savePath + fileLocalPath);\n String description = request.getParameter(\"description\");\n \n Conexion c=new Conexion();\n Connection con=c.getConexion();\n CallableStatement cs = null;\n \n try{\n String query = \"call sp_pv_insertPost(?,?,1)\";\n cs = con.prepareCall(query);\n cs.setString(1, fileLocalPath);\n cs.setString(2, description);\n cs.execute(); \n }catch(SQLException e){\n e.printStackTrace();\n }finally{\n BDUtil.cerrarStatement(cs);\n c.cerrarConexion();\n }\n \n response.setContentType(\"text/plain\"); \n response.setCharacterEncoding(\"UTF-8\");\n response.getWriter().write(\"success\"); \n \n }",
"public void ImageUrlSendServer(){\n class sendData extends AsyncTask<Void, Void, String> {\n @Override\n protected void onPreExecute() {\n super.onPreExecute();\n }\n @Override\n protected void onPostExecute(String s) {\n super.onPostExecute(s);\n }\n @Override\n protected void onProgressUpdate(Void... values) {\n super.onProgressUpdate(values);\n }\n @Override\n protected void onCancelled(String s) {\n super.onCancelled(s);\n }\n @Override\n protected void onCancelled() {\n super.onCancelled();\n }\n @Override\n protected String doInBackground(Void... voids) {\n try {\n OkHttpClient client = new OkHttpClient();\n JSONObject jsonInput = new JSONObject();\n\n jsonInput.put(\"room_id\", roomID);\n jsonInput.put(\"image_url\", stuffRoomInfo.getImageUrl());\n jsonInput.put(\"og_title\", stuffRoomInfo.getOgTitle());\n Log.i(\"db\", stuffRoomInfo.getImageUrl());\n RequestBody reqBody = RequestBody.create(\n MediaType.parse(\"application/json; charset=utf-8\"),\n jsonInput.toString()\n );\n\n Request request = new Request.Builder()\n .post(reqBody)\n .url(imageUrls)\n .build();\n\n Response responses = null;\n responses = client.newCall(request).execute();\n responses.close();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }\n }\n sendData sendData = new sendData();\n sendData.execute();\n }",
"@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\n\t\t\t\t\t\tnew UriFactory().getHeadPortraitUrl());\n\t\t\t\tconnection = (HttpURLConnection) url.openConnection();\n\t\t\t\tconnection.setRequestMethod(\"POST\");\n\t\t\t\tconnection.setConnectTimeout(8000);\n\t\t\t\tconnection.setReadTimeout(8000);\n\t\t\t\tconnection.setDoOutput(true);\n\t\t\t\tconnection.setDoInput(true);\n\t\t\t\tInputStream in = connection.getInputStream();\n\t\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\t\tresponse = new StringBuilder();\n\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\tresponse.append(line);\n\t\t\t\t}\n\t\t\t\tString msg = JSONAnalysis(response.toString().trim());\n\t\t\t\tSystem.out.println(\"=======================\" + msg);\n\t\t\t\tUserDao user = new UserDao(context);\n\t\t\t\tString imgutl = user.detailImgUrl();\n\t\t\t\tString imageurl = msg + imgutl;\n\t\t\t\tSystem.out.println(imageurl);\n\t\t\t\tMessage message = new Message();\n\t\t\t\tBundle data = new Bundle();\n\t\t\t\tdata.putString(\"imgurl\", imageurl);\n\t\t\t\tmessage.what = 1;\n\t\t\t\tmessage.setData(data);\n\t\t\t\thandler1.sendMessage(message);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tif (reader != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treader.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (connection != null) {\n\t\t\t\t\tconnection.disconnect();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"private void storeImage(Boolean hasImage){\n if (hasImage) {\r\n RequestQueue queue = Volley.newRequestQueue(getBaseContext());\r\n final String command = getString(R.string.server_address) + \"/\" + getString(R.string.get_image_server)\r\n + \"username=\" + username;\r\n// Request a string response from the provided URL.\r\n StringRequest stringRequest = new StringRequest(Request.Method.GET, command,\r\n new Response.Listener<String>() {\r\n @Override\r\n public void onResponse(String response) {\r\n // Display the first 500 characters of the response string.\r\n //Log.d(\"ddd\", \"command :\" + command);\r\n //Log.d(\"ddd\", \"writing :\" + response);\r\n loadImageInGUI(response);\r\n Utility.writeOnPreferences(activity, \"image\", response);\r\n Utility.reloadActivity(activity);\r\n\r\n }\r\n }, new Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError error) {\r\n //Log.d(\"aaa\", error.toString());\r\n }\r\n\r\n });\r\n\r\n// Add the request to the RequestQueue.\r\n queue.add(stringRequest);\r\n }\r\n }",
"private void uploadImage(final String userID){\n\n final ProgressDialog loading = ProgressDialog.show(imageUpload.this,\"Uploading...\",\"Please wait...\",false,false);\n StringRequest stringRequest = new StringRequest(Request.Method.POST, UPLOAD_URL,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String s) {\n db.fotoUpdate(uid);\n //Disimissing the progress dialog\n loading.dismiss();\n //Showing toast message of the response\n Toast.makeText(imageUpload.this, \"Foto profil kamu berhasil di perbaharui\", Toast.LENGTH_LONG).show();\n\n if (fromActivity.equals(\"Main\")){\n Intent m = new Intent(imageUpload.this, MainActivity.class);\n m.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(m);\n }\n else{\n session.changeValueRegister(\"upload\",1);\n Intent q = new Intent(imageUpload.this, questionsActivity.class);\n startActivity(q);\n finish();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError volleyError) {\n //Dismissing the progress dialog\n loading.dismiss();\n\n //Showing toast\n Toast.makeText(imageUpload.this, \"Silakan cek koneksi anda\", Toast.LENGTH_LONG).show();\n }\n }){\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n //Converting Bitmap to String\n String image = getStringImage(bitmap);\n\n //Creating parameters\n Map<String,String> params = new Hashtable<String, String>();\n\n //Adding parameters\n params.put(\"image\", image);\n params.put(\"userid\",userID);\n params.put(\"jodiUploadImg\",\"\");\n\n //returning parameters\n return params;\n }\n };\n\n //Creating a Request Queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n\n //Adding request to the queue\n requestQueue.add(stringRequest);\n stringRequest.setRetryPolicy(new DefaultRetryPolicy(60000, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n\n\n /** if (fromActivity.equals(\"Main\")){\n Intent m = new Intent(this, MainActivity.class);\n m.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(m);\n }\n else{\n session.changeValueRegister(\"upload\",1);\n Intent q = new Intent(this, questionsActivity.class);\n startActivity(q);\n } **/\n }",
"private void SendMassage(final Bitmap bitmap)\n {\n progressDialog = new ProgressDialog(getActivity());\n progressDialog.setMessage(\"Loading...\");\n progressDialog.setCancelable(false);\n progressDialog.show();\n\n String postchatURL = \"https://www.planetzoom.co.in/api/v1/chat/\"+ChatId;\n Log.e(\"PreviewFile\",postchatURL);\n\n //our custom volley request\n VolleyMultipartRequest volleyMultipartRequest = new VolleyMultipartRequest(Request.Method.POST, postchatURL,\n new Response.Listener<NetworkResponse>() {\n @Override\n public void onResponse(NetworkResponse response)\n {\n // pojo_listArrayList.clear();\n progressDialog.dismiss();\n Log.d(\"StringRequest--->\", String.valueOf(response));\n JSONObject jsonObject = null;\n try {\n jsonObject = new JSONObject(new String(response.data));\n Log.d(\"jsonObjectFreciew--->\", jsonObject.toString());\n if (jsonObject.getInt(Keys.success) == 1)\n {\n Toast.makeText(getActivity(), \"success\", Toast.LENGTH_SHORT).show();\n InputMethodManager inputMethodManager = (InputMethodManager) getActivity().getSystemService(INPUT_METHOD_SERVICE);\n if (getActivity().getCurrentFocus() != null)\n {\n inputMethodManager.hideSoftInputFromWindow( getActivity().getCurrentFocus().getWindowToken(), 0);\n }\n JSONObject jsonObjectData = jsonObject.getJSONObject(Keys.data);\n JSONObject jsonObjectcnsersation = jsonObjectData.getJSONObject(Keys.conversation);\n getActivity().onBackPressed();\n }\n else if (jsonObject.getInt(Keys.success) == 0)\n {\n JSONObject jsonObject_errors = jsonObject.getJSONObject(Keys.errors);\n Log.d(\"ggg\",jsonObject_errors.toString());\n Toast.makeText(getActivity(), \"\"+jsonObject_errors, Toast.LENGTH_SHORT).show();\n }\n } catch (JSONException e)\n {\n\n e.printStackTrace();\n Toast.makeText(getActivity(), \"exeption\"+e.toString(), Toast.LENGTH_SHORT).show();\n Log.d(\"Exeption_file_preview\",e.toString());\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error)\n {\n Log.d(\"Efforfile\",error.toString());\n Log.e(\"Efforfile\",error.toString());\n Toast.makeText(getActivity(), \"Error\"+error, Toast.LENGTH_SHORT).show();\n progressDialog.dismiss();\n InputMethodManager inputMethodManager = (InputMethodManager) getActivity().getSystemService(INPUT_METHOD_SERVICE);\n if (getActivity().getCurrentFocus() != null)\n {\n inputMethodManager.hideSoftInputFromWindow( getActivity().getCurrentFocus().getWindowToken(), 0);\n }\n\n Toast.makeText(getActivity(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }) {\n\n /*\n * If you want to add more parameters with the image\n * you can do it here\n * here we have only one parameter with the image\n * which is tags\n * */\n @Override\n protected Map<String, String> getParams() throws AuthFailureError\n {\n Map<String, String> params = new HashMap<>();\n // params.put(Keys.message,MsgEditText.getText().toString());\n // params.put(Keys.message, String.valueOf(bitmap));\n params.put(Keys.type,\"1\");\n\n return params;\n }\n\n //This is for Headers If You Needed\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(Keys.Authorization,\"Bearer \"+TripManagement.readValueFromPreferences(getActivity(),\"accesstoken\",\"\"));\n return params;\n }\n\n /*\n * Here we are passing image by renaming it with a unique name\n * */\n @Override\n protected Map<String, DataPart> getByteData()\n {\n Map<String, DataPart> params = new HashMap<>();\n long imagename = System.currentTimeMillis();\n params.put(Keys.message, new DataPart(imagename + \".png\", getFileDataFromDrawable(bitmap)));\n return params;\n }\n };\n\n volleyMultipartRequest.setRetryPolicy(new RetryPolicy() {\n @Override\n public int getCurrentTimeout() {\n return 20000;\n }\n\n @Override\n public int getCurrentRetryCount() {\n return 20000;\n }\n\n @Override\n public void retry(VolleyError error) throws VolleyError {\n\n }\n });\n\n //adding the request to volley\n Volley.newRequestQueue(getActivity()).add(volleyMultipartRequest);\n }",
"private void makeUploadRequest(final Map<String, String> params){\n\t\tString url = mContext.getString(R.string.development_url)+\"index.php?type=uploadImage\";\n\n\t\t// Request a string response from the provided URL.\n\t\tStringRequest stringRequest = new StringRequest(Request.Method.POST, url,\n\t\t new Response.Listener<String>() {\n\t\t\t@Override\n\t\t\tpublic void onResponse(String response) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.v(\"ken\", \"Upload image response: \"+response);\n\t\t\t\tif(mOnUploadSuccessListener != null)\n\t\t\t\t\tmOnUploadSuccessListener.onUploadSuccess(response);\n\t\t\t}\n\t\t}, new Response.ErrorListener() {\n\t\t @Override\n\t\t public void onErrorResponse(VolleyError error) {\n\t\t \tLog.v(\"ken\", \"error response after upload: \");\n\t\t }\n\t\t}){\n\n\t\t\t@Override\n\t\t\tprotected Map<String, String> getParams() throws AuthFailureError {\n\t\t\t\treturn params;\n\t\t\t}\n\n\n\t\t};\n\t\t\n\t\t// Add the request to the RequestQueue.\n\t\tVolleySingleton.getInstance(mContext).addToRequestQueue(stringRequest);\n\t\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n throws ServletException, IOException {\n req.setCharacterEncoding(\"UTF-8\");\r\n \r\n String actType = req.getParameter(\"actType\");\r\n System.out.println(\"actType == \" + actType);\r\n\r\n JSONObject json = new JSONObject();\r\n resp.setContentType(\"text/json;charset=UTF-8\");\r\n ActivityPhotoDAO dao = new ActivityPhotoDAO();\r\n List<ActivityPhotoVO> photoTypeList = dao.getAllActivityPhotoByType(actType);\r\n System.out.println(photoTypeList.size());\r\n String[] photos = new String[photoTypeList.size()];\r\n int i = 0;\r\n for(ActivityPhotoVO activityPhotoVO : photoTypeList) {\r\n photos[i] = activityPhotoVO.getPhotoURL();\r\n i++;\r\n }\r\n JSONArray jsonArray = JSONArray.fromObject(photos);\r\n json.put(\"photos\", jsonArray);\r\n resp.getWriter().print(json.toString());\r\n }",
"public interface LoginService {\n\n @FormUrlEncoded\n @POST(\"/\")\n BaseObserver<BaseBean<List<LoginBean>>> getLoginImage(@Field(\"/\") String imgUrl);\n}",
"public static void updateImageRequest(final Context context, final String businessId, final Bitmap businessBitMapImage) {\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n businessBitMapImage.compress(Bitmap.CompressFormat.JPEG, 100, byteArrayOutputStream);\n byte[] imageBytes = byteArrayOutputStream.toByteArray();\n final String businessImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);\n //send an HTTPRequest to the server\n final RequestQueue httpRequestQueue = Volley.newRequestQueue(context);\n final StringRequest httpRequest = new StringRequest(Request.Method.POST, (MainActivity.serverURL + \"update/update_image.php\"),\n //success, the request responded successfully!\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n httpRequestQueue.stop();\n }\n },\n //error, the request responded with a failure...\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(context, \"An error occurred with your internet...\", Toast.LENGTH_LONG).show();\n error.printStackTrace();\n httpRequestQueue.stop();\n }\n }\n ) {\n //POST variables to send to the request\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"businessImage\", businessImage);\n return params;\n }\n //header values to send to the request\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }\n };\n httpRequestQueue.add(httpRequest);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\tString titolo = null;\n\t\tString descrizione = null;\n\t\tfloat prezzo_iniziale = 0;\n\t\tfloat minimo_rialzo = 0;\n\t\tDate data_apertura = null;\n\t\tDate data_scadenza = null;\n\t\t// immagine da aggiustare\n\t\tString immagine = null;\n\t\ttry {\n\t\t\timmagine = generateBase64Image(request, response);\n\t\t} catch (IOException | ServletException e) {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t\tresponse.getWriter().println(\"errore nel parsing dell'immagine\");\n\t\t\treturn;\n\t\t}\n\n\t\t// prendo i parametri dalla post della pagine html\n\t\t// try {\n\t\ttitolo = StringEscapeUtils.escapeJava(request.getParameter(\"nome\"));\n\t\tdescrizione = StringEscapeUtils.escapeJava(request.getParameter(\"descrizione\"));\n\n\t\ttry {\n\t\t\tprezzo_iniziale = Float.parseFloat(request.getParameter(\"prezzo_iniziale\").toString());\n\t\t} catch (NumberFormatException ne) {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t\tresponse.getWriter().println(\"prezzo iniziale non e' un numero\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tminimo_rialzo = Float.parseFloat((String) request.getParameter(\"minimo_rialzo\"));\n\t\t} catch (NumberFormatException ne) {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t\tresponse.getWriter().println(\"minimo rialzo deve essere un numero \");\n\t\t\treturn;\n\t\t}\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\t\ttry {\n\t\t\tdata_apertura = (Date) sdf.parse(request.getParameter(\"data_apertura\"));\n\t\t} catch (ParseException e1) {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t\tresponse.getWriter().println(\"data apertura nel formato non corretto \");\n\t\t\treturn;\n\t\t}\n\t\tSimpleDateFormat sdf2 = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\t\ttry {\n\t\t\tdata_scadenza = (Date) sdf2.parse(request.getParameter(\"data_scadenza\"));\n\t\t} catch (ParseException e1) {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t\tresponse.getWriter().println(\"data chiusura non corretta\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (prezzo_iniziale < 0) {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t\tresponse.getWriter().println(\"Incorrect param values prezzo iniziale can not be < 0 \");\n\t\t\treturn;\n\t\t}\n\t\tif (minimo_rialzo < 0) {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t\tresponse.getWriter().println(\"Incorrect param values minimo rialzo can not be < 0 \");\n\t\t\treturn;\n\t\t}\n\t\tif (data_scadenza.before(data_apertura)) {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t\tresponse.getWriter().println(\"Incorrect param date data scadenza can not be before data apertura \");\n\t\t\treturn;\n\t\t}\n\t\tif (data_apertura.before((Date) request.getSession().getAttribute(\"timestampLogin\"))) {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t\tresponse.getWriter().println(\"Incorrect param date data apertura can not be before login\");\n\t\t\treturn;\n\t\t}\n\n\t\t// creo l'asta del Database\n\t\t// recupero utete dalla sessione ma non va ===== Utente utente = (Utente)\n\t\t\n\t\t// aste aperte\n\t\tAstaApertaDao dao = new AstaApertaDao(connection);\n\t\tUtente utente = (Utente) request.getSession().getAttribute(\"utente\");\n\n\t\ttry {\n\t\t\tdao.creaAsta(titolo, descrizione, prezzo_iniziale, minimo_rialzo, utente.getId_utente(), data_apertura,\n\t\t\t\t\tdata_scadenza, immagine);\n\t\t} catch (SQLException e) {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t\tresponse.getWriter().println(\"non riesco a creare l'asta\");\n\t\t\treturn;\n\t\t} catch (ParseException e) {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t\tresponse.getWriter().println(\"errore durante il parsing della data\");\n\t\t\treturn;\n\t\t}\n\n\t\tresponse.setStatus(HttpServletResponse.SC_OK);\n\t\tresponse.setContentType(\"application/json\");\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\n\t}",
"@Override\n\tpublic void run() {\n\t\ttry {\n\n\n\t\t\tBitmap result = ImageService.getImage(ac,urlparams);\n\t\t\tLog.i(\"tan8\",\"url\"+urlparams);\n\t\t\tMessage ms = Message.obtain();\n\t\t\tms.what = what;\n\t\t\tms.obj = result;\n\t\t\tif (handler != null) {\n\t\t\t\thandler.sendMessage(ms);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();",
"public interface CaptureImgService {\n\n String captureImg(HttpServletRequest re, String url, String size) throws IOException;\n}",
"@Override\n public void run() {\n ImageService.uploadProductImage(sequentialClient, gtin, imagePath, new\n PLYCompletion<ProductImage>() {\n @Override\n public void onSuccess(ProductImage result) {\n Log.d(\"UploadPImageCallback\", \"New image for product with GTIN \" + gtin + \" \" +\n \"uploaded\");\n LoadingIndicator.hide();\n if (isNewProduct) {\n SnackbarUtil.make(getActivity(), getView(), R.string.image_uploaded_more_info,\n Snackbar.LENGTH_LONG).show();\n } else {\n SnackbarUtil.make(getActivity(), getView(), R.string.image_uploaded, Snackbar\n .LENGTH_LONG).show();\n }\n DataChangeListener.imageCreate(result);\n }\n\n @Override\n public void onPostSuccess(ProductImage result) {\n loadProductImage(imagePath, productImage);\n }\n\n @Override\n public void onError(PLYAndroid.QueryError error) {\n Log.d(\"UploadPImageCallback\", error.getMessage());\n LoadingIndicator.hide();\n SnackbarUtil.make(getActivity(), getView(), error.getMessage(), Snackbar\n .LENGTH_LONG).show();\n }\n });\n }",
"@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n String image = getStringImage(bitmap);\n\n //Creating parameters\n Map<String,String> params = new Hashtable<String, String>();\n\n //Adding parameters\n params.put(\"image\", image);\n params.put(\"userid\",userID);\n params.put(\"jodiUploadImg\",\"\");\n\n //returning parameters\n return params;\n }",
"public void done(View view){\n RequestQueue req = Volley.newRequestQueue(this);\n String url = imageSrc.getText().toString();\n ImageRequest imageReq = new ImageRequest(url, new Response.Listener<Bitmap>() {\n @Override\n public void onResponse(Bitmap response) {\n imageView.setImageBitmap(response);\n }\n }, 0, 0, null, Bitmap.Config.RGB_565, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(MainActivity2.this, \"Invalid image URL, try another one!\", Toast.LENGTH_LONG).show();\n }\n });\n req.add(imageReq);\n\n //inserting data in our Realtime Database\n reference = FirebaseDatabase.getInstance().getReference(id.getText().toString());\n reference.child(\"imagesrc\").setValue(imageSrc.getText().toString());\n reference.child(\"latitude\").setValue(lat.getText().toString());\n reference.child(\"longitude\").setValue(lon.getText().toString());\n reference.child(\"description\").setValue(description.getText().toString());\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n }",
"@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n String name;\n String email;\n String password;\n String imagen;\n\n name = campoName.getText().toString().toUpperCase();\n email = campoEmail.getText().toString().toLowerCase();\n password = campoPassword.getText().toString().toUpperCase();\n\n imagen = convertirImgString(bitmaphoto);\n\n //Llenamos la structura de datos getParams, para enviar webservices\n Map<String,String> parametros=new HashMap<>();\n parametros.put(\"id\",\"\");\n parametros.put(\"name\",name);\n parametros.put(\"email\",email);\n parametros.put(\"password\",password);\n\n parametros.put(\"imagen\",imagen);\n return parametros;\n }",
"@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n String name;\n String email;\n String password;\n String imagen;\n\n name = campoName.getText().toString().toUpperCase();\n email = campoEmail.getText().toString().toLowerCase();\n password = campoPassword.getText().toString().toUpperCase();\n\n imagen = convertirImgString(bitmaphoto);\n\n //Llenamos la structura de datos getParams, para enviar webservices\n Map<String,String> parametros=new HashMap<>();\n parametros.put(\"id\",\"\");\n parametros.put(\"name\",name);\n parametros.put(\"email\",email);\n parametros.put(\"password\",password);\n\n parametros.put(\"imagen\",imagen);\n return parametros;\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (ClassNotFoundException ex) {\r\n } catch (JSONException ex) {\r\n Logger.getLogger(ImageObservation.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"private Bitmap postBitmap(Post p) {\n byte[] loadedBytes = Base64.decode(p.getImageURL(), Base64.DEFAULT);\n Bitmap loadedBitmap = BitmapFactory.decodeByteArray(loadedBytes, 0, loadedBytes.length);\n return loadedBitmap;\n }",
"private void abrirGaleria() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n //startActivityForResult recibe dos parametros, el intent que se inicializo anteriormente\n //y tambien un numero request que puede ser un numero entero que dice que va a ejecutar el usuario\n startActivityForResult(intent,CODIGO_GALERIA);\n }",
"Map getImageCode(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;",
"private void guardarFoto() {\n if (foto != null && is != null) {\n\n Image foto_Nueva;\n foto_Nueva = foto.getScaledInstance(frmPersona.getLblFoto().getWidth(), frmPersona.getLblFoto().getHeight(), Image.SCALE_SMOOTH);\n frmPersona.getLblFoto().setIcon(new ImageIcon(foto_Nueva));\n cancelarFoto();\n ctrFrmPersona.pasarFoto(is);\n } else {\n JOptionPane.showMessageDialog(vtnWebCam, \"Aun no se a tomado una foto.\");\n }\n\n }",
"@Override\n protected String doInBackground(Bitmap... params) {\n Bitmap bitmap = params[0];\n RequestBody req = new MultipartBody.Builder().setType(MultipartBody.FORM)\n .addFormDataPart(\"encoded_image\", \"\", RequestBody.create(MEDIA_TYPE_PNG, tobyteArray(bitmap))).build();\n\n Log.d(\"postFlow_request_body\", req.toString());\n\n Request request = new Request.Builder()\n .url(\"https://www.google.com/searchbyimage/upload\")\n .post(req)\n .build();\n Log.d(\"postFlow_request\", request.toString());\n try (Response response = client.newCall(request).execute()) {\n //if (!response.isSuccessful()) throw new IOException(\"Unexpected code \" + response);\n\n Log.d(\"postFlow_client\", request.toString());\n\n Headers responseHeaders = response.headers();\n\n for (int i = 0; i < responseHeaders.size(); i++) {\n Log.d(\"postFlow_loop\", i + responseHeaders.name(i) + \": \" + responseHeaders.value(i));\n if (responseHeaders.name(i).toString().equals(\"location\"))\n return responseHeaders.value(i);\n }\n\n Log.d(\"postFlow_response\", response.toString());\n\n return response.body().string();\n } catch (IOException e) {\n e.printStackTrace();\n Log.d(\"postFlow_catch\", e.toString());\n }\n Log.d(\"postFlow_task_over\", request.toString());\n\n return \"\";\n }",
"private void setPhotoAttcher() {\n\n }",
"public void service(HttpServletRequest req, HttpServletResponse res)\n throws IOException, ServletException {\n ServletOutputStream out = null;\n DeliverableImage aImage = null;\n MailingComponent comp = null;\n \n if(cacheMap == null) { \n cacheMap = (TimeoutLRUMap) WebApplicationContextUtils.getWebApplicationContext(this.getServletContext()).getBean(\"imageCache\");\n }\n if(req.getParameter(\"ci\") == null || req.getParameter(\"mi\") == null || req.getParameter(\"name\") == null) {\n return;\n }\n \n if(req.getParameter(\"name\").length() == 0) {\n return;\n }\n \n String cacheKey = req.getParameter(\"ci\") + \"-\" + req.getParameter(\"mi\") + \"-\" + req.getParameter(\"name\");\n aImage = (DeliverableImage) cacheMap.get(cacheKey);\n \n if(aImage == null) {\n try {\n MailingComponentDao mDao = (MailingComponentDao) WebApplicationContextUtils.getWebApplicationContext(this.getServletContext()).getBean(\"MailingComponentDao\");\n comp = mDao.getMailingComponentByName(Integer.parseInt(req.getParameter(\"mi\")), Integer.parseInt(req.getParameter(\"ci\")), req.getParameter(\"name\"));\n } catch (Exception e) {\n logger.error(\"Exception: \"+e, e);\n return;\n }\n \n if(comp != null) {\n aImage = new DeliverableImage();\n aImage.mtype = comp.getMimeType();\n aImage.imageData = comp.getBinaryBlock();\n cacheMap.put(cacheKey, aImage);\n if (logger.isDebugEnabled()) logger.debug(\"added to cache: \"+cacheKey);\n } else {\n aImage = new DeliverableImage();\n aImage.mtype = \"text/html\";\n aImage.imageData = \"image not found\".getBytes();\n// cacheMap.put(cacheKey, aImage);\n if (logger.isDebugEnabled()) logger.debug(\"added not found to cache: \"+cacheKey);\n }\n }\n \n if(aImage != null) {\n try {\n res.setContentType(aImage.mtype);\n out = res.getOutputStream();\n out.write(aImage.imageData);\n out.flush();\n out.close();\n } catch (Exception e) {\n logger.error(e.getMessage());\n }\n }\n }",
"private void SubirFotoUsuario(byte[] bDatos, String nombre)\n {\n // Si no hay datos, salimos\n if (bDatos == null)\treturn ;\n\n // Establecemos los parametros\n RequestParams params = new RequestParams();\n params.put(\"archivo\", new ByteArrayInputStream(bDatos), \"imagen.jpg\");\n params.put(\"directorio\", \"Usuarios\");\n params.put(\"nombre\", nombre);\n\n // Realizamos la petición\n cliente.post(getActivity(), Helpers.URLApi(\"subirimagen\"), params, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n // Obtenemos el objeto JSON\n JSONObject objeto = Helpers.ResponseBodyToJSON(responseBody);\n\n // Si está OK\n if (objeto.isNull(\"Error\"))\n {\n // Si tenemos el Google Play Services\n if (GCMRegistrar.checkPlayServices(getActivity()))\n // Registramos el ID del Google Cloud Messaging\n GCMRegistrar.registrarGCM(getActivity());\n\n // Abrimos la ventana de los ofertas\n Helpers.LoadFragment(getActivity(), new Ofertas(), \"Ofertas\");\n }\n else\n {\n try {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), objeto.getString(\"Error\"));\n }\n catch (Exception ex) { }\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), getString(R.string.failuploadphoto));\n }\n });\n }",
"@Override\n\tpublic ResponseEntity<?> deletar(@Valid ProdutoImagem objeto,\n\t\tHttpServletRequest request) {\n\t\treturn null;\n\t}",
"public StreamedContent getPhoto(Patient p) {\n FacesContext context = FacesContext.getCurrentInstance();\n if (context.getRenderResponse()) {\n return new DefaultStreamedContent();\n } else if (p == null) {\n return new DefaultStreamedContent();\n } else {\n if (p.getId() != null && p.getBaImage() != null) {\n //////System.out.println(\"giving image\");\n InputStream targetStream = new ByteArrayInputStream(p.getBaImage());\n StreamedContent str = DefaultStreamedContent.builder().contentType(p.getFileType()).name(p.getFileName()).stream(() -> targetStream).build();\n return str;\n// return new DefaultStreamedContent(new ByteArrayInputStream(p.getBaImage()), p.getFileType(), p.getFileName());\n } else {\n return new DefaultStreamedContent();\n }\n }\n\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n //Muestra un Snackbar informando al usuaario del error\n Snackbar.make(ivFotoPerfil,\"Error al subir la imagen al servidor: \"\n + e.getMessage(),\n Snackbar.LENGTH_LONG).show();\n }",
"@Override\r\n\t\tprotected String doInBackground(String... params) {\n\t\t\tString filePath = doFileUpload(params[1]);\r\n\t\t\tif(filePath!=null){\r\n\t\t\t\tString abd = imService.updateImage(params[0], filePath);\r\n\t\t\t\tLog.e(\"IMAGE TAG\",\" \"+abd);\r\n\t\t\t}\r\n\t\t\t//String abd = imService.updateImage(params[0], params[1]);\r\n\t\t\t//Log.e(\"IMAGE TAG\",\" \"+abd);\r\n\t\t\treturn params[1];\r\n\t\t}",
"public void onActivityResult(int requestCode,int resultCode,Intent data){\n if (resultCode == Activity.RESULT_OK)\n switch (requestCode){\n case GALLERY_REQUEST_CODE:\n //data.getData return the content URI for the selected Image\n Uri selectedImage = data.getData();\n String[] filePathColumn = { MediaStore.Images.Media.DATA };\n // Get the cursor\n Cursor cursor = getContentResolver().query(selectedImage, filePathColumn, null, null, null);\n // Move to first row\n cursor.moveToFirst();\n //Get the column index of MediaStore.Images.Media.DATA\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n //Gets the String value in the column\n String imgDecodableString = cursor.getString(columnIndex);\n cursor.close();\n Log.d(gallery.class.getSimpleName(), \"imgDecodableString : \" + imgDecodableString);\n uploadToServer(imgDecodableString);\n break;\n case CAMERA_REQUEST_CODE:\n Log.d(gallery.class.getSimpleName(), \"cameraFilePath : \" + cameraFilePath);\n uploadToServer(cameraFilePath);\n break;\n }\n }",
"private void KirimImage(){\n try {\n DatagramSocket clientsocket=new DatagramSocket(portimage);\n byte[] receivedata = new byte[92024];\n DatagramPacket kirim = new DatagramPacket(receivedata, receivedata.length);\n clientsocket.receive(kirim); \n byte[] buff = kirim.getData();\n \n String pesan = new String(buff, 0, buff.length);\n pesan=pesan.trim();\n// System.out.println(\"pesan = \" + pesan);\n \n if (pesan.equalsIgnoreCase(\"stop\")) {\n clientsocket.close();\n System.exit(0);\n } else {\n InputStream in = new ByteArrayInputStream(buff);\n BufferedImage img = ImageIO.read(in);\n ImageIO.write(img, \"jpg\", new File(\"D:\\\\NikokMenerima.jpg\"));\n ImageIcon set = new ImageIcon(img);\n Images.setIcon(set);\n clientsocket.close(); }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException, NamingException, SQLException, ParserConfigurationException, org.xml.sax.SAXException {\n Map data= new HashMap();\n TrascrizioneDAOImplements t=new TrascrizioneDAOImplements();\n UtenteDAOImplements u=new UtenteDAOImplements();\n NotificaDAOImplements n=new NotificaDAOImplements();\n HttpSession s = SecurityLayer.checkSession(request);\n Database.connect();\n String email=u.getUtenteSingolo((int) s.getAttribute(\"userid\")).getEmail(); \n if (!isNull(s) && ((String)s.getAttribute(\"username\")).equals(email+\"stafftrascrittore\")) {\n Immagine image = null;\n String opera=request.getParameter(\"opera\");\n int immagine = (request.getParameter(\"npg\") == null) ? 99999 : Integer.parseInt(request.getParameter(\"npg\"));\n if(!isNull(opera) && (immagine!=99999)){\n OperaDAOImplements o=new OperaDAOImplements();\n ImmagineDAOImplements i=new ImmagineDAOImplements();\n Opera op=o.getOperaSingola(opera);\n image=i.getImmagineSingola(op.getId(), immagine);\n data.put(\"opera\",op);\n data.put(\"immagine\",image);\n data.put(\"staff\",\"Trascrizioni\");\n }\n if(!isNull(image)){model.transfer_objects.Trascrizione tr=t.getTrascrizioneImmagine(image.getId());\n if(!isNull(tr)){\n File file=new File(getServletContext().getRealPath(\"\")+\"Trascrizioni/teicontainer.xml\");\n FileUtils.writeStringToFile(file,tr.getFile(),\"UTF-8\");\n data.put(\"trascrizione\",\"\\\"Trascrizioni/teicontainer.xml\\\"\");\n }else data.put(\"trascrizione\",\"\\\"Trascrizioni/teistart.xml\\\"\");\n data.put(\"opera\",\"\\\"\"+opera+\"\\\"\");\n }\n \n //gestico ricezione ajax\n if(\"XMLHttpRequest\".equals(request.getHeader(\"X-Requested-With\"))){\n String x=request.getParameter(\"xmlString\");\n int npg=Integer.parseInt(request.getParameter(\"npg\"));\n JSONObject obj = null;\n if(validateWithIntXSDUsingDOM(x)){\n model.transfer_objects.Trascrizione tr=t.getTrascrizioneImmagine(npg);\n data.put(\"file\",x);\n t.updateTrascrizione(data,\"immagine=\"+Integer.parseInt(request.getParameter(\"img\")));\n try {\n obj = new JSONObject().put(\"success\",true);\n } catch (JSONException ex) {\n Logger.getLogger(Trascrizione.class.getName()).log(Level.SEVERE, null, ex);\n }\n try (PrintWriter out = response.getWriter()) { \n out.print(obj);\n }\n Database.close();\n return;\n }else{try {\n obj = new JSONObject().put(\"success\",false).put(\"alert\",error.replace(\"è\", \"è\").replace(\"È\",\"È\").replace(\"à\",\"à\"));\n } catch (JSONException ex) {\n Logger.getLogger(Trascrizione.class.getName()).log(Level.SEVERE, null, ex);\n }\n try (PrintWriter out = response.getWriter()) { \n out.print(obj);\n }\n Database.close();\n return;\n }\n }\n \n if(!isNull(request.getParameter(\"trascrittore\"))){\n int img=Integer.parseInt(request.getParameter(\"img\"));\n File xml=new File(getServletContext().getRealPath(\"\")+\"Trascrizioni/teistart.xml\");\n if(t.addTrascrizione(new model.transfer_objects.Trascrizione(FileUtils.readFileToString(xml, \"UTF-8\"),false,img))){\n Notifica nt=new Notifica(\n Integer.parseInt(request.getParameter(\"trascrittore\")),\n \"Trascrizione Iniziata\",\n t.getTrascrizioneImmagine(img).getId());\n n.addNotifica(\"notifiche_trascrizione\", nt);\n }}\n \n Database.close();\n \n FreeMarker.process(\"back_editor.html\", data, response, getServletContext());\n }else{ Database.close(); action_error(request,response);}\n \n }",
"private void uploadToServer(String filePath) {\n myProgressBar.setVisibility(View.VISIBLE);\n File file = new File(filePath);\n RequestBody filename = RequestBody.create(MediaType.parse(\"text/plain\"), file.getName());\n RequestBody requestFile = RequestBody.create(MediaType.parse(getActivity().getContentResolver().getType(imageUri)), file);\n MultipartBody.Part multipartBody = MultipartBody.Part.createFormData(\"file\", file.getName(), requestFile);\n\n Call<Prediction> responseBodyCall = uploadAPIs.uploadImage(\"127.0.0.1\", 12, Build.SERIAL, filename,multipartBody);\n\n responseBodyCall.enqueue(new Callback<Prediction>() {\n @Override\n public void onResponse(Call<Prediction> call, Response<Prediction> response) {\n myProgressBar.setVisibility(View.GONE);\n btn_predict.setVisibility(View.VISIBLE);\n btn_photo.setVisibility(View.VISIBLE);\n if(tv_res.getAnimation()!=null)\n tv_res.getAnimation().cancel();\n float pred = Float.parseFloat(response.body().getPred()) * 100;\n float positive = 100-pred;\n String pos = \"0\";\n String resume=\"\";\n if(pred<50.0){\n tv_res.setTextColor(Color.GREEN);\n tv_res.setText(getString(R.string.allwell));\n tv_resume.setText(getString(R.string.nothingbad));\n resume=getString(R.string.resume_allwell);\n }else{\n pos = \"1\";\n tv_res.setTextColor(Color.RED);\n tv_res.setText(getString(R.string.result_cancer));\n tv_resume.setText(getString(R.string.cancerdetected));\n resume=getString(R.string.resume_allbad);\n }\n tv_pred.setText(rootView.getResources().getString(R.string.cancerdetection) + \" \"+ pred + \"%\");\n tv_total.setText(rootView.getResources().getString(R.string.negativecancer) + \" \"+ positive + \"%\");\n tv_policy.setText(getString(R.string.policy));\n btn_chart.setVisibility(View.VISIBLE);\n String timeStamp =\n new SimpleDateFormat(\"yyyy MM dd - HH:mm:ss\",\n Locale.getDefault()).format(new Date());\n if(newAlbum)\n idalbum = dbPreds.insertAlbum(getString(R.string.newalbum),bodyPart,getRealPathFromURI(getContext(),imageUri));\n else\n dbPreds.UpdateAlbumImage(String.valueOf(idalbum),getRealPathFromURI(getContext(),imageUri));\n\n dbPreds.insertPrediction(pos,String.valueOf(pred),getRealPathFromURI(getContext(),imageUri),timeStamp,resume,String.valueOf(idalbum));\n\n\n\n }\n\n @Override\n public void onFailure(Call<Prediction> call, Throwable t) {\n btn_predict.setVisibility(View.VISIBLE);\n btn_photo.setVisibility(View.VISIBLE);\n Log.d(\"failure\", \"message = \" + t.getMessage());\n Log.d(\"failure\", \"cause = \" + t.getCause());\n\n fails++;\n Toast.makeText(getContext(), t.getMessage(), Toast.LENGTH_LONG).show();\n tv_res.setText(t.getMessage());\n\n tv_res.setText(getString(R.string.analyzing) + fails + \"...\");\n\n\n if(fails<4)\n uploadToServer(getRealPathFromURI(getContext(), imageUri));\n else {\n if(tv_res.getAnimation()!=null)\n tv_res.getAnimation().cancel();\n tv_res.setText(getString(R.string.connection));\n tv_policy.setText(getString(R.string.conn_error_server));\n myProgressBar.setVisibility(View.GONE);\n Snackbar.make(rootView, getString(R.string.connerror), Snackbar.LENGTH_LONG).show();\n }\n }\n });\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tint bookid=Integer.parseInt(req.getParameter(\"id\"));\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tConnection con=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/demo\",\"root\",\"root\");\r\n\t\t\tPreparedStatement ps=con.prepareStatement(\"select image from books where bookid=?\");\r\n\t\t\tps.setInt(1, bookid);\r\n\t\t\tResultSet rs=ps.executeQuery();\r\n\t\t\r\n\t\t\tif(rs.next())\r\n\t\t\t{\r\n\t\t\t\tBlob blob=rs.getBlob(\"image\");\r\n\t\t\t\tbyte arr[]=blob.getBytes(1, (int)blob.length());\r\n\t\t\t\tresp.getOutputStream().write(arr);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tPrintWriter out=resp.getWriter();\r\n\t\t\tout.println(e);\r\n\t\t}\r\n\t}",
"private void registrar_contacto() {\n\n\n String nombre_contacto = txtV_nombre_contacto.getText().toString();\n String numero_contacto = txtV_numero_contacto.getText().toString();\n\n enviar_sms();\n\n progressDialog = new ProgressDialog(AddContactosActivity.this);\n progressDialog.setMessage(\"Subiendo por favor espere...\");\n progressDialog.show();\n\n\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 10, baos);\n byte[] imageBytes = baos.toByteArray();\n final String imageString = Base64.encodeToString(imageBytes, Base64.NO_WRAP);\n Log.d(\"IMAGE\", \"registrar_contacto: \" + imageString);\n\n\n JSONObject js = new JSONObject();\n try {\n js.put(\"alias\", nombre_contacto);\n js.put(\"nroCelular\", numero_contacto);\n js.put(\"photo\", imageString);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n // Make request for JSONObject\n JsonObjectRequest jsonObjReq = new JsonObjectRequest(\n Request.Method.POST, URL_ADD_CONTACT, js,\n\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n progressDialog.dismiss();\n Log.d(\"RESPONSE CORRECTO\", response.get(\"idContacto\") + \" i am queen\");\n Toast.makeText(getApplicationContext(), \"Contacto Agregado\", Toast.LENGTH_LONG).show();\n finish();\n //Snackbar.make(v,\"CONFIRMA TU PASSWORD CON\",Snackbar.LENGTH_INDEFINITE).setAction(\"LOGIN\",new View.OnClickListener(){\n // @Override\n //public void onClick(View v) {\n // finish();\n //}\n //}).show();\n } catch (JSONException e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \" error\" + e.toString(), Toast.LENGTH_LONG).show();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(\"eRRor Response\", \"Error: \" + error.toString());\n Toast.makeText(getApplicationContext(), \"\" + error.toString(), Toast.LENGTH_LONG).show();\n }\n }) {\n\n /**\n * Passing some request headers\n */\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n headers.put(\"Authorization\", \"Bearer \" + TOKEN);\n return headers;\n }\n };\n // Adding request to request queue\n Volley.newRequestQueue(getApplicationContext()).add(jsonObjReq);\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n ServletOutputStream out = response.getOutputStream();\r\n \r\n \r\n if(request.getParameter(\"tambah\") != null && request.getParameter(\"tambah\").equals(\"Tambah\")){\r\n \r\n \r\n \r\n int Result= 0;\r\n String Nkacamata= request.getParameter(\"Nkacamata\");\r\n int Harga = Integer.parseInt(request.getParameter(\"harga\"));\r\n Harga = Harga;\r\n String deskripsi = request.getParameter(\"deskripsi\");\r\n String kategori = request.getParameter(\"kategori\");\r\n Part part = request.getPart(\"photo\");\r\n \r\n String photo= \"../img/\";\r\n \r\n try {\r\n String sql =\"INSERT INTO datakacamata (nama,harga,deskripsi,kategori,photo) VALUES(?,?,?,?,?)\";\r\n PreparedStatement statement = koneksi.koneksi.getConnection().prepareStatement(sql);\r\n InputStream is = part.getInputStream();\r\n statement.setString(1, Nkacamata);\r\n statement.setInt(2, Harga);\r\n statement.setString(3, deskripsi);\r\n statement.setString(4, kategori);\r\n statement.setBlob(5, is);\r\n \r\n Result=statement.executeUpdate();\r\n if(Result >0){\r\n System.out.println(\"Sukses coyyyy\");\r\n response.sendRedirect(\"admin\");\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Error\"+e.getMessage());\r\n }\r\n \r\n \r\n }else if(request.getParameter(\"edit\") != null && request.getParameter(\"edit\").equals(\"Edit\")){\r\n \r\n String id = request.getParameter(\"id\");\r\n String Nkacamata = request.getParameter(\"Nkacamata\");\r\n int harga = Integer.parseInt(request.getParameter(\"harga\"));\r\n String deskripsi = request.getParameter(\"deskripsi\");\r\n String kategori = request.getParameter(\"kategori\");\r\n // Part part = request.getPart(\"photo\");\r\n int Result = 0;\r\n String sql =\"UPDATE datakacamata SET nama=?, harga=?, deskripsi=?, kategori=? WHERE id=?\";\r\n \r\n try{\r\n PreparedStatement statement = koneksi.koneksi.getConnection().prepareStatement(sql);\r\n //InputStream is = part.getInputStream(); \r\n statement.setString(1, Nkacamata);\r\n statement.setInt(2, harga);\r\n statement.setString(3, deskripsi);\r\n statement.setString(4, kategori);\r\n// statement.setBlob(5, is);\r\n statement.setString(5, id);\r\n Result=statement.executeUpdate();\r\n if(Result > 0){\r\n response.sendRedirect(\"admin\");\r\n }\r\n \r\n System.out.println(\"SUkses\");\r\n }catch(Exception e){\r\n System.out.println(\"Error\"+e.getMessage());\r\n }\r\n }else if(request.getParameter(\"regist\") != null && request.getParameter(\"regist\").equals(\"Regist\")){\r\n \r\n String username = request.getParameter(\"username\");\r\n String nama = request.getParameter(\"nama\");\r\n String email = request.getParameter(\"email\");\r\n String password = request.getParameter(\"password\");\r\n String jenkel = request.getParameter(\"jenkel\");\r\n \r\n String sql =\"INSERT INTO admin (username, nama, email, password, jenkel)VALUES(?,?,?,?,?)\";\r\n \r\n try{\r\n PreparedStatement statement = koneksi.koneksi.getConnection().prepareStatement(sql);\r\n statement.setString(1, username);\r\n statement.setString(2, nama);\r\n statement.setString(3, email);\r\n statement.setString(4, password);\r\n statement.setString(5, jenkel);\r\n statement.executeUpdate();\r\n System.out.println(\"SUkses\");\r\n response.sendRedirect(\"proses/loginadmin\");\r\n }catch(Exception e){\r\n System.out.println(\"Error\"+e.getMessage());\r\n }\r\n }\r\n \r\n \r\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) { /// automatski se zove kada krene startActivityResult\n //super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK){\n // get the photo\n Bundle extras = data.getExtras();\n Bitmap photo = (Bitmap)extras.get(\"data\"); // spremanje u bitmap\n mojImageView.setImageBitmap(photo); // stavljanje na zaslon\n\n }\n }",
"private void cargardatos() {\n String link = \"http://192.168.43.30:8080/appLavanderia/subidadatos.php?\";\n\n //Toast.makeText(getApplicationContext(), \"1\", Toast.LENGTH_SHORT).show();\n respuesta = new StringRequest(Request.Method.POST, link, new Response.Listener<String>() {\n\n @Override //En caso que si se pudo hacer la conexion\n public void onResponse(String response) {\n if (response.equalsIgnoreCase(\"registra\")){\n Toast.makeText(getApplicationContext(), \"Registro Exitoso\", Toast.LENGTH_SHORT).show();\n }else{\n Toast.makeText(getApplicationContext(), \"errorr\", Toast.LENGTH_SHORT).show();\n }\n //Toast.makeText(getApplicationContext(), \"2\", Toast.LENGTH_SHORT).show();\n\n }//En dado caso que no se pueda guardar\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), \"No \"+error.toString(), Toast.LENGTH_SHORT).show();\n\n }\n }){\n @Override //Contiene la informacion para enviar\n protected Map<String, String> getParams() throws AuthFailureError {\n\n String nombre = nombreimagen.getText().toString();\n String descripcion = descricpion.getText().toString();\n String fecha = fechaexp.getText().toString();\n String Foto = ConvertImagenTexto(imagenpro);\n\n //enviar los datos al servidor\n Map<String, String> datosparaenviar = new HashMap<>();\n datosparaenviar.put(\"Nombre\",nombre);\n datosparaenviar.put(\"DescripcionPromo\",descripcion);\n datosparaenviar.put(\"FechaPromo\",fecha);\n datosparaenviar.put(\"ImagenPromo\",Foto);\n return datosparaenviar;\n }\n };\n envio.add(respuesta);\n }",
"@Override\n public void onResponse(final JSONObject response) {\n //progreso.hide();\n //Toast.makeText(getApplicationContext(), \"Mensaje: \" + response.toString(), Toast.LENGTH_SHORT).show();\n Imagen imagen = null;\n JSONArray json = response.optJSONArray(\"imagen\");\n\n try {\n for (int i = 0; i < json.length(); i++) {\n imagen = new Imagen();\n JSONObject jsonObject = null;\n jsonObject = json.getJSONObject(i);\n // jsonObject = new JSONObject(response);\n imagen.setIdImagen(jsonObject.optInt(\"idImagen_Ejercicio\"));\n imagen.setNameImagen(jsonObject.optString(\"name_Imagen_Ejercicio\"));\n imagen.setRutaImagen(jsonObject.optString(\"ruta_Imagen_Ejercicio\"));\n imagen.setLetraInicialImagen(jsonObject.optString(\"letra_inicial_Imagen\"));\n imagen.setLetraFinalImagen(jsonObject.optString(\"letra_final_Imagen\"));\n imagen.setCantSilabasImagen(jsonObject.optInt(\"cant_silabas_Imagen\"));\n\n listaImagenes.add(imagen);\n\n//idgrupo,namegrupo,curso_idcurso,curso_Instituto_idInstituto\n }\n\n ImagenUrlAdapter imagenUrlAdapter = new ImagenUrlAdapter(listaImagenes, getApplicationContext());\n imagenUrlAdapter.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n String rutaImagen = listaImagenes.get(rv_bankimages.\n getChildAdapterPosition(v)).getRutaImagen();\n\n cargarImagenWebService(rutaImagen);\n\n //Toast.makeText(getApplicationContext(), \"on click: \" + rutaImagen, Toast.LENGTH_LONG).show();\n //Toast.makeText(getApplicationContext(), \"on click: \" , Toast.LENGTH_LONG).show();\n\n }\n });\n\n rv_bankimages.setAdapter(imagenUrlAdapter);\n\n //Toast.makeText(getApplicationContext(), \"listagrupos: \" + listaGrupos.size(), Toast.LENGTH_LONG).show();\n //Log.i(\"size\", \"lista Imágenes: \" + listaImagenes.get(0).getNameImagen());\n\n //rv_bankimages.setAdapter(gruposDocenteAdapter);\n } catch (JSONException e) {\n e.printStackTrace();\n Log.d(\"error\", response.toString());\n\n Toast.makeText(getApplicationContext(), \"No se ha podido establecer conexión: \" , Toast.LENGTH_LONG).show();\n\n //progreso.hide();\n }\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String nouveau = request.getParameter(\"nouveau\"); //si l'utilisateur à completement rentré les info d'un media\n if (nouveau == null) {\n String type = request.getParameter(\"type\");\n switch (type) {\n case \"film\":\n ajouterFilm(request, response);\n break;\n case \"musique\":\n ajouterMusique(request, response);\n break;\n case \"livre\":\n ajouterLivre(request, response);\n break;\n default: \n ;\n }\n }else{\n switch (nouveau) {\n case \"film\":\n ajouterNewFilm(request, response);\n break;\n case \"musique\":\n ajouterNewMusique(request, response);\n break;\n case \"livre\":\n ajouterNewLivre(request, response);\n break;\n default: \n ;\n }\n }\n\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n if (request.getParameter(\"titel\") != null && !request.getParameter(\"titel\").equals(\"\")) {\n try {\n PhotoSearchModel photoSearchModel = new PhotoSearchModel(photoService, request.getParameter(\"user\"), request.getParameter(\"titel\"));\n List<Photo> photos = photoSearchModel.getAllPhotos();\n request.setAttribute(\"items\", photos);\n request.getRequestDispatcher(\"addphototoset.jsp\").forward(request, response);\n } catch (Exception e) {\n request.setAttribute(\"error\", \"An error has occured..\" + e.getMessage());\n request.getRequestDispatcher(\"error.jsp\").forward(request, response);\n }\n } else {\n try {\n PhotoModel photoModel = new PhotoModel(photoService, request.getParameter(\"user\"));\n List<Photo> items = photoModel.getAllPhotos();\n request.setAttribute(\"items\", items);\n request.getRequestDispatcher(\"addphototoset.jsp\").forward(request, response);\n } catch (Exception e) {\n request.setAttribute(\"error\", \"An error has occured..\" + e.getMessage());\n request.getRequestDispatcher(\"error.jsp\").forward(request, response);\n }\n }\n }",
"FetchedImage getFujimiyaUrl(String query){\n return getFujimiyaUrl(query,100);\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == request_code && resultCode == RESULT_OK && data != null && data.getData() != null) {\n uri = data.getData();\n slika.setImageURI(uri);\n }\n }",
"@Multipart\n @POST()\n Call<Result> uploadImage(@Part MultipartBody.Part file, @Url String medialUploadUrl, @PartMap() Map<String, RequestBody> partMap);",
"@GET\n\t@Produces(MediaType.TEXT_PLAIN)\n\tpublic byte[] returnPicture(){\n \t return ContainerPicture.picture;\n \t}",
"private void viewImage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint id= Integer.parseInt(request.getParameter(\"fileId\"));\n\t\tFiles file= new FilesDAO().view(id);\n\t\trequest.setAttribute(\"files\", file);\n\t\trequest.setAttribute(\"path\", path);\n\t\trequest.getRequestDispatcher(\"viewImage.jsp\").forward(request, response);\n\t\tSystem.out.println(file);\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n Part fpart = request.getPart(\"pic\");\n InputStream ips = null;\n if(fpart!=null){\n System.out.println(fpart.getName());\n System.out.println(fpart.getSize());\n System.out.println(fpart.getContentType());\n ips = fpart.getInputStream();}\n\n int catid = Integer.parseInt(request.getParameter(\"catid\"));\n String itemname = request.getParameter(\"itemname\");\n\n \n DbConnection con = new DbConnection();\n try {\n Connection conn = con.connect();\n PreparedStatement pstmnt = conn.prepareStatement(\"INSERT INTO menuitem(img,catId,itemName) VALUES(?,?,?)\");\n pstmnt.setBlob(1, ips);\n pstmnt.setInt(2,catid );\n pstmnt.setString(3, itemname);\n \n int rcode = pstmnt.executeUpdate();\n if(rcode==0){\n System.out.println(\"fail\");\n request.setAttribute(\"msg\", \"Error!!!!!!!!!!\");\n //getServletContext().getRequestDispatcher(\"/login.jsp\").forward(request, response);\n \n RequestDispatcher rd = request.getRequestDispatcher(\"imgdisplay.jsp\");\n rd.forward(request, response);\n }\n else{\n System.out.println(\"success\");\n request.setAttribute(\"msg\", \"Success!!!!!!!!!!\");\n //getServletContext().getRequestDispatcher(\"/homepage.jsp\").forward(request, response);\n request.setAttribute(\"itemname\", itemname);\n RequestDispatcher rd = request.getRequestDispatcher(\"imgdisplay.jsp\");\n rd.forward(request, response);\n } \n }\n catch (SQLException ex) {\n Logger.getLogger(savepic.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(savepic.class.getName()).log(Level.SEVERE, null, ex);\n }\n catch(Exception e){System.out.println(e.getMessage());} \n \n \n \n\n }",
"private void postImage(String fid, final String fileName) {\n\t\tJSONObject jsObject = new JSONObject();\n\t\tSharedPreferences myPrefs = getActivity().getSharedPreferences(\"myPrefs\",getActivity().MODE_PRIVATE);\n\t\ttry {\n\n\t\t\tjsObject.put(\"field_image\", new JSONObject().put(\"und\", new JSONArray().put(0, new JSONObject().put(\"fid\", fid))));\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcd = new ConnectionDetector(getActivity());\n\n\t\t// Check if Internet present\n\t\tif (!cd.isConnectingToInternet()) {\n\t\t\t// Internet Connection is not present\n\t\t\talert.showAlertDialog(getActivity(),\n\t\t\t\t\t\"Internet Connection Error\",\n\t\t\t\t\t\"Please connect to working Internet connection\", false);\n\t\t\t// stop executing code by return\n\t\t\treturn;\n\t\t}else{\n\t\t\tnew UpdateLike(jsObject,myPrefs){\n\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\tAppUtil.initializeProgressDialog(getActivity(), \"Finalizing post...\", progressDialog);\n\t\t\t\t};\n\t\t\t\tprotected void onPostExecute(String result) {\n\t\t\t\t\tAppUtil.cancelProgressDialog();\n\t\t\t\t\tinfalteImageOnCoverPhoto(fileName);\n\t\t\t\t};\n\t\t\t}.execute(\"http://www1.kitchengardens.in/svc/node/\"+garden_node_id);\n\t\t}\n\t}",
"private void GetPictureFacebook(String faceBookId, final String nombre)\n {\n try\n {\n String url = \"http://graph.facebook.com/\" + faceBookId + \"/picture?type=large\";\n\n // Realizamos la obtención de la imagen\n cliente.get(url, new BinaryHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, byte[] binaryData)\n {\n try {\n // Procesamos los bytes de la imagen recibida\n Bitmap imagen = BitmapFactory.decodeByteArray(binaryData, 0, binaryData.length);\n\n // Obtenemos la ruta donde guardaremos la imagen\n String szRuta = Helpers.ImagenFotoPerfil(getActivity());\n\n // Si existe el archivo lo eliminamos\n if (new File(szRuta).exists()) new File(szRuta).delete();\n\n try {\n // Guardamos la imagen\n FileOutputStream fOut = new FileOutputStream(szRuta);\n imagen.compress(Bitmap.CompressFormat.JPEG, 100, fOut);\n fOut.flush();\n fOut.close();\n\n // Ahora subimos la imagen\n SubirFotoUsuario(Helpers.BitmapToByte(imagen), nombre);\n }\n catch (IOException ioe)\n {\n Log.e(getString(R.string.error), ioe.getMessage());\n }\n } catch (Exception ex) {\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] binaryData, Throwable error) {\n }\n });\n }\n catch (Exception ex)\n {\n }\n }"
] | [
"0.6802043",
"0.64062446",
"0.6352245",
"0.63038045",
"0.6069679",
"0.6039719",
"0.6035283",
"0.6016434",
"0.59584934",
"0.59424424",
"0.5928978",
"0.5923188",
"0.59187216",
"0.5905989",
"0.59038174",
"0.5902413",
"0.5887282",
"0.5867954",
"0.58634365",
"0.5861989",
"0.58578956",
"0.5852461",
"0.5846363",
"0.5844029",
"0.58362275",
"0.580304",
"0.5800841",
"0.58008057",
"0.5782513",
"0.5760144",
"0.57332474",
"0.5729294",
"0.5725206",
"0.57208496",
"0.57144004",
"0.5705512",
"0.57027346",
"0.56986517",
"0.5697882",
"0.5697826",
"0.5696523",
"0.5695769",
"0.56905377",
"0.56871045",
"0.5681117",
"0.56787086",
"0.5673579",
"0.56708944",
"0.5628856",
"0.5616551",
"0.5613033",
"0.5611926",
"0.5601151",
"0.5594252",
"0.55918586",
"0.558857",
"0.5584615",
"0.5578247",
"0.5577258",
"0.5576336",
"0.5573145",
"0.5572932",
"0.5561691",
"0.5558425",
"0.55512714",
"0.55377924",
"0.5533952",
"0.5533952",
"0.5518441",
"0.55112076",
"0.5511141",
"0.5509034",
"0.5499994",
"0.54979336",
"0.5492592",
"0.5476825",
"0.54722047",
"0.5470737",
"0.5469193",
"0.54609674",
"0.5460874",
"0.54564023",
"0.5452991",
"0.5446246",
"0.54425293",
"0.5439797",
"0.5438846",
"0.54311645",
"0.5430773",
"0.5426601",
"0.54263484",
"0.5423915",
"0.54147124",
"0.5413557",
"0.5411998",
"0.540775",
"0.5403469",
"0.5400988",
"0.5399862",
"0.5398694",
"0.53973436"
] | 0.0 | -1 |
Create an image file name | private File createImageFile() throws IOException {
String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date());
String imageFileName = "JPEG_" + timeStamp + "_";
//This is the directory in which the file will be created. This is the default location of Camera photos
File storageDir = new File(Environment.getExternalStorageDirectory(), getString(R.string.app_name));
if (!storageDir.exists()){
storageDir.mkdir();
}
File image = File.createTempFile(
imageFileName, /* prefix */
".jpg", /* suffix */
storageDir /* directory */
);
// Save a file: path for using again
cameraFilePath = "file://" + image.getAbsolutePath();
return image;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private File createImageFileName() throws IOException {\n String timestamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n //there are two types of SimpleDateFormat and Date()\n String prepend = \"JPEG_\" + timestamp + \"_\";\n File imageFile = File.createTempFile(prepend, \".jpg\", mImageFolder);\n mImageFileName = imageFile.getAbsolutePath();\n return imageFile;\n\n }",
"public void createNewImageFile(){\n fillNewImage();\n\n try {\n ImageIO.write(newImage, imageFileType, new File(k + \"_Colored_\" + fileName.substring(0,fileName.length() - 4) + \".\" + imageFileType));\n } catch (IOException e){\n e.printStackTrace();\n }\n \n }",
"private static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);\n return imageF;\n }",
"private static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);\n return imageF;\n }",
"private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"MAZE_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);\n return imageF;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\")\n .format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX,\n albumF);\n return imageF;\n }",
"private File createImageFile() throws IOException{\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\"+timeStamp;\n File image = File.createTempFile(imageFileName, \".jpg\", this.savePath);\n \n return image;\n }",
"private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }",
"private File createImageFile() throws IOException{\n @SuppressLint(\"SimpleDateFormat\")\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"img_\"+timeStamp+\"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n return File.createTempFile(imageFileName,\".jpg\",storageDir);\n }",
"private File createImageFile() throws IOException {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.getDefault()).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }",
"public String createImageName(File imageFile)\n\t{\n\t\tString name = imageFile.getAbsolutePath();\n\t\t\n\t\t// remove the initial part of the path that is common among all images so that only the relative path within the image folder remains\n\t\t// also remove the file's extension\n\t\tname = name.substring(imageFolder.getAbsolutePath().length() + 1, name.lastIndexOf('.'));\t\t\n\t\treturn name;\n\t}",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(getString(R.string.day_format)).format(new Date());\n String imageFileName = getString(R.string.image_file_prefix) + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(imageFileName, getString(R.string.image_file_format),\n storageDir\n );\n\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.US).format(new Date());\n String imageFileName = \"perfil_\" + timeStamp + \"_\";\n String outputPath = PATH;\n File storageDir = new File(outputPath);\n if(!storageDir.exists())storageDir.mkdirs();\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException\n {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File imageFile = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n return imageFile;\n }",
"private String createFileName(){\n \t\n \tString state = Environment.getExternalStorageState();\n \tif(state.equals(Environment.MEDIA_MOUNTED)){ \t\t\n \t\tFile folder = new File(Environment.getExternalStorageDirectory() + \"/ArtCameraPro\");\n \t\tboolean success = true;\n \t\tif (!folder.exists()) {\n \t\t success = folder.mkdir();\n \t\t} \n \t\tString sFileName = Environment.getExternalStorageDirectory() + \"/ArtCameraPro\" + File.separator + System.currentTimeMillis() + \".jpg\";\n \t\treturn sFileName;\n \t\t\n \t}\n \treturn \"\";\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n return image;\n }",
"private static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = MyApplication.getContext().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n return image;\n }",
"public static String createFotoFileName(String prefix) {\n return prefix + \"_\" + DateUtil.getCurrentDateTimeAsString(\"yyyyMMdd_hhmmss\") + \".jpg\";\n }",
"private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File imageFile = File.createTempFile(imageFileName, \".jpg\", storageDir);\n return imageFile;\n }",
"private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getContext().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp;\n\n String folderName = context.getString(R.string.app_name).toLowerCase();\n\n File path = new File(ContextCompat.getExternalFilesDirs(getActivity(), null)[0]\n .getAbsolutePath() + \"/\" + folderName);\n\n //make sure folder exists\n path.mkdirs();\n\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n path /* directory */\n );\n\n return image;\n }",
"private File createImageFile(String imgDir) throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = imgDir + File.separator + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }",
"private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\n String mFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File mFile = File.createTempFile(mFileName, \".jpg\", storageDir);\n return mFile;\n }",
"@SuppressLint(\"SimpleDateFormat\")\n public static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + JPEG_FILE_SUFFIX;\n String nameAlbum = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\" + nameDir;// getString(R.string.app_name);\n File albumF = new File(nameAlbum);\n if (!albumF.exists()) {\n albumF.mkdirs();\n File noMedia = new File(albumF, \".nomedia\");\n noMedia.createNewFile();\n }\n\n File imageF = new File(albumF, imageFileName);\n imageF.createNewFile();\n return imageF;\n }",
"private String generateFilename() {\n UUID uuid = UUID.randomUUID();\n return uuid.toString();\n }",
"private File createImageFile() throws IOException\n {\n String timeStamp = new SimpleDateFormat(\"yyyymmddHHmmss\").format(new Date());\n String imageFileName = timeStamp;\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n userCacheDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n return image;\n }",
"private File createImageFile() {\n\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.getDefault()).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES + APP_PICTURE_DIRECTORY);\n storageDir.mkdirs();\n\n File imageFile = null;\n\n try {\n imageFile = File.createTempFile(\n imageFileName, /* prefix */\n FILE_SUFFIX_JPG, /* suffix */\n storageDir /* directory */\n );\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return imageFile;\n }",
"private File createImageFile() {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DCIM), \"GIS\");\n File image = null;\n\n if(!storageDir.exists()){\n\n storageDir.mkdirs();\n\n }\n try {\n image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }catch (Exception e){\n\n e.printStackTrace();\n\n }\n // Save a file: path for use with ACTION_VIEW intents\n\n return image;\n }",
"private String beautiplyFileNameGenerator() {\r\n\t\t// /randomvalue between 0 to 9\r\n\t\tString name = \"beautiply\" + new Random().nextInt(9) + \".png\";\r\n\r\n\t\treturn name;\r\n\t}",
"private void createImage (String image_name, int filename){\n\n\t\tString image_folder = getLevelImagePatternFolder();\n\t\t\n\t\tString resource = filename+\".png\";\n\t\tImageIcon ii = new ImageIcon(this.getClass().getResource(image_folder + resource));\n images.put(image_name, ii.getImage());\n\t}",
"public File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File imageFile = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n return imageFile;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n String z = image.getAbsolutePath();\n return image;\n }",
"public String createImageName(String empName) {\n StringBuilder iN = new StringBuilder();\n\n String[] fnLn = empName.split(\" \");\n iN.append(fnLn[0]);\n iN.append(fnLn[fnLn.length-1].substring(0, 1));\n return iN.toString().trim();\n }",
"public File createImageFile() {\n // the public picture director\n File picturesDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); // To get pictures directory from android system\n\n // timestamp makes unique name.\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd_HHmmss\");\n String timestamp = sdf.format(new Date());\n\n // put together the directory and the timestamp to make a unique image location.\n File imageFile = new File(picturesDirectory, timestamp + \".jpg\");\n\n return imageFile;\n }",
"public File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = mContext.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }",
"private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat ( \"yyyyMMdd_HHmmss\" ).format ( new Date () );\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir ( Environment.DIRECTORY_PICTURES );\n File image = File.createTempFile (\n imageFileName , /* prefix */\n \".jpg\" , /* suffix */\n storageDir /* directory */\n );\n\n // luu file: su dung ACTION_VIEW\n pathToFile = image.getAbsolutePath ();\n return image;\n }",
"public File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getActivity().getFilesDir();\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n return image;\n }",
"protected File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n strAbsolutePath = image.getAbsolutePath();\n Log.e(\"XpathX\", image.getAbsolutePath());\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\n String mFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File mFile = File.createTempFile(mFileName, \".jpg\", storageDir);\n pictureFilePath = mFile.getAbsolutePath();\n return mFile;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"1mind_\" + timeStamp + \".png\";\n File photo = new File(Environment.getExternalStorageDirectory(), imageFileName);\n mCurrentPhotoPath = photo.getAbsolutePath();\n return photo;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\r\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\r\n File image = File.createTempFile(\r\n imageFileName, // prefix //\r\n \".jpg\", // suffix //\r\n storageDir // directory //\r\n );\r\n\r\n // Save a file: path for use with ACTION_VIEW intents\r\n mPath = image.getAbsolutePath();\r\n return image;\r\n }",
"private File createImageFile() throws IOException {\n String imageFileName = new SimpleDateFormat(\"yyyyMMdd-HHmmss\", Locale.ENGLISH).format(new Date());\n String storageDir = Environment.getExternalStorageDirectory() + \"/DokuChat\";\n File dir = new File(storageDir);\n if (!dir.exists())\n dir.mkdir();\n\n image = new File(storageDir + \"/\" + imageFileName + \".jpg\");\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n pictureImagePath = image.getAbsolutePath();\n return image;\n\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new java.util.Date());\n String imageFileName = \"WILDLIFE_JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n //Todo:Este sera el nombre que tendra el archivo\n String imageFileName = \"IMAGE_\" + timeStamp + \"_\";\n //Todo:Ruta donde se almacenara la imagen\n File storageDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n\n //Todo:El tipo de archivo que se almacenara en el directorio\n File image = File.createTempFile(imageFileName,\".jpg\",storageDirectory);\n //Todo: mImageFileLocation sera el valor que se\n mImageFileLocation = image.getAbsolutePath();\n\n return image;\n }",
"private File createImageFile() throws IOException\r\n {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n String imageFileName = \"MYAPPTEMP_\" + timeStamp + \"_\";\r\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\r\n File image = File.createTempFile(imageFileName, /* prefix */\r\n \".jpg\", /* suffix */\r\n storageDir /* directory */\r\n );\r\n\r\n return image;\r\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n pictureImagePath = image.getAbsolutePath();\n return image;\n }",
"public abstract String getImageSuffix();",
"private File createImageFile() {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n //File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File storageDir = new File(utils.getSentImagesDirectory());\n\n File image = null;\n try {\n image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n // Save a file: path for use with ACTION_VIEW intents\n //LOG.info(\"test place3\");\n try {\n imageFilePath = image.getAbsolutePath();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n //LOG.info(\"test place4\");\n if (image == null) {\n LOG.info(\"image file is null\");\n } else {\n LOG.info(\"image file is not null path is:\" + imageFilePath);\n }\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".png\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, // prefix\n \".jpg\", // suffix\n storageDir // directory\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = SettingsHelper.getPrivateImageFolder(this);\n if (!storageDir.exists()) {\n storageDir.mkdirs();\n }\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n imageUri = Uri.fromFile(image);\n return image;\n }",
"private Image createImage(String image_file) {\n\t\tImage img = new Image(image_file);\n\t\treturn img;\n\t}",
"public File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.US).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = new File(getPhotoLocation());\n File image = File.createTempFile(\n imageFileName,\n \".jpg\",\n storageDir\n );\n\n setCurrentPhotoFile(image.getAbsolutePath());\n return image;\n }",
"private File createImageFile() throws IOException\n {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"Picko_JPEG\" + timeStamp + \"_\";\n File storageDir = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DOCUMENTS),\"Whatsapp\");\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n String mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n\n\n }",
"public static File createImageFile(Context context, String name) throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n String imageFileName = name + \"_\" + timeStamp + \"_\";\r\n File storageDir = context.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\r\n File image = File.createTempFile(\r\n imageFileName, /* prefix */\r\n \".jpg\", /* suffix */\r\n storageDir /* directory */\r\n );\r\n return image;\r\n }",
"public abstract String createFilename(Entity entity);",
"private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n //The directory where to save the file image\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n //The actual image file\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n mPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format( new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\" ;\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment. DIRECTORY_PICTURES);\n File image = File. createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private static File createImageFile(Activity activity) throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = activity.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n// File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n// File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n savePhotoPathToSharedPrefs();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n //galleryAddPic();\n return image;\n }",
"private File createImageFile() throws IOException {\n Date d = new Date();\n String nameDate = new SimpleDateFormat(\"ddMMyyyy_HHmmss\").format(d);\n this.date = new SimpleDateFormat(\"dd/MM/yyyy\").format(d);\n String imageFileName = \"JPEG_\" + nameDate + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\r\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\r\n File image = File.createTempFile(\r\n imageFileName, /* prefix */\r\n \".jpg\", /* suffix */\r\n storageDir /* directory */\r\n );\r\n\r\n // Save a file: path for use with ACTION_VIEW intents\r\n mCurrentPhotoPath = image.getAbsolutePath();\r\n return image;\r\n\r\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n photosPaths.add(mCurrentPhotoPath);\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp;\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"public abstract FileName createName(String absolutePath, FileType fileType);",
"public String getPhotoFileName() {\n return \"IMG_\" + getId().toString() + \".jpg\";\n }",
"private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = activity.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(imageFileName, \".jpg\", storageDir);\n\n // Save a file: path for use with ACTION_VIEW intents\n this.currentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.ENGLISH).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DCIM), \"Camera\");\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName,\n \".jpg\",\n storageDir\n );\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"public static File createImageFile(Context ctx) throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = ctx.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(imageFileName, \".jpg\", storageDir);\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = imageFileName + \"camera.jpg\";\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n //This is the directory in which the file will be created. This is the default location of Camera photos\n File storageDir = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DCIM), \"Camera\");\n image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for using again\n cameraFilePath = \"file://\" + image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n// File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }"
] | [
"0.7782615",
"0.7292824",
"0.6992056",
"0.6992056",
"0.6943564",
"0.6911284",
"0.68938434",
"0.686538",
"0.68592805",
"0.68590325",
"0.68580544",
"0.68443614",
"0.67711073",
"0.67546785",
"0.6751638",
"0.6737171",
"0.6726197",
"0.67170936",
"0.67068315",
"0.6706409",
"0.6694521",
"0.6692518",
"0.66892946",
"0.6665624",
"0.6658789",
"0.66203934",
"0.66164696",
"0.6615736",
"0.6610864",
"0.66096437",
"0.6604602",
"0.66028416",
"0.6600987",
"0.65886337",
"0.6579357",
"0.6576186",
"0.65653497",
"0.65549564",
"0.65421396",
"0.65305394",
"0.6530493",
"0.6523718",
"0.6517966",
"0.65117127",
"0.6505747",
"0.6493113",
"0.64924705",
"0.6475854",
"0.6471266",
"0.6448684",
"0.6419626",
"0.64166796",
"0.6413514",
"0.640042",
"0.63892233",
"0.6379753",
"0.6375813",
"0.6375534",
"0.6367382",
"0.63566",
"0.6355329",
"0.6345687",
"0.6332988",
"0.6329631",
"0.6329631",
"0.6329631",
"0.6329631",
"0.6329631",
"0.63276523",
"0.63276523",
"0.6326054",
"0.6324831",
"0.6323436",
"0.63181776",
"0.6311542",
"0.63093704",
"0.63077575",
"0.630525",
"0.6300038",
"0.6297278",
"0.6296964",
"0.6294874",
"0.6292948",
"0.6289597",
"0.62894386",
"0.6282458",
"0.6281662",
"0.62706375",
"0.6261314",
"0.6258569",
"0.6256673",
"0.62541807",
"0.6251297",
"0.6251297",
"0.6251297",
"0.6251297",
"0.6251297",
"0.6251297",
"0.6251297",
"0.6251297"
] | 0.62572557 | 90 |
Constructor of this class | public CardAdapter(List<Book> book, Context context){
super();
//Getting all superheroes
this.book = book;
this.context = context;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"private Instantiation(){}",
"public PSRelation()\n {\n }",
"public Chick() {\n\t}",
"public CyanSus() {\n\n }",
"public Chauffeur() {\r\n\t}",
"public _355() {\n\n }",
"public Coche() {\n super();\n }",
"public Pasien() {\r\n }",
"public Orbiter() {\n }",
"public Pitonyak_09_02() {\r\n }",
"public Curso() {\r\n }",
"public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}",
"public Supercar() {\r\n\t\t\r\n\t}",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"public Cohete() {\n\n\t}",
"public CSSTidier() {\n\t}",
"public Lanceur() {\n\t}",
"public Tbdtokhaihq3() {\n super();\n }",
"public Trening() {\n }",
"public Aanbieder() {\r\n\t\t}",
"public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }",
"public Anschrift() {\r\n }",
"public Self__1() {\n }",
"public ChaCha()\n\t{\n\t\tsuper();\n\t}",
"private Sequence() {\n this(\"<Sequence>\", null, null);\n }",
"public Mitarbeit() {\r\n }",
"public Phl() {\n }",
"private void __sep__Constructors__() {}",
"public Achterbahn() {\n }",
"public Ov_Chipkaart() {\n\t\t\n\t}",
"public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }",
"public Parser()\n {\n //nothing to do\n }",
"defaultConstructor(){}",
"protected abstract void construct();",
"private TMCourse() {\n\t}",
"public Waschbecken() {\n this(0, 0);\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public AntrianPasien() {\r\n\r\n }",
"public Vector() {\n construct();\n }",
"public Magazzino() {\r\n }",
"public Catelog() {\n super();\n }",
"public Generic(){\n\t\tthis(null);\n\t}",
"public TTau() {}",
"public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }",
"private Composite() {\n }",
"public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}",
"public mapper3c() { super(); }",
"public Complex(){\r\n\t this(0,0);\r\n\t}",
"public Tbdcongvan36() {\n super();\n }",
"public Carrinho() {\n\t\tsuper();\n\t}",
"public Clade() {}",
"ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}",
"public Parameters() {\n\t}",
"public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }",
"public RngObject() {\n\t\t\n\t}",
"public Tigre() {\r\n }",
"public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }",
"protected Betaling()\r\n\t{\r\n\t\t\r\n\t}",
"public Card() { this(12, 3); }",
"public Cgg_jur_anticipo(){}",
"private Converter()\n\t{\n\t\tsuper();\n\t}",
"public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }",
"Composite() {\n\n\t}",
"public Bicycle() {\n // You can also call another constructor:\n // this(1, 50, 5, \"Bontrager\");\n System.out.println(\"Bicycle.Bicycle- no arguments\");\n gear = 1;\n cadence = 50;\n speed = 5;\n name = \"Bontrager\";\n }",
"public EnsembleLettre() {\n\t\t\n\t}",
"@Override public void init()\n\t\t{\n\t\t}",
"public Libro() {\r\n }",
"public Carrera(){\n }",
"public Data() {\n }",
"public Data() {\n }",
"public Excellon ()\n {}",
"public Account() {\n this(0, 0.0, \"Unknown name\"); // Invole the 2-param constructor\n }",
"public Soil()\n\t{\n\n\t}",
"public CMN() {\n\t}",
"public Rol() {}",
"public Content() {\n\t}",
"public Node(){\n this(9);\n }",
"public Mannschaft() {\n }",
"public Data() {\n \n }",
"public Alojamiento() {\r\n\t}",
"public Stack() {\r\n this(20);\r\n }",
"public AirAndPollen() {\n\n\t}",
"public SlanjePoruke() {\n }",
"public Odontologo() {\n }",
"public Property() {\n this(0, 0, 0, 0);\n }",
"@Override\n\t\tpublic void init() {\n\t\t}",
"public Complex() {\n this(0);\n }",
"public ExamMB() {\n }",
"private Node() {\n\n }",
"public Sandwich()\n\t{super();\n \n\t\t\n\t}",
"public Job() {\n\t\t\t\n\t\t}",
"public Goodsinfo() {\n super();\n }",
"private Rekenhulp()\n\t{\n\t}",
"public TV() {\r\n\t}",
"public Boop() {\n\t\tsuper();\n\t}",
"public Corso() {\n\n }",
"public SgaexpedbultoImpl()\n {\n }",
"public Book() {\n\t\t// Default constructor\n\t}",
"public Node(){\n\n\t\t}"
] | [
"0.86303383",
"0.8443969",
"0.73425615",
"0.7309778",
"0.7263651",
"0.72478944",
"0.7183288",
"0.7154493",
"0.7146785",
"0.71319383",
"0.71120596",
"0.7096381",
"0.70830506",
"0.70829624",
"0.707353",
"0.7054649",
"0.70529807",
"0.70515245",
"0.7041269",
"0.7032317",
"0.7025389",
"0.70236963",
"0.7022487",
"0.70211995",
"0.6991344",
"0.698881",
"0.6962814",
"0.69586504",
"0.6950888",
"0.6949315",
"0.6940544",
"0.69354016",
"0.6921862",
"0.69169575",
"0.69126576",
"0.69068795",
"0.6904747",
"0.6889315",
"0.6881243",
"0.68796587",
"0.68777955",
"0.687132",
"0.6866285",
"0.6863326",
"0.68615884",
"0.68543315",
"0.68461645",
"0.68412364",
"0.68375033",
"0.6829126",
"0.6827364",
"0.68178535",
"0.6809069",
"0.68016994",
"0.6799151",
"0.679833",
"0.67972755",
"0.6796352",
"0.67940444",
"0.6791424",
"0.6783431",
"0.6771472",
"0.6769957",
"0.6769347",
"0.6764074",
"0.6761599",
"0.6759447",
"0.6755928",
"0.67474616",
"0.6745097",
"0.67449015",
"0.67449015",
"0.6744125",
"0.6741571",
"0.6735439",
"0.67305017",
"0.67299443",
"0.6729612",
"0.6727656",
"0.6726606",
"0.6725911",
"0.67235774",
"0.67220306",
"0.6718159",
"0.6717534",
"0.67168796",
"0.671355",
"0.6709748",
"0.6705098",
"0.6703539",
"0.66996676",
"0.66951936",
"0.6693556",
"0.6691803",
"0.6690511",
"0.6684289",
"0.6681033",
"0.6678659",
"0.6677752",
"0.6676489",
"0.6672704"
] | 0.0 | -1 |
Getting the particular item from the list | @Override
public void onBindViewHolder(ViewHolder holder, int position) {
final Book books = book.get(position);
//Loading image from url
imageLoader = CustomRequest.getInstance(context).getImageLoader();
imageLoader.get(books.getImageUrl(), ImageLoader.getImageListener(holder.imageView, R.drawable.image, android.R.drawable.ic_dialog_alert));
//Showing data on the views
holder.imageView.setImageUrl(books.getImageUrl(), imageLoader);
holder.textViewEmail.setText(books.getEmail());
holder.textViewName.setText(books.getName());
holder.textViewBookName.setText(books.getBookName());
holder.textViewPublisher.setText(books.getPublisher());
holder.textViewDepart.setText(books.getDepartment());
holder.textViewCondition.setText(books.getCondition());
holder.textViewSelling.setText(books.getSelling());
holder.textViewLoc.setText(books.getLocation());
holder.textViewSold.setText(books.getSell());
holder.buy1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
/// button click event
// Intent i = new Intent(context, HomeActivity.class);
// context.startActivity(i);
// Intent call = new Intent(Intent.ACTION_CALL);
// call.setData(Uri.parse("tel:9820111067"));
// callIntent.setData(Uri.parse("tel:" + phone.getText().toString()));
// context.startActivity(call);
try {
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:" + books.getBuy()));
context.startActivity(callIntent);
} catch (ActivityNotFoundException e) {
Log.e("helloandroid dialing ", "Call failed", e);
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getItem(int index);",
"@Override\n public Object getItem(int arg0) {\n return list.get(arg0);\n }",
"@Override\r\n\tpublic Object getItem(int posstion) {\n\t\treturn list.get(posstion);\r\n\t}",
"public Tip getItem(int arg0) {\n return mList.get(arg0);\n }",
"private Item getItem(Collection<Item> c, Position p) {\n for (Item i : c) {\n if (i.position.equals(p))\n return i;\n }\n return null;\n }",
"@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn list.get(arg0);\n\t}",
"@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn list.get(arg0);\n\t}",
"@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn list.get(arg0);\n\t}",
"@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn list.get(arg0);\n\t}",
"public Object get(ListField list, int index) {\nif ( list == _lfBoys ) {\nreturn _listBoys.elementAt(index);\n} else {\nreturn _listGirls.elementAt(index);\n}\n}",
"@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn mList.get(arg0);\r\n\t}",
"@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn lists.get(arg0);\r\n\t}",
"@Override\n\t\tpublic Object getItem(int p1)\n\t\t\t{\n\t\t\t\treturn is.get(p1);\n\t\t\t}",
"private static void retriveElementInArrayList() {\n\t\tLinkedList<Integer> list = new LinkedList<Integer>();\n\t\tlist.add(10);\n\t\tlist.add(20);\n\t\tlist.add(30);\n\t\tlist.add(40);\n\t\tlist.add(50);\n\t\tSystem.out.println(\"LinkedList is : \" + list);\n\t\tSystem.out.println(list.get(3));\n\n\t}",
"public Integer get(int index){\n return list.get(index);\n }",
"@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn listab.get(arg0);\r\n\t}",
"public WordList getItem( String key )\n {\n WordList whichList = theLists[ myhash(key) ];\n \n if (whichList.isEmpty()) {\n \treturn null;\n }\n\n return whichList;\n }",
"@Override\n public Object getItem(int index) {\n return internalList.get(index);\n }",
"Identifiable item();",
"public List<PlayerItem> getSpecific(int playerItemId);",
"public Object get(String itemName);",
"CodeableConcept getItem();",
"public Item getFirst();",
"io.opencannabis.schema.commerce.OrderItem.Item getItem(int index);",
"public Item get(int i);",
"public T get(int index) {\n return list.get(index);\n }",
"public Item getItem(final String pItem){return this.aItemsList.getItem(pItem);}",
"@Override\n\t\tpublic Object getItem(int index) {\n\t\t\treturn itemList.get(index);\n\t\t}",
"@Override\n\tpublic Object getItem(final int pos) {\n\t\treturn list.get(pos);\n\t}",
"@Override\n\t\t\tpublic Object getItem(int position){\n\t\t\t\treturn list.get(position);\n\t\t\t}",
"public Item getItem(String itemName)\n {\n Item currentItem = items.get(0);\n // get each item in the items's array list.\n for (Item item : items){\n if (item.getName().equals(itemName)){\n currentItem = item;\n }\n }\n return currentItem;\n }",
"@Override\r\n\tpublic T get(int index) {\n\t\treturn this._list.get(index);\r\n\t}",
"public Object get(int index)\n {\n return items[index];\n }",
"@Override\n public AccountItem get(int index) {\n Object o = null;\n\n try {\n o = arrayList[index];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"The index that you entered is not within the bounds of this list\");\n System.exit(-1);\n }\n return (AccountItem) o;\n }",
"public Object getItem(String key);",
"public T get(int index) {\n return this.list[index];\n }",
"public E get(int index) {\r\n return items.get(index);\r\n }",
"@Override\n public T get(int index) {\n return list.get(index);\n }",
"public T getByIndex(int index) {\n\n return this.myList[index];\n }",
"@Override\n public Object getItem(int index) {\n return listInfo.get(index);\n }",
"T getElementFromIndex(int index) throws ListException;",
"public Item getItem() {\n return Bootstrap.getInstance().getItemRepository().fetchAll().stream()\n .filter(i -> i.getId() == this.itemId)\n .findFirst().orElse(null);\n }",
"public E get(int index) { \n return (E)list[index];\n }",
"public abstract String getListItem (Object obj, int i, String itemProp) \n throws SAFSException;",
"public Object getItem(int arg0) {\n\t\t\treturn dataList.get(arg0);\r\n\t\t}",
"@Override\n\tpublic Object getItem(int location) {\n\t\treturn lists.get(location);\n\t}",
"public PostingsEntry get( int i ) {\n\t return list.get(i);\n }",
"public String get(int index){\n\t\treturn list.get(index);\n\t}",
"public E get(int i) {\n\t\tif (size == 0) {\n\t\t\tthrow new IllegalArgumentException(\"List is empty, cannot retrieve item.\");\n\t\t}\n\n\t\tif (i < 0 || i >= size) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Requested index is out of bounds.\");\n\t\t}\n\n\t\treturn list[i];\n\n\t}",
"@Override\n\t\tpublic Object getItem(int arg0) {\n\t\t\treturn mRecords.get(arg0);\n\t\t}",
"public Item get(int i) {\n return items[i];\n }",
"@Override\n public Object getItem(int item) {\n return dataList.get(item);\n }",
"public String findItem(String searchItem) {\n\n int position = groceryList.indexOf(searchItem);\n if(position >=0) {\n return groceryList.get(position);\n }\n\n return null;\n }",
"@Override\r\n public Object getItem(int position) {\n return list.get(position);\r\n }",
"@Override\n\tpublic Menu getItem(int arg0) {\n\t\treturn arrayList.get(arg0);\n\t}",
"@Override\n\t\tpublic Object getItem(int arg0) {\n\t\t\treturn listadapter.get(arg0);\n\t\t}",
"@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn list.get(position);\n\t\t}",
"@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn list.get(position);\n\t\t}",
"@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn list.get(position);\n\t\t}",
"@Override\n\t\tpublic newsfeed getItem(int arg0) {\n\t\t\treturn newsfeedList.get(arg0);\n\n\t\t}",
"public TypeHere get(int i) {\n return items[i];\n }",
"public E get(int index)\r\n {\r\n checkValidIndex(index);\r\n return listIterator(index).next();\r\n }",
"Object get(int index);",
"Object get(int index);",
"@Override\n public Object getItem(int position) {\n return list.get(position);\n }",
"@Override\r\n\t\tpublic Object getItem(int position) {\n\t\t\treturn list.get(position);\r\n\t\t}",
"public ItemEntry getItem(String itemName) {\n ItemEntry entry = null;\n \n for(ItemEntry i: itemList) {\n if (i.getItemName().equals(itemName)) {\n entry = i;\n }\n }\n \n return entry;\n }",
"public Object getElementAt(int index) {\n synchronized (itemsList) {\n return itemsList.get(index);\n }\n }",
"public Object getItem(int i)\n {\n return items.elementAt(i);\n }",
"public Item get(int index) {\n int track = nextFirst; //It does not modify nextFirst\n track = moveForward(track, index + 1);\n return items[track];\n }",
"@Override\n\tpublic Object getItem(int arg0) {\n\t\tif(list1!=null){\n\t\t\treturn list1.get(arg0);\n\t\t}else\n\t\tif(list2!=null){\n\t\t\treturn list2.get(arg0);\n\t\t}else\n\t\tif(list3!=null){\n\t\t\treturn list3.get(arg0);\n\t\t}else{\n\t\t\treturn 0;\n\t\t}\n\t}",
"@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn data.get(arg0);\r\n\t}",
"public Item get(int i) {\n return items[i - 1];\n }",
"@Override\n\t\tpublic Object getItem(int arg0) {\n\t\t\treturn arg0;\n\t\t}",
"@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn users.get(arg0);\r\n\t}",
"@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn xListItems.get(arg0);\n\t}",
"@Override\n public Object getItem(int position) {\n return list.get(position);\n }",
"@Override\n public Object getItem(int position) {\n return list.get(position);\n }",
"@Override\n public Object getItem(int position) {\n return list.get(position);\n }",
"@Override\n public Object getItem(int position) {\n return list.get(position);\n }",
"@Override\n public Object getItem(int position) {\n return list.get(position);\n }",
"@Override\n public Object getItem(int position) {\n return list.get(position);\n }",
"public Object getItem(int position) {\n return list.get(position);\n }",
"public Object get (int pos) {\n\t\tif (pos < 0) {\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\t\"Argument to get must be at least 0.\");\n\t\t}\n\t\tif (pos >= size()) {\n\t\t\tthrow new IllegalArgumentException (\"Argument to get is too large.\");\n\t\t}\n\t\tint k = 0;\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (k == pos) {\n\t\t\t\treturn p.myItem;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\treturn null;\n\t}",
"public Object get (int pos) {\n\t\tif (pos < 0) {\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\t\"Argument to get must be at least 0.\");\n\t\t}\n\t\tif (pos >= size()) {\n\t\t\tthrow new IllegalArgumentException (\"Argument to get is too large.\");\n\t\t}\n\t\tint k = 0;\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (k == pos) {\n\t\t\t\treturn p.myItem;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\treturn null;\n\t}",
"public Object get (int pos) {\n\t\tif (pos < 0) {\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\t\"Argument to get must be at least 0.\");\n\t\t}\n\t\tif (pos >= size()) {\n\t\t\tthrow new IllegalArgumentException (\"Argument to get is too large.\");\n\t\t}\n\t\tint k = 0;\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (k == pos) {\n\t\t\t\treturn p.myItem;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\treturn null;\n\t}",
"public Object get (int pos) {\n\t\tif (pos < 0) {\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\t\"Argument to get must be at least 0.\");\n\t\t}\n\t\tif (pos >= size()) {\n\t\t\tthrow new IllegalArgumentException (\"Argument to get is too large.\");\n\t\t}\n\t\tint k = 0;\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (k == pos) {\n\t\t\t\treturn p.myItem;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\treturn null;\n\t}",
"@Test\n public void getByIndex(){\n List <String> list = new ArrayList<>();\n list.add(\"hola\");\n list.add(\"tdd\");\n list.add(\"test\");\n\n assertEquals(\"tdd\",list.get(1));\n }",
"public Item getItem ()\n\t{\n\t\treturn item;\n\t}",
"public Object get(int index) \r\n throws ListIndexOutOfBoundsException {\r\n\t\t\t\t\tif (index >= 0 && index <= numItems) { // If statement to catch out of bounds exception\r\n\t\t\t\t\t\t Node curr = head; // states curr is at head posistion\r\n\t\t\t\t\t\t for (int i = 1; i < index; i++) { // for loop to get to the current posistion that is equivelnt to i\r\n\t\t\t\t\t\t\t curr = curr.getNext();\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t return curr.getItem(); // returns item in current node\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t throw new ListIndexOutOfBoundsException (\"List index out of bounds\"); // else throws an index out of bounds exception\r\n\t\t\t\t\t}\r\n }",
"public T get(int index) {\n return (index >= 0 && index < this.list.size()) ? this.list.get(index) : null;\n }",
"public native String getItem(Number index);",
"@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\r\n\t}",
"@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\r\n\t}",
"@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\r\n\t}",
"@Nullable String pickItem();",
"protocol.Data.Friend.FriendItem getFriend(int index);",
"public static Item getItem(String itemName)\n {\n Item temp = null;\n for (Item inventory1 : inventory) {\n if (inventory1.getName().equals(itemName)) {\n temp = inventory1;\n }\n }\n return temp;\n }",
"public String getSelectedItem() {\n if (selectedPosition != -1) {\n Toast.makeText(activity, \"Selected Item : \" + list.get(selectedPosition), Toast.LENGTH_SHORT).show();\n return list.get(selectedPosition);\n }\n return \"\";\n }",
"@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn users.get(arg0);\n\t}",
"public Object get(int i)\n {\n if(_list!=null)\n return _list.get(i);\n return null;\n }"
] | [
"0.7111233",
"0.6987175",
"0.69532406",
"0.69343084",
"0.6889643",
"0.68786985",
"0.68786985",
"0.68786985",
"0.68786985",
"0.6790843",
"0.6784245",
"0.67770755",
"0.671884",
"0.6703151",
"0.6697629",
"0.6683814",
"0.6655574",
"0.66525006",
"0.6640656",
"0.6617096",
"0.6576889",
"0.65590674",
"0.6551972",
"0.6548921",
"0.6534747",
"0.6531472",
"0.6531085",
"0.6525875",
"0.65255",
"0.65071136",
"0.64801055",
"0.6479014",
"0.6476039",
"0.64759254",
"0.6468601",
"0.64671445",
"0.64527404",
"0.6445672",
"0.64432347",
"0.6434556",
"0.6428216",
"0.64119965",
"0.6405071",
"0.6404773",
"0.64046615",
"0.63832945",
"0.6368859",
"0.6356607",
"0.63522756",
"0.63451296",
"0.6334753",
"0.6326959",
"0.6326825",
"0.63261133",
"0.63242364",
"0.6295237",
"0.62852955",
"0.62852955",
"0.62852955",
"0.62727076",
"0.6268554",
"0.62576956",
"0.6245934",
"0.6245934",
"0.62439454",
"0.6240419",
"0.62320656",
"0.6224595",
"0.6221916",
"0.6217595",
"0.6207041",
"0.6203284",
"0.62023836",
"0.62016356",
"0.61787176",
"0.6176738",
"0.6174388",
"0.6174388",
"0.6174388",
"0.6174388",
"0.6174388",
"0.6174388",
"0.6159515",
"0.61563",
"0.61563",
"0.61563",
"0.61563",
"0.61556023",
"0.61515653",
"0.61503756",
"0.6135644",
"0.61306196",
"0.61289847",
"0.61289847",
"0.61289847",
"0.6120452",
"0.61195016",
"0.6108125",
"0.60987914",
"0.6094947",
"0.6090721"
] | 0.0 | -1 |
/ button click event Intent i = new Intent(context, HomeActivity.class); context.startActivity(i); Intent call = new Intent(Intent.ACTION_CALL); call.setData(Uri.parse("tel:9820111067")); callIntent.setData(Uri.parse("tel:" + phone.getText().toString())); context.startActivity(call); | @Override
public void onClick(View v) {
try {
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:" + books.getBuy()));
context.startActivity(callIntent);
} catch (ActivityNotFoundException e) {
Log.e("helloandroid dialing ", "Call failed", e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:9753057542\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1073\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1091\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:101\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1407\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1031\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@OnClick({R.id.phone_img, R.id.phone})\n void OnClickPhone() {\n Intent intent=new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + getString(R.string.here_comes_phone_no)));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:103\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1071\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:100\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:102\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\n public void onClick(View v) {\n Uri number = Uri.parse(\"tel: 08963451822\");\n Intent call = new Intent(Intent.ACTION_DIAL);\n call.setData(number);\n startActivity(call);\n }",
"@Override\n public void onClick(View view) {\n String phoneNumber = supplierPhoneEditText.getText().toString().trim();\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + phoneNumber));\n startActivity(intent);\n }",
"@Override\r\n \t\t\tpublic void onClick(View v) {\n \t\tIntent phoneIntent = new Intent(Intent.ACTION_CALL);\r\n phoneIntent.setData(Uri.parse(\"tel:\"+phoneNumber));\r\n startActivity(Intent.createChooser(phoneIntent, \"Calling number...\"));\r\n \t\t\t}",
"@Override\n public void onClick(View v) {\n\n try {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.fromParts(\"tel\", current_number, null));\n startActivity(intent);\n }\n catch (Exception e)\n {\n\n }\n }",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1072\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:108\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:104\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"public void createPhoneIntent(View view){\n Intent intent = new Intent(Intent.ACTION_DIAL);\n\n //Step 2: Add the telephonne number as a data (URI) to the intent using \"tel:phone_num\";\n Uri uri = Uri.parse(\"tel:09095966472\");\n intent.setData(uri);\n\n //Step 3: Start the activity\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent=new Intent(Intent.ACTION_CALL_BUTTON);\n //intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\tUri uri=Uri.parse(\"tel:\"+ mPhone.getText()); //拨打电话号码的URI格式\n\t\t\t\t\tIntent it=new Intent(); //实例化Intent\n\t\t\t\t\tit.setAction(Intent.ACTION_CALL); //指定Action\n\t\t\t\t\tit.setData(uri); //设置数据\n\t\t\t\t\tstartActivity(it);//启动Acitivity\n\t\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + friend.getPhoneNo()));\n\n context.startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n //Se envian datos asociados a ese Intent\n intent.setData(Uri.parse(\"tel:88854764\"));\n //Se envia el intent\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:041-746-8795\"));\n startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent(Intent.ACTION_CALL);\n\t\t\t\tintent.setData(Uri.parse(\"tel:+8801744955241\"));\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n public void onClick(View view) {\n if (ContextCompat.checkSelfPermission(PhoneDialerActivity.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n // cerem permisiuni de CALL\n ActivityCompat.requestPermissions(\n PhoneDialerActivity.this,\n new String[]{Manifest.permission.CALL_PHONE},\n Constants.PERMISSION_REQUEST_CALL_PHONE);\n // daca avem permisiunea de a efectua CALL\n } else {\n // generam o intentie pentru CALL\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(\"tel:\" + phoneNumberEditText.getText().toString()));\n // pornim activitatea de CALL\n startActivity(intent);\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent callIntent = new Intent(Intent.ACTION_CALL);\n\t\t\t\tcallIntent.setData(Uri.parse(\"tel:\" + getIntent().getLongExtra(\"phone\", 0)));\n\t\t\t\tstartActivity(callIntent);\n\t\t\t}",
"public void callSellerButton(View Button){\n Intent i = getIntent();\n String contact = i.getStringExtra(\"contact\").toString();\n Intent callIntent = new Intent(Intent.ACTION_CALL);\n callIntent.setData(Uri.parse(\"tel:\"+contact));\n startActivity(callIntent);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\"\n\t\t\t\t\t\t+ phoneCode));\n\t\t\t\tmContext.startActivity(intent);\n\t\t\t}",
"private void MakeCall() {\n String number = content_txt.getText().toString();\n if (number.trim().length() > 0) {\n int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.CALL_PHONE);\n\n if (permissionCheck != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(\n this,\n new String[]{Manifest.permission.CALL_PHONE},\n 123);\n } else {\n String dial = \"tel:\" + number;\n Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse(dial));\n startActivity(intent);\n }\n }\n }",
"public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:4089242222\"));\n startActivity(intent);\n }",
"private void Call()\n {\n Intent i = new Intent();\n i.setAction(Intent.ACTION_DIAL);\n i.setData(Uri.parse(\"tel:\" + number[index]));\n startActivity(i);\n Toast.makeText(this, \"Option call Chosen...\", Toast.LENGTH_LONG).show();\n }",
"private void makePhoneCall(){\n String number1 = _txtTel1.getText().toString();\n String number2 = _txtTel2.getText().toString();\n if (number1.trim().length() > 0 && number2.trim().length() >0)\n {\n if (ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED)\n {\n ActivityCompat.requestPermissions(MainActivity.this,new String[]{Manifest.permission.CALL_PHONE},REQUEST_CALL);\n }\n else {\n AlertDialog call = MesOptions2();\n call.show();\n }\n }\n else if (number1.trim().length() > 0 && number2.trim().length() == 0 )\n {\n String dial = \"tel:\" + number1;\n startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(dial)));\n }\n else\n {\n String dial = \"tel:\" + number2;\n startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(dial)));\n }\n\n }",
"private void modifyCallFunc(String number) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + number));\n startActivity(intent);\n }",
"public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:4082778911\"));\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(\"tel:\" + mItem.getNumber()));\n try {\n startActivity(intent);\n } catch (SecurityException e) {\n // Swallow exception\n }\n }",
"public void onClick(View v) {\n\t\t\t\t\t\ttry {\n\t\t \t\t\t\tString phoneNumber = textViewsdt.getText().toString();\n\t\t \t\t\t \n\t\t \t\t\t\t\tIntent it = new Intent(Intent.ACTION_CALL);\n\t\t \t\t\t\t\tit.setData(Uri.parse(\"tel:\" + phoneNumber));\n\t\t \t\t\t\t\tstartActivity(it);\n\t\t \t\t\t\t}\n\t\t \t\t\t\tcatch (ActivityNotFoundException e) {\n\t\t \t\t\t\t\t// Exceptions\n\t\t \t\t\t\t}\n\t\t\t\t\t}",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(Intent.ACTION_DIAL, Uri.fromParts(\"tel\", tv_desc.getText().toString(), null));\n startActivity(intent);\n }",
"@Override\n\tpublic void onClick(View arg0) {\n\t\t\n\t\tIntent callIntent = new Intent(Intent.ACTION_DIAL, Uri.parse(\"tel:555-2345\"));\n\t\tstartActivity(callIntent);\n\t}",
"public static void openCallIntent(Context context, String phone) {\n if (Utils.isNullOrEmpty(phone)) {\n return;\n }\n\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(\"tel:\" + phone));\n context.startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri\n .parse(\"tel://\"\n + number));\n startActivity(intent);\n alert.dismiss();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString number = listdata.get(position).getCallnumber();\n\t\t\t\tIntent callIntent = new Intent(Intent.ACTION_CALL);\n\t\t\t callIntent.setData(Uri.parse(\"tel:\" + number));\n\t\t\t startActivity(callIntent);\n\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent callOnwerIntent = new Intent(Intent.ACTION_DIAL,\n Uri.parse(\"tel:\"+gym.getOwnerMobile().toString()));\n startActivity(callOnwerIntent);\n }",
"@Override\n public void onDialPhone(@Nullable String phone) {\n if (phone == null) return;\n Log.d(TAG, \"onDialPhone: Phone:\" + phone);\n\n //ACTION_DIAL does not call directly\n //ACTION_CALL will call directly and app has to declare permission in manifest\n Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse(\"tel:\" + phone));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }",
"private void makePhoneCall(View root){\n Log.d(TAG, \"makePhoneCall: call the teacher \" + tvTeachersFirstName + \" \" + tvTeachersLastName);\n // Checks if the app have permission to make a phone call\n if(ContextCompat.checkSelfPermission(root.getContext(),\n Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED){\n ActivityCompat.requestPermissions(getActivity(),\n new String[] {Manifest.permission.CALL_PHONE}, REQUEST_CALL);\n }\n else{\n if(tvTeachersPhoneNumber.getText().toString().contains(\"-\")) {\n tvTeachersPhoneNumber.getText().toString().replace(\"-\", \"\");\n }\n\n String dial = \"tel:\" + tvTeachersPhoneNumber.getText().toString();\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(dial));\n startActivity(intent);\n }\n }",
"public void makeCall(Context context){\n dbAdapter = new ContactsDbAdapter(context);\n dbAdapter.open();\n\n Cursor contactsCursor= dbAdapter.fetchAllContacts();\n if (contactsCursor.getCount()!=0){\n contactsCursor.moveToFirst();\n\n System.out.println(\"NOMBRE: \" + contactsCursor.getString(1));\n System.out.println(\"TELEFONO: \" + contactsCursor.getString(2));\n phoneNumber=contactsCursor.getString(2);\n\n try{\n\n System.out.println(\"ey\");\n\n if(ContextCompat.checkSelfPermission(context, Manifest.permission.CALL_PHONE)\n != PackageManager.PERMISSION_GRANTED){\n\n System.out.println(\"No hay permiso de llamada\");\n\n }\n\n Intent intentLlamada = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\"+phoneNumber));\n intentLlamada.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intentLlamada);\n\n } catch (Exception e){\n System.out.println(\"err\");\n e.printStackTrace();\n }\n\n }\n\n\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(phone_num_edt.getText().length() != 0){\n\t\t\t\t\tIntent callIntent = new Intent(Intent.ACTION_CALL);\n\t\t\t\t callIntent.setData(Uri.parse(\"tel:\" + phone_num_edt.getText().toString()));\n\t\t\t\t startActivity(callIntent);\n\t\t\t\t}else{\n\t\t\t\t\tphone_num_edt.setText(list.get(0).getCallnumber());\n\t\t\t\t\tphone_num_edt.setSelection(phone_num_edt.getText().length());\n\t\t\t\t}\n\t\t\t}",
"public void showCallDialog() {\n new AlertDialog.Builder(this)\n .setTitle(getString(R.string.ms_callDIalog_call_ask)).setMessage(getString(R.string.ms_callDialog_call_contact) + \" \" + user.getNom() + \" \" + user.getPrenom() + \" \" + getString(R.string.ms_callDialog_call_end))\n .setPositiveButton(getString(R.string.ms_callDialog_call), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(getString(R.string.ms_callDialog_phone) + \" \" + user.getTelephone()));\n try {\n startActivity(intent);\n }\n catch(SecurityException e) {\n e.printStackTrace();\n }\n }\n })\n .setNegativeButton(getString(R.string.ms_callDialog_stop), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n }).show();\n }",
"public void onClick(DialogInterface dialog, int id) {\n Intent intent = new Intent( Intent.ACTION_CALL, Uri.parse( \"tel:17\" ) );\n activity.startActivity(intent);\n }",
"private void makePhoneCall(){\n if(ContextCompat.checkSelfPermission(NotificationHelper.this, android.Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED){\n\n Toast.makeText(this, \"Phone call permission not given\", Toast.LENGTH_SHORT).show();\n // ActivityCompat.requestPermissions(Alarm2Activity.this, new String[] {android.Manifest.permission.CALL_PHONE}, REQUEST_CALL);\n }\n else{\n String number = \"+213658305662\";\n String phoneNum = \"tel:\" + number;\n startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(phoneNum)));\n }\n }",
"@Override\n public void onClick(View arg0) {\n Uri uri = Uri.parse(\"content://contacts\");\n Intent intent = new Intent(Intent.ACTION_PICK, uri);\n intent.setType(Phone.CONTENT_TYPE);\n startActivityForResult(intent, REQUEST_CODE);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tUri uri = Uri.parse(\"tel:6581890\");\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_DIAL, uri);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"public static void openPhoneIntent(Context context, String phone) {\n if (Utils.isNullOrEmpty(phone)) {\n return;\n }\n\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + phone));\n context.startActivity(intent);\n }",
"public void launchPhone(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_DIAL);\n \tsendIntent.setData(Uri.parse(\"tel:\"));\n \t\n \tfinal ResolveInfo mInfo = pacman.resolveActivity(sendIntent, 0);\n \tString s = pacman.getApplicationLabel(mInfo.activityInfo.applicationInfo).toString();\n \t\n \tif (s != null && s.length() > 2) {\n startActivity(sendIntent);\n return;\n } else {\n \tToast.makeText(context, \"No Phone Call App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}",
"@Override\n public void onClick(View v) {\n \tTextView text1 = (TextView) findViewById(R.id.quantity);\n \tItem.setQuantity(Integer.parseInt(text1.getText().toString()));\n EditText instr = (EditText) findViewById(R.id.instr);\n Item.setInstr(instr.getText().toString());\n // call fragment order\n Intent callIntent = new Intent(Intent.ACTION_CALL); \n callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n callIntent.setClass(c, HomeActivity.class);\n Home.setOrder(true);\n startActivity(callIntent);\n }",
"public static void openDialerToCall(Context context, String mobileNo) {\n\n try {\n context.startActivity(\n new Intent(Intent.ACTION_DIAL).setData(Uri.parse(\"tel:\" + mobileNo))\n );\n } catch (Exception e) {e.printStackTrace();}\n }",
"@Override\n public void onClick(View view) {\n\n Intent intent=new Intent(context, Message_and_Dial.class);\n intent.putExtra(\"Contact Name\", contact.get(position).toString());\n intent.putExtra(\"Phone Number\", contact_num.get(position).toString());\n context.startActivity(intent);\n\n }",
"@SuppressWarnings(\"ResourceType\")\n public static void callPhoneNum(Context context, String phoneNum) {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\" + phoneNum));\n context.startActivity(intent);\n }",
"@OnClick(R.id.converter_organization_phone_iv)\n public void callToOrg() {\n if (ActivityCompat.checkSelfPermission(CashApplication.getContext(), Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n new DialogInfoCall(mContext);\n } else {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\" +\n mMainListForActions.get(mPositionOfCurInList).getOrganizations().get(mPositionOfOrgInList).getPhone()));\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n }",
"private void setupButtonClickEvents() {\n tvPhone1 = (TextView)findViewById(R.id.textViewPhone1Display);\n btn1Call = (Button) findViewById(R.id.button1Call);\n btn1Call.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + tvPhone1.getText()));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n });\n\n /**\n * Set button click listener for texting first contact\n */\n btn1Text = (Button) findViewById(R.id.button1Text);\n btn1Text.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n Intent sendIntent = new Intent(Intent.ACTION_VIEW);\n sendIntent.setData(Uri.parse(\"sms:\" + tvPhone1.getText()));\n sendIntent.putExtra(\"sms_body\", \"Hi\");\n if (sendIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(sendIntent);\n }\n }\n });\n\n /**\n * Set up button click listener for calling second contact\n */\n tvPhone2 = (TextView)findViewById(R.id.textViewPhone2Display);\n btn2Call = (Button) findViewById(R.id.button2Call);\n btn2Call.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + tvPhone2.getText()));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n });\n\n /**\n * Set button click listener for texting second contact\n */\n btn2Text = (Button) findViewById(R.id.button2Text);\n btn2Text.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n Intent sendIntent = new Intent(Intent.ACTION_VIEW);\n sendIntent.setData(Uri.parse(\"sms:\" + tvPhone2.getText()));\n sendIntent.putExtra(\"sms_body\", \"Hi\");\n if (sendIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(sendIntent);\n }\n }\n });\n\n /**\n * Set up button click listener for calling third contact\n */\n tvPhone3 = (TextView)findViewById(R.id.textViewPhone3Display);\n btn3Call = (Button) findViewById(R.id.button3Call);\n btn3Call.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + tvPhone3.getText()));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n });\n\n /**\n * Set button click listener for texting third contact\n */\n btn3Text = (Button) findViewById(R.id.button3Text);\n btn3Text.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n Intent sendIntent = new Intent(Intent.ACTION_VIEW);\n sendIntent.setData(Uri.parse(\"sms:\" + tvPhone3.getText()));\n sendIntent.putExtra(\"sms_body\", \"Hi\");\n if (sendIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(sendIntent);\n }\n }\n });\n\n }",
"@TargetApi(Build.VERSION_CODES.M)\n @RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate (savedInstanceState);\n setContentView (R.layout.activity_main);\n\n getPermissionToReadUserContacts ();\n Button button = findViewById (R.id.button);\n Button button2 = findViewById (R.id.button);\n final EditText editText = findViewById (R.id.editText2);\n button2.setOnClickListener (new View.OnClickListener () {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData (Uri.parse (String.valueOf (editText2)));\n startActivity(intent);\n\n }\n });\n\n// String data = “tel : 651234567”;\n\n button.setOnClickListener (new View.OnClickListener () {\n @Override\n public void onClick(View v) {\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent,SELECT_PHOTO);\n }\n });\n\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\r\n private void callToHelplineNumber(String number) {\r\n Intent intentCall = new Intent(Intent.ACTION_CALL);\r\n intentCall.setData(Uri.parse(\"tel:\"+number));\r\n if (ActivityCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED)\r\n {\r\n Toast.makeText(getApplicationContext(),\"Please grant permission\",Toast.LENGTH_SHORT).show();\r\n requestPermissions();\r\n }\r\n else\r\n {\r\n startActivity(intentCall);\r\n }\r\n }",
"@SuppressLint(\"NewApi\")\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tif (contact_no.equalsIgnoreCase(\"null\") || contact_no.length() == 0\n\t\t\t\t\t\t|| contact_no.isEmpty()) {\n\t\t\t\tToast.makeText(SingleShop.this,\"No Contact details \", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t/* toast */\n\t\t\t\t} else {\n\t\t\t\t\tString phn_no = \"tel:\" + contact_no;\n\t\t\t\t\tIntent callIntent = new Intent(Intent.ACTION_CALL);\n\t\t\t\t\tcallIntent.setData(Uri.parse(phn_no));\n\t\t\t\t\tstartActivity(callIntent);\n\t\t\t\t}\n\n\t\t\t}",
"@Override\n public void onClick(View v) {\n number = \"112\";\n String s = \"tel:\" + number;\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(s));\n if (ActivityCompat.checkSelfPermission(MainActivity.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n startActivity(intent);\n\n //for Location:\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (getApplicationContext().checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n\n fusedLocationProviderClient.getLastLocation()\n .addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n\n sendsms();\n\n }\n }\n });\n\n\n } else\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 0);\n }\n }",
"private void dialPhoneNumber(String phoneNumber) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + phoneNumber));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }",
"@Override\n public void onClick(View view){\n Intent numbersActivityIntent = new Intent(this, NumbersActivity.class);\n startActivity(numbersActivityIntent);\n }",
"@Override\n public void onClick(View v) {\n sendMessage(phone_from_intent);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n// mTextView = (TextView) findViewById(R.id.text);\n// mEditText = (EditText) findViewById(R.id.editText);\n// mBtn = (Button) findViewById(R.id.btn_enter);\n//\n// mBtn.setOnClickListener(new View.OnClickListener(){\n//\n// @Override\n// public void onClick(View view) {\n// mTextView.setText(mEditText.getText().toString());\n// }\n// });\n\n Button mToast = (Button) findViewById(R.id.toast);\n Button mGoogle = (Button) findViewById(R.id.google);\n Button mCall = (Button) findViewById(R.id.call);\n\n mToast.setOnClickListener(new View.OnClickListener(){\n\n @Override\n public void onClick(View view) {\n Toast.makeText(MainActivity.this,\"Start buttion\",Toast.LENGTH_SHORT).show();\n\n Intent myIntent = new Intent(MainActivity.this, SubActivity.class);\n startActivity(myIntent);\n }\n });\n\n mGoogle.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n Intent myIntent = new Intent(MainActivity.this, WebDemoActivity.class);\n startActivity(myIntent);\n }\n });\n\n mCall.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n Intent myIntent = new Intent(Intent.ACTION_DIAL, Uri.parse(\"tel:010-6489-4102\"));\n startActivity(myIntent);\n }\n });\n }",
"private void processCallGarage(String phone) {\n if (phone != null && phone.length() > 0){\n phone = phone.replaceAll(\"\\\\s+\",\"\");\n this.mPhone = phone;\n\n if (ContextCompat.checkSelfPermission(GarageListActivity.this, android.Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(GarageListActivity.this, new String[]{Manifest.permission.CALL_PHONE}, REQUEST_PHONE_CALL);\n } else {\n Intent callSupport = new Intent(Intent.ACTION_CALL, Uri\n .parse(\"tel:\" + mPhone));\n startActivity(callSupport);\n }\n }else {\n showMessage(\"Garage này chưa cập nhật số điện thoại!\");\n }\n\n }",
"@Override\n public void userPageMyTickets() {\n String phone_number = getphoneNumber();\n Intent intent = new Intent(userPageModel.this, myTicketsPageModel.class);\n intent.putExtra(\"phone\",phone_number);\n startActivity(intent);\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n HashMap<String,String> data = contactList.get(position);//값 전달\n Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse(\"tel:\" + data.get(\"mobile\")));\n Bundle bundle = new Bundle();\n bundle.putString(ContactsContract.Intents.Insert.PHONE, data.get(\"mobile\"));\n intent.putExtras(bundle);\n\n startActivity(intent);\n }",
"public void onPressNumber(View view) {\r\n CallHelper.callNumber(this, event.contactNumber);\r\n }",
"@Override\n\tpublic void onClick(View arg0) {\n switch (arg0.getId())\n {\n case R.id.btnContinue:\n {\n registerPhone();\n break;\n }\n case R.id.lnSelectLanguage:\n {\n Intent intent = new Intent(mContext,\n SelectNationActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP\n | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n startActivityForResult(intent, Constants.KEY_SELECT_LANGUAGE);\n break;\n }\n case R.id.tvDieuKhoan:\n {\n Intent i = new Intent(Intent.ACTION_VIEW);\n String language= Pasgo.getInstance().prefs.getLanguage();\n String dieuKhoan;\n if(language.equals(Constants.LANGUAGE_VIETNAM))\n {\n dieuKhoan=Constants.KEY_DIEU_KHOAN_VN;\n }else\n {\n dieuKhoan=Constants.KEY_DIEU_KHOAN_EN;\n }\n i.setData(Uri.parse(dieuKhoan));\n startActivity(i);\n break;\n }\n }\n\t}",
"private void realizarLlamada(Soda soda){\n Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse(\"tel:\" + soda.getTelefono()));\n startActivity(intent);\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tRandom ra=new Random();\r\n\t\t\t\tint val=ra.nextInt(999);\r\n\t\t\t\tSmsManager sms=SmsManager.getDefault();\r\n\t\t\t\tsms.sendTextMessage(txt_phone.getText().toString(), null, val+\"\", null, null);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tIntent i=new Intent(getApplicationContext(), OTP_Reg.class);\r\n\t\t\t\ti.putExtra(\"name\", txt_name.getText().toString());\r\n\t\t\t\ti.putExtra(\"phone\", txt_phone.getText().toString());\r\n\t\t\t\ti.putExtra(\"otp\", val+\"\");\r\n\t\t\t\t\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t}",
"public void onClick(View view) {\n sendSMSMessage(profile_general,phoneNo);\n GoHome();\n }",
"@Override\n public void onClick(View v) {\n\n try {\n if (Utils.isNetWorkConnected(ErpCustomerDetailActivity.this)) {\n makeCall(number);\n } else {\n Toast.makeText(ErpCustomerDetailActivity.this, \"网络错误,请重试!\",\n Toast.LENGTH_LONG).show();\n }\n alert.dismiss();\n//\t\t\t\t\teditText_phone_number.setText(\"\");\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n }",
"public S<T> call(String number){\n\t\t\tIntent callIntent = new Intent(Intent.ACTION_CALL);\n\t\t\tcallIntent.setData(Uri.parse(\"tel:\"+number));\n\t\t\tactivity.startActivity(callIntent);\n\t\t\treturn this;\n\t\t}",
"public void contactBtnIntent(View view) {\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_APP_MESSAGING);\n startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MyInfoActivity.this, PhoneSetActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id)\n {\n Contact currentContact = contacts[position];\n String cName = currentContact.getContactName();\n final String cNumber = currentContact.getContactNumber();\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Would you like to call \" + cName + \"?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which)\n {\n //Call contact here\n Intent callIntent = new Intent(Intent.ACTION_CALL);\n callIntent.setData(Uri.parse(\"tel:\" + cNumber));\n startActivity(callIntent);\n }\n })\n .setNegativeButton(\"No\", null)\n .show();\n }",
"@NeedsPermission(Manifest.permission.CALL_PHONE)\n public void handleACall(String text) {\n Intent intent = new Intent(Intent.ACTION_CALL);\n\n intent.setData(Uri.parse(\"tel:\" + text));\n\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n handleCopyingTextToClipboard(text);\n return;\n }\n\n getContext().startActivity(intent);\n\n }",
"@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.call_phone_1:\n if (cellNums != null) {\n showNumDialog(cellNums);\n } else {\n callPhone(personInfoCellphone.getText().toString().trim());\n }\n break;\n case R.id.call_phone_2:\n if (telNums != null) {\n showNumDialog(telNums);\n } else {\n /*callPhone(personInfoTelphone.getText().toString().trim());*/\n }\n break;\n case R.id.btn_resumeinfo_note:\n showNoteDialog();\n break;\n }\n\n }",
"public void phone_validate(View v1) {\n Intent A2Intent = new Intent (v1.getContext(), Main2Activity.class);\n EditText phone = (EditText) findViewById(R.id.editText);\n // pass the entered phone number to the next activity\n //A2Intent.putExtra(\"phoneNumber\", tv2.getText());\n String ph = phone.getText().toString();\n A2Intent.putExtra(\"phoneNumber\", ph);\n\n // start the next activity/page\n startActivity(A2Intent);\n\n\n }",
"@Override\n public void onClick(View view)\n {\n Intent intent = new Intent(BoilerRoom.this, ScanQR.class);\n //intent.putExtra( \"id\", tvmechID.getText().toString() );\n startActivity(intent);\n }",
"@Override\n public void onClick(DialogInterface dialog,\n\n int which) {\n\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n i.putExtra(\"from_value\", \"enquiry\");\n startActivity(i);\n\n }",
"@OnClick(R.id.rltContact)\n public void contact() {\n Intent cancel = new Intent(getApplicationContext(), ContactActivity.class);\n cancel.putExtra(\"status\", acceptDetailsModel.getStatus());\n cancel.putExtra(\"restaurantname\", acceptDetailsModel.getRestaurantName());\n cancel.putExtra(\"restaurantnumber\", acceptDetailsModel.getRestaurantMobileNumber());\n cancel.putExtra(\"eatername\", acceptDetailsModel.getEaterName());\n cancel.putExtra(\"eaternumber\", acceptDetailsModel.getEaterMobileNumber());\n startActivity(cancel);\n }",
"@Override\r\n public void onItemClick(View view, final int position) {\n Uri u = Uri.parse(\"tel:\" + tasksubject2.get(position));\r\n\r\n Intent i = new Intent(Intent.ACTION_CALL, u);\r\n try {\r\n\r\n //TimeUnit.SECONDS.sleep(1);\r\n Intent maineIntent1 = new Intent(Main3Activity.this, logacall.class);\r\n maineIntent1.putExtra(\"ID\", tasksubject5.get(position));\r\n startActivity(maineIntent1,ActivityOptions.makeSceneTransitionAnimation(Main3Activity.this).toBundle());\r\n startActivity(i);\r\n\r\n }\r\n catch (SecurityException s) {\r\n\r\n }\r\n\r\n PhoneStateListener callStateListener = new PhoneStateListener() {\r\n public void onCallStateChanged(int state, String incomingNumber)\r\n {\r\n if(state==TelephonyManager.CALL_STATE_RINGING){\r\n Toast.makeText(getApplicationContext(),\"Phone Is Riging\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n if(state==TelephonyManager.CALL_STATE_OFFHOOK){\r\n\r\n Toast.makeText(getApplicationContext(),\"Phone Is on call\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n\r\n try {\r\n TimeUnit.SECONDS.sleep(1);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n if(state==TelephonyManager.CALL_STATE_IDLE){\r\n\r\n String id = tasksubject5.get(position);\r\n fields.put(\"Status\", \"Completed\");\r\n saveData(fields,id);\r\n\r\n\r\n//\r\n// Toast.makeText(getApplicationContext(),\"Phone Is not on call\",\r\n// Toast.LENGTH_LONG).show();\r\n\r\n }\r\n }\r\n };\r\n\r\n telephonyManager.listen(callStateListener,PhoneStateListener.LISTEN_CALL_STATE);\r\n\r\n\r\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(thisActivity, SpeedDialListActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view){\n sendData();\n\n Intent startHomeActivity = new Intent(view.getContext(), HomeActivity.class);\n startActivity(startHomeActivity);\n\n }",
"@Override\n public void onClick(View view){\n Intent intentWeb = new Intent(Intent.ACTION_VIEW);\n intentWeb.setData(Uri.parse(buttonUrl.getText().toString()));\n startActivity(intentWeb); //lancement\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent;\n switch (which){\n case DialogInterface.BUTTON_POSITIVE:\n //Yes button clicked\n intent = new Intent(CallIntent.ACCEPT_CALL);\n intent.putExtra(\"callId\", mCallId);\n LocalBroadcastManager.getInstance(getBaseContext()).sendBroadcast(\n intent);\n break;\n \n case DialogInterface.BUTTON_NEGATIVE:\n //No button clicked\n intent = new Intent(CallIntent.REJECT_CALL);\n intent.putExtra(\"callId\", mCallId);\n LocalBroadcastManager.getInstance(getBaseContext()).sendBroadcast(\n intent);\n break;\n }\n mAlertDialog.hide();\n finish();\n }",
"public void onClick(View v) {\n\t\t\tcallPhone();\n\t\t}",
"public void clickedButton(View view) {\n\n switch (view.getId()) {\n case R.id.contactBook:\n intent = new Intent(this, ContactBookActivity.class);\n startActivity(intent);\n break;\n case R.id.message:\n intent = new Intent(this, SMS_Activity.class);\n startActivity(intent);\n break;\n case R.id.fav_contacts:\n intent = new Intent(this, ContactGridActivity.class);\n startActivity(intent);\n break;\n case R.id.lastCall:\n intent = new Intent(this, LatestCallsActivity.class);\n startActivity(intent);\n break;\n case R.id.microphone:\n SpeechRecognitionHelper.run(this);\n break;\n }\n }",
"@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }",
"@Override\n public void onActivityResult(int reqCode, int resultCode, Intent data) {\n super.onActivityResult(reqCode, resultCode, data);\n\n switch (reqCode) {\n case (1) :\n if (resultCode == Activity.RESULT_OK) {\n Uri contactData = data.getData();\n Cursor c = managedQuery(contactData, null, null, null, null);\n if (c.moveToFirst()) {\n String name = c.getString(c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));\n // Fetch other Contact details as you want to use\n\n ContentResolver cr = getContentResolver();\n Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, null,\n \"DISPLAY_NAME = '\" + name + \"'\", null, null);\n if (cursor.moveToFirst()) {\n String contactId =\n cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n //\n // Get all phone numbers.\n //\n Cursor phones = cr.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \" = \" + contactId, null, null);\n while (phones.moveToNext()) {\n String number = phones.getString(phones.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n int type = phones.getInt(phones.getColumnIndex(ContactsContract.CommonDataKinds.Phone.TYPE));\n switch (type) {\n case ContactsContract.CommonDataKinds.Phone.TYPE_HOME:\n // do something with the Home number here...\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE:\n // do something with the Mobile number here...\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_WORK:\n // do something with the Work number here...\n break;\n }\n\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"sms:\"\n + number)));\n }\n phones.close();\n }\n cursor.close();\n\n\n\n\n }\n }\n break;\n }\n }",
"private void checkDataBalance() {\n String ussdCode = \"*175*4\" + Uri.encode(\"#\");\n startActivity(new Intent(Intent.ACTION_CALL,Uri.parse(\"tel:\"+ussdCode)));\n\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n switch (requestCode){\n case PHONE_CALL_PERMISSION_REQUEST:\n if(grantResults.length > 0 && grantResults[0]== PackageManager.PERMISSION_GRANTED){\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(\"tel:\" + contactDetails.getNumbers().get(0)));\n startActivity(intent);\n }else{\n\n }\n }\n }",
"private void checkBalance() {\n String ussdCode = \"*131\"+ Uri.encode(\"#\");\n startActivity(new Intent(Intent.ACTION_CALL,Uri.parse(\"tel:\"+ussdCode)));\n }",
"public void onClick(View v) {\n\t\t\t\tphoneListener = new mPhoneCallListener();\n\t\t\t\t/**\n\t\t\t\t * 设置TelephonyManager去抓取telephone service\n\t\t\t\t */\n\t\t\t\ttelMgr = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);\n\t\t\t\t/* Listen Call */\n\t\t\t\ttelMgr.listen(phoneListener, mPhoneCallListener.LISTEN_CALL_STATE);\n\t\t\t\tshowDialog(0);\n\t\t\t}"
] | [
"0.8421564",
"0.8414435",
"0.8410464",
"0.838336",
"0.835313",
"0.8350931",
"0.8320781",
"0.83124757",
"0.8285706",
"0.8274645",
"0.8254326",
"0.8215298",
"0.8210458",
"0.8209853",
"0.81960475",
"0.81918377",
"0.81785077",
"0.8177405",
"0.817275",
"0.8142007",
"0.81203395",
"0.8091405",
"0.8007143",
"0.7938833",
"0.78679913",
"0.78548056",
"0.78286564",
"0.7826699",
"0.7809979",
"0.7749795",
"0.77081054",
"0.7685718",
"0.76805854",
"0.766658",
"0.76330876",
"0.7622916",
"0.7602491",
"0.7587811",
"0.7567822",
"0.75444",
"0.75353837",
"0.7485807",
"0.74830467",
"0.7439527",
"0.7422173",
"0.7386174",
"0.7361597",
"0.72986245",
"0.7298116",
"0.7295164",
"0.7223588",
"0.72212964",
"0.7159763",
"0.71235687",
"0.7118047",
"0.7093847",
"0.704629",
"0.69856596",
"0.6953122",
"0.69310606",
"0.6930583",
"0.68787074",
"0.68616676",
"0.6829175",
"0.6813419",
"0.67885804",
"0.6765361",
"0.6742124",
"0.6730757",
"0.67081016",
"0.6675845",
"0.666927",
"0.66470367",
"0.66367316",
"0.66340834",
"0.66085774",
"0.65878963",
"0.65813655",
"0.65608656",
"0.65601957",
"0.6547747",
"0.6532821",
"0.64949685",
"0.64652425",
"0.6462671",
"0.6457404",
"0.6440368",
"0.6426325",
"0.64184356",
"0.6406945",
"0.6402776",
"0.6394041",
"0.6390986",
"0.638752",
"0.63770574",
"0.6358624",
"0.63584095",
"0.63583887",
"0.63529485",
"0.63462746"
] | 0.78471273 | 26 |
Constructeur de la classe PNJ, il faut renseigner tous les attributs du personnage | public PNJ(int identifiant, String nom, int age, int sexe, int argent, Comportement comportement,
Repliques repliques, Joueur joueur, MaitreDuJeu maitreDuJeu) {
setIdentifiant(identifiant);
setNom(nom);
setAge(age);
setSexe(sexe);
setArgent(argent);
setComportement(comportement);
setRepliques(repliques);
setJoueur(joueur);
setMaitreDuJeu(maitreDuJeu);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Persona() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Persona(){\n \n }",
"public Persona(){\n \n }",
"public Persona() {\n \t\n }",
"public Persona() {\n\t}",
"public YonetimliNesne() {\n }",
"public RptPotonganGaji() {\n }",
"public Plato(){\n\t\t\n\t}",
"public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }",
"public Persona() { // constructor sin parámetros\r\n\t\t\r\n\t\tthis.nif = \"44882229Y\";\r\n\t\tthis.nombre=\"Anonimo\";\r\n\t\tthis.sexo = 'F';\r\n\t\tthis.fecha = LocalDate.now();\r\n\t\tthis.altura = 180;\r\n\t\tthis.madre = null;\r\n\t\tthis.padre = null;\r\n\t\tcontador++;\r\n\t}",
"public CompositePersonne() {\n\t\tthis.nomGroupe = \" \";\n\t\tthis.personnel = new ArrayList<InterfacePersonne>();\n\n\t}",
"ProjetoRN createProjetoRN();",
"public PersonaFisica() {}",
"public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }",
"public Persona() {\n }",
"public Pupil(String n, int a, int f){\n\t\tthis.age=a;\n\t\tthis.form=f;\n\t\tthis.name=n;\n\t}",
"public Persona(){\n /*super(nombresPosibles\n [r.nextInt(nombresPosibles.length)],(byte)r.nextInt(101));\n */\n super(\"Anónimo\",(byte)5);\n String[] nombresPosibles={\"Patracio\",\"Eusequio\",\"Bartolo\",\"Mortadelo\",\"Piorroncho\",\"Tiburcio\"};\n String[] apellidosPosibles={\"Sánchez\",\"López\",\"Martínez\",\"González\",\"Páramos\",\"Jiménez\",\"Parra\"};\n String[] nacionalidadesPosibles={\"Española\",\"Francesa\",\"Alemana\",\"Irlandesa\",\"Japonesa\",\"Congoleña\",\"Bielorrusa\",\"Mauritana\"};\n Random r=new Random();\n this.apellido=apellidosPosibles\n [r.nextInt(apellidosPosibles.length)];\n this.nacionalidad=nacionalidadesPosibles\n [r.nextInt(nacionalidadesPosibles.length)];\n mascota=new Mascota[5];\n this.saldo=r.nextInt(101);\n }",
"public Person(){\r\n\t\tsuper();\r\n\t}",
"public Profesor (String apellidos, String nombre, String nif, Persona.sexo genero, int edad, int expediente){\n this.apellidos = apellidos;\n this.nombre = nombre;\n this.nif = nif;\n this.genero = genero;\n this.edad = edad;\n this.expediente = expediente;\n }",
"public Person() {\r\n setPersonID(null);\r\n setAssocUserName(null);\r\n setFirstName(null);\r\n setLastName(null);\r\n setGender(null);\r\n setFatherID(null);\r\n setMotherID(null);\r\n setSpouseID(null);\r\n }",
"private TIPO_REPORTE(String nombre)\r\n/* 55: */ {\r\n/* 56: 58 */ this.nombre = nombre;\r\n/* 57: */ }",
"public Persona(String nombre) {\n this.nombre = nombre;\n }",
"public Person() {\n\t\t\n\t}",
"public Persona()\n\t{\n\t\tnombre = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\tapellido = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\tedad = 0; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\talias = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\t\t\n\t}",
"public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }",
"public Cgg_jur_anticipo(){}",
"Girl(String n,String p,String i,String a,String b,String t,String pr) {\n \n name = n;\n pairedto = p;\n intelligence = Integer.parseInt(i);\n attractiveness = Integer.parseInt(a);\n mBudget = Integer.parseInt(b); \n type = t;\n pref = pr;\n \n }",
"public Personaje(Juego juego,Celda c) {\r\n\t\tsuper(juego,c);\r\n\t}",
"private Panino(String name) {\n this.name = name;\n }",
"private Person(String name, String urlpt) {\n this.name = name;\n this.urlpt = urlpt;\n personMap.put(name, this);\n coauthorsLoaded = false;\n labelvalid = false;\n }",
"public JPDV1(Principal P) {\n this.Princi = P;\n initComponents();\n }",
"public Puntaje(String nom, int puntaje) {\n this.nombre = nom;\n this.puntos = puntaje;\n }",
"protected Persona (String nombre,String apellido, String fechaNac){\r\n this.nombre = nombre;\r\n this.apellido = apellido;\r\n this.fechaNac = fechaNac;\r\n }",
"public Candidatura (){\n \n }",
"public Pitonyak_09_02() {\r\n }",
"public Person(String name, ArrayList<String> pnArray) {\n\n\t}",
"public Person() {\n\t\tname \t= \"\";\n\t\taddress = \"\";\n\t\tcity \t= \"\";\n\t\tage \t= 0;\n\t}",
"public Person()\n {\n this.name = \"John Doe\";\n this.address = \"1234 Somewhere Dr.\";\n this.phoneNumber = \"309-555-1234\";\n this.emailAddress = \"john.doe@organization.com\";\n }",
"public Jeu(){\n Saisie.Initialiser();\n this.premierJoueur = CreationDePersonnage(\"joueur1\");\n this.secondJoueur = CreationDePersonnage(\"joueur2\");\n Combat();\n Saisie.Terminer();\n }",
"public AntrianPasien() {\r\n\r\n }",
"public PennCnvSeq() {\n }",
"public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}",
"public XmlAdaptedPerson() {}",
"public Person() {\n\t\tthis.name = \"Unknown\"; \n\t}",
"public Propiedad(){\n\t}",
"private NaturePackage() {}",
"public Potencial() {\r\n }",
"private TypicalPersons() {}",
"private TypicalPersons() {}",
"public Propuestas() {}",
"public Pasien() {\r\n }",
"public Commune() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Produto() {}",
"public Postoj() {}",
"public Person(String vorname, String nachname) {\n\n\t}",
"public PIInfo() {\n }",
"public Persona(String n,String a, byte e,String d){\n this.nombre=n;\n this.apellido=a;\n this.edad=e;\n this.dni=d;\n }",
"public static void main(String[] args) {\n /**\n * Construction par defaut\n */\n Personne p = new Personne();\n System.out.println(p.toString());\n /**\n * Construction avec comme parametre nom et prenom\n */\n Personne p1 = new Personne(\"Thiaw\",\"Serigne Cheikh Mbacke\");\n System.out.println(p1.toString());\n /**\n * Construction avec comme parametre nom, prenom et age\n */\n Personne p2 = new Personne(\"Thiaw\",\"Serigne Cheikh Mbacke\",22);\n System.out.println(p2.toString());\n /**\n * Construction tous les parametres\n */\n Personne p3= new Personne(\"Thiaw\",\"Serigne Cheikh Mbacke\",22,Sexe.Masculin);\n System.out.println(p3.toString());\n }",
"public Person(final JSONObject p, final String className) {\n this(p);\n info.add(PersonInfo.createInfo(\"Group\", className));\n }",
"public Phl() {\n }",
"public Persona(String dni, String nombre, String apellido1) {\n\t\tthis.dni = dni;\n\t\tthis.nombre = nombre;\n\t\tthis.apellido1 = apellido1;\n\t}",
"public CCPMention(JCas jcas) {\n super(jcas);\n readObject();\n }",
"@SuppressWarnings(\"static-access\")\n\tpersonaje(int vida, int ataque, int personajes_creados)\n\t{\n\t\t// estableciendo parametros iguales a las variables\n\t\tthis.vida = vida;\n\t\tthis.ataque = ataque;\n\t\tthis.personajes_creados = personajes_creados;\n\t\t\n\t}",
"public Persona(String nombre) {\n\t\tthis.nombre = nombre;\n\t}",
"public Proion(String x,String y)\n {\n perigrafh=y;\n katasthma=x;\n }",
"public Person() {\r\n\t\tid = \"00000\";\r\n\t\tfName = \"unknown\";\r\n\t\tlName = \"unknown\";\r\n\t\tbirthday = LocalDate.now();\r\n\t\tphone = \"unknown\";\r\n\t\tstatus = \"unknown\";\r\n\t\tcontacts = new ArrayList<String>();\r\n\t}",
"public Promo(String n){\nnom = n;\n}",
"public Persona(String nombre, String apellido, String email, String telefono){\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n }",
"public PersonSummary() {}",
"Petunia() {\r\n\t\t}",
"public SlanjePoruke() {\n }",
"public Person(String fn, String ln, Set<String> pns) {\n\t\t\tthis.firstName = fn;\n\t\t\tthis.lastName = ln;\n\t\t\tCollection<E> oldSet = pns;\n\t\t\tTreeSet<E> tempPhone = new TreeSet<E>(pns);\n\t\t\tthis.phoneNumbers = tempPhone;\n\t\t}",
"public PupilInfo() {\n }",
"final public ppp.p1 ppp$p1$$init$S() {\r\n {\r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n \r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n this.__fieldInitializers_ppp_p1();\r\n }\r\n return this;\r\n }",
"public Partage() {\n }",
"public Persona( \n\t\t\t@JsonProperty(value=\"id\")Long id, \n\t\t\t@JsonProperty(value=\"nombre\")String nombre , \n\t\t\t@JsonProperty( value=\"apellido\")String apellido , \n\t\t\t@JsonProperty(value=\"tipo\")String tipo,\n\t\t\t@JsonProperty(value=\"papel\") String papel,\n\t\t\t@JsonProperty(value=\"multa\") Integer multa ) { \n\t\t\n\t\t\n\t\tthis.id = id;\n\t\tthis.nombre = nombre;\n\t\tthis.apellido = apellido;\n\t\tthis.tipo = tipo;\n\t\tthis.papel = papel;\n\t\tthis.multa = multa;\n\t\t\n\t}",
"public Person() {}",
"public Persona(String nombre, Date fechaNac, char sexo, double peso, double altura){\r\n\t\tthis.nombre=nombre;\r\n\t\tthis.fechaNac=fechaNac;\r\n\t\tthis.peso=peso;\r\n\t\tthis.altura=altura;\r\n\t\tthis.dni=generarDni();\r\n\t\tsetSexo(sexo); //Asigna el sexo realizando comprobacion\r\n\t}",
"public BirthInfo() {}",
"public NhanVien()\n {\n }",
"public Publication(String title, int year)\n {\n // this is the constructor that iniates the variables \n name = title;\n yr = year;\n }",
"public CMN() {\n\t}",
"public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}",
"PassengerPersonalInfo(String First_Name, String Last_Name, int Age, Date dob, \n String Address, String Nationality, long Number, String eID) { \n this.firstName = First_Name;\n this.lastName = Last_Name;\n this.age = Age;\n this.dateOfBirth = dob;\n this.address = Address;\n this.nationality = Nationality;\n this.contact = Number;\n this.email = eID;\n }",
"Community() {}",
"public EnvioPersonaPK() {\r\n }",
"public PointOfInterest() {\n }",
"public PrnPrivitakVo() {\r\n\t\tsuper();\r\n\t}",
"public p7p2() {\n }",
"public Patient(String n, String type){\n name =\"Brendan\";\n pid = \"01723-X72312-7123\";\n birthDate = new Date();\n nationalID = n;\n sex =\"Female\";\n mothersName = \"Mary\";\n fathersName = \"John\";\n enrolledSchema = new Schema();\n doctype = 1;\n }",
"public Noeud(Noeud pere) {\n\t\tthis.poidsActuelle = pere.poidsActuelle;\n\t\tthis.profondeur = pere.profondeur + 1;\n\t\tthis.borneInf = pere.borneInf;\n\t\tthis.borneSup = pere.borneSup;\n\t\tthis.ListObjet = pere.ListObjet; \n\t\tthis.poids_maximal = pere.poids_maximal;\n\t\tnouvelleListeObjetParNoeud(pere.ListObjetParNoeud);\n\t}",
"public Plato(String nombre, String descripcion){\n\t\tthis.nombre=nombre;\n\t\tthis.descripcion=descripcion;\n\t}",
"public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }",
"public Employe () {\n this ( NOM_BIDON, null );\n }",
"public Person1() {\n\t\tsuper();\n\t}",
"public Puppy() {\n\t\t//TODO\n\t}",
"private GestionnaireLabelsProperties() {\r\n\t\tsuper();\r\n\t}",
"@Override\n public void buildPersonalidad() {\n this.personaje.setPersonalidad(\"Pacientes y estrategas.\");\n }",
"public Persona(int idPersona, String nombre, String apellido, String email, String telefono){\n this.idPersona = idPersona;\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n \n }",
"public Person() {\n }"
] | [
"0.6362078",
"0.6320289",
"0.6320289",
"0.62785536",
"0.62756467",
"0.6269555",
"0.62658733",
"0.625488",
"0.6222211",
"0.6213477",
"0.6187372",
"0.61782175",
"0.617715",
"0.6123049",
"0.60962087",
"0.60853654",
"0.60849476",
"0.60653305",
"0.60597795",
"0.60408854",
"0.6034109",
"0.60282606",
"0.5969263",
"0.59657025",
"0.59550136",
"0.59486526",
"0.59481657",
"0.59469783",
"0.59392476",
"0.5924649",
"0.5920608",
"0.59076184",
"0.5902982",
"0.588517",
"0.5872113",
"0.5867853",
"0.5864115",
"0.5859482",
"0.58565634",
"0.58558446",
"0.5852993",
"0.5849583",
"0.5845004",
"0.58311635",
"0.5822332",
"0.5801042",
"0.57947505",
"0.57914317",
"0.57914317",
"0.57889146",
"0.57874143",
"0.5778514",
"0.57745284",
"0.57729673",
"0.57594067",
"0.5742357",
"0.5728708",
"0.5728355",
"0.5719336",
"0.57183033",
"0.5716728",
"0.57047105",
"0.56973964",
"0.5694764",
"0.56893206",
"0.5688998",
"0.5680809",
"0.56782955",
"0.56779265",
"0.56763387",
"0.56729084",
"0.5638281",
"0.5638118",
"0.5636963",
"0.5635111",
"0.56306875",
"0.56244236",
"0.56227154",
"0.5613848",
"0.5609198",
"0.5607458",
"0.5603644",
"0.5596752",
"0.55899096",
"0.5587249",
"0.5583529",
"0.55782247",
"0.55781066",
"0.55763006",
"0.55731666",
"0.5561513",
"0.5554987",
"0.5548454",
"0.55483544",
"0.5545197",
"0.55434656",
"0.55381405",
"0.5537616",
"0.5535849",
"0.5531211"
] | 0.68195 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) throws Exception {
Perro p1=new Perro();
Perro p2 =new Perro("Chucho", "Pastor Aleman", 3,true);
PerroPresa pp1=new PerroPresa();
PerroPresa pp2=new PerroPresa("Dientes","pitbull",5,true);
pp1.setNombre("ŅamŅam");
p1.setEdad(-3);
System.out.println(p1.toString());
System.out.println(p2.toString());
System.out.println(pp1.toString());
pp1.atacar();
System.out.println(pp2.toString());
pp2.atacar();
} | {
"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 |
Returns the magnitude of the vector | public double magnitude() {
return Math.sqrt(x*x + y*y + z*z);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double magnitude(Coordinates vector);",
"public double magnitude(){\n return Math.sqrt((this.x * this.x) + (this.y * this.y));\n }",
"public double magnitude () {\n\t\treturn Math.sqrt( (deltaX * deltaX) + (deltaY * deltaY));\n\t}",
"public double magnitude() {\n \n double ms = _x * _x + _y * _y; \n return Math.sqrt(ms);\n \n }",
"public double magnitude() {\r\n\t\treturn Math.sqrt(this.x*this.x + this.y*this.y + this.z*this.z);\r\n\t}",
"public double magnitude(){\n\t\treturn Math.sqrt(x*x + y*y + z*z);\n\t}",
"public double magnitude()\n {\n return Math.sqrt((x*x) + (y * y) + (z * z) + (w * w));\n }",
"public double magnitude() {\n double totalX = this.xCoord * this.xCoord;\n double totalY = this.yCoord * this.yCoord;\n double totalZ = this.zCoord * this.zCoord;\n return Math.sqrt(totalX + totalY + totalZ);\n }",
"static double vectorMagnitude(double[] vector) {\n if (vector.length != 3)\n throw new IllegalArgumentException(\"Argument not a 3-D vector <dim=\" + vector.length + \">.\");\n return (Math.sqrt(Math.pow(vector[0], 2.0) + Math.pow(vector[1], 2.0) + Math.pow(vector[2], 2.0)));\n }",
"public double magnitude() {\n return Math.sqrt(magnitudeSquared());\n }",
"public double magnitude() {\n return (Math.sqrt( (this.real * this.real) + (this.imag * this.imag) ) );\n }",
"public double getMagnitude() {\n\t\treturn Math.sqrt(real * real + imaginary * imaginary);\n\t}",
"public double getMagnitude() {\n\t\treturn Math.sqrt(imaginary * imaginary + real * real);\n\t}",
"public float magnitude() {\r\n \r\n return (float)Math.sqrt(x*x + y*y + z*z);\r\n }",
"public T magnitude();",
"float getMagnitude();",
"public double mag() {\n return Math.sqrt(mag2());\n }",
"public double mag()\n {\n return (Math.sqrt(this.x*this.x + this.y*this.y));\n }",
"public float getMagnitude()\n {\n return magnitude;\n }",
"public float getMagnitude() {\r\n\t\treturn Float.parseFloat(getProperty(\"magnitude\").toString());\r\n\t}",
"public float getMagnitude() {\n\t\treturn Float.parseFloat(getProperty(\"magnitude\").toString());\n\t}",
"public double magnitude() {\n return celestialMagnitude;\n }",
"public float getMagnitude() {\n return (float) Math.sqrt(Math.pow(latComponent, 2) + Math.pow(longComponent, 2));\n }",
"public double getHmag()\n\t{\n\t\tVectorN h = this.getH();\n\t\tdouble out = h.mag();\n\t\treturn out;\n\t}",
"public T magnitudeSquared();",
"public int getMagnitude()\r\n {\r\n return magnitude;\r\n }",
"public int getMagnitude() {\n\t\treturn magnitude;\n\t}",
"public static double getVectorMagnitude(Point p1, Point p2) {\n int exponent = 2;\n return Math.sqrt(\n Math.pow(p1.getX() - p2.getX(), exponent) +\n Math.pow(p1.getY() - p2.getY(), exponent)\n );\n }",
"private double calculateMagnitude(double x_acceleration, double y_acceleration, double z_acceleration) {\n double magnitude = 0;\n double x_squared = 0;\n double y_squared = 0;\n double z_squared = 0;\n\n x_squared = Math.pow(x_acceleration, 2);\n y_squared = Math.pow(y_acceleration, 2);\n z_squared = Math.pow(z_acceleration, 2);\n\n //-------------------------------------------------------------\n // Calculated based on formula r=sqrt(x^2+y^2+z^2) where,\n // r = magnitude of the vector.\n //-------------------------------------------------------------\n magnitude = Math.sqrt(x_squared + y_squared + z_squared);\n\n return magnitude;\n }",
"public double magnitudeSquared() {\n \n return _x * _x + _y * _y; \n \n }",
"public double magnitudeSquared(){\n\t\treturn x*x + y*y + z*z;\n\t}",
"public double getMagnitud(){\n return Math.sqrt(x*x+y*y);\n }",
"public Vector normalize(){\n\t\tdouble mag = magnitude();\n\t\treturn new Vector(x/mag, y/mag, z/mag);\n\t}",
"public double getLength() {\n\treturn CVector.subtract(v2, v1).getMag();\n }",
"public double magnitudeSquared() {\n return x * x + y * y + z * z;\n }",
"float norm();",
"public double squareMagnitude() {\n\t\treturn x*x + y*y + z*z;\n\t}",
"public double calcMagnitudeVector(int i) {\n // Remove the gravity contribution with the high-pass filter.\n linear_acceleration[0] = mEvent.values[0];\n linear_acceleration[1] = mEvent.values[1];\n linear_acceleration[2] = mEvent.values[2];\n\n mAccelValues[i] = Math.sqrt(\n linear_acceleration[0] * linear_acceleration[0] +\n linear_acceleration[1] * linear_acceleration[1] +\n linear_acceleration[2] * linear_acceleration[2]);\n return mAccelValues[i];\n }",
"public double getX_AxisMagnitudeDifference() {\n return 0;\n }",
"public double norm() {\n\t\treturn Math.sqrt(x * x + y * y + z * z);\n\t}",
"public float length() {\r\n\t\treturn (float) Math.sqrt((x * x) + (y * y));\r\n\t}",
"public double euclidean(VectorA v)\n {\n return (Math.sqrt(this.mag() + v.mag()));\n }",
"public double getV() {\r\n return Math.sqrt(Math.pow(this.dx, 2) + Math.pow(this.dy, 2));\r\n }",
"public double norm() {\n\t\thomogenize();\n\t\treturn Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);\n\t}",
"public VectorA normal()\n {\n return new VectorA(this.x/this.mag(), this.y/this.mag());\n }",
"public float length()\n {\n return (float) Math.sqrt(x * x + y * y + z * z + w * w);\n }",
"public float length(){\r\n\t\treturn (float)Math.sqrt(Math.pow(this.x, 2) + Math.pow(this.y, 2) + Math.pow(this.z, 2) );\r\n\t}",
"public Vector normalize ( );",
"public final float length() {\n\t\treturn (float)Math.sqrt(X * X + Y * Y);\n\t}",
"public static final float magnitude(final float real, final float imaginary) {\r\n return (float) Math.sqrt(real * real + imaginary * imaginary);\r\n }",
"public Vector Normalize(){\n float magnitude = Magnitude();\n for(int i = 0; i < axis.length; i++){\n axis[i] /= magnitude;\n }\n return this;\n }",
"public float length() {\n return (float) Math.sqrt(x*x + y*y);\n }",
"public float length(){\n return (float) Math.sqrt(Math.pow(x,2) + Math.pow(y,2) + Math.pow(z,2));\n }",
"public float Distance(Vector to){\n return Math.abs(Substract(this,to,new Vector(to.axis.length)).Magnitude());\n }",
"@Test\r\n public void testMag() {\r\n double expected = 5;\r\n Complex c = new Complex(-4, -3);\r\n double actual = c.mag();\r\n assertEquals(expected, actual);\r\n \r\n }",
"public void setMagnitude()\n {\n magnitude = (float) Math.sqrt(Math.pow(fx, 2) + Math.pow(fy, 2) + Math.pow(fz, 2));\n }",
"public Vector2 subMagnitude(double magnitude) {\n return withMagnitude(getMagnitude() - magnitude);\n }",
"public float lenght() {\n\t\treturn (float) Math.sqrt(x*x + y*y + z*z);\n\t}",
"public MyDouble norm() {\r\n\t\tMyDouble aSquar = this.getReal().square();\r\n\t\tMyDouble bSquare = this.getImag().square();\r\n\t\tMyDouble sum = aSquar.add(bSquare);\r\n\t\tMyDouble result = sum.sqrt();\r\n\t\treturn result;\r\n\t}",
"public double distance(Point p){\n\t\treturn (this.minus(p)).magnitude(); //creates a vector between the two points and measures its magnitude\n\t}",
"public double length() {\n\t\treturn Math.sqrt(x * x + y * y + z * z + w * w);\n\t}",
"public double length()\n\t{\n\t\treturn Math.sqrt(x*x + y*y);\n\t}",
"public double lenght() {\r\n\t\treturn Math.sqrt(this.x * this.x +\r\n\t\t\t\t\t\t this.y * this.y +\r\n\t\t\t\t\t\t this.z * this.z);\r\n\t}",
"public double norm() {\n if (dy == 0.0)\n return Math.abs(dx);\n return Math.hypot(dx, dy);\n }",
"public double dot(VectorA v)\n {\n return (this.mag()*v.mag());\n }",
"public float length ()\n {\n return FloatMath.sqrt(lengthSquared());\n }",
"Vector getSize();",
"float norm2();",
"public double norm() {\r\n return Math.sqrt(innerProduct(this));\r\n }",
"public abstract Vector4fc normalize(float length);",
"public double len() {\n \t\treturn Math.sqrt((double)x*x + (double)y*y + (double)z*z);\n \t}",
"public void setMagnitude(int magnitude)\r\n {\r\n this.magnitude = magnitude; \r\n }",
"Double getZLength();",
"public static double vec_len(Vector<Double> a) {\n\t\tdouble res = 0;\n\t\tfor (int i = 0; i < a.size(); i++)\n\t\t\tres += a.get(i) * a.get(i);\n\t\tres = Math.sqrt(res);\n\t\treturn res;\n\t}",
"public Vector2f normalize() {\n return div(length());\n }",
"public double mag2() {\n return (x * x) + (y * y);\n }",
"public Vector2 withMagnitude(double magnitude) {\n return new Vector2(Degrees.cos(getRotation()) * magnitude, Degrees.sin(getRotation()) * magnitude);\n }",
"public static float length(Vec2 a) {\r\n\t\treturn (float) Math.sqrt((a.x * a.x) + (a.y * a.y));\r\n\t}",
"public Vector rescale (double magnitude) {\n\t\tdouble magni = magnitude();\n\t\t\n\t\tif (magni == 0) {\n\t\t\treturn new Vector(magnitude, 0);\n\t\t}\n\t\telse {\n\t\t\treturn scale(magnitude/magni);\n\t\t}\n\t}",
"public float getSpeed() {\n\t\tfloat result = (float) Math.sqrt(velocity.x * velocity.x + velocity.y * velocity.y);\n\t\treturn result;\n\t}",
"public Vector3D normalize()\r\n {\r\n float oneOverMagnitude = 0;\r\n float mag = magnitude();\r\n \r\n if (mag!=0) {\r\n oneOverMagnitude = 1 / mag;\r\n }\r\n\r\n return this.product(oneOverMagnitude);\r\n }",
"public Vector normalized() {\n Vector t=new Vector(normalize());\n return t;\n }",
"public Vector2D normalizedVect() {\n return new Vector2D(x / magnitude(), y / magnitude());\n }",
"public Vector2D normal()\n\t{\n\t\treturn this.mul(1/this.length());\n\t}",
"public double abs() {\n\t\treturn Math.sqrt(real * real + imag * imag);\n\t}",
"public double sqrMagnitude()\n {\n return ((x*x) + (y*y) + (z*z) + (w * w));\n }",
"public double m2() {\n\t\treturn (this.e() * this.e() - this.vector.mag2());\n\t}",
"public double getVelocity() {\n\t\treturn velocity.getlength();\n\t}",
"public double getForceMagnitude(State state) {\n return opensimSimulationJNI.ExpressionBasedPointToPointForce_getForceMagnitude(swigCPtr, this, State.getCPtr(state), state);\n }",
"public double length() {\n return Math.sqrt(\n (Math.pow(getX(), 2)) +\n (Math.pow(getY(), 2)) +\n (Math.pow(getZ(), 2))\n );\n }",
"final public Vector3 normalized(){\n return new Vector3(x/magnitude, y/magnitude, z/magnitude);\n }",
"public Vector2 addMagnitude(double magnitude) {\n return withMagnitude(getMagnitude() + magnitude);\n }",
"public Vector normalized() {\n double size = this.length();\n return new Vector(this.getHead().getX() / size, this.getHead().getY() / size, this.getHead().getZ() / size);\n }",
"public final void mag() throws ArithmeticException {\n\t\tif ((mksa&_LOG) != 0) throw new ArithmeticException\n\t\t(\"****Unit: mag(\" + symbol + \")\") ;\n\t\tvalue = -2.5*AstroMath.log(value);\n\t\tif ((mksa == underScore) && (factor == 1)) {\t// Now we've mag\n\t\t\tmksa |= _mag;\n\t\t\tif (symbol != null) symbol = \"mag\";\n\t\t} else {\n\t\t\tmksa |= (_log|_mag);\n\t\t\tif (symbol != null) symbol = \"mag[\" + symbol + \"]\";\n\t\t}\n\t}",
"public ThreeVector unitVector() {\r\n\t\tif (this.magnitude()==0) { \r\n\t\t\treturn new ThreeVector(0,0,0);\r\n\t\t} else {\r\n\t\t\treturn new ThreeVector(this.x/this.magnitude(), this.y/this.magnitude(), this.z/this.magnitude());\r\n\t\t}\r\n\t}",
"public double getVelocitySize() {\r\n return Math.sqrt(this.dx * this.dx + this.dy * this.dy);\r\n }",
"public Vector4 normalized()\n {\n double magnitude = this.magnitude();\n\n float normalizeX = x / (float)magnitude;\n float normalizeY = y / (float)magnitude;\n float normalizeZ = z / (float)magnitude;\n float normalizeW = w / (float)magnitude;\n\n return new Vector4(normalizeX, normalizeY, normalizeZ, normalizeW);\n }",
"public float normalize() {\r\n\t\tfloat length = mDirection.length();\r\n\t\tif (length>0) {\r\n\t\t\tmDirection.normalize();\r\n\t\t}\r\n\t\treturn length;\r\n\t}",
"double getZLength();",
"public double getMagnitude(Sides stick){\n \tif(stick==Sides.left)return Math.sqrt(LeftStick.X*LeftStick.X+LeftStick.Y*LeftStick.Y);\n \telse return Math.sqrt(RightStick.X*RightStick.X+RightStick.Y*RightStick.Y);\n }"
] | [
"0.85287577",
"0.7849823",
"0.77392435",
"0.7727787",
"0.75975597",
"0.75846785",
"0.7479205",
"0.74513113",
"0.737836",
"0.7341369",
"0.73352945",
"0.7314746",
"0.7237602",
"0.7185735",
"0.7175875",
"0.7143454",
"0.69635665",
"0.69039285",
"0.68880373",
"0.6860767",
"0.685158",
"0.67421407",
"0.6706599",
"0.6704096",
"0.663302",
"0.66105634",
"0.65877116",
"0.6496408",
"0.64712054",
"0.6425931",
"0.63693875",
"0.63030154",
"0.62784827",
"0.62451744",
"0.617765",
"0.6152318",
"0.61371094",
"0.607551",
"0.5967072",
"0.5966878",
"0.5937432",
"0.591555",
"0.5898805",
"0.5877374",
"0.58703357",
"0.586411",
"0.5833516",
"0.58307153",
"0.5818076",
"0.58033025",
"0.57697934",
"0.5767084",
"0.5761086",
"0.57413924",
"0.573405",
"0.57271725",
"0.5726966",
"0.5725806",
"0.5707593",
"0.56973267",
"0.56945586",
"0.56867695",
"0.56828415",
"0.56825936",
"0.5675979",
"0.56539917",
"0.5653094",
"0.5644628",
"0.5644566",
"0.5639663",
"0.56394887",
"0.56215066",
"0.56165797",
"0.5611464",
"0.56074697",
"0.560269",
"0.55984735",
"0.55817986",
"0.55817354",
"0.5576585",
"0.5564758",
"0.5561173",
"0.5555638",
"0.55269074",
"0.55197746",
"0.55127203",
"0.5500209",
"0.5500208",
"0.5497792",
"0.5488807",
"0.54687095",
"0.54622483",
"0.5437882",
"0.54119927",
"0.54040927",
"0.53864825",
"0.53739977",
"0.53721154",
"0.53646266",
"0.53606504"
] | 0.7508111 | 6 |
Convenience method for the square of the magnitude | public double squareMagnitude() {
return x*x + y*y + z*z;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public T magnitudeSquared();",
"public double magnitude() {\n return Math.sqrt(magnitudeSquared());\n }",
"public double magnitude() {\n \n double ms = _x * _x + _y * _y; \n return Math.sqrt(ms);\n \n }",
"public double magnitudeSquared() {\n \n return _x * _x + _y * _y; \n \n }",
"public double magnitude(){\n return Math.sqrt((this.x * this.x) + (this.y * this.y));\n }",
"public double mag() {\n return Math.sqrt(mag2());\n }",
"public double getMagnitude() {\n\t\treturn Math.sqrt(real * real + imaginary * imaginary);\n\t}",
"public double getMagnitude() {\n\t\treturn Math.sqrt(imaginary * imaginary + real * real);\n\t}",
"public double sqrMagnitude()\n {\n return ((x*x) + (y*y) + (z*z) + (w * w));\n }",
"public double magnitude() {\n return (Math.sqrt( (this.real * this.real) + (this.imag * this.imag) ) );\n }",
"public double magnitudeSquared(){\n\t\treturn x*x + y*y + z*z;\n\t}",
"public double magnitude()\n {\n return Math.sqrt((x*x) + (y * y) + (z * z) + (w * w));\n }",
"public double magnitude() {\r\n\t\treturn Math.sqrt(this.x*this.x + this.y*this.y + this.z*this.z);\r\n\t}",
"public double magnitudeSquared() {\n return x * x + y * y + z * z;\n }",
"public double magnitude(){\n\t\treturn Math.sqrt(x*x + y*y + z*z);\n\t}",
"public double magnitude () {\n\t\treturn Math.sqrt( (deltaX * deltaX) + (deltaY * deltaY));\n\t}",
"public double magnitude() {\n\t\treturn Math.sqrt(x*x + y*y + z*z);\n\t}",
"public double magnitude() {\n double totalX = this.xCoord * this.xCoord;\n double totalY = this.yCoord * this.yCoord;\n double totalZ = this.zCoord * this.zCoord;\n return Math.sqrt(totalX + totalY + totalZ);\n }",
"float getMagnitude();",
"public T magnitude();",
"public float magnitude() {\r\n \r\n return (float)Math.sqrt(x*x + y*y + z*z);\r\n }",
"public double mag()\n {\n return (Math.sqrt(this.x*this.x + this.y*this.y));\n }",
"public MyDouble norm() {\r\n\t\tMyDouble aSquar = this.getReal().square();\r\n\t\tMyDouble bSquare = this.getImag().square();\r\n\t\tMyDouble sum = aSquar.add(bSquare);\r\n\t\tMyDouble result = sum.sqrt();\r\n\t\treturn result;\r\n\t}",
"public double magnitude(Coordinates vector);",
"public float lengthSquared ( );",
"public double getMagnitud(){\n return Math.sqrt(x*x+y*y);\n }",
"public float getMagnitude() {\n return (float) Math.sqrt(Math.pow(latComponent, 2) + Math.pow(longComponent, 2));\n }",
"private BigInteger squareKaratsuba() {\n int half = (mag.length+1) / 2;\n\n BigInteger xl = getLower(half);\n BigInteger xh = getUpper(half);\n\n BigInteger xhs = xh.square(); // xhs = xh^2\n BigInteger xls = xl.square(); // xls = xl^2\n\n // xh^2 << 64 + (((xl+xh)^2 - (xh^2 + xl^2)) << 32) + xl^2\n return xhs.shiftLeft(half*32).add(xl.add(xh).square().subtract(xhs.add(xls))).shiftLeft(half*32).add(xls);\n }",
"double getSquareDistance();",
"public double mag2() {\n return (x * x) + (y * y);\n }",
"public float getMagnitude()\n {\n return magnitude;\n }",
"public double norm() {\r\n return Math.sqrt(innerProduct(this));\r\n }",
"abstract double getLengthSquared();",
"public void setMagnitude()\n {\n magnitude = (float) Math.sqrt(Math.pow(fx, 2) + Math.pow(fy, 2) + Math.pow(fz, 2));\n }",
"public int getMagnitude()\r\n {\r\n return magnitude;\r\n }",
"public double magnitude() {\n return celestialMagnitude;\n }",
"public Vector rescale (double magnitude) {\n\t\tdouble magni = magnitude();\n\t\t\n\t\tif (magni == 0) {\n\t\t\treturn new Vector(magnitude, 0);\n\t\t}\n\t\telse {\n\t\t\treturn scale(magnitude/magni);\n\t\t}\n\t}",
"float norm2();",
"public float getMagnitude() {\r\n\t\treturn Float.parseFloat(getProperty(\"magnitude\").toString());\r\n\t}",
"public float squared(){\r\n\t\treturn this.dottedWith( this );\r\n\t}",
"float norm();",
"public static final float magnitude(final float real, final float imaginary) {\r\n return (float) Math.sqrt(real * real + imaginary * imaginary);\r\n }",
"public double norm2();",
"public final void sqrt() throws ArithmeticException {\n\t\tif ((mksa&_LOG) != 0) throw new ArithmeticException\n\t\t(\"****Unit: log(\" + symbol + \")\") ;\n\t\tif ((mksa&0x0101010101010101L)!=0) throw new ArithmeticException\n\t\t(\"****Unit: sqrt(\" + symbol + \") is impossible\");\n\t\tvalue = Math.sqrt(value);\n\t\tfactor = Math.sqrt(factor);\n\t\tmksa = (mksa+underScore)>>1;\n\t\t/* Try to remove the squared edition */\n\t\tif ((symbol != null) && (symbol.length()>1)) {\n\t\t\tParsing t = new Parsing(symbol);\n\t\t\tint i=0;\n\t\t\tint pow=0;\n\t\t\tpow = getPower(t);\n\t\t\tif ((pow&1) != 0) \t// Odd power not possible\n\t\t\t\tpow = 0;\n\t\t\tif (t.a[0] == '(') { i = 1; t.advance(-1); }\n\t\t\tif (pow == 2) symbol = symbol.substring(i, t.pos);\n\t\t\telse if (pow != 0) {\n\t\t\t\tpow /= 2;\n\t\t\t\tsymbol = toExpr(symbol.substring(i,t.pos)) + pow;\n\t\t\t}\n\t\t\tif ((pow == 0) && (t.length>0)) symbol = \"sqrt(\" + symbol + \")\";\n\t\t}\n\t}",
"public abstract float getSquareSize();",
"public T sqrt(T value);",
"public float getMagnitude() {\n\t\treturn Float.parseFloat(getProperty(\"magnitude\").toString());\n\t}",
"public double getSquareLength() {\n return r * r + i * i;\n }",
"public float lengthSquared ()\n {\n return (x*x + y*y);\n }",
"public Complex square() {\n\t\treturn new Complex(this.getReal()*this.getReal()-this.getImag()*this.getImag(), 2*this.getImag()*this.getReal());\n\t\t\n\t}",
"double getSquareNumber();",
"public double norm() {\n\t\thomogenize();\n\t\treturn Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);\n\t}",
"public void setMagnitude(int magnitude)\r\n {\r\n this.magnitude = magnitude; \r\n }",
"public final void mag() throws ArithmeticException {\n\t\tif ((mksa&_LOG) != 0) throw new ArithmeticException\n\t\t(\"****Unit: mag(\" + symbol + \")\") ;\n\t\tvalue = -2.5*AstroMath.log(value);\n\t\tif ((mksa == underScore) && (factor == 1)) {\t// Now we've mag\n\t\t\tmksa |= _mag;\n\t\t\tif (symbol != null) symbol = \"mag\";\n\t\t} else {\n\t\t\tmksa |= (_log|_mag);\n\t\t\tif (symbol != null) symbol = \"mag[\" + symbol + \"]\";\n\t\t}\n\t}",
"public double abs() {\n\t\treturn Math.sqrt(real * real + imag * imag);\n\t}",
"public int getMagnitude() {\n\t\treturn magnitude;\n\t}",
"public Complex square() {\n\t\tdouble sqReal = (real * real) - (imaginary * imaginary);\n\t\tdouble sqImaginary = 2 * real * imaginary;\n\t\treturn new Complex(sqReal, sqImaginary);\n\t}",
"public double norm() {\n\t\treturn Math.sqrt(x * x + y * y + z * z);\n\t}",
"public double r() { return Math.sqrt(x*x + y*y); }",
"public float length ()\n {\n return FloatMath.sqrt(lengthSquared());\n }",
"public double lengthsq()\n {\n return Math.pow(this.x, 2) + Math.pow(this.y, 2);\n }",
"public double lengthSquared() {\n\t\treturn x * x + y * y + z * z + w * w;\n\t}",
"@Test\r\n public void testMag() {\r\n double expected = 5;\r\n Complex c = new Complex(-4, -3);\r\n double actual = c.mag();\r\n assertEquals(expected, actual);\r\n \r\n }",
"public boolean isSquared(){\n double sq = Math.sqrt(value);\n return (sq - Math.floor(sq)) == 0;\n }",
"public Vector2 withMagnitude(double magnitude) {\n return new Vector2(Degrees.cos(getRotation()) * magnitude, Degrees.sin(getRotation()) * magnitude);\n }",
"private double magnitudeToRadius(double mag) {\n\t\tif (mag > 6.0) {\n\t\t\treturn 0.25;\n\t\t} else if (mag > 5.0) {\n\t\t\treturn 0.3;\n\t\t} else if (mag > 4.0) {\n\t\t\treturn 0.4;\n\t\t} else if (mag > 3.0) {\n\t\t\treturn 0.55;\n\t\t} else if (mag > 2.0) {\n\t\t\treturn 0.7;\n\t\t} else if (mag > 1.0) {\n\t\t\treturn 0.9;\n\t\t} else if (mag > 0.5) {\n\t\t\treturn 1.0;\n\t\t} else if (mag > .5) {\n\t\t\treturn 1.20;\n\t\t} else if (mag < -2.0) {\n\t\t\treturn 5.0;\n\t\t}\n\t\treturn 1.75;\n\t}",
"private double calculateMagnitude(double x_acceleration, double y_acceleration, double z_acceleration) {\n double magnitude = 0;\n double x_squared = 0;\n double y_squared = 0;\n double z_squared = 0;\n\n x_squared = Math.pow(x_acceleration, 2);\n y_squared = Math.pow(y_acceleration, 2);\n z_squared = Math.pow(z_acceleration, 2);\n\n //-------------------------------------------------------------\n // Calculated based on formula r=sqrt(x^2+y^2+z^2) where,\n // r = magnitude of the vector.\n //-------------------------------------------------------------\n magnitude = Math.sqrt(x_squared + y_squared + z_squared);\n\n return magnitude;\n }",
"public double getMagnitude ( Star star ) {\r\n\t\ttry {\r\n\t\t\tif (star instanceof CatalogStar)\r\n\t\t\t\treturn ((CatalogStar)star).getMagnitude(getMagnitudeSystem());\r\n\t\t} catch ( UnsupportedMagnitudeSystemException exception ) {\r\n\t\t\tSystem.err.println(exception);\r\n\t\t}\r\n\r\n\t\treturn star.getMag();\r\n\t}",
"public double square(double num) {\n\t\treturn num * num;\n\t}",
"public abstract void squareRootThis();",
"@Test\n public void lengthSq() {\n float result = 0.0f;\n float[] a = new float[] {1.001f, 2.002f, 2.0f, 3.0f, 4.0f, 6.0f}; \n float expect = 65.0f;\n // 1)\n result = Vec4f.lengthSq(a, 2);\n assertTrue(Math.abs(result-expect) < 1E-6f);\n \n //2)\n float[] a2 = new float[] {2.0f, 3.0f, 4.0f, 6.0f}; \n float result2 = Vec4f.lengthSq(a2);\n assertTrue(Math.abs(result2-expect) < 1E-6f);\n }",
"private double sqrt(double d) {\n\t\t\treturn 0;\n\t\t}",
"public MagnitudeSignal(ComplexSignal s) {\n\t\tlength = s.length();\n\t\tdata = new float[length];\n\t\tfloat r, im;\n\t\tfor (int x = 0; x < s.length; x++) {\n\t\t\tr = s.getReal(x);\n\t\t\tim = s.getImag(x);\n\t\t\tdata[x] = (float) Math.sqrt(r * r + im * im);\n\t\t}\n\t}",
"private double square(double x) {\r\n return x * x;\r\n }",
"public Vector2 subMagnitude(double magnitude) {\n return withMagnitude(getMagnitude() - magnitude);\n }",
"static double vectorMagnitude(double[] vector) {\n if (vector.length != 3)\n throw new IllegalArgumentException(\"Argument not a 3-D vector <dim=\" + vector.length + \">.\");\n return (Math.sqrt(Math.pow(vector[0], 2.0) + Math.pow(vector[1], 2.0) + Math.pow(vector[2], 2.0)));\n }",
"public double getHmag()\n\t{\n\t\tVectorN h = this.getH();\n\t\tdouble out = h.mag();\n\t\treturn out;\n\t}",
"public Vector3D normalize()\r\n {\r\n float oneOverMagnitude = 0;\r\n float mag = magnitude();\r\n \r\n if (mag!=0) {\r\n oneOverMagnitude = 1 / mag;\r\n }\r\n\r\n return this.product(oneOverMagnitude);\r\n }",
"private static double getSinSquare(Double value){\r\n\t\treturn Math.pow(Math.sin(value/2), 2);\r\n\r\n }",
"public static native double norm(double a[]);",
"public double getMagnitude(Sides stick){\n \tif(stick==Sides.left)return Math.sqrt(LeftStick.X*LeftStick.X+LeftStick.Y*LeftStick.Y);\n \telse return Math.sqrt(RightStick.X*RightStick.X+RightStick.Y*RightStick.Y);\n }",
"public Vector normalize(){\n\t\tdouble mag = magnitude();\n\t\treturn new Vector(x/mag, y/mag, z/mag);\n\t}",
"public Vector2 addMagnitude(double magnitude) {\n return withMagnitude(getMagnitude() + magnitude);\n }",
"private static double square (double x)\r\n\t{\r\n\t\treturn x * x;\r\n\t}",
"public float length() {\r\n\t\treturn (float) Math.sqrt((x * x) + (y * y));\r\n\t}",
"public void normalize() { sets length to 1\n //\n double length = Math.sqrt(x * x + y * y);\n\n if (length != 0.0) {\n float s = 1.0f / (float) length;\n x = x * s;\n y = y * s;\n }\n }",
"public void setMinMagnitude(double magnitude);",
"public double lenght() {\r\n\t\treturn Math.sqrt(this.x * this.x +\r\n\t\t\t\t\t\t this.y * this.y +\r\n\t\t\t\t\t\t this.z * this.z);\r\n\t}",
"public double scalar() {\n //\n // The RG tensor already has the squared values...\n //\n return Math.sqrt(RG.trace());\n }",
"private double norm(double x1, double y1, double x2, double y2)\n {\n return Math.sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2));\n }",
"public boolean isSquare() {\r\n \tif (getLength() == getWidth()) {\r\n \t\treturn(true);\r\n \t} else {\r\n \t\treturn(false);\r\n \t}\r\n }",
"public double length()\n {\n return Math.sqrt(this.lengthsq());\n }",
"public double normSqr(double x1, double y1, double z1, double x2, double y2, double z2)\r\n\t{\r\n\t\treturn (x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2) + (z1 - z2)*(z1 - z2);\r\n\t}",
"public static int magnitude(int a, int b) {\n int abso = Math.max(Math.abs(a), Math.abs(b));\n if (abso == (Math.abs(a))){\n return a; \n }\n else {\n return b;\n }\n\n }",
"public Vector Normalize(){\n float magnitude = Magnitude();\n for(int i = 0; i < axis.length; i++){\n axis[i] /= magnitude;\n }\n return this;\n }",
"public double length()\n\t{\n\t\treturn Math.sqrt(x*x + y*y);\n\t}",
"public double square( double doublevalue){\n System.out.printf(\"\\nCalled square with double arguments: %f\\n\", doublevalue);\n return doublevalue * doublevalue;\n }",
"public double norm() {\n if (dy == 0.0)\n return Math.abs(dx);\n return Math.hypot(dx, dy);\n }",
"public Double square(Double advNum1) {\n answer = Math.pow(advNum1, 2);\n return answer;\n }",
"public Vec2double normalise() {\n\t\tdouble len = (double) (1 / Math.sqrt(x*x + y*y));\n//\t\tx *= len;\n//\t\ty *= len;\n\t\treturn new Vec2double(x*len, y*len);\n\t}"
] | [
"0.81322485",
"0.75825495",
"0.7493667",
"0.7467671",
"0.743498",
"0.7433899",
"0.72645223",
"0.7241057",
"0.7213042",
"0.7117669",
"0.7107696",
"0.7011515",
"0.6978304",
"0.6943205",
"0.6941373",
"0.6913115",
"0.6889297",
"0.67920727",
"0.67643774",
"0.67575455",
"0.67198455",
"0.6716217",
"0.66455746",
"0.65536016",
"0.65023977",
"0.6381501",
"0.6272847",
"0.62434614",
"0.6190512",
"0.6173589",
"0.6173463",
"0.61420876",
"0.61256146",
"0.60592127",
"0.5997458",
"0.59963214",
"0.59957325",
"0.5974204",
"0.5966728",
"0.59652793",
"0.59570783",
"0.5956519",
"0.5950492",
"0.59448045",
"0.5936881",
"0.59307784",
"0.59305185",
"0.59295815",
"0.5918513",
"0.59117186",
"0.5889506",
"0.5882799",
"0.5866473",
"0.5866249",
"0.5853395",
"0.58313",
"0.581565",
"0.5759111",
"0.5756534",
"0.5737592",
"0.571299",
"0.5656642",
"0.56262726",
"0.5616849",
"0.561358",
"0.56007373",
"0.55914026",
"0.5570239",
"0.5556726",
"0.5546495",
"0.55444497",
"0.5529468",
"0.55035615",
"0.55021745",
"0.5488019",
"0.54878294",
"0.54868644",
"0.54791826",
"0.5459358",
"0.5417164",
"0.5414891",
"0.54076105",
"0.53984284",
"0.53872466",
"0.5374026",
"0.5369899",
"0.535466",
"0.53460157",
"0.53371114",
"0.5329902",
"0.53054476",
"0.5298442",
"0.52841455",
"0.52799314",
"0.5276114",
"0.52704114",
"0.5265196",
"0.5264207",
"0.52552944",
"0.5253058"
] | 0.7531191 | 2 |
Helpful to get normal vectors without altering the vector itself | public Vector3 getNormal() {
double mag = this.magnitude();
if (mag > 0) {
return new Vector3(
this.x/mag,
this.y/mag,
this.z/mag
);
} else {
return new Vector3();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vector normalize ( );",
"public Vector normalized() {\n Vector t=new Vector(normalize());\n return t;\n }",
"public VectorA normal()\n {\n return new VectorA(this.x/this.mag(), this.y/this.mag());\n }",
"public Vector normalize(){\n\t\tdouble mag = magnitude();\n\t\treturn new Vector(x/mag, y/mag, z/mag);\n\t}",
"private double[] getNormalVector(Conformer conformer, int[] atom) {\n\t\tdouble[] n = new double[3];\n\t\tgetNormalVector(conformer, atom, n);\n\t\treturn n;\n\t\t}",
"public Vec2double normalise() {\n\t\tdouble len = (double) (1 / Math.sqrt(x*x + y*y));\n//\t\tx *= len;\n//\t\ty *= len;\n\t\treturn new Vec2double(x*len, y*len);\n\t}",
"private void getNormalVector(Conformer conformer, int[] atom, double[] n) {\n\t\t// calculate the three vectors leading from atom[0] to the other three atoms\n\t\tdouble[][] coords = new double[2][3];\n\t\tfor (int i=0; i<2; i++) {\n\t\t\tcoords[i][0] = conformer.getX(atom[i+1]) - conformer.getX(atom[0]);\n\t\t\tcoords[i][1] = conformer.getY(atom[i+1]) - conformer.getY(atom[0]);\n\t\t\tcoords[i][2] = conformer.getZ(atom[i+1]) - conformer.getZ(atom[0]);\n\t\t\t}\n\n\t\t// calculate the normal vector (vector product of coords[0] and coords[1])\n\t\tn[0] = coords[0][1]*coords[1][2]-coords[0][2]*coords[1][1];\n\t\tn[1] = coords[0][2]*coords[1][0]-coords[0][0]*coords[1][2];\n\t\tn[2] = coords[0][0]*coords[1][1]-coords[0][1]*coords[1][0];\n\n\t\tdouble l = Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);\n\t\tn[0] /= l;\n\t\tn[1] /= l;\n\t\tn[2] /= l;\n\t\t}",
"public Vector normalized() {\n double size = this.length();\n return new Vector(this.getHead().getX() / size, this.getHead().getY() / size, this.getHead().getZ() / size);\n }",
"private Vector normal(int[] face) {\n\t\tVector point0 = verts[face[0]];\n\t\tVector point1 = verts[face[1]];\n\t\tVector point2 = verts[face[2]];\n\t\treturn point1.subtract(point0).crossProduct(point2.subtract(point0)).normalise();\n\t}",
"public Vector normalized(){\r\n\t\tfloat len = this.length();\r\n\t\tif( len != 0.0f && len != 1.0f ){\r\n\t\t\treturn new Vector( this.x / len, this.y / len, this.z / len );\r\n\t\t}\r\n\t\treturn this;\r\n\t}",
"public Vector2D normal()\n\t{\n\t\treturn this.mul(1/this.length());\n\t}",
"float norm();",
"public Vector Normalize(){\n float magnitude = Magnitude();\n for(int i = 0; i < axis.length; i++){\n axis[i] /= magnitude;\n }\n return this;\n }",
"public Vector2D normalizedVect() {\n return new Vector2D(x / magnitude(), y / magnitude());\n }",
"private static Vector3f getNormal(double[] a, double[] b)\n\t{\n\t\tfloat vectorX = (float)(a[FTContour.X] - b[FTContour.X]);\n\t\tfloat vectorY = (float)(a[FTContour.Y] - b[FTContour.Y]);\n\n\t\tfloat length = (float)Math.sqrt(vectorX * vectorX + vectorY * vectorY);\n\n\t\tif (length > 0.0f)\n\t\t{\n\t\t\tlength = 1 / length;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlength = 0.0f;\n\t\t}\n\n\t\treturn new Vector3f((float)vectorY * length, (float)-vectorX * length, 0.0f);\n\t}",
"public Vector3 normalized() {\n\t\tif (isZeroVector(this)) {\n\t\t\treturn this;\n\t\t}\n\t\treturn new Vector3(x / norm(), y / norm(), z / norm());\n\t}",
"float[][] getCameraVectorsNormal(int resX, int resY){\n float vectors[][]=new float[resX*resY][3];//first vector index, second the components of the vector\n float[] vect2=rotateYVector(dir);\n vect2[1]=0;\n vect2=normalize(vect2);\n float[] vect3=normalize(vectorProduct(dir, vect2));//dir, vect2, vect3 base vectors\n float[] x={0,0,0};\n float[] y={0,0,0};\n float[] temp={0,0,0};\n for(int i=0;i<3;i++){\n x[i]=(vect2[i])/(resX/2);\n y[i]=(vect3[i])/(resY/2);\n temp[i]=vect2[i];\n }\n \n for(int j=0;j<resY;j++){\n for(int i=0;i<resX;i++){\n vectors[j*resX+i][0]=dir[0]+vect2[0]+vect3[0];\n vectors[j*resX+i][1]=dir[1]+vect2[1]+vect3[1];\n vectors[j*resX+i][2]=dir[2]+vect2[2]+vect3[2];\n vectors[j*resX+i]=normalize(vectors[j*resX+i]);\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n if((vectorLength(vect2)>(-0.0001)&&vectorLength(vect2)<0.0001)&&(resX%2)==0){\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n }\n }\n //printVector(temp);\n vect2[0]=temp[0];\n vect2[1]=temp[1];\n vect2[2]=temp[2];\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n if((vectorLength(vect3)>(-0.0001)&&vectorLength(vect3)<0.0001)&&(resY%2)==0){\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n }\n }\n \n return vectors;\n }",
"@Override\n Vector calculate_normal_vector(Point hitPoint, int surface) {\n Point origin = new Point(0, 0, 0);\n return getInternalTransformer().substraction_to_vector(hitPoint, origin);\n }",
"public Vector2f[] getNormalisedVertexPositions() {\n Vertex3D[] vertices = mesh.getModel().getVertices();\n // Get Array of X and Y offsets for all vertices\n Vector2f[] vertexPositions = new Vector2f[vertices.length];\n for (int i = 0; i < vertices.length; i++) {\n Vector3f vertexPosition = vertices[i].getPosition();\n vertexPositions[i] = new Vector2f(vertexPosition.getX(), vertexPosition.getY());\n }\n\n // Add vertex positions to position in order to get their OpenGl coordinates\n for (int i = 0; i < vertexPositions.length; i++) {\n vertexPositions[i] = Vector2f.add(position, vertexPositions[i]);\n vertexPositions[i] = Vector2f.divide(\n vertexPositions[i],\n new Vector2f(Window.getSpanX(), Window.getSpanY()));\n }\n\n return vertexPositions;\n }",
"private Point2D.Double calcNormVec(double x1, double x2, double y1, double y2)\n\t{\n\n\t\treturn new Point2D.Double(-(y2 - y1), (x2 - x1));\n\t}",
"public double norm() {\n\t\thomogenize();\n\t\treturn Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);\n\t}",
"public abstract Vector4fc normalize(float length);",
"@java.lang.Override\n public godot.wire.Wire.Vector3 getNormal() {\n return normal_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : normal_;\n }",
"final public Vector3 normalized(){\n return new Vector3(x/magnitude, y/magnitude, z/magnitude);\n }",
"public static double[] normalize(double[] v) {\n double[] tmp = new double[3];\n tmp[0] = v[0] / VectorMath.length(v); \n tmp[1] = v[1] / VectorMath.length(v); \n tmp[2] = v[2] / VectorMath.length(v); \n return tmp; \n }",
"public Point4 getNormal();",
"public Vector[] getNormals() {\n\t\treturn this.normals;\n\t}",
"public Vector2f[] getNormals() {\n\t\treturn normals.clone();\n\t}",
"@Test\n void normalize() {\n\n Vector v = new Vector(1, 2, 3);\n Vector vCopy = new Vector(v.getHead());\n Vector vCopyNormalize = vCopy.normalize();\n if (vCopy != vCopyNormalize)\n fail(\"ERROR: normalize() function creates a new vector\");\n if (!isZero(vCopyNormalize.length() - 1))\n fail(\"ERROR: normalize() result is not a unit vector\");\n Vector u = v.normalized();\n if (u == v)\n fail(\"ERROR: normalized() function does not create a new vector\");\n }",
"public Vector3 normalized() {\n float length = length();\n return new Vector3(x / length, y / length, z / length);\n }",
"public double[] Normalizar(int[] v){\n double[] result=new double[v.length];\n double s=0;\n for (int i=0;i<v.length;i++){\n s+=v[i];\n }\n for (int i=0;i<v.length;i++){\n result[i]=(double)v[i]/(double)s;\n }\n\n return result;\n }",
"public Vector getNormal(Vector v) {\n\t\tif (this.getClass() == Sphere.class) { // shape is sphere\n\t\t\tSphere sph = (Sphere) this;\n\t\t\treturn sph.getNormal(v);\n\t\t}\n\t\tif (this.getClass() == Triangle.class) { // shape is triangle\n\t\t\tTriangle trn = (Triangle) this;\n\t\t\treturn trn.getNormal(v);\n\t\t}\n\t\tif (this.getClass() == Plane.class) { // shape is plane\n\t\t\tPlane pln = (Plane) this;\n\t\t\treturn pln.getNormal(v);\n\t\t}\n\t\treturn null;\n\t}",
"protected void setForceNormalVector() {\n\t\tvn = forceNormalVector(v1, v2);\n\t}",
"IVec3 normalized();",
"public Vector4 normalized()\n {\n double magnitude = this.magnitude();\n\n float normalizeX = x / (float)magnitude;\n float normalizeY = y / (float)magnitude;\n float normalizeZ = z / (float)magnitude;\n float normalizeW = w / (float)magnitude;\n\n return new Vector4(normalizeX, normalizeY, normalizeZ, normalizeW);\n }",
"public SbVec3f getNormal() { return worldNormal; }",
"public Vector2f normalizeLocal ()\n {\n return normalize(this);\n }",
"public Vector3f getNormalVertice(int i) {\n\t\treturn normalVertices.get(i);\n\t}",
"public Vector getNormal(Point3D point) throws Exception {\n\n // Setting the U vector\n Vector vecU = new Vector(_p1.getX().getCoordinate()-_p2.getX().getCoordinate(),\n _p1.getY().getCoordinate()-_p2.getY().getCoordinate(),\n _p1.getZ().getCoordinate()-_p2.getZ().getCoordinate());\n // Setting the V vector\n Vector vecV = new Vector(_p1.getX().getCoordinate()-_p3.getX().getCoordinate(),\n _p1.getY().getCoordinate()-_p3.getY().getCoordinate(),\n _p1.getZ().getCoordinate()-_p3.getZ().getCoordinate());\n\n // Finding the normal vector and normalize it\n Vector _normal = new Vector(vecU.crossProduct(vecV));\n _normal.normalize();\n _normal.scale(-1);\n\n return _normal;\n }",
"float norm2();",
"public static Vector normalize(Vector v) {\r\n Vector w = new Vector(v);\r\n w.normalize();\r\n return w;\r\n }",
"public godot.wire.Wire.Vector3 getNormal() {\n if (normalBuilder_ == null) {\n return normal_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : normal_;\n } else {\n return normalBuilder_.getMessage();\n }\n }",
"@Test\n void getNormal() {\n Plane pl = new Plane(new Point3D(-1,2,1), new Point3D(0,-3,2), new Point3D(1,1,-4)\n );\n\n assertEquals(new Vector(26,7,9).normalize(),\n pl.getNormal(),\n \"Bad normal to trinagle\");\n\n }",
"public SbVec3f\ngetObjectNormal() {\n\treturn getObjectNormal(null);\n}",
"static double[] unitVector(double[] vector) {\n if (vector.length != 3)\n throw new IllegalArgumentException(\"Argument not a 3-D vector <dim=\" + vector.length + \">.\");\n double magnitude = vectorMagnitude(vector);\n\n return (new double[] {vector[0] / magnitude, vector[1] / magnitude, vector[2] / magnitude});\n }",
"public double[] getNormalizedInputValues(){\r\n\t\tdouble [] norm = new double[realValues[0].length];\r\n\t\tfor (int i=0; i<norm.length; i++){\r\n\t\t\tif (!missingValues[0][i])\r\n\t\t\t\tnorm[i] = Attributes.getInputAttribute(i).normalizeValue(realValues[0][i]);\r\n\t\t\telse \r\n\t\t\t\tnorm[i] = -1.;\r\n\t\t}\r\n\t\treturn norm;\r\n\t}",
"public double norm() {\n\t\treturn Math.sqrt(x * x + y * y + z * z);\n\t}",
"private void randomNormal(Vector3f v)\n // Create a unit vector. The x- and y- values can be +ve or -ve.\n // The z-value is positive, so facing towards the viewer.\n {\n float z = (float) Math.random(); // between 0-1\n float x = (float) (Math.random() * 2.0 - 1.0); // -1 to 1\n float y = (float) (Math.random() * 2.0 - 1.0); // -1 to 1\n v.set(x, y, z);\n v.normalize();\n }",
"public float[] getNormals() {\r\n\t\treturn normals;\r\n\t}",
"private double norm(IDictionary<String, Double> vector) {\n\t\t double output = 0.0;\n\t\t for (KVPair<String, Double> pair : vector) {\n\t\t\t double score = pair.getValue();\n\t\t output = output + (score * score);\n\t\t }\n\t return Math.sqrt(output);\t \n }",
"private void computeNormal() {\n normal = getDirection();\r\n\r\n // Rotate by -90 degrees to get normal of line\r\n float oldY = normal.y;\r\n normal.y = -normal.x;\r\n normal.x = oldY;\r\n }",
"private Vector3f getPlaneNormal(Vector3f directionVector) {\n\t\tVector3f up = new Vector3f(0, 0, 1);\n\t\tif (directionVector.z == 1 || directionVector.z == -1)\n\t\t\tup.set(0, 1, 0);\n\n\t\tfloat dirX = directionVector.x;\n\t\tfloat dirY = directionVector.y;\n\t\tfloat dirZ = directionVector.z;\n\t\tfloat upX = up.x;\n\t\tfloat upY = up.y;\n\t\tfloat upZ = up.z;\n\n\t\t// right = direction x up\n\t\tfloat rightX, rightY, rightZ;\n\t\trightX = dirY * upZ - dirZ * upY;\n\t\trightY = dirZ * upX - dirX * upZ;\n\t\trightZ = dirX * upY - dirY * upX;\n\t\t// normalize right\n\t\tfloat invRightLength = 1.0f / (float) Math.sqrt(rightX * rightX + rightY * rightY + rightZ * rightZ);\n\t\trightX *= invRightLength;\n\t\trightY *= invRightLength;\n\t\trightZ *= invRightLength;\n\n\t\treturn new Vector3f(rightX, rightY, rightZ);\n\t}",
"@Test //test normalize\n public void testNormalize() {\n double[] tempDoubleA = new double[]{3.1, 4.1};\n MyVector actualDoubleNorm = (new MyVector(tempDoubleA)).normalize();\n double normal = sqrt(3.1 * 3.1 + 4.1 * 4.1);\n MyVector expectDoubleNorm = new MyVector(new double[]{(3.1 / normal), (4.1 / normal)});\n\n assertTrue(actualDoubleNorm.equal(expectDoubleNorm), \"test int v mult int\");\n\n int[] tempIntA = new int[]{3, 4};\n MyVector actualIntNorm = (new MyVector(tempIntA)).normalize();\n MyVector expectIntNorm = new MyVector(new double[]{3 / (double) 5, 4 / (double) 5});\n assertTrue(actualIntNorm.equal(expectIntNorm), \"test int v mult int\");\n\n MyVector emptyNorm = EMPTYVECTOR.normalize();\n assertTrue(EMPTYVECTOR.equal(emptyNorm), \"test on empty vector normalization\");\n }",
"@Override\n public Vector getNormal(Point3D p) {\n Vector O_P= p.subtract(_center);\n return O_P.normalize();\n // return null;\n }",
"public Vector normalize() {\n double num=1/length();\n head = scale(num).head;\n return this;\n }",
"godot.wire.Wire.Vector3 getNormal();",
"public Vector normalize() {\n this.head = this.normalized().getHead();\n return this;\n }",
"public Vector3D normalize()\r\n {\r\n float oneOverMagnitude = 0;\r\n float mag = magnitude();\r\n \r\n if (mag!=0) {\r\n oneOverMagnitude = 1 / mag;\r\n }\r\n\r\n return this.product(oneOverMagnitude);\r\n }",
"@Test\n void testNormalize() {\n\n Vector vCopy = new Vector(v.getHead());\n Vector vCopyNormalize = vCopy.normalize();\n assertEquals(vCopy, vCopyNormalize, \"ERROR: normalize() function creates a new vector\");\n\n\n }",
"public float[] getNormals(float[] input) {\n\t\tVector<Float> result = new Vector<Float>();\n\t\t//get the three vertices of the triangle and calculate vector normal\n\t\tfor (int i = 0; i < input.length; i += 9) {\n\t\t\tPoint3D a = new Point3D(input[i], input[i + 1], input[i + 2]);\n\t\t\tPoint3D b = new Point3D(input[i + 3], input[i + 4], input[i + 5]);\n\t\t\tPoint3D c = new Point3D(input[i + 6], input[i + 7], input[i + 8]);\n\t\t\tPoint3D p1 = a.minus(b);\n\t\t\tPoint3D p2 = a.minus(c);\n\n\t\t\tVector3D e1 = new Vector3D(p1);\n\t\t\tVector3D e2 = new Vector3D(p2);\n\t\t\tVector3D n = e1.cross(e2).normalize();\n\t\t\t//add normal's components to the result array\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tresult.add((float) n.getX());\n\t\t\t\t// System.out.print(n.getX());\n\t\t\t\tresult.add((float) n.getY());\n\t\t\t\t// System.out.print(n.getY());\n\t\t\t\tresult.add((float) n.getZ());\n\t\t\t\t// System.out.print(n.getZ());\n\t\t\t\t// System.out.println();\n\t\t\t}\n\n\t\t}\n\t\treturn ArrayUtils.toPrimitive(result.toArray(new Float[0]));\n\n\t}",
"public double[] getNormalizedOutputValues(){\r\n\t\tdouble [] norm = new double[realValues[1].length];\r\n\t\tfor (int i=0; i<norm.length; i++){\r\n\t\t\tif (!missingValues[1][i])\r\n\t\t\t\tnorm[i] = Attributes.getOutputAttribute(i).normalizeValue(realValues[1][i]);\r\n\t\t\telse\r\n\t\t\t\tnorm[i] = -1.;\r\n\t\t}\r\n\t\treturn norm;\r\n\t}",
"public static void normalise(double[] v) {\n double tot = 0;\r\n for (int i=0; i<v.length; i++) {\r\n tot += v[i] * v[i];\r\n }\r\n double div = Math.sqrt(tot);\r\n if (div > 0) {\r\n for (int i=0; i<v.length; i++) {\r\n v[i] /= div;\r\n }\r\n }\r\n }",
"public godot.wire.Wire.Vector3OrBuilder getNormalOrBuilder() {\n if (normalBuilder_ != null) {\n return normalBuilder_.getMessageOrBuilder();\n } else {\n return normal_ == null ?\n godot.wire.Wire.Vector3.getDefaultInstance() : normal_;\n }\n }",
"public static Vector<Double> norm(Vector<Double> a) {\n\t\tdouble x = TransEInitializer.vec_len(a);\n\t\tif (x > 1){\n\t\t\t\n\t\t\tfor (int ii = 0; ii < a.size(); ii++)\n\t\t\t\ta.set(ii, a.get(ii) / x);\n\t\t\n\n\t\t}\n\n//\t\tif(x > 1)\n//\t\t\treturn true;\n//\t\treturn false;\n\t\treturn a;\n\t}",
"public static Vector normalize(Vector input) {\n return input.divide(input.euclideanNorm());\n }",
"public abstract Vector4fc normalize3();",
"public Vector4d normalize() {\n\t\tdouble len = length();\n\t\tif (len != 0) {\n\t\t\tx /= len;\n\t\t\ty /= len;\n\t\t\tz /= len;\n\t\t\tw /= len;\n\t\t}\n\t\treturn this;\n\t}",
"static double squaredNorm(Vec v) {\n return v.x * v.x + v.y * v.y;\n }",
"public void normalise(Vector2 normVector) {\n\t\tposition.subtract(normVector);\n\t\tsetX(getX() - normVector.getX());\n\t\tsetY(getY() - normVector.getY());\n\t}",
"public ThreeVector unitVector() {\r\n\t\tif (this.magnitude()==0) { \r\n\t\t\treturn new ThreeVector(0,0,0);\r\n\t\t} else {\r\n\t\t\treturn new ThreeVector(this.x/this.magnitude(), this.y/this.magnitude(), this.z/this.magnitude());\r\n\t\t}\r\n\t}",
"private double[][] normalize (float[][] in) {\n\n\t\tdouble[][] temp = new double[in.length][2];\n\n\t\t// Get centroid\n\t\tfloat[] centroid = getCentroid(in);\n\n\t\t// Normalize\n\t\tfor(int i = 0; i < in.length; i++) {\n\t\t\ttemp[i][0] = in[i][0] - centroid[0];\n\t\t\ttemp[i][1] = in[i][1] - centroid[1];\n\t\t}\n\n\t\treturn temp;\n\t}",
"public static native double norm(double a[]);",
"@Override\n public Vector getNormal(Point3D P) {\n Point3D O = _center;\n Vector n = P.subtract(O);\n return n.normalized();\n }",
"public Point4 getNormal(int pointNr);",
"public final void normalize() {\n\tsvd(this);\n }",
"public double[] getNormalizedInputValues( InstanceAttributes instAttributes ){\r\n\t\tdouble [] norm = new double[realValues[0].length];\r\n\t\tfor (int i=0; i<norm.length; i++){\r\n\t\t\tif (!missingValues[0][i])\r\n\t\t\t\tnorm[i] = instAttributes.getInputAttribute(i).normalizeValue(realValues[0][i]);\r\n\t\t\telse \r\n\t\t\t\tnorm[i] = -1.;\r\n\t\t}\r\n\t\treturn norm;\r\n\t}",
"public Vector getNormal(Point3D point) {\r\n\t\treturn point.subtract(centerPoint).normalize();\r\n\t}",
"public static double norme(double V[]){\r\n\t\tdouble norme;\r\n\t\tnorme = Math.sqrt( Math.pow(V[0], 2) + Math.pow(V[1], 2) + Math.pow(V[2], 2) );\r\n\t\treturn norme;\t\r\n\t}",
"public double norm() {\r\n return Math.sqrt(innerProduct(this));\r\n }",
"public Vector330Class normalize(){\n if(this.magnitude() <= EPS){\n return new Vector330Class(0, 0);\n }\n else{\n return new Vector330Class(this.x * (1/this.magnitude()), this.y * (1/this.magnitude()));\n }\n }",
"@Override\n\tpublic Vector getNormal(Point3D point) {\n\t\tdouble temp=axisRay.getDir().dotProduct(point.subtract(axisRay.getP0()));\n\t\tif(Util.isZero(temp/100))return (point.subtract(Point3D.ZERO)).normalize();\n\t\tPoint3D O=axisRay.getP0().add(axisRay.getDir().scale(temp));\n\t\treturn (point.subtract(O)).normalize();\n\n\t}",
"Vector getZeroVector();",
"public Vector3 normalizeLocal () {\n return normalize(this);\n }",
"public Coordinates unitVector(Coordinates vector, Coordinates origin);",
"public Vector2f normalize() {\n return div(length());\n }",
"private Vector3f calcNormal(int loopStart) throws IOException {\n\t\t// calculating the normal of the polygon using the first 3 vertices \n\t\t// of the planar face:\n\t\t//\t\t\tvec3 ab = b - a;\n\t\t// vec3 ac = c - a;\n\t\t// vec3 normal = normalize(cross(ab, ac));\n\t\tMLoop loop = loops[loopStart + 0];\n\t\tCArrayFacade<Float> a = vertices[loop.getV()].getCo();\n\t\tloop = loops[loopStart + 1];\n\t\tCArrayFacade<Float> b = vertices[loop.getV()].getCo();\n\t\tloop = loops[loopStart + 2];\n\t\tCArrayFacade<Float> c = vertices[loop.getV()].getCo();\n\t\t\n\t\tVector3f ab = new Vector3f(b.get(0)-a.get(0), b.get(1)-a.get(1), b.get(2)-a.get(2));\n\t\tVector3f ac = new Vector3f(c.get(0)-a.get(0), c.get(1)-a.get(1), c.get(2)-a.get(2));\n\t\t\n\t\treturn ab.cross(ac);\n\t}",
"public float[] getNormalCoordinates(VisuVector3f coordinates) {\r\n //Assume we are in 1.0\r\n Float[] limits = limitedGroundCoordinates.get(\"0.1.0\");\r\n float y = (coordinates.x - limits[0]) / (limits[1] - limits[0]);\r\n limits = limitedGroundCoordinates.get(\"1.1.0\");\r\n float x = (coordinates.z - limits[0]) / (limits[1] - limits[0]);\r\n float[] finalCoordinates = new float[]{checkDistance(x), checkDistance(y)};\r\n return finalCoordinates;\r\n }",
"public Coordinates unitVector(Coordinates vector);",
"private void calculateNormals() {\n int i;\n float[] l_vect1 = new float[3];\n float[] l_vect2 = new float[3];\n float[] l_vect3 = new float[3];\n float[] l_vect_b1;\n float[] l_vect_b2;\n float[] l_normal;\n\n normals = new float[faces.length*3];\n int normalIndex = 0;\n\n for (i=0; i<faces.length; i=i+3) {\n\n l_vect1[0] = vertices[faces[i] * 3];\n l_vect1[1] = vertices[faces[i] * 3 + 1];\n l_vect1[2] = vertices[faces[i] * 3 + 2];\n l_vect2[0] = vertices[faces[(i + 1)] * 3];\n l_vect2[1] = vertices[faces[(i + 1)] * 3 + 1];\n l_vect2[2] = vertices[faces[(i + 1)] * 3 + 2];\n l_vect3[0] = vertices[faces[(i + 2)] * 3];\n l_vect3[1] = vertices[faces[(i + 2)] * 3 + 1];\n l_vect3[2] = vertices[faces[(i + 2)] * 3 + 2];\n\n l_vect_b1 = VectorCreate(l_vect1, l_vect2);\n l_vect_b2 = VectorCreate(l_vect1, l_vect3);\n\n l_normal = VectorDotProduct(l_vect_b1, l_vect_b2);\n l_normal = VectorNormalize(l_normal);\n\n normals[normalIndex++]+=l_normal[0];\n normals[normalIndex++]+=l_normal[1];\n normals[normalIndex++]+=l_normal[2];\n normals[normalIndex++]+=l_normal[0];\n normals[normalIndex++]+=l_normal[1];\n normals[normalIndex++]+=l_normal[2];\n normals[normalIndex++]+=l_normal[0];\n normals[normalIndex++]+=l_normal[1];\n normals[normalIndex++]+=l_normal[2];\n }\n }",
"public double[] randv()\n\t{\n\t\tdouble p = a * (1.0 - e * e);\n\t\tdouble cta = Math.cos(ta);\n\t\tdouble sta = Math.sin(ta);\n\t\tdouble opecta = 1.0 + e * cta;\n\t\tdouble sqmuop = Math.sqrt(this.mu / p);\n\n\t\tVectorN xpqw = new VectorN(6);\n\t\txpqw.x[0] = p * cta / opecta;\n\t\txpqw.x[1] = p * sta / opecta;\n\t\txpqw.x[2] = 0.0;\n\t\txpqw.x[3] = -sqmuop * sta;\n\t\txpqw.x[4] = sqmuop * (e + cta);\n\t\txpqw.x[5] = 0.0;\n\n\t\tMatrix cmat = PQW2ECI();\n\n\t\tVectorN rpqw = new VectorN(xpqw.x[0], xpqw.x[1], xpqw.x[2]);\n\t\tVectorN vpqw = new VectorN(xpqw.x[3], xpqw.x[4], xpqw.x[5]);\n\n\t\tVectorN rijk = cmat.times(rpqw);\n\t\tVectorN vijk = cmat.times(vpqw);\n\n\t\tdouble[] out = new double[6];\n\n\t\tfor (int i = 0; i < 3; i++)\n\t\t{\n\t\t\tout[i] = rijk.x[i];\n\t\t\tout[i + 3] = vijk.x[i];\n\t\t}\n\n\t\treturn out;\n\t}",
"@java.lang.Override\n public godot.wire.Wire.Vector3OrBuilder getNormalOrBuilder() {\n return getNormal();\n }",
"public double[] getNormalizedOutputValues( InstanceAttributes instAttributes ){\r\n\t\tdouble [] norm = new double[realValues[1].length];\r\n\t\tfor (int i=0; i<norm.length; i++){\r\n\t\t\tif (!missingValues[1][i])\r\n\t\t\t\tnorm[i] = instAttributes.getOutputAttribute(i).normalizeValue(realValues[1][i]);\r\n\t\t\telse\r\n\t\t\t\tnorm[i] = -1.;\r\n\t\t}\r\n\t\treturn norm;\r\n\t}",
"public double magnitude(Coordinates vector);",
"public double[] Normalizar01(int[] v){\n double[] result=new double[v.length];\n double s=v[0];\n double max=v[0];\n double min=v[0];\n for (int i=1;i<v.length;i++){\n s+=v[i];\n //minimo\n if (v[i]<min)\n min=v[i];\n if (v[i]>max)\n max=v[i];\n //maximo\n }\n for (int i=0;i<v.length;i++){\n result[i]=((double)v[i]-min)/(max-min);\n }\n\n return result;\n }",
"public VectorN getV()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[3];\n\t\tout.x[1] = this.rv.x[4];\n\t\tout.x[2] = this.rv.x[5];\n\t\treturn out;\n\t}",
"public double[] vectorTo(double[] pt){\n double[] vecToLight = new double[3];\n vecToLight[0] = pos[0] - pt[0];\n vecToLight[1] = pos[1] - pt[1];\n vecToLight[2] = pos[2] - pt[2];\n return vecToLight;\n }",
"public static final double[] normalize(final double[] V)\n {\n double []vec = new double[periodNum];\t\n\t//Vector vec = new Vector(periodNum);\n\t//Double zero = new Double(0);\n\t//for(int i=0;i<periodNum;i++)\n\t// vec.insertElementAt(zero,i);\n\n\tdouble sum =0;\n\t\n\tfor(int i=0;i<periodNum;i++)\n\t{\n\t\tsum += V[i];\n\t\t//sum += ((Double)V.elementAt(i)).doubleValue();\n\t}\n\t// if sum is 0, can't divide using it\n\tif(sum ==0)\n\t return V;\n\n\n\tfor(int i=0;i<periodNum;i++)\n\t{\n\t double d = V[i];//((Double)V.elementAt(i)).doubleValue();\n\t double dd = d/sum;\n\n\t vec[i] = dd;\n\t //vec.addElement(new Double(dd));\n\t}\n\t \n\treturn vec;\n }",
"public Vector2D normalize() \n {\n \tfloat length = getLength();\n if (length != 0.0f) \n {\n this.setX(this.getX() / length);\n this.setY(this.getY() / length);\n } \n else \n {\n this.setX(0.0f);\n this.setY(0.0f);\n }\n return this;\n }",
"public Vector3D getNormal(Vector3D hitPos) {\n\t\tVector3D n = Vector3D.sub(pos, hitPos);\n\t\t//n.div(radius);\n\t\tn.normalize();\n\t\treturn n;\n\t}",
"public void calcNormal() {\n nx = y2 - y1;\n ny = x1 - x2;\n }"
] | [
"0.755009",
"0.7491366",
"0.7352387",
"0.73363435",
"0.7265538",
"0.7153318",
"0.71076286",
"0.70955527",
"0.6977373",
"0.692025",
"0.6857696",
"0.6784373",
"0.6760537",
"0.671502",
"0.670393",
"0.6701785",
"0.66948104",
"0.6672468",
"0.663518",
"0.6569175",
"0.6537972",
"0.65373814",
"0.65053934",
"0.6472868",
"0.6424872",
"0.64124143",
"0.64120233",
"0.64051056",
"0.63955855",
"0.6387254",
"0.6377514",
"0.6365667",
"0.6358862",
"0.6347772",
"0.6337884",
"0.6303975",
"0.6288263",
"0.6279278",
"0.62745285",
"0.6270865",
"0.62610954",
"0.6239687",
"0.62321615",
"0.62309253",
"0.6210946",
"0.62071383",
"0.62016547",
"0.62007135",
"0.6186658",
"0.61842096",
"0.6182415",
"0.61824125",
"0.6180387",
"0.61493486",
"0.61482924",
"0.6147848",
"0.6137668",
"0.6133003",
"0.6130037",
"0.61188203",
"0.61147267",
"0.6110085",
"0.6095851",
"0.6095611",
"0.6073557",
"0.60474974",
"0.6042084",
"0.6037692",
"0.602529",
"0.6010791",
"0.59910846",
"0.5990184",
"0.59850687",
"0.5979602",
"0.5976934",
"0.5970581",
"0.5969288",
"0.59635055",
"0.59613097",
"0.5957529",
"0.59572387",
"0.5954376",
"0.5927051",
"0.59182346",
"0.5917068",
"0.5910525",
"0.5896323",
"0.588148",
"0.58765584",
"0.587388",
"0.58592826",
"0.58588475",
"0.58412546",
"0.5822181",
"0.5808787",
"0.5808178",
"0.57895064",
"0.5783042",
"0.5769398",
"0.57581574"
] | 0.6571417 | 19 |
Adds a vector to this vector | public void addTo(Vector3 addition) {
this.x += addition.x;
this.y += addition.y;
this.z += addition.z;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vector add(Vector v){\n return new Vector(this.getX()+v.getX(), this.getY()+v.getY(), this.getZ()+v.getZ());\n }",
"public Vector add(Vector other) {\n\t\treturn new Vector(x + other.x, y + other.y);\n\t}",
"public Vector add(Vector other){\n\t\treturn new Vector(x+other.x, y+other.y, z+other.z);\n\t}",
"public VectorA add(VectorA v)\n {\n return new VectorA(this.x+v.x, this.y+v.y);\n }",
"public static Vector add(Vector v1, Vector v2) {\r\n Vector w = new Vector(v1);\r\n w.add(v2);\r\n return w;\r\n }",
"public Vector add(Vector v2){\n return new Vector(this.getX() + v2.getX(), this.getY() + v2.getY());\n }",
"public Vector add(Vector other) {\n Point3D p=new Point3D (head.add(other));\n Vector v = new Vector(p);\n return v;\n }",
"@Override\n public Point addVector(float[] vector) {\n this.x += vector[0];\n this.y += vector[1];\n setHeight(getHeight()+ vector[2]);\n return this;\n }",
"public Vector add(Vector vec) {\n return new Vector(this.head.add(vec));\n }",
"@Override\n\tpublic IVector add(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != vector.getDimension()){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, get(i)+vector.get(i));\n\t\t}\n\t\treturn this;\n\t}",
"public SVector add(SVector other) {\n this.x += other.getX();\n this.y += other.getY();\n this.z += other.getZ();\n return this;\n }",
"@Override\n public Point addVector(Vector3 vector) {\n this.x += vector.x;\n this.y += vector.y;\n setHeight(getHeight()+ vector.z);\n return this;\n }",
"public void add(Vec2 v) {\r\n\t\tx += v.x;\r\n\t\ty += v.y;\r\n\t}",
"public Vector add(Vector v, double dt){\n return new Vector(this.getX()+v.getX()*dt, this.getY()+v.getY()*dt, this.getZ()+v.getZ()*dt);\n }",
"public Vector<T> add(T aScalar);",
"public Vector3D addVector(Vector3D u, Vector3D v) {\n\t\treturn new Vector3D(this.x = u.x + v.x, this.y = u.y + v.y, \n\t\t\t\tthis.z = u.z + v.z);\n\t}",
"public static ThreeVector add(ThreeVector v1,ThreeVector v2) {\r\n\t\treturn new ThreeVector(v1.x + v2.x, v1.y + v2.y,v1.z + v2.z);\r\n\t}",
"public void add(Vector rhs) {\r\n for (int i = 0; i < components.length; i++) {\r\n components[i] += rhs.components[i];\r\n }\r\n }",
"public abstract Vector4fc add(IVector4f v);",
"public Vector2d add(Vector2d v) {\n\t\treturn new Vector2d(x + v.x, y + v.y);\n\t}",
"public Vector2D add(Vector2D v)\n\t{\n\t\treturn new Vector2D(x+v.getX(), y+v.getY());\n\t}",
"public Vector2f add(Vector2f vec) {\n this.x += vec.x;\n this.y += vec.y;\n return this;\n }",
"@Override\n\tpublic IVector nAdd(IVector vector) throws OperationNotSupportedException{\n\t\treturn this.copy().add(vector);\n\t}",
"public void add(double sthis, Vec vthat, double sthat);",
"public Vector2f add (Vector2f other)\n {\n return add(other, new Vector2f());\n }",
"final public Vector3 add(final Vector3 v){\n if(v == null){\n throw new IllegalArgumentException(\"v must not be null\");\n }\n return new Vector3(x + v.x, y + v.y, z + v.z);\n }",
"public Vector3D add(Vector3D v) {\n return new Vector3D(v.xCoord + this.xCoord, v.yCoord + this.yCoord, v.zCoord + this.zCoord);\n }",
"@Override\r\n\tpublic void addElement(VOI o) {\r\n add(o); // add the voi to the vector\r\n }",
"public void add(LorentzVector... vects) {\n\t\tfor (LorentzVector vect : vects) {\n\t\t\tthis.vector.add(vect.vect());\n\t\t\tthis.energy = this.e() + vect.e();\n\t\t}\n\t}",
"public Vector plus(Vector m) {\n\t\treturn new Vector((deltaX + m.getDeltaX()), (deltaY + m.getDeltaY()));\n\t}",
"public Point plus(Vector vector){\n\t\tdouble dx = vector.getDeltaX();\n\t\tdouble dy = vector.getDeltaY();\n\t\treturn new Point(x+dx, y+dy);\n\t}",
"public void add(PVector v) {\n\t\tpoints.add(new GPoint(v));\n\t}",
"public static Vector3D add(Vector3D v1, Vector3D v2) {\n\t\tdouble x1 = v1.getX1() + v2.getX1();\n\t\tdouble x2 = v1.getX2() + v2.getX2();\n\t\tdouble x3 = v1.getX3() + v2.getX3();\n\t\t\n\t\treturn new Vector3D(x1,x2,x3);\n\t}",
"public Vec2double add(Vec2double v) {\n\t\treturn new Vec2double(this.x + v.x, this.y + v.y);\n\t}",
"public static void add(List<Double> vector, List<Double> toAdd) {\n for (int i = 0; i < vector.size(); i++) {\n double sum = vector.get(i) + toAdd.get(i);\n vector.set(i, sum);\n }\n }",
"public static Vector3D add(Vector3D v1, Vector3D v2) {\r\n\t\tVector3D result = new Vector3D( v1.getX() + v2.getX(),\r\n\t\t\t\t\t\t\t\t\t\tv1.getY() + v2.getY(),\r\n\t\t\t\t\t\t\t\t\t\tv1.getZ() + v2.getZ());\r\n\t\treturn result;\r\n\t}",
"public Point vectAdd(Point i) {\n\t\tx+=i.x;\n\t\ty+=i.y;\n\t\tz+=i.z;\n\t\treturn this;\n\t}",
"public Vector3 add(Vector3 other){\r\n\t\tthis.x += other.x;\r\n\t\tthis.y += other.y;\r\n\t\tthis.z += other.z;\r\n\t\treturn this;\r\n\t}",
"public void addVelocity(Vector2d vector) {\n\t\tvelocity.add(vector);\n\t}",
"public DocumentVector add(DocumentVector that) {\n\t\tint n = Math.min(this.getAttCount(), that.getAttCount());\n\t\tDocumentVector result = new DocumentVector(n, 0);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tresult.setValue(i, this.getValueAsReal(i) + that.getValueAsReal(i));\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public void\n\tadd( Vector3 other )\n\t{\n\t\tdata[0] += other.data[0];\n\t\tdata[1] += other.data[1];\n\t\tdata[2] += other.data[2];\n\t}",
"public Point3D add (Vector v){\n Point3D p=new Point3D(x.coord+v._head.x.coord, y.coord+v._head.y.coord, z.coord+v._head.z.coord);\n return p;\n }",
"public ColorVector add(ColorVector c) {\n return new ColorVector(red + c.getRed(), green + c.getGreen(), blue + c.getBlue());\n }",
"public void add(PVector[] vectors) {\n\t\tfor (int i = 0; i < vectors.length; i++) {\n\t\t\tpoints.add(new GPoint(vectors[i]));\n\t\t}\n\t}",
"public void add(ArrayList<PVector> vectors) {\n\t\tfor (int i = 0; i < vectors.size(); i++) {\n\t\t\tpoints.add(new GPoint(vectors.get(i)));\n\t\t}\n\t}",
"public Vector3 add(Vector3 other) {\n\t\treturn new Vector3(x + other.x, y + other.y, z + other.z);\n\t}",
"public abstract Vector4fc add(float x, float y, float z, float w);",
"public static Vector3f add(Vector3f vec1, Vector3f vec2) {\n\t\tVector3f result = new Vector3f();\n\n\t\tresult.x = vec1.x + vec2.x;\n\t\tresult.y = vec1.y + vec2.y;\n\t\tresult.z = vec1.z + vec2.z;\n\n\t\treturn result;\n\t}",
"public static void add(Double[] vector, Double adder) {\r\n // ...\r\n for (int i = 0; i < vector.length; i++){\r\n vector[i] = vector[i] + adder;\r\n }\r\n }",
"public Vector2f addLocal (Vector2f other)\n {\n return add(other, this);\n }",
"public Collection<V> addVertices(Collection<V> vs);",
"public Vector4d add(Vector4d o) {\n\t\tx += o.x; y += o.y; z += o.z; w += o.w;\n\t\treturn this;\n\t}",
"public static Vector3 add(Vector3 a, Vector3 b){return new Vector3(a.x + b.x, a.y + b.y, a.z + b.z);}",
"int addVertex(Vector position);",
"public void addV(double vx, double vy, double vz){\n vel[0] += vx;\n vel[0] += vy;\n vel[0] += vz;\n }",
"public void add(PVector v, String label) {\n\t\tpoints.add(new GPoint(v, label));\n\t}",
"public static BigFraction[] vectorAddition(BigFraction[] a, BigFraction[] b) {\n a = a.clone();\n b = b.clone();\n if (a.length != b.length) throw new RuntimeException(\"Illegal vector dimensions.\");\n for (int i = 0; i < a.length; i++) {\n a[i] = a[i].add(b[i]);\n }\n return a;\n }",
"public static VectorIntf add(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n VectorIntf z = x.newInstance(); // x.newCopy();\r\n try {\r\n for (int i = 0; i < n; i++) {\r\n z.setCoord(i, x.getCoord(i) + y.getCoord(i));\r\n }\r\n }\r\n catch (parallel.ParallelException e) {\r\n e.printStackTrace(); // can never get here\r\n }\r\n return z;\r\n }",
"public void add(vec3 a, vec3 b) {\r\n\t\tx = a.x + b.x;\r\n\t\ty = a.y + b.y;\r\n\t\tz = a.z + b.z;\r\n\t}",
"public void addScaledVector(Vector3 addition, double scale) {\n\t\tthis.x += addition.x * scale;\n\t\tthis.y += addition.y * scale;\n\t\tthis.z += addition.z * scale;\n\t}",
"public Vector330Class add(Vector330Class v){\n return new Vector330Class((this.x + v.x), (this.y + v.y));\n }",
"public Vector2f add(float scalar) {\n return add(new Vector2f(scalar, scalar));\n }",
"public vec3 plus(vec3 arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.add(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"public Vector2D plus(Vector2D rhs)\n {\n return new Vector2D(this.x + rhs.x, this.y + rhs.y);\n }",
"public void add(PVector[] vectors, String[] labels) {\n\t\tfor (int i = 0; i < vectors.length; i++) {\n\t\t\tpoints.add(new GPoint(vectors[i], labels[i]));\n\t\t}\n\t}",
"public void add(vec3 b) {\r\n\t\tadd(this, b);\r\n\t}",
"public static void addVectors( double[] v1, double[] v2, double[] result ) {\n result[0] = v1[0]+v2[0];\n result[1] = v1[1]+v2[1];\n result[2] = v1[2]+v2[2];\n }",
"@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Point3 add(Vector3 v) {\n Point3 p = new Point3(x + v.x, y + v.y, z + v.z);\n return p;\n }",
"public static <T extends Vector> T Add(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] + b.axis[i];\n }\n return result;\n }\n return result;\n }",
"public Vector2f add (float x, float y)\n {\n return add(x, y, new Vector2f());\n }",
"public Vector2f add (Vector2f other, Vector2f result)\n {\n return add(other.x, other.y, result);\n }",
"public void addVehicle(Vehicle v) {\n\t\tvehicles.add(v); \n\t}",
"public vec3 plus(float arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.add(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"public static double[] addVectors( double[] v1, double[] v2 ) {\n double[] result = new double[3];\n addVectors(v1, v2, result);\n return result;\n }",
"void doVector() {\n Vector<String> v = new Vector<>();//creating vector\n v.add( \"umesh\" );//method of Collection\n v.addElement( \"irfan\" );//method of Vector\n v.addElement( \"kumar\" );\n //traversing elements using Enumeration\n Enumeration e = v.elements(); // creates enumeration objects\n while (e.hasMoreElements()) { //\n System.out.println( e.nextElement() );\n }\n }",
"@Override\r\n\tpublic boolean add(VOI o) {\r\n VOI voi = null;\r\n\r\n // check that object is a VOI\r\n if (!(o instanceof VOI)) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n voi = o;\r\n\r\n // check the voi name, fix if necessary\r\n if (contains(voi)) {\r\n voi.setName(buildName(voi.getName()));\r\n }\r\n\r\n if (super.add(voi)) { // add the voi to the vector\r\n fireVOIadded(voi); // notify listeners of a change\r\n Preferences.debug(\"Add voi: name = \" + voi.getName() + \"\\n\");\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n }",
"public Variable add(Variable v) throws IllegalArgumentException {\r\n\t\tif (!variables.contains(v)) {\r\n\t\t\tif (v.getIndex() >= 0) {\r\n\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t}\r\n\t\t\tv.setIndex(variables.size());\r\n\t\t\tvariables.add(v);\r\n\t\t}\r\n\t\treturn v;\r\n\t}",
"@Override\n\tpublic void push(Object x) {\n\t\tthis.vector.add(x);\n\t}",
"VectorType11 getVector();",
"void addGradient(Vector gradientVector, double gradient);",
"public static double[] vectorAddition(double[] a, double[] b) {\r\n\t\tdouble[] retval = new double[a.length];\r\n\t\tfor(int i = 0; i < a.length; i += 1) {\r\n\t\t\tretval[i] = a[i] + b[i];\r\n\t\t}\r\n\t\treturn retval;\r\n\t}",
"public V addVertex(V v);",
"public void add(final Vec3 B)\n \t{\n \t\tthis.x += B.x;\n \t\tthis.y += B.y;\n \t\tthis.z += B.z;\n \t}",
"public void addVectorListener(VectorListener vectorListener) {\n\t\tinitTransients();\r\n\t\tif (vectorListener instanceof java.io.Serializable){\r\n\t\t\tif (listeners.contains(vectorListener)) return;\r\n\t\t\tlisteners.addElement(vectorListener);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tif (transientListeners.contains(vectorListener)) return;\r\n\t\t\ttransientListeners.addElement(vectorListener);\r\n\t\t}\r\n\t}",
"public void addTokenVectorPair(String token, double[] vector) {\r\n tokenToVectorDictionary.put(token, vector);\r\n vectorLength = vector.length;\r\n }",
"public Vector3 addLocal (IVector3 other) {\n return add(other, this);\n }",
"public void add(int x, int y, int t, int v) {\n\t\tif (v < vArray[49]) {\n\t\t\treturn;\n\t\t}\n\t\t \t\n \t// find out the position\n \tint newIndex = indexOf(v);\n \t \t\n \t// shift arrays\n \tfor (int i = 49; i > newIndex; --i) {\n \t\txArray[i] = xArray[i - 1];\n \t\tyArray[i] = yArray[i - 1];\n \t\ttArray[i] = tArray[i - 1];\n \t\tvArray[i] = vArray[i - 1];\n \t}\n\n \t// put the new item in position\n \txArray[newIndex] = x;\n \tyArray[newIndex] = y;\n \ttArray[newIndex] = t;\n \tvArray[newIndex] = v;\n\t}",
"public void add(vec3 a, float b) {\r\n\t\tx = a.x + b;\r\n\t\ty = a.y + b;\r\n\t\tz = a.z + b;\r\n\t}",
"public VectorA scalarAdd(double z)\n {\n return new VectorA(this.x+z, this.y+z);\n }",
"public void add(int index, PVector v) {\n\t\tpoints.add(index, new GPoint(v));\n\t}",
"public void setEqualTo(Vector v){ components = v.getVectorAsArray(); }",
"public void add_Range(Range range_to_add){\n this.range_vector.add(range_to_add);\n }",
"public int vectorSum()\n\t{\n\t\tint sum =0;\n\t\tfor(int i=0;i<vector.size();i++)\n\t\t{\n\t\t\tsum += vector.get(i);\n\t\t}\n\t\treturn sum;\n\t}",
"public static void add(float[] u, float[] v) {\n for (int i = 0; i < u.length; i++) {\n u[i] += v[i];\n }\n }",
"public static void add(Vec2 a, Vec2 b, Vec2 dest) {\r\n\t\tdest.x = a.x + b.x;\r\n\t\tdest.y = a.y + b.y;\r\n\t}",
"public void addLine(Vector vector1, Vector vector2) {\n if (isDiagonalLine(vector1, vector2)) {\n throw new IllegalArgumentException(\"Cannot add diagonal lines only vertical or horizontal\");\n }\n\n char character = 'x';\n\n Vector directionVector = vector2.subtract(vector1).simplify();\n\n Vector vector = vector1;\n addVectorPointInsideCanvas(vector, character);\n while (!vector.equals(vector2)) {\n vector = vector.add(directionVector);\n addVectorPointInsideCanvas(vector, character);\n }\n }",
"public VOIVector() {\r\n super();\r\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic V add(V val) {\n\t\ttry {\n\t\t\tif (value instanceof Integer && val instanceof Integer) {\n\t\t\t\tint temp = (int) value + (int) val;\n\t\t\t\treturn (V) ((Object) temp);\n\t\t\t} else if (value instanceof Double && val instanceof Double) {\n\t\t\t\tdouble temp = (double) value + (double) val;\n\t\t\t\tif (Double.isNaN(temp)) {\n\t\t\t\t\ttemp = 0;\n\t\t\t\t\tif (!Double.isNaN((double) value))\n\t\t\t\t\t\ttemp += (double) value;\n\t\t\t\t\telse if (!Double.isNaN((double) val))\n\t\t\t\t\t\ttemp += (double) val;\n\t\t\t\t}\n\t\t\t\treturn (V) ((Object) temp);\n\t\t\t} else if (value instanceof String && val instanceof String) {\n\t\t\t\tString temp = (String) value + (String) val;\n\t\t\t\treturn (V) (temp);\n\t\t\t} else if (value instanceof Accumulator\n\t\t\t\t\t&& val instanceof Accumulator) {\n\t\t\t\tAccumulator temp = ((Accumulator) value)\n\t\t\t\t\t\t.merge((Accumulator) val);\n\t\t\t\treturn (V) (temp);\n\t\t\t}\n\t\t} catch (ClassCastException e) {\n\t\t}\n\t\treturn null;\n\t}",
"public static void main(String[] args) {\n\t\tVector v1=new Vector(2,8);\n\t\tSystem.out.println(v1.capacity());\n\t\tv1.add(10);\n\t\tv1.add(20);\nv1.add(30);\n\tv1.add(40);\n\tv1.add(50);\n\tv1.add(60);\n\tv1.add(70);\n\tv1.add(80);\n\tv1.add(90);\n\t\tv1.add(10);\n\t\tv1.add(11);\n\t\tArrayList a1=new ArrayList(v1);\n\t\ta1.add(200);\n\t\tSystem.out.println(a1);\n\t\n\n\n\t}"
] | [
"0.80446506",
"0.76556766",
"0.76231164",
"0.7614392",
"0.7531027",
"0.7498379",
"0.7434992",
"0.7397531",
"0.73688716",
"0.73516214",
"0.7326895",
"0.7322211",
"0.72093606",
"0.7202657",
"0.7188389",
"0.7120622",
"0.7018818",
"0.7013575",
"0.6969151",
"0.68956035",
"0.68955237",
"0.68814707",
"0.68620086",
"0.67393243",
"0.67299",
"0.6706101",
"0.6688748",
"0.66875565",
"0.6680007",
"0.6678548",
"0.6646296",
"0.664612",
"0.65711284",
"0.6552764",
"0.6548524",
"0.6543845",
"0.65392184",
"0.65335596",
"0.65167004",
"0.6495828",
"0.6494483",
"0.6419797",
"0.64136994",
"0.63993376",
"0.63692486",
"0.6361609",
"0.63356036",
"0.6287327",
"0.628694",
"0.62358046",
"0.6228224",
"0.62214786",
"0.61937034",
"0.61898357",
"0.6167427",
"0.616263",
"0.61576414",
"0.6120289",
"0.6104736",
"0.6079648",
"0.6073388",
"0.6055205",
"0.6034626",
"0.60314864",
"0.6029064",
"0.59752184",
"0.5970688",
"0.5962597",
"0.594907",
"0.593087",
"0.59278005",
"0.59172523",
"0.5896787",
"0.5875427",
"0.5863859",
"0.58562475",
"0.5853767",
"0.58515745",
"0.5846886",
"0.5846468",
"0.5822166",
"0.58090854",
"0.5806576",
"0.5805149",
"0.58038974",
"0.5803749",
"0.5796924",
"0.57833964",
"0.57728374",
"0.57723355",
"0.57497585",
"0.57446903",
"0.5741958",
"0.57402813",
"0.5735305",
"0.57253516",
"0.57060874",
"0.57059187",
"0.570081",
"0.5700141"
] | 0.65546465 | 33 |
Creates new vector after addition | public Vector3 addAndCreate(Vector3 addition) {
return new Vector3(addition.x + this.x, addition.y + this.y, addition.z + this.z);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vector add(Vector other){\n\t\treturn new Vector(x+other.x, y+other.y, z+other.z);\n\t}",
"public Vector add(Vector v){\n return new Vector(this.getX()+v.getX(), this.getY()+v.getY(), this.getZ()+v.getZ());\n }",
"public Vector add(Vector other) {\n\t\treturn new Vector(x + other.x, y + other.y);\n\t}",
"public Vector plus(Vector m) {\n\t\treturn new Vector((deltaX + m.getDeltaX()), (deltaY + m.getDeltaY()));\n\t}",
"@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Vector add(Vector v, double dt){\n return new Vector(this.getX()+v.getX()*dt, this.getY()+v.getY()*dt, this.getZ()+v.getZ()*dt);\n }",
"public Vector add(Vector v2){\n return new Vector(this.getX() + v2.getX(), this.getY() + v2.getY());\n }",
"public static BigFraction[] vectorAddition(BigFraction[] a, BigFraction[] b) {\n a = a.clone();\n b = b.clone();\n if (a.length != b.length) throw new RuntimeException(\"Illegal vector dimensions.\");\n for (int i = 0; i < a.length; i++) {\n a[i] = a[i].add(b[i]);\n }\n return a;\n }",
"public Vector3D addVector(Vector3D u, Vector3D v) {\n\t\treturn new Vector3D(this.x = u.x + v.x, this.y = u.y + v.y, \n\t\t\t\tthis.z = u.z + v.z);\n\t}",
"public VectorA add(VectorA v)\n {\n return new VectorA(this.x+v.x, this.y+v.y);\n }",
"public static double[] vectorAddition(double[] a, double[] b) {\r\n\t\tdouble[] retval = new double[a.length];\r\n\t\tfor(int i = 0; i < a.length; i += 1) {\r\n\t\t\tretval[i] = a[i] + b[i];\r\n\t\t}\r\n\t\treturn retval;\r\n\t}",
"public static Vector add(Vector v1, Vector v2) {\r\n Vector w = new Vector(v1);\r\n w.add(v2);\r\n return w;\r\n }",
"public static ThreeVector add(ThreeVector v1,ThreeVector v2) {\r\n\t\treturn new ThreeVector(v1.x + v2.x, v1.y + v2.y,v1.z + v2.z);\r\n\t}",
"public static Vector3 add(Vector3 a, Vector3 b){return new Vector3(a.x + b.x, a.y + b.y, a.z + b.z);}",
"@Override\n\tpublic IVector add(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != vector.getDimension()){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, get(i)+vector.get(i));\n\t\t}\n\t\treturn this;\n\t}",
"public static void addVectors( double[] v1, double[] v2, double[] result ) {\n result[0] = v1[0]+v2[0];\n result[1] = v1[1]+v2[1];\n result[2] = v1[2]+v2[2];\n }",
"public SVector add(SVector other) {\n this.x += other.getX();\n this.y += other.getY();\n this.z += other.getZ();\n return this;\n }",
"public Vector add(Vector other) {\n Point3D p=new Point3D (head.add(other));\n Vector v = new Vector(p);\n return v;\n }",
"@Override\n public Point addVector(float[] vector) {\n this.x += vector[0];\n this.y += vector[1];\n setHeight(getHeight()+ vector[2]);\n return this;\n }",
"public void addTo(Vector3 addition) {\n\t\tthis.x += addition.x;\n\t\tthis.y += addition.y;\n\t\tthis.z += addition.z;\n\t}",
"public static VectorIntf add(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n VectorIntf z = x.newInstance(); // x.newCopy();\r\n try {\r\n for (int i = 0; i < n; i++) {\r\n z.setCoord(i, x.getCoord(i) + y.getCoord(i));\r\n }\r\n }\r\n catch (parallel.ParallelException e) {\r\n e.printStackTrace(); // can never get here\r\n }\r\n return z;\r\n }",
"public Vector<T> add(T aScalar);",
"public vec3 plus(float arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.add(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"public abstract Vector4fc add(float x, float y, float z, float w);",
"public void Sumatoria()\n {\n for (int i = 0; i < vector1.length; i++) {\n sumatoria[i]=vector1[i]+vector2[i];\n }\n }",
"@Override\n\tpublic IVector nAdd(IVector vector) throws OperationNotSupportedException{\n\t\treturn this.copy().add(vector);\n\t}",
"public vec3 plus(vec3 arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.add(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"public DocumentVector add(DocumentVector that) {\n\t\tint n = Math.min(this.getAttCount(), that.getAttCount());\n\t\tDocumentVector result = new DocumentVector(n, 0);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tresult.setValue(i, this.getValueAsReal(i) + that.getValueAsReal(i));\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public static <T extends Vector> T Add(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] + b.axis[i];\n }\n return result;\n }\n return result;\n }",
"public abstract Vector4fc add(IVector4f v);",
"public static Vector3D add(Vector3D v1, Vector3D v2) {\r\n\t\tVector3D result = new Vector3D( v1.getX() + v2.getX(),\r\n\t\t\t\t\t\t\t\t\t\tv1.getY() + v2.getY(),\r\n\t\t\t\t\t\t\t\t\t\tv1.getZ() + v2.getZ());\r\n\t\treturn result;\r\n\t}",
"public void add(Vector rhs) {\r\n for (int i = 0; i < components.length; i++) {\r\n components[i] += rhs.components[i];\r\n }\r\n }",
"public Vector at ( float x ) { return A.add(D.prod(x)); }",
"public static Vector3D add(Vector3D v1, Vector3D v2) {\n\t\tdouble x1 = v1.getX1() + v2.getX1();\n\t\tdouble x2 = v1.getX2() + v2.getX2();\n\t\tdouble x3 = v1.getX3() + v2.getX3();\n\t\t\n\t\treturn new Vector3D(x1,x2,x3);\n\t}",
"@Override\n public Point addVector(Vector3 vector) {\n this.x += vector.x;\n this.y += vector.y;\n setHeight(getHeight()+ vector.z);\n return this;\n }",
"public VectorA scalarAdd(double z)\n {\n return new VectorA(this.x+z, this.y+z);\n }",
"public static Vector3f add(Vector3f vec1, Vector3f vec2) {\n\t\tVector3f result = new Vector3f();\n\n\t\tresult.x = vec1.x + vec2.x;\n\t\tresult.y = vec1.y + vec2.y;\n\t\tresult.z = vec1.z + vec2.z;\n\n\t\treturn result;\n\t}",
"@Override\n \tpublic ArrayPVector<E> plus(int i, E e) {\n \t\tthrow new UnsupportedOperationException(\"Not yet implemented\");\n \t}",
"public Point plus(Vector vector){\n\t\tdouble dx = vector.getDeltaX();\n\t\tdouble dy = vector.getDeltaY();\n\t\treturn new Point(x+dx, y+dy);\n\t}",
"public Vector3 add(Vector3 other){\r\n\t\tthis.x += other.x;\r\n\t\tthis.y += other.y;\r\n\t\tthis.z += other.z;\r\n\t\treturn this;\r\n\t}",
"public ColorVector add(ColorVector c) {\n return new ColorVector(red + c.getRed(), green + c.getGreen(), blue + c.getBlue());\n }",
"public static void add(List<Double> vector, List<Double> toAdd) {\n for (int i = 0; i < vector.size(); i++) {\n double sum = vector.get(i) + toAdd.get(i);\n vector.set(i, sum);\n }\n }",
"public void add(double sthis, Vec vthat, double sthat);",
"public Vector3 add(Vector3 other) {\n\t\treturn new Vector3(x + other.x, y + other.y, z + other.z);\n\t}",
"public Vector2D add(Vector2D v)\n\t{\n\t\treturn new Vector2D(x+v.getX(), y+v.getY());\n\t}",
"public Point vectAdd(Point i) {\n\t\tx+=i.x;\n\t\ty+=i.y;\n\t\tz+=i.z;\n\t\treturn this;\n\t}",
"public static void add(Double[] vector, Double adder) {\r\n // ...\r\n for (int i = 0; i < vector.length; i++){\r\n vector[i] = vector[i] + adder;\r\n }\r\n }",
"public Vector2d add(Vector2d v) {\n\t\treturn new Vector2d(x + v.x, y + v.y);\n\t}",
"public Vector add(Vector vec) {\n return new Vector(this.head.add(vec));\n }",
"public Vector4d add(Vector4d o) {\n\t\tx += o.x; y += o.y; z += o.z; w += o.w;\n\t\treturn this;\n\t}",
"public WB_Vector nextVector();",
"public Vec2double add(Vec2double v) {\n\t\treturn new Vec2double(this.x + v.x, this.y + v.y);\n\t}",
"public Vector2D plus(Vector2D rhs)\n {\n return new Vector2D(this.x + rhs.x, this.y + rhs.y);\n }",
"final public Vector3 add(final Vector3 v){\n if(v == null){\n throw new IllegalArgumentException(\"v must not be null\");\n }\n return new Vector3(x + v.x, y + v.y, z + v.z);\n }",
"public void add(Vec2 v) {\r\n\t\tx += v.x;\r\n\t\ty += v.y;\r\n\t}",
"public static <T extends Vector> T Add(T a, float val,T result){\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] + val;\n }\n return result;\n }",
"public int vectorSum()\n\t{\n\t\tint sum =0;\n\t\tfor(int i=0;i<vector.size();i++)\n\t\t{\n\t\t\tsum += vector.get(i);\n\t\t}\n\t\treturn sum;\n\t}",
"public Point3D add (Vector v){\n Point3D p=new Point3D(x.coord+v._head.x.coord, y.coord+v._head.y.coord, z.coord+v._head.z.coord);\n return p;\n }",
"public Vector3D add(Vector3D v) {\n return new Vector3D(v.xCoord + this.xCoord, v.yCoord + this.yCoord, v.zCoord + this.zCoord);\n }",
"public void\n\tadd( Vector3 other )\n\t{\n\t\tdata[0] += other.data[0];\n\t\tdata[1] += other.data[1];\n\t\tdata[2] += other.data[2];\n\t}",
"public Vector2f add(Vector2f vec) {\n this.x += vec.x;\n this.y += vec.y;\n return this;\n }",
"public Vector2f add (Vector2f other)\n {\n return add(other, new Vector2f());\n }",
"private Vector coordinateSummer(Vector first, Vector second) {\n Vector tmp = new Vector();\n tmp.setX(first.getX() + second.getX());\n tmp.setY(first.getY() + second.getY());\n tmp.setZ(first.getZ() + second.getZ());\n return tmp;\n }",
"public static void add(float[] u, float[] v) {\n for (int i = 0; i < u.length; i++) {\n u[i] += v[i];\n }\n }",
"public static double[] addVectors( double[] v1, double[] v2 ) {\n double[] result = new double[3];\n addVectors(v1, v2, result);\n return result;\n }",
"public void recalculateVector()\r\n {\r\n recalculateVector(destX, destY);\r\n }",
"static Vec vector(PointDouble a, PointDouble b) {\n return new Vec(b.x - a.x, b.y - a.y);\n }",
"@Test\r\n public void testAddVector() throws Exception {\r\n System.out.println(\"AddVector\");\r\n int[] T = {1,2,3};\r\n int []T2 = {4,5,6};\r\n VectorHelper instance = new VectorHelper();\r\n int[] expResult = {5,7,9};\r\n int[] result = instance.AddVector(T, T2);\r\n assertArrayEquals(expResult, result);\r\n \r\n }",
"public Vector2f addLocal (Vector2f other)\n {\n return add(other, this);\n }",
"public Vector2f add (float x, float y, Vector2f result)\n {\n return result.set(this.x + x, this.y + y);\n }",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tPilaVector p = new PilaVector();\n\t\tfor(int i = 0; i < this.vector.size(); i++) {\n\t\t\tp.vector.add(this.vector.get(i));\n\t\t}\n\t\treturn p;\n\t}",
"public void add(vec3 a, vec3 b) {\r\n\t\tx = a.x + b.x;\r\n\t\ty = a.y + b.y;\r\n\t\tz = a.z + b.z;\r\n\t}",
"@Test\n public void add() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(dest, 4, a, 2, b, 1);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-6f));\n \n float[] a2 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect2 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(a2, 2, b2, 1);\n assertTrue(Vec4f.epsilonEquals(a2, 2, expect2, 0, 1E-6f));\n \n float[] dest3 = new float[4]; \n float[] a3 = new float[] {3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b3 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect3 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(dest3, a3, b3);\n assertTrue(Vec4f.epsilonEquals(dest3,expect3, 1E-6f));\n \n float[] a4 = new float[] {3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b4 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect4 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(a4, b4);\n //System.out.println(\"a=\"+Vec4f.toString(a, 2));\n assertTrue(Vec4f.epsilonEquals(a4,expect4, 1E-6f));\n }",
"public void add(LorentzVector... vects) {\n\t\tfor (LorentzVector vect : vects) {\n\t\t\tthis.vector.add(vect.vect());\n\t\t\tthis.energy = this.e() + vect.e();\n\t\t}\n\t}",
"int addVertex(Vector position);",
"public Vector4d add(double x, double y, double z, double w) {\n\t\tthis.x += x; this.y += y; this.z += z; this.w += w;\n\t\treturn this;\n\t}",
"public Vector2f add (float x, float y)\n {\n return add(x, y, new Vector2f());\n }",
"public Vector2f add (Vector2f other, Vector2f result)\n {\n return add(other.x, other.y, result);\n }",
"public Vector getVector()\n\t{\n\t\tVector v=new Vector();\n\t\tv.add(getDate());\n\t\tv.add(getCaloriesConsumed());\n\t\tv.add(getCaloriesBurned());\n\t\tv.add(getCaloriesDifference());\n\t\treturn v;\n\t}",
"public OVecR2 suma(OVecR2 b){\n //TODO: implementar\n return new OVecR2();\n }",
"VectorType11 getVector();",
"public void addScaledVector(Vector3 addition, double scale) {\n\t\tthis.x += addition.x * scale;\n\t\tthis.y += addition.y * scale;\n\t\tthis.z += addition.z * scale;\n\t}",
"WordVec constructConcatenatedVec(ArmifiedAttributeValuePair avp, NodeVecs ndvecs, WordVec sumvec) {\n \n WordVec ndvec = ndvecs!=null? getNodeVec(avp, ndvecs): null;\n WordVec ndAndWordVec = WordVec.concat(ndvec, sumvec);\n ndAndWordVec.setWord(sumvec.getWord());\n\n return ndAndWordVec;\n }",
"public Vector2f addLocal (float x, float y)\n {\n return add(x, y, this);\n }",
"public Vector produitVectorielle(Vector vec){\n return new Vector(y * vec.z - z * vec.y, z * vec.x - x * vec.z, x * vec.y - y * vec.x);\t\t\n }",
"final public Vector3 add(final Normal3 n){\n if(n == null){\n throw new IllegalArgumentException(\"n must not be null\");\n }\n return new Vector3(x + n.x, y + n.y, z + n.z);\n }",
"public LorentzVector sum(LorentzVector... vects) {\n\t\tLorentzVector newVector = new LorentzVector(this);\n\t\tnewVector.add(vects);\n\t\treturn newVector;\n\t}",
"public void add(int v, int p){\n \n \n \n }",
"Matrix add(double w){\n Matrix matrix_to_return = new Matrix(this.rows, this.cols);\n for(int i=0; i<this.rows * this.cols; i++){\n matrix_to_return.data[i] = w + this.data[i];\n }\n return matrix_to_return;\n }",
"@Override\n\tpublic double add(double in1, double in2) {\n\t\treturn 0;\n\t}",
"public static void main(String[] args) {\n\t\tVector v1=new Vector(2,8);\n\t\tSystem.out.println(v1.capacity());\n\t\tv1.add(10);\n\t\tv1.add(20);\nv1.add(30);\n\tv1.add(40);\n\tv1.add(50);\n\tv1.add(60);\n\tv1.add(70);\n\tv1.add(80);\n\tv1.add(90);\n\t\tv1.add(10);\n\t\tv1.add(11);\n\t\tArrayList a1=new ArrayList(v1);\n\t\ta1.add(200);\n\t\tSystem.out.println(a1);\n\t\n\n\n\t}",
"void add(int idx, float incr);",
"Double add(Double a, Double b);",
"void addGradient(Vector gradientVector, double gradient);",
"@Override\n public void update(float delta) {\n // Make sure to COPY the vector and not copy the reference\n position = new Vector3f(entity.getPosition()).add(offset);\n }",
"Point add (double x, double y, Point result);",
"@Secured({ \"GROUP_USER\", \"ACL_SECURABLE_EDIT\" })\n ExpressionExperiment addRawVectors( ExpressionExperiment eeToUpdate,\n Collection<RawExpressionDataVector> newVectors );",
"public Vector330Class add(Vector330Class v){\n return new Vector330Class((this.x + v.x), (this.y + v.y));\n }",
"@Override\n \tpublic ArrayPVector<E> plusAll(int i, Collection<? extends E> l) {\n \t\tthrow new UnsupportedOperationException(\"Not yet implemented\");\n \t}",
"public Vector2f add(float scalar) {\n return add(new Vector2f(scalar, scalar));\n }"
] | [
"0.7361258",
"0.7280364",
"0.7086514",
"0.7056661",
"0.6938065",
"0.6907375",
"0.68983287",
"0.6881955",
"0.687921",
"0.68749285",
"0.6827728",
"0.6745955",
"0.67058134",
"0.66904384",
"0.66822225",
"0.66638",
"0.6662047",
"0.66461176",
"0.662539",
"0.6597276",
"0.65632796",
"0.6555636",
"0.6545749",
"0.65424025",
"0.6537778",
"0.64895976",
"0.64832276",
"0.64345926",
"0.6417426",
"0.64059556",
"0.6401241",
"0.63896024",
"0.63537633",
"0.6325888",
"0.6322599",
"0.6301418",
"0.6248081",
"0.62180614",
"0.6205679",
"0.6205111",
"0.62013555",
"0.61911446",
"0.61876607",
"0.6175756",
"0.6174537",
"0.6147612",
"0.6146596",
"0.61396825",
"0.61197764",
"0.6110381",
"0.6097365",
"0.6096215",
"0.6090265",
"0.6088298",
"0.60714054",
"0.6039297",
"0.60108995",
"0.60045683",
"0.59941113",
"0.5986223",
"0.5957579",
"0.5950971",
"0.5929773",
"0.59221464",
"0.5916558",
"0.59109133",
"0.59096354",
"0.58859104",
"0.58813834",
"0.58780277",
"0.5853142",
"0.584591",
"0.58354044",
"0.5832716",
"0.5811028",
"0.58036745",
"0.5789356",
"0.5787851",
"0.5785885",
"0.57767767",
"0.57507",
"0.57399374",
"0.5730872",
"0.5730701",
"0.5727463",
"0.5713762",
"0.5713581",
"0.5687658",
"0.5672971",
"0.5638395",
"0.56238455",
"0.5611255",
"0.56028235",
"0.55884534",
"0.55749846",
"0.55745506",
"0.55716985",
"0.5566048",
"0.5563476",
"0.5562319"
] | 0.67816085 | 11 |
Use this function to add a scaled vector. Useful when we're considering interpolation. | public void addScaledVector(Vector3 addition, double scale) {
this.x += addition.x * scale;
this.y += addition.y * scale;
this.z += addition.z * scale;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vector2f addScaled (Vector2f other, float v)\n {\n return addScaled(other, v, new Vector2f());\n }",
"public Coordinates scaleVector(Coordinates vector, double factor, Coordinates origin);",
"public Coordinates scaleVector(Coordinates vector, double factor);",
"public Vector2f addScaled (Vector2f other, float v, Vector2f result)\n {\n return result.set(x + other.x*v, y + other.y*v);\n }",
"public vec3 addScaled(float s, vec3 arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.addScaled(this, s, arg);\r\n\t\treturn tmp;\r\n\t}",
"public void addScaled(vec3 a, float s, vec3 b) {\r\n\t\tx = a.x + s * b.x;\r\n\t\ty = a.y + s * b.y;\r\n\t\tz = a.z + s * b.z;\r\n\t}",
"public Vector2f addScaledLocal (Vector2f other, float v)\n {\n return addScaled(other, v, this);\n }",
"public Vector3 addScaledLocal (IVector3 other, double v) {\n return addScaled(other, v, this);\n }",
"public Vector scale(double scalar) {\n\t\treturn new Vector(x * scalar, y * scalar);\n\t}",
"static Vec scale(Vec v, double s) {\n return new Vec(v.x * s, v.y * s);\n }",
"public Vector at ( float x ) { return A.add(D.prod(x)); }",
"void scale(double factor);",
"private SbVec3f SCALE( SbVec3f vec, SbVec3f tmp, SbVec3f scale) {\n\tfloat[] pt = vec.getValueRead();\n\ttmp.setValue(0, (pt)[0]*scale.getValueRead()[0]);\n\t\t\ttmp.setValue(1, (pt)[1]*scale.getValueRead()[1]); \n\t\t tmp.setValue(2, (pt)[2]*scale.getValueRead()[2]);\n\n\treturn tmp;\n\n}",
"@Override\n public Point addVector(float[] vector) {\n this.x += vector[0];\n this.y += vector[1];\n setHeight(getHeight()+ vector[2]);\n return this;\n }",
"@Test\n public void scaleAdd() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {10.009f, 18.012f, 18.015f, 22.018f};\n // 1)\n Vec4f.scaleAdd(dest, 4, 3.0f, a, 2, b, 1);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-5f));\n \n //2)\n Vec4f.scaleAdd(3.0f, a, 2, b, 1);\n assertTrue(Vec4f.epsilonEquals(a, 2, expect, 0, 1E-5f));\n \n float[] dest1 = new float[4]; \n float[] a1 = new float[] { 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b1 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n //3)\n Vec4f.scaleAdd(dest1, 3.0f, a1, b1);\n assertTrue(Vec4f.epsilonEquals(dest1, expect, 1E-5f));\n //4) \n Vec4f.scaleAdd(3.0f, a1, b1);\n assertTrue(Vec4f.epsilonEquals(a1, expect, 1E-5f));\n }",
"public void scale(double s);",
"@Test\n public void scale() {\n assertEquals(\"Wrong vector scale\", new Vector(1,1,1).scale(2), new Vector(2,2,2));\n }",
"public static Vector scale(Vector v, double factor) {\r\n Vector w = new Vector(v);\r\n w.scale(factor);\r\n return w;\r\n }",
"public void getInterpolatedScale (float u, Point3f newScale) {\r\n \r\n // if linear interpolation\r\n if (this.linear == 1) {\r\n\r\n newScale.x = keyFrame[1].scale.x + \r\n ((keyFrame[2].scale.x - keyFrame[1].scale.x) * u);\r\n newScale.y = keyFrame[1].scale.y + \r\n ((keyFrame[2].scale.y - keyFrame[1].scale.y) * u);\r\n newScale.z = keyFrame[1].scale.z + \r\n ((keyFrame[2].scale.z - keyFrame[1].scale.z) * u);\r\n\r\n } else {\r\n\r\n newScale.x = e0.x + u * (e1.x + u * (e2.x + u * e3.x));\r\n newScale.y = e0.y + u * (e1.y + u * (e2.y + u * e3.y));\r\n newScale.z = e0.z + u * (e1.z + u * (e2.z + u * e3.z));\r\n\r\n }\r\n }",
"public void scale(float x, float y);",
"public Vector scale(double factor) {\n\t\treturn new Vector(deltaX * factor, deltaY * factor);\n\t}",
"void addGradient(Vector gradientVector, double gradient);",
"public Vector scale(double num) {\n return new Vector (head.x._coord * num,\n head.y._coord *num, head.z._coord * num);\n }",
"public Vector scale(double factor){\n\t\treturn new Vector(x*factor, y*factor, z*factor);\n\t}",
"public void scale(float scalar) {\n\t\tthis.scale(scalar, scalar);\n\t}",
"public Vector scale(double s) {\n return new Vector(new Point3D(this.head.getX() * s, this.head.getY() * s, this.head.getZ() * s));\n }",
"public Vector2f add(float scalar) {\n return add(new Vector2f(scalar, scalar));\n }",
"public void scale(Point P, int scaleFactor) {\n\n\n }",
"private double scaleValue(double input) {\n if(type == SIMPLE_SIN2D_IN_X || type == SIMPLE_SIN2D_IN_Y || type == SIMPLE_MULT2D) {\n // SINE = -1 to 1\n // SCALE to 0 to 255\n // (SINE + 1) * 128\n return (input + 1) * (255.0 / 2.0);\n }\n if(type == SIMPLE_PLUS2D)\n {\n return (input + 2) * (255.0 / 4.0);\n }\n else\n return 0;\n }",
"@Override\n public INDArray scal(float alpha, INDArray x) {\n NativeBlas.sscal(x.length(), alpha, x.data(), x.offset(), 1);\n return x;\n }",
"@Override\n\tpublic void\n\tscalarAdd( double value )\n\t{\n\t\tdata[0] += value;\n\t\tdata[1] += value;\n\t\tdata[2] += value;\n\t}",
"public Vec2double add(Vec2double v) {\n\t\treturn new Vec2double(this.x + v.x, this.y + v.y);\n\t}",
"public void scaleAdd(double scale, Color rhs) {\n\n\t\tthis.r += scale * rhs.r;\n\t\tthis.g += scale * rhs.g;\n\t\tthis.b += scale * rhs.b;\n\n\t}",
"@Override\n public void scale(double x, double y, double z) {\n GL11.glScaled(x, y, z);\n }",
"public Vector4d scale(double s) {\n\t\tx *= s; y *= s; z *= s; w *= s;\n\t\treturn this;\n\t}",
"public void add(Vec2 v) {\r\n\t\tx += v.x;\r\n\t\ty += v.y;\r\n\t}",
"public void scale(float val) {\r\n\t\tx *= val;\r\n\t\ty *= val;\r\n\t\tz *= val;\r\n\t}",
"public final void add(float scalar) {\n\tm00 += scalar; m01 += scalar; m02 += scalar;\n\tm10 += scalar; m11 += scalar; m12 += scalar;\n\tm20 += scalar; m21 += scalar; m22 += scalar;\n }",
"@Override\n public Point addVector(Vector3 vector) {\n this.x += vector.x;\n this.y += vector.y;\n setHeight(getHeight()+ vector.z);\n return this;\n }",
"public void scale(Vector center, float degree);",
"@Override\n\tfinal public void scale(double x, double y)\n\t{\n\t\twidth *= x;\n\t\theight *= y;\n\t}",
"private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }",
"public void setScale(int indexInST, float time, Vector3f scale) {\n PointInTime toAdd=findTime(time);\n toAdd.setScale(indexInST,scale);\n }",
"void scaleArea(float scaleFactor) {\n\t\t// for more advanced (more than 4 points), use this algorithm:\n\t\t// http://stackoverflow.com/questions/1109536/an-algorithm-for-inflating-deflating-offsetting-buffering-polygons\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tPVector tmp = PVector.sub(point[i].position, anchor);\n\t\t\ttmp.mult(scaleFactor);\n\t\t\tpoint[i].position.set(PVector.add(anchor, tmp));\n\t\t}\n\t}",
"float getScaler();",
"public void scaleArrow(float scalar) {\n\t\tarrow.scale(scalar);\n\t}",
"public void setScale(double value) {\n this.scale = value;\n }",
"public int scale(int original);",
"public VectorA scalarAdd(double z)\n {\n return new VectorA(this.x+z, this.y+z);\n }",
"public Vect3 AddScal(double k, Vect3 v) {\n\t\treturn new Vect3(x+k*v.x, y+k*v.y, z+k*v.z);\n\t}",
"void addVelocityValue(int velocityValue);",
"public static double scalarProduct(Vector v1, Vector v2){\r\n\t\treturn v1.getX()*v2.getX() + v1.getY()*v2.getY();\r\n\t\t\r\n\t}",
"public void scale(float scale, float x, float y) {\n\t\tcompose(new TransformMatrix(scale,scale, x - scale * x,y - scale * y));\n\t}",
"@Test\n public void scale() {\n float[] a1 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.00f, 6.00f};\n float[] a2 = new float[] {3.003f, 4.004f, 5.00f, 6.00f};\n float[] expect = new float[] {9.009f, 12.012f, 15.00f, 18.00f};\n Vec4f.scale(3.0f, a1, 2);\n assertTrue(Vec4f.epsilonEquals(a1, 2, expect, 0, 1E-6f));\n Vec4f.scale(3.0f, a2);\n assertTrue(Vec4f.epsilonEquals(a2, expect, 1E-6f));\n }",
"@Override\n\tpublic void setScale(Vector3d scale) {\n\t\t\n\t}",
"public Vector<T> add(T aScalar);",
"public Vec4 addMul(final Vec4 o, final double s) {\n return new Vec4(x + o.x * s, y + o.y * s, z + o.z * s, w + o.w * s);\n }",
"public Vector rescale (double magnitude) {\n\t\tdouble magni = magnitude();\n\t\t\n\t\tif (magni == 0) {\n\t\t\treturn new Vector(magnitude, 0);\n\t\t}\n\t\telse {\n\t\t\treturn scale(magnitude/magni);\n\t\t}\n\t}",
"public Point2F scale(float s)\r\n {return new Point2F(x*s, y*s);}",
"public void setScale(float scale);",
"public Vector3 scale(double s) {\n\t\treturn new Vector3(s * x, s * y, s * z);\n\t}",
"public static void add(List<Double> vector, List<Double> toAdd) {\n for (int i = 0; i < vector.size(); i++) {\n double sum = vector.get(i) + toAdd.get(i);\n vector.set(i, sum);\n }\n }",
"double scaleInput(double dVal) {\n double[] scaleArray = { 0.0, 0.05, 0.09, 0.10, 0.12, 0.15, 0.18, 0.24,\n 0.30, 0.36, 0.43, 0.50, 0.60, 0.72, 0.85, 1.00, 1.00 };\n int index = (int) (dVal * 16.0);\n if (index < 0) {\n index = -index;\n }\n if (index > 16) {\n index = 16;\n }\n double dScale = 0.0;\n if (dVal < 0) {\n dScale = -scaleArray[index];\n } else {\n dScale = scaleArray[index];\n }\n return dScale;\n }",
"public void scale(float x, float y) {\n multiply(\n x, 0F, 0F, 0F,\n 0F, y, 0F, 0F,\n 0F, 0F, 1F, 0F,\n 0F, 0F, 0F, 1F\n );\n }",
"public void scale(float scale, float scale2) {\n\t\t\n\t}",
"double scaleInput(double dVal) {\n double[] scaleArray = { 0.0, 0.05, 0.09, 0.10, 0.12, 0.15, 0.18, 0.24,\n 0.30, 0.36, 0.43, 0.50, 0.60, 0.72, 0.85, 1.00, 1.00 };\n\n // get the corresponding index for the scaleInput array.\n int index = (int) (dVal * 16.0);\n if (index < 0) {\n index = -index;\n } else if (index > 16) {\n index = 16;\n }\n\n double dScale = 0.0;\n if (dVal < 0) {\n dScale = -scaleArray[index];\n } else {\n dScale = scaleArray[index];\n }\n\n return dScale;\n }",
"@Override\r\n\tpublic void add(float var) {\n\t\t\r\n\t}",
"public Vector transform(Vector v) {\n\t\treturn new Vector(a * v.x + c, b * v.y + d);\n\t}",
"public void scale(double rhs) {\n\n\t\tthis.r *= rhs;\n\t\tthis.g *= rhs;\n\t\tthis.b *= rhs;\n\t}",
"public Vector normalize ( );",
"public Vector4d mulAdd(Vector4d o, double s) {\n\t\tx += o.x * s; y += o.y * s; z += o.z * s; w += o.w * s;\n\t\treturn this;\n\t}",
"public void add(double val) {\n sum += val;\n sumQ += val * val;\n count++;\n if (val < min) min = val;\n if (val > max) max = val;\n }",
"public void scale( float x, float y )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.setScale( x );\n\t\tmat.mul( opMat );\n\t}",
"public void scale(Vector2 scale)\n\t{\n\t\tthis.scaleBasis(scale);\n\t\tthis.matrix[2] = this.matrix[2].multiply(scale);\n\t}",
"public void add(String instanceId, int ind, float value) {\n CHK.CHECK(ind < dimension, \n String.format(\"Value %d is not in the vector's range\", ind));\n \n //Add a new instance if I don't have it beforehand.\n if (! instanceExists(instanceId)) {\n addInstance(instanceId);\n } \n checkPossibleOverriding(instanceId, ind);\n allValues.get(\n mapOfInstances.get(instanceId))[ind] = value;\n }",
"public void scale(float scalarX, float scalarY) {\n\t\ttile.scale(scalarX, scalarY);\n\t\tarrow.scale(scalarX, scalarY);\n\t}",
"public void add(double sthis, Vec vthat, double sthat);",
"public void addVelocity(double x, double y) {\n velocityX += x;\n velocityY += y;\n }",
"public Vector add(Vector v, double dt){\n return new Vector(this.getX()+v.getX()*dt, this.getY()+v.getY()*dt, this.getZ()+v.getZ()*dt);\n }",
"public void beginScaling() {\n xScale = 1.0f;\n yScale = 1.0f;\n }",
"public static void multiply(Double[] vector, Double multiplier) {\r\n // ...\r\n for (int i = 0; i < vector.length; i++){\r\n vector[i] = vector[i] * multiplier;\r\n }\r\n }",
"public Vector2d add(Vector2d v) {\n\t\treturn new Vector2d(x + v.x, y + v.y);\n\t}",
"public static void translate(Double[] vector, Double[] translateVector) {\r\n for(int i = 0; i < vector.length; i++){\r\n vector[i] += translateVector[i];\r\n }\r\n }",
"public Vector4d scale(Vector4d o) {\n\t\tx *= o.x; y *= o.y; z *= o.z; w *= o.w;\n\t\treturn this;\n\t}",
"public Vector add(Vector v){\n return new Vector(this.getX()+v.getX(), this.getY()+v.getY(), this.getZ()+v.getZ());\n }",
"public void addVelocity(Vector2d vector) {\n\t\tvelocity.add(vector);\n\t}",
"public void scale(Point3 scale) {\r\n\t\tx *= scale.x;\r\n\t\ty *= scale.y;\r\n\t\tz *= scale.z;\r\n\t}",
"public final void setScale(float scalarX, float scalarY) {\n\t\tfinal Vector2 oldScale = this.scale();\n\t\tthis.scale(scalarX/oldScale.x, scalarY/oldScale.y);\n\t}",
"private void scaleToPositive() {\r\n // Obtain min value\r\n double minScalarization = Double.MAX_VALUE;\r\n for (S solution : solutions()) {\r\n if (scalarization.getAttribute(solution) < minScalarization) {\r\n minScalarization = scalarization.getAttribute(solution);\r\n }\r\n }\r\n if (minScalarization < 0) {\r\n // Avoid scalarization values of 0\r\n double eps = 10e-6;\r\n for (S solution : solutions()) {\r\n scalarization.setAttribute(solution, eps + scalarization.getAttribute(solution) + minScalarization);\r\n }\r\n }\r\n }",
"private double scalex(double x) {\n return x/scalingFactor;\n }",
"public Vector2D add(Vector2D v)\n\t{\n\t\treturn new Vector2D(x+v.getX(), y+v.getY());\n\t}",
"public void scale(double x, double y, double z){\n \tMatrix scale = new Matrix();\n \tscale.identity();\n \tscale.set(1,1,x);\n \tscale.set(2,2,y);\n \tscale.set(3,3,z);\n \tthis.leftMultiply(scale);\n\n }",
"public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }",
"public T scale( double val ) {\n T ret = createLike();\n ops.scale(mat, val, ret.getMatrix());\n return ret;\n }",
"public void rescale()\r\n\t{\n\t}",
"@Override public void update(float dt)\n\t{\n\t\tthis.setScale((this.getScale().getX() + 0.1f) * 0.99f, (this.getScale().getY() + 0.1f) * 0.99f);\n\n\n\t}",
"static double scaleInput(double dVal)\n {\n double[] scaleArray = {0.0, 0.05, 0.09, 0.10, 0.12, 0.15, 0.18, 0.24,\n 0.30, 0.36, 0.43, 0.50, 0.60, 0.72, 0.85, 1.00, 1.00};\n\n // get the corresponding index for the scaleInput array.\n int index = (int) (dVal * 16.0);\n\n // index should be positive.\n if (index < 0)\n {\n index = -index;\n }\n\n // index cannot exceed size of array minus 1.\n if (index > 16)\n {\n index = 16;\n }\n\n // get value from the array.\n double dScale;\n if (dVal < 0)\n {\n dScale = -scaleArray[index];\n }\n else\n {\n dScale = scaleArray[index];\n }\n\n // return scaled value.\n return dScale;\n }",
"public VectorA add(VectorA v)\n {\n return new VectorA(this.x+v.x, this.y+v.y);\n }",
"private double scale (double curr, double goal, double scale, double threshold) {\n return (Math.abs(goal - curr) < threshold ?\n goal : goal * scale + curr * (1 - scale));\n }",
"public abstract Vector4fc add(IVector4f v);"
] | [
"0.723323",
"0.7232815",
"0.7157897",
"0.7126703",
"0.69905645",
"0.69383055",
"0.6917143",
"0.6807282",
"0.6672387",
"0.647136",
"0.6263597",
"0.62609565",
"0.6225521",
"0.6209157",
"0.62016636",
"0.61945677",
"0.6177462",
"0.6094061",
"0.6046708",
"0.6018364",
"0.5989457",
"0.59044594",
"0.58812016",
"0.5857109",
"0.5796604",
"0.5787059",
"0.57824236",
"0.57740074",
"0.5752895",
"0.5752762",
"0.57397217",
"0.5730314",
"0.5721274",
"0.5680443",
"0.56782144",
"0.56742907",
"0.56658703",
"0.56239724",
"0.55750257",
"0.5567302",
"0.5563106",
"0.5532147",
"0.5505065",
"0.54935896",
"0.5481151",
"0.5475999",
"0.5467853",
"0.5467072",
"0.5450836",
"0.5427898",
"0.54243815",
"0.5419173",
"0.5396169",
"0.5395322",
"0.5388033",
"0.53858167",
"0.53757524",
"0.53703827",
"0.5367801",
"0.5347632",
"0.53347206",
"0.5330683",
"0.53262514",
"0.5319252",
"0.53183126",
"0.53150374",
"0.53120273",
"0.5297984",
"0.5297931",
"0.52956665",
"0.5286053",
"0.52653503",
"0.5262798",
"0.52617973",
"0.52594155",
"0.52573675",
"0.52524465",
"0.52422404",
"0.5241209",
"0.523811",
"0.52361065",
"0.52358663",
"0.5227482",
"0.52231854",
"0.52195877",
"0.52058524",
"0.5194776",
"0.51946145",
"0.51914185",
"0.51911366",
"0.5185826",
"0.5171353",
"0.51692265",
"0.5167234",
"0.5164998",
"0.5159863",
"0.5158592",
"0.5156478",
"0.5154463",
"0.51491237"
] | 0.7442011 | 0 |
Subtracts a vector from this one. | public void difference(Vector3 subtrahend) {
this.x -= subtrahend.x;
this.y -= subtrahend.y;
this.z -= subtrahend.z;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vector subtract(Vector other) {\n\t\treturn new Vector(x - other.x, y - other.y);\n\t}",
"public static Vector subtract(Vector v1, Vector v2) {\r\n Vector w = new Vector(v1);\r\n w.subtract(v2);\r\n return w;\r\n }",
"public SVector subtract(SVector other) {\n this.x -= other.getX();\n this.y -= other.getY();\n this.z -= other.getZ();\n return this;\n }",
"public Vector subtract(Vector other){\n\t\treturn new Vector(x-other.x, y-other.y, z-other.z);\n\t}",
"public void subtract(Vector rhs) {\r\n for (int i = 0; i < components.length; i++) {\r\n components[i] -= rhs.components[i];\r\n }\r\n }",
"public Vector subtract (Vector other) {\n Vector t =new Vector(head.subtract(other.head));\n return t;\n }",
"public Vector minusAll(Vector v) {\n return new Vector(\n getX() - v.getX(),\n getY() - v.getY(),\n getZ() - v.getZ(),\n 0\n );\n }",
"public Vector<T> subtract(T aScalar);",
"public static Vector subtract(Vector v1, Vector v2) {\n return new Vector(v1.getX() - v2.getX(), v1.getY() - v2.getY());\n }",
"public Vector subtract(Vector vec) {\n return this.head.subtract(vec.getHead());\n }",
"@Override\n\tpublic IVector sub(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != vector.getDimension()){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, get(i)-vector.get(i));\n\t\t}\n\t\treturn this;\n\t}",
"public VectorA sub(VectorA v)\n {\n return new VectorA(this.x-v.x, this.y-v.y);\n }",
"public Vector minus(Vector m) {\n\t\treturn new Vector((deltaX - m.getDeltaX()), (deltaY - m.getDeltaY()));\n\t}",
"public void\n\tsub( Vector3 other )\n\t{\n\t\tdata[0] -= other.data[0];\n\t\tdata[1] -= other.data[1];\n\t\tdata[2] -= other.data[2];\n\t}",
"@Test\n public void subtract() {\n assertEquals(\"Wrong vector subtract\", new Vector(1, 1, 1),\n new Vector(new Point3D(2, 3, 4)).subtract(new Vector(new Point3D(1, 2, 3))));\n\n }",
"@Override\n\tpublic IVector nSub(IVector vector) throws OperationNotSupportedException{\n\t\treturn this.copy().sub(vector);\n\t}",
"public LorentzVector substract(LorentzVector... vects) {\n\t\tLorentzVector newVector = new LorentzVector(this);\n\t\tnewVector.sub(vects);\n\t\treturn newVector;\n\t}",
"public Vector minus(Point point){\n\t\tdouble xSubtracted = this.getX()-point.getX();\n\t\tdouble ySubtracted = this.getY()-point.getY();\n\t\treturn new Vector (xSubtracted, ySubtracted);\n\t}",
"public void sub(Vec2 v) {\r\n\t\tx -= v.x;\r\n\t\ty -= v.y;\r\n\t}",
"public Vector2f sub(Vector2f vec) {\n this.x -= vec.x;\n this.y -= vec.y;\n return this;\n }",
"public void sub(LorentzVector... vectors) {\n\t\tfor (LorentzVector vect : vectors) {\n\t\t\tthis.vector.sub(vect.vect());\n\t\t\tthis.energy = this.e() - vect.e();\n\t\t}\n\t}",
"public Vector2f subtract (Vector2f other)\n {\n return subtract(other, new Vector2f());\n }",
"public static <T extends Vector> T Substract(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] - b.axis[i];\n }\n return result;\n }\n return result;\n }",
"public static VectorIntf subtract(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n VectorIntf z = x.newInstance(); // x.newCopy();\r\n for (int i=0; i<n; i++) {\r\n try {\r\n z.setCoord(i, x.getCoord(i) - y.getCoord(i));\r\n }\r\n catch (parallel.ParallelException e) { // can never get here\r\n e.printStackTrace();\r\n }\r\n }\r\n return z;\r\n }",
"public Vector2d subtract(Vector2d v) {\n\t\treturn new Vector2d(x - v.x, y - v.y);\n\t}",
"public vec3 minus(vec3 arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.sub(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"public void subtract() {\n\t\t\n\t}",
"public Vector2D minus(Vector2D rhs)\n {\n return new Vector2D(this.x - rhs.x, this.y - rhs.y);\n }",
"@Override\r\n\tpublic vec3 minus() {\n\t\treturn null;\r\n\t}",
"public vec3 minus(float arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.sub(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"public Vector3 sub(Vector3 other) {\n\t\treturn new Vector3(x - other.x, y - other.y, z - other.z);\n\t}",
"@Override\n\tpublic double subtract(double in1, double in2) {\n\t\treturn 0;\n\t}",
"public Vector3D subtract(Vector3D v)\r\n {\r\n return new Vector3D(this.x - v.getX(),\r\n this.y - v.getY(),\r\n this.z - v.getZ());\r\n }",
"public Vector3 subThisFrom(Vector3 other){\r\n\t\tthis.x = (other.x - this.x);\r\n\t\tthis.y = (other.y - this.y);\r\n\t\tthis.z = (other.z - this.z);\r\n\t\treturn this;\r\n\t}",
"public Vector2f subtractLocal (Vector2f other)\n {\n return subtract(other, this);\n }",
"public Vector3D subtract(Vector3D v) {\n return new Vector3D(v.xCoord - this.xCoord, v.yCoord - this.yCoord, v.zCoord - this.zCoord);\n }",
"public Vector2f subtract (Vector2f other, Vector2f result)\n {\n return add(-other.x, -other.y, result);\n }",
"public Vector6f subI(Vector6f otherVector)\n\t{\n\t\tx[0] -= otherVector.x[0]; \n\t\tx[1] -= otherVector.x[1]; \n\t\tx[2] -= otherVector.x[2]; \n\t\tx[3] -= otherVector.x[3]; \n\t\tx[4] -= otherVector.x[4]; \n\t\tx[5] -= otherVector.x[5];\n\t\treturn this;\n\t}",
"public void sub(vec3 a, vec3 b) {\r\n\t\tx = a.x - b.x;\r\n\t\ty = a.y - b.y;\r\n\t\tz = a.z - b.z;\r\n\t}",
"public Vector4d sub(Vector4d o) {\n\t\tx -= o.x; y -= o.y; z -= o.z; w -= o.w;\n\t\treturn this;\n\t}",
"public Vector3 subtractLocal (IVector3 other) {\n return subtract(other, this);\n }",
"public static <T extends Vector> T Substract(T a, float val,T result){\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] - val;\n }\n return result;\n }",
"public Vector330Class subtract(Vector330Class v){\n return new Vector330Class((this.x - v.x), (this.y - v.y));\n }",
"public static void sub(Vec2 a, Vec2 b, Vec2 dest) {\r\n\t\tdest.x = a.x - b.x;\r\n\t\tdest.y = a.y - b.y;\r\n\t}",
"public static void subVectors( double[] v1, double[] v2, double[] result ) {\n result[0] = v1[0] - v2[0];\n result[1] = v1[1] - v2[1];\n result[2] = v1[2] - v2[2];\n }",
"protected double[] negate(ColumnVector vector) {\r\n double[] v = vector.getVector();\r\n for(int i = 0; i < v.length; i++) {\r\n v[i] *= -1.0;\r\n }\r\n return v;\r\n }",
"public abstract Vector4fc sub(IVector4f v);",
"public Vec2double sub(Vec2int v) {\n\t\treturn new Vec2double(this.x - v.x, this.y - v.y);\n\t}",
"public Vector2D subtract(float x, float y){\n return new Vector2D(this.x - x, this.y - y);\n }",
"public V difference(V v1, V v2);",
"public Vector subtract(Point3D p){\n// return new Vector(\n// p.x.coord- x.coord,\n// p.y.coord- y.coord,\n// p.z.coord- z.coord);\n return new Vector(\n x.coord- p.x.coord,\n y.coord- p.y.coord,\n z.coord- p.z.coord);\n }",
"@Deprecated\n public static Vector3 subtract(Vector3 par1, Vector3 par2)\n {\n return new Vector3(par1.x - par2.x, par1.y - par2.y, par1.z - par2.z);\n }",
"public Coordinate subtract(Coordinate other) {\n return new Coordinate(usubtract(_coord, other._coord));\n }",
"public void sub(vec3 b) {\r\n\t\tsub(this, b);\r\n\t}",
"public static Vector2 Sub(Vector2 a, Vector2 b) {\n return new Vector2(a.x - b.x, a.y - b.y);\n }",
"public CLImage2D subtract(CLImage2D in1, CLImage2D in2) {\n\t\treturn process(subtractImage, in1, in2);\n\t}",
"public T minus( T B ) {\n convertType.specify(this, B);\n T A = convertType.convert(this);\n B = convertType.convert(B);\n T ret = A.createLike();\n\n A.ops.minus(A.mat, B.mat, ret.mat);\n return ret;\n }",
"public void subtract()\r\n {\r\n resultDoubles = Operations.subtraction(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }",
"@Override\n public Polynomial subtract(Polynomial q) {\n if (q == null)\n throw new NullPointerException(\"cannot subtract null polynomials\");\n\n return subSparse(this, toSparsePolynomial(q));\n }",
"public static final Vector2 subtract(final Vector2 value1, final Vector2 value2) {\n\t\tVector2 r = new Vector2();\n\t\tr.X = value1.X - value2.X;\n\t\tr.Y = value1.Y - value2.Y;\n\t\t\n\t\treturn r;\n\t}",
"public HugeUInt subtract(HugeUInt arg) {\r\n //We only subtract smaller numbers\r\n HugeUInt result = new HugeUInt(this);\r\n int cur = 0;\r\n for (int i = 0; i < arg.getSize(); i++) {\r\n cur = cur + 10 + result.array[i] - arg.array[i];\r\n result.array[i] = cur % 10;\r\n cur = cur < 10 ? -1 : 0;\r\n }\r\n for (int i = arg.getSize(); i < getSize(); i++) {\r\n cur = cur + 10 + result.array[i];\r\n result.array[i] = cur % 10;\r\n cur = cur < 10 ? -1 : 0;\r\n }\r\n result.trim();\r\n return result;\r\n }",
"public Vector4d sub(double x, double y, double z, double w) {\n\t\tthis.x -= x; this.y -= y; this.z -= z; this.w -= w;\n\t\treturn this;\n\t}",
"public Vector2D neg()\n\t{\n\t\treturn this.mul(-1);\n\t}",
"@Override\n\tpublic double substract(double a, double b) {\n\t\treturn (a-b);\n\t}",
"public void sub(vec3 a, float b) {\r\n\t\tx = a.x - b;\r\n\t\ty = a.y - b;\r\n\t\tz = a.z - b;\r\n\t}",
"public void substract(int sub) {\r\n value -= sub;\r\n }",
"public static double[] subtract(double[] v, double[] w) {\n double[] tmp = new double[3];\n tmp[0] = v[0] - w[0];\n tmp[1] = v[1] - w[1];\n tmp[2] = v[2] - w[2];\n return tmp;\n }",
"public MutableDouble subtract(double value) {\n\t\tmDouble -= value;\n\t\treturn this;\n\t}",
"@Override\n\tpublic void\n\tscalarSub( double value )\n\t{\n\t\tdata[0] -= value;\n\t\tdata[1] -= value;\n\t\tdata[2] -= value;\n\t}",
"public void subtract(int value) {\n m_value -= value;\n }",
"@Override\r\n\tpublic int sub(int a,int b) {\n\t\treturn a-b;\r\n\t}",
"public T minus( double b ) {\n T ret = createLike();\n ops.minus(mat, b, ret.mat);\n return ret;\n }",
"public Inatnum subtract(Inatnum a){//purpose: to subtract 2 values\n\t\ttry {return(this.pred().subtract(a).pred());}//take the previous value of this and the previous value of a until one of them hits zero and then return the other value\n\t\tcatch(Exception e) {System.out.println(\"Error add: \"+ e.getMessage());// otherwise return an error, this needs to be greater than or equal to a otherise we'd get a negative\n\t\t\t\t \t\t\t\t\t\t\t// and there are no negative natural numbers\n\t\treturn null;}\n\t\t\t}",
"public void substract1() {\r\n value--;\r\n }",
"public Vector2f negateLocal ()\n {\n return negate(this);\n }",
"public RevisionVector difference(RevisionVector vector) {\n List<Revision> diff = newArrayListWithCapacity(revisions.length);\n PeekingIterator<Revision> it = peekingIterator(vector.iterator());\n for (Revision r : revisions) {\n Revision other = peekRevision(it, r.getClusterId());\n if (!r.equals(other)) {\n diff.add(r);\n }\n }\n return new RevisionVector(toArray(diff, Revision.class), false, false);\n }",
"public Vector2f sub(float scalar) {\n return sub(new Vector2f(scalar, scalar));\n }",
"public abstract Vector4fc sub(float x, float y, float z, float w);",
"@Override\n\tpublic int sub(int val1, int val2) {\n\t\treturn val1 - val2;\n\t}",
"public UnitStatValues subtract(UnitStatValues other) {\n\t\tstr -= other.str;\n\t\tagi -= other.agi;\n\t\tfort -= other.fort;\n\t\tpercep -= other.percep;\n\n\t\tmaxHp -= other.maxHp;\n\t\tmaxSp -= other.maxSp;\n\n\t\tdamage -= other.damage;\n\t\t\n\t\tatkspd -= other.atkspd;\n\t\t\n\t\tatk -= other.atk;\n\t\tdef -= other.def;\n\t\tforce -= other.force;\n\t\tstab -= other.stab;\n\t\tdodge -= other.dodge;\n\n\t\tarmor -= other.armor;\n\t\tarmorPiercing -= other.armorPiercing;\n\t\tpercentArmor -= other.percentArmor;\n\t\tarmorNegate -= other.armorNegate;\n\t\t\n\t\trangedDamage -= other.rangedDamage;\n\t\trangedAtk -= other.rangedAtk;\n\t\trangedForce -= other.rangedForce;\n\n\t\treturn this;\n\t}",
"public int subtraction(int a, int b){\n return a - b;\n }",
"public Vector cross(Vector other){\n\t\treturn new Vector(\n\t\t\t\ty*other.z - z*other.y,\n\t\t\t\tz*other.x - x*other.z,\n\t\t\t\tx*other.y - y*other.x\n\t\t\t\t);\n\t}",
"public void subtract(MyDouble val) {\n this.setValue(this.getValue() - val.getValue());\n }",
"public void subtract(Point3 p) {\r\n\t\tset(this.x - p.x, this.y - p.y, this.z - p.z);\r\n\t}",
"@Override\n public Float minus(Float lhs, Float rhs) {\n\t\n\tfloat res = lhs - rhs;\n\treturn res;\n }",
"public final GFElement subtract(GFElement minuend)\n {\n return add(minuend);\n }",
"public Point2F subtract(Point2F p)\r\n {return add(p.negative());}",
"@Override\r\n\tpublic vec3 minus(ShaderVar var) {\n\t\treturn null;\r\n\t}",
"public Point3 sub(Vector3 v) {\n Point3 p = new Point3(x - v.x, y - v.y, z - v.z);\n return p;\n }",
"static Vec vector(PointDouble a, PointDouble b) {\n return new Vec(b.x - a.x, b.y - a.y);\n }",
"public final void subtractFromThis(GFElement minuend)\n {\n addToThis(minuend);\n }",
"BaseNumber subtract(BaseNumber operand);",
"public CLImage2D subtract(CLImage2D in1, float[] amt) {\n\t\treturn process(subtractImage, in1, amt);\n\t}",
"void minus(int a) {\n this.result -= a; // 이렇게 result 변수가 있는 인스턴스의 주소를 사용하여 계산을 수행한다.\n }",
"final public Vector3 sub(final Normal3 n){\n if(n == null){\n throw new IllegalArgumentException(\"n must not be null\");\n }\n return new Vector3(x - n.x, y - n.y, z - n.z);\n }",
"@Override\n\tpublic IMatrix sub(IMatrix other) {\n\t\tif (this.getColsCount() != other.getColsCount()\n\t\t\t\t|| this.getRowsCount() != other.getRowsCount()) {\n\t\t\tthrow new IncompatibleOperandException(\n\t\t\t\t\t\"For operation 'sub' matrixes should be compatible!\");\n\t\t}\n\t\tint m = this.getRowsCount();\n\t\tint n = this.getColsCount();\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tthis.set(i, j, this.get(i, j) - other.get(i, j));\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}",
"public CMLVector3 subtract(CMLVector3 v3) {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n Vector3 v = (veucl3 == null) ? null : veucl3.subtract(v3\r\n .getEuclidVector3());\r\n return (v == null) ? null : CMLVector3.createCMLVector3(v);\r\n }",
"public Point3D minus(Point3D subtrahend) {\n\t\tPoint3D copy = new Point3D(this);\n\t\tcopy.homogenize();\n\t\tPoint3D subCopy = new Point3D(subtrahend);\n\t\tsubCopy.homogenize();\n\n\t\tcopy.x -= subCopy.x;\n\t\tcopy.y -= subCopy.y;\n\t\tcopy.z -= subCopy.z;\t\t\n\t\t\n\t\treturn copy;\n\t}",
"public Point subtract(Point b)\n {\n return new Point(this.x - b.x, this.y - b.y);\n }",
"@Override\n\tpublic float subtrair(float op1, float op2) {\n\t\treturn op1 - op2;\n\t}"
] | [
"0.76693237",
"0.76530176",
"0.7616751",
"0.7587425",
"0.74582905",
"0.7422157",
"0.73957247",
"0.7332658",
"0.72830695",
"0.7263408",
"0.72551125",
"0.71751976",
"0.7117325",
"0.70874894",
"0.705196",
"0.68628424",
"0.6847545",
"0.6824084",
"0.67771345",
"0.6769847",
"0.67507696",
"0.6735367",
"0.66736996",
"0.66654116",
"0.66561615",
"0.66549176",
"0.66142505",
"0.64947885",
"0.6470899",
"0.6421651",
"0.6416877",
"0.6416067",
"0.6408724",
"0.63615423",
"0.6361145",
"0.63156873",
"0.6212943",
"0.61376125",
"0.60579133",
"0.6055916",
"0.6044122",
"0.60221344",
"0.6014549",
"0.59559906",
"0.5953595",
"0.59335476",
"0.5928349",
"0.5889294",
"0.58574283",
"0.5830244",
"0.58119917",
"0.5796862",
"0.5794211",
"0.57423675",
"0.5727626",
"0.5703264",
"0.57031",
"0.570108",
"0.569631",
"0.5683139",
"0.5672823",
"0.5669418",
"0.5667937",
"0.56596434",
"0.56408525",
"0.5638954",
"0.56355125",
"0.5628301",
"0.561548",
"0.56154335",
"0.560481",
"0.5589369",
"0.5572414",
"0.55394053",
"0.55387175",
"0.5525786",
"0.55227906",
"0.55069816",
"0.55047774",
"0.5504595",
"0.54912895",
"0.54894114",
"0.54713404",
"0.546786",
"0.5467176",
"0.5462763",
"0.5439213",
"0.541566",
"0.5389126",
"0.5383646",
"0.53733486",
"0.5369093",
"0.5368113",
"0.53646946",
"0.5363844",
"0.5348787",
"0.53475267",
"0.53454274",
"0.53420323",
"0.5339165"
] | 0.58713055 | 48 |
Subtracts from this vector and creates a new one. | public Vector3 differenceAndCreate(Vector3 subtrahend) {
return new Vector3(this.x - subtrahend.x, this.y - subtrahend.y, this.z - subtrahend.z);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Vector subtract(Vector v1, Vector v2) {\r\n Vector w = new Vector(v1);\r\n w.subtract(v2);\r\n return w;\r\n }",
"public Vector subtract(Vector other) {\n\t\treturn new Vector(x - other.x, y - other.y);\n\t}",
"public Vector subtract(Vector other){\n\t\treturn new Vector(x-other.x, y-other.y, z-other.z);\n\t}",
"public Vector subtract (Vector other) {\n Vector t =new Vector(head.subtract(other.head));\n return t;\n }",
"public SVector subtract(SVector other) {\n this.x -= other.getX();\n this.y -= other.getY();\n this.z -= other.getZ();\n return this;\n }",
"public VectorA sub(VectorA v)\n {\n return new VectorA(this.x-v.x, this.y-v.y);\n }",
"public Vector minusAll(Vector v) {\n return new Vector(\n getX() - v.getX(),\n getY() - v.getY(),\n getZ() - v.getZ(),\n 0\n );\n }",
"public static Vector subtract(Vector v1, Vector v2) {\n return new Vector(v1.getX() - v2.getX(), v1.getY() - v2.getY());\n }",
"public Vector minus(Vector m) {\n\t\treturn new Vector((deltaX - m.getDeltaX()), (deltaY - m.getDeltaY()));\n\t}",
"public Vector<T> subtract(T aScalar);",
"public void subtract(Vector rhs) {\r\n for (int i = 0; i < components.length; i++) {\r\n components[i] -= rhs.components[i];\r\n }\r\n }",
"public Vector minus(Point point){\n\t\tdouble xSubtracted = this.getX()-point.getX();\n\t\tdouble ySubtracted = this.getY()-point.getY();\n\t\treturn new Vector (xSubtracted, ySubtracted);\n\t}",
"public vec3 minus(vec3 arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.sub(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"@Test\n public void subtract() {\n assertEquals(\"Wrong vector subtract\", new Vector(1, 1, 1),\n new Vector(new Point3D(2, 3, 4)).subtract(new Vector(new Point3D(1, 2, 3))));\n\n }",
"public static VectorIntf subtract(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n VectorIntf z = x.newInstance(); // x.newCopy();\r\n for (int i=0; i<n; i++) {\r\n try {\r\n z.setCoord(i, x.getCoord(i) - y.getCoord(i));\r\n }\r\n catch (parallel.ParallelException e) { // can never get here\r\n e.printStackTrace();\r\n }\r\n }\r\n return z;\r\n }",
"public Vector3 subThisFrom(Vector3 other){\r\n\t\tthis.x = (other.x - this.x);\r\n\t\tthis.y = (other.y - this.y);\r\n\t\tthis.z = (other.z - this.z);\r\n\t\treturn this;\r\n\t}",
"public Vector3D subtract(Vector3D v)\r\n {\r\n return new Vector3D(this.x - v.getX(),\r\n this.y - v.getY(),\r\n this.z - v.getZ());\r\n }",
"public static <T extends Vector> T Substract(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] - b.axis[i];\n }\n return result;\n }\n return result;\n }",
"@Override\n\tpublic IVector sub(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != vector.getDimension()){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, get(i)-vector.get(i));\n\t\t}\n\t\treturn this;\n\t}",
"@Override\r\n\tpublic vec3 minus() {\n\t\treturn null;\r\n\t}",
"public Vector330Class subtract(Vector330Class v){\n return new Vector330Class((this.x - v.x), (this.y - v.y));\n }",
"public void subtract() {\n\t\t\n\t}",
"public Vector3 sub(Vector3 other) {\n\t\treturn new Vector3(x - other.x, y - other.y, z - other.z);\n\t}",
"public Vector3D subtract(Vector3D v) {\n return new Vector3D(v.xCoord - this.xCoord, v.yCoord - this.yCoord, v.zCoord - this.zCoord);\n }",
"public vec3 minus(float arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.sub(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"public Vector2D minus(Vector2D rhs)\n {\n return new Vector2D(this.x - rhs.x, this.y - rhs.y);\n }",
"public void\n\tsub( Vector3 other )\n\t{\n\t\tdata[0] -= other.data[0];\n\t\tdata[1] -= other.data[1];\n\t\tdata[2] -= other.data[2];\n\t}",
"public Vector2d subtract(Vector2d v) {\n\t\treturn new Vector2d(x - v.x, y - v.y);\n\t}",
"public Vector2f sub(Vector2f vec) {\n this.x -= vec.x;\n this.y -= vec.y;\n return this;\n }",
"public Vector subtract(Vector vec) {\n return this.head.subtract(vec.getHead());\n }",
"public Vector2f subtract (Vector2f other)\n {\n return subtract(other, new Vector2f());\n }",
"public LorentzVector substract(LorentzVector... vects) {\n\t\tLorentzVector newVector = new LorentzVector(this);\n\t\tnewVector.sub(vects);\n\t\treturn newVector;\n\t}",
"public T negative() {\n T A = copy();\n ops.changeSign(A.mat);\n return A;\n }",
"public void sub(Vec2 v) {\r\n\t\tx -= v.x;\r\n\t\ty -= v.y;\r\n\t}",
"public Vector4d sub(Vector4d o) {\n\t\tx -= o.x; y -= o.y; z -= o.z; w -= o.w;\n\t\treturn this;\n\t}",
"public Vector2f subtract (Vector2f other, Vector2f result)\n {\n return add(-other.x, -other.y, result);\n }",
"public Coordinate subtract(Coordinate other) {\n return new Coordinate(usubtract(_coord, other._coord));\n }",
"public Vector4d sub(double x, double y, double z, double w) {\n\t\tthis.x -= x; this.y -= y; this.z -= z; this.w -= w;\n\t\treturn this;\n\t}",
"public static <T extends Vector> T Substract(T a, float val,T result){\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] - val;\n }\n return result;\n }",
"public T minus( T B ) {\n convertType.specify(this, B);\n T A = convertType.convert(this);\n B = convertType.convert(B);\n T ret = A.createLike();\n\n A.ops.minus(A.mat, B.mat, ret.mat);\n return ret;\n }",
"public Vector3 invert()\n {\n this.scale(-1);\n return this;\n }",
"public Vector2D subtract(float x, float y){\n return new Vector2D(this.x - x, this.y - y);\n }",
"public Vector2f subtractLocal (Vector2f other)\n {\n return subtract(other, this);\n }",
"public Point3D minus(Point3D subtrahend) {\n\t\tPoint3D copy = new Point3D(this);\n\t\tcopy.homogenize();\n\t\tPoint3D subCopy = new Point3D(subtrahend);\n\t\tsubCopy.homogenize();\n\n\t\tcopy.x -= subCopy.x;\n\t\tcopy.y -= subCopy.y;\n\t\tcopy.z -= subCopy.z;\t\t\n\t\t\n\t\treturn copy;\n\t}",
"public Vector3 subtractLocal (IVector3 other) {\n return subtract(other, this);\n }",
"@Override\n\tpublic IVector nSub(IVector vector) throws OperationNotSupportedException{\n\t\treturn this.copy().sub(vector);\n\t}",
"public final GFElement subtract(GFElement minuend)\n {\n return add(minuend);\n }",
"@Deprecated\n public static Vector3 subtract(Vector3 par1, Vector3 par2)\n {\n return new Vector3(par1.x - par2.x, par1.y - par2.y, par1.z - par2.z);\n }",
"public Vector subtract(Point3D p){\n// return new Vector(\n// p.x.coord- x.coord,\n// p.y.coord- y.coord,\n// p.z.coord- z.coord);\n return new Vector(\n x.coord- p.x.coord,\n y.coord- p.y.coord,\n z.coord- p.z.coord);\n }",
"@Override\n public Vector3 clone()\n {\n return new Vector3(this);\n }",
"public Vector6f subI(Vector6f otherVector)\n\t{\n\t\tx[0] -= otherVector.x[0]; \n\t\tx[1] -= otherVector.x[1]; \n\t\tx[2] -= otherVector.x[2]; \n\t\tx[3] -= otherVector.x[3]; \n\t\tx[4] -= otherVector.x[4]; \n\t\tx[5] -= otherVector.x[5];\n\t\treturn this;\n\t}",
"@Override\n\tpublic double subtract(double in1, double in2) {\n\t\treturn 0;\n\t}",
"public AttributeSet subtract(AttributeSet s) {\n\n Hashtable newElements = (Hashtable) elements.clone();\n\n Iterator iter = s.iterator();\n while (iter.hasNext()) {\n newElements.remove(iter.next());\n }\n\n return new AttributeSet(newElements);\n }",
"public void difference(Vector3 subtrahend) {\n\t\tthis.x -= subtrahend.x;\n\t\tthis.y -= subtrahend.y;\n\t\tthis.z -= subtrahend.z;\n\t}",
"public void sub(vec3 a, vec3 b) {\r\n\t\tx = a.x - b.x;\r\n\t\ty = a.y - b.y;\r\n\t\tz = a.z - b.z;\r\n\t}",
"public T minus( double b ) {\n T ret = createLike();\n ops.minus(mat, b, ret.mat);\n return ret;\n }",
"public void invert() {\n\t\tthis.vector.setXYZ(-this.vector.x(), -this.vector.y(), -this.vector.z());\n\t\tthis.energy = -this.energy;\n\t}",
"public Point3 sub(Vector3 v) {\n Point3 p = new Point3(x - v.x, y - v.y, z - v.z);\n return p;\n }",
"public static final Vector2 subtract(final Vector2 value1, final Vector2 value2) {\n\t\tVector2 r = new Vector2();\n\t\tr.X = value1.X - value2.X;\n\t\tr.Y = value1.Y - value2.Y;\n\t\t\n\t\treturn r;\n\t}",
"public Point2F subtract(Point2F p)\r\n {return add(p.negative());}",
"public MutableDouble subtract(double value) {\n\t\tmDouble -= value;\n\t\treturn this;\n\t}",
"Position V2Sub(Position a, Position b){\r\n\t\tdouble x = a.getX() - b.getX();\r\n\t\tdouble y = a.getY() - b.getY();\r\n\t\tPosition c = new Position(x, y);\r\n\t\treturn c;\r\n\t}",
"public void sub(LorentzVector... vectors) {\n\t\tfor (LorentzVector vect : vectors) {\n\t\t\tthis.vector.sub(vect.vect());\n\t\t\tthis.energy = this.e() - vect.e();\n\t\t}\n\t}",
"public final void subtractFromThis(GFElement minuend)\n {\n addToThis(minuend);\n }",
"static Vec vector(PointDouble a, PointDouble b) {\n return new Vec(b.x - a.x, b.y - a.y);\n }",
"@Override\n public Polynomial subtract(Polynomial q) {\n if (q == null)\n throw new NullPointerException(\"cannot subtract null polynomials\");\n\n return subSparse(this, toSparsePolynomial(q));\n }",
"public abstract Vector4fc sub(IVector4f v);",
"public CLImage2D subtract(CLImage2D in1, CLImage2D in2) {\n\t\treturn process(subtractImage, in1, in2);\n\t}",
"public Point subtract(Point b)\n {\n return new Point(this.x - b.x, this.y - b.y);\n }",
"public static Vector2 Sub(Vector2 a, Vector2 b) {\n return new Vector2(a.x - b.x, a.y - b.y);\n }",
"final public Vector3 sub(final Normal3 n){\n if(n == null){\n throw new IllegalArgumentException(\"n must not be null\");\n }\n return new Vector3(x - n.x, y - n.y, z - n.z);\n }",
"public Units minus(Units units)\n\t{\n\t\tUnits result = new Units();\n\t\tfor (Unit unit : this)\n\t\t{\n\t\t\tif (!units.contains(unit))\n\t\t\t{\n\t\t\t\tresult.add(unit);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public static void sub(Vec2 a, Vec2 b, Vec2 dest) {\r\n\t\tdest.x = a.x - b.x;\r\n\t\tdest.y = a.y - b.y;\r\n\t}",
"public Percentage minus(Percentage other) {\n return new Percentage(amount.minus(other.amount));\n }",
"public Vector cross(Vector other){\n\t\treturn new Vector(\n\t\t\t\ty*other.z - z*other.y,\n\t\t\t\tz*other.x - x*other.z,\n\t\t\t\tx*other.y - y*other.x\n\t\t\t\t);\n\t}",
"Point subtract(Point otherPoint) {\n\t\treturn(new Point(x-otherPoint.x,y-otherPoint.y));\n\t}",
"public VectorFloat subVector(int start, int length) {\n final VectorFloat v = new VectorFloat(length);\n for (int i = 0; i < length; i++) {\n v.storage[i] = storage[i + start];\n }\n return v;\n }",
"public GridPosition subtract(GridPosition other) {\n return new GridPosition(posX - other.getX(), posY - other.getY());\n }",
"Minus createMinus();",
"Minus createMinus();",
"Minus createMinus();",
"public static void subVectors( double[] v1, double[] v2, double[] result ) {\n result[0] = v1[0] - v2[0];\n result[1] = v1[1] - v2[1];\n result[2] = v1[2] - v2[2];\n }",
"LengthSubtract createLengthSubtract();",
"public HugeUInt subtract(HugeUInt arg) {\r\n //We only subtract smaller numbers\r\n HugeUInt result = new HugeUInt(this);\r\n int cur = 0;\r\n for (int i = 0; i < arg.getSize(); i++) {\r\n cur = cur + 10 + result.array[i] - arg.array[i];\r\n result.array[i] = cur % 10;\r\n cur = cur < 10 ? -1 : 0;\r\n }\r\n for (int i = arg.getSize(); i < getSize(); i++) {\r\n cur = cur + 10 + result.array[i];\r\n result.array[i] = cur % 10;\r\n cur = cur < 10 ? -1 : 0;\r\n }\r\n result.trim();\r\n return result;\r\n }",
"public abstract Vector4fc sub(float x, float y, float z, float w);",
"public Vec clone();",
"public static double[] subtract(double[] v, double[] w) {\n double[] tmp = new double[3];\n tmp[0] = v[0] - w[0];\n tmp[1] = v[1] - w[1];\n tmp[2] = v[2] - w[2];\n return tmp;\n }",
"public void subtract(Point3 p) {\r\n\t\tset(this.x - p.x, this.y - p.y, this.z - p.z);\r\n\t}",
"public void subtract()\r\n {\r\n resultDoubles = Operations.subtraction(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }",
"public <V extends Number> FluentExp<V> minus (SQLExpression<V> expr)\n {\n return new Sub<V>(this, expr);\n }",
"public Inventory<T> subtract(final T item) {\n if (item == null) {\n return this;\n }\n final Map<T, Integer> freshMap = new HashMap<>();\n freshMap.putAll(items);\n if (freshMap.get(item) <= 0) {\n freshMap.put(item, 0);\n } else {\n freshMap.put(item, freshMap.get(item) - 1);\n }\n return new Inventory<T>(enums, Collections.unmodifiableMap(freshMap));\n }",
"public Vector2f negate (Vector2f result)\n {\n return result.set(-x, -y);\n }",
"@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public org.apache.spark.mllib.linalg.distributed.BlockMatrix subtract (org.apache.spark.mllib.linalg.distributed.BlockMatrix other) { throw new RuntimeException(); }",
"public Vector3 negateLocal () {\n return negate(this);\n }",
"public void sub(vec3 a, float b) {\r\n\t\tx = a.x - b;\r\n\t\ty = a.y - b;\r\n\t\tz = a.z - b;\r\n\t}",
"public static BIGNUM subtract(BIGNUM bn1, BIGNUM bn2) {\n\t\tBIGNUM newbn = new BIGNUM(-bn2.NUM, bn2.E);\n\t\treturn add(bn1, newbn);\n\t}",
"IVec3 sub(IVec3 v);",
"public Vector4d copy() {\n\t\treturn new Vector4d(this);\n\t}",
"public Vector2f negateLocal ()\n {\n return negate(this);\n }"
] | [
"0.76793617",
"0.75190073",
"0.7518337",
"0.751575",
"0.7366174",
"0.72651124",
"0.71021193",
"0.7059175",
"0.6951888",
"0.6921224",
"0.6860573",
"0.6829284",
"0.67908466",
"0.6789088",
"0.6754241",
"0.66717273",
"0.65997124",
"0.6579309",
"0.6560584",
"0.6553188",
"0.654866",
"0.6524931",
"0.65238154",
"0.6522737",
"0.65131915",
"0.6462553",
"0.6431569",
"0.6427701",
"0.64071417",
"0.63891107",
"0.63746697",
"0.630794",
"0.625731",
"0.62206",
"0.61852396",
"0.61804855",
"0.6117773",
"0.6101611",
"0.6060812",
"0.6058139",
"0.6052812",
"0.60415685",
"0.60368687",
"0.5982264",
"0.5950248",
"0.5911058",
"0.5903268",
"0.5892309",
"0.5886559",
"0.5858651",
"0.5853074",
"0.5822394",
"0.58114755",
"0.5773057",
"0.5767806",
"0.57483315",
"0.57171184",
"0.57022446",
"0.5700013",
"0.5673486",
"0.56461704",
"0.5642075",
"0.5637834",
"0.56344366",
"0.56322163",
"0.56273997",
"0.56250507",
"0.56145793",
"0.56080925",
"0.5605588",
"0.55949324",
"0.5588805",
"0.5585494",
"0.55824584",
"0.5578085",
"0.557492",
"0.55726707",
"0.55713093",
"0.5541601",
"0.5541601",
"0.5541601",
"0.5534735",
"0.5528623",
"0.550438",
"0.550408",
"0.5498475",
"0.5493713",
"0.54936826",
"0.5488953",
"0.5480135",
"0.54717785",
"0.54612565",
"0.5456442",
"0.5448725",
"0.5438566",
"0.5434434",
"0.5429716",
"0.541575",
"0.54156214",
"0.54137623"
] | 0.5866284 | 49 |
times, desired overload operator for Vec3 Vec3 | public Vector3 times(Vector3 multiplicand) {
return new Vector3(multiplicand.x * this.x, multiplicand.y * this.y, multiplicand.z * this.z);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public vec3 times(float val) {\r\n\t\tvec3 tmp = new vec3(this);\r\n\t\ttmp.scale(val);\r\n\t\treturn tmp;\r\n\t}",
"public Vector3(double x, double y,double z){\n \n double pytago;\n \n this.x = x;\n this.y = y;\n this.z = z;\n \n pytago = (x*x) + (y*y) + (z*z);\n \n magnitude = Math.sqrt(pytago);\n }",
"public Vector3 mult(float scalar){\r\n\t\tthis.x *= scalar;\r\n\t\tthis.y *= scalar;\r\n\t\tthis.z *= scalar;\r\n\t\treturn this;\r\n\t}",
"public Vec3(){\n\t\tthis(0,0,0);\n\t}",
"IVec3 mult(IVec3 v);",
"public Vector3(double s)\n\t{\n\t\tx = y = z = s;\n\t}",
"public Vector<T> multiply(T aScalar);",
"public Vector3 (double[] values) {\n set(values);\n }",
"public Vector3 (double x, double y, double z) {\n set(x, y, z);\n }",
"public void\n\tmult( Vector3 other )\n\t{\n\t\tdata[0] *= other.data[0];\n\t\tdata[1] *= other.data[1];\n\t\tdata[2] *= other.data[2];\n\t}",
"public Vec3(float initializer){\n\t\tthis(initializer, initializer, initializer);\n\t}",
"public Vector3(double x, double y, double z) {\n this.x = x; this.y = y; this.z = z;\n }",
"public Vec3(Vec3 copy){\n\t\tthis(copy.x, copy.y, copy.z);\n\t}",
"public Vector3D product(float s)\r\n { \r\n return new Vector3D(s*this.x, s*this.y, s*this.z);\r\n }",
"@Override\n public Vector3 clone()\n {\n return new Vector3(this);\n }",
"public ThreeVector(double v1,double v2,double v3) {\r\n\t\tthis.x=v1;\r\n\t\tthis.y=v2;\r\n\t\tthis.z=v3;\r\n\t}",
"public vec3 plus(float arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.add(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"public abstract Vector4fc mul(float x, float y, float z, float w);",
"public Vector3D() {\n zero();\n }",
"public VectorA scalarAdd(double z)\n {\n return new VectorA(this.x+z, this.y+z);\n }",
"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 Vec3(float x, float y, float z){\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = z;\n\t\ttrunc();\n\t}",
"public Vec3(float x, Vec2 vect){\n\t\tthis(x, vect.x, vect.y);\n\t}",
"public vec3 plus(vec3 arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.add(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"Matrix timesT( Matrix b )\n {\n return new Matrix( b.timesV(x), b.timesV(y), b.timesV(z) );\n }",
"public Vector3D() {\r\n\t\tthis(0.0);\r\n\t}",
"public Vector3D(double x, double y, double z) {\r\n super(x, y, z);\r\n\t}",
"public SFVec3f(float t[]) {\n\t\tset(t);\n\t}",
"public Vec3 multiply(Vec3 vect){\n if(values == null || values[0] == null || values[1] == null\n || values[2] == null){\n throw new IllegalStateException(\"Ill-formed transform\");\n }\n if(vect == null){\n throw new IllegalArgumentException(\"multiply by null vector\");\n }\n float x = values[0][3];\n float y = values[1][3];\n float z = values[2][3];\n x += values[0][0] * vect.x + values[0][1] * vect.y + values[0][2]\n * vect.z;\n y += values[1][0] * vect.x + values[1][1] * vect.y + values[1][2]\n * vect.z;\n z += values[2][0] * vect.x + values[2][1] * vect.y + values[2][2]\n * vect.z;\n return new Vec3(x, y, z);\n }",
"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 Vector(double x, double y, double z){\n double longueur = Math.sqrt(sqr(x) + sqr(y) + sqr(z));\n\n this.x = longueur > 0 ? x/longueur : this.x;\n this.y = longueur > 0 ? y/longueur : this.y;\n this.z = longueur > 0 ? z/longueur : this.z;\n \n }",
"abstract public Vector3[][] update();",
"@Override\r\n\tpublic vec3 mult(float var) {\n\t\treturn null;\r\n\t}",
"final public Vector3 mul(double c){\n return new Vector3(x*c, y*c, z*c);\n }",
"public FloatVector3D(){}",
"public Vector tensorProduct( final Vector a);",
"Vec(double x, double y) {\n this.x = x; this.y = y;\n }",
"Matrix( Vector a, Vector b )\n {\n x = b.times(a.x);\n y = b.times(a.y);\n z = b.times(a.z);\n }",
"public Vector(double x, double y, double z) {\n this(new Point3D(x, y, z));\n }",
"public Vector3 (float x, float y, float z) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t\tthis.z = z;\r\n\t}",
"public abstract Vector4fc normalize3();",
"public static double scalarProduct(ThreeVector v1,ThreeVector v2) {\r\n\t\treturn v1.x * v2.x + v1.y * v2.y + v1.z * v2.z;\r\n\t}",
"protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);",
"public Vec3(Vec2 vect, float z){\n\t\tthis(vect.x, vect.y, z);\n\t}",
"public String toString()\n\t{ return \"Vec3[\"+Vec3.this.x+\",\"+Vec3.this.y+\",\"+Vec3.this.z+\"]\"; }",
"public void c(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)\r\n/* 77: */ {\r\n/* 78: 89 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble2 * paramDouble2 + paramDouble3 * paramDouble3);\r\n/* 79: */ \r\n/* 80: 91 */ paramDouble1 /= f1;\r\n/* 81: 92 */ paramDouble2 /= f1;\r\n/* 82: 93 */ paramDouble3 /= f1;\r\n/* 83: */ \r\n/* 84: 95 */ paramDouble1 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 85: 96 */ paramDouble2 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 86: 97 */ paramDouble3 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 87: */ \r\n/* 88: 99 */ paramDouble1 *= paramFloat1;\r\n/* 89:100 */ paramDouble2 *= paramFloat1;\r\n/* 90:101 */ paramDouble3 *= paramFloat1;\r\n/* 91: */ \r\n/* 92:103 */ this.v = paramDouble1;\r\n/* 93:104 */ this.w = paramDouble2;\r\n/* 94:105 */ this.x = paramDouble3;\r\n/* 95: */ \r\n/* 96:107 */ float f2 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 97: */ \r\n/* 98:109 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 99:110 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f2) * 180.0D / 3.141592741012573D));\r\n/* 100:111 */ this.i = 0;\r\n/* 101: */ }",
"@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private Vector3D(int x, int y, int z) {\n this(x, y, z, null);\n }",
"public Vector3D(double x, double y, double z) {\n this.x = x;\n this.y = y;\n this.z = z;\n }",
"final public Vector3 x(final Vector3 v){\n if(v == null){\n throw new IllegalArgumentException(\"v must not be null\");\n }\n return new Vector3((y*v.z)-(z*v.y), (z*v.x)-(x*v.z), (x*v.y)-(y*v.x)); \n }",
"Vec3 interpolate(float ticks);",
"public Vec3D() {\n\t\tx = y = z = 0.0f;\n\t}",
"public\n\tVector3( Vector3 other )\n\t{\n\t\tdata = new double[3];\n\t\tcopy( other );\n\t}",
"public Vector(double x, double y, double z) {\n super(new double[][] {\n { x },\n { y },\n { z },\n { 1 }\n });\n }",
"public Vector at ( float x ) { return A.add(D.prod(x)); }",
"public Vector3 () {\n }",
"public abstract Vector4fc add(float x, float y, float z, float w);",
"public Vector3 set (double x, double y, double z) {\n this.x = x;\n this.y = y;\n this.z = z;\n return this;\n }",
"public Vector scalar(double scalar) {\n return new Vector(\n scalar * getX(),\n scalar * getY(),\n scalar * getZ()\n );\n }",
"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}",
"public Vec3(float[] init){\n\t\tif(init.length >= 3){\n\t\t\tx = init[0];\n\t\t\ty = init[1];\n\t\t\tz = init[2];\n\t\t\ttrunc();\n\t\t}\n\t}",
"public Vector produitVectorielle(Vector vec){\n return new Vector(y * vec.z - z * vec.y, z * vec.x - x * vec.z, x * vec.y - y * vec.x);\t\t\n }",
"public static Vector3 add(Vector3 a, Vector3 b){return new Vector3(a.x + b.x, a.y + b.y, a.z + b.z);}",
"public Vector3(NBTTagCompound nbt)\n {\n this(nbt.getDouble(\"x\"), nbt.getDouble(\"y\"), nbt.getDouble(\"z\"));\n }",
"public void encapsulate(Vector3i vec) {\n encapsulate(vec.getX(), vec.getY(), vec.getZ());\n }",
"public static Vector3D multiplyVector(Vector3D v1, Vector3D v2) {\n//\t\tthis.x1 = this.x2 * other.getX3() - this.x3 * other.getX2();\n//\t\tthis.x2 = this.x3 * other.getX1() - this.x1 * other.getX3();\n//\t\tthis.x3 = this.x1 * other.getX2() - this.x2 * other.getX1();\n\t\tdouble x1 = v1.getX2() * v2.getX3() - v1.getX3() * v2.getX2();\n\t\tdouble x2 = v1.getX3() * v2.getX1() - v1.getX1() * v2.getX3();\n\t\tdouble x3 = v1.getX1() * v2.getX2() - v1.getX2() * v2.getX1();\n\t\t\n\t\treturn new Vector3D(x1,x2,x3);\n\t}",
"float dot(IVec3 v);",
"@Override\n\tpublic IVector scalarMultiply(double number){\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, this.get(i)*number);\n\t\t}\n\t\treturn this;\n\t}",
"public Vector(int v1, int v2, int v3) {\n\t\tx = v1;\n\t\ty = v2;\n\t\tz = v3;\n\t}",
"public Vector3D multVector(Vector3D u, Vector3D v) {\n\t\treturn new Vector3D(\n\t\t\t\tthis.x = (u.y * v.z) - (u.z * v.y), \n\t\t\t\tthis.y = (u.z * v.x) - (u.x * v.z),\n\t\t\t\tthis.z = (u.x * v.y) - (u.y * v.x));\n\t}",
"@Test\n\tpublic void turnVectorVector3DDouble() {\n\t\tVector3f vector = new Vector3f(this.random.nextDouble(),this.random.nextDouble(),this.random.nextDouble());\n\t\tVector3f axis = new Vector3f(this.random.nextDouble(),this.random.nextDouble(),this.random.nextDouble());\n\t\taxis.normalize();\n\t\tdouble angle = this.random.nextDouble();\n\t\t\n\t\tMatrix3f turn = new Matrix3f(\n\t\t\t\taxis.getX()*axis.getX()+(1-axis.getX()*axis.getX())*Math.cos(angle),\n\t\t\t\taxis.getX()*axis.getY()*(1-Math.cos(angle))-axis.getZ()*Math.sin(angle),\n\t\t\t\taxis.getX()*axis.getZ()*(1-Math.cos(angle))+axis.getY()*Math.sin(angle),\n\t\t\t\taxis.getX()*axis.getY()*(1-Math.cos(angle))+axis.getZ()*Math.sin(angle),\n\t\t\t\taxis.getY()*axis.getY()+(1-axis.getY()*axis.getY())*Math.cos(angle),\n\t\t\t\taxis.getY()*axis.getZ()*(1-Math.cos(angle))-axis.getX()*Math.sin(angle),\n\t\t\t\taxis.getX()*axis.getZ()*(1-Math.cos(angle))-axis.getY()*Math.sin(angle),\n\t\t\t\taxis.getY()*axis.getZ()*(1-Math.cos(angle))+axis.getX()*Math.sin(angle),\n\t\t\t\taxis.getZ()*axis.getZ()+(1-axis.getZ()*axis.getZ())*Math.cos(angle));\n\t\t\n\t\tVector3f vectorTurned = vector.mul(turn);\n\t\tvector.turnVector(axis, angle);\n\t\t\n\t\tassertEpsilonEquals(vector.length(),vectorTurned.length());\n\t\tassertEpsilonEquals(vector.signedAngle(new Vector3f(1,0,0)),vectorTurned.signedAngle(new Vector3f(1,0,0)));\n\t\tassertTrue(vector.equals(vectorTurned));\n\t}",
"public abstract Vector4fc set(float x, float y, float z, float w);",
"public Vector3D(Vector3D p1, Vector3D p2)\r\n\t{\r\n\t\tthis.x = p2.x - p1.x;\r\n\t\tthis.y = p2.y - p1.y;\r\n\t\tthis.z = p2.z - p1.z;\r\n\t}",
"public Vector3 clone(){\r\n\t\tVector3 vec = new Vector3();\r\n\t\tvec.set(this.x, this.y, this.z);\r\n\t\treturn vec;\r\n\t}",
"@Test\n public void subtract() {\n assertEquals(\"Wrong vector subtract\", new Vector(1, 1, 1),\n new Vector(new Point3D(2, 3, 4)).subtract(new Vector(new Point3D(1, 2, 3))));\n\n }",
"public\n\tVector3( Point3 point )\n\t{\n\t\tdata = new double[3];\n\t\tcopy( point );\n\t}",
"public abstract Vector4fc mul(IVector4f v);",
"static float[] mulVM(float[] vt, float vt3, float[] m){\n \t // 0 1 2 3 \n \t // 4 5 6 7\n \t // 8 9 10 11\n \t // 12 13 14 15\n \t // 0 1 2 3 \n \t\n \t return new float[] {vt[0]*m[0] + vt[1]*m[4] + vt[2]*m[ 8] + vt3*m[12],\n\t\t \t \t\t vt[0]*m[1] + vt[1]*m[5] + vt[2]*m[ 9] + vt3*m[13],\n\t\t \t \t\t vt[0]*m[2] + vt[1]*m[6] + vt[2]*m[10] + vt3*m[14],\n\t\t \t \t\t vt[0]*m[3] + vt[1]*m[7] + vt[2]*m[11] + vt3*m[15]};\n \t\n }",
"public void add(vec3 a, vec3 b) {\r\n\t\tx = a.x + b.x;\r\n\t\ty = a.y + b.y;\r\n\t\tz = a.z + b.z;\r\n\t}",
"public void sub(vec3 a, vec3 b) {\r\n\t\tx = a.x - b.x;\r\n\t\ty = a.y - b.y;\r\n\t\tz = a.z - b.z;\r\n\t}",
"public double dot(Vec vthat);",
"public Vector(Coordinate x, Coordinate y, Coordinate z) {\n this(new Point3D(x, y, z));\n }",
"public Vec3D mul(Vec3D rhs) {\n\t\treturn new Vec3D(x * rhs.x, y * rhs.y, z * rhs.z);\n\t}",
"public Vector3D(double x, double y, double z) {\n this.xCoord = x;\n this.yCoord = y;\n this.zCoord = z;\n }",
"public static void main(String[] args) \n {\n Scanner s = new Scanner(System.in);\n\n // VECTOR 1 CONSTRUCTION\n System.out.print(\"Enter the components of the first 3-d vector-> \"); \n Vector3D vector1 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 2 CONSTRUCTION\n System.out.print(\"Enter the components of the second 3-d vector-> \"); \n Vector3D vector2 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 3 CONSTRUCTION\n System.out.print(\"Enter the components of the third 3-d vector-> \"); \n Vector3D vector3 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // Print Vector 1\n System.out.println(\"v1 = \" + vector1.toString());\n \n // Print Vector 2\n System.out.println(\"v2 = \" + vector2.toString());\n \n // Print Vector 3\n System.out.printf(\"v3 = %s\\n\\n\", vector3.toString());\n \n // Compute and display v1 + v2\n System.out.printf(\"v1 + v2 = %s\\n\\n\", vector1.add(vector2).toString());\n \n // Compute and display (v2 + v3) * v1\n System.out.printf(\"(v2 + v3) * v1 = %.6f\\n\\n\",\n vector1.iProduct(vector2.add(vector3)));\n \n // Compute and display v1 X (v2 - v3)\n System.out.printf(\"v1 x (v2 - v3) = %s\\n\\n\",\n vector1.xProduct(vector2.subtract(vector3)).toString());\n \n // Compute and display (v2 - v3) X v1\n System.out.printf(\"(v2 - v3) X v1 = %s\\n\\n\",\n vector2.subtract(vector3).xProduct(vector1).toString());\n \n // Compute and display |v1 X v2| and |v2| |v1|\n System.out.printf(\"|v1 x v2| = %.6f and |v2||v1| = %.6f\\n\\n\",\n vector1.xProduct(vector2).length(), \n vector2.length() * vector1.length());\n \n // Compute and display (v1 x v2) / (|v1 x v2|)\n System.out.printf(\"(v1 x v2) / (|v1 x v2|) = %s\\n\\n\",\n vector1.xProduct(vector2).multiply(1 / \n vector1.xProduct(vector2).length()).toString());\n \n // Compute and display v1 x (v2 + v3)\n System.out.printf(\"v1 x (v2 + v3) = %s\\n\\n\",\n vector1.xProduct(vector2.add(vector3)).toString());\n \n // Compute and display (v1 x v2) + (v1 x v3)\n System.out.printf(\"(v1 x v2) + (v1 x v3) = %s\\n\\n\",\n vector1.xProduct(vector2).add(vector1.xProduct(vector3)).toString());\n \n // Test the norm method\n Vector3D v1Norm = vector1.norm();\n System.out.printf(\"v1.norm() = %s\\n\\n\", v1Norm);\n \n // Test the normalize method\n vector1.normalize();\n System.out.printf(\"v1.normalize = <%.6f, %.6f, %.6f>\\n\\n\", \n vector1.getX(), vector1.getY(), vector1.getZ());\n }",
"public Vector3 multLocal (double v) {\n return mult(v, this);\n }",
"public Vec3 toVec3()\n {\n return Vec3.createVectorHelper(this.x, this.y, this.z);\n }",
"public Vector(float[] axis){ this.axis = axis;}",
"public double DotProduct3(Vector3D vt)\r\n\t{\r\n\t return this.x * vt.x + this.y * vt.y + this.z * vt.z;\r\n\t}",
"@Override\n\tpublic IVector nScalarMultiply(double number){\n\t\treturn this.copy().scalarMultiply(number);\n\t}",
"public static BigFraction[] vectorTimesScalar(BigFraction[] vector, BigFraction scalar) {\n vector = vector.clone();\n for (int i = 0; i < vector.length; i++) {\n vector[i] = vector[i].multiply(scalar);\n }\n return vector;\n }",
"public void i(double paramDouble1, double paramDouble2, double paramDouble3)\r\n/* 104: */ {\r\n/* 105:116 */ this.v = paramDouble1;\r\n/* 106:117 */ this.w = paramDouble2;\r\n/* 107:118 */ this.x = paramDouble3;\r\n/* 108:119 */ if ((this.B == 0.0F) && (this.A == 0.0F))\r\n/* 109: */ {\r\n/* 110:120 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 111:121 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 112:122 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f1) * 180.0D / 3.141592741012573D));\r\n/* 113: */ }\r\n/* 114: */ }",
"void vectorFromWorld(double px, double py, double pz, DVector3 result);",
"@Override\n\tpublic IVector nVectorProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != 3){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble[] dims = new double[3];\n\t\t\n\t\tdims[0] = this.get(1)*vector.get(2) - vector.get(1)*this.get(2);\n\t\tdims[1] = (-1)*this.get(0)*vector.get(2)+vector.get(0)*this.get(2);\n\t\tdims[2] = this.get(0)*vector.get(1)-vector.get(0)*this.get(1);\n\t\t\n\t\tIVector newVector = new Vector(dims);\n\t\t\n\t\treturn newVector;\n\t\t\n\t\t\n\t}",
"public Vector3 () {\r\n\t\tx = 0;\r\n\t\ty = 0;\r\n\t\tz = 0;\r\n\t}",
"public Vector atTime(double t) {\n return start.add(direction.scale(t));\n }",
"public static Vector3D multiplyScalar(Vector3D v1, Vector3D v2) {\n\t\tdouble x1 = v1.getX1() * v2.getX1();\n\t\tdouble x2 = v1.getX2() * v2.getX2();\n\t\tdouble x3 = v1.getX3() * v2.getX3();\n\t\t\n\t\treturn new Vector3D(x1,x2,x3);\n\t}",
"public Vec clone();",
"public static Vector3f multiply(Vector3f vec1, Vector3f vec2) {\n\t\tVector3f result = new Vector3f();\n\n\t\tresult.x = vec1.x * vec2.x;\n\t\tresult.y = vec1.y * vec2.y;\n\t\tresult.z = vec1.z * vec2.z;\n\n\t\treturn result;\n\t}",
"public Vector3 vectorProduct(Vector3 vector) {\n\t\treturn new Vector3(\n\t\t\t\tthis.y * vector.z - this.z * vector.y, \n\t\t\t\tthis.z * vector.x - this.x * vector.z,\n\t\t\t\tthis.x * vector.y - this.y * vector.x \n\t\t);\n\t}"
] | [
"0.66717345",
"0.61018217",
"0.60986555",
"0.60672325",
"0.58943236",
"0.58877814",
"0.58717513",
"0.58135766",
"0.5738157",
"0.5730914",
"0.5721533",
"0.5718931",
"0.57035893",
"0.5696865",
"0.5680416",
"0.56772953",
"0.56769925",
"0.56400216",
"0.5639304",
"0.56243855",
"0.56087685",
"0.5596821",
"0.55898917",
"0.5588001",
"0.5585285",
"0.5578323",
"0.55614793",
"0.5547148",
"0.5533962",
"0.5530644",
"0.5525522",
"0.55074096",
"0.5491519",
"0.54682386",
"0.5467482",
"0.5459523",
"0.545714",
"0.54543173",
"0.5448565",
"0.54364824",
"0.54251003",
"0.5420996",
"0.54146457",
"0.54090005",
"0.5397362",
"0.53865093",
"0.538608",
"0.53822917",
"0.5381393",
"0.5368141",
"0.5367672",
"0.5361369",
"0.5358437",
"0.53526413",
"0.53460896",
"0.5339211",
"0.5333982",
"0.5320833",
"0.53137",
"0.5304978",
"0.53013414",
"0.5296954",
"0.52956164",
"0.5274287",
"0.5269016",
"0.526253",
"0.5250143",
"0.52457297",
"0.5243201",
"0.52291626",
"0.5225496",
"0.5223697",
"0.52236545",
"0.5215621",
"0.52117336",
"0.5210599",
"0.5210328",
"0.5208485",
"0.52079064",
"0.51898867",
"0.518883",
"0.51861703",
"0.5181308",
"0.5180493",
"0.51792",
"0.51721513",
"0.51668954",
"0.5163395",
"0.51630056",
"0.51622117",
"0.5150874",
"0.51488346",
"0.5148494",
"0.51477647",
"0.5132461",
"0.512769",
"0.5124052",
"0.5119693",
"0.5117618",
"0.5115199"
] | 0.6145629 | 1 |
Result of the vector (or rather Cross) product | public Vector3 vectorProduct(Vector3 vector) {
return new Vector3(
this.y * vector.z - this.z * vector.y,
this.z * vector.x - this.x * vector.z,
this.x * vector.y - this.y * vector.x
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private float[] crossProduct(float[] v1, float[] v2) {\n float[] result = new float[3];\n result[0] = v1[1] * v2[2] - v2[1] * v1[2];\n result[1] = v1[2] * v2[0] - v2[2] * v1[0];\n result[2] = v1[0] * v2[1] - v2[0] * v1[1];\n return result;\n }",
"public Vector<T> crossProduct(Vector<T> aVector) throws VectorSizeException;",
"static double cross(Vec a, Vec b) {\n return a.x * b.y - a.y * b.x;\n }",
"public Vector tensorProduct( final Vector a);",
"public Vector crossProduct(Vector t){\n Vector v=new Vector(head.y.get()*t.head.getZ().get()-\n t.head.getY().get()*head.z.get(),head.z.get()*t.head.getX().get()-\n t.head.getZ().get()*head.x.get(),head.x.get()*t.head.getY().get()-\n t.head.getX().get()*head.y.get());\n return v;\n }",
"public double computeCrossProduct(Vector v2){\n return this.getX() * v2.getY() - this.getY() * v2.getX();\n }",
"public static double scalarProduct(Vector v1, Vector v2){\r\n\t\treturn v1.getX()*v2.getX() + v1.getY()*v2.getY();\r\n\t\t\r\n\t}",
"public static Vector cross(Vector a, Vector b) {\r\n if(a.getDimension() == 3 && b.getDimension() == 3)\r\n return new Vector(a.components[1] * b.components[2] - a.components[2]\r\n * b.components[1], -a.components[0] * b.components[2]\r\n + a.components[2] * b.components[0], a.components[0]\r\n * b.components[1] - a.components[1] * b.components[0]);\r\n else if (a.getDimension() == 2 && b.getDimension() == 2)\r\n return new Vector(a.components[0] * b.components[1] - a.components[1] * b.components[0]);\r\n else return null;\r\n }",
"public double cross(Vector2D v)\n\t{\n\t\treturn this.x * v.y - this.y * v.x;\n\t}",
"private float crossProduct(Vec2 X, Vec2 Y, Vec2 Z)\n {\n float x1 = Z.x - X.x;\n float y1 = Z.y - X.y;\n float x2 = Y.x - X.x;\n float y2 = Y.y - X.y;\n\n return x1*y2 - x2*y1;\n }",
"public double computeScalarProduct(Vector v2){\n return this.getX() * v2.getX() + this.getY() * v2.getY();\n }",
"public void crossProd(double U[],\n double V[], double W[]) {\n W[0] = U[1]*V[2]-U[2]*V[1];\n W[1] = U[2]*V[0]-U[0]*V[2];\n W[2] = U[0]*V[1]-U[1]*V[0];\n }",
"public static double[] crossproduct(double[] v, double[] w, double[] r) {\n r[0] = v[1] * w[2] - v[2] * w[1];\n r[1] = v[2] * w[0] - v[0] * w[2];\n r[2] = v[0] * w[1] - v[1] * w[0];\n return r;\n }",
"public Vector cross(Vector v) {\n return new Vector(\n (getY() * v.getZ()) - (getZ() * v.getY()),\n (getZ() * v.getX()) - (getX() * v.getZ()),\n (getX() * v.getY()) - (getY() * v.getX())\n );\n }",
"public double crossProduct(Vec2dd vec) {\n return x * vec.getY() - y * vec.getX();\n }",
"public double dot(Vec vthat);",
"public void\n\tcrossProduct( Vector3 A, Vector3 B )\n\t{\n\t\tdata[0] = ( A.data[1] * B.data[2] ) - ( A.data[2] * B.data[1] );\n\t\tdata[1] = ( A.data[2] * B.data[0] ) - ( A.data[0] * B.data[2] );\n\t\tdata[2] = ( A.data[0] * B.data[1] ) - ( A.data[1] * B.data[0] );\n\t}",
"public Vector3D crossProduct(Vector3D b)\r\n {\r\n Vector3D a = this;\r\n return new Vector3D(a.y*b.z - a.z*b.y, a.z*b.x - a.x*b.z, a.x*b.y - a.y*b.x);\r\n }",
"public static double scalarProduct(ThreeVector v1,ThreeVector v2) {\r\n\t\treturn v1.x * v2.x + v1.y * v2.y + v1.z * v2.z;\r\n\t}",
"IVec3 cross(IVec3 v);",
"public Vector cross(Vector other){\n\t\treturn new Vector(\n\t\t\t\ty*other.z - z*other.y,\n\t\t\t\tz*other.x - x*other.z,\n\t\t\t\tx*other.y - y*other.x\n\t\t\t\t);\n\t}",
"public double crossProduct(Vector2D rhs)\n {\n return this.x * rhs.y - this.y * rhs.x;\n }",
"public Vector crossProduct(Vector vec) {\n return new Vector(new Point3D(vec.getHead().getY() * this.getHead().getZ() - this.getHead().getY() * vec.getHead().getZ(),\n vec.getHead().getZ() * this.getHead().getX() - this.getHead().getZ() * vec.getHead().getX(),\n vec.getHead().getX() * this.getHead().getY() - this.getHead().getX() * vec.getHead().getY()));\n }",
"public void\n\tcrossProduct( Vector3 other )\n\t{\n\t\tdouble x;\n\t\tdouble y;\n\n\t\tx = ( data[1] * other.data[2] ) - ( data[2] * other.data[1] );\n\t\ty = ( data[2] * other.data[0] ) - ( data[0] * other.data[2] );\n\t\tdata[2] = ( data[0] * other.data[1] ) - ( data[1] * other.data[0] );\n\t\tdata[0] = x;\n\t\tdata[1] = y;\n\t}",
"public static Vector tensorProduct( final Vector a , final Vector b)\n {\n return a.tensorProduct(b);\n }",
"public static void main(String[] args) {\n\t\tVector3 i = new Vector3(1, 0, 0);\n\t\tVector3 j = new Vector3(0, 1, 0);\n\t\tVector3 k = i.cross(j);\n\t\t\n\t\tVector3 l = k.add(j).scale(5);\n\t\t\n\t\tVector3 m = l.normalized();\n\t\t\n\t\tSystem.out.println(i);\n\t\tSystem.out.println(j);\n\t\tSystem.out.println(k);\n\t\tSystem.out.println(l);\n\t\tSystem.out.println(l.norm());\n\t\tSystem.out.println(m);\n\t\tSystem.out.println(l.dot(j));\n\t\tSystem.out.println(i.add(new Vector3(0, 1, 0)).cosAngle(l));\n\t}",
"private static double crossProduct(Point2D a, Point2D b) {\r\n return a.getX() * b.getY() - b.getX() * a.getY();\r\n }",
"public static double[] scalarproduct(double[] v, double r) {\n double[] tmp = new double[3];\n tmp[0] = v[0]*r;\n tmp[1] = v[1]*r;\n tmp[2] = v[2]*r;\n return tmp;\n }",
"public Vector produitVectorielle(Vector vec){\n return new Vector(y * vec.z - z * vec.y, z * vec.x - x * vec.z, x * vec.y - y * vec.x);\t\t\n }",
"public T dotProduct(Vector<T> aVector) throws VectorSizeException;",
"public Vector product(Vector vec) {\n\t\t// Create data structure for containing the result vector\n\t\tdouble[] r = new double[vec.len];\n\n\t\t// Iteratively assign each element of the new vector to be the sum of row*vec\n\t\tfor(int i=0; i < rank; i++) {\n\t\t\tfor(int j=0; j < rank; j++) {\n\t\t\t\tr[i] += retrieveElement(i, j) * vec.v[j]; \n\t\t\t}\n\t\t}\t\n\t\treturn new Vector(r);\n\t}",
"public double dotProduct(Coordinates vectorA, Coordinates vectorB);",
"public Vector<T> multiply(T aScalar);",
"public double componentProduct()\n {\n return this.x * this.y;\n }",
"public double dot(SparseVector vector) {\n SparseVector v1 = this;\n SparseVector v2 = vector;\n double result = 0.0;\n int i = 0;\n int j = 0;\n \n while (i < v1.size() && j < v2.size()) {\n Element e1 = v1.get(i);\n Element e2 = v2.get(j);\n \n if (e1.index == e2.index) {\n result += e1.value * e2.value;\n i++;\n j++;\n } else if (e1.index < e2.index) {\n i++;\n } else {\n j++;\n }\n }\n \n return result;\n }",
"public double getSumOfCrossProducts() {\n return sumXY;\n }",
"public Vec3 cross(Vec3 vector){\n\t\treturn new Vec3(\n\t\t\t\ty*vector.z - z*vector.y,\n\t\t\t\tz*vector.x - x*vector.z,\n\t\t\t\tx*vector.y - y*vector.x\n\t\t\t\t);\n\t}",
"public static double crossProduct(Point a, Point b, Point reference)\n {\n Point aa = a.subtract(reference);\n Point bb = b.subtract(reference);\n // Calculate the determinant \n double cp = aa.getX() * bb.getY() - bb.getX() * aa.getY();\n return cp;\n }",
"public int dotProduct(SparseVector vec) {\n List<int[]> res1=vec.res;\n int p=0,q=0,ans=0;\n while(p<res.size()&&q<res1.size()){\n if(res.get(p)[0]==res1.get(q)[0]){\n ans+=res.get(p)[1]*res1.get(q)[1];\n p++;\n q++;\n }else if(res.get(p)[0]>res1.get(q)[0]){\n q++;\n }else{\n p++;\n }\n }\n return ans;\n }",
"@Override\n\tpublic double scalarProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != vector.getDimension()){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble scalarSum = 0;\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tscalarSum += (this.get(i) * vector.get(i));\n\t\t}\n\t\treturn scalarSum;\n\t}",
"public double dot(VectorA v)\n {\n return (this.mag()*v.mag());\n }",
"public long product() {\n\t\tlong result = 1;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult *= theElements[i];\n\t\t}\n\t\treturn result;\n\t}",
"public double productoVectorial(Pixel pixel) {\r\n\t\treturn getXDouble() * pixel.getYDouble() - getYDouble() * pixel.getXDouble();\r\n\t\t// return getXCartesiano() * pixel.getYCartesiano() - getYCartesiano() *\r\n\t\t// pixel.getXCartesiano();\r\n\t}",
"public Vector transform(Vector v) {\n\t\treturn new Vector(a * v.x + c, b * v.y + d);\n\t}",
"public double[] mult(double[] vector) {\n\t\tif(this.cols != vector.length) return null;\n\t\tdouble[] result = new double[this.rows];\n\t\tfor(int i=0; i<this.rows; i++) {\n\t\t\tfor(int j=0; j<this.cols; j++) {\n\t\t\t\tresult[i] += data[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public double scalarProductNS(ThreeVector v1) {\r\n\t\treturn scalarProduct(v1, this);\r\n\t}",
"public double[] vectorMult(double[] v1, double[] v2) {\n\n double[] res = new double[v1.length];\n\n for(int i = 0; i < v1.length; i++) {\n res[i] = v1[i]*v2[i];\n }\n return res;\n }",
"public JTensor cinv() {\n JTensor r = new JTensor();\n TH.THTensor_(cinv)(r, this);\n return r;\n }",
"public static ThreeVector vectorProduct(ThreeVector v1,ThreeVector v2) {\r\n\t\tThreeVector v3 = new ThreeVector((v1.y*v2.z)-(v1.z*v2.y),(v1.z*v2.x)-(v1.x*v2.z),(v1.x*v2.y) - (v1.y* v2.x));\r\n\t\treturn v3;\r\n\t}",
"public static double[] produitVectoriel(double U[],double V[]){\r\n\t\tdouble[] produitVect;\r\n\t\tproduitVect = new double[3];\r\n\t\tproduitVect[0] = U[1]*V[2] - U[2]*V[1];\r\n\t\tproduitVect[1] = U[2]*V[0] - U[0]*V[2];\r\n\t\tproduitVect[2] = U[0]*V[1] - U[1]*V[0];\r\n\t\t//double n = norme(produitVect);\r\n\t\treturn\t produitVect;\t\r\n\t}",
"@Override\n\tpublic IVector nVectorProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != 3){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble[] dims = new double[3];\n\t\t\n\t\tdims[0] = this.get(1)*vector.get(2) - vector.get(1)*this.get(2);\n\t\tdims[1] = (-1)*this.get(0)*vector.get(2)+vector.get(0)*this.get(2);\n\t\tdims[2] = this.get(0)*vector.get(1)-vector.get(0)*this.get(1);\n\t\t\n\t\tIVector newVector = new Vector(dims);\n\t\t\n\t\treturn newVector;\n\t\t\n\t\t\n\t}",
"public double getProduct()\n {\n return first * second;\n }",
"public void vectorProductToSelf(Vector3 vector) {\n\t\tthis.setAsSelf(this.vectorProduct(vector));\n\t}",
"IVec3 mult(IVec3 v);",
"double scalarMultiplyVectors(double[] first, double[] second) throws InterruptedException;",
"static double dot(Vec a, Vec b) {\n return (a.x * b.x + a.y * b.y);\n }",
"private int[] productExceptSelfByMath(int[] nums){\n int len = nums.length;\n int[] ret = new int[len]; // not count as extra space\n\n int[] preMul = new int[len];\n int[] sufMul = new int[len];\n\n // head and tail\n preMul[0] = 1;\n sufMul[len - 1] = 1;\n // prefix multiply\n for(int i = 1; i < len; i++){\n preMul[i] = preMul[i - 1] * nums[i - 1];\n }\n // suffix multiply\n for(int i = len -2; i >= 0; i--){\n sufMul[i] = sufMul[i + 1] * nums[i + 1];\n }\n // cross\n for(int i = 0; i < len; i++){\n ret[i] = preMul[i] * sufMul[i];\n }\n\n return ret;\n }",
"public vec3 cross(vec3 arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.cross(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"public void cross(vec3 a, vec3 b) {\r\n\t\tx = a.y * b.z - a.z * b.y;\r\n\t\ty = a.z * b.x - a.x * b.z;\r\n\t\tz = a.x * b.y - a.y * b.x;\r\n\t}",
"public double carre(double v) {\n return v*v;\n }",
"@Override\n protected Scalar evaluate(Tensor state) {\n return crossEvaluate(state, qsa);\n }",
"public static VectorIntf componentProduct(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n VectorIntf z = x.newInstance(); // x.newCopy();\r\n try {\r\n for (int i = 0; i < n; i++) {\r\n z.setCoord(i, x.getCoord(i) * y.getCoord(i));\r\n }\r\n }\r\n catch (parallel.ParallelException e) {\r\n e.printStackTrace(); // can never get here\r\n }\r\n return z;\r\n }",
"public int dotProduct(SparseVector vec) {\n\t\tint result = 0;\n\t\tfor (int index : set) {\n\t\t\tif (vec.set.contains(index)) {\n\t\t\t\tresult += nums[index] * vec.nums[index];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public Vector3D multVector(Vector3D u, Vector3D v) {\n\t\treturn new Vector3D(\n\t\t\t\tthis.x = (u.y * v.z) - (u.z * v.y), \n\t\t\t\tthis.y = (u.z * v.x) - (u.x * v.z),\n\t\t\t\tthis.z = (u.x * v.y) - (u.y * v.x));\n\t}",
"public int dotProduct(final SparseVector2 vec) {\n if (vec == null) return -1;\n else if (this.vector.size() > vec.vector.size()) return vec.dotProduct(this);\n\n int res = 0;\n for (int[] p : vector) {\n final int qIndex = binarySearch(vec.vector, p[0]);\n if (qIndex >= 0) {\n res += (p[1] * vec.vector.get(qIndex)[1]);\n }\n }\n return res;\n }",
"public double dot(Vector other){\n\t\treturn x*other.x + y*other.y + z*other.z;\n\t}",
"public static double innerProduct(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n double res=0.0;\r\n\t\t// test if x or y are sparse vectors \r\n\t\tif (x instanceof DblArray1SparseVector) {\r\n\t\t\tDblArray1SparseVector xs = (DblArray1SparseVector) x;\r\n\t\t\tif (Double.compare(xs.getDefaultValue(),0.0)==0) { // else makes no sense\r\n\t\t\t\tfinal int xsnz = xs.getNumNonZeros();\r\n\t\t\t\tfor (int i=0; i<xsnz; i++) {\r\n\t\t\t\t\tint xipos = xs.getIthNonZeroPos(i);\r\n\t\t\t\t\tdouble xi = xs.getIthNonZeroVal(i);\r\n\t\t\t\t\tres += xi*y.getCoord(xipos);\r\n\t\t\t\t}\r\n\t\t\t\treturn res;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (y instanceof DblArray1SparseVector) {\r\n\t\t\tDblArray1SparseVector ys = (DblArray1SparseVector) y;\r\n\t\t\tif (Double.compare(ys.getDefaultValue(),0.0)==0) { // else makes no sense\r\n\t\t\t\tfinal int ysnz = ys.getNumNonZeros();\r\n\t\t\t\tfor (int i=0; i<ysnz; i++) {\r\n\t\t\t\t\tint yipos = ys.getIthNonZeroPos(i);\r\n\t\t\t\t\tdouble yi = ys.getIthNonZeroVal(i);\r\n\t\t\t\t\tres += yi*x.getCoord(yipos);\r\n\t\t\t\t}\r\n\t\t\t\treturn res;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// revert to full inner product computation of vectors in R^n.\r\n for (int i=0; i<n; i++) {\r\n res += x.getCoord(i)*y.getCoord(i);\r\n }\r\n return res;\r\n }",
"private double cross(Point A, Point B, Point C) {\n\t\tdouble AB_X = B.x - A.x;\n\t\tdouble AB_Y = B.y - A.y;\n\t\tdouble AC_X = C.x - A.x;\n\t\tdouble AC_Y = C.y - A.y;\n\t\tdouble cross = AB_X * AC_Y - AB_Y * AC_X;\n\t\treturn cross;\n\t}",
"private double calculaz(double v) { //funcion de densidad de probabilidad normal\n double N = Math.exp(-Math.pow(v, 2) / 2) / Math.sqrt(2 * Math.PI);\n return N;\n }",
"public Vector at ( float x ) { return A.add(D.prod(x)); }",
"public double[] coeff();",
"public double dotProduct(Vector330Class v){\n return ((this.x * v.x) + (this.y * v.y));\n }",
"public double dotProduct(Vector other) {\n double num= (head.x._coord*other.head.x._coord+head.y._coord*other.head.y._coord\n +head.z._coord*other.head.z._coord);\n return num;\n }",
"float dot(IVec3 v);",
"public double dot(LorentzVector vect){\n\t\tdouble dotProduct = this.e()*vect.e() - this.vect().dot(vect.vect());\n\t\treturn dotProduct;\n\t}",
"public Vector3 cross(Vector3 other) {\n\t\tdouble resultX = y * other.z - z * other.y;\n\t\tdouble resultY = z * other.x - x * other.z;\n\t\tdouble resultZ = x * other.y - y * other.x;\t\t\n\t\treturn new Vector3(resultX, resultY, resultZ);\n\t}",
"@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}",
"public double dotProduct(Vector3 vec) {\n\t\treturn this.x*vec.x + this.y*vec.y + this.z*vec.z;\n\t}",
"public double[] randv()\n\t{\n\t\tdouble p = a * (1.0 - e * e);\n\t\tdouble cta = Math.cos(ta);\n\t\tdouble sta = Math.sin(ta);\n\t\tdouble opecta = 1.0 + e * cta;\n\t\tdouble sqmuop = Math.sqrt(this.mu / p);\n\n\t\tVectorN xpqw = new VectorN(6);\n\t\txpqw.x[0] = p * cta / opecta;\n\t\txpqw.x[1] = p * sta / opecta;\n\t\txpqw.x[2] = 0.0;\n\t\txpqw.x[3] = -sqmuop * sta;\n\t\txpqw.x[4] = sqmuop * (e + cta);\n\t\txpqw.x[5] = 0.0;\n\n\t\tMatrix cmat = PQW2ECI();\n\n\t\tVectorN rpqw = new VectorN(xpqw.x[0], xpqw.x[1], xpqw.x[2]);\n\t\tVectorN vpqw = new VectorN(xpqw.x[3], xpqw.x[4], xpqw.x[5]);\n\n\t\tVectorN rijk = cmat.times(rpqw);\n\t\tVectorN vijk = cmat.times(vpqw);\n\n\t\tdouble[] out = new double[6];\n\n\t\tfor (int i = 0; i < 3; i++)\n\t\t{\n\t\t\tout[i] = rijk.x[i];\n\t\t\tout[i + 3] = vijk.x[i];\n\t\t}\n\n\t\treturn out;\n\t}",
"public double multScalar(Vector3D u, Vector3D v) {\n\t\treturn ((u.x * v.x) + (u.y * v.y) + (u.z * v.z));\n\t}",
"public static Vector3D product(Vector3D v1, Vector3D v2) {\r\n\t\tVector3D result = new Vector3D(\t(v1.y * v2.z) - (v1.z * v2.y),\r\n\t\t\t\t\t\t\t\t\t\t(v1.z * v2.x) - (v1.x * v2.z),\r\n\t\t\t\t\t\t\t\t\t\t(v1.x * v2.y) - (v1.y * v2.x));\r\n\t\treturn result;\r\n\t}",
"public static double produitScalaire(double U[],double V[]){\r\n\t\tdouble produitScalaire;\r\n\t\tproduitScalaire = U[0]*V[0] + U[1]*V[1] + U[2]*V[2];\r\n\t\treturn produitScalaire;\t\r\n\t}",
"public DVec multiply(DVec arg0) {\n\t\tDVec vec = new DVec(arg0.rowCount());\n\t\tfor (int i = 0; i < rowCount(); i++)\n\t\t\tfor (int j = 0; j < columnCount(); j++)\n\t\t\t\tvec.set(i, get(i, j) * arg0.get(i));\n\t\treturn vec;\n\t}",
"public Vector2f mult (Vector2f other, Vector2f result)\n {\n return result.set(x*other.x, y*other.y);\n }",
"public static void main(String[] args) \n {\n Scanner s = new Scanner(System.in);\n\n // VECTOR 1 CONSTRUCTION\n System.out.print(\"Enter the components of the first 3-d vector-> \"); \n Vector3D vector1 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 2 CONSTRUCTION\n System.out.print(\"Enter the components of the second 3-d vector-> \"); \n Vector3D vector2 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 3 CONSTRUCTION\n System.out.print(\"Enter the components of the third 3-d vector-> \"); \n Vector3D vector3 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // Print Vector 1\n System.out.println(\"v1 = \" + vector1.toString());\n \n // Print Vector 2\n System.out.println(\"v2 = \" + vector2.toString());\n \n // Print Vector 3\n System.out.printf(\"v3 = %s\\n\\n\", vector3.toString());\n \n // Compute and display v1 + v2\n System.out.printf(\"v1 + v2 = %s\\n\\n\", vector1.add(vector2).toString());\n \n // Compute and display (v2 + v3) * v1\n System.out.printf(\"(v2 + v3) * v1 = %.6f\\n\\n\",\n vector1.iProduct(vector2.add(vector3)));\n \n // Compute and display v1 X (v2 - v3)\n System.out.printf(\"v1 x (v2 - v3) = %s\\n\\n\",\n vector1.xProduct(vector2.subtract(vector3)).toString());\n \n // Compute and display (v2 - v3) X v1\n System.out.printf(\"(v2 - v3) X v1 = %s\\n\\n\",\n vector2.subtract(vector3).xProduct(vector1).toString());\n \n // Compute and display |v1 X v2| and |v2| |v1|\n System.out.printf(\"|v1 x v2| = %.6f and |v2||v1| = %.6f\\n\\n\",\n vector1.xProduct(vector2).length(), \n vector2.length() * vector1.length());\n \n // Compute and display (v1 x v2) / (|v1 x v2|)\n System.out.printf(\"(v1 x v2) / (|v1 x v2|) = %s\\n\\n\",\n vector1.xProduct(vector2).multiply(1 / \n vector1.xProduct(vector2).length()).toString());\n \n // Compute and display v1 x (v2 + v3)\n System.out.printf(\"v1 x (v2 + v3) = %s\\n\\n\",\n vector1.xProduct(vector2.add(vector3)).toString());\n \n // Compute and display (v1 x v2) + (v1 x v3)\n System.out.printf(\"(v1 x v2) + (v1 x v3) = %s\\n\\n\",\n vector1.xProduct(vector2).add(vector1.xProduct(vector3)).toString());\n \n // Test the norm method\n Vector3D v1Norm = vector1.norm();\n System.out.printf(\"v1.norm() = %s\\n\\n\", v1Norm);\n \n // Test the normalize method\n vector1.normalize();\n System.out.printf(\"v1.normalize = <%.6f, %.6f, %.6f>\\n\\n\", \n vector1.getX(), vector1.getY(), vector1.getZ());\n }",
"public Vector porEscalar(double value){\n return new Vector(x*value,y*value);\n }",
"public int getProduct() {\n int a = 5;\n int b = 14;\n int c = a * b;\n return c;\n }",
"public double productoVectorial2(Pixel pixel) {\r\n\t\treturn getX() * pixel.getY() - getY() * pixel.getX();\r\n\t\t //return getXCartesiano() * pixel.getYCartesiano() - getYCartesiano() * pixel.getXCartesiano();\r\n\t}",
"private static Double getCrossProduct(final Edge edge1, final Edge edge2)\n {\n // Get the nodes' latitudes and longitudes to use in deriving the vectors\n final double node1Y = edge1.start().getLocation().getLatitude().asDegrees();\n final double node1X = edge1.start().getLocation().getLongitude().asDegrees();\n final double node2Y = edge1.end().getLocation().getLatitude().asDegrees();\n final double node2X = edge1.end().getLocation().getLongitude().asDegrees();\n final double node3Y = edge2.end().getLocation().getLatitude().asDegrees();\n final double node3X = edge2.end().getLocation().getLongitude().asDegrees();\n\n // Get the vectors from node 2 to 1, and node 2 to 3\n final double vector1X = node2X - node1X;\n final double vector1Y = node2Y - node1Y;\n final double vector2X = node2X - node3X;\n final double vector2Y = node2Y - node3Y;\n\n // The cross product tells us the direction of the orthogonal vector, which is\n // Directly related to the direction of rotation/traffic\n return (vector1X * vector2Y) - (vector1Y * vector2X);\n }",
"public Vector2f mult (float v, Vector2f result)\n {\n return result.set(x*v, y*v);\n }",
"public static Vector3D multiplyVector(Vector3D v1, Vector3D v2) {\n//\t\tthis.x1 = this.x2 * other.getX3() - this.x3 * other.getX2();\n//\t\tthis.x2 = this.x3 * other.getX1() - this.x1 * other.getX3();\n//\t\tthis.x3 = this.x1 * other.getX2() - this.x2 * other.getX1();\n\t\tdouble x1 = v1.getX2() * v2.getX3() - v1.getX3() * v2.getX2();\n\t\tdouble x2 = v1.getX3() * v2.getX1() - v1.getX1() * v2.getX3();\n\t\tdouble x3 = v1.getX1() * v2.getX2() - v1.getX2() * v2.getX1();\n\t\t\n\t\treturn new Vector3D(x1,x2,x3);\n\t}",
"public double\n\tdotProduct( Vector3 other ) \n\t{\n\t\treturn( ( data[0] * other.data[0] ) + ( data[1] * other.data[1] ) + ( data[2] * other.data[2] ) );\n\t}",
"public int cumulativeProduct() {\n int product = 1;\n EquationList p_eqn = eqn;\n while (p_eqn != null) {\n product = product * p_eqn.result;\n p_eqn = p_eqn.next;\n }\n if (p_eqn == null) {\n product = product;\n }\n return product;\n }",
"public double innerProduct(double[] x1, double[] x2) {\n\t\tdouble result = 0.0d;\n\t\tfor (int i = 0; i < x1.length; i++) {\n\t\t\tresult += x1[i] * x2[i];\n\t\t}\n\t\treturn result;\n\t}",
"public Vector3 cross(Vector3 other) {\n return new Vector3(\n (y * other.z) - (z * other.y),\n (z * other.x) - (x * other.z),\n (x * other.y) - (y * other.x)\n );\n }",
"public Vec3 cross(final Vec3 B)\n \t{\n \t\treturn new Vec3(y*B.z - z*B.y, z*B.x - x*B.z, x*B.y - y*B.x);\n \t}",
"public LorentzVector multiply(double factor) {\n\t\tLorentzVector newVector = new LorentzVector(this);\n\t\tthis.fact(factor);\n\t\treturn newVector;\n\t}",
"@Override\n\tpublic IVector nScalarMultiply(double number){\n\t\treturn this.copy().scalarMultiply(number);\n\t}",
"public abstract Vector4fc mul(IVector4f v);",
"public static <T extends Vector> T Multiply(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] * b.axis[i];\n }\n return result;\n }\n return result;\n }"
] | [
"0.7401706",
"0.72104704",
"0.72087467",
"0.7165846",
"0.7070442",
"0.6862045",
"0.6845004",
"0.68126863",
"0.6738889",
"0.669006",
"0.66742074",
"0.6667913",
"0.6655934",
"0.6566674",
"0.6538048",
"0.6480963",
"0.6424707",
"0.64181364",
"0.63994664",
"0.63765216",
"0.63309956",
"0.6302168",
"0.6294427",
"0.62902576",
"0.62862396",
"0.6283749",
"0.62630796",
"0.62508374",
"0.62091",
"0.6208046",
"0.6164799",
"0.61246115",
"0.61155754",
"0.61143464",
"0.6102168",
"0.6060961",
"0.6049292",
"0.60485536",
"0.60330904",
"0.6031535",
"0.6021078",
"0.60113674",
"0.6009567",
"0.59874856",
"0.5983008",
"0.59772927",
"0.59608227",
"0.5955297",
"0.59190804",
"0.59172684",
"0.5914113",
"0.5890831",
"0.5877619",
"0.5866974",
"0.58623654",
"0.5842411",
"0.583535",
"0.5831193",
"0.5830195",
"0.58174497",
"0.5812838",
"0.5753031",
"0.5749449",
"0.57424015",
"0.573753",
"0.5730396",
"0.57265884",
"0.5724804",
"0.572325",
"0.5718677",
"0.57056487",
"0.57012224",
"0.5697959",
"0.5696619",
"0.5696583",
"0.5690401",
"0.5688802",
"0.5682183",
"0.56782514",
"0.567254",
"0.5668673",
"0.56658554",
"0.5655898",
"0.5655387",
"0.56542534",
"0.56536406",
"0.56532615",
"0.5648243",
"0.56459963",
"0.5618604",
"0.5607955",
"0.5604395",
"0.55911165",
"0.5590226",
"0.55901235",
"0.5588547",
"0.55881345",
"0.5584617",
"0.55633014",
"0.55586255"
] | 0.6208145 | 29 |
Helpful method to just get the vector product set to current vector | public void vectorProductToSelf(Vector3 vector) {
this.setAsSelf(this.vectorProduct(vector));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vector tensorProduct( final Vector a);",
"public Vector product(Vector vec) {\n\t\t// Create data structure for containing the result vector\n\t\tdouble[] r = new double[vec.len];\n\n\t\t// Iteratively assign each element of the new vector to be the sum of row*vec\n\t\tfor(int i=0; i < rank; i++) {\n\t\t\tfor(int j=0; j < rank; j++) {\n\t\t\t\tr[i] += retrieveElement(i, j) * vec.v[j]; \n\t\t\t}\n\t\t}\t\n\t\treturn new Vector(r);\n\t}",
"@Override\n\tpublic double scalarProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != vector.getDimension()){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble scalarSum = 0;\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tscalarSum += (this.get(i) * vector.get(i));\n\t\t}\n\t\treturn scalarSum;\n\t}",
"@Override\n\tpublic IVector nVectorProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != 3){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble[] dims = new double[3];\n\t\t\n\t\tdims[0] = this.get(1)*vector.get(2) - vector.get(1)*this.get(2);\n\t\tdims[1] = (-1)*this.get(0)*vector.get(2)+vector.get(0)*this.get(2);\n\t\tdims[2] = this.get(0)*vector.get(1)-vector.get(0)*this.get(1);\n\t\t\n\t\tIVector newVector = new Vector(dims);\n\t\t\n\t\treturn newVector;\n\t\t\n\t\t\n\t}",
"public double componentProduct()\n {\n return this.x * this.y;\n }",
"public Vector<T> crossProduct(Vector<T> aVector) throws VectorSizeException;",
"public T dotProduct(Vector<T> aVector) throws VectorSizeException;",
"public static double scalarProduct(Vector v1, Vector v2){\r\n\t\treturn v1.getX()*v2.getX() + v1.getY()*v2.getY();\r\n\t\t\r\n\t}",
"public long product() {\n\t\tlong result = 1;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult *= theElements[i];\n\t\t}\n\t\treturn result;\n\t}",
"@Override\n public DoubleVector multiply(DoubleVector s) {\n DoubleVector smallestVector = s.getLength() < getLength() ? s : this;\n DoubleVector vec = new SparseDoubleVector(s.getDimension(),\n smallestVector.getLength());\n DoubleVector largerVector = smallestVector == this ? s : this;\n Iterator<DoubleVectorElement> it = smallestVector.iterateNonZero();\n while (it.hasNext()) {\n DoubleVectorElement next = it.next();\n double otherValue = largerVector.get(next.getIndex());\n vec.set(next.getIndex(), next.getValue() * otherValue);\n }\n\n return vec;\n }",
"public static VectorIntf componentProduct(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n VectorIntf z = x.newInstance(); // x.newCopy();\r\n try {\r\n for (int i = 0; i < n; i++) {\r\n z.setCoord(i, x.getCoord(i) * y.getCoord(i));\r\n }\r\n }\r\n catch (parallel.ParallelException e) {\r\n e.printStackTrace(); // can never get here\r\n }\r\n return z;\r\n }",
"public double getProduct()\n {\n return first * second;\n }",
"public Vector3 vectorProduct(Vector3 vector) {\n\t\treturn new Vector3(\n\t\t\t\tthis.y * vector.z - this.z * vector.y, \n\t\t\t\tthis.z * vector.x - this.x * vector.z,\n\t\t\t\tthis.x * vector.y - this.y * vector.x \n\t\t);\n\t}",
"public double[] mult(double[] vector) {\n\t\tif(this.cols != vector.length) return null;\n\t\tdouble[] result = new double[this.rows];\n\t\tfor(int i=0; i<this.rows; i++) {\n\t\t\tfor(int j=0; j<this.cols; j++) {\n\t\t\t\tresult[i] += data[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public int dotProduct(SparseVector vec) {\n\t\tint result = 0;\n\t\tfor (int index : set) {\n\t\t\tif (vec.set.contains(index)) {\n\t\t\t\tresult += nums[index] * vec.nums[index];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public Vector produitVectorielle(Vector vec){\n return new Vector(y * vec.z - z * vec.y, z * vec.x - x * vec.z, x * vec.y - y * vec.x);\t\t\n }",
"public Vector<T> multiply(T aScalar);",
"public Vector crossProduct(Vector t){\n Vector v=new Vector(head.y.get()*t.head.getZ().get()-\n t.head.getY().get()*head.z.get(),head.z.get()*t.head.getX().get()-\n t.head.getZ().get()*head.x.get(),head.x.get()*t.head.getY().get()-\n t.head.getX().get()*head.y.get());\n return v;\n }",
"public double dot(Vec vthat);",
"public static Vector tensorProduct( final Vector a , final Vector b)\n {\n return a.tensorProduct(b);\n }",
"public double[] vectorMult(double[] v1, double[] v2) {\n\n double[] res = new double[v1.length];\n\n for(int i = 0; i < v1.length; i++) {\n res[i] = v1[i]*v2[i];\n }\n return res;\n }",
"public Vector at ( float x ) { return A.add(D.prod(x)); }",
"double scalarMultiplyVectors(double[] first, double[] second) throws InterruptedException;",
"public IDoubleArray getSolutionVector();",
"public int getProduct() {\n int a = 5;\n int b = 14;\n int c = a * b;\n return c;\n }",
"public double product(DocumentVector other) {\n\t\tdouble product = 0;\n\t\tint n = Math.min(this.getAttCount(), other.getAttCount());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tproduct += this.getValueAsReal(i) * other.getValueAsReal(i);\n\t\t}\n\t\t\n\t\treturn product;\n\t}",
"public int dotProduct(SparseVector vec) {\n List<int[]> res1=vec.res;\n int p=0,q=0,ans=0;\n while(p<res.size()&&q<res1.size()){\n if(res.get(p)[0]==res1.get(q)[0]){\n ans+=res.get(p)[1]*res1.get(q)[1];\n p++;\n q++;\n }else if(res.get(p)[0]>res1.get(q)[0]){\n q++;\n }else{\n p++;\n }\n }\n return ans;\n }",
"public double productoVectorial(Pixel pixel) {\r\n\t\treturn getXDouble() * pixel.getYDouble() - getYDouble() * pixel.getXDouble();\r\n\t\t// return getXCartesiano() * pixel.getYCartesiano() - getYCartesiano() *\r\n\t\t// pixel.getXCartesiano();\r\n\t}",
"public double computeScalarProduct(Vector v2){\n return this.getX() * v2.getX() + this.getY() * v2.getY();\n }",
"public double dotProduct(Coordinates vectorA, Coordinates vectorB);",
"public static <T extends Vector> T Multiply(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] * b.axis[i];\n }\n return result;\n }\n return result;\n }",
"public interface VectorOperations extends MatrixOperations\n{\n /**\n * \n * Multiplies the vectors in a specific way, not sure of the term\n * \n * @param a\n * @param b\n * @return\n */\n public static Vector tensorProduct( final Vector a , final Vector b)\n {\n return a.tensorProduct(b);\n }\n \n /**\n * \n * Makes the tensor product of this and a\n * \n * @param a\n * @return\n */\n public Vector tensorProduct( final Vector a);\n \n /**\n * \n * Pretty much like List.sublist\n * \n * @param indexFrom\n * @param indexTo\n * @return\n */\n public Vector get( final int indexFrom, final int indexTo );\n \n /**\n * \n * @return size of the vector\n */\n public int size();\n}",
"public Vector2f mult (Vector2f other, Vector2f result)\n {\n return result.set(x*other.x, y*other.y);\n }",
"public static void multiply(Double[] vector, Double multiplier) {\r\n // ...\r\n for (int i = 0; i < vector.length; i++){\r\n vector[i] = vector[i] * multiplier;\r\n }\r\n }",
"public static double innerProduct(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n double res=0.0;\r\n\t\t// test if x or y are sparse vectors \r\n\t\tif (x instanceof DblArray1SparseVector) {\r\n\t\t\tDblArray1SparseVector xs = (DblArray1SparseVector) x;\r\n\t\t\tif (Double.compare(xs.getDefaultValue(),0.0)==0) { // else makes no sense\r\n\t\t\t\tfinal int xsnz = xs.getNumNonZeros();\r\n\t\t\t\tfor (int i=0; i<xsnz; i++) {\r\n\t\t\t\t\tint xipos = xs.getIthNonZeroPos(i);\r\n\t\t\t\t\tdouble xi = xs.getIthNonZeroVal(i);\r\n\t\t\t\t\tres += xi*y.getCoord(xipos);\r\n\t\t\t\t}\r\n\t\t\t\treturn res;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (y instanceof DblArray1SparseVector) {\r\n\t\t\tDblArray1SparseVector ys = (DblArray1SparseVector) y;\r\n\t\t\tif (Double.compare(ys.getDefaultValue(),0.0)==0) { // else makes no sense\r\n\t\t\t\tfinal int ysnz = ys.getNumNonZeros();\r\n\t\t\t\tfor (int i=0; i<ysnz; i++) {\r\n\t\t\t\t\tint yipos = ys.getIthNonZeroPos(i);\r\n\t\t\t\t\tdouble yi = ys.getIthNonZeroVal(i);\r\n\t\t\t\t\tres += yi*x.getCoord(yipos);\r\n\t\t\t\t}\r\n\t\t\t\treturn res;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// revert to full inner product computation of vectors in R^n.\r\n for (int i=0; i<n; i++) {\r\n res += x.getCoord(i)*y.getCoord(i);\r\n }\r\n return res;\r\n }",
"public void setEqualTo(Vector v){ components = v.getVectorAsArray(); }",
"IVec3 mult(IVec3 v);",
"public double scalarProductNS(ThreeVector v1) {\r\n\t\treturn scalarProduct(v1, this);\r\n\t}",
"public DVec multiply(DVec arg0) {\n\t\tDVec vec = new DVec(arg0.rowCount());\n\t\tfor (int i = 0; i < rowCount(); i++)\n\t\t\tfor (int j = 0; j < columnCount(); j++)\n\t\t\t\tvec.set(i, get(i, j) * arg0.get(i));\n\t\treturn vec;\n\t}",
"@Override\n\tpublic IVector scalarMultiply(double number){\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, this.get(i)*number);\n\t\t}\n\t\treturn this;\n\t}",
"public Vector3 multLocal (double v) {\n return mult(v, this);\n }",
"public static double[] scalarproduct(double[] v, double r) {\n double[] tmp = new double[3];\n tmp[0] = v[0]*r;\n tmp[1] = v[1]*r;\n tmp[2] = v[2]*r;\n return tmp;\n }",
"public Vector2d mul(double s) {\n\t\treturn new Vector2d(x*s, y*s);\n\t}",
"public Vector2f multLocal (Vector2f other)\n {\n return mult(other, this);\n }",
"public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMostValue);\n\t\t}\n\t}",
"Point mult (double s, Point result);",
"public double dot(SparseVector vector) {\n SparseVector v1 = this;\n SparseVector v2 = vector;\n double result = 0.0;\n int i = 0;\n int j = 0;\n \n while (i < v1.size() && j < v2.size()) {\n Element e1 = v1.get(i);\n Element e2 = v2.get(j);\n \n if (e1.index == e2.index) {\n result += e1.value * e2.value;\n i++;\n j++;\n } else if (e1.index < e2.index) {\n i++;\n } else {\n j++;\n }\n }\n \n return result;\n }",
"public Vector3D multVector(Vector3D u, Vector3D v) {\n\t\treturn new Vector3D(\n\t\t\t\tthis.x = (u.y * v.z) - (u.z * v.y), \n\t\t\t\tthis.y = (u.z * v.x) - (u.x * v.z),\n\t\t\t\tthis.z = (u.x * v.y) - (u.y * v.x));\n\t}",
"public void adaptProductVector() {\t\t\r\n\t\tHashMap<Integer, Integer> neighboursAdaption = new HashMap<Integer, Integer>();\r\n\t\t\r\n\t\tdouble threshold = Parameters.adaptationThreshold / 100.0;\r\n\t\tint neighbours = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < Parameters.vectorSpaceSize; i++) {\r\n\t\t\tneighboursAdaption.put(i, 0);\r\n\t\t}\r\n\t\t\r\n\t\tfor (Object o: network.getAdjacent(this)) {\t\t\r\n\t\t\tif (o instanceof Customer) {\r\n\t\t\t\tCustomer c = (Customer)o;\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 0; i < Parameters.vectorSpaceSize; i++) {\r\n\t\t\t\t\tint count = neighboursAdaption.get(i);\r\n\t\t\t\t\tif (c.getDemandVector()[i] == 1) {\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tneighboursAdaption.put(i, count);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tneighbours++;\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < Parameters.vectorSpaceSize; i++) {\r\n\t\t\tif ((double)neighboursAdaption.get(i) / neighbours >= threshold ) {\r\n\t\t\t\tdemandVector[i] = 1;\r\n\t\t\t}\r\n\t\t}\t\t \r\n\t}",
"public int dotProduct(final SparseVector2 vec) {\n if (vec == null) return -1;\n else if (this.vector.size() > vec.vector.size()) return vec.dotProduct(this);\n\n int res = 0;\n for (int[] p : vector) {\n final int qIndex = binarySearch(vec.vector, p[0]);\n if (qIndex >= 0) {\n res += (p[1] * vec.vector.get(qIndex)[1]);\n }\n }\n return res;\n }",
"public static ThreeVector vectorProduct(ThreeVector v1,ThreeVector v2) {\r\n\t\tThreeVector v3 = new ThreeVector((v1.y*v2.z)-(v1.z*v2.y),(v1.z*v2.x)-(v1.x*v2.z),(v1.x*v2.y) - (v1.y* v2.x));\r\n\t\treturn v3;\r\n\t}",
"public Vector3D product(float s)\r\n { \r\n return new Vector3D(s*this.x, s*this.y, s*this.z);\r\n }",
"public static double scalarProduct(ThreeVector v1,ThreeVector v2) {\r\n\t\treturn v1.x * v2.x + v1.y * v2.y + v1.z * v2.z;\r\n\t}",
"public abstract Vector4fc mul(IVector4f v);",
"public int product() {\n // You'll need to replace this code with something\n // else to make product() work; this is just to make\n // things compile while you work on sum()\n return 1;\n }",
"public static Vector3D multiplyVector(Vector3D v1, Vector3D v2) {\n//\t\tthis.x1 = this.x2 * other.getX3() - this.x3 * other.getX2();\n//\t\tthis.x2 = this.x3 * other.getX1() - this.x1 * other.getX3();\n//\t\tthis.x3 = this.x1 * other.getX2() - this.x2 * other.getX1();\n\t\tdouble x1 = v1.getX2() * v2.getX3() - v1.getX3() * v2.getX2();\n\t\tdouble x2 = v1.getX3() * v2.getX1() - v1.getX1() * v2.getX3();\n\t\tdouble x3 = v1.getX1() * v2.getX2() - v1.getX2() * v2.getX1();\n\t\t\n\t\treturn new Vector3D(x1,x2,x3);\n\t}",
"public Vector2f mult (float v, Vector2f result)\n {\n return result.set(x*v, y*v);\n }",
"public Vector2f multLocal (float v)\n {\n return mult(v, this);\n }",
"public int[][] cartesianProduct(final Set newSet) {\n // Set[] s3 = new Set();\n int[][] s3 = new int[TEN][TEN];\n int[][] s4 = new int[TEN][TEN];\n int i, j;\n for (i = 0; i < size; i++) {\n for (j = 0; j < size - 1; j++) {\n s4[i][j] = s3[i][j];\n }\n }\n return s4;\n }",
"private static double dot(final Map<String, Integer> leftVector, final Map<String, Integer> rightVector,\n final Set<String> intersection) {\n long dotProduct = 0;\n for (final String key : intersection) {\n dotProduct += leftVector.get(key) * rightVector.get(key);\n }\n return dotProduct;\n }",
"public abstract Vector4fc mul(float x, float y, float z, float w);",
"public int dotProduct(SparseVector vec) {\n int res = 0;\n for (int i : map.keySet()) {\n if (vec.map.containsKey(i)) {\n res += map.get(i) * vec.map.get(i);\n }\n }\n return res;\n }",
"public Vec3 multiply(Vec3 vect){\n if(values == null || values[0] == null || values[1] == null\n || values[2] == null){\n throw new IllegalStateException(\"Ill-formed transform\");\n }\n if(vect == null){\n throw new IllegalArgumentException(\"multiply by null vector\");\n }\n float x = values[0][3];\n float y = values[1][3];\n float z = values[2][3];\n x += values[0][0] * vect.x + values[0][1] * vect.y + values[0][2]\n * vect.z;\n y += values[1][0] * vect.x + values[1][1] * vect.y + values[1][2]\n * vect.z;\n z += values[2][0] * vect.x + values[2][1] * vect.y + values[2][2]\n * vect.z;\n return new Vec3(x, y, z);\n }",
"public VectorN getV()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[3];\n\t\tout.x[1] = this.rv.x[4];\n\t\tout.x[2] = this.rv.x[5];\n\t\treturn out;\n\t}",
"@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}",
"public static Vector3D product(Vector3D v1, Vector3D v2) {\r\n\t\tVector3D result = new Vector3D(\t(v1.y * v2.z) - (v1.z * v2.y),\r\n\t\t\t\t\t\t\t\t\t\t(v1.z * v2.x) - (v1.x * v2.z),\r\n\t\t\t\t\t\t\t\t\t\t(v1.x * v2.y) - (v1.y * v2.x));\r\n\t\treturn result;\r\n\t}",
"private float[] crossProduct(float[] v1, float[] v2) {\n float[] result = new float[3];\n result[0] = v1[1] * v2[2] - v2[1] * v1[2];\n result[1] = v1[2] * v2[0] - v2[2] * v1[0];\n result[2] = v1[0] * v2[1] - v2[0] * v1[1];\n return result;\n }",
"public abstract Vector4fc mul(IMatrix4f mat);",
"public static Vector cross(Vector a, Vector b) {\r\n if(a.getDimension() == 3 && b.getDimension() == 3)\r\n return new Vector(a.components[1] * b.components[2] - a.components[2]\r\n * b.components[1], -a.components[0] * b.components[2]\r\n + a.components[2] * b.components[0], a.components[0]\r\n * b.components[1] - a.components[1] * b.components[0]);\r\n else if (a.getDimension() == 2 && b.getDimension() == 2)\r\n return new Vector(a.components[0] * b.components[1] - a.components[1] * b.components[0]);\r\n else return null;\r\n }",
"public Vector crossProduct(Vector vec) {\n return new Vector(new Point3D(vec.getHead().getY() * this.getHead().getZ() - this.getHead().getY() * vec.getHead().getZ(),\n vec.getHead().getZ() * this.getHead().getX() - this.getHead().getZ() * vec.getHead().getX(),\n vec.getHead().getX() * this.getHead().getY() - this.getHead().getX() * vec.getHead().getY()));\n }",
"public abstract ImmutableVector getImmutableVector();",
"public int cumulativeProduct() {\n int product = 1;\n EquationList p_eqn = eqn;\n while (p_eqn != null) {\n product = product * p_eqn.result;\n p_eqn = p_eqn.next;\n }\n if (p_eqn == null) {\n product = product;\n }\n return product;\n }",
"public Vector transform(Vector v) {\n\t\treturn new Vector(a * v.x + c, b * v.y + d);\n\t}",
"public LorentzVector multiply(double factor) {\n\t\tLorentzVector newVector = new LorentzVector(this);\n\t\tthis.fact(factor);\n\t\treturn newVector;\n\t}",
"VectorType11 getVector();",
"private void mul() {\n\n\t}",
"public abstract Vector4fc mulProject(IMatrix4f mat);",
"IVec3 mult(float k);",
"static double cross(Vec a, Vec b) {\n return a.x * b.y - a.y * b.x;\n }",
"@Override\n\tpublic IVector nScalarMultiply(double number){\n\t\treturn this.copy().scalarMultiply(number);\n\t}",
"@Override\n\tpublic IVector sub(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != vector.getDimension()){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, get(i)-vector.get(i));\n\t\t}\n\t\treturn this;\n\t}",
"public static ECPoint scalmult(ECPoint P, BigInteger kin){\n //ECPoint R=P; - incorrect\n ECPoint R = ECPoint.POINT_INFINITY,S = P;\n BigInteger k = kin.mod(p);\n int length = k.bitLength();\n //System.out.println(\"length is\" + length);\n byte[] binarray = new byte[length];\n for(int i=0;i<=length-1;i++){\n binarray[i] = k.mod(TWO).byteValue();\n k = k.divide(TWO);\n }\n /*for(int i = length-1;i >= 0;i--){\n System.out.print(\"\" + binarray[i]);\n }*/\n\n for(int i = length-1;i >= 0;i--){\n // i should start at length-1 not -2 because the MSB of binarry may not be 1\n R = doublePoint(R);\n if(binarray[i]== 1)\n R = addPoint(R, S);\n }\n return R;\n }",
"public int producto(){\r\n return x*y;\r\n }",
"public void\n\tmult( Vector3 other )\n\t{\n\t\tdata[0] *= other.data[0];\n\t\tdata[1] *= other.data[1];\n\t\tdata[2] *= other.data[2];\n\t}",
"public double[] getCurrentVector() {\r\n if (getCurrentItem() == null) {\r\n return new double[vectorLength];\r\n } else {\r\n return this.getMatchingVector(this.getCurrentItem().getText());\r\n }\r\n }",
"static Vec vector(PointDouble a, PointDouble b) {\n return new Vec(b.x - a.x, b.y - a.y);\n }",
"@Override\r\n\tpublic int multi(int x, int y) {\n\t\treturn x * y;\r\n\t}",
"public static double[] produitVectoriel(double U[],double V[]){\r\n\t\tdouble[] produitVect;\r\n\t\tproduitVect = new double[3];\r\n\t\tproduitVect[0] = U[1]*V[2] - U[2]*V[1];\r\n\t\tproduitVect[1] = U[2]*V[0] - U[0]*V[2];\r\n\t\tproduitVect[2] = U[0]*V[1] - U[1]*V[0];\r\n\t\t//double n = norme(produitVect);\r\n\t\treturn\t produitVect;\t\r\n\t}",
"Point mult (double s);",
"public double productoVectorial2(Pixel pixel) {\r\n\t\treturn getX() * pixel.getY() - getY() * pixel.getX();\r\n\t\t //return getXCartesiano() * pixel.getYCartesiano() - getYCartesiano() * pixel.getXCartesiano();\r\n\t}",
"public Vector3 mul(final Matrix4 matrix) {\r\n\t\tfinal float l_mat[] = matrix.val;\r\n\t\treturn this.set(x * l_mat[Matrix4.M00] + y * l_mat[Matrix4.M01] + z * l_mat[Matrix4.M02] + l_mat[Matrix4.M03],\r\n\t\t\t\tx * l_mat[Matrix4.M10] + y * l_mat[Matrix4.M11] + z * l_mat[Matrix4.M12] + l_mat[Matrix4.M13],\r\n\t\t\t\tx * l_mat[Matrix4.M20] + y * l_mat[Matrix4.M21] + z * l_mat[Matrix4.M22] + l_mat[Matrix4.M23]);\r\n\t}",
"public int vectorSum()\n\t{\n\t\tint sum =0;\n\t\tfor(int i=0;i<vector.size();i++)\n\t\t{\n\t\t\tsum += vector.get(i);\n\t\t}\n\t\treturn sum;\n\t}",
"public Matrix getV() {\n return v.like().assign(v);\n }",
"public abstract Vector4fc mul(IMatrix4x3f mat);",
"public Vector2D mul(double a)\n\t{\n\t\treturn new Vector2D(a*x, a*y);\n\t}",
"public void recalculateVector()\r\n {\r\n recalculateVector(destX, destY);\r\n }",
"public WB_Vector nextVector();",
"public Vector normalize ( );",
"public Polynomial operate(){\n Polynomial result = a.multiplyPolynomial(b);\n return result;\n }",
"public static double[][] elementWiseProduct(double[][] vec1, double[][] vec2){\n if (vec1[0].length == 1){\n vec1 = transposeMatrix(vec1);\n }\n\n /* OBS: include transpose function if vec2.length == 1. */\n if (vec2[0].length == 1){\n vec2 = transposeMatrix(vec2);\n }\n \n double[][] resultVector = new double[1][vec1[0].length];\n\n // checks that length is equal\n if (vec1[0].length != vec2[0].length){\n System.out.println(\"elementWiseVectorProduct requires equal length matrices. \\nSHUTTING DOWN PROGRAM\");\n System.exit(0);\n }\n\n // for each element, multiply\n for (int i=0; i<vec1[0].length; i++) {\n resultVector[0][i] = vec1[0][i] * vec2[0][i];\n }\n \n return resultVector;\n }"
] | [
"0.6964455",
"0.67535806",
"0.6638166",
"0.66010064",
"0.64947826",
"0.6444335",
"0.6423446",
"0.63651097",
"0.635808",
"0.6312955",
"0.6302043",
"0.62997603",
"0.6297167",
"0.6255596",
"0.6244372",
"0.6194134",
"0.6185725",
"0.6170109",
"0.6168361",
"0.61467624",
"0.61363083",
"0.61296463",
"0.61009574",
"0.59966004",
"0.5977698",
"0.59770405",
"0.5959819",
"0.5934013",
"0.5925012",
"0.5914479",
"0.59001595",
"0.5896386",
"0.58859277",
"0.5882909",
"0.58687824",
"0.5850599",
"0.585059",
"0.5840086",
"0.5823888",
"0.5816795",
"0.5798895",
"0.5786973",
"0.5784116",
"0.5773485",
"0.5766529",
"0.57653004",
"0.5764527",
"0.5759261",
"0.573899",
"0.5727186",
"0.57256407",
"0.57100236",
"0.5684415",
"0.56616837",
"0.5645604",
"0.564353",
"0.56382823",
"0.5634388",
"0.5611974",
"0.5608118",
"0.55934304",
"0.5589763",
"0.55624056",
"0.55490595",
"0.55393404",
"0.5538472",
"0.5528583",
"0.55216426",
"0.548185",
"0.54769456",
"0.5472572",
"0.5464686",
"0.54625833",
"0.5460618",
"0.54577047",
"0.54561687",
"0.54556954",
"0.54516786",
"0.5449083",
"0.54415476",
"0.5415051",
"0.5410667",
"0.54080755",
"0.5407501",
"0.5398729",
"0.5393869",
"0.5383881",
"0.5372583",
"0.5371448",
"0.5369894",
"0.53664184",
"0.5366126",
"0.5364679",
"0.53621393",
"0.53587717",
"0.53556865",
"0.5353591",
"0.5349565",
"0.5348281",
"0.5341056"
] | 0.6877536 | 1 |
Computes the standard vector dot product | public double dotProduct(Vector3 vec) {
return this.x*vec.x + this.y*vec.y + this.z*vec.z;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double dotProduct(Coordinates vectorA, Coordinates vectorB);",
"public double dot(Vec vthat);",
"public T dotProduct(Vector<T> aVector) throws VectorSizeException;",
"static double dot(Vec a, Vec b) {\n return (a.x * b.x + a.y * b.y);\n }",
"public double dot(VectorA v)\n {\n return (this.mag()*v.mag());\n }",
"public double dot(Vector other){\n\t\treturn x*other.x + y*other.y + z*other.z;\n\t}",
"private double dotProduct(double x, double y, double z, double d, double e, double f){\n\t\tdouble length1 = Math.sqrt(x*x + y*y + z*z);\t// Calculate length of [x, y]\n\t\tdouble length2 = Math.sqrt(d*d + e*e + f*f);\t// Calculate length of [d, e]\n\t\t// Normalize vectors:\n\t\tx /= length1;\n\t\ty /= length1;\n\t\tz /= length1;\n\t\td /= length2;\n\t\te /= length2;\n\t\tf /= length2;\n\t\t// Return dot product:\n\t\treturn (x * d) + (y * e) + (z * f);\n\t}",
"public double dot(SparseVector vector) {\n SparseVector v1 = this;\n SparseVector v2 = vector;\n double result = 0.0;\n int i = 0;\n int j = 0;\n \n while (i < v1.size() && j < v2.size()) {\n Element e1 = v1.get(i);\n Element e2 = v2.get(j);\n \n if (e1.index == e2.index) {\n result += e1.value * e2.value;\n i++;\n j++;\n } else if (e1.index < e2.index) {\n i++;\n } else {\n j++;\n }\n }\n \n return result;\n }",
"public double dot(LorentzVector vect){\n\t\tdouble dotProduct = this.e()*vect.e() - this.vect().dot(vect.vect());\n\t\treturn dotProduct;\n\t}",
"public static float dotProduct(float[] a, float[] b) {\n if (a.length != b.length) {\n throw new IllegalArgumentException(\"vector dimensions differ: \" + a.length + \"!=\" + b.length);\n }\n float r = IMPL.dotProduct(a, b);\n assert Float.isFinite(r);\n return r;\n }",
"@Override\n public float dot(INDArray x, INDArray y) {\n //return NativeBlas.ddot(x.length(), x.data(), 0, 1, y.data(), 0, 1);\n return JavaBlas.rdot(x.length(), x.data(), x.offset(), 1, y.data(), y.offset(), 1);\n }",
"public double\n\tdotProduct( Vector3 other ) \n\t{\n\t\treturn( ( data[0] * other.data[0] ) + ( data[1] * other.data[1] ) + ( data[2] * other.data[2] ) );\n\t}",
"public double dot(Vector2D v) {\n \n return _x * v.x() + _y * v.y(); \n \n }",
"public double dotProduct(Vector other) {\n double num= (head.x._coord*other.head.x._coord+head.y._coord*other.head.y._coord\n +head.z._coord*other.head.z._coord);\n return num;\n }",
"public static double dot(double[] v1, double[] v2) {\n double result = 0;\n for (int i = 0; i < v1.length; i++) {\n result += v1[i] * v2[i];\n }\n return result;\n }",
"@Override\n\tpublic float dot(Vector vector) {\n\t\tif(vector instanceof Vec2){\n\t\t\tVec2 vect = (Vec2)vector;\n\t\t\treturn x*vect.x+y*vect.y;//z and w are 0\n\t\t}else if(vector instanceof Vec3){\n\t\t\tVec3 vect = (Vec3)vector;\n\t\t\treturn x*vect.x+y*vect.y+z*vect.z;//w is 0\n\t\t}else{\n\t\t\tVec4 vect = (Vec4)vector;\n\t\t\treturn x*vect.x+y*vect.y+z*vect.z;//w doesn't exist\n\t\t}\n\t}",
"private double calcDotProduct(Point2D.Double a, Point2D.Double b)\n\t{\t\n\t\treturn (a.getX() * b.getX()) + (a.getY() * b.getY());\n\t}",
"public double dot(Vector2D v)\n\t{\n\t\treturn x*v.getX() + y*v.getY();\n\t}",
"public double dot(Vector2d v) {\n\t\treturn x*v.x + y*v.y;\n\t}",
"public static double scalarProduct(Vector v1, Vector v2){\r\n\t\treturn v1.getX()*v2.getX() + v1.getY()*v2.getY();\r\n\t\t\r\n\t}",
"public double normDot(SparseVector vector) {\n double dot = this.dot(vector);\n double d = Math.sqrt(this.size() * vector.size());\n if (d > 0) {\n dot /= d;\n }\n return dot;\n }",
"public double dotProduct(Vector2D rhs)\n {\n return this.x * rhs.x + this.y * rhs.y;\n }",
"public double dotProduct(Vec2dd vec) {\n return x * vec.getX() + y * vec.getY();\n }",
"public double dot( T v ) {\n convertType.specify(this, v);\n T A = convertType.convert(this);\n v = convertType.convert(v);\n\n if (!isVector()) {\n throw new IllegalArgumentException(\"'this' matrix is not a vector.\");\n } else if (!v.isVector()) {\n throw new IllegalArgumentException(\"'v' matrix is not a vector.\");\n }\n\n return A.ops.dot(A.mat, v.getMatrix());\n }",
"private static double dot(final Map<String, Integer> leftVector, final Map<String, Integer> rightVector,\n final Set<String> intersection) {\n long dotProduct = 0;\n for (final String key : intersection) {\n dotProduct += leftVector.get(key) * rightVector.get(key);\n }\n return dotProduct;\n }",
"public double dotProduct(Vector330Class v){\n return ((this.x * v.x) + (this.y * v.y));\n }",
"public double dotProduct(Vector2d _that)\n {\n Vector2d startToThat = _that.sub(start);\n return startToEnd.dot(startToThat);\n }",
"public float dot(Vec2 v) {\r\n\t\treturn ((x * v.x) + (y * v.y));\r\n\t}",
"public static double safeDotProduct(Vector v1, Vector v2) {\n double dotProduct = v1.innerProduct(v2);\n if (dotProduct > 1) {\n dotProduct = 1;\n }\n if (dotProduct < -1) {\n dotProduct = -1;\n }\n return dotProduct;\n }",
"public static float dot(Vec2 a, Vec2 b) {\r\n\t\treturn ((a.x * b.x) + (a.y * b.y));\r\n\t}",
"public static float Dot(Vector a, Vector b){\n if(a.axis.length == b.axis.length) {\n float dot = 0f;\n for (int i = 0; i < a.axis.length; i++) {\n dot += a.axis[i] * b.axis[i];\n }\n return dot;\n }\n return 0f;\n }",
"private static float dotProduct(float[] paramArrayOfFloat1, float[] paramArrayOfFloat2)\r\n/* 133: */ {\r\n/* 134:117 */ return paramArrayOfFloat1[0] * paramArrayOfFloat2[0] + paramArrayOfFloat1[1] * paramArrayOfFloat2[1] + paramArrayOfFloat1[2] * paramArrayOfFloat2[2] + paramArrayOfFloat1[3] * paramArrayOfFloat2[3];\r\n/* 135: */ }",
"public float dot (Vector2f other)\n {\n return x*other.x + y*other.y;\n }",
"@Test\n public void testDotProduct() {\n System.out.println(\"dotProduct\");\n Vector v = null;\n Vector instance = null;\n double expResult = 0.0;\n double result = instance.dotProduct(v);\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"private double dotProduct(String[] words) {\n double sum = 0;\n for (TF_IDF_Term term : TF_IDF_Vectorizer.tfIdf(words, vocabulary)) {\n sum += term.getTfIdf() * theta[term.getId()];\n }\n return sum;\n }",
"public float dot(Vector2D v2) \n {\n \tfloat result = 0.0f;\n result = this.getX() * v2.getX() + this.getY() * v2.getY();\n return result;\n }",
"float dot(IVec3 v);",
"public double dot(Vector3 other) {\n\t\treturn x * other.x + y * other.y + z * other.z;\n\t}",
"@Test\n public void dot() {\n float result = 0.0f;\n float[] a = new float[] {1.001f, 2.002f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 2.0f, 6.0f, 4.0f, 4.0f, 5.0f};\n float expect = 74.0f;\n // 1)\n result = Vec4f.dot(a, 2, b, 1);\n assertTrue(Math.abs(result-expect) < 1E-6f);\n \n //2)\n float[] a2 = new float[] {3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b2 = new float[] {2.0f, 6.0f, 4.0f, 4.0f};\n float result2 = Vec4f.dot(a2, b2);\n assertTrue(Math.abs(result2-expect) < 1E-6f);\n }",
"public int dotProduct(SparseVector vec) {\n List<int[]> res1=vec.res;\n int p=0,q=0,ans=0;\n while(p<res.size()&&q<res1.size()){\n if(res.get(p)[0]==res1.get(q)[0]){\n ans+=res.get(p)[1]*res1.get(q)[1];\n p++;\n q++;\n }else if(res.get(p)[0]>res1.get(q)[0]){\n q++;\n }else{\n p++;\n }\n }\n return ans;\n }",
"public int dotProduct(final SparseVector2 vec) {\n if (vec == null) return -1;\n else if (this.vector.size() > vec.vector.size()) return vec.dotProduct(this);\n\n int res = 0;\n for (int[] p : vector) {\n final int qIndex = binarySearch(vec.vector, p[0]);\n if (qIndex >= 0) {\n res += (p[1] * vec.vector.get(qIndex)[1]);\n }\n }\n return res;\n }",
"public static double dotproduct(double[] v, double[] w) {\n double r = 0;\n for (int i=0; i<3; i++) {\n r += v[i] * w[i];\n }\n return r;\n }",
"public double computeScalarProduct(Vector v2){\n return this.getX() * v2.getX() + this.getY() * v2.getY();\n }",
"public int dotProduct(SparseVector vec) {\n\t\tint result = 0;\n\t\tfor (int index : set) {\n\t\t\tif (vec.set.contains(index)) {\n\t\t\t\tresult += nums[index] * vec.nums[index];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"@Override\n public ComplexFloat dotu(IComplexNDArray x, IComplexNDArray y) {\n return new ComplexFloat(NativeBlas.cdotu(x.length(), x.data(), x.offset(), 1, y.data(), y.offset(), 1));\n }",
"public float dot(Vector3D v)\r\n\t{\r\n\t\treturn x*v.x + y*v.y + z*v.z;\r\n\t}",
"public Vector tensorProduct( final Vector a);",
"final public double dot(final Vector3 v){\n if(v == null){\n throw new IllegalArgumentException(\"v must not be null\");\n }\n return (x*v.x + y*v.y + z*v.z);\n }",
"public static double dot(Vector2D va, Vector2D vb) {\n \n return va.x() * vb.x() + va.y() * vb.y();\n \n }",
"public static double scalarProduct(ThreeVector v1,ThreeVector v2) {\r\n\t\treturn v1.x * v2.x + v1.y * v2.y + v1.z * v2.z;\r\n\t}",
"public static int dotProduct(byte[] a, byte[] b) {\n if (a.length != b.length) {\n throw new IllegalArgumentException(\"vector dimensions differ: \" + a.length + \"!=\" + b.length);\n }\n return IMPL.dotProduct(a, b);\n }",
"public double dot(Vector3D v) {\n return (this.xCoord * v.xCoord) + (this.yCoord * v.yCoord) + (this.zCoord * v.zCoord);\n }",
"public double product(DocumentVector other) {\n\t\tdouble product = 0;\n\t\tint n = Math.min(this.getAttCount(), other.getAttCount());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tproduct += this.getValueAsReal(i) * other.getValueAsReal(i);\n\t\t}\n\t\t\n\t\treturn product;\n\t}",
"public double dotProduct(ArrayList<Double> outputs, ArrayList<Double> weights) {\n\t\tdouble toReturn = 0.0;\n\t\tfor (int i = 0; i < weights.size() - 1; i++) {\n\t\t\tif (!(i > outputs.size() - 1)) {\n\t\t\t\tdouble oldV = weights.get(i);\n\t\t\t\tdouble hk = outputs.get(i);\n\t\t\t\ttoReturn += hk * oldV;\n\t\t\t}\n\t\t}\n\t\treturn toReturn;\n\t}",
"public static float dot(float[] a, float[] b) {\n float retval = a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n return retval;\n }",
"public double dot(final Vec4 o) {\n expectDirection();\n o.expectDirection();\n return x * o.x + y * o.y + z * o.z;\n }",
"public static double innerProduct(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n double res=0.0;\r\n\t\t// test if x or y are sparse vectors \r\n\t\tif (x instanceof DblArray1SparseVector) {\r\n\t\t\tDblArray1SparseVector xs = (DblArray1SparseVector) x;\r\n\t\t\tif (Double.compare(xs.getDefaultValue(),0.0)==0) { // else makes no sense\r\n\t\t\t\tfinal int xsnz = xs.getNumNonZeros();\r\n\t\t\t\tfor (int i=0; i<xsnz; i++) {\r\n\t\t\t\t\tint xipos = xs.getIthNonZeroPos(i);\r\n\t\t\t\t\tdouble xi = xs.getIthNonZeroVal(i);\r\n\t\t\t\t\tres += xi*y.getCoord(xipos);\r\n\t\t\t\t}\r\n\t\t\t\treturn res;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (y instanceof DblArray1SparseVector) {\r\n\t\t\tDblArray1SparseVector ys = (DblArray1SparseVector) y;\r\n\t\t\tif (Double.compare(ys.getDefaultValue(),0.0)==0) { // else makes no sense\r\n\t\t\t\tfinal int ysnz = ys.getNumNonZeros();\r\n\t\t\t\tfor (int i=0; i<ysnz; i++) {\r\n\t\t\t\t\tint yipos = ys.getIthNonZeroPos(i);\r\n\t\t\t\t\tdouble yi = ys.getIthNonZeroVal(i);\r\n\t\t\t\t\tres += yi*x.getCoord(yipos);\r\n\t\t\t\t}\r\n\t\t\t\treturn res;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// revert to full inner product computation of vectors in R^n.\r\n for (int i=0; i<n; i++) {\r\n res += x.getCoord(i)*y.getCoord(i);\r\n }\r\n return res;\r\n }",
"private static double dot(final Grad g, final double x, final double y,\n final double z) {\n return g.x * x + g.y * y + g.z * z;\n }",
"public int dotProduct(SparseVector vec) {\n int res = 0;\n for (int i : map.keySet()) {\n if (vec.map.containsKey(i)) {\n res += map.get(i) * vec.map.get(i);\n }\n }\n return res;\n }",
"double V2Dot(Position a, Position b){\r\n\t\treturn((a.getX() * b.getX())+(a.getY() * b.getY()));\r\n\t}",
"public float dot(Vector2f vec) {\n return x * vec.x + y * vec.y;\n }",
"public double innerProduct(double[] x1, double[] x2) {\n\t\tdouble result = 0.0d;\n\t\tfor (int i = 0; i < x1.length; i++) {\n\t\t\tresult += x1[i] * x2[i];\n\t\t}\n\t\treturn result;\n\t}",
"public Vector<T> crossProduct(Vector<T> aVector) throws VectorSizeException;",
"public static Vector tensorProduct( final Vector a , final Vector b)\n {\n return a.tensorProduct(b);\n }",
"public float dot(Vector3 other){\r\n return r * other.r + g * other.g + b * other.b;\r\n }",
"public static void main(String[] args) \n {\n Scanner s = new Scanner(System.in);\n\n // VECTOR 1 CONSTRUCTION\n System.out.print(\"Enter the components of the first 3-d vector-> \"); \n Vector3D vector1 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 2 CONSTRUCTION\n System.out.print(\"Enter the components of the second 3-d vector-> \"); \n Vector3D vector2 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 3 CONSTRUCTION\n System.out.print(\"Enter the components of the third 3-d vector-> \"); \n Vector3D vector3 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // Print Vector 1\n System.out.println(\"v1 = \" + vector1.toString());\n \n // Print Vector 2\n System.out.println(\"v2 = \" + vector2.toString());\n \n // Print Vector 3\n System.out.printf(\"v3 = %s\\n\\n\", vector3.toString());\n \n // Compute and display v1 + v2\n System.out.printf(\"v1 + v2 = %s\\n\\n\", vector1.add(vector2).toString());\n \n // Compute and display (v2 + v3) * v1\n System.out.printf(\"(v2 + v3) * v1 = %.6f\\n\\n\",\n vector1.iProduct(vector2.add(vector3)));\n \n // Compute and display v1 X (v2 - v3)\n System.out.printf(\"v1 x (v2 - v3) = %s\\n\\n\",\n vector1.xProduct(vector2.subtract(vector3)).toString());\n \n // Compute and display (v2 - v3) X v1\n System.out.printf(\"(v2 - v3) X v1 = %s\\n\\n\",\n vector2.subtract(vector3).xProduct(vector1).toString());\n \n // Compute and display |v1 X v2| and |v2| |v1|\n System.out.printf(\"|v1 x v2| = %.6f and |v2||v1| = %.6f\\n\\n\",\n vector1.xProduct(vector2).length(), \n vector2.length() * vector1.length());\n \n // Compute and display (v1 x v2) / (|v1 x v2|)\n System.out.printf(\"(v1 x v2) / (|v1 x v2|) = %s\\n\\n\",\n vector1.xProduct(vector2).multiply(1 / \n vector1.xProduct(vector2).length()).toString());\n \n // Compute and display v1 x (v2 + v3)\n System.out.printf(\"v1 x (v2 + v3) = %s\\n\\n\",\n vector1.xProduct(vector2.add(vector3)).toString());\n \n // Compute and display (v1 x v2) + (v1 x v3)\n System.out.printf(\"(v1 x v2) + (v1 x v3) = %s\\n\\n\",\n vector1.xProduct(vector2).add(vector1.xProduct(vector3)).toString());\n \n // Test the norm method\n Vector3D v1Norm = vector1.norm();\n System.out.printf(\"v1.norm() = %s\\n\\n\", v1Norm);\n \n // Test the normalize method\n vector1.normalize();\n System.out.printf(\"v1.normalize = <%.6f, %.6f, %.6f>\\n\\n\", \n vector1.getX(), vector1.getY(), vector1.getZ());\n }",
"final public double dot(final Normal3 n){\n if(n == null){\n throw new IllegalArgumentException(\"n must not be null\");\n }\n return (x*n.x + y*n.y + z*n.z);\n }",
"static double cross(Vec a, Vec b) {\n return a.x * b.y - a.y * b.x;\n }",
"private double dot(Point A, Point B, Point C) {\n\t\tdouble AB_X = B.x - A.x;\n\t\tdouble AB_Y = B.y - A.y;\n\t\tdouble BC_X = C.x - B.x;\n\t\tdouble BC_Y = C.y - B.y;\n\t\tdouble dot = AB_X * BC_X + AB_Y * BC_Y;\n\t\treturn dot;\n\t}",
"private static int dot(int x1, int y1, int x2, int y2) {\n\t\treturn (x1 * x2) + (y1 * y2);\t\n\t}",
"public double scalarProductNS(ThreeVector v1) {\r\n\t\treturn scalarProduct(v1, this);\r\n\t}",
"private float crossProduct(Vec2 X, Vec2 Y, Vec2 Z)\n {\n float x1 = Z.x - X.x;\n float y1 = Z.y - X.y;\n float x2 = Y.x - X.x;\n float y2 = Y.y - X.y;\n\n return x1*y2 - x2*y1;\n }",
"Matrix dot(Matrix m){\n if(this.cols != m.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n double[][] tmp_this = this.asArray();\n double[][] tmp_m = m.asArray();\n Matrix matrix_to_return = new Matrix(this.rows, m.cols);\n for(int i=0; i<matrix_to_return.rows; i++){\n for(int j=0; j<matrix_to_return.cols; j++){\n for(int k=0; k<matrix_to_return.rows; k++)\n matrix_to_return.data[i*this.cols + j] += tmp_this[i][k] * tmp_m[k][j];\n }\n }\n return matrix_to_return;\n }",
"public double DotProduct3(Vector3D vt)\r\n\t{\r\n\t return this.x * vt.x + this.y * vt.y + this.z * vt.z;\r\n\t}",
"public double dot(CMLVector3 v3) {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n return (veucl3 == null) ? Double.NaN : veucl3\r\n .dot(v3.getEuclidVector3());\r\n }",
"public float dot(float x, float y, float z) {\r\n\t\treturn this.x * x + this.y * y + this.z * z;\r\n\t}",
"@Override\n\tpublic double scalarProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != vector.getDimension()){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble scalarSum = 0;\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tscalarSum += (this.get(i) * vector.get(i));\n\t\t}\n\t\treturn scalarSum;\n\t}",
"public double[] vectorMult(double[] v1, double[] v2) {\n\n double[] res = new double[v1.length];\n\n for(int i = 0; i < v1.length; i++) {\n res[i] = v1[i]*v2[i];\n }\n return res;\n }",
"public static int dotProduct(int[] arr1, int[] arr2)\n {\n int sum = 0;\n if(arr1.length == arr2.length)\n {\n for(int i = 0; i < 3; i++)\n {\n int p = (arr1[i] * arr2[i]);\n sum += p;\n \n }\n return sum;\n }\n else\n {\n System.out.println(\"The arrays arent the same length\");\n return -1;\n }\n }",
"private float[] crossProduct(float[] v1, float[] v2) {\n float[] result = new float[3];\n result[0] = v1[1] * v2[2] - v2[1] * v1[2];\n result[1] = v1[2] * v2[0] - v2[2] * v1[0];\n result[2] = v1[0] * v2[1] - v2[0] * v1[1];\n return result;\n }",
"@Test\n\tpublic void dotProductTest() {\n\t\tassertEquals((long) point.dot(point1), 57500);\n\t}",
"public double computeCrossProduct(Vector v2){\n return this.getX() * v2.getY() - this.getY() * v2.getX();\n }",
"public static void main(String[] args) {\n\t\tVector3 i = new Vector3(1, 0, 0);\n\t\tVector3 j = new Vector3(0, 1, 0);\n\t\tVector3 k = i.cross(j);\n\t\t\n\t\tVector3 l = k.add(j).scale(5);\n\t\t\n\t\tVector3 m = l.normalized();\n\t\t\n\t\tSystem.out.println(i);\n\t\tSystem.out.println(j);\n\t\tSystem.out.println(k);\n\t\tSystem.out.println(l);\n\t\tSystem.out.println(l.norm());\n\t\tSystem.out.println(m);\n\t\tSystem.out.println(l.dot(j));\n\t\tSystem.out.println(i.add(new Vector3(0, 1, 0)).cosAngle(l));\n\t}",
"public double norm() {\r\n return Math.sqrt(innerProduct(this));\r\n }",
"public void crossProd(double U[],\n double V[], double W[]) {\n W[0] = U[1]*V[2]-U[2]*V[1];\n W[1] = U[2]*V[0]-U[0]*V[2];\n W[2] = U[0]*V[1]-U[1]*V[0];\n }",
"public ComplexFloat dotc(IComplexNDArray x, IComplexNDArray y) {\n return new ComplexFloat(NativeBlas.cdotc(x.length(), x.data(), x.offset(), 1, y.data(), y.offset(), 1));\n }",
"public double dot(Point3D p) {\n\t\treturn x*p.x + y*p.y + z*p.z;\n\t}",
"double scalarMultiplyVectors(double[] first, double[] second) throws InterruptedException;",
"public double vectorSquareSumRoot()\n\t{\n\t\tdouble sum =0;\n\t\tfor(int i=0;i<vector.size();i++)\n\t\t{\n\t\t\tsum += (vector.get(i)*vector.get(i));\n\t\t}\n\t\treturn Math.sqrt(sum);\n\t}",
"public void testEvaluate()\n {\n Vector zero = new Vector3();\n Vector x = new Vector3(RANDOM.nextGaussian(), RANDOM.nextGaussian(), RANDOM.nextGaussian());\n Vector y = new Vector3(RANDOM.nextGaussian(), RANDOM.nextGaussian(), RANDOM.nextGaussian());\n \n double weight = RANDOM.nextDouble();\n WeightedKernel<Vector> instance = new WeightedKernel<Vector>(\n weight, LinearKernel.getInstance());\n \n double expected = weight * x.dotProduct(y);\n assertEquals(expected, instance.evaluate(x, y));\n assertEquals(expected, instance.evaluate(y, x));\n assertEquals(0.0, instance.evaluate(x, zero));\n assertEquals(0.0, instance.evaluate(y, zero));\n assertEquals(0.0, instance.evaluate(zero, zero));\n }",
"static double squaredNorm(Vec v) {\n return v.x * v.x + v.y * v.y;\n }",
"public static double dot(DataNumeric obj1, DataNumeric obj2) {\n if (obj1 instanceof DataVector && obj2 instanceof DataVector)\n return VectorFactory.dot((DataVector) obj1, (DataVector) obj2);\n if (obj1 instanceof DataMatrix && obj2 instanceof DataMatrix)\n return MatrixFactory.dot((DataMatrix) obj1, (DataMatrix) obj2);\n throw new IllegalArgumentException(\"Unhandled data objects: \" + obj1 + \", \" + obj2);\n }",
"private static double crossProduct(Point2D a, Point2D b) {\r\n return a.getX() * b.getY() - b.getX() * a.getY();\r\n }",
"public double cosSimCalculator(List<Double> vec1, List<Double> vec2) {\n double dotProduct = 0.0;\n for (int i=0; i < vec1.size(); i++)\n dotProduct += vec1.get(i) * vec2.get(i);\n\n double vec1Norm = vecNormCalculator(vec1);\n double vec2Norm = vecNormCalculator(vec2);\n\n return dotProduct / (vec1Norm * vec2Norm);\n }",
"private double[] dotBlas(double[] m1, int m, int n, boolean trans1, double[] m2, int p, int q,\n boolean trans2) {\n\n double alpha = 1.0, beta = 0.0;\n double[] resBlas;\n\n if (trans1 && trans2) { // M1^T * M2^T\n assert m == q;\n resBlas = new double[n * p];\n\n blas.dgemm(\"T\", \"T\", p, n, m, alpha, m2, q, m1, n, beta, resBlas, p);\n\n return resBlas;\n } else if (!trans1 && trans2) { // M1 * M2^T\n assert n == q;\n resBlas = new double[m * p];\n\n blas.dgemm(\"T\", \"N\", p, m, n, alpha, m2, q, m1, n, beta, resBlas, p);\n\n return resBlas;\n } else if (trans1 && !trans2) { // M1^T * M2\n assert m == p;\n resBlas = new double[n * q];\n\n blas.dgemm(\"N\", \"T\", q, n, m, alpha, m2, q, m1, n, beta, resBlas, q);\n\n return resBlas;\n } else { // M1 * M2\n assert n == p;\n resBlas = new double[m * q];\n\n blas.dgemm(\"N\", \"N\", q, m, n, alpha, m2, q, m1, n, beta, resBlas, q);\n\n return resBlas;\n }\n }",
"public double crossProduct(Vec2dd vec) {\n return x * vec.getY() - y * vec.getX();\n }",
"public double productoVectorial(Pixel pixel) {\r\n\t\treturn getXDouble() * pixel.getYDouble() - getYDouble() * pixel.getXDouble();\r\n\t\t// return getXCartesiano() * pixel.getYCartesiano() - getYCartesiano() *\r\n\t\t// pixel.getXCartesiano();\r\n\t}",
"private double dotProduct(Rater me,Rater other) {\n double p=0;\n //int count=Math.min(me.numRatings(), other.numRatings());//this approach failed instead now i search all the ratings done by 'me' rater object\n ArrayList<String> myRatedMovieID=me.getItemsRated();//here string in arraylist represents movie id\n for(int k=0;k<myRatedMovieID.size();k++)\n {\n String myMovieID=myRatedMovieID.get(k);\n if(other.hasRating(myMovieID))//agar mera movie id dusra ka paas hai to \n {\n double myrating=me.getRating(myMovieID)-5;//mera rating lo usme 5 ghatao\n double otherrating=other.getRating(myMovieID)-5;//dusra ka wahi movie ka rating lo aur 5 ghatao\n p=p+(myrating*otherrating);//uske baad dot product kar do\n }\n }\n return p;\n }",
"float norm();",
"public static Vector cross(Vector a, Vector b) {\r\n if(a.getDimension() == 3 && b.getDimension() == 3)\r\n return new Vector(a.components[1] * b.components[2] - a.components[2]\r\n * b.components[1], -a.components[0] * b.components[2]\r\n + a.components[2] * b.components[0], a.components[0]\r\n * b.components[1] - a.components[1] * b.components[0]);\r\n else if (a.getDimension() == 2 && b.getDimension() == 2)\r\n return new Vector(a.components[0] * b.components[1] - a.components[1] * b.components[0]);\r\n else return null;\r\n }"
] | [
"0.7981854",
"0.7861348",
"0.75364363",
"0.745505",
"0.72569144",
"0.72014374",
"0.7158869",
"0.71489346",
"0.71178687",
"0.69017845",
"0.6829775",
"0.68200076",
"0.68032575",
"0.6747962",
"0.66900676",
"0.6686332",
"0.66627103",
"0.6644595",
"0.663329",
"0.6626235",
"0.6585693",
"0.6579042",
"0.6559908",
"0.6544226",
"0.65189433",
"0.64926815",
"0.64797604",
"0.6453699",
"0.6448887",
"0.6444369",
"0.6421325",
"0.64160454",
"0.6409077",
"0.63976187",
"0.6388392",
"0.63705534",
"0.63479257",
"0.6326016",
"0.6324875",
"0.63156146",
"0.6302384",
"0.6272824",
"0.6272482",
"0.6265689",
"0.62420046",
"0.62117946",
"0.6210655",
"0.6200113",
"0.61933887",
"0.6158797",
"0.61563396",
"0.611724",
"0.60873634",
"0.60762465",
"0.60727036",
"0.60589874",
"0.60175484",
"0.59451854",
"0.5943521",
"0.5905302",
"0.590012",
"0.5896315",
"0.587378",
"0.5859138",
"0.58250153",
"0.58201146",
"0.57794994",
"0.5760445",
"0.57593954",
"0.57539684",
"0.5724182",
"0.56798786",
"0.5635869",
"0.55843645",
"0.5577002",
"0.55731714",
"0.5569677",
"0.5540625",
"0.55374503",
"0.5531558",
"0.55011976",
"0.5480453",
"0.5474415",
"0.5474248",
"0.5440617",
"0.5425843",
"0.54080415",
"0.53762907",
"0.53741515",
"0.53652304",
"0.53598106",
"0.5353499",
"0.5302685",
"0.52952194",
"0.5281264",
"0.52699375",
"0.5242211",
"0.52375877",
"0.5215239",
"0.5203015"
] | 0.64377713 | 30 |
Finds the orthonormal basis | public void makeOrthonormalBasis(Vector3 a) {
this.normalize();
Vector3 b = new Vector3();
b.setAsSelf(this.vectorProduct(a));
if (b.squareMagnitude() == 0) return;
b.normalize();
a.setAsSelf(b.vectorProduct(this));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ORDecomposition createORDecomposition();",
"public Matrix basis() {\r\n\t\treturn new Matrix(LeapJNI.Hand_basis(this.swigCPtr, this), true);\r\n\t}",
"public double frobeniusNorm(){\r\n \tdouble norm=0.0D;\r\n \tfor(int i=0; i<this.ncol; i++){\r\n \t\tfor(int j=0; j<this.nrow; j++){\r\n \t\tnorm=hypot(norm, Math.abs(matrix[i][j]));\r\n \t\t}\r\n \t}\r\n \treturn norm;\r\n \t}",
"public abstract O reciprocal();",
"float norm2();",
"float norm();",
"public abstract void recalcNormalizationExtrema();",
"public double basis()\n\t{\n\t\treturn _lsPeriod.get (0).basis();\n\t}",
"AlgebraicTerm getAlgebraicTermR();",
"Boolean isOmitNorms();",
"@Override\n\tpublic double getRx() {\n\ndouble object = 0;\n for(int i = 0; i < x.length; i++){\n object += Math.pow(y[i] - ( theta[0] + theta[1] * x[i]), 2);\n }\n return object / 2 ;\n }",
"@Override\n public Norm duality() {\n return op;\n }",
"godot.wire.Wire.Basis getBasis();",
"public double norm() {\n\t\thomogenize();\n\t\treturn Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);\n\t}",
"public double oneNorm(){\r\n \tdouble norm = 0.0D;\r\n \tdouble sum = 0.0D;\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\tsum+=Math.abs(this.matrix[i][j]);\r\n \t\t}\r\n \t\tnorm=Math.max(norm,sum);\r\n \t}\r\n \treturn norm;\r\n \t}",
"protected String getIntermediateFormula() {\n if ( isGlobal() ) {\n return globalConstraint;\n } else if ( isRoleBased() ) {\n return roleMapToFormula();\n } else {\n // rls is disabled\n return EMPTY_STRING;\n }\n }",
"public double norm2();",
"public void dorbdb_(CHARACTER TRANS,CHARACTER SIGNS,INTEGER M,INTEGER P,INTEGER Q,double[] X11,INTEGER LDX11,double[] X12,INTEGER LDX12,double[] X21,INTEGER LDX21,double[] X22,INTEGER LDX22,double[] THETA,double[] PHI,double[] TAUP1,double[] TAUP2,double[] TAUQ1,double[] TAUQ2,double[] WORK,INTEGER LWORK,INTEGER INFO);",
"public boolean isOrthogonal() {\n try {\n Matrix product = this.product(traspose(this));\n return this.isIdentity();\n }catch(Exception e) {\n System.out.println(\"Errore, nel traspose la matrice deve essere quadrata\");\n return false;\n }\n }",
"public static double nextReverseLandau() {\n \n\t\tdouble a = 0.1; //Landau parameters: 0.1 gives a good realistic shape\n\t\tdouble b = 0.1;\n\t\tdouble mu = 0; //Most probable value\n\t\tdouble ymax = b/a*Math.exp(-0.5); // value of function at mu\n\t\tdouble x1,x2,y;\n\n\t\tdo {\n\t\t\tx1 = 4 * _random.nextDouble() - 2; // between -2.0 and 2.0 \n\t\t\ty = b/a*Math.exp(-0.5*((mu-x1)/a + Math.exp(-(mu-x1)/a)));\n\t\t\tx2 = ymax * _random.nextDouble();\n\t\t} while (x2 > y);\n \n\t\treturn x1;\n\t}",
"boolean hasNormal();",
"public boolean isOrthogonal() {\n\t\treturn isHorizontal() || isVertical();\n\t}",
"boolean hasBasis();",
"public static double norme(double V[]){\r\n\t\tdouble norme;\r\n\t\tnorme = Math.sqrt( Math.pow(V[0], 2) + Math.pow(V[1], 2) + Math.pow(V[2], 2) );\r\n\t\treturn norme;\t\r\n\t}",
"IVec3 normalized();",
"public double getRotation()\n\t{\n\t\tdouble determinant = this.basisDeterminant();\n\t\tTransform2D m = orthonormalized();\n\t\tif (determinant < 0) \n\t\t{\n\t\t\tm.scaleBasis(new Vector2(1, -1)); // convention to separate rotation and reflection for 2D is to absorb a flip along y into scaling.\n\t\t}\n\t\treturn Math.atan2(m.matrix[0].y, m.matrix[0].x);\n\t}",
"godot.wire.Wire.Basis getBasisValue();",
"public static native double OpenMM_AmoebaInPlaneAngleForce_getAmoebaGlobalInPlaneAngleSextic(PointerByReference target);",
"public static native double OpenMM_AmoebaInPlaneAngleForce_getAmoebaGlobalInPlaneAnglePentic(PointerByReference target);",
"public double l1_norm()\r\n {\r\n double sum = 0.0;\r\n for (Double c : this.values())\r\n sum += Math.abs(c);\r\n\r\n return sum;\r\n }",
"public void makeOrthnormalBasisWithProvided(Vector3 a, Vector3 b, Vector3 c) {\n\t\ta.normalize();\n\t\tc.setAsSelf(a.vectorProduct(b));\n\t\tif(c.squareMagnitude() == 0) return;\n\t\tc.normalize();\n\t\tb.setAsSelf(c.vectorProduct(a));\n\t}",
"public static native double OpenMM_AmoebaInPlaneAngleForce_getAmoebaGlobalInPlaneAngleQuartic(PointerByReference target);",
"static double[] getiso(double mass, int len)\r\n {\r\n double lambda = mass / 1800;\r\n double lambdaExp = Math.exp(-lambda);\r\n\r\n double[] r = new double[len];\r\n\r\n for (int i = 0; i < len; i++)\r\n if (i < fact.length)\r\n r[i] = (double) (Math.pow(lambda, i) / fact[i] * lambdaExp);\r\n else\r\n r[i] = 0; // Not really zero, but too small to matter\r\n\r\n return r;\r\n }",
"public double infinityNorm(){\r\n \tdouble norm = 0.0D;\r\n \tdouble sum = 0.0D;\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\tsum+=Math.abs(this.matrix[i][j]);\r\n \t\t}\r\n \t\tnorm=Math.max(norm,sum);\r\n \t}\r\n \treturn norm;\r\n \t}",
"public CArrayFacade<Float> getOrn() throws IOException\n\t{\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Float.class};\n\t\tint[] __dna__dimensions = new int[]{\n\t\t\t4\n\t\t};\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new CArrayFacade<Float>(__io__address + 48, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new CArrayFacade<Float>(__io__address + 48, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t}\n\t}",
"public void dorml2_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER INFO);",
"public HashMap<Type, Double> getInversePossibilities() {\r\n\t\tHashMap<Type, Double> ret = new HashMap<Type, Double>();\r\n\t\tfor (Type t : Type.values()) ret.put(t, 0.0);\r\n\t\tfor (Type t : types) {\r\n\t\t\t//??? IS THIS CORRECT ??? --> Seems correct\r\n\t\t\t//get inverse of each relation that is 1.0 \r\n\t\t\tType inverseRelation = FuzzyAllenIntervalConstraint.getInverseRelation(t);\r\n\t\t\t\r\n\t\t\tHashMap<FuzzyAllenIntervalConstraint.Type, Double> possibilities = this.getPossibilities();\r\n\t\t\t\r\n\t\t\t//set poss of each inverse relation to 1.0\r\n\t\t\tret.put(inverseRelation, possibilities.get(t));\r\n\t\t\t\r\n\t\t\t//calculate the Freksa N of each inverse relation\r\n\t\t\tHashMap<FuzzyAllenIntervalConstraint.Type, Double> fr = new HashMap<FuzzyAllenIntervalConstraint.Type, Double>();\r\n\t\t\tfor(int i = 0; i < FuzzyAllenIntervalConstraint.freksa_neighbor[inverseRelation.ordinal()].length; i++)\r\n\t\t\t\tfr.put(FuzzyAllenIntervalConstraint.lookupTypeByInt(i), FuzzyAllenIntervalConstraint.getPossibilityDegree(FuzzyAllenIntervalConstraint.freksa_neighbor[inverseRelation.ordinal()][i]));\r\n\t\t\t\r\n\t\t\t//take the maximum between calculated Freksa N and previously added possibilities\r\n\t\t\t//(because this is an OR)\r\n\t\t\tfor(FuzzyAllenIntervalConstraint.Type t1: fr.keySet())\r\n\t\t\t\tret.put(t1, Math.max(ret.get(t1), fr.get(t1)));\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tSystem.out.println(\"=====================================\");\r\n\t\tSystem.out.println(\"DIRECT \" + this + \":\\n\" + this.possibilities);\r\n\t\tSystem.out.println(\"INVERSE:\\n\" + ret);\r\n\t\tSystem.out.println(\"=====================================\");\r\n\t\t*/\r\n\t\t\r\n\t\treturn ret;\r\n\t}",
"public void dorbdb2_(INTEGER M,INTEGER P,INTEGER Q,double[] X11,INTEGER LDX11,double[] X21,INTEGER LDX21,double[] THETA,double[] PHI,double[] TAUP1,double[] TAUP2,double[] TAUQ1,double[] WORK,INTEGER LWORK,INTEGER INFO);",
"abstract double getOrgZ();",
"public void dormlq_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);",
"public int mo9785x() {\n /*\n r10 = this;\n long r0 = r10.f9091i\n long r2 = r10.f9090h\n int r2 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r2 != 0) goto L_0x000a\n goto L_0x0085\n L_0x000a:\n r2 = 1\n long r4 = r0 + r2\n byte r0 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r0)\n if (r0 < 0) goto L_0x0017\n r10.f9091i = r4\n return r0\n L_0x0017:\n long r6 = r10.f9090h\n long r6 = r6 - r4\n r8 = 9\n int r1 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r1 >= 0) goto L_0x0021\n goto L_0x0085\n L_0x0021:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 7\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x002f\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x008b\n L_0x002f:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003e\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x003c:\n r6 = r4\n goto L_0x008b\n L_0x003e:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 21\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x004e\n r1 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r1\n goto L_0x008b\n L_0x004e:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r6 = r1 << 28\n r0 = r0 ^ r6\n r6 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r6\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n L_0x0085:\n long r0 = r10.mo9787z()\n int r0 = (int) r0\n return r0\n L_0x008b:\n r10.f9091i = r6\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3661d.mo9785x():int\");\n }",
"public void dorbdb1_(INTEGER M,INTEGER P,INTEGER Q,double[] X11,INTEGER LDX11,double[] X21,INTEGER LDX21,double[] THETA,double[] PHI,double[] TAUP1,double[] TAUP2,double[] TAUQ1,double[] WORK,INTEGER LWORK,INTEGER INFO);",
"boolean getNormal();",
"public MLMOEA_Ang(Problem problem) {\r\n\t\tsuper(problem);\r\n\t\tzideal_ = new double[problem.getNumberOfObjectives()];\r\n\t\tznadir_ = new double[problem.getNumberOfObjectives()];\r\n\t}",
"public void inOrden(Node root) {\n\r\n if (root != null) {\r\n inOrden(root.left);\r\n expresion = expresion + root.value + \"\";\r\n inOrden(root.right);\r\n }\r\n\r\n }",
"@objid (\"5d1e9f76-f0d9-4b67-a34e-4ac268bb9498\")\n Operation getOBase();",
"private int computeZi(int i) {\r\n\t\tdouble counter = 1;\r\n\t\tfor (int j = 1; j <= Party.n; j++) {\r\n\t\t\tif (j != i) {\r\n\t\t\t\tcounter = counter * Polynomial.fieldDiv(-j, i - j);\r\n\t\t\t\t// ((double)-j/ (double)(i-j));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn Gate.modField((int) counter);\r\n\t}",
"public static native double OpenMM_AmoebaAngleForce_getAmoebaGlobalAngleQuartic(PointerByReference target);",
"public Matrix getBasis() {\n\t\treturn eigenvectors;\n\t}",
"public void dorgqr_(INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] WORK,INTEGER LWORK,INTEGER INFO);",
"@java.lang.Override\n public boolean hasBasis() {\n return basis_ != null;\n }",
"@java.lang.Override\n public godot.wire.Wire.Basis getBasis() {\n return basis_ == null ? godot.wire.Wire.Basis.getDefaultInstance() : basis_;\n }",
"public double darPeriodoOrbital( )\n {\n return periodoOrbitalSinodico;\n }",
"public static native double OpenMM_AmoebaAngleForce_getAmoebaGlobalAnglePentic(PointerByReference target);",
"private void or() {\n // PROGRAM 1: Student must complete this method\n //loop through output array\n for (int i = 0; i < output.length; i++) {\n //take the or of index i of inputA and inputB and place result in output[i]\n output[i] = (inputA[i] | inputB[i]);\n }\n }",
"private static double FindR2(double[] _y, double[] _x)\n {\n double avg = FindMeanY(_y);\n double sum = 0;\n double yQuad = 0;\n\n // a = SolutionMatrix.get(1, 0);\n // b = SolutionMatrix.get(2, 0);\n // find average\n for(int i = 0; i < _y.length; i ++)\n {\n yQuad += Math.pow((_y[i] - avg), 2);\n }\n\n double Usefulnum1 = 0;\n double Usefulnum2 = 0;\n double Usefulnum3 = 0;\n\n double[] Equation = new double[d+1];\n\n // find equation\n for(int i = 0; i < SolutionMatrix.getColumnDimension(); i++)\n {\n //Usefulnum1 = SolutionMatrix.get((SolutionMatrix.getColumnDimension() - 1 - i), 0) * _x[i]; // a...z value\n for (int jj = d; jj > 0; jj--)\n {\n Usefulnum2 = SolutionMatrix.get(SolutionMatrix.getColumnDimension() - jj, 0) * _x[i];\n Usefulnum3 += Math.pow(_y[i] - Usefulnum2, 2);\n }\n }\n System.out.print(Usefulnum3);\n for(int i = 0; i < _y.length; i ++)\n {\n\n }\n\n return sum;\n }",
"ANDDecomposition createANDDecomposition();",
"public double getAngleYZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.x/l);\r\n\t}",
"godot.wire.Wire.Vector3 getNormal();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public void dormrz_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,INTEGER L,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);",
"private double binomeN_I(int n, int i) {\n double ni;\n double a1 = factorial(n);\n double a2 = factorial(i);\n double a3 = factorial(n - i);\n ni = a1 / (a2 * a3);\n return ni;\n }",
"protected static float[] getBinomialKernelSigmaFour() {\n // sigma=4 n=64\n // NOTE: the curvature tests for the non-binomial kernal sigma four \n // are better, so use those.\n float a = 1.f/82.0f;\n return new float[]{\n (float) (1.4677788298671463E-5) * a, (float) (5.577559553495156E-5) * a,\n (float) (1.924887094025772E-4) * a, (float) (6.059829740451504E-4) * a,\n (float) (0.0017466568075419043) * a, (float) (0.004623503314081511) * a,\n (float) (0.011267648817280127) * a, (float) (0.02533103004787036) * a,\n (float) (0.05261060086865382) * a, (float) (0.10104575722392242) * a,\n (float) (0.17954411407556464) * a, (float) (0.2950768483502758) * a,\n (float) (0.4480796586059744) * a, (float) (0.627311522048364) * a,\n (float) (0.8065433854907539) * a, (float) (0.9459459459459458) * a,\n (float) (1.0) * a, (float) (0.9310344827586206) * a, (float) (0.7241379310344828) * a,\n (float) (0.3971078976640712) * a, (float) (0.0) * a, (float) (-0.3971078976640712) * a,\n (float) (-0.7241379310344828) * a, (float) (-0.9310344827586206) * a,\n (float) (-1.0) * a, (float) (-0.9459459459459458) * a, (float) (-0.8065433854907539) * a,\n (float) (-0.627311522048364) * a, (float) (-0.4480796586059744) * a,\n (float) (-0.2950768483502758) * a, (float) (-0.17954411407556464) * a,\n (float) (-0.10104575722392242) * a, (float) (-0.05261060086865382) * a,\n (float) (-0.02533103004787036) * a, (float) (-0.011267648817280127) * a,\n (float) (-0.004623503314081511) * a, (float) (-0.0017466568075419043) * a,\n (float) (-6.059829740451504E-4) * a, (float) (-1.924887094025772E-4) * a,\n (float) (-5.577559553495156E-5) * a, (float) (-1.4677788298671463E-5) * a\n };\n }",
"AlgebraicTerm getAlgebraicTermL();",
"double[] getOrigin();",
"public double Ix() {\r\n\t\tdouble ix = 0;\r\n\t\tfor(int i = 0;i < liczbaPunktow;i++) {\r\n\t\t\tix = ix + A[i].getMasa() * (Math.pow((XYZC[1] - A[i].getPozY()),2) + Math.pow((XYZC[2] - A[i].getPozZ()),2));\r\n\t\t}\r\n\t\treturn ix;\r\n\t}",
"public void dormqr_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);",
"@Override\n public double nrm2(INDArray x) {\n return NativeBlas.snrm2(x.length(), x.data(), 0, 1);\n }",
"private NodoBin<T> rIzquierda(NodoBin<T> r) {\n NodoBin<T> x = r.getDer();\n r.setDer(x.getIzq());\n x.setIzq(r);\n return x;\n }",
"public static native double OpenMM_AmoebaAngleForce_getAmoebaGlobalAngleSextic(PointerByReference target);",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"protected static float[] getBinomialKernelSigmaOneSQRT2() {\n float a = 1.f/256.f;\n return new float[]{a*3, a*12, a*27, a*28,\n 0, -28*a, -27*a, -12*a, -3*a};\n }",
"private double determinanteCuadrada(){\n\t\tdouble deter = 1;\n\t\tdouble [][] matriz = this.clone().getComponentes();\n\t\t\t\t\n\t\tfor(int i=0;i<this.dimensionCol;i++){\n\t\t\tif(matriz[i][i]==0){\n\t\t\t\tif(this.intercambiarConRenglonNoNuloPorDebajo(matriz, i)==true){\n\t\t\t\t\tdeter *= (-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.llevarACeroPosicionesPorDebajo(matriz, i);\n\t\t\tdeter*=matriz[i][i];\n\t\t}\n\t\t\t\t\n\t\treturn deter;\n\t}",
"boolean hasBasisValue();",
"private Matrix orthes(Matrix x) {\n // Working storage for nonsymmetric algorithm.\n Vector ort = new DenseVector(n);\n Matrix hessenBerg = new DenseMatrix(n, n).assign(x);\n\n // This is derived from the Algol procedures orthes and ortran,\n // by Martin and Wilkinson, Handbook for Auto. Comp.,\n // Vol.ii-Linear Algebra, and the corresponding\n // Fortran subroutines in EISPACK.\n\n int low = 0;\n int high = n - 1;\n\n for (int m = low + 1; m <= high - 1; m++) {\n\n // Scale column.\n\n Vector hColumn = hessenBerg.viewColumn(m - 1).viewPart(m, high - m + 1);\n double scale = hColumn.norm(1);\n\n if (scale != 0.0) {\n // Compute Householder transformation.\n\n ort.viewPart(m, high - m + 1).assign(hColumn, Functions.plusMult(1 / scale));\n double h = ort.viewPart(m, high - m + 1).getLengthSquared();\n\n double g = Math.sqrt(h);\n if (ort.getQuick(m) > 0) {\n g = -g;\n }\n h -= ort.getQuick(m) * g;\n ort.setQuick(m, ort.getQuick(m) - g);\n\n // Apply Householder similarity transformation\n // H = (I-u*u'/h)*H*(I-u*u')/h)\n\n Vector ortPiece = ort.viewPart(m, high - m + 1);\n for (int j = m; j < n; j++) {\n double f = ortPiece.dot(hessenBerg.viewColumn(j).viewPart(m, high - m + 1)) / h;\n hessenBerg.viewColumn(j).viewPart(m, high - m + 1).assign(ortPiece, Functions.plusMult(-f));\n }\n\n for (int i = 0; i <= high; i++) {\n double f = ortPiece.dot(hessenBerg.viewRow(i).viewPart(m, high - m + 1)) / h;\n hessenBerg.viewRow(i).viewPart(m, high - m + 1).assign(ortPiece, Functions.plusMult(-f));\n }\n ort.setQuick(m, scale * ort.getQuick(m));\n hessenBerg.setQuick(m, m - 1, scale * g);\n }\n }\n\n // Accumulate transformations (Algol's ortran).\n\n v.assign(0);\n v.viewDiagonal().assign(1);\n\n for (int m = high - 1; m >= low + 1; m--) {\n if (hessenBerg.getQuick(m, m - 1) != 0.0) {\n ort.viewPart(m + 1, high - m).assign(hessenBerg.viewColumn(m - 1).viewPart(m + 1, high - m));\n for (int j = m; j <= high; j++) {\n double g = ort.viewPart(m, high - m + 1).dot(v.viewColumn(j).viewPart(m, high - m + 1));\n // Double division avoids possible underflow\n g = g / ort.getQuick(m) / hessenBerg.getQuick(m, m - 1);\n v.viewColumn(j).viewPart(m, high - m + 1).assign(ort.viewPart(m, high - m + 1), Functions.plusMult(g));\n }\n }\n }\n return hessenBerg;\n }",
"abstract double rightProbability();",
"public Matrix RSW2ECI()\n\t{\n\t\tVectorN r = this.getR();\n\t\t//VectorN v = this.getV();\n\t\tVectorN h = this.getH();\n\t\tVectorN rhat = r.unitVector();\n\t\tVectorN what = h.unitVector();\n\t\tVectorN s = what.crossProduct(rhat);\n\t\tVectorN shat = s.unitVector();\n\t\tMatrix out = new Matrix(3, 3);\n\t\tout.setColumn(0, rhat);\n\t\tout.setColumn(1, shat);\n\t\tout.setColumn(2, what);\n\t\treturn out;\n\t}",
"String getOr_op();",
"public void test_sf_969475() {\n String SOURCE=\n \"<?xml version='1.0'?>\" +\n \"<!DOCTYPE owl [\" +\n \" <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' >\" +\n \" <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#' >\" +\n \" <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#' >\" +\n \" <!ENTITY owl 'http://www.w3.org/2002/07/owl#' >\" +\n \" <!ENTITY dc 'http://purl.org/dc/elements/1.1/' >\" +\n \" <!ENTITY base 'http://jena.hpl.hp.com/test' >\" +\n \" ]>\" +\n \"<rdf:RDF xmlns:owl ='&owl;' xmlns:rdf='&rdf;' xmlns:rdfs='&rdfs;' xmlns:dc='&dc;' xmlns='&base;#' xml:base='&base;'>\" +\n \" <owl:ObjectProperty rdf:ID='p0'>\" +\n \" <owl:inverseOf>\" +\n \" <owl:ObjectProperty rdf:ID='q0' />\" +\n \" </owl:inverseOf>\" +\n \" </owl:ObjectProperty>\" +\n \" <owl:ObjectProperty rdf:ID='p1'>\" +\n \" <owl:inverseOf>\" +\n \" <owl:ObjectProperty rdf:ID='q1' />\" +\n \" </owl:inverseOf>\" +\n \" </owl:ObjectProperty>\" +\n \"</rdf:RDF>\";\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM );\n m.read( new StringReader( SOURCE ), null );\n \n ObjectProperty p0 = m.getObjectProperty( \"http://jena.hpl.hp.com/test#p0\");\n Object invP0 = p0.getInverseOf();\n \n assertEquals( m.getResource( \"http://jena.hpl.hp.com/test#q0\"), invP0 );\n assertTrue( \"Should be an ObjectProperty facet\", invP0 instanceof ObjectProperty );\n \n ObjectProperty q1 = m.getObjectProperty( \"http://jena.hpl.hp.com/test#q1\");\n Object invQ1 = q1.getInverse();\n \n assertEquals( m.getResource( \"http://jena.hpl.hp.com/test#p1\"), invQ1 );\n assertTrue( \"Should be an ObjectProperty facet\", invQ1 instanceof ObjectProperty );\n }",
"IRequirement or(IRequirement constraint);",
"private void calc_q0(double[] llr) {\n\t\tfor (int i=noffs; i<llr.length; i++)\n\t\t\tq0[i-noffs] = Math.exp(llr[i]) / (1 + Math.exp(llr[i])); // beliefs\t\t\t\n\t}",
"public double mod() \n\t{\n if (x!=0 || y!=0) {\n return Math.sqrt(x*x+y*y); //distance formular\n } else {\n return 0.0D;\n }\n }",
"double getAxon();",
"OrthogonalDir(int rSign, int cSign) {\r\n\r\n //self-check: code will not compile w/ non-orthogonal directions\r\n if (rSign != 0 && cSign != 0) {\r\n throw new IllegalArgumentException(\"Marble Solitaire moves must only be in one direction\");\r\n }\r\n\r\n this.rSign = rSign / Math.max(Math.abs(rSign), 1); //avoid div by 0 w/o changing behavior\r\n this.cSign = cSign / Math.max(Math.abs(cSign), 1); //avoid div by 0 w/o changing behavior\r\n }",
"boolean isUF(Formula f);",
"private void writeFormula(URNspec urn) throws IOException {\n\n\t\teleForMap = new HashMap<IntentionalElement, StringBuffer>();\n\t\tStringBuffer eleFormula;\n\t\tStringBuffer function;\n\t\t// initial all the symbols\n\t\twrite(\"#inital all the variable\\n\");\n\t\tfor (Iterator it = urn.getGrlspec().getIntElements().iterator(); it.hasNext();) {\n\t\t\tIntentionalElement element = (IntentionalElement) it.next();\n\t\t\tStringBuffer variable = new StringBuffer();\n\t\t\tvariable.append(modifyName(element.getName()));\n\t\t\tvariable.append(Equal);\n\t\t\tvariable.append(\"Symbol\");\n\t\t\tvariable.append(LeftBracker);\n\t\t\tvariable.append(\"'\");\n\t\t\tvariable.append(modifyName(element.getName()));\n\t\t\tvariable.append(\"'\");\n\t\t\tvariable.append(RightBracker);\n\t\t\twrite(variable.toString());\n\t\t\twrite(\"\\n\");\n\t\t}\n\t\t\n\t\t\n\t\t// iterate all the leaf element\n\t\tfor (Iterator it = urn.getGrlspec().getIntElements().iterator(); it.hasNext();) {\n\t\t\tIntentionalElement element = (IntentionalElement) it.next();\n\t\t\teleFormula = new StringBuffer();\n\t\t\tfunction = new StringBuffer();\n\t\t\tfunction.append(modifyName(element.getName()));\n\t\t\t// if the element is the leaf\n\t\t\tif (element.getLinksDest().size() == 0) {\n\t\t\t\t// System.out.println(element.getName() + \"leaf\");\n\t\t\t\tif (element.getType().getName().compareTo(\"Indicator\") == 0) {\n\t\t\t\t\tIndicator indicator = (Indicator) element;\n\t\t\t\t\tif (indicator.getWorstValue() == indicator.getTargetValue()) {\n\t\t\t\t\t\teleFormula.append(modifyName(element.getName()));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tStringBuffer indicatorFor = indicatorFor(element);\n\t\t\t\t\t\teleFormula.append(indicatorFor);\n\t\t\t\t\t\tfunction.append(Equal);\n\t\t\t\t\t\tfunction.append(eleFormula);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\teleFormula.append(modifyName(element.getName()));\n\t\t\t\t}\n\t\t\t\telementSet.add(\"'\" + modifyName(element.getName()) + \"'\");\n\t\t\t\teleForMap.put(element, eleFormula);\n\t\t\t}\n\t\t}\n\t\tfor (Iterator it = urn.getGrlspec().getIntElements().iterator(); it.hasNext();) {\n\t\t\tIntentionalElement element = (IntentionalElement) it.next();\n\t\t\teleFormula = new StringBuffer();\n\t\t\tfunction = new StringBuffer();\n\t\t\tfunction.append(modifyName(element.getName()));\n\n\t\t\tif (element.getLinksDest().size() != 0) {\n\t\t\t\teleFormula.append(writeLink(element));\n\t\t\t\tfunction.append(Equal);\n\t\t\t\tfunction.append(eleFormula);\n\t\t\t\twrite(function.toString());\n\t\t\t\twrite(\"\\n\");\n\t\t\t\teleForMap.put(element, eleFormula);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public int[] predict(int[] O) {\n\n\t\tint T = O.length;\n\t\tint[] Q = new int[T];\n\n\t\tdouble[] phi_t = allocateVector(N);\n\t\tdouble[] phi_t_plus_1 = allocateVector(N);\n\t\tdouble[] temp_phi = null;\n\n\t\tint[][] psi = new int[T][];\n\t\tfor (int t = 0; t < T; t++) {\n\t\t\tpsi[t] = new int[N];\n\t\t}\n\n\t\tdouble[] V = allocateVector(N);\n\n\t\t// Viterbi algorithm using logarithms\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tphi_t[i] = log(pi[i]) + log(B[i][O[0]]);\n\t\t}\n\n\t\tint t = 1;\n\t\tint maxIdx = -1;\n\t\tdouble maxVal = 0;\n\t\tdo {\n\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\tV[i] = phi_t[i] + log(A[i][j]);\n\t\t\t\t}\n\t\t\t\tmaxIdx = argmax(V);\n\t\t\t\tmaxVal = V[maxIdx];\n\t\t\t\tphi_t_plus_1[j] = maxVal + log(B[j][O[t]]);\n\t\t\t\tpsi[t][j] = maxIdx;\n\t\t\t}\n\t\t\ttemp_phi = phi_t;\n\t\t\tphi_t = phi_t_plus_1;\n\t\t\tphi_t_plus_1 = temp_phi;\n\t\t\tt = t + 1;\n\t\t} while (t < T);\n\n\t\t// display(psi);\n\n\t\tint i_t = argmax(phi_t);\n\t\tQ[T - 1] = i_t;\n\t\tt = T;\n\t\tdo {\n\t\t\ti_t = psi[t - 1][i_t];\n\t\t\tQ[t - 1 - 1] = i_t;\n\t\t\tt = t - 1;\n\t\t} while (t > 1);\n\n\t\treturn Q;\n\n\t}",
"@Test\n public void test16() throws Throwable {\n Complex complex0 = new Complex(0.0, 236.4);\n Complex complex1 = complex0.asin();\n Complex complex2 = complex1.atan();\n Complex complex3 = complex0.sin();\n Complex complex4 = (Complex)complex0.readResolve();\n double double0 = complex0.abs();\n Complex complex5 = complex0.log();\n Complex complex6 = complex1.sin();\n Complex complex7 = complex0.cos();\n String string0 = complex3.toString();\n Complex complex8 = complex1.multiply(complex2);\n try { \n complex3.nthRoot((-1));\n } catch(IllegalArgumentException e) {\n //\n // cannot compute nth root for null or negative n: -1\n //\n assertThrownBy(\"org.apache.commons.math.MathRuntimeException\", e);\n }\n }",
"public double norm() {\r\n return Math.sqrt(innerProduct(this));\r\n }",
"public double Iy() {\r\n\t\tdouble iy = 0;\r\n\t\tfor(int i = 0;i < liczbaPunktow;i++) {\r\n\t\t\tiy = iy + A[i].getMasa() * (Math.pow((XYZC[0] - A[i].getPozX()),2) + Math.pow((XYZC[2] - A[i].getPozZ()),2));\r\n\t\t}\r\n\t\treturn iy;\r\n\t}",
"private double[] y_angle(VectorN x, double t, int p, VectorN s, int inoise){\r\n\t\t//int lx = x.length;\r\n\t\t\r\n\t\t//% Compute radial distance from Earth\r\n\t\tVectorN r = x.get(0,3);\r\n\t\t//double rmag=r.mag();\r\n\t\tVectorN v = new VectorN(3);\r\n\t\t//% Determine unit vector observation 1 (Either Earth or Moon)\r\n\t\tswitch(p){\r\n\t\tcase BODY_EARTH: //% Earth obs\r\n\t\t\tv=r.times(-1.0);\r\n\t\t\tbreak;\r\n\t\tcase BODY_MOON: //% Moon obs\r\n\t\t\t//% Get lunar position relative to the Earth\r\n\t\t\t//* TODO watch units\r\n\t\t\tVectorN xm=new VectorN(ephem.get_planet_pos(DE405_Body.GEOCENTRIC_MOON, TimeUtils.UTCtoTT(mjd0+t/86400)));\r\n\t\t\t//getmoon(jd0+t/86400); \r\n\t\t\tv=xm.minus(r);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.err.println(\"Invalid flag for vector observation 1.\");\r\n\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\tVectorN u=v.unitVector();\r\n\t\tMatrix eye = new Matrix(3);\r\n\t\tMatrix dudx=(eye.minus(u.outerProduct(u))).divide(v.mag()); \r\n\t\t\r\n\t\t//% Compute measurement cos(theta)\r\n\t\tdouble y=s.dotProduct(u);\r\n\t\t\r\n\t\tif (inoise==1){\r\n\t\t\tdouble[] arnd_abias = camerr(v.mag(),p); //% 1-sigma noise and bias on angular measurement\r\n\t\t\ty=Math.cos(Math.acos(y)+arnd_abias[0]*randn()+arnd_abias[1]);\r\n\t\t}else{\r\n\t\t\t//y= y + x.x[i_yanglebias];\r\n\t\t}\r\n\t\t\r\n\t\t//% Compute Jacobian\r\n\t\t//dydx= -[s'*dudx zeros(1,3)];\r\n\t\tVectorN tmp = new VectorN(s.times(dudx),new VectorN(3)).times(-1.0);\r\n\t\tdouble[] dydx= tmp.x;\r\n\t\t\r\n\t\t\r\n\t\t//% % Assume the bias is on the pseudo measurement rather than angle itself\r\n\t\t//% if lx==8\r\n\t\t//% y=y+x(7);\r\n\t\t//% dydx=[dydx 1 0];\r\n\t\t//% end\r\n\t\tdouble[] out = new double[x.length+1];\r\n\t\tout[0] = y;\r\n\t\tfor(int i=1; i<7; i++) out[i] = dydx[i-1];\r\n\t\treturn out;\r\n\t}",
"private static int getRelationalOffset(Node basicNode, int absoluteOffset) {\n \n \t\treturn absoluteOffset - ((IndexedRegion) basicNode).getStartOffset();\n \t}",
"static int[][] inverse(int A[][]) \n { \n int inverse[][] = new int[4][4];\n // Find determinant of A[][] \n int det = determinant(A, N)%26; \n System.out.println(det);\n if (det == 0) \n { \n System.out.print(\"Singular matrix, can't find its inverse\"); \n return null; \n } \n \n // Find adjoint \n int [][]adj = new int[N][N]; \n adjoint(A, adj); \n \n // Find Inverse using formula \"inverse(A) = adj(A)/det(A)\" \n for (int i = 0; i < N; i++) \n for (int j = 0; j < N; j++) {\n inverse[i][j] = adj[i][j]/det; \n inverse[i][j] = inverse[i][j]%26;\n System.out.print(inverse[i][j]);\n }\n return inverse; \n }",
"godot.wire.Wire.BasisOrBuilder getBasisOrBuilder();",
"private int getCondensedIndex(int n, int i, int j) {\n if (i < j) {\n return n * i - (i * (i + 1) / 2) + (j - i - 1);\n }\n else if (i > j) {\n return n * j - (j * (j + 1) / 2) + (i - j - 1);\n }\n else{\n return 0;\n }\n }",
"public void dorbdb6_(INTEGER M1,INTEGER M2,INTEGER N,double[] X1,INTEGER INCX1,double[] X2,INTEGER INCX2,double[] Q1,INTEGER LDQ1,double[] Q2,INTEGER LDQ2,double[] WORK,INTEGER LWORK,INTEGER INFO);",
"public double getEquinox();",
"private static double [][] exe_helper (double [] rf) throws Exception {\r\n\t\r\n\t\tint p1 = rf.length; // [nf,p1]=size(rf);\r\n\t\tint p0 = p1-1;\r\n\t\tdouble [] rr = null;\r\n\t\tdouble [] ar = null;\r\n\t\t\r\n\t\tif (p0!=0)\r\n\t\t{\r\n\t\t\tdouble [] a = new double [] {rf[1]}; //a = rf(:,2); // array eith a single elemtne, at the moment\r\n\r\n\t\t\t// rr=[ones(nf,1) -a zeros(nf,p0-1)];\r\n\t\t\trr = new double[p0+1];\r\n\t\t\tArrays.fill(rr, 0.0);\r\n\t\t\trr[0] = 1;\r\n\t\t\trr[1] = -a[0];\r\n\r\n\t\t\t// e = (a.^2-1);\r\n\t\t\tdouble e = a[0]*a[0]-1;\r\n\r\n\t\t\tfor (int n = 2; n<=p0; n++) // for n = 2:p0\r\n\t\t\t{\r\n\t\t\t\tdouble k = rf[n]; // k=rf(:,n+1); // It s a column vector\r\n\r\n\t\t\t\t// rr(:,n+1) =k.*e - sum(rr(:,n:-1:2).*a,2);\r\n\t\t\t\trr[n] = k*e - MyMath.sum(MyMath.arrayTimes(MyMath.select(rr, n-1, 1, -1), a));\r\n\r\n\t\t\t\t// a = [a+k(:,ones(1,n-1)).*a(:,n-1:-1:1) k];\r\n\t\t\t\tdouble [] aa = new double[a.length +1];\r\n\t\t\t\tfor (int i=0; i<a.length; i++)\r\n\t\t\t\t\taa[i] = a[i] + k*a[n-2-i];\r\n\t\t\t\taa[aa.length-1] = k;\r\n\t\t\t\ta = aa;\r\n\r\n\t\t\t\t// e = e.*(1-k.^2);\r\n\t\t\t\te *= (1-k*k);\r\n\t\t\t}\r\n\t\t\t \r\n\t\t\t// ar = [ones(nf,1) a];\r\n\t\t\tar = new double [1+a.length];\r\n\t\t\tar[0] = 1;\r\n\t\t\tSystem.arraycopy(a, 0, ar, 1, a.length);\r\n\t\t\t\r\n\t\t\tdouble r0 = 1.0/MyMath.sum(MyMath.arrayTimes(rr, ar)); // r0=sum(rr.*ar,2).^(-1);\r\n\t\t\t\r\n\t\t\tMyMath.timesSelf(rr, r0); // rr=rr.*r0(:,ones(1,p1));\r\n\t\t\t\r\n\t\t\t// if nargin>1 && ~isempty(p)\r\n\t\t\t// if p<p0\r\n\t\t\t// rr(:,p+2:p1)=[];\r\n\t\t\t// else\r\n\t\t\t//\r\n\t\t\t// rr=[rr zeros(nf,p-p0)];\r\n\t\t\t// af=-ar(:,p1:-1:2);\r\n\t\t\t// for i=p0+1:p\r\n\t\t\t// rr(:,i+1)=sum(af.*rr(:,i-p0+1:i),2);\r\n\t\t\t// end\r\n\t\t\t// end\r\n\t\t\t// end\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\trr = new double [] {1.0}; // rr=ones(nf,1);\r\n\t\t\tar = new double [] {1.0}; // ar=rr;\r\n\t\t}\r\n\r\n\t\treturn new double [][] {rr, ar};\r\n\t}",
"public double Iz() {\r\n\t\tdouble iz = 0;\r\n\t\tfor(int i = 0;i < liczbaPunktow;i++) {\r\n\t\t\tiz = iz + A[i].getMasa() * (Math.pow((XYZC[0] - A[i].getPozX()),2) + Math.pow((XYZC[1] - A[i].getPozY()),2));\r\n\t\t}\r\n\t\treturn iz;\r\n\t}",
"public double getO() {\n return o;\n }"
] | [
"0.59033346",
"0.52033716",
"0.5192503",
"0.50696266",
"0.50627595",
"0.5027403",
"0.49734592",
"0.4971437",
"0.49666977",
"0.49106854",
"0.48972806",
"0.48837018",
"0.48435062",
"0.4802425",
"0.47941488",
"0.4771322",
"0.4740276",
"0.4737671",
"0.47319523",
"0.4716256",
"0.4711741",
"0.47064707",
"0.4703581",
"0.46911544",
"0.4663906",
"0.46523365",
"0.46177652",
"0.46158633",
"0.46037793",
"0.4577442",
"0.45591992",
"0.45556316",
"0.45550454",
"0.45314807",
"0.4525909",
"0.45212874",
"0.4519688",
"0.45189157",
"0.45179373",
"0.45124352",
"0.45101488",
"0.4505805",
"0.44986498",
"0.4493564",
"0.44888937",
"0.4483193",
"0.44612744",
"0.44607502",
"0.4460361",
"0.4457471",
"0.44505093",
"0.44396773",
"0.44276813",
"0.44272298",
"0.44157296",
"0.44007817",
"0.43988952",
"0.4376879",
"0.4375838",
"0.43745425",
"0.43745053",
"0.4374099",
"0.4365706",
"0.43591693",
"0.43531638",
"0.43524545",
"0.4350363",
"0.4346647",
"0.4342647",
"0.43262765",
"0.43234128",
"0.4318231",
"0.43135697",
"0.4311341",
"0.43050593",
"0.4301874",
"0.4300251",
"0.42978558",
"0.42933682",
"0.42905712",
"0.42822322",
"0.42754105",
"0.4271002",
"0.4262968",
"0.4262458",
"0.42587334",
"0.42584017",
"0.42563894",
"0.42563522",
"0.4252811",
"0.42502654",
"0.4250089",
"0.42479602",
"0.42443055",
"0.42421162",
"0.4239085",
"0.42378134",
"0.42371657",
"0.42327163",
"0.42315736"
] | 0.53062564 | 1 |
Based off Millington's Example. | public void makeOrthnormalBasisWithProvided(Vector3 a, Vector3 b, Vector3 c) {
a.normalize();
c.setAsSelf(a.vectorProduct(b));
if(c.squareMagnitude() == 0) return;
c.normalize();
b.setAsSelf(c.vectorProduct(a));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void example1() {\n // moved to edu.jas.application.Examples\n }",
"private stendhal() {\n\t}",
"public static void thisDemo() {\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"public static void example2() {\n // moved to edu.jas.application.Examples\n }",
"private static void oneUserExample()\t{\n\t}",
"public static void main(String args[]) throws Exception\n {\n \n \n \n }",
"private void kk12() {\n\n\t}",
"private test5() {\r\n\t\r\n\t}",
"public static void demo() {\n\t\tlab_2_2_5();\n\n\t}",
"private void test() {\n\n\t}",
"public static void main(String[] args)\r\t{",
"public void gored() {\n\t\t\n\t}",
"private void strin() {\n\n\t}",
"@Override\n public void perish() {\n \n }",
"public void smell() {\n\t\t\n\t}",
"public static void main(String[]args) {\n\t\n\t\t\n\n}",
"public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"public static void main(String[] args) {\n \n \n \n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}",
"public void mo4359a() {\n }",
"public static void listing5_14() {\n }",
"public static void main(String[] args) {\n\t\t\n\t\t\t\n\n\t}",
"public static void main(String[] args) {\n \n \n \n \n }",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n \n }",
"public static void main(String[] args) {\n \n }",
"public static void main(String[] args) {\n \n }",
"public static void main(String[] args) {\n \n }",
"public static void main(String[] args) {\n \n }",
"public static void main(String[] args) {\n \n }",
"public void mo21877s() {\n }",
"public static void main(String[] args) {\n\n\t\t\n\t\t\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 }",
"public static void main(String[] args) {\n \n \n }",
"public static void main(String[] args) {\n \n \n }",
"public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String[] args)\r\n {\n \r\n \r\n }",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t \t\n\t \t\n\t }",
"private FlyWithWings(){\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"public static void main(String[] args) {\n example();\n }",
"public void mo38117a() {\n }",
"public static void main(String[] args) {\t\n\t\t\n\t}",
"public static void main(String[] args) {\n \r\n\t}",
"@Override\n protected void setup() {\n }",
"@Override\n public void setup() {\n }",
"@Override\n public void setup() {\n }",
"Petunia() {\r\n\t\t}",
"@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"Context mo1490b();",
"public static void main() {\n \n }",
"static void SampleItinerary()\n {\n System.out.println(\"\\n ***Everyone piles on the boat and goes to Molokai***\");\n\n bg.AdultRowToMolokai();\n bg.ChildRideToMolokai();\n bg.AdultRideToMolokai();\n bg.ChildRideToMolokai();\n }",
"public static void main(String[] args) \n\t{\n\t\t\n\t\n\t\t\n\t}",
"public void mo55254a() {\n }"
] | [
"0.55899614",
"0.5558543",
"0.5496458",
"0.53994566",
"0.53918654",
"0.53893536",
"0.5330213",
"0.5324849",
"0.53228426",
"0.5318689",
"0.5317752",
"0.5312842",
"0.5308855",
"0.528544",
"0.5261084",
"0.524968",
"0.5243115",
"0.5234732",
"0.51882416",
"0.51861346",
"0.517172",
"0.51686853",
"0.5143408",
"0.5143199",
"0.5138306",
"0.5134048",
"0.5134012",
"0.5122167",
"0.5122167",
"0.5122167",
"0.5122167",
"0.5122167",
"0.5122167",
"0.5119636",
"0.51154757",
"0.5112869",
"0.5112869",
"0.5112869",
"0.5112869",
"0.5112869",
"0.5112869",
"0.5112869",
"0.5111235",
"0.5111235",
"0.5087905",
"0.506071",
"0.506071",
"0.50526047",
"0.50471044",
"0.50471044",
"0.50471044",
"0.50471044",
"0.50429356",
"0.50393176",
"0.5038083",
"0.5037515",
"0.50324297",
"0.5029587",
"0.501635",
"0.50113726",
"0.50081164",
"0.50081164",
"0.5001155",
"0.49954677",
"0.49903375",
"0.4984263",
"0.49841243",
"0.4977261",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.4972582",
"0.49715632",
"0.49713424",
"0.4967836",
"0.49633232",
"0.49630997"
] | 0.0 | -1 |
Support methods for copying, resetting | public void setAsSelf(Vector3 vector) {
this.x = vector.x;
this.y = vector.y;
this.z = vector.z;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void copy() {\n\n\t}",
"Prototype makeCopy();",
"static void setNotCopying(){isCopying=false;}",
"static void setCopying(){isCopying=true;}",
"@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}",
"@Override\r\npublic void setNumcopy(int numcopy) {\n\tsuper.setNumcopy(numcopy);\r\n}",
"@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}",
"@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}",
"protected abstract void reset();",
"abstract void reset();",
"@Override\r\n\tpublic Buffer copy() {\n\t\t\r\n\t\treturn null;\r\n\t}",
"@Override\n public void reset() \n {\n\n }",
"static void setNotAutoCopy(){isAutoCopying=false;}",
"@Override\r\n\tpublic void resetObject() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}",
"@Override\n public void reset() {\n\n }",
"@Override\n\tpublic void reset() {\n\n\t}",
"public void reset () {}",
"protected abstract boolean reset();",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"@Override\r\n\tpublic void reset() {\n\t}",
"@Override\n public void reset() {\n }",
"private void reset() {\n }",
"@Override\r\npublic int getNumcopy() {\n\treturn super.getNumcopy();\r\n}",
"@Override\r\n\tpublic void reset() {\n\r\n\t}",
"@Override\r\n\tpublic void reset() {\n\r\n\t}",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"@Override\n\tpublic void reset() {\n\t}",
"public void reset()\n {\n current = 0;\n highWaterMark = 0;\n lowWaterMark = 0;\n super.reset();\n }",
"@Override\n\tpublic void copyReferences() {\n\t\tlateCopies = new LinkedHashMap<>();\n\n\t\tsuper.copyReferences();\n\n\t\tputAll(lateCopies);\n\t\tlateCopies = null;\n\t}",
"protected void reset() {\n\t\t}",
"T copy();",
"public void reset() {\n\t\t\t\t\r\n\t\t\t}",
"void reset() ;",
"@Override\n\tvoid reset() {\n\t\t\n\t}",
"@Override\n\tpublic CanvasItem copy() {\n\t\treturn null;\n\t}",
"@Override\n public void reset()\n {\n super.reset();\n }",
"public void reset()\r\n/* 89: */ {\r\n/* 90:105 */ this.pos = 0;\r\n/* 91: */ }",
"public synchronized void reset() {\n }",
"@Override\n public void reset() {\n super.reset();\n }",
"public void reset() {\n\n\t}",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}",
"public void reset() {\n\n }",
"public void Duplicate()\n {\n\n tacc2 = tacc.clone();\n px2 = px.clone();\n py2 = py.clone();\n pz2 = pz.clone();\n\n tgyro2 = tgyro.clone();\n\n accx2 = accx.clone();\n accy2 = accy.clone();\n accz2 = accz.clone();\n\n lng2 = lng.clone();\n lat2 = lat.clone();\n }",
"public void performCopy() {\n \t\ttext.copy();\n \t}",
"@Override\n\tpublic Expression copy() {\n\t\treturn null;\n\t}",
"public void reset() {\n\tthis.contents = \"\";\n\tthis.isLegalMove = false;\n }",
"public void reset(){\n }",
"public abstract INodo copy();",
"public void reset()\n\t{\n\t}",
"public void reset()\n\t{\n\t}",
"public void reassignIfNeeded() {\n\t}",
"private void reset() {\n\t\tdata.clear();\n\t}",
"public void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n }",
"Buffer copy();",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"public SoPickedPoint \ncopy() \n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPickedPoint newCopy = new SoPickedPoint(this);\n return newCopy;\n}",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();"
] | [
"0.7300167",
"0.71288687",
"0.6970996",
"0.6968612",
"0.6916925",
"0.6786073",
"0.65552115",
"0.65480506",
"0.65384823",
"0.65384823",
"0.65384823",
"0.65384823",
"0.6535297",
"0.6531756",
"0.6505423",
"0.6466877",
"0.646429",
"0.64494485",
"0.6408518",
"0.6395586",
"0.6354329",
"0.6347708",
"0.63440835",
"0.63423955",
"0.6339808",
"0.6339808",
"0.63327086",
"0.6332607",
"0.632858",
"0.6321595",
"0.63077825",
"0.63077825",
"0.62968343",
"0.62968343",
"0.62968343",
"0.62968343",
"0.62968343",
"0.62968343",
"0.62968343",
"0.62968343",
"0.62968343",
"0.62968343",
"0.62968343",
"0.6288236",
"0.6271163",
"0.62709695",
"0.6263678",
"0.6261536",
"0.62538904",
"0.6252609",
"0.62520546",
"0.623371",
"0.61974674",
"0.6197415",
"0.6185502",
"0.61853844",
"0.6180543",
"0.61759984",
"0.61759984",
"0.61759984",
"0.61759984",
"0.61759984",
"0.61759984",
"0.61759984",
"0.61759984",
"0.61759984",
"0.61759984",
"0.61759984",
"0.61759984",
"0.61759984",
"0.61759984",
"0.61759984",
"0.6159167",
"0.61512524",
"0.6134489",
"0.612991",
"0.61202407",
"0.6117475",
"0.61159337",
"0.61156523",
"0.6107341",
"0.6107341",
"0.610451",
"0.6096276",
"0.6093979",
"0.6093979",
"0.6093979",
"0.6093979",
"0.6085561",
"0.6083026",
"0.6083026",
"0.6083026",
"0.6083026",
"0.60751563",
"0.6071724",
"0.6071724",
"0.6071724",
"0.6071724",
"0.6071724",
"0.6071724",
"0.6071724"
] | 0.0 | -1 |
Useful function for reading a file given its name. | public static File readFile(String inputName) throws IOException
{
String fileName = inputName;
File file = new File(fileName);
if (!file.canRead())
{
System.err.println(file.getCanonicalPath() + ": cannot be read");
}
return file;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void fileRead(String filename) throws IOException;",
"public static void reading(String fileName)\n {\n\n }",
"public static String readFile(final String name) {\n FileReader fileReader = null;\n final StringBuilder contents = new StringBuilder();\n try {\n final File file = new File(name);\n if (!file.exists()) {\n throw new IllegalArgumentException(\"File \" + name + \" does not exist\");\n }\n fileReader = new FileReader(file);\n final BufferedReader reader = new BufferedReader(fileReader);\n String inputLine = reader.readLine();\n while (inputLine != null) {\n contents.append(inputLine).append(\"\\n\");\n inputLine = reader.readLine();\n }\n reader.close();\n } catch (final IOException i1) {\n LOG.severe(\"Can't open file:\" + name);\n }\n return contents.toString();\n }",
"public void readFile(String name) {\n\t\tString filename = this.path + name;\n\t\tFile file = new File(filename);\n\t\t\n\t\t\n\t\ttry {\t\t \n\t\t\tScanner reader = new Scanner(file);\n\t\t\t\n\t\t\twhile (reader.hasNextLine()) {\n\t\t\t\tString data = reader.nextLine();\n\t\t System.out.println(data);\n\t\t\t}\n\t\t reader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t System.out.println(\"File not found!\");\n\t\t} \n\t}",
"public InputStream readFile( String fileName, FileType type );",
"public String readFile(String fName) {\n String msg=\"\";\n try {\n File theFile = new File(fName);\n InputStreamReader iStream = new InputStreamReader(new FileInputStream(theFile));\n int length = (int)theFile.length();\n char input[] = new char[length];\n iStream.read(input);\n msg = new String(input);\n } catch (IOException e) {\n e.printStackTrace();\n } // catch\n return msg;\n }",
"public static File getFile(String name) {\n\t\treturn getFile(name, false);\n\t}",
"private String readResource(String name) throws IOException {\n ClassLoader cl = Thread.currentThread().getContextClassLoader();\n try (InputStream in = cl.getResourceAsStream(name)) {\n return new String(EncodingUtils.readAll(in), StandardCharsets.US_ASCII);\n }\n }",
"private static Optional<InputStream> openFile(Path name) {\n try {\n return Optional.of(Files.newInputStream(name, StandardOpenOption.READ));\n } catch (IOException e) {\n System.err.printf(\"Unable to open file %s for reading: %s\\n\", name, e.toString());\n }\n\n return Optional.empty();\n }",
"public void read_file(String filename)\n {\n out.println(\"READ\");\n out.println(filename);\n try\n {\n String content = null;\n content = in.readLine();\n System.out.println(\"READ content : \"+content);\n }\n catch (IOException e) \n {\n \tSystem.out.println(\"Read failed\");\n \tSystem.exit(-1);\n }\n }",
"@Override\n public InputStream readFileInternal(String _fileName) throws IOException\n { // Reads a file from the devices internal storage. Takes a filename as a parameter and throws an IOException if failed.\n return context.openFileInput(_fileName);\n }",
"private static String readFile(String fileName) throws IOException {\n\t\tReader reader = new FileReader(fileName);\n\n\t\ttry {\n\t\t\t// Create a StringBuilder instance\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\t// Buffer for reading\n\t\t\tchar[] buffer = new char[1024];\n\n\t\t\t// Number of read chars\n\t\t\tint k = 0;\n\n\t\t\t// Read characters and append to string builder\n\t\t\twhile ((k = reader.read(buffer)) != -1) {\n\t\t\t\tsb.append(buffer, 0, k);\n\t\t\t}\n\n\t\t\t// Return read content\n\t\t\treturn sb.toString();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t\t// Ignore\n\t\t\t}\n\t\t}\n\t}",
"public static FileInputStream readFile(String aFileName) throws FileNotFoundException {\n File file = new File(aFileName);\n return new FileInputStream(file);\n }",
"public static String readFile(File fileName) throws IOException {\n return readFile(fileName, \"UTF-8\");\n }",
"public static String readFile(String fileName) throws IOException {\n return readFile(fileName, \"UTF-8\");\n }",
"protected abstract InputStream getFile(final String path);",
"public static String read(String filename) throws IOException {\n // Reading input by lines:\n BufferedReader in = new BufferedReader(new FileReader(filename));\n// BufferedInputStream in2 = new BufferedInputStream(new FileInputStream(filename));\n String s;\n int s2;\n StringBuilder sb = new StringBuilder();\n while((s = in.readLine())!= null)\n sb.append( s + \"\\n\");\n// sb.append((char) s2);\n in.close();\n return sb.toString();\n }",
"private void fileRead(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\t// create file\n\t\t\tFile file = new File(path);\n\t\t\tFileInputStream fileStream = new FileInputStream(file);\n\t\t\t\n\t\t\t// data read\n\t\t\tthis.dataContent = new byte[(int)file.length()];\n\t\t\tint ret = fileStream.read(this.dataContent, 0, (int)file.length());\n\t\t}\n\t\tcatch(FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(\"File Not Found : \" + e.getMessage());\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.out.println(\"Failed File Read : \" + e.getMessage());\n\t\t}\n\t\t\n\t}",
"public static String readFile() {\n\t\tFileReader file;\n\t\tString textFile = \"\";\n\n\t\ttry {\n\t\t\tfile = new FileReader(path);\n\n\t\t\t// Output string.\n\t\t\ttextFile = new String();\n\n\t\t\tBufferedReader bfr = new BufferedReader(file);\n\n\t\t\ttextFile= bfr.readLine();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading the file\");\n\t\t}\n\t\treturn textFile;\n\n\t}",
"private static String readLine(String filename) throws IOException {\n\t\ttry (BufferedReader reader = new BufferedReader(\n\t\t\t\tnew FileReader(filename), 256)) {\n\t\t\treturn reader.readLine();\n\t\t}\n\t}",
"void open(String fileName);",
"public String readFromFile(String path) {\n BufferedReader br = null;\n String returnString =\"\";\n try {\n String sCurrentLine;\n br = new BufferedReader(new FileReader(path));\n while ((sCurrentLine = br.readLine()) != null) {\n returnString+=sCurrentLine;\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (br != null)br.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n return returnString;\n }",
"public static String readFromFile(String fileName) {\n\n StringBuilder output = new StringBuilder();\n boolean presente = new File(fileName).exists();\n\n if (!presente) {\n return \"\";\n }\n try {\n FileReader reader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(reader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n output.append(line).append(\"\\n\");\n }\n bufferedReader.close();\n reader.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n return output.toString();\n }",
"public String read(String filename) {\n StringBuilder stringBuilder = new StringBuilder();\n try (BufferedReader bufferedReader = new BufferedReader(new FileReader(filename))) {\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n stringBuilder.append(line).append(\"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return stringBuilder.toString();\n }",
"private static Trajectory readFile(String name) {\n\t\ttry {\n\t\t\tFile file = new File(cacheDirectory + name);\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\tTrajectory t = (Trajectory) ois.readObject();\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t\treturn t;\n\t\t}\n\t\tcatch (Exception e) { return null; }\n\t}",
"String readFile( String filename ) {\n try {\n FileReader fileReader = new FileReader( filename );\n BufferedReader bufferedReader = new BufferedReader( fileReader );\n StringBuilder stringBuilder = new StringBuilder();\n String line = bufferedReader.readLine();\n while( line != null ) {\n stringBuilder.append( line );\n stringBuilder.append( \"\\n\" );\n line = bufferedReader.readLine();\n }\n bufferedReader.close();\n fileReader.close();\n return stringBuilder.toString();\n } catch( Exception e ) {\n playerObjects.getLogFile().WriteLine( Formatting.exceptionToStackTrace( e ) );\n return null;\n }\n }",
"@Override\n public InputStream openInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }",
"public ReadFile (String file) throws java.io.FileNotFoundException\n {\n reader = new java.io.FileReader(file);\t\t//Construct the file reader\n br = new java.io.BufferedReader(reader);\t//Wrap it with a BufferedReader\n assert this.isValid(); \t\t\t//Make sure all is well and we can read the file\n }",
"@Override\n public Ini read(Path path) throws IOException {\n try (Reader reader = Files.newBufferedReader(path)) {\n return read(reader);\n }\n }",
"public String readFileIntoString(String filepath) throws IOException;",
"static String readResource(String name) throws IOException {\n InputStream is = Server.class.getResourceAsStream(name);\n String value = new Scanner(is).useDelimiter(\"\\\\A\").next();\n is.close();\n return value;\n }",
"public static String readTextStream(String filename) throws IOException {\n StringBuffer sb = new StringBuffer();\n BufferedReader fileReader = new BufferedReader(new InputStreamReader(FileHelper.class.getClassLoader().getResourceAsStream(filename)));\n FileHelper.read(sb, fileReader);\n return sb.toString();\n }",
"protected abstract InputStream getInStreamImpl(String filename) throws IOException;",
"public FilesInputStreamLoad readFile() throws ArcException {\r\n\tFile dir = new File(this.archiveChargement + \".dir\");\r\n\tString fileName = ManipString.substringAfterFirst(this.idSource, \"_\");\r\n\tFile toRead = new File(dir + File.separator + ManipString.redoEntryName(fileName));\r\n\tFilesInputStreamLoad filesInputStreamLoadReturned = null;\r\n\ttry {\r\n\t\tfilesInputStreamLoadReturned = new FilesInputStreamLoad (toRead);\r\n\t} catch (IOException ioReadException) {\r\n\t\tthrow new ArcException(ioReadException, ArcExceptionMessage.FILE_READ_FAILED, toRead);\r\n\t}\r\n\treturn filesInputStreamLoadReturned;\r\n }",
"public String readFile(String Path, String File_name) {\n\t\tFile f1 = new File( Path + \"/\" + File_name);\n\t\t String str = \"\";\n\t\t String res = \"\";\n\t try {\n\t // открываем поток для чтения\n\t BufferedReader br = new BufferedReader(new FileReader(f1));\n\t \n\t // читаем содержимое\n\t while ((str = br.readLine()) != null) {\n\t Log.d(LOG_TAG, str);\n\t res+=str;\n\t }\n\t //res=str;\n\t \n\t } catch (FileNotFoundException e) {\n\t e.printStackTrace();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return res;\n\t }",
"public void readFile(String name)\n\t{\n\t\tFileInputStream fis = null;\n\t\tObjectInputStream in = null;\n\t\ttry\n\t\t{\n\t\t\tfis = new FileInputStream(name);\n\t\t\tin = new ObjectInputStream(fis);\n\t\t\t// ind = (WebIndexer)in.readObject();\n\t\t\tTree xcd = (Tree)in.readObject();\n\t\t\tind = new WebIndexer(xcd);\n\t\t\tin.close();\n\t\t}\n\t\tcatch(IOException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch(ClassNotFoundException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\t\t\n\t}",
"public static String read(String filename) {\n StringBuilder sb = new StringBuilder();\n try {\n FileReader fr = new FileReader(new File(filename));\n BufferedReader br = new BufferedReader(fr);\n String s;\n while ((s = br.readLine()) != null) {\n sb.append(s).append(\"\\n\");\n }\n br.close();\n fr.close();\n } catch (FileNotFoundException ex) {\n } catch (IOException ex) {\n }\n return sb.toString();\n }",
"private String fileReadOneLine(String fname) {\n BufferedReader br;\n String line = null;\n\n try {\n br = new BufferedReader(new FileReader(fname), 512);\n try {\n line = br.readLine();\n } finally {\n br.close();\n }\n } catch (Exception e) {\n Log.e(TAG, \"Exception when reading /sys/* file\", e);\n }\n return line;\n }",
"public String readFile(){\r\n StringBuffer str = new StringBuffer(); //StringBuffer is a mutable string\r\n Charset charset = Charset.forName(\"UTF-8\"); //UTF-8 character encoding\r\n Path file = Paths.get(filename + \".txt\");\r\n try (BufferedReader reader = Files.newBufferedReader(file, charset)) { // Buffer: a memory area that buffered streams read\r\n String line = null;\r\n while ((line = reader.readLine()) != null) { //Readers and writers are on top of streams and converts bytes to characters and back, using a character encoding\r\n str.append(line + \"\\n\");\r\n }\r\n }\r\n catch (IOException x) {\r\n System.err.format(\"IOException: %s%n\", x);\r\n }\r\n return str.toString();\r\n }",
"public String ReadFile() throws IOException {\n File file = context.getFilesDir();\n File textfile = new File(file + \"/\" + this.fileName);\n\n FileInputStream input = context.openFileInput(this.fileName);\n byte[] buffer = new byte[(int)textfile.length()];\n\n input.read(buffer);\n\n return new String(buffer);\n }",
"RandomAccessFile openInputFile(String fileName) {\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"fileName = \" + fileName);\n RandomAccessFile file = null;\n try {\n file = new RandomAccessFile(fileName, \"r\");\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"success: file opened for read\");\n } catch (Exception e) {\n ec.processError(e, thisClass, \"openInputFile\", \"\");\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"error: file opened for read\");\n } // try-catch\n return file;\n }",
"@Nullable\n public String readFile(String fileName) throws IOException {\n ObjectId objectId = findFile(fileName);\n if (objectId == null) {\n return null;\n }\n\n ObjectLoader obj = reader.open(objectId, Constants.OBJ_BLOB);\n byte[] raw = obj.getCachedBytes(Integer.MAX_VALUE);\n\n if (raw.length == 0) {\n return null;\n }\n return RawParseUtils.decode(raw);\n }",
"public interface FileReader {\n\n String read(String fileName);\n}",
"List readFile(String pathToFile);",
"public void readFromFile() {\n\n\t}",
"public void readFile();",
"static String readFile(String path) throws IOException{\n\t\tFileInputStream fs = new FileInputStream(path);\n\t\tStringBuffer sb = new StringBuffer();\n\t\t// read a file\n\t\tint singleByte = fs.read(); // read singleByte\n\t\twhile(singleByte!=-1){\n\t\t\tsb.append((char)singleByte);\n\t\t\t///System.out.print((char)singleByte);\n\t\t\tsingleByte = fs.read();\n\t\t}\n\t\tfs.close(); // close the file\n\t\treturn sb.toString();\n\t}",
"@Override\n public InputStream readFileExternal(String _fileName) throws IOException \n { // Reads a file saved to external storage. Takes the filename as a parameter and throws an IOException if failed.\n return new FileInputStream(externalStoragePath + _fileName);\n }",
"public String read_from_disc(ChunkName name) throws IOException {\n\tString path = this.path_name(name);\n\tbyte[] encoded = Files.readAllBytes(Paths.get(path));\n\treturn this.encoding.decode(ByteBuffer.wrap(encoded)).toString();\n }",
"public Reader getReader(String filename) throws FileNotFoundException {\n\t\ttry {\n\t\t\tInputStream inputStream = new FileInputStream(filename);\n\t\t\treturn new InputStreamReader(inputStream, \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\tthrow new IllegalStateException(\"Unable to read input\", e);\n\t\t}\n\t}",
"public static BufferedReader Reader(String path) throws IOException\n\t{\n\t\treturn new BufferedReader(new InputStreamReader(new FileInputStream(path),\"UTF-8\"));\n\t}",
"String readText(FsPath path);",
"public static String readFile(String fileName, String charset) throws IOException {\n File file = new File(fileName);\n return readFile(file, charset);\n }",
"@RequestMapping(value=\"/read\", method = RequestMethod.GET)\n @ResponseBody\n public String readFile(@RequestParam String f) throws IOException,InvalidValueException,FilePathAccessDeniedException {\n\n String username = CSQLUserContext.getCurrentUser().getUsername();\n\n if(validator.isValidAndUserHasAccess(username,f)){\n return fileSystemService.readFile(f);\n }\n\n return null;\n }",
"private static InputStream readFile(String path)\n\t{\n\t\tInputStream input = NativeLibraryLoader.class.getResourceAsStream(\"/\" + path);\n\t\tif (input == null)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Unable to find file: \" + path);\n\t\t}\n\t\treturn input;\n\t}",
"public String readFileName() {\n\t\tSystem.out.println(\"Please enter the file path: \");\n\t\tBufferedReader strin = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\ttry {\n\t\t\tString fileName = strin.readLine();\n\t\t\t//检查文件是否存在,文件类型是否符合要求\n\t\t\twhile (fileName == null || fileName.trim().equals(\"\")\n\t\t\t\t\t|| fileName.indexOf(\".\") == -1 //必须要有文件名\n\t\t\t\t\t|| fileName.indexOf(ext) == -1\n\t\t\t\t\t|| !new File(fileName).exists()) {\n\t\t\t\tSystem.out.print(\"Please input the file path: \");\n\t\t\t\tstrin = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\tfileName = strin.readLine();\n\t\t\t}\n\t\t\tthis.fileName = fileName;\n\t\t\tthis.ext = fileName.substring(fileName.lastIndexOf(\".\"));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (strin != null) {\n\t\t\t\t\tstrin.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tstrin = null;\n\t\t}\n\t\treturn fileName;\n\t}",
"File openFile();",
"public static InputStream createInputStream(String filename) throws FileReadingException {\n File file = new File(filename);\n if (!file.exists()) {\n throw new FileReadingException(\"File Not Found: \" + filename + \"\\n\");\n }\n if (!file.isFile()) {\n throw new FileReadingException(filename + \" is not a file.\\n\");\n }\n if (!file.canRead()) {\n throw new FileReadingException(\"Reading file \" + filename + \" is not permitted.\\n\");\n }\n\n try {\n return new FileInputStream(file);\n } catch (FileNotFoundException e) {\n throw new FileReadingException(\"File Not Found: \" + filename + \"\\n\");\n }\n }",
"public String readFromFile() throws IOException {\n return br.readLine();\n }",
"public static String readFromFile(String filename) {\n InputStream is = ResourceUtils.class.getClassLoader().getResourceAsStream(filename);\n return convertStreamToString(is);\n\n }",
"@Override\n public InputStream openInternalInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }",
"public static String stringFromFileNamed(String fileName) \n\tthrows java.io.IOException {\n\t\t\n\tfinal int BUFLEN = 1024;\n\tchar buf[] = new char[BUFLEN];\n\t\n\tFileReader in = new FileReader(fileName);\n\tStringWriter out = new StringWriter();\n\t\n\ttry {\n\t\twhile (true) {\n\t\t\tint len = in.read(buf, 0, BUFLEN);\n\t\t\tif (len == -1) {\n\t\t\t\tbreak;\n\t\t\t}\t\n\t\t\tout.write(buf, 0, len);\n\t\t}\t\n\t}\n\tfinally {\n\t\tout.close();\n\t\tin.close();\n\t}\t\n\treturn out.toString();\n}",
"public void loadFile(String fileName) {//Retrieves name of file\r\n\t\tString line = null;\r\n\t\ttry{\r\n\t\t\tFileReader open = new FileReader(fileName);\r\n\t\t\tBufferedReader read = new BufferedReader(open);\r\n\t\t\twhile((line = read.readLine()) != null) {\r\n String[] parts = line.split(\" \");\r\n String part1 = parts[0];\r\n String part2 = parts[1];\r\n System.out.println(part1 + part2);\r\n \r\n\t\t\t\r\n\t\t\t}read.close();}\r\n\t\tcatch(FileNotFoundException ex) {\r\n System.out.println(\r\n \"Unable to open file '\" + \r\n fileName + \"'\"); } \r\n\t\tcatch(IOException ex) {\r\n System.out.println(\r\n \"Error reading file '\" \r\n + fileName + \"'\"); }\r\n\t}",
"String getFile();",
"String getFile();",
"String getFile();",
"public boolean openFile(String pathName) \r\n\t{\r\n\t\tboolean result;\r\n\t\t// This allows the opening of files located from this actual package.\r\n\t\tURL localPath = this.getClass().getResource(pathName);\r\n\t\tinputFile = new File(localPath.getFile());\r\n\r\n\t\t// Open input file. The input file is a field oriented and\r\n\t\t// space-separated.\r\n\t\t// The fields and expected formats are listed above in the header\r\n\r\n\t\t// Check to ensure that the inputFile exists\r\n\t\tif (!inputFile.exists()) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"\\\"\" +localPath + \"\\\" should be in the same directory as: \"\r\n\t\t\t\t\t\t\t\t+ this.getClass().getPackage().getName());\r\n\t\t\t\r\n\t\t\tresult = false;\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\t// Create a buffered reader the file\r\n\t\t\t\tinFile = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\t\tnew FileInputStream((inputFile))));\r\n\r\n\t\t\t\tresult = true;\r\n\t\t\t} // try\r\n\t\t\tcatch (Exception Error) \r\n\t\t\t{\r\n\t\t\t\tresult = false;\r\n\t\t\t} // catch\r\n\t\t} // if\r\n\r\n\t\treturn (result);\r\n\t}",
"public String read(String filePath) throws IOException {\r\n\t\t//read file into stream\r\n\t\t\treturn new String(Files.readAllBytes(Paths.get(filePath)));\r\n\t}",
"public static String readFile(String path) throws IOException {\n BufferedReader reader = new BufferedReader(new FileReader(path));\n\n String line;\n StringBuilder builder = new StringBuilder();\n\n while ((line = reader.readLine()) != null) {\n builder.append(line);\n }\n\n return builder.toString();\n }",
"public String readFile(String fileName) throws IOException {\n BufferedReader br = new BufferedReader(new FileReader(fileName));\n try {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n\n while (line != null) {\n sb.append(line);\n sb.append(\"\\n\");\n line = br.readLine();\n }\n return sb.toString();\n } finally {\n br.close();\n }\n }",
"public static String readFromFile(String filename, String username) {\n\n // Read in the file from top to bottom\n ArrayList<String> tmp = new ArrayList<>();\n String ch;\n\n try {\n FileReader fr = new FileReader(PATH + filename);\n BufferedReader br = new BufferedReader(fr);\n\n do {\n ch = br.readLine();\n tmp.add(ch);\n } while (ch != null);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // Read the array from the back to the front.\n // There's an extra blank line at the bottom of the file so its -2\n for (int i = (tmp.size() - 2); i >= 0; i--) {\n String[] parts = tmp.get(i).split(Utilities.PARSE_SPLITTER_FIELD);\n if (parts[0].equals(username)) {\n return tmp.get(i);\n }\n }\n\n return null;\n }",
"CharStream findFile(String name) throws IOException,\n IncludeFileNotFound {\n // Look in the directory containing the source file ...\n String dir = \".\"; // default value used e.g. when reading from stdin\n File src = getSource();\n if (src != null && src.getParent() != null) {\n dir = src.getParent();\n }\n String full = dir + \"/\" + name;\n File f = new File(full);\n if (f.exists()) {\n LOG.debug(\"Using local file \" + full);\n return CharStreams.fromFileName(full);\n }\n\n // ... and fall back to the standard library path if not found.\n final URL url = ClassLoader.getSystemResource(\"include/\" + name);\n if (url != null) {\n LOG.debug(\"Using library \" + url);\n // Use fromReader(Reader, String) to catch the file name --- fromStream(InputStream) does not.\n return CharStreams.fromReader(new InputStreamReader(url.openStream()), url.getFile());\n }\n\n throw new IncludeFileNotFound(name, this, getInputStream()); // TODO: check this\n }",
"public void readAFile(String fileName) throws IOException {\n\t\tClassLoader cl = new VocDemo().getClass().getClassLoader();\n\n\t\tFile file = new File(cl.getResource(fileName).getFile());\n\n\t\tif (file.exists()) {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\t\tString st = null;\n\t\t\twhile ((st = br.readLine()) != null) {\n\t\t\t\tSystem.out.println(st);\n\t\t\t}\n\t\t\tbr.close();\n\t\t} else {\n\t\t\tSystem.out.println(\"moras upisati direktorij!!!\");\n\t\t}\n\t}",
"private static String readFile(File file) {\n String result = \"\";\n\n try (BufferedReader bufferedReader = new BufferedReader(\n new FileReader(file))) {\n result = bufferedReader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }",
"private File getFile(String path, String name)\r\n {\r\n File file = null;\r\n boolean found = false;\r\n String ext = \"\";\r\n\r\n for (int i = 0; i < name.length(); i++)\r\n ext += \"\" + ( (name.charAt(i) == '.') ? '\\\\' : name.charAt(i));\r\n\r\n while(ext.length() > 0 && !found)\r\n {\r\n file = new File(path + \"\\\\\" + ext + \".java\");\r\n found = file != null && file.exists() && file.isFile();\r\n ext = ext.substring(0, Math.max(0, ext.lastIndexOf('\\\\')));\r\n }\r\n\r\n return (found)?file:null;\r\n }",
"public static String readWholeFile(String filename) {\n\t\t \n\t\t \n\t\t \n\t\ttry {\n\t\t\tScanner scanner = new Scanner(new File(filename));\n\t\t\t //scanner.useDelimiter(\"\\\\Z\");\n\t\t\t String returnString = \"\";\n\t\t\t while (scanner.hasNextLine()) {\n\t\t\t\t returnString += scanner.nextLine();\n\t\t\t\t returnString += System.lineSeparator();\n\t\t\t }\n\t\t\t \n\t\t\t return returnString;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t \n\t\t \n\t\t }",
"private static String readFile(String path) throws IOException {\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(path)))) {\n\t\t\tStringBuilder input = new StringBuilder();\n\t\t\tString tmp; while ((tmp = br.readLine()) != null) input.append(tmp+\"\\n\");\n\t\t\treturn input.toString();\n\t\t}\n\t}",
"public abstract void readFromFile( ) throws Exception;",
"public static String readFile(File fileName, String charset) throws IOException {\n if (fileName == null || !fileName.isFile()) {\n return null;\n }\n StringBuilder sb = new StringBuilder(\"\");\n BufferedReader reader = null;\n try {\n InputStreamReader is = new InputStreamReader(new FileInputStream(fileName), charset);\n reader = new BufferedReader(is);\n String line = null;\n while ((line = reader.readLine()) != null) {\n if (!sb.toString().equals(\"\")) {\n sb.append(\"\\r\\n\");\n }\n sb.append(line);\n }\n reader.close();\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n } finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n }\n }\n }\n }",
"FileReference getFile(String fileName);",
"public static String readOneString(String fileName)throws FileNotFoundException{\r\n StringBuilder sb=new StringBuilder();\r\n fileExists(fileName);\r\n log.fine(\"Reading one string from file: \"+fileName);\r\n try {\r\n BufferedReader in=new BufferedReader(new FileReader(fileName));\r\n try {\r\n String s;\r\n s=in.readLine();\r\n if(s==null){\r\n return null;\r\n }\r\n sb.append(s);\r\n }finally {\r\n in.close();\r\n }\r\n }catch (IOException e){\r\n throw new RuntimeException(e);\r\n }\r\n return sb.toString();\r\n }",
"private static String loadFile(File file) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\treturn br.readLine();\n\t}",
"private String readDeserialize(String fileName, AssetManager assetManager) {\n StringBuffer sb = new StringBuffer();\n try {\n InputStream is = assetManager.open(fileName);\n InputStreamReader isr = new InputStreamReader(is);\n BufferedReader br = new BufferedReader(isr);\n\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n line = br.readLine();\n }\n br.close();\n isr.close();\n is.close();\n } catch (FileNotFoundException e) {\n Log.e(\"login activity\", String.format(\"File not found: %s\", e.toString()));\n } catch (IOException e) {\n Log.e(\"login activity\", String.format(\"Can not read file: %s\", e.toString()));\n }\n return sb.toString();\n }",
"public void ReadFrom(String pathWithFileName) throws Exception\n {\n \tPath path = Paths.get(pathWithFileName);\n content = Files.readAllBytes(path);\n fileName = path.getFileName().toString(); \n contentType = null;\n }",
"FileObject getFile();",
"FileObject getFile();",
"public static String readCachedFile(Context ctx, String filename){\n \t\treturn readCachedFile(ctx, filename, true);\n \t}",
"String Reader(String FileName, Context context){\n FileInputStream inputStream = null;\n String Text = \"\";\n StringBuilder sb = null;\n try{\n //inputStream = context.openFileInput(FileName);\n inputStream = new FileInputStream(new File(FileName));\n InputStreamReader reader = new InputStreamReader(inputStream);\n BufferedReader buffRead = new BufferedReader(reader);\n sb = new StringBuilder();\n\n while ((Text = buffRead.readLine())!= null){\n sb.append(Text);\n sb.append(\"\\n\");\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return sb.toString();\n }",
"private static String ReadFile(String filePath) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader r = new BufferedReader(new FileReader(filePath));\n String line;\n while ((line = r.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n System.out.println(e.getStackTrace());\n }\n return sb.toString();\n\n }",
"private void ReadTextFile(String FilePath) {\n\t\t\n\t\t\n\t}",
"public String readFile(String filename)\n {\n StringBuilder texts = new StringBuilder();\n \n try \n {\n FileReader inputFile = new FileReader(filename);\n Scanner parser = new Scanner(inputFile);\n \n while (parser.hasNextLine())\n {\n String line = parser.nextLine();\n texts.append(line + \";\");\n }\n \n inputFile.close();\n parser.close();\n return texts.toString();\n \n }\n \n catch(FileNotFoundException exception) \n {\n String error = filename + \" not found\";\n System.out.println(error);\n return error;\n }\n \n catch(IOException exception) \n {\n String error = \"Unexpected I/O error occured\";\n System.out.println(error); \n return error;\n } \n }",
"public String readFileContents(String filename) {\n return null;\n\n }",
"public static String readFileContent(String fileName){\r\n String str=null;\r\n BufferedReader reader=null;\r\n try {\r\n reader=new BufferedReader(new FileReader(fileName));\r\n str=reader.readLine();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }finally{\r\n if(reader!=null){\r\n try {\r\n reader.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n return str;\r\n }",
"public static void readMyFile() throws IOException {\n\n List<String> allLines = Files.readAllLines(Paths.get(\"src/ErfansInputFile\"));\n System.out.println(\"allLines = \" + allLines);\n System.out.println(\"Reading the file in my computer. \");\n\n throw new FileNotFoundException(\"Kaboom, file is not found!!!\");\n }",
"public String readFromFile(String filePath){\n String fileData = \"\";\n try{\n File myFile = new File(filePath);\n Scanner myReader = new Scanner(myFile);\n while (myReader.hasNextLine()){\n String data = myReader.nextLine();\n fileData += data+\"\\n\";\n }\n myReader.close();\n } catch(FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n return fileData;\n }",
"public String readFile(String filename) {\n\n String result = \"\";\n FileReader fileReader = null;\n BufferedReader bufferedReader = null;\n try {\n fileReader = new FileReader(filename);\n bufferedReader = new BufferedReader(fileReader);\n\n StringBuilder stringBuilder = new StringBuilder();\n String line = bufferedReader.readLine();\n while (line != null) {\n stringBuilder.append(line);\n line = bufferedReader.readLine();\n }\n result = stringBuilder.toString();\n } catch (Exception e) {\n Log.error(\"Error in reading Locator Repository file \" + e.getMessage());\n } finally {\n try {\n if (bufferedReader != null) {\n bufferedReader.close();\n }\n if (fileReader != null) {\n fileReader.close();\n }\n } catch (IOException e) {\n Log.error(\"Error in closing Locator Repository file \" + e.getMessage());\n } finally {\n CustomAssert\n .assertTrue(StringUtils.isNotEmpty(result), \"Error in reading file \" + filename);\n }\n }\n\n return result;\n }",
"public static BufferedReader getReader(String fileName) throws IOException {\n return getReader(getPath(fileName));\n }",
"public static BufferedReader readDataFile(String filename,String pathOfFile)\n\t{\n\t\tString pathToSave = pathOfFile;\n BufferedReader inputReader = null;\n try\n {\n inputReader = new BufferedReader(new FileReader(pathToSave+filename));\n }\n catch (FileNotFoundException ex)\n {\n System.err.println(\"File not found: \" + filename);\n }\n \n return inputReader;\n }",
"private static InputStream loadFile(String[] args) throws Exception {\n\t\tString fileName = args[1];\n\t\t\n\t\tInputStream fileStream = KMP.class.getResourceAsStream(fileName);\n\t\tif(fileStream == null) {\n\t\t\tthrow new FileNotAvailableException(\"File could not be found nor open.\");\n\t\t}\n\n\t\treturn fileStream;\n\t}",
"public String readStringFromFileSafe(String filename) {\r\n\t\tString result = null;\r\n\t\ttry {\r\n\t\t\tresult = readStringFromFile(filename);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\thandleFileNotFoundException(e, filename);\r\n\t\t} catch (IOException e) {\r\n\t\t\thandleIOException(e, filename);\r\n\t\t}\r\n\t\treturn result;\r\n\t}"
] | [
"0.7604053",
"0.73892385",
"0.7314744",
"0.7216372",
"0.7002035",
"0.67475784",
"0.67075425",
"0.647211",
"0.64705265",
"0.63926345",
"0.6360508",
"0.62432986",
"0.6182864",
"0.6121178",
"0.61151314",
"0.6103007",
"0.60951567",
"0.6034758",
"0.602827",
"0.5994459",
"0.5993997",
"0.599032",
"0.59662324",
"0.5965066",
"0.5961918",
"0.5953537",
"0.59528714",
"0.5943271",
"0.5925977",
"0.5917665",
"0.58832324",
"0.5874633",
"0.5874446",
"0.5864126",
"0.58591235",
"0.5857119",
"0.5855193",
"0.5849455",
"0.5839822",
"0.5826297",
"0.5805815",
"0.5804895",
"0.5790999",
"0.57907575",
"0.57875824",
"0.5761427",
"0.5736463",
"0.57267743",
"0.5722231",
"0.5713923",
"0.57086927",
"0.57066375",
"0.57055587",
"0.5700675",
"0.5697655",
"0.56865925",
"0.56796956",
"0.5672481",
"0.5650825",
"0.56440574",
"0.5641026",
"0.5636557",
"0.56351143",
"0.56267357",
"0.56267357",
"0.56267357",
"0.5623537",
"0.5607906",
"0.56002605",
"0.5595841",
"0.5585961",
"0.5584063",
"0.55831635",
"0.5573385",
"0.55588007",
"0.55506366",
"0.55503196",
"0.55487525",
"0.5547471",
"0.5542217",
"0.5529942",
"0.5502115",
"0.5499643",
"0.54984224",
"0.5498396",
"0.5498396",
"0.5493622",
"0.5486946",
"0.5483988",
"0.54825306",
"0.54762524",
"0.5475885",
"0.5475517",
"0.546779",
"0.5466843",
"0.54654324",
"0.54648167",
"0.54611695",
"0.5455016",
"0.5451027"
] | 0.7057767 | 4 |
Useful function for return an XML document. | public static Document getDoc(File inputFile) throws ParserConfigurationException, IOException
{
Document parsedDocument = null;
DocumentBuilderFactory f = null;
try
{
//System.out.println("Validazione XML abilitata: " + enableValidationFromGui);
//System.out.println("Esclusione Spazi Bianchi Elementi XML Abilitata: " + enableIgnoringWhitespaceFromGui);
File xmlFile = inputFile;
f = DocumentBuilderFactory.newInstance();
f.setValidating(enableValidationFromGui);
f.setIgnoringElementContentWhitespace(enableIgnoringWhitespaceFromGui);
DocumentBuilder b = f.newDocumentBuilder();
ErrorHandler h = new xmlValidationErrorHandler();
b.setErrorHandler(h);
parsedDocument = (Document) b.parse(xmlFile);
}
catch (ParserConfigurationException | SAXException | IOException e)
{
System.out.println(e.toString());
}
if(f.isValidating() && enableValidationFromGui)
return parsedDocument;
else
return parsedDocument;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Document getAsXMLDOM () {\r\n\r\n //code description\r\n\r\n return document;\r\n\r\n }",
"public static XMLDocument create()\n {\n return new XMLDocument();\n }",
"public XML xml() {\n return new XMLDocument(new Xembler(this.dirs).domQuietly());\n }",
"Document toXml() throws ParserConfigurationException, TransformerException, IOException;",
"public Document saveAsXML() {\n\tDocument xmldoc= new DocumentImpl();\n\tElement root = createFeaturesElement(xmldoc);\n\txmldoc.appendChild(root);\n\treturn xmldoc;\n }",
"public String getXML() //Perhaps make a version of this where the header DTD can be manually specified\n { //Also allow changing of generated tags to user specified values\n \n String xml = new String();\n xml= \"<?xml version = \\\"1.0\\\"?>\\n\";\n xml = xml + generateXML();\n return xml;\n }",
"public Document getXML() {\n\t\treturn null;\n\t}",
"private Document createXMLDocumentStructure() {\r\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder builder = null;\r\n\t\ttry {\r\n\t\t\tbuilder = dbf.newDocumentBuilder();\r\n\t\t} catch (ParserConfigurationException 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// Creates the Document\r\n\t\tDocument serviceDoc = builder.newDocument();\r\n\t\t/*\r\n\t\t * Create the XML Tree\r\n\t\t */\r\n\t\tElement root = serviceDoc.createElement(\"service\");\r\n\r\n\t\tserviceDoc.appendChild(root);\r\n\t\treturn serviceDoc;\r\n\t}",
"public java.lang.String getXml();",
"public static Document newDocument() throws XMLException{\n\t\ttry{\n\t\t\tfinal DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\t\t\t\n\t\t\tfinal DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tfinal Document doc = builder.newDocument();\n\t\t\treturn doc;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tthrow new XMLException(e);\n\t\t}\n\t}",
"public abstract String toXML();",
"public abstract String toXML();",
"public abstract String toXML();",
"public Document newDocument() {\n\t\treturn new org.apache.xerces.dom.DocumentImpl();\n\t}",
"public static DocumentBuilder getXMLBuilder() {\n\n return getXMLBuilder( false, true, false, false, false, false, false, null );\n }",
"@Get(\"xml\")\n public Representation toXml() {\n\n \tString status = getRequestFlag(\"status\", \"valid\");\n \tString access = getRequestFlag(\"location\", \"all\");\n\n \tList<Map<String, String>> metadata = getMetadata(status, access,\n \t\t\tgetRequestQueryValues());\n \tmetadata.remove(0);\n\n List<String> pathsToMetadata = buildPathsToMetadata(metadata);\n\n String xmlOutput = buildXmlOutput(pathsToMetadata);\n\n // Returns the XML representation of this document.\n StringRepresentation representation = new StringRepresentation(xmlOutput,\n MediaType.APPLICATION_XML);\n\n return representation;\n }",
"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 }",
"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}",
"public String toXML() {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter, true);\n toXML(printWriter);\n return stringWriter.toString();\n }",
"@Override\n @NotNull\n public XmlDocument getDocument() {\n final XmlDocument document = findChildByClass(XmlDocument.class);\n assert document != null;\n return document;\n }",
"@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }",
"@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }",
"public XMLDocument() {\r\n xml = new StringBuilder();\r\n }",
"public Document getXMLArticle(){\n Document theDoc = theConversation.getXMLArticle();\n if (theDoc != null){\n Element theDocElement = theDoc.getDocumentElement();\n }else{\n return null;\n }\n return theDoc;\n }",
"@GET\n @Produces(MediaType.APPLICATION_XML)\n public String getXml() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }",
"Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;",
"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 static Document getDocument(byte xml[])\n {\n return XMLTools.getDocument(xml, false);\n }",
"public abstract StringBuffer toXML ();",
"@GET\r\n @Produces(\"application/xml\")\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }",
"public abstract StringBuffer toXML();",
"public static void outputXMLdoc() throws Exception {\n // transform the Document into a String\n DOMSource domSource = new DOMSource(doc);\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer transformer = tf.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n transformer.setOutputProperty(OutputKeys.ENCODING,\"UTF-8\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n java.io.StringWriter sw = new java.io.StringWriter();\n StreamResult sr = new StreamResult(sw);\n transformer.transform(domSource, sr);\n String xml = sw.toString();\n\n\tSystem.out.println(xml);\n\n }",
"public String generatedXmlFile(Document doc){\n\t\tStringWriter sw = new StringWriter();\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\r\n\r\n\t\t\t\t\ttransformer.transform(new DOMSource(doc), new StreamResult(sw));\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\tthrow new RuntimeException(\"Error converting to String\", ex);\r\n\t\t\t\t}\r\n\t\t\t\treturn sw.toString();\r\n\t}",
"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 }",
"public XMLDocument ()\r\n\t{\r\n\t\tthis (DEFAULT_XML_VERSION, true);\r\n\t}",
"public WalkerDocument newDocument() { return newDocument((IOptions)null); }",
"public static Document getDocument(String xml)\n {\n return XMLTools.getDocument(StringTools.getBytes(xml), false);\n }",
"DocumentRoot createDocumentRoot();",
"DocumentRoot createDocumentRoot();",
"DocumentRoot createDocumentRoot();",
"DocumentRoot createDocumentRoot();",
"@GET\n\t@Produces( { MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })\n\tpublic UserXML getXML() {\n\t\tUserXML user = new UserXML();\n\t\tuser.setName(\"Sagar Prasad\");\n\t\tuser.setDescription(\"Some Description\");\n\t\treturn user;\n\t}",
"public String getXML() {\n\t\treturn getXML(false);\n\t}",
"public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( VolumeRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}",
"public XMLData () {\r\n\r\n //code description\r\n\r\n try {\r\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n this.document = builder.newDocument(); \r\n }\r\n catch (ParserConfigurationException err) {}\r\n\r\n }",
"private static Document convertStringToDocument(String xmlStr) {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n DocumentBuilder builder; \n try \n { \n builder = factory.newDocumentBuilder(); \n Document doc = builder.parse( new InputSource( new StringReader( xmlStr ) ) ); \n return doc;\n } catch (Exception e) { \n e.printStackTrace(); \n } \n return null;\n }",
"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}",
"protected Element createDocument() {\r\n // create the dom tree\r\n DocumentBuilder builder = getDocumentBuilder();\r\n Document doc = builder.newDocument();\r\n Element rootElement = doc.createElement(TESTSUITES);\r\n doc.appendChild(rootElement);\r\n\r\n generatedId = 0;\r\n\r\n // get all files and add them to the document\r\n File[] files = getFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n File file = files[i];\r\n try {\r\n if(file.length()>0) {\r\n Document testsuiteDoc\r\n = builder.parse(\"file:///\" + file.getAbsolutePath());\r\n Element elem = testsuiteDoc.getDocumentElement();\r\n // make sure that this is REALLY a testsuite.\r\n if (TESTSUITE.equals(elem.getNodeName())) {\r\n addTestSuite(rootElement, elem);\r\n generatedId++;\r\n } else {\r\n }\r\n } else {\r\n }\r\n } catch (SAXException e) {\r\n // a testcase might have failed and write a zero-length document,\r\n // It has already failed, but hey.... mm. just put a warning\r\n } catch (IOException e) {\r\n }\r\n }\r\n return rootElement;\r\n }",
"Element toXML();",
"private static Optional<Document> convertStringToXMLDocument(String xmlString) {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\n //API to obtain DOM Document instance\n DocumentBuilder builder = null;\n try {\n //Create DocumentBuilder with default configuration\n builder = factory.newDocumentBuilder();\n\n //Parse the content to Document object\n Document doc = builder.parse(new InputSource(new StringReader(xmlString.replaceAll(\"\\n\", \"\"))));\n return Optional.of(doc);\n } catch (Exception e) {\n log.warn(\"Could not parse XML-String to XML-Document\", e);\n return Optional.empty();\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic Document getDocument() {\n\t\tDocument doc = this.documentBuilder.newDocument();\n\t\t\n\t\tElement rootElement = doc.createElement(\"properties\");\n\t\tdoc.appendChild(rootElement);\n\t\t\n\t\tEnumeration<String> keys = (Enumeration<String>) this.properties.propertyNames();\n\t\t\n\t\twhile (keys.hasMoreElements()) {\n\t\t\tString key = keys.nextElement();\n\t\t\tElement entry = doc.createElement(\"entry\");\n\t\t\tentry.setAttribute(\"key\", key);\n\t\t\tentry.setTextContent(this.getProperty(key));\n\t\t\trootElement.appendChild(entry);\n\t\t}\n\t\t\n\t\treturn doc;\n\t}",
"@Override\n public String getXmlDocument( HttpServletRequest request )\n {\n return XmlUtil.getXmlHeader( ) + getXml( request );\n }",
"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 }",
"public String exportXML() {\n\n\t\tXStream xstream = new XStream();\n\t\txstream.setMode(XStream.NO_REFERENCES);\n\n\t\treturn xstream.toXML(this);\n\t}",
"public static Document getXmlDom(String xmlFilePath) {\n Document doc = null;\n try {\n Builder builder = new Builder();\n File file = new File(xmlFilePath);\n doc = builder.build(file);\n\n } catch (ParsingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return doc;\n }",
"public static Document getDoc(String file){\n Document doc = null;\n try{\n SAXBuilder builder = new SAXBuilder();\n File xml = new File(tempPath+file);\n\n doc = (Document) builder.build(xml);\n } catch (Exception e){\n System.out.println(e.getMessage());\n }\n \n return doc;\n }",
"public static Document getXMLDoc(String filename) throws ParserConfigurationException, IOException, SAXException {\n\n File xmlFile = new File(filename);\n\n // create instance of the document builder factory to get the builder\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\n // get the document builder from the factory\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\n // parse the file into the doc\n Document doc = dBuilder.parse(xmlFile);\n\n // normalize doc\n doc.getDocumentElement().normalize();\n\n return doc;\n }",
"private String convertXmlToString(Document xmlDoc) {\r\n\r\n\t\tString xmlAsString = \"\";\r\n\t\ttry {\r\n\r\n\t\t\tTransformer transformer;\r\n\t\t\ttransformer = TransformerFactory.newInstance().newTransformer();\r\n\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.STANDALONE, \"yes\");\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\ttransformer.setOutputProperty(\r\n\t\t\t\t\t\"{http://xml.apache.org/xslt}indent-amount\", \"5\");\r\n\r\n\t\t\tStreamResult result = new StreamResult(new StringWriter());\r\n\r\n\t\t\tDOMSource source = new DOMSource(xmlDoc);\r\n\r\n\t\t\ttransformer.transform(source, result);\r\n\r\n\t\t\txmlAsString = result.getWriter().toString();\r\n\r\n\t\t} catch (TransformerConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (TransformerFactoryConfigurationError e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (TransformerException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn xmlAsString;\r\n\r\n\t}",
"public String toXML() {\n return null;\n }",
"public Document getDocument() throws FIFException {\n try {\n DOMParser parser = new DOMParser();\n ParsingErrorHandler handler = new ParsingErrorHandler();\n parser.setErrorHandler(handler);\n parser.setEntityResolver(new EntityResolver());\n parser.parse(new InputSource(new StringReader(text)));\n\n if (handler.isError()) {\n logger.error(\n \"XML Parsing Errors while generating XML document \"\n + \"for message: \"\n + text);\n throw new FIFException(\n \"XML parser reported the following errors:\\n\"\n + handler.getErrors());\n }\n return (parser.getDocument());\n } catch (SAXException e) {\n throw new FIFException(\"Cannot parse message string \" + text, e);\n } catch (IOException e) {\n throw new FIFException(\"Cannot parse message string \" + text, e);\n }\n }",
"public String getXMLResultXSD() {\n if (!this.initialized) {\n logInitializationError();\n return null;\n }\n try {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n DOMImplementation impl = builder.getDOMImplementation();\n\n Document document = impl.createDocument(null, null, null);\n Element root = document.createElement(\"schema\");\n root.setAttribute(\"xmlns\", \"http://www.w3.org/2001/XMLSchema\");\n document.appendChild(root);\n Element resultElement = document.createElement(\"element\");\n resultElement.setAttribute(\"name\", \"result\");\n root.appendChild(resultElement);\n Element complexTypeElement = document.createElement(\"complexType\");\n resultElement.appendChild(complexTypeElement);\n Element sequenceElement = document.createElement(\"sequence\");\n complexTypeElement.appendChild(sequenceElement);\n\n for (TypeMap tSpec : this.serviceSpec.getTypeSpecs()) {\n Element element = document.createElement(\"element\");\n element.setAttribute(\"name\", tSpec.getOutputTag());\n element.setAttribute(\"maxOccurs\", \"unbounded\");\n element.setAttribute(\"minOccurs\", \"0\");\n\n Element complexType = document.createElement(\"complexType\");\n element.appendChild(complexType);\n\n Element simpleContent = document.createElement(\"simpleContent\");\n complexType.appendChild(simpleContent);\n\n Element extension = document.createElement(\"extension\");\n extension.setAttribute(\"base\", \"string\");\n simpleContent.appendChild(extension);\n\n for (Output output : tSpec.getOutputs()) {\n Element attributeElement = document.createElement(\"attribute\");\n extension.appendChild(attributeElement);\n attributeElement.setAttribute(\"name\", output.getAttribute());\n attributeElement.setAttribute(\"type\", \"string\");\n attributeElement.setAttribute(\"use\", \"optional\");\n }\n sequenceElement.appendChild(element);\n }\n\n DOMSource source = new DOMSource(document);\n TransformerFactory tFactory = TransformerFactory.newInstance();\n Transformer transformer = tFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\n StringWriter stringWriter = new StringWriter();\n StreamResult streamResult = new StreamResult(stringWriter);\n transformer.transform(source, streamResult);\n\n return stringWriter.toString();\n } catch (TransformerException e) {\n getLogger().log(Level.SEVERE, \"\", e);\n } catch (ParserConfigurationException e) {\n getLogger().log(Level.SEVERE, \"\", e);\n }\n return null;\n }",
"protected InputStream getContentXML(String viewId) throws Exception {\n if (log.isDebugEnabled()) {\n log.debug(\"requested viewId: \" + viewId);\n }\n StringBuilder sb = new StringBuilder(\"<?xml version=\\\"1.0\\\"?>\");\n sb.append(\"<root>\");\n sb.append(\"<child>\");\n sb.append(\"Hello World!\");\n sb.append(\"</child>\");\n sb.append(\"</root>\");\n return new ByteArrayInputStream(sb.toString().getBytes(\"utf-8\"));\n }",
"public String\ttoXML()\t{\n\t\treturn toXML(0);\n\t}",
"public Document getDocFromFile(String filename)\r\n throws ParserConfigurationException{\r\n {\r\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder db = dbf.newDocumentBuilder();\r\n Document doc = null;\r\n try{\r\n doc = db.parse(filename);\r\n }\r\n catch (Exception ex){\r\n System.out.println(\"XML parse failure\");\r\n ex.printStackTrace();\r\n }\r\n return doc;\r\n } \r\n }",
"public String toXML() {\n return null;\n }",
"public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }",
"public Element toXML(Document document) {\n\t\tif (document == null)\n\t\t\treturn null;\n\n\t\t// create root node\n\t\tElement w_node = document.createElement(\"GlycanWorkspace\");\n\n\t\t// create configuration node\n\t\tstoreToConfiguration(true);\n\t\tw_node.appendChild(theConfiguration.toXML(document));\n\n\t\t// create structures node\n\t\tw_node.appendChild(theStructures.toXML(document));\n\n\t\treturn w_node;\n\t}",
"public String getXmlDocument( HttpServletRequest request )\n {\n return XmlUtil.getXmlHeader( ) + getXml( request );\n }",
"private Doc(String documentElementName) {\n e = d.createElement(documentElementName);\n d.appendChild(e);\n }",
"public static Document newDocument(final String xmlContent, boolean useNamespaces) throws IOException, SAXException, ParserConfigurationException, XMLException {\n\t\tfinal ByteArrayInputStream in = new ByteArrayInputStream(xmlContent.getBytes());\n\t\treturn XMLHelper.parse(in, useNamespaces);\n\t}",
"public String printToXml()\n {\n XMLOutputter outputter = new XMLOutputter();\n outputter.setFormat(org.jdom.output.Format.getPrettyFormat());\n return outputter.outputString(this.toXml());\n }",
"public static Document getDocument(InputStream input)\n {\n return XMLTools.getDocument(input, false);\n }",
"public static Document createNewDocument(String rootName, Version version) {\r\n try {\r\n DocumentBuilder db = DocumentBuilderFactory.newInstance()\r\n .newDocumentBuilder();\r\n Document doc = db.newDocument();\r\n Node root = doc.createElement(rootName);\r\n if (version != null) {\r\n addAttr(doc, root, \"version\", version);\r\n }\r\n\r\n doc.appendChild(root);\r\n return doc;\r\n } catch (Exception e) {\r\n logger.log(Level.SEVERE, \"exception\", e);\r\n }\r\n\r\n return null;\r\n }",
"public Element toXml(Document doc)\n {\n if (null == doc)\n throw new IllegalArgumentException(\"Must provide a valid Document\");\n Element root = doc.createElement(XML_NODE_NAME);\n root.setAttribute(XML_NAME_ATTR, m_name);\n if (m_displayName.length() > 0)\n root.setAttribute(XML_DISPLAYNAME_ATTR, m_displayName);\n root.setAttribute(XML_DIMENSION_ATTR, m_dimension);\n root.setAttribute(XML_CHOICESET_ATTR, m_choiceSet);\n if (m_description.length() > 0)\n PSXmlDocumentBuilder.addElement(doc, root, XELEM_DESCRIPTION,\n m_description);\n\n // psxctl:ParamList\n if (m_params.size() > 0)\n {\n Element paramList = doc.createElement( XELEM_PARAMLIST );\n for (Iterator iter = m_params.iterator(); iter.hasNext();)\n {\n PSControlParameter param = (PSControlParameter) iter.next();\n paramList.appendChild(param.toXml(doc));\n }\n root.appendChild(paramList);\n }\n\n // psxctl:AssociatedFileList\n if (m_files.size() > 0)\n {\n Element files = doc.createElement( XELEM_FILES );\n for (Iterator iter = m_files.iterator(); iter.hasNext();)\n {\n PSFileDescriptor file = (PSFileDescriptor) iter.next();\n files.appendChild( file.toXml( doc ) );\n }\n root.appendChild(files);\n }\n\n // psxctl:Dependencies\n if (m_dependencies.size() > 0)\n {\n Element dependencies = doc.createElement( XELEM_DEPENDENCIES );\n for (Iterator iter = m_dependencies.iterator(); iter.hasNext();)\n {\n PSDependency dependency = (PSDependency) iter.next();\n dependencies.appendChild( dependency.toXml( doc ) );\n }\n root.appendChild(dependencies);\n }\n\n return root;\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 String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( QuotaUserRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}",
"public String generateXML() \n { \n \n String xml = new String();\n \n String nodetype = new String();\n if (type.equals(\"internal\")){\n nodetype = \"INTERNAL\"; //change this for change in XML node name\n }\n else {\n nodetype = \"LEAF\"; //change this for change in XML node name\n }\n \n xml = \"<\" + nodetype;\n if (!name.equals(\"\")){\n xml = xml + \" name = \\\"\" + name + \"\\\"\";\n }\n if (length >0){\n xml = xml + \" length = \\\"\" + length + \"\\\"\";\n }\n //Section below tests tree size and depths\n // if (level > 0){\n // xml = xml + \" level = \\\"\" + level + \"\\\"\";\n // }\n //if (depth > 0){\n // xml = xml + \" depth = \\\"\" + depth + \"\\\"\";\n //}\n //if (newicklength > 0){\n // xml = xml + \" newicklength = \\\"\" + newicklength + \"\\\"\";\n //}\n // if (treesize > 0){\n // xml = xml + \" treesize = \\\"\" + treesize + \"\\\"\";\n //}\n //if (startxcoord >= 0){\n // xml = xml + \" startx = \\\"\" + startxcoord + \"\\\"\";\n //}\n //if (endxcoord >= 0){\n // xml = xml + \" endx = \\\"\" + endxcoord + \"\\\"\";\n //}\n //Test section done\n xml = xml + \">\";\n \n if (!children.isEmpty()){ //if there are children in this node's arraylist\n Iterator it = children.iterator();\n while(it.hasNext()){\n Node child = (Node) it.next();\n xml = xml + child.generateXML(); //The recursive coolness happens here!\n }\n }\n xml = xml + \"</\" + nodetype + \">\";\n \n return xml;\n }",
"public Document readDocument();",
"public static XML getDefaultXML() {\r\n try {\r\n return (XML) Class.forName(defaultXMLName).newInstance();\r\n }\r\n catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }",
"public static Document convertStringToDocument(String xmlStr) {\n\t DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n\t DocumentBuilder builder; \n\t try \n\t { \n\t builder = factory.newDocumentBuilder(); \n\t Document doc = builder.parse( new InputSource( new StringReader( xmlStr ) ) ); \n\t \n\t return doc;\n\t } catch (Exception e) { \n\t \tString mensajeError = \"Error en el formato del archivo XML\" + \"\\nIntÚntelo denuevo con otro archivo\";\n\t\t\t\tJOptionPane.showMessageDialog(null,mensajeError,\"Parsing Error\",JOptionPane.ERROR_MESSAGE); \n\t\t\t\te.printStackTrace();\n\t } \n\t return null;\n\t }",
"public XmlDocumentDefinition() {\n }",
"abstract org.apache.xmlbeans.XmlObject getXmlObject();",
"protected abstract void toXml(PrintWriter result);",
"public String formatXml(String str) throws UnsupportedEncodingException, IOException, DocumentException {\n\t\tSAXReader reader = new SAXReader();\r\n\t\t// System.out.println(reader);\r\n\t\t// 注释:创建一个串的字符输入流\r\n\t\tStringReader in = new StringReader(str);\r\n\t\tDocument doc = reader.read(in);\r\n\t\t// System.out.println(doc.getRootElement());\r\n\t\t// 注释:创建输出格式\r\n\t\tOutputFormat formater = OutputFormat.createPrettyPrint();\r\n\t\t// 注释:设置xml的输出编码\r\n\t\tformater.setEncoding(\"utf-8\");\r\n\t\t// 注释:创建输出(目标)\r\n\t\tStringWriter out = new StringWriter();\r\n\t\t// 注释:创建输出流\r\n\t\tXMLWriter writer = new XMLWriter(out, formater);\r\n\t\t// 注释:输出格式化的串到目标中,执行后。格式化后的串保存在out中。\r\n\t\twriter.write(doc);\r\n\r\n\t\tString destXML = out.toString();\r\n\t\twriter.close();\r\n\t\tout.close();\r\n\t\tin.close();\r\n\t\t// 注释:返回我们格式化后的结果\r\n\t\treturn destXML;\r\n\t}",
"public static HashMap<String, String> OutputXml() {\n\t\treturn methodMap(\"xml\");\n\t}",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"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}",
"public XDoc getDoc() {\r\n\t\treturn doc;\r\n\t}",
"@GET\n\t@Produces( { MediaType.TEXT_XML })\n\tpublic UserXML getHTML() {\n\t\tUserXML user = new UserXML();\n\t\tuser.setName(\"Sagar Prasad\");\n\t\tuser.setDescription(\"Some Description\");\n\t\treturn user;\n\t}",
"public static Document createJdomDoc(String xmlString) {\n\t\ttry {\n\t\t\tSAXBuilder builder = new SAXBuilder();\n\t\t\tDocument doc = builder.build(new ByteArrayInputStream(xmlString.getBytes()));\n\t\t\treturn doc;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (JDOMException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}",
"public final String toString() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"<?xml version=\\\"1.0\\\"?>\").append(br());\n toXML(sb, 0);\n return sb.toString();\n }",
"@GET\n @Produces(MediaType.TEXT_XML)\n public String sayXMLHello() {\n return \"<?xml version=\\\"1.0\\\"?>\" + \"<hello> Hello Jersey\" + \"</hello>\";\n }",
"public static Document getDocument(File xmlFile)\n {\n return XMLTools.getDocument(xmlFile, false);\n }",
"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 Object getContent() {\n\t\tManageProperties properties = ManageProperties.getInstance();\n\t\tDocument gateDoc = null;\n\t\ttry {\n\t\t\tgateDoc = (Document) Factory.createResource(\"gate.corpora.DocumentImpl\", Utils.featureMap(\"encoding\", properties.getValue(PropertiesFields.ENCODING.toString())));\n\t\t\tDocumentType doc = xmldoc.getDocument();\n\t\t\tgateDoc.setContent(new DocumentContentImpl(doc.getText()));\n\t\t\tAnnotationSet defaultSet = gateDoc.getAnnotations();\n\t\t\tTokensType tokens = doc.getTokens();\n\t\t\tIterator<TokenType> iterTokens = tokens.getToken().iterator();\n\t\t\twhile(iterTokens.hasNext()) {\n\t\t\t\tTokenType token = iterTokens.next();\n\t\t\t\tFeatureMap tokenFeatures = Factory.newFeatureMap();\n\t\t\t\ttokenFeatures.put(\"string\", token.getForm());\n\t\t\t\ttokenFeatures.put(\"root\", token.getLemma());\n\t\t\t\ttokenFeatures.put(\"category\", token.getCategory());\n\t\t\t\tdefaultSet.add(token.getBeginspan().longValue(), token.getEndspan().longValue(), \"Token\", tokenFeatures);\n\t\t\t}\n\t\t\t\n\t\t\tIterator<SentenceType> iterSentences = doc.getSentence().iterator();\n\t\t\twhile(iterSentences.hasNext()) {\n\t\t\t\tSentenceType sent = iterSentences.next();\n\t\t\t\tdefaultSet.add(sent.getBeginspan().longValue(), sent.getEndspan().longValue(), \"Sentence\", Factory.newFeatureMap());\n\t\t\t}\n\t\t} catch (ResourceInstantiationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidOffsetException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn (gateDoc);\n\t}",
"public Element getDocument() {\n\t\t\n\t\tElement retval = getRoot();\n\t\t\n\t\tList<Element> children;\n\t\t\n\t\tif ( retval.getName().equals(\"ROOT\") && (children = retval.getAllChildren()).size() > 0 )\n\t\t\tretval = children.get(0);\n\t\t\n\t\treturn retval;\n\n\t}",
"protected abstract Element toXmlEx(Document doc);",
"protected synchronized DocumentBuilder getDocumentBuilder() throws ParserConfigurationException {\r\n if (documentBuilder != null) {\r\n return documentBuilder;\r\n } else {\r\n // create the document builder\r\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n factory.setNamespaceAware(true);\r\n this.documentBuilder = factory.newDocumentBuilder();\r\n return this.documentBuilder;\r\n }\r\n }",
"public static final String documentToXML( Document clinicalDocument ) {\n String cdaXml=\"\";\n try {\n \n TransformerFactory factory = TransformerFactory.newInstance();\n Transformer transformer = factory.newTransformer();\n transformer.setOutputProperty( OutputKeys.OMIT_XML_DECLARATION, \"no\" );\n transformer.setOutputProperty( OutputKeys.INDENT, \"yes\" );\n \n StringWriter writer = new StringWriter();\n StreamResult result = new StreamResult( writer );\n \n DOMSource domSource = new DOMSource( clinicalDocument );\n transformer.transform( domSource, result );\n \n writer.flush();\n writer.close();\n cdaXml = writer.toString();\n \n } catch (Exception e) {\n e.printStackTrace(); \n }\n return cdaXml;\n }"
] | [
"0.8094399",
"0.7731441",
"0.7327655",
"0.718744",
"0.71856964",
"0.7016055",
"0.7006008",
"0.69793606",
"0.6854797",
"0.68196654",
"0.6770042",
"0.6770042",
"0.6770042",
"0.67376643",
"0.66929996",
"0.66787446",
"0.66418874",
"0.66184795",
"0.6617271",
"0.65920997",
"0.65560454",
"0.65560454",
"0.6539306",
"0.6516455",
"0.64915466",
"0.64737475",
"0.64686906",
"0.6431226",
"0.64270097",
"0.6416595",
"0.64048266",
"0.64026856",
"0.63974714",
"0.6369328",
"0.63639945",
"0.6355435",
"0.63492113",
"0.6340445",
"0.6340445",
"0.6340445",
"0.6340445",
"0.63155615",
"0.6285887",
"0.6283877",
"0.62462765",
"0.61810315",
"0.61535156",
"0.6152794",
"0.61419976",
"0.6131995",
"0.61012894",
"0.6090517",
"0.607929",
"0.6069917",
"0.6066584",
"0.60604984",
"0.6041533",
"0.59960365",
"0.5993768",
"0.59930366",
"0.5984379",
"0.5968674",
"0.59564924",
"0.59513694",
"0.59432316",
"0.59412384",
"0.5939147",
"0.5934618",
"0.59298265",
"0.592291",
"0.5922372",
"0.5917929",
"0.5911541",
"0.5911332",
"0.5908572",
"0.58991957",
"0.5897508",
"0.5891452",
"0.58907557",
"0.5889038",
"0.58780646",
"0.58755034",
"0.58754826",
"0.5872058",
"0.58719957",
"0.5867422",
"0.5867422",
"0.5863572",
"0.586321",
"0.5849933",
"0.58307576",
"0.5826636",
"0.58200073",
"0.581229",
"0.5810076",
"0.5804738",
"0.5803672",
"0.57985926",
"0.579271",
"0.57841367"
] | 0.5883389 | 80 |
Method for set static variable that enable or disable xml validation from the GUI | public static void setXmlEnableValidationFromGui(Boolean inputStatus)
{
enableValidationFromGui = inputStatus;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setValidSettings(boolean valid);",
"@Override\n public void setValidationMode(int validationMode) {\n if (null == documentBuilderFactory) {\n loadDocumentBuilderFactory();\n }\n switch (validationMode) {\n case XMLParser.NONVALIDATING: {\n documentBuilderFactory.setValidating(false);\n // documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, null);\n return;\n }\n case XMLParser.DTD_VALIDATION: {\n documentBuilderFactory.setValidating(true);\n XMLHelper.allowExternalDTDAccess(documentBuilderFactory, \"all\", false);\n // documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, null);\n return;\n }\n case XMLParser.SCHEMA_VALIDATION: {\n try {\n documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, XML_SCHEMA);\n documentBuilderFactory.setValidating(true);\n XMLHelper.allowExternalAccess(documentBuilderFactory, \"all\", false);\n } catch (IllegalArgumentException e) {\n // This parser does not support XML Schema validation so leave it as\n // a non-validating parser.\n }\n return;\n }\n }\n }",
"@Override\n public void setConfigXML(Collection<Element> configXML, boolean visAvailable) {\n }",
"public SELF enableValidation() {\n this.enableValidation = true;\n return self();\n }",
"public void setDataValidation(String dataValidation);",
"@Override\n\t\tpublic boolean hasPassedXMLValidation() {\n\t\t\treturn false;\n\t\t}",
"void setManualCheck (boolean value);",
"public void setValidation(boolean validate) {\n this.validate = validate;\n }",
"public void setValidate(boolean validate) {\r\r\r\r\r\r\n this.validate = validate;\r\r\r\r\r\r\n }",
"void xsetRequired(org.apache.xmlbeans.XmlBoolean required);",
"public boolean isValidationEnabled();",
"private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }",
"protected void setSoftAssert() {\n\t\tValidationUtils mySoftAssert = new ValidationUtils();\n\t\tsoftAssert.set(mySoftAssert);\n\t}",
"protected void setXmlUtil(XmlUtil xmlUtil)\n {\n this.xmlUtil = xmlUtil;\n }",
"private void enableSet(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(true);\n setSubmit.setDisable(false);\n addCS.setDisable(true);\n removeCS.setDisable(true);\n setCS.setDisable(false);\n addIT.setDisable(true);\n removeIT.setDisable(true);\n setIT.setDisable(false);\n addECE.setDisable(true);\n removeECE.setDisable(true);\n setECE.setDisable(false);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(true);\n dateSetText.setDisable(false);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(true);\n nameSetText.setDisable(false);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(false);\n }",
"public void setValid(boolean value)\r\n {\r\n //Override this method in MediaItem object\r\n getSemanticObject().setBooleanProperty(swb_valid, value,false);\r\n }",
"public void setInvalid();",
"private void setEnableComponents(){\r\n awardAddDocumentForm.cmbDocumentType.setEnabled(true);\r\n awardAddDocumentForm.txtDescription.setEditable(true);\r\n awardAddDocumentForm.txtFileName.setEditable(false);\r\n awardAddDocumentForm.btnUpload.setEnabled(true);\r\n awardAddDocumentForm.btnOk.setEnabled(true);\r\n awardAddDocumentForm.btnCancel.setEnabled(true);\r\n awardAddDocumentForm.btnView.setEnabled(false);\r\n }",
"boolean getValidSettings();",
"private void init() {\n\t\t\n\t\tsetEnabled(true);\n\t}",
"private void setMultipleChecks() {\r\n\r\n checkNemenyi.setEnabled(true);\r\n checkShaffer.setEnabled(true);\r\n checkBergman.setEnabled(true);\r\n\r\n checkIman.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n }",
"public void check() throws XMLBuildException {\r\n\t\tif (this.attribute == null) \r\n\t\t\tthrow new XMLBuildException(\"you must set the attribute\", this);\r\n\t}",
"public abstract void setCheck(Boolean check);",
"public Boolean getBypassDocumentValidation() {\n return bypassDocumentValidation;\n }",
"boolean isExecutableValidationEnabled();",
"public void validate(){\n if (validated){\n validated = false;\n } else {\n validated = true;\n }\n }",
"public static void setXmlEnableIgnoringWhitespaceFromGui(Boolean inputStatus)\r\n {\r\n enableIgnoringWhitespaceFromGui = inputStatus;\r\n }",
"void xsetAuto(org.apache.xmlbeans.XmlBoolean auto);",
"private void setvalidation(String msg, int validateflag, char validateresult) {\r\n\t\tmAlertMsg = msg;\r\n\t\tmValidateFlag = validateflag;\r\n\t\tmValidateResult = validateresult;\r\n\t}",
"public void setDisableNameValidation(String tmp) {\n this.disableNameValidation = DatabaseUtils.parseBoolean(tmp);\n }",
"public void setDisableNameValidation(boolean tmp) {\n this.disableNameValidation = tmp;\n }",
"private void setValidators() {\n getUtils().addNoNumbers(getOriginTxt(), getValidatorTxt());\n getUtils().addNoNumbers(getDestinationTxt(), getValidatorTxt());\n getUtils().addNoNumbers(getCollectionPlaceTxt(), getValidatorTxt());\n getUtils().addNoNumbers(getDeliveryPlaceTxt(), getValidatorTxt());\n getUtils().eurosListener(getTravelValueTxt(), getValidatorTxt());\n getUtils().eurosListener(getMoneyforDriverTxt(), getValidatorTxt());\n getUtils().eurosListener(getCustomsTxt(), getValidatorTxt());\n getUtils().eurosListener(getOtherExpensesTxt(), getValidatorTxt());\n getUtils().eurosListener(getShippingExpensesTxt(), getValidatorTxt());\n //No listenerValidator for distance because, finally it is a string\n// getUtils().distanceListener(getDistanceTxt(), getValidatorTxt());\n getUtils().dateValidator(getDateTxt(), getValidatorTxt());\n getUtils().timeListener(getArriveHourTxt(), getValidatorTxt());\n getUtils().timeListener(getExitHourTxt(), getValidatorTxt());\n getUtils().timeListener(getProvidedHourTxt(), getValidatorTxt());\n\n }",
"@FXML\n\tprivate void enableFPGA() {\n\t\tcheckFieldEditOrNot = true;\n\t\tif (enableFPGA.isSelected()) {\n\t\t\tfpgaFamily.setDisable(false);\n\t\t\tbrowseBitFile.setDisable(false);\n\t\t\tSX3Manager.getInstance().addLog(\"Enable FIFO Master Configuration Download : \" + true + \".<br>\");\n\t\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t\t} else {\n\t\t\tfpgaFamily.setDisable(true);\n\t\t\tbrowseBitFile.setDisable(true);\n\t\t\tchooseBitFile.setText(\"\");\n\t\t\tbitFileSize.setText(\"0\");\n\t\t\tSX3Manager.getInstance().addLog(\"Enable FIFO Master Configuration Download : \" + false + \".<br>\");\n\t\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t\t}\n\t}",
"void xsetPowerBox(org.apache.xmlbeans.XmlBoolean powerBox);",
"public void flagOrUnflagValidationError(boolean validationMode);",
"@Override\r\n protected boolean validateSystemSettings() {\n return true;\r\n }",
"public void setGeneratedCheck(){\n generatedCheck = !generatedCheck;\n }",
"public void init() {\r\n\t\ttry {\r\n\t\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\r\n\t\t\t//factory.setValidating(true);\r\n\t\t\t//factory.setFeature(\r\n\t\t\t//\t\t\"http://apache.org/xml/features/validation/schema\", true);\r\n\t\t\tfactory.setNamespaceAware(true);\r\n\t\t\t_parser = factory.newSAXParser();\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tLoggerUtilsServlet.logErrors(e);\r\n\t\t}\r\n\t}",
"public void setValid() {\r\n\r\n\t\tthis.studentNameLabel.setStyle(\"-fx-text-fill: black\");\r\n\t\tthis.studentYearLabel.setStyle(\"-fx-text-fill: black\");\r\n\t}",
"private void enableServicesXMLBrowse(){\n\t\txmlBrowseButton.setEnabled(true);\n\t\tservicesXMLPath.setEnabled(true);\n\t}",
"public boolean validate(){\n return true;\n }",
"protected void validateConfiguration() {}",
"@Override\r\n\tpublic void validate() {\n\t\tsuper.validate();\r\n\t\tif(nofck == null)\r\n\t\t\tnofck = false;\r\n\t}",
"protected void executeValidation(XPath xpath, Document dom, EDLValidation validation, EDLContext edlContext) throws Exception {\n\t\tif (XPATH_TYPE.equals(validation.getType())) {\n\t\t\tBoolean result = (Boolean)xpath.evaluate(validation.getExpression(), dom, XPathConstants.BOOLEAN);\n\t\t\t// if validation returns false, we'll flag the error\n\t\t\tif (!result) {\n\t\t\t\tString key = validation.getKey();\n\t\t\t\tif (!StringUtils.isEmpty(key)) {\n\t\t\t\t\tMap<String, String> fieldErrors = (Map<String, String>)edlContext.getRequestParser().getAttribute(RequestParser.GLOBAL_FIELD_ERRORS_KEY);\n\t\t\t\t\tfieldErrors.put(key, validation.getMessage());\n\n\t\t\t\t\t// set invalid attribute to true on corresponding field\n\t\t\t\t\t//TODO remove - handled this in the widgets\n//\t\t\t\t\tElement edlElement = EDLXmlUtils.getEDLContent(dom, false);\n//\t\t\t\t\tElement edlSubElement = EDLXmlUtils.getOrCreateChildElement(edlElement, \"data\", true);\n//\t\t\t\t\tNodeList versionNodes = edlSubElement.getChildNodes();\n//\t\t\t\t\tfor (int i = 0; i < versionNodes.getLength(); i++) {\n//\t\t\t\t\t\tElement version = (Element) versionNodes.item(i);\n//\t\t\t\t\t\tString current = version.getAttribute(\"current\");\n//\t\t\t\t\t\tif (current == \"true\") {\n//\t\t\t\t\t\t\tNodeList fieldNodes = version.getChildNodes();\n//\t\t\t\t\t\t\tfor (int j = 0; j < fieldNodes.getLength(); j++) {\n//\t\t\t\t\t\t\t\tElement field = (Element) fieldNodes.item(j);\n//\t\t\t\t\t\t\t\tString fieldName = field.getAttribute(\"name\");\n//\t\t\t\t\t\t\t\tif(fieldName.equals(key)) {\n//\t\t\t\t\t\t\t\t\tfield.setAttribute(\"invalid\", \"true\");\n//\t\t\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tList globalErrors = (List)edlContext.getRequestParser().getAttribute(RequestParser.GLOBAL_ERRORS_KEY);\n\t\t\t\t\tglobalErrors.add(validation.getMessage());\n\t\t\t\t}\n\t\t\t\tedlContext.setInError(true);\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new WorkflowRuntimeException(\"Illegal validation type specified. Only 'xpath' is currently supported.\");\n\t\t}\n\t}",
"static void setNotEdit(){isEditing=false;}",
"public void setValidationEnabled(boolean validationEnabled) {\n\t\tthis.validationEnabled = validationEnabled;\n\t}",
"public void testSetCancelButtonEnabled() {\n System.out.println(\"setCancelButtonEnabled\");\n boolean newValue = false;\n Wizard instance = new Wizard();\n instance.setCancelButtonEnabled(newValue);\n }",
"boolean getValidateOnly();",
"boolean getValidateOnly();",
"private void setOneAllChecks() {\r\n\r\n checkIman.setEnabled(true);\r\n checkBonferroni.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n checkHochberg.setEnabled(true);\r\n checkHommel.setEnabled(true);\r\n checkHolland.setEnabled(true);\r\n checkRom.setEnabled(true);\r\n checkFinner.setEnabled(true);\r\n checkLi.setEnabled(true);\r\n\r\n }",
"public void setEnabled(boolean aFlag) { _enabled = aFlag; }",
"public void setValidation(String validation) {\n this.validation = validation;\n }",
"private void setModeUI(){\n\n if (this.inManualMode == true){ this.enableRadioButtons(); } // manual mode\n else if (this.inManualMode == false){ this.disableRadioButtons(); } // automatic mode\n }",
"public void setValid(boolean newValid) {\n \t\tvalid = newValid;\n \t}",
"protected void validate() {\n // no op\n }",
"static void setNotSaved(){saved=false;}",
"@Override\n\t\tpublic void setValid(final boolean valid) {\n\t\t}",
"private void checkEnabled() {\n }",
"@Override\n public int getValidationMode() {\n if (null == documentBuilderFactory) {\n loadDocumentBuilderFactory();\n }\n if (!documentBuilderFactory.isValidating()) {\n return XMLParser.NONVALIDATING;\n }\n\n try {\n if (null == documentBuilderFactory.getAttribute(SCHEMA_LANGUAGE)) {\n return XMLParser.DTD_VALIDATION;\n }\n } catch (IllegalArgumentException e) {\n return XMLParser.DTD_VALIDATION;\n }\n\n return XMLParser.SCHEMA_VALIDATION;\n }",
"@Override\n\tprotected void setControlListeners() {\n\t\tcheckBox.selectedProperty().addListener(new ChangeListener<Boolean>() {\n\t\t\t@Override\n\t\t\tpublic void changed(\n\t\t\t\t\tObservableValue<? extends Boolean> observable,\n\t\t\t\t\tBoolean oldValue, Boolean newValue) {\n\t\t\t\tif (!settingsPane.isExperimentRunning()) {\n\t\t\t\t\tparameter.set(newValue);\n\t\t\t\t\tsettingsPane.revalidateParameters();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"void setRequired(boolean required);",
"public void changed() \n\t{\n\t\ttry\n\t\t{ \n\t\t\tif ( textField.getText().equals(\"\")|| passwordField.getPassword().equals(\"\") )\n\t\t\t{\n\t\t\t\tbtnSet.setEnabled(false);\t \n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t \t btnSet.setEnabled(true);\n\t\t\t}\n\t\t}catch(NullPointerException e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}",
"@Override\n public void setValidationVisible(boolean validateAutomatically) {\n super.setValidationVisible(validateAutomatically);\n\n if (validateAutomatically && valueChangeListener == null) {\n valueChangeListener = new ValueChangeListener() {\n @Override\n public void valueChange(Property.ValueChangeEvent event) {\n fireValueChange(false);\n }\n };\n for (Field<?> field : fieldGroup.getFields()) {\n field.addValueChangeListener(valueChangeListener);\n }\n } else if (!validateAutomatically && valueChangeListener != null) {\n for (Field<?> field : fieldGroup.getFields()) {\n field.removeValueChangeListener(valueChangeListener);\n }\n valueChangeListener = null;\n }\n }",
"public void setXmlx(java.lang.String param) {\r\n localXmlxTracker = param != null;\r\n\r\n this.localXmlx = param;\r\n }",
"public LagartoDOMBuilder enableXmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = true; // ignore whitespaces that are non content\n\t\tconfig.parserConfig.setCaseSensitive(true); // XML is case sensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(false); // all tags are parsed in the same way\n\t\tconfig.enabledVoidTags = false; // there are no void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close empty tags (can be changed!)\n\t\tconfig.impliedEndTags = false; // no implied tag ends\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // disable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(true); // enable XML mode in parsing\n\t\treturn this;\n\t}",
"@FXML\n void disableAnnualCode() {\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n hourlyAddText.setDisable(false);\n }",
"void xsetQuick(org.apache.xmlbeans.XmlBoolean quick);",
"@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property void setXmlStandalone(boolean xmlStandalone);",
"@Override\n\tpublic void setDefinitionWidgetReadOnly(boolean isEditable){\n\t\t\n\t\tgetDefineNameTxtArea().setEnabled(isEditable);\n\t\tgetDefineAceEditor().setReadOnly(!isEditable);\n\t\tgetContextDefinePATRadioBtn().setEnabled(isEditable);\n\t\tgetContextDefinePOPRadioBtn().setEnabled(isEditable);\n\t\tSystem.out.println(\"in setDefinitionWidgetReadOnly: setting Ace Editor read only flag. read only = \" + !isEditable);\n\t\tgetDefineButtonBar().getSaveButton().setEnabled(isEditable);\n\t\tgetDefineButtonBar().getDeleteButton().setEnabled(isEditable);\n\t\tgetDefineButtonBar().getInsertButton().setEnabled(isEditable);\n\t\tgetDefineButtonBar().getTimingExpButton().setEnabled(isEditable);\n\t}",
"public boolean getValidation() {\n return validate;\n }",
"public void validate() {\n\t\tthis.invalidated = false;\n\t}",
"public void setValidateLocation(boolean validateLocation) {\n inputParameters.ValidateLocation = validateLocation;\n\n }",
"public abstract void\n bypassValidation_();",
"protected void setValidatedFlag(boolean value) {\n createFlags();\n flags[VALIDATED] = value;\n }",
"void setestadoRadio(boolean x){\n estadoRadio = x;\n }",
"void setupInvalidators() {\n addInvalidator(varLower.sym, makeInvalidateLower());\n addInvalidator(varUpper.sym, makeInvalidateUpper());\n if (varStep != null) {\n addInvalidator(varStep.sym, makeInvalidateStep());\n }\n addInvalidator(varSize.sym, makeInvalidateSize());\n }",
"void validate() throws JDOMException, SAXException, IOException {\n\t\tif (oldLangFile != null && addressFactory == null || registerMgr == null) {\n\t\t\treadOldLanguage(false);\n\t\t}\n\t}",
"public static void error()\r\n {\r\n valid=false;\r\n\r\n }",
"public void checkValid() throws StyxException\n {\n if (this.getJSAPParameter() instanceof Option)\n {\n Option op = (Option)this.getJSAPParameter();\n if (this.valueSet)\n {\n if (this.param.getInputFile() != null)\n {\n // This parameter represents an input file. See if this is a URL\n // and if so, download it\n // TODO: if this is not a URL, check that it exists\n String str = this.getParameterValue();\n if (str.startsWith(URL_PREFIX))\n {\n // This could be a URL\n String urlStr = str.substring(URL_PREFIX.length());\n try\n {\n URL url = new URL(urlStr);\n File urlPath = new File(url.getPath());\n // TODO: be cleverer about file names, particularly\n // watching out for name clashes\n String name = urlPath.getName().equals(\"\") ? \"random.dat\" : urlPath.getName();\n this.instance.downloadFrom(url, name);\n // Now set the contents of this file to the new file name\n this.setParameterValue(name);\n }\n catch(MalformedURLException mue)\n {\n throw new StyxException(urlStr + \" is not a valid URL\");\n }\n }\n }\n }\n else\n {\n // A value hasn't been set\n if (op.required())\n {\n throw new StyxException(this.name + \" is a required parameter:\" +\n \" a value must be set\");\n }\n }\n }\n }",
"@Test\n public void testParseDOMToExistenceValidationWidgetOnlySucceeds()\n {\n FixtureProperties properties = parser.parse(DefaultConfigurationParserMockDOMs\n .createDOMToExistenceValidationWidgetOnly());\n verifyCommonPropertiesAssertions(properties);\n }",
"private void enableCheckChange() {\n this.tree.addListener(Events.CheckChange, new GPCheckListener(visitorDisplay));\n }",
"boolean getValid();",
"private void setClockID(boolean a) {\n//Khoa hoac mo khoa cho Cac JTextField\n this.txtExamDate.setEnabled(!a);\n }",
"private void setRelationsValid(boolean value)\n {\n __relationsValid = value;\n }",
"void setInputVerification() {\r\n\t\tlistenerForOnlyDigitsInput(tfphone);\r\n\t\tlistenerForOnlyDigitsInput(tfIDNumber);\r\n\t\tlistenerForOnlyDigitsInput(tfCreditCard1);\r\n\t\tlistenerForOnlyDigitsInput(tfCreditCard2);\r\n\t\tlistenerForOnlyDigitsInput(tfCreditCard3);\r\n\t\tlistenerForOnlyDigitsInput(tfCreditCard4);\r\n\t}",
"public void setInputXml(java.lang.String param) {\r\n localInputXmlTracker = param != null;\r\n\r\n this.localInputXml = param;\r\n }",
"public void setInputXml(java.lang.String param) {\r\n localInputXmlTracker = param != null;\r\n\r\n this.localInputXml = param;\r\n }",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"public boolean setEnabled(boolean enable);",
"public void setXml(java.lang.String newXml);",
"@Override\n\tpublic void setEnabled(boolean flag) {\n\t\t\n\t}",
"@Override\n public void customValidation() {\n }",
"@Override\n public void customValidation() {\n }",
"@Override\n public void customValidation() {\n }",
"public void HideValidation() {\n try {\n rl_validation.setVisibility(View.GONE);\n } catch (Exception e) {\n e.printStackTrace();\n appsingleton.ToastMessage(\"\" + e.getMessage());\n }\n }",
"public static void startValidation() {\n errList = new ArrayList<>();\n }",
"@Override\r\n\tprotected Validator setValidator() {\n\t\treturn null;\r\n\t}"
] | [
"0.63911194",
"0.6005254",
"0.59283465",
"0.59249693",
"0.5914532",
"0.5859235",
"0.577544",
"0.5761391",
"0.575905",
"0.5695875",
"0.56862915",
"0.5676449",
"0.5663765",
"0.56588787",
"0.5646102",
"0.5640963",
"0.55842656",
"0.55121744",
"0.5486484",
"0.54742664",
"0.54741406",
"0.5448834",
"0.54442525",
"0.5441258",
"0.54052085",
"0.539856",
"0.5394888",
"0.53808993",
"0.5378507",
"0.5370262",
"0.5349584",
"0.5344966",
"0.5312895",
"0.5289209",
"0.5288305",
"0.52869487",
"0.52862746",
"0.52668667",
"0.5264798",
"0.52624947",
"0.5261387",
"0.5254074",
"0.5232168",
"0.5225414",
"0.5220294",
"0.52190053",
"0.5212517",
"0.51998055",
"0.51998055",
"0.51992273",
"0.51986057",
"0.51907396",
"0.5184206",
"0.5174337",
"0.51682067",
"0.5166625",
"0.5157707",
"0.5148116",
"0.5132199",
"0.5125194",
"0.51227593",
"0.5119385",
"0.511647",
"0.5110921",
"0.51107156",
"0.51087064",
"0.51079935",
"0.5103991",
"0.5099474",
"0.509315",
"0.50826347",
"0.5082189",
"0.5080924",
"0.5076819",
"0.5068874",
"0.50629157",
"0.506165",
"0.5058265",
"0.50514686",
"0.50481397",
"0.5044512",
"0.5043964",
"0.5043109",
"0.50402707",
"0.50362504",
"0.50206757",
"0.50206757",
"0.5011637",
"0.5011637",
"0.5011637",
"0.5011637",
"0.50079775",
"0.5007562",
"0.5005142",
"0.50009644",
"0.50009644",
"0.50009644",
"0.49964997",
"0.49949676",
"0.49883708"
] | 0.7231769 | 0 |
Method for set static variable that enable or disable xml blank ignoring option | public static void setXmlEnableIgnoringWhitespaceFromGui(Boolean inputStatus)
{
enableIgnoringWhitespaceFromGui = inputStatus;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LagartoDOMBuilder enableXmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = true; // ignore whitespaces that are non content\n\t\tconfig.parserConfig.setCaseSensitive(true); // XML is case sensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(false); // all tags are parsed in the same way\n\t\tconfig.enabledVoidTags = false; // there are no void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close empty tags (can be changed!)\n\t\tconfig.impliedEndTags = false; // no implied tag ends\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // disable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(true); // enable XML mode in parsing\n\t\treturn this;\n\t}",
"void xsetAuto(org.apache.xmlbeans.XmlBoolean auto);",
"private void enableDisable() throws Exception\n\t{\n\t\tfor (String param : parameters.keySet())\n\t\t{\n\t\t\tif (piseMarshaller.getPrecond(param) != null)\n\t\t\t{\n\t\t\t\tElement element = parameters.get(param); \n\t\t\t\tif (processPrecond(param) == true)\n\t\t\t\t{\n\t\t\t\t\telement.enabled = true;\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\telement.enabled = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void enableSet(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(true);\n setSubmit.setDisable(false);\n addCS.setDisable(true);\n removeCS.setDisable(true);\n setCS.setDisable(false);\n addIT.setDisable(true);\n removeIT.setDisable(true);\n setIT.setDisable(false);\n addECE.setDisable(true);\n removeECE.setDisable(true);\n setECE.setDisable(false);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(true);\n dateSetText.setDisable(false);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(true);\n nameSetText.setDisable(false);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(false);\n }",
"private XmlHelper() {}",
"private static void customSettingWhenDisabled(){\n if (format == null) setFormat(false);\n if (!format.equals(\"\")) tick(false); // If the setting is not empty, then use our custom format\n }",
"@Override\n public void setConfigXML(Collection<Element> configXML, boolean visAvailable) {\n }",
"public void setToWhite();",
"void xsetRequired(org.apache.xmlbeans.XmlBoolean required);",
"public static String no() {\n\t\treturn \"allowusersetup no\" + delimiter + \"allowusersetup no \";\n\t}",
"@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property void setXmlStandalone(boolean xmlStandalone);",
"public void genRepCheck(){\r\n if (tx_cb.getValue() == null || paModules.getValue() == null || mainExciterSW.getValue() == null\r\n || filter.getValue() == null || switchPatch.getValue() == null || testLoad.getValue() == null\r\n || mainAntFeed.getValue() == null)\r\n genRep.setDisable(true);\r\n else\r\n genRep.setDisable(false);\r\n }",
"public void setXmlx(java.lang.String param) {\r\n localXmlxTracker = param != null;\r\n\r\n this.localXmlx = param;\r\n }",
"public Builder setImportConfigurationNull(boolean value) {\n \n importConfigurationNull_ = value;\n onChanged();\n return this;\n }",
"public static boolean allowOverwrite() {\n\t\tif ((xml != null) && (overwrite != null) && overwrite.equals(\"no\")) return false;\n\t\treturn true;\n\t}",
"void setBasicMode() {basicMode = true;}",
"void xsetParlay(org.apache.xmlbeans.XmlBoolean parlay);",
"public XMLBuilder()\n\t{\n\t\tthis(\"\");\n\t}",
"void xsetQuick(org.apache.xmlbeans.XmlBoolean quick);",
"public void setEnabled(boolean enabled) {\n/* 960 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void testIsDisableMandatoryMarker() {\r\n \t\tfinal ITextRidget ridget = getRidget();\r\n \r\n \t\tridget.setText(\"foo\");\r\n \r\n \t\tassertTrue(ridget.isDisableMandatoryMarker());\r\n \r\n \t\tridget.setText(\"\");\r\n \r\n \t\tassertFalse(ridget.isDisableMandatoryMarker());\r\n \r\n \t\tridget.setText(\" \");\r\n \r\n \t\tassertTrue(ridget.isDisableMandatoryMarker());\r\n \t}",
"public void setEmpty(){this.empty = true;}",
"protected void setToDefault(){\n\n\t}",
"void xsetString(org.apache.xmlbeans.XmlBoolean string);",
"public void setExempt(boolean exempt);",
"protected void setXmlUtil(XmlUtil xmlUtil)\n {\n this.xmlUtil = xmlUtil;\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setResponseXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localResponseXmlTracker = true;\n } else {\n localResponseXmlTracker = true;\n \n }\n \n this.localResponseXml=param;\n \n\n }",
"public void openBlankXmlFile() {\n\t\t\n\t\t// the root of the xmlElement tree\n\t\trootNode = new XmlNode(this);\n\t\tXmlElement rootField = rootNode.getXmlElement();\n\t\t\n\t\trootField.setName(\"rootElement\", true);\n\t\t\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\trootNode.addChild(newNode);\n\t}",
"@FXML\n void disableAnnualCode() {\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n hourlyAddText.setDisable(false);\n }",
"static void setNotEdit(){isEditing=false;}",
"private void disableServicesXMLBrowse(){\n\t\txmlBrowseButton.setEnabled(false);\n\t\tservicesXMLPath.setEnabled(false);\n\t}",
"private void setReadOnlyMode() {\n// mFileTitleEditText.setEnabled(false);\n// mDocContentEditText.setEnabled(false);\n mOpenFileId = null;\n }",
"public synchronized void setNoOscillation(boolean noOscillation)\n {\n final String funcName = \"setNoOscillation\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"noOsc=%s\", Boolean.toString(noOscillation));\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n this.noOscillation = noOscillation;\n }",
"void xsetPowerBox(org.apache.xmlbeans.XmlBoolean powerBox);",
"@Test\n public void testConfigurationDeclarationIsReservedOptional()\n {\n checkOldReservedAttribute(\"optional\");\n }",
"public SVGBuilder setWhiteMode() {\n this.fillColorFilter = new PorterDuffColorFilter(Color.WHITE, PorterDuff.Mode.SRC_IN);\n return this;\n }",
"public void setEnable(String enable) {\r\n this.enable = enable == null ? null : enable.trim();\r\n }",
"public static void set_UseDefaults(boolean y) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaUseDefaultsCmd,\n \t\t (y) ? (byte) 1 : (byte) 0);\n UmlCom.check();\n }",
"public final WuicFacadeBuilder noXmlConfiguration() {\n this.wuicXmlPath = null;\n return this;\n }",
"void setValidSettings(boolean valid);",
"private void setDisableComment(int value) {\n \n disableComment_ = value;\n }",
"static void setNotSaved(){saved=false;}",
"void setEnable(boolean b) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public XMLUtils() {\r\n\t\tsuper();\r\n\t}",
"public void setToDefault();",
"public final void setDefautlVals() {\n this.createTime = this.writeTime = GlobalMethods.getTimeStamp(null);\n this.createId = this.writeId = PackagingVars.context.getUser().getId();\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n void setDefaults() {\n //Do nothing\n }",
"public boolean setIndividualParamValueFromXML(Element el) {\n\t\treturn false;\n\t}",
"private void testProXml(){\n\t}",
"void xsetBox(org.apache.xmlbeans.XmlBoolean box);",
"protected boolean isEmptyXmlTagExpanded() {\n return false;\n }",
"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 }",
"public void check() throws XMLBuildException {\r\n\t\tif (this.attribute == null) \r\n\t\t\tthrow new XMLBuildException(\"you must set the attribute\", this);\r\n\t}",
"@Override\n\tpublic void setEnabled(boolean flag) {\n\t\t\n\t}",
"@FXML\n void disableHourlyCode() {\n annualAddText.setDisable(false);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n hourlyAddText.setDisable(true);\n }",
"public void setIgnore() {\n\t\t\tignore = true;\n\t\t}",
"public void disabledInit()\n\t{\n\t\t\n\t}",
"public static void setXmlEnableValidationFromGui(Boolean inputStatus)\r\n {\r\n enableValidationFromGui = inputStatus;\r\n }",
"public void setSpecified(int r1, boolean r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.xml.sax.ext.Attributes2Impl.setSpecified(int, boolean):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setSpecified(int, boolean):void\");\n }",
"@Override\n\tpublic void setMandatory(boolean mandatory) {\n\t\t\n\t}",
"@Test(expected = ConfigurationRuntimeException.class)\n public void testConfigurationDeclarationOptionalAttributeInvalid()\n {\n factory.addProperty(\"xml.fileName\", \"test.xml\");\n DefaultConfigurationBuilder.ConfigurationDeclaration decl = new DefaultConfigurationBuilder.ConfigurationDeclaration(\n factory, factory.configurationAt(\"xml\"));\n factory.setProperty(\"xml[@optional]\", \"invalid value\");\n decl.isOptional();\n }",
"public static void setNoAnalysis() {\n noAnalysis = true;\n }",
"public boolean setEnabled(boolean enable);",
"@Override\n\tpublic void setEmpty() {\n\t\t\n\t}",
"public void setEnabled(boolean aFlag) { _enabled = aFlag; }",
"private XmlUtil() {\n }",
"public FXMLPropertiesDisabler() {\n this(OS.get());\n }",
"public void setEnabled(boolean arg){\r\n\t\tenabled = arg;\r\n\t\tif(!arg){\r\n\t\t\tstop(0);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tsonido = new Sonido(path,true);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic Element saveToXml(boolean includeConfigState) {\n\t\treturn null;\n\t}",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }",
"private void defaultPerAllegatoAtto() {\n\t\tif(allegatoAtto.getFlagRitenute() == null) {\n\t\t\tallegatoAtto.setFlagRitenute(Boolean.FALSE);\n\t\t}\n\t\t//SIAC-6426\n\t\tif(allegatoAtto.getVersioneInvioFirma() == null){\n\t\t\tallegatoAtto.setVersioneInvioFirma(0);\n\t\t}\n\t}",
"public void setGenerateNull(boolean generateNull){\n mGenerateNull = generateNull;\n }",
"void xsetMultiple(org.apache.xmlbeans.XmlBoolean multiple);",
"@Override\n void generateFalseData() {\n \n }",
"public void setXml(java.lang.String newXml);",
"public void setGeneratedCheck(){\n generatedCheck = !generatedCheck;\n }",
"public void setEnabled(String tmp) {\n enabled = DatabaseUtils.parseBoolean(tmp);\n }",
"void xsetStraight(org.apache.xmlbeans.XmlBoolean straight);",
"protected static synchronized void setStrictParsing(final boolean enable)\n {\n EASMessage.s_strictParsing = new Boolean(enable);\n }",
"public final void resetSecurityVars() {\n String disable = getStr(\"DISABLE\");\n if (getVar(Str.MULTICLASS).equalsIgnoreCase(\"DISABLED\"))\n disable += \", CLASSES\";\n CMSecurity.setAnyDisableVars(disable);\n CMSecurity.setAnyEnableVars(getStr(\"ENABLE\"));\n CMSecurity.setDebugVars(getStr(\"DEBUG\"));\n CMSecurity.setSaveFlags(getStr(\"SAVE\"));\n }",
"private void setDefaultValues()\r\n\t{\r\n\t\tif (m_receiverAddress == null || m_receiverAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_receiverAddress = \"jap@inf.tu-dresden.de\";\r\n\t\t}\r\n\r\n\t\tif (m_replyAddress == null || m_replyAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_replyAddress = \"no return\";\r\n\t\t}\r\n\r\n\t\tif (m_senderName == null || m_senderName.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_senderName = \"Unknown Sender\";\r\n\t\t}\r\n\r\n\t\tif (m_subject == null || m_subject.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_subject = \"AN.ON support request\";\r\n\t\t}\r\n\r\n\t\tif (m_bodyText == null || m_bodyText.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_bodyText = \"message is empty\";\r\n\t\t}\r\n\r\n\t}",
"private void initReservedAttributes()\n {\n addIgnoreProperty(ATTR_IF_NAME);\n addIgnoreProperty(ATTR_REF);\n addIgnoreProperty(ATTR_UNLESS_NAME);\n addIgnoreProperty(ATTR_BEAN_CLASS);\n addIgnoreProperty(ATTR_BEAN_NAME);\n }",
"private void clearDisableComment() {\n \n disableComment_ = 0;\n }"
] | [
"0.6152449",
"0.58671826",
"0.55433846",
"0.5541981",
"0.55312496",
"0.5521917",
"0.549636",
"0.5473477",
"0.5463601",
"0.54474306",
"0.54274756",
"0.5402974",
"0.5357213",
"0.5318259",
"0.5294455",
"0.52628475",
"0.52504325",
"0.523918",
"0.523698",
"0.52250814",
"0.5214344",
"0.5211839",
"0.5210781",
"0.5198791",
"0.51922494",
"0.51472616",
"0.5139292",
"0.5139292",
"0.5139292",
"0.5139292",
"0.5139292",
"0.5139292",
"0.5139292",
"0.5139292",
"0.5139292",
"0.5119876",
"0.5114696",
"0.5107171",
"0.5102212",
"0.509689",
"0.5080092",
"0.50758356",
"0.50711876",
"0.506801",
"0.5060495",
"0.50538796",
"0.50537235",
"0.5036698",
"0.5023577",
"0.5010717",
"0.5009926",
"0.50050354",
"0.5003554",
"0.4997254",
"0.49955955",
"0.4995199",
"0.49930012",
"0.49918818",
"0.49886006",
"0.49862155",
"0.49854088",
"0.49854088",
"0.49854088",
"0.49854088",
"0.49854088",
"0.49802598",
"0.49644354",
"0.49558142",
"0.49555317",
"0.49531075",
"0.4950705",
"0.49286473",
"0.49261898",
"0.492287",
"0.4921636",
"0.49191657",
"0.4916473",
"0.49147177",
"0.49127486",
"0.49122208",
"0.49107417",
"0.49070063",
"0.49066585",
"0.49066585",
"0.49066585",
"0.49066585",
"0.4905976",
"0.4903005",
"0.49013555",
"0.48996907",
"0.48972037",
"0.48963293",
"0.489437",
"0.48930976",
"0.4891712",
"0.48839682",
"0.4881822",
"0.4876362",
"0.4869029",
"0.48680097"
] | 0.5940924 | 1 |
Method used for catch Warning of SAXParseException and print it during xml validation | @Override
public void warning(SAXParseException e) throws SAXException
{
System.out.println("Warning: ");
printInfo(e);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n System.out.println(\"Warning reported: \" + saxpe.getMessage());\n }",
"public void warning(SAXParseException e) throws SAXException {\r\n\t\t// System.err.println(\"Warning on line \" + _locator.getLineNumber() + \",\r\n\t\t// column \" +\r\n\t\t// _locator.getColumnNumber() + \"\\n\\t\" + e.getMessage());\r\n\t}",
"public void warning(SAXParseException exception) throws SAXException {\n\t\tprintInfo(exception);\r\n\t}",
"@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n }",
"@Override\n public void warning(SAXParseException e) throws SAXParseException {\n System.err.println(\"Aviso: \" + e.toString());\n\n throw (e);\n }",
"@Override\n public void warning(SAXParseException e) throws SAXParseException {\n System.err.println(\"Aviso: \" + e.toString());\n\n throw (e);\n }",
"@Override\n public void warning(SAXParseException sAXParseException) throws SAXException {\n ErrorListener errorListener = this.m_transformer.getErrorListener();\n if (errorListener instanceof ErrorHandler) {\n ((ErrorHandler)((Object)errorListener)).warning(sAXParseException);\n return;\n }\n try {\n TransformerException transformerException = new TransformerException(sAXParseException);\n errorListener.warning(transformerException);\n return;\n }\n catch (TransformerException transformerException) {\n throw sAXParseException;\n }\n }",
"private void printInfo(SAXParseException e) {\n\t}",
"@Override\r\n public void fatalError(SAXParseException e) throws SAXException\r\n {\r\n System.out.println(\"Fattal error: \"); \r\n printInfo(e);\r\n }",
"public void error(SAXParseException exception) throws SAXException {\n\t\tprintInfo(exception);\r\n\t}",
"protected final void warning( String message )\n throws SAXException\n {\n SAXParseException except;\n \n if ( _errorHandler != null ) {\n if ( _errorHandler instanceof ErrorReport &&\n ! ( (ErrorReport) _errorHandler ).isReporting( ErrorReport.WARNING ) )\n return;\n except = new SAXParseException( message, this );\n _errorHandler.warning( except );\n }\n }",
"public XMLParseException() { super(defaultMessage); }",
"@Override\n\tpublic void fatalError(SAXParseException se) throws SAXException {\n\t\tthis.se = se;\n\t\tvalid = false;\n\t\tthrow se;\t\t\n\t}",
"@Override\n public void error(SAXParseException e) throws SAXParseException {\n System.err.println(\"Error recuperable: \" + e.toString());\n throw (e);\n }",
"@Override\n public void error(SAXParseException e) throws SAXParseException {\n System.err.println(\"Error recuperable: \" + e.toString());\n throw (e);\n }",
"public void fatalError(SAXParseException exception)\t\n throws SAXException {\t\n }",
"public void error(SAXParseException e)\t\n throws SAXParseException\t\n {\t\n throw e;\t\n }",
"public interface XMLErrorHandler {\n\n /**\n * Reports a warning. Warnings are non-fatal and can be safely ignored by most\n * applications.\n *\n * @param domain The domain of the warning. The domain can be any string but\n * is suggested to be a valid URI. The domain can be used to\n * conveniently specify a web site location of the relevant\n * specification or document pertaining to this warning.\n * @param key The warning key. This key can be any string and is\n * implementation dependent.\n * @param exception Exception.\n *\n * @throws XNIException Thrown to signal that the parser should stop parsing the\n * document.\n */\n void warning(String domain, String key, XMLParseException exception) throws XNIException;\n\n /**\n * Reports an error. Errors are non-fatal and usually signify that the document\n * is invalid with respect to its grammar(s).\n *\n * @param domain The domain of the error. The domain can be any string but is\n * suggested to be a valid URI. The domain can be used to\n * conveniently specify a web site location of the relevant\n * specification or document pertaining to this error.\n * @param key The error key. This key can be any string and is\n * implementation dependent.\n * @param exception Exception.\n *\n * @throws XNIException Thrown to signal that the parser should stop parsing the\n * document.\n */\n void error(String domain, String key, XMLParseException exception) throws XNIException;\n\n /**\n * Report a fatal error. Fatal errors usually occur when the document is not\n * well-formed and signifies that the parser cannot continue normal operation.\n * <p>\n * <strong>Note:</strong> The error handler should <em>always</em> throw an\n * <code>XNIException</code> from this method. This exception can either be the\n * same exception that is passed as a parameter to the method or a new XNI\n * exception object. If the registered error handler fails to throw an\n * exception, the continuing operation of the parser is undetermined.\n *\n * @param domain The domain of the fatal error. The domain can be any string\n * but is suggested to be a valid URI. The domain can be used\n * to conveniently specify a web site location of the relevant\n * specification or document pertaining to this fatal error.\n * @param key The fatal error key. This key can be any string and is\n * implementation dependent.\n * @param exception Exception.\n *\n * @throws XNIException Thrown to signal that the parser should stop parsing the\n * document.\n */\n void fatalError(String domain, String key, XMLParseException exception) throws XNIException;\n}",
"public void fatalError(SAXParseException e) throws SAXException {\r\n\t\tERROR_CODE = -1;\r\n\t\tstack.clear();\r\n\t\tstack.push(new EFGString(\"Fatal error on line \"\r\n\t\t\t\t+ _locator.getLineNumber() + \", column \"\r\n\t\t\t\t+ _locator.getColumnNumber() + \":\\n\\t\" + e.getMessage()));\r\n\t\tSystem.err.println(\"Fatal error on line \" + _locator.getLineNumber()\r\n\t\t\t\t+ \", column \" + _locator.getColumnNumber() + \":\\n\\t\"\r\n\t\t\t\t+ e.getMessage());\r\n\t\tthrow e;\r\n\t}",
"public XMLParseException(Throwable cause) { super(defaultMessage,cause); }",
"private void printInfo(SAXParseException e)\r\n {\r\n System.out.println(\" Public ID: \"+e.getPublicId());\r\n System.out.println(\" System ID: \"+e.getSystemId());\r\n System.out.println(\" Line number: \"+e.getLineNumber());\r\n System.out.println(\" Column number: \"+e.getColumnNumber());\r\n System.out.println(\" Message: \"+e.getMessage());\r\n }",
"void verror(String message)\n throws SAXException\n {\n SAXParseException err;\n \n err = new SAXParseException(message, this);\n errorHandler.error(err);\n }",
"@Override\n public void fatalError(SAXParseException e) throws SAXParseException {\n System.err.println(\"Error no recuperable: \" + e.toString());\n throw (e);\n }",
"@Override\n public void fatalError(SAXParseException e) throws SAXParseException {\n System.err.println(\"Error no recuperable: \" + e.toString());\n throw (e);\n }",
"protected final void fatal() throws SAXException {\n SAXParseException spe = new SAXParseException(\n \"Cannot recover after last error. Any further errors will be ignored.\", tokenizer);\n if (errorHandler != null) {\n errorHandler.fatalError(spe);\n }\n throw spe;\n }",
"@Override\n public void error(SAXParseException sAXParseException) throws SAXException {\n ErrorListener errorListener = this.m_transformer.getErrorListener();\n if (errorListener instanceof ErrorHandler) {\n ((ErrorHandler)((Object)errorListener)).error(sAXParseException);\n ErrorHandler errorHandler = this.m_errorHandler;\n if (errorHandler == null) return;\n errorHandler.error(sAXParseException);\n return;\n }\n try {\n TransformerException transformerException = new TransformerException(sAXParseException);\n errorListener.error(transformerException);\n if (this.m_errorHandler == null) return;\n this.m_errorHandler.error(sAXParseException);\n return;\n }\n catch (TransformerException transformerException) {\n throw sAXParseException;\n }\n }",
"public SAXException (String message) {\n super(message);\n this.exception = null;\n }",
"public SAXException ()\n {\n this.exception = null;\n }",
"public static String getErrorMessage(Reader xml, List errors) {\n BufferedReader reader = null;\n StringBuffer result = new StringBuffer();\n result.append(\"Your SLD is not valid.\\n\");\n result.append(\n \"Most common problems are: \\n(1) no namespaces - use <ows:GetMap>, <sld:Rule>, <ogc:Filter>, <gml:Point> - the part before the ':' is important\\n\");\n result.append(\"(2) capitialization - use '<And>' not '<and>' \\n\");\n result.append(\"(3) Order - The order of elements is important \\n\");\n result.append(\n \"(4) Make sure your first tag imports the correct namespaces. ie. xmlns:sld=\\\"http://www.opengis.net/sld\\\" for EVERY NAMESPACE \\n\");\n result.append(\"\\n\");\n \n try {\n reader = new BufferedReader(xml);\n \n String line = reader.readLine();\n int linenumber = 1;\n int exceptionNum = 0;\n \n //check for lineNumber -1 errors --> invalid XML\n if (errors.size() > 0) {\n SAXParseException sax = (SAXParseException) errors.get(0);\n \n if (sax.getLineNumber() < 0) {\n result.append(\" INVALID XML: \"\n + sax.getLocalizedMessage() + \"\\n\");\n result.append(\" \\n\");\n exceptionNum = 1; // skip ahead (you only ever get one error in this case)\n }\n }\n \n while (line != null) {\n line.replace('\\n', ' ');\n line.replace('\\r', ' ');\n \n String header = linenumber + \": \";\n result.append(header + line + \"\\n\"); // record the current line\n \n boolean keep_going = true;\n \n while (keep_going) {\n if ((exceptionNum < errors.size())) {\n SAXParseException sax = (SAXParseException) errors.get(exceptionNum);\n \n if (sax.getLineNumber() <= linenumber) {\n String head = \"---------------------\".substring(0,\n header.length() - 1);\n String body = \"--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\";\n \n int colNum = sax.getColumnNumber(); //protect against col 0 problems\n \n if (colNum < 1) {\n colNum = 1;\n }\n \n if (colNum > body.length()) {\n body = body + body + body + body + body + body; // make it longer (not usually required, but might be for SLD_BODY=... which is all one line)\n \n if (colNum > body.length()) {\n colNum = body.length();\n }\n }\n \n result.append(head + body.substring(0, colNum - 1)\n + \"^\\n\");\n result.append(\" (line \" + sax.getLineNumber()\n + \", column \" + sax.getColumnNumber() + \")\"\n + sax.getLocalizedMessage() + \"\\n\");\n exceptionNum++;\n } else {\n keep_going = false; //report later (sax.getLineNumber() > linenumber)\n }\n } else {\n keep_going = false; // no more errors to report\n }\n }\n \n line = reader.readLine(); //will be null at eof\n linenumber++;\n }\n \n for (int t = exceptionNum; t < errors.size(); t++) {\n SAXParseException sax = (SAXParseException) errors.get(t);\n result.append(\" (line \" + sax.getLineNumber()\n + \", column \" + sax.getColumnNumber() + \")\"\n + sax.getLocalizedMessage() + \"\\n\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (reader != null) {\n reader.close();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n \n return result.toString();\n }",
"public void error(SAXParseException e) throws SAXException {\r\n\t\tif (DATASOURCE_ERROR_CODE == -1) {\r\n\t\t\tstack.clear();\r\n\t\t\tstack.push(new EFGString(e.getMessage()));\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}",
"public SAXException (Exception e)\n {\n this.exception = e;\n }",
"private static String getXmlParseExceptionErrorMessage(Throwable jenaExc) {\n if ( ! (jenaExc instanceof JenaException) ) {\n return null;\n }\n\n Throwable cause = jenaExc.getCause();\n if ( ! (cause instanceof SAXParseException) ) {\n return null;\n }\n\n SAXParseException spe = (SAXParseException) cause;\n return spe.getMessage() +\n \"\\n Line number: \" + spe.getLineNumber()+\" Column number: \" +spe.getColumnNumber()\n\t\t\t //+(spe.getSystemId() != null ? \"\\n System ID: \" + spe.getSystemId() : \"\" )\n\t\t\t //+(spe.getPublicId() != null ? \"\\n Public ID: \" + spe.getPublicId() : \"\" )\n ;\n }",
"private XMLParseException syntaxError(String context,\n int lineNr) {\n String msg = \"Syntax error while parsing \" + context;\n return new XMLParseException(this.getTagName(), lineNr, msg);\n }",
"void warning(String domain, String key, XMLParseException exception) throws XNIException;",
"@Override\n public void fatalError(SAXParseException exception) {\n logger.log(TreeLogger.ERROR, exception.getMessage());\n logger.log(TreeLogger.DEBUG, \"SAXParseException\", exception);\n }",
"private static String getXmlParseExceptionErrorMessage(Throwable jenaExc) {\n\t\tif ( ! (jenaExc instanceof JenaException ) ) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tThrowable cause = jenaExc.getCause();\n\t\tif ( ! (cause instanceof SAXParseException ) ) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tSAXParseException spe = (SAXParseException) cause;\n\t\tString errorMessage = spe.getMessage() +\n\t\t\t\"\\n Line number: \" + spe.getLineNumber()+\" Column number: \" +spe.getColumnNumber()\n//\t\t\t+(spe.getPublicId() != null ? \"\\n Public ID: \" + spe.getPublicId() : \"\" )\n//\t\t\t+(spe.getSystemId() != null ? \"\\n System ID: \" + spe.getSystemId() : \"\" )\n\t\t;\n\n\t\treturn errorMessage;\n\t\t\t\n\t}",
"static void reportSchemaError(XMLErrorReporter errorReporter, SimpleLocator loc, String key, Object[] args) {\n/* 340 */ if (loc != null) {\n/* 341 */ errorReporter.reportError(loc, \"http://www.w3.org/TR/xml-schema-1\", key, args, (short)1);\n/* */ }\n/* */ else {\n/* */ \n/* 345 */ errorReporter.reportError(\"http://www.w3.org/TR/xml-schema-1\", key, args, (short)1);\n/* */ } \n/* */ }",
"public void validationErr()\r\n\t{\n\t\tSystem.out.println(\"validation err\");\r\n\t}",
"public void error(SAXParseException exception) throws SAXException\n {\n\n // Increment counter, save the exception, and log what we got\n counters[TYPE_ERROR]++;\n\n String exInfo = getParseExceptionInfo(exception);\n\n setLastItem(exInfo);\n\n // Log or validate the exception\n logOrCheck(TYPE_ERROR, \"error\", exInfo);\n\n // Also re-throw the exception if asked to\n if ((throwWhen & THROW_ON_ERROR) == THROW_ON_ERROR)\n {\n throw new SAXException(exception);\n }\n }",
"void validate() throws JDOMException, SAXException, IOException {\n\t\tif (oldLangFile != null && addressFactory == null || registerMgr == null) {\n\t\t\treadOldLanguage(false);\n\t\t}\n\t}",
"private void fatal(String message) throws SAXException {\n SAXParseException spe = new SAXParseException(message, this);\n if (errorHandler != null) {\n errorHandler.fatalError(spe);\n }\n throw spe;\n }",
"public void testImportXMLFailure() throws ParserConfigurationException, IOException {\n testInvalidXML(INVALID_XML_TEST_GPX);\n }",
"public void warning(ValidationType type, String validationName, String content);",
"@Override\n\tpublic void reportErrorWarning(String warningString) {\n\n\t}",
"public void printWarning(){\n if (hasWarning()){\n System.err.println(\"Warning in line \"+filterLineNumber);\n }\n }",
"void warn (String msg) throws RootException;",
"private void violation(final String msg) {\n log(ast, msg);\n violationFound = true;\n }",
"public SAXException (String message, Exception e)\n {\n super(message);\n this.exception = e;\n }",
"@Override\n\tpublic void warning(TransformerException exception)\n\t\t\tthrows TransformerException {\n\t\t\n\t}",
"@Test(expected = XMLValidationException.class)\n\tpublic void testValidateAgainstXSDNoXSDFound() throws XMLValidationException, XMLParseException {\n\t\tString testXML = \"<Content>\" + \n\t\t\t\t\"\t<InvalidTagName>\" + \n\t\t\t\t\"\t\t<SaveName>TestSaveName</SaveName>\" + \n\t\t\t\t\"\t\t<Seed>TestSeed</Seed>\" + \n\t\t\t\t\"\t\t<DayNumber>42</DayNumber>\" + \n\t\t\t\t\"\t</InvalidTagName>\" + \n\t\t\t\t\"</Content>\";\n\t\t\n\t\t// Convert the testXML to a byte array for the method in test\n\t\tbyte[] xmlBytes = testXML.getBytes();\n\t\t\n\t\t// Call the method in test\n\t\tDocument document = XMLUtils.convertByteArrayToDocument(xmlBytes);\n\t\t\n\t\tPropertyManager.setXSDLocation(\"InvalidPath\");\n\t\t\n\t\t// Call the method in test\n\t\tXSDValidator.validateAgainstXSD(document);\n\t}",
"private void parseErrorUnlessPermittedSlash() throws SAXException,\n IOException {\n if (endTag) {\n err(\"Stray \\u201C/\\u201D in an end tag.\");\n return;\n }\n char c = read();\n if (c == '>') {\n if (!currentIsVoid() && !html4) {\n if (html4) {\n err(\"Stray \\u201C/\\u201D in tag. The \\u201C/>\\u201D syntax is not permitted in HTML4.\");\n } else {\n err(\"Stray \\u201C/\\u201D in tag. The \\u201C/>\\u201D syntax is only permitted on void elements.\");\n }\n } else if (html4) {\n err(\"Stray \\u201C/\\u201D in tag. The \\u201C/>\\u201D syntax is not permitted in HTML4. (HTML4-only error)\");\n }\n } else {\n err(\"Stray \\u201C/\\u201D in tag.\");\n }\n unread(c);\n }",
"abstract void errorLogWarn(String warning);",
"public void assertErrorMsgCheck() {\r\n\t\t\tassertEquals(errorMsg.getText().substring(0,52), \"Warning: Please check the form carefully for errors!\");\r\n\t\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ errorMsg.getText().substring(0,52));\r\n\t\t}",
"@Override\n public void reportProblem(XMLValidationProblem prob)\n throws XMLStreamException\n {\n if (mVldProbHandler != null) {\n mVldProbHandler.reportProblem(prob);\n return;\n }\n\n /* For now let's implement basic functionality: warnings get\n * reported via XMLReporter, errors and fatal errors result in\n * immediate exceptions.\n */\n /* 27-May-2008, TSa: [WSTX-153] Above is incorrect: as per Stax\n * javadocs for XMLReporter, both warnings and non-fatal errors\n * (which includes all validation errors) should be reported via\n * XMLReporter interface, and only fatals should cause an\n * immediate stream exception (by-passing reporter)\n */\n if (prob.getSeverity() > XMLValidationProblem.SEVERITY_ERROR) {\n throw WstxValidationException.create(prob);\n }\n XMLReporter rep = mConfig.getProblemReporter();\n if (rep != null) {\n doReportProblem(rep, prob);\n } else {\n /* If no reporter, regular non-fatal errors are to be reported\n * as exceptions as well, for backwards compatibility\n */\n if (prob.getSeverity() >= XMLValidationProblem.SEVERITY_ERROR) {\n throw WstxValidationException.create(prob);\n }\n }\n }",
"@Test(expected = XMLValidationException.class)\n\tpublic void testValidateAgainstXSDInvalidXML() throws XMLParseException, XMLValidationException {\n\t\tString testXML = \"<Content>\" + \n\t\t\t\t\"\t<InvalidTagName>\" + \n\t\t\t\t\"\t\t<SaveName>TestSaveName</SaveName>\" + \n\t\t\t\t\"\t\t<Seed>TestSeed</Seed>\" + \n\t\t\t\t\"\t\t<DayNumber>42</DayNumber>\" + \n\t\t\t\t\"\t</InvalidTagName>\" + \n\t\t\t\t\"</Content>\";\n\t\t\n\t\t// Convert the testXML to a byte array for the method in test\n\t\tbyte[] xmlBytes = testXML.getBytes();\n\t\t\n\t\t// Call the method in test\n\t\tDocument document = XMLUtils.convertByteArrayToDocument(xmlBytes);\n\t\t\n\t\tPropertyManager.setXSDLocation(\"C:\\\\Users\\\\Daniel\\\\Documents\\\\Uni\\\\TeamProject\\\\GitCopy\\\\TeamProjectVirusGame\\\\Resources\\\\XSD/VirusGameXSD.xsd\");\n\t\t\n\t\t// Call the method in test\n\t\tXSDValidator.validateAgainstXSD(document);\n\t}",
"public void onStallWarning(StallWarning arg0) { }",
"public void startDocument() throws SAXException {\n\t\ttry {\n\t\t\tlogger.info(\"Parsing XML buddies\");\n\t\t} catch (Exception e) {\n\t\t\tbuddies = null;\n\t\t\tthrow new SAXException(\"XMLBuddyParser error\", e);\n\t\t}\n\t}",
"public ElementNotFoundException(String msg){\n super(msg);\n }",
"@Override\n public void fatalError(SAXParseException sAXParseException) throws SAXException {\n Object object = this.m_errorHandler;\n if (object != null) {\n try {\n object.fatalError(sAXParseException);\n }\n catch (SAXParseException sAXParseException2) {\n // empty catch block\n }\n }\n if ((object = this.m_transformer.getErrorListener()) instanceof ErrorHandler) {\n ((ErrorHandler)object).fatalError(sAXParseException);\n object = this.m_errorHandler;\n if (object == null) return;\n object.fatalError(sAXParseException);\n return;\n }\n try {\n TransformerException transformerException = new TransformerException(sAXParseException);\n object.fatalError(transformerException);\n if (this.m_errorHandler == null) return;\n this.m_errorHandler.fatalError(sAXParseException);\n return;\n }\n catch (TransformerException transformerException) {\n throw sAXParseException;\n }\n }",
"public abstract boolean hasWarning();",
"@Override\n public void onWarning(String debugMessage) {\n }",
"private void getParserTreeErrorMessage(HttpServletRequest request, HttpServletResponse response) throws IOException {\n response.getWriter().write(XMLTree.getParserErrorMessage());\n }",
"@Override\r\n public void onStallWarning(StallWarning arg0) {\n\r\n }",
"@Override\r\n public void onStallWarning(StallWarning arg0) {\n\r\n }",
"protected void warning(int line, int column, @Nonnull String msg)\r\n throws LexerException {\r\n if (warnings.contains(Warning.ERROR))\r\n error(line, column, msg);\r\n else if (listener != null)\r\n listener.handleWarning(source, line, column, msg);\r\n //else\r\n // throw new LexerException(\"Warning at \" + line + \":\" + column + \": \" + msg);\r\n }",
"public void validate()\n throws org.exolab.castor.xml.ValidationException\n {\n org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\n validator.validate(this);\n }",
"public void validate()\n throws org.exolab.castor.xml.ValidationException\n {\n org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\n validator.validate(this);\n }",
"public void validate()\r\n throws org.exolab.castor.xml.ValidationException\r\n {\r\n org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r\n validator.validate(this);\r\n }",
"public void validate()\r\n throws org.exolab.castor.xml.ValidationException\r\n {\r\n org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r\n validator.validate(this);\r\n }",
"public XmlParserException(String message) {\n super(message);\n }",
"protected static void throwOutputError(String msg)\n throws XMLStreamException\n {\n throw new XMLStreamException(msg);\n }",
"public void validate()\n throws org.exolab.castor.xml.ValidationException {\n org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\n validator.validate(this);\n }",
"public void validate() throws org.exolab.castor.xml.ValidationException {\r\n\t\torg.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r\n\t\tvalidator.validate(this);\r\n\t}",
"@Override\n\t\tpublic void onStallWarning(StallWarning arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onStallWarning(StallWarning arg0) {\n\t\t\t\n\t\t}",
"private void parseError() {\r\n System.out.print(\"Parse Error on:\");\r\n tokens.get(position).print();\r\n }",
"void warn (String msg, RootException ex) throws RootException;",
"public void onException( String path) {\n LOG.warn(\"\\nThe element not found by path =>\" + path);\n }",
"@Override\n\tpublic void onStallWarning(StallWarning arg0) {\n\t\t\n\t}",
"public void exportFailure(BeanXporterEvent e);",
"private void processWarningErrors(Exception e, ABEResponse response,\n\t\t\tString debugMessage) {\n\t\tABESystemError systemError = new ABESystemError(\"101\", e.getMessage(),\n\t\t\t\tdebugMessage);\n\t\tthrow new ABESystemException(systemError, ABETier.BUSINESS,\n\t\t\t\te.getMessage());\n\t}",
"public void fatalError(SAXParseException exception) throws SAXException\n {\n\n // Increment counter, save the exception, and log what we got\n counters[TYPE_FATALERROR]++;\n\n String exInfo = getParseExceptionInfo(exception);\n\n setLastItem(exInfo);\n\n // Log or validate the exception\n logOrCheck(TYPE_FATALERROR, \"fatalError\", exInfo);\n\n // Also re-throw the exception if asked to\n if ((throwWhen & THROW_ON_FATAL) == THROW_ON_FATAL)\n {\n throw new SAXException(exception);\n }\n }",
"abstract void warn(String warning);",
"@Override\n\t\tpublic boolean hasPassedXMLValidation() {\n\t\t\treturn false;\n\t\t}",
"protected final void fatalError( Exception except )\n throws SAXException\n {\n if ( except instanceof SAXParseException )\n _lastException = (SAXParseException) except;\n else if ( except instanceof SAXException )\n _lastException = new SAXParseException( except.getMessage(), this );\n else\n _lastException = new SAXParseException( null, this, except );\n if ( _errorHandler != null )\n _errorHandler.fatalError( _lastException );\n throw _lastException;\n }",
"@Override\r\n public void endDocument() throws SAXException {\n }",
"public boolean isWarning() {\n\t\t\treturn false;\n\t\t}",
"@Override\n public void endDocument() throws SAXException {\n }",
"public void warningPermit();",
"@Override\r\n public void startDocument() throws SAXException {\n }",
"public G_DocumentError() {}",
"public void publishTiancheWarn(String errorMsg) {\n }",
"@Override\n\t\t\tpublic void onStallWarning(StallWarning arg0) {\n\n\t\t\t}",
"public ApiException(String xml) {\n //TODO Why do we need xalan dependency here???? -Chandra Patni\n //XPathFactory xPathFactory = new org.apache.xpath.jaxp.XPathFactoryImpl();\n XPathFactory xPathFactory = XPathFactory.newInstance();\n XPath xpath = xPathFactory.newXPath();\n NodeList nodes = XmlHelper.extractNodeList(xpath, \"//error[@code]\", xml);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n Node attr = node.getAttributes().getNamedItem(\"code\");\n if (attr != null) {\n errorCode = attr.getNodeValue();\n break;\n }\n }\n errorMessage = XmlHelper.extractNode(xpath, \"//error\", xml);\n\n }",
"private void warning(final Exception e) {\n JOptionPane.showInternalMessageDialog(this, e.getLocalizedMessage(),\n e.getClass().getSimpleName(), JOptionPane.ERROR_MESSAGE);\n }",
"@Override\n public void startDocument() throws SAXException {\n }",
"public void test516370() throws Exception\n {\n // line 10 column 1 - Warning: <h2> ID \"_ValidID2\" uses XML ID syntax\n // line 11 column 1 - Warning: <h2> ID \":ValidID3\" uses XML ID syntax\n // line 13 column 1 - Warning: <h2> attribute \"id\" has invalid value \".InvalidID1\"\n // line 14 column 1 - Warning: <h2> attribute \"id\" has invalid value \"2InvalidID2\"\n // line 15 column 1 - Warning: <h2> attribute \"id\" lacks value\n\n executeTidyTest(\"516370.xhtml\");\n assertWarnings(5);\n assertLogContains(\"XML ID syntax\");\n }",
"boolean documentFreeOfErrors();",
"public void startDocument ()\n throws SAXException\n {\n\t System.out.println(\"Sandeep Jaisawal\");\n \n }",
"public void addWarning(String warning);"
] | [
"0.8286334",
"0.81648874",
"0.8109372",
"0.80949765",
"0.79586655",
"0.79586655",
"0.7767345",
"0.7524608",
"0.71236354",
"0.7112052",
"0.7083346",
"0.69407237",
"0.68019783",
"0.67439395",
"0.67439395",
"0.6535353",
"0.64273906",
"0.6418536",
"0.632448",
"0.6250282",
"0.62493867",
"0.61996835",
"0.61711425",
"0.61711425",
"0.6136129",
"0.61005276",
"0.60798377",
"0.6074829",
"0.60183233",
"0.6012832",
"0.59996736",
"0.59593004",
"0.59448147",
"0.5941228",
"0.5903454",
"0.5896122",
"0.58755577",
"0.58588785",
"0.58501786",
"0.58226836",
"0.5820502",
"0.5799643",
"0.5759662",
"0.5756598",
"0.5732884",
"0.57289505",
"0.5713226",
"0.5707915",
"0.56955284",
"0.5657091",
"0.56192833",
"0.56188875",
"0.5598808",
"0.5596284",
"0.55890083",
"0.5577537",
"0.5573258",
"0.55453193",
"0.5538777",
"0.5530326",
"0.55177915",
"0.54903924",
"0.5489508",
"0.5489508",
"0.54767793",
"0.5468603",
"0.5468603",
"0.54647774",
"0.54647774",
"0.545768",
"0.54478496",
"0.5441702",
"0.5433541",
"0.54199237",
"0.54199237",
"0.5418922",
"0.5408033",
"0.54073167",
"0.53993094",
"0.5383713",
"0.53834295",
"0.53767306",
"0.537449",
"0.53664106",
"0.53603554",
"0.5343205",
"0.53259593",
"0.53173876",
"0.5315063",
"0.5299621",
"0.5296766",
"0.52843136",
"0.5283822",
"0.5282822",
"0.5270869",
"0.52598935",
"0.5252844",
"0.5250141",
"0.52468365",
"0.5240371"
] | 0.85221916 | 0 |
Method used for catch Fattal error of SAXParseException and print it during xml validation | @Override
public void fatalError(SAXParseException e) throws SAXException
{
System.out.println("Fattal error: ");
printInfo(e);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void error(SAXParseException exception) throws SAXException {\n\t\tprintInfo(exception);\r\n\t}",
"private void printInfo(SAXParseException e) {\n\t}",
"@Override\n public void error(SAXParseException e) throws SAXParseException {\n System.err.println(\"Error recuperable: \" + e.toString());\n throw (e);\n }",
"@Override\n public void error(SAXParseException e) throws SAXParseException {\n System.err.println(\"Error recuperable: \" + e.toString());\n throw (e);\n }",
"public void error(SAXParseException e)\t\n throws SAXParseException\t\n {\t\n throw e;\t\n }",
"@Override\r\n public void warning(SAXParseException e) throws SAXException\r\n {\r\n System.out.println(\"Warning: \"); \r\n printInfo(e);\r\n }",
"@Override\n\tpublic void fatalError(SAXParseException se) throws SAXException {\n\t\tthis.se = se;\n\t\tvalid = false;\n\t\tthrow se;\t\t\n\t}",
"public void fatalError(SAXParseException exception)\t\n throws SAXException {\t\n }",
"@Override\n public void error(SAXParseException sAXParseException) throws SAXException {\n ErrorListener errorListener = this.m_transformer.getErrorListener();\n if (errorListener instanceof ErrorHandler) {\n ((ErrorHandler)((Object)errorListener)).error(sAXParseException);\n ErrorHandler errorHandler = this.m_errorHandler;\n if (errorHandler == null) return;\n errorHandler.error(sAXParseException);\n return;\n }\n try {\n TransformerException transformerException = new TransformerException(sAXParseException);\n errorListener.error(transformerException);\n if (this.m_errorHandler == null) return;\n this.m_errorHandler.error(sAXParseException);\n return;\n }\n catch (TransformerException transformerException) {\n throw sAXParseException;\n }\n }",
"public void warning(SAXParseException exception) throws SAXException {\n\t\tprintInfo(exception);\r\n\t}",
"@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n System.out.println(\"Warning reported: \" + saxpe.getMessage());\n }",
"public void error(SAXParseException exception) throws SAXException\n {\n\n // Increment counter, save the exception, and log what we got\n counters[TYPE_ERROR]++;\n\n String exInfo = getParseExceptionInfo(exception);\n\n setLastItem(exInfo);\n\n // Log or validate the exception\n logOrCheck(TYPE_ERROR, \"error\", exInfo);\n\n // Also re-throw the exception if asked to\n if ((throwWhen & THROW_ON_ERROR) == THROW_ON_ERROR)\n {\n throw new SAXException(exception);\n }\n }",
"public void fatalError(SAXParseException e) throws SAXException {\r\n\t\tERROR_CODE = -1;\r\n\t\tstack.clear();\r\n\t\tstack.push(new EFGString(\"Fatal error on line \"\r\n\t\t\t\t+ _locator.getLineNumber() + \", column \"\r\n\t\t\t\t+ _locator.getColumnNumber() + \":\\n\\t\" + e.getMessage()));\r\n\t\tSystem.err.println(\"Fatal error on line \" + _locator.getLineNumber()\r\n\t\t\t\t+ \", column \" + _locator.getColumnNumber() + \":\\n\\t\"\r\n\t\t\t\t+ e.getMessage());\r\n\t\tthrow e;\r\n\t}",
"@Override\n public void warning(SAXParseException e) throws SAXParseException {\n System.err.println(\"Aviso: \" + e.toString());\n\n throw (e);\n }",
"@Override\n public void warning(SAXParseException e) throws SAXParseException {\n System.err.println(\"Aviso: \" + e.toString());\n\n throw (e);\n }",
"@Override\n public void warning(SAXParseException sAXParseException) throws SAXException {\n ErrorListener errorListener = this.m_transformer.getErrorListener();\n if (errorListener instanceof ErrorHandler) {\n ((ErrorHandler)((Object)errorListener)).warning(sAXParseException);\n return;\n }\n try {\n TransformerException transformerException = new TransformerException(sAXParseException);\n errorListener.warning(transformerException);\n return;\n }\n catch (TransformerException transformerException) {\n throw sAXParseException;\n }\n }",
"public void error(SAXParseException e) throws SAXException {\r\n\t\tif (DATASOURCE_ERROR_CODE == -1) {\r\n\t\t\tstack.clear();\r\n\t\t\tstack.push(new EFGString(e.getMessage()));\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}",
"@Override\n public void fatalError(SAXParseException e) throws SAXParseException {\n System.err.println(\"Error no recuperable: \" + e.toString());\n throw (e);\n }",
"@Override\n public void fatalError(SAXParseException e) throws SAXParseException {\n System.err.println(\"Error no recuperable: \" + e.toString());\n throw (e);\n }",
"public void warning(SAXParseException e) throws SAXException {\r\n\t\t// System.err.println(\"Warning on line \" + _locator.getLineNumber() + \",\r\n\t\t// column \" +\r\n\t\t// _locator.getColumnNumber() + \"\\n\\t\" + e.getMessage());\r\n\t}",
"@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n }",
"public XMLParseException() { super(defaultMessage); }",
"@Override\n public void fatalError(SAXParseException exception) {\n logger.log(TreeLogger.ERROR, exception.getMessage());\n logger.log(TreeLogger.DEBUG, \"SAXParseException\", exception);\n }",
"void verror(String message)\n throws SAXException\n {\n SAXParseException err;\n \n err = new SAXParseException(message, this);\n errorHandler.error(err);\n }",
"@Override\n public void fatalError(SAXParseException sAXParseException) throws SAXException {\n Object object = this.m_errorHandler;\n if (object != null) {\n try {\n object.fatalError(sAXParseException);\n }\n catch (SAXParseException sAXParseException2) {\n // empty catch block\n }\n }\n if ((object = this.m_transformer.getErrorListener()) instanceof ErrorHandler) {\n ((ErrorHandler)object).fatalError(sAXParseException);\n object = this.m_errorHandler;\n if (object == null) return;\n object.fatalError(sAXParseException);\n return;\n }\n try {\n TransformerException transformerException = new TransformerException(sAXParseException);\n object.fatalError(transformerException);\n if (this.m_errorHandler == null) return;\n this.m_errorHandler.fatalError(sAXParseException);\n return;\n }\n catch (TransformerException transformerException) {\n throw sAXParseException;\n }\n }",
"protected final void fatal() throws SAXException {\n SAXParseException spe = new SAXParseException(\n \"Cannot recover after last error. Any further errors will be ignored.\", tokenizer);\n if (errorHandler != null) {\n errorHandler.fatalError(spe);\n }\n throw spe;\n }",
"private void printInfo(SAXParseException e)\r\n {\r\n System.out.println(\" Public ID: \"+e.getPublicId());\r\n System.out.println(\" System ID: \"+e.getSystemId());\r\n System.out.println(\" Line number: \"+e.getLineNumber());\r\n System.out.println(\" Column number: \"+e.getColumnNumber());\r\n System.out.println(\" Message: \"+e.getMessage());\r\n }",
"public SAXException (Exception e)\n {\n this.exception = e;\n }",
"public void fatalError(SAXParseException exception) throws SAXException\n {\n\n // Increment counter, save the exception, and log what we got\n counters[TYPE_FATALERROR]++;\n\n String exInfo = getParseExceptionInfo(exception);\n\n setLastItem(exInfo);\n\n // Log or validate the exception\n logOrCheck(TYPE_FATALERROR, \"fatalError\", exInfo);\n\n // Also re-throw the exception if asked to\n if ((throwWhen & THROW_ON_FATAL) == THROW_ON_FATAL)\n {\n throw new SAXException(exception);\n }\n }",
"public XMLParseException(Throwable cause) { super(defaultMessage,cause); }",
"public SAXException ()\n {\n this.exception = null;\n }",
"public SAXException (String message) {\n super(message);\n this.exception = null;\n }",
"private void fatal(String message) throws SAXException {\n SAXParseException spe = new SAXParseException(message, this);\n if (errorHandler != null) {\n errorHandler.fatalError(spe);\n }\n throw spe;\n }",
"public interface XMLErrorHandler {\n\n /**\n * Reports a warning. Warnings are non-fatal and can be safely ignored by most\n * applications.\n *\n * @param domain The domain of the warning. The domain can be any string but\n * is suggested to be a valid URI. The domain can be used to\n * conveniently specify a web site location of the relevant\n * specification or document pertaining to this warning.\n * @param key The warning key. This key can be any string and is\n * implementation dependent.\n * @param exception Exception.\n *\n * @throws XNIException Thrown to signal that the parser should stop parsing the\n * document.\n */\n void warning(String domain, String key, XMLParseException exception) throws XNIException;\n\n /**\n * Reports an error. Errors are non-fatal and usually signify that the document\n * is invalid with respect to its grammar(s).\n *\n * @param domain The domain of the error. The domain can be any string but is\n * suggested to be a valid URI. The domain can be used to\n * conveniently specify a web site location of the relevant\n * specification or document pertaining to this error.\n * @param key The error key. This key can be any string and is\n * implementation dependent.\n * @param exception Exception.\n *\n * @throws XNIException Thrown to signal that the parser should stop parsing the\n * document.\n */\n void error(String domain, String key, XMLParseException exception) throws XNIException;\n\n /**\n * Report a fatal error. Fatal errors usually occur when the document is not\n * well-formed and signifies that the parser cannot continue normal operation.\n * <p>\n * <strong>Note:</strong> The error handler should <em>always</em> throw an\n * <code>XNIException</code> from this method. This exception can either be the\n * same exception that is passed as a parameter to the method or a new XNI\n * exception object. If the registered error handler fails to throw an\n * exception, the continuing operation of the parser is undetermined.\n *\n * @param domain The domain of the fatal error. The domain can be any string\n * but is suggested to be a valid URI. The domain can be used\n * to conveniently specify a web site location of the relevant\n * specification or document pertaining to this fatal error.\n * @param key The fatal error key. This key can be any string and is\n * implementation dependent.\n * @param exception Exception.\n *\n * @throws XNIException Thrown to signal that the parser should stop parsing the\n * document.\n */\n void fatalError(String domain, String key, XMLParseException exception) throws XNIException;\n}",
"public static String getErrorMessage(Reader xml, List errors) {\n BufferedReader reader = null;\n StringBuffer result = new StringBuffer();\n result.append(\"Your SLD is not valid.\\n\");\n result.append(\n \"Most common problems are: \\n(1) no namespaces - use <ows:GetMap>, <sld:Rule>, <ogc:Filter>, <gml:Point> - the part before the ':' is important\\n\");\n result.append(\"(2) capitialization - use '<And>' not '<and>' \\n\");\n result.append(\"(3) Order - The order of elements is important \\n\");\n result.append(\n \"(4) Make sure your first tag imports the correct namespaces. ie. xmlns:sld=\\\"http://www.opengis.net/sld\\\" for EVERY NAMESPACE \\n\");\n result.append(\"\\n\");\n \n try {\n reader = new BufferedReader(xml);\n \n String line = reader.readLine();\n int linenumber = 1;\n int exceptionNum = 0;\n \n //check for lineNumber -1 errors --> invalid XML\n if (errors.size() > 0) {\n SAXParseException sax = (SAXParseException) errors.get(0);\n \n if (sax.getLineNumber() < 0) {\n result.append(\" INVALID XML: \"\n + sax.getLocalizedMessage() + \"\\n\");\n result.append(\" \\n\");\n exceptionNum = 1; // skip ahead (you only ever get one error in this case)\n }\n }\n \n while (line != null) {\n line.replace('\\n', ' ');\n line.replace('\\r', ' ');\n \n String header = linenumber + \": \";\n result.append(header + line + \"\\n\"); // record the current line\n \n boolean keep_going = true;\n \n while (keep_going) {\n if ((exceptionNum < errors.size())) {\n SAXParseException sax = (SAXParseException) errors.get(exceptionNum);\n \n if (sax.getLineNumber() <= linenumber) {\n String head = \"---------------------\".substring(0,\n header.length() - 1);\n String body = \"--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\";\n \n int colNum = sax.getColumnNumber(); //protect against col 0 problems\n \n if (colNum < 1) {\n colNum = 1;\n }\n \n if (colNum > body.length()) {\n body = body + body + body + body + body + body; // make it longer (not usually required, but might be for SLD_BODY=... which is all one line)\n \n if (colNum > body.length()) {\n colNum = body.length();\n }\n }\n \n result.append(head + body.substring(0, colNum - 1)\n + \"^\\n\");\n result.append(\" (line \" + sax.getLineNumber()\n + \", column \" + sax.getColumnNumber() + \")\"\n + sax.getLocalizedMessage() + \"\\n\");\n exceptionNum++;\n } else {\n keep_going = false; //report later (sax.getLineNumber() > linenumber)\n }\n } else {\n keep_going = false; // no more errors to report\n }\n }\n \n line = reader.readLine(); //will be null at eof\n linenumber++;\n }\n \n for (int t = exceptionNum; t < errors.size(); t++) {\n SAXParseException sax = (SAXParseException) errors.get(t);\n result.append(\" (line \" + sax.getLineNumber()\n + \", column \" + sax.getColumnNumber() + \")\"\n + sax.getLocalizedMessage() + \"\\n\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (reader != null) {\n reader.close();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n \n return result.toString();\n }",
"private static String getXmlParseExceptionErrorMessage(Throwable jenaExc) {\n if ( ! (jenaExc instanceof JenaException) ) {\n return null;\n }\n\n Throwable cause = jenaExc.getCause();\n if ( ! (cause instanceof SAXParseException) ) {\n return null;\n }\n\n SAXParseException spe = (SAXParseException) cause;\n return spe.getMessage() +\n \"\\n Line number: \" + spe.getLineNumber()+\" Column number: \" +spe.getColumnNumber()\n\t\t\t //+(spe.getSystemId() != null ? \"\\n System ID: \" + spe.getSystemId() : \"\" )\n\t\t\t //+(spe.getPublicId() != null ? \"\\n Public ID: \" + spe.getPublicId() : \"\" )\n ;\n }",
"private static String getXmlParseExceptionErrorMessage(Throwable jenaExc) {\n\t\tif ( ! (jenaExc instanceof JenaException ) ) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tThrowable cause = jenaExc.getCause();\n\t\tif ( ! (cause instanceof SAXParseException ) ) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tSAXParseException spe = (SAXParseException) cause;\n\t\tString errorMessage = spe.getMessage() +\n\t\t\t\"\\n Line number: \" + spe.getLineNumber()+\" Column number: \" +spe.getColumnNumber()\n//\t\t\t+(spe.getPublicId() != null ? \"\\n Public ID: \" + spe.getPublicId() : \"\" )\n//\t\t\t+(spe.getSystemId() != null ? \"\\n System ID: \" + spe.getSystemId() : \"\" )\n\t\t;\n\n\t\treturn errorMessage;\n\t\t\t\n\t}",
"public SAXException (String message, Exception e)\n {\n super(message);\n this.exception = e;\n }",
"private XMLParseException syntaxError(String context,\n int lineNr) {\n String msg = \"Syntax error while parsing \" + context;\n return new XMLParseException(this.getTagName(), lineNr, msg);\n }",
"static void reportSchemaError(XMLErrorReporter errorReporter, SimpleLocator loc, String key, Object[] args) {\n/* 340 */ if (loc != null) {\n/* 341 */ errorReporter.reportError(loc, \"http://www.w3.org/TR/xml-schema-1\", key, args, (short)1);\n/* */ }\n/* */ else {\n/* */ \n/* 345 */ errorReporter.reportError(\"http://www.w3.org/TR/xml-schema-1\", key, args, (short)1);\n/* */ } \n/* */ }",
"protected final void fatalError( Exception except )\n throws SAXException\n {\n if ( except instanceof SAXParseException )\n _lastException = (SAXParseException) except;\n else if ( except instanceof SAXException )\n _lastException = new SAXParseException( except.getMessage(), this );\n else\n _lastException = new SAXParseException( null, this, except );\n if ( _errorHandler != null )\n _errorHandler.fatalError( _lastException );\n throw _lastException;\n }",
"private void parseError() {\r\n System.out.print(\"Parse Error on:\");\r\n tokens.get(position).print();\r\n }",
"public void testImportXMLFailure() throws ParserConfigurationException, IOException {\n testInvalidXML(INVALID_XML_TEST_GPX);\n }",
"public void validationErr()\r\n\t{\n\t\tSystem.out.println(\"validation err\");\r\n\t}",
"private void parseErrorUnlessPermittedSlash() throws SAXException,\n IOException {\n if (endTag) {\n err(\"Stray \\u201C/\\u201D in an end tag.\");\n return;\n }\n char c = read();\n if (c == '>') {\n if (!currentIsVoid() && !html4) {\n if (html4) {\n err(\"Stray \\u201C/\\u201D in tag. The \\u201C/>\\u201D syntax is not permitted in HTML4.\");\n } else {\n err(\"Stray \\u201C/\\u201D in tag. The \\u201C/>\\u201D syntax is only permitted on void elements.\");\n }\n } else if (html4) {\n err(\"Stray \\u201C/\\u201D in tag. The \\u201C/>\\u201D syntax is not permitted in HTML4. (HTML4-only error)\");\n }\n } else {\n err(\"Stray \\u201C/\\u201D in tag.\");\n }\n unread(c);\n }",
"private static Throwable handle(final Throwable e) {\r\n\t\te.printStackTrace();\r\n\r\n\t\tif (e.getCause() != null) {\r\n\t\t\te.getCause().printStackTrace();\r\n\t\t}\r\n\t\tif (e instanceof SAXException) {\r\n\t\t\t((SAXException) e).getException().printStackTrace();\r\n\t\t}\r\n\t\treturn e;\r\n\t}",
"public void endDocument() throws SAXException {\r\n\t\t// The ff conditions will have to be met to signal a datasource request\r\n\t\t// error\r\n\t\t/*\r\n\t\t * 1.At least one dataSource was requested 2.All the DataSources was\r\n\t\t * requested do not exist in our Database.\r\n\t\t */\r\n\t\tif (((requestedDataSources == null) || (requestedDataSources.size() == 0))\r\n\t\t\t\t&& (errorMessages.length() > 0)) {\r\n\t\t\tDATASOURCE_ERROR_CODE = -1;\r\n\t\t\terror(new SAXParseException(errorMessages.toString(), _locator));\r\n\t\t}\r\n\t}",
"void validate() throws JDOMException, SAXException, IOException {\n\t\tif (oldLangFile != null && addressFactory == null || registerMgr == null) {\n\t\t\treadOldLanguage(false);\n\t\t}\n\t}",
"protected final void warning( String message )\n throws SAXException\n {\n SAXParseException except;\n \n if ( _errorHandler != null ) {\n if ( _errorHandler instanceof ErrorReport &&\n ! ( (ErrorReport) _errorHandler ).isReporting( ErrorReport.WARNING ) )\n return;\n except = new SAXParseException( message, this );\n _errorHandler.warning( except );\n }\n }",
"public void startDocument ()\n throws SAXException\n {\n\t System.out.println(\"Sandeep Jaisawal\");\n \n }",
"@Test(expected = XMLValidationException.class)\n\tpublic void testValidateAgainstXSDNoXSDFound() throws XMLValidationException, XMLParseException {\n\t\tString testXML = \"<Content>\" + \n\t\t\t\t\"\t<InvalidTagName>\" + \n\t\t\t\t\"\t\t<SaveName>TestSaveName</SaveName>\" + \n\t\t\t\t\"\t\t<Seed>TestSeed</Seed>\" + \n\t\t\t\t\"\t\t<DayNumber>42</DayNumber>\" + \n\t\t\t\t\"\t</InvalidTagName>\" + \n\t\t\t\t\"</Content>\";\n\t\t\n\t\t// Convert the testXML to a byte array for the method in test\n\t\tbyte[] xmlBytes = testXML.getBytes();\n\t\t\n\t\t// Call the method in test\n\t\tDocument document = XMLUtils.convertByteArrayToDocument(xmlBytes);\n\t\t\n\t\tPropertyManager.setXSDLocation(\"InvalidPath\");\n\t\t\n\t\t// Call the method in test\n\t\tXSDValidator.validateAgainstXSD(document);\n\t}",
"public LoggingSAXErrorHandler()\n {\n setLogger(getDefaultLogger());\n }",
"public void validate()\n throws org.exolab.castor.xml.ValidationException\n {\n org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\n validator.validate(this);\n }",
"public void validate()\n throws org.exolab.castor.xml.ValidationException\n {\n org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\n validator.validate(this);\n }",
"public void validate()\r\n throws org.exolab.castor.xml.ValidationException\r\n {\r\n org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r\n validator.validate(this);\r\n }",
"public void validate()\r\n throws org.exolab.castor.xml.ValidationException\r\n {\r\n org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r\n validator.validate(this);\r\n }",
"@Override\r\n public void startDocument() throws SAXException {\n }",
"private void getParserTreeErrorMessage(HttpServletRequest request, HttpServletResponse response) throws IOException {\n response.getWriter().write(XMLTree.getParserErrorMessage());\n }",
"@Override\n public void visitErrorNode(ErrorNode node) {\n\n }",
"public void validate()\n throws org.exolab.castor.xml.ValidationException {\n org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\n validator.validate(this);\n }",
"public ApiException(String xml) {\n //TODO Why do we need xalan dependency here???? -Chandra Patni\n //XPathFactory xPathFactory = new org.apache.xpath.jaxp.XPathFactoryImpl();\n XPathFactory xPathFactory = XPathFactory.newInstance();\n XPath xpath = xPathFactory.newXPath();\n NodeList nodes = XmlHelper.extractNodeList(xpath, \"//error[@code]\", xml);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n Node attr = node.getAttributes().getNamedItem(\"code\");\n if (attr != null) {\n errorCode = attr.getNodeValue();\n break;\n }\n }\n errorMessage = XmlHelper.extractNode(xpath, \"//error\", xml);\n\n }",
"@Override\n public void startDocument() throws SAXException {\n }",
"public void validate() throws org.exolab.castor.xml.ValidationException {\r\n\t\torg.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r\n\t\tvalidator.validate(this);\r\n\t}",
"public void startDocument() throws SAXException {\n\t\ttry {\n\t\t\tlogger.info(\"Parsing XML buddies\");\n\t\t} catch (Exception e) {\n\t\t\tbuddies = null;\n\t\t\tthrow new SAXException(\"XMLBuddyParser error\", e);\n\t\t}\n\t}",
"@Override\r\n public void endDocument() throws SAXException {\n }",
"@Override\n public void endDocument() throws SAXException {\n }",
"public XmlParserException(String message) {\n super(message);\n }",
"@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"@Override\n\tpublic void startDocument() throws SAXException {\n\t\t\n\t}",
"@Override\n\tpublic void startDocument() throws SAXException {\n\t\t\n\t}",
"@Test(expected = XMLValidationException.class)\n\tpublic void testValidateAgainstXSDInvalidXML() throws XMLParseException, XMLValidationException {\n\t\tString testXML = \"<Content>\" + \n\t\t\t\t\"\t<InvalidTagName>\" + \n\t\t\t\t\"\t\t<SaveName>TestSaveName</SaveName>\" + \n\t\t\t\t\"\t\t<Seed>TestSeed</Seed>\" + \n\t\t\t\t\"\t\t<DayNumber>42</DayNumber>\" + \n\t\t\t\t\"\t</InvalidTagName>\" + \n\t\t\t\t\"</Content>\";\n\t\t\n\t\t// Convert the testXML to a byte array for the method in test\n\t\tbyte[] xmlBytes = testXML.getBytes();\n\t\t\n\t\t// Call the method in test\n\t\tDocument document = XMLUtils.convertByteArrayToDocument(xmlBytes);\n\t\t\n\t\tPropertyManager.setXSDLocation(\"C:\\\\Users\\\\Daniel\\\\Documents\\\\Uni\\\\TeamProject\\\\GitCopy\\\\TeamProjectVirusGame\\\\Resources\\\\XSD/VirusGameXSD.xsd\");\n\t\t\n\t\t// Call the method in test\n\t\tXSDValidator.validateAgainstXSD(document);\n\t}",
"protected static void throwOutputError(String msg)\n throws XMLStreamException\n {\n throw new XMLStreamException(msg);\n }",
"@Override\r\n\t\tpublic void startDocument() throws SAXException {\n\t\t}",
"public void startDocument() throws SAXException {\n \n }",
"@Override\n\t\tpublic void startDocument() throws SAXException {\n\t\t\t\n\t\t}",
"@Override\n public void endDocument() throws SAXException {\n System.out.println(\"End\");\n }",
"@Override\n\tpublic void startDocument() throws SAXException {\n\t\tSystem.out.println(\"---解析文档开始----\");\n\t}",
"void fatalError(String domain, String key, XMLParseException exception) throws XNIException;",
"@Test(timeout = 4000)\n public void test12() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n ConnectionFactory connectionFactory0 = null;\n connectionFactories0.addConnectionFactory((ConnectionFactory) null);\n int int0 = (-1194);\n connectionFactories0.clearXAConnectionFactory();\n XAConnectionFactory xAConnectionFactory0 = new XAConnectionFactory();\n ParserAdapter parserAdapter0 = null;\n try {\n parserAdapter0 = new ParserAdapter();\n fail(\"Expecting exception: SAXException\");\n \n } catch(Throwable e) {\n //\n // System property org.xml.sax.parser not specified\n //\n verifyException(\"org.xml.sax.helpers.ParserAdapter\", e);\n }\n }",
"public void startDocument ()\n throws SAXException\n {\n // no op\n }",
"@Override\n\tpublic void endDocument() throws SAXException {\n\t\tSystem.out.println(\"文档解析完成\");\n\t}",
"private static void checkError(String result) {\n String err = Neo4jUtils.extractErrorData(result);\n if (err == null) {\n return;\n }\n throw new RuntimeException(err);\n }",
"public void error();",
"@Override\n\tpublic void endDocument() throws SAXException {\n\t\t\n\t}",
"@Override\n\tpublic void endDocument() throws SAXException {\n\t\t\n\t}",
"public G_DocumentError() {}",
"@Override\n\t\tpublic void endDocument() throws SAXException {\n\t\t\t\n\t\t}",
"@Override\n public void showError() {\n }",
"public ElementNotFoundException(String msg){\n super(msg);\n }",
"private void parseError(String s) throws FSException {\n\n // set up our error block\n error=new String[6];\n error[0]=s;\n error[1]=(new Integer(code.getCurLine())).toString();\n error[2]=code.getLineAsString();\n error[3]=tok.toString();;\n error[4]=vars.toString();\n if (gVars!=null) error[5]=(gVars==null)?\"\":gVars.toString();\n\n // build the display string\n s=\"\\n\\t\"+s+\"\\n\"+getContext();\n\n throw new FSException(s);\n }",
"@Override\n\tpublic void startDocument() throws SAXException {\n\t\tSystem.out.println(\"开始解析文档\");\n\t}",
"public void error(Exception e);",
"public void fatalError(ValidationType type, String validationName, String content);",
"public void printErrToken(){\r\n System.err.println(\"Invalid token at line: \" + lineNum + \" , column \" + colNum);\r\n }",
"public void exportFailure(BeanXporterEvent e);",
"public LoggingSAXErrorHandler(Logger l)\n {\n setLogger(l);\n }",
"public void testImportLocationFailure() throws ParserConfigurationException, IOException {\n testInvalidXML(INVALID_LOCATION_TEST_GPX);\n }",
"public void onException( String path) {\n LOG.warn(\"\\nThe element not found by path =>\" + path);\n }",
"private void printErrorMsg(String line) {\n\t\tString msg = StringUtils.substringBetween(line, \"<svrl:text>\", \"</svrl:text>\");\n\t\tSystem.out.println(msg);\n\t}",
"void error (String msg) throws RootException;"
] | [
"0.8038972",
"0.77669996",
"0.77033025",
"0.77033025",
"0.7415746",
"0.740932",
"0.74064493",
"0.7391506",
"0.73650753",
"0.7233439",
"0.71967006",
"0.7180108",
"0.7136973",
"0.71275973",
"0.71275973",
"0.70967734",
"0.707863",
"0.7046788",
"0.7046788",
"0.700911",
"0.699544",
"0.69245183",
"0.6916542",
"0.6868053",
"0.6762708",
"0.67059505",
"0.6521342",
"0.64640903",
"0.64455503",
"0.63635373",
"0.6360463",
"0.6359585",
"0.63494825",
"0.6275936",
"0.62605906",
"0.6208292",
"0.615929",
"0.6124615",
"0.61059695",
"0.60571253",
"0.60477066",
"0.5945794",
"0.59274465",
"0.5911093",
"0.58665115",
"0.57408845",
"0.5707463",
"0.5686279",
"0.56753266",
"0.56589127",
"0.5644278",
"0.563425",
"0.561194",
"0.561194",
"0.5592546",
"0.5592546",
"0.558526",
"0.55784756",
"0.55650723",
"0.55596703",
"0.55581546",
"0.5555469",
"0.55495864",
"0.5509845",
"0.55009854",
"0.5480303",
"0.5473543",
"0.5466782",
"0.546115",
"0.546115",
"0.5432015",
"0.541345",
"0.54132",
"0.5409149",
"0.54050606",
"0.539429",
"0.5393473",
"0.5387008",
"0.5384686",
"0.537252",
"0.5354933",
"0.535353",
"0.5340658",
"0.533292",
"0.533292",
"0.5311702",
"0.5282818",
"0.5281886",
"0.5281153",
"0.52797353",
"0.5270023",
"0.52655536",
"0.5256713",
"0.52532667",
"0.52526295",
"0.5251404",
"0.5250629",
"0.52490735",
"0.52441716",
"0.5239861"
] | 0.8234422 | 0 |
Method for print all infomation catched during xml validation | private void printInfo(SAXParseException e)
{
System.out.println(" Public ID: "+e.getPublicId());
System.out.println(" System ID: "+e.getSystemId());
System.out.println(" Line number: "+e.getLineNumber());
System.out.println(" Column number: "+e.getColumnNumber());
System.out.println(" Message: "+e.getMessage());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void printInfo(SAXParseException e) {\n\t}",
"public void printInfo() {\n\t\tString nodeType = \"\";\n\t\tif (nextLayerNodes.size() == 0) {\n\t\t\tnodeType = \"Output Node\";\n\t\t} else if (prevLayerNodes.size() == 0) {\n\t\t\tnodeType = \"Input Node\";\n\t\t} else {\n\t\t\tnodeType = \"Hidden Node\";\n\t\t}\n\t\tSystem.out.printf(\"%n-----Node Values %s-----%n\", nodeType);\n\t\tSystem.out.printf(\"\tNumber of nodes in next layer: %d%n\", nextLayerNodes.size());\n\t\tSystem.out.printf(\"\tNumber of nodes in prev layer: %d%n\", prevLayerNodes.size());\n\t\tSystem.out.printf(\"\tNext Layer Node Weights:%n\");\n\t\tNode[] nextLayer = new Node[nextLayerNodes.keySet().toArray().length];\n\t\tfor (int i = 0; i < nextLayer.length; i++) {\n\t\t\tnextLayer[i] = (Node) nextLayerNodes.keySet().toArray()[i];\n\t\t}\n\t\tfor (int i = 0; i < nextLayerNodes.size(); i++) {\n\t\t\tSystem.out.printf(\"\t\t# %f%n\", nextLayerNodes.get(nextLayer[i]));\n\t\t}\n\t\tSystem.out.printf(\"%n\tPartial err partial out = %f%n%n\", getPartialErrPartialOut());\n\t}",
"private void printFullTree()\r\n {\r\n System.out.println(fullXmlTree.toString());\r\n }",
"public void printInfo(){\n\t}",
"public void printInfo(){\n\t}",
"public void displaySchema() {\n for (String s : attributes)\n System.out.print(s + \"\");\n }",
"@Override\r\n public void warning(SAXParseException e) throws SAXException\r\n {\r\n System.out.println(\"Warning: \"); \r\n printInfo(e);\r\n }",
"private String printXML(Node target){\n\t\treturn \"\";\n\t}",
"public void printInfo(){\n\t\tSystem.out.println(\"id : \" + id + \" label : \" + label);\n\t\tSystem.out.println(\"vms : \" );\n\t\tfor(VirtualMachine v : vms){\n\t\t\tv.printInfo();\n\t\t}\n\t}",
"@Override\n public String toString() {\n\n // Add schema location attribute\n this.addSchemaLocation(\"http://www.w3.org/2001/XMLSchema-instance\", \"schemaLocation\", \"xsi\",\n \"http://xsd.sepamail.eu/1206/ xsd/sepamail_missive.xsd \");\n\n // XML options instance\n XmlOptions options = new XmlOptions();\n\n // Set the properties of the XML options\n options.setSavePrettyPrint();\n options.setSaveSuggestedPrefixes(this.suggestedPrefixes);\n options.setUseCDataBookmarks();\n\n try {\n\n // Build XML document using the constructed XML object\n SAXBuilder sxb = new SAXBuilder();\n Document xmlDocument =\n sxb.build(new InputStreamReader(new ByteArrayInputStream(missiveDocument.xmlText(options).getBytes()),\n \"UTF-8\"));\n\n // Pretty print the XML document\n XMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n xmlOutputter.output(xmlDocument, output);\n\n // String with XML content\n return new String(output.toByteArray());\n\n } catch ( JDOMException | IOException ex) {\n\n // TODO: error logging\n System.out.println(ex.getMessage());\n }\n\n return null;\n }",
"public static void printInfo(){\n }",
"public void print (){\r\n\t\tSystem.out.print(\" > Inputs (\"+numInputAttributes+\"): \");\r\n\t\tfor (int i=0; i<numInputAttributes; i++){\r\n\t\t\tif (missingValues[Instance.ATT_INPUT][i]){\r\n\t\t\t\tSystem.out.print(\"?\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tswitch(Attributes.getInputAttribute(i).getType()){\r\n\t\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\t\tSystem.out.print(nominalValues[Instance.ATT_INPUT][i]); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\t\tSystem.out.print((int)realValues[Instance.ATT_INPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.REAL:\r\n\t\t\t\t\tSystem.out.print(realValues[Instance.ATT_INPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t\tSystem.out.print(\" > Outputs (\"+numOutputAttributes+\"): \");\r\n\t\tfor (int i=0; i<numOutputAttributes; i++){\r\n\t\t\tif (missingValues[Instance.ATT_OUTPUT][i]){\r\n\t\t\t\tSystem.out.print(\"?\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tswitch(Attributes.getOutputAttribute(i).getType()){\r\n\t\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\t\tSystem.out.print(nominalValues[Instance.ATT_OUTPUT][i]); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\t\tSystem.out.print((int)realValues[Instance.ATT_OUTPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.REAL:\r\n\t\t\t\t\tSystem.out.print(realValues[Instance.ATT_OUTPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\r\n\t\tSystem.out.print(\" > Undefined (\"+numUndefinedAttributes+\"): \");\r\n\t\tfor (int i=0; i<numUndefinedAttributes; i++){\r\n\t\t\tif (missingValues[Instance.ATT_NONDEF][i]){\r\n\t\t\t\tSystem.out.print(\"?\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tswitch(Attributes.getUndefinedAttribute(i).getType()){\r\n\t\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\t\tSystem.out.print(nominalValues[Instance.ATT_NONDEF][i]); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\t\tSystem.out.print((int)realValues[Instance.ATT_NONDEF][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.REAL:\r\n\t\t\t\t\tSystem.out.print(realValues[Instance.ATT_NONDEF][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t}",
"public void printExpectedVisitors() {\n System.out.println(expectedVisitors);\n }",
"public void printInformation() {\n\n System.out.println(\"Name: \" + name);\n System.out.println(\"Weight: \" + weight);\n System.out.println(\"Shape: \" + shape);\n System.out.println(\"Color: \" + color);\n }",
"abstract public void printInfo();",
"public void printConstraint() {\n\t\tSystem.out.println(this.object + \" \" + this.closeObject + \" \" + this.farObject);\r\n\t}",
"public void printWordContentDetailed()\n\t{\n\t\tthis.removeDuplicateAffixes();\n\n\n\t\tprintln(\"Printing contents of the Word object/class.\");\n\t\tif( word.finalContentsReady(true) == true)\n\t\t{\n\t\t\tprintln(\"Original: \" + word.getOriginalWord() + \"| Root: \" + this.rootWord);\n\t\t\tprintln(\"Number of Affixes in the original word: \" + word.getAffixCount());\n\t\t\tprintln(\"Prefixes: \" + this.prefixes.size() + \" | Infixes: \" + this.infixes.size() + \" | Suffixes: \" + this.suffixes.size());\n\t\t\tprintln(\"Printing Prefixes:\");\n\t\t\tfor(int i = 0; i < this.prefixes.size(); i++)\n\t\t\t{\n\t\t\t\tprintln( \"PFX: \" + this.prefixes.get(i).getAffix() );\n\t\t\t}\n\n\t\t\tprintln(\"Printing Infixes:\");\n\t\t\tfor(int i = 1; i < this.infixes.size(); i++)\n\t\t\t{\n\t\t\t\tprintln( \"IFX: \" + this.infixes.get(i).getAffix() );\n\t\t\t}\n\n\t\t\tprintln(\"Printing Suffixes:\");\n\t\t\tfor(int i = 0; i < this.suffixes.size(); i++)\n\t\t\t{\n\t\t\t\tprintln( \"SFX: \" + this.suffixes.get(i).getAffix() );\n\t\t\t}\n\t\t}\n\t}",
"@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }",
"public void PrintMe() {\n\t\t/* AST NODE TYPE = AST EXP NIL */\n\t\t/**********************************/\n\t\tSystem.out.print(\"AST NODE: EXP_EXP\\n\");\n\n\t\t/*****************************/\n\t\t/* RECURSIVELY PRINT exp ... */\n\t\t/*****************************/\n\t\tif (exp != null) exp.PrintMe();\n\n\t\t/*********************************/\n\t\t/* Print to AST GRAPHIZ DOT file */\n\t\t/*********************************/\n\t\tAST_GRAPHVIZ.getInstance().logNode(\n\t\t\tSerialNumber,\n \"(exp)\");\n \n\t\t/****************************************/\n\t\t/* PRINT Edges to AST GRAPHVIZ DOT file */\n\t\t/****************************************/\n\t\tAST_GRAPHVIZ.getInstance().logEdge(SerialNumber, exp.SerialNumber);\n\n\t}",
"@Override\r\n public void fatalError(SAXParseException e) throws SAXException\r\n {\r\n System.out.println(\"Fattal error: \"); \r\n printInfo(e);\r\n }",
"public void printTree() {\n\t\tSystem.out.println(printHelp(root));\r\n\t\t\r\n\t}",
"public void PrintMe()\r\n\t{\r\n\t\t/************************************/\r\n\t\t/* AST NODE TYPE = EXP NIL AST NODE */\r\n\t\t/************************************/\r\n\t\tSystem.out.print(\"AST NODE EXP NIL\\n\");\r\n\r\n\t\t\r\n\t\t/*********************************/\r\n\t\t/* Print to AST GRAPHIZ DOT file */\r\n\t\t/*********************************/\r\n\t\tAST_GRAPHVIZ.getInstance().logNode(\r\n\t\t\tSerialNumber,\r\n\t\t\t\"EXP\\nNIL\");\r\n\t\t\t\r\n\t}",
"void printInfo();",
"public void info() {\r\n System.out.println(\" Name: \" + name + \" Facility: \" + facility + \" Floor: \" + floor + \" Covid: \"\r\n + positive + \" Age: \" + age + \" ID: \" + id);\r\n }",
"public void printStructure() {\n printStructure(mRoot);\n }",
"public void printDetails()\n {\n super.printDetails();\n System.out.println(\"Body type: \" + bodyType + \" Number of doors: \" + noOfDoors + \" Number of seats: \" + noOfSeats);\n System.out.println();\n }",
"public void PrintAttributes()\n\t{\n\t\tSystem.out.println(\"Name: \"+ name);\n\t\tSystem.out.println(\"Address: \"+ address);\n\t\tSystem.out.println(\"Phone_Number: \"+ phoneNumber);\n\t\tSystem.out.println(\"Year_Built: \"+ yearBuilt);\n\t\tSystem.out.println(\"Price: \"+ price);\n\t\tSystem.out.println(\"Max_Residents: \"+ maxResidents);\n\t\tSystem.out.println(\"Catagory: \"+ catagory);\n\t\t\n\t\t//GetKeywords(); \n\t\tif(keywords.size() == 0)\n\t\t{\n\t\t\tSystem.out.println(\"No Keywords\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(int i = 0; i < keywords.size(); i++)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Keyword: \" + keywords.get(i));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//GetAvailableDates(); \n\t\tif(openDates.size() == 0)\n\t\t{\n\t\t\tSystem.out.println(\"No Available Date\");\n\t\t}\n\t\tfor(int j = 0; j < openDates.size(); j++)\n\t\t{\n\t\t\tSystem.out.println(\"Available Date: \"+openDates.get(j).PrintDate());\n\t\t}\n\t}",
"public void printValidateInformation() {\n\n if(!validateFirstName()){\n System.out.println(\"The first name must be filled in\");\n }\n if(!validateFirstNameLength()){\n System.out.println(\"The first name must be at least 2 characters long.\");\n }\n if(!validateLastName()){\n System.out.println(\"The last name must be filled in\");\n }\n if(!validateLastNameLength()){\n System.out.println(\"The last name must be at least 2 characters long.\");\n }\n if(!validateZipcode()){\n System.out.println(\"The zipcode must be a 5 digit number.\");\n }\n if (!validateEmployeeID()){\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n }\n\n if(validateFirstName() && validateFirstNameLength() && validateLastName() && validateLastNameLength()\n && validateZipcode() && validateEmployeeID()){\n System.out.println(\"There were no errors found.\");\n }\n }",
"public void info()\n {\n System.out.println(toString());\n }",
"public String doneXML() {\n if ( (MyLocation != null) && (MyName != null)) {\n return null;\n }\n return new String(\"Incomplete \" + XML_TAG + \" XML specification\");\n }",
"@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n System.out.println(\"Warning reported: \" + saxpe.getMessage());\n }",
"public void disp(){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"------------------------------------------- \");\r\n\t\t\tSystem.out.println(\"Feature Model \");\r\n\t\t\tSystem.out.println(\"------------------------------------------- \");\r\n\t\t\tSystem.out.println(\"The mandatory feature:\");\r\n\t\t\tfor(int i = 0; i < this.mandatoryFeatures.size(); i++ ){\r\n\t\t\t\tthis.mandatoryFeatures.get(i).disp();\r\n\t\t\t}//for\r\n\t\t\tSystem.out.println(\"Optional features:\");\r\n\t\t\tfor(int i = 0; i < this.optionalFeatures.size(); i++ ){\r\n\t\t\t\tthis.optionalFeatures.get(i).disp();\r\n\t\t\t}//for\r\n\t\t\tfor(int i = 0; i < this.alternativeFeatureGroup.size(); i++ ){\r\n\t\t\t\tSystem.out.println(\"Alternative features:\");\r\n\t\t\t\tfor(int j = 0; j < alternativeFeatureGroup.get(i).getFeatures().size(); j++ ){\r\n\t\t\t\t\talternativeFeatureGroup.get(i).getFeatures().get(j).disp();\r\n\t\t\t\t}//for\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < this.orFeatureGroup.size(); i++ ){\r\n\t\t\t\tSystem.out.println(\"Or features:\");\r\n\t\t\t\tfor(int j = 0; j < orFeatureGroup.get(i).getFeatures().size(); j++ ){\r\n\t\t\t\t\torFeatureGroup.get(i).getFeatures().get(j).disp();\r\n\t\t\t\t}//for\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Constraints:\");\r\n\t\t\tfor(int i = 0; i < this.constraints.size(); i++ ){\r\n\t\t\t\tthis.constraints.get(i).disp();\r\n\t\t\t}//for\r\n\t\t}",
"void dump() {\n\t\tSystem.out.print(\"I am: \" + (territoryID));\n\t\tSystem.out.print(\"\\tNeighbour of:\");\n\n\t}",
"public void printInfo()\n {\n System.out.println(\"position Value:\" + pos_.get(0).getPosition());\n System.out.println(\"velocitiy Value:\" + vel_.get(0).getVelocity());\n System.out.println(\"lastUpdateTime Value:\" + lastPosUpdateTime_);\n System.out.println(\"KalmanGain_ Value:\" + KalmanGain_);\n }",
"public static void printInfo(Element element){\n System.out.println(\"ELEMENT: \" + element.id());\n System.out.println(\" Class Name: \" + element.className());\n System.out.println(\" Tag Name: \" + element.tagName());\n System.out.println(\" Text: \" + element.text());\n //System.out.println(\" H3: \" + element.getElementsByTag(\"h3\").first().text());\n System.out.println(\" # of Children: \" + element.children().size());\n System.out.println(\" Children: \" + childrenNames(element));\n }",
"private void dumpState() {\r\n\t\tfor (TextChunk location : locationalResult) {\r\n\t\t\tlocation.printDiagnostics();\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"public void printAssertions(JmlFile jf) {\n\t\tstream.println(\"ASSERTIONS\");\n\t\tprinter.firstItem = true;\n\t\tprintProofAssert(jf.getClasses());\n\t\tstream.println(\"\\nEND\");\n\t}",
"public void printDetails()\n {\n System.out.println(\"Name: \" + foreName + \" \"\n + lastName + \"\\nEmail: \" + emailAddress);\n }",
"@Override\n\t\tpublic boolean hasPassedXMLValidation() {\n\t\t\treturn false;\n\t\t}",
"private void echo(Node n) {\n\t outputIndentation();\n\t int type = n.getNodeType();\n\n\t switch (type) {\n\t case Node.ATTRIBUTE_NODE:\n\t out.print(\"ATTR:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.CDATA_SECTION_NODE:\n\t out.print(\"CDATA:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.COMMENT_NODE:\n\t out.print(\"COMM:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.DOCUMENT_FRAGMENT_NODE:\n\t out.print(\"DOC_FRAG:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.DOCUMENT_NODE:\n\t out.print(\"DOC:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.DOCUMENT_TYPE_NODE:\n\t out.print(\"DOC_TYPE:\");\n\t printlnCommon(n);\n\t NamedNodeMap nodeMap = ((DocumentType)n).getEntities();\n\t indent += 2;\n\t for (int i = 0; i < nodeMap.getLength(); i++) {\n\t Entity entity = (Entity)nodeMap.item(i);\n\t echo(entity);\n\t }\n\t indent -= 2;\n\t break;\n\n\t case Node.ELEMENT_NODE:\n\t out.print(\"ELEM:\");\n\t printlnCommon(n);\n\n\t NamedNodeMap atts = n.getAttributes();\n\t indent += 2;\n\t for (int i = 0; i < atts.getLength(); i++) {\n\t Node att = atts.item(i);\n\t echo(att);\n\t }\n\t indent -= 2;\n\t break;\n\n\t case Node.ENTITY_NODE:\n\t out.print(\"ENT:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.ENTITY_REFERENCE_NODE:\n\t out.print(\"ENT_REF:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.NOTATION_NODE:\n\t out.print(\"NOTATION:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.PROCESSING_INSTRUCTION_NODE:\n\t out.print(\"PROC_INST:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.TEXT_NODE:\n\t out.print(\"TEXT:\");\n\t printlnCommon(n);\n\t break;\n\n\t default:\n\t out.print(\"UNSUPPORTED NODE: \" + type);\n\t printlnCommon(n);\n\t break;\n\t }\n\n\t indent++;\n\t for (Node child = n.getFirstChild(); child != null;\n\t child = child.getNextSibling()) {\n\t echo(child);\n\t }\n\t indent--;\n\t}",
"public void PrintMe()\r\n\t{\r\n\t\t/********************************************/\r\n\t\t/* AST NODE TYPE = AST VAR.PARAM_FUNC EXPRESSION */\r\n\t\t/********************************************/\r\n\t\tSystem.out.print(\"AST NODE VAR.PARAM_FUNC EXPRESSION \\n\");\r\n\r\n\t\t/***********************************/\r\n\t\t/* RECURSIVELY PRINT var + expList ... */\r\n\t\t/***********************************/\r\n\t\tif (var != null) var.PrintMe();\r\n//\t\tif (expList != null) expList.PrintMe();\r\n\r\n\t\t/***************************************/\r\n\t\t/* PRINT Node to AST GRAPHVIZ DOT file */\r\n\t\t/***************************************/\r\n\t\tAST_GRAPHVIZ.getInstance().logNode(\r\n\t\t\tSerialNumber,\r\n\t\t\tString.format(\"EXP VAR PARAM FUNC\\n()%S\", name));\r\n\t\t\r\n\t\t/****************************************/\r\n\t\t/* PRINT Edges to AST GRAPHVIZ DOT file */\r\n\t\t/****************************************/\r\n\t\tAST_GRAPHVIZ.getInstance().logEdge(SerialNumber,var.SerialNumber);\r\n//\t\tAST_GRAPHVIZ.getInstance().logEdge(SerialNumber,expList.SerialNumber);\r\n\t}",
"public static void shoInfo() {\n\t\tSystem.out.println(description);\n\t \n\t}",
"protected static void dumpConfig() {\n try {\n logger.info( Configuration.CN_WKBOTANICA_API_CONTEXT_PATH + getContextPath());\n logger.info( Configuration.CN_DNS + \" \" + Configuration.CN_DNS_ADD_LOCALS + shouldAddLocalDns());\n logger.info( Configuration.CN_HTTP + \" \" + Configuration.CN_HTTP_PORT + getHttpPort());\n logger.info( Configuration.CN_FLICKR_API_KEY + \" \" + getFlickrApiKey());\n logger.info( Configuration.CN_FLICKR_USER_ID + \" \" + getFlickrUserId());\n logger.info( Configuration.CN_FLICKR_PHOTOSET_ID + \" \" + getFickrPhotosetId());\n }\n catch (Exception e) {\n logger.info(\"GRAVE:\" + e.getMessage());\n }\n }",
"private void printProofAssert(Enumeration e) {\n\t\tif (e.hasMoreElements()) {\n\t\t\tClass c = (Class) e.nextElement();\n\t\t\tprintProofAssert(e);\n\t\t\tprintProofAssert(c);\n\t\t}\n\t}",
"public void print ( InstanceAttributes instAttributes ){\r\n\t\tSystem.out.print(\" > Inputs (\"+numInputAttributes+\"): \");\r\n\r\n\t\tfor (int i=0; i<numInputAttributes; i++){\r\n\t\t\tif (missingValues[Instance.ATT_INPUT][i]){\r\n\t\t\t\tSystem.out.print(\"?\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tswitch(instAttributes.getInputAttribute(i).getType()){\r\n\t\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\t\tSystem.out.print(nominalValues[Instance.ATT_INPUT][i]); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\t\tSystem.out.print((int)realValues[Instance.ATT_INPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.REAL:\r\n\t\t\t\t\tSystem.out.print(realValues[Instance.ATT_INPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t\tSystem.out.print(\" > Outputs (\"+numOutputAttributes+\"): \");\r\n\t\tfor (int i=0; i<numOutputAttributes; i++){\r\n\t\t\tif (missingValues[Instance.ATT_OUTPUT][i]){\r\n\t\t\t\tSystem.out.print(\"?\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tswitch(instAttributes.getOutputAttribute(i).getType()){\r\n\t\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\t\tSystem.out.print(nominalValues[Instance.ATT_OUTPUT][i]); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\t\tSystem.out.print((int)realValues[Instance.ATT_OUTPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.REAL:\r\n\t\t\t\t\tSystem.out.print(realValues[Instance.ATT_OUTPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\r\n\t\tSystem.out.print(\" > Undefined (\"+numUndefinedAttributes+\"): \");\r\n\t\tfor (int i=0; i<numUndefinedAttributes; i++){\r\n\t\t\tif (missingValues[Instance.ATT_NONDEF][i]){\r\n\t\t\t\tSystem.out.print(\"?\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tswitch(instAttributes.getUndefinedAttribute(i).getType()){\r\n\t\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\t\tSystem.out.print(nominalValues[Instance.ATT_NONDEF][i]); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\t\tSystem.out.print((int)realValues[Instance.ATT_NONDEF][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.REAL:\r\n\t\t\t\t\tSystem.out.print(realValues[Instance.ATT_NONDEF][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t}",
"public void printOut() {\n\t\tif(root.left != null) {\n\t\t\tprintOut(root.left);\n\t\t}\n\t\t\n\t\tSystem.out.println(root.element);\n\t\t\n\t\tif(root.right != null) {\n\t\t\tprintOut(root.right);\n\t\t}\n\t}",
"void info() {\n System.out.println(\"E16_OverloadJavaDoc is \" + height + \" feet tall\");\n }",
"public abstract void printConstraint();",
"private void printlnCommon(Node n) {\n\t System.out.print(\" nodeName=\\\"\" + n.getNodeName() + \"\\\"\");\n\n\t String val = n.getNamespaceURI();\n\t if (val != null) {\n\t out.print(\" uri=\\\"\" + val + \"\\\"\");\n\t }\n\n\t val = n.getPrefix();\n\n\t if (val != null) {\n\t out.print(\" pre=\\\"\" + val + \"\\\"\");\n\t }\n\n\t val = n.getLocalName();\n\t if (val != null) {\n\t out.print(\" local=\\\"\" + val + \"\\\"\");\n\t }\n\n\t val = n.getNodeValue();\n\t if (val != null) {\n\t out.print(\" nodeValue=\");\n\t if (val.trim().equals(\"\")) {\n\t // Whitespace\n\t out.print(\"[WS]\");\n\t }\n\t else {\n\t out.print(\"\\\"\" + n.getNodeValue() + \"\\\"\");\n\t }\n\t }\n\t out.println();\n\t}",
"public void PrintMe()\r\n\t{\r\n\t\tSystem.out.print(\"AST NODE UNKNOWN\\n\");\r\n\t}",
"@Override\r\n\tpublic void printTransdetails() {\n\t\t\r\n\t}",
"public void printDetails()\n {\n super.printDetails();\n System.out.println(\"The author is \" + author + \" and the isbn is \" + isbn); \n }",
"public void printChecklist() {\n\t\tfor(String str : checklist.keySet()) {\n\t\t\tMyUtils.Log(\"[Checklist] \"+str+\", \"+checklist.get(str));\n\t\t}\n\t}",
"public void printTypeInfo(){\n\t\tSystem.out.println(\"This type of computer is suitable for massive usage, when it comes to portability.\");\n\t\tSystem.out.println(\"Main thing at these computers is portability and funcionality.\");\n\t\t\n\t}",
"@Override\n public String toString() {\n if (valid())\n return \"valid\";\n return print(errors + \":\" + validator);\n }",
"public void debugPrint(StringBuffer buffer) {\n\t\tbuffer.append(\"<?xml version='1.0' encoding='Shift_JIS' ?>\\n\");\n\n\t\tstartTag(buffer);\n\t\tappendModules(buffer);\n\t\tendTag(buffer);\n\t}",
"private static void annotationOut(SchemaComponent sc) {\n if (sc.getAnnotation().getAppinfos().size() > 0) {\n System.out\n .print(\" Annotation (appinfos) available with the content: \");\n for (Appinfo appinfo : sc.getAnnotation().getAppinfos()) {\n out(appinfo.getContent());\n }\n } else {\n System.out\n .print(\" Annotation (documentation) available with the content: \");\n for (Documentation doc : sc.getAnnotation().getDocumentations()) {\n out(doc.getContent());\n }\n }\n }",
"void print() {\r\n\t\tOperations.print(lexemes, tokens);\r\n\t}",
"private void print() {\n printInputMessage();\n printFrequencyTable();\n printCodeTable();\n printEncodedMessage();\n }",
"public void dump( Result out ) throws JAXBException;",
"public void showInfo() {\n\t\t\n\t\tsuper.showInfo();\n\t\tSystem.out.println(\"Your Checking Account features: \"\n\t\t\t\t+ \"\\nDebit Card Number: \" + debitCardNumber\n\t\t\t\t+ \"\\nDebit Card PIN: \" + debitCardPin\n\t\t\t\t+ \"\\n****************\"\n\t\t\t\t);\n\t\t\n\t}",
"public static void printInfo(Elements elements){\n for (Element element : elements){\n printInfo(element);\n }\n }",
"void printCheck();",
"private void printProofAssert(Class c) {\n\t\tprintProofMethodAssert(\"this\", c.getMethods());\n\t\tprintProofMethodAssert(\"this\", c.getConstructors());\n\t\t//c.staticInitLemmas.nbPo();\n\t\tif (c.getStaticInitLemmas() != null)\n\t\t\tprintProofAssert(\"\", c.getStaticInitLemmas());\n\t\t//c.wellDefInvLemmas.nbPo();\n\t\tprintProofAssert(\"\", c.getWellDefInvLemmas());\n\t}",
"public void print(DocTree tree) throws IOException {\n try {\n if (tree == null)\n print(\"/*missing*/\");\n else {\n tree.accept(this, null);\n }\n } catch (UncheckedIOException ex) {\n throw new IOException(ex.getMessage(), ex);\n }\n }",
"public void summarize () {\n\n TreeNodeVisitor visitor = new TreeNodeVisitor();\n traversal (visitor);\n visitor.log();\n \n }",
"public static void printIndications() {\n\t\tSystem.out.println(\"\\n\" + \"Usage :\"\n\t\t\t\t+ \"\\n\\t\" + \"java -jar <jar-file> nodeScopeDirectoryPath windowSize\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"nodeScopeDirectoryPath is the path of the directory where the tagged corpus is located\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"windowSize is the size of the sliding window; it must be an integer (usually 2)\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"Other input parameters\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"the file containing the candidates terms must be located at src/main/resources/concepts/candidates.txt\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"the file containing the reference terms must be located at src/main/resources/concepts/reference_samples.txt\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"the file containing the stopwords must be located at src/main/resources/stopwords/stopwords_users.txt\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"Output parameters\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"nodeScopeDirectoryPath/output/pat_context.json\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"nodeScopeDirectoryPath/output/med_context.json\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"nodeScopeDirectoryPath/output/frequency.json\"\n\t\t\t\t+ \"\\n\"\n\t\t\t\t);\n\t}",
"public void printTree() {\n printTreeHelper(root);\n }",
"public void showInfo()\n\t{\n\t\tSystem.out.println(\"Account Number : \"+getAccountNumber());\n\t\tSystem.out.println(\"Balance : \"+getBalance());\n\t\tSystem.out.println(\"Tenure Year : \"+tenureYear);\n\t}",
"public void print() {\n\t\t\n\t\tfor(Solution sol : population) {\n\t\t\tSystem.out.println(sol.getPossibleSolution() + \" \" + sol.getPath());\n\t\t}\n\t}",
"public void getInfo(){\n System.out.println(\"Name: \" + name + \"\\n\" + \"Address: \" + address);\n }",
"private void printInfo() {\n for (Coordinate c1 : originCells) {\n System.out.println(\"Origin: \" + c1.toString());\n }\n for (Coordinate c2 : destCells) {\n System.out.println(\"destination: \" + c2.toString());\n }\n for (Coordinate c3 : waypointCells) {\n System.out.println(\"way point: \" + c3.toString());\n }\n }",
"public String printToXml()\n {\n XMLOutputter outputter = new XMLOutputter();\n outputter.setFormat(org.jdom.output.Format.getPrettyFormat());\n return outputter.outputString(this.toXml());\n }",
"public String print()\n\t{\n\t\tString s = \"\";\n\t\t\n\t\ts = \"<explanation text=\\\"\" + text + \"\\\">\";\n\t\ts = s + commentContainer.printComments();\n\t\tif (expression != null)\n\t\t{\n\t\t\ts = s + expression.print(); \n\t\t}\n\t\ts = s + \"</explanation>\";\n\t\t\n\t\treturn s;\n\t}",
"public void printExitDiscrepancies() {\n// violations.stream()\n// .filter((ValidationError t) -> t.getType() == ValidationError.ViolationType.SYSTEM)\n// .forEach(e -> {\n// System.out.println(e.getEmployee());\n// });\n printEmployeesForViolationType(ValidationError.ViolationType.SYSTEM);\n }",
"void examine() {\n\t\t\tif (!isItEmpty()){\n\t\t\t\tprintItemDescriptions();\n\t\t\t\tSystem.out.println(\"\\nWhat's in \" + this.locationName + \": \");\n\t\t\t\texamineItems(); //calls the examine items method.\n\t\t\t\texamineContainers(); //calls the examine containers method.\n\t\t\t\tSystem.out.println(\"\");}\n\t\t}",
"public void printInfo(){\n System.out.println(\" this is my y \"+(y+1)+\" this is my x \"+ X.valueOfInt(x));\n System.out.println(\"i am full: \"+ isFull);\n }",
"void printInfo() {\n\t\tdouble salary=120000;\n\t System.out.println(salary);\n\t\tSystem.out.println(name+\" \"+age);\n\t}",
"public void printResults() {\r\n\t\tif (net.isFlow()) {\r\n\t\t\tSystem.out.println(\"The assignment is a valid flow\");\r\n\t\t\tSystem.out.println(\"A maximum flow has value: \"+net.getValue());\r\n\t\t\tSystem.out.println(\"The flows along the edges are as follows:\");\r\n\t\t\tnet.printFlow();\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"The assignment is not a valid flow\");\r\n\t}",
"public void print () {\r\n System.out.println(\"Place \"+name+\": lat \"+lat+\" lon \"+lon+\r\n \" elevation \"+ele);\r\n }",
"private void debugRenderTextInfos() {\n\t\tdebugRenderEntityTextInfosList(layerNegOneEntities);\n\t\tdebugRenderEntityTextInfosList(layerZeroEntities);\n\t\tdebugRenderEntityTextInfosList(layerOneEntities);\n\t}",
"private void printTree(Tree parse) {\n \t\tparse.pennPrint();\n \t}",
"@Override\n protected void loadXMLDescription() {\n\n }",
"public void PrintMe()\n\t{\n\t\t/**************************************/\n\t\t/* AST NODE TYPE = AST TYPE NAME NODE */\n\t\t/**************************************/\n\t\tSystem.out.format(\"NAME(%s):TYPE(%s)\\n\",name,type);\n\n\t\t/***************************************/\n\t\t/* PRINT Node to AST GRAPHVIZ DOT file */\n\t\t/***************************************/\n\t\tAST_GRAPHVIZ.getInstance().logNode(\n\t\t\tSerialNumber,\n\t\t\tString.format(\"NAME:TYPE\\n%s:%s\",name,type));\n\t}",
"private static void prtln(String s) {\n\t\tif (debug) {\n\t\t\t// System.out.println(\"XmlStringTester: \" + s);\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}",
"void printEditionInformation();",
"public void printInfo() {\n\t\tSystem.out.println(\"User: \" + userName);\n\t\tSystem.out.println(\"Login: \" + loginName);\n\t\tSystem.out.println(\"Host: \" + hostName);\n\t}",
"public void PrintMe(){\r\n\t\t/* AST NODE TYPE = AST SUBSCRIPT VAR */\r\n\t\t/*************************************/\r\n\t\tSystem.out.print(\"AST NODE PAREN EXP\\n\");\r\n \r\n\t\t\r\n\t\t/***************************************/\r\n\t\t/* PRINT Node to AST GRAPHVIZ DOT file */\r\n\t\t/***************************************/\r\n\t\tAST_GRAPHVIZ.getInstance().logNode(\r\n\t\t\tSerialNumber,\r\n\t\t\t\"(exp)\");\r\n\t\tif (e != null) AST_GRAPHVIZ.getInstance().logEdge(SerialNumber,e.SerialNumber);\r\n \r\n }",
"private void print(FromHostResult < CustomerData > result) {\n try {\n System.out.println(\"Host bytes converted : \"\n + result.getBytesProcessed());\n System.out.println(\"Result JAXB instance as XML :\");\n JAXBContext jaxbContext = JAXBContext.newInstance(CustomerData.class);\n Marshaller marshaller = jaxbContext.createMarshaller();\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\n marshaller.marshal(\n new ObjectFactory().createCustomerData(result.getValue()),\n System.out);\n } catch (JAXBException e) {\n throw new RuntimeException(e);\n }\n }",
"public void printToken(){\r\n System.out.println(\"Kind: \" + kind + \" , Lexeme: \" + lexeme);\r\n }",
"public void print() {\n\t\tprint(root);\n\t}",
"public void getInfo() {\n System.out.println(\"INFO Node : \"+address+ \" connected to nodes \");\n for(Node node : getConnectedNodes()){\n System.out.print(\"Node :\"+node.getAddress()+\" with edge : \");\n getEdge(this, node).printEdge();\n }\n \n }",
"public void openXml() throws ParserConfigurationException, TransformerConfigurationException, SAXException {\n\n SAXTransformerFactory saxTransformerFactory = (SAXTransformerFactory) SAXTransformerFactory.newInstance();\n transformer = saxTransformerFactory.newTransformerHandler();\n\n // pretty XML output\n Transformer serializer = transformer.getTransformer();\n serializer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n serializer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setResult(result);\n transformer.startDocument();\n transformer.startElement(null, null, \"inserts\", null);\n }",
"private void getParserTreeErrorMessage(HttpServletRequest request, HttpServletResponse response) throws IOException {\n response.getWriter().write(XMLTree.getParserErrorMessage());\n }",
"public void showInfo() {\n\t\tsuper.showInfo();\n\t\tSystem.out.println(\n\t\t\t\t\" Your Savings Account Features: \" +\n\t\t\t\t\"\\n debitCardNumber: \" + debitCardNumber + \n\t\t\t\t\"\\n debitCardPIN: \" + debitCardPIN);\n\t}",
"public void showLoadXML(Properties p);",
"public abstract void printClassifier();",
"public void dump(StringBuffer str, String indent){\n\t\tString s;\n\t\tObject o;\n\t\torg.netbeans.modules.schema2beans.BaseBean n;\n\t\tstr.append(indent);\n\t\tstr.append(\"Filter[\"+this.sizeFilter()+\"]\");\t// NOI18N\n\t\tfor(int i=0; i<this.sizeFilter(); i++)\n\t\t{\n\t\t\tstr.append(indent+\"\\t\");\n\t\t\tstr.append(\"#\"+i+\":\");\n\t\t\tstr.append(indent+\"\\t\");\t// NOI18N\n\t\t\tstr.append(\"<\");\t// NOI18N\n\t\t\to = this.getFilter(i);\n\t\t\tstr.append((o==null?\"null\":o.toString().trim()));\t// NOI18N\n\t\t\tstr.append(\">\\n\");\t// NOI18N\n\t\t\tthis.dumpAttributes(FILTER, i, str, indent);\n\t\t}\n\n\t\tstr.append(indent);\n\t\tstr.append(\"Filter2[\"+this.sizeFilter2()+\"]\");\t// NOI18N\n\t\tfor(int i=0; i<this.sizeFilter2(); i++)\n\t\t{\n\t\t\tstr.append(indent+\"\\t\");\n\t\t\tstr.append(\"#\"+i+\":\");\n\t\t\tstr.append(indent+\"\\t\");\t// NOI18N\n\t\t\tstr.append(\"<\");\t// NOI18N\n\t\t\to = this.getFilter2(i);\n\t\t\tstr.append((o==null?\"null\":o.toString().trim()));\t// NOI18N\n\t\t\tstr.append(\">\\n\");\t// NOI18N\n\t\t\tthis.dumpAttributes(FILTER2, i, str, indent);\n\t\t}\n\n\t\tstr.append(indent);\n\t\tstr.append(\"Filter3[\"+this.sizeFilter3()+\"]\");\t// NOI18N\n\t\tfor(int i=0; i<this.sizeFilter3(); i++)\n\t\t{\n\t\t\tstr.append(indent+\"\\t\");\n\t\t\tstr.append(\"#\"+i+\":\");\n\t\t\tstr.append(indent+\"\\t\");\t// NOI18N\n\t\t\tstr.append(\"<\");\t// NOI18N\n\t\t\to = this.getFilter3(i);\n\t\t\tstr.append((o==null?\"null\":o.toString().trim()));\t// NOI18N\n\t\t\tstr.append(\">\\n\");\t// NOI18N\n\t\t\tthis.dumpAttributes(FILTER3, i, str, indent);\n\t\t}\n\n\t}",
"String diagnosticsOutput();",
"void getInfo() {\n \tSystem.out.println(\"There doesn't seem to be anything here.\");\n }"
] | [
"0.67119074",
"0.63133395",
"0.6156756",
"0.59415025",
"0.59415025",
"0.58661044",
"0.5858023",
"0.58244276",
"0.5823957",
"0.5708972",
"0.57088464",
"0.570763",
"0.5679847",
"0.56365377",
"0.56230974",
"0.5612651",
"0.5552969",
"0.54650265",
"0.5452831",
"0.54471815",
"0.5443606",
"0.5437352",
"0.54297745",
"0.54247683",
"0.54170656",
"0.54140776",
"0.5409107",
"0.54042983",
"0.539012",
"0.53876895",
"0.53873837",
"0.5386382",
"0.5384301",
"0.5368395",
"0.53683",
"0.53678936",
"0.5366665",
"0.53595304",
"0.53581905",
"0.53442174",
"0.5343296",
"0.53304374",
"0.53295684",
"0.5325554",
"0.53239626",
"0.5320196",
"0.5315973",
"0.53156644",
"0.53074473",
"0.52898407",
"0.5273249",
"0.52728605",
"0.5271512",
"0.52679396",
"0.5261479",
"0.52546495",
"0.5253626",
"0.5248686",
"0.52416104",
"0.5240967",
"0.5229534",
"0.5217763",
"0.52167714",
"0.5208475",
"0.52070004",
"0.5192407",
"0.51792616",
"0.5176306",
"0.5170755",
"0.51652193",
"0.51569676",
"0.51534134",
"0.51507545",
"0.5140692",
"0.51376307",
"0.5136795",
"0.5132639",
"0.5130006",
"0.5127863",
"0.5125319",
"0.5123447",
"0.5119384",
"0.5119133",
"0.5118181",
"0.5114695",
"0.5107905",
"0.51076055",
"0.50955135",
"0.50932187",
"0.5092468",
"0.5087487",
"0.50867033",
"0.5085644",
"0.5084262",
"0.50836986",
"0.50780976",
"0.5077421",
"0.50739187",
"0.5064704",
"0.505756"
] | 0.61658007 | 2 |
Method used for order data at the end of pitch computation | public static LinkedHashMap<String, Integer> getOrderedResult(TreeMap<String, Integer> inputMap, Boolean debug, Rappresentation typeOrder)
{
Boolean mergeNote = false;
Boolean getIndex = false;
LinkedHashMap<String, Integer> outputMap = new LinkedHashMap<>();
ArrayList<String> anglosaxonClassOrder = new ArrayList<>(Arrays.asList("C","C#","Db","D","D#","Eb","E","F","F#","Gb","G","G#","Ab","A","A#","Bb","B"));
ArrayList<String> diatonicNoteOrder = new ArrayList<>(Arrays.asList("Do","Do#","Reb","Re","Re#","Mib","Mi","Fa","Fa#","Solb","Sol","Sol#","Lab","La","La#","Sib","Si"));
ArrayList<String> pitchClassOrder = new ArrayList<>(Arrays.asList("C","C#/Db","D","D#/Eb","E","F","F#/Gb","G","G#/Ab","A","A#/Bb","B"));
ArrayList<String> listToOrder = new ArrayList<>();
if(typeOrder.name().equals("ANGLOSASSONE"))
{
//System.out.println("Inside IF ANGLOSASSONE");
listToOrder = anglosaxonClassOrder;
mergeNote = true;
}
else if(typeOrder.name().equals("DIATONICA"))
{
//System.out.println("Inside IF DIATONICA");
listToOrder = diatonicNoteOrder;
}
else if(typeOrder.name().equals("PITCH_CLASS"))
{
//System.out.println("Inside IF PITCH_CLASS");
listToOrder = anglosaxonClassOrder;
getIndex = true;
}
for(int k=0; k<listToOrder.size(); k++)
{
String keyMap = "";
if(inputMap.containsKey(listToOrder.get(k)))
{
if(mergeNote)
{
if(listToOrder.get(k).equals("C#") || listToOrder.get(k).equals("Db"))
keyMap = "C#/Db";
else if(listToOrder.get(k).equals("D#") || listToOrder.get(k).equals("Eb"))
keyMap = "D#/Eb";
else if(listToOrder.get(k).equals("F#") || listToOrder.get(k).equals("Gb"))
keyMap = "F#/Gb";
else if(listToOrder.get(k).equals("G#") || listToOrder.get(k).equals("Ab"))
keyMap = "G#/Ab";
else if(listToOrder.get(k).equals("A#") || listToOrder.get(k).equals("Bb"))
keyMap = "A#/Bb";
else
keyMap = listToOrder.get(k);
}
else
{
if(!getIndex)
keyMap = listToOrder.get(k);
else
{
String tmpIndex = "";
if(listToOrder.get(k).equals("C#") || listToOrder.get(k).equals("Db"))
{
tmpIndex = "C#/Db";
keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));
System.out.println("tmpIndex: " + tmpIndex + " keyMap: " + keyMap);
}
else if(listToOrder.get(k).equals("D#") || listToOrder.get(k).equals("Eb"))
{
tmpIndex = "D#/Eb";
keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));
System.out.println("tmpIndex: " + tmpIndex + " keyMap: " + keyMap);
}
else if(listToOrder.get(k).equals("F#") || listToOrder.get(k).equals("Gb"))
{
tmpIndex = "F#/Gb";
keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));
System.out.println("tmpIndex: " + tmpIndex + " keyMap: " + keyMap);
}
else if(listToOrder.get(k).equals("G#") || listToOrder.get(k).equals("Ab"))
{
tmpIndex = "G#/Ab";
keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));
System.out.println("tmpIndex: " + tmpIndex + " keyMap: " + keyMap);
}
else if(listToOrder.get(k).equals("A#") || listToOrder.get(k).equals("Bb"))
{
tmpIndex = "A#/Bb";
keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));
System.out.println("tmpIndex: " + tmpIndex + " keyMap: " + keyMap);
}
else
{
tmpIndex = listToOrder.get(k);
keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));
System.out.println("k: " + k + " tmpIndex: " + tmpIndex + " keyMap: " + keyMap);
}
}
}
outputMap.put(keyMap, inputMap.get(listToOrder.get(k)));
}
}
if(debug)
{
System.out.println("getOrderResult keySet " + outputMap.keySet());
System.out.println("getOrderResult values " + outputMap.values());
}
if(!outputMap.isEmpty())
return outputMap;
else
{
outputMap.put("Empty", -1);
}
return outputMap;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Float> calculatePitches(){\n\t\tList<Integer> res = new ArrayList<Integer>();\n\t\tint size = data.size();\n\t\tint maxAmp = 0;\n\t\tint startPos = 0;\n\t\t// get the first pitch in the basic period\n\t\tfor (int i = 0; i < BASE_FRAGMENT; i ++){\n\t\t\tif (maxAmp < data.get(i)){\n\t\t\t\tmaxAmp = data.get(i);\n\t\t\t\t// set this position as the start position\n\t\t\t\tstartPos = i;\n\t\t\t}\n\t\t}\n\t\tLog.v(\"startPos\", String.valueOf(startPos));\n\t\t// find every pitch in all the fragments\n\t\tint pos = startPos + OFFSET; // set current position\n\t\tint posAmpMax;\n\t\twhile(startPos < 1000){\n\t\t\tif(data.get(pos) > 0) { // only read the positive data\n\n\t\t\t\tposAmpMax = 0;\n\t\t\t\tmaxAmp = 0;\n\t\t\t\t// access to all the data in this fragment\n\t\t\t\twhile (pos < startPos + BASE_FRAGMENT) {\n\t\t\t\t\t// find the pitch and mark this position\n\t\t\t\t\tif (maxAmp < data.get(pos)) {\n\t\t\t\t\t\tmaxAmp = data.get(pos);\n\t\t\t\t\t\tposAmpMax = pos;\n\t\t\t\t\t}\n\t\t\t\t\tpos++;\n\t\t\t\t}\n\t\t\t\t// add pitch position into the list\n\t\t\t\tpitchPositions.add(posAmpMax);\n\t\t\t\tres.add(posAmpMax);\n\t\t\t\t// update the start position and the current position\n\t\t\t\tstartPos = posAmpMax;\n\t\t\t\tpos = startPos + OFFSET;\n\t\t\t}else{\n\t\t\t\tpos ++;\n\t\t\t}\n\t\t}\n\n\t\t// calculate all periods and add them into list\n\t\tfor(int i = 0; i < pitchPositions.size() - 1; i++){\n\t\t\tfloat period = (float)(pitchPositions.get(i+1) - pitchPositions.get(i));\n\t\t\tT.add(period);\n\t\t\tpitches.add(PeriodToPitch(period));\n\t\t}\n\t\tpitchPositions.clear();\n\t\treturn pitches;\n\t}",
"double getPitch();",
"@Override\n public void gyroPitch(int value, int timestamp) {\n }",
"public int getModelOutputChartOrder();",
"private void analyzePitch(java.util.List<Double> samples) {\n \r\n if(samples.isEmpty()) return;\r\n if(samples.size()<=SAMPLE_RATE*MIN_SAMPLE_LENGTH_MS/1000) {\r\n //System.err.println(\"samples too short: \"+samples.size());\r\n return;\r\n }\r\n final Sound pitchSound=Sound.Sound_createSimple(\r\n 1, (double)samples.size() / SAMPLE_RATE, SAMPLE_RATE);\r\n for(int i=1; i < pitchSound.z[1].length; i++) {\r\n pitchSound.z[1][i]=samples.get(i - 1);\r\n }\r\n \r\n final SoundEditor editor=SoundEditor.SoundEditor_create(\"\", pitchSound);\r\n editor.pitch.floor=settings.floor;\r\n editor.pitch.ceiling=settings.ceiling;\r\n //editor.pitch.veryAccurate=1;\r\n \r\n if(DEBUG) System.err.print(\"analyzing \"+samples.size()+\" samples(\"\r\n +editor.pitch.floor+\"-\"+editor.pitch.ceiling+\")...\");\r\n final long start=System.nanoTime();\r\n try {\r\n editor.computePitch();\r\n } catch(Exception e) {\r\n e.printStackTrace();\r\n return;\r\n }\r\n if(DEBUG) System.err.println(\"complete in \"+(System.nanoTime()-start)/1000000.0+\"ms.\");\r\n \r\n \r\n //[ compute average pitch\r\n final java.util.List<Double> pitches=editor.getPitchesInFrequency();\r\n \r\n// diagram.clearData();\r\n// for(double s: pitches) {\r\n// diagram.addData((float)s); \r\n// }\r\n// diagram.setMaximum(500);\r\n// diagram.repaint();\r\n// \r\n double freqSum=0;\r\n int pitchCount=0;\r\n for(double p : pitches) {\r\n if(Double.isNaN(p) || p<=0) continue;\r\n freqSum+=p;\r\n pitchCount++;\r\n }\r\n final double averageFreq=freqSum/pitchCount; \r\n if(Double.isNaN(averageFreq)) {\r\n if(DEBUG) System.err.println(\"can't recognize.\");\r\n return;\r\n }\r\n//System.err.println(averageFreq); \r\n \r\n //[ compute length\r\n final double lengthMs=samples.size()*1000.0/SAMPLE_RATE;\r\n \r\n SwingUtilities.invokeLater(new Runnable() { //>>> not good\r\n public void run() {\r\n for(PitchListener lis: freqListener) {\r\n lis.gotPitch(averageFreq, lengthMs); //notify listeners\r\n }\r\n }\r\n });\r\n \r\n//System.err.println(\"add \"+ DumpReceiver.getKeyName((int) averagePitch));\r\n }",
"float getPitch();",
"float getPitch();",
"public double[] sort(double[] data) {\r\n for (int pass = 1; pass < data.length; pass++) {\r\n for (int element=0;element<data.length-1;element++) {\r\n if (data[element] > data[element + 1]){\r\n double hold = data[element];\r\n this.countOp();\r\n data[element] = data[element + 1];\r\n this.countOp();\r\n data[element + 1] = hold;\r\n this.countOp();\r\n }\r\n }\r\n }\r\n return data;\r\n }",
"@Override\n default void appendPitchRotation(double pitch)\n {\n AxisAngleTools.appendPitchRotation(this, pitch, this);\n }",
"private void updateOrder() {\n Arrays.sort(positions);\n }",
"private void fftAction() {\n float[] dataTemp = new float[outputDate.length];\n //此处添加dataTemp复制data数组中值,防止在排序后data数组值混乱,导致fft操作后重绘时域波形,发生错误。\n System.arraycopy(data, 0, dataTemp, 0, dataTemp.length);\n// outputDate = fft.i2Sort(dataTemp, (int) (Math.log(dataTemp.length) / Math.log(2)));\n outputDate = FFT.myFFT(dataTemp, (int) (Math.log(dataTemp.length) / Math.log(2)));\n }",
"public float getPitch() {\n return pitch_;\n }",
"public float getPitch() {\n return pitch_;\n }",
"public float getPitch() {\n\treturn pitch;\n }",
"public float getPitch() {\n return pitch;\n }",
"@Override\r\n\tpublic double getPitchRightHand() {\n\t\treturn rechtPitch;\r\n\t}",
"void actOut(PetriP[] pp) {\n if (buffer < 0) return;\n\n for (int j = 0; j < outP.size(); j++) {\n pp[outP.get(j)].increaseMark(quantOut.get(j));\n }\n if (num == 0 && (timeOut.size() == 1)) {\n timeOut.set(0, Double.MAX_VALUE);\n } else {\n timeOut.remove(num);\n }\n\n buffer--;\n if (observedMin > buffer) {\n observedMin = buffer;\n }\n }",
"public void reorderData(Double[] times) {\n _reordered = false;\n\t\tDouble[] longitudes;\n\t\ttry {\n\t\t\tlongitudes = getSampleLongitudes();\n\t\t} catch ( Exception ex ) {\n\t\t\tlongitudes = null;\n\t\t}\n\t\tDouble[] latitudes;\n\t\ttry {\n\t\t\tlatitudes = getSampleLatitudes();\n\t\t} catch ( Exception ex ) {\n\t\t\tlatitudes = null;\n\t\t}\n\t\tDouble[] depths;\n\t\ttry {\n\t\t\tdepths = getSampleDepths();\n\t\t} catch ( Exception ex ) {\n\t\t\tdepths = null;\n\t\t}\n\t\t\n\t\tTreeSet<DataLocation> orderedSet = new TreeSet<DataLocation>();\n\t\tfor (int rowIdx = 0; rowIdx < numSamples; rowIdx++) {\n\t\t\tDataLocation dataLoc = new DataLocation();\n\t\t\t// Assign the row index instead of the number\n\t\t\tdataLoc.setRowIndex(rowIdx);\n\t\t\tif ( longitudes != null )\n\t\t\t\tdataLoc.setLongitude(longitudes[rowIdx]);\n\t\t\tif ( latitudes != null )\n\t\t\t\tdataLoc.setLatitude(latitudes[rowIdx]);\n\t\t\tif ( depths != null )\n\t\t\t\tdataLoc.setDepth(depths[rowIdx]);\n\t\t\tif ( times != null ) {\n\t\t\t\tDouble timeValSecs = times[rowIdx];\n\t\t\t\tif ( timeValSecs != null )\n\t\t\t\t\tdataLoc.setDataDate( new Date(Math.round(timeValSecs * 1000.0)) );\n\t\t\t}\n\t\t\t// Leave dataValue as the missing value and add to the ordered set\n\t\t\tif ( ! orderedSet.add(dataLoc) )\n\t\t\t\tthrow new RuntimeException(\"Unexpected duplicate data location with row number\");\n\t\t}\n\n\t\t// Reorder the rows according to the ordering in orderedSet\n\t\t// Just assign the new order of the object arrays; no need to duplicate the objects themselves\n\t\tObject[][] orderedRows = new Object[numSamples][];\n\t\tint rowIdx = 0;\n boolean actuallyReordered = false;\n\t\tfor ( DataLocation dataLoc : orderedSet ) {\n\t\t\t// getRowNumber returns the row index assigned above\n\t\t\torderedRows[rowIdx] = stdObjects[dataLoc.getRowIndex()];\n if ( rowIdx != dataLoc.getRowIndex()) {\n actuallyReordered = true;\n }\n\t\t\trowIdx++;\n\t\t}\n if ( actuallyReordered ) {\n logger.info(\"dataset \" + this.getDatasetName() + \" was reordered by time.\");\n }\n\t\t// Update the array of array of objects to the new ordering\n\t\tstdObjects = orderedRows;\n // force refetch of sample times\n _sampleTimes = null;\n _reordered = true;\n\t}",
"void order() {\n for (int i = 0; i < numVertices; i++) {\n if (simp[i][numParams] < simp[best][numParams]) {\n best = i;\n }\n if (simp[i][numParams] > simp[worst][numParams]) {\n worst = i;\n }\n }\n nextWorst = best;\n for (int i = 0; i < numVertices; i++) {\n if (i != worst) {\n if (simp[i][numParams] > simp[nextWorst][numParams]) {\n nextWorst = i;\n }\n }\n }\n }",
"public void searchPitchPositions() {\n\n\t\tfor(float pitch : pitches)\n\t\t\tperiods.add((int) hzToPeriod(pitch));\n\n\t\tint periodMaxPitch;\n\t\tint periodMaxPitchIndex = 0;\n\t\tint periodBeginning = 0;\n\n\t\t//search each periods maxima\n\t\tfor ( int period = 0; period < periods.size() - 1; period++ ) {\n\t\t\tperiodMaxPitch = 0;\n\n\t\t\t//search a maximum\n\t\t\tfor ( int i = periodBeginning; i < periodBeginning + periods.get( period ); i++ ) {\n\t\t\t\tif(i < data.size()){\n\t\t\t\t\tif ( periodMaxPitch < data.get( i ) ) {\n\t\t\t\t\t\tperiodMaxPitch = data.get( i );\n\t\t\t\t\t\tperiodMaxPitchIndex = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tperiodBeginning += periods.get( period );\n\t\t\tpitchPositions.add( periodMaxPitchIndex );\n\t\t}\n\n\t}",
"@Override\n default void prependPitchRotation(double pitch)\n {\n AxisAngleTools.prependPitchRotation(pitch, this, this);\n }",
"private void changeOrderPhase() {\n for (int i = 0; i < 4; i++)\n System.out.print(playerList[i].getName() + \" ,\");\n Player tmp = playerList[0];\n playerList[0] = playerList[1];\n playerList[1] = playerList[2];\n playerList[2] = playerList[3];\n playerList[3] = tmp;\n System.out.println();\n for (int i = 0; i < 4; i++)\n System.out.print(playerList[i].getName() + \" ,\");\n System.out.println();\n }",
"public ByteBuf order(ByteOrder endianness)\r\n/* 53: */ {\r\n/* 54: 70 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 55: 71 */ return super.order(endianness);\r\n/* 56: */ }",
"@Override\n public void periodic() {\n odometry.update(ahrs.getRotation2d(), getEncoderMeters(leftEncoder), getEncoderMeters(rightEncoder));\n }",
"private void setup() {\n Collections.sort(samples);\n this.pos = 0;\n }",
"@Override\n\tpublic int getOrder() {\n\t\treturn Ordered.HIGHEST_PRECEDENCE + 10000;\n\t}",
"@Override\n \tpublic void sort() {\n \t\tArrays.sort(data);\n \t}",
"public String getPitchAsString(){ return Integer.toString(this.pitch);}",
"public void getNextRawSamples( double[] rawBuffer );",
"@Override\n public double getPitch()\n {\n Vector3d modelIntersect = getModelIntersection();\n if (modelIntersect == null)\n {\n return 0;\n }\n modelIntersect = modelIntersect.getNormalized();\n Vector3d projectedIntersect = Plane.unitProjection(myPosition.getDir().multiply(-1), modelIntersect).getNormalized();\n // Now calculate angle between vectors (and keep sign)\n Vector3d orthogonal = myPosition.getRight().multiply(-1);\n Vector3d cross = modelIntersect.cross(projectedIntersect);\n double dot = modelIntersect.dot(projectedIntersect);\n double resultAngle = Math.atan2(orthogonal.dot(cross), dot);\n double ninetyDegrees = Math.toRadians(90);\n return Math.signum(resultAngle) < 0 ? -1 * (ninetyDegrees - Math.abs(resultAngle)) : ninetyDegrees - resultAngle;\n }",
"@Override\n public void runEffect(double[] fft) {\n\n\n for(int i = fft.length - 1; i - pitchMove >= 0; i--)\n {\n fft[i] = fft[i - pitchMove];\n }\n for(int i = 0; i < pitchMove; i++)\n fft[i] = fft[i]*0.5;\n// for(int i = 0, k = 0; i < fft.length; i+=2)\n// {\n// if(i < fft.length/2) {\n// fft2[fft.length / 2 + k - 1] = (fft[fft.length / 2 + i] + fft[fft.length / 2 + i]) / 2;\n// fft2[fft.length / 2 - k - 1] = (fft[fft.length / 2 - i] + fft[fft.length / 2 - i]) / 2;\n// }\n// //fft2[k] = 0;\n// //fft2[fft2.length - k -1] = 0;\n// k++;\n// }\n /*for(int i = 0; i < fft.length; i++)\n {\n fft[i] = Math.abs(fft[i]);\n if(fft[i] < 2){\n fft[i] = 0;\n }\n //Log.d(\"Log\", fft[i] + \" \");\n }*/\n }",
"@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\n\t}",
"protected boolean handleOutput(ByteBuffer buffer, int offset, int size, long presentationTimeUs) {\n/* 108 */ if (this.mAudioOutTempBuf.length < size) {\n/* 109 */ this.mAudioOutTempBuf = new byte[size];\n/* */ }\n/* 111 */ buffer.position(offset);\n/* 112 */ buffer.get(this.mAudioOutTempBuf, 0, size);\n/* 113 */ buffer.clear();\n/* 114 */ if (this.mAudioTrack != null)\n/* 115 */ this.mAudioTrack.write(this.mAudioOutTempBuf, 0, size); \n/* 116 */ return true;\n/* */ }",
"public float getPitch() {\n return pitch_;\n }",
"public float getPitch() {\n return pitch_;\n }",
"private void adjustPitch(double tick) {\n\t\tif(pitch < targetPitch) {\n\t\t\taddPitch((float)tick * deltaPitch);\n\t\t\tif(pitch >= targetPitch)\n\t\t\t\tsetPitch(targetPitch);\n\t\t} else if(pitch > targetPitch) {\n\t\t\taddPitch((float)tick * deltaPitch);\n\t\t\tif(pitch <= targetPitch)\n\t\t\t\tsetPitch(targetPitch);\n\t\t}\n\t}",
"public synchronized void addData(Object[] data) throws IOException {\n\t\tif (! stopped){\n\t\t\tsampleCount.add(incr);\n\t\t\tString sampleCountString = sampleCount.toString();\n\t\t\trealWriter.write(sampleCountString + \";\" + ((Integer)data[0]).toString() + \"\\n\");\n\n//\t\t\tdos.writeChars(sampleCountString);\n//\t\t\tdos.writeChar(';' );\n//\t\t\tdos.writeChars((((Integer)data[0]).toString()));\n//\t\t\tdos.writeChar('\\n' );\n\t\t}\n\t}",
"@Override\n\tpublic void handlePitch(PitchDetectionResult pitchDetectionResult, AudioEvent audioEvent) {\n\t\tif(pitchDetectionResult.getPitch() != -1){\n\t\t\tdouble timeStamp = audioEvent.getTimeStamp();\n\t\t\tfloat pitch = pitchDetectionResult.getPitch();\n\t\t\tpitch *= 2; // Because of bit of file\n\t\t\tfloat probability = pitchDetectionResult.getProbability();\n\t\t\tdouble rms = audioEvent.getRMS() * 100;\n\t\t\tint pMinute = (int) (timeStamp/60);\n\t\t\tint pSecond = (int) (timeStamp%60);\n\t\t\tint intvNum = -1;\n\t\t\tString tInterval = new String();\n \n\t\t\tif(pitch >= 127.142 && pitch < 134.702) {\n\t\t\t\ttInterval = \"C3\";\n\t\t\t\tintvNum = 1;\n\t\t\t}\n\t\t\telse if(pitch >= 134.702 && pitch < 142.712) {\n\t\t\t\ttInterval = \"C3#\";\n\t\t\t\tintvNum = 2;\n\t\t\t}\n\t\t\telse if(pitch >= 142.712 && pitch < 151.198) {\n\t\t\t\ttInterval = \"D3\";\n\t\t\t\tintvNum=3;\n\t\t\t}\n\t\t\telse if(pitch >= 151.198 && pitch < 160.189) {\n\t\t\t\ttInterval = \"D3#\";\n\t\t\t\tintvNum=4;\n\t\t\t}\n\t\t\telse if(pitch >= 160.189 && pitch < 169.714) {\n\t\t\t\ttInterval = \"E3\";\n\t\t\t\tintvNum=5;\n\t\t\t}\n\t\t\telse if(pitch >= 169.714 && pitch < 179.806) {\n\t\t\t\ttInterval = \"F3\";\n\t\t\t\tintvNum=6;\n\t\t\t}\n\t\t\telse if(pitch >= 179.806 && pitch < 190.497) {\n\t\t\t\ttInterval = \"F3#\";\n\t\t\t\tintvNum=7;\n\t\t\t}\n\t\t\telse if(pitch >= 190.497 && pitch < 201.825) {\n\t\t\t\ttInterval = \"G3\";\n\t\t\t\tintvNum=8;\n\t\t\t}\n\t\t\telse if(pitch >= 201.825 && pitch < 213.826) {\n\t\t\t\ttInterval = \"G3#\";\n\t\t\t\tintvNum=9;\n\t\t\t}\n\t\t\telse if(pitch >= 213.826 && pitch < 226.541) {\n\t\t\t\ttInterval = \"A3\";\n\t\t\t\tintvNum=10;\n\t\t\t}\n\t\t\telse if(pitch >= 226.541 && pitch < 240.012) {\n\t\t\t\ttInterval = \"A3#\";\n\t\t\t\tintvNum=11;\n\t\t\t}\n\t\t\telse if(pitch >= 240.012 && pitch < 254.284) {\n\t\t\t\ttInterval = \"B3\";\n\t\t\t\tintvNum=12;\n\t\t\t}\n\t\t\telse if(pitch >= 254.284 && pitch < 269.404) {\n\t\t\t\ttInterval = \"C4\";\n\t\t\t\tintvNum=13;\n\t\t\t}\n\t\t\telse if(pitch >= 269.404 && pitch < 287.924) {\n\t\t\t\ttInterval = \"C4#\";\n\t\t\t\tintvNum=14;\n\t\t\t}\n\t\t\telse if(pitch >= 287.294 && pitch < 302.396) {\n\t\t\t\ttInterval = \"D4\";\n\t\t\t\tintvNum=15;\n\t\t\t}\n\t\t\telse if(pitch >= 302.396 && pitch < 320.377) {\n\t\t\t\ttInterval = \"D4#\";\n\t\t\t\tintvNum=16;\n\t\t\t}\n\t\t\telse if(pitch >= 320.377 && pitch < 339.428) {\n\t\t\t\ttInterval = \"E4\";\n\t\t\t\tintvNum=17;\n\t\t\t}\n\t\t\telse if(pitch >= 339.428 && pitch < 359.611) {\n\t\t\t\ttInterval = \"F4\";\n\t\t\t\tintvNum=18;\n\t\t\t}\n\t\t\telse if(pitch >= 359.611 && pitch < 380.995) {\n\t\t\t\ttInterval = \"F4#\";\n\t\t\t\tintvNum=19;\n\t\t\t}\n\t\t\telse if(pitch >= 380.995 && pitch < 403.65) {\n\t\t\t\ttInterval = \"G4\";\n\t\t\t\tintvNum=20;\n\t\t\t}\n\t\t\telse if(pitch >= 403.65 && pitch < 427.652) {\n\t\t\t\ttInterval = \"G4#\";\n\t\t\t\tintvNum=21;\n\t\t\t}\n\t\t\telse if(pitch >= 427.652 && pitch < 453.082) {\n\t\t\t\ttInterval = \"A4\";\n\t\t\t\tintvNum=22;\n\t\t\t}\n\t\t\telse if(pitch >= 453.082 && pitch < 480.234) {\n\t\t\t\ttInterval = \"A4#\";\n\t\t\t\tintvNum=23;\n\t\t\t}\n\t\t\telse if(pitch >= 480.234 && pitch < 508.567) {\n\t\t\t\ttInterval = \"B4\";\n\t\t\t\tintvNum=24;\n\t\t\t}\n\t\t\telse if(pitch >= 508.567 && pitch < 538.808) {\n\t\t\t\ttInterval = \"C5\";\n\t\t\t\tintvNum=25;\n\t\t\t}\n\t\t\telse if(pitch >= 538.808 && pitch < 570.847) {\n\t\t\t\ttInterval = \"C5#\";\n\t\t\t\tintvNum=26;\n\t\t\t}\n\t\t\telse if(pitch >= 570.847 && pitch < 604.792) {\n\t\t\t\ttInterval = \"D5\";\n\t\t\t\tintvNum=27;\n\t\t\t}\n\t\t\telse if(pitch >= 604.792 && pitch < 640.755) {\n\t\t\t\ttInterval = \"D5#\";\n\t\t\t\tintvNum=28;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttInterval = \"null\";\n\t\t\t\tintvNum=-1;\n\t\t\t}\n \t\n\t\t\t\n\t\t\t//Converting Ended\n\t\t\tif(pitch < 8000 && probability > 0.85) {\n\t\t\t\tString message = String.format(\"Pitch detected at %d 분 %d초, %.2f: %.2fHz ( %.2f probability, RMS: %.5f ) %s\", \n\t\t\t\t\t\tpMinute, pSecond, timeStamp, pitch,probability,rms,tInterval);\n\t\t\t\t// System.out.println(message);\n\t\t\t\tif(tried == 0) {\n\t\t\t\t\tCalculateScore.startTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.endTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.subInterval1.add(intvNum);\n\t\t\t\t\tCalculateScore.subInterval2.add(intvNum);\n\t\t\t\t\tCalculateScore.realInterval.add(null);\n\t\t\t\t\ttried++;\n\t\t\t\t}\n\t\t\t\telse if(((CalculateScore.subInterval1.get(idx)) - intvNum) == 0 || Math.abs(((CalculateScore.subInterval1.get(idx)) - intvNum)) == 1) {\n\t\t\t\t\tCalculateScore.endTime.set(idx, timeStamp);\n\t\t\t\t\tCalculateScore.subInterval2.set(idx, intvNum);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tCalculateScore.endTime.set(idx, timeStamp);\n\t\t\t\t\tCalculateScore.startTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.endTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.subInterval1.add(intvNum);\n\t\t\t\t\tCalculateScore.subInterval2.add(intvNum);\n\t\t\t\t\tCalculateScore.realInterval.add(null);\n\t\t\t\t\tidx++;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"public void setModelOutputChartOrder(int modelOutputChartOrder);",
"private void compose() {\n \tnumSamples = duration * sampleRate;\n \tsample = new double[numSamples];\n \tgeneratedSnd = new byte[2 * numSamples];\t\t\n\t}",
"public float getPitchAngle() { return PitchAngle; }",
"private void compose() {\n \tnumSamples = duration * sampleRate;\n \tsample = new double[numSamples];\n \tgeneratedSnd = new byte[2 * numSamples];\n\t}",
"@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}",
"public void addPitch(float pitch) {\n\t\tthis.pitch += pitch;\n\t\tAL10.alSourcef(id, AL10.AL_PITCH, this.pitch);\n\t}",
"@Override\n public int getOrder() {\n return 0;\n }",
"public void initEncoderTxData()\n\t{\n\t\tfor(counter_i=0;counter_i<sampleBit;counter_i++)\n\t\t{\n\t\t\thighLevel[counter_i] = (short) (audioAM * (-Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t\tlowLevel[counter_i] = (short) (audioAM * (Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t}\n\t}",
"private void updatePosition() {\n\t\tfor (int i = 0; i < encoders.length; i++) {\n\t\t\tdRot[i] = (encoders[i].get() - lastEncPos[i]) / this.cyclesPerRev;\n\t\t\tdPos[i] = dRot[i] * wheelDiameter * Math.PI;\n\t\t\tlastEncPos[i] = encoders[i].get();\n\t\t}\n\t\t\n\t\tdLinearPos = (dPos[0] + dPos[1]) / 2;\n\t\t\n\t\tposition[2] = Math.toRadians(gyro.getAngle()) + gyroOffset;\n\t\tposition[0] += dLinearPos * Math.sin(position[2]);\n\t\tposition[1] += dLinearPos * Math.cos(position[2]);\n\t}",
"@Override\n public int getOrder() {\n return 4;\n }",
"public double getNextRawSample();",
"public void setPitch(float pitch) {\n\t\talSourcef(musicSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(reverseSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(flangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(wahSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revWahSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(wahFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revWahFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(distortSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revDistortSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(distortFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revDistortFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(wahDistortSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revWahDistortSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(wahDistortFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revWahDistortFlangeSourceIndex, AL_PITCH, pitch);\n\t}",
"public int order()\n {\n return numVertices;\n }",
"private synchronized void update() {\n int numberOfPoints = buffer.get(0).size();\n if (numberOfPoints == 0) return;\n\n for (int i = 0; i < getNumberOfSeries(); i++) {\n final List<Double> bufferSeries = buffer.get(i);\n final List<Double> dataSeries = data.get(i);\n dataSeries.clear();\n dataSeries.addAll(bufferSeries);\n bufferSeries.clear();\n }\n\n //D.info(SineSignalGenerator.this, \"Update triggered, ready: \" + getNumberOfSeries() + \" series, each: \" + data[0].length + \" points\");\n bufferIdx = 0;\n\n // Don't want to create event, just \"ping\" listeners\n setDataReady(true);\n setDataReady(false);\n }",
"public void updateOscilloscopeData() {\n rmsSum = 0;\n boolean overshoot = false;\n int reactorFrequency = getReactorFrequency().intValue();\n int reactorAmplitude = getReactorAmplitude().intValue();\n double reactorPhase = getReactorPhase().doubleValue();\n int controlFrequency = getControlFrequency().intValue();\n int controlAmplitude = getControlAmplitude().intValue();\n double controlPhase = getControlPhase().doubleValue();\n for (int i = 0; i < 40; i++) { \n Double reactorValue = reactorAmplitude * Math.sin(2 * Math.PI * reactorFrequency * ((double) i * 5 / 10000) + reactorPhase);\n Double controlValue = controlAmplitude * Math.sin(2 * Math.PI * controlFrequency * ((double) i * 5 / 10000) + controlPhase);\n if (reactorValue + controlValue > 150) {\n this.outputData.get(0).getData().get(i).setYValue(149);\n overshoot = true;\n } else if (reactorValue + controlValue < -150) {\n this.outputData.get(0).getData().get(i).setYValue(-149);\n overshoot = true;\n } else {\n this.outputData.get(0).getData().get(i).setYValue(reactorValue + controlValue);\n }\n if (this.online == true) {\n this.rmsSum = this.rmsSum + Math.pow(reactorValue + controlValue, 2);\n }\n }\n calculateOutputPower();\n checkForInstability(overshoot);\n }",
"@Override\r\n\tpublic void control() {\r\n // data is aggregated this time step\r\n q.put(qCur);\r\n v.put(vCur);\r\n if (lane.model.settings.getBoolean(\"storeDetectorData\")) {\r\n qHist.add(qCur);\r\n vHist.add(vCur);\r\n tHist.add(lane.model.t);\r\n }\r\n // reset count\r\n qCur = 0;\r\n vCur = 0;\r\n }",
"private void sort() {\n\t\trunPassZero();\n\t\tList<TupleReaderBinary> buffers = new ArrayList<>();\n\t\tList<Tuple> sortStage = new ArrayList<>();\n\t\tassert (readerBucketID == 0);\n\t\tassert (writerBucketID == 0);\n\t\tassert (passNumber == 1);\n\t\tassert (currentGroup == 1);\n\t\toutputBuffer.clear();\n\n\t\t// assign buffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tbuffers.add(null);\n\t\t\tassignBuffer(buffers, i);\n\t\t\tsortStage.add(null);\n\t\t}\n\n\t\tassert (buffers.size() == numInputBuffers);\n\t\tassert (sortStage.size() == numInputBuffers);\n\n\t\t// read from buffers into list of size numInputBuffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t}\n\n\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode\n\t\t\t\t+ \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\twhile (true) {\n\t\t\tif (!findAndReplaceSmallest(buffers, sortStage)) {\n\t\t\t\tprevPrevTotalBuckets = prevTotalBuckets;\n\t\t\t\tprevTotalBuckets = writerBucketID + 1;\n\t\t\t\tflushOutputBuffer();\n\t\t\t\toutputWriter.close();\n\n\t\t\t\t// We are done! Return\n\t\t\t\tif (prevTotalBuckets == 1) {\n\t\t\t\t\tdeleteTempFiles();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\twriterBucketID = 0;\n\t\t\t\treaderBucketID = 0;\n\t\t\t\twriterFlushes = 0;\n\t\t\t\tdeleteTempFiles();\n\t\t\t\tpassNumber++;\n\t\t\t\tcurrentGroup = 1;\n\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tassignBuffer(buffers, i);\n\t\t\t\t\tsortStage.add(null);\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t\t\t}\n\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\n\t}",
"@Override\n\tprotected float getSoundPitch() {\n\t\t// note: unused, managed in playSound()\n\t\treturn 1;\n\t}",
"public int getTestNotePitch()\n {\n return super.getTestNotePitch();\n }",
"public synchronized double getPitch() {\n\t\tif (isConnected) {\n\t\t\treturn gyro.getPitch();\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}",
"@AnyThread\n private void updatePitchMatrix() {\n // The camera's pitch needs to be rotated along an axis that is parallel to the real world's\n // horizon. This is the <1, 0, 0> axis after compensating for the device's roll.\n Matrix.setRotateM(touchPitchMatrix, 0,\n -touchPitch, (float) Math.cos(deviceRoll), (float) Math.sin(deviceRoll), 0);\n }",
"public void getPackByte(DataPacket packet) {\r\n \t\t//TODO this is getting called but not sure why only one time \r\n \t\t// or whether it is stalling in mid-exec??\r\n \t\r\n \t\t//TODO on firstPacket write bytes and start audioTrack\r\n\t\t\t// AMR-nb frames at 12.2 KB or format type 7 frames are handled . \r\n\t\t\t// after the normal header, the getDataArray contains extra 10 bytes of dynamic header that are bypassed by 'limit'\r\n\r\n\t\t\t\r\n\t\t\t// real value for the frame separator comes in the input stream at position 1 in the data array\r\n\t\t\t// returned by \r\n\r\n//\t\t\tint newFrameSep = 0x3c;\r\n\t\t\t// bytes avail = packet.getDataSize() - limit;\r\n\r\n//\t\t\tbyte[] lbuf = new byte[packet.getDataSize()];\r\n//\t\t\tif ( packet.getDataSize() > 0)\r\n//\t\t\t\tlbuf = packet.getDataAsArray();\r\n\t\t\t//first frame includes the 1 byte frame header whose value should be used \r\n\t\t\t// to write subsequent frame separators \r\n \t\tLog.d(TAG, \"getPackByt start and play\");\r\n \t\t\r\n \t\tif(!started){\r\n\t\t\t\tLog.d(TAG, \" PLAY audioTrak\");\r\n\t\t\t\ttrack.play();\r\n\t\t\t\tstarted = true;\r\n \t\t}\r\n\t\t\t\r\n//\t\t\ttrack.write(packet.getDataAsArray(), limit, (packet.getDataSize() - limit));\r\n \t\ttrack.write(packet.getDataAsArray(), 0, packet.getDataSize() );\r\n\t\t\tLog.d(TAG, \"getPackByt aft write\");\r\n\r\n//\t\t\tif(!started && nBytesRead > minBufferSize){\r\n\t//\t\t\tLog.d(TAG, \" PLAY audioTrak\");\r\n\t\t//\t\ttrack.play();\r\n\t\t//\tstarted = true;}\r\n\t\t\tnBytesRead += packet.getDataSize();\t\r\n\t\t\tif (nBytesRead % 500 < 375) Log.d(TAG, \" getPackByte plus 5K received\");\r\n\t\t}",
"int order();",
"@Override\n\tpublic void readPolynomial() {\n\n\t}",
"private Pitch getPitch(int i) {\n return Pitch.values()[i];\n }",
"public void setPitch(int pitch);",
"public final void rot() {\n\t\tif (size > 2) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tdouble thirdTopMostValue = pop();\n\n\t\t\tpush(secondTopMostValue);\n\t\t\tpush(topMostValue);\n\t\t\tpush(thirdTopMostValue);\n\n\t\t}\n\t}",
"public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }",
"@Override\n\tpublic List<PitchMessage> listPitchMessagesInOrder(Set<PitchMessage> receivedPitchMessages,\n\t\t\tSet<PitchMessage> sentPitchMessages) {\n\t\tList<PitchMessage> pmlist = new ArrayList<>();\n\t\tfor(PitchMessage pm : receivedPitchMessages) {\n\t\t\tpmlist.add(pm);\n\t\t}\n\t\tfor(PitchMessage pm : sentPitchMessages) {\n\t\t\tpmlist.add(pm);\n\t\t}\n\t\tCollections.sort(pmlist);\n\t\treturn pmlist;\n\t}",
"void reverseTurnOrder() {\n turnOrder *= -1;\n }",
"public void sortHand(){\n Arrays.sort(Hand);\n }",
"private void four1(double data[], int nn, int isign) {\r\n int n,mmax,m,j,istep,i;\r\n double wtemp,wr,wpr,wpi,wi,theta;\r\n double tempr,tempi;\r\n double swap;\r\n\r\n n=2*nn;\r\n j=1;\r\n for (i=1;i<n;i+=2) {\r\n if (j > i) {\r\n swap=data[j];\r\n data[j]=data[i];\r\n data[i]=swap;\r\n\r\n swap=data[j+1];\r\n data[j+1]=data[i+1];\r\n data[i+1]=swap;\r\n }\r\n m=n >> 1;\r\n while (m >= 2 && j > m) {\r\n j -= m;\r\n m >>= 1;\r\n }\r\n j += m;\r\n }\r\n mmax=2;\r\n while (n > mmax) {\r\n istep=2*mmax;\r\n theta=isign*(6.28318530717959/mmax);\r\n wtemp=Math.sin(0.5*theta);\r\n wpr = -2.0*wtemp*wtemp;\r\n wpi=Math.sin(theta);\r\n wr=1.0;\r\n wi=0.0;\r\n for (m=1;m<mmax;m+=2) {\r\n for (i=m;i<=n;i+=istep) {\r\n j=i+mmax;\r\n tempr=wr*data[j]-wi*data[j+1];\r\n tempi=wr*data[j+1]+wi*data[j];\r\n data[j]=data[i]-tempr;\r\n data[j+1]=data[i+1]-tempi;\r\n data[i] += tempr;\r\n data[i+1] += tempi;\r\n }\r\n wr=(wtemp=wr)*wpr-wi*wpi+wr;\r\n wi=wi*wpr+wtemp*wpi+wi;\r\n }\r\n mmax=istep;\r\n }\r\n }",
"public void incrementOrder() {\n mOrder++;\n }",
"public void copiedMeasureDecoder(Integer chordNote,Integer[]previousChord, Integer[] playedChord){\n /* int c=0;\n int a=0;\n int b=0;\n int x0=0;\n int x1=0;*/\n int d1=0;\n int d2=0;\n\n\n\n for (int i=0;i<melodyNotes.length;i++){\n if(melodyNotes[i]==chordNote)\n d1=i;\n }\n for (int i=0;i<melodyNotes.length;i++){\n if(melodyNotes[i]==melody.get(melodyCounter))\n d2=i;\n /* if(melodyNotes[i]==playedChord[1])\n a=i;\n if(melodyNotes[i]==previousChord[1])\n b=i;*/\n }\n /*if(a<b){\n x0=a-b;\n x1=7+x1;\n }else{\n x0=a-b;\n x1=x0-7;\n }*/\n if(d1>d2) {\n binaryOutput += \"0\";\n }else {\n binaryOutput += \"1\";\n }\n for(int i = 0;i<4;i++){\n for(int j =0; j < rhytm.get(beatCounter).length;j++){\n if(rhytm.get(beatCounter)[j]!=null)\n if ((!rhytm.get(beatCounter)[j].equals(\"Ri\")) && (!rhytm.get(beatCounter)[j].equals(\"Rs\"))) {\n melodyCounter++;\n }\n }\n beatCounter++;\n }\n\n\n}",
"@Override\n\tpublic void postorder() {\n\n\t}",
"void takeAfter(){\n afterTimeNs=System.nanoTime();\n lastdt=afterTimeNs-beforeTimeNs;\n samplesNs[index++]=afterTimeNs-lastAfterTime;\n lastAfterTime=afterTimeNs;\n if(index>=nSamples) index=0;\n }",
"public Comparator<Point> slopeOrder() {\n /* YOUR CODE HERE */\n return new SlopeOrder();\n }",
"private Object readResolve() throws ObjectStreamException {\r\n if (this.equals(DatasetRenderingOrder.FORWARD)) {\r\n return DatasetRenderingOrder.FORWARD;\r\n }\r\n else if (this.equals(DatasetRenderingOrder.REVERSE)) {\r\n return DatasetRenderingOrder.REVERSE;\r\n }\r\n return null;\r\n }",
"public double[] getDesiredHandYawPitchRoll()\n {\n switch (this)\n {\n case STAND_PREP:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case REACH_BACK:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case REACH_WAY_BACK:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case ARMS_03:\n return new double[] {0.0, Math.PI, 0.0};\n case REACH_FORWARD:\n return new double[] {0.0, 0.0, 0.0};\n case SMALL_CHICKEN_WINGS:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case LARGE_CHICKEN_WINGS:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case STRAIGHTEN_ELBOWS:\n return new double[] {0.0, 0.0, 0.0};\n case SUPPINATE_ARMS_IN_A_LITTLE:\n return new double[] {0.0, 0.0, 0.0};\n case ARMS_BACK:\n return new double[] {0.0, 0.0, 0.0};\n case LARGER_CHICKEN_WINGS:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case ARMS_OUT_EXTENDED:\n return new double[] {0.0, 0.0, 0.0};\n case SUPPINATE_ARMS_IN_MORE:\n return new double[] {0.0, 0.0, 0.0};\n case SUPPINATE_ARMS_IN_A_LOT:\n return new double[] {0.0, 0.0, 0.0};\n case SUPER_CHICKEN_WINGS:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case FLYING:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case FLYING_PALMS_UP:\n return new double[] {0.0, 0.0, 0.0};\n case KARATE_KID_KRANE_KICK:\n return new double[] {0.0, 0.0, 0.0};\n case FLEX_UP:\n return new double[] {0.0, 0.0, 0.0};\n case FLEX_DOWN:\n return new double[] {0.0, 0.0, 0.0};\n case FLYING_SUPPINATE_IN:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case FLYING_SUPPINATE_OUT:\n return new double[] {0.0, -Math.PI / 2.0, 0.0};\n case ARM_NINETY_ELBOW_DOWN:\n return new double[] {0.0, 0.0, 0.0};\n case ARM_NINETY_ELBOW_FORWARD:\n return new double[] {0.0, 0.0, 0.0};\n case ARM_NINETY_ELBOW_UP:\n return new double[] {0.0, 0.0, 0.0};\n case ARM_FORTFIVE_ELBOW_UP:\n return new double[] {0.0, 0.0, 0.0};\n case ARM_FORTFIVE_ELBOW_DOWN:\n return new double[] {0.0, 0.0, 0.0};\n case ARM_OUT_TRICEP_EXERCISE:\n return new double[] {0.0, 0.0, 0.0};\n case ARM_STRAIGHT_DOWN:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n\n default:\n return new double[] {0.0, 0.0, 0.0};\n }\n }",
"public void sortChart() {\n\t\tPassengerTrain temp;\n\t\tGoodsTrain temp1;\n\n\t\tfor (int index = 0; index < TrainDetails.passengerList.size(); index++) {\n\t\t\tfor (int i = 0; i < TrainDetails.passengerList.size(); i++) {\n\t\t\t\tdouble totalTime1 = ((TrainDetails.passengerList).get(index).duration);\n\t\t\t\tdouble totalTime2 = (TrainDetails.passengerList.get(i).duration);\n\t\t\t\tif (totalTime1 < totalTime2) {\n\t\t\t\t\ttemp = TrainDetails.passengerList.get(index);\n\t\t\t\t\tTrainDetails.passengerList.set(index,\n\t\t\t\t\t\t\tTrainDetails.passengerList.get(i));\n\t\t\t\t\tTrainDetails.passengerList.set(i, temp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int index = 0; index < TrainDetails.goodsList.size(); index++) {\n\t\t\tfor (int i = 0; i < TrainDetails.goodsList.size(); i++) {\n\t\t\t\tdouble totalTime1 = ((TrainDetails.goodsList).get(index).duration);\n\t\t\t\tdouble totalTime2 = (TrainDetails.goodsList.get(i).duration);\n\t\t\t\tif (totalTime1 < totalTime2) {\n\t\t\t\t\ttemp1 = TrainDetails.goodsList.get(index);\n\t\t\t\t\tTrainDetails.goodsList.set(index,\n\t\t\t\t\t\t\tTrainDetails.goodsList.get(i));\n\t\t\t\t\tTrainDetails.goodsList.set(i, temp1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public void setPitch(float hertz) {\n\tthis.pitch = hertz;\n }",
"@Override\r\n\tpublic double getPitchLeftHand() {\n\t\treturn linkPitch;\r\n\t}",
"private static final void silk_decode_pitch(final short lagIndex, final byte contourIndex, final int pitch_lags[], final int Fs_kHz, final int nb_subfr)\r\n\t{\r\n\t\t//final byte[] Lag_CB_ptr;\r\n\t\tfinal byte[][] Lag_CB_ptr;\r\n\r\n\t\tif( Fs_kHz == 8 ) {\r\n\t\t\tif( nb_subfr == Jpitch_est_defines.PE_MAX_NB_SUBFR ) {\r\n\t\t\t\t// Lag_CB_ptr = Jpitch_est_tables.silk_CB_lags_stage2[ 0 ];//[ 0 ];\r\n\t\t\t\tLag_CB_ptr = Jpitch_est_tables.silk_CB_lags_stage2;\r\n\t\t\t\t// cbk_size = Jpitch_est_defines.PE_NB_CBKS_STAGE2_EXT;\r\n\t\t\t} else {\r\n\t\t\t\t// celt_assert( nb_subfr == Jpitch_est_defines.PE_MAX_NB_SUBFR >> 1 );\r\n\t\t\t\t// Lag_CB_ptr = Jpitch_est_tables.silk_CB_lags_stage2_10_ms[ 0 ];//[ 0 ];\r\n\t\t\t\tLag_CB_ptr = Jpitch_est_tables.silk_CB_lags_stage2_10_ms;\r\n\t\t\t\t// cbk_size = Jpitch_est_defines.PE_NB_CBKS_STAGE2_10MS;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif( nb_subfr == Jpitch_est_defines.PE_MAX_NB_SUBFR ) {\r\n\t\t\t\t// Lag_CB_ptr = Jpitch_est_tables.silk_CB_lags_stage3[ 0 ];//[ 0 ];\r\n\t\t\t\tLag_CB_ptr = Jpitch_est_tables.silk_CB_lags_stage3;\r\n\t\t\t\t// cbk_size = Jpitch_est_defines.PE_NB_CBKS_STAGE3_MAX;\r\n\t\t\t} else {\r\n\t\t\t\t// celt_assert( nb_subfr == Jpitch_est_defines.PE_MAX_NB_SUBFR >> 1 );\r\n\t\t\t\t// Lag_CB_ptr = Jpitch_est_tables.silk_CB_lags_stage3_10_ms[ 0 ];//[ 0 ];\r\n\t\t\t\tLag_CB_ptr = Jpitch_est_tables.silk_CB_lags_stage3_10_ms;\r\n\t\t\t\t// cbk_size = Jpitch_est_defines.PE_NB_CBKS_STAGE3_10MS;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfinal int min_lag = Jpitch_est_defines.PE_MIN_LAG_MS * Fs_kHz;\r\n\t\tfinal int max_lag = Jpitch_est_defines.PE_MAX_LAG_MS * Fs_kHz;\r\n\t\tfinal int lag = min_lag + lagIndex;\r\n\r\n\t\tfor( int k = 0; k < nb_subfr; k++ ) {\r\n\t\t\t// pitch_lags[ k ] = lag + (int)Lag_CB_ptr[k * cbk_size + contourIndex];// FIXME dirty way using 2-dimensional array\r\n\t\t\tint v = lag + (int)Lag_CB_ptr[ k ][ contourIndex ];\r\n\t\t\tv = (v > max_lag ? max_lag : (v < min_lag ? min_lag : v));\r\n\t\t\tpitch_lags[ k ] = v;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic ProcessorOrder getOrder() {\n\t\treturn ProcessorOrder.LOW;\n\t}",
"private float[] initialSpeedData () {\n float[] ret = new float[ this.speedQueue.size() ];\n for ( int i = 0, len = ret.length ; i < len ; i++ )\n ret[ i ] = this.speedQueue.poll();\n return ret;\n }",
"@Override\n public void sort() {\n for (int i = 0; i < size; i++) {\n for (int j = i + 1; j < size; j++) {\n if (((Comparable) data[i]).compareTo(data[j]) > 0) {\n E c = data[i];\n data[i] = data[j];\n data[j] = c;\n\n }\n }\n }\n }",
"public void pitch(float amount)\r\n {\r\n //increment the pitch by the amount param\r\n pitch -= amount;\r\n }",
"public float getSoundPitch() {\n return _soundPitch;\n }",
"private void handleOrders()\r\n {\r\n // only 4 orders can fit on the screen, so don't do anything if there's already 4\r\n if (orders.size() < 4)\r\n {\r\n orderTimer--;\r\n \r\n if (orderTimer <= 0)\r\n {\r\n // create a new order\r\n Order nextOrder = new Order();\r\n orders.add(nextOrder);\r\n \r\n // find the position\r\n int xPos = 170 * orders.size() + 70;\r\n addObject(nextOrder, xPos, 100);\r\n \r\n // reset the order timer to a new value (between base time - variance & base time + variance)\r\n int baseFrameDelay = calcOrderDelay();\r\n int maxDelay = baseFrameDelay + orderVariance;\r\n int minDelay = baseFrameDelay - orderVariance;\r\n orderTimer = Greenfoot.getRandomNumber(maxDelay - minDelay) + minDelay;\r\n }\r\n }\r\n }",
"@Override\n public void mutate(Song song, int noteIndex) {\n if (Math.random() < this.getProbability()) {\n if (noteIndex > 0) {\n MidiUtil mu = new MidiUtil();\n int nbrOfTotalReversing = nbrOfAdditionalReversing + 1\n + ((int) Math.random() * nbrRange);\n ArrayList<Integer> noteIndexes = new ArrayList<Integer>();\n ArrayList<Note> notes = new ArrayList<Note>();\n noteIndexes.add(noteIndex);\n notes.add(song.getScore().getPart(0).getPhrase(0)\n .getNote(noteIndex));\n int currentIndex = noteIndex - 1;\n noteIteration: for (int i = 1; i < nbrOfTotalReversing; i++) {\n while (mu.isBlank(currentIndex) && currentIndex >= 0) {\n currentIndex--;\n }\n if (currentIndex < 0) {\n break noteIteration;\n } else {\n noteIndexes.add(currentIndex);\n notes.add(song.getScore().getPart(0).getPhrase(0)\n .getNote(currentIndex));\n }\n }\n int totalReverses = noteIndexes.size();\n for (int j = 0; j < noteIndexes.size(); j++) {\n if (withRhythmLength) {\n song.getScore()\n .getPart(0)\n .getPhrase(0)\n .setNote(notes.get(totalReverses - 1 - j),\n noteIndexes.get(j));\n } else {\n int newPitch = notes.get(totalReverses - 1 - j)\n .getPitch();\n song.getScore().getPart(0).getPhrase(0)\n .getNote(noteIndexes.get(j)).setPitch(newPitch);\n }\n }\n }\n }\n }",
"@Override\n public void quaternion(int w, int x, int y, int z, int timestamp) {\n }",
"public static native int OpenMM_AmoebaMultipoleForce_getPmeBSplineOrder(PointerByReference target);",
"@Override\n\tpublic String getOrder() {\n\t\treturn \"zjlxdm,asc\";\n\t}",
"private ArrayList<IPlayer> sortPlayerAfterPoints() {\n ArrayList<IPlayer> arrlist = new ArrayList<>();\n\n iPlayerList.entrySet().stream().map((pair) -> (IPlayer) pair.getValue()).forEachOrdered((ip) -> {\n arrlist.add(ip);\n });\n\n Collections.sort(arrlist, (IPlayer p1, IPlayer p2) -> {\n try {\n if (p1.getPoints() == p2.getPoints()) {\n return 0;\n } else if (p1.getPoints() > p2.getPoints()) {\n return -1;\n } else {\n return 1;\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n return 0;\n });\n\n return arrlist;\n }",
"private int inputMap(Identifier id, float data)\n\t{\n\t\tif (id == Axis.RX)\n\t\t{\n\t\t\tif (linearityX == 1)\n\t\t\t{\n\n\t\t\t\tint testValue = (int) (Math.pow(data, 3) * 1000);\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn testValue;\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn (int) (data * 1000);\n\t\t\t}\n\n\t\t} else if (id == Axis.RY)\n\t\t{\n\t\t\t// Right Stick Up and Down\n\t\t\tif (linearityY == 1)\n\t\t\t{\n\t\t\t\tint testValue = (int) (Math.pow(data, 3) * 1000);\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn testValue;\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn (int) (data * 1000);\n\t\t\t}\n\t\t} else if (id == Axis.Z)\n\t\t{\n\t\t\t// Right Stick Up and Down\n\t\t\tif (linearityZ == 1)\n\t\t\t{\n\t\t\t\tint testValue = (int) (Math.pow(data, 3) * 1000);\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn testValue;\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn (int) (data * 1000);\n\t\t\t}\n\t\t} else if (id == Axis.X)\n\t\t{\n\t\t\t// Right Stick Up and Down\n\t\t\tif (linearityX == 1)\n\t\t\t{\n\t\t\t\tint testValue = (int) (Math.pow(data, 3) * 1000);\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn testValue;\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn (int) (data * 1000);\n\t\t\t}\n\t\t} else if (id == Axis.Y)\n\t\t{\n\t\t\t// Right Stick Up and Down\n\t\t\tif (linearityY == 1)\n\t\t\t{\n\t\t\t\tint testValue = (int) (Math.pow(data, 3) * 1000);\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn testValue;\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (Math.abs(data) < zone)\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\treturn (int) (data * 1000);\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"public void sort() {\n\t\tfor (int i = 1; i < this.dataModel.getLength(); i++) {\n\t\t\tfinal int x = this.dataModel.get(i);\n\n\t\t\t// Find location to insert using binary search\n\t\t\tfinal int j = Math.abs(this.dataModel.binarySearch(0, i, x) + 1);\n\n\t\t\t// Shifting array to one location right\n\t\t\tthis.dataModel.arrayCopy(j, j + 1, i - j);\n\n\t\t\t// Placing element at its correct location\n\t\t\tthis.dataModel.set(j, x);\n\t\t\tthis.repaint(this.count++);\n\t\t}\n\t}",
"public void createOscilloscopeData() {\n this.rmsSum = 0;\n int reactorFrequency = getReactorFrequency().intValue();\n int reactorAmplitude = getReactorAmplitude().intValue();\n double reactorPhase = getReactorPhase().doubleValue();\n int controlFrequency = getControlFrequency().intValue();\n int controlAmplitude = getControlAmplitude().intValue();\n double controlPhase = getControlPhase().doubleValue();\n XYChart.Series<Number, Number> dataSeriesOutput = new XYChart.Series<>();\n for (int i = 0; i < 40; i++) {\n createOscilloscopeDatapoint(dataSeriesOutput, reactorFrequency, reactorAmplitude, reactorPhase, \n controlFrequency, controlAmplitude, controlPhase, i);\n }\n dataSeriesOutput.setName(\"Reactor\" + number + \"OutputData\");\n this.outputData.addAll(dataSeriesOutput/*, dataSeriesReactor, dataSeriesControl */);\n \n \n if (this.online == true) {\n this.rms = Math.sqrt(this.rmsSum / 40);\n setOutputPower(100 - (this.rms));\n }\n }",
"private void m18357t() {\n AudioProcessor[] k;\n ArrayList<AudioProcessor> newAudioProcessors = new ArrayList<>();\n for (AudioProcessor audioProcessor : m18348k()) {\n if (audioProcessor.mo25036a()) {\n newAudioProcessors.add(audioProcessor);\n } else {\n audioProcessor.flush();\n }\n }\n int count = newAudioProcessors.size();\n this.f16596P = (AudioProcessor[]) newAudioProcessors.toArray(new AudioProcessor[count]);\n this.f16597Q = new ByteBuffer[count];\n m18347j();\n }",
"@Override\n Tuple getNextTuple() {\n System.out.println(\"Please use dump() on SortOperator to get results.\");\n return null;\n }",
"com.google.protobuf.ByteString getOrderByDataItemBytes();",
"public int getOrder();",
"protected void execute() {\n //pitch.setSpeed(translator.getValue());\n }",
"public String getPitch()\n\t{\n\t\treturn pitch.getText();\n\t}"
] | [
"0.57274467",
"0.5547065",
"0.5525191",
"0.54391026",
"0.5377351",
"0.5368057",
"0.5368057",
"0.5352662",
"0.5338033",
"0.53277606",
"0.52928907",
"0.5276527",
"0.5276527",
"0.5267536",
"0.52502614",
"0.52449054",
"0.5240496",
"0.5229148",
"0.522385",
"0.52192867",
"0.52128345",
"0.52101755",
"0.52089477",
"0.5193981",
"0.5190522",
"0.5168354",
"0.51673394",
"0.516394",
"0.5159879",
"0.5140462",
"0.51076204",
"0.50740993",
"0.50692064",
"0.50537634",
"0.50537634",
"0.5053176",
"0.5037358",
"0.50360274",
"0.5028649",
"0.50237757",
"0.5022944",
"0.50219303",
"0.50166136",
"0.5013826",
"0.49965093",
"0.49699867",
"0.49502057",
"0.4947763",
"0.49461797",
"0.4931305",
"0.4930361",
"0.49195403",
"0.48976648",
"0.48884377",
"0.48862052",
"0.48840052",
"0.4875093",
"0.4871605",
"0.48617202",
"0.48570853",
"0.48524255",
"0.48513758",
"0.48468953",
"0.48465446",
"0.48362944",
"0.48342717",
"0.4813421",
"0.47839153",
"0.47828194",
"0.47650924",
"0.4763866",
"0.47628152",
"0.47624058",
"0.47494176",
"0.47481334",
"0.4747174",
"0.47450423",
"0.4740511",
"0.47380146",
"0.47320044",
"0.47284788",
"0.47189134",
"0.47162735",
"0.4715346",
"0.4712755",
"0.47092688",
"0.47010976",
"0.4698871",
"0.46882236",
"0.46845275",
"0.46832076",
"0.4681711",
"0.4680851",
"0.46806818",
"0.46733558",
"0.46711025",
"0.4660882",
"0.46556953",
"0.4654482",
"0.46533117",
"0.465311"
] | 0.0 | -1 |
Method used for print order data at the end of duration computation | public static void getOrderedDurationResult(LinkedHashMap<String, Integer> inputMap, Boolean debug)
{
if(debug)
{
System.out.println("getOrderResult keySet " + inputMap.keySet());
System.out.println("getOrderResult values " + inputMap.values());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String processOrder() {\n notifyAllObservers();\n\n return getOrderReport();\n }",
"private void printData() {\n\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tlog(\" *** data index \" + i + \" = \" + data.elementAt(i));\n\t\t}\n\t}",
"@SuppressWarnings(\"Duplicates\")\n private double printOrderDetails(@NotNull Order o) {\n printHeader(\"Order #\" + o.getOrderID() + \"\", 60);\n System.out.println(\"Order ID: \" + o.getOrderID());\n System.out.println(\"Order State: \" + ((o.getOrderState() == Order.OrderState.ORDER_PAID) ? \"Paid\" : \"Unpaid\"));\n System.out.println(\"Order Started On: \" + DateTimeFormatHelper.formatMillisToDateTime(o.getCreatedAt()));\n System.out.println(\"Staff Handling Order: \" + ((o.getStaff() == null) ? \"Unknown Staff\" : \"[\" + o.getStaff().getStaffId() + \"] \" + o.getStaff().getStaffName()));\n System.out.println(\"Table Number: \" + ((o.getTable() == null) ? \"Unknown Table\" : o.getTable().getTableNum()));\n System.out.println(\"List of Order Items:\");\n printBreaks(60);\n if (o.getOrderItems().size() == 0) System.out.println(\"No Items in Order\");\n else {\n o.calculateSubtotal(); // Calculate Subtotal\n OrderMenuUI.printOrderItems(o.getOrderItems(), true);\n }\n printBreaks(60);\n // Do final caclulation\n o.calculateSubtotal();\n double tax = 0.07 * o.getSubtotal();\n double total = tax + o.getSubtotal();\n System.out.printf(\"%50s $%-6.2f\\n\", \"Order Subtotal: \", o.getSubtotal());\n System.out.printf(\"%50s $%-6.2f\\n\", \"GST (7%): \", tax);\n printBreaks(60);\n System.out.printf(\"%50s $%-6.2f\\n\", \"Total: \", total);\n printBreaks(60);\n System.out.println(\"\\n\");\n return total;\n }",
"public String doPrint() {\n\t\t// Get the event title.\n\t\tString event = \"\";\n\t\tswitch (eventType) {\n\t\t\tcase \"IND\": event = \"Individual\";\n\t\t\t\t\t\tbreak;\n\t\t\tcase \"GRP\": event = \"Group\";\n\t\t\t\t\t\tbreak;\n\t\t\tcase \"PARIND\": event = \"Parallel Individual\";\n\t\t\t\t\t\t break;\n\t\t\tcase \"PARGRP\": event = \"Parallel Group\";\n\t\t\t\t\t\t break;\n\t\t default:\tevent = \"\";\n\t\t \t\t\tbreak;\n\t\t}\n\t\t\n\t\tString out = \"RUN BIB TIME\t \" + event +\"\\n\";\n\t\t\n\t\t// Print completed runs.\n\t\tfor ( Run run : completedRuns ) {\n\t\t\tout += run.print() + \"\\n\";\n\t\t}\n\t\t\n\t\t// Print inProgress runs.\n\t\tfor ( Run run : finishQueue ) {\n\t\t\tout += run.print() + \"\\n\";\n\t\t}\n\t\t\n\t\t// Print waiting runs.\n\t\tfor ( Run run : startQueue ) {\n\t\t\tout += run.print() + \"\\n\";\n\t\t}\n\t\t\n\t\treturn out;\n\t}",
"@Override\n\tpublic void order() {\n\t\tSystem.out.println(\"고객 판매 주문\");\n\t}",
"public void print(int tabOrder);",
"private static void displayOutput( float t ) {\n\t\tfor (Output o: outputList) {\n\t\t\to.outputMe();\n\t\t}\n\t\tSystem.out.println();\n\n\t\t/*if (Simulator.moreEvents()) {\n\t\t\tSimulator.schedule(\n\t\t\t\tt + 1,\n\t\t\t\t(float time) -> displayOutput( time )\n\t\t\t);\n\t\t}*/\n\t}",
"private void print() {\n\t\t// reorganize a wraparound queue and print\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tSystem.out.print(bq[(head + i) % bq.length] + \" \");\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t}",
"private void printTimer() {\n\t\tif (_verbose) {\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"-- \" + getTimeString() + \" --\");\n\t\t}\n\t}",
"public String printSortedResult() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(printStartNumberAndName() + \"; \");\n\t\tsb.append(printInfo());\n\t\t\n\t\tsb.append(printTotalTime());\n\t\t\n\t\tsb.append(errorHandler.print());\n\t\t\n\t\treturn sb.toString();\n\t}",
"public void finish() {\n printReport();\n printGlobalOpsPerSec();\n }",
"public void printTask() {\r\n\t\tSystem.out.println(\"ID: \" + this.id + \" | Description: \" + this.description + \" | Processor: \" + this.processor);\r\n\t\tSystem.out.println(\"Status: \" + this.status + \" | Fälligkeitsdatum: \" + this.formatedDueDate);\r\n\t\tSystem.out.println(\"----------\");\r\n\t}",
"public void printOrder() {\n int count = 0;\n for(Jumper skier : jumpers) {\n count += 1;\n System.out.println(\" \" + count + \". \" + skier); \n }\n System.out.println(\"\"); \n }",
"private void print() {\n\t\tList<Entry<String, Double>> entries = sort();\n\t\tfor (Entry<String, Double> entry: entries) {\n\t\t\tSystem.out.println(entry);\n\t\t}\n\t}",
"public void printOrder(){\n System.out.println(count);\n \n double price=0;\n for (product object : this.pro_o) {\n System.out.println(object.getName() + \" quantity : \" + object.getQuantity()+\" price : \" + object.getPrice());\n price+=object.getQuantity()*object.getPrice();\n }\n System.out.println(\"total : \" + price );\n }",
"public void dailyOrders(){\n\t\tint i;\n\t\tint listSize = orderLog.size();\n\t\tRoll temp;\n\t\tString outputText;\n\t\toutputText = \"Daily Customer Orders: \";\n\t\tfor(i = lastOrderOfThePreviousDay; i < listSize; i++){\n\t\t\toutputText = outputText + \"\\n\" + orderLog.get(i).printSimplify();\n\t\t}\n\n\t\tSystem.out.println(outputText);\n\t\tthis.status = outputText;\n\t\tsetChanged();\n notifyObservers();\n\t}",
"private static void printData(List<Long> runningTimes) {\n\t\tlong min = Collections.min(runningTimes);\n\t\tlong max = Collections.max(runningTimes);\n\t\t\n\t\tlong total = 0;\n\t\tfor(long runTime : runningTimes)\n\t\t\ttotal+=runTime;\n\t\t\n\t\tSystem.out.println(\"******* SEQUENTIAL RESULTS *******\");\n\t\tSystem.out.println(\"MIN RUNNING TIME(ms): \"+min);\n\t\tSystem.out.println(\"MAX RUNNING TIME(ms): \"+max);\n\t\tSystem.out.println(\"AVG RUNNING TIME(ms): \"+(total/runningTimes.size()));\n\t\tSystem.out.println(\"***********************************\");\n\t\tSystem.out.println();\n\t}",
"private static void writeToOrder() throws IOException {\n FileWriter write = new FileWriter(path5, append);\n PrintWriter print_line = new PrintWriter(write);\n ArrayList<Order> orders = Inventory.getOrderHistory();\n for (int i = 0; i < orders.size(); i++) {\n Order o = (Order) orders.get(i);\n\n String orderNum = String.valueOf(o.getOrderNumber());\n String UPC = String.valueOf(o.getUpc());\n String productName = o.getProductName();\n String distName = o.getDistributorName();\n String cost = String.valueOf(o.getCost());\n String quantity = String.valueOf(o.getQuantity());\n String isProcesed = String.valueOf(o.isProcessed());\n\n textLine =\n orderNum + \", \" + UPC + \", \" + quantity + \",\" + productName + \", \" + distName + \", \" + cost\n + \", \" + isProcesed;\n print_line.printf(\"%s\" + \"%n\", textLine);\n\n }\n print_line.close();\n\n }",
"void print() {\n for (Process process : workload) {\n System.out.println(process);\n }\n }",
"public void printStats() {\n\t\tSystem.out.println(\"QuickSort terminates!\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Duration: \" + getDuration() + \" seconds\");\n\t\tSystem.out.println(\"Comparisons: \" + this.comparisonCounter);\n\t\tSystem.out.println(\"Boundary: \" + this.b);\n\t}",
"public void print(List<T> order)\n\t{\n\t\tfor (T item : order)\n\t\t{\n\t\t\tSystem.out.println(item);\n\t\t}\n\t}",
"public void print() {\n System.out.print(datum+\" \");\n if (next != null) {\n next.print();\n }\n }",
"public void peep()\n\t{\n\t\tSystem.out.println(\"The data is..\"+arr[top-1]);\n\t}",
"private void print(){\n\t\tfor(int i = 0; i < maxNum; i++){\n\t\t\tSystem.out.print(m[i] + \" \");\n\t\t\t\n\t\t\tif((i + 1) % order == 0){\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void print() {\n int n = getSeq().size();\n int m = n / printLength;\n for (int i = 0; i < m; i++) {\n printLine(i * printLength, printLength);\n }\n printLine(n - n % printLength, n % printLength);\n System.out.println();\n }",
"@Override\n public void makeOutPutData(File file) {\n\n prepareHtmlDataList();\n\n PrintWriter pw = null;\n int cnt = 0;\n\n try {\n pw = new PrintWriter(new FileOutputStream(file, true));\n\n pw.println(\"******************** MainData info ********************\");\n pw.println(\"startLoggingTime : \"\n + ALTHelper\n .DateToString(ALTHelper\n .getTimeStartedBefore(1000)));\n pw.println(\"endLoggingTime : \"\n + ALTHelper\n .DateToString(ALTHelper\n .getTimeLaunched()));\n\n pw.println(\"\");\n\n pw.println(\"******************** Launched info ********************\");\n\n // should implement\n\n pw.println(\"\");\n\n pw.println(\"******************** gc info (top5) sorted by total_time ********************\");\n\n // -----------------------\n\n pw.println(String.format(\"%-20s\", \"time\")\n + String.format(\"%-10s\", \"PID\")\n + String.format(\"%-15s\", \"GC_cause\")\n + String.format(\"%-12s\", \"freedObject\")\n + String.format(\"%-10s\", \"freedByte\")\n + String.format(\"%-13s\", \"freedLObject\")\n + String.format(\"%-11s\", \"freedLByte\")\n + String.format(\"%-13s\", \"percent_free\")\n + String.format(\"%-18s\", \"current_heap_size\")\n + String.format(\"%-13s\", \"total_memory\")\n + String.format(\"%-11s\", \"pause_time\")\n + String.format(\"%-11s\", \"Total_time\"));\n\n ArrayList<GCData> totalTimeList = (ArrayList<GCData>)getGCDataList()\n .clone();\n Collections.sort(totalTimeList, new GCDataComparator(\n GCDataComparator.DataSortType.TOTAL_TIME));\n\n for (GCData gc : totalTimeList) {\n\n if (cnt >= 5)\n break;\n\n pw.println(String.format(\"%-20s\",\n ALTHelper.DateToString(gc.valutOfdate))\n + String.format(\"%-10s\", gc.PID)\n + String.format(\"%-15s\", gc.GC_cause)\n + String.format(\"%-12s\", gc.freedObject)\n + String.format(\"%-10s\", gc.freedByte)\n + String.format(\"%-13s\", gc.freedLObject)\n + String.format(\"%-11s\", gc.freedLByte)\n + String.format(\"%-13s\", gc.percent_free)\n + String.format(\"%-18s\", gc.current_heap_size)\n + String.format(\"%-13s\", gc.total_memory)\n + String.format(\"%-11s\", gc.pause_time)\n + String.format(\"%-11s\", gc.Total_time));\n cnt++;\n }\n\n pw.println(\"\");\n\n // -----------------------\n\n pw.println(\"******************** gc info sorted by date ********************\");\n\n pw.println(String.format(\"GC Total count : %5s\", getGCDataList()\n .size() + \" times\"));\n\n pw.println(String.format(\"%-20s\", \"time\")\n + String.format(\"%-10s\", \"processName\")\n + String.format(\"%-15s\", \"GC_cause\")\n + String.format(\"%-12s\", \"freedObject\")\n + String.format(\"%-10s\", \"freedByte\")\n + String.format(\"%-13s\", \"freedLObject\")\n + String.format(\"%-11s\", \"freedLByte\")\n + String.format(\"%-13s\", \"percent_free\")\n + String.format(\"%-18s\", \"current_heap_size\")\n + String.format(\"%-13s\", \"total_memory\")\n + String.format(\"%-11s\", \"pause_time\")\n + String.format(\"%-11s\", \"Total_time\"));\n\n for (GCData gc : getGCDataList()) {\n pw.println(String.format(\"%-20s\",\n ALTHelper.DateToString(gc.valutOfdate))\n + String.format(\"%-10s\", gc.PID)\n + String.format(\"%-15s\", gc.GC_cause)\n + String.format(\"%-12s\", gc.freedObject)\n + String.format(\"%-10s\", gc.freedByte)\n + String.format(\"%-13s\", gc.freedLObject)\n + String.format(\"%-11s\", gc.freedLByte)\n + String.format(\"%-13s\", gc.percent_free)\n + String.format(\"%-18s\", gc.current_heap_size)\n + String.format(\"%-13s\", gc.total_memory)\n + String.format(\"%-11s\", gc.pause_time)\n + String.format(\"%-11s\", gc.Total_time));\n }\n pw.println(\"\");\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } finally {\n if (pw != null)\n pw.close();\n }\n }",
"public void printInfo() {\n System.out.println(\"\\n\" + name + \"#\" + id);\n System.out.println(\"Wall clock time: \" + endWallClockTime + \" ms ~ \" + convertFromMillisToSec(endWallClockTime) + \" sec\");\n System.out.println(\"User time: \" + endUserTimeNano + \" ns ~ \" + convertFromNanoToSec(endUserTimeNano) + \" sec\");\n System.out.println(\"System time: \" + endSystemTimeNano + \" ns ~ \" + convertFromNanoToSec(endSystemTimeNano) + \" sec\");\n System.out.println(\"CPU time: \" + (endUserTimeNano + endSystemTimeNano) + \" ns ~ \" + convertFromNanoToSec(endUserTimeNano + endSystemTimeNano) + \" sec\\n\");\n }",
"public void printData()\n {\n reader.printData();\n }",
"public void print() {\r\n\t\tfor (int i = front; i <= rear; i++) {\r\n\t\t\tSystem.out.print(arr[i].getData() + \"\\t\");\r\n\t\t}\r\n\t}",
"public void Show(int _order){\n\t\tSystem.out.println(_order + \": \" + name + \" is at floor #\" + actualFloor + \", he wants to go to floor #\" + targetFloor);\n\t}",
"private String getOrderReport() {\n String result = \"Number of items in order: \" + items.size() + System.getProperty(\"line.separator\") +\n \"List of items: \" + System.getProperty(\"line.separator\");\n for (Item i : items) {\n result += i.getListOfPlants();\n }\n result += \"Total price: \" + calculateTotalPrice() + System.getProperty(\"line.separator\") +\n \"Delivery strategy: \" + delivery.toString() + System.getProperty(\"line.separator\") +\n \"Payment strategy: \" + payment.toString();\n return result;\n }",
"private void postOrder() {\n postOrderTraversal(0);\n System.out.println(); // jump to next line\n }",
"public void printResults() {\r\n System.out.printf(\"\\nHistory\\n\\n\");\r\n String format = \"%-25s %s from %s\\n\";\r\n Collections.sort(results);\r\n for(Data data : results) {\r\n System.out.printf(format, data.getName(),\r\n defaultFormatter.format(data.getDate()), data.getComputer());\r\n }\r\n }",
"public static void printTasks(){\n int totalTime = 0;\n int totalWait = 0;\n for(Task t : taskList){\n\n if(t.isAborted){\n System.out.println(\"TASK \" + t.taskNumber + \" aborted\" );\n }else{\n System.out.println(\"TASK \" + t.taskNumber + \" \" + t.terminateTime + \" \" + t.waitingCount + \" %\" + 100 * ((float)t.waitingCount / t.terminateTime));\n totalTime += t.terminateTime;\n totalWait += t.waitingCount;\n }\n }\n System.out.println(\"TOTAL\" + \" \" + totalTime + \" \" + totalWait + \" %\" + 100 *((float)totalWait / totalTime));\n\n }",
"public void printStatistics() {\r\n\t\tLog.info(\"*** Statistics of Sequence Selector ***\");\r\n\r\n\t\t// chains\r\n\t\tLog.info(String.format(\"Chains: %d\", chains.size()));\r\n\t\tLog.info(String.format(\"Executable Chains: %d\", execChains.size()));\r\n\t\tLog.info(String.format(\"Causal Executable Chains: %d\",\r\n\t\t\t\tcausalExecChains.size()));\r\n\r\n\t\t// bushes\r\n\t\tLog.info(String.format(\"Bushes: %d\", bushes.size()));\r\n\t\tLog.info(String.format(\"Executable Bushes: %d\", execBushes.size()));\r\n\t\tLog.info(String.format(\"Required Bushes: %d\", requiredExecBushes.size()));\r\n\t\tLog.info(String.format(\"Redundant Bushes: %d\",\r\n\t\t\t\tredundantExecBushes.size()));\r\n\r\n\t\t// total\r\n\t\tLog.info(String.format(\"Bushes in Chains: %d\", bushesInChains.size()));\r\n\t\tLog.info(String.format(\"Total Sequences: %d\", totalSequences.size()));\r\n\r\n\t\t// time\r\n\t\tLog.info(String.format(\"Total Time: %d ms\", stopWatch.getTime()));\r\n\t\tLog.info(String.format(\"Time per Event: %d ms\", stopWatch.getTime()\r\n\t\t\t\t/ events.size()));\r\n\t}",
"public void printRestocks(){\n\t\tint i;\n\t\tint listSize = inventoryOrdersDone.size();\n\t\tRoll temp;\n\t\tString outputText;\n\t\toutputText = \"\\nInventory Restock Orders Per Roll: \";\n\t\t//outputText = inventoryOrdersDone.get(0).getRoll().getType() + \" Roll Current stock: \" + inventoryOrdersDone.get(0).getStock();\n\n\t\tfor(i = 0; i < listSize; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\toutputText = outputText + \"\\n\";\n\t\t\t}\n\t\t\toutputText = outputText + inventoryOrdersDone.get(i).getRoll().getType() + \": \" + inventoryOrdersDone.get(i).getStock() + \" \";\n\n\t\t}\n\n\t\tSystem.out.println(outputText);\n\t\tthis.status = outputText;\n\t\tsetChanged();\n notifyObservers();\n\t}",
"public static void printOrderTotals() {\r\n System.out.println(\"\");\r\n System.out.println(\"********ORDER TOTALS********\");\r\n System.out.println(\"Total Pizza Sliders Ordered: \" + pizzaOrdered);\r\n System.out.println(\"Total Roast Beef Sliders Ordered: \" + roastOrdered);\r\n System.out.println(\"***************************\");\r\n System.out.println(\"\");\r\n }",
"private void showFinalResults(){\r\n\r\n System.out.println(\"Player\\t\\t:\\t\\tPoints\");\r\n for(Player player : this.sortedPlayers){\r\n System.out.println(player.toString());\r\n }\r\n System.out.println();\r\n }",
"public void print() {\r\n System.out.print(\"[id: <\" + this.id + \"> \");\r\n if (this.dimension > 0) {\r\n System.out.print(this.data[0]);\r\n }\r\n for (int i = 1; i < this.dimension * 2; i++) {\r\n System.out.print(\" \" + this.data[i]);\r\n }\r\n System.out.println(\"]\");\r\n }",
"public void print()\n {\n System.out.println();\n System.out.println(\"Ticket to \" + destination +\n \" Price : \" + price + \" pence \" + \n \" Issued \" + issueDateTime);\n System.out.println();\n }",
"@Override\r\n\tpublic void Print() {\r\n\t\tSystem.out.print(this.tav+\" \");\r\n\t\t\r\n\t}",
"public void zTest() {\r\n for(int i = 0; i < dayArray.size(); i++) {\r\n MiscStuff.writeToLog(dayArray.get(i) + \"zTest\"); \r\n }\r\n }",
"private void inOrder() {\n inOrderTraversal(0);\n System.out.println(); // jump to next line\n }",
"public void queryOrder(){\n\t\ttry{\n\t\t\tlock.lock();\n\t\t\tSystem.out.println(Thread.currentThread().getName()+\"查询到数据:\"+System.currentTimeMillis());\n\t\t\tThread.sleep(2000);\n\t\t}catch( Exception e){\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tlock.unlock();\n\t\t}\n\t}",
"public void printClock() {\n\t\tSystem.out.println(this);\n\t}",
"@Override\n\tpublic String genResult() {\n\t\tCollections.sort(meanTimes, new Comparator<Time>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Time a, Time b) {\n\t\t\t\treturn a.toString().compareTo(b.toString());\n\t\t\t}\n\t\t});\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(realLaps()).append(\"; \");\n\t\tsb.append(totalTime()).append(\"; \");\n\t\tLinkedList<Time> times = new LinkedList<>();\n\t\tif(!startTimes.isEmpty()) times.add(startTimes.getFirst());\n\t\tfor(Time t: meanTimes) times.addLast(t);\n\t\tif(!finishTimes.isEmpty()) times.addLast(finishTimes.getFirst());\n\t\tint i = 0;\n\t\tif(startTimes.isEmpty()) {\n\t\t\ti++;\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\tfor (; i < maxLaps; i++) {\n\t\t\tif (times.size() > 1) {\n\t\t\t\tTime t = times.removeFirst();\n\t\t\t\tsb.append(Time.diff(times.getFirst(), t).toString());\n\t\t\t}\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\tString out = sb.toString();\n\t\treturn out.substring(0, out.length() - 2);\n\n\t}",
"void putdata()\n {\n System.out.printf(\"\\nCD Title \\\"%s\\\", is of %d minutes length and of %d rupees.\",title,length,price);\n }",
"private void printUpdateOrderMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Opdater Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opdater Medarbejder\");\n System.out.println(\"(2) Opdater Kunde\");\n System.out.println(\"(3) Opdater Produkt\");\n System.out.println(\"(4) Tilføj Produkt\");\n System.out.println(\"(5) Bekræft\");\n System.out.print(\"Valg: \");\n }",
"public static void print(String uniqueMark ,String id,String name ,double value ,byte[] statusAddition, int statusAdditionIndex ){\n\t}",
"public void tempoDeDescoberta(){\r\n \tfor(int i=0; i<d.length; i++){\r\n \t\tSystem.out.println(\"d[\"+i+\"] :: \"+d[i]);\r\n \t}\r\n }",
"@Override\n\tpublic int getOrder() {\n\t\treturn Ordered.HIGHEST_PRECEDENCE + 10000;\n\t}",
"public void printQuiet() {\n if (numOut != 0) {\n System.out.println(numIn + \",\" + numOut + \",\" + (totTimeWait / numIn) + \",\" + (totTime / numOut));\n } else {\n System.out.println(numIn + \",\" + numOut + \",\" + (totTimeWait / numIn) + \",0\");\n }\n }",
"public String showCurrentOrder(){\n stringBuilder = new StringBuilder();\n for (int i = 0; i < OrderManager.getInstance().getOrder().size(); i++) {\n stringBuilder.append((i + 1) + \". \" + OrderManager.getInstance().getOrder().get(i).toString() + \"\\n\");\n }\n return stringBuilder.toString();\n }",
"private void printActualSensorData() throws IOException , InterruptedException{\n\n System.out.println(\"*----------------------------\");\n for (SensorData sensorData : actualSensorDatas) {\n System.out.println(\"Received a packet: IP:Port: \" + sensorData.printSensorData());\n }\n //Thread.sleep(10000);\n //System.out.print(\"\\033[H\\033[2J\");\n System.out.println(\"----------------------------*\");\n\n }",
"public void printDescend() {\r\n\t\tMovieListNode<m> cur = tail;\r\n\t\twhile (cur != null) {\r\n\t\t\tSystem.out.println(cur);\t//prints current node\r\n\t\t\tcur = cur.prev;\t\t//moves back to previous node\r\n\t\t}\r\n\t}",
"public void recordOrder(){\n PrintWriter output = null;\n try{\n output = \n new PrintWriter(new FileOutputStream(\"record.txt\", true));\n }\n catch(Exception e){//throws exception\n System.out.println(\"File not found\");\n System.exit(0);\n }\n output.println(Coffee);//prints in file contents of Coffee\n output.close();//closes file\n }",
"@Override\n\tpublic void openOrderEnd() {\n\t}",
"public void tostring(){\n\t\tfor(int i=0;i<taskList.size();i++){\n\t\t\tSystem.out.println(taskList.get(i).getPrint()); \n\t\t}\n\t}",
"@Override\n public String getSummary() {\n return super.getSummary() + SYMBOL_SEPARATOR + getTimingString();\n }",
"public void printOrderItem(){\r\n\t\tSystem.out.print(this.quantity+\" x \"+this.menuItem.getName()+\" ---- \");\r\n\t\tSystem.out.printf(\"$%.2f\\n\",this.calculatePrice());\r\n\t}",
"default void print() {\r\n\t\tGenerator.getInstance().getLogger().debug(\"Operation matrix:\\r\");\r\n\t\tString ans = \" operation \";\r\n\t\tfor (double i = 0; i < this.getOperationMap().keySet().size(); i++) {\r\n\t\t\tfinal Element element1 = this.get(i);\r\n\t\t\tans += element1 + \" \";\r\n\t\t}\r\n\t\tLogManager.getLogger(FiniteSemiGroup.class).debug(ans);\r\n\t\tfor (double i = 0; i < this.getOperationMap().keySet().size(); i++) {\r\n\t\t\tfinal Element element1 = this.get(i);\r\n\t\t\tans = element1 + \" \";\r\n\t\t\tfor (double j = 0; j < this.getOperationMap().keySet().size(); j++) {\r\n\t\t\t\tfinal Element element2 = this.get(j);\r\n\t\t\t\tans += \" \" + this.getOperationMap().get(element1).get(element2) + \" \";\r\n\t\t\t}\r\n\t\t\tLogManager.getLogger(FiniteSemiGroup.class).debug(ans);\r\n\t\t}\r\n\t}",
"private void linearTime() {\n for (E e : array) {\n if (e != null)\n System.out.print(e + \", \");\n }\n System.out.println(); // jump to next line\n }",
"protected String printEnd() \r\n\t{\r\n\t\tSystem.out.println(\"End of Weather Weather Details!\\n\\n\");\r\n\t\treturn null;\r\n\t}",
"private static void ensurePrintOrder() throws InterruptedException {\n\t\t// Pause the thread to allow output to catch up\n\t\tSystem.out.flush();\n\t\tSystem.err.flush();\n\t\tTimeUnit.MILLISECONDS.sleep(1);\n\t}",
"public void printProcessQueue()\n\t{\n\t\tProcesses.print();\n\t}",
"public void print(){\n System.out.print(\"Current Queue: \");\n for (int i = 1; l <= myHeap.getLength(); i++){\n \tSystem.out.printf(\"%s\", myHeap.getArray()[i]);\n \tif (i < myHeap.getLength()){\n \t\tSystem.out.print(\",\");\n \t}\n }\n\n System.out.println();\n }",
"public void printDetails() {\r\n\t\tSystem.out.println(\" \");\r\n\t\tSystem.out.println(showtimeId + \" \" + movie.getTitle() + \" starts at \" + startTime.toString());\r\n\t}",
"public void printData() {\n\t\ttry {\n\t\t\tFiles.lines(new File(PAYROLL_FILE_NAME).toPath())\n\t\t\t.forEach(System.out::println); \n\t\t}catch(IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public String toString() {\r\n return this.date + getTab() + this.closingPrice + \" --> \" + this.futureOpeningPrice;\r\n }",
"public void print()\n\t{\n\t\tStringBuffer print = new StringBuffer();\n\t\tif (arraySize != 0)\n\t\t{\n\t\t\tfor (int index = 0; index < arraySize - 1; index++) \n\t\t\t{ \n\t\t\t\tprint.append(array[index] + \", \");\n\t\t\t}\n\t\t\tprint.append(array[arraySize - 1]);\n\t\t\tSystem.out.println(print.toString());\n\t\t}\n\t}",
"protected void printQueue()\r\n\t{\r\n\t\tint south = 1;\r\n\t\tint west = 2;\r\n\t\tint midwest = 3;\r\n\t\t\r\n\t\tgetPriorityHeader(south);\r\n\t\tSystem.out.println(State.getHeader());\r\n\t\tdisplaySouth();\r\n\t\t\r\n\t\tgetPriorityHeader(west);\r\n\t\tSystem.out.println(State.getHeader());\r\n\t\tdisplayWest();\r\n\t\t\r\n\t\tgetPriorityHeader(midwest);\r\n\t\tSystem.out.println(State.getHeader());\r\n\t\tdisplayMidwest();\r\n\t}",
"public String print() {\n Collections.sort(ordini, Comparator.comparing(o -> o.dataAcquisto));\n return ordini.stream()\n .map(o->o.toString()+\"\\n\")\n .reduce(String::concat).orElse(\"\");\n }",
"@Override\n public String toString() {\n if (timeEnd == null) {\n stop();\n }\n return task + \" in \" + (timeEnd - timeStart) + \"ms\";\n }",
"public void Display() {\n\t\tSystem.out.println(Integer.toHexString(PID) + \"\\t\" + Integer.toString(CreationTime) + \"\\t\"+ Integer.toHexString(CommandCounter) + \"\\t\" + ProcessStatus.toString() \n\t\t+ \"\\t\" + Integer.toString(MemoryVolume) + \"\\t\" + Integer.toHexString(Priority) + \"\\t\" + ((MemorySegments != null)? MemorySegments.toString() : \"null\"));\n\t}",
"public void print() {\r\n Person tmp = saf.get(0);\r\n System.out.println(\"Person name : \" + tmp.getName() +\r\n \" Entering time : \" + tmp.getTime() +\r\n \" Waiting time : \" + tmp.getExitTime());\r\n }",
"protected void printExecutionTime(){\n //Do nothing\n }",
"public void print() {\n for (int i = 0; i < headers.length; i++) {\n System.out.printf(headers[i] + \", \"); // Print column headers.\n }\n System.out.printf(\"\\n\");\n for (int i = 0; i < (data.length - 1); i++) {\n for (int j = 0; j < data[i].length; j++) {\n System.out.printf(data[i][j] + \" \"); // Print value at i,j.\n }\n System.out.printf(\"\\n\");\n }\n }",
"public void levelOrderPrint() {\n\t\tlevelOrderPrint(root);\n\t}",
"public void getSummary() { \n int randomTableNumber = (int)(Math.random() * 7) + 1;\n System.out.println(\"============================\");\n\n if (blnTakeOut == true) {\n System.out.println(\"Takeout order: \");\n } else if (blnTakeOut == false) {\n System.out.println(\"Table #\" + randomTableNumber + \"'s order: \");\n }\n\n for (int i = 0; i < itemsInOrder.size(); i++) {\n itemsInOrder.get(i).getSummary();\n }\n\n System.out.println(\"============================\");\n }",
"public void postOrderPrint() {\n\t\tpostOrderPrint(root);\n\t\tSystem.out.println();\n\t}",
"@Override\n public String toString() {\n // TODO: this, statically\n StringBuilder builder = new StringBuilder(getObs().toString());\n builder.append(\" S\");\n builder.append(firstStep + 1);\n if (lastStep > firstStep) {\n builder.append(\"-\");\n builder.append(lastStep + 1);\n }\n return builder.toString();\n }",
"private void printStatistics() {\n\t\t\r\n\t\tSystem.out.println(\"End of simulation report\\n\");\r\n\t\tSystem.out.println(\"\\t# total arrival customers \t\t\t: \" + customerIDCounter);\r\n\t\tSystem.out.println(\"\\t# customers turned-away \t\t: \" + numTurnedAway);\r\n\t\tSystem.out.println(\"\\t# customers served \t\t\t: \" + numServed + \"\\n\");\r\n\t\tSystem.out.println(\"\\t*** Current Tellers Info ***\\n\\n\");\r\n\t\tservicearea.printStatistics();\r\n\t\tSystem.out.println(\"\\n\\n\\tTotal waiting time \t\t\t\t: \" + totalWaitingTime);\r\n\t\tSystem.out.println(\"\\tAverage waiting time \t\t\t: \"\r\n\t\t\t\t+ (double) totalWaitingTime / (customerIDCounter - numTurnedAway));\r\n\t\tSystem.out.println(\"\\n\\n\\tBusy Tellers (\" + servicearea.numBusyTellers() + \") Info\\n\\n\");\r\n\t\tfor (int i = 0; i < servicearea.numBusyTellers();) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// loops through busyTellerQ\r\n\t\t\tTeller nextBusyTeller = servicearea.removeBusyTellerQ();\t\t\t\t\t\t\t\t\t\t\t\t\t\t// empties queue and prints\r\n\t\t\tnextBusyTeller.printStatistics();\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// teller statistics\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\\tFree Tellers (\" + servicearea.numFreeTellers() + \") Info\\n\\n\");\r\n\t\tfor (int i = 0; i < servicearea.numFreeTellers();) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// loops through freeTellerQ\r\n\t\t\tTeller nextFreeTeller = servicearea.removeFreeTellerQ();\t\t\t\t\t\t\t\t\t\t\t\t\t\t// empties queue and prints\r\n\t\t\tnextFreeTeller.printStatistics();\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// teller statistics\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\t\t}\r\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}",
"private void changeOrderPhase() {\n for (int i = 0; i < 4; i++)\n System.out.print(playerList[i].getName() + \" ,\");\n Player tmp = playerList[0];\n playerList[0] = playerList[1];\n playerList[1] = playerList[2];\n playerList[2] = playerList[3];\n playerList[3] = tmp;\n System.out.println();\n for (int i = 0; i < 4; i++)\n System.out.print(playerList[i].getName() + \" ,\");\n System.out.println();\n }",
"public void printInOrder() {\n printInOrderHelper(root);\n }",
"private static void printStats(Stats stats) {\n long elapsedTime = (System.nanoTime() - startTime) / 1000000;\n System.out.println(\"Analysis completed - \" + keyCount + \" keys processed in \" + elapsedTime + \" ms\");\n getConsole().println(\"Analysis completed - \" + keyCount + \" keys processed in \" + elapsedTime + \" ms\");\n stats.print();\n }",
"public void recordOrder(){ \n PrintWriter output = null;\n try{\n output = \n new PrintWriter(new FileOutputStream(\"record.txt\", true));\n }\n catch(Exception e){\n System.out.println(\"File not found\");\n System.exit(0);\n }\n output.println(Tea);//writes into the file contents of String Tea\n output.close();//closes file\n }",
"public void printRoutine()\n\t{\n\t\tfor (String name: vertices.keySet())\n\t\t{\n\t\t\tString value = vertices.get(name).toString();\n\t\t\tSystem.out.println(value);\n\t\t}\n\t}",
"public static void printAllEventListInSortedOrder(){\n sortEvents();\n for(int i=0;i<events.size();i++){\n System.out.println((events.get(i).getMonth()+1)+\"/\"+events.get(i).getDate()+\"/\"+events.get(i).getYear()+\" \"+events.get(i).getStringStartandFinish()+\" \"+events.get(i).getEventTitle());\n }\n }",
"void outputMsg(OscilloscopeMsg omsg) {\n System.out.print(\"id = \" + omsg.get_id());\n // System.out.print(\"count = \" + omsg.get_count());\n System.out.print(\"temperature = \" + omsg.get_temperature());\n System.out.print(\"humidity = \" + omsg.get_humidity());\n System.out.print(\"light = \" + omsg.get_light());\n // System.out.print(\"current_time = \" + omsg.get_current_time());\n // System.out.print(\"token = \" + omsg.get_token());\n // System.out.print(\"readings = \" + omsg.get_readings());\n System.out.print(\"\\n\");\n }",
"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}",
"public void print() \r\n\t{\r\n\t\tif(debug)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Debug - Starting print\");\r\n\t\t}\r\n\t\t\r\n\t\tfor (int index = 0; index < count; index++) \r\n\t\t{\r\n\t\t\tif (index % 5 == 0) \r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tif(debug)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"\\nDebug - numArray[index] = \" + numArray[index]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.print(numArray[index] + \"\\t\");\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\tif(debug)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Debug - Ending print\");\r\n\t\t}\r\n\t}",
"public static void printExecutionTime() {\n long endTime = System.currentTimeMillis();\n\n logger.info(\"Completed Execution in: \" + (endTime - ClientExecutorEngine.getStartTime())/1000.0 + \" seconds.\");\n }",
"private static void displayHeaders( float t ) {\n\t\t/** Traverse the list of all outputs and display their\n\t\t * names and then scheduling the first output display event.\n\t\t * All names are output in a 5-space field.\n\t\t * Following the headers, display the associated values.\n\t\t */\n\t\tfor (Output o: outputList) {\n\t\t\tString n = o.name;\n\n\t\t\t// long names must be truncated\n\t\t\tif (n.length() > 4) {\n\t\t\t\tn = n.substring( 0, 4 );\n\t\t\t}\n\n\t\t\t// output leading blank\n\t\t\tSystem.out.append( ' ' );\n\n\t\t\t// output edited name\n\t\t\tSystem.out.append( n );\n\n\t\t\t// output padding up to next column\n\t\t\tif (n.length() < 4) {\n\t\t\t\tSystem.out.append(\n\t\t\t\t\t\" \".substring( 0, 4 - n.length() )\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\n\t\t// headers preceed first output of values\n\t\tdisplayOutput( t );\n\t}",
"@Override\r\n\tpublic void printTransdetails() {\n\t\t\r\n\t}",
"public void print() {\n\t\t\tfor (int i = 0; i < nowLength; i++) {\n\t\t\t\tSystem.out.print(ray[i] + \" \");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}",
"public void printData () {\n System.out.println (products.toString ());\n }",
"@Override\r\n\tpublic void print()\r\n\t{\t//TODO méthode à compléter (TP1-ex11)\r\n\t\tfor (IndexEntry indexEntry : data) {\r\n\t\t\tif(indexEntry ==null){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(indexEntry.toString());\r\n\t\t}\r\n\t}",
"void reportOutput()\n {\n while(state.get().ordinal() < SimulationState.TEARING_DOWN.ordinal())\n {\n FBUtilities.sleepQuietly(csvUpdatePeriodMs);\n doReportOutput(false);\n }\n\n doReportOutput(true);\n }",
"public void display()\n\t{\n\t\tSystem.out.println(data+\" \");\n\t}"
] | [
"0.64676344",
"0.5949223",
"0.59247017",
"0.59122837",
"0.58555114",
"0.58186185",
"0.5797748",
"0.57806647",
"0.57329696",
"0.57233757",
"0.5722375",
"0.5710166",
"0.5710091",
"0.5702905",
"0.5701439",
"0.5683859",
"0.5671284",
"0.5622502",
"0.5585763",
"0.55736184",
"0.55579346",
"0.555144",
"0.5529009",
"0.5516981",
"0.5482064",
"0.5471379",
"0.5452427",
"0.5451367",
"0.5432148",
"0.5425906",
"0.5423988",
"0.54111135",
"0.5409157",
"0.5397337",
"0.5397187",
"0.53941417",
"0.53927624",
"0.5387302",
"0.5376365",
"0.53750294",
"0.5374774",
"0.5371881",
"0.5367527",
"0.53647965",
"0.53638965",
"0.5362819",
"0.5360748",
"0.5357471",
"0.53524435",
"0.53482616",
"0.5328037",
"0.53188324",
"0.5318364",
"0.5311274",
"0.53080845",
"0.5296285",
"0.52950174",
"0.5276082",
"0.5275798",
"0.52642876",
"0.52567744",
"0.5253537",
"0.5251556",
"0.5246333",
"0.5237798",
"0.5237311",
"0.52364105",
"0.52332604",
"0.5230587",
"0.5227499",
"0.5227342",
"0.5227002",
"0.5225195",
"0.5224551",
"0.5220406",
"0.52153605",
"0.521411",
"0.52039945",
"0.51969665",
"0.51907235",
"0.5185395",
"0.517915",
"0.5172238",
"0.5168911",
"0.51646346",
"0.51620775",
"0.515744",
"0.51563257",
"0.5149962",
"0.51460415",
"0.51413447",
"0.51408297",
"0.51382285",
"0.513781",
"0.512864",
"0.5124862",
"0.5121911",
"0.51208425",
"0.5120518",
"0.5115563"
] | 0.55529755 | 21 |
Method used for given in output the diatonic corresponding anglosaxon note | public static String getNoteTranscoding(String angloSaxonNote)
{
LinkedHashMap<String,String> noteTranscoding = new LinkedHashMap<>();
noteTranscoding.put("C", "Do");
noteTranscoding.put("D", "Re");
noteTranscoding.put("E", "Mi");
noteTranscoding.put("F", "Fa");
noteTranscoding.put("G", "Sol");
noteTranscoding.put("A", "La");
noteTranscoding.put("B", "Si");
return noteTranscoding.get(angloSaxonNote.toUpperCase());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String Dime_datos_generales() {\n\t\t\n\t\treturn \"la plataforma del veiculo tiene \"+ rueda+\" ruedas\"+\n\t\t\"\\nmide \"+ largo/1000+\" metros con un ancho de \"+ancho+\n\t\t\"cm\"+\"\\nun peso de platafrorma de \"+peso;\n\t}",
"public void diagrafiSintagis() {\n\t\t// Elegxw an yparxoun syntages\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages \n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t\t\t\tSystem.out.println();\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ttmp_1 = sir.readPositiveInt(\"DWSTE TON ARITHMO THS SYNTAGHS POU THELETAI NA DIAGRAFEI: \");\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos egkyrotitas tou ari8mou pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfPrescription)\n\t\t\t{\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"KSANAEISAGETAI ARITHMO SYNTAGHS: \");\n\t\t\t}\n\t\t\t// Metakinw tis epomenes syntages mia 8esi pio aristera\n\t\t\tfor(int k = tmp_1; k < numOfPrescription - 1; k++)\n\t\t\t{\n\t\t\t\tprescription[k] = prescription[k+1]; // Metakinw thn syntagh sti 8esi k+1 pio aristera\n\t\t\t}\n\t\t\tnumOfPrescription--; // Meiwse ton ari8mo twn syntagwn\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.print(\"\\nDEN YPARXOUN DIATHESIMES SYNTAGES PROS DIAGRAFH!\\n\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public String annulerRv(){\n\t\t// Traitement ici ... \n\t\treturn AFFICHER;\n\t}",
"String getCADENA_TRAMA();",
"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}",
"String notes();",
"@Override\n\tpublic double tinhTienAn() {\n\t\tdouble tienAn = canNang * 0.05;\n\t\treturn tienAn;\n\t}",
"public String kursIndonesia(double nominal){\n Locale localeID = new Locale(\"in\",\"ID\");\n NumberFormat formatRupiah = NumberFormat.getCurrencyInstance(localeID);\n String idnNominal = formatRupiah.format(nominal);\n return idnNominal;\n\n\n }",
"protected String usaNote() {\n String testo = VUOTA;\n String tag = \"Note\";\n String ref = \"<references/>\";\n\n testo += LibWiki.setParagrafo(tag);\n testo += A_CAPO;\n testo += ref;\n testo += A_CAPO;\n testo += A_CAPO;\n\n return testo;\n }",
"Etudiant(String prenom, String nom, double note) {\n this.prenom = prenom;\n this.nom = nom;\n this.note = note;\n\n addNote(note);\n addEtudiant();\n\n }",
"@Override\n\tpublic void getThongTin() {\n\t\tSystem.out.print(\"Ghế \");\n\t\tvatlieu.getMoTa();\n\t}",
"String note();",
"public String getTranslation()\n {\n StringBuilder aminoAcid = new StringBuilder();\n Map<String, String> codToAa = Map.ofEntries(\n entry(\"ATA\", \"I\"), entry(\"ATC\", \"I\"), entry(\"ATT\", \"I\"), entry(\"ATG\", \"M\"),\n entry(\"ACA\", \"T\"), entry(\"ACC\", \"T\"), entry(\"ACG\", \"T\"), entry(\"ACT\", \"T\"),\n entry(\"AAC\", \"N\"), entry(\"AAT\", \"N\"), entry(\"AAA\", \"K\"), entry(\"AAG\", \"K\"),\n entry(\"AGC\", \"S\"), entry(\"AGT\", \"S\"), entry(\"AGA\", \"R\"), entry(\"AGG\", \"R\"),\n entry(\"CTA\", \"L\"), entry(\"CTC\", \"L\"), entry(\"CTG\", \"L\"), entry(\"CTT\", \"L\"),\n entry(\"CCA\", \"P\"), entry(\"CCC\", \"P\"), entry(\"CCG\", \"P\"), entry(\"CCT\", \"P\"),\n entry(\"CAC\", \"H\"), entry(\"CAT\", \"H\"), entry(\"CAA\", \"Q\"), entry(\"CAG\", \"Q\"),\n entry(\"CGA\", \"R\"), entry(\"CGC\", \"R\"), entry(\"CGG\", \"R\"), entry(\"CGT\", \"R\"),\n entry(\"GTA\", \"V\"), entry(\"GTC\", \"V\"), entry(\"GTG\", \"V\"), entry(\"GTT\", \"V\"),\n entry(\"GCA\", \"A\"), entry(\"GCC\", \"A\"), entry(\"GCG\", \"A\"), entry(\"GCT\", \"A\"),\n entry(\"GAC\", \"D\"), entry(\"GAT\", \"D\"), entry(\"GAA\", \"E\"), entry(\"GAG\", \"E\"),\n entry(\"GGA\", \"G\"), entry(\"GGC\", \"G\"), entry(\"GGG\", \"G\"), entry(\"GGT\", \"G\"),\n entry(\"TCA\", \"S\"), entry(\"TCC\", \"S\"), entry(\"TCG\", \"S\"), entry(\"TCT\", \"S\"),\n entry(\"TTC\", \"F\"), entry(\"TTT\", \"F\"), entry(\"TTA\", \"L\"), entry(\"TTG\", \"L\"),\n entry(\"TAC\", \"Y\"), entry(\"TAT\", \"Y\"), entry(\"TAA\", \"_\"), entry(\"TAG\", \"_\"),\n entry(\"TGC\", \"C\"), entry(\"TGT\", \"C\"), entry(\"TGA\", \"_\"), entry(\"TGG\", \"W\")\n );\n try\n {\n for (int i = 0; i < this.sequence.length(); i += 3)\n {\n aminoAcid.append(codToAa.get(this.sequence.substring(i, i + 3)));\n }\n }\n catch (StringIndexOutOfBoundsException ignored)\n {\n }\n return aminoAcid.toString();\n }",
"private String notationorlabel(Resource indiv) {\n\t\t\n\t\tString sNotation = concept2notation.get(indiv);\n\t\tif(sNotation != null && !sNotation.isEmpty()) {\n\t\t\treturn sNotation;\n\t\t}\n\t\t\t\n\t\tLiteral label = null;\n\t\t//1. Try to get a notation\n\t\tStatement notstmt = indiv.getProperty(notation); //TODO There might be more than one notation\n\t\tif(notstmt != null) {\n\t\t\tsNotation = ((Literal) notstmt.getObject().as(Literal.class)).getString();\n\t\t}\n\t\t//2. Try to get a skos-label in the preferred Language\n\t\tif(sNotation == null || sNotation.isEmpty())\t{\n\t\t\tlabel = null;\n\t\t\tStmtIterator iter = indiv.listProperties(preflabel);\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tRDFNode n = iter.nextStatement().getObject();\n\t\t\t\tlabel = (Literal) n.as(Literal.class);\t\t\n\t\t\t\tif(label.getLanguage().equalsIgnoreCase(loc.getLanguage())) {\n\t\t\t\t\tsNotation = label.getString();\n\t\t\t\t\tbreak;\n\t\t\t\t} else if(\"en\".equalsIgnoreCase(label.getLanguage())) {\n\t\t\t\t\tsNotation = label.getString();\n\t\t\t\t} else if(sNotation == null || sNotation.isEmpty()) {\n\t\t\t\t\tsNotation = label.getString();\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t\t//3 Try to get a rdfs-label in the preferred Language\n\t\tif(sNotation == null || sNotation.isEmpty())\t{\n\t\t\tlabel = null;\n\t\t\tStmtIterator iter = indiv.listProperties(rdfslabel);\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tRDFNode n = iter.nextStatement().getObject();\n\t\t\t\tlabel = (Literal) n.as(Literal.class);\t\t\n\t\t\t\tif(label.getLanguage().equalsIgnoreCase(loc.getLanguage())) {\n\t\t\t\t\tsNotation = label.getString();\n\t\t\t\t\tbreak;\n\t\t\t\t} else if(\"en\".equalsIgnoreCase(label.getLanguage())) {\n\t\t\t\t\tsNotation = label.getString();\n\t\t\t\t} else if(sNotation == null || sNotation.isEmpty()) {\n\t\t\t\t\tsNotation = label.getString();\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t\t\n\n\t\tif(sNotation == null || sNotation.isEmpty())\t{\n\t\t\tsNotation = indiv.getLocalName();\n\t\t}\n\t\tif(sNotation == null || sNotation.isEmpty())\t{\n\t\t\tsNotation = indiv.getURI();\n\t\t}\n\t\n\t\tconcept2notation.put(indiv, sNotation);\n\t\t\t\n\t\treturn sNotation;\n\t}",
"public void ektypwsiSintagis() {\n\t\t// Elegxw an yparxoun syntages\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR PRESCRIPTION No.\" + (i+1) + \":\");\n\t\t\t\tprescription[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public Double getNote()\r\n {\r\n return note;\r\n }",
"public void diagrafiGiatrou() {\n\t\t// Elegxw an yparxoun iatroi sto farmakeio\n\t\tif(numOfDoctors != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA IATRWN\");\n\t\t\t// Emfanizw olous tous giatrous\n\t\t\tfor(int j = 0; j < numOfDoctors; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA IATROU: \");\n\t\t\t\tSystem.out.println();\n\t \t \tdoctor[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ttmp_1 = sir.readPositiveInt(\"DWSTE TON ARITHMO TOU IATROU POU THELETAI NA DIAGRAFEI: \");\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos egkyrotitas tou ari8mou pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfDoctors)\n\t\t\t{\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"KSANAEISAGETAI ARITHMO IATROU: \");\n\t\t\t}\n\t\t\t// Metakinw tous epomenous giatrous mia 8esi pio aristera\n\t\t\tfor(int k = tmp_1; k < numOfDoctors - 1; k++)\n\t\t\t{\n\t\t\t\tdoctor[k] = doctor[k+1]; // Metakinw ton giatro sti 8esi k+1 pio aristera\n\t\t\t}\n\t\t\tnumOfDoctors--; // Meiwse ton ari8mo twn giatrwn\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.print(\"\\nDEN YPARXOUN DIATHESIMOI GIATROI PROS DIAGRAFH!\\n\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public double getDongia() {\n return dongia;\n }",
"public String getDesc() {\r\n\t\treturn \"The average temperature in 4 Greek islands (line chart)\";\r\n\t}",
"public String getOndaP1() {\r\n return ondaP1;\r\n }",
"private String getTerminalExon( final FastaEntry chromosomeSeq ) {\n\t\tString exon = \"\"; \n\t\tif( getBEDentry().isPlusStrand() ) {\n\t\t\texon = chromosomeSeq.getSubsequence((getLast3SSPos()+1), getPolyA()); \n\t\t} else {\n\t\t\texon = chromosomeSeq.getSubsequence(getPolyA()+1, getLast3SSPos()); \n\t\t\texon = new DNASequence( exon, AmbiguityDNACompoundSet.getDNACompoundSet() ).getReverseComplement().getSequenceAsString();\n\t\t}\n\t\t\n\t\t\n\t\treturn new DNASequence( exon, AmbiguityDNACompoundSet.getDNACompoundSet() ).getRNASequence().toString();\n\t}",
"@Override\r\n\tdouble alan() {\n\t\tSystem.out.println(\"Ucgenin Alani : \");\r\n\t\treturn kenar1 * kenar2 /2;\r\n\t}",
"double getDiametro(){\n return raggio * 2;\n }",
"public void anazitisiSintagisVaseiHmerominias() {\n\t\tDate firstDt = null, lastDt = 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\t\tprescription[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t// Zitaw apo ton xrhsth to xroniko euros kata to opoio exei graftei sintagh\n\t\t\tfirstDt = sir.readDate(\"DWSTE ARXIKH HMEROMHNIA: \");\n\t\t\tlastDt = sir.readDate(\"DWSTE TELIKH HMEROMHNIA: \");\n\t\t\tSystem.out.println();\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t// An h hmeromhnia eggrafhs ths syntaghs einai anamesa sta xronika oria pou exei dwsei o xrhsths ektypwnetai\n\t\t\t\tif(firstDt.before(prescription[i].getDate()) && (lastDt.after(prescription[i].getDate()))) \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\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 METAKSY:\" + firstDt + \" KAI: \" + lastDt);\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}",
"String getMyNoteText(MyNoteDto usernote, boolean abbreviated);",
"public void diagrafiAstheni() {\n\t\tif(numOfPatient != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA ASTHENWN\");\n\t\t\t// Emfanizw olous tous astheneis\n\t\t\tfor(int j = 0; j < numOfPatient; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA ASTHENOUS: \");\n\t\t\t\tSystem.out.println();\n\t \t \tpatient[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ttmp_1 = sir.readPositiveInt(\"DWSTE TON ARITHMO TOU ASTHENH POU THELETAI NA DIAGRAFEI: \");\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos egkyrotitas tou ari8mou pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfPatient)\n\t\t\t{\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"KSANAEISAGETAI ARITHMO ASTHENOUS: \");\n\t\t\t}\n\t\t\t// Metakinw tous epomenous astheneis mia 8esi pio aristera\n\t\t\tfor(int k = tmp_1; k < numOfPatient - 1; k++)\n\t\t\t{\n\t\t\t\tpatient[k] = patient[k+1]; // Metakinw ton astheni sti 8esi k+1 pio aristera\n\t\t\t}\n\t\t\tnumOfPatient--; // Meiwse ton ari8mo twn asthenwn\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.print(\"\\nDEN YPARXOUN DIATHESIMOI ASTHENEIS PROS DIAGRAFH!\\n\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"double getLabel();",
"@Override\n\tpublic double netoAnual(double precio) {\n\t\treturn this.precio * 12;\n\t}",
"double getAxon();",
"public String getDocumentNote();",
"public static String convertNotation(String note){\n\t\tif(note.length() != 1){\n\t\t\tString temp = note.substring(0,1);\n\t\t\tif(note.substring(1, 2).equals(\"#\")){\n\t\t\t\tnote = noteDictionary[findInDict(temp) + 1];\n\t\t\t}\n\t\t\telse if(note.substring(1, 2).equals(\"b\")){\n\t\t\t\tnote = noteDictionary[findInDict(temp) - 1];\n\t\t\t}\n\t\t}\n\t\treturn note;\n\t}",
"public static double informationContent(double p, double n) {\n\t\tdouble pn = p + n;\n\t\t// Modified so that log(0) is treated as 0\n\t\tif (p == 0) {\n\t\t\treturn ((-p/pn) * 0) - ((n/pn) * (Math.log(n/pn)/Math.log(2)));\n\t\t}\n\t\telse if (n == 0) {\n\t\t\treturn ((-p/pn) * (Math.log(p/pn)/Math.log(2))) - ((n/pn) * 0);\n\t\t}\n\t\telse {\n\t\t\treturn ((-p/pn) * (Math.log(p/pn)/Math.log(2))) - ((n/pn) * (Math.log(n/pn)/Math.log(2)));\n\t\t}\n\t}",
"int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }",
"private double[] y_angle(VectorN x, double t, int p, VectorN s, int inoise){\r\n\t\t//int lx = x.length;\r\n\t\t\r\n\t\t//% Compute radial distance from Earth\r\n\t\tVectorN r = x.get(0,3);\r\n\t\t//double rmag=r.mag();\r\n\t\tVectorN v = new VectorN(3);\r\n\t\t//% Determine unit vector observation 1 (Either Earth or Moon)\r\n\t\tswitch(p){\r\n\t\tcase BODY_EARTH: //% Earth obs\r\n\t\t\tv=r.times(-1.0);\r\n\t\t\tbreak;\r\n\t\tcase BODY_MOON: //% Moon obs\r\n\t\t\t//% Get lunar position relative to the Earth\r\n\t\t\t//* TODO watch units\r\n\t\t\tVectorN xm=new VectorN(ephem.get_planet_pos(DE405_Body.GEOCENTRIC_MOON, TimeUtils.UTCtoTT(mjd0+t/86400)));\r\n\t\t\t//getmoon(jd0+t/86400); \r\n\t\t\tv=xm.minus(r);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.err.println(\"Invalid flag for vector observation 1.\");\r\n\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\tVectorN u=v.unitVector();\r\n\t\tMatrix eye = new Matrix(3);\r\n\t\tMatrix dudx=(eye.minus(u.outerProduct(u))).divide(v.mag()); \r\n\t\t\r\n\t\t//% Compute measurement cos(theta)\r\n\t\tdouble y=s.dotProduct(u);\r\n\t\t\r\n\t\tif (inoise==1){\r\n\t\t\tdouble[] arnd_abias = camerr(v.mag(),p); //% 1-sigma noise and bias on angular measurement\r\n\t\t\ty=Math.cos(Math.acos(y)+arnd_abias[0]*randn()+arnd_abias[1]);\r\n\t\t}else{\r\n\t\t\t//y= y + x.x[i_yanglebias];\r\n\t\t}\r\n\t\t\r\n\t\t//% Compute Jacobian\r\n\t\t//dydx= -[s'*dudx zeros(1,3)];\r\n\t\tVectorN tmp = new VectorN(s.times(dudx),new VectorN(3)).times(-1.0);\r\n\t\tdouble[] dydx= tmp.x;\r\n\t\t\r\n\t\t\r\n\t\t//% % Assume the bias is on the pseudo measurement rather than angle itself\r\n\t\t//% if lx==8\r\n\t\t//% y=y+x(7);\r\n\t\t//% dydx=[dydx 1 0];\r\n\t\t//% end\r\n\t\tdouble[] out = new double[x.length+1];\r\n\t\tout[0] = y;\r\n\t\tfor(int i=1; i<7; i++) out[i] = dydx[i-1];\r\n\t\treturn out;\r\n\t}",
"public abstract double getLikelihood(String command);",
"@Import(\"notedTemplate\")\n\tint getNote();",
"double angMomentum();",
"public void ektypwsiGiatrou() {\n\t\t// Elegxw an yparxoun iatroi\n\t\tif(numOfDoctors != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR DOCTOR No.\" + (i+1) + \":\");\n\t\t\t\tdoctor[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMOI GIATROI PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"private String AccelYConversion() {\n int reading = (((raw[17] & 0xFC) >> 2) + ((raw[18] & 0x0F) << 6));\n\n\n int y[] = fixBinaryString(Integer.toBinaryString(reading));\n return myUnsignedToSigned(y) + \"\";\n\n //System.out.println(\"Y \" + unsignedToSigned(reading ,10) * 0.1533);\n //return (reading * 0.1533) + \"\";\n }",
"@Override\n\tpublic String getDiscription() {\n\t\tsuper.discription = \"Latte\";\n\t\treturn \"Latte\";\n\t}",
"public double tongDoanhThuNgoaiThanh() {\n double doanhThu = 0;\n for (ChuyenXe cx : dsChuyenXe) {\n if (cx instanceof ChuyenXeNgoaiThanh) {\n doanhThu += cx.doanhThu;\n }\n }\n return doanhThu;\n }",
"public static int getNote(MidiMessage mes){\r\n\t\tif (!(mes instanceof ShortMessage))\r\n\t\t\treturn 0;\r\n\t\tShortMessage mes2 = (ShortMessage) mes;\r\n\t\tif (mes2.getCommand() != ShortMessage.NOTE_ON)\r\n\t\t\treturn 0;\t\r\n\t\tif (mes2.getData2() ==0) return -mes2.getData1();\r\n\t\treturn mes2.getData1();\r\n\t}",
"static ArrayList<String> tag(ArrayList<String> rawWords){\n\t\tArrayList<String> outSentence = new ArrayList<String>();\n\t\t//String[][] chart = new String[rawWords.size()][rawWords.size()];\n\t\tfor(int i = 0; i<rawWords.size(); i++){\n\t\t\tString[] entry = rawWords.get(i).split(\"\\\\s+\");\n\t\t\tString word = entry[0];\n\t\t\tString pos = entry[1];\n\t\t\tSystem.out.println(word);\n\t\t\tif((pos.equals(\"NNP\")||word.equals(\"tomorrow\"))&&rawWords.get(i-1).split(\"\\\\s+\")[0].equals(\"due\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tint j = i+1;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"NN\")||next.equals(\"NNP\")||next.equals(\"NNS\")||next.equals(\"NNPS\")||next.equals(\"CD\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}\n\t\t\telse if (pos.equals(\"CD\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\tint j = i+1;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tif((rawWords.get(j).split(\"\\\\s\")[1].equals(\"CC\")&&rawWords.get(j-1).split(\"\\\\s\")[1].equals(\"CD\")&&rawWords.get(j+1).split(\"\\\\s\")[1].equals(\"CD\"))||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NN\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNP\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNPS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"CD\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"CD\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"%\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tif(rawWords.get(j).split(\"\\\\s\")[0].equals(\"to\")&&rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"up\")){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if(rawWords.get(j).split(\"\\\\s\")[1].equals(\"#\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"PRP$\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJ\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJR\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"$\")){\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t}\n\t\t\t\t\telse if(rawWords.get(j).split(\"\\\\s\")[1].equals(\"POS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"DT\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"approximately\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"around\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"almost\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"about\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[0].equals(\"as\")&&(rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"many\")||rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"much\"))&&rawWords.get(j-2).split(\"\\\\s\")[0].equals(\"as\")){\n\t\t\t\t\t\tbeginning-=3;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[1].equals(\"VBN\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"RB\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[1].equals(\"VBN\")&&j>1&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\")&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"RB\")))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if((rawWords.get(j).split(\"\\\\s\")[1].equals(\"RBR\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"not\"))&&rawWords.get(j+1).split(\"\\\\s+\")[1].equals(\"JJ\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse{\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\n\t\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t\t}\n\t\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t\t}\n\t\t\t\t\ti=ending;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*else if(pos.equals(\"CD\")&&rawWords.get(i-1).split(\"\\\\s+\")[0].equals(\"$\")&&rawWords.get(i-2).split(\"\\\\s+\")[1].equals(\"IN\")){\n\t\t\t\tint beginning=i;\n\t\t\t\tint ending = i;\n\t\t\t\tint j=i+1;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"CD\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tString prior=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tString priorWord = rawWords.get(j).split(\"\\\\s\")[0];\n\t\t\t\t\tif(prior.equals(\"$\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s+\")[0].equals(\"as\")&&rawWords.get(j-1).split(\"\\\\s+\")[0].equals(\"much\")&&rawWords.get(j-2).split(\"\\\\s+\")[0].equals(\"as\")){\n\t\t\t\t\t\tbeginning -=3;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t\tj -=3;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"IN\")){\n\t\t\t\t\t\tbeginning --;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\telse\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}*/\n\t\t\t//else if(pos.equals(arg0))\n\t\t\telse if(pos.equals(\"PRP\")||pos.equals(\"WP\")||word.equals(\"those\")||pos.equals(\"WDT\")){\n\t\t\t\tint beginning = i;\n\t\t\t\t//int ending = i;\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t}\n\t\t\telse if(word.equals(\"anywhere\")&&rawWords.get(i+1).split(\"\\\\s+\")[0].equals(\"else\")){\n\t\t\t\toutSentence.add(\"anywhere\\tB-NP\");\n\t\t\t\toutSentence.add(\"else\\tI-NP\");\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t/*else if (word.equals(\"same\")&&rawWords.get(i-1).split(\"\\\\s\")[0].equals(\"the\")){\n\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\tString nounGroupLine = \"the\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tnounGroupLine = \"same\\tI-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t}*/\n\t\t\telse if(pos.equals(\"NN\")||pos.equals(\"NNS\")||pos.equals(\"NNP\")||pos.equals(\"NNPS\")||pos.equals(\"CD\")/*||pos.equals(\"PRP\")*/||pos.equals(\"EX\")||word.equals(\"counseling\")||word.equals(\"Counseling\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tboolean endFound = false;\n\t\t\t\tint j = i+1;\n\t\t\t\twhile(!endFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"NN\")||next.equals(\"NNS\")||next.equals(\"NNP\")||next.equals(\"NNPS\")||next.equals(\"CD\")||(next.equals(\"CC\")&&rawWords.get(j-1).split(\"\\\\s\")[1].equals(rawWords.get(j+1).split(\"\\\\s\")[1]))){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendFound = true;\n\t\t\t\t}\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tString[] pArray = rawWords.get(j).split(\"\\\\s+\");\n\t\t\t\t\tString prior = pArray[1];\n\t\t\t\t\tif(j>2 &&prior.equals(rawWords.get(j-2).split(\"\\\\s+\")[1])&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"CC\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\"))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if(prior.equals(\"JJ\")||prior.equals(\"JJR\")||prior.equals(\"JJS\")||prior.equals(\"PRP$\")||prior.equals(\"RBS\")||prior.equals(\"$\")||prior.equals(\"RB\")||prior.equals(\"NNP\")||prior.equals(\"NNPS\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBN\")&&j>1&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\")&&(rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"RB\")))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBN\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"RB\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBG\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if((prior.equals(\"RBR\")||pArray[0].equals(\"not\"))&&rawWords.get(j+1).split(\"\\\\s+\")[1].equals(\"JJ\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if((pArray[0].equals(\"Buying\")||pArray[0].equals(\"buying\"))&&rawWords.get(j+1).split(\"\\\\s+\")[0].equals(\"income\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if(pArray[0].equals(\"counseling\")||pArray[0].equals(\"Counseling\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tif(rawWords.get(j).split(\"\\\\s+\")[1].equals(\"NN\")){\n\t\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\t\tj--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (prior.equals(\"DT\")||prior.equals(\"POS\")){\n\t\t\t\t\t\t//j--;\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tif(!rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\"))\n\t\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tString outLine = word+\"\\tO\";\n\t\t\t\toutSentence.add(outLine);\n\t\t\t}\n\t\t}\n\t\toutSentence.remove(0);\n\t\toutSentence.remove(outSentence.size()-1);\n\t\toutSentence.add(\"\");\n\t\treturn outSentence;\n\t}",
"@Override\r\n\tpublic String getNotationExample()\r\n\t{\r\n\t\treturn \"(turn 'direction')\";\r\n\t}",
"public String getOutputNominalValues(int pos){\r\n\t\treturn nominalValues[1][pos];\r\n\t}",
"double getExpoBracketingStopsPref();",
"private void printNotes(AbstractInscription... inscs) {\n\t\tfor (AbstractInscription insc : inscs) {\n\t\t\tSystem.out.println(String.format(\n\t\t\t\t\t\"Inscription '%s' : note min = %s, note max = %s, note objectif = %s, note réelle = %s, acquis réel = %s\\r\\n\",\n\t\t\t\t\tinsc, insc.getCalculateur().getNoteMin(), insc.getCalculateur().getNoteMax(),\n\t\t\t\t\tinsc.getCalculateur().getNoteObjectif(), insc.getCalculateur().getNoteReelle(),\n\t\t\t\t\tinsc.getCalculateur().getAcquisReel()));\n\t\t}\n\t}",
"public String getDenotation(){\n return this.denotation;\n }",
"public void drawAngleInfo(){\n\t\tfont2.draw(batch, (\"The angle of Projection is \" + angle),(float)(screenWidth * .45), 20);\n\t}",
"public NoteDuration getNoteDuration(int duration)\n\t{\n\t\tint whole = quarternote * 4;\n\t\t//\t\t 1 = 32/32\n\t\t//\t\t 3/4 = 24/32\n\t\t//\t\t 1/2 = 16/32\n\t\t//\t\t 3/8 = 12/32\n\t\t//\t\t 1/4 = 8/32\n\t\t//\t\t 3/16 = 6/32\n\t\t//\t\t 1/8 = 4/32 = 8/64\n\t\t//\t\t triplet = 5.33/64\n\t\t//\t\t 1/16 = 2/32 = 4/64\n\t\t//\t\t 1/32 = 1/32 = 2/64\n\n\t\tif (duration >= 28 * whole / 32)\n\t\t return NoteDuration.Whole;\n\t\telse if (duration >= 20 * whole / 32)\n\t\t return NoteDuration.DottedHalf;\n\t\telse if (duration >= 14 * whole / 32)\n\t\t return NoteDuration.Half;\n\t\telse if (duration >= 10 * whole / 32)\n\t\t return NoteDuration.DottedQuarter;\n\t\telse if (duration >= 7 * whole / 32)\n\t\t return NoteDuration.Quarter;\n\t\telse if (duration >= 5 * whole / 32)\n\t\t return NoteDuration.DottedEighth;\n\t\telse if (duration >= 6 * whole / 64)\n\t\t return NoteDuration.Eighth;\n\t\telse if (duration >= 5 * whole / 64)\n\t\t return NoteDuration.Triplet;\n\t\telse if (duration >= 3 * whole / 64)\n\t\t return NoteDuration.Sixteenth;\n\t\telse if (duration >= 2 * whole / 64)\n\t\t return NoteDuration.ThirtySecond;\n\t\telse if (duration >= whole / 64)\n\t\t return NoteDuration.SixtyFour; // TODO : EXTEND UNTIL 1/128 to be able to extract the onset in SYMBOLIC representation\n\t\telse if (duration >= whole / 128)\n\t\t return NoteDuration.HundredTwentyEight;\n\t\telse\n\t\t return NoteDuration.ZERO;\n\t}",
"public String getDia() {\n\t\treturn this.dia;\n\t}",
"private void getNotes(MusicCircle circle){\n\t\tif(! circle.isMuted()){\n\t\t\tfor(int i=0; i<circle.getNumNotes(); i++){\n\t\t\t\tif( circle.getS(i) != SILENCE) note(circle.getT(i) + loopOffset, circle.getD(i), Fofs(circle.getS(i) + circle.getBaseSemitone()));\n\t\t\t}\n\t\t}\n\t}",
"public void leerAlimentos();",
"public void tagOnlyNomorDua() {\r\n Iterator<Kalimat> iterSatu = MarkovCore.TAG_ONLY.iterator();\r\n while (iterSatu.hasNext()) {\r\n Kalimat kalimat = iterSatu.next();\r\n System.out.println(kalimat.getRawKalimat());\r\n System.out.println(kalimat.getBigramProbability(Kalimat.TAG_ONLY));\r\n }\r\n }",
"public double tongDoanhThu() {\n double doanhThu = 0;\n for (ChuyenXe cx : dsChuyenXe) {\n doanhThu += cx.doanhThu;\n }\n return doanhThu;\n }",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }",
"private String getPoints(){\n\t\tString pu = \" punts.\";\n\t\tif(points == 1){\n\t\t\tpu = \" punt.\";\n\t\t}\n\t\treturn \"Puntuació de \" + points + pu;\n\t}",
"public double tongDoanhThuNoiThanh() {\n double doanhThu = 0;\n for (ChuyenXe cx : dsChuyenXe) {\n if (cx instanceof ChuyenXeNoiThanh) {\n doanhThu += cx.doanhThu;\n }\n }\n return doanhThu;\n }",
"public String getIndicate() {\n return indicate;\n }",
"public String toString() {\n\t\treturn \"PoseDelta<\" + this.angleDelta + \", \" + this.distanceDelta + \">\"; \n\t}",
"@Override\r\n\t\tpublic String nazivLika() {\r\n\t\t\treturn \"ELIPSA\";\r\n\t\t}",
"public String GetStatoNaveS() {\n if (this.stato == statonave.INDENNE) {\r\n return \"indenne\";\r\n }\r\n if (this.stato == statonave.COLPITA) {\r\n return \"colpita\";\r\n }\r\n if (this.stato == statonave.AFFONDATA) {\r\n return \"affondata\";\r\n } else {\r\n return \"non c'è alcuna nave!\";\r\n }\r\n }",
"@Override\n\tdouble dienTich() {\n\t\tdouble p = chuVi() / 2;\n\t\treturn Math.sqrt(p*(p-canhA)*(p-canhB)*(p-canhC));\n\t}",
"private String pedometerConversion() {\n return (record[20] & 255) + \"\";\n }",
"public void decidiOrdine() {\n\r\n }",
"public double ang()\n {\n \treturn Math.atan(y/x);\n }",
"public String getIndicative() {\n\t\treturn null;\r\n\t}",
"private void mostrarArrayDNI(String[] arrayDNI) {\r\n System.out.println(\"\\nDNI Introduïts\");\r\n System.out.println(\"--------------\");\r\n for (int x = 0; x < arrayDNI.length; x++) {\r\n System.out.println(arrayDNI[x]);\r\n }\r\n System.out.println(\"\\n\");\r\n }",
"private double calculaDiametro(){\r\n double diametro;\r\n diametro=((cir.getY()-cir.getX())*2);\r\n return diametro;\r\n }",
"public static Annotation ruleResolvePronoun(Annotation[] basenps, int num, Document doc)\r\n{\n Annotation np2 = basenps[num];\r\n // Get some properties of the np\r\n FeatureUtils.PRTypeEnum type2 = Pronoun.getValue(np2, doc);\r\n String str2 = doc.getAnnotString(np2);\r\n boolean reflexive = FeatureUtils.isReflexive(str2);\r\n // Get the possible antecedents\r\n ArrayList<Annotation> antes = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums = new ArrayList<Integer>();\r\n if (DEBUG) {\r\n System.err.println(\"Pronoun: \" + doc.getAnnotText(np2));\r\n }\r\n if (FeatureUtils.getPronounPerson(str2) == PersonPronounTypeEnum.FIRST) {\r\n if (NumberEnum.SINGLE.equals(Number.getValue(np2, doc)))\r\n return ruleResolvePronounI(np2, basenps, num, doc);\r\n else\r\n return ruleResolvePronounWe(np2, basenps, num, doc);\r\n }\r\n if (FeatureUtils.getPronounPerson(str2) == PersonPronounTypeEnum.SECOND)\r\n return ruleResolvePronounYou(np2, basenps, num, doc);\r\n else {\r\n int sentnum = 0;\r\n for (int i = num - 1; i >= 0 && sentnum <= 3; i--) {\r\n Annotation np1 = basenps[i];\r\n sentnum = sentNum(np1, np2, doc);\r\n if (DEBUG) {\r\n System.err.println(\"Possible antecedent: \" + i + \" :\" + doc.getAnnotText(np1));\r\n }\r\n if (!isNumberIncompatible(np1, np2, doc) && !isGenderIncompatible(np1, np2, doc)\r\n && !isAnimacyIncompatible(np1, np2, doc) && isWNClassComp(np1, np2, doc) && isProComp(np1, np2, doc)\r\n && !Embedded.getValue(np1, doc) && isSyntax(np1, np2, doc)) {\r\n if (DEBUG) {\r\n System.err.println(\"Candidate antecedent: \" + i + \" :\" + doc.getAnnotText(np1));\r\n }\r\n antes.add(0, np1);\r\n nums.add(0, i);\r\n }\r\n }\r\n }\r\n if (antes.size() == 0) return null;\r\n // Check for reflexsives\r\n if (FeatureUtils.isReflexive(doc.getAnnotText(np2))) {\r\n union(nums.get(nums.size() - 1).intValue(), num);\r\n return antes.get(antes.size() - 1);\r\n }\r\n if (antes.size() == 1) {\r\n // Rule 1: Unique in discourse\r\n if (DEBUG) {\r\n System.err.println(\"Rule 1 match!!!\");\r\n }\r\n union(nums.get(0).intValue(), num);\r\n return antes.get(0);\r\n }\r\n // Rule 2: Reflexive -- the last possible antecedent\r\n if (reflexive) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 2 match!!!\");\r\n }\r\n union(nums.get(nums.size() - 1).intValue(), num);\r\n return antes.get(antes.size() - 1);\r\n }\r\n // Rule 3: Unique current + Prior\r\n ArrayList<Annotation> antes1 = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums1 = new ArrayList<Integer>();\r\n int counter = 0;\r\n for (Annotation np1 : antes) {\r\n if (sentNum(np1, np2, doc) < 2) {\r\n antes1.add(np1);\r\n nums1.add(nums.get(counter));\r\n }\r\n counter++;\r\n }\r\n if (antes1.size() == 1) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 3 match!!!\");\r\n }\r\n union(nums1.get(0).intValue(), num);\r\n return antes1.get(0);\r\n }\r\n // Rule 4: Possesive Pro\r\n\r\n if (FeatureUtils.isPossesive(str2) && antes1.size() > 0) {\r\n Integer found = null;\r\n Annotation ant = null;\r\n boolean multiple = false;\r\n for (int i = 0; i < antes1.size() && !multiple; i++) {\r\n Annotation np1 = antes1.get(i);\r\n if (doc.getAnnotText(np1).equalsIgnoreCase(str2) && sentNum(np1, np2, doc) == 1) {\r\n if (found == null) {\r\n found = nums1.get(i);\r\n ant = antes1.get(i);\r\n }\r\n else {\r\n multiple = true;\r\n }\r\n }\r\n }\r\n if (!multiple && found != null) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 4 match!!!\");\r\n }\r\n union(found.intValue(), num);\r\n return ant;\r\n }\r\n }\r\n // Rule #5: Unique in the current sentence\r\n ArrayList<Annotation> antes2 = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums2 = new ArrayList<Integer>();\r\n counter = 0;\r\n for (Annotation np1 : antes1) {\r\n if (sentNum(np1, np2, doc) < 1) {\r\n antes2.add(np1);\r\n nums2.add(nums1.get(counter));\r\n }\r\n counter++;\r\n }\r\n if (antes2.size() == 1) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 5 match!!!\");\r\n }\r\n union(nums2.get(0).intValue(), num);\r\n return antes2.get(0);\r\n }\r\n // Extra Rule: Unique in the current clause (or parent clauses\r\n AnnotationSet parse = doc.getAnnotationSet(Constants.PARSE);\r\n Annotation clause = SyntaxUtils.getClause(np2, parse);\r\n while (clause != null) {\r\n ArrayList<Annotation> antes3 = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums3 = new ArrayList<Integer>();\r\n counter = 0;\r\n for (Annotation np1 : antes2) {\r\n if (clause.covers(np1)) {\r\n antes3.add(np1);\r\n nums3.add(nums2.get(counter));\r\n }\r\n counter++;\r\n }\r\n if (DEBUG) {\r\n System.err.println(antes3.size() + \" antecedents in the clause\");\r\n }\r\n if (antes3.size() == 1) {\r\n if (DEBUG) {\r\n System.err.println(\"Clause rule match!!!\");\r\n }\r\n union(nums3.get(0).intValue(), num);\r\n return antes3.get(0);\r\n }\r\n clause = SyntaxUtils.getParentClause(clause, parse);\r\n }\r\n\r\n // Rule #6: Unique Subject\r\n\r\n // //Look for the subject in the current sentence\r\n // boolean unique = true;\r\n // Annotation subject = null;\r\n // Integer subjectNum = null;\r\n // for(int i=antes.size()-1; i>=0; i--){\r\n // Annotation np1 = antes.get(i);\r\n // if(sentNum(np1, np2, annotations, text)==0){\r\n // if(FeatureUtils.getGramRole(np1, annotations, text).equals(\"SUBJECT\")){\r\n // //&&SyntaxUtils.isMainClause(np1, parse)){\r\n // if(DEBUG)\r\n // System.err.println(\"Rule 6 match!!!\");\r\n // if(subjectNum!=null)\r\n // unique=false;\r\n // subjectNum = nums.get(i);\r\n // subject = antes.get(i);\r\n // }\r\n // }\r\n // }\r\n\r\n // if(subject!=null&&unique){\r\n // union(subjectNum.intValue(), num);\r\n // return subject;\r\n // }\r\n\r\n // Look for the subject in the previous sentence\r\n boolean unique = true;\r\n Annotation subject = null;\r\n Integer subjectNum = null;\r\n if (GramRole.getValue(np2, doc).equals(\"SUBJECT\")) {\r\n // &&SyntaxUtils.isMainClause(np2, parse)){\r\n for (int i = antes.size() - 1; i >= 0; i--) {\r\n Annotation np1 = antes.get(i);\r\n if (sentNum(np1, np2, doc) == 1) {\r\n if (GramRole.getValue(np1, doc).equals(\"SUBJECT\")) {\r\n // &&SyntaxUtils.isMainClause(np1, parse)){\r\n if (DEBUG) {\r\n System.err.println(\"Rule 6 match!!!\");\r\n }\r\n if (subjectNum != null) {\r\n unique = false;\r\n }\r\n subjectNum = nums.get(i);\r\n subject = antes.get(i);\r\n }\r\n }\r\n }\r\n }\r\n if (subject != null && unique) {\r\n union(subjectNum.intValue(), num);\r\n return subject;\r\n }\r\n subjectNum = null;\r\n subject = null;\r\n\r\n // One more Rule -- assign possessive pronouns to the last subject\r\n if (type2.equals(FeatureUtils.PRTypeEnum.POSSESSIVE)) {\r\n for (int i = antes.size() - 1; i >= 0; i--) {\r\n Annotation np1 = antes.get(i);\r\n if (sentNum(np1, np2, doc) == 0) {\r\n if (GramRole.getValue(np1, doc).equals(\"SUBJECT\")) {\r\n // &&SyntaxUtils.isMainClause(np1, parse)){\r\n if (DEBUG) {\r\n System.err.println(\"Rule 6a match!!!\");\r\n }\r\n if (subject == null) {\r\n subjectNum = nums.get(i);\r\n subject = antes.get(i);\r\n }\r\n }\r\n }\r\n }\r\n if (subject != null) {\r\n union(subjectNum.intValue(), num);\r\n return subject;\r\n }\r\n }\r\n\r\n return null;\r\n}",
"@SuppressWarnings(\"unused\")\r\n private void findAbdomenVOI() {\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 39; angle < 45; angle += 3) {\r\n int x, y, yOffset;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n scaleFactor = Math.tan(angleRad);\r\n x = xDim;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x > xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x--;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n x = xcm;\r\n y = 0;\r\n yOffset = y * xDim;\r\n while (y < ycm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n y++;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n x = 0;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x < xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x++;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 225 && angle <= 315) {\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n x = xcm;\r\n y = yDim;\r\n yOffset = y * xDim;\r\n while (y < yDim && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n y--;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n }\r\n } // end for (angle = 0; ...\r\n \r\n int[] x1 = new int[xValsAbdomenVOI.size()];\r\n int[] y1 = new int[xValsAbdomenVOI.size()];\r\n int[] z1 = new int[xValsAbdomenVOI.size()];\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n x1[idx] = xValsAbdomenVOI.get(idx);\r\n y1[idx] = xValsAbdomenVOI.get(idx);\r\n z1[idx] = 0;\r\n }\r\n\r\n // make the VOI's and add the points to them\r\n abdomenVOI = new VOI((short)0, \"Abdomen\");\r\n abdomenVOI.importCurve(x1, y1, z1);\r\n\r\n\r\n }",
"public void eisagwgiSintagis() {\n\t\t//Elegw ean mporei na eisaxthei suntagi\n\t\tif(numOfMedicine != 0 && numOfDoctors != 0 && numOfPatient != 0 && numOfPrescription < 1000) \n\t\t{\n\t\t\ttmp_1 = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn giatrwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA IATROU: \");\n\t \t \tdoctor[i].print();\n\t \t \tSystem.out.println();\n\t\t\t}\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston giatro pou egrapse thn syntagh\n\t\t\ttmp_1 = sir.readPositiveInt(\"EPILEKSTE TON GIATRO POU EGGRAPSE THN SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o giatros pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfDoctors - 1)\n\t \t {\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"DEN YPARXEI GIATROS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\ti = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn asthenwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfPatient; i++)\n\t\t {\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA ASTHENOUS: \");\n\t patient[i].print();\n\t System.out.println();\n\t\t }\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston as8enh gia ton opoio proorizetai i syntagh\n\t\t\ti = sir.readPositiveInt(\"EPILEKSTE TON ASTHENH GIA TON OPOIO PROORIZETAI H SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o as8enhs pou edwse o xristis\n\t\t\twhile(i < 0 || i > numOfPatient - 1)\n\t \t {\n\t\t\t\ti = sir.readPositiveInt(\"DEN YPARXEI ASTHENHS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\t// O xristis eisagei tn synoliko ar8mo farmakwn pou 8a exei h syntagh\n\t\t\tSystem.out.println();\n\t\t\ttmp_2= sir.readPositiveInt(\"EISAGETAI TON ARITHMO TWN FARMAKWN POU EPITHUMEITAI NA EXEI H SYNTAGH(1-6): \");\n\t\t\t// Elegxw an o ari8mos twn farmakwn pou edwse o xristis einai egkyros\n\t\t\twhile(tmp_2 < 0 || tmp_2 > 6)\n\t \t {\n\t\t\t\ttmp_2 = sir.readPositiveInt(\"PARAKALW KSANAEISAGETAI SYNOLIKO ARITHMO FARMAKWN(1-6): \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t// Apo8ikeuw tis times ston constructor Syntagi\n\t\t\tprescription[numOfPrescription] = new Syntagi(doctor[tmp_1], patient[i], sir.readDate(\"\\nEISAGETAI THN HMEROMHNIA EGGRAFHS THS SYNTAGHS: \"), tmp_2);\n\t\t\t\n\t\t\tprescription[numOfPrescription].dimiourgiaPinakaFarmakwn(); // Kalw tin methodo auti gia na dimiourgisw ton pinaka me ton arithmo twn farmakwn pou mou edwse o xrhsths\n\t\t\t\n\t\t\t// Emfanizw to synolo twn farmakwn\n\t\t\tfor(i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA FARMAKOU: \");\n\t\t\t\tmedicine[i].print();\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < tmp_2; i++)\n \t \t{\n\t\t\t\ta = i + 1; \n\t\t\t\t// An h syntagh apoteleitai apo perissotera tou enos farmaka tote...\n\t\t\t\tif(tmp_2 != 1)\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS \" + a + \"ou FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA \" + a + \"ou FARMAKOU: \");\n \t \t \tSystem.out.println();\n \t \t \t}\n\t\t\t\t// An h syntagh apoteleitai apo ena farmako tote...\n\t\t\t\telse\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA FARMAKOU: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t// Elegxw an o ari8mos pou edwse o xristis einai egkyros\n\t\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfMedicine - 1)\n \t \t \t{\n \t \t \t\ttmp_1 = sir.readPositiveInt(\"EISAGATAI LATHOS DEDOMENA!DWSTE KSANA TIMH: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t\n\t\t\t\tprescription[numOfPrescription].gemismaPinakaFarmakwn(i, medicine[tmp_1], tmp_3); // Kalw tin methodo auti gia na gemisw ton pinaka twn farmakwn pou dimiourgisa proigoumenws\n \t \t}\n\t\t\tnumOfPrescription++;\n\t\t}\n\t\t// Elegxw pote den mporei na eisaxthei syntagh\n\t\telse\n\t\t{\n\t\t\t// An oi syntages pou exoun eisaxthei xeperasan to epitrepto orio\n\t\t\tif(numOfPrescription >= 1000)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN MPOREITAI NA EISAGETAI ALLES SYNTAGES!EXEI KALIFTHEI O MEGISTOS ARITHMOS TOUS\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi, astheneis kai farmaka sto farmakeio\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0 && numOfMedicine == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI, ASTHENEIS KAI FARMAKA WSTE NA OLOKLIRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS, ASTHENEIS KAI FARMAKA!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi kai astheneis\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI ASTHENEIS!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi kai farmaka\n\t\t\telse if(numOfDoctors == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun astheneis kai farmaka\n\t\t\telse if(numOfPatient == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi\n\t\t\telse if (numOfDoctors == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n \t\t \t// An den yparxoun astheneis\n\t\t\telse\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t}\n\t}",
"public double getNoteDistance() {\n\t\treturn noteDistance;\n\t}",
"public static void show(int[] kd){\n final int NUM_OF_LINES = 5;\n\n Line[] lines = new Line[NUM_OF_LINES];\n\n //gives each array element the necessary memory\n for(int i = 0; i < NUM_OF_LINES; i++){\n lines[i] = new Line();\n }\n\n //in order to print\n lines[0].setLine(4,0,0);\n lines[1].setLine(3,1,2);\n lines[2].setLine(2,3,5);\n lines[3].setLine(1,6,9);\n lines[4].setLine(0,10,14);\n\n for(int i = 0; i < NUM_OF_LINES; i++){\n String tab = \"\";\n\n //creates the 'tab' effect based on position\n for(int j = 0; j < lines[i].getT(); j++){\n tab += \" \";\n }\n System.out.print(tab);\n\n for(int j = lines[i].getA(); j < lines[i].getB() + 1; j++){\n if(kd[j] == 0){\n System.out.print(\". \");\n }\n else{\n System.out.print(\"x \");\n }\n }\n System.out.println();\n }\n\n }",
"@Override\n\tpublic double DienTich() {\n\t\treturn (canhGoc*canhGoc);\n\t}",
"private static String getSinOrPluOfPro(AnalyzedTokenReadings token) {\n if(!token.hasPartialPosTag(\"PRO:PER:\") && !token.hasPosTagStartingWith(\"IND:\")) {\n return null;\n }\n String ret = \"\";\n int nMatches = 0;\n if(token.matchesPosTagRegex(\".*:SIN.*\")) {\n ret += \"SIN\";\n nMatches++;\n }\n if(token.matchesPosTagRegex(\".*:PLU.*\")) {\n if(!ret.isEmpty()) {\n ret += \"|\";\n }\n ret += \"PLU\";\n nMatches++;\n }\n if(nMatches > 1) {\n ret = \"(\" + ret + \")\";\n }\n return ret;\n }",
"double getPerimetro(){\n return 2 * 3.14 * raggio;\n }",
"public String buildDotString(){\n\t\tString ret=\"digraph NFA{\\n\";\n\t\tint numStarts=0;\n\t\tfor (State s : theStates){\n\t\t\tif(s.getAccept())\n\t\t\t\tret+=\"\\t\"+s.getIndex()+\"[shape=doublecircle]\\n\";\n\t\t\tif(s.getStart()){\n\t\t\t\tString startlbl=\"start\"+(numStarts++);\n\t\t\t\tret+=\"\\t\"+startlbl+\"[shape=none,label=\\\"\\\"]\\n\";\n\t\t\t\tret+=\"\\t\"+startlbl+\"->\"+s.getIndex()+\"[color=green]\\n\";\n\t\t\t}\n\t\t\tfor (Object withChar : s.getToStates().keySet()){\n\t\t\t\t//TODO: combine arrows with same from/to\n\t\t\t\tfor (Integer toNode : (ArrayList<Integer>)s.getToStates().get(withChar)){\n\t\t\t\t\t//find similar arrows\n\t\t\t\t\tString arrowName=(String)withChar;\n\t\t\t\t\t/*for (Object otherChar : s.getToStates().keySet()){\n\t\t\t\t\t\tfor (Integer sameNodeIdx : (ArrayList<Integer>)s.getToStates().get(withChar)){\n\t\t\t\t\t\t\tif(sameNodeIdx==toNode) arrowName+=\",\"+otherChar;\n\t\t\t\t\t\t}\n\t\t\t\t\t}*/\n\t\t\t\t\tret+=\"\\t\"+s.getIndex()+\" -> \"+toNode+\"[label=\\\"\"+arrowName+\"\\\"]\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tret+=\"}\";\n\t\treturn ret;\n\t}",
"public static void getConfig(){\n\t\tSystem.out.println(\"Name = \" + name);\n\t\tSystem.out.println(\"PrepositionLength = \" + prepositionLength);\n\t\tSystem.out.println(\"PrepositionDelay = \" + prepositionDelay );\n\t\tSystem.out.println(\"Strings = \" + setOfStrings.length);\n\t\tfor(int i = 0; i < setOfStrings.length; i++){\n\t\t\tSystem.out.println(\"LowNote = \" + setOfStrings[i].lowNote);\n\t\t\tSystem.out.println(\"HighNote = \" + setOfStrings[i].highNote);\n\t\t\tString output = \"\";\n\t\t\tfor(int j = 0; j < setOfStrings[i].interval.length;j++){\n\n\t\t\t\toutput += setOfStrings[i].interval[j] + \",\";\n\t\t\t}\n\t\t\tSystem.out.println(output);\n\t\t}\n\t}",
"public int toMidi(Note n) {\n\n int normIndex = n.getNoteIndex() + numOffset + (7 * octaveOffset);\n int numOctaves = normIndex/7;\n\n int midiAddend = MIDI_OFFSETS[normIndex - (7*numOctaves)];\n\n return 38 + midiAddend + 12*numOctaves; // 37 is low D\n }",
"public void printNo(String numar)\r\n {\r\n //toate verificarile posibile pentru a afisa ce trebuie\r\n //mi-e lene sa scriu la fiecare in parte, daca vrei ti le explic la telefon\r\n if(Character.getNumericValue(numar.charAt(0)) ==0 && Character.getNumericValue(numar.charAt(1)) == 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else{\r\n if(Character.getNumericValue(numar.charAt(0)) > 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(0))] + \" hundread \");\r\n }\r\n if(Character.getNumericValue(numar.charAt(1)) == 1){\r\n System.out.print(v1[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else if (Character.getNumericValue(numar.charAt(1)) > 1 && Character.getNumericValue(numar.charAt(2)) > 0){\r\n System.out.print(v2[Character.getNumericValue(numar.charAt(1)) - 2] + v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else if(Character.getNumericValue(numar.charAt(2)) == 0 && Character.getNumericValue(numar.charAt(1)) > 1){\r\n System.out.print(v2[Character.getNumericValue(numar.charAt(1)) - 2] + \" \");\r\n }\r\n if(Character.getNumericValue(numar.charAt(1)) == 0 && Character.getNumericValue(numar.charAt(2)) > 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n }\r\n }",
"public String getOndaP2() {\r\n return ondaP2;\r\n }",
"public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}",
"public double dlugoscOkregu() {\n\t\treturn 2 * Math.PI * promien;\n\t}",
"public void ektypwsiAstheni() {\n\t\t// Elegxw an yparxoun astheneis\n\t\tif(numOfPatient != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR PATIENT No.\" + (i+1) + \":\");\n\t\t\t\tpatient[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static String getSexagesinal(double num, boolean lat) {\r\n\r\n\t\tString result = \"\";\r\n\t\tString ori = \"\";\r\n\t\t\r\n\t\t// Setting up North or South and East or West\r\n\t\tif (num < 0) {\r\n\t\t\tnum = num * (-1);\r\n\t\t\tif (lat) {\r\n\t\t\t\tori = east;//south;// Messages.getText(\"South\");\r\n\t\t\t} else {\r\n\t\t\t\tori = north;//north;// Messages.getText(\"North\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (lat) {\r\n\t\t\t\tori = west;//west;// Messages.getText(\"West\");\r\n\t\t\t} else {\r\n\t\t\t\tori = south;//east;// Messages.getText(\"East\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// transform degrees in sexagesinal format\r\n\t\tint grados = (int) num;\r\n\t\tdouble resG = num - grados;\r\n\t\tint minutos = (int) (resG * 60);\r\n\t\tdouble minutosD = (resG * 60);\r\n\t\tdouble resM = minutosD - minutos;\r\n\t\tint segundos = (int) (resM * 60);\r\n\t\tString cadG = \"\";\r\n\t\tif (grados < 10)\r\n\t\t\tcadG = cadG + \"0\";\r\n\t\tcadG = cadG + grados;\r\n\r\n\t\tString cadM = \"\";\r\n\t\tif (minutos < 10)\r\n\t\t\tcadM = cadM + \"0\";\r\n\t\tcadM = cadM + minutos;\r\n\r\n\t\tString cadS = \"\";\r\n\t\tif (segundos < 10)\r\n\t\t\tcadS = cadS + \"0\";\r\n\t\tcadS = cadS + segundos;\r\n\r\n\t\t// Building result string\r\n\t\tresult = cadG + \" \" + cadM + \" \" + cadS + \" \" + ori;\r\n\r\n\t\treturn result;\r\n\t}",
"@Override\r\n public String toString() {\r\n return \"Nodo: \" + this.dato.toString();\r\n }",
"java.lang.String getNotes();",
"java.lang.String getNotes();",
"public String lookupCodon( String codon )\n {\n // capitalize and replace U's with T's because the code tables are in terms of T's\n codon = codon.toUpperCase();\n codon = codon.replace('U','T');\n\n\n\n String letter = \"\";\n String outputStr = \"\";\n\n if (code.equals(\"Standard\"))\n {\n for (int i = 0; i < stdTranCodeAA.length(); i++)\n {\n\n letter = String.valueOf(stdTranCodeAA.charAt(i)); // takes one char as a string\n\n if ( stdTranCode[i].equals( codon ) )\n {\n for (int j = 0; j < stdTranCodeStart.length; j++)\n {\n if ( stdTranCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Drosophila Mitochondrial\"))\n {\n for (int i = 0; i < drosMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(drosMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( drosMitoCode[i].equals( codon ) )\n {\n if ( ( letter.equals(\"I\") ) || ( letter.equals(\"M\") ) )\n {\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n \n else if (code.equals(\"Vertebrate Mitochondrial\"))\n {\n for (int i = 0; i < vertMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(vertMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( vertMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < vertMitoCodeStart.length; j++)\n {\n if ( vertMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Yeast Mitochondrial\"))\n {\n for (int i = 0; i < yeastMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(yeastMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( yeastMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < yeastMitoCodeStart.length; j++)\n {\n if ( yeastMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Mold Protozoan Coelenterate Mycoplasma Mitochondrial\"))\n {\n for (int i = 0; i < moldProtoMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(moldProtoMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( moldProtoMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < moldProtoMitoCodeStart.length; j++)\n {\n if ( moldProtoMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Invertebrate Mitochondrial\"))\n {\n for (int i = 0; i < invertMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(invertMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( invertMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < invertMitoCodeStart.length; j++)\n {\n if ( invertMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Ciliate Dasycladacean Hexamita Nuclear\"))\n {\n for (int i = 0; i < cilDasHexNucCodeAA.length(); i++)\n {\n\n letter = String.valueOf(cilDasHexNucCodeAA.charAt(i)); // takes one char as a string\n\n if ( cilDasHexNucCode[i].equals( codon ) )\n {\n for (int j = 0; j < cilDasHexNucCodeStart.length; j++)\n {\n if ( cilDasHexNucCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Echinoderm Mitochondrial\"))\n {\n for (int i = 0; i < echinoMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(echinoMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( echinoMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < echinoMitoCodeStart.length; j++)\n {\n if ( echinoMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Euplotid Nuclear\"))\n {\n for (int i = 0; i < euplotidNucCodeAA.length(); i++)\n {\n\n letter = String.valueOf(euplotidNucCodeAA.charAt(i)); // takes one char as a string\n\n if ( euplotidNucCode[i].equals( codon ) )\n {\n if ( letter.equals(\"M\") )\n {\n return (\"<B><FONT COLOR=red>M</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Bacterial\"))\n {\n for (int i = 0; i < bacterialTranCodeAA.length(); i++)\n {\n\n letter = String.valueOf(bacterialTranCodeAA.charAt(i)); // takes one char as a string\n\n if ( bacterialTranCode[i].equals( codon ) )\n {\n for (int j = 0; j < bacterialTranCodeStart.length; j++)\n {\n if ( bacterialTranCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Alternative Yeast Nuclear\"))\n {\n for (int i = 0; i < altYeastCodeAA.length(); i++)\n {\n\n letter = String.valueOf(altYeastCodeAA.charAt(i)); // takes one char as a string\n\n if ( altYeastCode[i].equals( codon ) )\n {\n for (int j = 0; j < altYeastCodeStart.length; j++)\n {\n if ( altYeastCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Ascidian Mitochondrial\"))\n {\n for (int i = 0; i < ascidianMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(ascidianMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( ascidianMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < ascidianMitoCodeStart.length; j++)\n {\n if ( ascidianMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Flatworm Mitochondrial\"))\n {\n for (int i = 0; i < flatMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(flatMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( flatMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < flatMitoCodeStart.length; j++)\n {\n if ( flatMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else // (code.equals(\"Blepharisma Mitochondrial\"))\n {\n for (int i = 0; i < blephMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(blephMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( blephMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < blephMitoCodeStart.length; j++)\n {\n if ( blephMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n unknownStatus = 1; // encountered an unknown codon so print this in legend\n\n return \"<FONT COLOR=#ff6633><B>u</B></FONT>\"; // unknown codon\n\n\n }",
"public String getDENNGAY()\n {\n return this.DENNGAY;\n }",
"public final String deu() {\n String str;\n AppMethodBeat.i(26738);\n String str2 = \"\";\n synchronized (this) {\n try {\n if (this.iPr == null || this.iPr.size() <= 0) {\n str = \"\";\n } else {\n int i = 0;\n while (i < this.iPr.size()) {\n com.tencent.mm.plugin.wenote.model.a.c cVar = (com.tencent.mm.plugin.wenote.model.a.c) this.iPr.get(i);\n switch (cVar.getType()) {\n case -1:\n str = str2 + \"<hr/>\";\n break;\n case 1:\n i iVar = (i) cVar;\n if (!bo.isNullOrNil(iVar.content)) {\n str2 = str2 + iVar.content;\n if (i + 1 < this.iPr.size() && ((com.tencent.mm.plugin.wenote.model.a.c) this.iPr.get(i + 1)).getType() == 1 && !bo.isNullOrNil(((i) this.iPr.get(i + 1)).content)) {\n str = str2 + \"<br/>\";\n break;\n }\n }\n str = str2 + \"<br/>\";\n break;\n case 2:\n str = str2 + dO(((f) cVar).uOo, 2);\n break;\n case 3:\n str = str2 + dO(((g) cVar).uOo, 3);\n break;\n case 4:\n l lVar = (l) cVar;\n str = str2 + dO(lVar.uOo, lVar.getType());\n break;\n case 5:\n str = str2 + dO(((d) cVar).uOo, 5);\n break;\n case 6:\n str = str2 + dO(((k) cVar).uOo, 6);\n break;\n case 20:\n str = str2 + dO(((com.tencent.mm.plugin.wenote.model.a.b) cVar).uOo, 20);\n break;\n default:\n str = str2;\n break;\n }\n i++;\n str2 = str;\n }\n str = str2.replaceAll(IOUtils.LINE_SEPARATOR_UNIX, \"<br/>\");\n AppMethodBeat.o(26738);\n }\n } finally {\n while (true) {\n AppMethodBeat.o(26738);\n }\n }\n }\n return str;\n }",
"SintagmaPreposicional createSintagmaPreposicional();",
"@Override\n public String toString() {\n return date.format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy\")) + \" - \" + note;\n }",
"speech.multilang.Params.OutputControllerParams getOutputParams();",
"public void testfindNote() {\n System.out.println(\"findNote\");\n net.sharedmemory.tuner.Note instance = new net.sharedmemory.tuner.Note();\n\n double frequency = 441.123;\n java.lang.String expectedResult = \"A4\";\n java.lang.String result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n \n frequency = 523.25;\n expectedResult = \"C5\";\n result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n \n frequency = 417.96875;\n expectedResult = \"G#4\";\n result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n \n frequency = 1316.40625;\n expectedResult = \"B5\";\n result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n }",
"private static void writeDimesnions() throws IOException {\r\n\t\tDate date = new Date();\r\n\t\t bw.write( \"<> a owl:Ontology ; \\n\"\r\n\t\t \t+ \" rdfs:label \\\"GeoKnow Spatical Data Qaluty DataCube Knowledge Base\\\" ;\\n\"\r\n\t\t \t+ \" dc:description \\\"This knowledgebase contains 3 different DataCubes with different dimensions and measures.\\\" .\\n\\n\"\r\n\t//-----------------------Dataset----------------------------\r\n\t\t \t+ \"#\\n #Data Set \\n # \\n\"\r\n\t\t \t+ \"<http://www.geoknow.eu/dataset/ds1> a qb:DataSet ;\\n\"\r\n\t\t\t+ \"\t dcterms:publisher \\\"AKSW, GeoKnow\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:label \\\" Dataset Class Coverage\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:comment \\\"Dataset Class Coverage\\\" ; \\n\"\r\n\t\t\t+ \"\t qb:structure <http://www.geoknow.eu/data-cube/dsd1> ;\\n\"\r\n\t\t\t+ \"\t dcterms:date \\\"\"+date+\"\\\". \\n\\n\"\r\n\t\t \t+ \"<http://www.geoknow.eu/dataset/ds2> a qb:DataSet ;\\n\"\r\n\t\t\t+ \"\t dcterms:publisher \\\"AKSW, GeoKnow\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:label \\\"Dataset Weighted Class Coverage\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:comment \\\"Dataset Weighted Class Coverage\\\" ; \\n\"\r\n\t\t\t+ \"\t qb:structure <http://www.geoknow.eu/data-cube/dsd2> ;\\n\"\r\n\t\t\t+ \"\t dcterms:date \\\"\"+date+\"\\\". \\n\\n\"\t\t\r\n\t\t \t+ \"<http://www.geoknow.eu/dataset/ds3> a qb:DataSet ;\\n\"\r\n\t\t\t+ \"\t dcterms:publisher \\\"AKSW, GeoKnow\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:label \\\"Dataset Structuredness\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:comment \\\"Dataset Structuredness\\\" ; \\n\"\r\n\t\t\t+ \"\t qb:structure <http://www.geoknow.eu/data-cube/dsd3> ;\\n\"\r\n\t\t\t+ \"\t dcterms:date \\\"\"+date+\"\\\". \\n\\n\"\t\r\n //-----------------Data Cube 1 Structure Definitions-----------------------------------------\r\n\t\t\t+ \"# \\n# Data Structure Definitions \\n # \\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd1> a qb:DataStructureDefinition ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"A Data Structure Definition\\\"@en ;\\n\"\r\n\t\t\t+ \" rdfs:comment \\\"A Data Structure Definition for DataCube1\\\" ;\\n\"\r\n\t\t\t+ \" qb:component <http://www.geoknow.eu/data-cube/dsd1/c1>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd1/c2>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd1/c3> . \\n\\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd2> a qb:DataStructureDefinition ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"A Data Structure Definition\\\"@en ;\\n\"\r\n\t\t\t+ \" rdfs:comment \\\"A Data Structure Definition for DataCube2\\\" ;\\n\"\r\n\t\t\t+ \" qb:component <http://www.geoknow.eu/data-cube/dsd2/c1>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd2/c2>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd2/c3> . \\n\\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd3> a qb:DataStructureDefinition ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"A Data Structure Definition\\\"@en ;\\n\"\r\n\t\t\t+ \" rdfs:comment \\\"A Data Structure Definition for DataCube3\\\" ;\\n\"\r\n\t\t\t+ \" qb:component <http://www.geoknow.eu/data-cube/dsd3/c1>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd3/c2>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd3/c3> . \\n\\n\"\r\n\t\r\n\t//-----------------------Component Specifications-------------------------------------------------------------------\r\n\t\t\t+ \" # \\n #Componenet Specifications\\n #\\n \"\t\t\r\n\t\t\t//-------------DataCube1------------------------------------\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd1/c1> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Class \\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:Class . \\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd1/c2> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Time Stamp\\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:TimeStamp . \\n\"\t\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd1/c3> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Coverage\\\" ;\\n\"\r\n\t\t\t+ \" qb:measure sdmx-measure:Coverage . \\n\\n\"\t\t\t\t\r\n\t\t\t//-------------DataCube2------------------------------------\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd2/c1> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Class\\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:Class . \\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd2/c2> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Time Stamp\\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:TimeStamp . \\n\"\t\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd2/c3> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Weighted Coverage\\\" ;\\n\"\r\n\t\t\t+ \" qb:measure sdmx-measure:WeightedCoverage . \\n\\n\"\t\r\n\t\t\t//-------------DataCube3------------------------------------\t\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd3/c1> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Dataset\\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:Dataset . \\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd3/c2> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Time Stamp\\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:TimeStamp . \\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd3/c3> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Structuredness\\\" ;\\n\"\r\n\t\t\t+ \" qb:measure sdmx-measure:Structuredness . \\n\\n\"\t\t\t\t\r\n\t//-----------------------Dimensions, Unit and Measure ---------------------------------------------------------\t\t\r\n\t\t\t+ \"### \\n ## Dimensions, Unit, and Measure\\n##\\n\"\r\n\t\t\t+ \"gk-dim:Class a qb:DimensionProperty ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Class of a dataset\\\"@en .\\n\"\r\n\t\t\t+ \"gk-dim:TimeStamp a qb:DimensionProperty ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Time Stamp\\\"@en .\\n\"\r\n\t\t\t+ \"gk-dim:Dataset a qb:DimensionProperty ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Dataset name\\\"@en .\\n\"\r\n\t\t\t+ \"sdmx-measure:Coverage a qb:MeasureProperty ; \\n\"\t\r\n\t\t\t+ \" rdfs:label \\\"Class Coverage\\\"@en .\\n\"\r\n\t\t\t+ \"sdmx-measure:WeightedCoverage a qb:MeasureProperty ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Class Weighted Coverage\\\"@en .\\n\"\r\n\t\t\t+ \"sdmx-measure:Structuredness a qb:DimensionProperty ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Dataset Structuredness\\\"@en .\\n\\n\"\r\n\t\t\t\t );\r\n\t\t\r\n\t}",
"public String HaToDa(double ha) {\n // da = 1000*ha\n double da = ha*1000;\n return check_after_decimal_point(da);\n }",
"double getLuong();",
"public Map<Tone, Prefix> getNotes() {\n return notes;\n }"
] | [
"0.58205664",
"0.5692829",
"0.5653737",
"0.56068575",
"0.5494862",
"0.5437114",
"0.5419386",
"0.54058224",
"0.540201",
"0.5391477",
"0.5379964",
"0.53371805",
"0.5337179",
"0.5331807",
"0.5327905",
"0.5324628",
"0.5311259",
"0.5297914",
"0.52960664",
"0.52862704",
"0.52715594",
"0.52696574",
"0.5265777",
"0.5249925",
"0.5240977",
"0.52395976",
"0.52280134",
"0.52087444",
"0.5203702",
"0.5186923",
"0.5172726",
"0.51509243",
"0.5141364",
"0.5140641",
"0.51185894",
"0.5108512",
"0.5089223",
"0.50861734",
"0.5082801",
"0.50809973",
"0.5072427",
"0.5066618",
"0.50586504",
"0.505777",
"0.5042626",
"0.50386167",
"0.5020891",
"0.50193995",
"0.50165486",
"0.5008885",
"0.50084233",
"0.5004596",
"0.5001915",
"0.50017005",
"0.5001618",
"0.5000304",
"0.49945554",
"0.49943218",
"0.49890617",
"0.49832684",
"0.49807417",
"0.4974651",
"0.49725533",
"0.4971471",
"0.49711987",
"0.49645618",
"0.49602395",
"0.49592602",
"0.49591544",
"0.495075",
"0.49380448",
"0.49380133",
"0.4935574",
"0.49255553",
"0.4922682",
"0.4916942",
"0.49159512",
"0.49084952",
"0.490566",
"0.49018273",
"0.49014887",
"0.48986608",
"0.48967245",
"0.48939836",
"0.4892446",
"0.4890335",
"0.4886972",
"0.48849326",
"0.48849326",
"0.48833984",
"0.48815793",
"0.4879139",
"0.48771533",
"0.48752064",
"0.48733634",
"0.48706022",
"0.4869444",
"0.4867399",
"0.4865115",
"0.4860431"
] | 0.58073634 | 1 |
Method used to encode abstract literal incidents from an xml file | public static String getNoteAccidental(String accident)
{
String emptyValue = "";
if(accident != null && !"".equals(accident))
{
LinkedHashMap<String,String> accidentalTranscoding = new LinkedHashMap<>();
accidentalTranscoding.put("FLAT", "b");
accidentalTranscoding.put("DOUBLE_FLAT", "bb");
accidentalTranscoding.put("NATURAL", "");
accidentalTranscoding.put("SHARP", "#");
accidentalTranscoding.put("DOUBLE_SHARP", "##");
return accidentalTranscoding.get(accident.toUpperCase());
}
else
return emptyValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String toXML();",
"public abstract String toXML();",
"public abstract String toXML();",
"IParser setEncodeElements(Set<String> theEncodeElements);",
"@Test\n public void testWriteEntry_utf8() {\n String expResult = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\" + ls\n + \"<rdf:RDF xmlns:rdf=\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\">\" + ls\n + \" <lemon:LexicalEntry rdf:about=\\\"file:test#Sa\\u00edocht\\\" xmlns:lemon=\\\"http://lemon-model.net/lemon#\\\">\" + ls\n + \" <lemon:canonicalForm>\" + ls\n + \" <lemon:Form rdf:about=\\\"file:test#Sa\\u00edocht/canonicalForm\\\">\" + ls\n + \" <lemon:writtenRep xml:lang=\\\"ga\\\">Sa\\u00edocht</lemon:writtenRep>\" + ls\n + \" </lemon:Form>\" + ls\n + \" </lemon:canonicalForm>\" + ls\n + \" <lemon:sense>\" + ls\n + \" <lemon:LexicalSense rdf:about=\\\"file:test#Sa\\u00edocht/sense\\\">\" + ls\n + \" <lemon:reference rdf:resource=\\\"http://ga.dbpedia.org/resource/Sa\\u00edocht\\\"/>\" + ls\n + \" </lemon:LexicalSense>\" + ls\n + \" </lemon:sense>\" + ls\n + \" </lemon:LexicalEntry>\" + ls\n + \"</rdf:RDF>\";\n System.setProperty(\"lemon.api.xml.encoding\", \"UTF-8\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n LemonModel lm = makeModelUTF8(instance);\n LexicalEntry le = lm.getLexica().iterator().next().getEntrys().iterator().next();\n LinguisticOntology lo = new LexInfo();\n Writer dt = new StringWriter();\n boolean xml = true;\n instance.writeEntry(lm, le, lo, dt, xml);\n assertEquals(expResult.replaceAll(\"\\\\s\", \"\"), dt.toString().replaceAll(\"\\\\s\", \"\"));\n System.setProperty(\"lemon.api.xml.encoding\", \"US-ASCII\");\n //assertEquals(\"\",\"\");\n }",
"@Override\r\n\tpublic void initializeFromFile(File inputXmlFile) {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\ttry {\r\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t\t\tDocument doc = builder.parse(inputXmlFile);\r\n\t\t\tNodeList xmlNodeList;\r\n\t\t\tNodeList xmlEdgeList;\r\n\t\t\txmlNodeList = doc.getElementsByTagName(\"node\");\r\n\r\n\t\t\tfor(int i=0;i<xmlNodeList.getLength();i++) {\r\n\r\n\t\t\t\tNode p=xmlNodeList.item(i);\r\n\t\t\t\tElement xmlNode =(Element) p;\r\n\t\t\t\tNodeList.add(xmlNode);\r\n\t\t\t\tNodeMap.put(Integer.parseInt(xmlNode.getAttribute(\"id\")),xmlNode);\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\txmlEdgeList = doc.getElementsByTagName(\"edge\");\r\n\r\n\r\n\t\t\tfor(int j=0;j<xmlEdgeList.getLength();j++) {\r\n\t\t\t\tNode p = xmlEdgeList.item(j);\r\n\t\t\t\tElement xmlNode = (Element) p;\r\n\t\t\t\tEdgeList.add(xmlNode);\r\n\r\n\t\t\t}\r\n\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\r\n\t}",
"private void loadFile() {\n String xmlContent = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><atomic-mass-table mass-units=\\\"u\\\" abundance-units=\\\"Mole Fraction\\\"><entry symbol=\\\"H\\\" atomic-number=\\\"1\\\"> <natural-abundance> <mass value=\\\"1.00794\\\" error=\\\"0.00007\\\" /> <isotope mass-number=\\\"1\\\"> <mass value=\\\"1.0078250319\\\" error=\\\"0.00000000006\\\" /> <abundance value=\\\"0.999885\\\" error=\\\"0.000070\\\" /> </isotope> <isotope mass-number=\\\"2\\\"> <mass value=\\\"2.0141017779\\\" error=\\\"0.0000000006\\\" /> <abundance value=\\\"0.000115\\\" error=\\\"0.000070\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"He\\\" atomic-number=\\\"2\\\"> <natural-abundance> <mass value=\\\"4.002602\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"3.0160293094\\\" error=\\\"0.0000000012\\\" /> <abundance value=\\\"0.00000134\\\" error=\\\"0.00000003\\\" /> </isotope> <isotope mass-number=\\\"4\\\"> <mass value=\\\"4.0026032497\\\" error=\\\"0.0000000015\\\" /> <abundance value=\\\"0.99999866\\\" error=\\\"0.00000003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Li\\\" atomic-number=\\\"3\\\"> <natural-abundance> <mass value=\\\"6.9421\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"6.0151223\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.0759\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"7\\\"> <mass value=\\\"7.0160041\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.9241\\\" error=\\\"0.0004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Be\\\" atomic-number=\\\"4\\\"> <natural-abundance> <mass value=\\\"9.012182\\\" error=\\\"0.000003\\\" /> <isotope mass-number=\\\"9\\\"> <mass value=\\\"9.0121822\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"B\\\" atomic-number=\\\"5\\\"> <natural-abundance> <mass value=\\\"10.881\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"10\\\"> <mass value=\\\"10.0129371\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.199\\\" error=\\\"0.007\\\" /> </isotope> <isotope mass-number=\\\"11\\\"> <mass value=\\\"11.0093055\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.801\\\" error=\\\"0.007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"C\\\" atomic-number=\\\"6\\\"> <natural-abundance> <mass value=\\\"12.0107\\\" error=\\\"0.0008\\\" /> <isotope mass-number=\\\"12\\\"> <mass value=\\\"12\\\" error=\\\"0\\\" /> <abundance value=\\\"0.9893\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"13\\\"> <mass value=\\\"13.003354838\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.0107\\\" error=\\\"0.0008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"N\\\" atomic-number=\\\"7\\\"> <natural-abundance> <mass value=\\\"14.0067\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"14\\\"> <mass value=\\\"14.0030740074\\\" error=\\\"0.0000000018\\\" /> <abundance value=\\\"0.99636\\\" error=\\\"0.00020\\\" /> </isotope> <isotope mass-number=\\\"15\\\"> <mass value=\\\"15.000108973\\\" error=\\\"0.000000012\\\" /> <abundance value=\\\"0.00364\\\" error=\\\"0.00020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"O\\\" atomic-number=\\\"8\\\"> <natural-abundance> <mass value=\\\"15.9994\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"16\\\"> <mass value=\\\"15.9949146223\\\" error=\\\"0.0000000025\\\" /> <abundance value=\\\"0.99759\\\" error=\\\"0.00016\\\" /> </isotope> <isotope mass-number=\\\"17\\\"> <mass value=\\\"16.99913150\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.00038\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"18\\\"> <mass value=\\\"17.9991604\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.00205\\\" error=\\\"0.00014\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"F\\\" atomic-number=\\\"9\\\"> <natural-abundance> <mass value=\\\"18.9984032\\\" error=\\\"0.0000005\\\" /> <isotope mass-number=\\\"19\\\"> <mass value=\\\"18.99840320\\\" error=\\\"0.00000007\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ne\\\" atomic-number=\\\"10\\\"> <natural-abundance> <mass value=\\\"20.1797\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"20\\\"> <mass value=\\\"19.992440176\\\" error=\\\"0.000000003\\\" /> <abundance value=\\\"0.9048\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"21\\\"> <mass value=\\\"20.99384674\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.0027\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"22\\\"> <mass value=\\\"21.99138550\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0925\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Na\\\" atomic-number=\\\"11\\\"> <natural-abundance> <mass value=\\\"22.989770\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"23\\\"> <mass value=\\\"22.98976966\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mg\\\" atomic-number=\\\"12\\\"> <natural-abundance> <mass value=\\\"24.3050\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"24\\\"> <mass value=\\\"23.98504187\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.7899\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"25\\\"> <mass value=\\\"24.98583700\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1000\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"26\\\"> <mass value=\\\"25.98259300\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1101\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Al\\\" atomic-number=\\\"13\\\"> <natural-abundance> <mass value=\\\"26.981538\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"27\\\"> <mass value=\\\"26.98153841\\\" error=\\\"0.00000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Si\\\" atomic-number=\\\"14\\\"> <natural-abundance> <mass value=\\\"28.0855\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"28\\\"> <mass value=\\\"27.97692649\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.92223\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"29\\\"> <mass value=\\\"28.97649468\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.04685\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"30\\\"> <mass value=\\\"29.97377018\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.03092\\\" error=\\\"0.00011\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"P\\\" atomic-number=\\\"15\\\"> <natural-abundance> <mass value=\\\"30.973761\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"31\\\"> <mass value=\\\"30.97376149\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"S\\\" atomic-number=\\\"16\\\"> <natural-abundance> <mass value=\\\"32.065\\\" error=\\\"0.005\\\" /> <isotope mass-number=\\\"32\\\"> <mass value=\\\"31.97207073\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.9499\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"33\\\"> <mass value=\\\"32.97145854\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.0075\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"34\\\"> <mass value=\\\"33.96786687\\\" error=\\\"0.00000014\\\" /> <abundance value=\\\"0.0425\\\" error=\\\"0.0024\\\" /> </isotope> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96708088\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0001\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cl\\\" atomic-number=\\\"17\\\"> <natural-abundance> <mass value=\\\"35.453\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"35\\\"> <mass value=\\\"34.96885271\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.7576\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"37\\\"> <mass value=\\\"36.96590260\\\" error=\\\"0.00000005\\\" /> <abundance value=\\\"0.2424\\\" error=\\\"0.0010\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ar\\\" atomic-number=\\\"18\\\"> <natural-abundance> <mass value=\\\"39.948\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96754626\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"0.0003365\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"38\\\"> <mass value=\\\"37.9627322\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.000632\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.962383124\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.996003\\\" error=\\\"0.000030\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"K\\\" atomic-number=\\\"19\\\"> <natural-abundance> <mass value=\\\"39.0983\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"39\\\"> <mass value=\\\"38.9637069\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.932581\\\" error=\\\"0.000044\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.96399867\\\" error=\\\"0.00000029\\\" /> <abundance value=\\\"0.000117\\\" error=\\\"0.000001\\\" /> </isotope> <isotope mass-number=\\\"41\\\"> <mass value=\\\"40.96182597\\\" error=\\\"0.00000028\\\" /> <abundance value=\\\"0.067302\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ca\\\" atomic-number=\\\"20\\\"> <natural-abundance> <mass value=\\\"40.078\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.9625912\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.96941\\\" error=\\\"0.00156\\\" /> </isotope> <isotope mass-number=\\\"42\\\"> <mass value=\\\"41.9586183\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.00647\\\" error=\\\"0.00023\\\" /> </isotope> <isotope mass-number=\\\"43\\\"> <mass value=\\\"42.9587668\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.00135\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"44\\\"> <mass value=\\\"43.9554811\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.02086\\\" error=\\\"0.00110\\\" /> </isotope> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9536927\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.00004\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.952533\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00187\\\" error=\\\"0.00021\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sc\\\" atomic-number=\\\"21\\\"> <natural-abundance> <mass value=\\\"44.955910\\\" error=\\\"0.000008\\\" /> <isotope mass-number=\\\"45\\\"> <mass value=\\\"44.9559102\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ti\\\" atomic-number=\\\"22\\\"> <natural-abundance> <mass value=\\\"47.867\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9526295\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"0.0825\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"47\\\"> <mass value=\\\"46.9517637\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0744\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.9479470\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.7372\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"49\\\"> <mass value=\\\"48.9478707\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0541\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"V\\\" atomic-number=\\\"23\\\"> <natural-abundance> <mass value=\\\"50.9415\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9471627\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.00250\\\" error=\\\"0.00004\\\" /> </isotope> <isotope mass-number=\\\"51\\\"> <mass value=\\\"50.9439635\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.99750\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cr\\\" atomic-number=\\\"24\\\"> <natural-abundance> <mass value=\\\"51.9961\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9460495\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.04345\\\" error=\\\"0.00013\\\" /> </isotope> <isotope mass-number=\\\"52\\\"> <mass value=\\\"51.9405115\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.83789\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"53\\\"> <mass value=\\\"52.9406534\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.09501\\\" error=\\\"0.00017\\\" /> </isotope> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.938846\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02365\\\" error=\\\"0.00007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mn\\\" atomic-number=\\\"25\\\"> <natural-abundance> <mass value=\\\"54.938049\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"55\\\"> <mass value=\\\"54.9380493\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Fe\\\" atomic-number=\\\"26\\\"> <natural-abundance> <mass value=\\\"55.845\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.9396147\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.05845\\\" error=\\\"0.00035\\\" /> </isotope> <isotope mass-number=\\\"56\\\"> <mass value=\\\"55.9349418\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.91754\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"57\\\"> <mass value=\\\"56.9353983\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02119\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9332801\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.00282\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Co\\\" atomic-number=\\\"27\\\"> <natural-abundance> <mass value=\\\"58.933200\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"59\\\"> <mass value=\\\"59.9331999\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ni\\\" atomic-number=\\\"28\\\"> <natural-abundance> <mass value=\\\"58.6934\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9353477\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.680769\\\" error=\\\"0.000089\\\" /> </isotope> <isotope mass-number=\\\"60\\\"> <mass value=\\\"59.9307903\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.262231\\\" error=\\\"0.000077\\\" /> </isotope> <isotope mass-number=\\\"61\\\"> <mass value=\\\"60.9310601\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.011399\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"62\\\"> <mass value=\\\"61.9283484\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0036345\\\" error=\\\"0.000017\\\" /> </isotope> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9279692\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.009256\\\" error=\\\"0.000009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cu\\\" atomic-number=\\\"29\\\"> <natural-abundance> <mass value=\\\"63.546\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"63\\\"> <mass value=\\\"62.9296007\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.6915\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"65\\\"> <mass value=\\\"64.9277938\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3085\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zn\\\" atomic-number=\\\"30\\\"> <natural-abundance> <mass value=\\\"65.409\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9291461\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.48268\\\" error=\\\"0.00321\\\" /> </isotope> <isotope mass-number=\\\"66\\\"> <mass value=\\\"65.9260364\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.27975\\\" error=\\\"0.00077\\\" /> </isotope> <isotope mass-number=\\\"67\\\"> <mass value=\\\"66.9271305\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.04102\\\" error=\\\"0.00021\\\" /> </isotope> <isotope mass-number=\\\"68\\\"> <mass value=\\\"67.9248473\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.19024\\\" error=\\\"0.00123\\\" /> </isotope> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.925325\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00631\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ga\\\" atomic-number=\\\"31\\\"> <natural-abundance> <mass value=\\\"69.723\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"69\\\"> <mass value=\\\"68.925581\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.60108\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"71\\\"> <mass value=\\\"70.9247073\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.39892\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ge\\\" atomic-number=\\\"32\\\"> <natural-abundance> <mass value=\\\"72.64\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.9242500\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.2038\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"72\\\"> <mass value=\\\"71.9220763\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2731\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"73\\\"> <mass value=\\\"72.9234595\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0776\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9211784\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.3672\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9214029\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0783\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"As\\\" atomic-number=\\\"33\\\"> <natural-abundance> <mass value=\\\"74.92160\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"75\\\"> <mass value=\\\"74.9215966\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Se\\\" atomic-number=\\\"34\\\"> <natural-abundance> <mass value=\\\"78.96\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9224767\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9192143\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0937\\\" error=\\\"0.0029\\\" /> </isotope> <isotope mass-number=\\\"77\\\"> <mass value=\\\"76.9199148\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0763\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.9173097\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2377\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.9165221\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.4961\\\" error=\\\"0.0041\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9167003\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.0873\\\" error=\\\"0.0022\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Br\\\" atomic-number=\\\"35\\\"> <natural-abundance> <mass value=\\\"79.904\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"79\\\"> <mass value=\\\"78.9183379\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.5069\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"81\\\"> <mass value=\\\"80.916291\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4931\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Kr\\\" atomic-number=\\\"36\\\"> <natural-abundance> <mass value=\\\"83.798\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.920388\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00355\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.916379\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.02286\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9134850\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.11593\\\" error=\\\"0.00031\\\" /> </isotope> <isotope mass-number=\\\"83\\\"> <mass value=\\\"82.914137\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11500\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.911508\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.56987\\\" error=\\\"0.00015\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.910615\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.17279\\\" error=\\\"0.00041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rb\\\" atomic-number=\\\"37\\\"> <natural-abundance> <mass value=\\\"85.4678\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"85\\\"> <mass value=\\\"84.9117924\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.7217\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9091858\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.2783\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sr\\\" atomic-number=\\\"38\\\"> <natural-abundance> <mass value=\\\"87.62\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.913426\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0056\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.9092647\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0986\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9088816\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0700\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"88\\\"> <mass value=\\\"87.9056167\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.8258\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Y\\\" atomic-number=\\\"39\\\"> <natural-abundance> <mass value=\\\"88.90585\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"89\\\"> <mass value=\\\"88.9058485\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zr\\\" atomic-number=\\\"40\\\"> <natural-abundance> <mass value=\\\"91.224\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"90\\\"> <mass value=\\\"89.9047022\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"0.5145\\\" error=\\\"0.0040\\\" /> </isotope> <isotope mass-number=\\\"91\\\"> <mass value=\\\"90.9056434\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1122\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.9050386\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1715\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9063144\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.1738\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.908275\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0280\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nb\\\" atomic-number=\\\"41\\\"> <natural-abundance> <mass value=\\\"92.90638\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"93\\\"> <mass value=\\\"92.9063762\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mo\\\" atomic-number=\\\"42\\\"> <natural-abundance> <mass value=\\\"95.94\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.906810\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.1477\\\" error=\\\"0.0031\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9050867\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0923\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"95\\\"> <mass value=\\\"94.9058406\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1590\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.9046780\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1668\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"97\\\"> <mass value=\\\"96.9030201\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0956\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.9054069\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.2419\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.907476\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0967\\\" error=\\\"0.0020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ru\\\" atomic-number=\\\"44\\\"> <natural-abundance> <mass value=\\\"101.07\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.907604\\\" error=\\\"0.000009\\\" /> <abundance value=\\\"0.0554\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.905287\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.0187\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"99\\\"> <mass value=\\\"98.9059385\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\".01276\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.9042189\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1260\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"101\\\"> <mass value=\\\"100.9055815\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1706\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.9043488\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.3155\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.905430\\\" error=\\\".01862\\\" /> <abundance value=\\\"0.1862\\\" error=\\\"0.0027\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rh\\\" atomic-number=\\\"45\\\"> <natural-abundance> <mass value=\\\"1025.90550\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"103\\\"> <mass value=\\\"102.905504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pd\\\" atomic-number=\\\"46\\\"> <natural-abundance> <mass value=\\\"106.42\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.905607\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0102\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.904034\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.1114\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"105\\\"> <mass value=\\\"104.905083\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2233\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.903484\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2733\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.903895\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.2646\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.905153\\\" error=\\\"0.000012\\\" /> <abundance value=\\\"0.1172\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ag\\\" atomic-number=\\\"47\\\"> <natural-abundance> <mass value=\\\"107.8682\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"107\\\"> <mass value=\\\"106.905093\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.51839\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"109\\\"> <mass value=\\\"108.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.48161\\\" error=\\\"0.00008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cd\\\" atomic-number=\\\"48\\\"> <natural-abundance> <mass value=\\\"112.411\\\" error=\\\"0.008\\\" /> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.906458\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0125\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.904183\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.903006\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1249\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"111\\\"> <mass value=\\\"110.904182\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1280\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.9027577\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2413\\\" error=\\\"0.0021\\\" /> </isotope> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.9044014\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1222\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.9033586\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2873\\\" error=\\\"0.0042\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0749\\\" error=\\\"0.0018\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"In\\\" atomic-number=\\\"49\\\"> <natural-abundance> <mass value=\\\"114.818\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.904062\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0429\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903879\\\" error=\\\"0.000040\\\" /> <abundance value=\\\"0.9571\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sn\\\" atomic-number=\\\"50\\\"> <natural-abundance> <mass value=\\\"118.710\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.904822\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0097\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.902783\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0066\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903347\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0034\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.901745\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1454\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"117\\\"> <mass value=\\\"116.902955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0768\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"118\\\"> <mass value=\\\"117.901608\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2422\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"119\\\"> <mass value=\\\"118.903311\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0859\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.9021985\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3258\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9034411\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0463\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9052745\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0579\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sb\\\" atomic-number=\\\"51\\\"> <natural-abundance> <mass value=\\\"121.760\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"121\\\"> <mass value=\\\"120.9038222\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.5721\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042160\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.4279\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Te\\\" atomic-number=\\\"52\\\"> <natural-abundance> <mass value=\\\"127.60\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.904026\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.0009\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9030558\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0255\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042711\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9028188\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0474\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"125\\\"> <mass value=\\\"124.9044241\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0707\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.9033049\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1884\\\" error=\\\"0.0025\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9044615\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3174\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9062229\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.3408\\\" error=\\\"0.0062\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"I\\\" atomic-number=\\\"53\\\"> <natural-abundance> <mass value=\\\"126.90447\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"127\\\"> <mass value=\\\"126.904468\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Xe\\\" atomic-number=\\\"54\\\"> <natural-abundance> <mass value=\\\"131.293\\\" error=\\\"0.006\\\" /> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9058954\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.000952\\\" error=\\\"0.000003\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.904268\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.000890\\\" error=\\\"0.000002\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9035305\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.019102\\\" error=\\\"0.000008\\\" /> </isotope> <isotope mass-number=\\\"129\\\"> <mass value=\\\"128.9047799\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.264006\\\" error=\\\"0.000082\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9035089\\\" error=\\\"0.0000011\\\" /> <abundance value=\\\"0.040710\\\" error=\\\"0.000013\\\" /> </isotope> <isotope mass-number=\\\"131\\\"> <mass value=\\\"130.9050828\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.212324\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.9041546\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.269086\\\" error=\\\"0.000033\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.9053945\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.104357\\\" error=\\\"0.000021\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907220\\\" error=\\\"0.000008\\\" /> <abundance value=\\\"0.088573\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cs\\\" atomic-number=\\\"55\\\"> <natural-abundance> <mass value=\\\"132.90545\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"133\\\"> <mass value=\\\"132.905447\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ba\\\" atomic-number=\\\"56\\\"> <natural-abundance> <mass value=\\\"137.327\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.906311\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00106\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.905056\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00101\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.904504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02417\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"135\\\"> <mass value=\\\"134.905684\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.000003\\\" error=\\\"0.00012\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.904571\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.07854\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"137\\\"> <mass value=\\\"136.905822\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.11232\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905242\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.71698\\\" error=\\\"0.00042\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"La\\\" atomic-number=\\\"57\\\"> <natural-abundance> <mass value=\\\"138.9055\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.907108\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00090\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"139\\\"> <mass value=\\\"138.906349\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.99910\\\" error=\\\"0.00001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ce\\\" atomic-number=\\\"58\\\"> <natural-abundance> <mass value=\\\"140.116\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907140\\\" error=\\\"0.000050\\\" /> <abundance value=\\\"0.00185\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905986\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.00251\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"140\\\"> <mass value=\\\"139.905\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.88450\\\" error=\\\"0.00051\\\" /> </isotope> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.909241\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11114\\\" error=\\\"0.00051\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pr\\\" atomic-number=\\\"59\\\"> <natural-abundance> <mass value=\\\"140.90765\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"141\\\"> <mass value=\\\"140.907648\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nd\\\" atomic-number=\\\"60\\\"> <natural-abundance> <mass value=\\\"144.24\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.907719\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.272\\\" error=\\\"0.005\\\" /> </isotope> <isotope mass-number=\\\"143\\\"> <mass value=\\\"142.909810\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.122\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.910083\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.238\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"145\\\"> <mass value=\\\"144.912569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.083\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"146\\\"> <mass value=\\\"145.913113\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.172\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.916889\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.057\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.920887\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.056\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sm\\\" atomic-number=\\\"62\\\"> <natural-abundance> <mass value=\\\"150.36\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.911996\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0307\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"147\\\"> <mass value=\\\"146.914894\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1499\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.914818\\\" error=\\\"0.1124\\\" /> <abundance value=\\\"0.1124\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"149\\\"> <mass value=\\\"148.917180\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1382\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.917272\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0738\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919729\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2675\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.922206\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2275\\\" error=\\\"0.0029\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Eu\\\" atomic-number=\\\"63\\\"> <natural-abundance> <mass value=\\\"151.964\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"151\\\"> <mass value=\\\"150.919846\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4781\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"153\\\"> <mass value=\\\"152.921227\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.5219\\\" error=\\\"0.0006\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Gd\\\" atomic-number=\\\"64\\\"> <natural-abundance> <mass value=\\\"157.25\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919789\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0020\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.920862\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0218\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"155\\\"> <mass value=\\\"154.922619\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1480\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.922120\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2047\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"157\\\"> <mass value=\\\"156.923957\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1565\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924101\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2484\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.927051\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2186\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tb\\\" atomic-number=\\\"65\\\"> <natural-abundance> <mass value=\\\"158.92534\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"159\\\"> <mass value=\\\"158.925343\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Dy\\\" atomic-number=\\\"66\\\"> <natural-abundance> <mass value=\\\"162.500\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.924278\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00056\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924405\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00095\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.925194\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02329\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"161\\\"> <mass value=\\\"160.926930\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.18889\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.926795\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25475\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"163\\\"> <mass value=\\\"162.928728\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.24896\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929171\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.28260\\\" error=\\\"0.00054\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ho\\\" atomic-number=\\\"67\\\"> <natural-abundance> <mass value=\\\"164.93032\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"165\\\"> <mass value=\\\"164.930319\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Er\\\" atomic-number=\\\"68\\\"> <natural-abundance> <mass value=\\\"167.259\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.928775\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00139\\\" error=\\\"0.00005\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929197\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.01601\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"166\\\"> <mass value=\\\"165.930290\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33503\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"167\\\"> <mass value=\\\"166.932046\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.22869\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.932368\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.26978\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.935461\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.14910\\\" error=\\\"0.00036\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tm\\\" atomic-number=\\\"69\\\"> <natural-abundance> <mass value=\\\"168.93421\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"169\\\"> <mass value=\\\"168.934211\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Yb\\\" atomic-number=\\\"70\\\"> <natural-abundance> <mass value=\\\"173.04\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.933895\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0013\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.934759\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0304\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"171\\\"> <mass value=\\\"170.936323\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1428\\\" error=\\\"0.0057\\\" /> </isotope> <isotope mass-number=\\\"172\\\"> <mass value=\\\"171.936378\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2183\\\" error=\\\"0.0067\\\" /> </isotope> <isotope mass-number=\\\"173\\\"> <mass value=\\\"172.938207\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1613\\\" error=\\\"0.0027\\\" /> </isotope> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.938858\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3183\\\" error=\\\"0.0092\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.942569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1276\\\" error=\\\"0.0041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Lu\\\" atomic-number=\\\"71\\\"> <natural-abundance> <mass value=\\\"174.967\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"175\\\"> <mass value=\\\"174.9407682\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.9741\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.9426827\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.0259\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hf\\\" atomic-number=\\\"72\\\"> <natural-abundance> <mass value=\\\"178.49\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.940042\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0016\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.941403\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0526\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"177\\\"> <mass value=\\\"176.9432204\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1860\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"178\\\"> <mass value=\\\"177.9436981\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.2728\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"179\\\"> <mass value=\\\"178.9488154\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1362\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.9465488\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3508\\\" error=\\\"0.0016\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ta\\\" atomic-number=\\\"73\\\"> <natural-abundance> <mass value=\\\"180.9479\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.947466\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00012\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"181\\\"> <mass value=\\\"180.947996\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.99988\\\" error=\\\"0.00002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"W\\\" atomic-number=\\\"74\\\"> <natural-abundance> <mass value=\\\"183.84\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.946706\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0012\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"182\\\"> <mass value=\\\"181.948205\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.265\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"183\\\"> <mass value=\\\"182.9502242\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1431\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.9509323\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.3064\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.954362\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2843\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Re\\\" atomic-number=\\\"75\\\"> <natural-abundance> <mass value=\\\"186.207\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"185\\\"> <mass value=\\\"184.952955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3740\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557505\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.6260\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Os\\\" atomic-number=\\\"76\\\"> <natural-abundance> <mass value=\\\"190.23\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.952491\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0002\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.953838\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0159\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557476\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.0196\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"188\\\"> <mass value=\\\"187.9558357\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1324\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"189\\\"> <mass value=\\\"188.958145\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1615\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.958445\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2626\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961479\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.4078\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ir\\\" atomic-number=\\\"77\\\"> <natural-abundance> <mass value=\\\"192.217\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"191\\\"> <mass value=\\\"190.960591\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.373\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"193\\\"> <mass value=\\\"192.962923\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.627\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pt\\\" atomic-number=\\\"78\\\"> <natural-abundance> <mass value=\\\"195.078\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.959930\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00014\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961035\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00782\\\" error=\\\"0.00007\\\" /> </isotope> <isotope mass-number=\\\"194\\\"> <mass value=\\\"193.962663\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.32967\\\" error=\\\"0.00099\\\" /> </isotope> <isotope mass-number=\\\"195\\\"> <mass value=\\\"194.964774\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33832\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.964934\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25242\\\" error=\\\"0.00041\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.967875\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.07163\\\" error=\\\"0.00055\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Au\\\" atomic-number=\\\"79\\\"> <natural-abundance> <mass value=\\\"196.96655\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"197\\\"> <mass value=\\\"196.966551\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hg\\\" atomic-number=\\\"80\\\"> <natural-abundance> <mass value=\\\"200.59\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.965814\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0015\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.966752\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0997\\\" error=\\\"0.0020\\\" /> </isotope> <isotope mass-number=\\\"199\\\"> <mass value=\\\"198.968262\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1687\\\" error=\\\"0.0022\\\" /> </isotope> <isotope mass-number=\\\"200\\\"> <mass value=\\\"199.968309\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2310\\\" error=\\\"0.0019\\\" /> </isotope> <isotope mass-number=\\\"201\\\"> <mass value=\\\"200.970285\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1318\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"202\\\"> <mass value=\\\"201.970625\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2986\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973475\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0687\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tl\\\" atomic-number=\\\"81\\\"> <natural-abundance> <mass value=\\\"204.3833\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"203\\\"> <mass value=\\\"202.972329\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2952\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"205\\\"> <mass value=\\\"204.974412\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.7048\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pb\\\" atomic-number=\\\"82\\\"> <natural-abundance> <mass value=\\\"207.2\\\" error=\\\"0.1\\\" /> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973028\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.014\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"206\\\"> <mass value=\\\"205.974449\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.241\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"207\\\"> <mass value=\\\"206.975880\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.221\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"208\\\"> <mass value=\\\"207.976636\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.524\\\" error=\\\"0.001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Bi\\\" atomic-number=\\\"83\\\"> <natural-abundance> <mass value=\\\"208.98038\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"209\\\"> <mass value=\\\"208.980384\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Th\\\" atomic-number=\\\"90\\\"> <natural-abundance> <mass value=\\\"232.0381\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"232\\\"> <mass value=\\\"232.0380495\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pa\\\" atomic-number=\\\"91\\\"> <natural-abundance> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"231\\\"> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"U\\\" atomic-number=\\\"92\\\"> <natural-abundance> <mass value=\\\"238.02891\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"234\\\"> <mass value=\\\"234.0409447\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.000054\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"235\\\"> <mass value=\\\"235.0439222\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.007204\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"238\\\"> <mass value=\\\"238.0507835\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.992742\\\" error=\\\"0.000010\\\" /> </isotope> </natural-abundance> </entry></atomic-mass-table>\";\n try {\n// this.document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(in);\n this.document = XMLParser.parse(xmlContent);\n } catch (Exception e) {\n throw new RuntimeException(\"Error reading atomic_system.xml.\");\n }\n\n NodeList nodes = document.getElementsByTagName(\"entry\");\n\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n\n String symbol = node.getAttributes().getNamedItem(\"symbol\").getNodeValue();\n\n entries.put(symbol, new Entry(node));\n }\n }",
"@Override\n public void loadMap(String fileName) throws ParserConfigurationException, SAXException, IOException {\n resetMap();\n //Test extension of XML file name\n String[] words = fileName.split(\"\\\\.\");\n if(!(words[(words.length)-1].equals(\"XML\")) && !(words[(words.length)-1].equals(\"xml\"))){\n this.setChanged();\n this.notifyObservers(\"Filename extension is not correct\");\n throw new IOException();\n }else{\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n try {\n // parse XML file\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(new File(fileName));\n doc.getDocumentElement().normalize();\n\n // Check the document root name\n Element root = doc.getDocumentElement();\n if(!root.getNodeName().equals(\"map\")){\n throw new NumberFormatException();\n }\n\n // get all nodes <intersection>\n NodeList nodeListIntersection = doc.getElementsByTagName(\"intersection\");\n\n for (int temp = 0; temp < nodeListIntersection.getLength(); temp++) {\n Node node = nodeListIntersection.item(temp);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get intersection's attribute\n long id = Long.parseLong(element.getAttribute(\"id\"));\n double latitude = Double.parseDouble(element.getAttribute(\"latitude\"));\n double longitude = Double.parseDouble(element.getAttribute(\"longitude\"));\n // if the intersection doesn't exist in the list\n if(checkUniqueIntersection(id,latitude,longitude)){\n intersectionList.add(new Intersection(id,latitude,longitude));\n }\n }\n }\n\n // get all nodes <Segment>\n NodeList nodeListSegment = doc.getElementsByTagName(\"segment\");\n\n for (int temp = 0; temp < nodeListSegment.getLength(); temp++) {\n Node node = nodeListSegment.item(temp);\n\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get intersection's attribute\n long destinationId = Long.parseLong(element.getAttribute(\"destination\"));\n long originId = Long.parseLong(element.getAttribute(\"origin\"));\n double length = Double.parseDouble(element.getAttribute(\"length\"));\n String name = element.getAttribute(\"name\");\n\n Intersection origin = getIntersectionById(originId);\n Intersection destination = getIntersectionById(destinationId);\n if ((origin != null) && (destination != null)) {\n segmentList.add(new Segment(origin, destination, name, length));\n } else {\n // System.out.println(\"segment creation is impossible\");\n }\n }\n }\n\n } catch (ParserConfigurationException |SAXException err){\n this.setChanged();\n this.notifyObservers(\"Parsing XML file failed. Please choose another XML file.\");\n throw err;\n }catch( IOException err) {\n this.setChanged();\n this.notifyObservers(\"Opening XML file failed. Please choose another XML file.\");\n throw err;\n }catch (NumberFormatException err){}\n\n if((intersectionList.isEmpty()) || (segmentList.isEmpty())){\n resetMap();\n this.setChanged();\n this.notifyObservers(\"Map is empty. Check your XML file.\");\n throw new IOException();\n }\n mapLoaded = true;\n extremIntersection = getExtremIntersection();\n this.createGraph();\n this.setChanged();\n this.notifyObservers();\n }\n }",
"public void loadxml ()\n\t{\n\t\t\t\tString [] kategorienxml;\n\t\t\t\tString [] textbausteinexml;\n\t\t\t\tString [] textexml;\n\t\t\t\t\n\t\t\t\tString filenamexml = \"Katalogname_gekuerzt_lauffaehig-ja.xml\";\n\t\t\t\tFile xmlfile = new File (filenamexml);\n\t\t\t\t\n\t\t\t\t// lies gesamten text aus: String gesamterhtmlcode = \"\";\n\t\t\t\tString gesamterhtmlcode = \"\";\n\t\t\t\tString [] gesamtertbarray = new String[1001];\n\t\t BufferedReader inx = null;\n\t\t try {\n\t\t inx = new BufferedReader(new FileReader(xmlfile));\n\t\t String zeilex = null;\n\t\t while ((zeilex = inx.readLine()) != null) {\n\t\t \tSystem.out.println(zeilex + \"\\n\");\n\t\t \tRandom rand = new Random();\n\t\t \tint n = 0;\n\t\t \t// Obtain a number between [0 - 49].\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.End\\\"/>\")) // dann ab hier speichern bis zum ende:\n\t\t \t{\n\t\t \t\t// \terstelle neue random zahl und speichere alle folgenden zeilen bis zum .Start in diesen n rein\n\t\t \t\tn = rand.nextInt(1001);\n\n\t\t \t\t\n\t\t \t}\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n] + zeilex;\n\t\t \tFile f = new File (\"baustein_\"+ n + \".txt\");\n\t\t \t\n\t\t \tFileWriter fw = new FileWriter (f);\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\\\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\\\"\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/></w:rPr><w:r><w:rPr><w:rStyle w:val=\\\"T8\\\"/></w:rPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\t\t \t<w:rStyle\" , \"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:p>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:pStyle w:val=\\\"_37_b._20_Text\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr><w:r><w:t>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:r><w:rPr><w:rStyle\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\\\"><w:pPr></\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:pPr><w:r>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"compatible:1.0\\\"><w:pPr></w:pPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:p><w:p\",\"\");\n\t\t \n\n\t\t \t\n\n\t\t \tfw.write(gesamtertbarray[n]);\n\t\t \tfw.flush();\n\t\t \tfw.close();\n\t\t \t\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.Start\\\"))\"))\n \t\t\t{\n\t\t \t\t// dann erhöhe speicher id für neue rand zahl, weil ab hier ist ende des vorherigen textblocks;\n\t\t\t \tn = rand.nextInt(1001);\n \t\t\t}\n\t\t \n\t\t }}\n\t\t \tcatch (Exception s)\n\t\t {}\n\t\t \n\t\t\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t}",
"public static Patent transform(String patentxml) {\n\t\t patentxml = patentxml.trim();\n\t\t //patentxml = patentxml.replace(\"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 3.0//EN\\\" \\\"http://www.w3.org/Math/DTD/mathml3/mathml3.dtd\\\">\", \"<!DOCTYPE PATDOC [<!ENTITY nbsp \\\" \\\" ><!ENTITY iexcl \\\"¡\\\" ><!ENTITY cent \\\"¢\\\" ><!ENTITY pound \\\"£\\\" ><!ENTITY curren \\\"¤\\\" ><!ENTITY yen \\\"¥\\\" ><!ENTITY brvbar \\\"¦\\\" ><!ENTITY sect \\\"§\\\" ><!ENTITY uml \\\"¨\\\" ><!ENTITY copy \\\"©\\\" ><!ENTITY ordf \\\"ª\\\" ><!ENTITY laquo \\\"«\\\" ><!ENTITY not \\\"¬\\\" ><!ENTITY shy \\\"­\\\" ><!ENTITY reg \\\"®\\\" ><!ENTITY macr \\\"¯\\\" ><!ENTITY deg \\\"°\\\" ><!ENTITY plusmn \\\"±\\\" ><!ENTITY sup2 \\\"²\\\" ><!ENTITY sup3 \\\"³\\\" ><!ENTITY acute \\\"´\\\" ><!ENTITY micro \\\"µ\\\" ><!ENTITY para \\\"¶\\\" ><!ENTITY middot \\\"·\\\" ><!ENTITY cedil \\\"¸\\\" ><!ENTITY sup1 \\\"¹\\\" ><!ENTITY ordm \\\"º\\\" ><!ENTITY raquo \\\"»\\\" ><!ENTITY frac14 \\\"¼\\\" ><!ENTITY frac12 \\\"½\\\" ><!ENTITY frac34 \\\"¾\\\" ><!ENTITY iquest \\\"¿\\\" ><!ENTITY Agrave \\\"À\\\" ><!ENTITY Aacute \\\"Á\\\" ><!ENTITY Acirc \\\"Â\\\" ><!ENTITY Atilde \\\"Ã\\\" ><!ENTITY Auml \\\"Ä\\\" ><!ENTITY Aring \\\"Å\\\" ><!ENTITY AElig \\\"Æ\\\" ><!ENTITY Ccedil \\\"Ç\\\" ><!ENTITY Egrave \\\"È\\\" ><!ENTITY Eacute \\\"É\\\" ><!ENTITY Ecirc \\\"Ê\\\" ><!ENTITY Euml \\\"Ë\\\" ><!ENTITY Igrave \\\"Ì\\\" ><!ENTITY Iacute \\\"Í\\\" ><!ENTITY Icirc \\\"Î\\\" ><!ENTITY Iuml \\\"Ï\\\" ><!ENTITY ETH \\\"Ð\\\" ><!ENTITY Ntilde \\\"Ñ\\\" ><!ENTITY Ograve \\\"Ò\\\" ><!ENTITY Oacute \\\"Ó\\\" ><!ENTITY Ocirc \\\"Ô\\\" ><!ENTITY Otilde \\\"Õ\\\" ><!ENTITY Ouml \\\"Ö\\\" ><!ENTITY times \\\"×\\\" ><!ENTITY Oslash \\\"Ø\\\" ><!ENTITY Ugrave \\\"Ù\\\" ><!ENTITY Uacute \\\"Ú\\\" ><!ENTITY Ucirc \\\"Û\\\" ><!ENTITY Uuml \\\"Ü\\\" ><!ENTITY Yacute \\\"Ý\\\" ><!ENTITY THORN \\\"Þ\\\" ><!ENTITY szlig \\\"ß\\\" ><!ENTITY agrave \\\"à\\\" ><!ENTITY aacute \\\"á\\\" ><!ENTITY acirc \\\"â\\\" ><!ENTITY atilde \\\"ã\\\" ><!ENTITY auml \\\"ä\\\" ><!ENTITY aring \\\"å\\\" ><!ENTITY aelig \\\"æ\\\" ><!ENTITY ccedil \\\"ç\\\" ><!ENTITY egrave \\\"è\\\" ><!ENTITY eacute \\\"é\\\" ><!ENTITY ecirc \\\"ê\\\" ><!ENTITY euml \\\"ë\\\" ><!ENTITY igrave \\\"ì\\\" ><!ENTITY iacute \\\"í\\\" ><!ENTITY icirc \\\"î\\\" ><!ENTITY iuml \\\"ï\\\" ><!ENTITY eth \\\"ð\\\" ><!ENTITY ntilde \\\"ñ\\\" ><!ENTITY ograve \\\"ò\\\" ><!ENTITY oacute \\\"ó\\\" ><!ENTITY ocirc \\\"ô\\\" ><!ENTITY otilde \\\"õ\\\" ><!ENTITY ouml \\\"ö\\\" ><!ENTITY divide \\\"÷\\\" ><!ENTITY oslash \\\"ø\\\" ><!ENTITY ugrave \\\"ù\\\" ><!ENTITY uacute \\\"ú\\\" ><!ENTITY ucirc \\\"û\\\" ><!ENTITY uuml \\\"ü\\\" ><!ENTITY yacute \\\"ý\\\" ><!ENTITY thorn \\\"þ\\\" ><!ENTITY yuml \\\"ÿ\\\" > <!ENTITY lt \\\"&#60;\\\" > <!ENTITY gt \\\">\\\" > <!ENTITY amp \\\"&#38;\\\" > <!ENTITY apos \\\"'\\\" > <!ENTITY quot \\\""\\\" > <!ENTITY OElig \\\"Œ\\\" > <!ENTITY oelig \\\"œ\\\" > <!ENTITY Scaron \\\"Š\\\" > <!ENTITY scaron \\\"š\\\" > <!ENTITY Yuml \\\"Ÿ\\\" > <!ENTITY circ \\\"ˆ\\\" > <!ENTITY tilde \\\"˜\\\" > <!ENTITY ensp \\\" \\\" > <!ENTITY emsp \\\" \\\" > <!ENTITY thinsp \\\" \\\" > <!ENTITY zwnj \\\"‌\\\" > <!ENTITY zwj \\\"‍\\\" > <!ENTITY lrm \\\"‎\\\" > <!ENTITY rlm \\\"‏\\\" > <!ENTITY ndash \\\"–\\\" > <!ENTITY mdash \\\"—\\\" > <!ENTITY lsquo \\\"‘\\\" > <!ENTITY rsquo \\\"’\\\" > <!ENTITY sbquo \\\"‚\\\" > <!ENTITY ldquo \\\"“\\\" > <!ENTITY rdquo \\\"”\\\" > <!ENTITY bdquo \\\"„\\\" > <!ENTITY dagger \\\"†\\\" > <!ENTITY Dagger \\\"‡\\\" > <!ENTITY permil \\\"‰\\\" > <!ENTITY lsaquo \\\"‹\\\" > <!ENTITY rsaquo \\\"›\\\" > <!ENTITY euro \\\"€\\\" > <!ENTITY minus \\\"+\\\" > <!ENTITY plus \\\"+\\\" > <!ENTITY equals \\\"=\\\" > <!ENTITY af \\\"\\\" > <!ENTITY it \\\"\\\" ><!ENTITY fnof \\\"ƒ\\\" > <!ENTITY Alpha \\\"Α\\\" > <!ENTITY Beta \\\"Β\\\" > <!ENTITY Gamma \\\"Γ\\\" > <!ENTITY Delta \\\"Δ\\\" > <!ENTITY Epsilon \\\"Ε\\\" > <!ENTITY Zeta \\\"Ζ\\\" > <!ENTITY Eta \\\"Η\\\" > <!ENTITY Theta \\\"Θ\\\" > <!ENTITY Iota \\\"Ι\\\" > <!ENTITY Kappa \\\"Κ\\\" > <!ENTITY Lambda \\\"Λ\\\" > <!ENTITY Mu \\\"Μ\\\" > <!ENTITY Nu \\\"Ν\\\" > <!ENTITY Xi \\\"Ξ\\\" > <!ENTITY Omicron \\\"Ο\\\" > <!ENTITY Pi \\\"Π\\\" > <!ENTITY Rho \\\"Ρ\\\" > <!ENTITY Sigma \\\"Σ\\\" > <!ENTITY Tau \\\"Τ\\\" > <!ENTITY Upsilon \\\"Υ\\\" > <!ENTITY Phi \\\"Φ\\\" > <!ENTITY Chi \\\"Χ\\\" > <!ENTITY Psi \\\"Ψ\\\" > <!ENTITY Omega \\\"Ω\\\" > <!ENTITY alpha \\\"α\\\" > <!ENTITY beta \\\"β\\\" > <!ENTITY gamma \\\"γ\\\" > <!ENTITY delta \\\"δ\\\" > <!ENTITY epsilon \\\"ε\\\" > <!ENTITY zeta \\\"ζ\\\" > <!ENTITY eta \\\"η\\\" > <!ENTITY theta \\\"θ\\\" > <!ENTITY iota \\\"ι\\\" > <!ENTITY kappa \\\"κ\\\" > <!ENTITY lambda \\\"λ\\\" > <!ENTITY mu \\\"μ\\\" > <!ENTITY nu \\\"ν\\\" > <!ENTITY xi \\\"ξ\\\" > <!ENTITY omicron \\\"ο\\\" > <!ENTITY pi \\\"π\\\" > <!ENTITY rho \\\"ρ\\\" > <!ENTITY sigmaf \\\"ς\\\" > <!ENTITY sigma \\\"σ\\\" > <!ENTITY tau \\\"τ\\\" > <!ENTITY upsilon \\\"υ\\\" > <!ENTITY phi \\\"φ\\\" > <!ENTITY chi \\\"χ\\\" > <!ENTITY psi \\\"ψ\\\" > <!ENTITY omega \\\"ω\\\" > <!ENTITY thetasym \\\"ϑ\\\" > <!ENTITY upsih \\\"ϒ\\\" > <!ENTITY piv \\\"ϖ\\\" > <!ENTITY bull \\\"•\\\" > <!ENTITY hellip \\\"…\\\" > <!ENTITY prime \\\"′\\\" > <!ENTITY Prime \\\"″\\\" > <!ENTITY oline \\\"‾\\\" > <!ENTITY frasl \\\"⁄\\\" > <!ENTITY weierp \\\"℘\\\" > <!ENTITY image \\\"ℑ\\\" > <!ENTITY real \\\"ℜ\\\" > <!ENTITY trade \\\"™\\\" > <!ENTITY alefsym \\\"ℵ\\\" > <!ENTITY larr \\\"←\\\" > <!ENTITY uarr \\\"↑\\\" > <!ENTITY rarr \\\"→\\\" > <!ENTITY darr \\\"↓\\\" > <!ENTITY harr \\\"↔\\\" > <!ENTITY crarr \\\"↵\\\" > <!ENTITY lArr \\\"⇐\\\" > <!ENTITY uArr \\\"⇑\\\" > <!ENTITY rArr \\\"⇒\\\" > <!ENTITY dArr \\\"⇓\\\" > <!ENTITY hArr \\\"⇔\\\" > <!ENTITY forall \\\"∀\\\" > <!ENTITY part \\\"∂\\\" > <!ENTITY exist \\\"∃\\\" > <!ENTITY empty \\\"∅\\\" > <!ENTITY nabla \\\"∇\\\" > <!ENTITY isin \\\"∈\\\" > <!ENTITY notin \\\"∉\\\" > <!ENTITY ni \\\"∋\\\" > <!ENTITY prod \\\"∏\\\" > <!ENTITY sum \\\"∑\\\" > <!ENTITY minus \\\"−\\\" > <!ENTITY lowast \\\"∗\\\" > <!ENTITY radic \\\"√\\\" > <!ENTITY prop \\\"∝\\\" > <!ENTITY infin \\\"∞\\\" > <!ENTITY ang \\\"∠\\\" > <!ENTITY and \\\"∧\\\" > <!ENTITY or \\\"∨\\\" > <!ENTITY cap \\\"∩\\\" > <!ENTITY cup \\\"∪\\\" > <!ENTITY int \\\"∫\\\" > <!ENTITY there4 \\\"∴\\\" > <!ENTITY sim \\\"∼\\\" > <!ENTITY cong \\\"≅\\\" > <!ENTITY asymp \\\"≈\\\" > <!ENTITY ne \\\"≠\\\" > <!ENTITY equiv \\\"≡\\\" > <!ENTITY le \\\"≤\\\" > <!ENTITY ge \\\"≥\\\" > <!ENTITY sub \\\"⊂\\\" > <!ENTITY sup \\\"⊃\\\" > <!ENTITY nsub \\\"⊄\\\" > <!ENTITY sube \\\"⊆\\\" > <!ENTITY supe \\\"⊇\\\" > <!ENTITY oplus \\\"⊕\\\" > <!ENTITY otimes \\\"⊗\\\" > <!ENTITY perp \\\"⊥\\\" > <!ENTITY sdot \\\"⋅\\\" > <!ENTITY lceil \\\"⌈\\\" > <!ENTITY rceil \\\"⌉\\\" > <!ENTITY lfloor \\\"⌊\\\" > <!ENTITY rfloor \\\"⌋\\\" > <!ENTITY lang \\\"〈\\\" > <!ENTITY rang \\\"〉\\\" > <!ENTITY loz \\\"◊\\\" > <!ENTITY spades \\\"♠\\\" > <!ENTITY clubs \\\"♣\\\" > <!ENTITY hearts \\\"♥\\\" > <!ENTITY diams \\\"♦\\\" > <!ENTITY lcub \\\"\\\" > <!ENTITY rcub \\\"\\\" > <!ENTITY excl \\\"\\\" > <!ENTITY quest \\\"\\\" > <!ENTITY num \\\"\\\" >]>\");\n\t\t //patentxml = patentxml.replace(\"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 3.0//EN\\\" \\\"http://www.w3.org/Math/DTD/mathml3/mathml3.dtd\\\">\", \"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 2.0//EN\\\" \\\"dtds/mathml2.dtd\\\">\");\n\t\t patentxml = patentxml.replace(\"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 3.0//EN\\\" \\\"http://www.w3.org/Math/DTD/mathml3/mathml3.dtd\\\">\", \"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 2.0//EN\\\" \\\"http://10.18.203.79:7070/solr/dtds/mathml2.dtd\\\">\");\n\t\t Patent parsedPatent = null;\n\t if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.5 2014-04-03\\\"\")==true) { // patent xml is grant in DTD v4.5\n\t\t\t\tparsedPatent = parseGrantv45(patentxml);\t\t \n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.4 2013-05-16\\\"\")==true) { // patent xml is grant in DTD v4.4\n\t \tparsedPatent = parseGrantv44(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.3 2012-12-04\\\"\")==true) { // patent xml is grant in DTD v4.3\n\t \tparsedPatent = parseGrantv43(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.2 2006-08-23\\\"\")==true) { // patent xml is grant in DTD v4.2\n\t \tparsedPatent = parseGrantv42(patentxml);\n\t }\t\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.1 2005-08-25\\\"\")==true) { // patent xml is grant in DTD v4.5\n\t \tparsedPatent = parseGrantv41(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v40 2004-12-02\\\"\")==true) { // patent xml is grant in DTD v4.0\n\t \tparsedPatent = parseGrantv40_041202(patentxml);\n\t }\n\t else if(patentxml.contains(\"<PATDOC DTD=\\\"2.5\\\"\")==true) { // patent xml is grant in DTD v2.5\n\t \tparsedPatent = parseGrantv25(patentxml);\t\t \t\t\t\t \n\t }\n\t else if(patentxml.contains(\"<PATDOC DTD=\\\"2.4\\\"\")==true) { // patent xml is grant in DTD v2.5\n\t \tparsedPatent = parseGrantv24(patentxml);\t\t \t\t\t\t \n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.4 2014-04-03\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv44(patentxml);\t\t \n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.3 2012-12-04\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv43(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.2 2006-08-23\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv42(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.1 2005-08-25\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv41(patentxml);\n\t }\t \t \n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-12-02\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_041202(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-10-28\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_041028(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-09-27\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_040927(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-09-08\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_040908(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-04-15\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_040415(patentxml);\n\t }\n\t else if(patentxml.indexOf(\"<!DOCTYPE patent-application-publication\")==0 && patentxml.contains(\"pap-v16-2002-01-01.dtd\")==true) { // patent xml is application in DTD v1.6\n\t \tparsedPatent = parseApplicationv16(patentxml);\n\t }\n\t\t return parsedPatent==null? new Patent():parsedPatent;\n\t }",
"public abstract StringBuffer toXML ();",
"public static void encodeXML(PrintWriter out, String str) {\n int n = str.length();\n for (int i = 0; i < n; i++) {\n char c = str.charAt(i);\n if (c == '<') {\n out.write(\"<\");\n continue;\n }\n if (c == '>') {\n out.write(\">\");\n continue;\n }\n if (c == '&') {\n out.write(\"&\");\n continue;\n }\n if (c == '\\'') {\n out.write(\"'\");\n continue;\n }\n if (c == '\\\"') {\n out.write(\""\");\n continue;\n }\n if (c >= 32 && c <= 126) {\n out.write(c);\n continue;\n }\n out.write(\"&#x\");\n String v = Integer.toString(c, 16);\n for (int j = v.length(); j < 4; j++)\n out.write('0');\n out.write(v);\n out.write(';');\n }\n }",
"public abstract StringBuffer toXML();",
"public static String encodeXmlValue(String inString) {\n String retString = inString;\n\n retString = StringUtil.replaceString(retString, \"&\", \"&\");\n retString = StringUtil.replaceString(retString, \"<\", \"<\");\n retString = StringUtil.replaceString(retString, \">\", \">\");\n retString = StringUtil.replaceString(retString, \"\\\"\", \""\");\n retString = StringUtil.replaceString(retString, \"'\", \"'\");\n return retString;\n }",
"public void createAnnotation(XMLElement xE, XMLElement xParent) {\n\n\t\t//\t\tpublic void createAnnotation (JCas aJCas, XMLElement xE) {\n\t\tXMLElementAnnotation xEAnnot = new XMLElementAnnotation(this.getaJCas());\n\n\t\tif (debug) {\n\t\t\t// Avec le coveredText le substring plante si begin ou end sont négatifs... ce qui est normal donc je ne l'affichage pas\n\t\t\t//\t\tSystem.out.println(\"Debug: createAnnotation tag()>\"+xE.getqName()+\"< begin()>\"+xE.getBegin()+\"< end()\"+xE.getEnd()+\"< coveredText>\"+this.getaJCas().getDocumentText().substring(xE.getBegin(), xE.getEnd())+\"<\");\n\n\t\t\tSystem.out.println(\"Debug: createAnnotation tag()>\"+xE.getQualifiedName()+\"< begin()>\"+xE.getBegin()+\"< end()\"+xE.getEnd()+\"<\");\n\t\t}\n\n\t\tif ((xE.getBegin() == -1) && (xE.getEnd() !=-1)) {\n\t\t\t// nous sommes en présence d'un élément vide\n\t\t\txE.setBegin(xE.getEnd());\n\t\t\tif (debug) System.out.println(\"Debug: il s'agit d'un élément vide, on fixe le begin à >\"+xE.getEnd()+\"<\");\n\n\t\t}\n\n\t\tif ((xE.getBegin() != -1) && (xE.getEnd() !=-1)) {\n\t\t\t// si l'on est bien en présence d'une annotation\n\t\t\t// normalement le test devrait toujours est validé mais sait on jamais...\n\n\t\t\t// Set the offsets\n\t\t\txEAnnot.setBegin(xE.getBegin());\n\t\t\txEAnnot.setEnd(xE.getEnd());\n\n\t\t\t// Set the uri\n\t\t\txEAnnot.setUri(xE.getUri());\n\n\t\t\t// Set the local name\n\t\t\txEAnnot.setLocalName(xE.getLocalName());\n\n\t\t\t// Set the qualified Name\n\t\t\txEAnnot.setQualifiedName(xE.getQualifiedName());\n\t\t\t//\t\t\t\txEAnnot.setElementName(xE.getQualifiedName());\n\n\t\t\t// Create array of attribute names and values as string \n\t\t\t//StringArray attNameArray = new StringArray(this.getaJCas(), xE.getSimpleAttributeList().size()) ; \n\t\t\t//StringArray attValueArray = new StringArray(this.getaJCas(), xE.getSimpleAttributeList().size()) ; \n\n\n\t\t\t// Create FSArray of attribute\n\t\t\t//ArrayList<XMLAttributeAnnotation> attributesArrayList = new ArrayList<XMLAttributeAnnotation>();\n\t\t\t//FSArray attributeFSArray = new FSArray(this.getaJCas(), xE.getAttributes().getLength());\n\n\t\t\t//FSArray attributeFSArray = null;\n\t\t\t//if (xE.getSimpleAttributeList().size()>=1) \n\t\t\tFSArray\tattributeFSArray = new FSArray(this.getaJCas(), xE.getSimpleAttributeList().size());\n\n\t\t\t//if (debug) {\n\t\t\t//System.out.print (\"Debug: createAnnotation \");\n\t\t\t//for (int indent=0 ; indent < xE.getAttributes().getLength() ; indent++) {\n\t\t\t//\tif (xE.getAttributes().getValue(indent).startsWith(\"mph=\\\"\")) System.out.println (\"Debug: createAnnotation >\"+xE.getAttributes().getLocalName(indent)+\"=\\\"\"+xE.getAttributes().getValue(indent)+\"\\\"< \" );\n\t\t\t//System.out.print (\">\"+xE.getAttributes().getLocalName(indent)+\"=\\\"\"+xE.getAttributes().getValue(indent)+\"\\\"< \" );\n\n\t\t\t//}\n\t\t\t//System.out.println ();\n\t\t\t//}\n\n\t\t\t// Create attributeString\n\t\t\t//String attributesString = \"\";\n\n\t\t\t// Set the attributes\n\t\t\t//for (int a = 0 ; a < xE.getAttributes().getLength() ; a++) {\n\t\t\tfor (int a = 0 ; a < xE.getSimpleAttributeList().size() ; a++) {\n\n\t\t\t\t// test de TM\n\t\t\t\t//if (xE.getAttributes().getLocalName(a).equalsIgnoreCase(\"cat\")) {\n\t\t\t\t//attNameArray.set(a, xE.getSimpleAttributeList().get(a).getQualifiedName());\n\t\t\t\t//attValueArray.set(a, xE.getSimpleAttributeList().get(a).getValue());\n\t\t\t\t//attributesString += xE.getSimpleAttributeList().get(a).getQualifiedName() +\"=\\\"\" + xE.getSimpleAttributeList().get(a).getValue()+\"\\\",\"; \n\t\t\t\tXMLAttributeAnnotation xAAnnot = new XMLAttributeAnnotation(this.getaJCas());\n\t\t\t\txAAnnot.setBegin(xE.getBegin());\n\t\t\t\txAAnnot.setEnd(xE.getEnd());\n\n\t\t\t\t// Set element (name/annotation) of the attribute\n\t\t\t\t//xAAnnot.setElementName(xE.getQualifiedName());\n\t\t\t\t// performed by the parent for this child\n\t\t\t\txAAnnot.setElement(xEAnnot);\n\n\t\t\t\t// Set attribute qualifiedName, uri and localName\n\t\t\t\tString qualifiedName = xE.getSimpleAttributeList().get(a).getQualifiedName();\n\t\t\t\tString uri = xE.getSimpleAttributeList().get(a).getUri();\n\t\t\t\tString localName = xE.getSimpleAttributeList().get(a).getLocalName();\n\t\t\t\t//xAAnnot.setAttributeName(xE.getAttributes().getLocalName(a));\n\t\t\t\t//xAAnnot.setAttributeName(name);\n\t\t\t\txAAnnot.setQualifiedName(qualifiedName);\n\t\t\t\txAAnnot.setUri(uri);\n\t\t\t\txAAnnot.setLocalName(localName);\n\n\t\t\t\t// set value\n\t\t\t\tString value = xE.getSimpleAttributeList().get(a).getValue();\n\t\t\t\t//xAAnnot.setAttributeValue(value);\n\t\t\t\txAAnnot.setValue(value);\n\n\t\t\t\t//attributesArrayList.add(xAAnnot);\n\t\t\t\t// when tested with the FrenchTreeBank this case should never be verified\n\t\t\t\t// In the startElement method, there is a bit more explanation\n\t\t\t\tif (debug) if (value.startsWith(\"mph=\\\"\")) {\n\t\t\t\t\tSystem.out.println(\"Debug: createAnnotation before addToIndexes name=\"+qualifiedName+\" value=\"+value);\n\n\t\t\t\t}\n\t\t\t\txAAnnot.addToIndexes(this.getaJCas());\n\t\t\t\tattributeFSArray.set(a, xAAnnot);\n\t\t\t\t//xAAnnot.\n\t\t\t\t//}\n\t\t\t}\n\n\t\t\t//\t\t\tif (!attributesString.equalsIgnoreCase(\"\")) attributesString = attributesString.substring(0, attributesString.length()-1);\n\t\t\t//\t\t\tattributesString = \"^\" +attributesString + \"$\";\n\t\t\t//\t\t\txEAnnot.setAttributesString(attributesString);\n\n\t\t\t// currently unnecessary since xpath cannot target it \n\t\t\t//xEAnnot.setAttributeNames(attNameArray);\n\t\t\t//xEAnnot.setAttributeValues(attValueArray);\n\t\t\txEAnnot.setAttributes(attributeFSArray);\n\n\t\t\t//System.err.println(\"Debug: xE.qualifiedName \"+ xE.qualifiedName);\n\t\t\t//if (xParent != null) System.err.println(\"Debug: xParent.qualifiedName \"+ xParent.qualifiedName);\n\n\t\t\t// specify that the current annotation is a child of the parent \n\t\t\tif (xParent != null) xParent.addChild(xEAnnot);\n\n\t\t\t// for each child of the current annotation \n\t\t\t// add it in my FSArray children\n\t\t\t// set its parent feature with me\n\t\t\tFSArray childrenFSArray = new FSArray(aJCas, xE.getChildren().size());\n\t\t\tfor (int a = 0 ; a < xE.getChildren().size() ; a++) {\n\t\t\t\tchildrenFSArray.set(a,xE.getChildren().get(a));\n\t\t\t\tXMLElementAnnotation xEA = (XMLElementAnnotation) xE.getChildren().get(a);\n\t\t\t\txEA.setParent(xEAnnot);\n\t\t\t}\n\t\t\txEAnnot.setChildren(childrenFSArray);\n\n\t\t\t// add the current created annotation to the index\n\t\t\txEAnnot.addToIndexes(this.getaJCas()); \n\n\t\t}\n\t}",
"@Override\n\tpublic void cdata() {\n\t\t\n\t}",
"public interface IParser {\n\n\t/**\n\t * Encodes a resource using the parser's given encoding format.\n\t *\n\t * @param theResource The resource to encode. Must not be null.\n\t * @return A string representation of the encoding\n\t * @throws DataFormatException If any invalid elements within the contents to be encoded prevent successful encoding.\n\t */\n\tString encodeResourceToString(IBaseResource theResource) throws DataFormatException;\n\n\t/**\n\t * Encodes a resource using the parser's given encoding format.\n\t *\n\t * @param theResource The resource to encode. Must not be null.\n\t * @param theWriter The writer to write to.\n\t * @throws DataFormatException If any invalid elements within the contents to be encoded prevent successful encoding.\n\t */\n\tvoid encodeResourceToWriter(IBaseResource theResource, Writer theWriter) throws IOException, DataFormatException;\n\n\t/**\n\t * Encodes any FHIR element to a string.\n\t * If a {@link IBaseResource resource object} is passed in, the resource will be encoded using standard FHIR\n\t * encoding rules. If a {@link org.hl7.fhir.instance.model.api.IPrimitiveType primitive datatype} is passed in,\n\t * the string value of the primitive type is encoded. Any extensions on the primitive type are not encoded.\n\t * If any other object is passed in, a fragment is encoded. The format of the fragment depends on the encoding:\n\t * <ul>\n\t * <li><b>JSON</b>: The fragment is output as a simple JSON object, exactly as it would appear within an encoded resource.</li>\n\t * <li><b>XML</b>: The fragment is output as an XML element as it would appear within an encoded resource, however it is wrapped in an element called <code><element></code> in order to avoid producing a document with multiple root tags.</li>\n\t * <li><b>RDF/Turtle</b>: This mode is not supported and will throw an {@link ca.uhn.fhir.rest.server.exceptions.InternalErrorException}</li>\n\t * </ul>\n\t *\n\t * @since 6.8.0\n\t */\n\tString encodeToString(IBase theElement) throws DataFormatException;\n\n\t/**\n\t * Encodes any FHIR element to a writer.\n\t * If a {@link IBaseResource resource object} is passed in, the resource will be encoded using standard FHIR\n\t * encoding rules. If a {@link org.hl7.fhir.instance.model.api.IPrimitiveType primitive datatype} is passed in,\n\t * the string value of the primitive type is encoded. Any extensions on the primitive type are not encoded.\n\t * If any other object is passed in, a fragment is encoded. The format of the fragment depends on the encoding:\n\t * <ul>\n\t * <li><b>JSON</b>: The fragment is output as a simple JSON object, exactly as it would appear within an encoded resource.</li>\n\t * <li><b>XML</b>: The fragment is output as an XML element as it would appear within an encoded resource, however it is wrapped in an element called <code><element></code> in order to avoid producing a document with multiple root tags.</li>\n\t * <li><b>RDF/Turtle</b>: This mode is not supported and will throw an {@link ca.uhn.fhir.rest.server.exceptions.InternalErrorException}</li>\n\t * </ul>\n\t *\n\t * @since 6.8.0\n\t */\n\tvoid encodeToWriter(IBase theElement, Writer theWriter) throws DataFormatException, IOException;\n\n\t/**\n\t * If not set to null (as is the default) this ID will be used as the ID in any\n\t * resources encoded by this parser\n\t */\n\tIIdType getEncodeForceResourceId();\n\n\t/**\n\t * When encoding, force this resource ID to be encoded as the resource ID\n\t */\n\tIParser setEncodeForceResourceId(IIdType theForceResourceId);\n\n\t/**\n\t * Which encoding does this parser instance produce?\n\t */\n\tEncodingEnum getEncoding();\n\n\t/**\n\t * Gets the preferred types, as set using {@link #setPreferTypes(List)}\n\t *\n\t * @return Returns the preferred types, or <code>null</code>\n\t * @see #setPreferTypes(List)\n\t */\n\tList<Class<? extends IBaseResource>> getPreferTypes();\n\n\t/**\n\t * If set, when parsing resources the parser will try to use the given types when possible, in\n\t * the order that they are provided (from highest to lowest priority). For example, if a custom\n\t * type which declares to implement the Patient resource is passed in here, and the\n\t * parser is parsing a Bundle containing a Patient resource, the parser will use the given\n\t * custom type.\n\t * <p>\n\t * This feature is related to, but not the same as the\n\t * {@link FhirContext#setDefaultTypeForProfile(String, Class)} feature.\n\t * <code>setDefaultTypeForProfile</code> is used to specify a type to be used\n\t * when a resource explicitly declares support for a given profile. This\n\t * feature specifies a type to be used irrespective of the profile declaration\n\t * in the metadata statement.\n\t * </p>\n\t *\n\t * @param thePreferTypes The preferred types, or <code>null</code>\n\t */\n\tvoid setPreferTypes(List<Class<? extends IBaseResource>> thePreferTypes);\n\n\t/**\n\t * Returns true if resource IDs should be omitted\n\t *\n\t * @see #setOmitResourceId(boolean)\n\t * @since 1.1\n\t */\n\tboolean isOmitResourceId();\n\n\t/**\n\t * If set to <code>true</code> (default is <code>false</code>) the ID of any resources being encoded will not be\n\t * included in the output. Note that this does not apply to contained resources, only to root resources. In other\n\t * words, if this is set to <code>true</code>, contained resources will still have local IDs but the outer/containing\n\t * ID will not have an ID.\n\t * <p>\n\t * If the resource being encoded is a Bundle or Parameters resource, this setting only applies to the\n\t * outer resource being encoded, not any resources contained wihthin.\n\t * </p>\n\t *\n\t * @param theOmitResourceId Should resource IDs be omitted\n\t * @return Returns a reference to <code>this</code> parser so that method calls can be chained together\n\t * @since 1.1\n\t */\n\tIParser setOmitResourceId(boolean theOmitResourceId);\n\n\t/**\n\t * If set to <code>true<code> (which is the default), resource references containing a version\n\t * will have the version removed when the resource is encoded. This is generally good behaviour because\n\t * in most situations, references from one resource to another should be to the resource by ID, not\n\t * by ID and version. In some cases though, it may be desirable to preserve the version in resource\n\t * links. In that case, this value should be set to <code>false</code>.\n\t *\n\t * @return Returns the parser instance's configuration setting for stripping versions from resource references when\n\t * encoding. This method will retun <code>null</code> if no value is set, in which case\n\t * the value from the {@link ParserOptions} will be used (default is <code>true</code>)\n\t * @see ParserOptions\n\t */\n\tBoolean getStripVersionsFromReferences();\n\n\t/**\n\t * If set to <code>true<code> (which is the default), resource references containing a version\n\t * will have the version removed when the resource is encoded. This is generally good behaviour because\n\t * in most situations, references from one resource to another should be to the resource by ID, not\n\t * by ID and version. In some cases though, it may be desirable to preserve the version in resource\n\t * links. In that case, this value should be set to <code>false</code>.\n\t * <p>\n\t * This method provides the ability to globally disable reference encoding. If finer-grained\n\t * control is needed, use {@link #setDontStripVersionsFromReferencesAtPaths(String...)}\n\t * </p>\n\t *\n\t * @param theStripVersionsFromReferences Set this to <code>false<code> to prevent the parser from removing resource versions from references (or <code>null</code> to apply the default setting from the {@link ParserOptions}\n\t * @return Returns a reference to <code>this</code> parser so that method calls can be chained together\n\t * @see #setDontStripVersionsFromReferencesAtPaths(String...)\n\t * @see ParserOptions\n\t */\n\tIParser setStripVersionsFromReferences(Boolean theStripVersionsFromReferences);\n\n\t/**\n\t * Is the parser in \"summary mode\"? See {@link #setSummaryMode(boolean)} for information\n\t *\n\t * @see {@link #setSummaryMode(boolean)} for information\n\t */\n\tboolean isSummaryMode();\n\n\t/**\n\t * If set to <code>true</code> (default is <code>false</code>) only elements marked by the FHIR specification as\n\t * being \"summary elements\" will be included.\n\t *\n\t * @return Returns a reference to <code>this</code> parser so that method calls can be chained together\n\t */\n\tIParser setSummaryMode(boolean theSummaryMode);\n\n\t/**\n\t * Parses a resource\n\t *\n\t * @param theResourceType The resource type to use. This can be used to explicitly specify a class which extends a built-in type\n\t * (e.g. a custom type extending the default Patient class)\n\t * @param theReader The reader to parse input from. Note that the Reader will not be closed by the parser upon completion.\n\t * @return A parsed resource\n\t * @throws DataFormatException If the resource can not be parsed because the data is not recognized or invalid for any reason\n\t */\n\t<T extends IBaseResource> T parseResource(Class<T> theResourceType, Reader theReader) throws DataFormatException;\n\n\t/**\n\t * Parses a resource\n\t *\n\t * @param theResourceType The resource type to use. This can be used to explicitly specify a class which extends a built-in type\n\t * (e.g. a custom type extending the default Patient class)\n\t * @param theInputStream The InputStream to parse input from, <b>with an implied charset of UTF-8</b>. Note that the InputStream will not be closed by the parser upon completion.\n\t * @return A parsed resource\n\t * @throws DataFormatException If the resource can not be parsed because the data is not recognized or invalid for any reason\n\t */\n\t<T extends IBaseResource> T parseResource(Class<T> theResourceType, InputStream theInputStream)\n\t\t\tthrows DataFormatException;\n\n\t/**\n\t * Parses a resource\n\t *\n\t * @param theResourceType The resource type to use. This can be used to explicitly specify a class which extends a built-in type\n\t * (e.g. a custom type extending the default Patient class)\n\t * @param theString The string to parse\n\t * @return A parsed resource\n\t * @throws DataFormatException If the resource can not be parsed because the data is not recognized or invalid for any reason\n\t */\n\t<T extends IBaseResource> T parseResource(Class<T> theResourceType, String theString) throws DataFormatException;\n\n\t/**\n\t * Parses a resource\n\t *\n\t * @param theReader The reader to parse input from. Note that the Reader will not be closed by the parser upon completion.\n\t * @return A parsed resource. Note that the returned object will be an instance of {@link IResource} or\n\t * {@link IAnyResource} depending on the specific FhirContext which created this parser.\n\t * @throws DataFormatException If the resource can not be parsed because the data is not recognized or invalid for any reason\n\t */\n\tIBaseResource parseResource(Reader theReader) throws ConfigurationException, DataFormatException;\n\n\t/**\n\t * Parses a resource\n\t *\n\t * @param theInputStream The InputStream to parse input from (charset is assumed to be UTF-8).\n\t * Note that the stream will not be closed by the parser upon completion.\n\t * @return A parsed resource. Note that the returned object will be an instance of {@link IResource} or\n\t * {@link IAnyResource} depending on the specific FhirContext which created this parser.\n\t * @throws DataFormatException If the resource can not be parsed because the data is not recognized or invalid for any reason\n\t */\n\tIBaseResource parseResource(InputStream theInputStream) throws ConfigurationException, DataFormatException;\n\n\t/**\n\t * Parses a resource\n\t *\n\t * @param theMessageString The string to parse\n\t * @return A parsed resource. Note that the returned object will be an instance of {@link IResource} or\n\t * {@link IAnyResource} depending on the specific FhirContext which created this parser.\n\t * @throws DataFormatException If the resource can not be parsed because the data is not recognized or invalid for any reason\n\t */\n\tIBaseResource parseResource(String theMessageString) throws ConfigurationException, DataFormatException;\n\n\t/**\n\t * If provided, specifies the elements which should NOT be encoded. Valid values for this\n\t * field would include:\n\t * <ul>\n\t * <li><b>Patient</b> - Don't encode patient and all its children</li>\n\t * <li><b>Patient.name</b> - Don't encode the patient's name</li>\n\t * <li><b>Patient.name.family</b> - Don't encode the patient's family name</li>\n\t * <li><b>*.text</b> - Don't encode the text element on any resource (only the very first position may contain a\n\t * wildcard)</li>\n\t * </ul>\n\t * <p>\n\t * DSTU2 note: Note that values including meta, such as <code>Patient.meta</code>\n\t * will work for DSTU2 parsers, but values with subelements on meta such\n\t * as <code>Patient.meta.lastUpdated</code> will only work in\n\t * DSTU3+ mode.\n\t * </p>\n\t *\n\t * @param theDontEncodeElements The elements to encode\n\t * @see #setEncodeElements(Set)\n\t */\n\tIParser setDontEncodeElements(Collection<String> theDontEncodeElements);\n\n\t/**\n\t * If provided, specifies the elements which should be encoded, to the exclusion of all others. Valid values for this\n\t * field would include:\n\t * <ul>\n\t * <li><b>Patient</b> - Encode patient and all its children</li>\n\t * <li><b>Patient.name</b> - Encode only the patient's name</li>\n\t * <li><b>Patient.name.family</b> - Encode only the patient's family name</li>\n\t * <li><b>*.text</b> - Encode the text element on any resource (only the very first position may contain a\n\t * wildcard)</li>\n\t * <li><b>*.(mandatory)</b> - This is a special case which causes any mandatory fields (min > 0) to be encoded</li>\n\t * </ul>\n\t *\n\t * @param theEncodeElements The elements to encode\n\t * @see #setDontEncodeElements(Collection)\n\t */\n\tIParser setEncodeElements(Set<String> theEncodeElements);\n\n\t/**\n\t * If set to <code>true</code> (default is false), the values supplied\n\t * to {@link #setEncodeElements(Set)} will not be applied to the root\n\t * resource (typically a Bundle), but will be applied to any sub-resources\n\t * contained within it (i.e. search result resources in that bundle)\n\t */\n\tboolean isEncodeElementsAppliesToChildResourcesOnly();\n\n\t/**\n\t * If set to <code>true</code> (default is false), the values supplied\n\t * to {@link #setEncodeElements(Set)} will not be applied to the root\n\t * resource (typically a Bundle), but will be applied to any sub-resources\n\t * contained within it (i.e. search result resources in that bundle)\n\t */\n\tvoid setEncodeElementsAppliesToChildResourcesOnly(boolean theEncodeElementsAppliesToChildResourcesOnly);\n\n\t/**\n\t * Registers an error handler which will be invoked when any parse errors are found\n\t *\n\t * @param theErrorHandler The error handler to set. Must not be null.\n\t */\n\tIParser setParserErrorHandler(IParserErrorHandler theErrorHandler);\n\n\t/**\n\t * Sets the \"pretty print\" flag, meaning that the parser will encode resources with human-readable spacing and\n\t * newlines between elements instead of condensing output as much as possible.\n\t *\n\t * @param thePrettyPrint The flag\n\t * @return Returns an instance of <code>this</code> parser so that method calls can be chained together\n\t */\n\tIParser setPrettyPrint(boolean thePrettyPrint);\n\n\t/**\n\t * Sets the server's base URL used by this parser. If a value is set, resource references will be turned into\n\t * relative references if they are provided as absolute URLs but have a base matching the given base.\n\t *\n\t * @param theUrl The base URL, e.g. \"http://example.com/base\"\n\t * @return Returns an instance of <code>this</code> parser so that method calls can be chained together\n\t */\n\tIParser setServerBaseUrl(String theUrl);\n\n\t/**\n\t * If set to <code>true</code> (which is the default), the Bundle.entry.fullUrl will override the Bundle.entry.resource's\n\t * resource id if the fullUrl is defined. This behavior happens when parsing the source data into a Bundle object. Set this\n\t * to <code>false</code> if this is not the desired behavior (e.g. the client code wishes to perform additional\n\t * validation checks between the fullUrl and the resource id).\n\t *\n\t * @param theOverrideResourceIdWithBundleEntryFullUrl Set this to <code>false</code> to prevent the parser from overriding resource ids with the\n\t * Bundle.entry.fullUrl (or <code>null</code> to apply the default setting from the {@link ParserOptions})\n\t * @return Returns a reference to <code>this</code> parser so that method calls can be chained together\n\t * @see ParserOptions\n\t */\n\tIParser setOverrideResourceIdWithBundleEntryFullUrl(Boolean theOverrideResourceIdWithBundleEntryFullUrl);\n\n\t/**\n\t * If set to <code>true</code> (default is <code>false</code>), narratives will not be included in the encoded\n\t * values.\n\t */\n\tIParser setSuppressNarratives(boolean theSuppressNarratives);\n\n\t/**\n\t * Returns the value supplied to {@link IParser#setDontStripVersionsFromReferencesAtPaths(String...)}\n\t * or <code>null</code> if no value has been set for this parser (in which case the default from\n\t * the {@link ParserOptions} will be used}\n\t *\n\t * @see #setDontStripVersionsFromReferencesAtPaths(String...)\n\t * @see #setStripVersionsFromReferences(Boolean)\n\t * @see ParserOptions\n\t */\n\tSet<String> getDontStripVersionsFromReferencesAtPaths();\n\n\t/**\n\t * If supplied value(s), any resource references at the specified paths will have their\n\t * resource versions encoded instead of being automatically stripped during the encoding\n\t * process. This setting has no effect on the parsing process.\n\t * <p>\n\t * This method provides a finer-grained level of control than {@link #setStripVersionsFromReferences(Boolean)}\n\t * and any paths specified by this method will be encoded even if {@link #setStripVersionsFromReferences(Boolean)}\n\t * has been set to <code>true</code> (which is the default)\n\t * </p>\n\t *\n\t * @param thePaths A collection of paths for which the resource versions will not be removed automatically\n\t * when serializing, e.g. \"Patient.managingOrganization\" or \"AuditEvent.object.reference\". Note that\n\t * only resource name and field names with dots separating is allowed here (no repetition\n\t * indicators, FluentPath expressions, etc.). Set to <code>null</code> to use the value\n\t * set in the {@link ParserOptions}\n\t * @return Returns a reference to <code>this</code> parser so that method calls can be chained together\n\t * @see #setStripVersionsFromReferences(Boolean)\n\t * @see ParserOptions\n\t */\n\tIParser setDontStripVersionsFromReferencesAtPaths(String... thePaths);\n\n\t/**\n\t * If supplied value(s), any resource references at the specified paths will have their\n\t * resource versions encoded instead of being automatically stripped during the encoding\n\t * process. This setting has no effect on the parsing process.\n\t * <p>\n\t * This method provides a finer-grained level of control than {@link #setStripVersionsFromReferences(Boolean)}\n\t * and any paths specified by this method will be encoded even if {@link #setStripVersionsFromReferences(Boolean)}\n\t * has been set to <code>true</code> (which is the default)\n\t * </p>\n\t *\n\t * @param thePaths A collection of paths for which the resource versions will not be removed automatically\n\t * when serializing, e.g. \"Patient.managingOrganization\" or \"AuditEvent.object.reference\". Note that\n\t * only resource name and field names with dots separating is allowed here (no repetition\n\t * indicators, FluentPath expressions, etc.). Set to <code>null</code> to use the value\n\t * set in the {@link ParserOptions}\n\t * @return Returns a reference to <code>this</code> parser so that method calls can be chained together\n\t * @see #setStripVersionsFromReferences(Boolean)\n\t * @see ParserOptions\n\t */\n\tIParser setDontStripVersionsFromReferencesAtPaths(Collection<String> thePaths);\n}",
"public interface InsectXmlReader extends XmlReader<Insect> {}",
"@Override\n public String toString(\n ){\n return toXRI(); \n }",
"void visit(CDATA node);",
"public void save() {\n int hour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\r\n int minute = Calendar.getInstance().get(Calendar.MINUTE);\r\n\r\n // Hierarchie: 2010/04/05/01_05042010_00002.xml\r\n File dir = getOutputDir();\r\n File f = new File(dir, getCode().replace(' ', '_') + \".xml\");\r\n Element topLevel = new Element(\"ticket\");\r\n topLevel.setAttribute(new Attribute(\"code\", this.getCode()));\r\n topLevel.setAttribute(\"hour\", String.valueOf(hour));\r\n topLevel.setAttribute(\"minute\", String.valueOf(minute));\r\n // Articles\r\n for (Pair<Article, Integer> item : this.items) {\r\n Element e = new Element(\"article\");\r\n e.setAttribute(\"qte\", String.valueOf(item.getSecond()));\r\n // Prix unitaire\r\n e.setAttribute(\"prix\", String.valueOf(item.getFirst().getPriceInCents()));\r\n e.setAttribute(\"prixHT\", String.valueOf(item.getFirst().getPriceHTInCents()));\r\n e.setAttribute(\"idTaxe\", String.valueOf(item.getFirst().getIdTaxe()));\r\n e.setAttribute(\"categorie\", item.getFirst().getCategorie().getName());\r\n e.setAttribute(\"codebarre\", item.getFirst().getCode());\r\n e.setText(item.getFirst().getName());\r\n topLevel.addContent(e);\r\n }\r\n // Paiements\r\n for (Paiement paiement : this.paiements) {\r\n final int montantInCents = paiement.getMontantInCents();\r\n if (montantInCents > 0) {\r\n final Element e = new Element(\"paiement\");\r\n String type = \"\";\r\n if (paiement.getType() == Paiement.CB) {\r\n type = \"CB\";\r\n } else if (paiement.getType() == Paiement.CHEQUE) {\r\n type = \"CHEQUE\";\r\n } else if (paiement.getType() == Paiement.ESPECES) {\r\n type = \"ESPECES\";\r\n }\r\n e.setAttribute(\"type\", type);\r\n e.setAttribute(\"montant\", String.valueOf(montantInCents));\r\n topLevel.addContent(e);\r\n }\r\n\r\n }\r\n try {\r\n final XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());\r\n out.output(topLevel, new FileOutputStream(f));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"org.landxml.schema.landXML11.ClassificationDocument.Classification addNewClassification();",
"public static void encodeXML(StringBuilder out, String str) {\n int n = str.length();\n for (int i = 0; i < n; i++) {\n char c = str.charAt(i);\n if (c == '<') {\n out.append(\"<\");\n continue;\n }\n if (c == '>') {\n out.append(\">\");\n continue;\n }\n if (c == '&') {\n out.append(\"&\");\n continue;\n }\n if (c == '\\'') {\n out.append(\"'\");\n continue;\n }\n if (c == '\\\"') {\n out.append(\""\");\n continue;\n }\n if (c >= 32 && c <= 126) {\n out.append(c);\n continue;\n }\n out.append(\"&#x\");\n String v = Integer.toString(c, 16);\n for (int j = v.length(); j < 4; j++)\n out.append('0');\n out.append(v).append(';');\n }\n }",
"protected void processXlateText(Hashtable attributes)\n throws SAXException\n {\n\tString key = (String) attributes.get(XMLTag.ID);\n\tif ((xlatedText == null) || (textTag == null))\n\t {\n\t throw new SAXException(\"Encountered xlateText element (id=\" +\n\t\t\t key + \") outside defining element.\");\n\t }\n\tXMLTag tag = (XMLTag) attributes.get(XMLTag.TAG);\n\tString dflt = (String) attributes.get(XMLTag.REMIND);\n\tString substitute = (String) attributes.get(XMLTag.SUBSTITUTE);\n\tString xlated = textSource.getI18NText(key,dflt);\n // ignore lines that are bare accent graves\n if (xlated.compareTo(\"`\") == 0)\n return;\n if (substitute != null)\n\t {\n\t int p1 = xlated.indexOf(\"%1\");\n\t if (p1 < 0)\n\t p1 = xlated.indexOf(\"%s\");\n\t if (p1 < 0)\n\t p1 = xlated.indexOf(\"%d\");\n\t if (p1 >= 0)\n\t {\n int p2 = xlated.indexOf(\" \",p1);\n\t\tif (p2 < 0)\n\t\t {\n xlated = xlated.substring(0,p1) + substitute;\n\t\t }\n\t\telse\n\t\t {\n xlated = xlated.substring(0,p1) + substitute +\n\t\t xlated.substring(p2);\n\t\t }\n\t\t}\n\t else // just append the substitute string.\n\t {\n p1 = xlated.lastIndexOf(\" \");\n\t\tif (p1 < (xlated.length() - 1))\n\t\t {\n\t\t xlated = xlated + \" \";\n\t\t }\n\t\txlated = xlated + substitute;\n\t\t}\n\t }\n\txlatedText.add(xlated);\n\ttextTag.add(tag);\n\ttextKey.add(key);\n\t}",
"public interface XmlConstants \n{\n /** Namespace for the net.iharder.xml package: http://iharder.net/xmlizable */\n public final static String NAMESPACE = \"http://iharder.net/xmlizable\";\n \n /** Default location of XSL file for simple representation of xmlized objects. */\n public final static String DEFAULT_XSL_URL = \"http://iharder.net/xmlizable/xsl/default.xsl\";\n \n \n /* The XML element <tt>object</tt> */\n public final static String OBJECT = \"object\";\n \n /* The XML element <tt>primitive</tt> */\n public final static String PRIMITIVE = \"primitive\";\n \n /* The XML element <tt>object-array</tt> */\n public final static String OBJECT_ARRAY = \"object-array\";\n \n /* The XML element <tt>primitive-array</tt> */\n public final static String PRIMITIVE_ARRAY = \"primitive-array\";\n \n /* The XML element <tt>array-array</tt> */\n public final static String ARRAY_ARRAY = \"array-array\";\n \n /* The XML element <tt>null</tt> */\n public final static String NULL = \"null\";\n \n \n \n /* The XML element <tt>o</tt>, condensed form of <tt>object</tt> */\n public final static String OBJECT_C = \"o\";\n \n /* The XML element <tt>p</tt>, condensed form of <tt>primitive</tt> */\n public final static String PRIMITIVE_C = \"p\";\n \n /* The XML element <tt>oa</tt>, condensed form of <tt>object-array</tt> */\n public final static String OBJECT_ARRAY_C = \"oa\";\n \n /* The XML element <tt>pa</tt>, condensed form of <tt>primitive-array</tt> */\n public final static String PRIMITIVE_ARRAY_C = \"pa\";\n \n /* The XML element <tt>aa</tt>, condensed form of <tt>array-array</tt> */\n public final static String ARRAY_ARRAY_C = \"aa\";\n \n /* The XML element <tt>n</tt>, condensed form of <tt>null</tt> */\n public final static String NULL_C = \"n\";\n \n \n /* The XML attribute <tt>class</tt> */\n public final static String CLASS = \"class\";\n \n /* The XML attribute <tt>type</tt> */\n public final static String TYPE = \"type\";\n \n /* The XML attribute <tt>length</tt> */\n public final static String LENGTH = \"length\";\n \n /* The XML attribute <tt>encoding</tt> */\n public final static String ENCODING = \"encoding\";\n \n \n /* The XML attribute <tt>c</tt>, condensed form of <tt>class</tt> */\n public final static String CLASS_C = \"c\";\n \n /* The XML attribute <tt>t</tt>, condensed form of <tt>type</tt> */\n public final static String TYPE_C = \"t\";\n \n /* The XML attribute <tt>t</tt>, condensed form of <tt>type</tt> */\n public final static String LENGTH_C = \"le\";\n \n /* The XML attribute <tt>en</tt>, condensed form of <tt>encoding</tt> */\n public final static String ENCODING_C = \"en\";\n \n \n \n /* The XML \"type\" attribute value <tt>boolean</tt> */\n public final static String BOOLEAN = \"boolean\";\n \n /* The XML \"type\" attribute value <tt>byte</tt> */\n public final static String BYTE = \"byte\";\n \n /* The XML \"type\" attribute value <tt>char</tt> */\n public final static String CHAR = \"char\";\n \n /* The XML \"type\" attribute value <tt>short</tt> */\n public final static String SHORT = \"short\";\n \n /* The XML \"type\" attribute value <tt>int</tt> */\n public final static String INT = \"int\";\n \n /* The XML \"type\" attribute value <tt>long</tt> */\n public final static String LONG = \"long\";\n \n /* The XML \"type\" attribute value <tt>float</tt> */\n public final static String FLOAT = \"float\";\n \n /* The XML \"type\" attribute value <tt>double</tt> */\n public final static String DOUBLE = \"double\";\n \n /* The XML \"type\" attribute value <tt>array</tt> */\n public final static String ARRAY = \"array\";\n \n /* The XML \"encoding\" attribute value <tt>base64</tt> */\n public final static String BASE64 = \"base64\";\n \n \n /* The XML \"type\" attribute value <tt>bo</tt>, condensed form of <tt>boolean</tt> */\n public final static String BOOLEAN_C = \"bo\";\n \n /* The XML \"type\" attribute value <tt>by</tt>, condensed form of <tt>byte</tt> */\n public final static String BYTE_C = \"by\";\n \n /* The XML \"type\" attribute value <tt>c</tt>, condensed form of <tt>char</tt> */\n public final static String CHAR_C = \"c\";\n \n /* The XML \"type\" attribute value <tt>s</tt>, condensed form of <tt>short</tt> */\n public final static String SHORT_C = \"s\";\n \n /* The XML \"type\" attribute value <tt>i</tt>, condensed form of <tt>int</tt> */\n public final static String INT_C = \"i\";\n \n /* The XML \"type\" attribute value <tt>lo</tt>, condensed form of <tt>long</tt> */\n public final static String LONG_C = \"lo\";\n \n /* The XML \"type\" attribute value <tt>f</tt>, condensed form of <tt>float</tt> */\n public final static String FLOAT_C = \"f\";\n \n /* The XML \"type\" attribute value <tt>d</tt>, condensed form of <tt>double</tt> */\n public final static String DOUBLE_C = \"d\";\n \n /* The XML \"type\" attribute value <tt>a</tt>, condensed form of <tt>array</tt> */\n public final static String ARRAY_C = \"a\";\n \n /* The XML \"encoding\" attribute value <tt>base64</tt>, condensed form of <tt>base64</tt> */\n public final static String BASE64_C = \"b64\";\n \n \n \n /* The XML boolean array value <tt>true</tt> */\n public final static String TRUE = \"true\";\n \n /* The XML boolean array value <tt>false</tt> */\n public final static String FALSE = \"false\";\n \n \n /* The XML boolean array value <tt>1</tt>, condensed form of <tt>true</tt> */\n public final static String TRUE_C = \"1\";\n \n /* The XML boolean array value <tt>0</tt>, condensed form of <tt>false</tt> */\n public final static String FALSE_C = \"0\";\n \n \n \n /* The XML element <tt>entry</tt>, used for {@link java.util.Map}s. */\n public final static String MAP_ENTRY = \"entry\";\n \n /* The XML element <tt>key</tt>, used for {@link java.util.Map}s. */\n public final static String MAP_KEY = \"key\";\n \n /* The XML element <tt>value</tt>, used for {@link java.util.Map}s. */\n public final static String MAP_VALUE = \"value\";\n \n \n /* The XML element <tt>e</tt>, condensed form of <tt>entry</tt>, used for {@link java.util.Map}s. */\n public final static String MAP_ENTRY_C = \"e\";\n \n /* The XML element <tt>k</tt>, condensed form of <tt>key</tt>, used for {@link java.util.Map}s. */\n public final static String MAP_KEY_C = \"k\";\n \n /* The XML element <tt>v</tt>, condensed form of <tt>value</tt>, used for {@link java.util.Map}s. */\n public final static String MAP_VALUE_C = \"v\";\n \n \n /* The string <tt>CDATA</tt>. */\n public final static String CDATA = \"CDATA\";\n \n\n}",
"String encodeResourceToString(IBaseResource theResource) throws DataFormatException;",
"public void writeToXML(){\n\t\t\n\t\t String s1 = \"\";\n\t\t String s2 = \"\";\n\t\t String s3 = \"\";\n\t\t Element lastElement= null;\n\t\t\n\t\tDocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dbElement;\n\t\tBufferedReader brRead=null;\n\n\t\ttry{\n\t\t\tdbElement = dbfactory.newDocumentBuilder();\n\t\t\t\n\t\t\t//Create the root\n\t\t\tDocument docRoot = dbElement.newDocument();\n\t\t\tElement rootElement = docRoot.createElement(\"ROYAL\");\n\t\t\tdocRoot.appendChild(rootElement);\n\t\t\t\n\t\t\t//Create elements\n\t\t\t\n\t\t\t//Element fam = docRoot.createElement(\"FAM\");\n\t\t\tElement e= null;\n\t\t\tbrRead = new BufferedReader(new FileReader(\"complet.ged\"));\n\t\t\tString line=\"\";\n\t\t\twhile((line = brRead.readLine()) != null){\n\t\t\t\tString lineTrim = line.trim();\n\t\t\t\tString str[] = lineTrim.split(\" \");\n\t\t\t\t//System.out.println(\"length = \"+str.length);\n\n\t\t\t\tif(str.length == 2){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3 = \"\";\n\t\t\t\t}else if(str.length ==3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2=\"\";\n\n\t\t\t\t\ts2 = str[1];\n//\t\t\t\t\tSystem.out.println(\"s2=\"+s2);\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\ts3 = str[2];\n//\t\t\t\t\ts3 = s[0];\n\t\t\t\t\t\n\t\t\t\t}else if(str.length >3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\tfor(int i =2; i<str.length; i++){\n\t\t\t\t\t\ts3 = s3 + str[i]+ \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//System.out.println(s1+\"!\"+s2+\"!\"+s3+\"!\");\n\t\t\t\t//Write to file xml\n\t\t\t\t//writeToXML(s1, s2, s3);\n\t\t\t//Element indi = docRoot.createElement(\"INDI\");\t\n\t\t\t//System.out.println(\"Check0 :\" + s1);\n\t\t\tif( Integer.parseInt(s1)==0){\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Check1\");\n\t\t\t\tif(s3.equalsIgnoreCase(\"INDI\")){\n\t\t\t\t\t//System.out.println(\"Check2\");\n\t\t\t\t\tSystem.out.println(\"This is a famille Individual!\");\n\t\t\t\t\te = docRoot.createElement(\"INDI\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t\n\t\t\t\t\t//Set attribute to INDI\n\t\t\t\t\tAttr indiAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tindiAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(indiAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"FAM\")){\n\t\t\t\t\t//System.out.println(\"Check3\");\n\t\t\t\t\tSystem.out.println(\"This is a famille!\");\n\t\t\t\t\te = docRoot.createElement(\"FAM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}if(s2.equalsIgnoreCase(\"HEAD\")){\n\t\t\t\t\tSystem.out.println(\"This is a head!\");\n\t\t\t\t\te = docRoot.createElement(\"HEAD\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"SUBM\")){\n\n\t\t\t\t\tSystem.out.println(\"This is a subm!\");\n\t\t\t\t\te = docRoot.createElement(\"SUBM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==1){\n\n\t\t\t\tString child = s2;\n\t\t\t\tif(child.equalsIgnoreCase(\"SOUR\")||child.equalsIgnoreCase(\"DEST\")||child.equalsIgnoreCase(\"DATE\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"FILE\")||child.equalsIgnoreCase(\"CHAR\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"NAME\")||child.equalsIgnoreCase(\"TITL\")||child.equalsIgnoreCase(\"SEX\")||child.equalsIgnoreCase(\"REFN\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"PHON\")||child.equalsIgnoreCase(\"DIV\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"HEAD\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"BIRT\")||child.equalsIgnoreCase(\"DEAT\")||child.equalsIgnoreCase(\"COMM\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"BURI\")||child.equalsIgnoreCase(\"ADDR\")||child.equalsIgnoreCase(\"CHR\")){\n\t\t\t\t\t\n\t\t\t\t\tString name = lastElement.getNodeName();\t\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"FAMS\")||child.equalsIgnoreCase(\"FAMC\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\t\tx.setAttribute(\"id\",s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"HUSB\")||child.equalsIgnoreCase(\"WIFE\")||child.equalsIgnoreCase(\"CHIL\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"MARR\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==2){\n\t\t\t\tString lastName = lastElement.getNodeName();\n\t\t\t\tif((lastName.equalsIgnoreCase(\"BIRT\"))||(lastName.equalsIgnoreCase(\"DEAT\"))||(lastName.equalsIgnoreCase(\"BURI\"))\n\t\t\t\t\t\t||(lastName.equalsIgnoreCase(\"MARR\"))||(lastName.equalsIgnoreCase(\"CHR\"))){\n\t\t\t\t\t//Add child nodes to birt, deat or marr\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"DATE\")){\n\t\t\t\t\t\tElement date = docRoot.createElement(\"DATE\");\n\t\t\t\t\t\tdate.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(date);\n\t\t\t\t\t}\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"PLAC\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"PLAC\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif(lastName.equalsIgnoreCase(\"COMM\")||lastName.equalsIgnoreCase(\"ADDR\")){\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"CONT\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"CONT\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//lastElement = e;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t//Saved this element for the next step\n\t\t\t\n\t\t\t//Write to file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"iso-8859-1\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, \"Royal.dtd\");\n\t\t\tDOMSource source = new DOMSource(docRoot);\n\t\t\tStreamResult result = new StreamResult(new File(\"complet.xml\"));\n\t \n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t \n\t\t\ttransformer.transform(source, result);\n\t \n\t\t\tSystem.out.println(\"\\nXML DOM Created Successfully.\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void convert(String inFile, String outFile) throws IOException, JAXBException;",
"public void writeXML(String xml){\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\tDocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder documentBuilder = documentFactory.newDocumentBuilder(); \n\t\t\t// define root elements \n\t\t\tDocument document = documentBuilder.newDocument(); \n\t\t\tElement rootElement = document.createElement(\"graph\"); \n\t\t\tdocument.appendChild(rootElement);\n\t\t\t\n\t\t\tfor(int i=0;i<Rel.getChildCount();i++){\n\t\t\t\tif(Rel.getChildAt(i).getTag() != null){\n\t\t\t\t\tif(Rel.getChildAt(i).getTag().toString().compareTo(\"node\") == 0){\n\t\t\t\t\t\tArtifact artifact = (Artifact) Rel.getChildAt(i);\n\t\t\t\t\t\tElement node = addElement(rootElement, \"node\", document);\n\t\t\t\t\t\tElement id = addAttribute(\"id\",artifact.getId()+\"\", document); //we create an attribute for a node\n\t\t\t\t\t\tnode.appendChild(id);//and then we attach it to the node\n\t\t\t\t\t\t\n\t\t\t\t\t\tArrayList <Artifact> fathers = artifact.getFathers();\n\t\t\t\t\t\tif(fathers != null){\n\t\t\t\t\t\t\taddElement(node, \"fathers\", document);//for complex attribute like array of fathers we add an element to the node\n\t\t\t\t\t\t\tfor(int j=0;j<fathers.size();j++){\n\t\t\t\t\t\t\t\tElement father = addAttribute(\"father\",fathers.get(j).getId()+\"\", document);//inside this element created in the node we add all its fathers as attributes\n\t\t\t\t\t\t\t\tnode.appendChild(father);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tArrayList <Artifact> sons = artifact.getSons();\n\t\t\t\t\t\tif(sons != null){\n\t\t\t\t\t\t\taddElement(node, \"sons\", document);//for complex attribute like array of sons we add an element to the node\n\t\t\t\t\t\t\tfor(int j=0;j<sons.size();j++){\n\t\t\t\t\t\t\t\tElement son = addAttribute(\"son\",sons.get(j).getId()+\"\", document);//inside this element created in the node we add all its sons as attributes\n\t\t\t\t\t\t\t\tnode.appendChild(son);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement label = addAttribute(\"label\", artifact.getText()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(label);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement age = addAttribute(\"age\", artifact.getAge()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(age);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement type = addAttribute(\"type\", artifact.getType()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(type);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement information = addAttribute(\"information\", artifact.getInformation()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(information);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement position = addAttribute(\"position\", artifact.getPosition()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(position);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// creating and writing to xml file \n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance(); \n\t\t\tTransformer transformer = transformerFactory.newTransformer(); \n\t\t\tDOMSource domSource = new DOMSource(document); \n\t\t\tStreamResult streamResult = new StreamResult(new File(xml)); \n\t\t\ttransformer.transform(domSource, streamResult);\n \n \n }catch(Exception e){\n \tLog.v(\"error writing xml\",e.toString());\n }\n\t\t\n\t\t\n\t}",
"private void writeFormula(URNspec urn) throws IOException {\n\n\t\teleForMap = new HashMap<IntentionalElement, StringBuffer>();\n\t\tStringBuffer eleFormula;\n\t\tStringBuffer function;\n\t\t// initial all the symbols\n\t\twrite(\"#inital all the variable\\n\");\n\t\tfor (Iterator it = urn.getGrlspec().getIntElements().iterator(); it.hasNext();) {\n\t\t\tIntentionalElement element = (IntentionalElement) it.next();\n\t\t\tStringBuffer variable = new StringBuffer();\n\t\t\tvariable.append(modifyName(element.getName()));\n\t\t\tvariable.append(Equal);\n\t\t\tvariable.append(\"Symbol\");\n\t\t\tvariable.append(LeftBracker);\n\t\t\tvariable.append(\"'\");\n\t\t\tvariable.append(modifyName(element.getName()));\n\t\t\tvariable.append(\"'\");\n\t\t\tvariable.append(RightBracker);\n\t\t\twrite(variable.toString());\n\t\t\twrite(\"\\n\");\n\t\t}\n\t\t\n\t\t\n\t\t// iterate all the leaf element\n\t\tfor (Iterator it = urn.getGrlspec().getIntElements().iterator(); it.hasNext();) {\n\t\t\tIntentionalElement element = (IntentionalElement) it.next();\n\t\t\teleFormula = new StringBuffer();\n\t\t\tfunction = new StringBuffer();\n\t\t\tfunction.append(modifyName(element.getName()));\n\t\t\t// if the element is the leaf\n\t\t\tif (element.getLinksDest().size() == 0) {\n\t\t\t\t// System.out.println(element.getName() + \"leaf\");\n\t\t\t\tif (element.getType().getName().compareTo(\"Indicator\") == 0) {\n\t\t\t\t\tIndicator indicator = (Indicator) element;\n\t\t\t\t\tif (indicator.getWorstValue() == indicator.getTargetValue()) {\n\t\t\t\t\t\teleFormula.append(modifyName(element.getName()));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tStringBuffer indicatorFor = indicatorFor(element);\n\t\t\t\t\t\teleFormula.append(indicatorFor);\n\t\t\t\t\t\tfunction.append(Equal);\n\t\t\t\t\t\tfunction.append(eleFormula);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\teleFormula.append(modifyName(element.getName()));\n\t\t\t\t}\n\t\t\t\telementSet.add(\"'\" + modifyName(element.getName()) + \"'\");\n\t\t\t\teleForMap.put(element, eleFormula);\n\t\t\t}\n\t\t}\n\t\tfor (Iterator it = urn.getGrlspec().getIntElements().iterator(); it.hasNext();) {\n\t\t\tIntentionalElement element = (IntentionalElement) it.next();\n\t\t\teleFormula = new StringBuffer();\n\t\t\tfunction = new StringBuffer();\n\t\t\tfunction.append(modifyName(element.getName()));\n\n\t\t\tif (element.getLinksDest().size() != 0) {\n\t\t\t\teleFormula.append(writeLink(element));\n\t\t\t\tfunction.append(Equal);\n\t\t\t\tfunction.append(eleFormula);\n\t\t\t\twrite(function.toString());\n\t\t\t\twrite(\"\\n\");\n\t\t\t\teleForMap.put(element, eleFormula);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"IParser setEncodeForceResourceId(IIdType theForceResourceId);",
"public interface IUtlXml {\n\n /**\n * <p>Escape XML for given string.</p>\n * @param pSource source\n * @return escaped string\n * @throws Exception - an exception\n **/\n String escStr(String pSource) throws Exception;\n\n /**\n * <p>Escape XML for given char.</p>\n * @param pChar char\n * @return escaped string\n * @throws Exception - an exception\n **/\n String escChr(char pChar) throws Exception;\n\n /**\n * <p>Unescape XML for given string.</p>\n * @param pSource source\n * @return unescaped string\n * @throws Exception - an exception\n **/\n String unescStr(String pSource) throws Exception;\n\n /**\n * <p>\n * Unescape XML for given string.\n * </p>\n * @param pEscaped Escaped\n * @return unescaped char\n * @throws Exception - an exception\n **/\n char unescChr(String pEscaped) throws Exception;\n\n /**\n * <p>Read attributes from stream. Start the XML element\n * must be read out.</p>\n * @param pReader reader.\n * @param pRqVs request scoped vars\n * @return attributes map\n * @throws Exception - an exception\n **/\n Map<String, String> readAttrs(Map<String, Object> pRqVs,\n Reader pReader) throws Exception;\n\n\n /**\n * <p>Read stream until start given element e.g. <message.</p>\n * @param pReader reader.\n * @param pElement element\n * @return true if start element is happen, false if end of stream\n * @throws Exception - an exception\n **/\n boolean readUntilStart(Reader pReader,\n String pElement) throws Exception;\n}",
"@Override\r\n\tpublic String marshalSC(E19 cs) throws JAXBException {\n\t\t\r\n\r\n\t\tJAXBElement<E19> element = scFactory.createE23(cs);\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\tscMarshaller.marshal(element, sw);\r\n\t\tString xml = sw.toString();\r\n\t\treturn xml;\r\n\t}",
"public ElementLocationImpl(String encoding) {\n this.components = decode(encoding);\n }",
"org.hl7.fhir.CodeableConcept addNewInterpretation();",
"@Override public void accept(JannotTreeVisitor v)\n{\n v.visitBinary(this);\n}",
"IParser setDontEncodeElements(Collection<String> theDontEncodeElements);",
"abstract protected String getOtherXml();",
"protected abstract boolean evalEscapeXml() throws JspException;",
"void method0() {\nprivate static final String ELEMENT_N = \"element_n\";\nprivate static final String ELEMENT_R = \"element_r\";\nprivate static final String ATTRIBUTE_N = \"attribute_n\";\nprivate static final String ATTRIBUTE_R = \"attribute_r\";\nprivate static int ATTIDX_COUNT = 0;\npublic static final int ATTIDX_ABSTRACT = ATTIDX_COUNT++;\npublic static final int ATTIDX_AFORMDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_BASE = ATTIDX_COUNT++;\npublic static final int ATTIDX_BLOCK = ATTIDX_COUNT++;\npublic static final int ATTIDX_BLOCKDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_DEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_EFORMDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_FINAL = ATTIDX_COUNT++;\npublic static final int ATTIDX_FINALDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_FIXED = ATTIDX_COUNT++;\npublic static final int ATTIDX_FORM = ATTIDX_COUNT++;\npublic static final int ATTIDX_ID = ATTIDX_COUNT++;\npublic static final int ATTIDX_ITEMTYPE = ATTIDX_COUNT++;\npublic static final int ATTIDX_MAXOCCURS = ATTIDX_COUNT++;\npublic static final int ATTIDX_MEMBERTYPES = ATTIDX_COUNT++;\npublic static final int ATTIDX_MINOCCURS = ATTIDX_COUNT++;\npublic static final int ATTIDX_MIXED = ATTIDX_COUNT++;\npublic static final int ATTIDX_NAME = ATTIDX_COUNT++;\npublic static final int ATTIDX_NAMESPACE = ATTIDX_COUNT++;\npublic static final int ATTIDX_NAMESPACE_LIST = ATTIDX_COUNT++;\npublic static final int ATTIDX_NILLABLE = ATTIDX_COUNT++;\npublic static final int ATTIDX_NONSCHEMA = ATTIDX_COUNT++;\npublic static final int ATTIDX_PROCESSCONTENTS = ATTIDX_COUNT++;\npublic static final int ATTIDX_PUBLIC = ATTIDX_COUNT++;\npublic static final int ATTIDX_REF = ATTIDX_COUNT++;\npublic static final int ATTIDX_REFER = ATTIDX_COUNT++;\npublic static final int ATTIDX_SCHEMALOCATION = ATTIDX_COUNT++;\npublic static final int ATTIDX_SOURCE = ATTIDX_COUNT++;\npublic static final int ATTIDX_SUBSGROUP = ATTIDX_COUNT++;\npublic static final int ATTIDX_SYSTEM = ATTIDX_COUNT++;\npublic static final int ATTIDX_TARGETNAMESPACE = ATTIDX_COUNT++;\npublic static final int ATTIDX_TYPE = ATTIDX_COUNT++;\npublic static final int ATTIDX_USE = ATTIDX_COUNT++;\npublic static final int ATTIDX_VALUE = ATTIDX_COUNT++;\npublic static final int ATTIDX_ENUMNSDECLS = ATTIDX_COUNT++;\npublic static final int ATTIDX_VERSION = ATTIDX_COUNT++;\npublic static final int ATTIDX_XML_LANG = ATTIDX_COUNT++;\npublic static final int ATTIDX_XPATH = ATTIDX_COUNT++;\npublic static final int ATTIDX_FROMDEFAULT = ATTIDX_COUNT++;\n//public static final int ATTIDX_OTHERVALUES = ATTIDX_COUNT++; \npublic static final int ATTIDX_ISRETURNED = ATTIDX_COUNT++;\nprivate static final XIntPool fXIntPool = new XIntPool();\n// constants to return \nprivate static final XInt INT_QUALIFIED = fXIntPool.getXInt(SchemaSymbols.FORM_QUALIFIED);\nprivate static final XInt INT_UNQUALIFIED = fXIntPool.getXInt(SchemaSymbols.FORM_UNQUALIFIED);\nprivate static final XInt INT_EMPTY_SET = fXIntPool.getXInt(XSConstants.DERIVATION_NONE);\nprivate static final XInt INT_ANY_STRICT = fXIntPool.getXInt(XSWildcardDecl.PC_STRICT);\nprivate static final XInt INT_ANY_LAX = fXIntPool.getXInt(XSWildcardDecl.PC_LAX);\nprivate static final XInt INT_ANY_SKIP = fXIntPool.getXInt(XSWildcardDecl.PC_SKIP);\nprivate static final XInt INT_ANY_ANY = fXIntPool.getXInt(XSWildcardDecl.NSCONSTRAINT_ANY);\nprivate static final XInt INT_ANY_LIST = fXIntPool.getXInt(XSWildcardDecl.NSCONSTRAINT_LIST);\nprivate static final XInt INT_ANY_NOT = fXIntPool.getXInt(XSWildcardDecl.NSCONSTRAINT_NOT);\nprivate static final XInt INT_USE_OPTIONAL = fXIntPool.getXInt(SchemaSymbols.USE_OPTIONAL);\nprivate static final XInt INT_USE_REQUIRED = fXIntPool.getXInt(SchemaSymbols.USE_REQUIRED);\nprivate static final XInt INT_USE_PROHIBITED = fXIntPool.getXInt(SchemaSymbols.USE_PROHIBITED);\nprivate static final XInt INT_WS_PRESERVE = fXIntPool.getXInt(XSSimpleType.WS_PRESERVE);\nprivate static final XInt INT_WS_REPLACE = fXIntPool.getXInt(XSSimpleType.WS_REPLACE);\nprivate static final XInt INT_WS_COLLAPSE = fXIntPool.getXInt(XSSimpleType.WS_COLLAPSE);\nprivate static final XInt INT_UNBOUNDED = fXIntPool.getXInt(SchemaSymbols.OCCURRENCE_UNBOUNDED);\n// used to store the map from element name to attribute list \n// for 14 global elements \nprivate static final Hashtable fEleAttrsMapG = new Hashtable(29);\n// for 39 local elememnts \nprivate static final Hashtable fEleAttrsMapL = new Hashtable(79);\n// used to initialize fEleAttrsMap \n// step 1: all possible data types \n// DT_??? >= 0 : validate using a validator, which is initialized staticly \n// DT_??? < 0 : validate directly, which is done in \"validate()\" \nprotected static final int DT_ANYURI = 0;\nprotected static final int DT_ID = 1;\nprotected static final int DT_QNAME = 2;\nprotected static final int DT_STRING = 3;\nprotected static final int DT_TOKEN = 4;\nprotected static final int DT_NCNAME = 5;\nprotected static final int DT_XPATH = 6;\nprotected static final int DT_XPATH1 = 7;\nprotected static final int DT_LANGUAGE = 8;\n// used to store extra datatype validators \nprotected static final int DT_COUNT = DT_LANGUAGE + 1;\nprivate static final XSSimpleType[] fExtraDVs = new XSSimpleType[DT_COUNT];\nprotected static final int DT_BLOCK = -1;\nprotected static final int DT_BLOCK1 = -2;\nprotected static final int DT_FINAL = -3;\nprotected static final int DT_FINAL1 = -4;\nprotected static final int DT_FINAL2 = -5;\nprotected static final int DT_FORM = -6;\nprotected static final int DT_MAXOCCURS = -7;\nprotected static final int DT_MAXOCCURS1 = -8;\nprotected static final int DT_MEMBERTYPES = -9;\nprotected static final int DT_MINOCCURS1 = -10;\nprotected static final int DT_NAMESPACE = -11;\nprotected static final int DT_PROCESSCONTENTS = -12;\nprotected static final int DT_USE = -13;\nprotected static final int DT_WHITESPACE = -14;\nprotected static final int DT_BOOLEAN = -15;\nprotected static final int DT_NONNEGINT = -16;\nprotected static final int DT_POSINT = -17;\n// used to resolver namespace prefixes \nprotected XSDHandler fSchemaHandler = null;\n// used to store symbols. \nprotected SymbolTable fSymbolTable = null;\n// used to store the mapping from processed element to attributes \nprotected Hashtable fNonSchemaAttrs = new Hashtable();\n// temprory vector, used to hold the namespace list \nprotected Vector fNamespaceList = new Vector();\n// whether this attribute appeared in the current element \nprotected boolean[] fSeen = new boolean[ATTIDX_COUNT];\nprivate static boolean[] fSeenTemp = new boolean[ATTIDX_COUNT];\n// the following part implements an attribute-value-array pool. \n// when checkAttribute is called, it calls getAvailableArray to get \n// an array from the pool; when the caller is done with the array, \n// it calls returnAttrArray to return that array to the pool. \n// initial size of the array pool. 10 is big enough \nstatic final int INIT_POOL_SIZE = 10;\n// the incremental size of the array pool \nstatic final int INC_POOL_SIZE = 10;\n// the array pool \nObject[][] fArrayPool = new Object[INIT_POOL_SIZE][ATTIDX_COUNT];\n// used to clear the returned array \n// I think System.arrayCopy is more efficient than setting 35 fields to null \nprivate static Object[] fTempArray = new Object[ATTIDX_COUNT];\n// current position of the array pool (# of arrays not returned) \nint fPoolPos = 0;\n}",
"public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n\n\t\tswitch (localName) {\n\t\tcase \"mxCell\":\n\n\t\t\t// find all edges and save them to the edges Map\n\t\t\tif (atts.getQName(0).equals(\"edge\")) {\n\t\t\t\tthis.edges.put(Integer.parseInt(atts.getValue(\"source\")), Integer.parseInt(atts.getValue(\"target\")));\n\n\t\t\t} else if (atts.getValue(\"value\") == null) {\n\t\t\t\t// if there is no part in xml file with the name value do not\n\t\t\t\t// consider the part further\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\t\t\t\t// Check if the current value is one of the operators saved in\n\t\t\t\t// NAMES if that is the case we save it's id, parent and the\n\t\t\t\t// Name in the idMap with the corresponding id\n\t\t\t\tfor (String i : this.NAMES) {\n\t\t\t\t\tif (atts.getValue(\"value\").equals(i)) {\n\n\t\t\t\t\t\tArrayList<String> temp = new ArrayList<String>();\n\t\t\t\t\t\ttemp.add(atts.getValue(0));\n\t\t\t\t\t\ttemp.add(atts.getValue(1));\n\t\t\t\t\t\ttemp.add(i);\n\t\t\t\t\t\tthis.ids.add(temp);\n\t\t\t\t\t\tthis.idMap.put(Integer.parseInt(atts.getValue(0)), temp);\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase \"mxGraphModel\":\n\n\t\t\tArrayList<String> temp = new ArrayList<String>();\n\t\t\ttemp.add(\"1\");\n\t\t\ttemp.add(\"1\");\n\t\t\ttemp.add(\"plan\");\n\t\t\tthis.ids.add(temp);\n\t\t\tthis.idMap.put(1, temp);\n\n\t\t\tbreak;\n\n\t\tcase \"root\":\n\t\t\tthis.string.append(\"<schema>\");\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\n\t\t}\n\n\t}",
"public static void main(String args[]) {\n\t\t GetXMLEncoding t = new GetXMLEncoding();\n\t\t String xml = t.getContent(\"http://news.163.com/special/00011K6L/rss_newstop.xml\");\n//\t System.out.println(xml);\n//\t System.out.println();\n\t if(t.checkXml(xml))\n\t System.out.println(t.getXmlencoding());\n\t }",
"public abstract String serialise();",
"private void encodeNameIdAttributes(Encoder encoder, DataType type) throws IOException {\n\t\tif (type instanceof BuiltIn) {\n\t\t\tencoder.writeString(ATTRIB_NAME,\n\t\t\t\t((BuiltIn) type).getDecompilerDisplayName(displayLanguage));\n\t\t}\n\t\telse {\n\t\t\tencoder.writeString(ATTRIB_NAME, type.getName());\n\t\t\tlong id = progDataTypes.getID(type);\n\t\t\tif (id > 0) {\n\t\t\t\tencoder.writeUnsignedInteger(ATTRIB_ID, id);\n\t\t\t}\n\t\t}\n\t}",
"void xsetNcbi8Aa(org.apache.xmlbeans.XmlInteger ncbi8Aa);",
"public static String asciiIpmToXml(String filename) {\r\n return xml(filename, ISOLayout.MASTERCARD_ASCII);\r\n }",
"@Override\r\n\tpublic String encode() {\n\t\treturn null;\r\n\t}",
"public static void encode(File fIn) throws IOException {\n\t\tencode(fIn, fIn, true);\n\t}",
"public String getType(int i) {\n/* 138 */ return \"CDATA\";\n/* */ }",
"XmlStringTester(File in) throws Exception {\n\t\txml = Files.readFile(in).toString();\n\t\txml = SchemEditUtils.expandAmpersands(xml);\n\t\tdoc = Dom4jUtils.getXmlDocument(xml);\n\t\tstringWriter = getStringWriter();\n\t}",
"private List<XmlElementNameAndContents> encodeFeatures(TOP fs, AttributesImpl attrs,\n boolean insideListNode) throws SAXException {\n List<XmlElementNameAndContents> childElements = new ArrayList<>();\n // int heapValue = cds.cas.getHeapValue(addr);\n // int[] feats = cds.tsi.ll_getAppropriateFeatures(heapValue);\n\n String attrValue;\n // boolean isSofa = false;\n // if (sofaTypeCode == heapValue)\n // {\n // // set isSofa flag to apply SofaID mapping and to store sofaNum->xmi:id mapping\n // isSofa = true;\n // }\n for (final FeatureImpl fi : fs._getTypeImpl().getFeatureImpls()) {\n\n if (cds.isFiltering) {\n // skip features that aren't in the target type system\n String fullFeatName = fi.getName();\n if (cds.filterTypeSystem_inner.getFeatureByFullName(fullFeatName) == null) {\n continue;\n }\n }\n\n final String featName = fi.getShortName();\n final int featureValueClass = fi.rangeTypeClass;\n\n switch (featureValueClass) {\n\n case LowLevelCAS.TYPE_CLASS_BYTE:\n case LowLevelCAS.TYPE_CLASS_SHORT:\n case LowLevelCAS.TYPE_CLASS_INT:\n case LowLevelCAS.TYPE_CLASS_LONG:\n case LowLevelCAS.TYPE_CLASS_FLOAT:\n case LowLevelCAS.TYPE_CLASS_DOUBLE:\n case LowLevelCAS.TYPE_CLASS_BOOLEAN:\n attrValue = fs.getFeatureValueAsString(fi);\n break;\n\n case LowLevelCAS.TYPE_CLASS_STRING:\n attrValue = fs.getFeatureValueAsString(fi);\n break;\n\n // Arrays\n case LowLevelCAS.TYPE_CLASS_INTARRAY:\n case LowLevelCAS.TYPE_CLASS_FLOATARRAY:\n case LowLevelCAS.TYPE_CLASS_BOOLEANARRAY:\n case LowLevelCAS.TYPE_CLASS_BYTEARRAY:\n case LowLevelCAS.TYPE_CLASS_SHORTARRAY:\n case LowLevelCAS.TYPE_CLASS_LONGARRAY:\n case LowLevelCAS.TYPE_CLASS_DOUBLEARRAY:\n case LowLevelCAS.TYPE_CLASS_FSARRAY:\n if (cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n } else {\n attrValue = arrayToString(fs.getFeatureValue(fi), featureValueClass);\n }\n break;\n\n // special case for StringArrays, which stored values as child elements rather\n // than attributes.\n case LowLevelCAS.TYPE_CLASS_STRINGARRAY:\n StringArray stringArray = (StringArray) fs.getFeatureValue(fi);\n if (cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(stringArray);\n } else if (stringArray != null && stringArray.size() == 0) {\n attrValue = \"\"; // https://issues.apache.org/jira/browse/UIMA-5558\n } else {\n stringArrayToElementList(featName, (StringArray) fs.getFeatureValue(fi),\n childElements);\n attrValue = null;\n }\n break;\n\n // Lists\n case CasSerializerSupport.TYPE_CLASS_INTLIST:\n case CasSerializerSupport.TYPE_CLASS_FLOATLIST:\n case CasSerializerSupport.TYPE_CLASS_FSLIST:\n TOP startNode = fs.getFeatureValue(fi);\n if (insideListNode || cds.isStaticMultiRef(fi)) {\n // If the feature has multipleReferencesAllowed = true OR if we're already\n // inside another list node (i.e. this is the \"tail\" feature), serialize as a normal\n // FS.\n // Otherwise, serialize as a multi-valued property.\n // if (cds.isStaticMultRef(feats[i]) ||\n // cds.embeddingNotAllowed.contains(featVal) ||\n // insideListNode) {\n\n attrValue = cds.getXmiId(startNode);\n } else {\n attrValue = listToString((CommonList) fs.getFeatureValue(fi));\n }\n break;\n\n // special case for StringLists, which stored values as child elements rather\n // than attributes.\n case CasSerializerSupport.TYPE_CLASS_STRINGLIST:\n if (insideListNode || cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n } else {\n // it is not safe to use a space-separated attribute, which would\n // break for strings containing spaces. So use child elements instead.\n StringList stringList = (StringList) fs.getFeatureValue(fi);\n if (stringList == null) {\n attrValue = null;\n } else {\n if (stringList instanceof EmptyStringList) {\n attrValue = \"\";\n } else {\n List<String> listOfStrings = stringList.anyListToStringList(null, cds);\n // if (array.length > 0 && !arrayAndListFSs.put(featVal, featVal)) {\n // reportWarning(\"Warning: multiple references to a ListFS. Reference identity\n // will not be preserved.\");\n // }\n for (String string : listOfStrings) {\n childElements.add(new XmlElementNameAndContents(\n new XmlElementName(\"\", featName, featName), string));\n }\n attrValue = null;\n }\n }\n }\n break;\n\n default: // Anything that's not a primitive type, array, or list.\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n break;\n\n } // end of switch\n\n if (attrValue != null && featName != null) {\n addAttribute(attrs, featName, attrValue, \"\");\n }\n } // end of for loop over all features\n\n // add out-of-typesystem features, if any\n if (cds.sharedData != null) {\n OotsElementData oed = cds.sharedData.getOutOfTypeSystemFeatures(fs);\n if (oed != null) {\n // attributes\n Iterator<XmlAttribute> attrIter = oed.attributes.iterator();\n while (attrIter.hasNext()) {\n XmlAttribute attr = attrIter.next();\n addAttribute(workAttrs, attr.name, attr.value);\n }\n // child elements\n childElements.addAll(oed.childElements);\n }\n }\n return childElements;\n }",
"@Override\n public void toXml(XmlContext xc) {\n\n }",
"private void consumeEntity(boolean inAttribute) throws SAXException,\n IOException {\n clearStrBuf();\n appendStrBuf('&');\n /*\n * This section defines how to consume an entity. This definition is\n * used when parsing entities in text and in attributes.\n * \n * The behaviour depends on the identity of the next character (the one\n * immediately after the U+0026 AMPERSAND character):\n */\n char c = read();\n switch (c) {\n case ' ':\n case '\\t':\n case '\\n':\n case '\\u000B':\n case '\\u000C':\n case '<':\n case '&':\n case '\\u0000':\n /*\n * U+0009 CHARACTER TABULATION U+000A LINE FEED (LF) U+000B LINE\n * TABULATION U+000C FORM FEED (FF) U+0020 SPACE U+003C\n * LESS-THAN SIGN U+0026 AMPERSAND EOF Not an entity. No\n * characters are consumed, and nothing is returned. (This is\n * not an error, either.)\n */\n if (inAttribute) {\n appendStrBufToLongStrBuf();\n } else {\n emitStrBuf();\n }\n unread(c);\n return;\n case '#':\n /*\n * U+0023 NUMBER SIGN (#) Consume the U+0023 NUMBER SIGN.\n */\n appendStrBuf('#');\n consumeNCR(inAttribute);\n return;\n default:\n unread(c);\n int entCol = -1;\n int lo = 0;\n int hi = (Entities.NAMES.length - 1);\n int candidate = -1;\n int strBufMark = 0;\n outer: for (;;) {\n entCol++;\n c = read();\n /*\n * Anything else Consume the maximum number of characters\n * possible, with the consumed characters case-sensitively\n * matching one of the identifiers in the first column of\n * the entities table.\n */\n hiloop: for (;;) {\n if (hi == -1) {\n break;\n }\n if (entCol == Entities.NAMES[hi].length()) {\n break hiloop;\n }\n if (entCol > Entities.NAMES[hi].length()) {\n break outer;\n } else if (c < Entities.NAMES[hi].charAt(entCol)) {\n hi--;\n } else {\n break hiloop;\n }\n }\n \n loloop: for (;;) {\n if (hi < lo) {\n break outer;\n }\n if (entCol == Entities.NAMES[lo].length()) {\n candidate = lo;\n strBufMark = strBufLen;\n lo++;\n } else if (entCol > Entities.NAMES[lo].length()) {\n break outer;\n } else if (c > Entities.NAMES[lo].charAt(entCol)) {\n lo++;\n } else {\n break loloop;\n }\n }\n if (hi < lo) {\n break outer;\n }\n appendStrBuf(c);\n }\n unread(c);\n // TODO warn about apos (IE) and TRADE (Opera)\n if (candidate == -1) {\n /* If no match can be made, then this is a parse error. */\n err(\"Text after \\u201C&\\u201D did not match an entity name.\");\n /*\n * No characters are consumed, and nothing is returned.\n */\n if (inAttribute) {\n appendStrBufToLongStrBuf();\n } else {\n emitStrBuf();\n }\n return;\n } else {\n if (!Entities.NAMES[candidate].endsWith(\";\")) {\n /*\n * If the last character matched is not a U+003B\n * SEMICOLON (;), there is a parse error.\n */\n err(\"Entity reference was not terminated by a semicolon.\");\n if (inAttribute) {\n /*\n * If the entity is being consumed as part of an\n * attribute, and the last character matched is not\n * a U+003B SEMICOLON (;),\n */\n if (strBufMark == strBufLen) {\n c = read();\n unread(c);\n } else {\n c = strBuf[strBufMark];\n }\n if ((c >= '0' && c <= '9')\n || (c >= 'A' && c <= 'Z')\n || (c >= 'a' && c <= 'z')) {\n /*\n * and the next character is in the range U+0030\n * DIGIT ZERO to U+0039 DIGIT NINE, U+0041 LATIN\n * CAPITAL LETTER A to U+005A LATIN CAPITAL\n * LETTER Z, or U+0061 LATIN SMALL LETTER A to\n * U+007A LATIN SMALL LETTER Z, then, for\n * historical reasons, all the characters that\n * were matched after the U+0026 AMPERSAND (&)\n * must be unconsumed, and nothing is returned.\n */\n appendStrBufToLongStrBuf();\n return;\n }\n }\n }\n \n /*\n * Otherwise, return a character token for the character\n * corresponding to the entity name (as given by the second\n * column of the entities table).\n */\n char[] val = Entities.VALUES[candidate];\n emitOrAppend(val, inAttribute);\n // this is so complicated!\n if (strBufMark < strBufLen) {\n if (inAttribute) {\n for (int i = strBufMark; i < strBufLen; i++) {\n appendLongStrBuf(strBuf[i]);\n }\n } else {\n tokenHandler.characters(strBuf, strBufMark,\n strBufLen - strBufMark);\n }\n }\n return;\n /*\n * If the markup contains I'm ¬it; I tell you, the entity\n * is parsed as \"not\", as in, I'm ¬it; I tell you. But if\n * the markup was I'm ∉ I tell you, the entity would\n * be parsed as \"notin;\", resulting in I'm ∉ I tell you.\n */\n }\n \n }\n }",
"public void parseXml(String file) {\n\n try {\n\n debug(\"\\n\\nIn the beginning God created the heaven and the world...\\n\\n\");\n\n File fXmlFile = new File(\"./levels/\" + file);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(fXmlFile);\n\n doc.getDocumentElement().normalize();\n debug(\"Chosen entity: \" + doc.getDocumentElement().getNodeName());\n\n NodeList placeList = doc.getElementsByTagName(\"place\");\n NodeList passageList = doc.getElementsByTagName(\"passage\");\n NodeList furnitureList = doc.getElementsByTagName(\"furniture\");\n NodeList storyList = doc.getElementsByTagName(\"story\");\n\n // Create object arrays\n ArrayList<Place> places = new ArrayList<>();\n ArrayList<Item> items = new ArrayList<>();\n ArrayList<Passage> passages = new ArrayList<>();\n ArrayList<Furniture> furnitures = new ArrayList<Furniture>();\n\n // parse story text\n Node storyNode = storyList.item(0);\n Element storyElement = (Element) storyNode;\n debug(\"Intro: \" + storyElement.getElementsByTagName(\"introduction\").item(0).getTextContent());\n debug(\"Level: \" + storyElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"Version: \" + storyElement.getElementsByTagName(\"version\").item(0).getTextContent());\n // add story elements to world\n world.setIntroduction(\n storyElement.getElementsByTagName(\"introduction\").item(0).getTextContent());\n world.setLevelName(storyElement.getElementsByTagName(\"name\").item(0).getTextContent());\n world.setLevelVersion(storyElement.getElementsByTagName(\"version\").item(0).getTextContent());\n\n // parse all existing Places\n for (int placeCounter = 0; placeCounter < placeList.getLength(); placeCounter++) {\n Node placeNode = placeList.item(placeCounter);\n\n debug(\"\\nCurrent Element: \" + placeNode.getNodeName());\n\n if (placeNode.getNodeType() == Node.ELEMENT_NODE) {\n Element placeElement = (Element) placeNode;\n\n debug(\"- Ending: \" + placeElement.getAttribute(\"end\"));\n debug(\"- id: \" + placeElement.getAttribute(\"id\"));\n debug(\"- Name: \" + placeElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- Description: \"\n + placeElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create Places.\n places.add(new Place(placeElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n placeElement.getElementsByTagName(\"description\").item(0).getTextContent().replace(\"\\\\n\", \"\\n\")));\n\n // add EndingPlace to World, set endingText to Places' Description\n if (placeElement.getAttribute(\"end\").equals(\"bad\")) {\n world.addBadEnding(places.get(placeCounter),\n places.get(placeCounter).getDescription());\n } else if(placeElement.getAttribute(\"end\").equals(\"good\")) {\n world.addGoodEnding(places.get(placeCounter),\n places.get(placeCounter).getDescription());\n }\n \n // parse all existing Place Items\n NodeList itemList = placeElement.getElementsByTagName(\"item\");\n\n for (int itemCounter = 0; itemCounter < itemList.getLength(); itemCounter++) {\n Node itemNode = itemList.item(itemCounter);\n\n Element itemElement = (Element) itemNode;\n\n debug(\"- Item\" + itemCounter + \":\");\n debug(\"- - Name: \" + itemElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - Description: \"\n + itemElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create items.\n items.add(new Item(itemElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n itemElement.getElementsByTagName(\"description\").item(0).getTextContent()));\n // Set items in current place.\n places.get(placeCounter).addObjectToPlace(getIncludedItem(itemElement, items));\n\n }\n }\n }\n\n // parse all furniture\n for (int furnitureCounter = 0; furnitureCounter < furnitureList\n .getLength(); furnitureCounter++) {\n Node furnitureNode = furnitureList.item(furnitureCounter);\n\n Element furnitureElement = (Element) furnitureNode;\n\n debug(\"\\nCurrent Element: \" + furnitureNode.getNodeName());\n\n debug(\"- Furniture\" + furnitureCounter);\n debug(\"- - In Place: \"\n + furnitureElement.getElementsByTagName(\"in-place\").item(0).getTextContent());\n debug(\n \"- - Name: \" + furnitureElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - Description: \"\n + furnitureElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create furniture objects\n furnitures.add(\n new Furniture(furnitureElement.getElementsByTagName(\"name\").item(0).getTextContent(), // name\n furnitureElement.getElementsByTagName(\"description\").item(0).getTextContent(), // description\n furnitureElement.getElementsByTagName(\"in-place\").item(0).getTextContent()));\n\n NodeList furnitureItemList = furnitureElement.getElementsByTagName(\"content-item\");\n\n // parse all Furniture Items\n for (int furnitureItemCounter = 0; furnitureItemCounter < furnitureItemList\n .getLength(); furnitureItemCounter++) {\n Node furnitureItemNode = furnitureItemList.item(furnitureItemCounter);\n\n Element furnitureItemElement = (Element) furnitureItemNode;\n\n debug(\"- - Content Items:\");\n debug(\"- - - Name: \"\n + furnitureItemElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - - Description: \"\n + furnitureItemElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n addItems(furnitureItemElement, furnitures, items, furnitureCounter);\n\n }\n\n NodeList furnitureObstacleList = furnitureElement.getElementsByTagName(\"obstacle\");\n\n // parse all Furniture Obstacles\n for (int furnitureObstacleCounter = 0; furnitureObstacleCounter < furnitureObstacleList\n .getLength(); furnitureObstacleCounter++) {\n Node furnitureObstacleNode = furnitureObstacleList.item(furnitureObstacleCounter);\n\n Element furnitureObstacleElement = (Element) furnitureObstacleNode;\n\n debug(\"- - Obstacle:\");\n debug(\"- - - Description: \" + furnitureObstacleElement.getElementsByTagName(\"description\")\n .item(0).getTextContent());\n debug(\"- - - Resolution: \" + furnitureObstacleElement.getElementsByTagName(\"resolution\")\n .item(0).getTextContent());\n // debug(\"- - - Requirement: \" +\n // furnitureObstacleElement.getElementsByTagName(\"requiredItem\").item(0).getTextContent());\n\n // create furniture obstacle\n if (furnitureObstacleElement.getAttribute(\"type\").equals(\"double\")) {\n // double Item obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new DoubleItemObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n getRequiredItem(items,\n furnitureObstacleElement.getElementsByTagName(\"requiredItem\").item(0)\n .getTextContent()),\n getRequiredItem(items, furnitureObstacleElement\n .getElementsByTagName(\"additionalItem\").item(0).getTextContent())));\n\n } else if (furnitureObstacleElement.getAttribute(\"type\").equals(\"riddle\")) {\n // riddle Obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new RiddleObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"requiredAnswer\").item(0)\n .getTextContent()));\n\n } else {\n // normal Obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new ItemObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n getRequiredItem(items, furnitureObstacleElement\n .getElementsByTagName(\"requiredItem\").item(0).getTextContent())));\n }\n // add damage points to obstacle\n if (!furnitureObstacleElement.getAttribute(\"damage\").equals(\"\")) {\n passages.get(furnitureCounter).getObstacle()\n .setDamagepoints(Integer.parseInt(furnitureObstacleElement.getAttribute(\"damage\")));\n }\n\n }\n\n }\n\n // Add current furniture to its containing Place\n setFurnitureInPlace(furnitures, places);\n\n // parse all existing passages\n for (int passageCounter = 0; passageCounter < passageList.getLength(); passageCounter++) {\n Node passageNode = passageList.item(passageCounter);\n\n debug(\"\\nCurrent Element: \" + passageNode.getNodeName());\n\n if (passageNode.getNodeType() == Node.ELEMENT_NODE) {\n Element passageElement = (Element) passageNode;\n\n debug(\"- id: \" + passageElement.getAttribute(\"id\"));\n debug(\"- Name: \" + passageElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- Description: \"\n + passageElement.getElementsByTagName(\"description\").item(0).getTextContent());\n debug(\"- Comes from: \"\n + passageElement.getElementsByTagName(\"comeFrom\").item(0).getTextContent());\n debug(\"- Connects to: \"\n + passageElement.getElementsByTagName(\"connectTo\").item(0).getTextContent());\n\n // Create Passage with connected Places.\n passages\n .add(new Passage(passageElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n passageElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n getFromPlace(passageElement, places), // from this Place\n getFollowPlace(passageElement, places)) // to that Place\n );\n\n // parse all existing Passage Obstacles\n NodeList obstacleList = passageElement.getElementsByTagName(\"obstacle\");\n\n for (int obstacleCounter = 0; obstacleCounter < obstacleList\n .getLength(); obstacleCounter++) {\n Node obstacleNode = obstacleList.item(obstacleCounter);\n\n Element obstacleElement = (Element) obstacleNode;\n\n debug(\"- Obstacle\" + passageCounter + \":\");\n debug(\"- - Description: \"\n + obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent());\n debug(\"- - Resolution: \"\n + obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent());\n // debug(\"- - Required Item: \" +\n // obstacleElement.getElementsByTagName(\"requiredItem\").item(0).getTextContent());\n\n // Create the obstacle for each passage.\n if (obstacleElement.getAttribute(\"type\").equals(\"double\")) {\n // double Item obstacle\n passages.get(passageCounter)\n .setObstacle(new DoubleItemObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n getRequiredItem(items,\n obstacleElement.getElementsByTagName(\"requiredItem\").item(0)\n .getTextContent()),\n getRequiredItem(items, obstacleElement.getElementsByTagName(\"additionalItem\")\n .item(0).getTextContent())));\n\n } else if (obstacleElement.getAttribute(\"type\").equals(\"riddle\")) {\n // riddle Obstacle\n passages.get(passageCounter).setObstacle(new RiddleObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"requiredAnswer\").item(0).getTextContent()));\n\n } else {\n // normal Obstacle\n passages.get(passageCounter)\n .setObstacle(new ItemObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n getRequiredItem(items, obstacleElement.getElementsByTagName(\"requiredItem\")\n .item(0).getTextContent())));\n }\n\n // add damage points to obstacle\n if (!obstacleElement.getAttribute(\"damage\").equals(\"\")) {\n passages.get(passageCounter).getObstacle()\n .setDamagepoints(Integer.parseInt(obstacleElement.getAttribute(\"damage\")));\n }\n\n\n }\n }\n }\n\n startingPlace = places.get(0);\n\n // Add Places to GameWorld\n addPlacesToWorld(places, world);\n\n // set starting Place in GameWorld\n if (world.getStartingPlace() == null) {\n world.setStartingPlace(startingPlace);\n }\n\n debug(\"\\n\\n\");\n debug(\"World has successfully been created! God saw all that he had made, and it was good.\");\n debug(\"\\n\\n\\n\\n\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"public void importUsingCustomXML(OperatingConditions operatingConditions, Aircraft aircraft, ACAnalysisManager analysis, String inFilePathNoExt) {\n\n\t\t\n\t\tSystem.out.println(\"\\n ----- STARTED IMPORTING DATA FROM THE XML CUSTOM FILE -----\\n\");\n\n\t\t\n\t\t// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n\t\t// STATIC FUNCTIONS - TO BE CALLED BEFORE EVERYTHING ELSE\n\t\tJPADWriteUtils.buildXmlTree();\n\n\t\tJPADXmlReader _theReadUtilities = new JPADXmlReader(aircraft, operatingConditions, inFilePathNoExt);\n\t\t_theReadUtilities.importAircraftAndOperatingConditions(aircraft, operatingConditions, inFilePathNoExt);\n\t\t\n\t\tSystem.out.println(\"\\n\\n\");\n\t\tSystem.out.println(\"\\t\\tCurrent Mach after importing = \" + operatingConditions.get_machCurrent());\n\t\tSystem.out.println(\"\\t\\tCurrent Altitude after importing = \" + operatingConditions.get_altitude());\n\t\tSystem.out.println(\"\\n\\n\");\n\t\tSystem.out.println(\"\\t\\tCurrent MTOM after importing = \" + aircraft.get_weights().get_MTOM());\n\t\tSystem.out.println(\"\\n\\n\");\n\t\t\n\t\t//-------------------------------------------------------------------\n\t\t// Export/Serialize\n\t\t\n\t\tJPADDataWriter writer = new JPADDataWriter(operatingConditions, aircraft, analysis);\n\t\t\n\t\tString myExportedFile = inFilePathNoExt + \"b\" + \".xml\";\n\t\t\n\t\twriter.exportToXMLfile(myExportedFile);\n\t\t\n\t}",
"public Unknown2XML() {\n reflectUtil = new ReflectUtil();\n// mappers = new HashMap<Class<?>, XMLMapper>();\n }",
"public String toXml( String inEncoding )\n\t{\n\t\tDocument doc = DocumentHelper.createDocument();\n\t\tElement root = doc.addElement(getName());\n\t\tappendXml(this,root);\n\t\tStringWriter text = new StringWriter();\n\t\tOutputFormat format = OutputFormat.createPrettyPrint();\n\t\tformat.setEncoding(inEncoding);\n\t\tXMLWriter out = new XMLWriter(text, format);\n\t\ttry\n\t\t{\n\t\t\tout.write(doc);\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tthrow new OpenEditRuntimeException(ex);\n\t\t}\n\t\treturn text.toString();\n\t}",
"public static void encodeXMLs(PrintWriter out, String... strs) {\n for (int i = 0; i < strs.length; i++) {\n if ((i % 2) == 0)\n out.print(strs[i]);\n else\n encodeXML(out, strs[i]);\n }\n }",
"Element toXML();",
"public void encodeTree(){\n StringBuilder builder = new StringBuilder();\n encodeTreeHelper(root,builder);\n }",
"public static String encode(String unencoded) {\r\n StringBuilder buffer = null;\r\n for (int i = 0; i < unencoded.length(); ++i) {\r\n String encS = XmlWriter.encoding.get(unencoded.charAt(i));\r\n if (encS != null) {\r\n if (buffer == null)\r\n buffer = new StringBuilder(unencoded.substring(0,i));\r\n buffer.append(encS);\r\n } else if (buffer != null)\r\n buffer.append(unencoded.charAt(i));\r\n }\r\n return (buffer == null) ? unencoded : buffer.toString();\r\n }",
"@Test\n\tpublic void testInlinerWithFile() throws Exception {\n\t\tString input = new String(Files.readAllBytes(new File(\"../warre.txt\").toPath()));\n\t\tInliner inliner = new Inliner();\n\t\tList<Part> parts = new Tokenizer(inliner).split(input);\n\t\tList<HTreeNode> freq = new FrequencyAnalyzer().analyzeFrequency(parts);\n\t\tString result = inliner.encode(parts, freq, 'X');\n\n\t\tSystem.out.println(\"\\nInput size : \" + input.length());\n\t\tSystem.out.println(\"Output size : \" + result.length());\n\t\tSystem.out.println(\"Num tokens : \" + freq.stream().filter(a -> a.prevalence > 1).count());\n\n//\t\tSystem.out.println(input);\n\t\tSystem.out.println(result);\n//\t\tSystem.out.println(inliner.decode(result, 'X'));\n\t}",
"XMLIn(String legendFile, RFO r)\n\t\t{\n\t\t\tsuper();\n\t\t\trfo = r;\n\t\t\telement = \"\";\n\t\t\tlocation = \"\";\n\t\t\tfiletype = \"\";\n\t\t\tmaterial = \"\";\n\t\t\tmElements = new double[16];\n\t\t\tsetMToIdentity();\t\t\t\n\t\t\t\n\t\t\tXMLReader xr = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\txr = XMLReaderFactory.createXMLReader();\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tDebug.e(\"XMLIn() 1: \" + e);\n\t\t\t}\n\t\t\t\n\t\t\txr.setContentHandler(this);\n\t\t\txr.setErrorHandler(this);\n\t\t\ttry\n\t\t\t{\n\t\t\t\txr.parse(new InputSource(legendFile));\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tDebug.e(\"XMLIn() 2: \" + e);\n\t\t\t}\n\n\t\t}",
"public void readXML(String xml){\n\t\tint maxId = 0;\n\t\ttry {\n \tFile xmlFile = new File(xml); \n \tDocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance(); \n \tDocumentBuilder documentBuilder = documentFactory.newDocumentBuilder(); \n \tDocument doc = documentBuilder.parse(xmlFile); \n \tdoc.getDocumentElement().normalize();\n \tNodeList nodeList = doc.getElementsByTagName(\"node\");\n \tHashMap<Integer,Artifact> artifactTable = new HashMap<Integer, Artifact>();\n \tHashMap<Integer,Element> nodeTable = new HashMap<Integer, Element>();\n \n \tfor (int i = 0; i < nodeList.getLength(); i++) { \n \t\tNode xmlItem = nodeList.item(i);\n \t\tif (xmlItem.getNodeType() == Node.ELEMENT_NODE) { \n \t\t\tElement node = (Element) xmlItem;\n \t\t\tArtifact newNode = new Artifact(Rel.getContext());\n \t\t\tRel.addView(newNode,100,100);\n \t\t\tnewNode.setId(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent()));\n \t\t\tnewNode.setPrevWidth(100);\n \t\t\tnewNode.setPrevHeight(100);\n \t\t\tnewNode.setTag(\"node\");\n \t\t\tnewNode.setText(node.getElementsByTagName(\"label\").item(0).getTextContent());\n \t\t\tnewNode.setType(node.getElementsByTagName(\"type\").item(0).getTextContent());\n \t\t\tnewNode.setInformation(node.getElementsByTagName(\"information\").item(0).getTextContent());\n \t\t\tnewNode.setPosition(node.getElementsByTagName(\"position\").item(0).getTextContent());\n \t\t\tnewNode.setAge(Long.parseLong(node.getElementsByTagName(\"age\").item(0).getTextContent()));\n \t\t\tnewNode.setBackgroundResource(Utility.getDrawableType(newNode));\n \t\t\tif(\"\".compareTo((String) newNode.getText()) != 0){\n \t\t\t\tnewNode.matchWithText();\n \t\t\t}\n \t\t\tartifactTable.put(newNode.getId(), newNode);\n \t\t\tnodeTable.put(newNode.getId(), node);\n \t\t\tif(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent())>maxId){\n \t\t\t\tmaxId = Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent());\n \t\t\t}\n \t\t} \n \t\t\n \t}\n \t\n \t//once we created all the artifacts now we can set the fathers and sons for every node with the artifact and xmlnode tables we have filled while reading\n \tIterator it = artifactTable.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pairs = (Map.Entry)it.next();\n NodeList sonsList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"son\");\n if(sonsList != null){\n\t for (int j = 0; j < sonsList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addSon(artifactTable.get(Integer.parseInt(sonsList.item(j).getTextContent())));\n\t }\n }\n \n NodeList fathersList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"father\");\n if(fathersList != null){\n\t for (int j = 0; j < fathersList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addFather(artifactTable.get(Integer.parseInt(fathersList.item(j).getTextContent())));\n\t }\n }\n \n }\n \n \n }catch(Exception e){\n \tLog.v(\"error reading xml\",e.toString());\n }\n\t\tGlobal.ID = maxId+1;\n\t}",
"public MxSeev03400211(final String xml) {\n this();\n MxSeev03400211 tmp = parse(xml);\n corpActnInstrStsAdvc = tmp.getCorpActnInstrStsAdvc();\n }",
"interface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link edu.cmu.attackimpact.impl.NodeImpl <em>Node</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see edu.cmu.attackimpact.impl.NodeImpl\n\t\t * @see edu.cmu.attackimpact.impl.AttackImpactPackageImpl#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 '<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__NAME = eINSTANCE.getNode_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</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__DESCRIPTION = eINSTANCE.getNode_Description();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Vulnerabilities</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 NODE__VULNERABILITIES = eINSTANCE.getNode_Vulnerabilities();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Propagations</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 NODE__PROPAGATIONS = eINSTANCE.getNode_Propagations();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Related Object</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__RELATED_OBJECT = eINSTANCE.getNode_RelatedObject();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Tags</b></em>' attribute list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute NODE__TAGS = eINSTANCE.getNode_Tags();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Domains</b></em>' attribute list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute NODE__DOMAINS = eINSTANCE.getNode_Domains();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link edu.cmu.attackimpact.impl.VulnerabilityImpl <em>Vulnerability</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see edu.cmu.attackimpact.impl.VulnerabilityImpl\n\t\t * @see edu.cmu.attackimpact.impl.AttackImpactPackageImpl#getVulnerability()\n\t\t * @generated\n\t\t */\n\t\tEClass VULNERABILITY = eINSTANCE.getVulnerability();\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 VULNERABILITY__NAME = eINSTANCE.getVulnerability_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</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 VULNERABILITY__DESCRIPTION = eINSTANCE.getVulnerability_Description();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Severity</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 VULNERABILITY__SEVERITY = eINSTANCE.getVulnerability_Severity();\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 VULNERABILITY__TYPE = eINSTANCE.getVulnerability_Type();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Propagations</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 VULNERABILITY__PROPAGATIONS = eINSTANCE.getVulnerability_Propagations();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Tags</b></em>' attribute list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VULNERABILITY__TAGS = eINSTANCE.getVulnerability_Tags();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link edu.cmu.attackimpact.impl.PropagationImpl <em>Propagation</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see edu.cmu.attackimpact.impl.PropagationImpl\n\t\t * @see edu.cmu.attackimpact.impl.AttackImpactPackageImpl#getPropagation()\n\t\t * @generated\n\t\t */\n\t\tEClass PROPAGATION = eINSTANCE.getPropagation();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Destinations</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 PROPAGATION__DESTINATIONS = eINSTANCE.getPropagation_Destinations();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Severity</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 PROPAGATION__SEVERITY = eINSTANCE.getPropagation_Severity();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Tags</b></em>' attribute list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute PROPAGATION__TAGS = eINSTANCE.getPropagation_Tags();\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 PROPAGATION__TYPE = eINSTANCE.getPropagation_Type();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link edu.cmu.attackimpact.impl.ModelImpl <em>Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see edu.cmu.attackimpact.impl.ModelImpl\n\t\t * @see edu.cmu.attackimpact.impl.AttackImpactPackageImpl#getModel()\n\t\t * @generated\n\t\t */\n\t\tEClass MODEL = eINSTANCE.getModel();\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 MODEL__NAME = eINSTANCE.getModel_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</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 MODEL__DESCRIPTION = eINSTANCE.getModel_Description();\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 MODEL__NODES = eINSTANCE.getModel_Nodes();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link edu.cmu.attackimpact.vulnerabilityType <em>vulnerability Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see edu.cmu.attackimpact.vulnerabilityType\n\t\t * @see edu.cmu.attackimpact.impl.AttackImpactPackageImpl#getvulnerabilityType()\n\t\t * @generated\n\t\t */\n\t\tEEnum VULNERABILITY_TYPE = eINSTANCE.getvulnerabilityType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link edu.cmu.attackimpact.propagationType <em>propagation Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see edu.cmu.attackimpact.propagationType\n\t\t * @see edu.cmu.attackimpact.impl.AttackImpactPackageImpl#getpropagationType()\n\t\t * @generated\n\t\t */\n\t\tEEnum PROPAGATION_TYPE = eINSTANCE.getpropagationType();\n\n\t}",
"interface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link gov.nasa.jpl.imce.oml.oti.provenance.impl.OML2OTIProvenanceImpl <em>OML2OTI Provenance</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see gov.nasa.jpl.imce.oml.oti.provenance.impl.OML2OTIProvenanceImpl\n\t\t * @see gov.nasa.jpl.imce.oml.oti.provenance.impl.ProvenancePackageImpl#getOML2OTIProvenance()\n\t\t * @generated\n\t\t */\n\t\tEClass OML2OTI_PROVENANCE = eINSTANCE.getOML2OTIProvenance();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Oml UUID</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 OML2OTI_PROVENANCE__OML_UUID = eINSTANCE.getOML2OTIProvenance_OmlUUID();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Oml IRI</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 OML2OTI_PROVENANCE__OML_IRI = eINSTANCE.getOML2OTIProvenance_OmlIRI();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Oti 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 OML2OTI_PROVENANCE__OTI_ID = eINSTANCE.getOML2OTIProvenance_OtiID();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Oti 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 OML2OTI_PROVENANCE__OTI_URL = eINSTANCE.getOML2OTIProvenance_OtiURL();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Oti UUID</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 OML2OTI_PROVENANCE__OTI_UUID = eINSTANCE.getOML2OTIProvenance_OtiUUID();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Explanation</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 OML2OTI_PROVENANCE__EXPLANATION = eINSTANCE.getOML2OTIProvenance_Explanation();\n\n\t\t/**\n\t\t * The meta object literal for the '<em>UUID</em>' data type.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see java.lang.String\n\t\t * @see gov.nasa.jpl.imce.oml.oti.provenance.impl.ProvenancePackageImpl#getUUID()\n\t\t * @generated\n\t\t */\n\t\tEDataType UUID = eINSTANCE.getUUID();\n\n\t\t/**\n\t\t * The meta object literal for the '<em>OML IRI</em>' data type.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see java.lang.String\n\t\t * @see gov.nasa.jpl.imce.oml.oti.provenance.impl.ProvenancePackageImpl#getOML_IRI()\n\t\t * @generated\n\t\t */\n\t\tEDataType OML_IRI = eINSTANCE.getOML_IRI();\n\n\t\t/**\n\t\t * The meta object literal for the '<em>OTI TOOL SPECIFIC ID</em>' data type.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see java.lang.String\n\t\t * @see gov.nasa.jpl.imce.oml.oti.provenance.impl.ProvenancePackageImpl#getOTI_TOOL_SPECIFIC_ID()\n\t\t * @generated\n\t\t */\n\t\tEDataType OTI_TOOL_SPECIFIC_ID = eINSTANCE.getOTI_TOOL_SPECIFIC_ID();\n\n\t\t/**\n\t\t * The meta object literal for the '<em>OTI TOOL SPECIFIC UUID</em>' data type.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see java.lang.String\n\t\t * @see gov.nasa.jpl.imce.oml.oti.provenance.impl.ProvenancePackageImpl#getOTI_TOOL_SPECIFIC_UUID()\n\t\t * @generated\n\t\t */\n\t\tEDataType OTI_TOOL_SPECIFIC_UUID = eINSTANCE.getOTI_TOOL_SPECIFIC_UUID();\n\n\t\t/**\n\t\t * The meta object literal for the '<em>OTI TOOL SPECIFIC URL</em>' data type.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see java.lang.String\n\t\t * @see gov.nasa.jpl.imce.oml.oti.provenance.impl.ProvenancePackageImpl#getOTI_TOOL_SPECIFIC_URL()\n\t\t * @generated\n\t\t */\n\t\tEDataType OTI_TOOL_SPECIFIC_URL = eINSTANCE.getOTI_TOOL_SPECIFIC_URL();\n\n\t}",
"public static org.opencds.vmr.v1_0.schema.EN eNInternal2EN(EN pENInt) \n\t\t\tthrows DataFormatException, InvalidDataException {\n\n\t\tString _METHODNAME = \"eNInternal2EN(): \";\n\n\t\tif (pENInt == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString errStr = null;\n\t\torg.opencds.vmr.v1_0.schema.EN lENExt = new org.opencds.vmr.v1_0.schema.EN();\n\n\t\t// Create external List<ENXP> element - at least one required\n\t\tList<ENXP> lIntEntityPart = pENInt.getPart();\n\t\tif (lIntEntityPart == null || lIntEntityPart.size() == 0) { // vmr spec says there must be at least one EntityPart\n\t\t\terrStr = _METHODNAME + \"List<ENXP> element of internal EN datatype not populated - required by vmr spec\";\n\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\tlogger.debug(errStr);\n\t\t\t}\n\t\t\tthrow new DataFormatException(errStr);\n\t\t}\n\t\tIterator<ENXP> lIntEntityPartIter = lIntEntityPart.iterator();\n\t\tint count = 0;\n\t\twhile (lIntEntityPartIter.hasNext()) {\n\t\t\tENXP lENXPInt = lIntEntityPartIter.next();\n\t\t\torg.opencds.vmr.v1_0.schema.ENXP lENXPExp = eNXPInternal2ENXP(lENXPInt);\n\t\t\tlENExt.getPart().add(lENXPExp);\n\t\t\tcount++;\n\t\t}\n\t\tif (count < 1) {\n\t\t\terrStr = _METHODNAME + \"No int->ext translations of List<ENXP> successful - at least one member of List<ENXP> required by vmr spec\";\n\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\tlogger.debug(errStr);\n\t\t\t}\n\t\t\tthrow new InvalidDataException(errStr);\n\t\t}\n\n\t\t// Now transfer over internal to external List<EntityNameUse> (optional in vmr spec)\n\t\tList<EntityNameUse> lEntityNameUseListInt = pENInt.getUse();\n\t\tif (lEntityNameUseListInt != null) {\n\t\t\tIterator<EntityNameUse> lEntityNameUseIntIter = lEntityNameUseListInt.iterator();\n\t\t\tEntityNameUse lEntityNameUseInt = lEntityNameUseIntIter.next();\n\t\t\torg.opencds.vmr.v1_0.schema.EntityNameUse lEntityNameUseExt = eNNameUseInternal2ENNameUse(lEntityNameUseInt);\n\t\t\tlENExt.getUse().add(lEntityNameUseExt);\n\t\t}\n\n\t\treturn lENExt;\n\t}",
"void xsetCit(org.apache.xmlbeans.XmlString cit);",
"public String saveTypesAsXML(TextLabels labels) {\n\t\tStringBuffer buf = new StringBuffer(\"<extractions>\\n\");\n\t\tfor (Iterator i=labels.getTypes().iterator(); i.hasNext(); ) {\n\t\t\tString type = (String)i.next();\n\t\t\tfor (Span.Looper j=labels.instanceIterator(type); j.hasNext(); ) {\n\t\t\t\tSpan s = j.nextSpan();\n\t\t\t\tint lo = s.getTextToken(0).getLo();\n\t\t\t\tint hi = s.getTextToken(s.size()-1).getHi();\n\t\t\t\tbuf.append(\" <\"+type+\" lo=\"+lo+\" hi=\"+hi+\">\"+s.asString()+\"</\"+type+\">\\n\");\n\t\t\t}\n\t\t}\n\t\tbuf.append(\"</extractions>\\n\");\n\t\treturn buf.toString();\n\t}",
"private String createContent() {\n String content =\n \"BEGIN:VCALENDAR\\nVERSION:2.0\"\n + \"PRODID://TeamVinte/luther/eane/danp/ICS314//\"\n + \"\\nBEGIN:VTIMEZONE\\nTZID:Pacific/Honolulu\\n\"\n + \"BEGIN:DAYLIGHT\" \n + \"\\nTZOFFSETFROM:-1030\\nDTSTART:19430430T020000\\nTZNAME:HDT\\nTZOFFSETTO:-0930\\nRDATE:19430430T020000\\n\"\n + \"RDATE:19220209T020000\\nEND:DAYLIGHT\" \n + \"\\nBEGIN:STANDARD\" \n + \"\\nTZNAME:HST\\nTZOFFSETFROM:-1030\\nDTSTART:19550607T020000\\n\"\n + \"TZOFFSETTO:-1000\\nRDATE:19550607T020000\\nEND:STANDARD\\nEND:VTIMEZONE\" \n + \"\\nBEGIN:VEVENT\"\n + \"\\nCLASS:\" + classification\n + \"\\nSUMMARY:\" + name\n + \"\\nCREATED:\" + currentDate + \"T\" + currentTime + \"Z\\nUID:\" + UID\n + \"\\nDTSTART;TZID=Pacific/Honolulu:\" + startDate + \"T\" + startTime\n + \"\\nDTEND;TZID=Pacific/Honolulu:\" + endDate + \"T\" + endTime\n + \"\\nDTSTAMP:\" + startDate + \"T\" + startTime + \"Z\" + \"\\nLOCATION:\" + address\n + \"\\nGEO:\" + latitude + \";\" + longitude\n + \"\\nDESCRIPTION:\" + description\n + \"\\nCOMMENT:\" + comment\n + \"\\nEND:VEVENT\\nEND:VCALENDAR\";\n return content;\n }",
"@Override\n public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {\n // <document>\n if (localName.equals(\"document\")) {\n curArticle = new ArticleSmallOpinion();\n curTagiot = new ArrayList<Tagit>();\n\n // add values\n if (atts.getValue(\"doc_id\") != null) curArticle.setDoc_id(atts.getValue(\"doc_id\"));\n if (atts.getValue(\"title\") != null) curArticle.setTitle(atts.getValue(\"title\"));\n if (atts.getValue(\"sub_title\") != null) curArticle.setSubTitle(atts.getValue(\"sub_title\"));\n if (atts.getValue(\"f7\") != null) curArticle.setF7(atts.getValue(\"f7\"));\n String author = atts.getValue(\"author_icon\");\n author = extractImageUrl(author);\n if (atts.getValue(\"author_icon\") != null) curArticle.setAuthorImgURL(author);\n if (atts.getValue(\"Created_On\") != null) curArticle.setCreatedOn(atts.getValue(\"Created_On\"));\n\n }\n // <f2>\n else if (localName.equals(\"f2\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF2(atts.getValue(\"src\"));\n\n // currently not holding image photographer via \"title=\"\n }\n // <f3>\n if (localName.equals(\"f3\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF3(atts.getValue(\"src\"));\n // currently not holding image photographer via \"title=\"\n }\n // <f4>\n else if (localName.equals(\"f4\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF4(atts.getValue(\"src\"));\n // currently not holding image photographer via \"title=\"\n }\n // <tagit>\n else if (localName.equals(\"tagit\")) {\n Tagit tagit = new Tagit(atts.getValue(\"id\"), atts.getValue(\"simplified\"), \"\");\n curTagiot.add(tagit);\n }\n\n }",
"protected abstract ArrayList<Element> _toXml_();",
"abstract void toXML(StringBuilder xml, int level);",
"String toXML() throws RemoteException;",
"interface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link codegen.impl.MapEnrtyImpl <em>Map Enrty</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see codegen.impl.MapEnrtyImpl\n\t\t * @see codegen.impl.CodegenPackageImpl#getMapEnrty()\n\t\t * @generated\n\t\t */\n\t\tEClass MAP_ENRTY = eINSTANCE.getMapEnrty();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Key</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 MAP_ENRTY__KEY = eINSTANCE.getMapEnrty_Key();\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 MAP_ENRTY__VALUE = eINSTANCE.getMapEnrty_Value();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link codegen.impl.EntityImpl <em>Entity</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see codegen.impl.EntityImpl\n\t\t * @see codegen.impl.CodegenPackageImpl#getEntity()\n\t\t * @generated\n\t\t */\n\t\tEClass ENTITY = eINSTANCE.getEntity();\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 ENTITY__NAME = eINSTANCE.getEntity_Name();\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 ENTITY__ATTRIBUTES = eINSTANCE.getEntity_Attributes();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Context</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 ENTITY__CONTEXT = eINSTANCE.getEntity_Context();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ref Entity</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 ENTITY__REF_ENTITY = eINSTANCE.getEntity_RefEntity();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Source Column</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 ENTITY__SOURCE_COLUMN = eINSTANCE.getEntity_SourceColumn();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Destination</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 ENTITY__DESTINATION = eINSTANCE.getEntity_Destination();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link codegen.impl.AttributeImpl <em>Attribute</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see codegen.impl.AttributeImpl\n\t\t * @see codegen.impl.CodegenPackageImpl#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 '<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 ATTRIBUTE__TYPE = eINSTANCE.getAttribute_Type();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Is Primary Key</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__IS_PRIMARY_KEY = eINSTANCE.getAttribute_IsPrimaryKey();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Context</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 ATTRIBUTE__CONTEXT = eINSTANCE.getAttribute_Context();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link codegen.impl.ContextImpl <em>Context</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see codegen.impl.ContextImpl\n\t\t * @see codegen.impl.CodegenPackageImpl#getContext()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTEXT = eINSTANCE.getContext();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Key</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 CONTEXT__KEY = eINSTANCE.getContext_Key();\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 CONTEXT__VALUE = eINSTANCE.getContext_Value();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link codegen.impl.ViewModelImpl <em>View Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see codegen.impl.ViewModelImpl\n\t\t * @see codegen.impl.CodegenPackageImpl#getViewModel()\n\t\t * @generated\n\t\t */\n\t\tEClass VIEW_MODEL = eINSTANCE.getViewModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Context</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 VIEW_MODEL__CONTEXT = eINSTANCE.getViewModel_Context();\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 VIEW_MODEL__ID = eINSTANCE.getViewModel_ID();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Entities</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 VIEW_MODEL__ENTITIES = eINSTANCE.getViewModel_Entities();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Values</b></em>' map feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VIEW_MODEL__VALUES = eINSTANCE.getViewModel_Values();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Master</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 VIEW_MODEL__MASTER = eINSTANCE.getViewModel_Master();\n\n\t}",
"public void transformToSecondXml();",
"public interface XMLizable {\n\n /**\n * Write this element as an XML DOM element.\n */\n Element toXML();\n\n /**\n * Read this element as the content of the given element.\n */\n void readXML(Element elem) throws XMLSyntaxError;\n}",
"public void markEnodebIdReplace() throws JNCException {\n markLeafReplace(\"enodebId\");\n }",
"private void processAce ()\n{\n // Set the .ace input file name.\n ace_file.setFileName ( fileName );\n\n // Open the .ace input file.\n ace_file.openFile ();\n\n // Set the XML file name.\n xml_file.setFileName ( fileName + \".xml\" );\n\n // Open the XML file for writing.\n xml_file.open_XML_file ();\n\n // Write the XML file header.\n xml_file.write_XML_header ();\n\n // Process the .ace summary line.\n processSummary ();\n\n // Process the Phrap assembled contigs.\n processContigs ();\n\n // Complete the XML file.\n xml_file.write_XML_footer ();\n xml_file.close_XML ();\n\n // Close the .ace input file.\n ace_file.closeFile ();\n\n // Close the XML file.\n xml_file.closeFile ();\n}",
"public void gerarRDF() throws SenseRDFException;",
"@Override\n\tpublic Element encode(Document aDocument) throws EPPEncodeException {\n\n\t\t// Check required attributes\n\t\tif (this.status == null) {\n\t\t\tthrow new EPPEncodeException(\n\t\t\t\t\t\"Undefined status in EPPNameVerificationCreateFailed\");\n\t\t}\n\t\tif (this.reason == null) {\n\t\t\tthrow new EPPEncodeException(\n\t\t\t\t\t\"Undefined reason in EPPNameVerificationCreateFailed\");\n\t\t}\n\n\t\t// Create root element\n\t\tElement root = aDocument.createElementNS(\n\t\t\t\tEPPNameVerificationMapFactory.NS, ELM_NAME);\n\n\t\t// Status\n\t\tElement theStatusElm = aDocument.createElementNS(\n\t\t\t\tEPPNameVerificationMapFactory.NS,\n\t\t\t\tEPPNameVerificationMapFactory.NS_PREFIX + \":\" + ELM_STATUS);\n\t\troot.appendChild(theStatusElm);\n\t\ttheStatusElm.setAttribute(ATTR_STATUS, this.status.toString());\n\n\t\t// Reason\n\t\tElement reason = aDocument.createElementNS(\n\t\t\t\tEPPNameVerificationMapFactory.NS,\n\t\t\t\tEPPNameVerificationMapFactory.NS_PREFIX + \":\" + ELM_REASON);\n\t\tText reasonVal = aDocument.createTextNode(this.reason);\n\t\treason.appendChild(reasonVal);\n\t\troot.appendChild(reason);\n\n\t\t// Reason Language\n\t\t/**\n\t\t * @todo Uncomment once the lang attribute is added to the reason / msg\n\t\t * element. if (this.language != null) {\n\t\t * reason.setAttribute(ATTR_LANG, this.language); }\n\t\t */\n\n\t\treturn root;\n\t}",
"public interface IdentifiersPackage 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 = \"identifiers\";\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.servicifi.org/gelato/language/cobol/identifiers\";\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 = \"identifiers\";\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\tIdentifiersPackage eINSTANCE = org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.SubscriptImpl <em>Subscript</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.SubscriptImpl\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getSubscript()\n\t * @generated\n\t */\n\tint SUBSCRIPT = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Subscript</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SUBSCRIPT__SUBSCRIPT = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Subscript</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SUBSCRIPT_FEATURE_COUNT = 1;\n\n\t/**\n\t * The meta object id for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.IdentifierImpl <em>Identifier</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifierImpl\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getIdentifier()\n\t * @generated\n\t */\n\tint IDENTIFIER = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Modifier</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IDENTIFIER__MODIFIER = OperandsPackage.PRIMARY_OPERAND_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Identifier</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IDENTIFIER_FEATURE_COUNT = OperandsPackage.PRIMARY_OPERAND_FEATURE_COUNT + 1;\n\n\t/**\n\t * The meta object id for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.IdentifierReferenceImpl <em>Identifier Reference</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifierReferenceImpl\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getIdentifierReference()\n\t * @generated\n\t */\n\tint IDENTIFIER_REFERENCE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Modifier</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IDENTIFIER_REFERENCE__MODIFIER = IDENTIFIER__MODIFIER;\n\n\t/**\n\t * The feature id for the '<em><b>Target</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IDENTIFIER_REFERENCE__TARGET = IDENTIFIER_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Qualifier</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IDENTIFIER_REFERENCE__QUALIFIER = IDENTIFIER_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Subscripts</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 IDENTIFIER_REFERENCE__SUBSCRIPTS = IDENTIFIER_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Qualifiers</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 IDENTIFIER_REFERENCE__QUALIFIERS = IDENTIFIER_FEATURE_COUNT + 3;\n\n\t/**\n\t * The number of structural features of the '<em>Identifier Reference</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IDENTIFIER_REFERENCE_FEATURE_COUNT = IDENTIFIER_FEATURE_COUNT + 4;\n\n\t/**\n\t * The meta object id for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.DirectSubscriptImpl <em>Direct Subscript</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.DirectSubscriptImpl\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getDirectSubscript()\n\t * @generated\n\t */\n\tint DIRECT_SUBSCRIPT = 8;\n\n\t/**\n\t * The feature id for the '<em><b>Subscript</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DIRECT_SUBSCRIPT__SUBSCRIPT = SUBSCRIPT__SUBSCRIPT;\n\n\t/**\n\t * The number of structural features of the '<em>Direct Subscript</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DIRECT_SUBSCRIPT_FEATURE_COUNT = SUBSCRIPT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.AllImpl <em>All</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.AllImpl\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getAll()\n\t * @generated\n\t */\n\tint ALL = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Subscript</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ALL__SUBSCRIPT = DIRECT_SUBSCRIPT__SUBSCRIPT;\n\n\t/**\n\t * The number of structural features of the '<em>All</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ALL_FEATURE_COUNT = DIRECT_SUBSCRIPT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.ReferenceModifierImpl <em>Reference Modifier</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.ReferenceModifierImpl\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getReferenceModifier()\n\t * @generated\n\t */\n\tint REFERENCE_MODIFIER = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Start</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCE_MODIFIER__START = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Length</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCE_MODIFIER__LENGTH = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Reference Modifier</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCE_MODIFIER_FEATURE_COUNT = 2;\n\n\t/**\n\t * The meta object id for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.LinageCounterImpl <em>Linage Counter</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.LinageCounterImpl\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getLinageCounter()\n\t * @generated\n\t */\n\tint LINAGE_COUNTER = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Modifier</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LINAGE_COUNTER__MODIFIER = IDENTIFIER__MODIFIER;\n\n\t/**\n\t * The feature id for the '<em><b>Qualifier</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LINAGE_COUNTER__QUALIFIER = IDENTIFIER_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Linage Counter</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LINAGE_COUNTER_FEATURE_COUNT = IDENTIFIER_FEATURE_COUNT + 1;\n\n\t/**\n\t * The meta object id for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.QualifierImpl <em>Qualifier</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.QualifierImpl\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getQualifier()\n\t * @generated\n\t */\n\tint QUALIFIER = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Target</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint QUALIFIER__TARGET = ReferencesPackage.ELEMENT_REFERENCE__TARGET;\n\n\t/**\n\t * The number of structural features of the '<em>Qualifier</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint QUALIFIER_FEATURE_COUNT = ReferencesPackage.ELEMENT_REFERENCE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.RelativeSubscriptImpl <em>Relative Subscript</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.RelativeSubscriptImpl\n\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getRelativeSubscript()\n\t * @generated\n\t */\n\tint RELATIVE_SUBSCRIPT = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Subscript</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RELATIVE_SUBSCRIPT__SUBSCRIPT = SUBSCRIPT__SUBSCRIPT;\n\n\t/**\n\t * The feature id for the '<em><b>Additive Operator</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RELATIVE_SUBSCRIPT__ADDITIVE_OPERATOR = SUBSCRIPT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Integer</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RELATIVE_SUBSCRIPT__INTEGER = SUBSCRIPT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>Relative Subscript</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint RELATIVE_SUBSCRIPT_FEATURE_COUNT = SUBSCRIPT_FEATURE_COUNT + 2;\n\n\n\t/**\n\t * Returns the meta object for class '{@link org.servicifi.gelato.language.cobol.identifiers.Subscript <em>Subscript</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Subscript</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.Subscript\n\t * @generated\n\t */\n\tEClass getSubscript();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link org.servicifi.gelato.language.cobol.identifiers.Subscript#getSubscript <em>Subscript</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Subscript</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.Subscript#getSubscript()\n\t * @see #getSubscript()\n\t * @generated\n\t */\n\tEReference getSubscript_Subscript();\n\n\t/**\n\t * Returns the meta object for class '{@link org.servicifi.gelato.language.cobol.identifiers.Identifier <em>Identifier</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Identifier</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.Identifier\n\t * @generated\n\t */\n\tEClass getIdentifier();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link org.servicifi.gelato.language.cobol.identifiers.Identifier#getModifier <em>Modifier</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Modifier</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.Identifier#getModifier()\n\t * @see #getIdentifier()\n\t * @generated\n\t */\n\tEReference getIdentifier_Modifier();\n\n\t/**\n\t * Returns the meta object for class '{@link org.servicifi.gelato.language.cobol.identifiers.IdentifierReference <em>Identifier Reference</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Identifier Reference</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.IdentifierReference\n\t * @generated\n\t */\n\tEClass getIdentifierReference();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link org.servicifi.gelato.language.cobol.identifiers.IdentifierReference#getSubscripts <em>Subscripts</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Subscripts</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.IdentifierReference#getSubscripts()\n\t * @see #getIdentifierReference()\n\t * @generated\n\t */\n\tEReference getIdentifierReference_Subscripts();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link org.servicifi.gelato.language.cobol.identifiers.IdentifierReference#getQualifiers <em>Qualifiers</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Qualifiers</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.IdentifierReference#getQualifiers()\n\t * @see #getIdentifierReference()\n\t * @generated\n\t */\n\tEReference getIdentifierReference_Qualifiers();\n\n\t/**\n\t * Returns the meta object for class '{@link org.servicifi.gelato.language.cobol.identifiers.All <em>All</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>All</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.All\n\t * @generated\n\t */\n\tEClass getAll();\n\n\t/**\n\t * Returns the meta object for class '{@link org.servicifi.gelato.language.cobol.identifiers.ReferenceModifier <em>Reference Modifier</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Reference Modifier</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.ReferenceModifier\n\t * @generated\n\t */\n\tEClass getReferenceModifier();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link org.servicifi.gelato.language.cobol.identifiers.ReferenceModifier#getStart <em>Start</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Start</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.ReferenceModifier#getStart()\n\t * @see #getReferenceModifier()\n\t * @generated\n\t */\n\tEReference getReferenceModifier_Start();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link org.servicifi.gelato.language.cobol.identifiers.ReferenceModifier#getLength <em>Length</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Length</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.ReferenceModifier#getLength()\n\t * @see #getReferenceModifier()\n\t * @generated\n\t */\n\tEReference getReferenceModifier_Length();\n\n\t/**\n\t * Returns the meta object for class '{@link org.servicifi.gelato.language.cobol.identifiers.LinageCounter <em>Linage Counter</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Linage Counter</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.LinageCounter\n\t * @generated\n\t */\n\tEClass getLinageCounter();\n\n\t/**\n\t * Returns the meta object for class '{@link org.servicifi.gelato.language.cobol.identifiers.Qualifier <em>Qualifier</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Qualifier</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.Qualifier\n\t * @generated\n\t */\n\tEClass getQualifier();\n\n\t/**\n\t * Returns the meta object for class '{@link org.servicifi.gelato.language.cobol.identifiers.RelativeSubscript <em>Relative Subscript</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Relative Subscript</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.RelativeSubscript\n\t * @generated\n\t */\n\tEClass getRelativeSubscript();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link org.servicifi.gelato.language.cobol.identifiers.RelativeSubscript#getAdditiveOperator <em>Additive Operator</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Additive Operator</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.RelativeSubscript#getAdditiveOperator()\n\t * @see #getRelativeSubscript()\n\t * @generated\n\t */\n\tEReference getRelativeSubscript_AdditiveOperator();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link org.servicifi.gelato.language.cobol.identifiers.RelativeSubscript#getInteger <em>Integer</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Integer</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.RelativeSubscript#getInteger()\n\t * @see #getRelativeSubscript()\n\t * @generated\n\t */\n\tEReference getRelativeSubscript_Integer();\n\n\t/**\n\t * Returns the meta object for class '{@link org.servicifi.gelato.language.cobol.identifiers.DirectSubscript <em>Direct Subscript</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Direct Subscript</em>'.\n\t * @see org.servicifi.gelato.language.cobol.identifiers.DirectSubscript\n\t * @generated\n\t */\n\tEClass getDirectSubscript();\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\tIdentifiersFactory getIdentifiersFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.SubscriptImpl <em>Subscript</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.SubscriptImpl\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getSubscript()\n\t\t * @generated\n\t\t */\n\t\tEClass SUBSCRIPT = eINSTANCE.getSubscript();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Subscript</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 SUBSCRIPT__SUBSCRIPT = eINSTANCE.getSubscript_Subscript();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.IdentifierImpl <em>Identifier</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifierImpl\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getIdentifier()\n\t\t * @generated\n\t\t */\n\t\tEClass IDENTIFIER = eINSTANCE.getIdentifier();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Modifier</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 IDENTIFIER__MODIFIER = eINSTANCE.getIdentifier_Modifier();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.IdentifierReferenceImpl <em>Identifier Reference</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifierReferenceImpl\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getIdentifierReference()\n\t\t * @generated\n\t\t */\n\t\tEClass IDENTIFIER_REFERENCE = eINSTANCE.getIdentifierReference();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Subscripts</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 IDENTIFIER_REFERENCE__SUBSCRIPTS = eINSTANCE.getIdentifierReference_Subscripts();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Qualifiers</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 IDENTIFIER_REFERENCE__QUALIFIERS = eINSTANCE.getIdentifierReference_Qualifiers();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.AllImpl <em>All</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.AllImpl\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getAll()\n\t\t * @generated\n\t\t */\n\t\tEClass ALL = eINSTANCE.getAll();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.ReferenceModifierImpl <em>Reference Modifier</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.ReferenceModifierImpl\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getReferenceModifier()\n\t\t * @generated\n\t\t */\n\t\tEClass REFERENCE_MODIFIER = eINSTANCE.getReferenceModifier();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Start</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 REFERENCE_MODIFIER__START = eINSTANCE.getReferenceModifier_Start();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Length</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 REFERENCE_MODIFIER__LENGTH = eINSTANCE.getReferenceModifier_Length();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.LinageCounterImpl <em>Linage Counter</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.LinageCounterImpl\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getLinageCounter()\n\t\t * @generated\n\t\t */\n\t\tEClass LINAGE_COUNTER = eINSTANCE.getLinageCounter();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.QualifierImpl <em>Qualifier</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.QualifierImpl\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getQualifier()\n\t\t * @generated\n\t\t */\n\t\tEClass QUALIFIER = eINSTANCE.getQualifier();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.RelativeSubscriptImpl <em>Relative Subscript</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.RelativeSubscriptImpl\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getRelativeSubscript()\n\t\t * @generated\n\t\t */\n\t\tEClass RELATIVE_SUBSCRIPT = eINSTANCE.getRelativeSubscript();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Additive Operator</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 RELATIVE_SUBSCRIPT__ADDITIVE_OPERATOR = eINSTANCE.getRelativeSubscript_AdditiveOperator();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Integer</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 RELATIVE_SUBSCRIPT__INTEGER = eINSTANCE.getRelativeSubscript_Integer();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.servicifi.gelato.language.cobol.identifiers.impl.DirectSubscriptImpl <em>Direct Subscript</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.DirectSubscriptImpl\n\t\t * @see org.servicifi.gelato.language.cobol.identifiers.impl.IdentifiersPackageImpl#getDirectSubscript()\n\t\t * @generated\n\t\t */\n\t\tEClass DIRECT_SUBSCRIPT = eINSTANCE.getDirectSubscript();\n\n\t}\n\n}",
"private static void ParseMapXMLGetIntersections()\r\n\t{\r\n\t\ttry {\r\n\t\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\r\n\t\t\tSAXParser saxParser = factory.newSAXParser();\r\n\r\n\t\t\tDefaultHandler handler = new DefaultHandler() {\r\n\r\n\t\t\t\tpublic void startElement(String uri, String localName,\r\n\t\t\t\t\t\tString qName, Attributes attributes)\r\n\t\t\t\t\t\tthrows SAXException {\r\n\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"bounds\")) {\r\n\t\t\t\t\t\tint k = attributes.getLength();\r\n\t\t\t\t\t\tSystem.out.println(\"Map boundries:\");\r\n\t\t\t\t\t\tfor (int i = 0; i < k; i++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"minlat\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MinLat: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"maxlat\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MaxLat: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"minlon\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MinLon: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"maxlon\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MaxLon: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"node\")) {\r\n\t\t\t\t\t\tint k = attributes.getLength();\r\n\t\t\t\t\t\tlong id = 0;\r\n\t\t\t\t\t\tdouble lat = 0;\r\n\t\t\t\t\t\tdouble lon = 0;\r\n\t\t\t\t\t\tfor (int i = 0; i < k; i++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"id\") == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tid = Long.valueOf(attributes.getValue(i));\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"lat\") == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tlat = Double.valueOf(attributes.getValue(i));\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"lon\") == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tlon = Double.valueOf(attributes.getValue(i));\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\thashtableNodes.put(id, new Intersection(lat, lon, id));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"nd\")) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlong reference = Long.valueOf(attributes.getValue(0));\r\n\t\t\t\t\t\tif (hashtableCounter.containsKey(reference)) {\r\n\t\t\t\t\t\t\tint value = hashtableCounter.get(reference);\r\n\t\t\t\t\t\t\thashtableCounter.put(reference, value + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\thashtableCounter.put(reference, 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tpublic void endElement(String uri, String localName,\r\n\t\t\t\t\t\tString qName) throws SAXException {\r\n\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tsaxParser.parse(MapPath, handler);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\t// remove the nodes which only appears once in way's nd.\r\n\t\tLinkedList<Long> removeList = new LinkedList<Long>();\r\n\t\tfor (long theKey : hashtableCounter.keySet())\r\n\t\t{\r\n\t\t\tif (hashtableCounter.get(theKey) <= 1)\r\n\t\t\t{\r\n\t\t\t\tremoveList.add(theKey);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (long theKey : removeList)\r\n\t\t{\r\n\t\t\thashtableNodes.remove(theKey);\r\n\t\t}\r\n\t}",
"@Override\n public void startElement(String aUri, String aLocalName, String aName,\n Attributes aAttributes)\n throws SAXException\n {\n if (!inTextElement && TAG_TEI_DOC.equals(aName)) {\n if (useXmlId) {\n documentId = aAttributes.getValue(\"xml:id\");\n }\n else if (useFilenameId) {\n documentId = FilenameUtils.getName(currentResource.getPath()) + \"#\"\n + currentTeiElementNumber;\n }\n else {\n documentId = currentResource.getPath() + \"#\" + currentTeiElementNumber;\n }\n }\n else if (!inTextElement && TAG_TITLE.equals(aName)) {\n captureText = true;\n }\n else if (TAG_TEXT.equals(aName)) {\n captureText = true;\n inTextElement = true;\n }\n else if (inTextElement && (TAG_SUNIT.equals(aName) || \n (utterancesAsSentences && TAG_U.equals(aName)))) {\n sentenceStart = getBuffer().length();\n }\n else if (inTextElement && TAG_PARAGRAPH.equals(aName)) {\n paragraphStart = getBuffer().length();\n }\n else if (readNamedEntity && inTextElement && TAG_RS.equals(aName)) {\n NamedEntity ne = new NamedEntity(getJCas());\n ne.setBegin(getBuffer().length());\n ne.setValue(aAttributes.getValue(ATTR_TYPE));\n namedEntities.push(ne);\n }\n else if (readConstituent && inTextElement && TAG_PHRASE.equals(aName)) {\n if (constituents.isEmpty()) {\n ROOT root = new ROOT(getJCas());\n root.setConstituentType(\"ROOT\");\n constituents.push(new ConstituentWrapper(root));\n }\n \n Constituent constituent = new Constituent(getJCas());\n constituent.setConstituentType(aAttributes.getValue(ATTR_TYPE));\n constituent.setSyntacticFunction(aAttributes.getValue(ATTR_FUNCTION));\n constituents.push(new ConstituentWrapper(constituent));\n }\n else if (inTextElement\n && (TAG_WORD.equals(aName) || TAG_CHARACTER.equals(aName) || TAG_MULTIWORD\n .equals(aName))) {\n tokenStart = getBuffer().length();\n if (StringUtils.isNotEmpty(aAttributes.getValue(ATTR_POS))) {\n posTag = aAttributes.getValue(ATTR_POS);\n }\n else {\n posTag = aAttributes.getValue(ATTR_TYPE);\n }\n lemma = aAttributes.getValue(ATTR_LEMMA);\n }\n }",
"public static void encodeXMLs(StringBuilder out, String... strs) {\n for (int i = 0; i < strs.length; i++) {\n if ((i % 2) == 0)\n out.append(strs[i]);\n else\n encodeXML(out, strs[i]);\n }\n }",
"public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException{\n\t File inputFile = new File(\"C:\\\\Users\\\\msamiull\\\\workspace\\\\jgraphx-master\\\\t.xml\");\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(inputFile);\r\n \r\n\t\tdoc.getDocumentElement().normalize();\r\n System.out.println(\"Main element :\"+ doc.getDocumentElement().getNodeName());\r\n// NodeList nodeList = doc.getElementsByTagName(\"root\");\r\n \r\n NodeList nodeList = doc.getElementsByTagName(\"iOOBN\");\r\n// NamedNodeMap attribList = doc.getAttributes();\r\n \r\n// nonRecursiveParserXML(nList, doc);\r\n\r\n ArrayList<String> tagList = new ArrayList<String>();\r\n// tagList.add(\"mxCell\");\r\n// tagList.add(\"mxGeometry\");\r\n// tagList.add(\"mxPoint\");\r\n tagList.add(\"Node\");\r\n tagList.add(\"state\");\r\n tagList.add(\"tuple\"); // purposely i raplced \"datarow\" by \"tuple\" so that my parser can consider state first before tuple/data\r\n tagList.add(\"parent\");\r\n \r\n recursiveParserXML(nodeList, tagList);\r\n\r\n }",
"public EncodeAndDecodeStrings() {}",
"String saveIncident( Incident incident );",
"@Override public void outputContainer(RebaseFile rf,int soff,int eoff,IvyXmlWriter xw)\n{\n resolve();\n\n RebaseJavaSymbol sym = null;\n\n for (RebaseJavaFile jf : file_nodes) {\n if (jf.getFile() != rf) continue;\n sym = getContainer(jf.getAstNode(),soff,eoff);\n break;\n }\n\n if (sym == null) return;\n sym.outputNameData(rf,xw);\n}",
"public static void main(String[] args) {\n XmlToJson xij=new XmlToJson();\n try {\n // 实例化一个类用于添加xml文件\n List<contest> list = new ArrayList<contest>();\n\n SAXReader reader = new SAXReader();\n Document doc = reader.read(new File(\"test.xml\"));\n // 读取指定标签\n Iterator<Element> eleit = doc.getRootElement().elementIterator(\"user\");\n\n ArrayList newlist = new ArrayList();\n // 创建新集合\n while (eleit.hasNext()) {\n\n Element ele = eleit.next();\n contest con = new contest();\n con.setId(ele.attributeValue(\"id\"));\n con.setName(ele.elementText(\"name\"));\n con.setEmail(ele.elementText(\"email\"));\n con.setQq(ele.elementText(\"qq\"));\n con.setWife(ele.elementText(\"wife\"));\n list.add(con);\n\n Iterator it = list.iterator(); // 通过老集合获取迭代器\n while (it.hasNext()) { // 遍历老集合\n Object obj = it.next(); // 得到老集合的元素\n if (!newlist.contains(obj)) {\n newlist.add(obj);\n }\n }\n\n }\n xij.convert(list);\n\n System.out.println(list.get(0));\n // System.out.println(\" =======\");\n System.out.println(list.get(1));\n // System.out.println(\" =======\");\n System.out.println(list.get(2));\n\n } catch (\n\n Exception e) {\n e.printStackTrace();\n }\n\n }",
"private static ENXP eNXP2ENXPInternal(org.opencds.vmr.v1_0.schema.ENXP pENXP) \n\t\t\tthrows DataFormatException, InvalidDataException {\n\n\t\tString _METHODNAME = \"eNXP2ENXPInternal(): \";\n\t\tif (pENXP == null)\n\t\t\treturn null;\n\n\t\tENXP lENXPInt = new ENXP();\n\n\t\t// set XP.value \n\t\tlENXPInt.setValue(pENXP.getValue());\n\n\t\t// Now translate the external EntityNamePartType to external EntityNamePartType\n\t\torg.opencds.vmr.v1_0.schema.EntityNamePartType lEntityNamePartTypeExt = pENXP.getType();\n\t\tif (lEntityNamePartTypeExt == null) {\n\t\t\tString errStr = _METHODNAME + \"EntityPartType of external ENXP datatype not populated; required by vmr spec\";\n\t\t\tthrow new DataFormatException(errStr);\n\t\t}\n\t\tString lEntityNamePartTypeStrExt = lEntityNamePartTypeExt.toString();\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(_METHODNAME + \"External EntityNamePartType value: \" + lEntityNamePartTypeStrExt);\n\t\t}\n\t\tEntityNamePartType lEntityNamePartTypeInt = null;\n\t\ttry {\n\t\t\tlEntityNamePartTypeInt = EntityNamePartType.valueOf(lEntityNamePartTypeStrExt);\n\t\t}\n\t\tcatch (IllegalArgumentException iae) {\n\t\t\tString errStr = _METHODNAME + \"there was no direct value mapping from the external to internal enumeration\";\n\t\t\tthrow new InvalidDataException(errStr);\n\t\t}\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(_METHODNAME + \"Internal EntityNamePartType value: \" + lEntityNamePartTypeInt);\n\t\t}\n\t\tlENXPInt.setType(lEntityNamePartTypeInt);\n\n\t\t// Finally create the list of internal EntityNamePartQualifiers (optional in spec)\n\t\tList<org.opencds.vmr.v1_0.schema.EntityNamePartQualifier> lPartQualifierListExt = pENXP.getQualifier();\n\t\tif (lPartQualifierListExt != null) {\n\t\t\tIterator<org.opencds.vmr.v1_0.schema.EntityNamePartQualifier> lPartQualifierIterExt = lPartQualifierListExt.iterator();\n\t\t\twhile (lPartQualifierIterExt.hasNext()) {\n\t\t\t\t// Take each internal EntityNamePartQualifier and convert to internal EntityNamePartQualifier for addition to internal EN\n\t\t\t\torg.opencds.vmr.v1_0.schema.EntityNamePartQualifier lPartQualifierExt = lPartQualifierIterExt.next();\n\t\t\t\tEntityNamePartQualifier lPartQualifierInt = eNPartQualifier2eNPartQualifierInternal(lPartQualifierExt);\n\t\t\t\tlENXPInt.getQualifier().add(lPartQualifierInt);\n\t\t\t}\n\t\t}\t\t\n\n\t\treturn lENXPInt;\n\t}",
"private void encodeEmbeddedStringArrays(XMLStreamReader reader, Map<String, Integer> mapping, ByteArrayOutputStream baos) throws XMLStreamException {\n Map<String, List<String>> valuesByFeature = new HashMap<>();\n while (reader.hasNext()) {\n if (reader.getEventType() == XMLStreamConstants.START_ELEMENT) {\n String feature = reader.getName().getLocalPart();\n // Forward to the element text which is the feature value string\n reader.next();\n String value = reader.getText();\n valuesByFeature.compute(feature, (k, v) -> v != null ? v : new ArrayList<>()).add(value);\n }\n reader.next();\n }\n\n // Now write the values in a compact way: Write the encoded feature name once and how many values to expect, then write those values.\n // Write the numbers of string array features that have values\n writeInt(valuesByFeature.keySet().size(), baos);\n for (String feature : valuesByFeature.keySet()) {\n final Collection<String> values = valuesByFeature.get(feature);\n writeInt(mapping.get(feature), baos);\n writeInt(values.size(), baos);\n for (String value : values) {\n writeString(value, baos);\n }\n }\n }",
"String encodeNS(String doc) {\n\t\tJSONParser parser = new JSONParser();\n\t\tTransformer transformer = new Transformer();\n\t\ttry {\n\t\t\tparser.parse(doc, transformer);\n\t\t\tObject value = transformer.getResult();\n\t\t\treturn value.toString();\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn \"\";\n\t\t}\n\t}",
"String marshall(final D diagram) throws IOException;",
"public interface NSXMLObjectStreamConstants extends java.io.ObjectStreamConstants{\n /**\n * Array element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String ARRAY_TAG=\"array\";\n\n /**\n * Boolean element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String BOOLEAN_TAG=\"boolean\";\n\n /**\n * Byte element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String BYTE_TAG=\"byte\";\n\n /**\n * Char element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String CHAR_TAG=\"ch\";\n\n /**\n * ClassId attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String CLASS_ATTR=\"classId\";\n\n /**\n * Class element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String CLASS_TAG=\"class\";\n\n /**\n * Root element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String CONTENT_TAG=\"content\";\n\n /**\n * Double element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String DOUBLE_TAG=\"double\";\n\n /**\n * Final exception element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String EXCEPTION_TAG=\"finalException\";\n\n /**\n * Field attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String FIELD_ATTR=\"field\";\n\n /**\n * Field element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String FIELD_TAG=\"field\";\n\n /**\n * Flag attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String FLAG_ATTR=\"flag\";\n\n /**\n * Float element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String FLOAT_TAG=\"float\";\n\n /**\n * ID attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String ID_ATTR=\"id\";\n\n /**\n * IDREF attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String IDREF_ATTR=\"idRef\";\n\n /**\n * Special meta-data tag used only by the system.\n * See Also:Constant Field Values\n */\n static final java.lang.String IGNORE_ATTR=\"ignoreEDB\";\n\n /**\n * Integer element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String INT_TAG=\"int\";\n\n /**\n * Interface element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String INTERFACE_TAG=\"interface\";\n\n /**\n * Key attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String KEY_ATTR=\"key\";\n\n /**\n * Length of array attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String LENGTH_ATTR=\"length\";\n\n /**\n * Long element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String LONG_TAG=\"long\";\n\n /**\n * Name attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String NAME_ATTR=\"name\";\n\n /**\n * Official namespace of the XML serialization.\n * See Also:Constant Field Values\n */\n static final java.lang.String NAMESPACE=\"http://www.apple.com/webobjects/XMLSerialization\";\n\n /**\n * Object element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String OBJECT_TAG=\"object\";\n\n /**\n * Proxy element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String PROXY_TAG=\"proxy\";\n\n /**\n * Short element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String SHORT_TAG=\"short\";\n\n /**\n * String element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String STRING_TAG=\"string\";\n\n /**\n * SUID attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String SUID_ATTR=\"suid\";\n\n /**\n * Super element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String SUPER_TAG=\"super\";\n\n /**\n * Type attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String TYPE_ATTR=\"type\";\n\n}",
"public final void readFromXMLImpl(XMLStreamReader in)\n throws XMLStreamException {\n //setId(in.getAttributeValue(null, ID_ATTRIBUTE_TAG));\n\n String advantages = getAttribute(in, \"nationalAdvantages\",\n \"selectable\").toUpperCase(Locale.US);\n nationalAdvantages = Enum.valueOf(Advantages.class, advantages);\n\n while (in.nextTag() != XMLStreamConstants.END_ELEMENT) {\n if (in.getLocalName().equals(\"Nations\")) {\n nations.clear();\n while (in.nextTag() != XMLStreamConstants.END_ELEMENT) {\n if (in.getLocalName().equals(\"Nation\")) {\n String nationId = in.getAttributeValue(null, ID_ATTRIBUTE_TAG);\n Nation nation = specification.getNation(nationId);\n NationState state = Enum.valueOf(NationState.class,\n in.getAttributeValue(null, \"state\"));\n nations.put(nation, state);\n }\n in.nextTag();\n }\n }\n }\n }",
"public FileCodeGenXML(FileCodeGen fileGen)\n {\n this.fileGen = fileGen;\n }",
"public abstract String getEndl();",
"public void convertAll() {\n Document dom = null;\n long beginTime = System.currentTimeMillis();\n try {\n log.info(\" ############################### begin import ######################\");\n dom = XMLParser.parseXMLToDOM(context.getResourceAsStream(IMPORT_FILE));\n // XMLParser.DTDValidator(dom);\n Element element = (Element) dom.getElementsByTagName(\"import\").item(0);\n String encoding = element.getAttribute(\"encoding\");\n DataAccessor.encoding = encoding;\n\n NodeList list = element.getChildNodes();\n\n List<Data> clondSources = new ArrayList<Data>();\n for (int i = 0; i < list.getLength(); i++) {\n // datatype node\n Node itemDatatype = list.item(i);\n List<Data> sources = processDatatype(itemDatatype);\n clondSources.addAll(sources);\n }\n NodeService.insertMigrationMappings(clondSources);\n createRelationDataType(clondSources);\n linkRoot(list);\n log.info(String.format(\n \" ---->#######################finished importing [time:%s mins] #############################\",\n (System.currentTimeMillis() - beginTime) / (1000 * 60)));\n NodeService.insertProperties(properties);\n }\n catch (Exception e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n }",
"public static String encode(String str) {\n if (str.length() == 0)\n return str;\n StringBuilder sb = new StringBuilder();\n encodeXML(sb, str);\n return sb.toString();\n }"
] | [
"0.5376757",
"0.5376757",
"0.5376757",
"0.49669844",
"0.49599105",
"0.49442697",
"0.49240163",
"0.48928607",
"0.48851857",
"0.48786613",
"0.4856174",
"0.48477796",
"0.47820342",
"0.47814357",
"0.4747578",
"0.4740207",
"0.4725013",
"0.47244316",
"0.4713266",
"0.46849164",
"0.46594164",
"0.46425703",
"0.46417928",
"0.46332628",
"0.46283937",
"0.46161002",
"0.4607028",
"0.46057102",
"0.4599021",
"0.4598943",
"0.4598187",
"0.45858988",
"0.45731026",
"0.45539096",
"0.45463276",
"0.45456284",
"0.45410237",
"0.4539355",
"0.4525876",
"0.45109403",
"0.4508779",
"0.45057258",
"0.45011067",
"0.44952607",
"0.4487964",
"0.44836536",
"0.44638315",
"0.4461158",
"0.44565573",
"0.4453585",
"0.44513255",
"0.44449863",
"0.44412255",
"0.4440843",
"0.4438954",
"0.44385228",
"0.44319806",
"0.44253904",
"0.44201416",
"0.44188982",
"0.4418541",
"0.4415803",
"0.44147444",
"0.44138056",
"0.44102845",
"0.44061312",
"0.44028032",
"0.44027212",
"0.43892524",
"0.43835065",
"0.4383043",
"0.43785316",
"0.4372408",
"0.43722242",
"0.43698454",
"0.43694812",
"0.43624327",
"0.43522632",
"0.43489164",
"0.43411487",
"0.43338153",
"0.4333204",
"0.43309474",
"0.43260688",
"0.43205178",
"0.4317082",
"0.4313843",
"0.43089542",
"0.43045223",
"0.43015233",
"0.42903778",
"0.42897165",
"0.4287439",
"0.42809293",
"0.42760974",
"0.42725655",
"0.4272229",
"0.4267409",
"0.4266262",
"0.426447",
"0.4264289"
] | 0.0 | -1 |
Method used for extract to the pitch nodelist the element attributes | public static ArrayList<String> getListFromNodeList(NodeList inputNode)
{
String[] tempArray = new String [inputNode.getLength()];
ArrayList<String> tempList;
for (int i = 0; i < inputNode.getLength(); i++)
{
String multipleStepNote = "";
String multipleStepAccidental = "";
String multipleStepOcatve = "";
if(inputNode.item(i) != null)
{
multipleStepNote = ((Element) (inputNode.item(i))).getAttribute("step");
multipleStepAccidental = getNoteAccidental(((Element) (inputNode.item(i))).getAttribute("actual_accidental"));
multipleStepOcatve = ((Element) (inputNode.item(i))).getAttribute("octave");
tempArray[i] = multipleStepNote+multipleStepAccidental+multipleStepOcatve;
}
}
tempList = new ArrayList(Arrays.asList(tempArray));
return tempList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Iterable<? extends XomNode> attributes();",
"Attributes getAttributes();",
"ArrayList getAttributes();",
"public List<TLAttribute> getAttributes();",
"public String getListAttributesPref()\n {\n Serializer<Collection<RecognizedElement>> serializer = new Serializer<Collection<RecognizedElement>>();\n return serializer.serialize(tree.getChildren());\n }",
"@Override\n public int[] getAttributeIndexToRead()\n {\n java.util.ArrayList<Integer> attributes = new java.util.ArrayList<Integer>();\n //LN is static and read only once.\n if (LogicalName == null || LogicalName.compareTo(\"\") == 0)\n {\n attributes.add(1);\n }\n //ScalerUnit\n if (!isRead(3))\n {\n attributes.add(3);\n }\n //Value\n if (canRead(2))\n {\n attributes.add(2);\n } \n return toIntArray(attributes);\n }",
"@Override\r\n\t\tpublic NamedNodeMap getAttributes()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Override\r\n protected void parseAttributes()\r\n {\n\r\n }",
"public interface IMPDElement {\n /**\n * This method returns a vector of pointers to dash::xml::INode objects which correspond to additional <em>XML Elements</em> of certain\n * MPD elements. These <em>XML Elements</em> are not specified in <em>ISO/IEC 23009-1, Part 1, 2012</em>. \\n\n * See the example in the class description for details.\n * @return a vector of pointers to dash::xml::INode objects\n */\n public Vector<Node> GetAdditionalSubNodes();\n\n /**\n * This method returns a map with key values and mapped values of type std::string of all <em>XML Attributes</em> of certain MPD elements. \\n\n * Some of these <em>XML Attributes</em> are not specified in <em>ISO/IEC 23009-1, Part 1, 2012</em>. \\n\n * See the example in the class description for details.\n * @return a map with key values and mapped values, both of type std::string\n */\n public HashMap<String, String> GetRawAttributes();\n}",
"public WSLAttributeList getAttributes() {return attributes;}",
"Map<String, String> getAttributes();",
"String getAttribute();",
"public String getElementAttribute(int row, int attr, int chromosome);",
"private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}",
"public static void attributes(ArrayList<tok> pHolder, ArrayList<tok> xmlList){\r\n\t\t\r\n\t\tboolean localCompression = false; // this variable is used in \r\n\t\t\t\t\t\t\t\t\t\t\t// changing setCompress to t/f\r\n\t\t\r\n\t\tif(pHolder.get(index).getType() == Token_Type.TOK_PLUS\r\n\t\t\t\t|| pHolder.get(index).getType() == Token_Type.TOK_ID){\r\n\t\t\t\r\n\t\t\t// the compression grammar method has been changed to boolean to\r\n\t\t\t// make this work\r\n\t\t\tif(compression(pHolder, xmlList)){\r\n\t\t\t\tlocalCompression = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(pHolder.get(index).getType() == Token_Type.TOK_ID){\r\n\t\t\t\t\r\n\t\t\t\t// (re)initialize the tableName so table can be set in tok\r\n\t\t\t\tString tableName = pHolder.get(index).getTerm();\r\n\t\t\t\tindex++;\r\n\t\t\t\tif(pHolder.get(index).getType() == Token_Type.TOK_PERIOD){\r\n\t\t\t\t\tindex++;\r\n\t\t\t\t\tif(pHolder.get(index).getType() == Token_Type.TOK_ID){\r\n\t\t\t\t\t\tindex++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Adding attribute to the xmlList (table.attr format)\r\n\t\t\t\t\t\txmlList.add(new tok(pHolder.get(index).getTerm(), null));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Setting the tableName of the attribute\r\n\t\t\t\t\t\txmlList.get(xmlIndex).setTableName(tableName);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t/* Setting the tagname as whatever the \"current\" tagname\r\n\t\t\t\t\t\t * is. tagnameArray is incremented when the parser sees \r\n\t\t\t\t\t\t * a \"<\" and decremented when it sees a \">\"\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\txmlList.get(xmlIndex).setTagname(tagnameArray[tagIndex]);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Checks to see if this attribute it compressed,\r\n\t\t\t\t\t\t// if it is, sets the compression to true.\r\n\t\t\t\t\t\tif(localCompression){\r\n\t\t\t\t\t\t\txmlList.get(xmlIndex).setCompress(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{noError = false;}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Adding attribute to the xmlList\r\n\t\t\t\txmlList.add(new tok(pHolder.get(index).getTerm(), null));\r\n\t\t\t\t\r\n\t\t\t\t/* Setting the tagname as whatever the \"current\" tagname\r\n\t\t\t\t * is. tagnameArray is incremented when the parser sees \r\n\t\t\t\t * a \"<\" and decremented when it sees a \">\"\r\n\t\t\t\t */\r\n\t\t\t\txmlList.get(xmlIndex).setTagname(tagnameArray[tagIndex]);\r\n\t\t\t\t\r\n\t\t\t\t// Checks to see if this attribute it compressed,\r\n\t\t\t\t// if it is, sets the compression to true.\r\n\t\t\t\tif(localCompression){ \r\n\t\t\t\t\txmlList.get(xmlIndex).setCompress(true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\trename(pHolder, xmlList);\r\n\t\t\t\t// increase xmlIndex after it has checked to see if the attr\r\n\t\t\t\t// is going to have an alias.\r\n\t\t\t\txmlIndex++;\r\n\t\t\t\taddAttr(pHolder, xmlList);\r\n\t\t\t}\r\n\t\t\telse{noError = false;}\r\n\t\t}\r\n\t\telse if(pHolder.get(index).getType() == Token_Type.TOK_LTHAN){\r\n\t\t\tindex++;\r\n\t\t\t// increment tagnameArray with \"<\"\r\n\t\t\ttagIndex++;\r\n\t\t\ttagBegin(pHolder, xmlList);\r\n\t\t}\r\n\t\telse{noError = false;}\r\n\t}",
"@Override\n public List<ConfigurationNode> getAttributes(String name)\n {\n return attributes.getSubNodes(name);\n }",
"IAttributes getAttributes();",
"java.lang.String getAttribute();",
"@Override\n public ArrayList<SCANAttributesXML> getAttributes() {\n return mesoCfgXML.getAttributesData();\n }",
"tendermint.abci.EventAttribute getAttributes(int index);",
"public String getAttributes() {\n\t\treturn getProperty(\"attributes\");\n\t}",
"public List<Pair<String, String>> getAttributes() {\n\t\treturn attributes;\n\t}",
"Attribute getAttribute();",
"public List<Jattr> attributes() {\n NamedNodeMap attributes = node.getAttributes();\n if (attributes == null)\n return new ArrayList<Jattr>();\n List<Jattr> jattrs = new ArrayList<Jattr>();\n for (int i = 0; i < attributes.getLength(); i++) {\n jattrs.add(new Jattr((Attr) attributes.item(i)));\n }\n return jattrs;\n }",
"java.util.List<tendermint.abci.EventAttribute> \n getAttributesList();",
"public Attributes getAttributes() { return this.attributes; }",
"@Override\r\n\tpublic String toString() {\r\n\t\tString text = getElement();\r\n\t\tif (mainAttr!=null) {\r\n\t\t\ttext += \" \" + mainAttr;\r\n\t\t}\r\n\t\treturn text;\r\n\t}",
"Map<String, Object> getAttributes();",
"Map<String, Object> getAttributes();",
"Map<String, Object> getAttributes();",
"private void initializeLiveAttributes() {\n\t\tnumOctaves = createLiveAnimatedInteger(null, SVG_NUM_OCTAVES_ATTRIBUTE, 1);\n\t\tseed = createLiveAnimatedNumber(null, SVG_SEED_ATTRIBUTE, 0f);\n\t\tstitchTiles = createLiveAnimatedEnumeration(null, SVG_STITCH_TILES_ATTRIBUTE, STITCH_TILES_VALUES, (short) 2);\n\t\ttype = createLiveAnimatedEnumeration(null, SVG_TYPE_ATTRIBUTE, TYPE_VALUES, (short) 2);\n\t}",
"public Map<String, String> getAttributes();",
"public abstract Map getAttributes();",
"public ArrayList getAttributeList() {\n nounList = new ArrayList();\n attributeLists = new ArrayList();\n ArrayList adjAtt = new ArrayList();\n int separator = 0;\n List<Tree> leaves;\n String phraseNotation = \"NP([<NNS|NN|NNP]![<JJ|VBG])!$VP\";// !<VBG\";//@\" + phrase + \"! << @\" + phrase;\n\n TregexPattern VBpattern = TregexPattern.compile(phraseNotation);\n TregexMatcher matcher = VBpattern.matcher(sTree);\n\n while (matcher.findNextMatchingNode()) {\n Tree match = matcher.getMatch();\n Tree[] innerChild = match.children();\n int adjectiveExist = 0;\n String adj = \"\";\n String attribute = \"\";\n String b = \"\";\n\n if (innerChild.length > 1) {\n int count = 1;\n\n for (Tree inChild : innerChild) {\n if (inChild.value().equals(\"CC\") || inChild.value().equals(\",\")) {\n separator = 1;\n }\n if ((inChild.value().equals(\"JJ\")) || (inChild.value().equals(\"VBG\"))) {\n adjectiveExist++;\n leaves = inChild.getLeaves();\n adj = leaves.get(0).toString();\n if (designEleList.contains(adj)) {\n adj = \"\";\n }\n }\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\")) || (inChild.value().equals(\"NNP\"))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n if (count == 1) {\n if (adjectiveExist == 1) {\n attribute = adj + \" \" + leaves.get(0).yieldWords().get(0).word();\n } else {\n attribute = leaves.get(0).yieldWords().get(0).word();\n }\n if (!designEleList.contains(attribute)) {\n String identifiedWord = attribute;\n if (!identifiedWord.contains(\"_\")) {\n attributeLists.add(morphology.stem(identifiedWord));\n } else {\n attributeLists.add(identifiedWord);\n }\n }\n\n } else if (count >= 2 && separator == 0) {\n if (!attribute.contains(\"_\")) {\n\n attributeLists.remove(morphology.stem(attribute));\n attributeLists.remove(attribute);\n } else {\n attributeLists.remove(attribute);\n }\n\n attribute += \" \" + (leaves.get(0).yieldWords()).get(0).word();\n attributeLists.add(attribute);\n } else if (count >= 2 && separator == 1) {\n attribute = (leaves.get(0).yieldWords()).get(0).word();\n if (!attribute.contains(\"_\")) {\n attributeLists.add(morphology.stem(attribute));\n } else {\n attributeLists.add(attribute);\n }\n separator = 0;\n }\n count++;\n }\n }\n } else {\n for (Tree inChild : innerChild) {\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\"))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n if (!identifiedWord.contains(\"_\")) {\n attributeLists.add(morphology.stem(identifiedWord));\n } else {\n attributeLists.add(identifiedWord);\n }\n }\n }\n }\n }\n adjAtt = getAdjectiveAttribute();\n if (!adjAtt.isEmpty()) {\n String att = \"\";\n for (int i = 0; i < adjAtt.size(); i++) {\n att = adjAtt.get(i).toString();\n if (!att.isEmpty() || !att.equals(\"\") || !(att.equals(\" \"))) {\n attributeLists.add(att.trim());\n }\n }\n }\n\n System.out.println(\"ATTRIBUTE LIST :\" + attributeLists);\n return attributeLists;\n\n }",
"public Map<String, Object> getAttrs();",
"public java.util.Collection getAttributes();",
"Map<String, String> getAttr(NodeKey key);",
"public String getElementAttribute(int row, int attr);",
"protected Map<String, String> getElementAttributes() {\n // Preserve order of attributes\n Map<String, String> attrs = new HashMap<>();\n\n if (this.getName() != null) {\n attrs.put(\"name\", this.getName());\n }\n if (this.getValue() != null) {\n attrs.put(\"value\", this.getValue());\n }\n\n return attrs;\n }",
"protected void parseAdditionalAttributes(Element element, BeanDefinitionBuilder builder) {\n }",
"public String[] getRelevantAttributes();",
"List<Attribute<T, ?>> getAttributes();",
"Pair<String, String> getAdditionalAttribute();",
"public String[] getElementAnnotation(int index, String attr);",
"@Override\n\tpublic ArrayList<Object> getAttributeList() {\n\t\tArrayList<Object> attributes = new ArrayList<Object>();\n//\t\tattributes.add(\"s2014_age\");\n//\t\tattributes.add(\"s2014_prog_skill\");\n//\t\tattributes.add(\"s2014_uni_yrs\");\n//\t\tattributes.add(\"s2014_os\");\n//\t\tattributes.add(\"s2014_progLangs\");\n//\t\tattributes.add(\"s2014_engSkill\");\n\t\tattributes.add(\"s2014_favAnimal\");\n\t\tattributes.add(\"s2014_MoreMtns\");\n//\t\tattributes.add(\"s2014_winter\");\n\t\tattributes.add(\"s2014_favColor\");\n//\t\tattributes.add(\"s2014_neuralNetwork\");\n//\t\tattributes.add(\"s2014_vectorMachine\");\n//\t\tattributes.add(\"s2014_sql\");\n//\t\tattributes.add(\"s2014_favSQLServ\");\n//\t\tattributes.add(\"s2014_apriori\");\n\t\treturn attributes;\n\t}",
"public abstract Map<String, Object> getAttributes();",
"@Override\n public ConfigurationNode getAttribute(int index)\n {\n return attributes.getNode(index);\n }",
"public ArrayList<Attribute> getAttributeList(){\n\t\treturn child.getAttributeList();\n\t}",
"public Map<String, Object> getAttributes();",
"public Map<String, Object> getAttributes();",
"@Override\r\n\tpublic Map<String, String> getAttributes() {\r\n\t\treturn this.attributes;\r\n\t}",
"public ArrayList<Attribute> getAttributeList(){\n\t\t\n\t\treturn(child.getAttributeList());\n\t}",
"public ArrayList<Attribute> getAttributeList(){\n\t\t\n\t\treturn(child.getAttributeList());\n\t}",
"final private void setupAttributes() {\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DPI, DEFAULT_BASE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DENSITY, DEFAULT_BASE_DENSITY));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_SCREEN, DEFAULT_BASE_SCREEN));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_FROM, DEFAULT_PROPORTION_FROM));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_MODE, DEFAULT_PROPORTION_MODES));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BACKGROUND_COLOR, DEFAULT_BACKGROUND_COLOR));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_CALIBRATE_DPI, DEFAULT_CALIBRATE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_RESTORER_NOTIFICATION, new Object()));\r\n\t}",
"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 <g> 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}",
"private byte attributes() {\n return (byte) buffer.getShort(ATTRIBUTES_OFFSET);\n }",
"UmlElement getUmlElement();",
"public Attribute[] getAttributes()\n {\n return _attrs;\n }",
"@Override\r\n\t\tpublic void parseAttribute(Attributes atr,Measurement m) {\n\t\t}",
"@Override\r\n\t\tpublic void writeAttribute(Element melelement,Measurement m) {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void writeAttribute(Element melelement,Measurement m) {\n\t\t\t\r\n\t\t}",
"public String getAttributes() {\n return attributes;\n }",
"public String getAttributes() {\n return attributes;\n }",
"@Override\r\n\t\tpublic Attr getAttributeNode(String name)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"static public XmlAttributeInfo eltXmlAttributeInfo (String name)\r\n {\r\n return new XmlAttributeInfo(name,null,_ELT_CONTENT);\r\n }",
"void method0() {\nprivate static final String ELEMENT_N = \"element_n\";\nprivate static final String ELEMENT_R = \"element_r\";\nprivate static final String ATTRIBUTE_N = \"attribute_n\";\nprivate static final String ATTRIBUTE_R = \"attribute_r\";\nprivate static int ATTIDX_COUNT = 0;\npublic static final int ATTIDX_ABSTRACT = ATTIDX_COUNT++;\npublic static final int ATTIDX_AFORMDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_BASE = ATTIDX_COUNT++;\npublic static final int ATTIDX_BLOCK = ATTIDX_COUNT++;\npublic static final int ATTIDX_BLOCKDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_DEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_EFORMDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_FINAL = ATTIDX_COUNT++;\npublic static final int ATTIDX_FINALDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_FIXED = ATTIDX_COUNT++;\npublic static final int ATTIDX_FORM = ATTIDX_COUNT++;\npublic static final int ATTIDX_ID = ATTIDX_COUNT++;\npublic static final int ATTIDX_ITEMTYPE = ATTIDX_COUNT++;\npublic static final int ATTIDX_MAXOCCURS = ATTIDX_COUNT++;\npublic static final int ATTIDX_MEMBERTYPES = ATTIDX_COUNT++;\npublic static final int ATTIDX_MINOCCURS = ATTIDX_COUNT++;\npublic static final int ATTIDX_MIXED = ATTIDX_COUNT++;\npublic static final int ATTIDX_NAME = ATTIDX_COUNT++;\npublic static final int ATTIDX_NAMESPACE = ATTIDX_COUNT++;\npublic static final int ATTIDX_NAMESPACE_LIST = ATTIDX_COUNT++;\npublic static final int ATTIDX_NILLABLE = ATTIDX_COUNT++;\npublic static final int ATTIDX_NONSCHEMA = ATTIDX_COUNT++;\npublic static final int ATTIDX_PROCESSCONTENTS = ATTIDX_COUNT++;\npublic static final int ATTIDX_PUBLIC = ATTIDX_COUNT++;\npublic static final int ATTIDX_REF = ATTIDX_COUNT++;\npublic static final int ATTIDX_REFER = ATTIDX_COUNT++;\npublic static final int ATTIDX_SCHEMALOCATION = ATTIDX_COUNT++;\npublic static final int ATTIDX_SOURCE = ATTIDX_COUNT++;\npublic static final int ATTIDX_SUBSGROUP = ATTIDX_COUNT++;\npublic static final int ATTIDX_SYSTEM = ATTIDX_COUNT++;\npublic static final int ATTIDX_TARGETNAMESPACE = ATTIDX_COUNT++;\npublic static final int ATTIDX_TYPE = ATTIDX_COUNT++;\npublic static final int ATTIDX_USE = ATTIDX_COUNT++;\npublic static final int ATTIDX_VALUE = ATTIDX_COUNT++;\npublic static final int ATTIDX_ENUMNSDECLS = ATTIDX_COUNT++;\npublic static final int ATTIDX_VERSION = ATTIDX_COUNT++;\npublic static final int ATTIDX_XML_LANG = ATTIDX_COUNT++;\npublic static final int ATTIDX_XPATH = ATTIDX_COUNT++;\npublic static final int ATTIDX_FROMDEFAULT = ATTIDX_COUNT++;\n//public static final int ATTIDX_OTHERVALUES = ATTIDX_COUNT++; \npublic static final int ATTIDX_ISRETURNED = ATTIDX_COUNT++;\nprivate static final XIntPool fXIntPool = new XIntPool();\n// constants to return \nprivate static final XInt INT_QUALIFIED = fXIntPool.getXInt(SchemaSymbols.FORM_QUALIFIED);\nprivate static final XInt INT_UNQUALIFIED = fXIntPool.getXInt(SchemaSymbols.FORM_UNQUALIFIED);\nprivate static final XInt INT_EMPTY_SET = fXIntPool.getXInt(XSConstants.DERIVATION_NONE);\nprivate static final XInt INT_ANY_STRICT = fXIntPool.getXInt(XSWildcardDecl.PC_STRICT);\nprivate static final XInt INT_ANY_LAX = fXIntPool.getXInt(XSWildcardDecl.PC_LAX);\nprivate static final XInt INT_ANY_SKIP = fXIntPool.getXInt(XSWildcardDecl.PC_SKIP);\nprivate static final XInt INT_ANY_ANY = fXIntPool.getXInt(XSWildcardDecl.NSCONSTRAINT_ANY);\nprivate static final XInt INT_ANY_LIST = fXIntPool.getXInt(XSWildcardDecl.NSCONSTRAINT_LIST);\nprivate static final XInt INT_ANY_NOT = fXIntPool.getXInt(XSWildcardDecl.NSCONSTRAINT_NOT);\nprivate static final XInt INT_USE_OPTIONAL = fXIntPool.getXInt(SchemaSymbols.USE_OPTIONAL);\nprivate static final XInt INT_USE_REQUIRED = fXIntPool.getXInt(SchemaSymbols.USE_REQUIRED);\nprivate static final XInt INT_USE_PROHIBITED = fXIntPool.getXInt(SchemaSymbols.USE_PROHIBITED);\nprivate static final XInt INT_WS_PRESERVE = fXIntPool.getXInt(XSSimpleType.WS_PRESERVE);\nprivate static final XInt INT_WS_REPLACE = fXIntPool.getXInt(XSSimpleType.WS_REPLACE);\nprivate static final XInt INT_WS_COLLAPSE = fXIntPool.getXInt(XSSimpleType.WS_COLLAPSE);\nprivate static final XInt INT_UNBOUNDED = fXIntPool.getXInt(SchemaSymbols.OCCURRENCE_UNBOUNDED);\n// used to store the map from element name to attribute list \n// for 14 global elements \nprivate static final Hashtable fEleAttrsMapG = new Hashtable(29);\n// for 39 local elememnts \nprivate static final Hashtable fEleAttrsMapL = new Hashtable(79);\n// used to initialize fEleAttrsMap \n// step 1: all possible data types \n// DT_??? >= 0 : validate using a validator, which is initialized staticly \n// DT_??? < 0 : validate directly, which is done in \"validate()\" \nprotected static final int DT_ANYURI = 0;\nprotected static final int DT_ID = 1;\nprotected static final int DT_QNAME = 2;\nprotected static final int DT_STRING = 3;\nprotected static final int DT_TOKEN = 4;\nprotected static final int DT_NCNAME = 5;\nprotected static final int DT_XPATH = 6;\nprotected static final int DT_XPATH1 = 7;\nprotected static final int DT_LANGUAGE = 8;\n// used to store extra datatype validators \nprotected static final int DT_COUNT = DT_LANGUAGE + 1;\nprivate static final XSSimpleType[] fExtraDVs = new XSSimpleType[DT_COUNT];\nprotected static final int DT_BLOCK = -1;\nprotected static final int DT_BLOCK1 = -2;\nprotected static final int DT_FINAL = -3;\nprotected static final int DT_FINAL1 = -4;\nprotected static final int DT_FINAL2 = -5;\nprotected static final int DT_FORM = -6;\nprotected static final int DT_MAXOCCURS = -7;\nprotected static final int DT_MAXOCCURS1 = -8;\nprotected static final int DT_MEMBERTYPES = -9;\nprotected static final int DT_MINOCCURS1 = -10;\nprotected static final int DT_NAMESPACE = -11;\nprotected static final int DT_PROCESSCONTENTS = -12;\nprotected static final int DT_USE = -13;\nprotected static final int DT_WHITESPACE = -14;\nprotected static final int DT_BOOLEAN = -15;\nprotected static final int DT_NONNEGINT = -16;\nprotected static final int DT_POSINT = -17;\n// used to resolver namespace prefixes \nprotected XSDHandler fSchemaHandler = null;\n// used to store symbols. \nprotected SymbolTable fSymbolTable = null;\n// used to store the mapping from processed element to attributes \nprotected Hashtable fNonSchemaAttrs = new Hashtable();\n// temprory vector, used to hold the namespace list \nprotected Vector fNamespaceList = new Vector();\n// whether this attribute appeared in the current element \nprotected boolean[] fSeen = new boolean[ATTIDX_COUNT];\nprivate static boolean[] fSeenTemp = new boolean[ATTIDX_COUNT];\n// the following part implements an attribute-value-array pool. \n// when checkAttribute is called, it calls getAvailableArray to get \n// an array from the pool; when the caller is done with the array, \n// it calls returnAttrArray to return that array to the pool. \n// initial size of the array pool. 10 is big enough \nstatic final int INIT_POOL_SIZE = 10;\n// the incremental size of the array pool \nstatic final int INC_POOL_SIZE = 10;\n// the array pool \nObject[][] fArrayPool = new Object[INIT_POOL_SIZE][ATTIDX_COUNT];\n// used to clear the returned array \n// I think System.arrayCopy is more efficient than setting 35 fields to null \nprivate static Object[] fTempArray = new Object[ATTIDX_COUNT];\n// current position of the array pool (# of arrays not returned) \nint fPoolPos = 0;\n}",
"public Attribute[] getAvailableAttributes(){\n Attribute attributes[] = {\n TextAttribute.FAMILY,\n TextAttribute.WEIGHT,\n TextAttribute.POSTURE,\n TextAttribute.SIZE,\n\t TextAttribute.TRANSFORM,\n TextAttribute.SUPERSCRIPT,\n TextAttribute.WIDTH,\n };\n\n return attributes;\n }",
"public Map<String, String> getAttributes() {\n\t\treturn atts;\n\t}",
"public final String[] getAttributes() {\n return this.attributes;\n }",
"@Override\r\n\t\tpublic void writeAttribute(Element melelement,Measurement m) {\n\t\t}",
"public String getAttribute(String name);",
"private FastVector getAccInstanceAttributes() {\n Attribute x_mean = new Attribute(\"x-axis mean\");\n Attribute x_var = new Attribute(\"x-axis var\");\n Attribute y_mean = new Attribute(\"y-axis mean\");\n Attribute y_var = new Attribute(\"y-axis var\");\n Attribute z_mean = new Attribute(\"z-axis mean\");\n Attribute z_var = new Attribute(\"z-axis var\");\n\n // Declare the class attribute along with its values\n FastVector fvClassVal = new FastVector(2);\n fvClassVal.addElement(\"none\");\n fvClassVal.addElement(\"tap\");\n Attribute classAttribute = new Attribute(\"theClass\", fvClassVal);\n\n // Declare the feature vector\n FastVector fvWekaAttributes = new FastVector(7);\n\n fvWekaAttributes.addElement(x_mean);\n fvWekaAttributes.addElement(x_var);\n fvWekaAttributes.addElement(y_mean);\n fvWekaAttributes.addElement(y_var);\n fvWekaAttributes.addElement(z_mean);\n fvWekaAttributes.addElement(z_var);\n fvWekaAttributes.addElement(classAttribute);\n\n// // Declare the numeric attributes\n// Attribute x_var = new Attribute(\"var_x\");\n// Attribute x_var_delta = new Attribute(\"delta_var_x\");\n// Attribute y_var = new Attribute(\"var_y\");\n// Attribute y_var_delta = new Attribute(\"delta_var_y\");\n// Attribute z_var = new Attribute(\"var_z\");\n// Attribute z_var_delta = new Attribute(\"delta_var_z\");\n//\n// // Declare the class attribute along with its values\n// FastVector fvClassVal = new FastVector(3);\n// fvClassVal.addElement(\"none\");\n// fvClassVal.addElement(\"motion\");\n// fvClassVal.addElement(\"tap\");\n// Attribute classAttribute = new Attribute(\"theClass\", fvClassVal);\n\n// // Declare the feature vector\n// FastVector fvWekaAttributes = new FastVector(7);\n//\n// fvWekaAttributes.addElement(x_var);\n// fvWekaAttributes.addElement(x_var_delta);\n// fvWekaAttributes.addElement(y_var);\n// fvWekaAttributes.addElement(y_var_delta);\n// fvWekaAttributes.addElement(z_var);\n// fvWekaAttributes.addElement(z_var_delta);\n// fvWekaAttributes.addElement(classAttribute);\n\n return fvWekaAttributes;\n }",
"@Override\n\tpublic Attributes getAttributes() {\n\t\treturn (Attributes)map.get(ATTRIBUTES);\n\t}",
"Map getGenAttributes();",
"Object getAttribute(int attribute);",
"public Attributes getAttributes() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Map<String, Object> getAttributes() {\n\t\treturn null;\r\n\t}",
"protected void importAttributes(XmlPullParser xpp, Epml epml) {\n\t}",
"protected java.util.List getAttributeListForElement(String elementName){\n String dtdName = null;\n if(UpgradeConstants.VERSION_91.equals(commonInfoModel.getTargetVersion())) { \n dtdName = \"sun-domain_1_3.dtd\";\n } else {\n dtdName = \"sun-domain_1_2.dtd\";\n }\t \n String dtdFileName = this.commonInfoModel.getTargetInstallDir()+File.separator+\"lib\"+File.separator+\"dtds\"+File.separator+dtdName;\n return AttributeExtracter.getExtracter(dtdFileName).getAttributeList(elementName); \n }",
"public HashMap<String, String> GetRawAttributes();",
"@Override\n public int getAttributeCount()\n {\n return 3;\n }",
"private double attrWeight (int index) {\n return m_MI[index];\n }",
"public ArrayList getAdjectiveAttribute() {\n adjAttributeList = new ArrayList();\n //adjAttributeList = new ArrayList();\n\n int adjectiveExist = 0;\n int adjectiveNoun = 0;\n int nnCount = 0;\n String adj = \"\";\n List<Tree> leaves;\n String phraseNotation = \"NP[<NNS|NN]!$VP\";//@\" + phrase + \"! << @\" + phrase;\n DesignElementClass designEle = new DesignElementClass();\n ArrayList designEleList = designEle.getDesignElementsList();\n\n /*For single Tree */\n TregexPattern VBpattern = TregexPattern.compile(phraseNotation);\n TregexMatcher matcher = VBpattern.matcher(sTree);\n\n while (matcher.findNextMatchingNode()) {\n Tree match = matcher.getMatch();\n Tree[] innerChild = match.children();\n String a = \"\";\n boolean separatorExist = false;\n if (innerChild.length > 1) {\n int count = 1;\n adjectiveExist = 0;\n adjectiveNoun = 0;\n nnCount = 0;\n String attribute = \"\";\n adj = \"\";\n\n for (Tree inChild : innerChild) {\n //checks whether there are any separators\n if (inChild.value().equals(\"CC\")) {\n separatorExist = true;\n attribute = \"\";\n adjectiveExist = 0;\n adjectiveNoun = 0;\n }\n //checks whether there are adjectives\n if ((inChild.value().equals(\"JJ\")) || (inChild.value().equals(\"VBG\"))) {\n adjectiveExist++;\n leaves = inChild.getLeaves();\n adj = leaves.get(0).toString();\n if (designEleList.contains(adj)) {\n adj = \"\";\n }\n\n }\n //if the adjective exist store the attributes\n if (adjectiveExist == 1) {\n adjectiveNoun = storeAdjectiveAttribute(inChild, adjectiveNoun, nnCount, adj);\n }\n }\n if (adjectiveExist == 1 && adjectiveNoun == 0 && !adj.isEmpty()) {\n adjAttributeList.add(stemmingForAWord(adj));\n\n }\n }\n }\n\n System.out.println(\"ADJECTVE ATTRIBUTE :\" + adjAttributeList);\n return adjAttributeList;\n\n }",
"@Override\n public int getAttributeCount()\n {\n return attributes.getSubNodes().size();\n }",
"private Hashtable getRequestedAttributes() {\n\tif (fRequestedAttributes == null) {\n\t fRequestedAttributes = new Hashtable(7, (float)0.9);\n fRequestedAttributes.put(TextAttribute.TRANSFORM,\n\t\t\t\t IDENT_TX_ATTRIBUTE);\n fRequestedAttributes.put(TextAttribute.FAMILY, name);\n fRequestedAttributes.put(TextAttribute.SIZE, new Float(size));\n\t fRequestedAttributes.put(TextAttribute.WEIGHT,\n\t\t\t\t (style & BOLD) != 0 ? \n\t\t\t\t TextAttribute.WEIGHT_BOLD :\n\t\t\t\t TextAttribute.WEIGHT_REGULAR);\n\t fRequestedAttributes.put(TextAttribute.POSTURE,\n\t\t\t\t (style & ITALIC) != 0 ? \n\t\t\t\t TextAttribute.POSTURE_OBLIQUE :\n\t\t\t\t TextAttribute.POSTURE_REGULAR);\n fRequestedAttributes.put(TextAttribute.SUPERSCRIPT,\n new Integer(superscript));\n fRequestedAttributes.put(TextAttribute.WIDTH,\n new Float(width));\n\t}\n\treturn fRequestedAttributes;\n }",
"public String getattribut() \n\t{\n\t\treturn attribut;\n\t}",
"public java.lang.Integer getBgElementAttributes() {\r\n return bgElementAttributes;\r\n }",
"void getTvAttrib() {\n for (HDTV item : vendor) {\r\n System.out.println(\"Brand: \" + item.brandname + \" Size: \" + item.size);\r\n }\r\n\r\n }",
"public List<Attribute> getAttributes() {\r\n return attributes;\r\n }",
"@Override\npublic void processAttributes() {\n\t\n}",
"public interface TElement extends HasID, THasPropertyChange, PropertyChangeListener, Serializable {\n\n /**\n * Used if a requested attribute is not a member of the TElement derived\n * Class.\n */\n public final Object NOT_DEFINED = \"ATT_NOT_DEFINED\";\n\n /**\n * return the attribute value or teal.sim.TElement.NOT_DEFINED\n **/\n public Object getProperty(String attName);\n\n /**\n * set the attribute value return value is success\n **/\n public boolean setProperty(String attName, Object value);\n\n public void addRoute(Route r);\n \n /** \n * Establish a route from this object's source attribute and the targeted \n * attribute of another TElement. \n **/\n public void addRoute(String attribute, TElement listener, String targetName);\n \n \n /** \n * Remove a route from this object's source attribute and the target's output attribute. \n **/\n public void removeRoute(String attribute, TElement listener, String targetName);\n}",
"Object getAttribute(String name);",
"Object getAttribute(String name);",
"Object getAttribute(String name);",
"public java.lang.Integer getAttributes() {\r\n return attributes;\r\n }",
"public Object getAttribute(String name);",
"private List<String> getAttributes(ModuleURN inURN) throws Exception {\r\n MBeanInfo beanInfo = getMBeanServer().getMBeanInfo(inURN.toObjectName());\r\n List<String> attribs = new ArrayList<String>();\r\n for(MBeanAttributeInfo info: beanInfo.getAttributes()) {\r\n attribs.add(info.getName());\r\n }\r\n return attribs;\r\n }",
"public static void extractNode (Node node1, Node node2, int k, int i, ArrayList<String[]> AttList, Document doc_eq){\n\t\t// converts nodes to elements\n\t\tElement element1 = (Element) node1;\n\t\tElement element2 = (Element) node2;\n\t\t// gets the element ID and prints it\n\t\tString rfdID = element1.getAttribute(\"rdf:ID\");\n\t\tSystem.out.println( \"\\n\" + (i+1) + \") rdfID: \" + rfdID + \"\\n\");\n\t\t// From the ArrayList \"AttList\", it extracts the array containing the data tags of a specific CIM object identified by k\n\t\tString[] attributes = AttList.get(k/2);\n\t\t\t\t\n\t\tfor(int l = 0; l < attributes.length; l++){\n\t\t\t\n\t\t\t// It reads the value related to a specific tag \"attributes[l]\"\n\t\t\t\n\t\t\t// It start looking for the tag/attribute \"attributes[l]\", inside element1, which is obtained from EQ document\n\t\t\ttry{\n\t\t\t\tString name = element1.getElementsByTagName(attributes[l]).item(0).getTextContent();\n\t\t\t\n\t\t\t\tif(!name.isEmpty()){\n\t\t\t\t\t// if the data is not empty it prints it out\n\t\t\t\t\tSystem.out.println(attributes[l] + \"\\t\" + name + \"\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t// if the data is empty it means that child has no data, just an attribute, so it reads the attribute\n\t\t\t\t\t// it extracts the node identified by that tag \"attributes[l]\"\n\t\t\t\t\tNode nodelistID = element1.getElementsByTagName(attributes[l]).item(0);\n\t\t\t\t\tElement nodelistIDelement = (Element) nodelistID;\n\t\t\t\t\t// it read and prints the value of that attribute\n\t\t\t\t\tString resourceID = nodelistIDelement.getAttribute(\"rdf:resource\");\n\t//\t\t\t\tSystem.out.println(\"I'm using this\");\n\t\t\t\t\tSystem.out.println(attributes[l] + \" rdf:resource=\" + \"\\t\" + resourceID + \"\\n\");\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t// if the tags is not in EQ file, Java will throw a \"java.lang.NullPointerException\",\n\t\t\t// we catch it and we look for that tag in the SSH document\n\t\t\tcatch(java.lang.NullPointerException e){\n\t\t\t\t\n\t\t\t\t// We try to see if the tag is present\n\t\t\t\ttry{\t\t\t\t\n\t\t\t\t\tString nameSSH = element2.getElementsByTagName(attributes[l]).item(0).getTextContent();\n\t\t\t\t\t// if the data is not empty it prints it out\n\t\t\t\t\tif(!nameSSH.isEmpty()){\n\t\t\t\t\t\t// if the data is not empty it prints it out\n\t\t\t\t\t\tSystem.out.println(attributes[l] + \"\\t\" + nameSSH + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t// if the data is empty it means that child has no data, just an attribute, so it reads the attribute\n\t\t\t\t\t\t// it extracts the node identified by that tag \"attributes[l]\"\n\t\t\t\t\t\tNode nodelistID2 = element2.getElementsByTagName(attributes[l]).item(0);\n\t\t\t\t\t\tElement nodelistIDelement2 = (Element) nodelistID2;\n\t\t\t\t\t\t// it read and prints the value of that attribute\n\t\t\t\t\t\tString resourceID2 = nodelistIDelement2.getAttribute(\"rdf:resource\");\n\t\t//\t\t\t\tSystem.out.println(\"I'm using this\");\n\t\t\t\t\t\tSystem.out.println(attributes[l] + \" rdf:resource=\" + \"\\t\" + resourceID2 + \"\\n\");\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// if the tags is neither in EQ file, nor in the SSH file, Java will throw a \"java.lang.NullPointerException\",\n\t\t\t\t// this means the tag is the baseVoltage tag, which should be derived from the equipmentCointainer ID \n\t\t\t\t// it determines the base voltage\n\t\t\t\tcatch(java.lang.NullPointerException er){\n\t\t\t\t\t// It reads the ID of the EquipmentContainer\n\t\t\t\t\tNode ECIDnode = element1.getElementsByTagName(\"cim:Equipment.EquipmentContainer\").item(0);\n\t\t\t\t\tElement ECIDelement = (Element) ECIDnode;\n\t\t\t\t\t// it read and prints the value of that attribute\n\t\t\t\t\tString ECID = ECIDelement.getAttribute(\"rdf:resource\");\n\t\t\t\t\t// It removes the hash before the ID\n\t\t\t\t\tECID = ECID.substring(1);\n\t\t\t\t\t\n\t\t\t\t\t// It creates a nodeList with all the nodes tagged as \"cim:VoltageLevel\"\n\t\t\t\t\tNodeList voltageLevelList = doc_eq.getElementsByTagName(\"cim:VoltageLevel\");\n\t\t\t\t\tElement voltageLevelEl = null;\n\t\t\t\t\t// It loops through all the nodes and selects the one with the corresponding ID, i.e. ECID\n\t\t\t\t\tfor(int t=0; t<voltageLevelList.getLength(); t++){\n\t\t\t\t\t\tNode voltageLevelnode = voltageLevelList.item(t);\n\t\t\t\t\t\tElement newvoltageLevel = (Element) voltageLevelnode;\n\t\t\t\t\t\tboolean ver = newvoltageLevel.getAttribute(\"rdf:ID\").equals(ECID);\n\t\t\t\t\t\tif(ver == true){\n\t\t\t\t\t\t\tvoltageLevelEl = newvoltageLevel;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// It extracts the child \"BaseVoltage\" and reads its ID\n\t\t\t\t\tNode BVnode = voltageLevelEl.getElementsByTagName(\"cim:VoltageLevel.BaseVoltage\").item(0);\n\t\t\t\t\tElement BVelement = (Element) BVnode;\n\t\t\t\t\tString BVID = BVelement.getAttribute(\"rdf:resource\");\n\t\t\t\t\t// It prints out the tag \"baseVolatge rdf:ID \" and gives the found ID\n\t\t\t\t\tSystem.out.println(attributes[l] + \" rdf:ID\" + \"\\t\" + BVID + \"\\n\");\n\t\t\t\t\t// it removes the hash from the ID\n\t\t\t\t\tBVID = BVID.substring(1);\n\t\t\n\t\t\t\t\t// It creates a nodeList with all the nodes tagged as \"cim:BaseVoltage\"\n\t\t\t\t\tNodeList baseVoltagelList = doc_eq.getElementsByTagName(\"cim:BaseVoltage\");\n\t\t\t\t\tElement baseVoltageEl = null;\n\t\t\t\t\t// It loops through all the nodes and selects the one with the corresponding ID, i.e. BVID\n\t\t\t\t\tfor(int t=0; t<baseVoltagelList.getLength(); t++){\n\t\t\t\t\t\tNode baseVoltagelnode = baseVoltagelList.item(t);\n\t\t\t\t\t\tElement newbaseVoltagel = (Element) baseVoltagelnode;\n\t\t\t\t\t\tboolean ver = newbaseVoltagel.getAttribute(\"rdf:ID\").equals(BVID);\n\t\t\t\t\t\tif(ver == true){\n\t\t\t\t\t\t\tbaseVoltageEl = newbaseVoltagel;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\n\t\t\t\t\t// it gets the base voltage and prints it\n\t\t\t\t\tString BV = baseVoltageEl.getElementsByTagName(\"cim:BaseVoltage.nominalVoltage\").item(0).getTextContent();\n\t\t\t\t\tSystem.out.println(attributes[l] + \" = \" + BV + \"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}",
"static ArrayList collectElementAttributeValues(Node entry, String element, String attr) { \n\t\t// get filename globs\n\t\tArrayList ret = new ArrayList();\n\t\n\t\tNode[] nGlobs = getChildNodes(entry, element);\n\t\tfor (int iH2 = 0; nGlobs != null && iH2 < nGlobs.length; iH2++) {\n\t\t\tNode g = nGlobs[iH2];\n\t\t\tif (g.hasAttributes()) {\n\t\t\t\tNode v = g.getAttributes().getNamedItem(attr);\n\t\t\t\tif (v != null) {\n\t\t\t\t\tString value = v.getNodeValue();\n\t\t\t\t\tif(value != null && ! \"\".equals(value)) {\n\t\t\t\t\t\tret.add(value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public List<String> attributes() {\n return this.attributes;\n }",
"@Override\n public IElementAttributes getElementAttributes( final K name ) throws CacheException\n {\n IElementAttributes attr = null;\n\n try\n {\n attr = this.getCacheControl().getElementAttributes( name );\n }\n catch ( final IOException ioe )\n {\n throw new CacheException(\"Failure getting element attributes\", ioe);\n }\n\n return attr;\n }"
] | [
"0.62389815",
"0.6194342",
"0.6160182",
"0.61511844",
"0.6079679",
"0.5905754",
"0.5856415",
"0.58536106",
"0.5817194",
"0.5812508",
"0.5760437",
"0.57603925",
"0.57328004",
"0.5684507",
"0.56778866",
"0.56641483",
"0.5663126",
"0.5656011",
"0.5655361",
"0.56412435",
"0.56359076",
"0.56002206",
"0.5595634",
"0.559442",
"0.5592898",
"0.5585777",
"0.55844676",
"0.5572427",
"0.5572427",
"0.5572427",
"0.5571466",
"0.55651844",
"0.556007",
"0.5553363",
"0.55458695",
"0.5542796",
"0.5530189",
"0.5529489",
"0.55192214",
"0.5509758",
"0.5479145",
"0.5475822",
"0.5474978",
"0.54644346",
"0.54622525",
"0.5440494",
"0.5435945",
"0.54305947",
"0.53923965",
"0.53923965",
"0.538613",
"0.5385317",
"0.5385317",
"0.5381478",
"0.53718877",
"0.53693336",
"0.5361908",
"0.5333338",
"0.5328682",
"0.53277063",
"0.53277063",
"0.5312599",
"0.5312599",
"0.53084487",
"0.52900714",
"0.52755183",
"0.527317",
"0.5262792",
"0.5245027",
"0.52380884",
"0.5236277",
"0.5216873",
"0.5212784",
"0.5210387",
"0.52010804",
"0.519356",
"0.5193238",
"0.5190481",
"0.51796365",
"0.5171076",
"0.51681215",
"0.516192",
"0.5156243",
"0.51550215",
"0.51402515",
"0.5137416",
"0.5133561",
"0.5127302",
"0.51257986",
"0.51238716",
"0.51232916",
"0.51212204",
"0.51212204",
"0.51212204",
"0.51145065",
"0.51093125",
"0.5105587",
"0.5092552",
"0.50893223",
"0.5087013",
"0.50842535"
] | 0.0 | -1 |
Method used to get the name of a range | public static ArrayList<String> getIntervalName(ArrayList<ArrayList<Integer>> binomialInput)
{
ArrayList<String> pciNameList = new ArrayList<>();
ArrayList<Integer> tmpListPci = new ArrayList<>();
ArrayList<ArrayList<String>> intervalMatrix = generateMatrixBRI();
if(!binomialInput.isEmpty())
{
for(int k=0; k<binomialInput.size(); k++)
{
tmpListPci = binomialInput.get(k);
int PC = tmpListPci.get(0);
int NC = tmpListPci.get(1);
//System.out.println("tmpListPci: " + tmpListPci);
//System.out.println("PC: " + PC);
//System.out.println("NC: " + NC);
String intervalValue = intervalMatrix.get(PC).get(NC);
//System.out.println("intervalValue: " + intervalValue);
pciNameList.add(intervalValue);
}
}
return pciNameList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getRange() {\n\t\treturn _range;\n\t}",
"public String getRange() {\n return this.range;\n }",
"String getBeginRange();",
"VocNoun getRange();",
"String getEndRange();",
"java.lang.String getDestRange();",
"@Override\r\n public String toString() {\r\n return \"Range [\" + \"min=\" + min + \", max=\" + max + \"]\";\r\n }",
"public AddressInfo getRange() {\r\n return range;\r\n }",
"Set<String> getRangeLocalNames();",
"private javax.swing.JLabel getLabRange() {\r\n\tif (ivjLabRange == null) {\r\n\t\ttry {\r\n\t\t\tivjLabRange = new javax.swing.JLabel();\r\n\t\t\tivjLabRange.setName(\"LabRange\");\r\n\t\t\tivjLabRange.setText(\"Range name\");\r\n\t\t\t// user code begin {1}\r\n\t\t\t// user code end\r\n\t\t} catch (java.lang.Throwable ivjExc) {\r\n\t\t\t// user code begin {2}\r\n\t\t\t// user code end\r\n\t\t\thandleException(ivjExc);\r\n\t\t}\r\n\t}\r\n\treturn ivjLabRange;\r\n}",
"@Override\r\n\tpublic String getActivity_range() {\n\t\treturn super.getActivity_range();\r\n\t}",
"@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}",
"int getRange();",
"public StrColumn getRangeId1() {\n return delegate.getColumn(\"range_id_1\", DelegatingStrColumn::new);\n }",
"String getRoleRangeRaw();",
"public String toString() {\n/* 387 */ if (this.toString == null) {\n/* 388 */ StrBuilder buf = new StrBuilder(32);\n/* 389 */ buf.append(\"Range[\");\n/* 390 */ buf.append(this.min);\n/* 391 */ buf.append(',');\n/* 392 */ buf.append(this.max);\n/* 393 */ buf.append(']');\n/* 394 */ this.toString = buf.toString();\n/* */ } \n/* 396 */ return this.toString;\n/* */ }",
"public int getRange()\n\t{\n\t\treturn Range;\n\t}",
"public double getRange(){\n\t\treturn range;\n\t}",
"String regionName();",
"String regionName();",
"String regionName();",
"String regionName();",
"String getPortRange();",
"public String getName(){\n StringBuilder name = new StringBuilder();\n for (int value : names) {\n name.append(\"> \").append(strings.get(value));\n }\n return name.toString();\n }",
"private String useRangeFormat(Unit units, int lowerBound, int upperBound) {\n return lowerBound + \" to \" + upperBound + getUnits(units, upperBound);\n }",
"public Uri getRange()\n {\n return range;\n }",
"@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn this.getIndentation() + \"(in-subrange \" + this.getPosition1().getCoordX() + \", \" + this.getPosition1().getCoordY() + \", \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t + this.getPosition2().getCoordX() + \", \" + this.getPosition2().getCoordY() + \")\";\r\n\t}",
"org.openxmlformats.schemas.drawingml.x2006.main.STGeomGuideName xgetName();",
"public String getGradeRangeLabel(String gradeRangeValue) {\n\t\tGradeRangeHelper grh = (GradeRangeHelper) gradeRangeMap.get(gradeRangeValue);\n\t\tif (grh == null)\n\t\t\treturn \"\";\n\t\treturn grh.label;\n\t}",
"public RealRange getReferenceRange(RealRange referenceRange);",
"public String getRange() {\n if (predictionAmount < 0.1)\n return \"little to none\";\n\n String description = convertFeetToInches(alert.getDescription());\n\n // Get the bounds\n List<Integer> range = getClosestRange(getRanges(description), predictionAmount);\n double margin = getMargin(range);\n int lowerBound = (int) Math.round(predictionAmount - margin);\n int upperBound = (int) Math.round(predictionAmount + margin);\n\n // Determine the unit\n Unit units = Unit.INCHES;\n if (shouldUseFeet(lowerBound, upperBound)) {\n // Convert inches to feet\n lowerBound = toFeet(lowerBound);\n upperBound = toFeet(upperBound);\n units = Unit.FEET;\n }\n\n return getFinalText(units, lowerBound, upperBound);\n }",
"public String getName() {\n return String.format(\"%s %s\", getFirst(), getLast());\n }",
"public int getRange() {\n return mRange;\n }",
"public String returnTrackingRange(){\n\t\treturn (String) trackingRange.getSelectedItem();//Return the tracking range options\n\t}",
"protected static String expectedRangeString(Object minValue, boolean minInclusive, Object maxValue, boolean maxInclusive) {\n // A means for a return value\n String retVal;\n\n // Start with the proper symbol for the lower bound\n if (minInclusive) {\n retVal = \"[\";\n } else {\n retVal = \"(\";\n }\n\n // Add in the minimum and maximum values\n retVal += minValue + \" .. \" + maxValue;\n\n // End with the proper symbol for the upper bound\n if (maxInclusive) {\n retVal += \"]\";\n } else {\n retVal += \")\";\n }\n\n // Return the formatted string\n return retVal;\n }",
"protected abstract R getRange(E entry);",
"public StringBuffer rangeToString(Key low, Key high)\n {\n \t\n \tStringBuffer str=new StringBuffer();\n \t\n \tint l=(int) low;\n \tint h=(int) high;\n \tfor(int ch=l;ch<=h;ch++)\n \tstr.append(ch);\n \treturn str;\n \t \t\n }",
"public long getRangeStart() {\n return mRangeStart;\n }",
"Range createRange();",
"public Range getTextPortsRange();",
"public StrColumn getRangeId2() {\n return delegate.getColumn(\"range_id_2\", DelegatingStrColumn::new);\n }",
"RangeValue createRangeValue();",
"public String getGradeRange() {\n\t\treturn this.gradeRange;\n\t}",
"@AutoEscape\n public String getModelIndexRangeMessage();",
"public StrColumn getRange1BegLabelAtomId() {\n return delegate.getColumn(\"range_1_beg_label_atom_id\", DelegatingStrColumn::new);\n }",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"public int getRangeWidth();",
"@Override public String getName()\n{\n return base_condition.getName() + \"@\" + min_time + \"-\" + max_time;\n}",
"protected abstract D getUpper(R range);",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();"
] | [
"0.7270876",
"0.70601606",
"0.6929794",
"0.68741673",
"0.6704232",
"0.6474564",
"0.6437874",
"0.63688326",
"0.63488907",
"0.63458127",
"0.63310295",
"0.6275121",
"0.6249529",
"0.62238723",
"0.621076",
"0.6188338",
"0.60202867",
"0.59846836",
"0.5975023",
"0.5975023",
"0.5975023",
"0.5975023",
"0.5968694",
"0.59502685",
"0.59330565",
"0.5896627",
"0.58595717",
"0.58483404",
"0.5839899",
"0.5831289",
"0.58233666",
"0.58170736",
"0.5798283",
"0.57795507",
"0.574498",
"0.5700793",
"0.5676304",
"0.5666811",
"0.56226563",
"0.56135434",
"0.5610165",
"0.5607446",
"0.56025296",
"0.5577046",
"0.5574854",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.5571546",
"0.55642134",
"0.5561057",
"0.55542475",
"0.55528784",
"0.55528784",
"0.55528784",
"0.55528784",
"0.55528784",
"0.55528784",
"0.55528784",
"0.55528784",
"0.55528784",
"0.55528784",
"0.55528784",
"0.55528784",
"0.55528784",
"0.55528784",
"0.55528784",
"0.55528784",
"0.55528784",
"0.55528784"
] | 0.0 | -1 |
Method used to compute the calculation of an interval between two notes | public static ArrayList<ArrayList<Integer>> calculateInterval(ArrayList<String> inputPermutation, TreeMap<String, ArrayList<Integer>> binomialMap)
{
ArrayList<ArrayList<Integer>> intervalResult = new ArrayList<>();
ArrayList<Integer> intervalForSinglePermutation = new ArrayList<>();
if(inputPermutation.size() > 0)
{
for(int y=0; y<inputPermutation.size(); y++)
{
intervalForSinglePermutation = new ArrayList<>();
List<String> singleNote = Arrays.asList(inputPermutation.get(y).split(":"));
ArrayList<Integer> binomialFirstNote = binomialMap.get(singleNote.get(0));
ArrayList<Integer> binomialSecondNote = binomialMap.get(singleNote.get(1));
Integer pitchClassFirstNote = binomialFirstNote.get(0);
Integer NameClassFirstNote = binomialFirstNote.get(1);
Integer pitchClassSecondNote = binomialSecondNote.get(0);
Integer NameClassSecondNote = binomialSecondNote.get(1);
Integer firstElem = (pitchClassFirstNote-pitchClassSecondNote) < 0 ? ((pitchClassFirstNote-pitchClassSecondNote)+12)%12: (pitchClassFirstNote-pitchClassSecondNote)%12;
Integer secondElem = (NameClassFirstNote-NameClassSecondNote) < 0 ? ((NameClassFirstNote-NameClassSecondNote)+7)%7: (NameClassFirstNote-NameClassSecondNote)%7;
//System.out.println("Inside calculateInterval final result: <"+firstElem+","+secondElem+">");
intervalForSinglePermutation.add(firstElem);
intervalForSinglePermutation.add(secondElem);
intervalResult.add(intervalForSinglePermutation);
}
//System.out.println("calculateInterval: " + intervalResult);
}
return intervalResult;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getInterval(Note otherNote) {\n\t\treturn getMidiNumber() - otherNote.getMidiNumber();\n\t}",
"public interface Interval extends Comparable<Interval> {\n\n /**\n * Returns the start coordinate of this interval.\n * \n * @return the start coordinate of this interval\n */\n int getStart();\n\n /**\n * Returns the end coordinate of this interval.\n * <p>\n * An interval is closed-open. It does not include the returned point.\n * \n * @return the end coordinate of this interval\n */\n int getEnd();\n\n default int length() {\n return getEnd() - getStart();\n }\n\n /**\n * Returns whether this interval is adjacent to another.\n * <p>\n * Two intervals are adjacent if either one ends where the other starts.\n * \n * @param interval - the interval to compare this one to\n * @return <code>true</code> if the intervals are adjacent; otherwise\n * <code>false</code>\n */\n default boolean isAdjacent(Interval other) {\n return getStart() == other.getEnd() || getEnd() == other.getStart();\n }\n \n /**\n * Returns whether this interval overlaps another.\n * \n * This method assumes that intervals are contiguous, i.e., there are no\n * breaks or gaps in them.\n * \n * @param o - the interval to compare this one to\n * @return <code>true</code> if the intervals overlap; otherwise\n * <code>false</code>\n */\n default boolean overlaps(Interval o) {\n return getEnd() > o.getStart() && o.getEnd() > getStart();\n }\n \n /**\n * Compares this interval with another.\n * <p>\n * Ordering of intervals is done first by start coordinate, then by end\n * coordinate.\n * \n * @param o - the interval to compare this one to\n * @return -1 if this interval is less than the other; 1 if greater\n * than; 0 if equal\n */\n default int compareTo(Interval o) {\n if (getStart() > o.getStart()) {\n return 1;\n } else if (getStart() < o.getStart()) {\n return -1;\n } else if (getEnd() > o.getEnd()) {\n return 1;\n } else if (getEnd() < o.getEnd()) {\n return -1;\n } else {\n return 0;\n }\n }\n}",
"static int calculateTimeDelta(TimeInterval interval_1, TimeInterval interval_2) {\n TimeInterval earlier;\n TimeInterval later;\n if (interval_1.getStartTime().before(interval_2.getStartTime())) {\n earlier = interval_1;\n later = interval_2;\n } else {\n earlier = interval_2;\n later = interval_1;\n }\n\n return (int) (later.getStartTime().getTime() - earlier.getStopTime().getTime());\n }",
"public static Interval subtraction(Interval in1, Interval in2){\r\n //in1.print();\r\n //in2.print();\r\n return new Interval(in1.getFirstExtreme()-in2.getSecondExtreme(),in1.getSecondExtreme()-in2.getFirstExtreme(),in1.getFEincluded()=='['&&in2.getSEincluded()==']'?in1.getFEincluded():'(',in1.getSEincluded()==']'&&in2.getFEincluded()=='['?in1.getSEincluded():')');\r\n }",
"public static Interval division(Interval in1, Interval in2){\r\n if(in2.getSecondExtreme()==0.0||in2.getFirstExtreme()==0.0){\r\n System.out.println(\"División por cero!\");\r\n System.exit(1);\r\n return new Interval();\r\n }else{\r\n return new Interval(in1.getFirstExtreme()/in2.getSecondExtreme(),in1.getSecondExtreme()/in2.getFirstExtreme(),in1.getFEincluded()=='['&&in2.getSEincluded()==']'?in1.getFEincluded():'(',in1.getSEincluded()==']'&&in2.getFEincluded()=='['?in1.getSEincluded():')');\r\n }\r\n }",
"public int getInterval() { return _interval; }",
"@Override\n\t\t\tpublic int compare(Interval o1, Interval o2) {\n\t\t\t\treturn o1.start-o2.start;\n\t\t\t}",
"public static Interval intersection(Interval in1, Interval in2){\r\n double a = in1.getFirstExtreme();\r\n double b = in1.getSecondExtreme();\r\n double c = in2.getFirstExtreme();\r\n double d = in2.getSecondExtreme();\r\n char p1 = in1.getFEincluded();\r\n char p2 = in1.getSEincluded();\r\n char p3 = in2.getFEincluded();\r\n char p4 = in2.getSEincluded();\r\n \r\n if (a==c && b==d){\r\n if (a==b){\r\n if (p1=='[' && p3=='[' && p2==']' && p4==']'){\r\n return new Interval(in1);\r\n }else{\r\n return new Interval(0,0,'(',')');\r\n }\r\n }else{\r\n return new Interval(a,b,p1==p3?p1:'(',p2==p4?p2:')');\r\n }\r\n }else if (a<c && b<=c){\r\n if (b==c && p2==']' && p3=='['){\r\n return new Interval(b,b,p3,p2);\r\n }else{\r\n return new Interval(0,0,'(',')');\r\n }\r\n }else if (a<=c && b<d){\r\n if (a==c){\r\n return new Interval(a,b,p1==p3?p1:'(',p2);\r\n }else{\r\n return new Interval(c,b,p3,p2);\r\n }\r\n }else if(a<c && b==d){\r\n return new Interval(c,b,p3,p2==p4?p2:')');\r\n }else if(a<=c && b>d){\r\n if (a==c){\r\n return new Interval(a,d,p1==p3?p1:'(',p4);\r\n }else{\r\n return new Interval(in2);\r\n }\r\n }else if (a>c && b<=d){\r\n if (b==d){\r\n return new Interval(a,b,p1,p2==p4?p2:')');\r\n }else{\r\n return new Interval(in1);\r\n }\r\n }else if (a<=d && b>d){\r\n if (a==d){\r\n if (p1=='[' && p4==']'){\r\n return new Interval(a,a,p1,p4);\r\n }else{\r\n return new Interval(0,0,'(',')');\r\n }\r\n }else{\r\n return new Interval(a,d,p1,p4);\r\n }\r\n }else{\r\n return new Interval(0,0,'(',')');\r\n }\r\n }",
"public HBox answerIntervalLine(String begin, String end)\n {\n HBox answerIntervalLine = new HBox(5);\n answerIntervalLine.getChildren().addAll(new Label(\"Esteve entre \"), new Text(begin), new Label(\" e \"), new Text(end));\n answerIntervalLine.setAlignment(Pos.BASELINE_LEFT);\n\n return answerIntervalLine; \n }",
"public void add(Interval<T> interval) {\n ArrayList<Interval<T>> that = new ArrayList<Interval<T>>();\n that.add(interval);\n\n /*\n * The following algorithm works with any size ArrayList<Interval<T>>.\n * We do only one interval at a time to do an insertion sort like adding of intervals, so that they don't need to be sorted.\n */\n int pos1 = 0, pos2 = 0;\n Interval<T> i1, i2, i1_2;\n\n for (; pos1 < this.size() && pos2 < that.size(); ++pos2) {\n i1 = this.intervals.get(pos1);\n i2 = that.get(pos2);\n\n if (i1.is(IntervalRelation.DURING_INVERSE, i2) || i1.is(IntervalRelation.START_INVERSE, i2) || i1.is(IntervalRelation.FINISH_INVERSE, i2) || i1.is(IntervalRelation.EQUAL, i2)) {//i1 includes i2\n //ignore i2; do nothing\n } else if (i1.is(IntervalRelation.DURING, i2) || i1.is(IntervalRelation.START, i2) || i1.is(IntervalRelation.FINISH, i2)) {//i2 includes i1\n this.intervals.remove(pos1);//replace i1 with i2\n --pos2;\n } else if (i1.is(IntervalRelation.OVERLAP, i2) || i1.is(IntervalRelation.MEET, i2)) {//i1 begin < i2 begin < i1 end < i2 end; i1 end = i2 begin\n i1_2 = new Interval<T>(i1.begin(), i2.end());//merge i1 and i2\n this.intervals.remove(pos1);\n that.add(pos2 + 1, i1_2);\n } else if (i1.is(IntervalRelation.OVERLAP_INVERSE, i2) || i1.is(IntervalRelation.MEET_INVERSE, i2)) {//i2 begin < i1 begin < i2 end < i1 end; i2 end = i1 begin\n i1_2 = new Interval<T>(i2.begin(), i1.end());//merge i2 and i1\n this.intervals.remove(pos1);\n this.intervals.add(pos1, i1_2);\n } else if (i1.is(IntervalRelation.BEFORE, i2)) {//i1 < i2 < (next i1 or next i2)\n ++pos1;\n --pos2;\n } else if (i1.is(IntervalRelation.AFTER, i2)) {//i2 < i1 < (i1 or next i2)\n this.intervals.add(pos1, i2);\n ++pos1;\n }\n }\n\n //this finishes; just append the rest of that\n if (pos2 < that.size()) {\n for (int i = pos2; i < that.size(); ++i) {\n this.intervals.add(that.get(i));\n }\n }\n }",
"public static Interval addition(Interval in1, Interval in2){\r\n return new Interval(in1.getFirstExtreme()+in2.getFirstExtreme(),in1.getSecondExtreme()+in2.getSecondExtreme(),in1.getFEincluded()==in2.getFEincluded()?in1.getFEincluded():'(',in1.getSEincluded()==in2.getSEincluded()?in1.getSEincluded():')');\r\n }",
"private double intersect(double start0, double end0, double start1, double end1)\n {\n double length = Double.min(end0, end1) - Double.max(start0, start1);\n return Double.min(Double.max(0, length), 1.0);\n }",
"public Interval mul(Interval other) {\n\t\tHashSet<String> boundSet = new HashSet<>();\n\n\t\tString x1 = this.getLow();\n\t\tString x2 = this.getHigh();\n\t\tString y1 = other.getLow();\n\t\tString y2 = other.getHigh();\n\n\t\t// x1y1\n\t\tif (x1.equals(\"-Inf\")) {\n\t\t\tif (y1.equals(\"-Inf\"))\n\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(y1) > 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse if (Long.parseLong(y1) < 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse\n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else if (y1.equals(\"-Inf\")) {\n\t\t\tif (x1.equals(\"-Inf\"))\n\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(x1) > 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse if (Long.parseLong(x1) < 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse\n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else {\n\t\t\tboundSet.add(String.valueOf(Long.parseLong(x1) * Long.parseLong(y1)));\n\t\t}\n\n\t\t// x1y2\n\t\tif (x1.equals(\"-Inf\")) {\n\t\t\tif (y2.equals(\"+Inf\"))\n\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(y2) > 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse if (Long.parseLong(y2) < 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse \n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else if (y2.equals(\"+Inf\")) {\n\t\t\tif (x1.equals(\"-Inf\"))\n\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(x1) > 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse if (Long.parseLong(x1) < 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse \n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else {\n\t\t\tboundSet.add(String.valueOf(Long.parseLong(x1) * Long.parseLong(y2)));\n\t\t}\n\n\t\t// x2y1\n\t\tif (x2.equals(\"+Inf\")) {\n\t\t\tif (y1.equals(\"-Inf\"))\n\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(y1) > 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse if (Long.parseLong(y1) < 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse \n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else if (y1.equals(\"-Inf\")) {\n\t\t\tif (x2.equals(\"+Inf\"))\n\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(x2) > 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse if (Long.parseLong(x2) < 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse \n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else {\n\t\t\tboundSet.add(String.valueOf(Long.parseLong(x2) * Long.parseLong(y1)));\n\t\t}\n\n\t\t// x2y2\n\t\tif (x2.equals(\"+Inf\")) {\n\t\t\tif (y2.equals(\"+Inf\"))\n\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(y2) > 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse if (Long.parseLong(y2) < 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse\n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else if (y2.equals(\"+Inf\")) {\n\t\t\tif (x2.equals(\"+Inf\"))\n\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(x2) > 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse if (Long.parseLong(x2) < 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse \n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else {\n\t\t\tboundSet.add(String.valueOf(Long.parseLong(x2) * Long.parseLong(y2)));\n\t\t}\n\n\t\treturn new Interval(getMinValue(boundSet), getMaxValue(boundSet));\n\t}",
"public int getInterdigitInterval();",
"public double interval() {\n return interval;\n }",
"public abstract double getValue(R1Interval interval);",
"public Interval getInterval() { return interval; }",
"Intervalle(double bas, double haut){\n this.inf = bas;\n this.sup = haut;\n }",
"public Interval mergeInterval(Interval first, Interval second){\n Interval result = new Interval();\n result.start = Math.min(first.start,second.start);\n result.end = Math.max(first.end,second.end);\n return result;\n }",
"public Interval diff(Interval other) {\n\t\treturn this.plus(other.mul(new Interval(\"-1\", \"-1\")));\n\t}",
"public long getIntervals(){\n return this.interval;\n }",
"IntervalTupleList evaluate(double low, double high);",
"public static double diff() {\n System.out.println(\"Enter minuend\");\n double a = getNumber();\n System.out.println(\"Enter subtrahend\");\n double b = getNumber();\n\n return a - b;\n }",
"public int getAvpfRrInterval();",
"public static Interval product(Interval in1, Interval in2){\r\n return new Interval(in1.getFirstExtreme()*in2.getFirstExtreme(),in1.getSecondExtreme()*in2.getSecondExtreme(),in1.getFEincluded()==in2.getFEincluded()?in1.getFEincluded():'(',in1.getSEincluded()==in2.getSEincluded()?in1.getSEincluded():')');\r\n }",
"public interface ReadableInterval\n{\n\n public abstract boolean contains(ReadableInstant readableinstant);\n\n public abstract boolean contains(ReadableInterval readableinterval);\n\n public abstract boolean equals(Object obj);\n\n public abstract Chronology getChronology();\n\n public abstract DateTime getEnd();\n\n public abstract long getEndMillis();\n\n public abstract DateTime getStart();\n\n public abstract long getStartMillis();\n\n public abstract int hashCode();\n\n public abstract boolean isAfter(ReadableInstant readableinstant);\n\n public abstract boolean isAfter(ReadableInterval readableinterval);\n\n public abstract boolean isBefore(ReadableInstant readableinstant);\n\n public abstract boolean isBefore(ReadableInterval readableinterval);\n\n public abstract boolean overlaps(ReadableInterval readableinterval);\n\n public abstract Duration toDuration();\n\n public abstract long toDurationMillis();\n\n public abstract Interval toInterval();\n\n public abstract MutableInterval toMutableInterval();\n\n public abstract Period toPeriod();\n\n public abstract Period toPeriod(PeriodType periodtype);\n\n public abstract String toString();\n}",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 - n2;\r\n\t}",
"public abstract HalfOpenIntRange approximateSpan();",
"public SequenceRegion interval(Sequence start, Sequence stop) {\n\t/* Ravi thingToDo. */\n\t/* use a single constructor */\n\t/* Performance */\n\treturn (SequenceRegion) ((above(start, true)).intersect((below(stop, false))));\n/*\nudanax-top.st:15693:SequenceSpace methodsFor: 'making'!\n{SequenceRegion CLIENT} interval: start {Sequence} with: stop {Sequence}\n\t\"Return a region of all sequence >= lower and < upper.\"\n\t\n\t\"Ravi thingToDo.\" \"use a single constructor\" \"Performance\"\n\t^((self above: start with: true)\n\t\tintersect: (self below: stop with: false)) cast: SequenceRegion!\n*/\n}",
"public int getInterval() {\r\n return interval;\r\n }",
"@Override\r\n\t public int compareTo(Interval o) {\n\r\n\t SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t try{\r\n\t Date startDate = sdf.parse(start);\r\n\t Date endDate = sdf.parse(end);\r\n\t Date pstartDate = sdf.parse(o.start);\r\n\t Date pendDate = sdf.parse(o.end);\r\n\r\n\t return startDate.compareTo(pstartDate);\r\n\r\n\t }catch(Exception ex){\r\n\t ex.printStackTrace();\r\n\t }\r\n\t return 0;\r\n\t }",
"@Test\n public void sample1(){\n int[][] a = new int[][] {\n new int [] {0,2},\n new int [] {5,10},\n new int [] {13,23},\n new int [] {24,25}\n };\n int [][] b = new int [][] {\n new int [] {1,5},\n new int [] {8,12},\n new int [] {15,24},\n new int [] {25,26}\n };\n int [][] expected = new int [][] {\n new int [] {1,2},\n new int [] {5,5},\n new int [] {8,10},\n new int [] {15,23},\n new int [] {24,24},\n new int [] {25,25},\n };\n int [][] output = underTest.intervalIntersection(a,b);\n assertArrayEquals(expected,output);\n }",
"@Test\n public void isOverlap_interval1OverlapsInterval2OnStart_trueReturned() throws Exception{\n Interval interval1 = new Interval(-1,5);\n Interval interval2 = new Interval(3,12);\n\n boolean result = SUT.isOverlap(interval1,interval2);\n Assert.assertThat(result,is(true));\n }",
"@Test\n public void isOverlap_interval1ContainsInterval2OnEnd_trueReturned() throws Exception{\n Interval interval1 = new Interval(-1,5);\n Interval interval2 = new Interval(0,3);\n\n boolean result = SUT.isOverlap(interval1,interval2);\n Assert.assertThat(result,is(true));\n }",
"public Node interval()\r\n\t{\r\n\t\tint index = lexer.getPosition();\r\n\t\tLexer.Token lp = lexer.getToken();\r\n\t\tif(lp==Lexer.Token.LEFT_PARENTHESIS\r\n\t\t|| lp==Lexer.Token.LEFT_BRACKETS)\r\n\t\t{\r\n\t\t\tNode exp1 = expression();\r\n\t\t\tif(exp1!=null)\r\n\t\t\t{\r\n\t\t\t\tif(lexer.getToken()==Lexer.Token.COMMA)\r\n\t\t\t\t{\r\n\t\t\t\t\tNode exp2 = expression();\r\n\t\t\t\t\tif(exp2!=null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tLexer.Token rp = lexer.getToken();\r\n\t\t\t\t\t\tif(rp==Lexer.Token.RIGHT_PARENTHESIS\r\n\t\t\t\t\t\t|| rp==Lexer.Token.RIGHT_BRACKETS)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tInterval iv = new Interval(exp1,exp2);\r\n\t\t\t\t\t\t\tif(lp==Lexer.Token.LEFT_PARENTHESIS) iv.lhsClosed(false);\r\n\t\t\t\t\t\t\telse iv.lhsClosed(true);\r\n\t\t\t\t\t\t\tif(rp==Lexer.Token.RIGHT_PARENTHESIS) iv.rhsClosed(false);\r\n\t\t\t\t\t\t\telse iv.rhsClosed(true);\r\n\t\t\t\t\t\t\treturn iv;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\treturn null;\r\n\t}",
"public interface IntervalConverter\n extends Converter\n{\n\n public abstract boolean isReadableInterval(Object obj, Chronology chronology);\n\n public abstract void setInto(ReadWritableInterval readwritableinterval, Object obj, Chronology chronology);\n}",
"@Test\n public void isOverlap_interval1BeforeInterval2_falseReturned() throws Exception{\n Interval interval1 = new Interval(-1,5);\n Interval interval2 = new Interval(8,12);\n\n boolean result = SUT.isOverlap(interval1,interval2);\n Assert.assertThat(result,is(false));\n }",
"net.opengis.gml.x32.TimeIntervalLengthType getTimeInterval();",
"int minNoteValue();",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}",
"@Test\n public void isOverlap_interval1AfterInterval2_falseReturned() throws Exception{\n Interval interval1 = new Interval(-1,5);\n Interval interval2 = new Interval(-10,-3);\n\n boolean result = SUT.isOverlap(interval1,interval2);\n Assert.assertThat(result,is(false));\n }",
"public ArrayList<Interval> merge(ArrayList<Interval> intervals) {\n if (intervals.size() > 1) {\n int[] startArray = new int[intervals.size()];\n int[] endArray = new int[intervals.size()];\n ArrayList<Interval> ans = new ArrayList<>();\n int count = 0;\n for (Interval val : intervals) {\n startArray[count] = val.start;\n endArray[count] = val.end;\n count++;\n }\n Arrays.sort(startArray);\n Arrays.sort(endArray);\n\n\n for (int i = 0; i < intervals.size()-1; i++) {\n int start = startArray[i];\n int end = endArray[i];\n\n while (i<intervals.size()-1 && startArray[i+1]<=end){\n end=endArray[i+1];\n i++;\n }\n\n Interval interval = new Interval(start,end);\n ans.add(interval);\n\n }\n\n return ans;\n }\n return intervals;\n }",
"boolean isNewInterval();",
"void calculateRange() {\n //TODO: See Rules\n }",
"public Interval(){\r\n firstExtreme = 0.0d;\r\n secondExtreme = 0.0d;\r\n feIncluded = '(';\r\n seIncluded = ')';\r\n }",
"@Test\n public void isOverlap_interval1ContainWithinInterval2_trueReturned() throws Exception{\n Interval interval1 = new Interval(-1,5);\n Interval interval2 = new Interval(0,3);\n\n boolean result = SUT.isOverlap(interval1,interval2);\n Assert.assertThat(result,is(true));\n }",
"@Override\n\tpublic void visit(IntervalExpression arg0) {\n\t\t\n\t}",
"public double integral(double start, double end) {\r\n double h = start - end; // h is distance between x values.\r\n //this will be divided into 10000000 to get length of trapazoid, height is found later\r\n //using evaluate method to find y.\r\n //integral is basically area under curve. x initial and x final is given so it makes this\r\n //quite simple.\r\n double area = 0.5 * evaluate(start) + 0.5 * evaluate(end);\r\n h = h/10000000;\r\n //if h is positive end is greater than start, otherwise it is the opposite.\r\n if(h >= 0){\r\n for(int i = 1; i < 10000000; i++){ //for loop set to go through each trapazoid and find height\r\n //then added to compounding sum through variable area.\r\n double point = h*i + start;\r\n area += evaluate(point);\r\n }\r\n }else{\r\n h = end - start;\r\n h = h/10000000;\r\n for(int i = 1; i < 10000000; i++){\r\n double point = h*i + end;\r\n area += evaluate(point);\r\n }\r\n area = -1 * area; // inputs negative area when h is negative, but allows for proper computation of value.\r\n } \r\n return area;\r\n \r\n\t}",
"public void compareStartEndDate() {\n String[] startDateArray = startDate.split(dateOperator);\n String[] endDateArray = endDate.split(dateOperator);\n \n // Compares year first, then month, and then day.\n if (Integer.parseInt(startDateArray[2]) > Integer.parseInt(endDateArray[2])) {\n endDate = endDateArray[0] +\"/\"+ endDateArray[1] +\"/\"+ startDateArray[2];\n } else if (Integer.parseInt(startDateArray[2]) == Integer.parseInt(endDateArray[2])) {\n if (Integer.parseInt(startDateArray[1]) > Integer.parseInt(endDateArray[1])) {\n endDate = endDateArray[0] +\"/\"+endDateArray[1] +\"/\"+(Integer.parseInt(startDateArray[2])+1);\n } else if (Integer.parseInt(startDateArray[1]) == Integer.parseInt(endDateArray[1]) && \n Integer.parseInt(startDateArray[0]) > Integer.parseInt(endDateArray[0])) {\n endDate = endDateArray[0] +\"/\"+endDateArray[1] +\"/\"+(Integer.parseInt(startDateArray[2])+1);\n }\n }\n }",
"public double adicao (double numero1, double numero2){\n\t}",
"@Override\n protected Interval adjustInterval(Interval i) {\n RangeDivision iInfo = RangeDivision.getRangeDivision(i, TimeLineController.getJodaTimeZone());\n final long lowerBound = iInfo.getLowerBound();\n final long upperBound = iInfo.getUpperBound();\n final DateTime lowerDate = new DateTime(lowerBound, TimeLineController.getJodaTimeZone());\n final DateTime upperDate = new DateTime(upperBound, TimeLineController.getJodaTimeZone());\n //add extra block to end that gets cut of by conversion from string/category.\n return new Interval(lowerDate, upperDate.plus(countsChart.rangeInfo.getPeriodSize().toUnitPeriod()));\n }",
"public Integer getInterval() {\n\t\treturn interval;\n\t}",
"long getIntervalInSeconds();",
"IntervalTupleList evaluate(Interval x);",
"public Coordinates midPoint(Coordinates a, Coordinates b);",
"public IntervalPolyType combine( RelDataTypeFactoryImpl typeFactory, IntervalPolyType that ) {\n assert this.typeName.isYearMonth() == that.typeName.isYearMonth();\n boolean nullable = isNullable || that.isNullable;\n TimeUnit thisStart = Objects.requireNonNull( typeName.getStartUnit() );\n TimeUnit thisEnd = typeName.getEndUnit();\n final TimeUnit thatStart = Objects.requireNonNull( that.typeName.getStartUnit() );\n final TimeUnit thatEnd = that.typeName.getEndUnit();\n\n int secondPrec = this.intervalQualifier.getStartPrecisionPreservingDefault();\n final int fracPrec =\n SqlIntervalQualifier.combineFractionalSecondPrecisionPreservingDefault(\n typeSystem,\n this.intervalQualifier,\n that.intervalQualifier );\n\n if ( thisStart.ordinal() > thatStart.ordinal() ) {\n thisEnd = thisStart;\n thisStart = thatStart;\n secondPrec = that.intervalQualifier.getStartPrecisionPreservingDefault();\n } else if ( thisStart.ordinal() == thatStart.ordinal() ) {\n secondPrec =\n SqlIntervalQualifier.combineStartPrecisionPreservingDefault(\n typeFactory.getTypeSystem(),\n this.intervalQualifier,\n that.intervalQualifier );\n } else if ( null == thisEnd || thisEnd.ordinal() < thatStart.ordinal() ) {\n thisEnd = thatStart;\n }\n\n if ( null != thatEnd ) {\n if ( null == thisEnd || thisEnd.ordinal() < thatEnd.ordinal() ) {\n thisEnd = thatEnd;\n }\n }\n\n RelDataType intervalType = typeFactory.createSqlIntervalType( new SqlIntervalQualifier( thisStart, secondPrec, thisEnd, fracPrec, SqlParserPos.ZERO ) );\n intervalType = typeFactory.createTypeWithNullability( intervalType, nullable );\n return (IntervalPolyType) intervalType;\n }",
"@Test\n public void testcalAreaRectangle2() {\n double ex = 4;\n \n startPoint.setX(-1);\n startPoint.setY(-1);\n endPoint.setX(-3);\n endPoint.setY(-3);\n \n double ac = rec.calAreaRectangle(startPoint, endPoint);\n assertEquals(ex, ac, 0);\n }",
"public static int getQuot(String time1, String time2)\r\n/* 164: */ throws ParseException\r\n/* 165: */ {\r\n/* 166:239 */ SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n/* 167:240 */ Calendar cal = Calendar.getInstance();\r\n/* 168:241 */ cal.setTime(sdf.parse(time1));\r\n/* 169:242 */ long start = cal.getTimeInMillis();\r\n/* 170:243 */ cal.setTime(sdf.parse(time2));\r\n/* 171:244 */ long end = cal.getTimeInMillis();\r\n/* 172:245 */ long between_days = (end - start) / 86400000L;\r\n/* 173: */ \r\n/* 174:247 */ return Integer.parseInt(String.valueOf(between_days));\r\n/* 175: */ }",
"@Test\n public void testcalAreaRectangle1() {\n double ex = 4;\n \n startPoint.setX(1);\n startPoint.setY(1);\n endPoint.setX(3);\n endPoint.setY(3);\n \n double ac = rec.calAreaRectangle(startPoint, endPoint);\n assertEquals(ex, ac, 0);\n }",
"public Coordinates inBetweenPoint(Coordinates a, Coordinates b, double ratio);",
"private List<Interval> merge(Interval interval, Interval dnd) {\n if (dnd.a <= interval.a && dnd.b >= interval.b) {\n return Collections.emptyList();\n }\n // [ dnd [ ] interval ]\n if (dnd.a <= interval.a && dnd.b >= interval.a) {\n return Collections.singletonList(new Interval(dnd.b, interval.b, IntervalType.E));\n }\n // [ interval [ dnd ] ]\n if (interval.a <= dnd.a && dnd.b <= interval.b) {\n return Arrays.asList(\n new Interval(interval.a, dnd.a, IntervalType.E),\n new Interval(dnd.b, interval.b, IntervalType.E)\n );\n }\n // [ interval [ ] dnd ]\n if (interval.a <= dnd.a && interval.b >= dnd.a) {\n return Collections.singletonList(new Interval(interval.a, dnd.a, IntervalType.E));\n }\n // else\n // [ int ] [ dnd ]\n // [dnd] [int]\n // return int\n return Collections.singletonList(interval);\n }",
"@Override\n public int compareTo(Interval otherInterval) {\n return start.compareTo(otherInterval.start);\n }",
"int intervalSize(T v1, T v2) {\n int c = 0;\n Node x = successor(v1);\n while (x != null && x.value.compareTo(v2) < 0) {\n c++;\n x = successor(x);\n }\n return c;\n }",
"public int getIntervalMinutes();",
"public static double[] intakeInterval(long start, long end, String nutrient) {\n\n // Check the time interval we are looking in and set the time to\n // a day or a month\n int days_months_year = 0;\n if (end - start == ONE_WEEK) {\n days_months_year = 7;\n }\n\n else if (end - start == ONE_MONTH) {\n days_months_year = 31;\n }\n\n else if (end - start == ONE_YEAR) {\n days_months_year = 365;\n\n }\n\n // Create an array the size of the number of days in a week or month, or the number of\n // months in a year\n double[] nutrientIntake = new double[days_months_year];\n int startIndex = searchForIntervalBoundary(start);\n int endIndex = searchForIntervalBoundary(end);\n double intakeSum = 0;\n //long beginningOfDay = myIntakes.get(startIndex).getCreationTime();\n long beginningOfDay = start;\n int current_idx = 0;\n\n // handle no foods yet\n if( theirIntakes.size() == 1 ) return nutrientIntake;\n\n long curr_time;\n\n // loop through piece returned by search\n for (int i = startIndex; i <= endIndex; i++) {\n\n // Get nutrient amount and multiply by amount of servings. Add this to running total\n // of the amount of that nutrient.\n intakeSum += theirFoods.get(theirIntakes.get(i).getFood()).getNutrient(nutrient)\n * theirIntakes.get(i).getServings();\n\n current_idx = 0;\n for (int j = 0; j < days_months_year; j++) {\n curr_time = start + (ONE_DAY*j);\n if (curr_time <= theirIntakes.get(i).getCreationTime()) {\n current_idx = j;\n }\n }\n\n nutrientIntake[current_idx] += theirFoods.get(theirIntakes.get(i).getFood()).getNutrient(nutrient)\n * theirIntakes.get(i).getServings();\n\n }\n\n return nutrientIntake;\n\n }",
"public Note noteAt(int interval) {\n\t\tint newMidiNote = getMidiNumber() + interval;\n\t\t\n\t\treturn new Note(newMidiNote);\n\t}",
"@Override\n\tpublic long getTimeLapsed(long start, long end) {\n\t\tlong difference=(end - start);\n\t\treturn difference;\t}",
"@Override\r\n\tpublic double calculate() {\n\r\n\t\treturn n1 + n2;\r\n\t}",
"Between createBetween();",
"public interface IntervalRange<V extends Comparable<V>> extends Range<V> {\n\n\t/**\n\t * This method returns the lower bound of the interval.\n\t * \n\t * @return the lower bound. <code>null</code> means there is no lower bound,\n\t * i.e., this is an open interval.\n\t */\n\tpublic V getLowerBound();\n\n\t/**\n\t * This method returns the upper bound of the interval.\n\t * \n\t * @return the upper bound. <code>null</code> means there is no upper bound,\n\t * i.e., this is an open interval.\n\t */\n\tpublic V getUpperBound();\n\n}",
"public void setInterdigitInterval(int interval);",
"public double calculate(Date start, Date end,int a)\r\n\t{\n\t\t\r\n\t\tint diffInDays = (int)( (end.getTime() - start.getTime()) \r\n / (1000 * 60 * 60 * 24) );\r\n\t\tSystem.out.println(diffInDays);\r\n\t\t\r\n\t\t\r\n\t\tint hours= diffInDays*8;\r\n\t\tint kms= hours*90;\r\n\t\tdouble temp= kms*a;\r\n\t\treturn temp;\r\n\t}",
"public interface Math2 {\n\n /*\n * PI2 is a constant which is approximately equivalent to 2*PI\n */\n public static final double PI2 = 2 * Math.PI;\n\n /**\n * Method which computes the square of a given number\n * \n * @param x\n * is the number (double variable) whose square is computed\n * @return the square of the given double\n */\n public static double sq(double x) {\n return x * x;\n }\n\n /**\n * Method which returns the largest integer less than or equal to \"x mod y\"\n * \n * @param x\n * double variable\n * @param y\n * double variable\n * @return double variable which returns floor(x mod y)\n */\n public static double floorMod(double x, double y) {\n return x - y * (Math.floor(x / y));\n }\n\n /**\n * Method which computes the haversin of x, knowing that its formula is :\n * haversin(x) = [sin(x/2)]^2\n * \n * @param x\n * double variable whose haversin this method computes\n * @return the haversin of x\n */\n public static double haversin(double x) {\n return sq(Math.sin(x / 2));\n }\n\n /**\n * Mathod which computes the angular distance between two angles\n * \n * @param a1:\n * double variable indicating the value of the first angle (in\n * radians)\n * @param a2:\n * double variable indicating the value of the second angle (in\n * radians)\n * @return The angular distance, knowing that its formula is :\n * floor(a2-a1+pi, 2*pi) - pi\n */\n public static double angularDistance(double a1, double a2) {\n return floorMod((a2 - a1 + Math.PI), PI2) - Math.PI;\n }\n\n /**\n * Linear interpolation to estimate the value taken by a continuous function\n * between two given points.\n * \n * @param y0\n * double variable which corresponds to f(x0), where x0 = 0\n * @param y1\n * double variable which corresponds to f(x1), where x1 = 1\n * @param x\n * double variable which serves as input to compute the value the\n * the function (obtained by linear interpolation) will take\n * @return\n */\n public static double lerp(double y0, double y1, double x) {\n double m = y1 - y0;\n double b = y0;\n return m * x + b; // i.e, linear function\n }\n\n /**\n * Bilinear interpolation which allows to compute the value of a function at\n * a given point, from its two closest neighbours in each direction\n * \n * @param z00\n * double variable which represents f(x0,y0), where x0=0 and y0=0\n * @param z10\n * double variable which represents f(x1,y0), where x1=1 and y0=0\n * @param z01\n * double variable which represents f(x0,y1), where x0=0 and y1=1\n * @param z11\n * double variable which represents f(x1,y1), where x1=1 and y1=1\n * @param x\n * double variable which is the first input of our two variable\n * function\n * @param y\n * double variable which is the second input of our two variable\n * function\n * @return f(x,y)\n */\n public static double bilerp(double z00, double z10, double z01, double z11,\n double x, double y) {\n double a = lerp(z00, z10, x);\n double b = lerp(z01, z11, x);\n return lerp(a, b, y);\n\n }\n\n /**\n * Method which finds out the inferior boundary of a subinterval of size dX\n * which contains a zero\n * \n * @param f\n * is the function\n * @param minX\n * double variable, left boundary of the interval\n * @param maxX\n * double variable, right boundary of the interval\n * @param dX\n * size of the subintervals\n * @return the inferior boundary of a subinterval of size dX which contains\n * a zero (a double variable)\n */\n public static double firstIntervalContainingRoot(DoubleUnaryOperator f,\n double minX, double maxX, double dX) {\n Preconditions.checkArgument(maxX >= minX && dX > 0);\n double infSub = minX;\n double nextSub = minX + dX;\n while (f.applyAsDouble(infSub) * f.applyAsDouble(nextSub) > 0\n && nextSub <= maxX - dX) {\n infSub += dX;\n nextSub += dX;\n }\n return f.applyAsDouble(infSub) * f.applyAsDouble(nextSub) > 0\n ? Double.POSITIVE_INFINITY : infSub;\n }\n\n /**\n * Method which finds the lowest boundary of a subinterval of size equal or\n * inferior to epsilon and between x1 and x2\n * \n * @param f\n * function\n * @param x1\n * first boundary of the interval\n * @param x2\n * second boundary of the interval\n * @param epsilon\n * error\n * @return lowest boundary of a subinterval of size equal or inferior to\n * epsilon and between x1 and x2\n * @throws IllegalArgumentException\n * if x1 and x2 have the same sign\n */\n public static double improveRoot(DoubleUnaryOperator f, double x1,\n double x2, double epsilon) {\n double a = x1;\n double b = x2;\n double c;\n \n if (f.applyAsDouble(a) == 0) {\n return a;\n } else if (f.applyAsDouble(b) == 0) {\n return b;\n }\n \n Preconditions.checkArgument(\n f.applyAsDouble(a) * f.applyAsDouble(b) < 0 && epsilon > 0);\n while (Math.abs(b - a) > epsilon) {\n c = (a + b) / 2;\n if (f.applyAsDouble(c) == 0) {\n return c;\n } else if (f.applyAsDouble(c) * f.applyAsDouble(a) > 0) {\n a = c;\n } else if (f.applyAsDouble(c) * f.applyAsDouble(b) > 0) {\n b = c;\n }\n }\n return a < b ? a : b;\n }\n}",
"public static int nextNote(int n1,int n2) {\n double rnd,sum=0;\n rnd=Math.random();\n for(int i=0;i<12;i++)\n {\n sum+=weights[n1-60][n2-60][i];\n\n if(rnd<=sum)\n return i+60;\n }\n return 62;\n }",
"@Test(dataProvider = \"optionalOrNot\", expectedExceptions = CommandLineException.BadArgumentValue.class)\n public void testIntervalSetAndMergingOverlap(IntervalArgumentCollection iac){\n iac.addToIntervalStrings(\"1:1-100\");\n iac.addToIntervalStrings(\"1:101-200\");\n iac.addToIntervalStrings(\"1:90-110\");\n iac.intervalSetRule = IntervalSetRule.INTERSECTION;\n iac.intervalMergingRule = IntervalMergingRule.ALL;\n iac.getIntervals(hg19GenomeLocParser.getSequenceDictionary());\n }",
"public void parallelNoteEvent(Note note)\r\n {\r\n byte noteValue = note.getValue();\r\n if (voiceValue != 9) // added D G Gray 5th Feb 2017\r\n {\r\n noteValue += this.interval;\r\n note.setValue(noteValue);\r\n\t }\r\n\r\n\r\n getReturnPattern().addElement(note);\r\n }",
"WindowingClauseBetween createWindowingClauseBetween();",
"public List<Interval> merge(List<Interval> intervals) {\n ArrayList<Interval> result = new ArrayList<Interval>();\n if(intervals.size()==0) return result;\n Comparator<Interval> comp = new Comparator<Interval>() \n { \n @Override \n public int compare(Interval i1, Interval i2) \n { \n if(i1.start==i2.start){ \n return i1.end-i2.end;\n }\n return i1.start-i2.start; \n } \n }; \n Collections.sort(intervals,comp); \n Interval cur=intervals.get(0);\n \tfor(int i=1;i<intervals.size();i++){\n \t\tInterval newInterval=intervals.get(i);\n \t\tif(newInterval.start>cur.end){\n \t\t\tInterval tmp=new Interval(cur.start,cur.end);\n \t\t\tresult.add(tmp);\n \t\t\tcur.start=newInterval.start;\n \t\t\tcur.end=newInterval.end;\n \t\t}\n \t\telse{\n \t\t\tcur.start=Math.min(cur.start, newInterval.start);\n \t\t\tcur.end=Math.max(cur.end, newInterval.end);\n \t\t}\n \t}\n \tresult.add(cur);\n \treturn result;\n }",
"public List<Interval> merge(List<Interval> intervals) {\n // sort the interval list by start\n Collections.sort(intervals, new Comparator<Interval>() {\n @Override\n public int compare(Interval o1, Interval o2) {\n return o1.start - o2.start;\n }\n });\n // use a linked list as data structure\n LinkedList<Interval> output = new LinkedList<>();\n for (Interval interval : intervals) {\n if (output.isEmpty()) {\n output.addLast(interval);\n } else {\n if (interval.start <= output.getLast().end) {\n // if present interval.start <= last interval.end,\n // update last interval.end by max interval.end between present and last\n output.getLast().end = Math.max(interval.end, output.getLast().end);\n } else {\n output.addLast(interval);\n }\n }\n }\n return output;\n }",
"public static boolean intervalIntersect(float start1, float end1, float start2, float end2) {\n\t\treturn (start1 <= end2 && start2 <= end1);\n\t}",
"public static double toPeriodicInterval(double angle, double lowerBound, double upperBound, double period) {\n\n\n while (angle >= upperBound) {\n //Too large.\n angle -= period;\n }\n\n while (angle < lowerBound) {\n //Too small.\n angle += period;\n }\n\n return angle;\n\n }",
"public int interval() {\n return 30;\n }",
"public Double getCostInterval();",
"@Test\n public void testcalPerimeterRectangle2() {\n double ex = 8;\n \n startPoint.setX(-1);\n startPoint.setY(-1);\n endPoint.setX(-3);\n endPoint.setY(-3);\n \n double ac = rec.calPerimeterRectangle(startPoint, endPoint);\n assertEquals(ex, ac, 0);\n }",
"public void initialiserCompte() {\n DateTime dt1 = new DateTime(date1).withTimeAtStartOfDay();\n DateTime dt2 = new DateTime(date2).withEarlierOffsetAtOverlap();\n DateTime dtIt = new DateTime(date1).withTimeAtStartOfDay();\n Interval interval = new Interval(dt1, dt2);\n\n\n\n// while (dtIt.isBefore(dt2)) {\n while (interval.contains(dtIt)) {\n compte.put(dtIt.toDate(), 0);\n dtIt = dtIt.plusDays(1);\n }\n }",
"public static int secondsDifference(String start, String end) {\n int difference; //difference is initialized,and will be returned at the end.\n //firstsec is the amount of seconds past midnight in the start time, and\n //secondsec is the amount of seconds past midnight in the end time. In order to\n //calculate this, secondsAfterMidnight() method was called for start and end.\n int firstsec = secondsAfterMidnight(start); \n int secondsec = secondsAfterMidnight(end);\n //If start or end returns -1 through secondsAfterMidnight(), then the input was \n //not proper, so difference is set to -99999.\n if (firstsec == -1 || secondsec == -1){\n difference = -99999;\n }else { //if both inputs are proper, then proceed to calculating difference.\n difference = secondsec - firstsec;\n }\n return difference; //difference is returned to main. \n }",
"private Interval readRecordInterval(Record row, Session session) {\n Timestamp start = (Timestamp) session.getDatasourcePlatform().convertObject(row.get(\"recordinterval_0\"), java.sql.Timestamp.class);\n Timestamp end = (Timestamp) session.getDatasourcePlatform().convertObject(row.get(\"recordinterval\"), java.sql.Timestamp.class);\n return new Interval(start.getTime(), end.getTime());\n }",
"private Double getAdjRelativeRate(CurrencyType curr, int asOfDate, int interval) {\n CurrencySnapshot snap = curr.getSnapshotForDate(asOfDate);\n if (snap != null) {\n int snapDate = snap.getDateInt();\n // System.err.println(curr+\" \"+asOfDate+\" \"+interval+\" \"+snap);\n // First look in interval before the date: (T-I .. T]\n if ((DateUtil.incrementDate(asOfDate, 0, 0, -interval) < snapDate) && (snapDate <= asOfDate)) {\n return 1.0 / curr.adjustRateForSplitsInt(snapDate, snap.getRate());\n }\n // Now look in interval after the date: [T .. T+I)\n snap = curr.getSnapshotForDate(asOfDate + interval);\n if ((snap != null)\n && (asOfDate <= snapDate)\n && (snapDate < DateUtil.incrementDate(asOfDate, 0, 0, interval))) {\n return 1.0 / curr.adjustRateForSplitsInt(snapDate, snap.getRate());\n }\n }\n // No rate in interval\n return Double.NaN;\n }",
"public Intervals(Interval<T> interval) {\n add(interval);\n }",
"public static void verifySequence(double lower, double initial, double upper)\r\n/* 152: */ {\r\n/* 153:354 */ verifyInterval(lower, initial);\r\n/* 154:355 */ verifyInterval(initial, upper);\r\n/* 155: */ }",
"public void syncTicks(int noteLength){\n\t\tthis.ticksForNote = Mathematics.lcm(noteLength,this.ticksForNote); \n\t}",
"public double betweenAngle(Coordinates a, Coordinates b, Coordinates origin);",
"public static R1Interval fromPointPair(double p1, double p2) {\n R1Interval result = new R1Interval();\n result.initFromPointPair(p1, p2);\n return result;\n }",
"public static Interval union(Interval in1, Interval in2){\r\n if (Interval.intersection(in1, in2).isEmpty())\r\n return new Interval();\r\n double a = in1.getFirstExtreme();\r\n double b = in1.getSecondExtreme();\r\n double c = in2.getFirstExtreme();\r\n double d = in2.getSecondExtreme();\r\n double fe, se;\r\n char ai = in1.getFEincluded();\r\n char bi = in1.getSEincluded();\r\n char ci = in2.getFEincluded();\r\n char di = in2.getSEincluded();\r\n char fei, sei;\r\n if (a<c){\r\n fe = a;\r\n fei = ai;\r\n }\r\n else if (a>c){\r\n fe = c;\r\n fei = ci;\r\n }\r\n else{\r\n fe = a;\r\n fei = ai==ci?ai:'(';\r\n }\r\n if (d<b){\r\n se = b;\r\n sei = bi;\r\n }\r\n else if (d>b){\r\n se = d;\r\n sei = di;\r\n }\r\n else{\r\n se = b;\r\n sei = bi==di?bi:')';\r\n }\r\n return new Interval(fe,se,fei,sei);\r\n }",
"protected void update(IInterval interval) {}",
"@Test\n public void testcalPerimeterRectangle1() {\n double ex = 8;\n \n startPoint.setX(1);\n startPoint.setY(1);\n endPoint.setX(3);\n endPoint.setY(3);\n \n double ac = rec.calPerimeterRectangle(startPoint, endPoint);\n assertEquals(ex, ac, 0);\n }",
"private static double distanceRange(Range r1, Range r2) {\n if (r1 == null || r2 == null) {\n return 0D;\n }\n int a =\n Math.max(\n Math.abs(r1.getStartLine() - r2.getStartLine()),\n Math.abs(r1.getEndLine() - r2.getEndLine()));\n int b = myMax(r1.getStartLine(), r1.getEndLine(), r2.getStartLine(), r2.getEndLine());\n return formatDouble(1.0 - (double) a / b);\n }",
"public List<moneytree.persist.db.generated.tables.pojos.Income> fetchRangeOfNotes(String lowerInclusive, String upperInclusive) {\n return fetchRange(Income.INCOME.NOTES, lowerInclusive, upperInclusive);\n }",
"int getRecurrenceDuration();",
"public int getIntervalHours();",
"public static void intervalRange() {\n Observable.intervalRange(0L, 10L, 0L, 10L, TimeUnit.MILLISECONDS).\n subscribe(new MyObserver<>());\n }"
] | [
"0.6363616",
"0.59286886",
"0.5881099",
"0.57570857",
"0.5692534",
"0.5665836",
"0.5665825",
"0.5613125",
"0.5522168",
"0.5512087",
"0.5505175",
"0.5498478",
"0.5494831",
"0.5467736",
"0.5462708",
"0.5459885",
"0.5449059",
"0.5396003",
"0.5352296",
"0.5331038",
"0.53197753",
"0.5307365",
"0.529053",
"0.52779216",
"0.52647656",
"0.52624184",
"0.526109",
"0.52096075",
"0.5181215",
"0.5155974",
"0.51424235",
"0.51277465",
"0.5116911",
"0.50644886",
"0.50257915",
"0.5024348",
"0.499867",
"0.49891934",
"0.49869508",
"0.49811855",
"0.49793455",
"0.49563122",
"0.49522752",
"0.49506697",
"0.4948433",
"0.4938987",
"0.49151164",
"0.49074587",
"0.4895914",
"0.4890621",
"0.48832497",
"0.4880113",
"0.4873426",
"0.48659983",
"0.4861227",
"0.48424923",
"0.4838615",
"0.48331988",
"0.48283553",
"0.48224485",
"0.48179865",
"0.480785",
"0.48013297",
"0.47876847",
"0.47866455",
"0.47671577",
"0.47633",
"0.47597796",
"0.4746296",
"0.47393075",
"0.4734198",
"0.4730074",
"0.4729711",
"0.47265905",
"0.4720886",
"0.4700263",
"0.46981445",
"0.4683421",
"0.46817106",
"0.46800146",
"0.4667542",
"0.46646902",
"0.46549532",
"0.46445486",
"0.46375924",
"0.46374395",
"0.46355504",
"0.46351123",
"0.46350965",
"0.4634862",
"0.4634524",
"0.46325713",
"0.46275187",
"0.46226358",
"0.4619299",
"0.46073356",
"0.46068454",
"0.4604409",
"0.4595287",
"0.45944554",
"0.45936045"
] | 0.0 | -1 |
Method used to compute the Continuous Name Code of a input pitch | public static Integer calculateCNC(String inputNote)
{
Integer octave = Integer.parseInt(inputNote.substring(inputNote.length()-1, inputNote.length()));
Integer nameClass = getNameClass(inputNote.substring(0, 1));
//System.out.println("Inside calculateCNC parameter: octave - value: " + octave);
//System.out.println("Inside calculateCNC parameter: nameClass - value: " + nameClass);
return (octave * 7) + nameClass;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String codeToName(int code) throws IOException;",
"java.lang.String getCodeName();",
"public int chordPitchIndexForString(String chordName)\n {\n int chordPitchType = 0;\n if (chordName.equalsIgnoreCase(\"C\"))\n {\n chordPitchType = 0;\n }\n else if (chordName.equalsIgnoreCase(\"C#\"))\n {\n chordPitchType = 1;\n }\n else if (chordName.equalsIgnoreCase(\"D\"))\n {\n chordPitchType = 2;\n }\n else if (chordName.equalsIgnoreCase(\"D#\"))\n {\n chordPitchType = 3;\n }\n else if (chordName.equalsIgnoreCase(\"E\"))\n {\n chordPitchType = 4;\n }\n else if (chordName.equalsIgnoreCase(\"F\"))\n {\n chordPitchType = 5;\n }\n else if (chordName.equalsIgnoreCase(\"F#\"))\n {\n chordPitchType = 6;\n }\n else if (chordName.equalsIgnoreCase(\"G\"))\n {\n chordPitchType = 7;\n }\n else if (chordName.equalsIgnoreCase(\"G#\"))\n {\n chordPitchType = 8;\n }\n else if (chordName.equalsIgnoreCase(\"A\"))\n {\n chordPitchType = 9;\n }\n else if (chordName.equalsIgnoreCase(\"A#\"))\n {\n chordPitchType = 10;\n }\n else if (chordName.equalsIgnoreCase(\"B\"))\n {\n chordPitchType = 11;\n }\n else\n {\n System.out.println(\"WE'VE BEEN HIT CAPTAIN! ERROR ON THE PORT BOW!\");\n }\n \n return chordPitchType;\n }",
"public String code_to_name (char code) {\n if (code == STOP_CODE) {\r\n return \"Stop\";\r\n } else {\r\n return (String) code_to_name.get((new Character(code)).toString().toUpperCase());\r\n }\r\n }",
"public String getPitchAsString(){ return Integer.toString(this.pitch);}",
"org.hl7.fhir.CodeableConcept getName();",
"char[] getName();",
"private static String getUniNameOfCodePoint(int codePoint) {\n/* 111 */ String hex = Integer.toString(codePoint, 16).toUpperCase(Locale.US);\n/* 112 */ switch (hex.length()) {\n/* */ \n/* */ case 1:\n/* 115 */ return \"uni000\" + hex;\n/* */ case 2:\n/* 117 */ return \"uni00\" + hex;\n/* */ case 3:\n/* 119 */ return \"uni0\" + hex;\n/* */ } \n/* 121 */ return \"uni\" + hex;\n/* */ }",
"String getOutputName();",
"@Override\n public String getCode(String name) {\n String type = keywords.stream()\n .map(keyword -> keyword.getCode())\n .collect(Collectors.joining(\" \"));\n\n String varName = name == null ? \"\" : \" \" + name;\n return type + varName;\n /*\n if (name == null) {\n return type;\n }\n \n return type + \" \" + name;\n */\n }",
"public int getAudioJittcomp();",
"String printName(String input);",
"public static int getPCM(String name) {\n return mapPCM.get(name);\n }",
"float compress(){\n float lower = mp.get(sequence.charAt(0)).lowRange;\n float upper = mp.get(sequence.charAt(0)).upperRange;\n for (int i = 1; i < sequence.length(); i++) {\n float newLower = lower + (upper - lower)*mp.get(sequence.charAt(i)).lowRange;\n float newUpper = lower + (upper - lower)*mp.get(sequence.charAt(i)).upperRange;\n lower = newLower;\n upper = newUpper;\n }\n ///picking value between final lower and upper\n float compressionCode = (float)(Math.floor(upper * 1000.0) / 1000.0);\n return compressionCode;\n }",
"double getPitch();",
"int getNumCyc();",
"public static Integer getPitchClass(String inputNote)\r\n {\r\n //System.out.println(\"Inside getPitchClass inputNote: \" + inputNote);\r\n \r\n Integer pitchClassValue = -1;\r\n ArrayList<String> pitch0 = new ArrayList<>(Arrays.asList(\"C\",\"B#\",\"Dbb\"));\r\n ArrayList<String> pitch1 = new ArrayList<>(Arrays.asList(\"C#\",\"Db\",\"B##\"));\r\n ArrayList<String> pitch2 = new ArrayList<>(Arrays.asList(\"D\",\"C##\",\"Ebb\"));\r\n ArrayList<String> pitch3 = new ArrayList<>(Arrays.asList(\"D#\",\"Eb\",\"Fbb\"));\r\n ArrayList<String> pitch4 = new ArrayList<>(Arrays.asList(\"E\",\"D##\",\"Fb\"));\r\n ArrayList<String> pitch5 = new ArrayList<>(Arrays.asList(\"F\",\"E#\",\"Gbb\"));\r\n ArrayList<String> pitch6 = new ArrayList<>(Arrays.asList(\"F#\",\"Gb\",\"E#\"));\r\n ArrayList<String> pitch7 = new ArrayList<>(Arrays.asList(\"G\",\"F##\",\"Abb\"));\r\n ArrayList<String> pitch8 = new ArrayList<>(Arrays.asList(\"G#\",\"Ab\"));\r\n ArrayList<String> pitch9 = new ArrayList<>(Arrays.asList(\"A\",\"G##\",\"Bbb\"));\r\n ArrayList<String> pitch10 = new ArrayList<>(Arrays.asList(\"A#\",\"Bb\",\"Cbb\"));\r\n ArrayList<String> pitch11 = new ArrayList<>(Arrays.asList(\"B\",\"A##\",\"Cb\"));\r\n \r\n TreeMap<Integer, ArrayList<String>> pitchClassMap = new TreeMap<>();\r\n pitchClassMap.put(0, pitch0);\r\n pitchClassMap.put(1, pitch1);\r\n pitchClassMap.put(2, pitch2);\r\n pitchClassMap.put(3, pitch3);\r\n pitchClassMap.put(4, pitch4);\r\n pitchClassMap.put(5, pitch5);\r\n pitchClassMap.put(6, pitch6);\r\n pitchClassMap.put(7, pitch7);\r\n pitchClassMap.put(8, pitch8);\r\n pitchClassMap.put(9, pitch9);\r\n pitchClassMap.put(10, pitch10);\r\n pitchClassMap.put(11, pitch11);\r\n \r\n for(Integer index : pitchClassMap.keySet())\r\n {\r\n if(pitchClassMap.get(index).contains(inputNote))\r\n pitchClassValue = index;\r\n }\r\n //System.out.println(\"Inside getPitchClass pitchClassValue: \" + pitchClassValue);\r\n return pitchClassValue;\r\n }",
"private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}",
"public String getName() {\n\tif (num_comp == 0)\n\t return(\"\");\n\treturn(comp[num_comp-1]);\n }",
"public String nameFrequencyBin(int t) {\r\n\t switch(t) {\r\n\t case 0x00: return \"Delta (2-4)\";\r\n\t case 0x01: return \"Theta (4-8)\";\r\n\t case 0x02: return \"Alpha (8-13)\";\r\n\t case 0x03: return \"Beta1 (13-18)\";\r\n\t case 0x04: return \"Beta2 (18-21)\";\r\n\t case 0x05: return \"Beta3 (11-14)\";\r\n\t case 0x06: return \"Gamma (30-50)\";\r\n\t default: return \"-\";\r\n\t }\r\n\t}",
"public String getName(){\n if(number == 1) return \"ace\";\n if(number == 13) return \"king\";\n if(number == 12) return \"queen\";\n if(number == 11) return \"jack\";\n else return \"\" + number;\n }",
"@Deprecated\n@ProwideDeprecated(phase4 = TargetYear.SRU2021)\npublic interface SequenceName {\n String A = \"A\";\n String A1 = \"A1\";\n String A1a = \"A1a\";\n String A1b = \"A1b\";\n String A1c = \"A1c\";\n String A1d = \"A1d\";\n String A1e = \"A1e\";\n String A2 = \"A2\";\n String A2a = \"A2a\";\n String A2b = \"A2b\";\n String A2c = \"A2c\";\n String A2d = \"A2d\";\n String A2e = \"A2e\";\n String A3 = \"A3\";\n String A3a = \"A3a\";\n String A3b = \"A3b\";\n String A3c = \"A3c\";\n String A3d = \"A3d\";\n String A3e = \"A3e\";\n String A4 = \"A4\";\n String A4a = \"A4a\";\n String A4b = \"A4b\";\n String A4c = \"A4c\";\n String A4d = \"A4d\";\n String A4e = \"A4e\";\n String A5 = \"A5\";\n String A5a = \"A5a\";\n String A5b = \"A5b\";\n String A5c = \"A5c\";\n String A5d = \"A5d\";\n String A5e = \"A5e\";\n String B = \"B\";\n String B1 = \"B1\";\n String B1a = \"B1a\";\n String B1b = \"B1b\";\n String B1c = \"B1c\";\n String B1d = \"B1d\";\n String B1e = \"B1e\";\n String B2 = \"B2\";\n String B2a = \"B2a\";\n String B2b = \"B2b\";\n String B2c = \"B2c\";\n String B2d = \"B2d\";\n String B2e = \"B2e\";\n String B3 = \"B3\";\n String B3a = \"B3a\";\n String B3b = \"B3b\";\n String B3c = \"B3c\";\n String B3d = \"B3d\";\n String B3e = \"B3e\";\n String B4 = \"B4\";\n String B4a = \"B4a\";\n String B4b = \"B4b\";\n String B4c = \"B4c\";\n String B4d = \"B4d\";\n String B4e = \"B4e\";\n String B5 = \"B5\";\n String B5a = \"B5a\";\n String B5b = \"B5b\";\n String B5c = \"B5c\";\n String B5d = \"B5d\";\n String B5e = \"B5e\";\n String C = \"C\";\n String C1 = \"C1\";\n String C1a = \"C1a\";\n String C1b = \"C1b\";\n String C1c = \"C1c\";\n String C1d = \"C1d\";\n String C1e = \"C1e\";\n String C2 = \"C2\";\n String C2a = \"C2a\";\n String C2b = \"C2b\";\n String C2c = \"C2c\";\n String C2d = \"C2d\";\n String C2e = \"C2e\";\n String C3 = \"C3\";\n String C3a = \"C3a\";\n String C3b = \"C3b\";\n String C3c = \"C3c\";\n String C3d = \"C3d\";\n String C3e = \"C3e\";\n String C4 = \"C4\";\n String C4a = \"C4a\";\n String C4b = \"C4b\";\n String C4c = \"C4c\";\n String C4d = \"C4d\";\n String C4e = \"C4e\";\n String C5 = \"C5\";\n String C5a = \"C5a\";\n String C5b = \"C5b\";\n String C5c = \"C5c\";\n String C5d = \"C5d\";\n String C5e = \"C5e\";\n String D = \"D\";\n String D1 = \"D1\";\n String D1a = \"D1a\";\n String D1b = \"D1b\";\n String D1c = \"D1c\";\n String D1d = \"D1d\";\n String D1e = \"D1e\";\n String D2 = \"D2\";\n String D2a = \"D2a\";\n String D2b = \"D2b\";\n String D2c = \"D2c\";\n String D2d = \"D2d\";\n String D2e = \"D2e\";\n String D3 = \"D3\";\n String D3a = \"D3a\";\n String D3b = \"D3b\";\n String D3c = \"D3c\";\n String D3d = \"D3d\";\n String D3e = \"D3e\";\n String D4 = \"D4\";\n String D4a = \"D4a\";\n String D4b = \"D4b\";\n String D4c = \"D4c\";\n String D4d = \"D4d\";\n String D4e = \"D4e\";\n String D5 = \"D5\";\n String D5a = \"D5a\";\n String D5b = \"D5b\";\n String D5c = \"D5c\";\n String D5d = \"D5d\";\n String D5e = \"D5e\";\n String E = \"E\";\n String E1 = \"E1\";\n String E2 = \"E2\";\n String E2a = \"E2a\";\n String E2b = \"E2b\";\n String E2c = \"E2c\";\n String E2d = \"E2d\";\n String E2e = \"E2e\";\n String E3 = \"E3\";\n String E3a = \"E3a\";\n String E3b = \"E3b\";\n String E3c = \"E3c\";\n String E3d = \"E3d\";\n String E3e = \"E3e\";\n String E4 = \"E4\";\n String E4a = \"E4a\";\n String E4b = \"E4b\";\n String E4c = \"E4c\";\n String E4d = \"E4d\";\n String E4e = \"E4e\";\n String E5 = \"E5\";\n String E5a = \"E5a\";\n String E5b = \"E5b\";\n String E5c = \"E5c\";\n String E5d = \"E5d\";\n String E5e = \"E5e\";\n\n String F = \"F\";\n String F1 = \"F1\";\n String F2 = \"F2\";\n String F3 = \"F3\";\n String F3a = \"F3a\";\n String F3b = \"F3b\";\n String F3c = \"F3c\";\n String F3d = \"F3d\";\n String F3e = \"F3e\";\n String F4 = \"F4\";\n String F4a = \"F4a\";\n String F4b = \"F4b\";\n String F4c = \"F4c\";\n String F4d = \"F4d\";\n String F4e = \"F4e\";\n String F5 = \"F5\";\n String F5a = \"F5a\";\n String F5b = \"F5b\";\n String F5c = \"F5c\";\n String F5d = \"F5d\";\n String F5e = \"F5e\";\n String G = \"G\";\n String G1 = \"G1\";\n String G1a = \"G1a\";\n String G1b = \"G1b\";\n String G1c = \"G1c\";\n String G1d = \"G1d\";\n String G1e = \"G1e\";\n String G2 = \"G2\";\n String G3 = \"G3\";\n String G4 = \"G4\";\n String G4a = \"G4a\";\n String G4b = \"G4b\";\n String G4c = \"G4c\";\n String G4d = \"G4d\";\n String G4e = \"G4e\";\n String G5 = \"G5\";\n String G5a = \"G5a\";\n String G5b = \"G5b\";\n String G5c = \"G5c\";\n String G5d = \"G5d\";\n String G5e = \"G5e\";\n String H = \"H\";\n String H1 = \"H1\";\n String H1a = \"H1a\";\n String H1b = \"H1b\";\n String H1c = \"H1c\";\n String H1d = \"H1d\";\n String H1e = \"H1e\";\n String H2 = \"H2\";\n String H2a = \"H2a\";\n String H2b = \"H2b\";\n String H2c = \"H2c\";\n String H2d = \"H2d\";\n String H2e = \"H2e\";\n String H3 = \"H3\";\n String H4 = \"H4\";\n String H5 = \"H5\";\n String H5a = \"H5a\";\n String H5b = \"H5b\";\n String H5c = \"H5c\";\n String H5d = \"H5d\";\n String H5e = \"H5e\";\n String I = \"I\";\n String I1 = \"I1\";\n String I1a = \"I1a\";\n String I1b = \"I1b\";\n String I1c = \"I1c\";\n String I1d = \"I1d\";\n String I1e = \"I1e\";\n String I2 = \"I2\";\n String I2a = \"I2a\";\n String I2b = \"I2b\";\n String I2c = \"I2c\";\n String I2d = \"I2d\";\n String I2e = \"I2e\";\n String I3 = \"I3\";\n String I3a = \"I3a\";\n String I3b = \"I3b\";\n String I3c = \"I3c\";\n String I3d = \"I3d\";\n String I3e = \"I3e\";\n String I4 = \"I4\";\n String I5 = \"I5\";\n String J = \"J\";\n String J1 = \"J1\";\n String J1a = \"J1a\";\n String J1b = \"J1b\";\n String J1c = \"J1c\";\n String J1d = \"J1d\";\n String J1e = \"J1e\";\n String J2 = \"J2\";\n String J2a = \"J2a\";\n String J2b = \"J2b\";\n String J2c = \"J2c\";\n String J2d = \"J2d\";\n String J2e = \"J2e\";\n String J3 = \"J3\";\n String J3a = \"J3a\";\n String J3b = \"J3b\";\n String J3c = \"J3c\";\n String J3d = \"J3d\";\n String J3e = \"J3e\";\n String J4 = \"J4\";\n String J4a = \"J4a\";\n String J4b = \"J4b\";\n String J4c = \"J4c\";\n String J4d = \"J4d\";\n String J4e = \"J4e\";\n String J5 = \"J5\";\n String K = \"K\";\n String K1 = \"K1\";\n String K1a = \"K1a\";\n String K1b = \"K1b\";\n String K1c = \"K1c\";\n String K1d = \"K1d\";\n String K1e = \"K1e\";\n String K2 = \"K2\";\n String K2a = \"K2a\";\n String K2b = \"K2b\";\n String K2c = \"K2c\";\n String K2d = \"K2d\";\n String K2e = \"K2e\";\n String K3 = \"K3\";\n String K3a = \"K3a\";\n String K3b = \"K3b\";\n String K3c = \"K3c\";\n String K3d = \"K3d\";\n String K3e = \"K3e\";\n String K4 = \"K4\";\n String K4a = \"K4a\";\n String K4b = \"K4b\";\n String K4c = \"K4c\";\n String K4d = \"K4d\";\n String K4e = \"K4e\";\n String K5 = \"K5\";\n String K5a = \"K5a\";\n String K5b = \"K5b\";\n String K5c = \"K5c\";\n String K5d = \"K5d\";\n String K5e = \"K5e\";\n String L = \"L\";\n String L1 = \"L1\";\n String L2 = \"L2\";\n String L2a = \"L2a\";\n String L2b = \"L2b\";\n String L2c = \"L2c\";\n String L2d = \"L2d\";\n String L2e = \"L2e\";\n String L3 = \"L3\";\n String L3a = \"L3a\";\n String L3b = \"L3b\";\n String L3c = \"L3c\";\n String L3d = \"L3d\";\n String L3e = \"L3e\";\n String L4 = \"L4\";\n String L4a = \"L4a\";\n String L4b = \"L4b\";\n String L4c = \"L4c\";\n String L4d = \"L4d\";\n String L4e = \"L4e\";\n String L5 = \"L5\";\n String L5a = \"L5a\";\n String L5b = \"L5b\";\n String L5c = \"L5c\";\n String L5d = \"L5d\";\n String L5e = \"L5e\";\n\n String M1 = \"M1\";\n String M2 = \"M2\";\n String M3 = \"M3\";\n String M3a = \"M3a\";\n String M3b = \"M3b\";\n String M3c = \"M3c\";\n String M3d = \"M3d\";\n String M3e = \"M3e\";\n String M4 = \"M4\";\n String M4a = \"M4a\";\n String M4b = \"M4b\";\n String M4c = \"M4c\";\n String M4d = \"M4d\";\n String M4e = \"M4e\";\n String M5 = \"M5\";\n String M5a = \"M5a\";\n String M5b = \"M5b\";\n String M5c = \"M5c\";\n String M5d = \"M5d\";\n String M5e = \"M5e\";\n\n String N1 = \"N1\";\n String N1a = \"N1a\";\n String N1b = \"N1b\";\n String N1c = \"N1c\";\n String N1d = \"N1d\";\n String N1e = \"N1e\";\n String N2 = \"N2\";\n String N3 = \"N3\";\n String N4 = \"N4\";\n String N4a = \"N4a\";\n String N4b = \"N4b\";\n String N4c = \"N4c\";\n String N4d = \"N4d\";\n String N4e = \"N4e\";\n String N5 = \"N5\";\n String N5a = \"N5a\";\n String N5b = \"N5b\";\n String N5c = \"N5c\";\n String N5d = \"N5d\";\n String N5e = \"N5e\";\n String O = \"O\";\n\n String O1 = \"O1\";\n String O1a = \"O1a\";\n String O1b = \"O1b\";\n String O1c = \"O1c\";\n String O1d = \"O1d\";\n String O1e = \"O1e\";\n String O2 = \"O2\";\n String O2a = \"O2a\";\n String O2b = \"O2b\";\n String O2c = \"O2c\";\n String O2d = \"O2d\";\n String O2e = \"O2e\";\n String O3 = \"O3\";\n String O4 = \"O4\";\n String O5 = \"O5\";\n String O5a = \"O5a\";\n String O5b = \"O5b\";\n String O5c = \"O5c\";\n String O5d = \"O5d\";\n String O5e = \"O5e\";\n String P = \"P\";\n\n String P1 = \"P1\";\n String P1a = \"P1a\";\n String P1b = \"P1b\";\n String P1c = \"P1c\";\n String P1d = \"P1d\";\n String P1e = \"P1e\";\n String P2 = \"P2\";\n String P2a = \"P2a\";\n String P2b = \"P2b\";\n String P2c = \"P2c\";\n String P2d = \"P2d\";\n String P2e = \"P2e\";\n String P3 = \"P3\";\n String P3a = \"P3a\";\n String P3b = \"P3b\";\n String P3c = \"P3c\";\n String P3d = \"P3d\";\n String P3e = \"P3e\";\n String P4 = \"P4\";\n String P5 = \"P5\";\n\n String Q1 = \"Q1\";\n String Q1a = \"Q1a\";\n String Q1b = \"Q1b\";\n String Q1c = \"Q1c\";\n String Q1d = \"Q1d\";\n String Q1e = \"Q1e\";\n String Q2 = \"Q2\";\n String Q2a = \"Q2a\";\n String Q2b = \"Q2b\";\n String Q2c = \"Q2c\";\n String Q2d = \"Q2d\";\n String Q2e = \"Q2e\";\n String Q3 = \"Q3\";\n String Q3a = \"Q3a\";\n String Q3b = \"Q3b\";\n String Q3c = \"Q3c\";\n String Q3d = \"Q3d\";\n String Q3e = \"Q3e\";\n String Q4 = \"Q4\";\n String Q4a = \"Q4a\";\n String Q4b = \"Q4b\";\n String Q4c = \"Q4c\";\n String Q4d = \"Q4d\";\n String Q4e = \"Q4e\";\n String Q5 = \"Q5\";\n String R = \"R\";\n String R1 = \"R1\";\n String R1a = \"R1a\";\n String R1b = \"R1b\";\n String R1c = \"R1c\";\n String R1d = \"R1d\";\n String R1e = \"R1e\";\n String R2 = \"R2\";\n String R2a = \"R2a\";\n String R2b = \"R2b\";\n String R2c = \"R2c\";\n String R2d = \"R2d\";\n String R2e = \"R2e\";\n String R3 = \"R3\";\n String R3a = \"R3a\";\n String R3b = \"R3b\";\n String R3c = \"R3c\";\n String R3d = \"R3d\";\n String R3e = \"R3e\";\n String R4 = \"R4\";\n String R4a = \"R4a\";\n String R4b = \"R4b\";\n String R4c = \"R4c\";\n String R4d = \"R4d\";\n String R4e = \"R4e\";\n String R5 = \"R5\";\n String R5a = \"R5a\";\n String R5b = \"R5b\";\n String R5c = \"R5c\";\n String R5d = \"R5d\";\n String R5e = \"R5e\";\n String S = \"S\";\n String S1 = \"S1\";\n String S2 = \"S2\";\n String S2a = \"S2a\";\n String S2b = \"S2b\";\n String S2c = \"S2c\";\n String S2d = \"S2d\";\n String S2e = \"S2e\";\n String S3 = \"S3\";\n String S3a = \"S3a\";\n String S3b = \"S3b\";\n String S3c = \"S3c\";\n String S3d = \"S3d\";\n String S3e = \"S3e\";\n String S4 = \"S4\";\n String S4a = \"S4a\";\n String S4b = \"S4b\";\n String S4c = \"S4c\";\n String S4d = \"S4d\";\n String S4e = \"S4e\";\n String S5 = \"S5\";\n String S5a = \"S5a\";\n String S5b = \"S5b\";\n String S5c = \"S5c\";\n String S5d = \"S5d\";\n String S5e = \"S5e\";\n\n String T = \"T\";\n String T1 = \"T1\";\n String T2 = \"T2\";\n String T3 = \"T3\";\n String T3a = \"T3a\";\n String T3b = \"T3b\";\n String T3c = \"T3c\";\n String T3d = \"T3d\";\n String T3e = \"T3e\";\n String T4 = \"T4\";\n String T4a = \"T4a\";\n String T4b = \"T4b\";\n String T4c = \"T4c\";\n String T4d = \"T4d\";\n String T4e = \"T4e\";\n String T5 = \"T5\";\n String T5a = \"T5a\";\n String T5b = \"T5b\";\n String T5c = \"T5c\";\n String T5d = \"T5d\";\n String T5e = \"T5e\";\n\n String U = \"U\";\n String U1 = \"U1\";\n String U1a = \"U1a\";\n String U1b = \"U1b\";\n String U1c = \"U1c\";\n String U1d = \"U1d\";\n String U1e = \"U1e\";\n String U2 = \"U2\";\n String U3 = \"U3\";\n String U4 = \"U4\";\n String U4a = \"U4a\";\n String U4b = \"U4b\";\n String U4c = \"U4c\";\n String U4d = \"U4d\";\n String U4e = \"U4e\";\n String U5 = \"U5\";\n String U5a = \"U5a\";\n String U5b = \"U5b\";\n String U5c = \"U5c\";\n String U5d = \"U5d\";\n String U5e = \"U5e\";\n String V = \"V\";\n\n String V1 = \"V1\";\n String V1a = \"V1a\";\n String V1b = \"V1b\";\n String V1c = \"V1c\";\n String V1d = \"V1d\";\n String V1e = \"V1e\";\n String V2 = \"V2\";\n String V2a = \"V2a\";\n String V2b = \"V2b\";\n String V2c = \"V2c\";\n String V2d = \"V2d\";\n String V2e = \"V2e\";\n String V3 = \"V3\";\n String V4 = \"V4\";\n String V5 = \"V5\";\n String V5a = \"V5a\";\n String V5b = \"V5b\";\n String V5c = \"V5c\";\n String V5d = \"V5d\";\n String V5e = \"V5e\";\n String W = \"W\";\n\n String W1 = \"W1\";\n String W1a = \"W1a\";\n String W1b = \"W1b\";\n String W1c = \"W1c\";\n String W1d = \"W1d\";\n String W1e = \"W1e\";\n String W2 = \"W2\";\n String W2a = \"W2a\";\n String W2b = \"W2b\";\n String W2c = \"W2c\";\n String W2d = \"W2d\";\n String W2e = \"W2e\";\n String W3 = \"W3\";\n String W3a = \"W3a\";\n String W3b = \"W3b\";\n String W3c = \"W3c\";\n String W3d = \"W3d\";\n String W3e = \"W3e\";\n String W4 = \"W4\";\n String W5 = \"W5\";\n\n String X1 = \"X1\";\n String X1a = \"X1a\";\n String X1b = \"X1b\";\n String X1c = \"X1c\";\n String X1d = \"X1d\";\n String X1e = \"X1e\";\n String X2 = \"X2\";\n String X2a = \"X2a\";\n String X2b = \"X2b\";\n String X2c = \"X2c\";\n String X2d = \"X2d\";\n String X2e = \"X2e\";\n String X3 = \"X3\";\n String X3a = \"X3a\";\n String X3b = \"X3b\";\n String X3c = \"X3c\";\n String X3d = \"X3d\";\n String X3e = \"X3e\";\n String X4 = \"X4\";\n String X4a = \"X4a\";\n String X4b = \"X4b\";\n String X4c = \"X4c\";\n String X4d = \"X4d\";\n String X4e = \"X4e\";\n String X5 = \"X5\";\n String Y = \"Y\";\n String Y1 = \"Y1\";\n String Y1a = \"Y1a\";\n String Y1b = \"Y1b\";\n String Y1c = \"Y1c\";\n String Y1d = \"Y1d\";\n String Y1e = \"Y1e\";\n String Y2 = \"Y2\";\n String Y2a = \"Y2a\";\n String Y2b = \"Y2b\";\n String Y2c = \"Y2c\";\n String Y2d = \"Y2d\";\n String Y2e = \"Y2e\";\n String Y3 = \"Y3\";\n String Y3a = \"Y3a\";\n String Y3b = \"Y3b\";\n String Y3c = \"Y3c\";\n String Y3d = \"Y3d\";\n String Y3e = \"Y3e\";\n String Y4 = \"Y4\";\n String Y4a = \"Y4a\";\n String Y4b = \"Y4b\";\n String Y4c = \"Y4c\";\n String Y4d = \"Y4d\";\n String Y4e = \"Y4e\";\n String Y5 = \"Y5\";\n String Y5a = \"Y5a\";\n String Y5b = \"Y5b\";\n String Y5c = \"Y5c\";\n String Y5d = \"Y5d\";\n String Y5e = \"Y5e\";\n String Z = \"Z\";\n String Z1 = \"Z1\";\n String Z2 = \"Z2\";\n String Z2a = \"Z2a\";\n String Z2b = \"Z2b\";\n String Z2c = \"Z2c\";\n String Z2d = \"Z2d\";\n String Z2e = \"Z2e\";\n String Z3 = \"Z3\";\n String Z3a = \"Z3a\";\n String Z3b = \"Z3b\";\n String Z3c = \"Z3c\";\n String Z3d = \"Z3d\";\n String Z3e = \"Z3e\";\n String Z4 = \"Z4\";\n String Z4a = \"Z4a\";\n String Z4b = \"Z4b\";\n String Z4c = \"Z4c\";\n String Z4d = \"Z4d\";\n String Z4e = \"Z4e\";\n String Z5 = \"Z5\";\n String Z5a = \"Z5a\";\n String Z5b = \"Z5b\";\n String Z5c = \"Z5c\";\n String Z5d = \"Z5d\";\n String Z5e = \"Z5e\";\n}",
"public final String getLabelCode() {\r\n\t\tString label = this.label;\r\n\t\tif (StringUtil.isEmpty(label))\r\n\t\t\treturn \"\";\r\n\t\tStringBuilder labelCode = new StringBuilder();\r\n\t\tint startIndex = 0;\r\n\t\tfor (int i=0; i<label.length();i++) {\r\n\t\t\tif (label.charAt(i) >= 'A' && label.charAt(i)<= 'Z') {\r\n\t\t\t\tif (startIndex!=0) {\r\n\t\t\t\t\tlabelCode.deleteCharAt(startIndex-1);\r\n\t\t\t\t\tlabelCode.append(\"-\");\r\n\t\t\t\t}\r\n\t\t\t\tlabelCode.append(label.substring(startIndex, i).toLowerCase());\r\n\t\t\t\tstartIndex = i;\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (startIndex<label.length()) {\r\n\t\t\tif (startIndex!=0) {\r\n\t\t\t\tlabelCode.deleteCharAt(startIndex-1);\r\n\t\t\t\tlabelCode.append(\"-\");\r\n\t\t\t}\r\n\t\t\tlabelCode.append(label.substring(startIndex).toLowerCase());\r\n\t\t}\r\n\t\treturn labelCode.toString();\r\n\t}",
"public static String generatePatientName(){\n\n\t\tString retName = \"\";\t// return this string\n\n\t\t// Seed random generator\n\t\tRandom generator = new Random();\n\n\t\tint length = getRandomBetween(5,6);\n\n\t\t// CVCCVC or VCCVCV\n\t\tif(getRandomBetween(1,2) < 2)\n\t\t{\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName = retName.toUpperCase();\n\t\t\tretName += getRandomVowel();\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName += getRandomConsonant();\n\t\t\tif (length >= 5) { retName += getRandomVowel(); }\n\t\t\tif (length >= 6) { retName += getRandomConsonant(); }\n\t\t}\n\t\telse\n\t\t{\n\t\t\tretName += getRandomVowel();\n\t\t\tretName = retName.toUpperCase();\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName += getRandomVowel();\n\t\t\tif (length >= 5) { retName += getRandomConsonant(); }\n\t\t\tif (length >= 6) { retName += getRandomVowel(); }\n\t\t}\n\n\t\treturn retName;\n\t}",
"public abstract String getRawName();",
"private String name() {\n\t\tif (currentIndex >= data.length\n\t\t\t\t|| !Character.isLetter(data[currentIndex])) {\n\t\t\tthrow new LexerException();\n\t\t}\n\n\t\tString value = String.valueOf(data[currentIndex++]);\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& (Character.isLetter(data[currentIndex])\n\t\t\t\t\t\t|| data[currentIndex] == '_'\n\t\t\t\t\t\t|| Character.isDigit(data[currentIndex]))) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\n\t\treturn value;\n\t}",
"private static native String getNameImpl(int codePoint);",
"@Override\n public String toString() {\n switch (this) {\n case CODE128_A:\n return \"code128A\";\n case CODE25INTER:\n return \"2/5 interleave\";\n default:\n return name();\n }\n }",
"public String getName() {\n/* 50 */ return \"M\";\n/* */ }",
"public String getPitch()\n\t{\n\t\treturn pitch.getText();\n\t}",
"float getPitch();",
"float getPitch();",
"private long getSuffixCValue(int sufIndex){\n long result = 0;\n for(int index = sufIndex; index<number;index++){\n result = result^array[index];\n }\n return result;\n }",
"public String toString() {return name().charAt(0) + name().substring(1).toLowerCase();}",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"public String makeName() {\r\n String result = makeNameKOL();\r\n if(previousNames == null || previousNames.size() == maxNames) {\r\n return result;\r\n }\r\n \r\n while(previousNames.contains(result)) {\r\n result = makeNameKOL();\r\n }\r\n \r\n return result;\r\n }",
"String getPresetName();",
"private String name() {\n return Strings.concat(Token.DOLLAR, name.string());\n }",
"public String getName()\r\n {\n return \"arctan\";\r\n }",
"static String m33125a(String name) {\n StringBuilder fieldNameBuilder = new StringBuilder();\n int index = 0;\n char firstCharacter = name.charAt(0);\n int length = name.length();\n while (index < length - 1 && !Character.isLetter(firstCharacter)) {\n fieldNameBuilder.append(firstCharacter);\n index++;\n firstCharacter = name.charAt(index);\n }\n if (Character.isUpperCase(firstCharacter)) {\n return name;\n }\n fieldNameBuilder.append(m33124a(Character.toUpperCase(firstCharacter), name, index + 1));\n return fieldNameBuilder.toString();\n }",
"String getName(Formula f);",
"String nameLabel();",
"com.google.protobuf.ByteString\n getCodeNameBytes();",
"public abstract String getCvName();",
"public String getName() throws PDFNetException {\n/* 537 */ return GetName(this.a);\n/* */ }",
"public char get_floating_suffix();",
"Caseless getName();",
"private int nextSuffix() {\r\n\t\t\tint unsignedByte = suffixes[index] & 0xFF;\r\n\r\n\t\t\tint suffix = unsignedByte + 1;\r\n\t\t\tsuffix += (256 * (offset));\r\n\r\n\t\t\tif (index < 255) {\r\n\t\t\t\tindex++;\r\n\t\t\t} else {\r\n\t\t\t\tindex = 0;\r\n\t\t\t\toffset++;\r\n\t\t\t}\r\n\t\t\treturn suffix;\r\n\t\t}",
"private String rainbowColoredName(String name) {\n\t\tStringBuilder rainbowName = new StringBuilder();\n\t\tfor (char c: name.toCharArray()) {\n\t\t\trainbowName.append(randomRainbowColor());\n\t\t\trainbowName.append(c);\n\t\t}\n\t\treturn rainbowName.toString();\n\t}",
"@Override\n public String name(String name, Meter.Type type, @Nullable String baseUnit) {\n String conventionName = NamingConvention.snakeCase.name(name, type, baseUnit);\n\n switch (type) {\n case COUNTER:\n case DISTRIBUTION_SUMMARY:\n case GAUGE:\n if (baseUnit != null && !conventionName.endsWith(\"_\" + baseUnit))\n conventionName += \"_\" + baseUnit;\n break;\n }\n\n switch (type) {\n case COUNTER:\n if (!conventionName.endsWith(\"_total\"))\n conventionName += \"_total\";\n break;\n case TIMER:\n case LONG_TASK_TIMER:\n if (conventionName.endsWith(timerSuffix)) {\n conventionName += \"_seconds\";\n }\n else if (!conventionName.endsWith(\"_seconds\"))\n conventionName += timerSuffix + \"_seconds\";\n break;\n }\n\n String sanitized = nameChars.matcher(conventionName).replaceAll(SEPARATOR);\n if (!Character.isLetter(sanitized.charAt(0))) {\n sanitized = \"m_\" + sanitized;\n }\n return sanitized;\n }",
"public String CodeInterpreter() {\n\n\t\tString timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n\t\treturn \"DA\" + \"_\" + timeStamp;\n\t}",
"public int getSignalNameNumber(String name);",
"@Override\n\tpublic String getName() {\n\t\treturn \"Rotera 90\\u00b0 höger\";\n\t}",
"@Override\n\tpublic String getName() {\n\t\treturn \"Rotera 90\\u00b0 höger\";\n\t}",
"public String getName() {\n\t\tInteger inicio = indices.elementAt(0);\n\t\tInteger fin = (indices.size() > 1 ? indices.elementAt(1) : contenido.length());\n\t\treturn contenido.substring(inicio, fin-1);\n\t}",
"private String getSourceName(JCas pJCas) {\n \n String sourceURI = getReferenceLocation(pJCas);\n String name = null;\n if (sourceURI != null) {\n File aFile = new File(sourceURI);\n name = aFile.getName();\n \n } else {\n name = \"knowtator_\" + String.valueOf(this.inputFileCounter++);\n }\n \n return name;\n }",
"int getNameSourceStart();",
"public String algorithmName();",
"@Override\n\tpublic void handlePitch(PitchDetectionResult pitchDetectionResult, AudioEvent audioEvent) {\n\t\tif(pitchDetectionResult.getPitch() != -1){\n\t\t\tdouble timeStamp = audioEvent.getTimeStamp();\n\t\t\tfloat pitch = pitchDetectionResult.getPitch();\n\t\t\tpitch *= 2; // Because of bit of file\n\t\t\tfloat probability = pitchDetectionResult.getProbability();\n\t\t\tdouble rms = audioEvent.getRMS() * 100;\n\t\t\tint pMinute = (int) (timeStamp/60);\n\t\t\tint pSecond = (int) (timeStamp%60);\n\t\t\tint intvNum = -1;\n\t\t\tString tInterval = new String();\n \n\t\t\tif(pitch >= 127.142 && pitch < 134.702) {\n\t\t\t\ttInterval = \"C3\";\n\t\t\t\tintvNum = 1;\n\t\t\t}\n\t\t\telse if(pitch >= 134.702 && pitch < 142.712) {\n\t\t\t\ttInterval = \"C3#\";\n\t\t\t\tintvNum = 2;\n\t\t\t}\n\t\t\telse if(pitch >= 142.712 && pitch < 151.198) {\n\t\t\t\ttInterval = \"D3\";\n\t\t\t\tintvNum=3;\n\t\t\t}\n\t\t\telse if(pitch >= 151.198 && pitch < 160.189) {\n\t\t\t\ttInterval = \"D3#\";\n\t\t\t\tintvNum=4;\n\t\t\t}\n\t\t\telse if(pitch >= 160.189 && pitch < 169.714) {\n\t\t\t\ttInterval = \"E3\";\n\t\t\t\tintvNum=5;\n\t\t\t}\n\t\t\telse if(pitch >= 169.714 && pitch < 179.806) {\n\t\t\t\ttInterval = \"F3\";\n\t\t\t\tintvNum=6;\n\t\t\t}\n\t\t\telse if(pitch >= 179.806 && pitch < 190.497) {\n\t\t\t\ttInterval = \"F3#\";\n\t\t\t\tintvNum=7;\n\t\t\t}\n\t\t\telse if(pitch >= 190.497 && pitch < 201.825) {\n\t\t\t\ttInterval = \"G3\";\n\t\t\t\tintvNum=8;\n\t\t\t}\n\t\t\telse if(pitch >= 201.825 && pitch < 213.826) {\n\t\t\t\ttInterval = \"G3#\";\n\t\t\t\tintvNum=9;\n\t\t\t}\n\t\t\telse if(pitch >= 213.826 && pitch < 226.541) {\n\t\t\t\ttInterval = \"A3\";\n\t\t\t\tintvNum=10;\n\t\t\t}\n\t\t\telse if(pitch >= 226.541 && pitch < 240.012) {\n\t\t\t\ttInterval = \"A3#\";\n\t\t\t\tintvNum=11;\n\t\t\t}\n\t\t\telse if(pitch >= 240.012 && pitch < 254.284) {\n\t\t\t\ttInterval = \"B3\";\n\t\t\t\tintvNum=12;\n\t\t\t}\n\t\t\telse if(pitch >= 254.284 && pitch < 269.404) {\n\t\t\t\ttInterval = \"C4\";\n\t\t\t\tintvNum=13;\n\t\t\t}\n\t\t\telse if(pitch >= 269.404 && pitch < 287.924) {\n\t\t\t\ttInterval = \"C4#\";\n\t\t\t\tintvNum=14;\n\t\t\t}\n\t\t\telse if(pitch >= 287.294 && pitch < 302.396) {\n\t\t\t\ttInterval = \"D4\";\n\t\t\t\tintvNum=15;\n\t\t\t}\n\t\t\telse if(pitch >= 302.396 && pitch < 320.377) {\n\t\t\t\ttInterval = \"D4#\";\n\t\t\t\tintvNum=16;\n\t\t\t}\n\t\t\telse if(pitch >= 320.377 && pitch < 339.428) {\n\t\t\t\ttInterval = \"E4\";\n\t\t\t\tintvNum=17;\n\t\t\t}\n\t\t\telse if(pitch >= 339.428 && pitch < 359.611) {\n\t\t\t\ttInterval = \"F4\";\n\t\t\t\tintvNum=18;\n\t\t\t}\n\t\t\telse if(pitch >= 359.611 && pitch < 380.995) {\n\t\t\t\ttInterval = \"F4#\";\n\t\t\t\tintvNum=19;\n\t\t\t}\n\t\t\telse if(pitch >= 380.995 && pitch < 403.65) {\n\t\t\t\ttInterval = \"G4\";\n\t\t\t\tintvNum=20;\n\t\t\t}\n\t\t\telse if(pitch >= 403.65 && pitch < 427.652) {\n\t\t\t\ttInterval = \"G4#\";\n\t\t\t\tintvNum=21;\n\t\t\t}\n\t\t\telse if(pitch >= 427.652 && pitch < 453.082) {\n\t\t\t\ttInterval = \"A4\";\n\t\t\t\tintvNum=22;\n\t\t\t}\n\t\t\telse if(pitch >= 453.082 && pitch < 480.234) {\n\t\t\t\ttInterval = \"A4#\";\n\t\t\t\tintvNum=23;\n\t\t\t}\n\t\t\telse if(pitch >= 480.234 && pitch < 508.567) {\n\t\t\t\ttInterval = \"B4\";\n\t\t\t\tintvNum=24;\n\t\t\t}\n\t\t\telse if(pitch >= 508.567 && pitch < 538.808) {\n\t\t\t\ttInterval = \"C5\";\n\t\t\t\tintvNum=25;\n\t\t\t}\n\t\t\telse if(pitch >= 538.808 && pitch < 570.847) {\n\t\t\t\ttInterval = \"C5#\";\n\t\t\t\tintvNum=26;\n\t\t\t}\n\t\t\telse if(pitch >= 570.847 && pitch < 604.792) {\n\t\t\t\ttInterval = \"D5\";\n\t\t\t\tintvNum=27;\n\t\t\t}\n\t\t\telse if(pitch >= 604.792 && pitch < 640.755) {\n\t\t\t\ttInterval = \"D5#\";\n\t\t\t\tintvNum=28;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttInterval = \"null\";\n\t\t\t\tintvNum=-1;\n\t\t\t}\n \t\n\t\t\t\n\t\t\t//Converting Ended\n\t\t\tif(pitch < 8000 && probability > 0.85) {\n\t\t\t\tString message = String.format(\"Pitch detected at %d 분 %d초, %.2f: %.2fHz ( %.2f probability, RMS: %.5f ) %s\", \n\t\t\t\t\t\tpMinute, pSecond, timeStamp, pitch,probability,rms,tInterval);\n\t\t\t\t// System.out.println(message);\n\t\t\t\tif(tried == 0) {\n\t\t\t\t\tCalculateScore.startTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.endTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.subInterval1.add(intvNum);\n\t\t\t\t\tCalculateScore.subInterval2.add(intvNum);\n\t\t\t\t\tCalculateScore.realInterval.add(null);\n\t\t\t\t\ttried++;\n\t\t\t\t}\n\t\t\t\telse if(((CalculateScore.subInterval1.get(idx)) - intvNum) == 0 || Math.abs(((CalculateScore.subInterval1.get(idx)) - intvNum)) == 1) {\n\t\t\t\t\tCalculateScore.endTime.set(idx, timeStamp);\n\t\t\t\t\tCalculateScore.subInterval2.set(idx, intvNum);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tCalculateScore.endTime.set(idx, timeStamp);\n\t\t\t\t\tCalculateScore.startTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.endTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.subInterval1.add(intvNum);\n\t\t\t\t\tCalculateScore.subInterval2.add(intvNum);\n\t\t\t\t\tCalculateScore.realInterval.add(null);\n\t\t\t\t\tidx++;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"Character getCode();",
"public String name()\r\n/* 256: */ {\r\n/* 257:465 */ return this.name;\r\n/* 258: */ }",
"public String getName()\r\n {\n return \"arctan2\";\r\n }",
"@Override\n\tpublic String getName() {\n\t\treturn String.format(\"%s|%.1f|%d\", this.getClass().getName(), this.scale, this.targetContent);\n\t}",
"@Override\r\n\tpublic void getname() {\n\t\tSystem.out.println(\"中文名\");\r\n\t}",
"private String methodNameMask(String name) {\n\t\tString[] words = name\n\t\t\t\t.replaceAll(\"[\\\\d\\\\'\\\\+\\\\-\\\\:\\\\;\\\\(\\\\)\\\\[\\\\]\\\\{\\\\}\\\\~\\\\^\\\\*\\\\&\\\\#\\\\@\\\\$\\\\<\\\\>\\\\,\\\\_\\\\.\\\\\\\"]\", \"\")\n\t\t\t\t.split(\" \");\n\t\tString forReturn = words[0];\n\t\tfor (int i = 1; i < words.length; i++) {\n\t\t\tif (words[i].isEmpty())\n\t\t\t\tcontinue;\n\t\t\tif (Character.isDigit(words[i].charAt(0)))\n\t\t\t\tforReturn = forReturn + words[i];\n\t\t\telse\n\t\t\t\tforReturn = forReturn + words[i].replaceFirst(String.valueOf(words[i].charAt(0)),\n\t\t\t\t\t\tString.valueOf(words[i].charAt(0)).toUpperCase());\n\t\t}\n\t\treturn forReturn;\n\t}",
"String getPName();"
] | [
"0.6136905",
"0.591623",
"0.5851474",
"0.5708387",
"0.561058",
"0.5599587",
"0.55920506",
"0.55827105",
"0.5471864",
"0.54713494",
"0.5459281",
"0.5414928",
"0.5403863",
"0.53654844",
"0.5352216",
"0.53513163",
"0.5347767",
"0.53449905",
"0.53341943",
"0.5333957",
"0.5333043",
"0.5327314",
"0.5308123",
"0.5265316",
"0.52624655",
"0.5262441",
"0.52574205",
"0.5250291",
"0.5228936",
"0.52248955",
"0.5222296",
"0.5222296",
"0.52115494",
"0.5208265",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.52041996",
"0.5175575",
"0.5173844",
"0.5164489",
"0.5163315",
"0.5158363",
"0.515833",
"0.5154808",
"0.51508635",
"0.5147474",
"0.5134994",
"0.51202",
"0.5114071",
"0.51059246",
"0.5104839",
"0.5104457",
"0.51004434",
"0.50957936",
"0.5089325",
"0.5089325",
"0.5086287",
"0.507914",
"0.50738955",
"0.5062719",
"0.50599617",
"0.50353324",
"0.50323415",
"0.5028148",
"0.502538",
"0.50235474",
"0.50230193",
"0.5022874"
] | 0.5449676 | 11 |
Method used to get the pitch value of a input note | public static Integer getPitchClass(String inputNote)
{
//System.out.println("Inside getPitchClass inputNote: " + inputNote);
Integer pitchClassValue = -1;
ArrayList<String> pitch0 = new ArrayList<>(Arrays.asList("C","B#","Dbb"));
ArrayList<String> pitch1 = new ArrayList<>(Arrays.asList("C#","Db","B##"));
ArrayList<String> pitch2 = new ArrayList<>(Arrays.asList("D","C##","Ebb"));
ArrayList<String> pitch3 = new ArrayList<>(Arrays.asList("D#","Eb","Fbb"));
ArrayList<String> pitch4 = new ArrayList<>(Arrays.asList("E","D##","Fb"));
ArrayList<String> pitch5 = new ArrayList<>(Arrays.asList("F","E#","Gbb"));
ArrayList<String> pitch6 = new ArrayList<>(Arrays.asList("F#","Gb","E#"));
ArrayList<String> pitch7 = new ArrayList<>(Arrays.asList("G","F##","Abb"));
ArrayList<String> pitch8 = new ArrayList<>(Arrays.asList("G#","Ab"));
ArrayList<String> pitch9 = new ArrayList<>(Arrays.asList("A","G##","Bbb"));
ArrayList<String> pitch10 = new ArrayList<>(Arrays.asList("A#","Bb","Cbb"));
ArrayList<String> pitch11 = new ArrayList<>(Arrays.asList("B","A##","Cb"));
TreeMap<Integer, ArrayList<String>> pitchClassMap = new TreeMap<>();
pitchClassMap.put(0, pitch0);
pitchClassMap.put(1, pitch1);
pitchClassMap.put(2, pitch2);
pitchClassMap.put(3, pitch3);
pitchClassMap.put(4, pitch4);
pitchClassMap.put(5, pitch5);
pitchClassMap.put(6, pitch6);
pitchClassMap.put(7, pitch7);
pitchClassMap.put(8, pitch8);
pitchClassMap.put(9, pitch9);
pitchClassMap.put(10, pitch10);
pitchClassMap.put(11, pitch11);
for(Integer index : pitchClassMap.keySet())
{
if(pitchClassMap.get(index).contains(inputNote))
pitchClassValue = index;
}
//System.out.println("Inside getPitchClass pitchClassValue: " + pitchClassValue);
return pitchClassValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getPitch();",
"float getPitch();",
"float getPitch();",
"public String getPitch()\n\t{\n\t\treturn pitch.getText();\n\t}",
"public String getPitchAsString(){ return Integer.toString(this.pitch);}",
"public float getPitch() {\n\treturn pitch;\n }",
"public float getPitch() {\n return pitch;\n }",
"public float getPitch() {\n return pitch_;\n }",
"public float getPitch() {\n return pitch_;\n }",
"public float getPitch() {\n return pitch_;\n }",
"public float getPitch() {\n return pitch_;\n }",
"public static int getNormalizedPitch(Note note) {\n try {\n String pitch = note.getPitch().toString();\n String octave = new Integer(note.getOctave()).toString();\n\n String target = null;\n\n if (note.getPitch().equals(Pitch.R)) {\n target = \"REST\";\n } else {\n if(note.getAlteration().equals(Alteration.N))\n target = pitch.concat(octave);\n else if(note.getAlteration().equals(Alteration.F))\n target = pitch.concat(\"F\").concat(octave);\n else\n target = pitch.concat(\"S\").concat(octave);\n }\n\n \n\n Class cClass = ConverterUtil.class;\n Field field = cClass.getField(target);\n Integer value = (Integer) field.get(null);\n\n return value.intValue()%12;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return 0;\n }",
"public synchronized double getPitch() {\n\t\tif (isConnected) {\n\t\t\treturn gyro.getPitch();\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}",
"public int getTestNotePitch()\n {\n return super.getTestNotePitch();\n }",
"public float getSoundPitch() {\n return _soundPitch;\n }",
"public static int getIntPitch(double pitch) {\n return (int) (((pitch % 360) / 360) * 256);\n }",
"public float getPitchAngle() { return PitchAngle; }",
"private Pitch getPitch(int i) {\n return Pitch.values()[i];\n }",
"public void setPitch(int pitch);",
"@Override\n\tprotected float getSoundPitch() {\n\t\t// note: unused, managed in playSound()\n\t\treturn 1;\n\t}",
"@Override\r\n\tpublic double getPitchRightHand() {\n\t\treturn rechtPitch;\r\n\t}",
"public final flipsParser.pitch_return pitch() throws RecognitionException {\n flipsParser.pitch_return retval = new flipsParser.pitch_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal150=null;\n Token string_literal151=null;\n Token To152=null;\n Token string_literal154=null;\n Token string_literal155=null;\n Token With157=null;\n Token string_literal158=null;\n Token string_literal159=null;\n Token string_literal160=null;\n Token string_literal161=null;\n flipsParser.angularValueWithRate_return angularValueWithRate153 = null;\n\n flipsParser.angularValueWithRate_return angularValueWithRate156 = null;\n\n flipsParser.angularValueWithRate_return angularValueWithRate162 = null;\n\n\n CommonTree string_literal150_tree=null;\n CommonTree string_literal151_tree=null;\n CommonTree To152_tree=null;\n CommonTree string_literal154_tree=null;\n CommonTree string_literal155_tree=null;\n CommonTree With157_tree=null;\n CommonTree string_literal158_tree=null;\n CommonTree string_literal159_tree=null;\n CommonTree string_literal160_tree=null;\n CommonTree string_literal161_tree=null;\n RewriteRuleTokenStream stream_152=new RewriteRuleTokenStream(adaptor,\"token 152\");\n RewriteRuleTokenStream stream_153=new RewriteRuleTokenStream(adaptor,\"token 153\");\n RewriteRuleTokenStream stream_150=new RewriteRuleTokenStream(adaptor,\"token 150\");\n RewriteRuleTokenStream stream_151=new RewriteRuleTokenStream(adaptor,\"token 151\");\n RewriteRuleTokenStream stream_149=new RewriteRuleTokenStream(adaptor,\"token 149\");\n RewriteRuleTokenStream stream_To=new RewriteRuleTokenStream(adaptor,\"token To\");\n RewriteRuleTokenStream stream_With=new RewriteRuleTokenStream(adaptor,\"token With\");\n RewriteRuleTokenStream stream_154=new RewriteRuleTokenStream(adaptor,\"token 154\");\n RewriteRuleSubtreeStream stream_angularValueWithRate=new RewriteRuleSubtreeStream(adaptor,\"rule angularValueWithRate\");\n try {\n // flips.g:314:2: ( ( 'pit' | 'pitch' ) To angularValueWithRate -> ^( PITCH FIXED angularValueWithRate ) | ( 'pit' | 'pitch' ) angularValueWithRate -> ^( PITCH RELATIVE angularValueWithRate ) | ( With 'an' )? ( 'aoa' | 'angle of attack' ) ( 'of' )? angularValueWithRate -> ^( PITCH FIXED angularValueWithRate ) )\n int alt62=3;\n switch ( input.LA(1) ) {\n case 149:\n {\n int LA62_1 = input.LA(2);\n\n if ( (LA62_1==At||(LA62_1>=FloatingPointLiteral && LA62_1<=HexLiteral)||(LA62_1>=340 && LA62_1<=341)) ) {\n alt62=2;\n }\n else if ( (LA62_1==To) ) {\n alt62=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 62, 1, input);\n\n throw nvae;\n }\n }\n break;\n case 150:\n {\n int LA62_2 = input.LA(2);\n\n if ( (LA62_2==At||(LA62_2>=FloatingPointLiteral && LA62_2<=HexLiteral)||(LA62_2>=340 && LA62_2<=341)) ) {\n alt62=2;\n }\n else if ( (LA62_2==To) ) {\n alt62=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 62, 2, input);\n\n throw nvae;\n }\n }\n break;\n case With:\n case 152:\n case 153:\n {\n alt62=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 62, 0, input);\n\n throw nvae;\n }\n\n switch (alt62) {\n case 1 :\n // flips.g:314:4: ( 'pit' | 'pitch' ) To angularValueWithRate\n {\n // flips.g:314:4: ( 'pit' | 'pitch' )\n int alt57=2;\n int LA57_0 = input.LA(1);\n\n if ( (LA57_0==149) ) {\n alt57=1;\n }\n else if ( (LA57_0==150) ) {\n alt57=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 57, 0, input);\n\n throw nvae;\n }\n switch (alt57) {\n case 1 :\n // flips.g:314:5: 'pit'\n {\n string_literal150=(Token)match(input,149,FOLLOW_149_in_pitch1517); \n stream_149.add(string_literal150);\n\n\n }\n break;\n case 2 :\n // flips.g:314:11: 'pitch'\n {\n string_literal151=(Token)match(input,150,FOLLOW_150_in_pitch1519); \n stream_150.add(string_literal151);\n\n\n }\n break;\n\n }\n\n To152=(Token)match(input,To,FOLLOW_To_in_pitch1522); \n stream_To.add(To152);\n\n pushFollow(FOLLOW_angularValueWithRate_in_pitch1524);\n angularValueWithRate153=angularValueWithRate();\n\n state._fsp--;\n\n stream_angularValueWithRate.add(angularValueWithRate153.getTree());\n\n\n // AST REWRITE\n // elements: angularValueWithRate\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 315:2: -> ^( PITCH FIXED angularValueWithRate )\n {\n // flips.g:315:5: ^( PITCH FIXED angularValueWithRate )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(PITCH, \"PITCH\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(FIXED, \"FIXED\"));\n adaptor.addChild(root_1, stream_angularValueWithRate.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:316:4: ( 'pit' | 'pitch' ) angularValueWithRate\n {\n // flips.g:316:4: ( 'pit' | 'pitch' )\n int alt58=2;\n int LA58_0 = input.LA(1);\n\n if ( (LA58_0==149) ) {\n alt58=1;\n }\n else if ( (LA58_0==150) ) {\n alt58=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 58, 0, input);\n\n throw nvae;\n }\n switch (alt58) {\n case 1 :\n // flips.g:316:5: 'pit'\n {\n string_literal154=(Token)match(input,149,FOLLOW_149_in_pitch1541); \n stream_149.add(string_literal154);\n\n\n }\n break;\n case 2 :\n // flips.g:316:11: 'pitch'\n {\n string_literal155=(Token)match(input,150,FOLLOW_150_in_pitch1543); \n stream_150.add(string_literal155);\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_angularValueWithRate_in_pitch1546);\n angularValueWithRate156=angularValueWithRate();\n\n state._fsp--;\n\n stream_angularValueWithRate.add(angularValueWithRate156.getTree());\n\n\n // AST REWRITE\n // elements: angularValueWithRate\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 317:2: -> ^( PITCH RELATIVE angularValueWithRate )\n {\n // flips.g:317:5: ^( PITCH RELATIVE angularValueWithRate )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(PITCH, \"PITCH\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(RELATIVE, \"RELATIVE\"));\n adaptor.addChild(root_1, stream_angularValueWithRate.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 3 :\n // flips.g:318:4: ( With 'an' )? ( 'aoa' | 'angle of attack' ) ( 'of' )? angularValueWithRate\n {\n // flips.g:318:4: ( With 'an' )?\n int alt59=2;\n int LA59_0 = input.LA(1);\n\n if ( (LA59_0==With) ) {\n alt59=1;\n }\n switch (alt59) {\n case 1 :\n // flips.g:318:5: With 'an'\n {\n With157=(Token)match(input,With,FOLLOW_With_in_pitch1563); \n stream_With.add(With157);\n\n string_literal158=(Token)match(input,151,FOLLOW_151_in_pitch1565); \n stream_151.add(string_literal158);\n\n\n }\n break;\n\n }\n\n // flips.g:318:17: ( 'aoa' | 'angle of attack' )\n int alt60=2;\n int LA60_0 = input.LA(1);\n\n if ( (LA60_0==152) ) {\n alt60=1;\n }\n else if ( (LA60_0==153) ) {\n alt60=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 60, 0, input);\n\n throw nvae;\n }\n switch (alt60) {\n case 1 :\n // flips.g:318:18: 'aoa'\n {\n string_literal159=(Token)match(input,152,FOLLOW_152_in_pitch1570); \n stream_152.add(string_literal159);\n\n\n }\n break;\n case 2 :\n // flips.g:318:24: 'angle of attack'\n {\n string_literal160=(Token)match(input,153,FOLLOW_153_in_pitch1572); \n stream_153.add(string_literal160);\n\n\n }\n break;\n\n }\n\n // flips.g:318:43: ( 'of' )?\n int alt61=2;\n int LA61_0 = input.LA(1);\n\n if ( (LA61_0==154) ) {\n alt61=1;\n }\n switch (alt61) {\n case 1 :\n // flips.g:318:43: 'of'\n {\n string_literal161=(Token)match(input,154,FOLLOW_154_in_pitch1575); \n stream_154.add(string_literal161);\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_angularValueWithRate_in_pitch1578);\n angularValueWithRate162=angularValueWithRate();\n\n state._fsp--;\n\n stream_angularValueWithRate.add(angularValueWithRate162.getTree());\n\n\n // AST REWRITE\n // elements: angularValueWithRate\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 319:2: -> ^( PITCH FIXED angularValueWithRate )\n {\n // flips.g:319:5: ^( PITCH FIXED angularValueWithRate )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(PITCH, \"PITCH\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(FIXED, \"FIXED\"));\n adaptor.addChild(root_1, stream_angularValueWithRate.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }",
"private void analyzePitch(java.util.List<Double> samples) {\n \r\n if(samples.isEmpty()) return;\r\n if(samples.size()<=SAMPLE_RATE*MIN_SAMPLE_LENGTH_MS/1000) {\r\n //System.err.println(\"samples too short: \"+samples.size());\r\n return;\r\n }\r\n final Sound pitchSound=Sound.Sound_createSimple(\r\n 1, (double)samples.size() / SAMPLE_RATE, SAMPLE_RATE);\r\n for(int i=1; i < pitchSound.z[1].length; i++) {\r\n pitchSound.z[1][i]=samples.get(i - 1);\r\n }\r\n \r\n final SoundEditor editor=SoundEditor.SoundEditor_create(\"\", pitchSound);\r\n editor.pitch.floor=settings.floor;\r\n editor.pitch.ceiling=settings.ceiling;\r\n //editor.pitch.veryAccurate=1;\r\n \r\n if(DEBUG) System.err.print(\"analyzing \"+samples.size()+\" samples(\"\r\n +editor.pitch.floor+\"-\"+editor.pitch.ceiling+\")...\");\r\n final long start=System.nanoTime();\r\n try {\r\n editor.computePitch();\r\n } catch(Exception e) {\r\n e.printStackTrace();\r\n return;\r\n }\r\n if(DEBUG) System.err.println(\"complete in \"+(System.nanoTime()-start)/1000000.0+\"ms.\");\r\n \r\n \r\n //[ compute average pitch\r\n final java.util.List<Double> pitches=editor.getPitchesInFrequency();\r\n \r\n// diagram.clearData();\r\n// for(double s: pitches) {\r\n// diagram.addData((float)s); \r\n// }\r\n// diagram.setMaximum(500);\r\n// diagram.repaint();\r\n// \r\n double freqSum=0;\r\n int pitchCount=0;\r\n for(double p : pitches) {\r\n if(Double.isNaN(p) || p<=0) continue;\r\n freqSum+=p;\r\n pitchCount++;\r\n }\r\n final double averageFreq=freqSum/pitchCount; \r\n if(Double.isNaN(averageFreq)) {\r\n if(DEBUG) System.err.println(\"can't recognize.\");\r\n return;\r\n }\r\n//System.err.println(averageFreq); \r\n \r\n //[ compute length\r\n final double lengthMs=samples.size()*1000.0/SAMPLE_RATE;\r\n \r\n SwingUtilities.invokeLater(new Runnable() { //>>> not good\r\n public void run() {\r\n for(PitchListener lis: freqListener) {\r\n lis.gotPitch(averageFreq, lengthMs); //notify listeners\r\n }\r\n }\r\n });\r\n \r\n//System.err.println(\"add \"+ DumpReceiver.getKeyName((int) averagePitch));\r\n }",
"public float getPitchRange() {\n\treturn range;\n }",
"@Override\n public double getPitch()\n {\n Vector3d modelIntersect = getModelIntersection();\n if (modelIntersect == null)\n {\n return 0;\n }\n modelIntersect = modelIntersect.getNormalized();\n Vector3d projectedIntersect = Plane.unitProjection(myPosition.getDir().multiply(-1), modelIntersect).getNormalized();\n // Now calculate angle between vectors (and keep sign)\n Vector3d orthogonal = myPosition.getRight().multiply(-1);\n Vector3d cross = modelIntersect.cross(projectedIntersect);\n double dot = modelIntersect.dot(projectedIntersect);\n double resultAngle = Math.atan2(orthogonal.dot(cross), dot);\n double ninetyDegrees = Math.toRadians(90);\n return Math.signum(resultAngle) < 0 ? -1 * (ninetyDegrees - Math.abs(resultAngle)) : ninetyDegrees - resultAngle;\n }",
"@Override\n\tpublic void handlePitch(PitchDetectionResult pitchDetectionResult, AudioEvent audioEvent) {\n\t\tif(pitchDetectionResult.getPitch() != -1){\n\t\t\tdouble timeStamp = audioEvent.getTimeStamp();\n\t\t\tfloat pitch = pitchDetectionResult.getPitch();\n\t\t\tpitch *= 2; // Because of bit of file\n\t\t\tfloat probability = pitchDetectionResult.getProbability();\n\t\t\tdouble rms = audioEvent.getRMS() * 100;\n\t\t\tint pMinute = (int) (timeStamp/60);\n\t\t\tint pSecond = (int) (timeStamp%60);\n\t\t\tint intvNum = -1;\n\t\t\tString tInterval = new String();\n \n\t\t\tif(pitch >= 127.142 && pitch < 134.702) {\n\t\t\t\ttInterval = \"C3\";\n\t\t\t\tintvNum = 1;\n\t\t\t}\n\t\t\telse if(pitch >= 134.702 && pitch < 142.712) {\n\t\t\t\ttInterval = \"C3#\";\n\t\t\t\tintvNum = 2;\n\t\t\t}\n\t\t\telse if(pitch >= 142.712 && pitch < 151.198) {\n\t\t\t\ttInterval = \"D3\";\n\t\t\t\tintvNum=3;\n\t\t\t}\n\t\t\telse if(pitch >= 151.198 && pitch < 160.189) {\n\t\t\t\ttInterval = \"D3#\";\n\t\t\t\tintvNum=4;\n\t\t\t}\n\t\t\telse if(pitch >= 160.189 && pitch < 169.714) {\n\t\t\t\ttInterval = \"E3\";\n\t\t\t\tintvNum=5;\n\t\t\t}\n\t\t\telse if(pitch >= 169.714 && pitch < 179.806) {\n\t\t\t\ttInterval = \"F3\";\n\t\t\t\tintvNum=6;\n\t\t\t}\n\t\t\telse if(pitch >= 179.806 && pitch < 190.497) {\n\t\t\t\ttInterval = \"F3#\";\n\t\t\t\tintvNum=7;\n\t\t\t}\n\t\t\telse if(pitch >= 190.497 && pitch < 201.825) {\n\t\t\t\ttInterval = \"G3\";\n\t\t\t\tintvNum=8;\n\t\t\t}\n\t\t\telse if(pitch >= 201.825 && pitch < 213.826) {\n\t\t\t\ttInterval = \"G3#\";\n\t\t\t\tintvNum=9;\n\t\t\t}\n\t\t\telse if(pitch >= 213.826 && pitch < 226.541) {\n\t\t\t\ttInterval = \"A3\";\n\t\t\t\tintvNum=10;\n\t\t\t}\n\t\t\telse if(pitch >= 226.541 && pitch < 240.012) {\n\t\t\t\ttInterval = \"A3#\";\n\t\t\t\tintvNum=11;\n\t\t\t}\n\t\t\telse if(pitch >= 240.012 && pitch < 254.284) {\n\t\t\t\ttInterval = \"B3\";\n\t\t\t\tintvNum=12;\n\t\t\t}\n\t\t\telse if(pitch >= 254.284 && pitch < 269.404) {\n\t\t\t\ttInterval = \"C4\";\n\t\t\t\tintvNum=13;\n\t\t\t}\n\t\t\telse if(pitch >= 269.404 && pitch < 287.924) {\n\t\t\t\ttInterval = \"C4#\";\n\t\t\t\tintvNum=14;\n\t\t\t}\n\t\t\telse if(pitch >= 287.294 && pitch < 302.396) {\n\t\t\t\ttInterval = \"D4\";\n\t\t\t\tintvNum=15;\n\t\t\t}\n\t\t\telse if(pitch >= 302.396 && pitch < 320.377) {\n\t\t\t\ttInterval = \"D4#\";\n\t\t\t\tintvNum=16;\n\t\t\t}\n\t\t\telse if(pitch >= 320.377 && pitch < 339.428) {\n\t\t\t\ttInterval = \"E4\";\n\t\t\t\tintvNum=17;\n\t\t\t}\n\t\t\telse if(pitch >= 339.428 && pitch < 359.611) {\n\t\t\t\ttInterval = \"F4\";\n\t\t\t\tintvNum=18;\n\t\t\t}\n\t\t\telse if(pitch >= 359.611 && pitch < 380.995) {\n\t\t\t\ttInterval = \"F4#\";\n\t\t\t\tintvNum=19;\n\t\t\t}\n\t\t\telse if(pitch >= 380.995 && pitch < 403.65) {\n\t\t\t\ttInterval = \"G4\";\n\t\t\t\tintvNum=20;\n\t\t\t}\n\t\t\telse if(pitch >= 403.65 && pitch < 427.652) {\n\t\t\t\ttInterval = \"G4#\";\n\t\t\t\tintvNum=21;\n\t\t\t}\n\t\t\telse if(pitch >= 427.652 && pitch < 453.082) {\n\t\t\t\ttInterval = \"A4\";\n\t\t\t\tintvNum=22;\n\t\t\t}\n\t\t\telse if(pitch >= 453.082 && pitch < 480.234) {\n\t\t\t\ttInterval = \"A4#\";\n\t\t\t\tintvNum=23;\n\t\t\t}\n\t\t\telse if(pitch >= 480.234 && pitch < 508.567) {\n\t\t\t\ttInterval = \"B4\";\n\t\t\t\tintvNum=24;\n\t\t\t}\n\t\t\telse if(pitch >= 508.567 && pitch < 538.808) {\n\t\t\t\ttInterval = \"C5\";\n\t\t\t\tintvNum=25;\n\t\t\t}\n\t\t\telse if(pitch >= 538.808 && pitch < 570.847) {\n\t\t\t\ttInterval = \"C5#\";\n\t\t\t\tintvNum=26;\n\t\t\t}\n\t\t\telse if(pitch >= 570.847 && pitch < 604.792) {\n\t\t\t\ttInterval = \"D5\";\n\t\t\t\tintvNum=27;\n\t\t\t}\n\t\t\telse if(pitch >= 604.792 && pitch < 640.755) {\n\t\t\t\ttInterval = \"D5#\";\n\t\t\t\tintvNum=28;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttInterval = \"null\";\n\t\t\t\tintvNum=-1;\n\t\t\t}\n \t\n\t\t\t\n\t\t\t//Converting Ended\n\t\t\tif(pitch < 8000 && probability > 0.85) {\n\t\t\t\tString message = String.format(\"Pitch detected at %d 분 %d초, %.2f: %.2fHz ( %.2f probability, RMS: %.5f ) %s\", \n\t\t\t\t\t\tpMinute, pSecond, timeStamp, pitch,probability,rms,tInterval);\n\t\t\t\t// System.out.println(message);\n\t\t\t\tif(tried == 0) {\n\t\t\t\t\tCalculateScore.startTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.endTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.subInterval1.add(intvNum);\n\t\t\t\t\tCalculateScore.subInterval2.add(intvNum);\n\t\t\t\t\tCalculateScore.realInterval.add(null);\n\t\t\t\t\ttried++;\n\t\t\t\t}\n\t\t\t\telse if(((CalculateScore.subInterval1.get(idx)) - intvNum) == 0 || Math.abs(((CalculateScore.subInterval1.get(idx)) - intvNum)) == 1) {\n\t\t\t\t\tCalculateScore.endTime.set(idx, timeStamp);\n\t\t\t\t\tCalculateScore.subInterval2.set(idx, intvNum);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tCalculateScore.endTime.set(idx, timeStamp);\n\t\t\t\t\tCalculateScore.startTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.endTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.subInterval1.add(intvNum);\n\t\t\t\t\tCalculateScore.subInterval2.add(intvNum);\n\t\t\t\t\tCalculateScore.realInterval.add(null);\n\t\t\t\t\tidx++;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"public static double pitchToFrequency(double pitch) {\n return mConcertAFrequency * Math.pow(2.0, ((pitch - CONCERT_A_PITCH) * (1.0 / 12.0)));\n }",
"@Override\n public void gyroPitch(int value, int timestamp) {\n }",
"public float getInterpolatedPitch (float u) {\r\n\r\n float newPitch;\r\n \r\n // if linear interpolation\r\n if (this.linear == 1) {\r\n\r\n newPitch = keyFrame[1].pitch + \r\n ((keyFrame[2].pitch - keyFrame[1].pitch) * u);\r\n } else {\r\n\r\n newPitch = p0 + u * (p1 + u * (p2 + u * p3));\r\n\r\n }\r\n\r\n return newPitch;\r\n }",
"public void playNote(int pitch) {\n\t\tsynthChannel.noteOn(pitch, MusicManager.SYNTH_NOTE_VELOCITY);\n\t}",
"public static double frequencyToPitch(double frequency) {\n return CONCERT_A_PITCH + 12 * Math.log(frequency / mConcertAFrequency) / Math.log(2.0);\n }",
"public float getPitchShift() {\n\treturn pitchShift;\n }",
"public int getPitchDegrees() {\n\t\treturn m_pitch_degrees;\n\t}",
"@Override\r\n\tpublic double pidGet() {\r\n\t\t/*switch (m_pidSource.value) {\r\n\t\tcase 1://PIDSourceParameter.kRate_val:\r\n\t\t\treturn getRate();\r\n\t\tcase 2:// PIDSourceParameter.kAngle_val:\r\n\t\t\treturn getAngle();\r\n\t\tdefault:\r\n\t\t\treturn 0.0;\r\n\t\t}*/\r\n\t\treturn getAngle();\r\n\t}",
"protected double returnPIDInput() {\n\n \tdouble yaw = Robot.oi.getAHRS().getYaw();\n \tSmartDashboard.putNumber( \"TurnToAngle-PIDInput\",yaw);\n \n return yaw;\n }",
"public static double midiToFreq(int note) {\n return (Math.pow(2, ((note - 69) / 12.0))) * 440;\n }",
"int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }",
"public Double getNote()\r\n {\r\n return note;\r\n }",
"boolean hasPitch();",
"boolean hasPitch();",
"public void setPitch(float pitch) {\n\t\talSourcef(musicSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(reverseSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(flangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(wahSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revWahSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(wahFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revWahFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(distortSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revDistortSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(distortFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revDistortFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(wahDistortSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revWahDistortSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(wahDistortFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revWahDistortFlangeSourceIndex, AL_PITCH, pitch);\n\t}",
"@Override\n default void appendPitchRotation(double pitch)\n {\n AxisAngleTools.appendPitchRotation(this, pitch, this);\n }",
"public int getPitchOffset(boolean isMajor) {\n\t\tint pitchOffset;\n\t\tswitch (_degreeNumber) {\n\t\t\tcase 1:\n\t\t\t\tpitchOffset = 0;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpitchOffset = 2;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tif (isMajor) {\n\t\t\t\t\tpitchOffset = 4;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpitchOffset = 3;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tpitchOffset = 5;\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tpitchOffset = 7;\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tif (isMajor) {\n\t\t\t\t\tpitchOffset = 9;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpitchOffset = 8;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tif (isMajor) {\n\t\t\t\t\tpitchOffset = 11;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpitchOffset = 10;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new RuntimeException(\"Scale degree outside of 1-7\");\n\t\t}\n\t\tpitchOffset += _accidental.intValue();\n\t\t\n\t\treturn pitchOffset;\n\t}",
"public void setPitch(int pitch) {\n mSelf.setPitch(pitch);\n }",
"public void testfindNote() {\n System.out.println(\"findNote\");\n net.sharedmemory.tuner.Note instance = new net.sharedmemory.tuner.Note();\n\n double frequency = 441.123;\n java.lang.String expectedResult = \"A4\";\n java.lang.String result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n \n frequency = 523.25;\n expectedResult = \"C5\";\n result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n \n frequency = 417.96875;\n expectedResult = \"G#4\";\n result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n \n frequency = 1316.40625;\n expectedResult = \"B5\";\n result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n }",
"public void setPitch(float pitch) {\n\t\tthis.pitch = pitch;\n\t\ttargetPitch = pitch;\n\t\tAL10.alSourcef(id, AL10.AL_PITCH, pitch);\n\t}",
"public void pitch(float amount)\r\n {\r\n //increment the pitch by the amount param\r\n pitch -= amount;\r\n }",
"public void addPitch(float pitch) {\n\t\tthis.pitch += pitch;\n\t\tAL10.alSourcef(id, AL10.AL_PITCH, this.pitch);\n\t}",
"@Override\n public double getPIDInput()\n {\n return target.getCurrentAngle();\n }",
"@Override\r\n\tpublic double getPitchLeftHand() {\n\t\treturn linkPitch;\r\n\t}",
"public Builder setPitch(float value) {\n bitField0_ |= 0x00000040;\n pitch_ = value;\n onChanged();\n return this;\n }",
"public Builder setPitch(float value) {\n bitField0_ |= 0x00000010;\n pitch_ = value;\n onChanged();\n return this;\n }",
"public int /* sound_sample */output() {\n\t\treturn Vo;\n\t}",
"public int getAudioJittcomp();",
"public void setSoundPitch(float soundPitch) {\n _soundPitch = soundPitch;\n }",
"public int getTone(){\n\t\tint keyAsTone = (int) (Math.pow(2.0, (((double)key)-49.0)/12)*440);\n\t\treturn keyAsTone;\n\t}",
"public void stopNote(int pitch) {\n\t\tsynthChannel.noteOff(pitch, 127);\n\t}",
"public static int getNote(MidiMessage mes){\r\n\t\tif (!(mes instanceof ShortMessage))\r\n\t\t\treturn 0;\r\n\t\tShortMessage mes2 = (ShortMessage) mes;\r\n\t\tif (mes2.getCommand() != ShortMessage.NOTE_ON)\r\n\t\t\treturn 0;\t\r\n\t\tif (mes2.getData2() ==0) return -mes2.getData1();\r\n\t\treturn mes2.getData1();\r\n\t}",
"public final int getPulse() {\n\t\treturn this.getProc().getServer().getConsole().getPulse();\n\t}",
"public Rational getAudioSampleRate();",
"public void handleToggleButtonPitch() {\n\t\tif (toggleButtonPitch.isSelected()) {\n\t\t\tcontroller.audioManipulatorUsePitchProcessor(true);\n\t\t\tsliderPitch.setDisable(false);\n\t\t\ttextFieldPitch.setDisable(false);\n\t\t\ttoggleButtonPitch.setText(bundle.getString(\"mixerToggleButtonOn\"));\n\n\t\t} else if (!toggleButtonPitch.isSelected()) {\n\t\t\tcontroller.audioManipulatorUsePitchProcessor(false);\n\t\t\tsliderPitch.setDisable(true);\n\t\t\ttextFieldPitch.setDisable(true);\n\t\t\ttoggleButtonPitch.setText(bundle.getString(\"mixerToggleButtonOff\"));\n\t\t}\n\t}",
"int getInputVoltageRaw();",
"protected double returnPIDInput() {\n\t\t\n ScraperBike.debugToTable(\"PIDInput\", RobotMap.shootEncoder.getRate()*60);\n \n return RobotMap.shootEncoder.getRate()*60;\n }",
"public List<Float> calculatePitches(){\n\t\tList<Integer> res = new ArrayList<Integer>();\n\t\tint size = data.size();\n\t\tint maxAmp = 0;\n\t\tint startPos = 0;\n\t\t// get the first pitch in the basic period\n\t\tfor (int i = 0; i < BASE_FRAGMENT; i ++){\n\t\t\tif (maxAmp < data.get(i)){\n\t\t\t\tmaxAmp = data.get(i);\n\t\t\t\t// set this position as the start position\n\t\t\t\tstartPos = i;\n\t\t\t}\n\t\t}\n\t\tLog.v(\"startPos\", String.valueOf(startPos));\n\t\t// find every pitch in all the fragments\n\t\tint pos = startPos + OFFSET; // set current position\n\t\tint posAmpMax;\n\t\twhile(startPos < 1000){\n\t\t\tif(data.get(pos) > 0) { // only read the positive data\n\n\t\t\t\tposAmpMax = 0;\n\t\t\t\tmaxAmp = 0;\n\t\t\t\t// access to all the data in this fragment\n\t\t\t\twhile (pos < startPos + BASE_FRAGMENT) {\n\t\t\t\t\t// find the pitch and mark this position\n\t\t\t\t\tif (maxAmp < data.get(pos)) {\n\t\t\t\t\t\tmaxAmp = data.get(pos);\n\t\t\t\t\t\tposAmpMax = pos;\n\t\t\t\t\t}\n\t\t\t\t\tpos++;\n\t\t\t\t}\n\t\t\t\t// add pitch position into the list\n\t\t\t\tpitchPositions.add(posAmpMax);\n\t\t\t\tres.add(posAmpMax);\n\t\t\t\t// update the start position and the current position\n\t\t\t\tstartPos = posAmpMax;\n\t\t\t\tpos = startPos + OFFSET;\n\t\t\t}else{\n\t\t\t\tpos ++;\n\t\t\t}\n\t\t}\n\n\t\t// calculate all periods and add them into list\n\t\tfor(int i = 0; i < pitchPositions.size() - 1; i++){\n\t\t\tfloat period = (float)(pitchPositions.get(i+1) - pitchPositions.get(i));\n\t\t\tT.add(period);\n\t\t\tpitches.add(PeriodToPitch(period));\n\t\t}\n\t\tpitchPositions.clear();\n\t\treturn pitches;\n\t}",
"public void setPitch(float hertz) {\n\tthis.pitch = hertz;\n }",
"public boolean hasPitch() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"public boolean hasPitch() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"public double[] getDesiredHandYawPitchRoll()\n {\n switch (this)\n {\n case STAND_PREP:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case REACH_BACK:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case REACH_WAY_BACK:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case ARMS_03:\n return new double[] {0.0, Math.PI, 0.0};\n case REACH_FORWARD:\n return new double[] {0.0, 0.0, 0.0};\n case SMALL_CHICKEN_WINGS:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case LARGE_CHICKEN_WINGS:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case STRAIGHTEN_ELBOWS:\n return new double[] {0.0, 0.0, 0.0};\n case SUPPINATE_ARMS_IN_A_LITTLE:\n return new double[] {0.0, 0.0, 0.0};\n case ARMS_BACK:\n return new double[] {0.0, 0.0, 0.0};\n case LARGER_CHICKEN_WINGS:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case ARMS_OUT_EXTENDED:\n return new double[] {0.0, 0.0, 0.0};\n case SUPPINATE_ARMS_IN_MORE:\n return new double[] {0.0, 0.0, 0.0};\n case SUPPINATE_ARMS_IN_A_LOT:\n return new double[] {0.0, 0.0, 0.0};\n case SUPER_CHICKEN_WINGS:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case FLYING:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case FLYING_PALMS_UP:\n return new double[] {0.0, 0.0, 0.0};\n case KARATE_KID_KRANE_KICK:\n return new double[] {0.0, 0.0, 0.0};\n case FLEX_UP:\n return new double[] {0.0, 0.0, 0.0};\n case FLEX_DOWN:\n return new double[] {0.0, 0.0, 0.0};\n case FLYING_SUPPINATE_IN:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n case FLYING_SUPPINATE_OUT:\n return new double[] {0.0, -Math.PI / 2.0, 0.0};\n case ARM_NINETY_ELBOW_DOWN:\n return new double[] {0.0, 0.0, 0.0};\n case ARM_NINETY_ELBOW_FORWARD:\n return new double[] {0.0, 0.0, 0.0};\n case ARM_NINETY_ELBOW_UP:\n return new double[] {0.0, 0.0, 0.0};\n case ARM_FORTFIVE_ELBOW_UP:\n return new double[] {0.0, 0.0, 0.0};\n case ARM_FORTFIVE_ELBOW_DOWN:\n return new double[] {0.0, 0.0, 0.0};\n case ARM_OUT_TRICEP_EXERCISE:\n return new double[] {0.0, 0.0, 0.0};\n case ARM_STRAIGHT_DOWN:\n return new double[] {0.0, Math.PI / 2.0, 0.0};\n\n default:\n return new double[] {0.0, 0.0, 0.0};\n }\n }",
"public interface IPitchListener {\n void onPitchdetected(double freq);\n}",
"public float getAmplitude() {\n/* 70 */ return this.amplitude;\n/* */ }",
"public void pitch(double angle) {\n heading = rotateVectorAroundAxis(heading, left, angle);\r\n up = rotateVectorAroundAxis(up, left, angle);\r\n\r\n }",
"double getPWMRate();",
"public static int getNotePosition(Byte midiByte) {\n int shifted = midiByte.intValue() - Constants.MIDI_OFFSET;\n int octave = shifted / 12;\n int keyIndex = shifted % 12;\n return ((7 * octave) * wkInterval + offsetMap[keyIndex]); //hardcoded\n }",
"public int getMidiNum() {\n\t\treturn midiNum % 12;\n\t}",
"public float getWavelength() {\n/* 52 */ return this.wavelength;\n/* */ }",
"public int getAudioDscp();",
"double getPValue();",
"INote removeNote(int beatNum, String pitch, int octave) throws IllegalArgumentException;",
"@Override\n public double getInput(PID pid) {\n return (Math.abs(leftFrontMotor.getEncoderCount()) + Math.abs(leftRearMotor.getEncoderCount())\n + Math.abs(rightFrontMotor.getEncoderCount()) + Math.abs(rightRearMotor.getEncoderCount())) / 4;\n }",
"int getLastVibrationFrequency();",
"public float getMicGainDb();",
"int minNoteValue();",
"float getPreGain();",
"public float getPollData() {\r\n // FIXME getDeadZone ??\r\n if (jinputComponent != null) {\r\n // value = jinputComponent.getPollData(); <- heh - this borked everything\r\n // ! :) cuz abs(value - component.value) :P\r\n return jinputComponent.getPollData();\r\n } // else\r\n // FIXME - handle virtual input\r\n return virtualValue;\r\n }",
"public interface PidInput\n {\n /**\n * This method is called by the PID controller to get input data from the feedback device. The feedback\n * device can be motor encoders, gyro, ultrasonic sensor, light sensor etc.\n *\n * @return input value of the feedback device.\n */\n double get();\n\n }",
"double getLuong();",
"public float getSampleRate();",
"public double getReading() {\r\n\t\tresult = clicks;\r\n\t\tif(metric) result *= 0.2;\r\n\t\telse result *= 0.01;\r\n\t\treturn result;\r\n\t\t\r\n\t}",
"int getOutputVoltageRaw();",
"int getChargerCurrentRaw();",
"public Note getNote() {\n\t \n\t //returns the objected stored in the note field\n\t return this.note;\n }",
"public float getFrequency() { \n \treturn mouseJointDef.frequencyHz; \n }",
"int getInputVoltage();",
"public boolean hasPitch() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }",
"public boolean hasPitch() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }",
"public final MotionUpdateEvent setPitch(float pitch) {\n rotations.setY(pitch);\n return this;\n }",
"private double getRawAngle() {\n return (m_pot.getVoltage() / Constants.AIO_MAX_VOLTAGE) * Constants.Hood.POT_SCALE;\n }",
"public IntegerProperty getControlAmplitude() {\n return this.inputAdjuster.getCurrentAmplitude();\n }",
"public static int getPCM(String name) {\n return mapPCM.get(name);\n }",
"@Override\n default void prependPitchRotation(double pitch)\n {\n AxisAngleTools.prependPitchRotation(pitch, this, this);\n }"
] | [
"0.8147683",
"0.80001736",
"0.80001736",
"0.7829865",
"0.7658134",
"0.76321244",
"0.7593651",
"0.7553084",
"0.7553084",
"0.7435846",
"0.7435846",
"0.7427199",
"0.7237505",
"0.7178882",
"0.69464165",
"0.69281656",
"0.6829462",
"0.66468394",
"0.65973425",
"0.6498569",
"0.6492712",
"0.6440645",
"0.64035994",
"0.6372617",
"0.6340622",
"0.62414116",
"0.62173915",
"0.6169924",
"0.6072",
"0.6046599",
"0.60367054",
"0.60364383",
"0.6015388",
"0.5966052",
"0.5940235",
"0.58857316",
"0.5878938",
"0.5875642",
"0.58716244",
"0.58716244",
"0.58662254",
"0.5852448",
"0.5830405",
"0.58009464",
"0.5795031",
"0.57939714",
"0.5791978",
"0.5781375",
"0.57783043",
"0.57740015",
"0.57700586",
"0.5766334",
"0.56710416",
"0.56501037",
"0.55927277",
"0.55315006",
"0.5527224",
"0.54992515",
"0.5496446",
"0.549475",
"0.54823",
"0.5466247",
"0.5458935",
"0.5451409",
"0.5438855",
"0.5427379",
"0.539406",
"0.5390333",
"0.5389134",
"0.5374292",
"0.53702587",
"0.53655714",
"0.53645957",
"0.5336443",
"0.53245014",
"0.5309877",
"0.5302757",
"0.529073",
"0.5290293",
"0.5286732",
"0.5285481",
"0.5270324",
"0.52693576",
"0.52610725",
"0.52606034",
"0.52553177",
"0.5254348",
"0.52510715",
"0.5244432",
"0.5241551",
"0.5236932",
"0.52161956",
"0.5210474",
"0.5197297",
"0.51867944",
"0.5182897",
"0.51758754",
"0.5174406",
"0.5172426",
"0.5171642"
] | 0.6278012 | 25 |
Method used to get the corresponding name class value of a input step note | public static Integer getNameClass(String inputStep)
{
//System.out.println("Inside getNameClass inputNote: " + inputNote);
Integer nameClassValue = -1;
String nameClass0 = "C";
String nameClass1 = "D";
String nameClass2 = "E";
String nameClass3 = "F";
String nameClass4 = "G";
String nameClass5 = "A";
String nameClass6 = "B";
TreeMap<Integer, String> nameClassMap = new TreeMap<>();
nameClassMap.put(0, nameClass0);
nameClassMap.put(1, nameClass1);
nameClassMap.put(2, nameClass2);
nameClassMap.put(3, nameClass3);
nameClassMap.put(4, nameClass4);
nameClassMap.put(5, nameClass5);
nameClassMap.put(6, nameClass6);
for(Integer index : nameClassMap.keySet())
{
if(nameClassMap.get(index).equals(inputStep))
{
nameClassValue = index;
}
}
//System.out.println("Inside getNameClass nameClassValue: " + nameClassValue);
return nameClassValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ITemplateStep getStepByName(String stepName);",
"public String getStepName()\r\n\t{\r\n\t\treturn stepName;\r\n\t}",
"private String GetIOName(String type, String step, String sSequence) {\n\t\treturn type + \":\" + step + sSequence;\n\t}",
"public static String getClassName(EditorInfo info) {\n\t\tif (info.inputType==InputType.TYPE_NULL) return \"NULL\"; //inputType==0 is a common case...\n\t\tint i = info.inputType & InputType.TYPE_MASK_CLASS;\n\t\tfor (Field f : InputType.class.getFields())\n\t\t\ttry {\n\t\t\t\tif (f.getName().startsWith(\"TYPE_CLASS_\")\n\t\t\t\t\t\t&& f.getInt(null)==i)\n\t\t\t\t\treturn f.getName().substring(\"TYPE_CLASS_\".length());\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t//Shouldn't happen, but hope some other field matches!\n\t\t\t\tandroid.util.Log.d(\"DasherIME\",\"Couldn't read field \"+f.getName()+\", skipping...\", e);\n\t\t\t}\n\t\tthrow new IllegalArgumentException(\"InputType class \"+info.inputType+\" not found\");\n\t}",
"public java.lang.String getStepName() {\n return stepName;\n }",
"protected String getClassName() {\r\n return newName.getText();\r\n }",
"public String getStepDisplayName()\r\n\t{\r\n\t\treturn stepDisplayName;\r\n\t}",
"private static String getClassName (String label)\n {\n\tchar c;\n\tfor (int i = 0; i < label.length (); i++) {\n\t c = label.charAt (i);\n\t if (Character.isDigit (c)) {\n\t\treturn label.substring (0, i);\n\t }; // if\n\t}; // for\n\n\treturn label;\n\n }",
"private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}",
"abstract String getClassName();",
"java.lang.String getClassName();",
"public String toString()\r\n\t{\r\n\t\treturn ToStringHelper.toString(this, new String [] { \"stepName\" });\r\n\t}",
"public String getInputName(){\n \treturn model.getName();\n }",
"public abstract Class getDescriptedClass();",
"String getClassName();",
"String getClassName();",
"String getClassName();",
"String getValueName();",
"int getStep();",
"int getStep();",
"int getStep();",
"public abstract String getClassName();",
"public String getClassname() {\n return classname;\n }",
"java.lang.String getNextStep();",
"public ProofStep [ ] getSteps ( ) ;",
"String getFor();",
"String getPresetName();",
"public String getClassname()\r\n {\r\n return m_classname;\r\n }",
"public String getNameLocator()\r\n\t{\r\n driver.findElement(By.name(\"fname\"));\r\n fName=driver.findElement(By.xpath(\"//input[@placeholder='Firstname']\")).getAttribute(\"placeholder\");\r\n return fName;\r\n\t}",
"default String getCheckName() {\n return getClass().getSimpleName();\n }",
"abstract String classify(Instance inst);",
"protected String getClassName() {\n return getDescriptedClass().getName();\n }",
"public final String getName() {\n /// Since we plan to have only one wizard for each class, we use the name of the class.\n return this.getClass().getSimpleName();\n }",
"public String getClassLabel(String key);",
"public String getclassname(String strtofind, String classname) {\n\t\tif(classname==null){\n\t\t\tSystem.out.println(\"See assignment helper function getclassname\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tTable t=finaltable.symboltable.get(classname);\n\t\tif(t.varmap.containsKey(strtofind)){\n\t\t\treturn classname;\n\t\t}\n\t\telse{\n\t\t\treturn getclassname(strtofind,t.parent);\n\t\t}\n\t}",
"public String getClassname() {\n\t\treturn classname;\n\t}",
"public String getClassName();",
"String getInputName() {\n return (nameInput.getText());\n }",
"@Override\n public String getShortName() {\n return step.getShortName();\n }",
"WebElement getNameField();",
"String getNameElement();",
"private static String getDescription(Step step) {\n if (step instanceof FlowCall) {\n return \"Flow call: \" + ((FlowCall) step).getFlowName();\n } else if (step instanceof Expression) {\n return \"Expression: \" + ((Expression) step).getExpr();\n } else if (step instanceof ScriptCall) {\n return \"Script: \" + ((ScriptCall) step).getLanguageOrRef();\n } else if (step instanceof IfStep) {\n return \"Check: \" + ((IfStep) step).getExpression();\n } else if (step instanceof SwitchStep) {\n return \"Switch: \" + ((SwitchStep) step).getExpression();\n } else if (step instanceof SetVariablesStep) {\n return \"Set variables\";\n } else if (step instanceof Checkpoint) {\n return \"Checkpoint: \" + ((Checkpoint) step).getName();\n } else if (step instanceof FormCall) {\n return \"Form call: \" + ((FormCall) step).getName();\n } else if (step instanceof GroupOfSteps) {\n return \"Group of steps\";\n } else if (step instanceof ParallelBlock) {\n return \"Parallel block\";\n } else if (step instanceof ExitStep) {\n return \"Exit\";\n } else if (step instanceof ReturnStep) {\n return \"Return\";\n }\n\n return step.getClass().getName();\n }",
"@Override\n public String getClassType(){\n return \"Assistant Professor\";\n }",
"public String getClassification() {\n return classification;\n }",
"public String getClassification() {\n return classification;\n }",
"public String getStepDescription()\r\n\t{\r\n\t\treturn stepDescription;\r\n\t}",
"protected int getStep() {\n\t\treturn step;\n\t}",
"@Override\n public String classFactoryName() {\n return Mirrors.findAnnotationMirror(element(), Factory.class)\n .flatMap(Mirrors::findAnnotationValue)\n .map(value -> value.getValue().toString()).orElse(null);\n }",
"public String getName() {return this.name.getText();}",
"public String getClassificationName()\n {\n return classificationName;\n }",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();"
] | [
"0.61574626",
"0.6080914",
"0.6031846",
"0.5965927",
"0.58758366",
"0.57168645",
"0.56630147",
"0.557052",
"0.55095786",
"0.54749334",
"0.5458371",
"0.5445567",
"0.54130846",
"0.539574",
"0.5394491",
"0.5394491",
"0.5394491",
"0.53920984",
"0.53434503",
"0.53434503",
"0.53434503",
"0.5342821",
"0.5311866",
"0.5306259",
"0.5302997",
"0.5294033",
"0.5290674",
"0.52895147",
"0.5265213",
"0.52590984",
"0.52561283",
"0.5246349",
"0.52355194",
"0.52265614",
"0.5218615",
"0.5214489",
"0.51976424",
"0.51876837",
"0.5186405",
"0.51793146",
"0.51790076",
"0.51329327",
"0.51275945",
"0.51240647",
"0.51240647",
"0.5118933",
"0.51144576",
"0.5114148",
"0.51057816",
"0.5097345",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196",
"0.50965196"
] | 0.7273349 | 0 |
Method used to get the corresponding binomial coefficient of a list of note in chord | public static ArrayList<ArrayList<Integer>> getMelodicBinomialFromChord(TreeMap<Integer,ArrayList<String>> inputMap)
{
ArrayList<String> previousValueList = new ArrayList<>();
ArrayList<String> nextValueList = new ArrayList<>();
ArrayList<String> permutationList = new ArrayList<>();
ArrayList<Integer> singleBinomialPrev = new ArrayList<>();
ArrayList<Integer> singleBinomialNext = new ArrayList<>();
TreeMap<String,ArrayList<Integer>> binomialMap = new TreeMap<>();
for(int k=inputMap.size()-1; k>0; k--)
{
previousValueList = inputMap.get(k);
nextValueList = inputMap.get(k-1);
if(previousValueList.size() > 0 && nextValueList.size() > 0)
{
int w=0;
int j=0;
for(w=0; w<previousValueList.size(); w++)
{
for(j=0; j<nextValueList.size(); j++)
{
int PC_prev = 0;
int NC_prev = 0;
int PC_next = 0;
int NC_next = 0;
singleBinomialPrev = new ArrayList<>();
singleBinomialNext = new ArrayList<>();
String singlePermutation = previousValueList.get(w) + ":" + nextValueList.get(j);
String notePrev = previousValueList.get(w);
String noteNext = nextValueList.get(j);
//System.out.println("Permutazioni " + previousValueList.get(w) + "*" + nextValueList.get(j));
PC_prev = getPitchClass(previousValueList.get(w).substring(0, previousValueList.get(w).length()-1));
NC_prev = getNameClass(previousValueList.get(w).substring(0, 1));
singleBinomialPrev.add(PC_prev);
singleBinomialPrev.add(NC_prev);
PC_next = getPitchClass(nextValueList.get(j).substring(0, nextValueList.get(j).length()-1));
NC_next = getNameClass(nextValueList.get(j).substring(0, 1));
singleBinomialNext.add(PC_next);
singleBinomialNext.add(NC_next);
if((notePrev != null && !"".equals(notePrev)) && singleBinomialPrev.size() > 0)
binomialMap.put(notePrev, singleBinomialPrev);
if((noteNext != null && !"".equals(noteNext)) && singleBinomialPrev.size() > 0)
binomialMap.put(noteNext, singleBinomialNext);
if(singlePermutation != null && !"".equals(singlePermutation))
permutationList.add(singlePermutation);
}
}
}
}
//System.out.println("permutationList " + permutationList);
//System.out.println("permutationList Size " + permutationList.size());
//System.out.println("binomialMap " + binomialMap);
//System.out.println("binomialMap Size " + binomialMap.size());
return calculateInterval(permutationList, binomialMap);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void binomialCoeff(int C[][], int n, int k)\n {\n for (int i = 0; i <= n; i++) {\n for (int j = 0; j <= Math.min(i, k); j++)\n {\n\n // Base Cases\n if (j == 0 || j == i)\n C[i][j] = 1;\n\n // Calculate value using previously\n // stored values\n else\n C[i][j] = C[i - 1][j - 1] +\n C[i - 1][j];\n }\n }\n }",
"public static double binomialCoefficient(long n, long k){\n\t\n\tdouble coeff = 0;\n\ttry{\n\t coeff = factorial(n) / ( factorial(k) * factorial(n - k) ); \n\t}catch (ArithmeticException e){\n\t e.printStackTrace();\n\t System.out.println(\"n = \"+n+\"; k = \"+k+\".\");\n\t}\t\n\treturn coeff;\n }",
"private static BigInteger binomial(int n, int k) {\n BigInteger ret = new BigInteger(\"1\");\n if (k > n) {\n return BigInteger.ZERO;\n } else {\n \tif (binom[n][k] != null) {\n \t\treturn binom[n][k];\n \t}\n if (k > n / 2) {\n k = n - k;\n }\n // (n choose i+1) = (n choose i) * (n - i) / (i + 1)\n for (int i = 0; i < k; i++) {\n ret = ret.multiply(BigInteger.valueOf(n - i)).divide(BigInteger.valueOf(i + 1));\n }\n }\n return binom[n][k] = ret;\n }",
"public static double[][] BinomialCoef(int K, int I) {\n\t\tdouble Bin[][] = new double[K + 1][I + 1];\n\t\tint k, i;\n\t\t// Setup the first line\n\t\tBin[0][0] = 1.0;\n\t\tfor (i = I; i > 0; --i)\n\t\t\tBin[0][i] = 0.0;\n\t\t// Setup the other lines\n\t\tfor (k = 0; k < K; k++) {\n\t\t\tBin[k + 1][0] = 1.0;\n\t\t\tfor (i = 1; i <= I; i++) {\n\t\t\t\tif (k + 1 < i)\n\t\t\t\t\tBin[k][i] = 0.0;\n\t\t\t\telse\n\t\t\t\t\tBin[k + 1][i] = Bin[k][i] + Bin[k][i - 1];\n\t\t\t}\n\t\t}\n\t\treturn Bin;\n\t}",
"public static void main(String[] args) {\r\n Scanner sc = new Scanner(System.in);\r\n double a = sc.nextDouble();\r\n double b = sc.nextDouble();\r\n double p = a/(a+b);\r\n int n = 6;\r\n double bd = 0.0;\r\n for(int i = 3 ; i <= n ;i++)\r\n {\r\n bd = bd + bionomial(n,i,p);\r\n }\r\n System.out.println(Math.round(bd*1000.00)/1000.00);\r\n }",
"private Binomial(int n) {\n N = n;\n }",
"public int binom(int n, int k) {\n isBinomValuesValid(n,k);\n if(isZeroOrEqual(n,k))\n return coeffs[n][k] = 1;\n else\n return coeffs[n][k] = coeffs[n - 1][k - 1] + coeffs[n - 1][k];\n }",
"protected float computeProbs(int n)\n\t{\n\t\tfloat Cmi = 0;\n\t\t// Compute probabilities\n\t\tfor (int k = 0; k < bins; k++)\n\t\tfor (int l = 0; l < bins; l++)\n\t\t{\n\t\t float Pkl = Puv[k*bins+l];\n\t\t if (Pkl > 0)\n\t\t\t Cmi -= Pkl / n * Math.log(n * Pkl / (Pu[k] * Pv[l]));\n\t\t}\n\t\treturn Cmi;\n\t}",
"public static ArrayList<ArrayList<Integer>> calculateInterval(ArrayList<String> inputPermutation, TreeMap<String, ArrayList<Integer>> binomialMap)\r\n {\r\n ArrayList<ArrayList<Integer>> intervalResult = new ArrayList<>();\r\n ArrayList<Integer> intervalForSinglePermutation = new ArrayList<>();\r\n if(inputPermutation.size() > 0)\r\n {\r\n for(int y=0; y<inputPermutation.size(); y++)\r\n { \r\n intervalForSinglePermutation = new ArrayList<>();\r\n List<String> singleNote = Arrays.asList(inputPermutation.get(y).split(\":\"));\r\n \r\n ArrayList<Integer> binomialFirstNote = binomialMap.get(singleNote.get(0));\r\n ArrayList<Integer> binomialSecondNote = binomialMap.get(singleNote.get(1));\r\n \r\n Integer pitchClassFirstNote = binomialFirstNote.get(0);\r\n Integer NameClassFirstNote = binomialFirstNote.get(1);\r\n\r\n Integer pitchClassSecondNote = binomialSecondNote.get(0);\r\n Integer NameClassSecondNote = binomialSecondNote.get(1);\r\n\r\n Integer firstElem = (pitchClassFirstNote-pitchClassSecondNote) < 0 ? ((pitchClassFirstNote-pitchClassSecondNote)+12)%12: (pitchClassFirstNote-pitchClassSecondNote)%12; \r\n Integer secondElem = (NameClassFirstNote-NameClassSecondNote) < 0 ? ((NameClassFirstNote-NameClassSecondNote)+7)%7: (NameClassFirstNote-NameClassSecondNote)%7;\r\n //System.out.println(\"Inside calculateInterval final result: <\"+firstElem+\",\"+secondElem+\">\");\r\n intervalForSinglePermutation.add(firstElem);\r\n intervalForSinglePermutation.add(secondElem);\r\n intervalResult.add(intervalForSinglePermutation);\r\n }\r\n //System.out.println(\"calculateInterval: \" + intervalResult);\r\n } \r\n return intervalResult;\r\n }",
"public double[] coeff();",
"public static double logBinomialCoefficient(long n, float k){\n\treturn log_gamma(n+1) - (log_gamma(k+1) + log_gamma(1+n-k));\n }",
"public static int coeficienteBinomial(int n, int k) {\n int res = 0;\n res = factorial(n) /( factorial(k) * factorial(n-k));\n return res;\n }",
"@Override\r\n public int getCoefficient(int power) {\r\n PolynomialNode x = this.head.filter(t -> {\r\n Term term = (Term) t;\r\n return term.getPower() == power;\r\n });\r\n return x.getNodeTerm().getCoefficient();\r\n }",
"public double getCoefficient();",
"public BigInteger[] coefficients()\n\t{\n\t\treturn coefficients;\n\t}",
"public static int[] conwayPolynomial(int prime, int power) {\n int[] ans = new int[power];\n String conwayFileName = \"CPimport-3500.txt\";\n String delims = \"[,\\\\[\\\\]]+\";\n ClassLoader cl = Thread.currentThread().getContextClassLoader();\n InputStream is = cl.getResourceAsStream(conwayFileName);\n if (is == null) {\n System.out.println(\"null InputStream\");\n return null;\n }\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n String line;\n try {\n while ((line = reader.readLine()) != null) {\n String[] toks = line.split(delims);\n //System.out.println(Arrays.toString(toks));\n // indexing is tricky: toks[0] is \"\" and we omit the final one\n // since the polynomial is monic and we omit the highest coeff.\n if (toks.length > 3) {\n if (prime == Integer.parseInt(toks[1])) {\n if (power == Integer.parseInt(toks[2])) {\n for (int i = 0; i < toks.length - 4; i++) {\n int coeff = Integer.parseInt(toks[i + 3]);\n if (coeff != 0) coeff = prime - coeff; // negate the coeffs\n ans[i] = coeff;\n }\n return ans;\n }\n }\n }\n }\n }\n catch (IOException ex) { ex.printStackTrace(); }\n return null;\n }",
"public ArrayList<Integer> obtenerYi(){\n ArrayList<Integer> res = new ArrayList<Integer>();\n int cont;\n \n for (float p:probabilidades){\n cont=0;\n while (Math.pow(base, cont)<1/p)\n cont++;\n res.add(cont);\n }\n return res;\n }",
"public static int[] prc(int[] arr,int p)\r\n {\n char[][] barr=new char[arr.length][];\r\n /*for(int i=0;i<barr.length;i++)\r\n barr[i] = new StringBuilder(\"\");*/\r\n int[] onesarr=new int[barr.length];\r\n int odd,even;\r\n odd=even=0;\r\n for(int i=0;i<arr.length;i++)\r\n {\r\n barr[i]=(Integer.toBinaryString(p^arr[i])).toCharArray();\r\n }\r\n\r\n /*for(int i=0;i<barr.length;i++)\r\n System.out.print(barr[i]+\" \");\r\n System.out.println();*/\r\n /*for(int i=0;i<barr.length;i++)\r\n {\r\n char[] tmp=new char[barr[i].length()];\r\n barr[i].getChars(0, barr[i].length(), tmp, 0);\r\n int t=0;\r\n for(int j=0;j<tmp.length;j++)\r\n {\r\n if(tmp[j]=='1')\r\n t++;\r\n }\r\n onesarr[i]=t;\r\n }*/\r\n for(int i=0;i<barr.length;i++)\r\n {\r\n int t=0;\r\n for(int j=0;j<barr[i].length;j++)\r\n {\r\n if(barr[i][j]=='1')\r\n t++;\r\n }\r\n onesarr[i]=t;\r\n }\r\n /*for(int i=0;i<onesarr.length;i++)\r\n System.out.print(onesarr[i]+\" \");\r\n System.out.println();*/\r\n for(int i=0;i<onesarr.length;i++)\r\n {\r\n if(onesarr[i]%2==0)\r\n even++;\r\n else\r\n odd++;\r\n }\r\n int[] ansarr=new int[2];\r\n ansarr[0]=even;\r\n ansarr[1]=odd;\r\n return ansarr; \r\n }",
"private static int jacobiSymbol(int p, BigInteger n) {\n if (p == 0)\n return 0;\n\n // Algorithm and comments adapted from Colin Plumb's C library.\n int j = 1;\n int u = n.mag[n.mag.length-1];\n\n // Make p positive\n if (p < 0) {\n p = -p;\n int n8 = u & 7;\n if ((n8 == 3) || (n8 == 7))\n j = -j; // 3 (011) or 7 (111) mod 8\n }\n\n // Get rid of factors of 2 in p\n while ((p & 3) == 0)\n p >>= 2;\n if ((p & 1) == 0) {\n p >>= 1;\n if (((u ^ (u>>1)) & 2) != 0)\n j = -j; // 3 (011) or 5 (101) mod 8\n }\n if (p == 1)\n return j;\n // Then, apply quadratic reciprocity\n if ((p & u & 2) != 0) // p = u = 3 (mod 4)?\n j = -j;\n // And reduce u mod p\n u = n.mod(BigInteger.valueOf(p)).intValue();\n\n // Now compute Jacobi(u,p), u < p\n while (u != 0) {\n while ((u & 3) == 0)\n u >>= 2;\n if ((u & 1) == 0) {\n u >>= 1;\n if (((p ^ (p>>1)) & 2) != 0)\n j = -j; // 3 (011) or 5 (101) mod 8\n }\n if (u == 1)\n return j;\n // Now both u and p are odd, so use quadratic reciprocity\n assert (u < p);\n int t = u; u = p; p = t;\n if ((u & p & 2) != 0) // u = p = 3 (mod 4)?\n j = -j;\n // Now u >= p, so it can be reduced\n u %= p;\n }\n return 0;\n }",
"public static byte[] getGenotipo(int f,int nB){\n byte g[] = new byte[nB];\n int aux,nf = f;\n int cont = 0;\n for(int i =nB-1; i>=0;i--){\n aux = (int) Math.pow(2, i);\n if(nf >= aux){\n nf = nf - aux;\n g[cont] = 1;\n }\n else\n g[cont] = 0;\n cont ++;\n }\n return g;\n }",
"public static ArrayList<String> getIntervalName(ArrayList<ArrayList<Integer>> binomialInput)\r\n {\r\n ArrayList<String> pciNameList = new ArrayList<>();\r\n ArrayList<Integer> tmpListPci = new ArrayList<>();\r\n ArrayList<ArrayList<String>> intervalMatrix = generateMatrixBRI();\r\n if(!binomialInput.isEmpty())\r\n {\r\n for(int k=0; k<binomialInput.size(); k++)\r\n {\r\n tmpListPci = binomialInput.get(k);\r\n int PC = tmpListPci.get(0);\r\n int NC = tmpListPci.get(1);\r\n\r\n //System.out.println(\"tmpListPci: \" + tmpListPci);\r\n //System.out.println(\"PC: \" + PC);\r\n //System.out.println(\"NC: \" + NC);\r\n\r\n String intervalValue = intervalMatrix.get(PC).get(NC);\r\n //System.out.println(\"intervalValue: \" + intervalValue);\r\n\r\n pciNameList.add(intervalValue);\r\n }\r\n }\r\n return pciNameList;\r\n }",
"private static BigInteger[][] power(BigInteger[][] base, long n)\n {\n if (n == 0 || n == 1) return atom;\n \n BigInteger fib[][] = power(base, n/2);\n fib = Fibonacci.multiply(fib, fib);\n if (n%2 == 1) fib = Fibonacci.multiply(fib, base);\n \n return fib;\n }",
"int equalPairOfBits(int n, int m) {\n return ((BinaryOperator<Integer>) (a, b) -> {\n String one = Integer.toBinaryString(a);\n String two = Integer.toBinaryString(b);\n //FUCK YO SHIT, THIS IS STUPID\n int max = Math.max(one.length(), two.length());\n if (max != one.length())\n one = IntStream.range(0, max - one.length())\n .mapToObj(aq -> \"0\")\n .reduce(\"\", (r, c) -> r + c) + one;\n if (max != two.length())\n two = IntStream.range(0, max - two.length())\n .mapToObj(aq -> \"0\")\n .reduce(\"\", (r, c) -> r + c) + two;\n for (int i = max - 1, j = 0; i > -1; --i, j++) {\n if (one.charAt(i) == two.charAt(i))\n return (int) Math.pow(2, j);\n }\n return 0;\n }).apply(n, m);\n }",
"private double infobits(double[] probs) {\r\n\t\tdouble sum = 0;\r\n\t\tfor (int i = 0; i < probs.length; i++) {\r\n\t\t\tsum += entropy(probs[i]);\r\n\t\t}\r\n\t\treturn sum;\r\n\t}",
"private double binomeN_I(int n, int i) {\n double ni;\n double a1 = factorial(n);\n double a2 = factorial(i);\n double a3 = factorial(n - i);\n ni = a1 / (a2 * a3);\n return ni;\n }",
"public double get_coefficient() {\r\n\t\treturn this._coefficient;\r\n\t}",
"public static Integer calculateCNC(String inputNote)\r\n {\r\n Integer octave = Integer.parseInt(inputNote.substring(inputNote.length()-1, inputNote.length()));\r\n Integer nameClass = getNameClass(inputNote.substring(0, 1));\r\n //System.out.println(\"Inside calculateCNC parameter: octave - value: \" + octave);\r\n //System.out.println(\"Inside calculateCNC parameter: nameClass - value: \" + nameClass);\r\n return (octave * 7) + nameClass; \r\n }",
"private int degreeFromCoefficients(int numOfCoefficients) {\n return (int) (0.5*(-1 + (int)(Math.sqrt(1+8*numOfCoefficients))))-1;\n }",
"public Polynom inputPow(Polynom polynom, CanonicForms g) {F newF;\n if ( (polynom.coeffs[0].numbElementType() < Ring.Polynom) && (polynom.coeffs[0].Im(g.newRing).isZero(g.newRing)) ) {// т.е. у него числовой коэффициент\n for (int p = polynom.powers.length - 1; p > g.RING.varNames.length - 1; p--) {\n if (polynom.powers[p] != 0) {\n if (polynom.powers[p] == 1) {Element simb=g.List_of_Change.get(p - g.RING.varNames.length);\n if (simb instanceof F ) {\n F func = (F) simb;\n if (func.name == F.LN || func.name == F.LG) {\n newF= new F(func.name, func.X[0].pow(polynom.coeffs[0].abs(g.newRing), g.newRing));\n } else if (func.name == F.LOG) {\n newF= new F(func.name, func.X[0], func.X[1].pow(polynom.coeffs[0].abs(g.newRing), g.newRing));\n } else continue;\n Polynom newPol=(Polynom)g.addNewElement(newF, 1);\n newPol.coeffs[0]= (polynom.coeffs[0].isNegative())? NumberZ.MINUS_ONE: NumberZ.ONE;\n for (int i = 0; i < polynom.powers.length; i++) newPol.powers[i]+=polynom.powers[i]; \n newPol.powers[p]=0;\n return newPol;\n }} \n }\n }\n }\n return polynom;\n }",
"double indexOfCoincidence(int length, int[] alphabet){\n\t\tdouble n=length;\n\t\tdouble IOC = 0;\n\t\tfor(int i=0;i<alphabet.length;i++){\n\t\t\tIOC+=alphabet[i]*(alphabet[i]-1);\n\t\t}\n\n\t\tdouble something = IOC/(length*(length-1));\n\n\t\tSystem.out.println(something);\n\t\treturn n;\n\t}",
"public static void main(String[] args) {\n int a = 2; // starting number\n int r = 2; // Common ratio\n int n = 5; // N th term to be find\n\n int curr_term;\n for (int i = 0; i < n; i++) {\n curr_term = a * (int)Math.pow(r, i);\n System.out.print(curr_term + \" \");\n }\n\n }",
"private int numberOfCoefficients(int degree) {\n return (int) (0.5 * (Math.pow(degree + 1, 2) + degree + 1));\n }",
"static int comb(int big, int smal) \n\t{ \n\t\treturn (int) ((long) fact[big] * invfact[smal] % mod \n\t\t\t\t* invfact[big - smal] % mod); \n\t}",
"private static long recBinom(int n, int k) {\n if (bin.get(n).get(k) > 0) {\n return bin.get(n).get(k).longValue();\n }\n \n if (k == 0 || k == n) {\n bin.get(n).set(k, Long.valueOf(1));\n return 1;\n } \n\n long result = recBinom(n - 1, k - 1) + recBinom(n - 1, k);\n bin.get(n).set(k, Long.valueOf(result));\n\n return result;\n }",
"public void mainDecoder(int b, Integer[] playedChord){\n\n while(beatCounter<b){\n for(int i =0; i < rhytm.get(beatCounter).length;i++)\n {\n if(rhytm.get(beatCounter)[i]!=null) {\n if ((!rhytm.get(beatCounter)[i].equals(\"Ri\")) && (!rhytm.get(beatCounter)[i].equals(\"Rs\"))) {\n\n //TODO DECODE HARMONIC NOTE AT EVERY FIRST AND THIRD BEAT AT FIRST NOTE PLAYED\n if (beatCounter % 2 == 0 && i == 0) {\n for (int j = 0; j < playedChord.length; j++) {\n if (playedChord[j] == melody.get(melodyCounter)) {\n if(j<2){\n binaryOutput+=\"0\";\n binaryOutput+=Integer.toBinaryString(j);\n }else{\n binaryOutput+=Integer.toBinaryString(j);\n }\n //todo SAVE FOR LATER COMPARISON\n if(beatCounter==0)\n firstChordNote=melody.get(melodyCounter);\n if(beatCounter==16)\n secondChordNote=melody.get(melodyCounter);\n\n previousNote = melody.get(melodyCounter);\n melodyCounter++;\n break;\n }\n }\n //TODO DECODE EVERY OTHER NOTE, ENCODED WITH AUTOMATON\n } else {\n //// TODO WAS MELODY ASCENDING OR DESCENDING\n if (previousNote >= 55 && previousNote <= 79)\n if (previousNote < melody.get(melodyCounter))\n binaryOutput+=\"1\";\n else\n binaryOutput+=\"0\";\n\n //todo WAS IT STEP OR LEAP\n for (int j = 0; j < melodyNotes.length; j++) {\n if (melodyNotes[j].equals(previousNote)) {\n previousNotePosition = j;\n break;\n }\n }\n for (int j = 0; j < melodyNotes.length; j++) {\n if (melodyNotes[j].equals(melody.get(melodyCounter))) {\n previousNote=melodyNotes[j];\n int difference = abs(j - previousNotePosition);\n if (difference > 1) {\n binaryOutput+=\"1\";\n binaryOutput+=new Integer(difference - 2).toString();\n } else\n binaryOutput+=\"0\";\n break;\n }\n }\n melodyCounter++;\n }\n }\n }\n }\n beatCounter++;\n }\n\n }",
"public int[] getCO() {return co;}",
"public double getCandProbability(String candidate){\n\t\tString[] candTerms = candidate.split(\"\\\\s+\");\n\t\t\n\t\t// Total Tokens\n\t\tdouble totTokens = (double)unigramDict.termCount();\n\t\t//P(w1) in log\n\t\tString w1 = candTerms[0];\n\t\tdouble probW1 = Math.log10((double)unigramDict.count(w1, wordToId)/totTokens);\n\t\t\n\t\t//P (w1, w2, ..., wn)\n\t\tdouble probCandidate = probW1;\n\t\t\n\t\t\n\t\tfor( int i =0; i < candTerms.length-1; i++){\n\t\t\t//Pint(w2|w1) = Pmle(w2) + (1 )Pmle(w2|w1)\n\t\t\tString currentTerm = candTerms[i];\n\t\t\tString nextTerm = candTerms[i+1];\n\t\t\tString bigram = currentTerm + \" \" + nextTerm;\n\t\t\tint freqBigram = bigramDict.count(bigram, wordToId);\n\t\t\t\n\t\t\t//this term should be in dictionary\n\t\t\tint freqFirstTerm = unigramDict.count(currentTerm, wordToId);\n\t\t\t\n\t\t\tdouble PmleW2W1 = (double)freqBigram/(double)freqFirstTerm;\n\t\t\t\n\t\t\t//System.out.println(\"candidate=[\" + candidate + \"]\\tbigram=[\" + bigram + \"]\\tterms=\" + Arrays.toString(terms));\n\t\t\tdouble PmleW2 = (double)unigramDict.count(nextTerm, wordToId) / totTokens;\n\t\t\t//double lamda= 0.1;\n\t\t\tdouble PintW2W1 = lamda*PmleW2 + (1-lamda)*PmleW2W1;\n\t\t\tprobCandidate = probCandidate + Math.log10(PintW2W1);\n\t\t}\n\t\treturn probCandidate;\n\t}",
"private double curveBranchWitherRatio(int n){\n return Math.pow(((double)n / (double)inputN), inputBranchWitherRatio);\n }",
"public static ArrayList<ArrayList<String>> generateMatrixBRI()\r\n {\r\n\tArrayList<ArrayList<String>> binomialRapInterval = new ArrayList<>();\r\n\tArrayList<String> r = null;\r\n\t\r\n\tfor(int i=0; i<12; i++)\r\n\t{\r\n r = new ArrayList<>();\r\n if(i == 0)\r\n { \r\n r.add(0, \"P1\");\r\n r.add(1, \"d2\");\r\n r.add(2, \"3d3\");\r\n r.add(3, \"5d4\");\r\n r.add(4, \"5A5\");\r\n r.add(5, \"3A6\");\r\n r.add(6, \"A7\");\r\n }\r\n\r\n if(i == 1)\r\n {\r\n r.add(0, \"A1\");\r\n r.add(1, \"m2\");\r\n r.add(2, \"2d3\");\r\n r.add(3, \"4d4\");\r\n r.add(4, \"6A5\");\r\n r.add(5, \"4A6\");\r\n r.add(6, \"2A7\");\r\n }\r\n\r\n if(i == 2)\r\n {\r\n r.add(0, \"2A1\");\r\n r.add(1, \"M2\");\r\n r.add(2, \"d3\");\r\n r.add(3, \"3d4\");\r\n r.add(4, \"5d5\");\r\n r.add(5, \"5A6\");\r\n r.add(6, \"3A7\");\r\n }\r\n\r\n if(i == 3)\r\n {\r\n r.add(0, \"3A1\");\r\n r.add(1, \"A2\");\r\n r.add(2, \"m3\");\r\n r.add(3, \"2d4\");\r\n r.add(4, \"4d5\");\r\n r.add(5, \"5d6\");\r\n r.add(6, \"4A7\");\r\n }\r\n\r\n if(i == 4)\r\n {\r\n r.add(0, \"4A1\");\r\n r.add(1, \"2A2\");\r\n r.add(2, \"M3\");\r\n r.add(3, \"d4\");\r\n r.add(4, \"3d5\");\r\n r.add(5, \"4d6\");\r\n r.add(6, \"5A7\");\r\n }\r\n\r\n if(i == 5)\r\n {\r\n r.add(0, \"5A1\");\r\n r.add(1, \"3A2\");\r\n r.add(2, \"A3\");\r\n r.add(3, \"P4\");\r\n r.add(4, \"2d5\");\r\n r.add(5, \"3d6\");\r\n r.add(6, \"5d7\");\r\n }\r\n\r\n if(i == 6)\r\n {\r\n r.add(0, \"6A1\");\r\n r.add(1, \"4A2\");\r\n r.add(2, \"2A3\");\r\n r.add(3, \"A4\");\r\n r.add(4, \"d5\");\r\n r.add(5, \"2d6\");\r\n r.add(6, \"4d7\");\r\n }\r\n\r\n if(i == 7)\r\n {\r\n r.add(0, \"5d1\");\r\n r.add(1, \"5A2\");\r\n r.add(2, \"3A3\");\r\n r.add(3, \"2A4\");\r\n r.add(4, \"P5\");\r\n r.add(5, \"d6\");\r\n r.add(6, \"3d7\");\r\n }\r\n\r\n if(i == 8)\r\n {\r\n r.add(0, \"4d1\");\r\n r.add(1, \"5d2\");\r\n r.add(2, \"4A3\");\r\n r.add(3, \"3A4\");\r\n r.add(4, \"A5\");\r\n r.add(5, \"m6\");\r\n r.add(6, \"2d7\");\r\n }\r\n\r\n if(i == 9)\r\n {\r\n r.add(0, \"3d1\");\r\n r.add(1, \"4d2\");\r\n r.add(2, \"5A3\");\r\n r.add(3, \"4A4\");\r\n r.add(4, \"2A5\");\r\n r.add(5, \"M6\");\r\n r.add(6, \"d7\");\r\n }\r\n\r\n if(i == 10)\r\n {\r\n r.add(0, \"2d1\");\r\n r.add(1, \"3d2\");\r\n r.add(2, \"5d3\");\r\n r.add(3, \"5A4\");\r\n r.add(4, \"3A5\");\r\n r.add(5, \"A6\");\r\n r.add(6, \"m7\");\r\n }\r\n\r\n if(i == 11)\r\n {\r\n r.add(0, \"d1\");\r\n r.add(1, \"2d2\");\r\n r.add(2, \"4d3\");\r\n r.add(3, \"6A4\");\r\n r.add(4, \"4A5\");\r\n r.add(5, \"2A6\");\r\n r.add(6, \"M7\");\r\n }\r\n binomialRapInterval.add(r);\r\n\t}\r\n\treturn binomialRapInterval;\r\n }",
"public int coeff(int n, int k) {\n // Insert your code here\n return fact(n) / (fact(k) * fact(n - k));\n }",
"java.math.BigInteger getNcbieaa();",
"public static int getProduct(int b, int n1, int n2){\n int r1=0,pow=1,res1=0,res=0,carry=0,sum=0;\n while(n1 !=0)\n {\n r1=n1%10;\n n1/=10;\n res1=multiply(r1,n2,b,pow);\n res=SumAnybase(res1,res,b);\n pow=pow*10;\n }\n return res;\n }",
"public static synchronized int[] nextComb()\r\n\t{\r\n\t\tint[] c = null;\r\n\t\tint nc = 0;\r\n\t\twhile (nc == 0 && k > 0)\r\n\t\t{\r\n\t\t\tif (k >= p)\r\n\t\t\t{\r\n\t\t\t\tnc = k;\r\n\t\t\t\tc = new int[nc+1];\r\n\t\t\t\tfor (int j = 1; j <= k; j++)\r\n\t\t\t\t\tc[j] = x[j];\r\n\t\t\t}\r\n\r\n\t\t\tif (x[k] == n)\r\n\t\t\t{\r\n\t\t\t\tk--;\r\n\t\t\t\tx[k]++;\r\n\t\t\t}\r\n\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tk++;\r\n\t\t\t\tx[k] = x[k-1] + 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn c;\r\n\t}",
"public void printPascal(int n) {\n coeffs = new int[n+1][];\n for(int i = 0; i <= n; i++){\n coeffs[i] = new int[i+1];\n for(int j = 0; j <= i; j++)\n binom(i, j);\n }\n\n if(!reverse){\n for(int x = 0; x < coeffs.length; x++) {\n for (int y = 0; y < coeffs[x].length; y++)\n System.out.print(coeffs[x][y] + \" \");\n System.out.println();\n }\n }else{\n for(int x = coeffs.length-1; x >= 0; x--) {\n for (int y = coeffs[x].length-1; y >= 0 ; y--)\n System.out.print(coeffs[x][y] + \" \");\n System.out.println();\n }\n }\n }",
"public double getCoeff() {\n\t\t\t\treturn coeff;\n\t\t\t}",
"public double[] getCot() { return Cot; }",
"public static int[] bwor(BinaryNumber bn1, BinaryNumber bn2) {\n\t\tif (bn1.getLength() !=bn2.getLength()) {\n\t\t\tSystem.out.println(\"can't be doin that. Make them the same length.\");\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tint[] or = new int[bn1.length];\n\t\tfor(int i = 0;i < bn1.length;i++) {\n\t\t\tif(bn1.data[i] + bn2.data[i] != 0) {\n\t\t\t\tor[i] = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tor[i] = 0;\n\t\t\t}\n\t\t}\n\t\treturn or;\n\t}",
"private static ArrayList<Integer> generateBinaryCodeList(ArrayList<ArrayList<Integer>> tMat){\r\n\t\tArrayList<Integer> bcList = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < tMat.size(); i++){\r\n\t\t\tint code = getBinaryCode(tMat, i);\r\n\t\t\tbcList.add(code);\r\n\t\t}\r\n\t\treturn bcList;\r\n\t}",
"public static void main(String[] args) {\n Scanner s=new Scanner(System.in);\n int n = s.nextInt();\n for(int i=1; i<n+1; i++){\n int a = s.nextInt();\n int b = s.nextInt();\n int terms = s.nextInt();\n double c= a;\n for(int j=1; j<terms+1; j++){\n c = c + Math.pow(2,j-1)*b;\n System.out.printf(\"%.0f \", c);\n }\n System.out.printf(\"%n\");\n } \n }",
"private IMatrix cofactor() {\n\t\tint n = this.getColsCount();\n\t\tIMatrix algCompl = newInstance(n, n);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdouble value = Math.pow(-1, i + j);\n\t\t\t\tIMatrix sub = this.subMatrix(i, j, true);\n\t\t\t\tDouble det = sub.determinant();\n\t\t\t\tvalue *= det;\n\t\t\t\talgCompl.set(i, j, value);\n\t\t\t}\n\t\t}\n\t\treturn algCompl;\n\t}",
"public double calculerCout(int coefficient) {\n return coefficient * cout;\n }",
"int pulse() {\r\n\r\n int m = majority(regX.get(8), regY.get(10), regZ.get(10));\r\n //System.out.println(\"M: \" + m);\r\n int cipherOutput = (regX.get(18) ^ regY.get(21) ^ regZ.get(22));\r\n\r\n if (m == regX.get(8)) {\r\n int t = regX.get(13) ^ regX.get(16) ^ regX.get(17) ^ regX.get(18);\r\n regX.push(t);\r\n }\r\n if (m == regY.get(10)) {\r\n int t = regY.get(20) ^ regY.get(21);\r\n regY.push(t);\r\n }\r\n\r\n if (m == regZ.get(10)) {\r\n int t = regZ.get(7) ^ regZ.get(20) ^ regZ.get(21) ^ regZ.get(22);\r\n regZ.push(t);\r\n }\r\n\r\n keystream.add(cipherOutput);\r\n return cipherOutput;\r\n }",
"int catalan(int n) { \n int res = 0; \n \n // Base case \n if (n <= 1) { \n return 1; \n } \n for (int i = 0; i < n; i++) { \n res += catalan(i) * catalan(n - i - 1); \n } \n return res; \n }",
"@Override\n\tpublic double ChuVi() {\n\n\t\treturn (banKinh*2*P);\n\t}",
"protected static float[] getBinomialKernelSigmaOne() {\n float a = 1.f/16.f;\n return new float[]{2*a, 4*a, 0, -4*a, -2*a};\n }",
"public int getNBCInoperative();",
"public double ObjectiveFunction(double[] variables) {\n double answer = 0.002;\n for(int i = 1; i <= 25; i++) {\n double interim = 0;\n for(int j = 1; j <= 2; j++) {\n interim = Math.pow((variables[0] - variables[1]), 6);\n }\n answer += (1 / (i + interim));\n }\n return answer;\n }",
"private int[] buscarMenores(ArrayList<ArbolCod> lista){\n int temp;\n int m1=1;\n int m2=0;\n float vm1,vm2,aux;\n \n vm1=lista.get(m1).getProbabilidad();\n vm2=lista.get(m2).getProbabilidad();\n if (vm1<=vm2){\n temp=m1;\n m1=m2;\n m2=temp;\n } \n for (int i=2;i<lista.size();i++){\n vm1=lista.get(m1).getProbabilidad();\n vm2=lista.get(m2).getProbabilidad();\n aux=lista.get(i).getProbabilidad();\n if (aux<=vm2){\n m1=m2;\n m2=i;\n } \n else if (aux<=vm1){\n m1=i;\n }\n }\n int[] res=new int[2];\n res[0]=m1;\n res[1]=m2;\n return res;\n }",
"public static List<Object[]> homophoneSearch(int n, String[] alphabet, String cipher, boolean contig) {\n\t\t// maps n-symbol combination to its corresponding ciphertext sequence \n\t\tMap<String, StringBuffer> sequences = new HashMap<String, StringBuffer>();\n\t\t// maps each symbol to each key in which it appears as a substring\n\t\tMap<Character, Set<String>> keysBySymbol = new HashMap<Character, Set<String>>(); \n\t\t\n\t\t// compute all combinations of n symbols selected from the given alphabet. \n\t\tint[] indices;\n\t\tCombinationGenerator x = new CombinationGenerator (alphabet.length, n);\n\t\tStringBuffer combination;\n\t\twhile (x.hasMore ()) {\n\t\t combination = new StringBuffer ();\n\t\t indices = x.getNext ();\n\t\t for (int i = 0; i < indices.length; i++) {\n\t\t combination.append (alphabet[indices[i]]);\n\t\t }\n\t\t String key = combination.toString ();\n\t\t sequences.put(key, new StringBuffer()); // init sequences\n\t\t \n\t\t Set<String> set;\n\t\t for (int i=0; i<key.length(); i++) { // track symbol combinations by symbol\n\t\t\t char ch = key.charAt(i);\n\t\t\t set = keysBySymbol.get(ch);\n\t\t\t if (set == null) set = new HashSet<String>();\n\t\t\t set.add(key);\n\t\t\t keysBySymbol.put(ch, set);\n\t\t\t \n\t\t }\n\t\t //System.out.println (key);\n\t\t \n\t\t}\t\t\n\t\t\n\t\t// generate sequences\n\t\tStringBuffer sb;\n\t\tfor (int i=0; i<cipher.length(); i++) {\n\t\t\tfor (String key : keysBySymbol.get(cipher.charAt(i))) {\n\t\t\t\tsequences.get(key).append(cipher.charAt(i));\n\t\t\t}\n\t\t}\n\t\t\n\t\tList<Object[]> results = new ArrayList<Object[]>();\n\t\tfor (String key : sequences.keySet()) {\n\t\t\tString s = sequences.get(key).toString();\n\t\t\tObject[] r = repeatScore(s, n);\n\t\t\tint matches = 0;\n\t\t\tif (contig) matches = contig(s, (String) r[1]);\n\t\t\telse {\n\t\t\t\tmatches = (Integer) r[0];\n\t\t\t}\n\t\t\tObject[] result = new Object[] {s.length(), matches, r[1], s};\n\t\t\t//System.out.println(key+\": \" + s+ \": \" + lrs(s) + \": [\" + r[0] + \", \" + r[1] + \"] \"+ contig(s, (String) r[1])); \n\t\t\tresults.add(result);\n\t\t}\n\t\t\n\t\treturn results;\n\t}",
"protected abstract List<Individual> binaryOperation(List<Individual> acceptedFromLeft,\n List<Individual> acceptedFromRight);",
"@Pure\n\tpublic static BigInteger binomialPrecise(int n, int r) throws IllegalArgumentException\n\t{\n\t\tif (r > n || n <= 0 || r <= 0) throw new IllegalArgumentException(\"r: \" + r + \" n: \" + n);\n\t\tif (n == r) return BigInteger.ONE;\n\t\tif (r == n - 1 || r == 1) return BigInteger.valueOf(n);\n\n\t\t//TODO: Optimise\n\t\treturn factorialPrecise(n).divide(factorialPrecise(r).multiply(factorialPrecise(n - r)));\n\t}",
"java.math.BigInteger getNcbistdaa();",
"public void copiedMeasureDecoder(Integer chordNote,Integer[]previousChord, Integer[] playedChord){\n /* int c=0;\n int a=0;\n int b=0;\n int x0=0;\n int x1=0;*/\n int d1=0;\n int d2=0;\n\n\n\n for (int i=0;i<melodyNotes.length;i++){\n if(melodyNotes[i]==chordNote)\n d1=i;\n }\n for (int i=0;i<melodyNotes.length;i++){\n if(melodyNotes[i]==melody.get(melodyCounter))\n d2=i;\n /* if(melodyNotes[i]==playedChord[1])\n a=i;\n if(melodyNotes[i]==previousChord[1])\n b=i;*/\n }\n /*if(a<b){\n x0=a-b;\n x1=7+x1;\n }else{\n x0=a-b;\n x1=x0-7;\n }*/\n if(d1>d2) {\n binaryOutput += \"0\";\n }else {\n binaryOutput += \"1\";\n }\n for(int i = 0;i<4;i++){\n for(int j =0; j < rhytm.get(beatCounter).length;j++){\n if(rhytm.get(beatCounter)[j]!=null)\n if ((!rhytm.get(beatCounter)[j].equals(\"Ri\")) && (!rhytm.get(beatCounter)[j].equals(\"Rs\"))) {\n melodyCounter++;\n }\n }\n beatCounter++;\n }\n\n\n}",
"public static double[] homophoneSearch(int n, char[] alphabet, String cipher, boolean similarity, boolean print, boolean progress, boolean bestRepsOnly, boolean contig, Map<Character, Integer> countsMap, Map<Character, Double> best) {\n\t\tMap<Character, String> bestOut = new HashMap<Character, String>();\n\t\t// compute all combinations of n symbols selected from the given alphabet.\n\t\tint[] indices;\n\t\tCombinationGenerator x = new CombinationGenerator (alphabet.length, n);\n\t\tStringBuffer combination;\n\t\tSet<String> seen = new HashSet<String>(); // set to avoid printing dupes\n\t\t\n\t\tBigDecimal numerator = factorial(alphabet.length);\n\t\tBigDecimal denominator = factorial(n).multiply(factorial(alphabet.length-n));\n\t\tBigDecimal total = numerator.divide(denominator);\n\t\t\t\n\t\t//System.out.println(\"Total combinations: \" + total);\n\t\tint counter = 0; int prev = 0;\n\t\t\n\t\t//boolean resume = true;\n\t\twhile (x.hasMore ()) {\n\t\t if (progress) {\n\t\t\t counter++;\n\t\t\t int current = Math.round(100*((float)counter)/total.floatValue());\n\t\t\t if (current != prev) \n\t\t\t\t System.out.println(\"Progress: [\" + current + \"%]\");\n\t\t\t prev = current;\n\t\t }\n\t\t combination = new StringBuffer ();\n\t\t indices = x.getNext ();\n\t\t for (int i = 0; i < indices.length; i++) {\n\t\t combination.append (alphabet[indices[i]]);\n\t\t }\n\t\t String key = combination.toString ();\n\t\t /*if (resume && !\"6RVXfl|\".equals(key)) { continue; } // resume from this key\n\t\t if (\"6RVXfl|\".equals(key)) {\n\t\t\t resume = false;\n\t\t }*/\n\t\t \n\t\t //System.out.println (key);\n\t\t String seq = dumpSequenceFor(cipher, key);\n\t\t Map<String, Integer> counts = new HashMap<String, Integer>();\n\t\t for (int i=0; i<seq.length()-n+1; i++) {\n\t\t\t String sub = seq.substring(i, i+n);\n\t\t\t //Integer val = counts.get(sub);\n\t\t\t //if (val == null) val = 0;\n\t\t\t //val++;\n\t\t\t //counts.put(sub, val);\n\t\t\t counts.put(sub, count(seq, sub, contig));\n\t\t }\n\t\t int max = 0; String maxSub = null;\n\t\t for (String sub : counts.keySet()) {\n\n\t\t\t // don't bother calculating odds, cosine distances, etc. just track the best # of repetitions per symbol. \n\t\t\t \tif (bestRepsOnly) {\n\t\t\t \t\tif (distinct(sub) != sub.length()) continue; // ignore anything with repeated symbols, to help avoid spurious results\n\t\t\t \t\tint reps = counts.get(sub);\n\t\t\t\t\t // track best (rarest) score per symbol\n\t\t\t\t\t for (int i=0; i<sub.length(); i++) {\n\t\t\t\t\t\t char ch = sub.charAt(i);\n\t\t\t\t\t\t Double d = best.get(ch);\n\t\t\t\t\t\t if (d == null) d = 0d;\n\t\t\t\t\t\t if (reps > d) {\n\t\t\t\t\t\t\t d = (double) reps;\n\t\t\t\t\t\t\t best.put(ch, d);\n\t\t\t\t\t\t\t bestOut.put(ch, dumpSequenceFor(cipher, sub));\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t \t\tcontinue;\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \t// otherwise, continue with more odds-oriented computations and information\n\t\t\t\t maxSub = sub;\n\t\t\t\t String seq2 = filter(seq, maxSub);// remove any symbols that aren't in maxSub\n\t\t\t\t \n\t\t\t\t Object[] non = nonRepeats(seq2, maxSub);\n\t\t\t\t int matches = (Integer)non[2];\n\t\t\t\t max = matches;\n\t\t\t\t \n\t\t\t\t //if (max != counts.get(maxSub))throw new RuntimeException(max+\" != \" + counts.get(maxSub));\n\t\t\t\t //System.out.println(maxSub + \" \" + max + \" \" + counts.get(maxSub));\n\t\t\t\t \n\t\t\t\t int cn = counts(maxSub, countsMap);\n\t\t\t\t float freq = cn/(float)cipher.length();\n\t\t\t\t String z408 = \"\";\n\t\t\t\t if (HomophonesProblem.which == 1) {\n\t\t\t\t\t z408 += \"\t\";\n\t\t\t\t\t for (int i=0; i<maxSub.length(); i++) z408 += Ciphers.decoderMap.get(maxSub.charAt(i));\n\t\t\t\t\t z408 += \"\t\"+(Ciphers.realHomophone(maxSub) ? \"Yes\" : \"No\");\n\t\t\t\t } else\n\t\t\t\t\t z408 = \"\";\n\t\t\t\t \n\t\t\t\t float sim = 0f;\n\t\t\t\t if (similarity) sim = similarity(maxSub);\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t double odds = odds(maxSub, max, seq2, (String)non[0]);\n\t\t\t\t double score = similarity ? (1+sim)*odds : odds;\n\t\t\t\t \n\t\t\t\t String output = key+\"\t\"+maxSub+\"\t\"+odds+\"\t\"+matches+\"\t\"+cn+\"\t\"+(Math.round(freq*10000)/100f)+\"%\t\"+sim+\"\t\"+(score)+\"\t\"+non[1]+z408; \n\t\t\t\t if (print && (odds >= Math.pow(10, n-1) || seq2.startsWith(maxSub+maxSub))) {\n\t\t\t\t\t if (!seen.contains(maxSub)) { // don't print anything we've seen already\n\t\t\t\t\t\t System.out.println(output);\n\t\t\t\t\t\t seen.add(maxSub);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t // track best (rarest) score per symbol\n\t\t\t\t for (int i=0; i<maxSub.length(); i++) {\n\t\t\t\t\t char ch = maxSub.charAt(i);\n\t\t\t\t\t Double d = best.get(ch);\n\t\t\t\t\t if (d == null) d = 0d;\n\t\t\t\t\t if (score > d) {\n\t\t\t\t\t\t d = score;\n\t\t\t\t\t\t best.put(ch, d);\n\t\t\t\t\t\t bestOut.put(ch, output);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t }\n\t\t}\t\t\n\t\tdouble sum = 0; int c = 0;\n\t\tdouble min = Double.MAX_VALUE;\n\t\tdouble max = -Double.MAX_VALUE;\n\t\tfor (Character ch : best.keySet()) {\n\t\t\tsum += best.get(ch);\n\t\t\tif (print) System.out.println(\"Best for \" + ch+\"\t\"+best.get(ch)+\"\t\"+bestOut.get(ch));\n\t\t\tc++;\n\t\t\tmin = Math.min(min, best.get(ch));\n\t\t\tmax = Math.max(max, best.get(ch));\n\t\t}\n\t\t//return results;\n\t\treturn new double[] {sum, min, max, sum/c};\n\t}",
"private static void find_coins(int[] d, int k, int n) {\n\t\t\n\t}",
"public void inicArbolHuffman(float[] simbProb)\n\t{\n\t\t\n\t\t//crea cola de prioridad con los nodos que van a formar el arbol de huffman\n\t\tfor(int i=0; i<simbProb.length;i++) {\n\t\t\tif(simbProb[i]!=0) {//solo las intensidades que aparecen en la imagen\n\t\t\t\tDuplaSerial dS=new DuplaSerial(i,simbProb[i]);\n\t\t\t\tNodo sP=new Nodo(i,simbProb[i]);\n\t\t\t\tthis.arbolHuf.add(sP);\n\t\t\t\tthis.simProb.add(dS);\n\t\t\t}\n\t\t}\n\t\tthis.CH=new CabeceraHuf(this.inicancho,this.inicalto,this.ancho, this.alto, this.simProb, this.img.TYPE_INT_RGB);\n\t\t\n\t}",
"public static Integer getPitchClass(String inputNote)\r\n {\r\n //System.out.println(\"Inside getPitchClass inputNote: \" + inputNote);\r\n \r\n Integer pitchClassValue = -1;\r\n ArrayList<String> pitch0 = new ArrayList<>(Arrays.asList(\"C\",\"B#\",\"Dbb\"));\r\n ArrayList<String> pitch1 = new ArrayList<>(Arrays.asList(\"C#\",\"Db\",\"B##\"));\r\n ArrayList<String> pitch2 = new ArrayList<>(Arrays.asList(\"D\",\"C##\",\"Ebb\"));\r\n ArrayList<String> pitch3 = new ArrayList<>(Arrays.asList(\"D#\",\"Eb\",\"Fbb\"));\r\n ArrayList<String> pitch4 = new ArrayList<>(Arrays.asList(\"E\",\"D##\",\"Fb\"));\r\n ArrayList<String> pitch5 = new ArrayList<>(Arrays.asList(\"F\",\"E#\",\"Gbb\"));\r\n ArrayList<String> pitch6 = new ArrayList<>(Arrays.asList(\"F#\",\"Gb\",\"E#\"));\r\n ArrayList<String> pitch7 = new ArrayList<>(Arrays.asList(\"G\",\"F##\",\"Abb\"));\r\n ArrayList<String> pitch8 = new ArrayList<>(Arrays.asList(\"G#\",\"Ab\"));\r\n ArrayList<String> pitch9 = new ArrayList<>(Arrays.asList(\"A\",\"G##\",\"Bbb\"));\r\n ArrayList<String> pitch10 = new ArrayList<>(Arrays.asList(\"A#\",\"Bb\",\"Cbb\"));\r\n ArrayList<String> pitch11 = new ArrayList<>(Arrays.asList(\"B\",\"A##\",\"Cb\"));\r\n \r\n TreeMap<Integer, ArrayList<String>> pitchClassMap = new TreeMap<>();\r\n pitchClassMap.put(0, pitch0);\r\n pitchClassMap.put(1, pitch1);\r\n pitchClassMap.put(2, pitch2);\r\n pitchClassMap.put(3, pitch3);\r\n pitchClassMap.put(4, pitch4);\r\n pitchClassMap.put(5, pitch5);\r\n pitchClassMap.put(6, pitch6);\r\n pitchClassMap.put(7, pitch7);\r\n pitchClassMap.put(8, pitch8);\r\n pitchClassMap.put(9, pitch9);\r\n pitchClassMap.put(10, pitch10);\r\n pitchClassMap.put(11, pitch11);\r\n \r\n for(Integer index : pitchClassMap.keySet())\r\n {\r\n if(pitchClassMap.get(index).contains(inputNote))\r\n pitchClassValue = index;\r\n }\r\n //System.out.println(\"Inside getPitchClass pitchClassValue: \" + pitchClassValue);\r\n return pitchClassValue;\r\n }",
"float getSpecialProb();",
"public int getPower(String genEle);",
"public PVector cohesion (ArrayList<Boid> boids) {\n float neighbordist = 50;\n PVector sum = new PVector(0, 0); // Start with empty vector to accumulate all positions\n int count = 0;\n for (Boid other : boids) {\n float d = PVector.dist(position, other.position);\n if ((d > 0) && (d < neighbordist)) {\n sum.add(other.position); // Add position\n count++;\n }\n }\n if (count > 0) {\n sum.div(count);\n return seek(sum); // Steer towards the position\n } else {\n return new PVector(0, 0);\n }\n }",
"int getCoorX();",
"public static void main(String [] args){\n\t\tint [] A = {0,1,1,1}; //1110\r\n\t\tint [] B = {1,0,1,0};\r\n\t\tint [] C = new Hw2p1q4().binarySum(A, B, A.length);\r\n\t\tfor(int i=A.length; i>=0; i--){\r\n\t\t\tSystem.out.print(C[i]);\r\n\t\t}\r\n\t}",
"FeedbackConsequence getConsequence();",
"public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tint n=s.nextInt();\r\n\t\tlong md=s.nextLong();\r\n\t\tlong mr=s.nextLong();\r\n\t\tString a=binGen(0,n);\r\n\t\tString MR;\r\n\t\tString MD;\r\n\t\tif(md<0) { MD=binGen(md,n); }\r\n\t\telse { MD=binGen(md,n);}\r\n\t\tif(mr<0) {MR=binGen(mr,n);}\r\n\t\telse { MR=binGen(mr,n);}\r\n\t\tSystem.out.println(\"MULTIPLICAND=\"+MD);System.out.println(\"MULTIPLIER=Q=\"+MR);\r\n\t\tString[] A=new String[n]; \r\n\t\tString[] Q=new String[n]; \r\n\t\tfor(int i=0;i<n-1;i++)\r\n\t\t{\r\n\t\t\tA[i]=a.substring(i,i+1);\r\n\t\t}\r\n\t\tA[n-1]=a.substring(n-1);\r\n\t\tfor(int i=0;i<n-1;i++)\r\n\t\t{\r\n\t\t\tQ[i]=MR.substring(i,i+1);\r\n\t\t}\r\n\t\tQ[n-1]=MR.substring(n-1);\r\n\t\tString[] C=new String[2*n+1];\r\n\t\tfor(int i=0;i<A.length;i++)\r\n \t{\r\n \t\tC[i]=A[i];\r\n \t}\r\n \tfor(int i=A.length;i<C.length-1;i++)\r\n \t{\r\n \t\tC[i]=Q[i-Q.length];\r\n \t}\r\n\t\tC[C.length-1]=\"0\";\r\n\t\tSystem.out.println(\"A\"+\" \"+\"Q\"+\" \"+\"Q0\");\r\n\t\t for(int i=0;i<Q.length;i++) {System.out.print(A[i]);} System.out.print(\" \");\r\n\t\t for(int i=0;i<Q.length;i++) {System.out.print(Q[i]);}System.out.print(\" \"); System.out.print(C[C.length-1]);System.out.println();\r\n\t\t \t\r\n\t\twhile(n!=0)\r\n\t\t{\r\n\t\t\tString str=C[C.length-2]+C[C.length-1];\r\n\t\t\tif(str.contentEquals(\"00\")|| str.contentEquals(\"11\"))\r\n\t\t\t\t{\r\n\t\t\t\t C=ASR(A,Q,C);\r\n\t\t\t\t for(int i=0;i<A.length;i++) {A[i]=C[i];}\r\n\t\t\t\t for(int i=0;i<Q.length;i++) {Q[i]=C[i+A.length];}\r\n\t\t\t\t for(int i=0;i<Q.length;i++) {System.out.print(A[i]);} System.out.print(\" \");\r\n\t\t\t\t for(int i=0;i<Q.length;i++) {System.out.print(Q[i]);}System.out.print(\" \"); System.out.print(C[C.length-1]);System.out.println();\r\n\t\t\t\t \t}\r\n\t\t\telse if(str.contentEquals(\"01\"))\r\n\t\t\t{\r\n\t\t\t\tA=binAdd(A,MD);\r\n\t\t\t\tC=ASR(A,Q,C);\r\n\r\n\t\t\t\t for(int i=0;i<A.length;i++) {A[i]=C[i];}\r\n\t\t\t\t for(int i=0;i<Q.length;i++) {Q[i]=C[i+A.length];}\r\n\t\t\t\t for(int i=0;i<Q.length;i++) {System.out.print(A[i]);} System.out.print(\" \");\r\n\t\t\t\t for(int i=0;i<Q.length;i++) {System.out.print(Q[i]);} System.out.print(\" \"); System.out.print(C[C.length-1]);System.out.println();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tA=binSub(A,MD);\r\n\t\t\t\tC=ASR(A,Q,C);\r\n\t\t\t\t\r\n\t\t\t\t for(int i=0;i<A.length;i++) {A[i]=C[i];}\r\n\t\t\t\t for(int i=0;i<Q.length;i++) {Q[i]=C[i+A.length];}\r\n\t\t\t\t for(int i=0;i<Q.length;i++) {System.out.print(A[i]);}\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t for(int i=0;i<Q.length;i++) {System.out.print(Q[i]);}System.out.print(\" \"); System.out.print(C[C.length-1]); System.out.println();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tn--;\r\n\t\t}\r\n\t\tString st1=\"\";\r\n\t\tString st2=\"\";\r\n\t\tfor(int i=0;i<A.length;i++) {st1=st1+A[i];st2=st2+Q[i];}\r\n\t\tSystem.out.println(\"FINAL ANSWER :-\");\r\n\t\tSystem.out.println(st1+st2);\r\n\t\tif((md<0 && mr<0)|| (md>=0 && mr>=0) ) {System.out.println(Long.parseLong(st1+st2,2));}\r\n\t\telse if((md<0 && mr>0)||(md>0&&mr<0)) {System.out.println(0-Long.parseLong((twocomp(st1+st2)),2));}\r\n\t\t\r\n\t}",
"static void adjoint(int A[][],int [][]adj) \n { \n \n \n // temp is used to store cofactors of A[][] \n int sign = 1; \n int [][]temp = new int[N][N]; \n \n for (int i = 0; i < N; i++) \n { \n for (int j = 0; j < N; j++) \n { \n // Get cofactor of A[i][j] \n getCofactor(A, temp, i, j, N); \n \n // sign of adj[j][i] positive if sum of row \n // and column indexes is even. \n sign = ((i + j) % 2 == 0)? 1: -1; \n \n // Interchanging rows and columns to get the \n // transpose of the cofactor matrix \n adj[j][i] = (sign)*(determinant(temp, N-1)); \n adj[j][i] = adj[j][i]%26;\n } \n } \n }",
"public void calculateBonuses(){\n\n\n }",
"public static Mention hobbsCoreferent(Mention m){\n\t\tTree<String> sTree = m.sentence.parse;\n\t\t\n\t\t//System.out.printf(\"Searching for hobbs coreference for %s\\n\", m.gloss());\n\t\t//System.out.printf(\"Sentence %s\\n\", m.sentence.toString());\n\t\t//System.out.printf(\"Sentence Parse Tree:\\n\");\n\t\t//System.out.println(PennTreeRenderer.render(sTree));\n\t\t\n\t\t//Proposed node\n\t\tMention proposedMention;\n\n\t\t//Get m's index in sentence\n\t\tint mIndex = m.sentence.tokens.indexOf(m.headToken());\n\t\t//Get path to m\n\t\tLinkedList<Pair<String,Integer>> pathToM = sTree.pathToIndex(mIndex);\n\t\t//Get NP above M\n\t\tint npIndex = pathToM.size()-1;\n\t\twhile (npIndex>0 && !pathToM.get(npIndex).getFirst().equals(\"NP\")){\n\t\t\tnpIndex--;\n\t\t}\n\t\tif (npIndex==0)\n\t\t\treturn null;\n\t\t\n\t\t//System.out.printf(\"Mention Parse Tree:\\n\");\n\t\t//System.out.printf(\"Top label: %s\\n\",pathToM.get(npIndex).getFirst());\n\t\t//System.out.println(PennTreeRenderer.render(sTree.getSubTree(pathToM.subList(0, npIndex+1))));\n\t\t\n\n\t\t//Go up to first NP or s\n\t\tint xIndex = npIndex-1;\n\t\twhile (xIndex>0 && !pathToM.get(xIndex).getFirst().equals(\"NP\") && !isSLabel(pathToM.get(xIndex).getFirst())){\n\t\t\txIndex--;\n\t\t}\n\t\t\n\t\t//System.out.printf(\"First X \\n\");\n\t\t//System.out.printf(\"Top label: %s\\n\",pathToM.get(xIndex).getFirst());\n\t\t//System.out.println(PennTreeRenderer.render(sTree.getSubTree(pathToM.subList(0, xIndex+1))));\n\t\t\n\t\t//Search for antecedents below X to the left of p\n\t\tTree<String> X = sTree.getSubTree(pathToM.subList(0, xIndex+1));\n\t\tproposedMention = bfsNPLeft(X,sTree.getSubTree(pathToM.subList(0, xIndex+2)),m, false);\n\n\t\tif (proposedMention != null)\n\t\t\treturn proposedMention;\n\t\t//While not at the top S in the sentence\n\t\twhile (!X.getLabel().equals(\"ROOT\") && !pathToM.get(xIndex).getFirst().equals(\"ROOT\")){\n\t\t\t//Go up to next NP or s\n\t\t\tdo {\n\t\t\t\t//Move up an X\n\t\t\t\txIndex--;\n\t\t\t\tX = sTree.getSubTree(pathToM.subList(0, xIndex+1));\n\t\t\t}while (!(isSLabel(X.getLabel()) || X.getLabel().equals(\"NP\") || X.getLabel().equals(\"ROOT\")));\n\n\t\t\t//System.out.printf(\"Next X \\n\");\n\t\t\t//System.out.println(PennTreeRenderer.render(X));\n\t\t\t\n\t\t\t//If path to X came from non-head phrase of X.....\n\t\t\tif (X.getLabel().equals(\"NP\") && !m.parse.equals(X) && getMentionFromTree(X,m.sentence,m.doc)!=null){\n\t\t\t\tMention propM = getMentionFromTree(X,m.sentence,m.doc);\n\t\t\t\tif (validPronoun(propM, Pronoun.valueOrNull(m.gloss())))\n\t\t\t\t\t\treturn propM;\n\t\t\t}\n\t\t\t//Search for antecedents below X to the left of p\n\t\t\tproposedMention = bfsNPLeft(X,sTree.getSubTree(pathToM.subList(0, xIndex+2)),m,false);\n\t\t\tif (proposedMention != null)\n\t\t\t\treturn proposedMention;\n\t\t\t//If X is an S node go to the right of path, but dont' go below and NP or S\n\t\t\tif (isSLabel(X.getLabel()) ){\n\t\t\t\tproposedMention = bfsNPRight(X,sTree.getSubTree(pathToM.subList(0, xIndex+2)),m);\n\t\t\t\tif (proposedMention != null)\n\t\t\t\t\treturn proposedMention;\n\t\t\t}\n\t\t}\n\t\t//If X is highest S in sentence, traverse previous sentences doing BFS\n\t\t//Look at all previous sentences\n\t\tfor (int j=m.doc.indexOfSentence(m.sentence);j<0;j++){\n\t\t\tproposedMention = bfsNP(m.doc.sentences.get(j).parse,m,m.doc.sentences.get(j),true);\n\t\t\tif (proposedMention != null)\n\t\t\t\treturn proposedMention;\n\t\t}\n\t\treturn null;\n\t}",
"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 }",
"Batiment choixBatiment(Partie partie, int nbDoublon, Plateau plateau);",
"int givePropCrownNum(List<Integer[]> coordsInProp, HashMap<Integer[], Integer> crownsDistribution) throws Exception;",
"protected static float[] getBinomialKernel(SIGMA sigma) {\n \n if (sigma.ordinal() == SIGMA.ZEROPOINTFIVE.ordinal()) {\n return getBinomialKernelSigmaZeroPointFive();\n } else if (sigma.ordinal() == SIGMA.ZEROPOINTSEVENONE.ordinal()) {\n return getBinomialKernelSigmaZeroPointSevenOne();\n } else if (sigma.ordinal() == SIGMA.ONE.ordinal()) {\n return getBinomialKernelSigmaOne();\n } else if (sigma.ordinal() == SIGMA.ONESQRT2.ordinal()) {\n return getBinomialKernelSigmaOneSQRT2();\n } else if (sigma.ordinal() == SIGMA.ONEPOINTFIVE.ordinal()) {\n return getBinomialKernelSigmaOnePointFive();\n } else if (sigma.ordinal() == SIGMA.TWO.ordinal()) {\n return getBinomialKernelSigmaTwo();\n } else if (sigma.ordinal() == SIGMA.ONEPOINTFIVESQRT2.ordinal()) {\n return getBinomialKernelSigmaOnePointFiveSQRT2();\n } else if (sigma.ordinal() == SIGMA.TWOSQRT2.ordinal()) {\n return getBinomialKernelSigmaTwoSQRT2();\n } else if (sigma.ordinal() == SIGMA.THREE.ordinal()) {\n return getBinomialKernelSigmaThree();\n } else if (sigma.ordinal() == SIGMA.FOUR.ordinal()) {\n return getBinomialKernelSigmaFour();\n } else {\n return null;\n }\n \n }",
"public abstract MyIntList getCoors(MyIntList coors);",
"@Override\n\tpublic double getRx() {\n\ndouble object = 0;\n for(int i = 0; i < x.length; i++){\n object += Math.pow(y[i] - ( theta[0] + theta[1] * x[i]), 2);\n }\n return object / 2 ;\n }",
"private int[] ConvertirPolinomio(String cadena) {\n match = patron.matcher(cadena);//validacion de expresion regular , captura coeficiente y exponente\n int count = 1;\n\n if (match.lookingAt()) {\n //contador de monomios , para saber el tamaño del vector forma 2 \n while (match.find()) {\n count++;\n }\n //cantidad de monomios multiplicado por 2 , para almacenar\n //coeficiente y exponente .\n int[] tempPolinomio = new int[(count * 2) + 1];\n match.reset();//se reinicia el contador para recorrer cada termino (coeficiente y exponente)\n\n tempPolinomio[0] = count;//numero de terminos\n\n try {\n //se recorre cada monomio extrayendo el coeficiente y exponente\n for (int i = 1; i < count * 2; i = i + 2) {\n\n match.find();\n tempPolinomio[i + 1] = Integer.parseInt(match.group(1));//coeficiente\n tempPolinomio[i] = Integer.parseInt(match.group(2));//exponente\n }\n\n } catch (Exception ex) {\n System.err.println(ex);\n return null;\n }\n return tempPolinomio;\n } else {\n return null;\n }\n\n }",
"public double [] biseccion ( ) {\n Scanner leer = new Scanner(System.in); \r\n int cantCoeficientes ;\r\n System.out.print(\"Cuantos coeficientes quiere ingresar ? : \");\r\n cantCoeficientes = leer.nextInt(); \r\n \r\n double[]coeficientes =new double [cantCoeficientes];\r\n \r\n for (int i = 0; i < coeficientes.length ; i++){ \r\n System.out.print(\"Digite el numero a ingresar \\n\");\r\n coeficientes[i] =leer.nextDouble();\r\n }\r\n \r\n System.out.println(\"Coeficientes de la funcion polinomica\"); \r\n for (int j = 0; j < coeficientes.length ; j++){ \r\n System.out.print(coeficientes[j]+\" \");\r\n \r\n }\r\n \r\n double[]coeficientesA =new double [cantCoeficientes];\r\n for (int k = 0; k < coeficientesA.length ; k++){ \r\n coeficientesA[k] =coeficientes[k];\r\n }\r\n \r\n double[]coeficientesB =new double [cantCoeficientes];\r\n for (int l = 0; l < coeficientesA.length ; l++){ \r\n coeficientesB[l] =coeficientes[l];\r\n }\r\n \r\n////************* OPERACION DE LA FUNCION POLINOMICA PARA SACAR LA BISECCION***********************//// \r\n \r\n int veces = 0 ;\r\n int nveces ;\r\n System.out.println(\"cuantas veces necesita ver la biseccion?\");\r\n nveces = leer.nextInt();\r\n double fA = a ;\r\n double fB = b ;\r\n \r\n double pA = cantCoeficientes;\r\n double pB = cantCoeficientes;\r\n \r\n while ( nveces != veces ) {\r\n \r\n double acumA = 0; \r\n \r\n for ( int n = 0; n <= fA ; n++ ){\r\n acumA = coeficientesA[n] * Math.pow(a,pA)+acumA;\r\n pA--;\r\n }\r\n\r\n System.out.print( \" \\n Extremo derecho n \"+veces+\" : \" + acumA + \"\\n\" );\r\n\r\n\r\n double acumB = 0; \r\n for ( int n = 0; n <= fB ; n++ ){\r\n acumB = coeficientesA[n] * Math.pow(a,pB)+acumB;\r\n pB--;\r\n }\r\n\r\n System.out.print( \" \\n Extremo izquierdo n \"+veces+\" : \" + acumB +\"\\n\");\r\n\r\n double c ;\r\n\r\n c = (acumA+acumB)/2;\r\n System.out.print( \" \\n Punto medio n \"+veces+\" : \" + c + \"\\n\");\r\n \r\n\r\n if( acumA > 0 && c > 0 ) {\r\n\r\n b = c ;\r\n\r\n }\r\n else {\r\n a = c ;\r\n }\r\n\r\n veces++;\r\n \r\n }\r\n return coeficientes; \r\n }",
"public VicarBinaryLabel getBinaryPrefix(int n2, int n3) throws IOException;",
"public static int[] mucScore(LeanDocument key, LeanDocument response)\n{\n // System.out.println(\"==========================================================\");\n // System.out.println(\"Key:\\n\"+key.toStringNoSing()+\"\\n*************************\\nResponse:\\n\"+response.toStringNoSing());\n\n Iterator<TreeMap<Integer, Integer>> goldChains = key.chainIterator();\n // double mucRecall = 0.0;\n int mucRecallNom = 0;\n int mucRecallDenom = 0;\n while (goldChains.hasNext()) {\n TreeMap<Integer, Integer> keyChain = goldChains.next();\n if (keyChain.size() > 1) {\n int numInt = numIntersect(key, keyChain, response);\n\n // int numMatched = getNumMatched(key, keyChain);\n // if(numMatched>0){\n // mucRecallNom += numMatched-numInt;\n mucRecallNom += (keyChain.size() - numInt);\n // mucRecallDenom += numMatched-1;\n mucRecallDenom += keyChain.size() - 1;\n\n // System.out.println(keyChain+\"\\n\"+(keyChain.size() - numInt)+\"/\"+(keyChain.size()-1));\n // }\n }\n }\n int[] result = { mucRecallNom, mucRecallDenom };\n\n return result;\n}",
"public void binarycon()\n \t {\n\n\t int i,j,k,t;\n \t int temp[]=new int[10];\n\t int m=0;\n for(i=0;i<600000;i++)\n binary[i]=0;\n int b[]=new int[32];\n int dum;\n dum=max;\n i=0;\n while(dum!=0)\n {\n b[i]=dum%2;\n i=i+1;\n dum/=2;\n }\n j=24-i;\n for(k=j,t=i-1;k<(i+j);k++,t--)\n binary[k]=b[t];\n dum=73;\n i=0;\n while(dum!=0)\n {\n b[i]=dum%2;\n i=i+1;\n dum/=2;\n }\n j=32-i;\n for(k=j,t=i-1;k<32;k++,t--)\n binary[k]= b[t];\n m=32;\n for( i=0 ; i < max ; i++)\n \t {\n j=0;\n while( bytes[i]!= 0 )\n {\n temp[j++]=bytes[i]%2;\n bytes[i]=bytes[i]/2;\n\n\n\n }\n for( k=0;k<8-j ; k++)\n binary[m++]=0;\n for(k=j-1; k >=0 ; k--)\n binary[m++]=temp[k];\n }\n \t maxbinary=m;\n }",
"public static double chstwo(List<Integer> bins1, List<Integer> bins2, int knstrn) {\r\n int n1 = 0, n2 = 0, nbins = 0;\r\n for (int value : bins1) {n1 += value;}\r\n for (int value : bins2) {n2 += value;}\r\n if (bins1.size() != bins2.size()) {} //error\r\n nbins = bins1.size();\r\n \r\n double df = 0.0, chsq = 0.0, prob = 0.0;\r\n \r\n int j;\r\n double temp;\r\n \r\n df = nbins - knstrn;\r\n double ratio1;\r\n double ratio2;\r\n \r\n if(n1 > 0) {\r\n ratio1 = Math.sqrt(((double) n2) / ((double) n1));\r\n }\r\n else {\r\n ratio1 = 0.0;\r\n }\r\n \r\n if(n2 > 0) {\r\n ratio2 = Math.sqrt(((double) n1) / ((double) n2));\r\n }\r\n else {\r\n ratio2 = 0.0;\r\n }\r\n \r\n for (j = 0; j < nbins; j++) {\r\n if(bins1.get(j) == 0.0 && bins2.get(j) == 0.0) {\r\n --(df);\r\n }\t\t//No data means one less degree of freedom\r\n else {\r\n temp = ratio1*bins1.get(j) - ratio2*bins2.get(j);\r\n chsq += temp*temp/(bins1.get(j)+bins2.get(j));\r\n }\r\n }\r\n prob = gammq(0.5*(df), 0.5*(chsq));\r\n \r\n return prob;\r\n }",
"public static BigInteger getPent(int i)\n {\n\tBigInteger bii = new BigInteger(\"\"+i);\n BigInteger tmp = bii;\n tmp = tmp.multiply(bi3);\n tmp = tmp.add(bim1);\n tmp = tmp.multiply(bii);\n\ttmp = tmp.divide(bi2); //i*(3*i - 1)/2\n\treturn tmp;\n }",
"public static int calculateOpjectiveFunction(char[][] matrix ) {\n\n\n\n return (int)countNumberOfEmptyPosition(matrix)+countNmberOfCameras( matrix); \n\n}",
"public List<GenPolynomial<C>> \n GB( List<GenPolynomial<C>> F ) { \n return GB(0,F);\n }",
"protected abstract List<ConfusionMatrix> calcConfusions();",
"public double getObjective() {\n return multiClassClassifierObj() + binaryObj();\n// +(1-temperature)*getEntropy();\n }",
"protected static IGroupElement computeC(ArrayOfElements<IGroupElement> u,\r\n \t\t\tArrayOfElements<IGroupElement> h, int N) {\r\n \r\n \t\tIGroupElement CNumerator = u.getAt(0);\r\n \t\tIGroupElement CDenominator = h.getAt(0);\r\n \t\tfor (int i = 1; i < N; i++) {\r\n \t\t\tCNumerator = CNumerator.mult(u.getAt(i));\r\n \t\t\tCDenominator = CDenominator.mult(h.getAt(i));\r\n \t\t}\r\n \t\tIGroupElement C = CNumerator.divide(CDenominator);\r\n \t\treturn C;\r\n \t}",
"private ArrayList<ParCharProb> calcularProbabilidadLista(ArrayList<ParCharProb> lista) {\n\t\tdouble cantidadElementos = 0;\r\n\t\tParCharProb par;\r\n\t\tIterator<ParCharProb> it = lista.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tpar = it.next();\r\n\t\t\tcantidadElementos += par.getFrecuencia();\r\n\t\t}\r\n\t\t\r\n\t\tit = lista.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tpar = it.next();\r\n\t\t\tpar.setProbabilidad((double) par.getFrecuencia()/(double) cantidadElementos);\r\n\t\t}\r\n\t\treturn lista;\r\n\t}",
"@NonNull\n private static ArrayList<Numerical> getCoefficients(@NonNull Matrix<Function> matrixExponent,\n @NonNull Matrix<Function> constPart)\n throws InconsistentSystemException {\n LinearSystem<Numerical, Numerical> constantsSystem =\n new LinearSystem<>(n, Numerical.zero(), Numerical.zero());\n\n for (int i = 0; i < n; i++) {\n FArray<Numerical> array = FArray.array(n, Numerical.zero());\n for (int j = 0; j < n; j++) {\n array.set(j, matrixExponent.get(i, j).apply(0));\n }\n\n //TODO\n constantsSystem.addEquation(\n array, constPart.get(i, 0).apply(0).negate().add(Numerical.zero()));\n }\n\n return constantsSystem.getSolution();\n }",
"public static Double[] simulerBinomiale(Double nbRep, Double proba, Double repetition) {\n\t\tBinomiale loi = new Binomiale(proba, nbRep, repetition);\n\t\treturn loi.simuler();\n\t}",
"private static long BBT(int n, long[] strg) {\n\t\tif (n == 0 || n == 1)\n\t\t\treturn 1;\n\t\tif (strg[n] != 0)\n\t\t\treturn strg[n];\n\t\tstrg[n] = ((BBT(n - 1, strg) % mod) * (2 * (BBT(n - 2, strg) % mod + BBT(n - 1, strg) % mod) % mod)) % mod;\n\t\treturn strg[n];\n\n\t}",
"static int countWaysUtil(int n, int m) \n\t { \n\t int res[] = new int[n]; \n\t res[0] = 1; res[1] = 1; \n\t for (int i=2; i<n; i++) \n\t { \n\t res[i] = 0; \n\t for (int j=1; j<=m && j<=i; j++) \n\t res[i] += res[i-j]; \n\t } \n\t return res[n-1]; \n\t }"
] | [
"0.6207702",
"0.5950094",
"0.5794054",
"0.55663955",
"0.55067563",
"0.5446541",
"0.5424222",
"0.53518486",
"0.5322079",
"0.5261287",
"0.52214175",
"0.5216244",
"0.52132964",
"0.5186835",
"0.5167665",
"0.5164742",
"0.51587814",
"0.5143784",
"0.5122725",
"0.5019303",
"0.495479",
"0.494423",
"0.4932133",
"0.48900527",
"0.48672122",
"0.48437536",
"0.48304176",
"0.481271",
"0.47892267",
"0.4781623",
"0.47667244",
"0.4758814",
"0.47482526",
"0.47436646",
"0.47434613",
"0.47406664",
"0.4736926",
"0.4731428",
"0.47185972",
"0.47183582",
"0.47078374",
"0.47004566",
"0.4699662",
"0.4683935",
"0.46802914",
"0.46734735",
"0.46708262",
"0.46682426",
"0.4667548",
"0.46449825",
"0.46404403",
"0.46367952",
"0.46293133",
"0.46182877",
"0.46133274",
"0.46119156",
"0.46095923",
"0.46039966",
"0.46024942",
"0.46000868",
"0.4598261",
"0.45845723",
"0.4578969",
"0.45765167",
"0.4575688",
"0.457552",
"0.4572011",
"0.45691884",
"0.45675215",
"0.45627475",
"0.4558074",
"0.45420167",
"0.4536151",
"0.45297337",
"0.4529571",
"0.45262212",
"0.4525369",
"0.45213565",
"0.45210615",
"0.45210302",
"0.45189855",
"0.45187095",
"0.4518216",
"0.45153117",
"0.4513243",
"0.4511355",
"0.45099196",
"0.45066395",
"0.45009348",
"0.45002604",
"0.44970292",
"0.4495268",
"0.44951475",
"0.44811407",
"0.44797328",
"0.44789493",
"0.44743776",
"0.4472729",
"0.44710252",
"0.44553033"
] | 0.62505865 | 0 |
Method used to find minimum difference between any two elements in a list | public static Integer getMinGapInValue(ArrayList<Integer> inputValue)
{
//System.out.println("inputValue Before Sort: " + inputValue);
Collections.sort(inputValue);
//System.out.println("inputValue After Sort: " + inputValue);
int minDiff = inputValue.get(1)-inputValue.get(0);
for (int i = 2 ; i != inputValue.size() ; i++)
{
minDiff = Math.min(minDiff, inputValue.get(i)-inputValue.get(i-1));
}
//System.out.println("minDiff: " + minDiff);
return minDiff;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int findMinDifference(List<String> timePoints) {\n timePoints.sort((t1, t2) -> {\n return t1.compareTo(t2);\n });\n\n int ans = Integer.MAX_VALUE;\n for (int i = timePoints.size() - 1; i > 0; i--) {\n String t1 = timePoints.get(i);\n String t2 = timePoints.get(i - 1);\n ans = Math.min(ans, calDiff(t1, t2));\n }\n\n // compare the first one and last one\n if (timePoints.size() > 1) {\n String t1 = timePoints.get(timePoints.size() - 1);\n int min1 = calMin(t1);\n String t2 = timePoints.get(0);\n int min2 = calMin(t2);\n int diff = (24 * 60 - min1) + min2;\n ans = Math.min(ans, diff);\n }\n\n return ans;\n }",
"public static void minEl1(List<Integer> list){\n int min = list.stream().reduce(Integer.MAX_VALUE, (x,y)->x<y ? x : y);\n System.out.println(min);\n }",
"public double minDifference()\n {\n double minD = 1000.0; // setting unreasonably high\n double testD = 0.0;\n \n for (int i=0; i < data.length -1; i++) // stopping 1 early because reading ahead\n {\n testD = Math.abs(data[i]-data[i+1]);\n if (testD < minD)\n {\n minD = testD;\n }\n }\n \n \n return minD;\n }",
"public int min(ArrayList<Integer> list) {\r\n int minValue = Integer.MAX_VALUE;\r\n\r\n for (int i : list) {\r\n if (i < minValue) {\r\n minValue = i;\r\n\r\n }\r\n\r\n }\r\n return minValue;\r\n }",
"public static Integer findSmallestDiffTerrible(List<Integer> A, List<Integer> B) {\n Integer result = null;\n Collections.sort(A);\n Collections.sort(B);\n List<MergeObject> mergeObjects = sortedMerge(A, B);\n MergeObject prev = null;\n\n for (MergeObject element : mergeObjects) {\n if (prev == null) {\n prev = element;\n continue;\n }\n if (element.getSource() != prev.getSource()) {\n int diff = Math.abs(element.getValue() - prev.getValue());\n if (result == null) {\n result = diff;\n } else if (diff < result) {\n result = diff;\n }\n }\n prev = element;\n }\n return result;\n }",
"public int minDifference(int[] nums) {\n int n = nums.length;\n // if we have less than or equal to 4 elements in the array, we can always get 0 min diff\n if (n <= 4) return 0;\n int res = Integer.MAX_VALUE;\n // the array must be sorted beforehand\n Arrays.sort(nums);\n // enumerate all 4 options\n for (int i = 0; i <= 3; i++) {\n // get the min difference from new smallest and largest\n // after removing i elements from the front and (3 - i) elements from the end\n res = Math.min(res, nums[n - 1 - (3 - i)] - nums[i]);\n }\n return res;\n }",
"@Test\n public void minDifferenceTest() {\n assertEquals(0, minDifference(new int[]{5, 3, 2, 4}));\n /**\n * Example 2:\n * Input: nums = [1,5,0,10,14]\n * Output: 1\n * Explanation: Change the array [1,5,0,10,14] to [1,1,0,1,1].\n * The difference between the maximum and minimum is 1-0 = 1.\n */\n assertEquals(1, minDifference(new int[]{1, 5, 0, 10, 14}));\n /**\n * Example 3:\n * Input: nums = [6,6,0,1,1,4,6]\n * Output: 2\n */\n assertEquals(2, minDifference(new int[]{6, 6, 0, 1, 1, 4, 6}));\n /**\n * Example 4:\n * Input: nums = [1,5,6,14,15]\n * Output: 1\n */\n assertEquals(1, minDifference(new int[]{1, 5, 6, 14, 15}));\n /**\n * Example 5:\n * Input: nums = [82,81,95,75,20]\n * Output: 1\n */\n assertEquals(1, minDifference(new int[]{82, 81, 95, 75, 20}));\n }",
"protected final double getMinDifference() {\r\n \r\n double difference = 0;\r\n \r\n for(int i = 0; i < this.D; i++) {\r\n difference += Math.pow(this.f.max(i)-this.f.min(i), 2)*0.001;\r\n }\r\n \r\n return difference;\r\n \r\n }",
"public static int getMin(List<Integer> list) {\n int min = Integer.MAX_VALUE;\n for (int i = 0; i != list.size(); ++i) {\n if (list.get(i) < min)\n min = list.get(i);\n }\n return min;\n }",
"public static void minWithSort(List<Integer> list){\n Optional<Integer> max = list.stream().sorted().reduce((x, y)->x);\n System.out.println(max);\n }",
"public static int minimumAbsoluteDifference(Integer[] input){\n List<Integer> sortedList = Arrays.asList(input);\n Collections.sort(sortedList);\n\n int minimumAbsoluteDifference = Integer.MAX_VALUE;\n\n for(int i = 0; i < sortedList.size() - 1; i ++){\n int currentAbsoluteDifference = Math.abs(sortedList.get(i) - sortedList.get(i + 1));\n\n if(currentAbsoluteDifference < minimumAbsoluteDifference){\n minimumAbsoluteDifference = currentAbsoluteDifference;\n }\n }\n\n return minimumAbsoluteDifference;\n }",
"static <E> int minPos( List<E> list, Comparator<E> fn ) {\n if ( list.isEmpty() ) {\n return -1;\n }\n E eBest = list.get( 0 );\n int iBest = 0;\n for ( int i = 1; i < list.size(); i++ ) {\n E e = list.get( i );\n if ( fn.compare( e, eBest ) < 0 ) {\n eBest = e;\n iBest = i;\n }\n }\n return iBest;\n }",
"public int difference(ArrayList<Integer> numbers) {\n\t\tif(numbers == null) {\n\t\t\treturn -1;\n\t\t} else if(numbers.size() < 1) {\n\t\t\treturn -1;\n\t\t}\n\t\tint maximum = numbers.get(0);\n\t\tint mininum = numbers.get(0);\n\t\tfor(int i = 0; i < numbers.size(); i++) {\n\t\t\tmaximum = (numbers.get(i) > maximum) ? numbers.get(i) : maximum;\n\t\t\tmininum = (numbers.get(i) < mininum) ? numbers.get(i) : mininum;\n\t\t}\n\t\treturn maximum - mininum;\t\t// default return value to ensure compilation\n\t}",
"public int findMinDifference(List<String> timePoints) {\n List<Integer> p = new ArrayList<>();\n for(String time:timePoints){\n String[] hm = time.split(\":\");\n int h = Integer.parseInt(hm[0]);\n int m = Integer.parseInt(hm[1]);\n p.add(h*60 + m);\n if(h<12){\n p.add((h+24)*60+m);\n }\n }\n int diff = Integer.MAX_VALUE;\n Collections.sort(p);\n for(int i=1; i<p.size(); i++){\n diff = Math.min(p.get(i)-p.get(i-1), diff);\n }\n return diff;\n }",
"private static int findMin(ListNode[] lists) {\n\t\tint length = lists.length;\n\t\tint min = -1;\n\t\tif (length > 0) {\n\t\t\tmin = 0;\n\t\t\tfor (int i = 1; i < length; i++) {\n\t\t\t\tif (lists[i] != null && (lists[min] == null || lists[min].val > lists[i].val))\n\t\t\t\t\tmin = i;\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}",
"public long min() {\n\t\tif (!this.isEmpty()) {\n\t\t\tlong result = theElements[0];\n\t\t\tfor (int i=1; i<numElements; i++) {\n\t\t\t\tif (theElements[i] < result) {\n\t\t\t\t\tresult = theElements[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException(\"Attempted to find min of empty array\");\n\t\t}\n\t}",
"public static double getArrayListDoubleMin(ArrayList<Double> list) {\n\t\treturn 0;\n\t}",
"public int getMin() {\n int length = minList.size();\n int returnValue = 0;\n if (length > 0) {\n returnValue = minList.get(length - 1);\n }\n return returnValue;\n \n }",
"public List<List<Integer>> minimumAbsDifference(int[] arr) {\n\n int minNum = 10000000;\n int maxNum = -10000000;\n for (int num : arr) {\n if (num < minNum)\n minNum = num;\n\n if (maxNum < num)\n maxNum = num;\n }\n int[] cnt = new int[maxNum - minNum + 1];\n for (int num : arr)\n cnt[num - minNum] += 1;\n\n int ind = 0;\n for (int i = 0; i < maxNum - minNum + 1; i++) {\n for (int j = 0; j < cnt[i]; j++) {\n arr[ind] = i + minNum;\n ind += 1;\n }\n }\n\n List<List<Integer>> ret = new ArrayList<>();\n\n int minDiff = 10000000;\n for (int i = 0; i < arr.length - 1; i++) {\n int diff = arr[i + 1] - arr[i];\n if (minDiff > diff)\n minDiff = diff;\n }\n\n for (int i = 0; i < arr.length - 1; i++) {\n int diff = arr[i + 1] - arr[i];\n if (diff == minDiff)\n addPair(ret, arr[i], arr[i + 1]);\n }\n\n return ret;\n }",
"private static int getMinIndex(List<Integer> list) {\n return IntStream.range(0, list.size())\n .boxed()\n .min(Comparator.comparingInt(list::get)).\n orElse(list.get(0));\n }",
"public T findMin();",
"public double min(){\r\n\t\t//variable for min val\r\n\t\tdouble min = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the minimum is more than the current index, change min to that value\r\n\t\t\tif (min > this.data[i]){\r\n\t\t\t\tmin = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the minimum val\r\n\t\treturn min;\r\n\t}",
"private double min(double[] vector){\n if (vector.length == 0)\n throw new IllegalStateException();\n double min = Double.MAX_VALUE;\n for(double e : vector){\n if(!Double.isNaN(e) && e < min)\n min = e;\n }\n return min;\n }",
"static int minimumAbsoluteDifferenceSlower(int[] arr) {\n int smallest = 0;\n for (int i = 0; i < arr.length; i++) {\n for (int j = i + 1; j < arr.length; j++) {\n int current = Math.abs(arr[i] - arr[j]);\n if (i == 0) {\n smallest = current;\n } else if (smallest > current) {\n smallest = current;\n }\n }\n }\n\n return smallest;\n }",
"public static double min(ExpressionContext context, List nodeset) {\n if ((nodeset == null) || (nodeset.size() == 0)) {\n return Double.NaN;\n }\n\n JXPathContext rootContext = context.getJXPathContext();\n Object min = nodeset.get(0);\n\n for (int index = 1; index < nodeset.size(); index++) {\n Object current = nodeset.get(index);\n rootContext.getVariables().declareVariable(\"min\", min);\n rootContext.getVariables().declareVariable(\"current\", current);\n\n boolean less = ((Boolean) rootContext.getValue(\"number($current) < number($min)\", Boolean.class)).booleanValue();\n\n if (less) {\n min = current;\n }\n }\n\n return (new Double(min.toString())).doubleValue();\n }",
"public double getMinimum()\n {\n return Math.min(first, second);\n }",
"private static int getMinDistIndex(ArrayList<Double> list, int indexNotInterested) {\n \tdouble newDistMin = Double.MAX_VALUE;\n\t\tint newMinDistIndex = -1;\n\t\t\n\t\tfor(int i = 0; i < list.size(); i++) {\n\t\t\tif(i != indexNotInterested && newDistMin > list.get(i)) {\n\t\t\t\tnewDistMin = list.get(i);\n\t\t\t\tnewMinDistIndex = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn newMinDistIndex;\n }",
"public double min() {\n/* 305 */ Preconditions.checkState((this.count != 0L));\n/* 306 */ return this.min;\n/* */ }",
"@Test\n\tpublic void testMin() {\n\t\tList<Integer> tempList = new ArrayList<Integer>();\n\t\ttempList.add(50);\n\t\ttempList.add(20);\n\t\ttempList.add(60);\n\t\tInteger result = SWE619A.min(tempList);\n\t\tassertEquals(new Integer(20), result);\n\t\t\n\t}",
"public int getMin(ArrayList<Integer> values) {\r\n int min = 10000;\r\n for (int i = 0; i < values.size(); i++) {\r\n if (values.get(i) < min) {\r\n min = values.get(i);\r\n }\r\n }\r\n return min;\r\n }",
"public int findMinDifference(List<String> timePoints) {\n\t\tboolean checkTime[] = new boolean[24*60];\n\t\tfor(String timePoint : timePoints) {\n\t\t\tString[] time = timePoint.split(\":\");\n\t\t\tint minutes = Integer.parseInt(time[0])*60 + Integer.parseInt(time[1]);\n\t\t\tif(checkTime[minutes]) return 0;\n\t\t\tcheckTime[minutes] = true;\n\t\t}\n\t\t\n\t\tint minDifference = Integer.MAX_VALUE;\n\t\tint firstMinutes = 0, prevMinutes = -1;\n\t\tfor(int i = 0; i < checkTime.length; i++) {\n\t\t\tif(checkTime[i]) {\n\t\t\t\tif(prevMinutes != -1) {\n\t\t\t\t\tminDifference = Math.min(minDifference, (i-prevMinutes) > 720 ? (1440-i+prevMinutes) : (i-prevMinutes));\n\t\t\t\t} else {\n\t\t\t\t\tfirstMinutes = i;\n\t\t\t\t}\n\t\t\t\tprevMinutes = i;\n\t\t\t}\n\t\t}\n\t\tminDifference = Math.min(minDifference, (prevMinutes-firstMinutes) > 720 ? (1440-prevMinutes+firstMinutes) : (prevMinutes-firstMinutes));\n\t\treturn minDifference;\n\t}",
"public double getMinimumDistance() {\n double l = Double.POSITIVE_INFINITY;\n int stop = getDistanceEnd();\n\n calculateDistances();\n\n for (int i = 0; i < stop; i++) {\n l = Math.min(l, distances[i]);\n }\n\n return l;\n }",
"int min() {\n\t\t// added my sort method in the beginning to sort our array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the first term in the array --> first term should be min if\n\t\t// sorted\n\t\tint x = array[0];\n\t\treturn x;\n\t}",
"public double minWait()\r\n {\r\n //find the minimum value in an arraylist\r\n double minWait = this.servedCustomers.get(0).getwaitTime();\r\n for(int i = 1; i < this.servedCustomers.size(); i++){\r\n if(this.servedCustomers.get(i).getwaitTime()<minWait){\r\n minWait = this.servedCustomers.get(i).getwaitTime();\r\n }\r\n }\r\n return minWait;\r\n }",
"private int min(int index1, int index2) {\n // TODO: YOUR CODE HERE\n E first = getElement(index1);\n E second = getElement(index2);\n if (first == null) { //if null then just return the other one?\n return index2;\n }\n if (second == null) {\n return index1;\n }\n if (first.compareTo(second) > 0) {\n return index2;\n } else {\n return index1;\n }\n }",
"public double min(ArrayList<Double> x) {\n double round;\n round = Collections.min(x) * 100;\n round = Math.round(round);\n round /= 100;\n return round;\n }",
"public int minDiffInBST(TreeNode root) {\n List<Integer> numbers = new ArrayList<>();\n inorder(root, numbers);\n\n int min = Integer.MAX_VALUE;\n for (int i = 1; i < numbers.size(); i++) {\n min = Math.min(min, numbers.get(i) - numbers.get(i-1));\n }\n\n return min;\n }",
"public int smallestDifference(int[] A, int[] B) {\n\t\tint[] longArray = A.length > B.length ? A : B;\n\t\tint[] shortArray = A.length > B.length ? B : A;\n\t\tArrays.sort(longArray);\n\t\tint min = Integer.MAX_VALUE;\n\t\tfor (int i = 0; i < shortArray.length; i++) {\n\t\t\tint a = min(longArray, shortArray[i]);\n\t\t\tif (a == 0) {\n\t\t\t\treturn 0;\n\t\t\t} else if (a < min) {\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}",
"@Test\n public void min() {\n assertEquals(2103, SuggestionUtil.min(2103, 2103, 2103));\n\n // EP: two numbers same and one different\n assertEquals(2103, SuggestionUtil.min(2103, 2104, 2103));\n\n // EP: all three numbers different\n assertEquals(2103, SuggestionUtil.min(2103, 2104, 2105));\n }",
"int min();",
"public static int minimumAbsoluteDifference(int[] arr) {\n Arrays.sort(arr);\n int smallest = Math.abs(arr[0] - arr[arr.length - 1]);\n\n for (int i = 0; i < arr.length; i++) {\n if (i + 1 < arr.length) {\n int current = Math.abs(arr[i + 1] - arr[i]);\n if (smallest > current) {\n smallest = current;\n }\n }\n }\n\n return smallest;\n }",
"private <T extends Number> T computeMin(final Collection<T> inputCollection) {\n\r\n\t\tT res = null;\r\n\r\n\t\tif (!inputCollection.isEmpty())\r\n\t\t\tfor (final T t : inputCollection)\r\n\t\t\t\tif (res == null || t.longValue() < res.longValue())\r\n\t\t\t\t\tres = t;\r\n\r\n\t\treturn res;\r\n\t}",
"private double findMinY() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn 0;\n\t\t}\n\t\tdouble min = pointList.get(0).getY();\n\t\tfor(int i=0; i<pointList.size(); i++)\n\t\t\tif (min>pointList.get(i).getY())\n\t\t\t\tmin = pointList.get(i).getY();\n\t\treturn min;\n\t}",
"static int minimumDistances(int[] a) {\n int l = a.length;\n Map<Integer, List<Integer>> map = new HashMap<>();\n for (int i = 0; i <l ; i++) {\n List<Integer> val = map.get(a[i]);\n if(val == null){\n val = new ArrayList<>();\n }\n val.add(i);\n map.put(a[i], val);\n }\n int min = Integer.MAX_VALUE;\n for (List<Integer> value:\n map.values()) {\n int c = value.size();\n if(c>1){\n for (int i = 0; i < c-1 ; i++) {\n min = Math.min(min, value.get(i+1)- value.get(i));\n }\n }\n }\n if(min == Integer.MAX_VALUE) min = -1;\n return min;\n\n\n }",
"public int minMinValue(List<List<Integer>> positions) {\n int value = Integer.MAX_VALUE;\n for (final List<Integer> values : positions) {\n final int temp = Collections.min(values).intValue();\n if (temp < value) {\n value = temp;\n }\n }\n return value;\n }",
"public float min(Collection<Float> data){\r\n return Collections.min(data);\r\n }",
"Object getMinimumValue(Object elementID) throws Exception;",
"double getMin();",
"double getMin();",
"public static void main(String[] args) {\n int [] array1 = {30,12,5,9,2,20,33,1};\n int [] array2 = {18,25,41,47,17,36,14,19};\n int a=array1.length;\n int b=array2.length;\n System.out.println(\"The lowest differenc between two array is :\"+findLowestDiff(array1,array2,a,b));\n\n\n\n\n }",
"static double minimalDistance(int[] x, int y[]) {\n Point[] points = new Point[x.length];\n for (int i = 0; i < x.length; i++) {\n points[i] = new Point(x[i], y[i]);\n }\n\n Arrays.sort(points, (a, b) -> a.x == b.x ? Long.signum(a.y - b.y) : Long.signum(a.y - b.y));\n\n PairPoint minPointsDistance = getMinPointsDistance(points, 0, x.length);\n return minPointsDistance == null ? -1 : minPointsDistance.distance;\n }",
"private double getMinNumber(ArrayList<Double> provinceValues)\n {\n Double min = 999999999.0;\n\n for (Double type : provinceValues)\n {\n if (type < min)\n {\n min = type;\n }\n }\n return min;\n }",
"private static int searchSmallest(List<Integer> input) {\n\t\tint left = 0;\n\t\tint right = input.size()-1;\n\t\t\n\t\twhile(left < right) {\n\t\t\tint mid = left + (right-left)/2 + 1; System.out.println(\"mid=\" + mid);\n\t\t\t\n\t\t\tif(input.get(left) > input.get(mid)) {//smallest in left half\n\t\t\t\tright = mid-1;\n\t\t\t}else {\n\t\t\t\tleft = mid+1;\n\t\t\t}\n\t\t}\n\t\treturn left;//left=right now\n\t}",
"Collection<T> getMinElements();",
"static int min(int a, int b) { return a < b ? a : b; }",
"public static double findTallest(List<Double> peeps) {\n\t\t double largeNum = 0;\n\t\tfor (int i = 0; i < peeps.size(); i++) {\n\t\t\tif (peeps.get(i)>=largeNum) {\n\t\t\t\tlargeNum =peeps.get(i);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn largeNum;\n\t}",
"public int findMin() {\n\t\tint min = (int)data.get(0);\n\t\tfor (int count = 1; count < data.size(); count++)\n\t\t\tif ((int)data.get(count) < min)\n\t\t\t\tmin = (int)data.get(count);\n\t\treturn min;\n\t}",
"protected ValuePosition getMinimum() {\n\t\t// Calcule la position et la durée d'exécution de la requête la plus courte dans le tableau des requêtes\n\t\tValuePosition minimum = new ValuePosition();\n\t\tminimum.position = 0;\n\t\tfor(int pos=0; pos<requests.length; pos++) {\n\t\t\tRequest request = requests[pos];\n\t\t\tif(request == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(minimum.value == null || request.getElapsedTime() < minimum.value) {\n\t\t\t\tminimum.position = pos;\n\t\t\t\tminimum.value = request.getElapsedTime();\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}",
"public static int minAdjDiff(int arr[], int n) {\n\n // Your code here\n int min = Math.abs(arr[0] - arr[1]);\n for(int i =1;i<n-1;i++){\n min = Math.min(min, Math.abs(arr[i]-arr[i+1]));\n }\n min = Math.min(min, Math.abs(arr[n-1]-arr[0]));\n return min;\n }",
"public int extractMinimum() {\n \n //O(log_2(w))\n int min = minimum();\n\n if (min == -1) {\n assert(xft.size() == 0);\n return -1;\n }\n \n remove(min);\n \n return min;\n }",
"public double getLeft(double min) {\n return min - this.size; \n }",
"int getMin() \n\t{ \n\t\tint x = min.pop(); \n\t\tmin.push(x); \n\t\treturn x; \n\t}",
"public double getMinDist(){\n\t\tquickSort(0, pnt.length - 1);\t// for divide\n\t\t/* CASE: same point */\n\t\tif(min == 0)\n\t\t\treturn 0;\n\n\t\tmin = getDist(pnt[0], pnt[pnt.length - 1]);\n\t\tdivide(0, pnt.length - 1);\n\n\t\treturn min;\n\t}",
"public AnyType findMinimum(Comparator<AnyType> cmp) {\n LinkedListIterator<AnyType> itr = first();\n AnyType minimum = itr.current.element;\n while (itr.current.next != null) {\n //System.out.println(front.element);\n if (cmp.compare(itr.current.next.element, minimum) < 0) {\n minimum = itr.current.next.element;\n }\n itr.advance();\n }\n return minimum;\n }",
"int getMin() {\n\t\tif (stack.size() > 0) {\n\t\t\treturn minEle;\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}",
"Double getMinimumValue();",
"private Point findStartPoint(){\n Point min = points.get(0);\n for (int i = 1; i < points.size(); i++) {\n min = getMinValue(min, points.get(i));\n }\n return min;\n }",
"java.math.BigDecimal getMultipleBetMinimum();",
"@Test\n public void test_kmin_Integer_Collection4() {\n List<Integer> i4 = new ArrayList<Integer>();\n i4.add(2);\n i4.add(2);\n int actual = Selector.kmin(i4, 1, new CompareIntegerAscending());\n int expected = 2;\n Assert.assertEquals(\"Failed in duplicate, size 2 list\", expected, actual);\n }",
"private Double getMin(Double[] values) {\n Double ret = null;\n for (Double d: values) {\n if (d != null) ret = (ret == null) ? d : Math.min(d, ret);\n }\n return ret;\n }",
"public T min();",
"public int findMin(int[] nums) {\n int n = nums.length;\n int l = 0;\n int r = n - 1;\n int m;\n while (l + 1 < r) {\n m = (l + r) / 2;\n if (nums[m] > nums[l]) {\n l = m;\n }\n else if (nums[m] < nums[r]) {\n r = m;\n }\n }\n \n return Math.min(nums[0], Math.min(nums[l], nums[r]));\n }",
"private double findMin(){\r\n Set<Map.Entry<Double, Double>> list = heap.entrySet();\r\n double minKey = heap.firstKey();\r\n double minVal = MAX_WEIGHT;\r\n if (list != null){\r\n for (Map.Entry<Double, Double> entry: list){\r\n if (minVal > entry.getValue()){\r\n minVal = entry.getValue();\r\n minKey = entry.getKey();\r\n }\r\n }\r\n }\r\n return minKey;\r\n }",
"static int minimumTime(int[] x) {\n Arrays.sort(x);\n int l = x.length;\n int s = 0;\n int n = l - 1;\n for (int i = 0; i < n; ++i) {\n s += x[i + 1] - x[i];\n }\n return s;\n }",
"@Test\n public void test_kmin_Integer_Collection5() {\n List<Integer> i5 = new ArrayList<Integer>();\n i5.add(3);\n i5.add(7);\n i5.add(3);\n i5.add(3);\n i5.add(1);\n i5.add(9);\n i5.add(1);\n i5.add(1);\n i5.add(1);\n i5.add(5);\n int actual = Selector.kmin(i5, 2, new CompareIntegerAscending());\n int expected = 3;\n Assert.assertEquals(\"Failed in duplicate, size 10 list\", expected, actual);\n }",
"private double min(double a, double b) {\n if (a > b) {\n return b;\n }\n return a;\n }",
"public double min() {\n\t\tif (count() > 0) {\n\t\t\treturn _min.get();\n\t\t}\n\t\treturn 0.0;\n\t}",
"public E returnMinElement(){\r\n if (theData.size() <= 0) return null;\r\n\r\n E min = theData.get(0).getData();\r\n\r\n for (int i = 0; i< theData.size() ; i++){\r\n if (min.compareTo(theData.get(i).getData()) > 0 ){\r\n min = theData.get(i).getData();\r\n }\r\n }\r\n return min;\r\n }",
"E minVal();",
"private static Vertex lowestFInOpen(List<Vertex> openList) {\n\t\tVertex cheapest = openList.get(0);\n\t\tfor (int i = 0; i < openList.size(); i++) {\n\t\t\tif (openList.get(i).getF() < cheapest.getF()) {\n\t\t\t\tcheapest = openList.get(i);\n\t\t\t}\n\t\t}\n\t\treturn cheapest;\n\t}",
"public static int findPosMin(List<Integer> values, int start) {\r\n int bestGuessSoFar = start;\r\n for (int i = start + 1; i < values.size(); i++) {\r\n if (values.get(i) < values.get(bestGuessSoFar)) {\r\n bestGuessSoFar = i;\r\n } // if\r\n } // for\r\n return bestGuessSoFar;\r\n }",
"private double min(double value1 , double value2){\n double minValue = 0.0;\n if(value1 <= value2){\n minValue = value1;\n }else{\n minValue = value2;\n }\n\n return minValue;\n }",
"double getLeft(double min);",
"ComparableExpression<T> min();",
"int min(int... args) {\n\n if (args.length == 0) {\n throw new IllegalArgumentException(\"too few arguments\");\n }\n\n int min = args[0];\n\n for (int arg : args) {\n if (arg < min) {\n min = arg;\n }\n }\n return min;\n }",
"private static int getMinChildVal(ArrayList<MMT> childLst){\n\t\t//assign values first\n\t\tfor (MMT tree: childLst){\n\t\t\tif(tree.value == null)\n\t\t\t\ttree.value = getValue(tree);\n\t\t}\n\t\t//now get min child val\n\t\tint min = childLst.get(0).value;\n\t\tfor (int i=1; i<childLst.size(); i++){\n\t\t\tif (childLst.get(i).value < min)\n\t\t\t\tmin = childLst.get(i).value;\n\t\t}\n\t\treturn min;\n\t}",
"private double getMin() {\n return Collections.min(values.values());\n }",
"private static @Nullable Integer commonMin(List<ArgumentCount> counts) {\n // min=5, min=3, min=0 -> min=0\n // min=5, min=3, min=0, min=null -> min=null\n int commonMin = Integer.MAX_VALUE;\n for (ArgumentCount count : counts) {\n final Optional<Integer> min = count.getMinCount();\n if (!min.isPresent()) {\n return null;\n }\n commonMin = Math.min(commonMin, min.get());\n }\n if (commonMin == Integer.MAX_VALUE) {\n return null;\n }\n return commonMin;\n }",
"public double elementMinAbs() {\n return ops.elementMinAbs(mat);\n }",
"static int minValues(int[] x) {\n\t\tint min = 0;\n\n\t\tfor (int y : x) {\n\t\t\tif (y < min) {\n\t\t\t\tmin = y;\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}",
"public static <V extends Comparable<? super V>> V minValueKey(List<V> list)\n\t{\n\t\tCollections.sort(list);\n\t\treturn list.get(0);\n\t}",
"private void FindMinZ()\r\n\t{\r\n\t\tminimum_Z=Integer.MAX_VALUE;\r\n\t\tfor(Entry<Integer,Node> entry : FutureUpdateList.entrySet())\r\n\t\t{\r\n\t\t\tNode temp=entry.getValue();\r\n\t\t\tif(temp.z<minimum_Z)\r\n\t\t\t{\r\n\t\t\t\tminimum_Z=temp.z;\r\n\t\t\t\tminimum_X=temp.x;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static long GetMin(Collection<Long> collection) {\n return Collections.min(collection);\n }",
"public double min() {\n double resultat = Double.MAX_VALUE;\n double tmp = 0;\n for (int i = 0; i < tab.size(); i++) {\n tmp = CalculatorArray.min(tab.get(i));\n if (tmp < resultat) {\n resultat = tmp;\n }\n }\n\n System.out.println(\"Min colonne:\" + resultat);\n return resultat;\n }",
"public static void minMaxDifference() {\n //int arr[] = {4,3,5,6,7,1,2};\n int arr[] = {6, 1, 7, -1, 3, 5, 9};\n int min_number = Integer.MAX_VALUE;\n int max_diff = Integer.MIN_VALUE;\n int current_difference;\n for (int i = 0; i < arr.length; i++) {\n if (arr[i] < min_number)\n min_number = arr[i];\n current_difference = arr[i] - min_number;\n if (current_difference > max_diff)\n max_diff = current_difference;\n }\n System.out.println(\"Max diff : \" + max_diff);\n }",
"private static int getMin(int[] original) {\n int min =original[0];\n for(int i = 1; i < original.length; i++) {\n if(original[i] < min) min = original[i];\n }\n return min;\n }",
"public int findMinimum(int[] numbers, int length)\n {\n }",
"static int findMinDiff(int arr[], int n, int m) {\n\t\tif (m == 0 || n == 0)\r\n\t\t\treturn 0;\r\n\r\n\t\t// Sort the given packets\r\n\t\tArrays.sort(arr);\r\n\r\n\t\t// Number of students cannot be more than\r\n\t\t// number of packets\r\n\t\tif (n < m)\r\n\t\t\treturn -1;\r\n\r\n\t\t// Largest number of chocolates\r\n\t\tint min_diff = Integer.MAX_VALUE;\r\n\r\n\t\t// Find the subarray of size m such that\r\n\t\t// difference between last (maximum in case\r\n\t\t// of sorted) and first (minimum in case of\r\n\t\t// sorted) elements of subarray is minimum.\r\n\t\tint first = 0, last = 0;\r\n\t\tfor (int i = 0; i + m - 1 < n; i++) {\r\n\t\t\tint diff = arr[i + m - 1] - arr[i];\r\n\t\t\tif (diff < min_diff) {\r\n\t\t\t\tmin_diff = diff;\r\n\t\t\t\tfirst = i;\r\n\t\t\t\tlast = i + m - 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (arr[last] - arr[first]);\r\n\t}",
"private static <T extends Comparable <? super T>> int findMinPos(List <T> list, int from, int to){\r\n\t\tif (list.isEmpty()) return -1;\r\n\t\tif (from < 0 || to > list.size()) throw new IllegalArgumentException();\r\n\t\tT currentMin = list.get(from);\r\n\t\tint currentMinPos = from;\r\n\t\tfor (int i = from; i < to; i++){\r\n\t\t\tif (list.get(i).compareTo(currentMin) < 0){\r\n\t\t\t\tcurrentMin = list.get(i);\r\n\t\t\t\tcurrentMinPos = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn currentMinPos;\r\n\t}",
"public final void min() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue > topMostValue) {\n\t\t\t\tpush(topMostValue);\n\t\t\t} else {\n\t\t\t\tpush(secondTopMostValue);\n\t\t\t}\n\t\t}\n\t}"
] | [
"0.7204545",
"0.7090203",
"0.6900034",
"0.68017757",
"0.67023015",
"0.6631812",
"0.6580932",
"0.65203446",
"0.65051365",
"0.6501515",
"0.6492282",
"0.648599",
"0.6473896",
"0.64664483",
"0.6402714",
"0.6399472",
"0.63743144",
"0.6355478",
"0.6351669",
"0.6331731",
"0.6296977",
"0.62776244",
"0.6274938",
"0.6262033",
"0.6232204",
"0.62291586",
"0.6225172",
"0.62201923",
"0.62098527",
"0.620565",
"0.61982983",
"0.61765885",
"0.6166135",
"0.6144084",
"0.61162245",
"0.6109467",
"0.6107309",
"0.6103157",
"0.6087069",
"0.60705435",
"0.60632235",
"0.6045463",
"0.6033373",
"0.60311574",
"0.6001254",
"0.598561",
"0.5979202",
"0.59730303",
"0.59730303",
"0.5956764",
"0.59526783",
"0.59512717",
"0.59321296",
"0.5915845",
"0.59113747",
"0.5901361",
"0.5901105",
"0.5895295",
"0.58927053",
"0.58888197",
"0.58846533",
"0.58778393",
"0.5874736",
"0.58727574",
"0.58706224",
"0.5840845",
"0.58406365",
"0.58398277",
"0.58388066",
"0.5835284",
"0.58294195",
"0.58158714",
"0.5811483",
"0.5808543",
"0.5807303",
"0.5792291",
"0.57836217",
"0.5781905",
"0.5762104",
"0.57555556",
"0.57510555",
"0.5740605",
"0.5739409",
"0.57303685",
"0.5724528",
"0.5724506",
"0.57239103",
"0.57238847",
"0.57198143",
"0.57193524",
"0.57093376",
"0.5703812",
"0.5702805",
"0.5694926",
"0.5693789",
"0.569032",
"0.5673636",
"0.56707186",
"0.56701636",
"0.56659216"
] | 0.6620897 | 6 |
Method used to generate a matrix that contains the binomial interval representation | public static ArrayList<ArrayList<String>> generateMatrixBRI()
{
ArrayList<ArrayList<String>> binomialRapInterval = new ArrayList<>();
ArrayList<String> r = null;
for(int i=0; i<12; i++)
{
r = new ArrayList<>();
if(i == 0)
{
r.add(0, "P1");
r.add(1, "d2");
r.add(2, "3d3");
r.add(3, "5d4");
r.add(4, "5A5");
r.add(5, "3A6");
r.add(6, "A7");
}
if(i == 1)
{
r.add(0, "A1");
r.add(1, "m2");
r.add(2, "2d3");
r.add(3, "4d4");
r.add(4, "6A5");
r.add(5, "4A6");
r.add(6, "2A7");
}
if(i == 2)
{
r.add(0, "2A1");
r.add(1, "M2");
r.add(2, "d3");
r.add(3, "3d4");
r.add(4, "5d5");
r.add(5, "5A6");
r.add(6, "3A7");
}
if(i == 3)
{
r.add(0, "3A1");
r.add(1, "A2");
r.add(2, "m3");
r.add(3, "2d4");
r.add(4, "4d5");
r.add(5, "5d6");
r.add(6, "4A7");
}
if(i == 4)
{
r.add(0, "4A1");
r.add(1, "2A2");
r.add(2, "M3");
r.add(3, "d4");
r.add(4, "3d5");
r.add(5, "4d6");
r.add(6, "5A7");
}
if(i == 5)
{
r.add(0, "5A1");
r.add(1, "3A2");
r.add(2, "A3");
r.add(3, "P4");
r.add(4, "2d5");
r.add(5, "3d6");
r.add(6, "5d7");
}
if(i == 6)
{
r.add(0, "6A1");
r.add(1, "4A2");
r.add(2, "2A3");
r.add(3, "A4");
r.add(4, "d5");
r.add(5, "2d6");
r.add(6, "4d7");
}
if(i == 7)
{
r.add(0, "5d1");
r.add(1, "5A2");
r.add(2, "3A3");
r.add(3, "2A4");
r.add(4, "P5");
r.add(5, "d6");
r.add(6, "3d7");
}
if(i == 8)
{
r.add(0, "4d1");
r.add(1, "5d2");
r.add(2, "4A3");
r.add(3, "3A4");
r.add(4, "A5");
r.add(5, "m6");
r.add(6, "2d7");
}
if(i == 9)
{
r.add(0, "3d1");
r.add(1, "4d2");
r.add(2, "5A3");
r.add(3, "4A4");
r.add(4, "2A5");
r.add(5, "M6");
r.add(6, "d7");
}
if(i == 10)
{
r.add(0, "2d1");
r.add(1, "3d2");
r.add(2, "5d3");
r.add(3, "5A4");
r.add(4, "3A5");
r.add(5, "A6");
r.add(6, "m7");
}
if(i == 11)
{
r.add(0, "d1");
r.add(1, "2d2");
r.add(2, "4d3");
r.add(3, "6A4");
r.add(4, "4A5");
r.add(5, "2A6");
r.add(6, "M7");
}
binomialRapInterval.add(r);
}
return binomialRapInterval;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BinaryMatrixNew() {\n\t\t\tsuper(Matrixes.<R, C>newValidating(PredicateUtils.inBetween(0d, 1d)));\n\t\t}",
"public int[][] generateMatrix(int n) {\n\t\tint[][] res = new int[n][n];\r\n\t\tint x = 0;\r\n\t\tint num = 1;\r\n\t\twhile (n > 1) {\r\n\t\t\tfor (int i = x; i < x + n - 1; i++)\r\n\t\t\t\tres[x][i] = num++;\r\n\t\t\tfor (int i = x; i < x + n - 1; i++)\r\n\t\t\t\tres[i][x + n - 1] = num++;\r\n\t\t\tfor (int i = x + n - 1; i > x; i--)\r\n\t\t\t\tres[x + n - 1][i] = num++;\r\n\t\t\tfor (int i = x + n - 1; i > x; i--)\r\n\t\t\t\tres[i][x] = num++;\r\n\t\t\tn -= 2;\r\n\t\t\tx++;\r\n\t\t}\r\n\t\tif (n == 1)\r\n\t\t\tres[x][x] = num;\r\n\t\treturn res;\r\n\t}",
"private static BigInteger binomial(int n, int k) {\n BigInteger ret = new BigInteger(\"1\");\n if (k > n) {\n return BigInteger.ZERO;\n } else {\n \tif (binom[n][k] != null) {\n \t\treturn binom[n][k];\n \t}\n if (k > n / 2) {\n k = n - k;\n }\n // (n choose i+1) = (n choose i) * (n - i) / (i + 1)\n for (int i = 0; i < k; i++) {\n ret = ret.multiply(BigInteger.valueOf(n - i)).divide(BigInteger.valueOf(i + 1));\n }\n }\n return binom[n][k] = ret;\n }",
"private Binomial(int n) {\n N = n;\n }",
"public int[][] generateMatrix(int n) {\n\t\tif (n <= 0) {\n\t\t\treturn new int[0][0];\n\t\t}\n\n\t\tint[][] res = new int[n][n];\n\t\tint num = 1;\n\t\tint r1 = 0, c1 = 0, r2 = n-1, c2 = n-1;\n\t\twhile (r1 <= r2 && c1 <= c2) {\n\t\t\tfor (int c = c1; c <= c2; c++) {\n\t\t\t\tres[r1][c] = num++;\n\t\t\t}\n\n\t\t\tfor (int r = r1 + 1; r <= r2; r++) {\n\t\t\t\tres[r][c2] = num++;\n\t\t\t}\n\n\t\t\tif (r1 < r2) {\n\t\t\t\tfor (int c = c2 - 1; c > c1; c--) {\n\t\t\t\t\tres[r2][c] = num++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (c1 < c2) {\n\t\t\t\tfor (int r = r2; r > r1; r--) {\n\t\t\t\t\tres[r][c1] = num++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tr1++;\n\t\t\tc1++;\n\t\t\tr2--;\n\t\t\tc2--;\n\t\t}\n\n\t\treturn res;\n\t}",
"@Override\n protected int[] initMatrix(final int n) {\n final int[] matrix = new int[n * n];\n int k = 0;\n for (int i = 1; i <= n; ++i) {\n for (int j = 1; j <= n; ++j) {\n final int i2 = 2 * i;\n final int j2 = 2 * j - 1;\n if (mPrime.isPrime(i2 * i2 + j2 * j2)) {\n matrix[k] = 1;\n }\n ++k;\n }\n }\n return matrix;\n }",
"public int[][] generateMatrix(int n) {\n int[][] result = new int[n][n];\n int val = 1;\n int rowBegin = 0;\n int colBegin = 0;\n int rowEnd = n - 1;\n int colEnd = n - 1;\n while (rowBegin <= rowEnd && colBegin <= colEnd) {\n // travel right\n for (int j = colBegin; j <= colEnd; j++) {\n result[rowBegin][j] = val++;\n }\n rowBegin++;\n // travel down\n for (int i = rowBegin; i <= rowEnd; i++) {\n result[i][colEnd] = val++;\n }\n colEnd--;\n // travel left\n if (rowBegin <= rowEnd) {\n for (int j = colEnd; j >= colBegin; j--) {\n result[rowEnd][j] = val++;\n }\n }\n rowEnd--;\n // travel up\n if (colBegin <= colEnd) {\n for (int i = rowEnd; i >= rowBegin; i--) {\n result[i][colBegin] = val++;\n }\n }\n colBegin++;\n }\n return result;\n\n }",
"static void binomialCoeff(int C[][], int n, int k)\n {\n for (int i = 0; i <= n; i++) {\n for (int j = 0; j <= Math.min(i, k); j++)\n {\n\n // Base Cases\n if (j == 0 || j == i)\n C[i][j] = 1;\n\n // Calculate value using previously\n // stored values\n else\n C[i][j] = C[i - 1][j - 1] +\n C[i - 1][j];\n }\n }\n }",
"public List<List<Integer>> generate(int numRows) {\n List<List<Integer>> ans = new ArrayList();\n for(int i=0;i<numRows;i++){\n ans.add(new ArrayList());\n for(int j=0;j<=i;j++){\n if(j==0||j==i)\n ans.get(i).add(1);\n else\n ans.get(i).add(ans.get(i-1).get(j-1)+ans.get(i-1).get(j));\n }\n }\n return ans;\n }",
"public int[][] generateMatrix(int n) {\n // input checking\n if (n < 0) {\n return null;\n }\n\n // start fill in the matrix (consider what happen when n == 0)\n // test case: input == 0; expect [];\n int[][] matrix = new int[n][n];\n int lo = 0, hi = matrix.length - 1;\n int num = 1;\n while (lo <= hi) {\n // pay attention to when lo == hi\n if (lo == hi) {\n matrix[lo][lo] = num;\n break;\n }\n // otherwise, fill this layer\n for (int i = lo; i < hi; i++) { // attention i < hi not i <= hi\n matrix[lo][i] = num++;\n }\n for (int i = lo; i < hi; i++) {\n matrix[i][hi] = num++;\n }\n for (int i = hi; i > lo; i--) {\n matrix[hi][i] = num++;\n }\n for (int i = hi; i > lo; i--) {\n matrix[i][lo] = num++;\n }\n lo++;\n hi--;\n }\n return matrix;\n }",
"public int[][] generateMatrix(int n) {\n\t\tint[][] res = {};\n\t\tif (n <= 0) {\n\t\t\treturn res;\n\t\t}\n\t\tres = new int[n][n];\n\t\tint x = 0;\n\t\tint y = 0;\n\t\tint count = 1;\n\n\t\twhile (n > 0) {\n\t\t\tif (n == 1) {\n\t\t\t\tres[x][y] = count;\n\t\t\t}\n\t\t\t// move right\n\t\t\tfor (int i = 0; i < n - 1; ++i) {\n\t\t\t\tres[x][y++] = count++;\n\t\t\t}\n\t\t\t// move down\n\t\t\tfor (int i = 0; i < n - 1; ++i) {\n\t\t\t\tres[x++][y] = count++;\n\t\t\t}\n\t\t\t// move left\n\t\t\tfor (int i = 0; i < n - 1; ++i) {\n\t\t\t\tres[x][y--] = count++;\n\t\t\t}\n\t\t\t// move up\n\t\t\tfor (int i = 0; i < n - 1; ++i) {\n\t\t\t\tres[x--][y] = count++;\n\t\t\t}\n\t\t\tx = x + 1;\n\t\t\ty = y + 1;\n\t\t\tn = n - 2;\n\t\t}\n\t\treturn res;\n\t}",
"void iniciaMatriz() {\r\n int i, j;\r\n for (i = 0; i < 5; i++) {\r\n for (j = 0; j <= i; j++) {\r\n if (j <= i) {\r\n m[i][j] = 1;\r\n } else {\r\n m[i][j] = 0;\r\n }\r\n }\r\n }\r\n m[0][1] = m[2][3] = 1;\r\n\r\n// Para los parentesis \r\n for (j = 0; j < 7; j++) {\r\n m[5][j] = 0;\r\n m[j][5] = 0;\r\n m[j][6] = 1;\r\n }\r\n m[5][6] = 0; // Porque el m[5][6] quedo en 1.\r\n \r\n for(int x=0; x<7; x++){\r\n for(int y=0; y<7; y++){\r\n // System.out.print(\" \"+m[x][y]);\r\n }\r\n //System.out.println(\"\");\r\n }\r\n \r\n }",
"public static BigFraction[][] identity(int n) {\n BigFraction[][] I = new BigFraction[n][n];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n I[i][j] = new BigFraction(0);\n I[i][i] = new BigFraction(1);\n }\n }\n return I;\n }",
"public int[][] generateMatrix(int n) {\n int[][] matrix = new int[n][n];\n int counter = 1;\n for(int layer = 0; layer < (n + 1)/2; layer++){\n matrix[layer][layer] = counter++;\n for(int i = layer + 1; i < n - layer; i++) matrix[layer][i] = counter++;\n for(int i = layer + 1; i < n - layer; i++) matrix[i][n-layer-1] = counter++;\n //if(layer == (n + 1)/2 - 1 && n % 2 == 1) break;\n for(int i = n - layer - 2; i >= layer; i--) matrix[n-layer-1][i] = counter++;\n for(int i = n - layer - 2; i > layer; i--) matrix[i][layer] = counter++;\n }\n return matrix;\n }",
"public static Matrix logN(Matrix matrix, double base)\n {\n double b = 1.0;\n double[][] temp = matrix.getArray();\n int row = matrix.getRowDimension();\n int col = matrix.getColumnDimension();\n double[][] result = new double[row][col];\n if (base <= 0)\n {\n throw new IllegalArgumentException(\n \"logN : Negative or zero base result in a Complex Number or negative Infinity.\");\n }\n\n b = Math.log(base);\n for (int i = 0; i < row; i++)\n {\n for (int j = 0; j < col; j++)\n {\n if (temp[i][j] == 0.0)\n {\n result[i][j] = Double.NEGATIVE_INFINITY;\n }\n else if (temp[i][j] < 0.0)\n {\n result[i][j] = Double.NaN;\n }\n else\n {\n result[i][j] = Math.log(temp[i][j]) / b;\n }\n }// end for\n }// end for\n return new Matrix(result);\n }",
"public int[][] generateMatrix(int n) {\n\t \n\t int matrix[][] = new int[n][n];\n\t int count = n * n +1;\n int topRow = 0;\n int bottomRow = n-1;\n int leftmostColumn = 0;\n int rightmostColumn = n -1;\n int added = 0;\n\t \n\t \n\t while(leftmostColumn <= rightmostColumn && topRow<= bottomRow && added <= count){\n \n \n \tif(added != count){\n for(int i = leftmostColumn; i <= rightmostColumn;i++){\n \t matrix[topRow][i] = added +1;\n // #arrList.add(matrix[topRow][i]);\n added = added+1;\n /* if(added == count)\n \tbreak;*/\n }\n topRow = topRow +1;\n \t}\n \n \n \tif(added != count){\t\n for(int j = topRow; j <= bottomRow;j++){\n //arrList.add(matrix[j][rightmostColumn]);\n \t matrix[j][rightmostColumn] = added+1;\n added = added+1;\n /*if(added == count)\n \tbreak;*/\n }\n rightmostColumn = rightmostColumn -1;\n \t} \n \t\n \t\n \tif(added != count){\t\n for(int k = rightmostColumn; k >= leftmostColumn; k--){\n \t matrix[bottomRow][k] = added +1;\n //arrList.add(matrix[bottomRow][k]);\n added = added+1;\n /*if(added == count)\n \tbreak;*/\n }\n bottomRow = bottomRow -1;\n \t}\n \t\n \t\n \tif(added != count){\t\n for(int l = bottomRow; l >= topRow ;l--){\n // arrList.add(matrix[l][leftmostColumn]);\n \t matrix[l][leftmostColumn] = added +1;\n added = added+1;\n /*if(added == count)\n \tbreak;*/\n }\n leftmostColumn = leftmostColumn +1;\n \t}\n \n }\n\t \n\t return matrix;\n \n}",
"public int[][] generateMatrix(int n) {\n \n int[][] matrix = new int[n][n];\n \n int i = 0, j = 0, direction = 0;\n \n int right = n - 1, left = 0, top = 1, bottom = n - 1, count = 1;\n \n while (count <= n * n && i >= 0 && i < n && j >= 0 && j < n) {\n switch (direction) {\n case 0:\n if (j == right) {\n matrix[i++][j] = count;\n right--;\n direction = 1;\n } else {\n matrix[i][j++] = count;\n }\n break;\n case 1:\n if (i == bottom) {\n matrix[i][j--] = count;\n bottom--;\n direction = 2;\n } else {\n matrix[i++][j] = count;\n }\n break;\n case 2:\n if (j == left) {\n matrix[i--][j] = count;\n left++;\n direction = 3;\n } else {\n matrix[i][j--] = count;\n }\n break;\n case 3:\n if (i == top) {\n matrix[i][j++] = count;\n top++;\n direction = 0;\n } else {\n matrix[i--][j] = count;\n }\n break;\n }\n count++;\n }\n \n return matrix;\n }",
"public static int[][] generateMatrix(int rows, int columns) {\n\tint[][] result = new int[rows][columns];\n\tfor (int i = 0; i < rows; i++) {\n\tfor (int j = 0; j < columns; j++) {\n\tresult[i][j] = (int) (Math.random() * 100) + 1;\n\t}\n\t}\n\treturn result;\n\t}",
"public static int[][] computeTable() {\n\t\tint [][] ret = new int[10][10];\n\t\tfor (int m = 0; m < 10; m++) {\n\t\t\tfor (int n = 0; n < 10; n++) {\n\t\t\t\tret[m][n] = m*n;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public static double[][] BinomialCoef(int K, int I) {\n\t\tdouble Bin[][] = new double[K + 1][I + 1];\n\t\tint k, i;\n\t\t// Setup the first line\n\t\tBin[0][0] = 1.0;\n\t\tfor (i = I; i > 0; --i)\n\t\t\tBin[0][i] = 0.0;\n\t\t// Setup the other lines\n\t\tfor (k = 0; k < K; k++) {\n\t\t\tBin[k + 1][0] = 1.0;\n\t\t\tfor (i = 1; i <= I; i++) {\n\t\t\t\tif (k + 1 < i)\n\t\t\t\t\tBin[k][i] = 0.0;\n\t\t\t\telse\n\t\t\t\t\tBin[k + 1][i] = Bin[k][i] + Bin[k][i - 1];\n\t\t\t}\n\t\t}\n\t\treturn Bin;\n\t}",
"private static void createTables(int n, int upperBound) {\r\n\t\tRandom randomGenerator = new Random();\r\n\t\tint [][] randomArray = new int [n][n];\r\n\t\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tfor (int j = 0; j < n; j++) {\r\n\t\t\t\tif (i == j) {\r\n\t\t\t\t\trandomArray[i][j] = 0;\r\n\t\t\t\t} else if(i > j) {\r\n\t\t\t\t\trandomArray[i][j] = INFINITY;\r\n\t\t\t\t} else {\r\n\t\t\t\t\trandomArray[i][j] = randomGenerator.nextInt(upperBound) + 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\twriteOutput(randomArray);\r\n\t}",
"public static int[][] init() {\n int[][] arr={\n {0,1,0,1,0,0,0},\n {0,0,1,0,0,1,0},\n {1,0,0,1,0,1,0},\n {0,0,1,0,0,1,0},\n {0,0,1,1,0,1,0},\n {1,0,0,0,0,0,0}\n };\n return arr;\n }",
"public int[][] generateMatrix(int n) {\n int[][] matrix = new int[n][n];\r\n generateMatrix(matrix, 0, 1);\r\n return matrix;\r\n }",
"public abstract Case[][] generate();",
"public static int[][] getMatrizBin(BufferedImage img){\n int largura = img.getWidth();\r\n int altura = img.getHeight();\r\n \r\n //Imagem de saida\r\n BufferedImage outImage = new BufferedImage(largura, altura, BufferedImage.TYPE_3BYTE_BGR);\r\n \r\n //matriz de saida\r\n int[][] output = new int[largura][altura];\r\n \r\n //calculando os valores do CIVE\r\n for (int x = 0; x < largura; x++) {\r\n for (int y = 0; y < altura; y++) {\r\n double red = Color.getColor(\"red\", img.getRGB(x, y)).getRed();\r\n double green = Color.getColor(\"green\", img.getRGB(x, y)).getGreen();\r\n \r\n if (green > red ) {\r\n output[x][y] = 1;\r\n } else {\r\n output[x][y] = 0;\r\n }\r\n \r\n }\r\n }\r\n\r\n return output;\r\n }",
"private static ArrayList<Integer> generateBinaryCodeList(ArrayList<ArrayList<Integer>> tMat){\r\n\t\tArrayList<Integer> bcList = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < tMat.size(); i++){\r\n\t\t\tint code = getBinaryCode(tMat, i);\r\n\t\t\tbcList.add(code);\r\n\t\t}\r\n\t\treturn bcList;\r\n\t}",
"private void generateIntervalArray(){\n BigDecimal maximumValue = this.getTfMaximumInterval();\n BigDecimal minimumValue = this.getTfMinimumInterval();\n BigDecimal stepValue = this.getTfStepInterval();\n \n intervalArray = new ArrayList<BigDecimal>();\n BigDecimal step = maximumValue;\n \n //Adiciona os valores \"inteiros\"\n while(step.doubleValue() >= minimumValue.doubleValue()){\n intervalArray.add(step);\n step = step.subtract(stepValue);\n }\n }",
"public List<List<Integer>> generate(int numRows)\n {\n List<List<Integer>> allrows = new ArrayList<List<Integer>>();\n ArrayList<Integer> row = new ArrayList<Integer>();\n for(int i=0;i<numRows;i++)\n {\n row.add(0, 1);\n for(int j=1;j<row.size()-1;j++)\n row.set(j, row.get(j)+row.get(j+1));\n allrows.add(new ArrayList<Integer>(row));\n }\n return allrows;\n }",
"int xBins();",
"public List<List<Integer>> generate(int numRows) {\n List<List<Integer>> ret = new ArrayList<>();\n\n if (numRows == 0) return ret;\n\n\n for (int i = 0; i < numRows; i++) {\n List<Integer> list = new ArrayList<>(); //first\n list.add(1);\n for (int j = 1; j < i; j++) {\n List<Integer> getList = ret.get(i - 1);\n int num = getList.get(j - 1) + getList.get(j);\n list.add(num);\n }\n\n if (i!=0){\n list.add(1); //end\n }\n ret.add(list);\n }\n\n return ret;\n }",
"public void generaBuits() {\r\n\r\n //FIX PARA EL OUT OF BOUNDS DE la columna 9 \r\n //int cellId = randomGenerator(N*N) - 1;\r\n //QUITAR \r\n //if (j != 0)\r\n //j = j - 1;\r\n int count = K;\r\n while (count != 0) {\r\n int cellId = generadorAleatoris(N * N) - 1;\r\n\r\n //System.out.println(cellId); \r\n // extract coordinates i and j \r\n int i = (cellId / N);\r\n int j = cellId % 9;\r\n\r\n // System.out.println(i+\" \"+j); \r\n if (mat[i][j] != 0) {\r\n count--;\r\n mat[i][j] = 0;\r\n }\r\n }\r\n }",
"private double[][] a2() {\n double[][] r = a;\n for (int j = 0; j < nBinVars; j++) {\n final int v = intVars[j];\n if (existsBinConstraint(v)) {\n LOG.debug(\"existsBinConstraint\", v);\n this.nBinVars2--;\n continue;\n }\n double[] constraint = new double[n];\n constraint[v - 1] = 1d;\n r = Maths.append(r, constraint);\n }\n return r;\n }",
"public static ArrayList<ArrayList<Integer>> calculateInterval(ArrayList<String> inputPermutation, TreeMap<String, ArrayList<Integer>> binomialMap)\r\n {\r\n ArrayList<ArrayList<Integer>> intervalResult = new ArrayList<>();\r\n ArrayList<Integer> intervalForSinglePermutation = new ArrayList<>();\r\n if(inputPermutation.size() > 0)\r\n {\r\n for(int y=0; y<inputPermutation.size(); y++)\r\n { \r\n intervalForSinglePermutation = new ArrayList<>();\r\n List<String> singleNote = Arrays.asList(inputPermutation.get(y).split(\":\"));\r\n \r\n ArrayList<Integer> binomialFirstNote = binomialMap.get(singleNote.get(0));\r\n ArrayList<Integer> binomialSecondNote = binomialMap.get(singleNote.get(1));\r\n \r\n Integer pitchClassFirstNote = binomialFirstNote.get(0);\r\n Integer NameClassFirstNote = binomialFirstNote.get(1);\r\n\r\n Integer pitchClassSecondNote = binomialSecondNote.get(0);\r\n Integer NameClassSecondNote = binomialSecondNote.get(1);\r\n\r\n Integer firstElem = (pitchClassFirstNote-pitchClassSecondNote) < 0 ? ((pitchClassFirstNote-pitchClassSecondNote)+12)%12: (pitchClassFirstNote-pitchClassSecondNote)%12; \r\n Integer secondElem = (NameClassFirstNote-NameClassSecondNote) < 0 ? ((NameClassFirstNote-NameClassSecondNote)+7)%7: (NameClassFirstNote-NameClassSecondNote)%7;\r\n //System.out.println(\"Inside calculateInterval final result: <\"+firstElem+\",\"+secondElem+\">\");\r\n intervalForSinglePermutation.add(firstElem);\r\n intervalForSinglePermutation.add(secondElem);\r\n intervalResult.add(intervalForSinglePermutation);\r\n }\r\n //System.out.println(\"calculateInterval: \" + intervalResult);\r\n } \r\n return intervalResult;\r\n }",
"private ArrayList<ArrayList<Integer>> generateMatrixPrime(\r\n\t\t\tArrayList<Integer> binaryCodeList,\r\n\t\t\tHashMap<Integer, ArrayList<Integer>> codeToColumnHash, ArrayList<ArrayList<Integer>> tMat) {\r\n\t\tComparator<Integer> decreaseOrderComp = new decreasingOrderComparator();\r\n\t\tSet<Integer> tempSet = new TreeSet<Integer>(decreaseOrderComp);\r\n\t\ttempSet.addAll(binaryCodeList);\r\n\t\tArrayList<Integer> sortedCodes = new ArrayList<Integer>(tempSet);\r\n\t\treturn generateMatrixFromSortedCodes(sortedCodes, codeToColumnHash, tMat);\r\n\t}",
"public List <List <Integer>> generate (int numRows) {\n List <List <Integer>> result = new ArrayList <> ();\n if (numRows == 1) {\n List <Integer> aList = Arrays.asList (1);\n result.add (aList);\n return result;\n }\n List <List <Integer>> re1 = generate (numRows - 1);\n result.addAll (re1);\n List <Integer> bList = re1.get (re1.size () - 1);\n List <Integer> aList = new ArrayList <> ();\n aList.add (1);\n for (int i = 0; i < bList.size () - 1; i++) {\n aList.add (bList.get (i) + bList.get (i + 1));\n }\n aList.add (1);\n result.add (aList);\n return result;\n }",
"private Integer[][] getBase(int n, int m, int[][] ar) {\n\t\t\tInteger[][] dp = new Integer[n + 1][m + 1];\n\n\t\t\tboolean encounteredObstacle = false;\n\t\t\tfor (int i = 1; i <= n; i++) {\n\t\t\t\tif (ar[i - 1][0] == 1 || encounteredObstacle) {\n\t\t\t\t\tdp[i][1] = 0;\n\t\t\t\t\tencounteredObstacle = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdp[i][1] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tencounteredObstacle = false;\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tif (ar[0][j - 1] == 1 || encounteredObstacle) {\n\t\t\t\t\tdp[1][j] = 0;\n\t\t\t\t\tencounteredObstacle = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdp[1][j] = 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn dp;\n\t\t}",
"private void histToByteMatrix(int[] intHist)\n {\n int pixelsPerSection = pixel_height_per_grid * pixel_width_per_grid;\n\n // Number of bits needed to represent section of the grid\n int maxBits = (int)(Math.log(pixelsPerSection)/ Math.log(2)) + 1;\n\n // Number of bytes needed per array of the Matrix below (Cols)\n int bytesNeeded = PaillierEncryption.number_of_bits / 8;\n\n // Number of integers for every byte array\n float numInts = PaillierEncryption.number_of_bits / (float) maxBits;\n\n // Check if numInts has a decimal place\n if(numInts == (int) numInts)\n {\n numInts--;\n }\n\n int matrixSize = (int)Math.ceil((float)(intHist.length / Math.floor(numInts)));\n\n // Create byte matrix\n byteMatrix = new byte[matrixSize][bytesNeeded];\n\n // Create byte array (these are the arrays set in the matrix above\n byte[] byteArray = new byte[bytesNeeded];\n\n // This is the first bit position that needs to be updated in the byte array\n int bitPos = 0;\n\n // This is set to true if the first byte needs to be all zeroes (to avoid error in encryption)\n boolean firstEmpty = false;\n\n // This is the number of bits that need to be skipped to avoid getting a negative number\n int skipBits = (PaillierEncryption.number_of_bits % maxBits);\n\n // Figure out where to start\n if(skipBits > 8)\n {\n firstEmpty = true;\n bitPos = (16 - skipBits) - 1;\n }\n else if(skipBits == 8 || skipBits == 0)\n {\n // This is if the amount of ints that can be placed into a single BigInteger has no decimal place\n firstEmpty = true;\n bitPos = 7;\n }\n else\n {\n bitPos = (8 - skipBits) - 1;\n }\n\n // This byte is used to check if a specific bit is set or not\n byte andByte = 0x01;\n\n // This is the next byte to be added to byteArray\n byte nextByte = 0x00;\n\n // This is the current index of the byteArray\n int arrayIndex = 0;\n\n // This is the current index of the byteMatrix\n int matrixIndex = 0;\n\n // This is set when the matrix becomes properly filled\n boolean isDone = false;\n\n // Both the for loops just go through every bit\n // First loop is to make sure the alogorithm keeps filling the matrix even when there are no more numbers in inthist\n int i = 0;\n while(!isDone)\n {\n // Get the current value if there is a value to get\n int value = 0;\n if(i < intHist.length)\n {\n value = intHist[i];\n }\n\n // For every bit needed to represent value\n for(int k = maxBits - 1; k >= 0; k--)\n {\n // Check if we need to skip the first byte in byteArray\n // This should only happen in a few settings: 1024 bit key and a grid size of 1\n if(firstEmpty && arrayIndex == 0)\n {\n byteArray[arrayIndex++] = nextByte;\n }\n // Check the specific bit of value\n if(((value >> k) & andByte) == 1)\n {\n // if 1, set the proper bit in nextByte\n nextByte |= (1 << bitPos);\n }\n // Always reduce the bit position by 1\n bitPos--;\n\n // If the bitPos is less than 0, then add nextByte to byteArray and reset values\n if(bitPos < 0)\n {\n byteArray[arrayIndex++] = nextByte;\n bitPos = 7;\n nextByte = 0x00;\n }\n // If the array has been filled add it to the matrix and repeat\n if(arrayIndex == bytesNeeded)\n {\n byteMatrix[matrixIndex++] = byteArray;\n byteArray = new byte[bytesNeeded];\n arrayIndex = 0;\n\n if(matrixIndex == matrixSize)\n {\n isDone = true;\n }\n\n // Figure out where to start again\n if(skipBits > 8)\n {\n // This may not work... idk. But it won't get called for 1024 or 2048 bit key\n bitPos = (16 - skipBits) - 1;\n }\n else if(skipBits == 8 || skipBits == 0)\n {\n // This is if the amount of ints that can be placed into a single BigInteger has no decimal place\n bitPos = 7;\n }\n else\n {\n bitPos = (8 - skipBits) - 1;\n }\n\n }\n\n }\n i++;\n }\n }",
"public static int[][] task10_spiralGenerate(int m, int n) {\n\t\tif (m <= 0) {\n\t\t\t// !!! only m <= 0, return a empty array\n\t\t\treturn new int[][] {};\n\t\t}\n\t\tint rLen = m;\n\t\tint cLen = n;\n\t\tint[][] matrix = new int[m][n];\n\t\tint leftB = 0, rightB = cLen - 1;\n\t\tint upperB = 0, lowerB = rLen - 1;\n\t\tint counter = 1;\n\t\twhile (true) {\n\t\t\tfor (int j = leftB; j <= rightB; j++) {\n\t\t\t\tmatrix[upperB][j] = counter++;\n\t\t\t}\n\t\t\tupperB++;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = upperB; i <= lowerB; i++) {\n\t\t\t\tmatrix[i][rightB] = counter++;\n\t\t\t}\n\t\t\trightB--;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int j = rightB; j >= leftB; j--) {\n\t\t\t\tmatrix[lowerB][j] = counter++;\n\t\t\t}\n\t\t\tlowerB--;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = lowerB; i >= upperB; i--) {\n\t\t\t\tmatrix[i][leftB] = counter++;\n\t\t\t}\n\t\t\tleftB++;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn matrix;\n\t}",
"public static int[] init(int in){\n int[] cells = new int[16];\n\n for(int i = 0; i < 16; i++){\n cells[i] = 1;\n }\n\n //sets the index passed-in to be 0\n cells[in] = 0;\n cells[15] = 14;\n\n return cells;\n }",
"public static byte[] genIndividuo(int nB){\n byte nInd[] = new byte[nB];\n Random r = new Random();\n float aux;\n for(int i=0;i<nB;i++){\n aux = r.nextFloat();\n if(aux < 0.5)\n nInd[i] = 0;\n else\n nInd[i] = 1;\n }\n return nInd;\n }",
"BigDecimal[][] toTriangular();",
"public static int[][] generateMatrix() {\n int rowsCount = RANDOM.nextInt( MAX_ROWS_COUNT ) + 1;\n int[][] result = new int[rowsCount][];\n for (int i = 0; i < rowsCount; i++) {\n result[i] = new int[RANDOM.nextInt( MAX_COLUMNS_COUNT ) + 1];\n fillArray( result[i] );\n }\n return result;\n }",
"public static float[] getBinomialKernelSigmaZeroPointFive() {\n //1 -1 norm=0.5\n return new float[]{0.5f, 0.0f, -0.5f};\n }",
"private static int[] generateArray(int i, int j) {\n int[] col = new int[j+1];\n for(int k = 0; k <= j; k++)\n {\n col[k] = (i+k)%Algo.x.length;\n } \n return col;\n }",
"@Override \n public int binom(int n, int k){\n this.binumInputCheck(n, k);\n if ( n == 0 || k == 0 || n == k )\n return 1;\n \n if(k > n/2)\n k = n - k; \n \n if(this.saveArr[n][k] != 0)\n return this.saveArr[n][k];\n \n this.saveArr[n][k] = binom(n-1, k-1) + binom(n-1, k);\n return this.saveArr[n][k];\n }",
"public static List<List<Integer>> generate(int numRows) {\n List<List<Integer>> result = new ArrayList<>();\n if (numRows == 0) {\n return result;\n }\n result.add(new ArrayList<>());\n result.get(0).add(1);\n for (int rowNum = 1; rowNum < numRows; rowNum++) {\n List<Integer> row = new ArrayList<>();\n List<Integer> preRow = result.get(rowNum - 1);\n row.add(1);\n for (int j = 1; j < rowNum; j++) {\n row.add(preRow.get(j - 1) + preRow.get(j));\n }\n row.add(1);\n result.add(row);\n }\n return result;\n }",
"private static Integer[][] createRandomStart(Integer dimension) {\n Integer[][] startmatrix = new Integer[dimension][dimension];\n for (int i = 0; i < dimension; i++) {\n for (int j = 0; j < dimension; j++) {\n startmatrix[i][j] = (int)(Math.random() * 2);\n }\n }\n return startmatrix;\n }",
"public static List<List<Integer>> generate(int numRows){\r\n\t\tList<List<Integer>> list = new ArrayList<List<Integer>>();\r\n\t\tArrayList<Integer> row = new ArrayList<Integer>();\r\n\t\tfor( int i = 0; i < numRows ; ++i ){\r\n\t\t\trow.add(0, 1);\r\n\t\t\tfor( int j = 1; j < row.size()-1; ++j )\r\n\t\t\t\trow.set(j, row.get(j)+row.get(j+1));\r\n\t\t\tlist.add(new ArrayList<Integer>(row));\r\n\t\t}\r\n\t\treturn list;\r\n\t}",
"private double binomeN_I(int n, int i) {\n double ni;\n double a1 = factorial(n);\n double a2 = factorial(i);\n double a3 = factorial(n - i);\n ni = a1 / (a2 * a3);\n return ni;\n }",
"public static double[][] integralMatrix (double[][] in) {\n\t\tint rows = in.length;\n\t\tint cols = in[0].length;\n\t\t\n\t\t\n\t\t// store submatrix sums, indexed by bottom-right corner of sub-matrix.\n\t\tdouble[][] integral = new double[rows][cols];\n\t\t\n\t\t// store column sums, indexed by bottom entry\n\t\tdouble[][] columnSums = new double[rows][cols];\n\t\t\n\t\t// initialize in[0][0]\n\t\tintegral[0][0] = in[0][0];\n\t\tcolumnSums[0][0] = in[0][0];\n\t\t\n\t\t// initialize left edge\n\t\tfor (int i = 1; i < rows; i++) {\n\t\t\tintegral[i][0] = in[i][0] + integral[i-1][0];\n\t\t\tcolumnSums[i][0] = columnSums[i-1][0];\n\t\t}\n\t\t\n\t\t// initialize top edge\n\t\tfor (int j = 1; j < cols; j++) {\n\t\t\tintegral[0][j] = in[0][j] + integral[0][j-1];\n\t\t\tcolumnSums[0][j] = in[0][j];\n\t\t}\n\n\t\tfor (int i = 1; i < rows; i++) {\n\t\t\tfor (int j = 1; j < cols; j++) {\n\t\t\t\tintegral[i][j] = in[i][j] + integral[i][j-1] + columnSums[i-1][j];\n\t\t\t\tcolumnSums[i][j] = in[i][j] + columnSums[i-1][j];\n\t\t\t}\n\t\t}\t\n\t\treturn integral;\n\t}",
"Matrix(BigInteger[][] matrix) {\n this.nrOfRows = matrix.length;\n this.nrOfCols = matrix[0].length;\n this.inner = matrix;\n }",
"public static int[][] buldMatrix(char[] X, char [] Y) {\n\t\t\tint row = X.length+1, col = Y.length+1;\n\t\t\tint mat[][] = new int[row][col]; \n\t\t\tint i=0, j=0;\n\t// first column\n\t\t\tfor (i=0; i<row; i++) mat[i][0]=0;\n\t// first row\n\t\t\tfor (j=0; j<col; j++) mat[0][j]=0;\n\t// Matrix Interior \n\t\t\tfor (i=1; i<row; i++) {\n\t\t\t\tfor (j=1; j<col; j++) {\n\t\t\t\t\tif (X[i-1]==Y[j-1]){\n\t\t\t\t\t\tmat[i][j] = mat[i-1][j-1] + 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tmat[i][j] = Math.max(mat[i-1][j], mat[i][j-1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn mat;\n\t\t}",
"private int[] generate(int[] cells) {\n // Placeholder\n int[] newCells = new int[cells.length];\n\n // Boundary-elements, simply ignoring them..\n for (int x = 1; x < cells.length - 1; x++) {\n\n // Neighborhood\n int left = cells[x - 1];\n int mid = cells[x];\n int right = cells[x + 1];\n\n int newState = next(left, mid, right);\n\n newCells[x] = newState;\n }\n\n return newCells;\n }",
"protected static float[] getBinomialKernelSigmaTwo() {\n double a = 1.f/33300l;\n return new float[]{\n (float) (1l * a), (float) (14l * a), (float) (90l * a),\n (float) (350l * a), (float) (910l * a), (float) (1638l * a),\n (float) (2002l * a), (float) (1430l * a), (float) (0l * a),\n (float) (-1430l * a), (float) (-2002l * a), (float) (-1638l * a),\n (float) (-910l * a), (float) (-350l * a), (float) (-90l * a),\n (float) (-14l * a), (float) (-1l * a)\n };\n }",
"int[][] constructTree(ArrayList<Integer> arr, int n)\n {\n int x = (int)(Math.ceil(Math.log(n)/Math.log(2))); // Height of the tree\n\n int max_size = 2 * (int)Math.pow(2, x) - 1;\n int[][] tree = new int[max_size][4];\n\n build(tree, 0, n - 1, 1, arr);\n return tree;\n }",
"private int[][] initialStateMatrix() {\n return new int[][]{{2,1,-1,3,0,-1},\n {2,-1,-1,3,-1,-1},\n {2,-1,5,4,8,-1},\n {4,-1,-1,-1,-1,-1},\n {4,-1,5,-1,8,-1},\n {7,6,-1,-1,-1,-1},\n {7,-1,-1,-1,-1,-1},\n {7,-1,-1,-1,8,-1},\n {-1,-1,-1,-1,8,-1}};\n }",
"public ArrayList<Integer> obtenerYi(){\n ArrayList<Integer> res = new ArrayList<Integer>();\n int cont;\n \n for (float p:probabilidades){\n cont=0;\n while (Math.pow(base, cont)<1/p)\n cont++;\n res.add(cont);\n }\n return res;\n }",
"public static long binom(int n, int k) {\n if (k > n || n < 0 || k < 0) {\n return 0;\n }\n\n if (bin == null)\n bin = new ArrayList<ArrayList<Long>>();\n\n if (bin.size() <= n) {\n for (int i = bin.size(); i <= n; i++) {\n ArrayList<Long> newList = new ArrayList<Long>();\n bin.add(newList);\n }\n }\n\n if (bin.get(n).size() <= k) {\n for (int i = 0; i <= n; i++) {\n if (bin.get(i).size() <= k && bin.get(i).size() <= i) {\n for (int j = bin.get(i).size(); j <= k && j <= i; j++) {\n bin.get(i).add(Long.valueOf(0));\n }\n }\n }\n }\n\n return recBinom(n, k);\n }",
"static private double[][] initMatrix(double[][] c) {\n final int N = c.length;\n final double value = 1 / Math.sqrt(2.0);\n\n for (int i = 1; i < N; i++) {\n for (int j = 1; j < N; j++) {\n c[i][j] = 1;\n }\n }\n\n for (int i = 0; i < N; i++) {\n c[i][0] = value;\n c[0][i] = value;\n }\n c[0][0] = 0.5;\n return c;\n }",
"public static ArrayList<String> getIntervalName(ArrayList<ArrayList<Integer>> binomialInput)\r\n {\r\n ArrayList<String> pciNameList = new ArrayList<>();\r\n ArrayList<Integer> tmpListPci = new ArrayList<>();\r\n ArrayList<ArrayList<String>> intervalMatrix = generateMatrixBRI();\r\n if(!binomialInput.isEmpty())\r\n {\r\n for(int k=0; k<binomialInput.size(); k++)\r\n {\r\n tmpListPci = binomialInput.get(k);\r\n int PC = tmpListPci.get(0);\r\n int NC = tmpListPci.get(1);\r\n\r\n //System.out.println(\"tmpListPci: \" + tmpListPci);\r\n //System.out.println(\"PC: \" + PC);\r\n //System.out.println(\"NC: \" + NC);\r\n\r\n String intervalValue = intervalMatrix.get(PC).get(NC);\r\n //System.out.println(\"intervalValue: \" + intervalValue);\r\n\r\n pciNameList.add(intervalValue);\r\n }\r\n }\r\n return pciNameList;\r\n }",
"protected static float[] getBinomialKernelSigmaOne() {\n float a = 1.f/16.f;\n return new float[]{2*a, 4*a, 0, -4*a, -2*a};\n }",
"static int[][] packU(int n, int[] from, int[] to) {\n// this part of code is taken from \"uwi\" submission of codechef problem KNODES \n int[][] g = new int[n][];\n int[] p = new int[n];\n for (int f : from) {\n p[f]++;\n }\n for (int t : to) {\n p[t]++;\n }\n for (int i = 0; i < n; i++) {\n g[i] = new int[p[i]];\n }\n for (int i = 0; i < from.length; i++) {\n g[from[i]][--p[from[i]]] = to[i];\n g[to[i]][--p[to[i]]] = from[i];\n }\n return g;\n }",
"@Override\n\tpublic void setMatrix(int n) {\n\t\tthis.baris = DeretAngka.getLastTriAngluar(n);\n\t\tthis.kolom = n*n;\n\t\tthis.matrix = new String[this.baris][this.kolom];\n\t\t//int[] bil1 = {1,2,3,4};\n\t\t//int[] bil2 = {1,3,5,7};\n\t\t//int[] bil3 = {0,1,2,3};\n\t\tint[] bil4 = DeretAngka.getTriAngluar(n);//{0,1,3,6};\n\t\tint[] bil5 = DeretAngka.getPangkat(n);//{0,1,4,9};\n\t\tint addBangun = 1;\n\t\tint addGanjil = 1;\n\t\tfor(int bangun =0; bangun < n; bangun++) {\n\t\t\t//int pangkat = bangun * bangun; //0*0,1*1,2*2,3*3\n\t\t\tfor (int i = 0; i < addBangun; i++) {\n\t\t\t\tfor (int j = 0; j < addGanjil; j++) {\n\t\t\t\t\tif(i+j >= bangun && j - i <= bangun) {\n\t\t\t\t\t\tthis.matrix[i + bil4[bangun]][j+bil5[bangun]] = \"*\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\taddBangun = addBangun + 1;\n\t\t\taddGanjil = addGanjil + 2;\n\t\t}\n\t\t\n\t\t\n//\t\tfor (int i = 0; i < bil1[0]; i++) {\n//\t\t\tfor (int j = 0; j < bil2[0]; j++) {\n//\t\t\t\tif(i+j >= 0 && j - i <= 0) {\n//\t\t\t\t\tthis.matrix[i+0][j+0] = \"*\";\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n//\t\tfor (int i = 0; i < bil1[1]; i++) {\n//\t\t\tfor (int j = 0; j < bil2[1]; j++) {\n//\t\t\t\tif(i+j >= 1 && j - i <= 1) {\n//\t\t\t\t\tthis.matrix[i+1][j+1] = \"*\";\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n//\t\tfor (int i = 0; i < bil1[2]; i++) {\n//\t\t\tfor (int j = 0; j < bil2[2]; j++) {\n//\t\t\t\tif(i+j >= 2 && j - i <= 2) {\n//\t\t\t\t\tthis.matrix[i+3][j+4] = \"*\";\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n\t\t\n\t}",
"private int[][] initGraph() {\r\n\t\tint[][] graph = new int[8][8];\r\n\t\tgraph[0] = new int[] { 0, 1, 1, MAX, MAX, MAX, MAX, MAX };\r\n\t\tgraph[1] = new int[] { 1, 0, MAX, 1, 1, MAX, MAX, MAX };\r\n\t\tgraph[2] = new int[] { 1, MAX, 0, MAX, MAX, 1, 1, MAX };\r\n\t\tgraph[3] = new int[] { MAX, 1, MAX, 0, MAX, MAX, MAX, 1 };\r\n\t\tgraph[4] = new int[] { MAX, 1, MAX, MAX, 0, MAX, MAX, 1 };\r\n\t\tgraph[5] = new int[] { MAX, MAX, 1, MAX, MAX, 0, 1, MAX };\r\n\t\tgraph[6] = new int[] { MAX, MAX, 1, MAX, MAX, 1, 0, MAX };\r\n\t\tgraph[7] = new int[] { MAX, MAX, MAX, 1, 1, MAX, MAX, 0 };\r\n\t\treturn graph;\r\n\t}",
"public int binom(int n, int k) {\n isBinomValuesValid(n,k);\n if(isZeroOrEqual(n,k))\n return coeffs[n][k] = 1;\n else\n return coeffs[n][k] = coeffs[n - 1][k - 1] + coeffs[n - 1][k];\n }",
"public static int[][] generate(int dimension){\n int[][] matrix = new int[dimension][dimension];\n for (int i = 0; i < dimension; i++) {\n for (int j = 0; j < dimension; j++) {\n matrix[i][j] = r.nextInt(10);\n }\n }\n return matrix;\n }",
"public static Double[] simulerBinomiale(Double nbRep, Double proba, Double repetition) {\n\t\tBinomiale loi = new Binomiale(proba, nbRep, repetition);\n\t\treturn loi.simuler();\n\t}",
"public static int[][] task9_spiralGenerate(int n) {\n\t\tif (n <= 0) {\n\t\t\treturn new int[][] {};\n\t\t}\n\t\tint rLen = n;\n\t\tint cLen = n;\n\t\tint[][] matrix = new int[n][n];\n\t\tint leftB = 0, rightB = cLen - 1;\n\t\tint upperB = 0, lowerB = rLen - 1;\n\t\tint counter = 1;\n\t\twhile (true) {\n\t\t\tfor (int j = leftB; j <= rightB; j++) {\n\t\t\t\tmatrix[upperB][j] = counter++;\n\t\t\t}\n\t\t\tupperB++;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = upperB; i <= lowerB; i++) {\n\t\t\t\tmatrix[i][rightB] = counter++;\n\t\t\t}\n\t\t\trightB--;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int j = rightB; j >= leftB; j--) {\n\t\t\t\tmatrix[lowerB][j] = counter++;\n\t\t\t}\n\t\t\tlowerB--;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = lowerB; i >= upperB; i--) {\n\t\t\t\tmatrix[i][leftB] = counter++;\n\t\t\t}\n\t\t\tleftB++;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn matrix;\n\t }",
"public static long[][] tabulation(int n, List<Long> c) {\n int type = c.size();\n int[] intC = new int[type];\n for (int i = 0; i < type; i++) {\n intC[i] = c.get(i).intValue();\n }\n\n long[][] table = new long[n + 1][type];\n for (int i = 0; i < n + 1; i++) {\n for (int j = 0; j < type; j++) {\n if (i == 0) {\n table[0][j] = 1; // only one way : not using coin\n } else {\n long excludeNewCoin = 0, includeNewCoin = 0;\n if (j != 0) {\n excludeNewCoin = table[i][j - 1];\n }\n if (i - intC[j] >= 0) {\n includeNewCoin = table[i - intC[j]][j];\n }\n table[i][j] = excludeNewCoin + includeNewCoin;\n }\n }\n }\n return table;\n }",
"public double[][] getHilbertMatrix(int size) {\n\t\tdouble[][] identityMatrix = new double[size][size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tfor (int j = 0; j < size; j++) {\n\t\t\t\tdouble value = (i + 1) + (j + 1) - 1;\n\t\t\t\tidentityMatrix[i][j] = 1 / value;\n\t\t\t}\n\t\t}\n\t\treturn identityMatrix;\n\t}",
"public static BigFraction[][] randomInt(int m, int n) {\n BigFraction[][] C = new BigFraction[m][n];\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++)\n C[i][j] = new BigFraction(Math.round(Math.random() * 20) - 10);// * 256;\n return C;\n }",
"public int[][] initMatrix(int n)\n {\n\t// create an empty 2d array and return it! Simple stuff here.\n\t int[][] retMatrix = new int[n][n];\n\t return retMatrix;\n }",
"public static BinaryMatrix fromImage(BufferedImage image){\n\t\tint height=image.getHeight();\n\t\tint width=image.getWidth();\n\t\t\n\t\tboolean[][] array=new boolean[height][width];\n\t\tfor(int h=0; h<height; h++){\n\t\t\tfor(int w=0; w<width; w++){\n\t\t\t\tif(image.getRGB(w, h)==Constants.COLOR_BLACK)\n\t\t\t\t\tarray[h][w]=true;\n\t\t\t\telse\n\t\t\t\t\tarray[h][w]=false;\n\t\t\t}\n\t\t}\n\t\treturn new BinaryMatrix(array);\n\t}",
"public static ArrayList<ArrayList<Integer>> generate(int numRows) {\n ArrayList<ArrayList<Integer>> rst = new ArrayList<ArrayList<Integer>>(); \n ArrayList<Integer> curRow;\n if ( 0 == numRows) return rst;\n curRow = new ArrayList<Integer>();\n curRow.add(1);\n rst.add(curRow);\n if (1 == numRows) return rst;\n \n curRow = new ArrayList<Integer>();\n curRow.add(1);\n curRow.add(1);\n rst.add(curRow);\n if (2 == numRows) return rst;\n ArrayList<Integer> lastRow = curRow;\n curRow = new ArrayList<Integer>();\n \n for (int i=3;i<=numRows;i++) {\n curRow.add(1);\n \tfor (int j=1; j<i-1; j++) \n \t\tcurRow.add(lastRow.get(j-1) + lastRow.get(j));\n \tcurRow.add(1);\n \trst.add(curRow);\n \tlastRow = curRow;\n \tcurRow = new ArrayList<Integer>(); \n }\n return rst;\n }",
"private void buildMatrix() {\n\n int totalnumber=this.patents.size()*this.patents.size();\n\n\n\n int currentnumber=0;\n\n\n for(int i=0;i<this.patents.size();i++) {\n ArrayList<Double> temp_a=new ArrayList<>();\n for (int j=0;j<this.patents.size();j++) {\n if (i==j) temp_a.add(0.0); else if (i<j)\n {\n double temp = distance.distance(this.patents.get(i), this.patents.get(j));\n temp = (new BigDecimal(temp).setScale(2, RoundingMode.UP)).doubleValue();\n temp_a.add(temp);\n\n\n // simMatrix.get(i).set(j, temp);\n // simMatrix.get(j).set(i, temp);\n } else {\n temp_a.add(simMatrix.get(j).get(i));\n }\n currentnumber++;\n System.out.print(\"\\r\"+ProgressBar.barString((int)((currentnumber*100/totalnumber)))+\" \"+currentnumber);\n\n }\n simMatrix.add(temp_a);\n }\n System.out.println();\n\n }",
"public int[][] toMatrix() \n {\n \tint[][] matrix = new int[2][7];\n \tfor (int i = 0; i < 14; ++i)\n \t\tmatrix[i/7][i%7] = state[i];\n \treturn matrix;\n }",
"private static BigInteger[][] power(BigInteger[][] base, long n)\n {\n if (n == 0 || n == 1) return atom;\n \n BigInteger fib[][] = power(base, n/2);\n fib = Fibonacci.multiply(fib, fib);\n if (n%2 == 1) fib = Fibonacci.multiply(fib, base);\n \n return fib;\n }",
"public static Matrix identity(int n) {\n\t\tComplexNumber[][] rows = new ComplexNumber[n][];\n\t\tfor (int row = 0; row < n; row++) {\n\t\t\trows[row] = new ComplexNumber[n];\n\t\t\tfor (int col = 0; col < n; col++) {\n\t\t\t\tint term = (row == col) ? 1 : 0;\n\t\t\t\trows[row][col] = new ComplexNumber(term);\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(rows);\n\t}",
"private Double[][] makeAdjacencyMatrix()\n {\n Double[][] matrix = new Double[this.numIntxns][this.numIntxns];\n\n for (int i = 0; i < this.numIntxns; i++)\n {\n for (int j = 0; j < this.numIntxns; j++)\n {\n // if the indices are the same the distance is 0.0.\n // otherwise, it's infinite.\n matrix[i][j] = (i != j) ? null : 0.0;\n }\n }\n\n // populate the matrix\n for (int intxn = 0; intxn < this.numIntxns; intxn++)\n {\n for (Road road : this.roads)\n {\n if (intxn == road.start())\n {\n matrix[intxn][road.end()] = road.length();\n matrix[road.end()][intxn] = road.length();\n }\n }\n }\n\n return matrix;\n }",
"public Matrix(int nrOfRows, int nrOfCols) {\n this.nrOfRows = nrOfRows;\n this.nrOfCols = nrOfCols;\n inner = new BigInteger[nrOfRows][nrOfCols];\n }",
"public SimilarityMatrix<T> makeBinary(double threshold) {\n \n for(T first : getFirstDimension()) {\n \n for(T second : getMatches(first)) {\n \n if(get(first, second)>threshold) {\n set(first, second, 1.0);\n } else {\n set(first, second, 0.0);\n }\n \n }\n \n }\n \n return this;\n }",
"public void generateB(){\n\t\t\tfor(int i = 0;i < w.length;i++){\n\t\t\t\tb[i] = w[i].multiply(r).mod(q);\n\t\t\t}\n\t}",
"public Matrix P0 ();",
"private void generateMonomials(int[] monomial, int shift) {\n\t\tint[] newMono = Arrays.copyOf(monomial, monomial.length);\n\t\tint dimension;\n\n\t\tfor(int i = 0; i < relationMap.get(shift+1); i++) {\t\t\t\n\t\t\tif(shift != N)\n\t\t\t\tgenerateMonomials(newMono, shift+1);\n\t\t\telse {\n\t\t\t\tdimension = Tools.milnorDimension(newMono);\n\t\t\t\tif(allMonomials.get(dimension) == null) {\n\t\t\t\t\tList<int[]> temp = new ArrayList<int[]>();\n\t\t\t\t\ttemp.add(DualSteenrod.applyRelations(newMono, relationMap));\n\t\t\t\t\tallMonomials.put(dimension, temp);\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t\tallMonomials.get(dimension).add(DualSteenrod.applyRelations(newMono, relationMap));\t\t\n\t\t\t}\n\t\t\tnewMono[2*shift + 1]++;\n\t\t}\n\t}",
"private int[] buildMatrix(Vector<Integer> first, Vector<Integer> second) {\n \tint[] res = new int[4];\n \tint fValue;\n \tint sValue;\n \t\n \tfor (int i = 0; i < first.size(); ++i) {\n \t\tfValue = first.get(i);\n \t\tsValue = second.get(i);\n \t\t\n \t\tif (fValue == sValue && fValue == 1) {\n \t\t\tres[0]++;\n \t\t}\n \t\telse if (fValue == sValue && fValue == 0) {\n \t\t\tres[3]++;\n \t\t}\n \t\telse if (fValue == 1) {\n \t\t\tres[1]++;\n \t\t}\n \t\telse {\n \t\t\tres[2]++;\n \t\t}\n \t}\n \t\n \treturn res;\n }",
"public static short[][] constructIdentityMtx(int dimension) {\n \n short[][] rep = new short[dimension][dimension];\n\n for (int i = 0; i < dimension; i++) {\n for (int j = 0; j < dimension; j++) {\n if (i == j) {\n rep[i][j] = 1;\n } else {\n rep[i][j] = 0;\n }\n }\n }\n return rep;\n }",
"public NumericalDistributionModel( Integer binCount, Double span ){\n\t\tinterval = span / binCount.doubleValue();\n\t\tlog.info( \"bin-interval is {}\", interval );\n\t\thistogram = new Integer[ binCount ];\n\t\t\n\t\tfor( int i = 0; i < histogram.length; i++ )\n\t\t\thistogram[i] = 0;\n\t}",
"Matrix(int rows, int columns) {\n try {\n if (rows < 1 || columns < 1) {\n throw zeroSize;\n }\n this.rows = rows;\n this.columns = columns;\n matrix = new int[rows][columns];\n\n for (int rw = 0; rw < rows; rw++) {\n for (int col = 0; col < columns; col++) {\n matrix[rw][col] = (int) Math.floor(Math.random() * 100);\n }\n }\n }\n catch (Throwable zeroSize) {\n zeroSize.printStackTrace();\n }\n\n }",
"public static byte[] getGenotipo(int f,int nB){\n byte g[] = new byte[nB];\n int aux,nf = f;\n int cont = 0;\n for(int i =nB-1; i>=0;i--){\n aux = (int) Math.pow(2, i);\n if(nf >= aux){\n nf = nf - aux;\n g[cont] = 1;\n }\n else\n g[cont] = 0;\n cont ++;\n }\n return g;\n }",
"private static Matrix makeXMat(int nDataPoints, int nTerms, Vector xV){\n Matrix matrix = new Matrix(nDataPoints, nTerms);\n for (int row = 1; row <= nDataPoints; row++){\n matrix.putValue(row,1, new BigDecimal(1.0));\n for (int col = 2; col <= nTerms; col++)\n matrix.putValue(row , col, \n matrix.getValue(row, col - 1).multiply(\n xV.getValue(row)));\n }\n return matrix;\n }",
"static int superSeq(String X, String Y, int m, int n)\n {\n int[][] dp = new int[m + 1][n + 1];\n\n // Fill table in bottom up manner\n for (int i = 0; i <= m; i++) {\n for (int j = 0; j <= n; j++) {\n // Below steps follow above recurrence\n if (i == 0)\n dp[i][j] = j;\n else if (j == 0)\n dp[i][j] = i;\n else if (X.charAt(i - 1) == Y.charAt(j - 1))\n dp[i][j] = 1 + dp[i - 1][j - 1];\n else\n dp[i][j] = 1\n + Math.min(dp[i - 1][j],\n dp[i][j - 1]);\n }\n }\n\n return dp[m][n];\n }",
"public static int[][] nhapMatrix() {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Nhap so dong: \");\n int m = scanner.nextInt();\n System.out.println(\"Nhap so cot: \");\n int n = scanner.nextInt();\n int[][] matrix = new int[m][n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n matrix[i][j] = scanner.nextInt();\n }\n }\n return matrix;\n }",
"protected static float[] getBinomialKernelSigmaOneSQRT2() {\n float a = 1.f/256.f;\n return new float[]{a*3, a*12, a*27, a*28,\n 0, -28*a, -27*a, -12*a, -3*a};\n }",
"public int[][] getAdjacencyMatrix();",
"static int[][] packU(int n, int[] from, int[] to) {\n int[][] g = new int[n][];\n int[] p = new int[n];\n for (int f : from) {\n p[f]++;\n }\n for (int t : to) {\n p[t]++;\n }\n for (int i = 0; i < n; i++) {\n g[i] = new int[p[i]];\n }\n for (int i = 0; i < from.length; i++) {\n g[from[i]][--p[from[i]]] = to[i];\n g[to[i]][--p[to[i]]] = from[i];\n }\n return g;\n }",
"private static void iterationArr(int n) {\n int[][] ints = new int[n][n];\n ints[0][0] = 1;\n for (int i = 0; i < n - 1; i++) {\n ints[i + 1][0] = ints[i][0] + i + 1;\n }\n for (int i = 1; i < n; i++) {//表列\n for (int j = 0; j < n - 1; j++) {//表行\n ints[j][i] = ints[j + 1][i - 1] + 1;\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n - i; j++) {\n System.out.printf(ints[i][j] + \"\\t\");\n }\n System.out.println();\n }\n }",
"public static int[][] raggedArray(){\n int n=(int)(Math.random()*11);\n n+=10; \n //this randomly assigns n to between 10 and 20\n int[][] ragged=new int[n][];\n //initialize this array with n first components\n //forloop to assign each inner array a length\n for(int i=0; i<n; i++){\n int m=(int)(Math.random()*11);\n m+=10; //m is between 10 and 20\n ragged[i]=new int[m];\n //another for loop to assign values\n for(int k=0; k<m; k++){\n int val=(int)(Math.random()*1001);\n int sign=(int)(Math.random()*2);\n if(sign==0){\n \n }\n else{\n val*=-1;\n //makes it 50/50 to be negative\n }\n ragged[i][k]=val;\n //assigns value to that spot of array\n }\n }\n return ragged;\n }",
"short[][] productionTable();",
"public static ArrayList<ArrayList<Integer>> getMelodicBinomialFromChord(TreeMap<Integer,ArrayList<String>> inputMap)\r\n {\r\n ArrayList<String> previousValueList = new ArrayList<>();\r\n ArrayList<String> nextValueList = new ArrayList<>();\r\n \r\n ArrayList<String> permutationList = new ArrayList<>();\r\n ArrayList<Integer> singleBinomialPrev = new ArrayList<>();\r\n ArrayList<Integer> singleBinomialNext = new ArrayList<>();\r\n \r\n TreeMap<String,ArrayList<Integer>> binomialMap = new TreeMap<>();\r\n \r\n for(int k=inputMap.size()-1; k>0; k--)\r\n { \r\n previousValueList = inputMap.get(k);\r\n nextValueList = inputMap.get(k-1);\r\n \r\n if(previousValueList.size() > 0 && nextValueList.size() > 0)\r\n {\r\n int w=0;\r\n int j=0;\r\n \r\n for(w=0; w<previousValueList.size(); w++)\r\n {\r\n for(j=0; j<nextValueList.size(); j++)\r\n {\r\n int PC_prev = 0;\r\n int NC_prev = 0;\r\n int PC_next = 0;\r\n int NC_next = 0;\r\n \r\n singleBinomialPrev = new ArrayList<>();\r\n singleBinomialNext = new ArrayList<>();\r\n \r\n String singlePermutation = previousValueList.get(w) + \":\" + nextValueList.get(j);\r\n String notePrev = previousValueList.get(w);\r\n String noteNext = nextValueList.get(j);\r\n //System.out.println(\"Permutazioni \" + previousValueList.get(w) + \"*\" + nextValueList.get(j));\r\n \r\n PC_prev = getPitchClass(previousValueList.get(w).substring(0, previousValueList.get(w).length()-1));\r\n NC_prev = getNameClass(previousValueList.get(w).substring(0, 1));\r\n singleBinomialPrev.add(PC_prev);\r\n singleBinomialPrev.add(NC_prev);\r\n \r\n PC_next = getPitchClass(nextValueList.get(j).substring(0, nextValueList.get(j).length()-1));\r\n NC_next = getNameClass(nextValueList.get(j).substring(0, 1));\r\n singleBinomialNext.add(PC_next);\r\n singleBinomialNext.add(NC_next);\r\n \r\n if((notePrev != null && !\"\".equals(notePrev)) && singleBinomialPrev.size() > 0)\r\n binomialMap.put(notePrev, singleBinomialPrev);\r\n \r\n if((noteNext != null && !\"\".equals(noteNext)) && singleBinomialPrev.size() > 0)\r\n binomialMap.put(noteNext, singleBinomialNext);\r\n \r\n if(singlePermutation != null && !\"\".equals(singlePermutation))\r\n permutationList.add(singlePermutation);\r\n }\r\n }\r\n }\r\n }\r\n //System.out.println(\"permutationList \" + permutationList);\r\n //System.out.println(\"permutationList Size \" + permutationList.size());\r\n //System.out.println(\"binomialMap \" + binomialMap);\r\n //System.out.println(\"binomialMap Size \" + binomialMap.size());\r\n return calculateInterval(permutationList, binomialMap); \r\n }",
"public double[] jacobi_iter(double[] x, double tolerance, int M) {\n double[][] sContent = {{1.0, 0, 0}, {0, 1.0, 0}, {0, 0, 1.0}};\n Matrix s = new Matrix(sContent);\n\n double[][] tContent = {{0, -0.5, -0.33333333}, {-0.5, 0, -0.25}, {-0.3333333333, -0.25, 0}};\n Matrix t = new Matrix(tContent);\n\n //keep track of the number of iterations\n\n int counter = 0;\n double tol = 10000; //initial\n double[] tempXVector;\n Matrix firstFirst;\n double[] firstPart; //s^-1(-T)(Xn)\n double[] secondPart; //s^-1(b)\n String output = \"\";\n\n double tempXVectorNorm;\n double xVectorNorm;\n\n for (double elem : x) {\n output += elem + \", \";\n }\n System.out.println(\"x(0): \" + output);\n while (tol > tolerance && counter < M) {\n //perform the jacobi iterations\n firstFirst = s.multiply(t);\n firstPart = Matrix.matrixVectorMultiply(firstFirst, x);\n secondPart = Matrix.matrixVectorMultiply(s, bVector);\n tempXVector = Matrix.plus(firstPart, secondPart);\n\n //find norm of vectors and then subtract the\n tempXVectorNorm = Matrix.norm(tempXVector);\n xVectorNorm = Matrix.norm(x);\n tol = tempXVectorNorm - xVectorNorm;\n tol = Math.abs(tol);\n counter++;\n numOfIterations++;\n x = tempXVector;\n }\n\n output = \"\";\n if (counter == M) {\n System.out.println(\"Jacobi Output for x(N): null\");\n System.out.println(\"Too many iterations without reaching a accurate answer.\");\n return null;\n }\n for (double elem : x) {\n output += elem + \", \";\n }\n System.out.println(\"Jacobi Output for x(N): \" + output);\n System.out.println(\"Number of Iterations using Jacobi Algorithm: \" + counter + \"\\n\");\n return x;\n }"
] | [
"0.63557255",
"0.6006382",
"0.6005081",
"0.5908175",
"0.5781715",
"0.5765494",
"0.5765189",
"0.5623905",
"0.55964357",
"0.55800134",
"0.5578839",
"0.55692244",
"0.5496048",
"0.54931784",
"0.54738337",
"0.54497415",
"0.54369605",
"0.5408621",
"0.53907907",
"0.53673196",
"0.5342474",
"0.53362894",
"0.5307677",
"0.5282712",
"0.527514",
"0.526889",
"0.5257369",
"0.5244862",
"0.5240057",
"0.52282",
"0.5225979",
"0.5218069",
"0.5217587",
"0.52092004",
"0.5190068",
"0.5187012",
"0.51823646",
"0.51502377",
"0.514871",
"0.5143562",
"0.5142458",
"0.5135752",
"0.51215905",
"0.5118889",
"0.5102895",
"0.510227",
"0.5094053",
"0.508233",
"0.50803316",
"0.5054613",
"0.50471187",
"0.5044217",
"0.50410485",
"0.5032212",
"0.5031657",
"0.5028436",
"0.5027794",
"0.50277317",
"0.5026101",
"0.5023511",
"0.5018513",
"0.50152624",
"0.50121874",
"0.5007838",
"0.500554",
"0.49974677",
"0.4989507",
"0.4987655",
"0.49739206",
"0.49728948",
"0.49443436",
"0.49439144",
"0.49435312",
"0.4930954",
"0.4912923",
"0.4900502",
"0.48981377",
"0.48768613",
"0.48207328",
"0.48143792",
"0.48074993",
"0.47999787",
"0.4799428",
"0.47957408",
"0.47954896",
"0.47939447",
"0.47882864",
"0.47707567",
"0.47698674",
"0.47511616",
"0.47463974",
"0.4742211",
"0.47393864",
"0.47336805",
"0.4729994",
"0.47179013",
"0.47178847",
"0.4717802",
"0.4706344",
"0.47022563"
] | 0.64830655 | 0 |
Method used to catch a screenshot of generated graph and save copy in jpg or png format | public static void saveScreenShoot(JButton inputButton, JPanel inputPanel)
{
inputButton.addActionListener((ActionEvent e) ->
{
JFileChooser fileChooser = new JFileChooser();
fileChooser.setFileFilter(new FileNameExtensionFilter("png", "png"));
fileChooser.setFileFilter(new FileNameExtensionFilter("jpg", "jpg"));
String selectedExtension = fileChooser.getFileFilter().getDescription();
BufferedImage bufImage = new BufferedImage(inputPanel.getWidth(), inputPanel.getHeight(),BufferedImage.TYPE_INT_RGB);
inputPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));
inputButton.setVisible(false);
inputPanel.paint(bufImage.getGraphics());
int option = fileChooser.showSaveDialog(null);
if(option == JFileChooser.APPROVE_OPTION)
{
BufferedImage img = bufImage;
try
{
ImageIO.write(img, selectedExtension, new File(fileChooser.getSelectedFile().getAbsolutePath()+"."+selectedExtension));
inputPanel.setBorder(BorderFactory.createEmptyBorder());
inputButton.setVisible(true);
}
catch (IOException ex)
{
System.out.println(ex.getMessage());
}
}
else
{
inputPanel.setBorder(BorderFactory.createEmptyBorder());
inputButton.setVisible(true);
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void takeSnapShot(File fileToSave) {\n try {\n /*Construct a new BufferedImage*/\n BufferedImage exportImage = new BufferedImage(this.getSize().width,\n this.getSize().height,\n BufferedImage.TYPE_INT_RGB);\n\n \n /*Get the graphics from JPanel, use paint()*/\n this.paint(exportImage.createGraphics());\n \n fileToSave.createNewFile();\n ImageIO.write(exportImage, \"PNG\", fileToSave);\n } catch(Exception exe){\n System.out.println(\"DrawCanvas.java - Exception\");\n }//catch\n}",
"public void saveScreenshot() {\n if (ensureSDCardAccess()) {\n Bitmap bitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n doDraw(1, canvas);\n File file = new File(mScreenshotPath + \"/\" + System.currentTimeMillis() + \".jpg\");\n FileOutputStream fos;\n try {\n fos = new FileOutputStream(file);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, fos);\n fos.close();\n } catch (FileNotFoundException e) {\n Log.e(\"Panel\", \"FileNotFoundException\", e);\n } catch (IOException e) {\n Log.e(\"Panel\", \"IOEception\", e);\n }\n }\n }",
"public void takeScreenShot() {\r\n \t\tgraph.clearSelection();\r\n \t\tgraph.showScreenShotDialog();\r\n \t}",
"public void screenShot(String data) throws IOException {\nTakesScreenshot screenShot=(TakesScreenshot) driver;\nFile screenshotAs = screenShot.getScreenshotAs(OutputType.FILE);\nFile file=new File(System.getProperty(\"user.dir\")+\"\\\\target\\\\\"+data+\".png\");\nFileUtils.copyFile(screenshotAs, file);\n\n}",
"void takesScreenshot();",
"@Test\n\tprivate void takeScreenshot() throws IOException {\n\t\tFile screenshot = ((TakesScreenshot) this.driver).getScreenshotAs(OutputType.FILE);\n\t\tString fileName = this.getTimestamp() + \".png\";\n\t\tFileUtils.copyFile(screenshot, new File(fileName));\n\n\t}",
"private void screenshot() {\n final JComponent active = this.active;\n if (active != null && active.isValid()) {\n final BufferedImage image = new BufferedImage(active.getWidth(), active.getHeight(), BufferedImage.TYPE_INT_RGB);\n final Graphics2D handler = image.createGraphics();\n active.print(handler);\n handler.dispose();\n File file = new File(Preferences.userNodeForPackage(DesktopPane.class).get(SCREENSHOT_DIRECTORY_PREFS, \".\"));\n file = new File(file, getTitle(active.getClass()) + \".png\");\n try {\n assertTrue(ImageIO.write(image, \"png\", file));\n file = file.getParentFile();\n Desktop.getDesktop().open(file);\n } catch (IOException e) {\n JOptionPane.showInternalMessageDialog(active, e.getLocalizedMessage(),\n e.getClass().getSimpleName(), JOptionPane.ERROR_MESSAGE);\n }\n } else {\n JOptionPane.showInternalMessageDialog(this, \"No active window.\", \"Screenshot\", JOptionPane.WARNING_MESSAGE);\n }\n }",
"public static String createScreenshot(WebDriver driver) {\r\n\t \r\n\t UUID uuid = UUID.randomUUID();\r\n\t File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\t try {\r\n\t org.apache.commons.io.FileUtils.copyFile(scrFile, new File(\"/img\" + uuid + \".png\"));\r\n\t System.out.println(\"/img/screen\" + uuid + \".png\");\r\n\t } catch (IOException e) {\r\n\t System.out.println(\"Error while generating screenshot:\\n\" + e.toString());\r\n\t }\r\n\t return \"/img\" + uuid + \".png\";\r\n\t}",
"public void takeScreenShot(){\n\t\tDate d=new Date();\r\n\t\tString screenshotFile=d.toString().replace(\":\", \"_\").replace(\" \", \"_\")+\".png\";\r\n\t\t// store screenshot in that file\r\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\t\ttry {\r\n\t\t\tFileUtils.copyFile(scrFile, new File(System.getProperty(\"user.dir\")+\"//screenshots//\"+screenshotFile));\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catcsh block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//put screenshot file in reports\r\n\t\ttest.log(LogStatus.INFO,\"Screenshot-> \"+ test.addScreenCapture(System.getProperty(\"user.dir\")+\"//screenshots//\"+screenshotFile));\r\n\t\t\r\n\t}",
"public static String getScreenshot() {\n TakesScreenshot screenshot = (TakesScreenshot) WebDriverBase.driver;\n File src = screenshot.getScreenshotAs(OutputType.FILE);\n String path = System.getProperty(\"user.dir\") + File.separator + \"target\" + File.separator + \"report\" + File.separator + System.currentTimeMillis() + \".png\";\n System.out.println(path);\n File dest = new File(path);\n try {\n FileUtils.copyFile(src, dest);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return path;\n }",
"@After\t\n public void takeScreenShot() {\n File scrFile = ((TakesScreenshot)getDriver()).getScreenshotAs(OutputType.FILE);\n // now save the screenshot to a file some place\n try {\n\t\t\tFileUtils.copyFile(scrFile, new File(\"c:\\\\tmp\\\\TC_EditAppAddNewApiSTTC.png\"));\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n }",
"public void screenshot() {\n\t\tRemoteWebDriver rwd = ((RemoteWebDriver) web.driver);\r\n\t\ttry {\r\n\t\t\trwd.getCommandExecutor().execute(new Command(rwd.getSessionId(), DriverCommand.ELEMENT_SCREENSHOT));\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.reportStackTrace(e);\r\n\t\t}\r\n\r\n\t}",
"public static void getScreenShot(String description, WebDriver driver) throws IOException {\n\t\t DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd, HH.mm.ss\");\n\t\t File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t String outputFile = Common.outputFileDir + description + \" (\" + dateFormat.format(new Date()) + \").png\";\n\t\t fileWriterPrinter(outputFile);\n\t\t FileUtils.copyFile(scrFile, new File(outputFile));\n\t\t }",
"@Attachment(value = \"Page screenshot {fileWithPath}\", type = \"image/png\")\n protected byte[] takeSnapShot(String fileWithPath){\n try{\n TakesScreenshot scrShot =((TakesScreenshot)driver);\n\n File SrcFile=scrShot.getScreenshotAs(OutputType.FILE);\n\n File DestFile=new File(\"./target/pictures/\"+ fileWithPath);\n\n FileUtils.copyFile(SrcFile, DestFile);\n\n return scrShot.getScreenshotAs(OutputType.BYTES);\n\n }catch(WebDriverException e){\n e.printStackTrace(); \n\n }catch(Exception e){\n e.printStackTrace(); \n }\n return null; \n }",
"private void captureScreen(String reason) throws Exception {\n File file;\n try {\n file = new File(getWorkDirPath() + \"/dump.png\");\n file.getParentFile().mkdirs();\n file.createNewFile();\n } catch(IOException e) { throw new Exception(\"Error: Can't create dump file.\"); }\n PNGEncoder.captureScreen(file.getAbsolutePath());\n throw new Exception(reason);\n }",
"public String getScreenshot(WebDriver driver) {\nTakesScreenshot ts= (TakesScreenshot)driver;\n\n//This gives screenshot in the form of file\nFile source=ts.getScreenshotAs(OutputType.FILE);\n\n//RETURNS path in user directory in the screenshot folder which is stored in \"path\" in the form of string\nString path= System.getProperty(\"user.dir\")+\"/Screenshot/\"+System.currentTimeMillis()+\".png\";\n\n//The path is returned to vaiable destination\nFile destination=new File(path);\n\ntry {\nFileUtils.copyFile(source,destination );\n} catch (IOException e) {\n// TODO Auto-generated catch block\nSystem.out.println(\"Capture Failed\" + e.getMessage());\n}\nreturn path;\n}",
"public void takeScreenShot() {\n\t\t destDir = \"screenshots\";\n\t\t // Capture screenshot.\n\t\t File scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\t\t // Set date format to set It as screenshot file name.\n\t\t dateFormat = new SimpleDateFormat(\"dd-MMM-yyyy__hh_mm_ssaa\");\n\t\t // Create folder under project with name \"screenshots\" provided to destDir.\n\t\t new File(destDir).mkdirs();\n\t\t // Set file name using current date time.\n\t\t String destFile = dateFormat.format(new Date()) + \".png\";\n\n\t\t try {\n\t\t // Copy paste file at destination folder location\n\t\t FileUtils.copyFile(scrFile, new File(destDir + \"/\" + destFile));\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\n}",
"public Bitmap makeScreenshot() {\n renderer.setScreenshot();\n requestRender();\n return renderer.getLastScreenshot();\n }",
"public static void screenshot() throws IOException {\n\tFile src = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\n\t// copy to project location\n\tFileUtils.copyFile(src,\n\t\t\tnew File(System.getProperty(\"user.dir\") + \"\\\\src\\\\\" + \"screenshot_\" + timeStamp() + \".png\"));\n\n}",
"public static void getScreenShot(StackTraceElement l, String description, WebDriver driver) throws IOException {\n\t\t DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd, HH.mm.ss\");\n\t\t File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t String packageNameOnly = l.getClassName().substring(0, l.getClassName().lastIndexOf(\".\"));\n\t\t String classNameOnly = l.getClassName().substring(1 + l.getClassName().lastIndexOf(\".\"), l.getClassName().length());\n\t\t String screenshotName = classNameOnly + \".\" + l.getMethodName() + \", \" + description +\", line # \" + l.getLineNumber();\n\t\t String outputFile = Common.outputFileDir + packageNameOnly + File.separator + classNameOnly + File.separator + screenshotName + \" (\" + dateFormat.format(new Date()) + \").png\";\n\t\t fileWriterPrinter(outputFile);\n\t\t FileUtils.copyFile(scrFile, new File(outputFile));\n\t\t }",
"public void takescreenshot() throws IOException {\n\t\tString pwd = System.getProperty(\"user.dir\");\n\t\tFile sFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(sFile, new File(pwd + \"\\\\Output_screen.jpg\"));\n\t}",
"public static void getscreenshotAs(WebDriver driver) throws IOException {\n\t\tdriver.get(\"https://www.rahulshettyacademy.com/AutomationPractice/\");\n\t\t\n\t\tFile SrcFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\t\tFile DestFile = new File(\"D:\\\\ECLIPSE\\\\screenshot\\\\New folder.png\");\n\n\t\tFileUtils.copyFile(SrcFile, DestFile);\n\t}",
"public String getScreenshot() {\n\t\tFile src = ((TakesScreenshot) getDriver()).getScreenshotAs(OutputType.FILE);\n\t\tString path = System.getProperty(\"user.dir\") + \"/screenshots/\" + System.currentTimeMillis() + \".png\";\n\t\tFile destination = new File(path);\n\t\ttry {\n\t\t\tFileUtils.copyFile(src, destination);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn path;\n\t}",
"@Test\n public void myTest() throws Exception {\n\n WebDriver driver = new ChromeDriver();\n\n driver.get(\"http://www.google.com\");\n\n // RemoteWebDriver does not implement the TakesScreenshot class\n // if the driver does have the Capabilities to take a screenshot\n // then Augmenter will add the TakesScreenshot methods to the instance\n WebDriver augmentedDriver = new Augmenter().augment(driver);\n File screenshot = ((TakesScreenshot) augmentedDriver).getScreenshotAs(OutputType.FILE);\n\n\n //File screenshot = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n // Now you can do whatever you need to do with it, for example copy somewhere\n FileUtils.copyFile(screenshot, new File(\"C:\\\\Dev\\\\screenshot.png\"));\n\n driver.quit();\n }",
"private void saveScreenshot(Bitmap screenshot, String filePath) {\n FileOutputStream out = null;\n try {\n out = new FileOutputStream(filePath);\n screenshot.compress(Bitmap.CompressFormat.PNG, 100, out);\n Log.i(TAG, \"Screenshot saved to \" + filePath);\n Toast.makeText(this, \"Screenshot saved to \" + filePath, Toast.LENGTH_LONG).show();\n } catch (Exception e) {\n Log.e(TAG, \"Failed to save screenshot\", e);\n Toast.makeText(this, \"Screenshot FAILED!\", Toast.LENGTH_SHORT).show();\n } finally {\n try { if (out != null) { out.close();} } catch (IOException e) {}\n }\n }",
"private void takeScreenshot()\n\t\t{\n\t\t\tint width = getWidth();\n\t\t\tint height = getHeight();\n\t\t\tint capacity = width * height;\n\t\t\tint[] dataArray = new int[capacity];\n\t\t\tIntBuffer dataBuffer = IntBuffer.allocate(capacity);\n\t\t\tGLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, dataBuffer);\n\t\t\tint[] dataArrayTemp = dataBuffer.array();\n\n\t\t\t// Flip the mirrored image.\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\tSystem.arraycopy(dataArrayTemp, y * width, dataArray, (height - y - 1) * width, width);\n\t\t\t}\n\n\t\t\tBitmap screenshot = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n\t\t\tscreenshot.copyPixelsFromBuffer(IntBuffer.wrap(dataArray));\n\t\t\tBitmap thumbnail = Bitmap.createScaledBitmap(screenshot, width / THUMBNAIL_SHRINKING_FACTOR, height / THUMBNAIL_SHRINKING_FACTOR, true);\n\t\t\tproject.getSheetAt(screenshotSheetIndex).saveThumbnail(thumbnail);\n\t\t\tBitmapDrawable thumbnailDrawable = new BitmapDrawable(getResources(), thumbnail);\n\t\t\tproject.getSheetAt(screenshotSheetIndex).setThumbnail(thumbnailDrawable);\n\n\t\t\t// Refresh the sheet panel if the user is not requesting an exit.\n\t\t\tif (activity.taskRequested != NotepadActivity.TASK_EXIT)\n\t\t\t{\n\t\t\t\tactivity.refreshSheetDrawerAfterGeneratingThumbnail();\n\t\t\t}\n\n\t\t\t// The project thumbnail should be twice the width and height of a sheet thumbnail.\n\t\t\tBitmap projectThumbnail = Bitmap.createScaledBitmap(\n\t\t\t\t\tscreenshot, (width * 2) / THUMBNAIL_SHRINKING_FACTOR, (height * 2) / THUMBNAIL_SHRINKING_FACTOR, true);\n\t\t\tproject.saveThumbnail(projectThumbnail);\n\n\t\t\tif (activity.taskRequested > 0)\n\t\t\t{\n\t\t\t\tpost(new Runnable()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tactivity.performTask();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}",
"public void takeScreenshot( ) throws IOException {\n File source = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n String path = \"./reports/target/screenshots/\" + source.getName();\n FileUtils.copyFile(source, new File(path));\n }",
"public static String takeScreenShot(WebDriver driver, String testName){\n File screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n String path = \"./\" + \"\\\\target\\\\surefire-reports\\\\\" + testName + \".png\";\n try {\n FileUtils.copyFile(screenshot, new File(path));\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return testName + \".png\";\n }",
"static String takeScreenShot(String ImagesPath, WebDriver driver) {\n TakesScreenshot takesScreenshot = (TakesScreenshot) driver;\n File screenShotFile = takesScreenshot.getScreenshotAs(OutputType.FILE);\n File destinationFile = new File(ImagesPath+\".png\");\n try {\n FileUtils.copyFile(screenShotFile, destinationFile);\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n return ImagesPath+\".png\";\n }",
"private Bitmap takeScreenshot2() {\n Bitmap bitmap = null;\n try {\n // image naming and path to include sd card appending name you choose for file\n String mPath = Environment.getExternalStorageDirectory().toString() + \"/Activity\" + \".jpg\";\n\n // create bitmap screen capture\n View v1 = activity.getWindow().getDecorView().getRootView();\n v1.setDrawingCacheEnabled(true);\n bitmap = Bitmap.createBitmap(v1.getDrawingCache());\n v1.setDrawingCacheEnabled(false);\n\n File imageFile = new File(mPath);\n\n FileOutputStream outputStream = new FileOutputStream(imageFile);\n int quality = 100;\n bitmap.compress(Bitmap.CompressFormat.JPEG, quality, outputStream);\n outputStream.flush();\n outputStream.close();\n return bitmap;\n\n } catch (Throwable e) {\n // Several error may come out with file handling or OOM\n e.printStackTrace();\n }\n return bitmap;\n }",
"public static String CaptureScreenShot(WebDriver driver) {\n\t\ttry {\n\t\t\tTakesScreenshot ts = (TakesScreenshot) driver;\n\t\t\tFile screenshotSRC = ts.getScreenshotAs(OutputType.FILE);\n\t\t\tString path = System.getProperty(\"user.dir\") + \"/Screenshots/\" + System.currentTimeMillis() + \".png\";\n\t\t\tFile screenshotDest = new File(path);\n\t\t\tFileUtils.copyFile(screenshotSRC, screenshotDest);\n\t\t\treturn path;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Some exception occured.\" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}",
"private static void ScreenShot(WebDriver driver, String Filepath) {\n\t\tTakesScreenshot screen=((TakesScreenshot)driver);\n\t\t\n\t\tFile SrcFile=screen.getScreenshotAs(OutputType.FILE);\n\n\t\t//Move image to new destination\n\t\tFile DestFile=new File(Filepath);\n\n\t\t//Copy file at destination location\n\t\t//FileUtils.copyFile(SrcFile, DestFile);\n\t\t\n\t}",
"private void takeScreenshot(Activity activity) {\n uiDevice.waitForIdle(2000);\n\n // Create a file and save it\n Date start = new Date();\n final File screenFile = new File(Environment.getExternalStorageDirectory(), \"screen_\" + start.toString() + \"_\" + rand.nextInt());\n uiDevice.takeScreenshot(screenFile, 0.5f, 50);\n\n // Finally, attempt to send that file over websockets\n socket.sendScreenshot(screenFile, activity, start);\n\n }",
"public void takeScreenShot(String fileName) throws IOException {\n File scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n DateFormat dateFormat = new SimpleDateFormat(\"yy-mm-dd HH-mm-ss\");\n Date date = new Date();\n FileUtils.copyFile(scrFile, new File(\"TestoutputData/Screenshot/\" + fileName + \"_\" + dateFormat.format(date) + \".png\"));\n }",
"@Override\n public void saveSnapshot(String path) {\n String command = \"adb shell screencap -p \" + path;\n// String command=\"adb shell screencap -p /sdcard/js_test.png\";\n// executeCommand(Lists.newArrayList(\n// \"adb\",\"shell\",\"screencap\",\"-p\",\"/sdcard/js_test.png\",\n// \"|\",\"sed\",\"'s/\\\\r$//'\",\">\",path\n//\n// ));\n// String command=\"adb shell screencap -p | sed 's/\\\\r$//' > screen.png\";\n executeCommand(command);\n }",
"public static String captureScreenshot(String scenariopath) {\n\t\tDate date = new Date();\r\n\t\tString snaptime = dateformat.format(date);\r\n\t\tString result=\"false\";\r\n\t\ttry {\r\n\t\t\tWebDriver augumentdriver = new Augmenter().augment(driver);\r\n\t\t\tFile source = ((TakesScreenshot) augumentdriver).getScreenshotAs(OutputType.FILE);\r\n\t\t\tString currentDate = new SimpleDateFormat(\"dd-mm-yyyy hh:mm:ss\").format(new Date());\r\n\t\t\tString path =\".//screenshots//\" + scenariopath+\"_\"+ snaptime + \".png\";\r\n\t\t\tfinal BufferedImage image = ImageIO.read(source);\r\n\t\t\tGraphics g = image.getGraphics();\r\n\t\t\tg.setFont(g.getFont().deriveFont(20f));\r\n\t\t\tg.setColor(Color.GREEN);\r\n\t\t\tg.drawString(currentDate, 20, 20);\r\n\t\t\tg.dispose();\r\n\t\t\tImageIO.write(image, \"png\", new File(path));\r\n\t\t\tresult= path;\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Unable to take screenshot\");\r\n\t\t}\r\n\t\treturn result;\r\n\r\n\t}",
"public void capturescreen(WebDriver driver, String testName) throws IOException {\n\t\tTakesScreenshot ts = (TakesScreenshot) driver;\n\t\tFile source = ts.getScreenshotAs(OutputType.FILE);\n\t\tFile target = new File(System.getProperty(\"user.dir\")+ \"\\\\screenshots\\\\\" + testName + \".png\");\n\t\tSystem.out.println(target);\n\t\tFileUtils.copyFile(source, target);\n\t\tSystem.out.println(\"Screenshot Captured for : \" + testName);\n\t}",
"private void takeScreenShot(WebDriver webdriver, String fileWithPath) {\n TakesScreenshot scrShot = ((TakesScreenshot) webdriver);\n //Call getScreenshotAs method to create image file\n File SrcFile = scrShot.getScreenshotAs(OutputType.FILE);\n //Move image file to new destination\n File DestFile = new File(fileWithPath);\n //Copy file at destination\n try {\n FileUtils.copyFile(SrcFile, DestFile);\n } catch (IOException e) {\n System.err.println(\"Something went wrong during copying\");\n }\n }",
"public static String capture(AndroidDriver driver, String screenShotName) throws IOException {\n\t\tFile source = driver.getScreenshotAs(OutputType.FILE);\n\t\tString dest = MyExtentListners.screenShotPath + screenShotName + \".png\";\n\t\tSystem.out.println(dest);\n\t\tFile destination = new File(dest);\n\t\tFileUtils.copyFile(source, destination);\n\t\treturn dest;\n\t}",
"public void takeScreenShot();",
"public static String capture(WebDriver driver, String screenShotName) throws IOException {\n\n TakesScreenshot ts = (TakesScreenshot) driver;\n File source = ts.getScreenshotAs(OutputType.FILE);\n String dest = \"target/extent/screenshots/\" + screenShotName + \".png\";\n File destination = new File(dest);\n FileUtils.copyFile(source, destination);\n String loctionForReport = \"screenshots/\" + screenShotName + \".png\";\n return loctionForReport;\n }",
"public static void captureScreenshot(WebDriver driver , String screenshotname) \n\t{\n\t\tPath dest = Paths.get(\"./Screenshots\",screenshotname+\".png\"); \n\t\t\n\t\ttry {\n\t\t\tFiles.createDirectories(dest.getParent());\n\t\t\tFileOutputStream out = new FileOutputStream(dest.toString());\n\t\t\tout.write(((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES));\n\t\t\tout.close();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Excpetion while taking screenshot: \"+ e.getMessage());\n\t\t}\n\t}",
"public static void captureScreenShot(WebDriver driver) {\n\t\tlogger.info(\"Taking the screenshot\");\n\t\ttry {\n\t\t\tString timeStamp = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n\n\t\t\tTakesScreenshot ScrObj = (TakesScreenshot) driver;\n\n\t\t\tThread.sleep(3000);\n\n\t\t\tFile CaptureImg = ScrObj.getScreenshotAs(OutputType.FILE);\n\t\t\tFileUtils.copyFile(CaptureImg, new File(\"./Screenshots/\" + timeStamp + \"_screenshot.png\"));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tlogger.error(\"Error occured while Capturing Screenshot\");\n\t\t}\n\t}",
"public static File captureRootScreenShot(Activity activity){\n View decor = activity.getWindow().getDecorView();\n decor.setDrawingCacheEnabled(true);\n\n // Configure screenshot bounds\n Bitmap decorBmp = decor.getDrawingCache();\n\n // Create the screenshot per se\n Bitmap screenShot = Bitmap.createBitmap(decorBmp, 0, 0, decorBmp.getWidth(), decorBmp.getHeight());\n\n // Recycle the intial bitmap\n decorBmp.recycle();\n\n // Disable drawing cache on the decor\n decor.setDrawingCacheEnabled(false);\n\n // Save the newly generated screenshot into a temporary variable\n try {\n\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"PNG_\" + timeStamp + \"_\";\n File cacheDir = activity.getCacheDir();\n File tempFile = File.createTempFile(imageFileName, \".png\", cacheDir);\n\n // Write bitmap to file\n boolean result = screenShot.compress(Bitmap.CompressFormat.PNG, 0, new FileOutputStream(tempFile));\n if(result)\n return tempFile;\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return null;\n }",
"protected String getScreenshot(String screenshotName) throws Exception {\r\n //below line is just to append the date format with the screenshot name to avoid duplicate names\r\n String currentTimeStamp = new SimpleDateFormat(\"yyyyMMddhhmmss\").format(new Date());\r\n String filename = screenshotName + currentTimeStamp + \".png\";\r\n\r\n\r\n TakesScreenshot ts = (TakesScreenshot) driver;\r\n File source = ts.getScreenshotAs(OutputType.FILE);\r\n\r\n //after execution, you could see a folder \"FailedTestsScreenshots\" under src folder\r\n String destination = System.getProperty(\"user.dir\") + jsonConfig.get(\"extentReportPath\") + filename;\r\n File finalDestination = new File(destination);\r\n FileUtils.copyFile(source, finalDestination);\r\n\r\n //Returns the captured file path\r\n return filename;\r\n }",
"public String captureScreenshot(WebDriver driver, String testName) {\n String randomValue = \"_\" + StringUtils.getRandomAlphaNumeric(5);\n String fullPath = System.getProperty(\"user.dir\") + \"/screenshots/\" + testName + randomValue + \".png\";\n String captured = \"No\";\n try {\n WebDriver augmentedDriver = new Augmenter().augment(driver);\n File source = ((TakesScreenshot) augmentedDriver).getScreenshotAs(OutputType.FILE);\n FileUtils.copyFile(source, new File(fullPath));\n return fullPath;\n } catch (IOException e) {\n error(\"Failed to capture screenshot: <br/>\" + e.getMessage());\n error(Throwables.getStackTraceAsString(e));\n return captured;\n }\n }",
"public static void captureScreenshot(WebDriver driver , String screenshotname) throws IOException \n\t{\n\t\tPath dest = Paths.get(\"./ScreenShots\",screenshotname+\"gh.png\"); \n\t\t\n\t\t//take screenshot\n\t\tFile scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\t\t//copy the screen shot to another file\n\t\tFileUtils.copyFile(scrFile, new File(dest.toString()));\n\t}",
"public static void getScreenShot(String description, WebDriver driver, long milliseconds) throws IOException {\n\t\t DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd, HH.mm.ss\");\n\t\t File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t String outputFile = Common.outputFileDir + description + \" (\" + dateFormat.format(milliseconds) + \").png\";\n\t\t fileWriterPrinter(outputFile);\n\t\t FileUtils.copyFile(scrFile, new File(outputFile));\n\t\t }",
"public static String takeScreenshot(String filename) {\n\t\tTakesScreenshot ts= (TakesScreenshot)driver;\n\t\tFile file=ts.getScreenshotAs(OutputType.FILE);\n\t\tString destinationFile=Constants.SCREENSHOT_FILEPATH+filename+\".png\";\n\t\ttry {\n\t\tFileUtils.copyFile(file, new File(\"screenshot/\"+filename+\".pig\"));\n\t\t}catch (Exception ex) {\n\t\t\tSystem.out.println(\"Cannot take screenshot!\");\n\t\t}\n\t\treturn destinationFile;\n\t}",
"public ImageIcon takeSnapShot(Component panel){\r\n // BufferedImage bufImage = new BufferedImage(panel.getSize().width, panel.getSize().height,BufferedImage.TYPE_INT_RGB);\r\n BufferedImage bufImage = new BufferedImage(2250, 2250,BufferedImage.TYPE_INT_RGB);\r\n panel.paint(bufImage.createGraphics());\r\n ImageIcon imageIcon = new ImageIcon(bufImage);\r\n String snapshotLocation = FileSystemView.getFileSystemView().getDefaultDirectory().toString() + \"\\\\spaceGUI\\\\yourImage.jpeg\";\r\n File fc = new File(snapshotLocation.substring(0,snapshotLocation.indexOf(\"yourImage.jpeg\")));\r\n if(!fc.exists()) {\r\n fc.mkdir();\r\n }\r\n File imageFile = new File(snapshotLocation);\r\n try{\r\n imageFile.createNewFile();\r\n ImageIO.write(bufImage, \"jpeg\", imageFile);\r\n System.out.println(\"Created picture\");\r\n \r\n }catch(Exception ex){\r\n System.out.println(\"Did not create picture\");\r\n } \r\n return imageIcon;\r\n }",
"public static String captureScreenshot(WebDriver driver,String screenshotName){\n\t\tTakesScreenshot ts=(TakesScreenshot)driver;\n\t\t//2.Take screen shot and define file type with a File Class:MAKE IT SOURCE FILE\n\t\tFile src=ts.getScreenshotAs(OutputType.FILE);\n\t\t//3.DEFINE where the taken screen shot will be save as FILE\n\t\tString destFilePath=(\"\\\\Users\\\\metootopa\\\\Desktop\\\\ECLIPSE_TEST\\\\com.MyAPP.HybridFrame\\\\ScreenShots\\\\\");\n\t\tString destFile=destFilePath+ screenshotName+ System.currentTimeMillis()+\".png\";\n\t\t//4.set src file to destinatoion folder\n\t\ttry {\n\t\t\tFileUtils.copyFile(src, new File(destFile));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Screenshot was not Successfull\"+e.getMessage());\n\t\t}\n\t\t\n\t\treturn destFile;\n\t\t\n\t\t\n\t\t\n\t}",
"public void getScreenshot() {\n String screenshotPath = System.getProperty(\"TEST_RESULTS_PATH\");\n getScreenshot(screenshotPath);\n }",
"public static void captureScreenshot() throws IOException {\n\t\tDate d = new Date();\n\t\tscreenshotName = (d.toString().replace(\":\", \"_\").replace(\" \", \"_\"))+\".jpg\";\n\t\tscreenshotLocation1 = (System.getProperty(\"user.dir\"))+(\"\\\\target\\\\surefire-reports\\\\html\\\\\")+screenshotName;\n\t\tscreenshotLocation2 = (System.getProperty(\"user.dir\")+\"\\\\test-output\\\\html\\\\\"+screenshotName);\n\t\t\n\t\t//TakesScreenshot on failure\n\t\tFile screenshot = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t//add screenshot to the report - Surefire & reportng\n\t\tFileUtils.copyFile(screenshot, new File(screenshotLocation1));\n\t\tFileUtils.copyFile(screenshot, new File(screenshotLocation2));\n\t\ttest.log(LogStatus.INFO, \"Screenshot captured on failure of testcase\");\n\t\t\n\t}",
"public static void TakeScreenShot(String i) throws IOException {//a metod we will use onTestFail listener, I added i so i can call the method for a particular case and put the screenShots in separate files\n Date d =new Date();\n String fileName = d.toString().replace(\":\",\"_\").replace(\" \",\"_\");\n path = System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\resources\\\\Prints\"+i+\"\\\\\"+fileName+\".jpg\";\n File screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n FileUtils.copyFile(screenshot,new File(System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\resources\\\\Prints\"+i+\"\\\\\"+fileName+\".jpg\"));\n }",
"public static void takeSnapShot(WebDriver webdriver, String fPath) throws Exception {\n\n //Convert web driver object to TakeScreenshot\n TakesScreenshot scrShot = ((TakesScreenshot) webdriver);\n\n //Call getScreenshotAs method to create image file\n File SrcFile = scrShot.getScreenshotAs(OutputType.FILE);\n\n //Move image file to new destination\n File DestFile = new File(fPath);\n\n //Copy file at destination\n FileUtils.copyFile(SrcFile, DestFile);\n\n }",
"public void captureScreenshot(String path_screenshot, String testCaseName) {\n try {\n File srcFile = ((TakesScreenshot) getDriver()).getScreenshotAs(OutputType.FILE);\n String filename = testCaseName + \"_\" + UUID.randomUUID().toString();\n File targetFile = new File(path_screenshot + filename + \".jpg\");\n FileUtils.copyFile(srcFile, targetFile);\n } catch (Exception e) {\n error(\"Failed while capturing screenshot\");\n error(Throwables.getStackTraceAsString(e));\n }\n }",
"public void saveCanvasToPng(String path) throws IOException {\n int WIDTH = 500;\n int HEIGHT = 500;\n\n BufferedImage image = new BufferedImage(WIDTH,HEIGHT, BufferedImage.TYPE_INT_RGB);\n Graphics g = image.getGraphics();\n paintComponent(g, WIDTH, HEIGHT);\n ImageIO.write(image,\"png\",new File(path));\n }",
"private void takeScreenShot(WebDriver driver, String fName) throws IOException {\n\n\t\tFile scrshotFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(scrshotFile, new File(fName));\n\t}",
"private void makeScreenshot(TakesScreenshot d) {\n\t\tFile screenshot = d.getScreenshotAs(OutputType.FILE);\n\t\ttry {\n\t\t\tFileUtils.copyFile(screenshot, new File(screenshot.getName()));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void SaveScreenShot(Component component, String filename) throws Exception{\r\n BufferedImage imag = getScreenShot(component);\r\n ImageIO.write(imag, \"png\", new File(filename));\r\n }",
"public static String capture(AndroidDriver driver, String screenShotName) throws IOException {\n\t\tFile source = driver.getScreenshotAs(OutputType.FILE);\n\t\tString dest = Constants.screenShotPath + screenShotName + \".png\";\n\t\tFile destination = new File(dest);\n\t\tFileUtils.copyFile(source, destination);\n\t\treturn dest;\n\t}",
"public static void takeScreenshot(String fileName) throws IOException\n\t {\n\t\t File file=((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t \n\t\t // copying the screenshot to the desired loacation by copyFile method\n\t\t String timestamp = new SimpleDateFormat(\"yyyy_MM_dd__hh_mm_ss\").format(new Date());\n\t\t \n\t\t FileUtils.copyFile(file, new File(\"E:\\\\screenshots\\\\\"+fileName+\" \"+timestamp+\" .jpg\"));\n\t\t \n\t }",
"public void saveAs() {\n MimsJFileChooser fileChooser = new MimsJFileChooser(ui);\n fileChooser.setSelectedFile(new File(ui.getLastFolder(), ui.getImageFilePrefix() + \".png\"));\n ResourceBundle localizationResources = ResourceBundleWrapper.getBundle(\"org.jfree.chart.LocalizationBundle\");\n ExtensionFileFilter filter = new ExtensionFileFilter(\n localizationResources.getString(\"PNG_Image_Files\"), \".png\");\n fileChooser.addChoosableFileFilter(filter);\n fileChooser.setFileFilter(filter);\n int option = fileChooser.showSaveDialog(chartpanel);\n if (option == MimsJFileChooser.APPROVE_OPTION) {\n String filename = fileChooser.getSelectedFile().getPath();\n if (!filename.endsWith(\".png\")) {\n filename = filename + \".png\";\n }\n try {\n ChartUtils.saveChartAsPNG(new File(filename), chartpanel.getChart(), getWidth(), getHeight());\n } catch (IOException ioe) {\n IJ.error(\"Unable to save file.\\n\\n\" + ioe.toString());\n }\n }\n }",
"public static void main(String[] args) {\n\t\tWebDriver driver = new FirefoxDriver();\r\n\t\tdriver.get(\"https://www.facebook.com\");\r\n\t\t/*TakesScreenshot tss = (TakesScreenshot) driver;\r\n\t\tFile source = tss.getScreenshotAs(OutputType.FILE);instead of this we can also write as following*/\r\n\t\tFile source = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\r\n\t\t/*File destination = new File(\"C:\\\\Users\\\\pva\\\\facebook.jpg\");\r\n\t\ttry {\r\n\t\t\tFileUtils.copyFile(source, destination);\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}",
"public void takeScreenShot(String fileName) throws IOException {\n\t\tScreenshot takeScreenShot = new AShot().takeScreenshot(driver);\n\t\tImageIO.write(takeScreenShot.getImage(), \"png\", new File(path+\"\\\\ScreenShots\\\\\" + fileName + \".png\"));\n\t}",
"public static void captureScreenshot(WebDriver browserobject , String screenshotname) \n\t{\n\n\n\t\tPath dest = Paths.get(\"./ScreenShots\",screenshotname+\".png\"); \n\t\ttry {\n\t\t\tFiles.createDirectories(dest.getParent());\n\t\t\tFileOutputStream out = new FileOutputStream(dest.toString());\n\t\t\tout.write(((TakesScreenshot) browserobject).getScreenshotAs(OutputType.BYTES));\n\t\t\tout.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Excpetion while taking screenshot\"+ e.getMessage());\n\t\t}\n\t}",
"public static void takeScreenshotAtEndOfTest() throws IOException {\n\t\t//Take screenshot.\n\t\t\t\tFile scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);//output type is file type//coverting driver to take a screen shot TakesScreenshot(I) and then getScreenshotAs this method will execute \n\t\t//Copy to a file\t\t\n\t\t\t\tString currentDir = System.getProperty(\"user.dir\");\n\t\t\t\tFileUtils.copyFile(scrFile, new File(currentDir + \"/screenshots/\" + System.currentTimeMillis() + \".png\"));\n\t\t\t\t\n\t\t\t\t}",
"private Bitmap takeShareableScreenshot() {\n // https://stackoverflow.com/questions/2661536/how-to-programmatically-take-a-screenshot-in-android\n// cameraActionLayout.setVisibility(View.GONE);\n// resultLayout.setVisibility(View.GONE);\n try {\n // create bitmap screen capture\n View v1 = getWindow().getDecorView().getRootView();\n v1.setDrawingCacheEnabled(true);\n return Bitmap.createBitmap(v1.getDrawingCache());\n } catch (Throwable e) {\n // Several error may come out with file handling or OOM\n e.printStackTrace();\n makeToast(e.toString());\n Timber.e(\"Error capturing screenshot: \" + e.toString());\n return null;\n }\n// finally {\n// cameraActionLayout.setVisibility(View.VISIBLE);\n// resultLayout.setVisibility(View.VISIBLE);\n// }\n }",
"private Bitmap getScreenshotBitmap() {\n if (!hasEnoughHeapMemoryForScreenshot()) return null;\n\n if (getWidth() <= 0 || getHeight() <= 0) return null;\n\n Bitmap bitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888);\n draw(new Canvas(bitmap));\n return bitmap;\n }",
"public static void take(WebDriver driver){\n try {\n Thread.sleep(5000);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n\n\n Screenshot screenshot = new AShot()\n .shootingStrategy(ShootingStrategies.viewportPasting(100))\n .takeScreenshot(driver);\n\n try {\n ImageIO.write(screenshot.getImage(), \"png\", new File(\"/home/stanislav/123.png\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void saveAsImage(){\n\t\tif(currentView == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A tab must be open before an image can be saved\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcurrentView.saveAsImage();\r\n\t}",
"private String takeScreenshot(View view) {\n Date now = new Date();\n android.text.format.DateFormat.format(\"yyyy-MM-dd_hh:mm:ss\", now);\n\n try {\n // image naming and path to include sd card appending name you choose for file\n String mPath = Environment.getExternalStorageDirectory().toString() + \"/\" + now + \".jpg\";\n\n // create bitmap screen capture\n View v1 = getWindow().getDecorView().getRootView();\n v1.setDrawingCacheEnabled(true);\n Bitmap bitmap = Bitmap.createBitmap(v1.getDrawingCache(), (int)view.getX()+10,\n (int)view.getY()+35, view.getWidth()-22, view.getHeight()-33);\n v1.setDrawingCacheEnabled(false);\n File imageFile = new File(mPath);\n FileOutputStream outputStream = new FileOutputStream(imageFile);\n int quality = 100;\n bitmap.compress(Bitmap.CompressFormat.JPEG, quality, outputStream);\n outputStream.flush();\n outputStream.close();\n return mPath;\n } catch (Throwable e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"@FXML\r\n void btnSave(ActionEvent event) throws IOException {\r\n \tdos.writeInt(server.ServerConstants.DRAW_SAVE);\r\n \tString fileName = \"D://image/snapshot\" + new Date().getTime() + \".png\";\r\n \tFile file = new File(fileName);\r\n \tWritableImage writableImage = new WritableImage(768, 431);\r\n canvas.snapshot(null, writableImage);\r\n RenderedImage renderedImage = SwingFXUtils.fromFXImage(writableImage, null);\r\n ImageIO.write(renderedImage, \"png\", file);\r\n \r\n OutputStream outputStream = client.getOutputStream();\r\n FileInputStream fileInputStream = new FileInputStream(file);\r\n byte[] buf = new byte[1024];\r\n int length = 0;\r\n while((length = fileInputStream.read(buf))!=-1){\r\n \toutputStream.write(buf);\r\n }\r\n fileInputStream.close();\r\n }",
"public static void takeSnapShot(WebDriver webdriver, String fileWithPath) throws Exception {\n //Convert web driver object to TakeScreenshot\n TakesScreenshot scrShot = ((TakesScreenshot) webdriver);\n //Call getScreenshotAs method to create image file\n File SrcFile = scrShot.getScreenshotAs(OutputType.FILE);\n //Move image file to new destination\n File DestFile = new File(\"/home/svyazemsky/JavaProjects/newqajava/src/test/java/Lesson8/screenshots/\" + fileWithPath);\n System.out.println(DestFile);\n //Copy file at destination\n com.google.common.io.Files.copy(SrcFile, DestFile);\n }",
"public static void rep_GetScreenshot(String outputlocation, String strFileName) throws IOException {\n File srcFiler = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n FileUtils.copyFile(srcFiler, new File(outputlocation + strFileName));\n rep_Report(2, \"Screen shot saved\");\n }",
"public String saveBitmap(Bitmap bitmap){\n String imagePath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM)+ \"/screenshot.png\";\n File mFile = new File(imagePath);\n FileOutputStream outputStream;\n try\n {\n outputStream = new FileOutputStream(mFile);\n bitmap.compress(Bitmap.CompressFormat.PNG, 100, outputStream);\n outputStream.flush();\n outputStream.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return imagePath;\n }",
"public final File takeScreenshot() {\n\t\treturn ((TakesScreenshot) this.webDriver).getScreenshotAs(OutputType.FILE);\n\t}",
"public void getScreenshot(String path) {\n\n String screenshotPath;\n String timestamp = testHelper.getTimestamp();\n\n screenshotPath = path + \"//\" + timestamp + \".JPG\";\n try {\n setUpScreenshot(screenshotPath);\n } catch (WebDriverException e) {\n LOGGER.log(Level.INFO,\n MESSAGE_WEB_DRIVER_EXCEPTION_IN_GET_SCREENSHOT_METHOD, e);\n } catch (IOException e) {\n LOGGER.log(Level.INFO,\n MESSAGE_IO_EXCEPTION_IN_GET_SCREENSHOT_METHOD, e);\n }\n\n }",
"public void SaveActionPerformed(java.awt.event.ActionEvent evt) {\n if (jfcSave.showSaveDialog(this) == JFileChooser.APPROVE_OPTION){\r\n //get selected file name\r\n File fileSave = jfcSave.getSelectedFile();\r\n String fileSaveName = fileSave.toString();\r\n\r\n try {\r\n SaveScreenShot(drawingPanel,fileSaveName);\r\n } catch (Exception e){\r\n System.out.println(\"image failed to save!\");\r\n }\r\n }\r\n }",
"public static byte[] takeScreenshot(String filename) {\n\t\tTakesScreenshot ts = (TakesScreenshot) driver;\n\t\tbyte[] picBytes=ts.getScreenshotAs(OutputType.BYTES);\n\t\tFile file = ts.getScreenshotAs(OutputType.FILE);\n\t\tString destinationFile=Constants.SCREENSHOT_FILEPATH+filename+getTimeStamp()+\".png\";\n\t\ttry {\n\t\t\tFileUtils.copyFile(file, new File(destinationFile));\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"Cannot take screenshot!\");\n\t\t}\n\t\t\n\t\treturn picBytes;\n\t}",
"public static void takeScreenshot(View view, String filePath) {\n Bitmap bitmap;\n View v1 = view.getRootView();\n v1.setDrawingCacheEnabled(true);\n bitmap = Bitmap.createBitmap(v1.getDrawingCache());\n v1.setDrawingCacheEnabled(false);\n\n OutputStream fout = null;\n File imageFile = new File(filePath);\n\n try {\n fout = new FileOutputStream(imageFile);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 90, fout);\n fout.flush();\n fout.close();\n\n } catch (FileNotFoundException e) {\n Log.e(C.TAG, \"screenshot error\", e);\n } catch (IOException e) {\n Log.e(C.TAG, \"screenshot error\", e);\n }\n }",
"public void fTakeScreenshot(String SSPath){\r\n \ttry{ \t\t\r\n \t\tWebDriver screenDriver;\r\n \t\tif(driverType.contains(\"FIREFOX\") || driverType.contains(\"CHROME\") || driverType.contains(\"IE\")){\r\n \t\t\tscreenDriver = driver;\r\n \t\t}else{\r\n \t\t\tscreenDriver = new Augmenter().augment(driver);\r\n \t\t}\r\n \t\t\r\n File scrFile = ((TakesScreenshot)screenDriver).getScreenshotAs(OutputType.FILE);\r\n \t FileUtils.copyFile(scrFile, new File(SSPath));\r\n \t\ttry {\r\n \t\t\tThread.sleep(1);\r\n \t\t} catch (InterruptedException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n \t\tscreenDriver = null;\r\n \t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"public void getScreenShot(StackTraceElement l, Exception e, WebDriver driver) throws IOException {\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd, HH.mm.ss\");\n\t\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t\tString message1 = null;\t\t\t\t\t\n\t\t\ttry{\n\t\t\t\t message1 = e.getCause().toString();\n\t\t\t} \n\t\t\tcatch(NullPointerException e1) {\n\t\t\tmessage1 = \".getCause() by NullPointerException:\";\n\t\t\t}\n\t\t\tfinally {\n\t\t\tString [] multiline1 = message1.replaceAll(\"\\\\r\", \"\").split(\"\\\\n\");\n\t\t\tString firstLine = multiline1[0];\n\t\t\tString errorCause = firstLine.substring(0,firstLine.indexOf(\":\"));\n\t\t\tString exceptionThrown = errorCause.substring(1 + errorCause.lastIndexOf(\".\"), errorCause.length());\n\t\t\t \n\t\t\tString packageNameOnly = l.getClassName().substring(0, l.getClassName().lastIndexOf(\".\"));\n\t\t\tString classNameOnly = l.getClassName().substring(1 + l.getClassName().lastIndexOf(\".\"), l.getClassName().length());\n\t\t\tString description = exceptionThrown;\n\t\t\tString screenshotName = classNameOnly + \".\" + l.getMethodName() + \", \" + description +\", line # \" + l.getLineNumber();\n\n\t\t\tString outputFile = Common.outputFileDir + packageNameOnly + File.separator + classNameOnly + File.separator + screenshotName + \" (\" + dateFormat.format(new Date()) + \").png\";\n\t\t\tfileWriterPrinter(outputFile);\n\t\t\tFileUtils.copyFile(scrFile, new File(outputFile));\n\t\t\t}\n\t\t\t}",
"private String createScreenshotFilePath() {\n String fileName = new SimpleDateFormat(FILE_NAME_FORMAT).format(new Date());\n String filePath = MainMenu.PUBLIC_EXTERNAL_PICTURES_ORION_PATH + fileName;\n return filePath;\n }",
"public static void takeSnapShot(WebDriver webdriver,String fileWithPath) throws Exception{\n\n\t //Convert web driver object to TakeScreenshot\n\n\t TakesScreenshot scrShot =((TakesScreenshot)webdriver);\n\n\t //Call getScreenshotAs method to create image file\n\n\t File SrcFile=scrShot.getScreenshotAs(OutputType.FILE);\n\n\t //Move image file to new destination\n\n\t File DestFile=new File(fileWithPath);\n\n\t //Copy file at destination\n\n\t FileUtils.copyFile(SrcFile, DestFile);\n\n\t }",
"public BufferedImage getExport() {\n int ebackw = Integer.parseInt\n (main.myProps.getProperty(\"export.back\"));\n int efrontw = main.forecast;\n main.display.setBounds(ebackw, efrontw);\n\n Dimension dim = main.display.getPreferredSize(); \n BufferedImage img = new BufferedImage\n (dim.width, dim.height, BufferedImage.TYPE_INT_ARGB);\n Graphics gc = img.getGraphics();\n main.display.paintComponent(gc);\n int d[] = main.display.getExportSize(); \n gc.dispose();\n\n main.display.resetBounds();\n return img.getSubimage(d[0], d[1], d[2], d[3]);\n }",
"public void screenshotToClipboard() {\n Image image = getScreenshot();\n Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent content = new ClipboardContent();\n content.putImage(image);\n clipboard.setContent(content);\n LOGGER.atInfo().log(\"Copied screenshot to clipboard\");\n }",
"public void screenshot(String methodName) throws Exception \r\n\t{\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tSimpleDateFormat formater = new SimpleDateFormat(\"dd_MM_yyyy_hh_mm_ss\"); \r\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\r\n\t\tString screenshotLocationWeb = FilesAndFolders.getPropValue(\"screenshotLocationWeb\");\r\n\t\ttry {\r\n\t\t\tFileUtils.copyFile(scrFile, new\r\n\t\t\t\t\tFile((screenshotLocationWeb + methodName + \"_\" + formater.format(calendar.getTime())+\".png\")));\r\n\t\t\tReporter.log(\"<a href='\" +\r\n\t\t\t\t\tscreenshotLocationWeb + methodName + \"_\" + formater.format(calendar.getTime()) + \".png'> <imgsrc='\" + screenshotLocationWeb + methodName + \"_\" + formater.format(calendar.getTime()) + \".png' /> </a>\");\r\n\t\t\tReporter.setCurrentTestResult(null);\r\n\t\t}\r\n\t\tcatch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t}",
"public <X> void afterGetScreenshotAs(OutputType<X> target, X screenshot) {\n\t\t\r\n\t}",
"public static String CaptureScreenShotWithTestStepName(WebDriver driver, String testStepName) {\n\t\ttry {\n\t\t\tTakesScreenshot ts = (TakesScreenshot) driver;\n\t\t\tFile screenshotSRC = ts.getScreenshotAs(OutputType.FILE);\n\t\t\tString path = System.getProperty(\"user.dir\") + \"/Screenshots/\" + testStepName + System.currentTimeMillis()\n\t\t\t\t\t+ \".png\";\n\t\t\tFile screenshotDest = new File(path);\n\t\t\tFileUtils.copyFile(screenshotSRC, screenshotDest);\n\t\t\treturn path;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Some exception occured.\" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}",
"public static void screenShot(WebDriver driver, String desc) {\n\t\tDate currentTime = new Date();\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd-hh-mm-ss\");\n\t\tString dateString = formatter.format(currentTime);\n\t\tFile scrFile = ((TakesScreenshot) driver)\n\t\t\t\t.getScreenshotAs(OutputType.FILE);\n\t\ttry {\n\t\t\tdesc = desc.trim().equals(\"\") ? \"\" : \"-\" + desc.trim();\n\t\t\tFile screenshot = new File(\"screenshot\" + File.separator\n\t\t\t\t\t+ dateString + desc + \".png\");\n\t\t\tFileUtils.copyFile(scrFile, screenshot);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static String captureScreenshotOfDesktop() {\n\t\ttry {\n\t\t\tRobot robot = new Robot();\n\t\t\tBufferedImage tmp = robot.createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()));\n\t\t\tString path = System.getProperty(\"user.dir\") + \"/Screenshots/\" + System.currentTimeMillis() + \".png\";\n\t\t\tImageIO.write(tmp, \"png\", new File(path));\n\t\t\treturn path;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Some exception occured.\" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\n\t}",
"public static String getScreenshot(WebDriver driver, String screenshotName) throws Exception {\n\t\tString dateName = new SimpleDateFormat(\"yyyyMMddhhmmss\").format(new Date());\n\t\tTakesScreenshot ts = (TakesScreenshot) driver;\n\t\tFile source = ts.getScreenshotAs(OutputType.FILE);\n\t\t// after execution, you could see a folder \"FailedTestsScreenshots\" under src\n\t\t// folder\n\t\tString destination = System.getProperty(\"user.dir\") + \"/FailedTestsScreenshots/\" + screenshotName + dateName\n\t\t\t\t+ \".png\";\n\t\tFile finalDestination = new File(destination);\n\t\tFileUtils.copyFile(source, finalDestination);\n\t\treturn destination;\n\t}",
"public static void main(String[] args) throws Exception{\n Home_Page.lnk_SignIn().click();\n LogIn_Page.txtbx_UserName().sendKeys(Constant.Username);\n LogIn_Page.txtbx_Password().sendKeys(Constant.Password);\n LogIn_Page.btn_LogIn().click();\n System.out.println(\" Login Successfully, now it is the time to Log Off buddy.\");\n Home_Page.lnk_LogOut().click(); \n File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n System.out.println(System.getProperty(\"user.dir\") + \"//data//CaptureScreenshot//google.jpg\");\n FileUtils.copyFile(scrFile, new File(System.getProperty(\"user.dir\") + \"//data//CaptureScreenshot//google.jpg\"));\n driver.quit();\n }",
"@SuppressWarnings(\"unused\")\r\n private void drawPicture() {\r\n // initialize variables\r\n Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();\r\n BufferedImage screenShot = null;\r\n\r\n // create screenshot\r\n Rectangle screenShotRect = new Rectangle(0, 0, dimension.width, dimension.height);\r\n try {\r\n screenShot = new Robot().createScreenCapture(screenShotRect);\r\n } catch (AWTException e1) {\r\n e1.printStackTrace();\r\n return;\r\n }\r\n File file = new File(\"tmp/warp_V3_\" + System.currentTimeMillis() + \".png\");\r\n\r\n try {\r\n // create screenshot graphic\r\n Graphics2D graphic = screenShot.createGraphics();\r\n graphic.setFont(graphic.getFont().deriveFont(5));\r\n\r\n // visualize fixation point\r\n graphic.setColor(new Color(255, 0, 0, 255));\r\n graphic.drawOval(this.fixation.x - 5, this.fixation.y - 5, 10, 10);\r\n graphic.drawChars((\"fixation point\").toCharArray(), 0, 14, 12 + this.fixation.x, 12 + this.fixation.y);\r\n graphic.drawChars((\"\" + this.angleStartEnd).toCharArray(), 0, (\"\" + this.angleStartEnd).toCharArray().length, 12 + this.fixation.x, 24 + this.fixation.y);\r\n graphic.setColor(new Color(255, 0, 0, 32));\r\n graphic.fillOval(this.fixation.x - 5, this.fixation.y - 5, 10, 10);\r\n\r\n // visualize mouse vector\r\n // TODO add for-loop do iterate through mousepositions\r\n for (int i = 0; i < this.mousePositions.size() - 2; i++) {\r\n graphic.setColor(new Color(0, 0, 255, 255));\r\n graphic.drawOval((int) this.mousePositions.get(i).getX() - 5, (int) this.mousePositions.get(i).getY() - 5, 10, 10);\r\n graphic.drawChars((\"\" + i).toCharArray(), 0, (\"\" + i).toCharArray().length, (int) this.mousePositions.get(i).getX() + 12, (int) this.mousePositions.get(i).getY() + 12);\r\n graphic.setColor(new Color(0, 0, 255, 32));\r\n graphic.fillOval((int) this.mousePositions.get(i).getX() - 5, (int) this.mousePositions.get(i).getY() - 5, 10, 10);\r\n graphic.drawLine((int) this.mousePositions.get(i).getX(), (int) this.mousePositions.get(i).getY(), (int) this.mousePositions.get(i + 1).getX(), (int) this.mousePositions.get(i + 1).getY());\r\n }\r\n graphic.setColor(new Color(0, 0, 255, 255));\r\n graphic.drawOval((int) this.mousePositions.get(this.mousePositions.size() - 1).getX() - 5, (int) this.mousePositions.get(this.mousePositions.size() - 1).getY() - 5, 10, 10);\r\n graphic.drawChars((\"\" + (this.mousePositions.size() - 1)).toCharArray(), 0, (\"\" + (this.mousePositions.size() - 1)).toCharArray().length, (int) this.mousePositions.get(this.mousePositions.size() - 1).getX() + 12, (int) this.mousePositions.get(this.mousePositions.size() - 1).getY() + 12);\r\n graphic.setColor(new Color(0, 0, 255, 32));\r\n graphic.fillOval((int) this.mousePositions.get(this.mousePositions.size() - 1).getX() - 5, (int) this.mousePositions.get(this.mousePositions.size() - 1).getY() - 5, 10, 10);\r\n\r\n // calculate and visualize setpoint\r\n graphic.setColor(new Color(0, 255, 0, 255));\r\n graphic.drawOval(this.setPoint.x - 5, this.setPoint.y - 5, 10, 10);\r\n graphic.drawChars((\"set point\").toCharArray(), 0, 9, 12 + this.setPoint.x, 12 + this.setPoint.y);\r\n graphic.setColor(new Color(0, 255, 0, 32));\r\n graphic.fillOval(this.setPoint.x - 5, this.setPoint.y - 5, 10, 10);\r\n\r\n // write the image\r\n file.mkdirs();\r\n ImageIO.write(screenShot, \"png\", file);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public static String takeFailedScreenShot() throws IOException {\n\t\tTakesScreenshot scrShot =((TakesScreenshot)driver);\n\t\tString dateName = new SimpleDateFormat(\"yyyyMMddhhmmss\").format(new Date());\n\t\tString fileWithPath = (prop.getProperty(\"FAILEDSCREENSHOT_DIR\") + \"\\\\\"+ GenLogTC() + dateName + \".jpg\");\n\t\tFile SrcFile=scrShot.getScreenshotAs(OutputType.FILE);\n\t\tFile DestFile=new File(fileWithPath);\n\t\tFileUtils.copyFile(SrcFile, DestFile);\n\t\tString absPath = Paths.get(fileWithPath).toAbsolutePath().toString();\n\t\treturn absPath;\n\t}",
"private void saveGraph() {\n try(FileOutputStream fileOut = new FileOutputStream(graphPath + OVERLAY_GRAPH);\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut))\n {\n objectOut.writeObject(graph);\n System.out.println(\"The overlay graph was successfully written to a file\");\n } catch (Exception ex) {\n System.out.println(\"Error writing the overlay graph\");\n ex.printStackTrace();\n }\n }",
"public static String getScreenshot(String screenshotName) throws IOException {\n\t\tString dateName = new SimpleDateFormat(dateFormat).format(new Date());\n\t\tTakesScreenshot ts = (TakesScreenshot) driver;\n\t\tsource = ts.getScreenshotAs(OutputType.FILE);\n\t\tString destination = screenShotPath + screenshotName + nameSeparator + dateName + screenShotType;\n\t\tfinalDestination = new File(destination);\n\t\tFileUtils.copyFile(source, finalDestination);\n\t\treturn destination;\n\t}",
"public static String captureScreenshot(String screenshotName) {\n\t\ttry {\n\t\t\tTakesScreenshot takeScreenshot = (TakesScreenshot) driver;\n\t\t\tFile srcFile = takeScreenshot.getScreenshotAs(OutputType.FILE);\n\t\t\tString dest = \"screenshots\\\\\" + screenshotName + \".png\";\n\t\t\tFile destinationFile = new File(dest);\n\t\t\tFileUtils.copyFile(srcFile, destinationFile);\n\t\t\treturn destinationFile.getAbsolutePath();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Exception while taking screenshot \" + e.getMessage());\n\t\t}\n\t\treturn screenshotName + \".png\";\n\t}",
"public static String getScreenshot(String testclass, String testname) throws IOException {\n\n\t\t//log.info(\"taking screenshot for failed test case: \" + testclass + \"_\" + testname);\n\t\tString filePath = \"./src/test/resources/screenshots/\";\n\t\tString timestamp = new SimpleDateFormat(\"yyyyMMddhhmmss\").format(new Date());\n\n\t\tString path = filePath + testclass + \"_\" + testname + \"_\" + timestamp;\n\n\t\tFile scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\n\t\ttry {\n\t\t\tFileUtils.copyFile(scrFile, new File(path + \".png\"));\n\t\t\t//log.info(\"screenshot captured at: \" + path + \".png\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn path + \".png\";\n\t}",
"public void getScreenShot(StackTraceElement l, Exception e, String description, WebDriver driver) throws IOException {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd, HH.mm.ss\");\n\t\t\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t\t\tString message1 = null;\t\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\t message1 = e.getCause().toString();\n\t\t\t\t} \n\t\t\t\tcatch(NullPointerException e1) {\n\t\t\t\tmessage1 = \".getCause() by NullPointerException:\";\n\t\t\t\t}\n\t\t\t\tfinally {\n\t\t\t\tString [] multiline1 = message1.replaceAll(\"\\\\r\", \"\").split(\"\\\\n\");\n\t\t\t\tString firstLine = multiline1[0];\n\t\t\t\tString errorCause = firstLine.substring(0,firstLine.indexOf(\":\"));\n\t\t\t\tString exceptionThrown = errorCause.substring(1 + errorCause.lastIndexOf(\".\"), errorCause.length());\n\t\t\t\t \n\t\t\t\tString packageNameOnly = l.getClassName().substring(0, l.getClassName().lastIndexOf(\".\"));\n\t\t\t\tString classNameOnly = l.getClassName().substring(1 + l.getClassName().lastIndexOf(\".\"), l.getClassName().length());\n\t\t\t\tString exception = exceptionThrown;\n\t\t\t\tString screenshotName = classNameOnly + \".\" + l.getMethodName() + \", \" + exception + \", \" + description + \", line # \" + l.getLineNumber();\n\n\t\t\t\tString outputFile = Common.outputFileDir + packageNameOnly + File.separator + classNameOnly + File.separator + screenshotName + \" (\" + dateFormat.format(new Date()) + \").png\";\n\t\t\t\tfileWriterPrinter(outputFile);\n\t\t\t\tFileUtils.copyFile(scrFile, new File(outputFile));\n\t\t\t\t}\n\t\t\t\t}"
] | [
"0.73450965",
"0.7008144",
"0.69000655",
"0.688735",
"0.6836219",
"0.67768997",
"0.6751329",
"0.67414075",
"0.6700398",
"0.6685609",
"0.6677153",
"0.6670364",
"0.6666285",
"0.6660913",
"0.6654807",
"0.6598232",
"0.65793145",
"0.65538037",
"0.6546607",
"0.65382445",
"0.6513032",
"0.6477859",
"0.6472488",
"0.642824",
"0.6416855",
"0.6405614",
"0.63922966",
"0.63734496",
"0.63621294",
"0.6354961",
"0.63226706",
"0.63111335",
"0.62865853",
"0.62809736",
"0.62683195",
"0.62634957",
"0.6257325",
"0.6253506",
"0.62476534",
"0.6232651",
"0.62274224",
"0.6206578",
"0.6181221",
"0.617861",
"0.6175478",
"0.6169233",
"0.6162597",
"0.614448",
"0.6142161",
"0.6140499",
"0.6137943",
"0.611795",
"0.611768",
"0.60940826",
"0.6086237",
"0.60778105",
"0.6074176",
"0.60722905",
"0.6071803",
"0.60609865",
"0.60608816",
"0.6041629",
"0.60382706",
"0.6034922",
"0.60345757",
"0.6025717",
"0.59945637",
"0.5990888",
"0.5979422",
"0.59774435",
"0.5971223",
"0.59709734",
"0.5969463",
"0.59637314",
"0.59463155",
"0.59266746",
"0.5904417",
"0.59003913",
"0.5900167",
"0.5898606",
"0.5891239",
"0.58812344",
"0.5861959",
"0.5848739",
"0.58481175",
"0.58481103",
"0.58340603",
"0.5823736",
"0.58211434",
"0.58113563",
"0.58112293",
"0.5807994",
"0.58051646",
"0.5800859",
"0.57902426",
"0.5788217",
"0.5783306",
"0.57469946",
"0.57422346",
"0.5729116",
"0.572692"
] | 0.0 | -1 |
Method used to compute elapsed time during the swing worker execution | public static String getElapsedTimeFromMilliseconds(long inputTime)
{
String format = String.format("%%0%dd", 2);
long elapsedTime = inputTime / 1000000;
String millisecond = String.format(format, elapsedTime % 1000);
String seconds = String.format(format, (elapsedTime/1000) % 60);
String minutes = String.format(format, ((elapsedTime/1000) % 3600) / 60);
String hours = String.format(format, (elapsedTime/1000) / 3600);
hours = hours.equals("00") ? "" : (Integer.parseInt(hours) < 9 ? hours.substring(hours.lastIndexOf("0") + 1)+":" :hours+":");
minutes = minutes.equals("00") ? "" : (Integer.parseInt(minutes) < 9 ? minutes.substring(minutes.lastIndexOf("0") + 1)+":" :minutes+":");
seconds = seconds.equals("00") ? "" : (Integer.parseInt(seconds) < 9 ? seconds.substring(seconds.lastIndexOf("0") + 1)+"," :seconds+",");
millisecond = millisecond.equals("00") ? "" : millisecond+(seconds.equals("") ? "ms":(minutes.equals("") ? " sec" : " min"));
String time = hours+minutes+seconds+millisecond;
return time;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long elapsedTime();",
"long getElapsedTime();",
"protected double getElapsedTime() {\n\t\treturn Utilities.getTime() - startTime;\n\t}",
"public long elapsedTime(){\n\n // calculate elapsed time by getting current CPU time and substracting the CPU time from when we started the stopwatch\n\n // this does not stop the stopwatch\n\n return (magicBean.getCurrentThreadCpuTime() - stopWatchStartTimeNanoSecs);\n\n }",
"public long getElapsedTime()\r\n {\r\n if(isRunning)\r\n {\r\n long endTime = System.currentTimeMillis();\r\n return elapsedTime=endTime-startTime;\r\n }\r\n else\r\n {\r\n return elapsedTime;\r\n }\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getWorkElapsed() {\n return (java.lang.Long)__getInternalInterface().getFieldValue(WORKELAPSED_PROP.get());\n }",
"public double computeElapsedTime() {\r\n\r\n long now = System.currentTimeMillis();\r\n\r\n elapsedTime = (double) (now - startTime);\r\n\r\n // if elasedTime is invalid, then set it to 0\r\n if (elapsedTime <= 0) {\r\n elapsedTime = (double) 0.0;\r\n }\r\n\r\n return (double) (elapsedTime / 1000.0); // return in seconds!!\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getWorkElapsed() {\n return (java.lang.Long)__getInternalInterface().getFieldValue(WORKELAPSED_PROP.get());\n }",
"public long timeElapsed()\n {\n return (System.currentTimeMillis() - this.startTime) / 1000;\n }",
"public long getTimeElapsed() {\r\n\t long now = new Date().getTime();\r\n\t long timePassedSinceLastUpdate = now - this.updatedSimTimeAt;\r\n\t return this.pTrialTime + timePassedSinceLastUpdate;\r\n\t}",
"public long getElapsedTime(){\n long timePassed = endTime - startTime;\n return timePassed;\n }",
"public double getElapsedTime()\n\t{\n\t\treturn elapsedTime;\n\t}",
"public static long GetElapsedTime() {\n\t\treturn System.currentTimeMillis() - _lTime;\n\t}",
"public long getTimeTaken();",
"public String elapsedTime() {\n return totalWatch.toString();\n }",
"public double getElapsedTime(){\n double CurrentTime = System.currentTimeMillis();\n double ElapseTime = (CurrentTime - startTime)/1000;\n return ElapseTime;\n }",
"public float getElapsed()\n {\n return this.elapsed;\n }",
"public void actionPerformed(ActionEvent evt) {\n\n timeElapsed = timeElapsed + 1;\n\n }",
"public double getElapsedTime()\n\t{\n\t\tdouble elapsedTime = 0. ;\n\t\tEnumeration<SpItem> children = children() ;\n\t\tSpItem child = null ;\n\n\t\twhile( children.hasMoreElements() )\n\t\t{\n\t\t\tchild = children.nextElement() ;\n\t\t\tif( child instanceof SpObs && (( SpObs )child).isOptional() )\n\t\t\t\t\telapsedTime += ( ( SpObs )child ).getElapsedTime() ;\n\t\t\telse if( child instanceof SpMSB )\n\t\t\t\telapsedTime += (( SpMSB )child).getElapsedTime() ;\n\t\t}\n\n\t\tint totRemaining = 0 ;\n\t\tfor( int i = 0 ; i < size() ; i++ )\n\t\t\ttotRemaining += getRemaining( i ) ;\n\n\t\telapsedTime *= totRemaining ;\n\t\treturn elapsedTime ;\n\t}",
"public static long getElapsedTime() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed;\n\t}",
"int getRunningDuration();",
"public static long getElapsedTimeSecs() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = ((System.nanoTime() - startTime)/1000000);\n\t\t} else {\n\t\t\telapsed = ((stopTime - startTime)/1000000);\n\t\t}\n\t\treturn elapsed;\n\t}",
"public int getTotalTime();",
"public long elapsedMillis() {\n/* 162 */ return elapsedTime(TimeUnit.MILLISECONDS);\n/* */ }",
"public double getElapsedTime() {\r\n return (double) (elapsedTime / 1000.0); // convert from milliseconds to seconds\r\n }",
"private static String elapsed(long start) {\r\n\treturn \": elapsed : \" + (System.currentTimeMillis() - start) + \" ms \";\r\n }",
"public float getSecondsElapsed() { return _startTime==0? 0 : (System.currentTimeMillis() - _startTime)/1000f; }",
"public long timeAlg(){\n long startTime = System.nanoTime();\n \n this.doTheAlgorithm();\n \n long endTime = System.nanoTime();\n long elapsedTime = endTime - startTime;\n \n return elapsedTime;\n }",
"public Double waitTimeCalculatior(long start) {\n\t\t\t\tdouble difference = (System.currentTimeMillis() - start);\n\t\t\t\treturn difference;\n\t\t\t}",
"public long getElapsedTime() {\n\t\treturn this.getTime();\n\t}",
"public long getElapsedTimeSecs() {\n return running ? ((System.currentTimeMillis() - startTime) / 1000) % 60 : 0;\n }",
"Duration subsystemFreezeDuration();",
"int checkElapsedTime(){\r\n\t\treturn gc.getElapsedTime();\r\n\t}",
"long getElapsedTime(Context context);",
"@DISPID(55)\r\n\t// = 0x37. The runtime will prefer the VTID if present\r\n\t@VTID(53)\r\n\tint actualCPUTime_Seconds();",
"private long getDuration() throws Exception {\n\treturn dtEnd.getTime() - dtStart.getTime();\n }",
"public abstract float getSecondsPerUpdate();",
"public void timePassed() {\r\n }",
"public void timePassed() {\r\n }",
"private long CurrentTime(){\n return (TotalRunTime + System.nanoTime() - StartTime)/1000000;\n }",
"public double getTimeRemaining() {\n\t\treturn (startingTime + duration) - System.currentTimeMillis();\n\t}",
"public void timePassed() {\r\n\r\n }",
"public void timePassed() { }",
"public long getElapsedSeconds() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerSs;\n\t}",
"public Long getElapsedTime() {\n return elapsedTime;\n }",
"long getExecutionTime();",
"public static long getElapsedTime() {\n long time = System.currentTimeMillis() - START_TIME;\n // long time = System.nanoTime() / 1000000;\n return time;\n }",
"long duration();",
"public long getElapsedMilliSecond() {\n long elapsed;\n if (running) {\n elapsed = (System.nanoTime() - startTime) / 1000000;\n } else {\n elapsed = (stopTime - startTime) / 1000000;\n }\n return elapsed;\n }",
"public int computeDuration() {\n return (int) Duration.between(getStart_time(), getEnd_time()).toSeconds();\n }",
"public void timePassed() {\n }",
"public void timePassed() {\n }",
"public String getEstimatedRemainingTime() {\n long d = executable.getParent().getEstimatedDuration();\n if(d<0) return \"N/A\";\n \n long eta = d-(System.currentTimeMillis()-startTime);\n if(eta<=0) return \"N/A\";\n \n return Util.getTimeSpanString(eta);\n }",
"public String getElapsedTime() {\n return elapsedTime;\n }",
"public void timePassed(double dt) {\n\n }",
"public void timePassed(double dt) {\n\n }",
"public long getElapsedTime() {\n long additionalRealTime = 0;\n\n if(mStartTime > 0) {\n additionalRealTime = System.currentTimeMillis() - mStartTime;\n }\n return mElapsedTime + additionalRealTime;\n }",
"public int getWorkRequired() {\n return time;\n }",
"public double getSecs( );",
"public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }",
"@DISPID(70)\r\n\t// = 0x46. The runtime will prefer the VTID if present\r\n\t@VTID(68)\r\n\tint averageCPUTime_Seconds();",
"public double getUpdateWaitDuration()\r\n {\r\n return updateWait;\r\n }",
"public long getLoopTime();",
"public long getElapsedMs()\n\t{\n\t\tif (m_running)\n\t\t{\n\t\t\tlong systemMs = SystemClock.elapsedRealtime();\n\t\t\treturn m_elapsedMs + (systemMs - m_lastMs);\n\t\t}\n\n\t\treturn m_elapsedMs;\n\t}",
"public float getTime()\r\n\t{\r\n\t\treturn runningTime;\r\n\t}",
"Double getRemainingTime();",
"public String getElapsedTime() {\n\n long elapsed;\n int mins;\n int secs;\n int millis;\n\n if (running) {\n elapsed = System.currentTimeMillis() - startTime;\n } else {\n elapsed = stopTime - startTime;\n }\n\n mins = (int) (elapsed / 60000);\n secs = (int) (elapsed - mins * 60000) / 1000;\n millis = (int) (elapsed - mins * 60000 - secs * 1000);\n\n //Keeps 3 digits when a second rolls over. Perhaps find a better way of doing this\n return (String.format(\"%02d\", mins) + \":\" + String.format(\"%02d\", secs) + \":\"\n + String.format(\"%03d\", millis));\n }",
"public void measure(){\n \tend = System.nanoTime(); \n \tlong elapsedTime = end - start;\n\n \t//convert to seconds \n \tseconds = (double)elapsedTime / 1000000000.0f;\n \tend =0; //歸零\n \tstart =0;\n }",
"DurationTracker timeSpentTaskWait();",
"public long getElapsedMilliseconds() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerMs;\n\t}",
"public long totalTime() {\n\t\tlong ret = 0;\n\t\tfor (Task l : plan) {\n\t\t\tret += l.getTaskLength();\n\t\t}\n\n\t\treturn ret;\n\t}",
"public void Update(double elapsedTime){\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getManagementElapsed() {\n return (java.lang.Long)__getInternalInterface().getFieldValue(MANAGEMENTELAPSED_PROP.get());\n }",
"public int totalTime() {\n int time = 0;\n for (List l : lists.getList()) time += l.obtainTotalTime();\n return time;\n }",
"public void updateTimer(int timeElapsed){\n mTimerText.setText(\n String.format(\"TIME LEFT: %ds\",10 - timeElapsed));\n mTimerProgressBar.setProgress((int)((timeElapsed/10.0)*100.0));\n }",
"private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}",
"@Override\n\tpublic long getTime() {\n\t\treturn System.nanoTime() - startTime;\n\t}",
"public long startTime();",
"@DISPID(56)\r\n\t// = 0x38. The runtime will prefer the VTID if present\r\n\t@VTID(54)\r\n\tint actualCPUTime_Milliseconds();",
"int getCPU_time();",
"public long getElapsedTicks() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerTick;\n\t}",
"long getTotalDoExamTime();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getManagementElapsed() {\n return (java.lang.Long)__getInternalInterface().getFieldValue(MANAGEMENTELAPSED_PROP.get());\n }",
"public long getElapsedTimeMili() {\n return running ? ((System.currentTimeMillis() - startTime)/100) % 1000 : 0;\n }",
"public double time() {\n long diff = System.nanoTime() - start;\n double seconds = diff * 0.000000001;\n return seconds;\n }",
"public void updateTime(){\r\n\t\tBlock selectedBlock = experiment.getBlocking().getSelectedBlockStructure();\r\n\t\testimatedTimeTotal.setText(secondsToString(estimateTime()));\r\n\t\testimatedTimeSubject.setText(secondsToString((long)(estimateTime()/selectedBlock.get(0).getReplications())));\r\n\t}",
"public long elapsedTime(long startTime,long endTime){\r\n\t\tlong elapsedTime=(endTime-startTime)/1000;\r\n\t\treturn elapsedTime;\r\n\t}",
"public static void startTimeMeasure() {\n \tstartTime = System.nanoTime();\n }",
"public static double toc() {\n\t\treturn System.currentTimeMillis() / 1000d - t;\n\t}",
"public double getStopTime();",
"@Override\r\n public void timePassed() {\r\n }",
"public long elapsedTime(TimeUnit desiredUnit) {\n/* 153 */ return desiredUnit.convert(elapsedNanos(), TimeUnit.NANOSECONDS);\n/* */ }",
"public static double getExecutionTimeInSeconds(){\n\t\treturn (executionTime * (1.0e-9));\n\t}",
"float getDuration() throws InterruptedException, ConnectionLostException;",
"long getDuration();",
"public int getTotalRunTime() {\n return totalRunTime;\n }",
"Duration getRemainingTime();",
"@Override\r\n public void timePassed(double dt) {\r\n\r\n }",
"@Override\r\n public void timePassed(double dt) {\r\n\r\n }",
"public int getDuration() {\n\t\treturn (int) ((endTime.getTime()-startTime.getTime())/1000) + 1;\n\t}",
"public double getTotalTime()\n\t{\n\t\tdouble elapsedTime = 0. ;\n\t\tEnumeration<SpItem> children = children() ;\n\t\tSpItem child = null ;\n\t\tboolean hasObsChild = false ;\n\n\t\twhile( children.hasMoreElements() )\n\t\t{\n\t\t\tchild = children.nextElement() ;\n\t\t\tif( child instanceof SpObs )\n\t\t\t{\n\t\t\t\thasObsChild = true ;\n\t\t\t\telapsedTime += (( SpObs )child).getElapsedTime() ;\n\t\t\t}\n\t\t\telse if( child instanceof SpMSB )\n\t\t\t{\n\t\t\t\telapsedTime += (( SpMSB )child).getTotalTime() ;\n\t\t\t}\n\t\t}\n\n\t\t// If there is an Obs child, we should add a slew time as well,\n\t\t// which is just the instrument slew time times the number of\n\t\t// targets. We don't do this if the child is an MSB since this\n\t\t// already adds a slew time\n\t\tdouble slewTime = 0. ;\n\t\tif( hasObsChild )\n\t\t{\n\t\t\tSpInstObsComp inst = SpTreeMan.findInstrument( this ) ;\n\t\t\tif( inst != null )\n\t\t\t\tslewTime = inst.getSlewTime() * size() ;\n\t\t}\n\n\t\t// Get the total number of repeats for each target\n\t\tint totRemaining = 0 ;\n\t\tfor( int i = 0 ; i < size() ; i++ )\n\t\t\ttotRemaining += getRemaining( i ) ;\n\n\t\telapsedTime *= totRemaining ;\n\t\telapsedTime += slewTime ;\n\n\t\treturn elapsedTime ;\n\t}"
] | [
"0.709886",
"0.70106155",
"0.69655484",
"0.684713",
"0.6634468",
"0.6574106",
"0.65623456",
"0.64895517",
"0.6488793",
"0.64690906",
"0.646693",
"0.6455619",
"0.6427015",
"0.6401965",
"0.6401755",
"0.6393895",
"0.62892014",
"0.6274551",
"0.62612486",
"0.6221759",
"0.6217945",
"0.62013793",
"0.61638105",
"0.6140059",
"0.61339974",
"0.61286426",
"0.6090304",
"0.60736686",
"0.6055964",
"0.60344785",
"0.60092825",
"0.60023606",
"0.5998428",
"0.5989044",
"0.59832364",
"0.5975057",
"0.5974582",
"0.5952049",
"0.5952049",
"0.59440315",
"0.59355205",
"0.5930014",
"0.59246504",
"0.5920535",
"0.5910212",
"0.5894322",
"0.58851093",
"0.586955",
"0.5846714",
"0.58450747",
"0.5844965",
"0.5844965",
"0.5835581",
"0.58261806",
"0.5815712",
"0.5815712",
"0.58105963",
"0.5782299",
"0.57582974",
"0.5752195",
"0.5749663",
"0.57479966",
"0.5742683",
"0.57402605",
"0.573914",
"0.57283145",
"0.57264614",
"0.5722291",
"0.57199657",
"0.5715958",
"0.570583",
"0.56890506",
"0.5679027",
"0.56699294",
"0.5668844",
"0.56677705",
"0.5667749",
"0.56635976",
"0.56632316",
"0.56566685",
"0.56419295",
"0.5627719",
"0.56269085",
"0.5623562",
"0.56226206",
"0.5620109",
"0.5601094",
"0.5600059",
"0.55980563",
"0.55935603",
"0.5589111",
"0.557493",
"0.5569525",
"0.55679154",
"0.5567597",
"0.5556562",
"0.5556058",
"0.5540271",
"0.5540271",
"0.5537477",
"0.5527488"
] | 0.0 | -1 |
Method used to autocenter the message under the JProgressbar dynamically | public static int alignMessageToJBar(JProgressBar inputBar, JLabel inputLabel)
{
FontMetrics fm = inputLabel.getFontMetrics(inputLabel.getFont());
int labelWidth = fm.stringWidth(inputLabel.getText());
int progressBarWidth = inputBar.getWidth();
int coordinateX = inputBar.getX();
int centerPoint = (int)coordinateX + (int)(progressBarWidth/2);
int labelMiddlePoint = (int)(labelWidth/2);
int result = centerPoint - labelMiddlePoint;
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void displayProgress(String message) {\n }",
"@Override\n protected void onProgressUpdate(String... values) {\n super.onProgressUpdate(values);\n String message = values[0];\n dialog.setMessage(waitMsg + message);\n displayProgress(message);\n }",
"@Override\n public void showProgress() {\n\n }",
"public void updateProgressMessage() {\n pb.setMax(frames);\n int rendered = getNumFramesRendered(this, projectName);\n pb.setProgress(Math.min(pb.getMax(), rendered));\n int n = pb.getMax();\n int ratio = (rendered * 100) / n;\n String temp = String.format(\"Progress: %d / %d (%d%%)\", rendered, n, ratio);\n progressMessage.setText(temp);\n }",
"private void setupProgressBar() {\n\t\tprogress_bar = new JProgressBar(0,words_to_spell.size());\n\t\tprogress_bar.setBounds(32, 170, 1284, 34);\n\t\tprogress_bar.setBorderPainted(false);\n\t\tprogress_bar.setBackground(Color.WHITE);\n\t\tprogress_bar.setStringPainted(true);\n\t\tprogress_bar.setString(\"\");\n\t\tadd(progress_bar);\n\t}",
"@Override\r\n\tprotected void onProgressUpdate(String... s) {\r\n\t\tactivity.addToGUI(s[0]);\r\n\t}",
"@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}",
"public abstract DialogBox showProgressBox(String message);",
"void showProgress();",
"String progressMessage();",
"void showTarProgressMessage(String msg);",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n iniProgressDialog(text.length());\n }",
"private void recreateOptionPaneMessage(JOptionPane optionPane)\r\n/* */ {\r\n/* 175 */ Object message = optionPane.getMessage();\r\n/* 176 */ if ((message instanceof String)) {\r\n/* 177 */ Font font = optionPane.getFont();\r\n/* 178 */ final JTextArea textArea = new JTextArea((String)message);\r\n/* 179 */ textArea.setFont(font);\r\n/* 180 */ int lh = textArea.getFontMetrics(font).getHeight();\r\n/* 181 */ Insets margin = new Insets(0, 0, lh, 24);\r\n/* 182 */ textArea.setMargin(margin);\r\n/* 183 */ textArea.setEditable(false);\r\n/* 184 */ textArea.setWrapStyleWord(true);\r\n/* 185 */ textArea.setBackground(optionPane.getBackground());\r\n/* 186 */ JPanel panel = new JPanel(new BorderLayout());\r\n/* 187 */ panel.add(textArea, \"Center\");\r\n/* 188 */ final JProgressBar progressBar = new JProgressBar();\r\n/* 189 */ progressBar.setName(\"BlockingDialog.progressBar\");\r\n/* 190 */ progressBar.setIndeterminate(true);\r\n/* 191 */ PropertyChangeListener taskPCL = new PropertyChangeListener() {\r\n/* */ public void propertyChange(PropertyChangeEvent e) {\r\n/* 193 */ if (\"progress\".equals(e.getPropertyName())) {\r\n/* 194 */ progressBar.setIndeterminate(false);\r\n/* 195 */ progressBar.setValue(((Integer)e.getNewValue()).intValue());\r\n/* 196 */ DefaultInputBlocker.this.updateStatusBarString(progressBar);\r\n/* */ }\r\n/* 198 */ else if (\"message\".equals(e.getPropertyName())) {\r\n/* 199 */ textArea.setText((String)e.getNewValue());\r\n/* */ }\r\n/* */ }\r\n/* 202 */ };\r\n/* 203 */ getTask().addPropertyChangeListener(taskPCL);\r\n/* 204 */ panel.add(progressBar, \"South\");\r\n/* 205 */ injectBlockingDialogComponents(panel);\r\n/* 206 */ optionPane.setMessage(panel);\r\n/* */ }\r\n/* */ }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tshowDialog(progress_bar_type);\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tshowDialog(progress_bar_type);\n\t\t}",
"@Override\n protected void onPreExecute() {\n this.progressDialog.setMessage(\"Adding workouts...\");\n this.progressDialog.show();\n }",
"void showProgressDialog(CharSequence message);",
"@Override\n\tpublic void updateProgessDialog(String title, String message, boolean visible, Integer increment) {\n\t\t\n\t}",
"void showModalProgress();",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n loadingText.setText(loadingHints[random.nextInt(loadingHints.length)]);\n // [... Обновите индикатор хода выполнения, уведомления или другой\n // элемент пользовательского интерфейса ...]\n }",
"public void displayInterimPopupWithProgress(\n Icon icon,\n String title,\n String message,\n Color color,\n int msecsToDisplayFor,\n int currentProgress,\n int maxProgress);",
"public void run()//actualiza areaPantalla \n {\n areaPantalla.append(mensajeAMostrar);\n areaPantalla.setCaretPosition(\n areaPantalla.getText().length());\n\n }",
"@Override\n public void showProgressSync() {\n }",
"void onShowProgress();",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tdisplayArea.append(messageToDisplay);\r\n\t\t\t\tdisplayArea.setCaretPosition(displayArea.getText().length());\t//把文本区域中的输入光标定位到文本区域中最后一个字符之后\r\n\t\t\t}",
"private void showFinishMsg() {}",
"private void setUiDuringBackgroundTask(String progress) {\n progressDialog.setMessage(progress);\n\n setInfo(progress);\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n progressDialog.setMessage(text.substring(0,values[0]));\n progressDialog.setProgress(values[0]);\n }",
"private void showProgress(String message) {\n \tif(mProgress==null){\n \t\tmProgress = new ProgressDialog(stActivity);\n\t mProgress.setMessage(message);\n\t mProgress.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n\t mProgress.setIndeterminate(true);\n\t mProgress.setCancelable(false); \n\t mProgress.show();\n \t}\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n pd=new ProgressDialog(c);\n pd.setTitle(\"Send\");\n pd.setMessage(\"Sending..Please wait\");\n pd.show();\n }",
"@Override\n\tpublic void preExecution() {\n\t\tshowProgressBar();\n\t}",
"private void showSpinerProgress() {\n dialog.setMessage(\"Loading\");\n//\n// dialog.setButton(ProgressDialog.BUTTON_POSITIVE, \"YES\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n//\n// }\n// });\n\n //thiet lap k the huy - co the huy\n dialog.setCancelable(false);\n\n //show dialog\n dialog.show();\n Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n dialog.dismiss();\n }\n }, 20000000);\n }",
"@Override\n public void setText(String text) {\n myProgressManager.setText2(this, text);\n }",
"public void run(){\n\t\t\t\tsetIconImage(new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB));\n\t\t\t\tsetTitle(msg);\n\t\t\t\t\n\t\t\t\t//createGUI\n\t\t\t\tloadBar = new JProgressBar();\n\t\t\t\tadd(BorderLayout.CENTER, loadBar);\n\t\t\t\tmessageLabel.setText(msg + \"...\");\n\t\t\t\tadd(BorderLayout.NORTH, messageLabel);\n\t\t\t\tsetDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\t\t\tsetSize(300, 75);\n\t\t\t\tsetPreferredSize(getSize());\n\t\t\t\tsetPercentage(0);\n\t\t\t\tsetResizable(false);\n\t\t\t\tsetLocationRelativeTo(null);\n\t\t\t\tsetVisible(true);\n\t\t\t}",
"void startProgress();",
"@Override\n\tpublic boolean handleMessage(Message arg0) {\n\t\tlong currentWidth = arg0.getData().getLong(\"status\");\n\t\tprogress.getLayoutParams().width = (int) (currentWidth * width / (duration / 40));\n\t\tprogress.requestLayout();\n\n\t\treturn true;\n\t}",
"private void showMessage(String msg) {\n msgBar.setText(msg);\n new Thread(() -> {\n try {\n Thread.sleep(3 * 1000); // 3 seconds\n } catch (InterruptedException e) {\n }\n if (msg.equals(msgBar.getText())) {\n SwingUtilities.invokeLater(() -> msgBar.setText(\" \"));\n }\n }).start();\n }",
"private void showMessage(String msg) {\n msgBar.setText(msg);\n new Thread(() -> {\n try {\n Thread.sleep(3 * 1000); // 3 seconds\n } catch (InterruptedException e) {\n }\n if (msg.equals(msgBar.getText())) {\n SwingUtilities.invokeLater(() -> msgBar.setText(\" \"));\n }\n }).start();\n }",
"private void displayProgressDialog() {\n pDialog.setMessage(\"Logging in.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }",
"@Override\n public void displayMessage(String message)\n {\n Platform.runLater(() -> {\n gui.getStatusText().scheduleMessage(message, 2000.0);\n });\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\ttry {\n\t\t\t\tdialog.setIndeterminate(false);\n\t\t\t\tdialog.setMax(100);\n\t\t\t\tdialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n\t\t\t\tdialog.setCancelable(false);\n\t\t\t\tdialog.show();\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\t\t}",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n /* mProgress.setMessage(\"Please Wait\");\n mProgress.setCancelable(false);\n mProgress.show();*/\n String msg = \"Please Wait....\";\n cd.showProgressDialog(msg);\n }",
"private void showMessage ( final String str ){\r\n\t\tSwingUtilities.invokeLater(\r\n\t\t\t\tnew Runnable(){\r\n\t\t\t\t\tpublic void run(){\r\n\t\t\t\t\t\tdisplayArea.append(str);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\r\n );\r\n\t}",
"protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }",
"private void updateProgressBar() {\n\t\tdouble current = model.scannedCounter;\n\t\tdouble total = model.fileCounter;\n\t\tdouble percentage = (double)(current/total);\n\t\t\n\t\t//Update Progress indicators\n\t\ttxtNumCompleted.setText((int) current + \" of \" + (int) total + \" Completed (\" + Math.round(percentage*100) + \"%)\");\n\t\tprogressBar.setProgress(percentage);\n\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t progressDialog = new AutoTuningInitDialog(mChannelActivity, R.style.dialog);\n\t\t\tprogressDialog.show();\t\t\n\t\t\tsuper.onPreExecute();\n\t\t}",
"private void displayProgressDialog() {\n pDialog.setMessage(\"Logging In.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n }",
"@Override\n public void update(final Progress progress) {\n SwingUtilities.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n progressBar.setValue(progress.getIntPercentage());\n progressField.setText(roundToSingleDigit(progress.getPercentage()) + \"%\");\n }\n });\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n progressDialog = new ProgressDialog(AiutaGliAltri.this);\n progressDialog.setMessage(\"Attendi...\");\n progressDialog.setIndeterminate(true);\n progressDialog.setCanceledOnTouchOutside(false);\n progressDialog.show();\n }",
"private void updateProgress() {\n progressBar.setProgress( (1.0d * currentQuestion) / numQuestions);\n }",
"public void increment() { this.progressBar.setValue(++this.progressValue); }",
"public static void updateProgressBar() {\r\n mHandler.postDelayed(mUpdateTime, 100);\r\n }",
"@Override\n protected void onPreExecute() {\n\n this.dialog.setMessage(\"Please wait ...\");\n this.dialog.show();\n }",
"void showQueuingBuildProgress();",
"public synchronized void progress(String s){\n\t\tif(printStdErr){\n\t\t\tSystem.err.println(\"[PROGRESS] \" + s);\n\t\t}\n\t}",
"public void setBar(JProgressBar bar){\n prog = bar;\n }",
"@Override\r\n protected void onProgressUpdate(String... updateString) {\n Log.d( TAG, \"Progress update: \" + updateString );\r\n progressDialog.setMessage( updateString[0] );\r\n }",
"public void setBarLabel(String message) {\n progressBarLabel.setText(message);\n }",
"private void updateUI() {\n handler_.post(new Runnable() {\n public void run() {\n bar_.setProgress(time_);\n String remTimeStr = \"\" + (maxTime_ - time_);\n timeRemaining_.setText(REM_STRING.replace(\"?\", remTimeStr));\n }\n });\n }",
"public void onProgressUpdate(int numRouleau,String prochain);",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tprogressDialog.show();\n\t\t\tprogressDialog.setMessage(\"Contacting server for sharing...\");\n\t\t}",
"@Override\n public void showProgressBar() {\n MainActivity.sInstance.showProgressBar();\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n /*mProgress.setMessage(\"Please Wait\");\n mProgress.show();\n mProgress.setCancelable(false);*/\n }",
"void setProgress(int progress);",
"void setProgress(int progress);",
"@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\n\t\tprogress = ProgressDialog.show(act, \"\", \"Please wait ...\", true);\n\t\talert = new AlertDialog.Builder(act);\n\n\t}",
"public void progressMade();",
"protected void onProgressUpdate(String... progress) {\n\t\t\t\t\t\t// Set progress percentage\n\t\t\t\t\t\tprgDialog.setProgress(Integer.parseInt(progress[0]));\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onProgress(ProgressMessage msg) {\n\n\t\t\t}",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n pDialog.setProgress(progress[0]);\n\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }",
"private void showProgressDialogWithTitle(String substring) {\n progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progressDialog.setCancelable(false);\n progressDialog.setMessage(substring);\n progressDialog.show();\n }",
"@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n//\t\t\t\tpDialog.setMessage(\"Relax for a while...\");\n//\t\t\t\tpDialog.setCancelable(false);\n//\t\t\t\tpDialog.show();\n\t\t\t\t\n\t\t\t}",
"protected void showProgress(int messageId) {\r\n\t\tshowProgress(getString(messageId));\r\n\t}",
"public Searching6() {\r\n try {UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}\r\n catch (Exception e) {}\r\n initComponents();\r\n progBar = new JProgressBar(0, 100);\r\n jPanel2.add(progBar);\r\n progBar.setBounds(70, 10, 280, 20);\r\n new Thread(new thread1()).start();\r\n\r\n /*for (int i=0; i<=100; i++){ //Progressively increment variable i\r\n progBar.setValue(i); //Set value\r\n progBar.repaint();\r\n }*/\r\n }",
"@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }",
"@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }",
"@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }",
"@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n progress = new ProgressDialog(activity);\n progress.setMessage(\"registering..... \");\n progress.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progress.setIndeterminate(true);\n progress.setCancelable(false);\n progress.show();\n\n }",
"@Override\r\n public void handleMessage(Message msg) {\n switch (msg.what) {\r\n case 0:\r\n // update progress bar\r\n CloseJob.this.myprogress.setMessage(\"\" + (String) msg.obj);\r\n break;\r\n case 1:\r\n CloseJob.this.myprogress.cancel();\r\n finish();\r\n break;\r\n }\r\n super.handleMessage(msg);\r\n }",
"@Override\n protected void onPreExecute() {\n String msg = \"Please Wait....\";\n cd.showProgressDialog(msg);\n\n }",
"@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }",
"@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n //Shows the ProgressDialog and sets the progress/message shown\n progressDialog.show();\n progressDialog.setTitle(\"Uploading\");\n progressDialog.setProgress(progress[0]);\n progressDialog.setMessage(String.valueOf(progress[0]) + \"%\");\n }",
"@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tpDialog.setMessage(\"Relax for a while...\");\n\t\t\t\tpDialog.setCancelable(false);\n\t\t\t\tpDialog.show();\n\t\t\t}",
"@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tpDialog.setMessage(\"Relax for a while...\");\n\t\t\t\tpDialog.setCancelable(false);\n\t\t\t\tpDialog.show();\n\t\t\t}",
"private void setProgress(String what)\n {\n if (progressBar != null)\n {\n double elapsed = (System.currentTimeMillis() - startMs) / 1000.;\n String etl = String.format(\"Elapsed: %4.0f\", elapsed);\n progressBar.setEstTime(etl);\n progressBar.setWorkingOn(what);\n progressBar.setProgress(-1);\n }\n }",
"@Override\n protected void onPreExecute() {\n mProgress = new ProgressDialog(ctx);\n mProgress.setMessage(\"Finding current location\");\n mProgress.show();\n super.onPreExecute();\n }",
"public abstract void displayMsgBeforeRun();",
"@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tsuper.onProgressUpdate(progress);\n\n\t\t\tdialog.setProgress(progress[0]);\n\t\t}",
"private void \t\t\t\t\tcreateDialogProgressBar(String mess)\n\t{\n\t\tthis.progress_dialog = new ProgressDialog(this);\n\t\tthis.progress_dialog.setMessage(mess);\n\t\tthis.progress_dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n\t\tthis.progress_dialog.setIndeterminate(true);\n\t\tthis.progress_dialog.setCancelable(false);\n\t\tthis.progress_dialog.show();\n\t}",
"protected void onAsyncProgress(String message, int progress){\n \tString end = ((progress > 0) ? \" \" + progress + \"% \" : \"\");\n \tsendMessage(currentClient, MSG_PROGRESS, currentRequest, message + end);\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n /*mProgress.setMessage(\"Receiving.....\");\n mProgress.show();\n mProgress.setCancelable(false);*/\n }",
"public void showSavingHint(int count) {\n if (count != 0) {\n if (this.mProgressDialog == null) {\n this.mProgressDialog = new ProgressDialog(this.mActivity);\n this.mProgressDialog.setOnKeyListener(this.mProgressDialogKeyListener);\n this.mProgressDialog.setProgressStyle(0);\n this.mProgressDialog.setCancelable(false);\n }\n this.mProgressDialog.setMessage(String.format(this.mActivity.getAndroidContext().getResources().getString(R.string.burst_saving_hint), new Object[]{Integer.valueOf(count)}));\n this.mProgressDialog.show();\n }\n }",
"private void showHorizontalProgress(final String title, final String message, final boolean isCancellable) {\n\t\tmProgressDialog.setCancelable(isCancellable);\n\t\tmProgressDialog.setTitle(title);\n\t\tmProgressDialog.setMessage(message);\n\t\tmProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n\t\tmProgressDialog.setProgress(0);\n\t\tmProgressDialog.setMax(100);\n\t\tmProgressDialog.show();\n\t}",
"public static void updateMessageBox() {\n\t}",
"@Override\n\tprotected void onProgressUpdate(Integer... values) {\n\t\tint len = progressBar.getProgress() + values[0];\n\t\tprogressBar.setProgress(len);\n\t\tString str = progressBar.getProgress() * 100 / progressBar.getMax()\n\t\t\t\t+ \"%\";\n\t\ttv.setText(\"下载完成\" + str);\n\t\tsuper.onProgressUpdate(values);\n\t}",
"@Override\n protected void onPreExecute() {\n\n pd.setMessage(\"Please Wait....\");\n pd.show();\n pd.setCancelable(false);\n\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jProgressBar1 = new javax.swing.JProgressBar();\n jLabel2 = new javax.swing.JLabel();\n MyProgress = new javax.swing.JProgressBar();\n Percentage = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(0, 153, 153));\n jLabel1.setText(\"Pharmacy Management System\");\n\n jLabel2.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Jeaml\\\\Downloads\\\\pharmacy-logo.jpg\")); // NOI18N\n jLabel2.setText(\"jLabel2\");\n\n Percentage.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n Percentage.setText(\" \");\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(jProgressBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(301, 301, 301)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(61, 61, 61)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 729, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(230, 230, 230)\n .addComponent(MyProgress, javax.swing.GroupLayout.PREFERRED_SIZE, 402, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(79, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(Percentage, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(385, 385, 385))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(45, 45, 45)\n .addComponent(jLabel1)\n .addGap(52, 52, 52)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(1, 1, 1)\n .addComponent(Percentage, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(MyProgress, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 86, Short.MAX_VALUE)\n .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n pack();\n setLocationRelativeTo(null);\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pd = ProgressDialog.show(_contexto, \"Aviso\", \"Actualizando ticket \" + numTicket + \" ...\", true);\n }",
"public void setStateToInProgress() {\n progressBar.setIndeterminate(true);\n progressBarLabel.setText(\"Simulation is in progress...\");\n openFolderButton.setVisible(false);\n }"
] | [
"0.6718327",
"0.6584296",
"0.62769073",
"0.62546",
"0.6226998",
"0.62241215",
"0.6209233",
"0.61079997",
"0.61074364",
"0.6036143",
"0.5973619",
"0.59636575",
"0.5958475",
"0.5923779",
"0.5923779",
"0.59103304",
"0.5907738",
"0.58756214",
"0.5858428",
"0.5844481",
"0.58430594",
"0.5826619",
"0.58076316",
"0.5792422",
"0.5790808",
"0.5778035",
"0.57698834",
"0.57654023",
"0.57627577",
"0.5760936",
"0.57434964",
"0.57268107",
"0.570917",
"0.5703465",
"0.57013196",
"0.56989497",
"0.5697651",
"0.5697651",
"0.5687729",
"0.56863874",
"0.5679012",
"0.5658804",
"0.5649214",
"0.56485003",
"0.56436",
"0.56207764",
"0.5609815",
"0.5608611",
"0.56023955",
"0.5585913",
"0.5580512",
"0.55702573",
"0.5559841",
"0.5553152",
"0.5550946",
"0.5547618",
"0.5534967",
"0.5525019",
"0.5524852",
"0.55192983",
"0.55189157",
"0.5514673",
"0.5514467",
"0.5514013",
"0.5514013",
"0.5504813",
"0.5499206",
"0.54991853",
"0.54947495",
"0.5493779",
"0.549349",
"0.549301",
"0.5485908",
"0.54855275",
"0.54663193",
"0.54663193",
"0.54663193",
"0.54663193",
"0.5462061",
"0.5460352",
"0.5457593",
"0.54564184",
"0.54564184",
"0.54544926",
"0.54529303",
"0.54529303",
"0.5447759",
"0.54456604",
"0.5443801",
"0.5435022",
"0.54349905",
"0.54324543",
"0.542992",
"0.54286736",
"0.5425309",
"0.5421768",
"0.5408261",
"0.5407937",
"0.54069525",
"0.5404556",
"0.5401654"
] | 0.0 | -1 |
Method used to get an indicative track duration time with an approximation of half a minute | public static String trackDurationConverter(int secondsInput)
{
String result;
if(secondsInput > 0)
{
String tmpSec = "";
int tmpMin = 0;
String seconds = Integer.toString(secondsInput % 60);
String minutes = Integer.toString((secondsInput/60) % 60);
String hours = Integer.toString((secondsInput/60) / 60);
seconds = Integer.parseInt(seconds) < 9 ? "0"+seconds : seconds;
minutes = Integer.parseInt(minutes) < 9 ? "0"+minutes : minutes;
hours = Integer.parseInt(hours) < 9 ? "0"+hours : hours;
if(Integer.parseInt(seconds) <= 30)
{
tmpSec = "30";
tmpMin = Integer.parseInt(minutes);
}
else
{
tmpSec = "00";
tmpMin = Integer.parseInt(minutes) + 1;
}
String tmpResult = tmpMin < 9 ? "0"+Integer.toString(tmpMin) : Integer.toString(tmpMin);
String typeOfTime = tmpResult.equals("00") ? " sec" : " min";
result = "circa " + tmpResult + ":" + tmpSec + typeOfTime;
return result;
}
else
{
return result = "-1";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Double getActualDuration();",
"public double getTime() { return duration; }",
"long getDurationNanos();",
"Posn getDuration();",
"long getDuration();",
"long duration();",
"public Long getDurationMs();",
"public double getFrameDuration();",
"public int getDuration();",
"public String duration(){\n long duration =beginTime.getTime()-endTime.getTime();\n long diffMinutes = duration / (60 * 1000) % 60;\n long diffHours = duration / (60 * 60 * 1000);\n if(diffHours ==0)\n return -1*diffMinutes + \" minutes\";\n else\n return \" \"+-1*diffHours+\":\"+ -1*diffMinutes +\"min\";\n }",
"int getDuration();",
"int getDuration();",
"double getFullTime();",
"org.apache.xmlbeans.GDuration getDuration();",
"@Override\n public float getTimeInSeconds() {\n return getTime() * INVERSE_TIMER_RESOLUTION;\n }",
"long getDuration(TimeUnit timeUnit);",
"public double getSecs( );",
"public double getTime(int timePt);",
"java.lang.String getDuration();",
"public default int getDuration(int casterLevel){ return Reference.Values.TICKS_PER_SECOND; }",
"public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }",
"public long getSessionDuration(){\n return (currentTime-startTime)/1000;\n }",
"private String convertToDuration(Long songDuration){\n long seconds = songDuration/1000;\n long minutes = seconds / 60;\n seconds = seconds % 60;\n return minutes +\":\"+seconds;\n }",
"private int normalizeTime() {\n int currentTimeSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // The graphing interval in minutes\n // TODO not hardcoded :3\n int interval = 30;\n\n // calculate the devisor denominator\n int denom = interval * 60;\n\n return (int) Math.round((currentTimeSeconds - (denom / 2d)) / denom) * denom;\n }",
"public Rational getDuration ()\r\n {\r\n if (this.isWholeDuration()) {\r\n return null;\r\n } else {\r\n Rational raw = getRawDuration();\r\n\r\n if (tupletFactor == null) {\r\n return raw;\r\n } else {\r\n return raw.times(tupletFactor);\r\n }\r\n }\r\n }",
"public Rational getRawDuration ()\r\n {\r\n Rational rawDuration = null;\r\n\r\n if (!getNotes().isEmpty()) {\r\n // All note heads are assumed to be the same within one chord\r\n Note note = (Note) getNotes().get(0);\r\n\r\n if (!note.getShape().isMeasureRest()) {\r\n // Duration (with flags/beams applied for non-rests)\r\n rawDuration = note.getNoteDuration();\r\n\r\n // Apply augmentation (applies to rests as well)\r\n if (dotsNumber == 1) {\r\n rawDuration = rawDuration.times(new Rational(3, 2));\r\n } else if (dotsNumber == 2) {\r\n rawDuration = rawDuration.times(new Rational(7, 4));\r\n }\r\n }\r\n }\r\n\r\n return rawDuration;\r\n }",
"float getDecodedAudioTimeoutMs();",
"float getDecodedAudioTimeoutMs();",
"public double getFrameTime() {\n\n\t\t// Convert from milliseconds to seconds\n\t\treturn getInteger(ADACDictionary.FRAME_TIME) / 1000;\n\n\t}",
"public abstract double sensingTime();",
"Duration getDuration();",
"public double getStopTime();",
"public double playTimeInSeconds(){\n\t\treturn durationInSeconds;\n\t}",
"public double toDelta() {\n return ((double)(_secs)) + _fracDouble;\n }",
"Double getRemainingTime();",
"public int getFullDuration() {\r\n return disc.getDisc().stream()\r\n .mapToInt(Song::getDuration)\r\n .sum();\r\n }",
"public float getMaxTimeSeconds() { return getMaxTime()/1000f; }",
"@Transient\n \tpublic int getDuration() {\n \t\tint duration = (int) (this.endTime.getTime() - this.startTime.getTime());\n \t\treturn duration / 1000;\n \t}",
"public long elapsedTime(TimeUnit desiredUnit) {\n/* 153 */ return desiredUnit.convert(elapsedNanos(), TimeUnit.NANOSECONDS);\n/* */ }",
"static long getSecondsPart(Duration d) {\n long u = d.getSeconds() % 60;\n\n return u;\n }",
"public double getDuration() {\n if (null == firstTime) {\n return 0.0;\n }\n return lastTime.timeDiff_ns(firstTime);\n }",
"public Long getDuration()\r\n {\r\n return duration;\r\n }",
"public String durationInMinutesAndSeconds( ){\n\t\t\n\t\tString time = \"\";\n\t\t\n\t\tint duration = totalTime();\n\n\t\tint minutes = 0;\n\n\t\tint seconds = 0;\n\n\t\tminutes = (int) (duration/60);\n\n\t\tseconds = (int) (duration- (minutes*60));\n\n\t\ttime = minutes + \":\" + seconds +\"\";\n\t\treturn time;\n\t\t\n\t}",
"java.lang.String getPlayTime();",
"public double getDuration () {\n return duration;\n }",
"int getMinRecordingMillis();",
"int getTtiSeconds();",
"private double timeFractionBasedOnLevel(){\n // assume AnimationTimer speed to be relevant to 60 fps\n switch (board.getLevel()){\n case 0 -> {\n return 60.0 / 48.0;\n }\n case 1 -> {\n return 60.0 / 43.0;\n }\n case 2 -> {\n return 60.0 / 38.0;\n }\n case 3 -> {\n return 60.0 / 33.0;\n }\n case 4 -> {\n return 60.0 / 28.0;\n }\n case 5 -> {\n return 60.0 / 23.0;\n }\n case 6 -> {\n return 60.0 / 18.0;\n }\n case 7 -> {\n return 60.0 / 13.0;\n }\n case 8 -> {\n return 60.0 / 8.0;\n }\n case 9 -> {\n return 60.0 / 6.0;\n }\n case 10, 11, 12 -> {\n return 60.0 / 5.0;\n }\n case 13, 14, 15 -> {\n return 60.0 / 4.0;\n }\n case 16, 17, 18 -> {\n return 60.0 / 3.0;\n }\n case 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 -> {\n return 60.0 / 2.0;\n }\n default -> {\n return 60.0 / 1.01;\n }\n }\n }",
"public long getElapsedTimeMili() {\n return running ? ((System.currentTimeMillis() - startTime)/100) % 1000 : 0;\n }",
"public double getTime() { return time; }",
"public float getTime() {\n return Math.abs(endTime - startTime) / 1000000f;\n }",
"public float getFullDuration()\n\t{\n\t\tif (repeatCnt < 0) return -1;\n\t\treturn delay + duration + (repeatDelay + duration) * repeatCnt;\n\t}",
"public double getCircleTime();",
"@Override\r\n\tpublic int getPlayTimeSeconds() {\r\n\t\treturn this.minutes * 60 + this.seconds;\r\n\t}",
"public long getDuration()\n {\n return duration;\n }",
"public int getMinuteFraction()\n {\n return (((int)(hours*100.0)%100)*60)/100;\n }",
"Duration getRemainingTime();",
"@Override\n public long getMicrosecondLength() {\n return clip.getMicrosecondLength();\n }",
"public Double getTime() {\n\t\treturn new Double((double) length * 36) / ((((double) speed) * 100));\n\t}",
"public NoteDuration getNoteDuration(int duration)\n\t{\n\t\tint whole = quarternote * 4;\n\t\t//\t\t 1 = 32/32\n\t\t//\t\t 3/4 = 24/32\n\t\t//\t\t 1/2 = 16/32\n\t\t//\t\t 3/8 = 12/32\n\t\t//\t\t 1/4 = 8/32\n\t\t//\t\t 3/16 = 6/32\n\t\t//\t\t 1/8 = 4/32 = 8/64\n\t\t//\t\t triplet = 5.33/64\n\t\t//\t\t 1/16 = 2/32 = 4/64\n\t\t//\t\t 1/32 = 1/32 = 2/64\n\n\t\tif (duration >= 28 * whole / 32)\n\t\t return NoteDuration.Whole;\n\t\telse if (duration >= 20 * whole / 32)\n\t\t return NoteDuration.DottedHalf;\n\t\telse if (duration >= 14 * whole / 32)\n\t\t return NoteDuration.Half;\n\t\telse if (duration >= 10 * whole / 32)\n\t\t return NoteDuration.DottedQuarter;\n\t\telse if (duration >= 7 * whole / 32)\n\t\t return NoteDuration.Quarter;\n\t\telse if (duration >= 5 * whole / 32)\n\t\t return NoteDuration.DottedEighth;\n\t\telse if (duration >= 6 * whole / 64)\n\t\t return NoteDuration.Eighth;\n\t\telse if (duration >= 5 * whole / 64)\n\t\t return NoteDuration.Triplet;\n\t\telse if (duration >= 3 * whole / 64)\n\t\t return NoteDuration.Sixteenth;\n\t\telse if (duration >= 2 * whole / 64)\n\t\t return NoteDuration.ThirtySecond;\n\t\telse if (duration >= whole / 64)\n\t\t return NoteDuration.SixtyFour; // TODO : EXTEND UNTIL 1/128 to be able to extract the onset in SYMBOLIC representation\n\t\telse if (duration >= whole / 128)\n\t\t return NoteDuration.HundredTwentyEight;\n\t\telse\n\t\t return NoteDuration.ZERO;\n\t}",
"public int getDuration() { return duration; }",
"public float getTimeSeconds() { return getTime()/1000f; }",
"public int getDuration() {\n\t\treturn (int) ((endTime.getTime()-startTime.getTime())/1000) + 1;\n\t}",
"public long computeDurationHint() {\n return (getStartOffset() + getDuration()) * (getRepeatCount() + 1);\n }",
"public long getDuration() {\n return duration;\n }",
"static long getMinutesPart(Duration d) {\n long u = (d.getSeconds() / 60) % 60;\n\n return u;\n }",
"public int getExtraTimeGiven()\r\n {\r\n return extraTimeGiven;\r\n }",
"private long getGameDuration() {\n return ((System.currentTimeMillis() - startGameTime) / 1000);\n }",
"public long elapsedMillis() {\n/* 162 */ return elapsedTime(TimeUnit.MILLISECONDS);\n/* */ }",
"public double getHoldTime();",
"public void trackTime()\n {\n frames += 1;\n\n // Every second (roughly) reduce the time left\n if (frames % 60 == 0)\n {\n time += 1;\n showTime();\n }\n }",
"public String estimatedTime() {\n int m = (int)(getFreeBytes()/500000000);\n return (m <= 1) ? \"a minute\" : m+\" minutes\";\n }",
"@Override\r\n public TimeRational getTimeRational ()\r\n {\r\n return timeRational;\r\n }",
"long getDuration() {\n if (debugFlag)\n debugPrintln(\"JSChannel:getDuration\");\n\n if (ais == null || audioFormat == null ) {\n if (debugFlag)\n debugPrintln(\"JSChannel: Internal Error getDuration\");\n return (long)Sample.DURATION_UNKNOWN;\n }\n // Otherwise we'll assume that we can calculate this duration\n\n // get \"duration\" of audio stream (wave file)\n // TODO: For True STREAMing audio the size is unknown...\n long numFrames = ais.getFrameLength();\n if (debugFlag)\n debugPrintln(\" frame length = \" + numFrames);\n if (numFrames <= 0)\n return (long)Sample.DURATION_UNKNOWN;\n\n float rateInFrames = audioFormat.getFrameRate();\n rateInHz = audioFormat.getSampleRate();\n if (debugFlag)\n debugPrintln(\" rate in Frames = \" + rateInFrames);\n if (numFrames <= 0)\n return (long)Sample.DURATION_UNKNOWN;\n long duration = (long)((float)numFrames/rateInFrames);\n if (debugFlag)\n debugPrintln(\" duration(based on ais) = \" + duration);\n return duration;\n }",
"int getMaxRecordingMillis();",
"Double duration() {\n return execute(\"player.duration\");\n }",
"float getPostEndOfAudioTimeoutMs();",
"public long getDuration() {\n return duration;\n }",
"int getSampleMs();",
"RealDuration asRealDuration();",
"public long toDurationMillis() {\r\n return FieldUtils.safeAdd(getEndMillis(), -getStartMillis());\r\n }",
"public double getFullTime() {\n return fullTime_;\n }",
"public double getAsSeconds()\n {\n return itsValue / 1000000.0;\n }",
"public Long getTimeLapsed() {\r\n\t\tif(moodTimestamp == null) \r\n\t\t\treturn null;\r\n\t\telse \r\n\t\t\treturn ((System.currentTimeMillis()/1000) - moodTimestamp.longValue());\r\n\t}",
"public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }",
"public static int getTimeSeconds() {\n return Atlantis.getBwapi().getFrameCount() / 30;\n }",
"double getTime();",
"@Override protected String getDurationUnit() {\n return super.getDurationUnit();\n }",
"java.lang.String getTransitFlightDuration();",
"@Override\n public double getMaxTimeBeetween2Measurement() {\n return super.getMaxTimeBeetween2Measurement();\n }",
"long getSamplePeriod();",
"private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }",
"long getExposureTimePref();",
"public float getFrameRate() { return 1000f/_interval; }",
"float getTimeRecord();",
"public Integer getDuration() {\n return duration;\n }",
"public long getDuration() { throw new RuntimeException(\"Stub!\"); }",
"public int getDuration() {\n return duration;\n }",
"public int getDuration() {\n return duration;\n }",
"public int getDuration() {\n return duration;\n }",
"public double getElapsedTime(){\n double CurrentTime = System.currentTimeMillis();\n double ElapseTime = (CurrentTime - startTime)/1000;\n return ElapseTime;\n }"
] | [
"0.7041941",
"0.68840826",
"0.68449277",
"0.6723388",
"0.66638196",
"0.6474976",
"0.6434557",
"0.6428791",
"0.64056706",
"0.64047086",
"0.64002585",
"0.64002585",
"0.63888925",
"0.6361276",
"0.63522464",
"0.63415974",
"0.6326239",
"0.6318118",
"0.6317378",
"0.62652063",
"0.62534183",
"0.6236882",
"0.6233193",
"0.62020516",
"0.6187489",
"0.6158051",
"0.612261",
"0.612261",
"0.61107796",
"0.61075854",
"0.60843587",
"0.607562",
"0.6059672",
"0.60561824",
"0.605519",
"0.60535765",
"0.60511804",
"0.60389924",
"0.60354173",
"0.6022012",
"0.6003239",
"0.59963375",
"0.5994743",
"0.59913933",
"0.59787244",
"0.5959058",
"0.595368",
"0.5949463",
"0.5927307",
"0.5920421",
"0.5915656",
"0.59142095",
"0.59118056",
"0.5895707",
"0.5895462",
"0.58873016",
"0.58807254",
"0.58775574",
"0.5873324",
"0.58685607",
"0.5868505",
"0.5852584",
"0.5850124",
"0.584242",
"0.58379",
"0.5837704",
"0.5836682",
"0.5832061",
"0.58234495",
"0.5823265",
"0.5819677",
"0.58176583",
"0.5816259",
"0.5805503",
"0.5797451",
"0.579623",
"0.5795347",
"0.5784388",
"0.57835406",
"0.5774225",
"0.5769933",
"0.57656896",
"0.57608485",
"0.5758157",
"0.57534075",
"0.5749288",
"0.57464176",
"0.57424814",
"0.5738223",
"0.5735588",
"0.5733958",
"0.5732255",
"0.57280767",
"0.5725917",
"0.5725845",
"0.57252926",
"0.57243365",
"0.5721238",
"0.5721238",
"0.5721238",
"0.5718481"
] | 0.0 | -1 |
Method used to find export an XML version of the data represented in the generated graph | public static void exportXml(JButton inputButton, LinkedHashMap<String, Integer> inputData, String elementInGraph, String graphName)
{
inputButton.addActionListener((ActionEvent e) ->
{
JFileChooser fileChooser = new JFileChooser();
fileChooser.setFileFilter(new FileNameExtensionFilter("xml", "xml"));
String selectedExtension = fileChooser.getFileFilter().getDescription();
Document resultDoc = null;
int option = fileChooser.showSaveDialog(null);
if(option == JFileChooser.APPROVE_OPTION)
{
try
{
resultDoc = generateXmlFile(inputData, elementInGraph, graphName);
}
catch (ParserConfigurationException ex)
{
Logger.getLogger(drawMusicData_Utils.class.getName()).log(Level.SEVERE, null, ex);
}
//Salvataggio nuovo file XML prendendo il file selezionato dal chooser e concatenando l'estensione
Result output = new StreamResult(new File(fileChooser.getSelectedFile().getAbsolutePath()+"."+selectedExtension));
Source input = new DOMSource(resultDoc);
try
{
TransformerFactory tf = TransformerFactory.newInstance();
Transformer t;
t = tf.newTransformer();
t.setOutputProperty(OutputKeys.INDENT, "yes");
t.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "3");
t.transform(input, output);
}
catch (IllegalArgumentException | TransformerException ex)
{
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String exportXML() {\n\n\t\tXStream xstream = new XStream();\n\t\txstream.setMode(XStream.NO_REFERENCES);\n\n\t\treturn xstream.toXML(this);\n\t}",
"public abstract String toXML();",
"public abstract String toXML();",
"public abstract String toXML();",
"private void exportGraphML()\r\n {\r\n // Create the file filter.\r\n SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n new SimpleFileFilter(\"xml\", \"Graph ML (*.xml)\")\r\n };\r\n \r\n // Save the file.\r\n String file = openFileChooser(false, filters);\r\n \r\n // Write the file.\r\n if (file != null)\r\n {\r\n String extension = file.substring(file.length() - 4);\r\n if (!extension.equals(\".xml\")) file = file + \".xml\";\r\n Writer.writeGraphML(m_graph, file);\r\n }\r\n }",
"private void exportarXML(){\n \n String nombre_archivo=IO_ES.leerCadena(\"Inserte el nombre del archivo\");\n String[] nombre_elementos= {\"Modulos\", \"Estudiantes\", \"Profesores\"};\n Document doc=XML.iniciarDocument();\n doc=XML.estructurarDocument(doc, nombre_elementos);\n \n for(Persona estudiante : LEstudiantes){\n estudiante.escribirXML(doc);\n }\n for(Persona profesor : LProfesorado){\n profesor.escribirXML(doc);\n }\n for(Modulo modulo: LModulo){\n modulo.escribirXML(doc);\n }\n \n XML.domTransformacion(doc, RUTAXML, nombre_archivo);\n \n }",
"private void exportTreeML()\r\n {\r\n // Create the file filter.\r\n// SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n// new SimpleFileFilter(\"xml\", \"Tree ML (*.xml)\")\r\n// };\r\n// \r\n// // Save the file.\r\n// String file = openFileChooser(false, filters);\r\n// \r\n// // Write the file.\r\n// if (file != null)\r\n// {\r\n// String extension = file.substring(file.length() - 4);\r\n// if (!extension.equals(\".xml\")) file = file + \".xml\";\r\n// Writer.writeTreeML(m_gtree, file);\r\n// }\r\n }",
"public void writeXML(String xml){\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\tDocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder documentBuilder = documentFactory.newDocumentBuilder(); \n\t\t\t// define root elements \n\t\t\tDocument document = documentBuilder.newDocument(); \n\t\t\tElement rootElement = document.createElement(\"graph\"); \n\t\t\tdocument.appendChild(rootElement);\n\t\t\t\n\t\t\tfor(int i=0;i<Rel.getChildCount();i++){\n\t\t\t\tif(Rel.getChildAt(i).getTag() != null){\n\t\t\t\t\tif(Rel.getChildAt(i).getTag().toString().compareTo(\"node\") == 0){\n\t\t\t\t\t\tArtifact artifact = (Artifact) Rel.getChildAt(i);\n\t\t\t\t\t\tElement node = addElement(rootElement, \"node\", document);\n\t\t\t\t\t\tElement id = addAttribute(\"id\",artifact.getId()+\"\", document); //we create an attribute for a node\n\t\t\t\t\t\tnode.appendChild(id);//and then we attach it to the node\n\t\t\t\t\t\t\n\t\t\t\t\t\tArrayList <Artifact> fathers = artifact.getFathers();\n\t\t\t\t\t\tif(fathers != null){\n\t\t\t\t\t\t\taddElement(node, \"fathers\", document);//for complex attribute like array of fathers we add an element to the node\n\t\t\t\t\t\t\tfor(int j=0;j<fathers.size();j++){\n\t\t\t\t\t\t\t\tElement father = addAttribute(\"father\",fathers.get(j).getId()+\"\", document);//inside this element created in the node we add all its fathers as attributes\n\t\t\t\t\t\t\t\tnode.appendChild(father);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tArrayList <Artifact> sons = artifact.getSons();\n\t\t\t\t\t\tif(sons != null){\n\t\t\t\t\t\t\taddElement(node, \"sons\", document);//for complex attribute like array of sons we add an element to the node\n\t\t\t\t\t\t\tfor(int j=0;j<sons.size();j++){\n\t\t\t\t\t\t\t\tElement son = addAttribute(\"son\",sons.get(j).getId()+\"\", document);//inside this element created in the node we add all its sons as attributes\n\t\t\t\t\t\t\t\tnode.appendChild(son);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement label = addAttribute(\"label\", artifact.getText()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(label);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement age = addAttribute(\"age\", artifact.getAge()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(age);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement type = addAttribute(\"type\", artifact.getType()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(type);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement information = addAttribute(\"information\", artifact.getInformation()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(information);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement position = addAttribute(\"position\", artifact.getPosition()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(position);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// creating and writing to xml file \n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance(); \n\t\t\tTransformer transformer = transformerFactory.newTransformer(); \n\t\t\tDOMSource domSource = new DOMSource(document); \n\t\t\tStreamResult streamResult = new StreamResult(new File(xml)); \n\t\t\ttransformer.transform(domSource, streamResult);\n \n \n }catch(Exception e){\n \tLog.v(\"error writing xml\",e.toString());\n }\n\t\t\n\t\t\n\t}",
"protected abstract void toXml(PrintWriter result);",
"public static void exportXml(JButton inputButton, LinkedHashMap<String, Integer> inputData, String elementInGraph, String graphName, String inputDurationType)\r\n {\r\n inputButton.addActionListener((ActionEvent e) -> \r\n {\r\n JFileChooser fileChooser = new JFileChooser();\r\n fileChooser.setFileFilter(new FileNameExtensionFilter(\"xml\", \"xml\"));\r\n String selectedExtension = fileChooser.getFileFilter().getDescription();\r\n Document resultDoc = null;\r\n int option = fileChooser.showSaveDialog(null);\r\n if(option == JFileChooser.APPROVE_OPTION)\r\n {\r\n try\r\n {\r\n if(!inputDurationType.equals(\"\"))\r\n resultDoc = generateXmlFile(inputData, elementInGraph, graphName, inputDurationType);\r\n else\r\n resultDoc = generateXmlFile(inputData, elementInGraph, graphName); \r\n } \r\n catch (ParserConfigurationException ex)\r\n {\r\n Logger.getLogger(drawMusicData_Utils.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n //Salvataggio nuovo file XML prendendo il file selezionato dal chooser e concatenando l'estensione\r\n Result output = new StreamResult(new File(fileChooser.getSelectedFile().getAbsolutePath()+\".\"+selectedExtension));\r\n Source input = new DOMSource(resultDoc);\r\n try\r\n {\r\n TransformerFactory tf = TransformerFactory.newInstance();\r\n Transformer t;\r\n t = tf.newTransformer();\r\n t.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n t.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"3\");\r\n t.transform(input, output);\r\n }\r\n catch (IllegalArgumentException | TransformerException ex)\r\n {\r\n \r\n }\r\n }\r\n }); \r\n }",
"private static Document generateXmlFile(LinkedHashMap<String, Integer> inputData, String elementInGraph, String graphName) throws ParserConfigurationException\r\n {\r\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\r\n Document doc = docBuilder.newDocument();\r\n \r\n Date date = new Date();\r\n long time = date.getTime();\r\n Timestamp ts = new Timestamp(time);\r\n \r\n //Nodo Radice export_results\r\n Element export_results = doc.createElement(\"export_results\");\r\n export_results.setAttribute(\"date\", \"\"+ts);\r\n doc.appendChild(export_results);\r\n \r\n //Figlo del nodo radice export_results\r\n Element graph = doc.createElement(\"graph\");\r\n graph.setAttribute(\"name\", graphName);\r\n export_results.appendChild(graph);\r\n \r\n //Popolo iterando sulla mappa i nodi interni del TAG graph\r\n for(String mapKey : inputData.keySet())\r\n {\r\n //System.out.println(\"Key: \" + mapKey + \" - - Value: \" + inputData.get(mapKey));\r\n \r\n Element singleElementInGraph = doc.createElement(elementInGraph);\r\n singleElementInGraph.setTextContent(Integer.toString(inputData.get(mapKey)));\r\n singleElementInGraph.setAttribute(\"type\", mapKey);\r\n graph.appendChild(singleElementInGraph);\r\n }\r\n return doc;\r\n }",
"String exportTo(CopybookExport exporter, String xmlCopybook);",
"public java.lang.String getXml();",
"@Override\n\tpublic Object exportXML(String categoryId, String forumId,\n\t\t\tList<String> objectIds, String nodePath, ByteArrayOutputStream bos,\n\t\t\tboolean isExportAll) throws Exception {\n\t\treturn null;\n\t}",
"public String toXML() {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter, true);\n toXML(printWriter);\n return stringWriter.toString();\n }",
"protected String getXML() {\n\n StringBuffer b = new StringBuffer(\"title =\\\"\");\n b.append(title);\n b.append(\"\\\" xAxisTitle=\\\"\");\n b.append(xAxisTitle);\n b.append(\"\\\" yAxisTitle=\\\"\");\n b.append(yAxisTitle);\n b.append(\"\\\" xRangeMin=\\\"\");\n b.append(xRangeMin);\n b.append(\"\\\" xRangeMax=\\\"\");\n b.append(xRangeMax);\n b.append(\"\\\" xRangeIncr=\\\"\");\n b.append(xRangeIncr);\n b.append(\"\\\" yRangeMin=\\\"\");\n b.append(yRangeMin);\n b.append(\"\\\" yRangeMax=\\\"\");\n b.append(yRangeMax);\n b.append(\"\\\" yRangeIncr=\\\"\");\n b.append(yRangeIncr);\n b.append(\"\\\" >\\n\");\n\n for (int i = 0, n = dataSources.size(); i < n; i++) {\n GuiChartDataSource ds = (GuiChartDataSource)dataSources.get(i);\n b.append(ds.toXML());\n b.append(\"\\n\");\n }\n\n return b.toString();\n }",
"public static boolean exportToXML() {\n\t\ttry {\n\t\t\tDocument doc = new Document();\n\t\t\tdoc.setRootElement(new Element(\"Transactions\"));\n\n\t\t\tFile file = new File(Consts.XML_EXPORT_FILE_PATH);\n\t\t\tfile.getParentFile().mkdirs();\n\t\t\tif (!file.exists())\n\t\t\t\tfile.createNewFile();\n\n\t\t\tArrayList<Transaction> trans = BlockTransLogic.getInstance().getTrans();\n\n\t\t\tfor (Transaction t : trans) {\n\t\t\t\tif (t.getStatus().equals(E_TransStatus.Executed)) {\n\t\t\t\t\tElement element = new Element(\"Transaction\");\n\t\t\t\t\telement.setAttribute(\"ID\", String.valueOf(t.getID()));\n\t\t\t\t\telement.setAttribute(\"Size\", String.valueOf(t.getSize()));\n\t\t\t\t\telement.setAttribute(\"Type\", (t.getType() == null ? \"\" : t.getType().toString()));\n\t\t\t\t\telement.setAttribute(\"Fee\", String.valueOf(t.getFee()));\n\t\t\t\t\telement.setAttribute(\"Status\", (t.getStatus().toString()));\n\t\t\t\t\telement.setAttribute(\"ExecutaionDate\", t.getAdditionDate().toString());\n\t\t\t\t\tdoc.getRootElement().addContent(element);\n\t\t\t\t}\n\t\t\t}\n\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\txmlOutputter.output(doc, new FileOutputStream(file));\n\n\t\t\tSystem.out.println(\"Exported To XML XDXD\");\n\t\t\treturn true;\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}",
"public void transformToSecondXml();",
"public void dump( Result out ) throws JAXBException;",
"protected String exportElements() {\n\t\treturn \"\";\n\t}",
"Element toXML();",
"public void exportXML() throws Exception{\n\t\t \n\t\t try {\n\n\t // create DOMSource for source XML document\n\t\t Source xmlSource = new DOMSource(convertStringToDocument(iet.editorPane.getText()));\n\t\t \n\t\t JFileChooser c = new JFileChooser();\n\t\t\t\t\n\t\t\t\tint rVal = c.showSaveDialog(null);\n\t\t\t\tString name = c.getSelectedFile().getAbsolutePath() + \".xml\";\n\t \n\t File f = new File(name);\n\t \n\t if (rVal == JFileChooser.APPROVE_OPTION) {\n\n\t\t // create StreamResult for transformation result\n\t\t Result result = new StreamResult(new FileOutputStream(f));\n\n\t\t // create TransformerFactory\n\t\t TransformerFactory transformerFactory = TransformerFactory.newInstance();\n\n\t\t // create Transformer for transformation\n\t\t Transformer transformer = transformerFactory.newTransformer();\n\t\t transformer.setOutputProperty(\"indent\", \"yes\");\n\n\t\t // transform and deliver content to client\n\t\t transformer.transform(xmlSource, result);\n\t\t \n\t\t }\n\t\t }\n\t\t // handle exception creating TransformerFactory\n\t\t catch (TransformerFactoryConfigurationError factoryError) {\n\t\t System.err.println(\"Error creating \" + \"TransformerFactory\");\n\t\t factoryError.printStackTrace();\n\t\t } // end catch 1\n\t\t \t catch (TransformerException transformerError) {\n\t\t System.err.println(\"Error transforming document\");\n\t\t transformerError.printStackTrace();\n\t\t } //end catch 2 \n\t\t \t catch (IOException ioException) {\n\t\t ioException.printStackTrace();\n\t\t } // end catch 3\n\t\t \n\t }",
"private static Document generateXmlFile(LinkedHashMap<String, Integer> inputData, String elementInGraph, String graphName, String inputDurationType) throws ParserConfigurationException\r\n {\r\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\r\n Document doc = docBuilder.newDocument();\r\n \r\n Date date = new Date();\r\n long time = date.getTime();\r\n Timestamp ts = new Timestamp(time);\r\n \r\n //Nodo Radice export_results\r\n Element export_results = doc.createElement(\"export_results\");\r\n export_results.setAttribute(\"date\", \"\"+ts);\r\n doc.appendChild(export_results);\r\n \r\n //Figlo del nodo radice export_results\r\n Element graph = doc.createElement(\"graph\");\r\n graph.setAttribute(\"name\", graphName);\r\n export_results.appendChild(graph);\r\n \r\n //Popolo iterando sulla mappa i nodi interni del TAG graph\r\n for(String mapKey : inputData.keySet())\r\n {\r\n //System.out.println(\"Key: \" + mapKey + \" - - Value: \" + inputData.get(mapKey));\r\n \r\n Element singleElementInGraph = doc.createElement(elementInGraph);\r\n singleElementInGraph.setTextContent(Integer.toString(inputData.get(mapKey)));\r\n if(inputDurationType.equals(\"CHORD\") || inputDurationType.equals(\"REST\") || inputDurationType.equals(\"BOTH\"))\r\n {\r\n singleElementInGraph.setAttribute(\"den\", mapKey);\r\n singleElementInGraph.setAttribute(\"num\", \"1\"); \r\n }\r\n graph.appendChild(singleElementInGraph);\r\n }\r\n return doc;\r\n }",
"abstract protected String getOtherXml();",
"public void dumpAsXmlFile(String pFileName);",
"public void xmlExporter(String path, short side, String extention) throws IOException {\r\n\t\tOutputStream fout = null;\r\n\t\tOutputStream bout = null;\r\n\t\tOutputStreamWriter output = null;\r\n\r\n\t\tString newPath = checkPath(path, extention);\r\n\r\n\t\ttry {\r\n\t\t\t// ovisno o odabranoj strani stvara se datoteka i poziva metoda koja\r\n\t\t\t// vrsi ispis\r\n\t\t\tif (side == (short) 1) {\r\n\t\t\t\tfout = new FileOutputStream(newPath);\r\n\t\t\t\tbout = new BufferedOutputStream(fout);\r\n\t\t\t\toutput = new OutputStreamWriter(bout, \"UTF-8\");\r\n\r\n\t\t\t\t// FileOutputStream output = new FileOutputStream(\"left.xml\");\r\n\t\t\t\tthis.writeToFile(output, idList1);\r\n\t\t\t\toutput.close();\r\n\t\t\t} else {\r\n\t\t\t\tfout = new FileOutputStream(newPath);\r\n\t\t\t\tbout = new BufferedOutputStream(fout);\r\n\t\t\t\toutput = new OutputStreamWriter(bout, \"UTF-8\");\r\n\r\n\t\t\t\t// output = new FileOutputStream(\"right.xml\");\r\n\t\t\t\tthis.writeToFile(output, idList2);\r\n\t\t\t\toutput.close();\r\n\t\t\t}\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new FileNotFoundException(\r\n\t\t\t\t\t\"File could not be found!\\r\\n\"\r\n\t\t\t\t\t\t\t+ \"- Verify that the file exists in the specified location.\\r\\n\"\r\n\t\t\t\t\t\t\t+ \"- Check the spelling of the name of the document.\\r\\n\\r\\n\"\r\n\t\t\t\t\t\t\t+ path);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new IOException(\"I/O exception has occurred.\");\r\n\t\t}\r\n\r\n\t}",
"@Get(\"xml\")\n public Representation toXml() {\n\n \tString status = getRequestFlag(\"status\", \"valid\");\n \tString access = getRequestFlag(\"location\", \"all\");\n\n \tList<Map<String, String>> metadata = getMetadata(status, access,\n \t\t\tgetRequestQueryValues());\n \tmetadata.remove(0);\n\n List<String> pathsToMetadata = buildPathsToMetadata(metadata);\n\n String xmlOutput = buildXmlOutput(pathsToMetadata);\n\n // Returns the XML representation of this document.\n StringRepresentation representation = new StringRepresentation(xmlOutput,\n MediaType.APPLICATION_XML);\n\n return representation;\n }",
"public String toXml() {\n\t\treturn(toString());\n\t}",
"public abstract StringBuffer toXML();",
"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 }",
"private void saveFitex(){\n Element pds = getPDS() ;\n JFileChooser aFileChooser = new JFileChooser();\n aFileChooser.setFileFilter(new MyFileFilterXML());\n if (lastUsedFile != null){\n aFileChooser.setCurrentDirectory(lastUsedFile.getParentFile());\n aFileChooser.setSelectedFile(lastUsedFile);\n }else{\n File file = new File(aFileChooser.getCurrentDirectory(), dataset.getName()+\".xml\");\n aFileChooser.setSelectedFile(file);\n }\n int r = aFileChooser.showSaveDialog(this);\n if (r == JFileChooser.APPROVE_OPTION){\n setCursor(new Cursor(Cursor.WAIT_CURSOR));\n File file = aFileChooser.getSelectedFile();\n if(!MyUtilities.isXMLFile(file)){\n file = MyUtilities.getXMLFile(file);\n }\n lastUsedFile = file;\n OutputStreamWriter fileWriter = null;\n try{\n fileWriter = new OutputStreamWriter(new FileOutputStream(file), \"utf-8\");\n\t\txmlOutputter.output(pds, fileWriter);\n datasetModif = false;\n dataProcessToolPanel.logSaveDataset(dataset);\n }catch (IOException e){\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n displayError(new CopexReturn(getBundleString(\"MSG_ERROR_SAVE\"), false), getBundleString(\"TITLE_DIALOG_ERROR\"));\n }finally{\n if (fileWriter != null){\n try{\n fileWriter.close();\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n }catch (IOException e){\n displayError(new CopexReturn(getBundleString(\"MSG_ERROR_SAVE\"), false), getBundleString(\"TITLE_DIALOG_ERROR\"));\n }\n }\n }\n }\n }",
"public void createFile(){\r\n JFileChooser chooser = new JFileChooser();\r\n chooser.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only XML Files\", \"xml\");\r\n chooser.addChoosableFileFilter(filter);\r\n chooser.showSaveDialog(null);\r\n File f = chooser.getSelectedFile();\r\n if (!f.getName().endsWith(\".xml\")){\r\n f = new File(f.getAbsolutePath().concat(\".xml\"));\r\n }\r\n try {\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(f));\r\n try (PrintWriter pw = new PrintWriter(bw)) {\r\n pw.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\r\n pw.println(\"<osm>\");\r\n for (Node node : this.getListNodes()) {\r\n if(node.getType() == TypeNode.INCENDIE){\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" intensity=\\\"\"+node.getFire()+\"\\\" />\");\r\n } else {\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" />\");\r\n }\r\n }\r\n for (Edge edge : this.getListEdges()) {\r\n pw.println(\" <edge nd1=\\\"\"+edge.getNode1().getId()+\"\\\" nd2=\\\"\"+edge.getNode2().getId()+\"\\\" type=\\\"\"+edge.getType()+\"\\\" />\");\r\n }\r\n pw.println(\"</osm>\");\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Writing Error : \" + e.getMessage());\r\n }\r\n }",
"public abstract StringBuffer toXML ();",
"public String toXML() {\n return null;\n }",
"String toXmlString() throws IOException;",
"public static void exportGraphToDotFile(\n\t\t\tGraph<Vertex, CustomEdge> graph) {\n\t\tboolean graphIsWeighted = graph instanceof WeightedGraph ;\n\t\t\n\t\t//Create a new Attribute Provider for Edges\n\t\tComponentAttributeProvider<CustomEdge> EdgeWeightProvider = new ComponentAttributeProvider<CustomEdge>() {\n\t\t\tpublic Map<String, String> getComponentAttributes(\n\t\t\t\t\tCustomEdge e) {\n\t\t\t\t\n\t\t\t\tMap<String, String> map = new LinkedHashMap<String, String>();\n\t\t\t\tmap.put(\"label\", Double.toString(graph.getEdgeWeight(e)));\n\t\t\t\tmap.put(\"weight\", Double.toString(graph.getEdgeWeight(e)));\n\t\t\t\tmap.put(\"color\", e.getColor());\n\t\t\t\treturn map;\n\t\t\t}\n\t\t};\n\t\t\n\t\tComponentAttributeProvider<CustomEdge> EdgeAttributeWithoutWeightProvider = new ComponentAttributeProvider<CustomEdge>() {\n\t\t\tpublic Map<String, String> getComponentAttributes(\n\t\t\t\t\tCustomEdge e) {\n\t\t\t\t\n\t\t\t\tMap<String, String> map = new LinkedHashMap<String, String>();\n\t\t\t\tmap.put(\"color\", e.getColor());\n\t\t\t\t\n\t\t\t\treturn map;\n\t\t\t}\n\t\t};\n\t\t\n\t\t//Create a new Attribute Provider for Edges\n\t\tComponentAttributeProvider<Vertex> VertexAttributeProvider = new ComponentAttributeProvider<Vertex>() {\n\n\t\t\t@Override\n\t\t\tpublic Map<String, String> getComponentAttributes(Vertex v) {\n\t\t\t\tMap<String, String> map = new LinkedHashMap<String, String>();\n\t\t\t\tmap.put(\"distortion\", Integer.toString(v.getAttribut()));\n\t\t\t\tmap.put(\"color\", v.getColor());\n\t\t\t\treturn map;\n\t\t\t}\n\t\t};\n\t\t\n\t\t//Create DotExporter which matches type of the Graph\n\t\tDOTExporter<Vertex, CustomEdge> exporter1 = null;\n\t\tif(graphIsWeighted){\n\t\t\t exporter1 = new DOTExporter<>(\n\t\t\t\tnew IntegerNameProvider<>(), new StringNameProvider<>(),\n\t\t\t\tnull, VertexAttributeProvider, EdgeWeightProvider);\n\t\t}else {\n\t\t\t\n\t\t\texporter1 = new DOTExporter<>(\n\t\t\t\t\tnew IntegerNameProvider<>(), new StringNameProvider<>(),\n\t\t\t\t\tnew StringEdgeNameProvider<>(), VertexAttributeProvider, EdgeAttributeWithoutWeightProvider);\n\t\t}\n//\t\texporter1 = new DOTExporter<Vertex, CustomEdge>();\n\t\t//File Directory\n\t\tString targetDirectory = \"../GKA/result/\";\n\t\t\n\t\t//Export Dot File\n\t\tnew File(targetDirectory).mkdirs();\n\t\ttry {\n\n\t\t\texporter1.export(\n\t\t\t\t\tnew FileWriter(targetDirectory + \"result.gv\"), graph);\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}",
"public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( VolumeRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}",
"public Document saveAsXML() {\n\tDocument xmldoc= new DocumentImpl();\n\tElement root = createFeaturesElement(xmldoc);\n\txmldoc.appendChild(root);\n\treturn xmldoc;\n }",
"@Test\r\n\tpublic void shouldVerifyXMLExport() throws IOException, JAXBException, URISyntaxException {\n\t\tCriterion criterion = criterionService.getCriterionByClassFieldAndStringValue(Settings.class, \"name\",\r\n\t\t\t\t\"Intersections test\");\r\n\r\n\t\tList<Settings> settList = DAO.findAllWithRestrictions(Settings.class, criterion);\r\n\r\n\t\tassertEquals(1, settList.size());\r\n\r\n\t\tSettings setting = settList.get(0);\r\n\r\n\t\tList<SettingsConversion> conversionLines = setting.getConversion();\r\n\t\tassertThat(conversionLines.size()).isGreaterThan(0);\r\n\r\n\t\tSat sat = XMLExporter.exportSettingsConversionPresentationToSF5Format(conversionLines);\r\n\r\n\t\t// http://www.concretepage.com/spring/spring-jaxb-integration-annotation-pretty-print-example-with-jaxb2marshaller\r\n\t\t// try (FileOutputStream fos = new\r\n\t\t// FileOutputStream(\"sf5Jnitoutput.xml\");) {\r\n\t\t// springMarshaller.marshal(sat, new StreamResult(fos));\r\n\t\t// }\r\n\r\n\t\tStringWriter sw = new StringWriter();\r\n\r\n\t\tURL responseFile = ClassLoader.getSystemResource(\"xml/sf5Jnitoutput.xml\");\r\n\t\tassertThat(responseFile).isNotNull();\r\n\r\n\t\tURI uri = responseFile.toURI();\r\n\t\tassertThat(uri).isNotNull();\r\n\r\n\t\tString content = new String(Files.readAllBytes(Paths.get(uri)), Charset.forName(\"UTF-8\"));\r\n\r\n\t\tSat retrievedSat = (Sat) springMarshaller.unmarshal(new StringSource(content));\r\n\t\t// trying to compare resolved Sats.\r\n\t\tassertEquals(retrievedSat, sat);\r\n\r\n\t\t// assertThat(retrievedSat).isEqualTo(sat);\r\n\r\n\t\t// assertThat(retrievedSat.equals(sat)).isTrue();\r\n\r\n\t\t// content = content.replace(\"\\r\\n\\r\\n\", \"\\r\\n\"); // it adds\r\n\t\t// // superfluous\r\n\t\t// // \\r\\n\r\n\t\t//\r\n\t\t// // marshalling sat\r\n\t\t// springMarshaller.marshal(sat, new StreamResult(sw));\r\n\t\t//\r\n\t\t// assertEquals(content, sw.toString());\r\n\r\n\t}",
"public String toXML() {\n return null;\n }",
"public String toXML() {\n StringBuilder xml = new StringBuilder();\n\n //just do the decomposition facts (not the surrounding element) - to keep life simple\n xml.append(super.toXML());\n\n for (YParameter parameter : _enablementParameters.values()) {\n xml.append(parameter.toXML());\n }\n for (YAWLServiceReference service : _yawlServices.values()) {\n xml.append(service.toXML());\n }\n return xml.toString();\n }",
"public XmlExportOptions getXmlExportOptions()\n {\n return (XmlExportOptions) getOptions();\n }",
"public void export(String URN) {\n try {\n DocumentBuilderFactory fabrique = DocumentBuilderFactory.newInstance();\n fabrique.setValidating(true);\n DocumentBuilder constructeur = fabrique.newDocumentBuilder();\n Document document = constructeur.newDocument();\n \n // Propriétés du DOM\n document.setXmlVersion(\"1.0\");\n document.setXmlStandalone(true);\n \n // Création de l'arborescence du DOM\n Element racine = document.createElement(\"monde\");\n racine.setAttribute(\"longueur\",Integer.toString(getLongueur()));\n racine.setAttribute(\"largeur\",Integer.toString(getLargeur()));\n document.appendChild(racine);\n for (Composant composant:composants) {\n racine.appendChild(composant.toElement(document)) ;\n }\n \n // Création de la source DOM\n Source source = new DOMSource(document);\n \n // Création du fichier de sortie\n File file = new File(URN);\n Result resultat = new StreamResult(URN);\n \n // Configuration du transformer\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer transformer = tf.newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\n transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,\"http://womby.zapto.org/monde.dtd\");\n \n // Transformation\n transformer.transform(source, resultat);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic String getFormat() {\n\t\treturn \"xml\";\n\t}",
"private static void exportToGraphML(SimState state, String filename) {\n\t\tVertexNameProvider<Agent> vertexIDProvider = new VertexNameProvider<Agent>() { \n\t\t\t@Override\n\t\t\tpublic String getVertexName(Agent a) { return String.valueOf(a.getId()); }\n\t\t}; \n\t\tVertexNameProvider<Agent> vertexNameProvider = new VertexNameProvider<Agent>() { \n\t\t\t@Override\n\t\t\tpublic String getVertexName(Agent a) { return String.valueOf(a.getHS()); }\n\t\t};\n\t\tEdgeNameProvider<DefaultEdge> edgeIDProvider = new EdgeNameProvider<DefaultEdge>() {\n\t\t\t@Override \n\t\t\tpublic String getEdgeName(DefaultEdge edge) {\n\t\t\t\treturn g.getEdgeSource(edge) + \" > \" + g.getEdgeTarget(edge); } \n\t\t\t}; \n EdgeNameProvider<DefaultEdge> edgeLabelProvider = new EdgeNameProvider<DefaultEdge>() { \n @Override \n public String getEdgeName(DefaultEdge edge) { \n return String.valueOf(g.getEdgeWeight(edge)); \n } \n }; \n\t GraphMLExporter<Agent, DefaultEdge> exporter =\n\t \t\tnew GraphMLExporter<Agent, DefaultEdge>(vertexIDProvider, vertexNameProvider, edgeIDProvider, edgeLabelProvider);\n\t FileWriter w;\n\t\ttry {\n\t\t\tw = new FileWriter(filename+\".graphml\");\n\t\t\texporter.export(w, g); // ((SN) state).g\n\t\t\tw.close();\n\t\t} catch (Exception e) {\n\t\t\tprintlnSynchronized(e.getMessage());\n\t\t}\n\t\t\n\t}",
"public void save() {\n int hour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\r\n int minute = Calendar.getInstance().get(Calendar.MINUTE);\r\n\r\n // Hierarchie: 2010/04/05/01_05042010_00002.xml\r\n File dir = getOutputDir();\r\n File f = new File(dir, getCode().replace(' ', '_') + \".xml\");\r\n Element topLevel = new Element(\"ticket\");\r\n topLevel.setAttribute(new Attribute(\"code\", this.getCode()));\r\n topLevel.setAttribute(\"hour\", String.valueOf(hour));\r\n topLevel.setAttribute(\"minute\", String.valueOf(minute));\r\n // Articles\r\n for (Pair<Article, Integer> item : this.items) {\r\n Element e = new Element(\"article\");\r\n e.setAttribute(\"qte\", String.valueOf(item.getSecond()));\r\n // Prix unitaire\r\n e.setAttribute(\"prix\", String.valueOf(item.getFirst().getPriceInCents()));\r\n e.setAttribute(\"prixHT\", String.valueOf(item.getFirst().getPriceHTInCents()));\r\n e.setAttribute(\"idTaxe\", String.valueOf(item.getFirst().getIdTaxe()));\r\n e.setAttribute(\"categorie\", item.getFirst().getCategorie().getName());\r\n e.setAttribute(\"codebarre\", item.getFirst().getCode());\r\n e.setText(item.getFirst().getName());\r\n topLevel.addContent(e);\r\n }\r\n // Paiements\r\n for (Paiement paiement : this.paiements) {\r\n final int montantInCents = paiement.getMontantInCents();\r\n if (montantInCents > 0) {\r\n final Element e = new Element(\"paiement\");\r\n String type = \"\";\r\n if (paiement.getType() == Paiement.CB) {\r\n type = \"CB\";\r\n } else if (paiement.getType() == Paiement.CHEQUE) {\r\n type = \"CHEQUE\";\r\n } else if (paiement.getType() == Paiement.ESPECES) {\r\n type = \"ESPECES\";\r\n }\r\n e.setAttribute(\"type\", type);\r\n e.setAttribute(\"montant\", String.valueOf(montantInCents));\r\n topLevel.addContent(e);\r\n }\r\n\r\n }\r\n try {\r\n final XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());\r\n out.output(topLevel, new FileOutputStream(f));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"public static HashMap<String, String> OutputXml() {\n\t\treturn methodMap(\"xml\");\n\t}",
"@GET\r\n @Produces(\"application/xml\")\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }",
"public String generateXML() \n { \n \n String xml = new String();\n \n String nodetype = new String();\n if (type.equals(\"internal\")){\n nodetype = \"INTERNAL\"; //change this for change in XML node name\n }\n else {\n nodetype = \"LEAF\"; //change this for change in XML node name\n }\n \n xml = \"<\" + nodetype;\n if (!name.equals(\"\")){\n xml = xml + \" name = \\\"\" + name + \"\\\"\";\n }\n if (length >0){\n xml = xml + \" length = \\\"\" + length + \"\\\"\";\n }\n //Section below tests tree size and depths\n // if (level > 0){\n // xml = xml + \" level = \\\"\" + level + \"\\\"\";\n // }\n //if (depth > 0){\n // xml = xml + \" depth = \\\"\" + depth + \"\\\"\";\n //}\n //if (newicklength > 0){\n // xml = xml + \" newicklength = \\\"\" + newicklength + \"\\\"\";\n //}\n // if (treesize > 0){\n // xml = xml + \" treesize = \\\"\" + treesize + \"\\\"\";\n //}\n //if (startxcoord >= 0){\n // xml = xml + \" startx = \\\"\" + startxcoord + \"\\\"\";\n //}\n //if (endxcoord >= 0){\n // xml = xml + \" endx = \\\"\" + endxcoord + \"\\\"\";\n //}\n //Test section done\n xml = xml + \">\";\n \n if (!children.isEmpty()){ //if there are children in this node's arraylist\n Iterator it = children.iterator();\n while(it.hasNext()){\n Node child = (Node) it.next();\n xml = xml + child.generateXML(); //The recursive coolness happens here!\n }\n }\n xml = xml + \"</\" + nodetype + \">\";\n \n return xml;\n }",
"@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }",
"@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }",
"public ExportGraph()\n {\n }",
"public void printToXML() {\n String fileString = \"outputDisposal.xml\";\n //Creating the path object of the file\n Path filePath = Paths.get(fileString);\n if (Files.notExists(filePath)) {\n try {\n Files.createFile(filePath);\n } catch (IOException e1) {\n\n e1.printStackTrace();\n }\n }\n //Converting the path object to file to use in the FileWriter constructor \n File newFile = filePath.toFile();\n\n /*\n Typical try-with-resources block that features three streams: FileWriter,BufferedWriter and PrintWriter.\n The FileWriter object connects the file tho the stream.\n The BufferedWriter object \n */\n try ( PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(newFile)))) {\n for (PickUp pck : pickups) {\n out.print(pck);\n }\n\n } catch (IOException e) {\n System.err.println(e);\n }\n\n }",
"void toXml(OutputStream out, boolean format) throws IOException;",
"public String getXml()\n {\n StringBuffer result = new StringBuffer(256);\n\n result.append(\"<importOptions>\");\n\n result.append(m_fileOptions.asXML());\n result.append(getOtherXml());\n\n result.append(\"</importOptions>\");\n\n return result.toString();\n }",
"@GET\n @Produces(MediaType.APPLICATION_XML)\n public String getXml() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }",
"public String\ttoXML()\t{\n\t\treturn toXML(0);\n\t}",
"private String toXML(){\n\tString buffer = \"<xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\">\\n\";\n\tfor(Room[] r : rooms)\n\t for(Room s : r)\n\t\tif(s != null)\n\t\t buffer += s.toXML();\n\tbuffer += \"</xml>\";\n\treturn buffer;\n }",
"public String printToXml()\n {\n XMLOutputter outputter = new XMLOutputter();\n outputter.setFormat(org.jdom.output.Format.getPrettyFormat());\n return outputter.outputString(this.toXml());\n }",
"@Override\n public void toXml(XmlContext xc) {\n\n }",
"String toXML() throws RemoteException;",
"public void exportGraphForClade(String clade_name, String out_filepath){\n \t\tIndexHits<Node> foundNodes = findTaxNodeByName(clade_name);\n \t\tNode firstNode = null;\n \t\tif (foundNodes.size() < 1) {\n System.out.println(\"name '\" + clade_name + \"' not found. quitting.\");\n \t\t\treturn;\n \t\t} else if (foundNodes.size() > 1) {\n \t\t System.out.println(\"more than one node found for name '\" + clade_name + \"'not sure how to deal with this. quitting\");\n \t\t} else {\n \t\t for (Node n : foundNodes) {\n \t\t firstNode = n;\n \t\t }\n \t\t}\n \t\t//TraversalDescription CHILDOF_TRAVERSAL = Traversal.description().relationships(RelTypes.TAXCHILDOF,Direction.INCOMING );\n \t\tPrintWriter out_file;\n \t\ttry {\n \t\t\tout_file = new PrintWriter(new FileWriter(out_filepath));\n \t\t\tout_file.write(\"strict digraph {\\n\\trankdir = RL ;\\n\");\n \t\t\tHashMap<String, String> src2style = new HashMap<String, String>();\n \t\t\tHashMap<Node, String> nd2dot_name = new HashMap<Node, String>();\n \t\t\tint count = 0;\n \t\t\tfor (Node nd : firstNode.traverse(Traverser.Order.BREADTH_FIRST, \n \t\t\t\t\t\t\t\t\t\t\t StopEvaluator.END_OF_GRAPH,\n \t\t\t\t\t\t\t\t\t\t\t ReturnableEvaluator.ALL,\n \t\t\t\t\t\t\t\t\t\t\t RelTypes.TAXCHILDOF,\n \t\t\t\t\t\t\t\t\t\t\t Direction.INCOMING)) {\n \t\t\t\tfor(Relationship rel : nd.getRelationships(RelTypes.TAXCHILDOF,Direction.INCOMING)) {\n \t\t\t\t\tcount += 1;\n \t\t\t\t\tNode rel_start = rel.getStartNode();\n \t\t\t\t\tString rel_start_name = ((String) rel_start.getProperty(\"name\"));\n \t\t\t\t\tString rel_start_dot_name = nd2dot_name.get(rel_start);\n \t\t\t\t\tif (rel_start_dot_name == null){\n \t\t\t\t\t\trel_start_dot_name = \"n\" + (1 + nd2dot_name.size());\n \t\t\t\t\t\tnd2dot_name.put(rel_start, rel_start_dot_name);\n \t\t\t\t\t\tout_file.write(\"\\t\" + rel_start_dot_name + \" [label=\\\"\" + rel_start_name + \"\\\"] ;\\n\");\n \t\t\t\t\t}\n \t\t\t\t\tNode rel_end = rel.getEndNode();\n \t\t\t\t\tString rel_end_name = ((String) rel_end.getProperty(\"name\"));\n \t\t\t\t\tString rel_end_dot_name = nd2dot_name.get(rel_end);\n \t\t\t\t\tif (rel_end_dot_name == null){\n \t\t\t\t\t\trel_end_dot_name = \"n\" + (1 + nd2dot_name.size());\n \t\t\t\t\t\tnd2dot_name.put(rel_end, rel_end_dot_name);\n \t\t\t\t\t\tout_file.write(\"\\t\" + rel_end_dot_name + \" [label=\\\"\" + rel_end_name + \"\\\"] ;\\n\");\n \t\t\t\t\t}\n \t\t\t\t\tString rel_source = ((String) rel.getProperty(\"source\"));\n \t\t\t\t\tString edge_style = src2style.get(rel_source);\n \t\t\t\t\tif (edge_style == null) {\n \t\t\t\t\t\tedge_style = \"color=black\"; // @TMP\n \t\t\t\t\t\tsrc2style.put(rel_source, edge_style);\n \t\t\t\t\t}\n \t\t\t\t\tout_file.write(\"\\t\" + rel_start_dot_name + \" -> \" + rel_end_dot_name + \" [\" + edge_style + \"] ;\\n\");\n \t\t\t\t}\n \t\t\t}\n \t\t\tout_file.write(\"}\\n\");\n \t\t\tout_file.close();\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}",
"public String getXML() {\n\t\treturn getXML(false);\n\t}",
"public OutEntries getFromSecondXml();",
"public String writeFile1() throws IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"07010101\\\">\"); \n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>4</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>96</plot_lenX>\");\n oOut.write(\"<plot_lenY>96</plot_lenY>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\"/>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\"/>\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">1.35</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.54</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0614</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.5944</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.368</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_1\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_2\\\">0.0269</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0241</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">0</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">0</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>NonSpatialDisperse</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>MastingDisperseAutocorrelation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>2</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>MastingDisperseAutocorrelation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>3</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>DensDepRodentSeedPredation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>4</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Seed\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Seed\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<NonSpatialDisperse1>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_1\\\">15.0</di_mdfrVal>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_2\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n oOut.write(\"<di_nonSpatialSlopeOfLambda>\");\n oOut.write(\"<di_nssolVal species=\\\"Species_2\\\">0</di_nssolVal>\");\n oOut.write(\"<di_nssolVal species=\\\"Species_1\\\">0</di_nssolVal>\");\n oOut.write(\"</di_nonSpatialSlopeOfLambda>\");\n oOut.write(\"<di_nonSpatialInterceptOfLambda>\");\n oOut.write(\"<di_nsiolVal species=\\\"Species_1\\\">1</di_nsiolVal>\");\n oOut.write(\"<di_nsiolVal species=\\\"Species_2\\\">2</di_nsiolVal>\");\n oOut.write(\"</di_nonSpatialInterceptOfLambda>\");\n oOut.write(\"</NonSpatialDisperse1>\");\n oOut.write(\"<MastingDisperseAutocorrelation2>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_1\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n oOut.write(\"<di_mdaMastTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"1\\\">0.49</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"2\\\">0.04</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"3\\\">0.89</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"4\\\">0.29</di_mdaMTS>\");\n oOut.write(\"</di_mdaMastTS>\");\n oOut.write(\"<di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_mdfseVal species=\\\"Species_1\\\">100</di_mdfseVal>\");\n oOut.write(\"</di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_weibullCanopyBeta>\");\n oOut.write(\"<di_wcbVal species=\\\"Species_1\\\">1</di_wcbVal>\");\n oOut.write(\"</di_weibullCanopyBeta>\");\n oOut.write(\"<di_weibullCanopySTR>\");\n oOut.write(\"<di_wcsVal species=\\\"Species_1\\\">1000</di_wcsVal>\");\n oOut.write(\"</di_weibullCanopySTR>\");\n oOut.write(\"<di_mdaReproFracA>\");\n oOut.write(\"<di_mdarfaVal species=\\\"Species_1\\\">1</di_mdarfaVal>\");\n oOut.write(\"</di_mdaReproFracA>\");\n oOut.write(\"<di_mdaReproFracB>\");\n oOut.write(\"<di_mdarfbVal species=\\\"Species_1\\\">1</di_mdarfbVal>\");\n oOut.write(\"</di_mdaReproFracB>\");\n oOut.write(\"<di_mdaReproFracC>\");\n oOut.write(\"<di_mdarfcVal species=\\\"Species_1\\\">0</di_mdarfcVal>\");\n oOut.write(\"</di_mdaReproFracC>\");\n oOut.write(\"<di_mdaRhoACF>\");\n oOut.write(\"<di_mdaraVal species=\\\"Species_1\\\">1</di_mdaraVal>\");\n oOut.write(\"</di_mdaRhoACF>\");\n oOut.write(\"<di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdarnsdVal species=\\\"Species_1\\\">0</di_mdarnsdVal>\");\n oOut.write(\"</di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdaPRA>\");\n oOut.write(\"<di_mdapraVal species=\\\"Species_1\\\">0.75</di_mdapraVal>\");\n oOut.write(\"</di_mdaPRA>\");\n oOut.write(\"<di_mdaPRB>\");\n oOut.write(\"<di_mdaprbVal species=\\\"Species_1\\\">0.004</di_mdaprbVal>\");\n oOut.write(\"</di_mdaPRB>\");\n oOut.write(\"<di_mdaSPSSD>\");\n oOut.write(\"<di_mdaspssdVal species=\\\"Species_1\\\">0.1</di_mdaspssdVal>\");\n oOut.write(\"</di_mdaSPSSD>\");\n oOut.write(\"<di_canopyFunction>\");\n oOut.write(\"<di_cfVal species=\\\"Species_1\\\">0</di_cfVal>\");\n oOut.write(\"</di_canopyFunction>\");\n oOut.write(\"<di_weibullCanopyDispersal>\");\n oOut.write(\"<di_wcdVal species=\\\"Species_1\\\">1.76E-04</di_wcdVal>\");\n oOut.write(\"</di_weibullCanopyDispersal>\");\n oOut.write(\"<di_weibullCanopyTheta>\");\n oOut.write(\"<di_wctVal species=\\\"Species_1\\\">3</di_wctVal>\");\n oOut.write(\"</di_weibullCanopyTheta>\");\n oOut.write(\"</MastingDisperseAutocorrelation2>\");\n oOut.write(\"<MastingDisperseAutocorrelation3>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_2\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n //Mast timeseries\n oOut.write(\"<di_mdaMastTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"1\\\">0.5</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"2\\\">0.29</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"3\\\">0.05</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"4\\\">0.63</di_mdaMTS>\");\n oOut.write(\"</di_mdaMastTS>\");\n oOut.write(\"<di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_mdfseVal species=\\\"Species_2\\\">100</di_mdfseVal>\");\n oOut.write(\"</di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_weibullCanopyBeta>\");\n oOut.write(\"<di_wcbVal species=\\\"Species_2\\\">1</di_wcbVal>\");\n oOut.write(\"</di_weibullCanopyBeta>\");\n oOut.write(\"<di_weibullCanopySTR>\");\n oOut.write(\"<di_wcsVal species=\\\"Species_2\\\">1000</di_wcsVal>\");\n oOut.write(\"</di_weibullCanopySTR>\");\n oOut.write(\"<di_mdaReproFracA>\");\n oOut.write(\"<di_mdarfaVal species=\\\"Species_2\\\">10000</di_mdarfaVal>\");\n oOut.write(\"</di_mdaReproFracA>\");\n oOut.write(\"<di_mdaReproFracB>\");\n oOut.write(\"<di_mdarfbVal species=\\\"Species_2\\\">1</di_mdarfbVal>\");\n oOut.write(\"</di_mdaReproFracB>\");\n oOut.write(\"<di_mdaReproFracC>\");\n oOut.write(\"<di_mdarfcVal species=\\\"Species_2\\\">1</di_mdarfcVal>\");\n oOut.write(\"</di_mdaReproFracC>\");\n oOut.write(\"<di_mdaRhoACF>\");\n oOut.write(\"<di_mdaraVal species=\\\"Species_2\\\">1</di_mdaraVal>\");\n oOut.write(\"</di_mdaRhoACF>\");\n oOut.write(\"<di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdarnsdVal species=\\\"Species_2\\\">0</di_mdarnsdVal>\");\n oOut.write(\"</di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdaPRA>\");\n oOut.write(\"<di_mdapraVal species=\\\"Species_2\\\">100</di_mdapraVal>\");\n oOut.write(\"</di_mdaPRA>\");\n oOut.write(\"<di_mdaPRB>\");\n oOut.write(\"<di_mdaprbVal species=\\\"Species_2\\\">0.004</di_mdaprbVal>\");\n oOut.write(\"</di_mdaPRB>\");\n oOut.write(\"<di_mdaSPSSD>\");\n oOut.write(\"<di_mdaspssdVal species=\\\"Species_2\\\">0.1</di_mdaspssdVal>\");\n oOut.write(\"</di_mdaSPSSD>\");\n oOut.write(\"<di_canopyFunction>\");\n oOut.write(\"<di_cfVal species=\\\"Species_2\\\">0</di_cfVal>\");\n oOut.write(\"</di_canopyFunction>\");\n oOut.write(\"<di_weibullCanopyDispersal>\");\n oOut.write(\"<di_wcdVal species=\\\"Species_2\\\">1.82E-04</di_wcdVal>\");\n oOut.write(\"</di_weibullCanopyDispersal>\");\n oOut.write(\"<di_weibullCanopyTheta>\");\n oOut.write(\"<di_wctVal species=\\\"Species_2\\\">3</di_wctVal>\");\n oOut.write(\"</di_weibullCanopyTheta>\");\n oOut.write(\"</MastingDisperseAutocorrelation3>\");\n oOut.write(\"<DensDepRodentSeedPredation4>\");\n oOut.write(\"<pr_densDepFuncRespSlope>\");\n oOut.write(\"<pr_ddfrsVal species=\\\"Species_1\\\">0.9</pr_ddfrsVal>\");\n oOut.write(\"<pr_ddfrsVal species=\\\"Species_2\\\">0.05</pr_ddfrsVal>\");\n oOut.write(\"</pr_densDepFuncRespSlope>\");\n oOut.write(\"<pr_densDepFuncRespA>0.02</pr_densDepFuncRespA>\");\n oOut.write(\"<pr_densDepDensCoeff>0.07</pr_densDepDensCoeff>\");\n oOut.write(\"</DensDepRodentSeedPredation4>\");\n oOut.write(\"</paramFile>\");\n oOut.close();\n return sFileName;\n }",
"protected void actionPerformedExport ()\n {\n Preferences root = Preferences.userRoot ();\n Preferences node = root.node (OpenMarkovPreferences.OPENMARKOV_NODE_PREFERENCES);\n System.out.println (\"Export selected\");\n if (chooser.showSaveDialog (PreferencesDialog.this) == JFileChooser.APPROVE_OPTION)\n {\n try\n {\n OutputStream out = new FileOutputStream (chooser.getSelectedFile ());\n node.exportSubtree (out);\n out.close ();\n }\n catch (Exception e)\n {\n e.printStackTrace ();\n JOptionPane.showMessageDialog (this, stringDatabase.getString (e.getMessage ()),\n stringDatabase.getString (e.getMessage ()),\n JOptionPane.ERROR_MESSAGE);\n }\n }\n }",
"public void writeXMLFinisher() {\n\t\tJavaIO.createXMLFile(getCurrentPath(), \"coveragePriorJ.xml\", \"</list>\", true);\n\t}",
"public FileData export() {\n\t\ttry(Workbook workbook = createWorkbook();\n\t\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream();) {\n\t\t\tsheet = workbook.createSheet();\n\t\t\tcreateRows();\n\t\t\tworkbook.write(outputStream);\n\t\t\treturn getExportedFileData(outputStream.toByteArray());\n\t\t} catch (IOException ex) {\n\t\t\tthrow new RuntimeException(\"error while exporting file\",ex);\n\t\t}\n\t}",
"private void save() throws FileNotFoundException {\n\t\tm.write(new FileOutputStream(OUTPUT), \"RDF/XML\");\n\t}",
"public String toXml() {\n StringWriter outputStream = new StringWriter();\n try {\n PrintWriter output = new PrintWriter(outputStream);\n try {\n output.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n toXml(output);\n return outputStream.toString();\n }\n catch (Exception ex) {\n Logger logger = Logger.getLogger(this.getClass());\n logger.error(ex);\n throw new EJBException(ex);\n }\n finally {\n output.close();\n }\n }\n finally {\n try {\n outputStream.close();\n }\n catch (IOException ex) {\n Logger logger = Logger.getLogger(this.getClass());\n logger.error(ex);\n throw new EJBException(ex);\n }\n }\n }",
"protected String toXMLFragment() {\n StringBuffer xml = new StringBuffer();\n if (isSetStepConfig()) {\n StepConfig stepConfig = getStepConfig();\n xml.append(\"<StepConfig>\");\n xml.append(stepConfig.toXMLFragment());\n xml.append(\"</StepConfig>\");\n } \n if (isSetExecutionStatusDetail()) {\n StepExecutionStatusDetail executionStatusDetail = getExecutionStatusDetail();\n xml.append(\"<ExecutionStatusDetail>\");\n xml.append(executionStatusDetail.toXMLFragment());\n xml.append(\"</ExecutionStatusDetail>\");\n } \n return xml.toString();\n }",
"public void saveToXML() {\n\t\tList<String> vendorList = map.values().stream().sorted().distinct().collect(Collectors.toList());\n\t\t//Iterate over the vendor list\n\t\tfor (int i=0;i < vendorList.size();i++) {\n\t\t\tProducts vendorSpecificList = new Products(); //create a product object just for a member\n\t\t\tList<output.Product> miniProductList = new ArrayList<>(); //holds the list of individual Product\n\t\t\t//iterate the whole map\t\n\t\t\tfor (Entry<Product, String> entry : map.entrySet()) {\t\t\n\t\t\t\t//identify members of the distinct vendor\n\t\t\t\tif(vendorList.get(i).equals(entry.getValue())) {\t\t\t\t\n\t\t\t\t\tminiProductList.add(entry.getKey()); //add to a subset\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvendorSpecificList.setProduct(miniProductList); //populate with subset\n\t\t\tprintFile(vendorSpecificList,vendorList.get(i)); //prints the subset\n\n\t\t}\n\t}",
"public String getXML() //Perhaps make a version of this where the header DTD can be manually specified\n { //Also allow changing of generated tags to user specified values\n \n String xml = new String();\n xml= \"<?xml version = \\\"1.0\\\"?>\\n\";\n xml = xml + generateXML();\n return xml;\n }",
"abstract void toXML(StringBuilder xml, int level);",
"public String export() {\r\n\t\tString result = String.format(\"LaneData\\tlaneID:\\t%d\", getID());\r\n\r\n\t\tfor (Integer laneID : getUpLaneIDs())\t\t\t\t\r\n\t\t\tresult += String.format(\"\\tup:\\t%d\", laneID); \r\n\t\tfor (Integer laneID : getDownLaneIDs())\r\n\t\t\tresult += String.format(\"\\tdown:\\t%d\", laneID); \r\n\t\tif (getCrossingYieldToLaneList() != null) {\r\n\t\t\tfor (Lane yLane : getCrossingYieldToLaneList()) {\r\n\t\t\t\tresult += String.format(\"\\tcrossingYieldTo:\\t%d\", yLane.getID()); \r\n\t\t\t}\r\n\t\t}\r\n\t\tif (getMergingYieldToLaneList() != null) {\r\n\t\t\tfor (Lane yLane : getMergingYieldToLaneList()) {\r\n\t\t\t\tresult += String.format(\"\\tmergingYieldTo:\\t%d\", yLane.getID()); \r\n\t\t\t}\r\n\t\t}\r\n\t\tif (getLeft() != null)\r\n\t\t\tresult += String.format(\"\\tleft:\\t%d\", getLeft().getID()); \r\n\t\tif (getRight() != null)\r\n\t\t\tresult += String.format(\"\\tright:\\t%d\", getRight().getID()); \r\n\t\tif (isGoLeft())\r\n\t\t\tresult += String.format(\"\\tgoLeft:\\t%s\", isGoLeft()); \r\n\t\tif (isGoRight())\r\n\t\t\tresult += String.format(\"\\tgoRight:\\t%s\", isGoRight()); \r\n\t\tif (getOrigin() >= 0)\r\n\t\t\tresult += String.format(\"\\torigin:\\t%d\", getOrigin()); \r\n\t\t// FIXME Does not write destination nodes that are not only a sink\r\n\t\tif ((getDestination() >= 0) || crossSectionElement.getCrossSection().getLink().getToNode_r().isSink())\r\n\t\t\tresult += String.format(\"\\tdestination:\\t%d\", getDestination()); \r\n\t\tresult += \"\\n\";\r\n\t\treturn result;\r\n\t}",
"public void exportPropertiesToXML(PropertySet properties, String xmlPath){\n\t\t\n\t\t\n\t\ttry {\n\n\t\t\t//Call the method to get the root element of this document\n\t\t\tElement root = createJDOMRepresentation(properties);\n\t\t\t\n\t\t\t//Create an XML Outputter\n\t\t\tXMLOutputter outputter = new XMLOutputter();\n\t\t\t\n\t\t\t//Set the format of the outputted XML File\n\t\t\tFormat format = Format.getPrettyFormat();\n\t\t\toutputter.setFormat(format);\n\t\t\t\n\t\t\t//Output the XML File to standard output and the desired file\n\t\t\tFileWriter filew = new FileWriter(xmlPath);\n\t\t\t//outputter.output(root, System.out);\n\t\t\toutputter.output(root, filew);\n\t\t\t\n\t\t} catch (IOException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"@Override\n public boolean save(String file) {\n /*\n Create a builder for the specific JSON format\n */\n GsonBuilder gsonBuilder = new GsonBuilder();\n gsonBuilder.setPrettyPrinting();\n JsonSerializer<DWGraph_DS> serializer = new JsonSerializer<DWGraph_DS>() {\n @Override\n public JsonElement serialize(DWGraph_DS dwGraph_ds, Type type, JsonSerializationContext jsonSerializationContext) {\n JsonObject jsonGraph = new JsonObject();\n jsonGraph.add(\"Nodes\", new JsonArray());\n jsonGraph.add(\"Edges\", new JsonArray());\n\n for (node_data node : G.getV()) {\n JsonObject jsonNodeObject = new JsonObject();\n\n StringBuilder pos = new StringBuilder();\n pos.append(node.getLocation().x());\n pos.append(',');\n pos.append(node.getLocation().y());\n pos.append(',');\n pos.append(node.getLocation().z());\n jsonNodeObject.addProperty(\"pos\", pos.toString());\n jsonNodeObject.addProperty(\"id\", node.getKey());\n jsonNodeObject.addProperty(\"info\", node.getInfo());\n jsonNodeObject.addProperty(\"tag\", node.getTag());\n jsonGraph.get(\"Nodes\").getAsJsonArray().add(jsonNodeObject);\n for (edge_data e : G.getE(node.getKey())) {\n JsonObject jsonEdgeObject = new JsonObject();\n jsonEdgeObject.addProperty(\"src\", e.getSrc());\n jsonEdgeObject.addProperty(\"w\", e.getWeight());\n jsonEdgeObject.addProperty(\"dest\", e.getDest());\n jsonEdgeObject.addProperty(\"info\", e.getInfo());\n jsonEdgeObject.addProperty(\"tag\", e.getTag());\n jsonGraph.get(\"Edges\").getAsJsonArray().add(jsonEdgeObject);\n }\n }\n return jsonGraph;\n }\n };\n gsonBuilder.registerTypeAdapter(DWGraph_DS.class, serializer);\n Gson graphGson = gsonBuilder.create();\n try {\n PrintWriter writer = new PrintWriter(new FileWriter(file));\n writer.write(graphGson.toJson(G));\n writer.flush();\n writer.close();\n return true;\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }",
"private String writeValidXMLFile() throws java.io.IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"06010101\\\">\");\n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>3</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>200.0</plot_lenX>\");\n oOut.write(\"<plot_lenY>200.0</plot_lenY>\");\n oOut.write(\"<plot_precip_mm_yr>1150.645781</plot_precip_mm_yr>\");\n oOut.write(\"<plot_temp_C>12.88171785</plot_temp_C>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_3\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_4\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_5\\\" />\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_3\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_4\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_5\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_3\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_4\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_5\\\">1.35</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_sizeClasses>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s1.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s10.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s20.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s30.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s40.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s50.0\\\"/>\");\n oOut.write(\"</tr_sizeClasses>\");\n oOut.write(\"<tr_initialDensities>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_2\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_3\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_4\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_5\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"</tr_initialDensities>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_3\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_4\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_5\\\">39.48</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_3\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_4\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_5\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_3\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_4\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_5\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_3\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_4\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_5\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_3\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_4\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_5\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_3\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_4\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_5\\\">0.389</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_3\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_4\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_5\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_1\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_2\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_3\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_4\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_5\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_3\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_4\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_5\\\">0.0299</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_3\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_4\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_5\\\">0</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_3\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_4\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_5\\\">0</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_3\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_4\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_5\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_3\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_4\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_5\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_3\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_4\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_5\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_3\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_4\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_5\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_3\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_4\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_5\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>QualityVigorClassifier</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_4\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_5\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<QualityVigorClassifier1>\");\n oOut.write(\"<ma_classifierInitialConditions>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>10</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>20</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.78</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.88</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.61</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.33</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.64</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">1</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.55</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>20</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>30</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.33</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.81</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0.64</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.32</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.32</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.69</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">0.33</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.58</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>30</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>40</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.34</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.57</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0.26</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.46</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.13</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.36</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">0.66</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.45</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"</ma_classifierInitialConditions>\");\n oOut.write(\"<ma_classifierVigBeta0>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_2\\\">0.1</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_3\\\">0</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_4\\\">0.3</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_5\\\">0.4</ma_cvb0Val>\");\n oOut.write(\"</ma_classifierVigBeta0>\");\n oOut.write(\"<ma_classifierVigBeta11>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_2\\\">0.2</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_3\\\">2.35</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_4\\\">0.1</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_5\\\">2.43</ma_cvb11Val>\");\n oOut.write(\"</ma_classifierVigBeta11>\");\n oOut.write(\"<ma_classifierVigBeta12>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_2\\\">-2.3</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_3\\\">1.12</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_4\\\">0.32</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_5\\\">1.3</ma_cvb12Val>\");\n oOut.write(\"</ma_classifierVigBeta12>\");\n oOut.write(\"<ma_classifierVigBeta13>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_2\\\">0.13</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_3\\\">1</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_4\\\">-0.2</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_5\\\">1</ma_cvb13Val>\");\n oOut.write(\"</ma_classifierVigBeta13>\");\n oOut.write(\"<ma_classifierVigBeta14>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_2\\\">0.9</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_3\\\">0</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_4\\\">-1</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_5\\\">0</ma_cvb14Val>\");\n oOut.write(\"</ma_classifierVigBeta14>\");\n oOut.write(\"<ma_classifierVigBeta15>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_2\\\">1</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_3\\\">0.25</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_4\\\">1</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_5\\\">-0.45</ma_cvb15Val>\");\n oOut.write(\"</ma_classifierVigBeta15>\");\n oOut.write(\"<ma_classifierVigBeta16>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_2\\\">1</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_3\\\">0.36</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_4\\\">0</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_5\\\">0.46</ma_cvb16Val>\");\n oOut.write(\"</ma_classifierVigBeta16>\");\n oOut.write(\"<ma_classifierVigBeta2>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_2\\\">0.01</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_3\\\">0.02</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_4\\\">0.04</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_5\\\">0.1</ma_cvb2Val>\");\n oOut.write(\"</ma_classifierVigBeta2>\");\n oOut.write(\"<ma_classifierVigBeta3>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_2\\\">0.001</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_3\\\">0.2</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_4\\\">0.3</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_5\\\">0.4</ma_cvb3Val>\");\n oOut.write(\"</ma_classifierVigBeta3>\");\n oOut.write(\"<ma_classifierQualBeta0>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_2\\\">0.25</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_3\\\">1.13</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_4\\\">0</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_5\\\">1.15</ma_cqb0Val>\");\n oOut.write(\"</ma_classifierQualBeta0>\");\n oOut.write(\"<ma_classifierQualBeta11>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_2\\\">0.36</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_3\\\">0</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_4\\\">0.4</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_5\\\">0</ma_cqb11Val>\");\n oOut.write(\"</ma_classifierQualBeta11>\");\n oOut.write(\"<ma_classifierQualBeta12>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_2\\\">0.02</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_3\\\">10</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_4\\\">0.3</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_5\\\">30</ma_cqb12Val>\");\n oOut.write(\"</ma_classifierQualBeta12>\");\n oOut.write(\"<ma_classifierQualBeta13>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_2\\\">0.2</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_3\\\">10</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_4\\\">-0.3</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_5\\\">30</ma_cqb13Val>\");\n oOut.write(\"</ma_classifierQualBeta13>\");\n oOut.write(\"<ma_classifierQualBeta14>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_2\\\">-0.2</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_3\\\">10</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_4\\\">-0.4</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_5\\\">30</ma_cqb14Val>\");\n oOut.write(\"</ma_classifierQualBeta14>\");\n oOut.write(\"<ma_classifierQualBeta2>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_2\\\">-0.2</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_3\\\">10</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_4\\\">0</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_5\\\">30</ma_cqb2Val>\");\n oOut.write(\"</ma_classifierQualBeta2>\");\n oOut.write(\"<ma_classifierQualBeta3>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_2\\\">1</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_3\\\">10</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_4\\\">0.1</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_5\\\">30</ma_cqb3Val>\");\n oOut.write(\"</ma_classifierQualBeta3>\");\n oOut.write(\"<ma_classifierNewAdultProbVigorous>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_2\\\">0.1</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_3\\\">0.25</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_4\\\">0.5</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_5\\\">0.74</ma_cnapvVal>\");\n oOut.write(\"</ma_classifierNewAdultProbVigorous>\");\n oOut.write(\"<ma_classifierNewAdultProbSawlog>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_2\\\">0.9</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_3\\\">0.25</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_4\\\">0.3</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_5\\\">0.74</ma_cnapsVal>\");\n oOut.write(\"</ma_classifierNewAdultProbSawlog>\");\n oOut.write(\"<ma_classifierDeciduous>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_2\\\">1</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_3\\\">0</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_4\\\">1</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_5\\\">0</ma_cdVal>\");\n oOut.write(\"</ma_classifierDeciduous>\");\n oOut.write(\"</QualityVigorClassifier1>\");\n oOut.write(\"</paramFile>\");\n\n oOut.close();\n return sFileName;\n }",
"public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( QuotaUserRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}",
"public void exportToXML(String sciezka) {\n\t\tFile plik = new File(sciezka);\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\n\t\ttry\t{\n\t\t\tplik.createNewFile();\n\t\t\tFileWriter strumienZapisu = new FileWriter(plik);\n\t\t\tstrumienZapisu.write(\"<ListaZdarzen>\\n\");\n\t\t\tfor (int i=0; i < listaZdarzen.size(); i++) {\n\t\t\t\tstrumienZapisu.write(\"\\t<zdarzenie>\\n\");\n\t\t\t\t\n\t\t\t\tstrumienZapisu.write(\"\\t\\t<id>\");\n\t\t\t\tstrumienZapisu.write(Integer.toString(listaZdarzen.get(i).getId()));\n\t\t\t\tstrumienZapisu.write(\"</id>\\n\");\n\t\t\t\t\n\t\t\t\tstrumienZapisu.write(\"\\t\\t<data>\");\n\t\t\t\tstrumienZapisu.write(sdf.format(listaZdarzen.get(i).getDataZdarzenia()));\n\t\t\t\tstrumienZapisu.write(\"</data>\\n\");\n\t\t\t\t\n\t\t\t\tstrumienZapisu.write(\"\\t\\t<nazwa>\");\n\t\t\t\tstrumienZapisu.write(listaZdarzen.get(i).getNazwa());\n\t\t\t\tstrumienZapisu.write(\"</nazwa>\\n\");\n\t\t\t\t\n\t\t\t\tstrumienZapisu.write(\"\\t\\t<opis>\");\n\t\t\t\tstrumienZapisu.write(listaZdarzen.get(i).getOpis());\n\t\t\t\tstrumienZapisu.write(\"</opis>\\n\");\n\t\t\t\t\n\t\t\t\tstrumienZapisu.write(\"\\t\\t<miejsce>\");\n\t\t\t\tstrumienZapisu.write(listaZdarzen.get(i).getMiejsce());\n\t\t\t\tstrumienZapisu.write(\"</miejsce>\\n\");\n\t\t\t\t\n\t\t\t\tstrumienZapisu.write(\"\\t</zdarzenie>\\n\");\n\t\t\t}\n\t\t\tstrumienZapisu.write(\"</ListaZdarzen>\");\n\t\t\tstrumienZapisu.close();\n\t\t}\n\t\tcatch (IOException io)\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t{System.out.println(io.getMessage());}\n\t\tcatch (Exception se)\n\t\t\t{System.err.println(\"blad sec\");}\n\t}",
"public String generatedXmlFile(Document doc){\n\t\tStringWriter sw = new StringWriter();\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\r\n\r\n\t\t\t\t\ttransformer.transform(new DOMSource(doc), new StreamResult(sw));\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\tthrow new RuntimeException(\"Error converting to String\", ex);\r\n\t\t\t\t}\r\n\t\t\t\treturn sw.toString();\r\n\t}",
"String getNegotiationXML();",
"public static void generateAndSaveExampleGraph() {\n EuclidDirectedGraph graph1 = new EuclidDirectedGraph();\n //vertexes added and created edge\n BoundsGraphVertex ver1 = new BoundsGraphVertex(10, 10, \"source\");\n BoundsGraphVertex ver2 = new BoundsGraphVertex(10, 30, \"secondNode\");\n BoundsGraphVertex ver3 = new BoundsGraphVertex(10, 40, \"thirdNode\");\n BoundsGraphVertex ver4 = new BoundsGraphVertex(10, 50, \"sink\");\n BoundsGraphVertex ver5 = new BoundsGraphVertex(10, 60, \"fiveNode - loop from second\");\n BoundsGraphVertex ver6 = new BoundsGraphVertex(10, 70, \"sixNode - loop from five\");\n BoundsGraphVertex ver7 = new BoundsGraphVertex(10, 80, \"sevenNode - loop from six to third\");\n\n graph1.addNode(ver1);\n graph1.addNode(ver2);\n graph1.addNode(ver3);\n graph1.addNode(ver4);\n graph1.addNode(ver5);\n graph1.addNode(ver6);\n graph1.addNode(ver7);\n //use .addEuclidEdge to compute edge's length automatically\n graph1.addEuclidEdge(ver1, ver2);\n graph1.addEuclidEdge(ver2, ver3);\n graph1.addEuclidEdge(ver3, ver4);\n graph1.addEuclidEdge(ver2, ver5);\n graph1.addEuclidEdge(ver5, ver6);\n graph1.addEuclidEdge(ver6, ver7);\n graph1.addEuclidEdge(ver7, ver3);\n //created graph #2\n EuclidDirectedGraph graph2 = new EuclidDirectedGraph();\n try {\n //save into file from graph #1\n XMLSerializer.write(graph1, \"input.xml\", false);\n //read from file into graph #2\n graph2 = (EuclidDirectedGraph) XMLSerializer.read(\"input.xml\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void saveData(){\n try{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.newDocument();\n\n Element rootElement = document.createElement(\"departments\");\n document.appendChild(rootElement);\n for (Department department : entities){\n Element dep = document.createElement(\"department\");\n rootElement.appendChild(dep);\n\n dep.setAttribute(\"id\", department.getId().toString());\n dep.appendChild(createElementFromDepartment(\n document, \"name\", department.getName()));\n dep.appendChild(createElementFromDepartment(\n document, \"numberOfPlaces\", department.getNumberOfPlaces().toString()));\n }\n\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(fileName);\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.transform(domSource, streamResult);\n\n } catch (ParserConfigurationException | TransformerException e) {\n e.printStackTrace();\n }\n }",
"public void createModuleGeneratedXMLPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleGeneratedXMLPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleGeneratedXMLPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}",
"protected abstract ArrayList<Element> _toXml_();",
"@Override\n\tpublic byte[] generateOutput() {\n\t\tthis.plainOut = new PlainOutputConversion();\n\n\t\tString output = \"\";\n\t\ttry {\n\t\t\toutput = constructTextfromXML(this.rootXML, true);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn output.getBytes();\n\t}",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"public final String toString() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"<?xml version=\\\"1.0\\\"?>\").append(br());\n toXML(sb, 0);\n return sb.toString();\n }",
"public abstract String getXMLName();",
"public boolean SaveFile(File file){\n FileWriter fw = null;\n try {\n \n if(file !=null){\n fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n \n bw.write(\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\n \"<Visulisation>\\n\"\n \n );\n for(int pos = 0; pos<m_db.length;pos++){\n bw.write(\"<Data>\\n\");\n bw.write(\"<Date>\"+getDate()+\"</Date>\\n\");\n bw.write(\"<File>\"+m_db[pos].getFilePath()+\"</File>\\n\");\n bw.write(\"<RawData>\"+writeRawData(pos)+\"</RawData>\\n\");\n bw.write(\"</Data>\\n\");\n }\n for(int i =0; i<m_tp.GetNumOfCharts();i++){\n Chart c = m_tp.GetTab(i);\n System.out.print(\"c=000000 \"+c);\n ColourMap cm = c.GetColourMap();\n bw.write(\"<Chart>\\n\");\n \n bw.write(\"<ChartType>\"+c.GetChartType().toString()+\n \"</ChartType>\\n\");\n bw.write(\"<DataSetID>\"+c.GetData().getID()+\"</DataSetID>\\n\");\n bw.write(\"<XColumn>\"+c.GetXColumnPosition()+\"</XColumn>\\n\");\n bw.write(\"<YColumn>\"+c.GetYColumnPosition()+\"</YColumn>\\n\");\n bw.write(\"<ChartTitle>\"+c.GetTitle()+\"</ChartTitle>\\n\");\n bw.write(\"<Author>\"+c.GetAuthor()+\"</Author>\\n\");\n bw.write(\"<Desc>\"+c.GetDescription()+\"</Desc>\\n\");\n bw.write(\"<Schemme>\\n\");\n for(int j =0; j<cm.getNumberOfColours();j++){\n Color cl = cm.getColour(j);\n System.err.println(\"Color = \"+cl);\n String r = Integer.toString(cl.getRed());\n String g = Integer.toString(cl.getGreen());\n String b = Integer.toString(cl.getBlue());\n System.err.print(\"Red = \"+r+\" | \");\n System.err.print(\"Green = \"+g+\" | \");\n System.err.println(\"Blue = \"+b);\n bw.write(\"<Color>\");\n bw.write(r+\",\");\n bw.write(g+\",\");\n bw.write(b);\n bw.write(\"</Color>\\n\");\n \n }\n bw.write(\"</Schemme>\\n\");\n bw.write(\"</Chart>\\n\");\n }\n bw.write(\"</Visulisation>\");\n bw.close();\n \n \n return true;\n }else{\n System.err.println(\"DNF\");\n return false;\n }\n \n \n } catch (IOException ex) {\n System.err.print(ex);\n return false;\n }\n }",
"private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void xmlSave() {\r\n FileDialog fd = new FileDialog(new Frame(), \r\n \"Save as a jMusic XML file...\", \r\n FileDialog.SAVE);\r\n fd.show();\r\n if (fd.getFile() != null) {\r\n jm.util.Write.xml(score, fd.getDirectory() + fd.getFile());\r\n }\r\n }",
"@Override\n\tpublic void write() {\n\t\tSystem.out.println(\"使用xml方式存储\");\n\t}",
"private static Element getXML(Module module) {\n\t\tElement moduleEle = new Element(\"Module\");\n\t\tmoduleEle.setAttribute(\"Name\", module.getName());\n\t\tmoduleEle.setAttribute(\"x\", String.valueOf(module.getPoint().x));\n\t\tmoduleEle.setAttribute(\"y\", String.valueOf(module.getPoint().y));\n\n\t\t// save graph information for each state\n\t\tElement statesEle = new Element(\"States\");\n\t\tfor (State state : module.getStates()) {\n\t\t\tstatesEle.addContent(getXML(state));\n\t\t}\n\t\tmoduleEle.addContent(statesEle);\n\n\t\t// save graph information for each transition\n\t\tElement transitionsEle = new Element(\"Transitions\");\n\t\tfor (Transition transition : module.getTransitions()) {\n\t\t\tif (transition.getControl() != null)\n\t\t\t\ttransitionsEle.addContent(getXML(transition));\n\t\t}\n\t\tmoduleEle.addContent(transitionsEle);\n\n\t\treturn moduleEle;\n\t}",
"public void saveXmlTree(String fileName) {\n try {\n String tree = this.client.driver.getPageSource();\n PrintWriter out = new PrintWriter(this.settings.baseLogDir + File.separator + fileName);\n out.println(tree);\n out.close();\n } catch (Exception e) {\n this.error(\"Failed to get and save current visual tree.\");\n }\n }",
"public interface GMLGeometryWriter {\n\n /**\n * Exports a general geometry. This is the method to call when there is no information about the geometry (the case\n * switching is done here).\n * \n * @param geometry\n * @throws XMLStreamException\n * @throws UnknownCRSException\n * @throws TransformationException\n */\n public void export( Geometry geometry )\n throws XMLStreamException, UnknownCRSException, TransformationException;\n\n /**\n * @param compositeCurve\n * @throws XMLStreamException\n * @throws UnknownCRSException\n * @throws TransformationException\n */\n public void exportCompositeCurve( CompositeCurve compositeCurve )\n throws XMLStreamException, UnknownCRSException, TransformationException;\n\n /**\n * @param geometryComplex\n * @throws XMLStreamException\n * @throws UnknownCRSException\n * @throws TransformationException\n */\n public void exportCompositeGeometry( CompositeGeometry<GeometricPrimitive> geometryComplex )\n throws XMLStreamException, UnknownCRSException, TransformationException;\n\n /**\n * @param compositeSolid\n * @throws XMLStreamException\n * @throws UnknownCRSException\n * @throws TransformationException\n */\n public void exportCompositeSolid( CompositeSolid compositeSolid )\n throws XMLStreamException, UnknownCRSException, TransformationException;\n\n /**\n * @param compositeSurface\n * @throws XMLStreamException\n * @throws UnknownCRSException\n * @throws TransformationException\n */\n public void exportCompositeSurface( CompositeSurface compositeSurface )\n throws XMLStreamException, UnknownCRSException, TransformationException;\n\n /**\n * @param curve\n * @throws XMLStreamException\n * @throws UnknownCRSException\n * @throws TransformationException\n */\n public void exportCurve( Curve curve )\n throws XMLStreamException, UnknownCRSException, TransformationException;\n\n /**\n * @param envelope\n * @throws XMLStreamException\n * @throws UnknownCRSException\n * @throws TransformationException\n */\n public void exportEnvelope( Envelope envelope )\n throws XMLStreamException, UnknownCRSException, TransformationException;\n\n /**\n * @param geometry\n * @throws XMLStreamException\n * @throws UnknownCRSException\n * @throws TransformationException\n */\n public void exportMultiGeometry( MultiGeometry<? extends Geometry> geometry )\n throws XMLStreamException, UnknownCRSException, TransformationException;\n\n /**\n * @param point\n * @throws XMLStreamException\n * @throws UnknownCRSException\n * @throws TransformationException\n */\n public void exportPoint( Point point )\n throws XMLStreamException, UnknownCRSException, TransformationException;\n\n /**\n * @param geometryRef\n * @throws XMLStreamException\n * @throws UnknownCRSException\n * @throws TransformationException\n */\n public void exportReference( GeometryReference<Geometry> geometryRef )\n throws XMLStreamException, UnknownCRSException, TransformationException;\n\n /**\n * @param ring\n * @throws XMLStreamException\n * @throws UnknownCRSException\n * @throws TransformationException\n */\n public void exportRing( Ring ring )\n throws XMLStreamException, UnknownCRSException, TransformationException;\n\n /**\n * @param solid\n * @throws XMLStreamException\n * @throws UnknownCRSException\n * @throws TransformationException\n */\n public void exportSolid( Solid solid )\n throws XMLStreamException, UnknownCRSException, TransformationException;\n\n /**\n * @param surface\n * @throws XMLStreamException\n * @throws UnknownCRSException\n * @throws TransformationException\n */\n public void exportSurface( Surface surface )\n throws XMLStreamException, UnknownCRSException, TransformationException;\n\n /**\n * @param tin\n * @throws XMLStreamException\n * @throws UnknownCRSException\n * @throws TransformationException\n */\n public void exportTin( Tin tin )\n throws XMLStreamException, UnknownCRSException, TransformationException;\n\n /**\n * @param triangSurface\n * @throws XMLStreamException\n * @throws UnknownCRSException\n * @throws TransformationException\n */\n public void exportTriangulatedSurface( TriangulatedSurface triangSurface )\n throws XMLStreamException, UnknownCRSException, TransformationException;\n}",
"@Override\r\n protected XMLSave createXMLSave() {\r\n prepareSave();\r\n return super.createXMLSave();\r\n }",
"public interface IXMLWriter {\n\n /**\n * @param game to serialize and output\n * @param outputFile to write to\n */\n void convertXMLToGame (IGame game, File outputFile);\n}"
] | [
"0.72160125",
"0.6882204",
"0.6882204",
"0.6882204",
"0.66993856",
"0.656153",
"0.63981366",
"0.62697047",
"0.62675035",
"0.6217525",
"0.61303043",
"0.61183405",
"0.61158884",
"0.6070704",
"0.6057175",
"0.60555327",
"0.6014931",
"0.6008158",
"0.6004647",
"0.599611",
"0.59940714",
"0.59873617",
"0.59524614",
"0.59519404",
"0.5905238",
"0.5886385",
"0.5851392",
"0.5841336",
"0.58301526",
"0.58296525",
"0.58275044",
"0.5826605",
"0.5809018",
"0.58074236",
"0.5788835",
"0.57703584",
"0.57572824",
"0.5751976",
"0.5736181",
"0.5735227",
"0.5734261",
"0.5727083",
"0.5725457",
"0.57195336",
"0.57144976",
"0.5673681",
"0.56730324",
"0.56698614",
"0.5664736",
"0.5651631",
"0.5651631",
"0.5648935",
"0.56340975",
"0.5627361",
"0.56082785",
"0.56077325",
"0.5606913",
"0.5593472",
"0.55880463",
"0.5585725",
"0.5573578",
"0.5568092",
"0.55554473",
"0.55459523",
"0.5517569",
"0.5492841",
"0.5490341",
"0.5467145",
"0.5454267",
"0.5453749",
"0.5445149",
"0.5444538",
"0.5442632",
"0.54425657",
"0.54385537",
"0.5438318",
"0.5432419",
"0.53939325",
"0.5372674",
"0.5362728",
"0.536104",
"0.5354903",
"0.53453195",
"0.5345088",
"0.5341484",
"0.5337458",
"0.53308254",
"0.5327977",
"0.5327977",
"0.5318137",
"0.5317046",
"0.52893054",
"0.5284914",
"0.5284346",
"0.5281221",
"0.52596223",
"0.52517873",
"0.5247901",
"0.5233937",
"0.5227945"
] | 0.64112866 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.